@nebula.js/sn-pie-chart 1.27.20 → 1.27.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
1
  /*
2
- * @nebula.js/sn-pie-chart v1.27.20
3
- * Copyright (c) 2024 QlikTech International AB
2
+ * @nebula.js/sn-pie-chart v1.27.21
3
+ * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,y,v,b,x,w,S,C,k,E,T,R,M,P,D,O,I,q,A,N,L,z,j,$,_,F,H,B,U,W;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,c=e.disclaimerService,u=e.tooltipService,d=e.colorService,p=e.pluginService,f=e.themeService,h=e.debouncer,m=e.fontResolver},function(e){g=e.default,y=e,v=e.Children,b=e.isValidElement,x=e.cloneElement,w=e.forwardRef,S=e.useContext},function(e){C=e,k=e.default},function(e){E=e.useOptions,T=e.useElement,R=e.useSelections,M=e.useState,P=e.useLayout,D=e.useTranslator,O=e.useAction,I=e.useEffect,q=e.useModel,A=e.useApp,N=e.useStaleLayout,L=e.usePlugins,z=e.useConstraints,j=e.useTheme,$=e.useAppLayout,_=e.useEmbed,F=e.usePromise,H=e.useRect,B=e.onTakeSnapshot,U=e.useImperativeHandle},function(e){W=e.default}],execute:function(){var V={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const G={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function K(e){return G[e]||e}function Y(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=K(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=K(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function X(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function J(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?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 Z=Object.prototype.hasOwnProperty,Q=Object.prototype.toString,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Q.call(e)},re=function(e){if(!e||"[object Object]"!==Q.call(e))return!1;var t,n=Z.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Z.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Z.call(e,t)},oe=function(e,t){ee&&"__proto__"===t.name?ee(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ie=function(e,t){if("__proto__"===t){if(!Z.call(e,t))return;if(te)return te(e,t).value}return e[t]},ae=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ie(s,n),s!==(o=ie(t,n))&&(u&&o&&(re(o)||(i=ne(o)))?(i?(i=!1,a=r&&ne(r)?r:[]):a=r&&re(r)?r:{},oe(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&oe(s,{name:n,newValue:o}));return s},se=X(ae);const le=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],ce={};le.forEach((([e,{width:t,height:n}])=>{ce[e]={width:t,height:n}}));const ue={getLayoutModes:()=>ce,getLayoutMode(e,t){let n;for(n=0;n<le.length;++n)if(e>=le[n][1].width&&t>=le[n][1].height)return le[n][0];return"SPARK"}};function de(e,t){return{layoutModes:ue.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const pe=/^[A-Z][A-z0-9_]*$/i,fe={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||pe.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function he(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const me=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ge=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),ye=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),ve={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>me.test(e),isRtlChar:e=>ge.test(e)||ye.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],ve.isLtrChar(r))return"ltr";if(ve.isRtlChar(r))return"rtl"}return"ltr"}},be={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?be.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=ve.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=ve.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:ve.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=ve.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=ve.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,be.getColorSymbol(e,t)]:[be.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=ve.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=ve.detectTextDirection(e.value);let l;return l=o?r?[e.value,be.getColorSymbol(t,n)]:[be.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function xe(e){const t=parseInt(e,10);if(!isNaN(t))return t}const we=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Se(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles(),o=n.styleService.label.value.getStyle(),i=o.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:i&&!e.onBackground?we(t):o.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:xe(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Ce(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ke(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ee(){}var Te=.7,Re=1/Te,Me="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Ie=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),qe=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Ae=new RegExp(`^rgba\\(${Me},${Me},${Me},${Pe}\\)$`),Ne=new RegExp(`^rgba\\(${De},${De},${De},${Pe}\\)$`),Le=new RegExp(`^hsl\\(${Pe},${De},${De}\\)$`),ze=new RegExp(`^hsla\\(${Pe},${De},${De},${Pe}\\)$`),je={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 $e(){return this.rgb().formatHex()}function _e(){return this.rgb().formatRgb()}function Fe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Oe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?He(t):3===n?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Be(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Be(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=Ie.exec(e))?new We(t[1],t[2],t[3],1):(t=qe.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ae.exec(e))?Be(t[1],t[2],t[3],t[4]):(t=Ne.exec(e))?Be(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Le.exec(e))?Je(t[1],t[2]/100,t[3]/100,1):(t=ze.exec(e))?Je(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?He(je[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function He(e){return new We(e>>16&255,e>>8&255,255&e,1)}function Be(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Ue(e){return e instanceof Ee||(e=Fe(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function We(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ve(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}`}function Ge(){const e=Ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Ye(this.r)}, ${Ye(this.g)}, ${Ye(this.b)}${1===e?")":`, ${e})`}`}function Ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ye(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xe(e){return((e=Ye(e))<16?"0":"")+e.toString(16)}function Je(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,n,r)}function Ze(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Ee||(e=Fe(e)),!e)return new Qe;if(e instanceof Qe)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 Qe(a,s,l,e.opacity)}function Qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function nt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ce(Ee,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$e,formatHex:$e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ze(this).formatHsl()},formatRgb:_e,toString:_e}),Ce(We,(function(e,t,n,r){return 1===arguments.length?Ue(e):new We(e,t,n,null==r?1:r)}),ke(Ee,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ye(this.r),Ye(this.g),Ye(this.b),Ke(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:Ve,formatHex:Ve,formatHex8:function(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}${Xe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ge,toString:Ge})),Ce(Qe,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Qe(e,t,n,null==r?1:r)}),ke(Ee,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new Qe(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 We(nt(e>=240?e-240:e+120,o,r),nt(e,o,r),nt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ke(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=Ke(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,ot=180/Math.PI,it=.96422,at=1,st=.82521,lt=4/29,ct=6/29,ut=3*ct*ct,dt=ct*ct*ct;function pt(e){if(e instanceof ft)return new ft(e.l,e.a,e.b,e.opacity);if(e instanceof bt)return xt(e);e instanceof We||(e=Ue(e));var t,n,r=yt(e.r),o=yt(e.g),i=yt(e.b),a=ht((.2225045*r+.7168786*o+.0606169*i)/at);return r===o&&o===i?t=n=a:(t=ht((.4360747*r+.3850649*o+.1430804*i)/it),n=ht((.0139322*r+.0971045*o+.7141733*i)/st)),new ft(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ft(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ht(e){return e>dt?Math.pow(e,1/3):e/ut+lt}function mt(e){return e>ct?e*e*e:ut*(e-lt)}function gt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bt)return new bt(e.h,e.c,e.l,e.opacity);if(e instanceof ft||(e=pt(e)),0===e.a&&0===e.b)return new bt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ot;return new bt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xt(e){if(isNaN(e.h))return new ft(e.l,0,0,e.opacity);var t=e.h*rt;return new ft(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Ce(ft,(function(e,t,n,r){return 1===arguments.length?pt(e):new ft(e,t,n,null==r?1:r)}),ke(Ee,{brighter(e){return new ft(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ft(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 We(gt(3.1338561*(t=it*mt(t))-1.6168667*(e=at*mt(e))-.4906146*(n=st*mt(n))),gt(-.9787684*t+1.9161415*e+.033454*n),gt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ce(bt,vt,ke(Ee,{brighter(e){return new bt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xt(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return wt(e(t),n)}}(e))}(wt);var St="$";function Ct(){}function kt(e,t){var n=new Ct;if(e instanceof Ct)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Et(){}Ct.prototype=kt.prototype={constructor:Ct,has:function(e){return St+e in this},get:function(e){return this[St+e]},set:function(e,t){return this[St+e]=t,this},remove:function(e){var t=St+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===St&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===St&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===St&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===St&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===St&&++e;return e},empty:function(){for(var e in this)if(e[0]===St)return!1;return!0},each:function(e){for(var t in this)t[0]===St&&e(this[t],t.slice(1),this)}};var Tt=kt.prototype;function Rt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pt(){}Et.prototype={constructor:Et,has:Tt.has,add:function(e){return this[St+(e+="")]=e,this},remove:Tt.remove,clear:Tt.clear,values:Tt.keys,size:Tt.size,empty:Tt.empty,each:Tt.each};var Dt=.7,Ot=1/Dt,It="\\s*([+-]?\\d+)\\s*",qt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",At="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nt=/^#([0-9a-f]{3})$/,Lt=/^#([0-9a-f]{6})$/,zt=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),jt=new RegExp("^rgb\\("+[At,At,At]+"\\)$"),$t=new RegExp("^rgba\\("+[It,It,It,qt]+"\\)$"),_t=new RegExp("^rgba\\("+[At,At,At,qt]+"\\)$"),Ft=new RegExp("^hsl\\("+[qt,At,At]+"\\)$"),Ht=new RegExp("^hsla\\("+[qt,At,At,qt]+"\\)$"),Bt={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 Ut(e){var t;return e=(e+"").trim().toLowerCase(),(t=Nt.exec(e))?new Yt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Lt.exec(e))?Wt(parseInt(t[1],16)):(t=zt.exec(e))?new Yt(t[1],t[2],t[3],1):(t=jt.exec(e))?new Yt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$t.exec(e))?Vt(t[1],t[2],t[3],t[4]):(t=_t.exec(e))?Vt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ft.exec(e))?Jt(t[1],t[2]/100,t[3]/100,1):(t=Ht.exec(e))?Jt(t[1],t[2]/100,t[3]/100,t[4]):Bt.hasOwnProperty(e)?Wt(Bt[e]):"transparent"===e?new Yt(NaN,NaN,NaN,0):null}function Wt(e){return new Yt(e>>16&255,e>>8&255,255&e,1)}function Vt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yt(e,t,n,r)}function Gt(e){return e instanceof Pt||(e=Ut(e)),e?new Yt((e=e.rgb()).r,e.g,e.b,e.opacity):new Yt}function Kt(e,t,n,r){return 1===arguments.length?Gt(e):new Yt(e,t,n,null==r?1:r)}function Yt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Jt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Zt(e,t,n,r)}function Zt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Rt(Pt,Ut,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Rt(Yt,Kt,Mt(Pt,{brighter:function(e){return e=null==e?Ot:Math.pow(Ot,e),new Yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Dt:Math.pow(Dt,e),new Yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Xt(this.r)+Xt(this.g)+Xt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Rt(Zt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Zt)return new Zt(e.h,e.s,e.l,e.opacity);if(e instanceof Pt||(e=Ut(e)),!e)return new Zt;if(e instanceof Zt)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 Zt(a,s,l,e.opacity)}(e):new Zt(e,t,n,null==r?1:r)}),Mt(Pt,{brighter:function(e){return e=null==e?Ot:Math.pow(Ot,e),new Zt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Dt:Math.pow(Dt,e),new Zt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 Yt(Qt(e>=240?e-240:e+120,o,r),Qt(e,o,r),Qt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var en=Math.PI/180,tn=180/Math.PI,nn=.96422,rn=1,on=.82521,an=4/29,sn=6/29,ln=3*sn*sn,cn=sn*sn*sn;function un(e){if(e instanceof dn)return new dn(e.l,e.a,e.b,e.opacity);if(e instanceof gn){if(isNaN(e.h))return new dn(e.l,0,0,e.opacity);var t=e.h*en;return new dn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Yt||(e=Gt(e));var n,r,o=mn(e.r),i=mn(e.g),a=mn(e.b),s=pn((.2225045*o+.7168786*i+.0606169*a)/rn);return o===i&&i===a?n=r=s:(n=pn((.4360747*o+.3850649*i+.1430804*a)/nn),r=pn((.0139322*o+.0971045*i+.7141733*a)/on)),new dn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function dn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function pn(e){return e>cn?Math.pow(e,1/3):e/ln+an}function fn(e){return e>sn?e*e*e:ln*(e-an)}function hn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Rt(dn,(function(e,t,n,r){return 1===arguments.length?un(e):new dn(e,t,n,null==r?1:r)}),Mt(Pt,{brighter:function(e){return new dn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new dn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 Yt(hn(3.1338561*(t=nn*fn(t))-1.6168667*(e=rn*fn(e))-.4906146*(n=on*fn(n))),hn(-.9787684*t+1.9161415*e+.033454*n),hn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Rt(gn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gn)return new gn(e.h,e.c,e.l,e.opacity);if(e instanceof dn||(e=un(e)),0===e.a&&0===e.b)return new gn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tn;return new gn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gn(e,t,n,null==r?1:r)}),Mt(Pt,{brighter:function(e){return new gn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new gn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return un(this).rgb()}}));var yn=-.14861,vn=1.78277,bn=-.29227,xn=-.90649,wn=1.97294,Sn=wn*xn,Cn=wn*vn,kn=vn*bn-xn*yn;function En(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);e instanceof Yt||(e=Gt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(kn*r+Sn*t-Cn*n)/(kn+Sn-Cn),i=r-o,a=(wn*(n-o)-bn*i)/xn,s=Math.sqrt(a*a+i*i)/(wn*o*(1-o)),l=s?Math.atan2(a,i)*tn-120:NaN;return new Tn(l<0?l+360:l,s,o,e.opacity)}(e):new Tn(e,t,n,null==r?1:r)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rn(e){return function(){return e}}function Mn(e,t){return function(n){return e+n*t}}function Pn(e){return 1==(e=+e)?Dn: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):Rn(isNaN(t)?n:t)}}function Dn(e,t){var n=t-e;return n?Mn(e,n):Rn(isNaN(e)?t:e)}function On(e){return function t(n){function r(t,r){var o=e((t=En(t)).h,(r=En(r)).h),i=Dn(t.s,r.s),a=Dn(t.l,r.l),s=Dn(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function In(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Rt(Tn,En,Mt(Pt,{brighter:function(e){return e=null==e?Ot:Math.pow(Ot,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Dt:Math.pow(Dt,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*en,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Yt(255*(t+n*(yn*r+vn*o)),255*(t+n*(bn*r+xn*o)),255*(t+n*(wn*r)),this.opacity)}})),function e(t){var n=Pn(t);function r(e,t){var r=n((e=Kt(e)).r,(t=Kt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Dn(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),On((function(e,t){var n=t-e;return n?Mn(e,n>180||n<-180?n-360*Math.round(n/360):n):Rn(isNaN(e)?t:e)})),On(Dn);var qn,An=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nn(e){return new Ln(e)}function Ln(e){if(!(t=An.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function zn(e,t){var n=In(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Nn.prototype=Ln.prototype,Ln.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var jn={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zn(100*e,t)},r:zn,s:function(e,t){var n=In(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(qn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+In(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function $n(e){return e}var _n,Fn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Hn(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):$n,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):$n,s=e.percent||"%";function l(e){var t=(e=Nn(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,f=e.precision,h=e.trim,m=e.type;"n"===m?(p=!0,m="g"):jn[m]||(null==f&&(f=12),h=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===c?o[1]:/[%p]/.test(m)?s:"",v=jn[m],b=/[defgprs%]/.test(m);function x(e){var o,s,c,x=g,w=y;if("c"===m)w=v(e)+w,e="";else{var S=(e=+e)<0;if(e=v(Math.abs(e),f),h&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&(S=!1),x=(S?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?Fn[8+qn/3]:"")+w+(S&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){w=(46===c?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+w.length,k=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(k+e,k.length?d-w.length:1/0),k=""),n){case"<":e=x+e+w+k;break;case"=":e=x+k+e+w;break;case"^":e=k.slice(0,C=k.length>>1)+x+e+w+k.slice(C);break;default:e=k+x+e+w}return a(e)}return f=null==f?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Nn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=In(Math.abs(e)))?e[1]:NaN}(t)/3))),o=Math.pow(10,-r),i=Fn[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){_n=Hn(e),_n.format,_n.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Bn=new Date,Un=new Date;function Wn(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Wn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Bn.setTime(+t),Un.setTime(+r),e(Bn),e(Un),Math.floor(n(Bn,Un))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Vn=Wn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Vn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Wn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Vn:null},Vn.range;var Gn=1e3,Kn=6e4,Yn=36e5,Xn=864e5,Jn=6048e5;Wn((function(e){e.setTime(Math.floor(e/Gn)*Gn)}),(function(e,t){e.setTime(+e+t*Gn)}),(function(e,t){return(t-e)/Gn}),(function(e){return e.getUTCSeconds()})).range,Wn((function(e){e.setTime(Math.floor(e/Kn)*Kn)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getMinutes()})).range,Wn((function(e){var t=e.getTimezoneOffset()*Kn%Yn;t<0&&(t+=Yn),e.setTime(Math.floor((+e-t)/Yn)*Yn+t)}),(function(e,t){e.setTime(+e+t*Yn)}),(function(e,t){return(t-e)/Yn}),(function(e){return e.getHours()})).range;var Zn=Wn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kn)/Xn}),(function(e){return e.getDate()-1}));function Qn(e){return Wn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kn)/Jn}))}Zn.range;var er=Qn(0),tr=Qn(1),nr=Qn(2),rr=Qn(3),or=Qn(4),ir=Qn(5),ar=Qn(6);er.range,tr.range,nr.range,rr.range,or.range,ir.range,ar.range,Wn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var sr=Wn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));sr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},sr.range,Wn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getUTCMinutes()})).range,Wn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Yn)}),(function(e,t){return(t-e)/Yn}),(function(e){return e.getUTCHours()})).range;var lr=Wn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Xn}),(function(e){return e.getUTCDate()-1}));function cr(e){return Wn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Jn}))}lr.range;var ur=cr(0),dr=cr(1),pr=cr(2),fr=cr(3),hr=cr(4),mr=cr(5),gr=cr(6);ur.range,dr.range,pr.range,fr.range,hr.range,mr.range,gr.range,Wn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var yr=Wn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function vr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function br(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function xr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}yr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},yr.range;var wr,Sr,Cr,kr={"-":"",_:" ",0:"0"},Er=/^\s*\d+/,Tr=/^%/,Rr=/[\\^$*+?|[\]().{}]/g;function Mr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Pr(e){return e.replace(Rr,"\\$&")}function Dr(e){return new RegExp("^(?:"+e.map(Pr).join("|")+")","i")}function Or(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Ir(e,t,n){var r=Er.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qr(e,t,n){var r=Er.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=Er.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $r(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Fr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=Er.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=Er.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=Er.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=Er.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kr(e,t,n){var r=Tr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Yr(e,t,n){var r=Er.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Xr(e,t,n){var r=Er.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Jr(e,t){return Mr(e.getDate(),t,2)}function Zr(e,t){return Mr(e.getHours(),t,2)}function Qr(e,t){return Mr(e.getHours()%12||12,t,2)}function eo(e,t){return Mr(1+Zn.count(sr(e),e),t,3)}function to(e,t){return Mr(e.getMilliseconds(),t,3)}function no(e,t){return to(e,t)+"000"}function ro(e,t){return Mr(e.getMonth()+1,t,2)}function oo(e,t){return Mr(e.getMinutes(),t,2)}function io(e,t){return Mr(e.getSeconds(),t,2)}function ao(e){var t=e.getDay();return 0===t?7:t}function so(e,t){return Mr(er.count(sr(e),e),t,2)}function lo(e,t){var n=e.getDay();return e=n>=4||0===n?or(e):or.ceil(e),Mr(or.count(sr(e),e)+(4===sr(e).getDay()),t,2)}function co(e){return e.getDay()}function uo(e,t){return Mr(tr.count(sr(e),e),t,2)}function po(e,t){return Mr(e.getFullYear()%100,t,2)}function fo(e,t){return Mr(e.getFullYear()%1e4,t,4)}function ho(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Mr(t/60|0,"0",2)+Mr(t%60,"0",2)}function mo(e,t){return Mr(e.getUTCDate(),t,2)}function go(e,t){return Mr(e.getUTCHours(),t,2)}function yo(e,t){return Mr(e.getUTCHours()%12||12,t,2)}function vo(e,t){return Mr(1+lr.count(yr(e),e),t,3)}function bo(e,t){return Mr(e.getUTCMilliseconds(),t,3)}function xo(e,t){return bo(e,t)+"000"}function wo(e,t){return Mr(e.getUTCMonth()+1,t,2)}function So(e,t){return Mr(e.getUTCMinutes(),t,2)}function Co(e,t){return Mr(e.getUTCSeconds(),t,2)}function ko(e){var t=e.getUTCDay();return 0===t?7:t}function Eo(e,t){return Mr(ur.count(yr(e),e),t,2)}function To(e,t){var n=e.getUTCDay();return e=n>=4||0===n?hr(e):hr.ceil(e),Mr(hr.count(yr(e),e)+(4===yr(e).getUTCDay()),t,2)}function Ro(e){return e.getUTCDay()}function Mo(e,t){return Mr(dr.count(yr(e),e),t,2)}function Po(e,t){return Mr(e.getUTCFullYear()%100,t,2)}function Do(e,t){return Mr(e.getUTCFullYear()%1e4,t,4)}function Oo(){return"+0000"}function Io(){return"%"}function qo(e){return+e}function Ao(e){return Math.floor(+e/1e3)}!function(e){wr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Dr(o),u=Or(o),d=Dr(i),p=Or(i),f=Dr(a),h=Or(a),m=Dr(s),g=Or(s),y=Dr(l),v=Or(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Jr,e:Jr,f:no,H:Zr,I:Qr,j:eo,L:to,m:ro,M:oo,p:function(e){return o[+(e.getHours()>=12)]},Q:qo,s:Ao,S:io,u:ao,U:so,V:lo,w:co,W:uo,x:null,X:null,y:po,Y:fo,Z:ho,"%":Io},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:mo,e:mo,f:xo,H:go,I:yo,j:vo,L:bo,m:wo,M:So,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:qo,s:Ao,S:Co,u:ko,U:Eo,V:To,w:Ro,W:Mo,x:null,X:null,y:Po,Y:Do,Z:Oo,"%":Io},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Fr,e:Fr,f:Gr,H:Br,I:Br,j:Hr,L:Vr,m:_r,M:Ur,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Yr,s:Xr,S:Wr,u:qr,U:Ar,V:Nr,w:Ir,W:Lr,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:jr,Y:zr,Z:$r,"%":Kr};function S(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=kr[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=xr(1900);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=br(xr(i.y))).getUTCDay(),r=o>4||0===o?dr.ceil(r):dr(r),r=lr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(xr(i.y))).getDay(),r=o>4||0===o?tr.ceil(r):tr(r),r=Zn.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?br(xr(i.y)).getUTCDay():t(xr(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,br(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in kr?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",vr);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,br);return t.toString=function(){return e},t}}}(e),wr.format,wr.parse,Sr=wr.utcFormat,Cr=wr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var No="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Sr(No),+new Date("2000-01-01T00:00:00.000Z")||Cr(No);const Lo=se.bind(null,!0),zo={},{isArray:jo}=Array;function $o(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function _o(e){return void 0===e}function Fo(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ho(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=_o(e[r||t])?i:e[t],e=e[r||t]})),e}function Bo(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Uo(e,t,n){let r=!0;if($o(e)&&$o(t))return Bo(e,n)===Bo(t,n)&&(Object.keys(e).forEach((o=>{Uo(e[o],t[o],n)||(r=!1)})),r);if(jo(e)&&jo(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!Uo(e[r],t[r],n))return!1;return!0}return e===t}zo.compare=Uo,zo.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Lo({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Uo(i,a)||Fo(t,o)||(_o(a)?r.push({op:"add",path:s,value:i}):$o(i)&&$o(a)?r=r.concat(zo.generate(a,i,s)):jo(i)&&jo(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&_o(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Uo(t,o))return r;if(!_o(t[0])&&_o(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(zo.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{_o(t[o])&&!Fo(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},zo.apply=function(e,t){t.forEach((t=>{let n=Ho(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(jo(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(jo(o)&&jo(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if($o(o)&&$o(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Fo(a,e)&&delete a[e]})),Lo(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Ho(e,t.from);jo(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(jo(n)?n.splice(+r,1):delete n[r]);var a}))},zo.clone=function(e){return Lo({},e)},zo.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},zo.updateObject=function(e,t){Object.keys(e).length?zo.apply(e,zo.generate(e,t)):Lo(e,t)};const Wo=[[2,4,6],[2,4],[3]],Vo=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Go(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Ko(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Go(e[r],t,n)}!function(){let e,t;for(Ko(Wo,1,10),e=0;e<Vo.length;e++)if(Vo[e])for(t=0;t<Vo[e].length;t++)Array.isArray(Vo[e][t])&&Ko(Vo[e][t])}();var Yo={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Xo(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=se(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Yo;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var Jo={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Xo(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Xo(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Zo(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const Qo={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},ei={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},ti={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},ni={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},ri={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},oi={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},ii={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},ai={single:"N",drillDown:"H",cyclic:"C"},si={N:void 0,H:Qo,C:ti},li=(e,t)=>{switch(e.qGrouping){case ai.single:return;case ai.drillDown:return{path:Qo,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case ai.cyclic:return{path:t?ei:ti,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function ci(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=zo.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ui(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=se(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),ci(e,a,c)}))}function di(e){return e.qGrouping===ai.single?e.qFallbackTitle||"":e.title||""}const pi=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case ai.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:Qo,groupItem:!0,title:e.title,selected:!1,children:n}}case ai.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:ti,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:di(e)}}},fi=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},hi=async(e,t,n,r,o)=>{const i=await fi(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===ai.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=si[s],c=s!==ai.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){ui(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function mi({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===ai.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await pi(l,o,a,e),n=c?await hi(a,o,r,i,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function gi(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===ai.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:li(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===ai.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:di(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function yi({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await fi(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){ui(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function vi(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function bi(){return bi=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},bi.apply(null,arguments)}var xi={exports:{}};function wi(){}function Si(){}Si.resetWarningCache=wi;xi.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Si,resetWarningCache:wi};return n.PropTypes=n,n}();var Ci=X(xi.exports),ki={black:"#000",white:"#fff"},Ei={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ti={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Ri={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Mi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Pi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Di={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Oi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}function qi(e){return qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(e)}function Ai(e){return e&&"object"===qi(e)&&e.constructor===Object}function Ni(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Ii({},e):e;return Ai(e)&&Ai(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ai(t[o])&&o in e?r[o]=Ni(e[o],t[o],n):r[o]=t[o])})),r}function Li(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qi(t)?t:t+""}function zi(e,t,n){return(t=Li(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ji(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function $i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function _i(e){if(e.type)return e;if("#"===e.charAt(0))return _i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(ji(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Fi(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Hi(e){var t="hsl"===(e=_i(e)).type?_i(function(e){var t=(e=_i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Fi({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Bi(e,t){return e=_i(e),t=$i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Fi(e)}function Ui(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Wi(e,t){if(null==e)return{};var n,r,o=Ui(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vi=["xs","sm","md","lg","xl"];function Gi(e,t,n){var r;return Ii({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Ii({paddingLeft:t(2),paddingRight:t(2)},n,zi({},e.up("sm"),Ii({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},zi(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),zi(r,e.up("sm"),{minHeight:64}),r)},n)}var Ki={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ki.white,default:Oi[50]},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}},Yi={text:{primary:ki.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Oi[800],default:"#303030"},action:{active:ki.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 Xi(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=_i(e),t=$i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Fi(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=_i(e),t=$i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Fi(e)}(e.main,i)))}function Ji(e){var t=e.primary,n=void 0===t?{light:Ri[300],main:Ri[500],dark:Ri[700]}:t,r=e.secondary,o=void 0===r?{light:Ti.A200,main:Ti.A400,dark:Ti.A700}:r,i=e.error,a=void 0===i?{light:Ei[300],main:Ei[500],dark:Ei[700]}:i,s=e.warning,l=void 0===s?{light:Di[300],main:Di[500],dark:Di[700]}:s,c=e.info,u=void 0===c?{light:Mi[300],main:Mi[500],dark:Mi[700]}:c,d=e.success,p=void 0===d?{light:Pi[300],main:Pi[500],dark:Pi[700]}:d,f=e.type,h=void 0===f?"light":f,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=Wi(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Hi(e),r=Hi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Yi.text.primary)>=g?Yi.text.primary:Ki.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Ii({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(ji(4,t));if("string"!=typeof e.main)throw new Error(ji(5,JSON.stringify(e.main)));return Xi(e,"light",n,v),Xi(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:Yi,light:Ki};return Ni(Ii({common:ki,type:h,primary:w(n),secondary:w(o,"A400","A200","A700"),error:w(a),warning:w(l),info:w(u),success:w(p),grey:Oi,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[h]),b)}function Zi(e){return Math.round(1e5*e)/1e5}function Qi(e){return Zi(e)}var ea={textTransform:"uppercase"},ta='"Roboto", "Helvetica", "Arial", sans-serif';function na(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ta:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=Wi(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,i){return Ii({fontFamily:o,fontWeight:e,fontSize:w(t),lineHeight:n},o===ta?{letterSpacing:"".concat(Zi(r/t),"em")}:{},i,y)},C={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(u,48,1.167,0),h4:S(u,34,1.235,.25),h5:S(u,24,1.334,0),h6:S(p,20,1.6,.15),subtitle1:S(u,16,1.75,.15),subtitle2:S(p,14,1.57,.1),body1:S(u,16,1.5,.15),body2:S(u,14,1.43,.15),button:S(p,14,1.75,.4,ea),caption:S(u,12,1.66,.4),overline:S(u,12,2.66,1,ea)};return Ni(Ii({htmlFontSize:g,pxToRem:w,round:Qi,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:h},C),b,{clone:!1})}function ra(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var oa=["none",ra(0,2,1,-1,0,1,1,0,0,1,3,0),ra(0,3,1,-2,0,2,2,0,0,1,5,0),ra(0,3,3,-2,0,3,4,0,0,1,8,0),ra(0,2,4,-1,0,4,5,0,0,1,10,0),ra(0,3,5,-1,0,5,8,0,0,1,14,0),ra(0,3,5,-1,0,6,10,0,0,1,18,0),ra(0,4,5,-2,0,7,10,1,0,2,16,1),ra(0,5,5,-3,0,8,10,1,0,3,14,2),ra(0,5,6,-3,0,9,12,1,0,3,16,2),ra(0,6,6,-3,0,10,14,1,0,4,18,3),ra(0,6,7,-4,0,11,15,1,0,4,20,3),ra(0,7,8,-4,0,12,17,2,0,5,22,4),ra(0,7,8,-4,0,13,19,2,0,5,24,4),ra(0,7,9,-4,0,14,21,2,0,5,26,4),ra(0,8,9,-5,0,15,22,2,0,6,28,5),ra(0,8,10,-5,0,16,24,2,0,6,30,5),ra(0,8,11,-5,0,17,26,2,0,6,32,5),ra(0,9,11,-5,0,18,28,2,0,7,34,6),ra(0,9,12,-6,0,19,29,2,0,7,36,6),ra(0,10,13,-6,0,20,31,3,0,8,38,7),ra(0,10,13,-6,0,21,33,3,0,8,40,7),ra(0,10,14,-6,0,22,35,3,0,8,42,7),ra(0,11,14,-7,0,23,36,3,0,9,44,8),ra(0,11,15,-7,0,24,38,3,0,9,46,8)],ia={borderRadius:4};function aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sa(e,t){if(e){if("string"==typeof e)return aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aa(e,t):void 0}}function la(e){return function(e){if(Array.isArray(e))return aa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||sa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ua(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var da={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},pa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fa(e){return"".concat(Math.round(e),"ms")}var ha={easing:da,duration:pa,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?pa.standard:n,o=t.easing,i=void 0===o?da.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Wi(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:fa(r)," ").concat(i," ").concat("string"==typeof s?s:fa(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},ma={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ga(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Wi(e,["breakpoints","mixins","palette","spacing","typography"]),d=Ji(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=Wi(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Vi.indexOf(t);return r===Vi.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Vi[r+1]]?n[Vi[r+1]]:t)-a/100).concat(o,")")}return Ii({keys:Vi,values:n,up:l,down:function(e){var t=Vi.indexOf(e)+1,r=n[Vi[t]];return t===Vi.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),f=ua(s),h=Ni({breakpoints:p,direction:"ltr",mixins:Gi(p,f,o),overrides:{},palette:d,props:{},shadows:oa,typography:na(d,c),spacing:f,shape:ia,transitions:ha,zIndex:ma},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return h=g.reduce((function(e,t){return Ni(e,t)}),h)}var ya="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",va=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==va.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[ya]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function xa(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var wa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sa="object"===("undefined"==typeof window?"undefined":wa(window))&&"object"===("undefined"==typeof document?"undefined":wa(document))&&9===document.nodeType;function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Li(r.key),r)}}function ka(e,t,n){return t&&Ca(e.prototype,t),n&&Ca(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ea(e,t){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ea(e,t)}function Ta(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ea(e,t)}function Ra(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ma={}.constructor;function Pa(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Pa);if(e.constructor!==Ma)return e;var t={};for(var n in e)t[n]=Pa(e[n]);return t}function Da(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=Pa(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Oa=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ia=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Oa(e[n]," ");else t=Oa(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function qa(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Aa(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Na(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=qa(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Aa(p+":"+c+Ia(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Aa(h+":"+c+Ia(m)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Aa(g+":"+c+Ia(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Aa(""+e+c+"{"+r,--i)+Aa("}",i)):r}var La=/([[\].#*$><+~=|^:(),"'`\s])/g,za="undefined"!=typeof CSS&&CSS.escape,ja=function(e){return za?za(e):e.replace(La,"\\$1")},$a=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_a=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ra(Ra(o)),s),o.selectorText="."+ja(o.id)),o}Ta(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ia(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ii({},e,{allowEmpty:!0}):e;return Na(this.selectorText,this.style,n)},ka(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}($a),Fa={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new _a(e,t,n)}},Ha={indent:1,children:!0},Ba=/@([\w-]+)/,Ua=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Ba);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new hs(Ii({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Ha);var t=qa(e).linebreak;if(null==e.indent&&(e.indent=Ha.indent),null==e.children&&(e.children=Ha.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Wa=/@container|@media|@supports\s+/,Va={onCreateRule:function(e,t,n){return Wa.test(e)?new Ua(e,t,n):null}},Ga={indent:1,children:!0},Ka=/@keyframes\s+([\w-]+)/,Ya=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ka);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:ja(a(this,i)),this.rules=new hs(Ii({},n,{parent:this})),t)this.rules.add(s,t[s],Ii({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ga);var t=qa(e).linebreak;if(null==e.indent&&(e.indent=Ga.indent),null==e.children&&(e.children=Ga.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Xa=/@keyframes\s+/,Ja=/\$([\w-]+)/g,Za=function(e,t){return"string"==typeof e?e.replace(Ja,(function(e,n){return n in t?t[n]:e})):e},Qa=function(e,t,n){var r=e[t],o=Za(r,n);o!==r&&(e[t]=o)},es={onCreateRule:function(e,t,n){return"string"==typeof e&&Xa.test(e)?new Ya(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Qa(e,"animation-name",n.keyframes),"animation"in e&&Qa(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Za(e,r.keyframes);default:return e}}},ts=function(e){function t(){return e.apply(this,arguments)||this}return Ta(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ii({},e,{allowEmpty:!0}):e;return Na(this.key,this.style,n)},t}($a),ns={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ts(e,t,n):null}},rs=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=qa(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Na(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Na(this.at,this.style,e)},e}(),os=/@font-face/,is={onCreateRule:function(e,t,n){return os.test(e)?new rs(e,t,n):null}},as=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Na(this.key,this.style,e)},e}(),ss={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new as(e,t,n):null}},ls=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),cs={"@charset":!0,"@import":!0,"@namespace":!0},us={onCreateRule:function(e,t,n){return e in cs?new ls(e,t,n):null}},ds=[Fa,Va,es,ns,is,ss,us],ps={process:!0},fs={force:!0,process:!0},hs=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Ii({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+ja(this.classes[d]));var p=Da(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Ii({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof _a?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ya&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _a?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ya&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=ps);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,fs)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,fs)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=qa(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),ms=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ii({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new hs(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),gs=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ys=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Ui(t,["attached"]),o=qa(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},ka(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),vs=new ys,bs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),xs="2f1acc6c3a606b082e5eef5e54414ffb";null==bs[xs]&&(bs[xs]=0);var ws=bs[xs]++,Ss=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ws+o+t:i+n.key+"-"+ws+(o?"-"+o:"")+"-"+t}},Cs=function(e){var t;return function(){return t||(t=e()),t}},ks=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Es=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ia(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ts=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Rs=function(e,t){return e.selectorText=t,e.selectorText===t},Ms=Cs((function(){return document.querySelector("head")}));function Ps(e){var t=vs.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Ms(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ds=Cs((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Os=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Is=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},qs=function(){function e(e){this.getPropertyValue=ks,this.setProperty=Es,this.removeProperty=Ts,this.setSelector=Rs,this.hasInsertedRules=!1,this.cssRules=[],e&&vs.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=Ds();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ps(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Ms().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Is(n,t);if(!1===(o=Os(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=Is(n,t),l=Os(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ms&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),As=0,Ns=function(){function e(e){this.id=As++,this.version="10.10.0",this.plugins=new gs,this.options={id:{minify:!1},createGenerateId:Ss,Renderer:Sa?qs:null,plugins:[]},this.generateId=Ss({minify:!1});for(var t=0;t<ds.length;t++)this.plugins.use(ds[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Ii({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===vs.index?0:vs.index+1);var r=new ms(e,Ii({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),vs.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Ii({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Da(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ls=function(e){return new Ns(e)},zs="object"==typeof CSS&&null!=CSS&&"number"in CSS;function js(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=js(r);i&&(t||(t={}),t[n]=i)}}return t}
7
+ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,y,v,b,x,S,w,C,k,E,T,R,M,P,O,D,I,q,A,N,L,z,j,$,_,F,H,B,U,W;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,c=e.disclaimerService,u=e.tooltipService,d=e.colorService,p=e.pluginService,f=e.themeService,h=e.debouncer,m=e.fontResolver},function(e){g=e.default,y=e,v=e.Children,b=e.isValidElement,x=e.cloneElement,S=e.forwardRef,w=e.useContext},function(e){C=e,k=e.default},function(e){E=e.useOptions,T=e.useElement,R=e.useSelections,M=e.useState,P=e.useLayout,O=e.useTranslator,D=e.useAction,I=e.useEffect,q=e.useModel,A=e.useApp,N=e.useStaleLayout,L=e.usePlugins,z=e.useConstraints,j=e.useTheme,$=e.useAppLayout,_=e.useEmbed,F=e.usePromise,H=e.useRect,B=e.onTakeSnapshot,U=e.useImperativeHandle},function(e){W=e.default}],execute:function(){var V={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const G={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function K(e){return G[e]||e}function Y(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=K(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=K(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function X(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function J(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?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 Z,Q;var ee=function(){if(Q)return Z;Q=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 Z=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Z}(),te=X(ee);const ne=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],re={};ne.forEach((([e,{width:t,height:n}])=>{re[e]={width:t,height:n}}));const oe={getLayoutModes:()=>re,getLayoutMode(e,t){let n;for(n=0;n<ne.length;++n)if(e>=ne[n][1].width&&t>=ne[n][1].height)return ne[n][0];return"SPARK"}};function ie(e,t){return{layoutModes:oe.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const ae=/^[A-Z][A-z0-9_]*$/i,se={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||ae.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function le(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ce=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ue=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),de=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),pe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>ce.test(e),isRtlChar:e=>ue.test(e)||de.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],pe.isLtrChar(r))return"ltr";if(pe.isRtlChar(r))return"rtl"}return"ltr"}},fe={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?fe.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=pe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=pe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:pe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=pe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=pe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,fe.getColorSymbol(e,t)]:[fe.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=pe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=pe.detectTextDirection(e.value);let l;return l=o?r?[e.value,fe.getColorSymbol(t,n)]:[fe.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function he(e){const t=parseInt(e,10);if(!isNaN(t))return t}const me=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function ge(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles(),o=n.styleService.label.value.getStyle(),i=o.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:i&&!e.onBackground?me(t):o.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:he(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function ye(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ve(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}var xe=.7,Se=1/xe,we="\\s*([+-]?\\d+)\\s*",Ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ee=/^#([0-9a-f]{3,8})$/,Te=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),Re=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Me=new RegExp(`^rgba\\(${we},${we},${we},${Ce}\\)$`),Pe=new RegExp(`^rgba\\(${ke},${ke},${ke},${Ce}\\)$`),Oe=new RegExp(`^hsl\\(${Ce},${ke},${ke}\\)$`),De=new RegExp(`^hsla\\(${Ce},${ke},${ke},${Ce}\\)$`),Ie={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 qe(){return this.rgb().formatHex()}function Ae(){return this.rgb().formatRgb()}function Ne(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Le(t):3===n?new $e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ze(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=Te.exec(e))?new $e(t[1],t[2],t[3],1):(t=Re.exec(e))?new $e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Me.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Pe.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?We(t[1],t[2]/100,t[3]/100,1):(t=De.exec(e))?We(t[1],t[2]/100,t[3]/100,t[4]):Ie.hasOwnProperty(e)?Le(Ie[e]):"transparent"===e?new $e(NaN,NaN,NaN,0):null}function Le(e){return new $e(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,n,r){return r<=0&&(e=t=n=NaN),new $e(e,t,n,r)}function je(e){return e instanceof be||(e=Ne(e)),e?new $e((e=e.rgb()).r,e.g,e.b,e.opacity):new $e}function $e(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _e(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function Fe(){const e=He(this.opacity);return`${1===e?"rgb(":"rgba("}${Be(this.r)}, ${Be(this.g)}, ${Be(this.b)}${1===e?")":`, ${e})`}`}function He(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Be(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=Be(e))<16?"0":"")+e.toString(16)}function We(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ge(e,t,n,r)}function Ve(e){if(e instanceof Ge)return new Ge(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Ne(e)),!e)return new Ge;if(e instanceof Ge)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 Ge(a,s,l,e.opacity)}function Ge(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ke(e){return(e=(e||0)%360)<0?e+360:e}function Ye(e){return Math.max(0,Math.min(1,e||0))}function Xe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ye(be,Ne,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Ae,toString:Ae}),ye($e,(function(e,t,n,r){return 1===arguments.length?je(e):new $e(e,t,n,null==r?1:r)}),ve(be,{brighter(e){return e=null==e?Se:Math.pow(Se,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Be(this.r),Be(this.g),Be(this.b),He(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:_e,formatHex:_e,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fe,toString:Fe})),ye(Ge,(function(e,t,n,r){return 1===arguments.length?Ve(e):new Ge(e,t,n,null==r?1:r)}),ve(be,{brighter(e){return e=null==e?Se:Math.pow(Se,e),new Ge(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xe:Math.pow(xe,e),new Ge(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 $e(Xe(e>=240?e-240:e+120,o,r),Xe(e,o,r),Xe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ge(Ke(this.h),Ye(this.s),Ye(this.l),He(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=He(this.opacity);return`${1===e?"hsl(":"hsla("}${Ke(this.h)}, ${100*Ye(this.s)}%, ${100*Ye(this.l)}%${1===e?")":`, ${e})`}`}}));const Je=Math.PI/180,Ze=180/Math.PI,Qe=.96422,et=1,tt=.82521,nt=4/29,rt=6/29,ot=3*rt*rt,it=rt*rt*rt;function at(e){if(e instanceof st)return new st(e.l,e.a,e.b,e.opacity);if(e instanceof ft)return ht(e);e instanceof $e||(e=je(e));var t,n,r=dt(e.r),o=dt(e.g),i=dt(e.b),a=lt((.2225045*r+.7168786*o+.0606169*i)/et);return r===o&&o===i?t=n=a:(t=lt((.4360747*r+.3850649*o+.1430804*i)/Qe),n=lt((.0139322*r+.0971045*o+.7141733*i)/tt)),new st(116*a-16,500*(t-a),200*(a-n),e.opacity)}function st(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function lt(e){return e>it?Math.pow(e,1/3):e/ot+nt}function ct(e){return e>rt?e*e*e:ot*(e-nt)}function ut(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ft)return new ft(e.h,e.c,e.l,e.opacity);if(e instanceof st||(e=at(e)),0===e.a&&0===e.b)return new ft(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ze;return new ft(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ft(e,t,n,null==r?1:r)}function ft(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ht(e){if(isNaN(e.h))return new st(e.l,0,0,e.opacity);var t=e.h*Je;return new st(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function mt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}ye(st,(function(e,t,n,r){return 1===arguments.length?at(e):new st(e,t,n,null==r?1:r)}),ve(be,{brighter(e){return new st(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new st(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 $e(ut(3.1338561*(t=Qe*ct(t))-1.6168667*(e=et*ct(e))-.4906146*(n=tt*ct(n))),ut(-.9787684*t+1.9161415*e+.033454*n),ut(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ye(ft,pt,ve(be,{brighter(e){return new ft(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ft(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ht(this).rgb()}})),function(e){var t;1===e.length&&(t=e,e=function(e,n){return mt(t(e),n)})}(mt);var gt="$";function yt(){}function vt(e,t){var n=new yt;if(e instanceof yt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function bt(){}yt.prototype=vt.prototype={constructor:yt,has:function(e){return gt+e in this},get:function(e){return this[gt+e]},set:function(e,t){return this[gt+e]=t,this},remove:function(e){var t=gt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===gt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===gt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===gt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===gt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===gt&&++e;return e},empty:function(){for(var e in this)if(e[0]===gt)return!1;return!0},each:function(e){for(var t in this)t[0]===gt&&e(this[t],t.slice(1),this)}};var xt=vt.prototype;function St(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ct(){}bt.prototype={constructor:bt,has:xt.has,add:function(e){return this[gt+(e+="")]=e,this},remove:xt.remove,clear:xt.clear,values:xt.keys,size:xt.size,empty:xt.empty,each:xt.each};var kt=.7,Et=1/kt,Tt="\\s*([+-]?\\d+)\\s*",Rt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pt=/^#([0-9a-f]{3})$/,Ot=/^#([0-9a-f]{6})$/,Dt=new RegExp("^rgb\\("+[Tt,Tt,Tt]+"\\)$"),It=new RegExp("^rgb\\("+[Mt,Mt,Mt]+"\\)$"),qt=new RegExp("^rgba\\("+[Tt,Tt,Tt,Rt]+"\\)$"),At=new RegExp("^rgba\\("+[Mt,Mt,Mt,Rt]+"\\)$"),Nt=new RegExp("^hsl\\("+[Rt,Mt,Mt]+"\\)$"),Lt=new RegExp("^hsla\\("+[Rt,Mt,Mt,Rt]+"\\)$"),zt={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 jt(e){var t;return e=(e+"").trim().toLowerCase(),(t=Pt.exec(e))?new Bt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Ot.exec(e))?$t(parseInt(t[1],16)):(t=Dt.exec(e))?new Bt(t[1],t[2],t[3],1):(t=It.exec(e))?new Bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qt.exec(e))?_t(t[1],t[2],t[3],t[4]):(t=At.exec(e))?_t(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nt.exec(e))?Wt(t[1],t[2]/100,t[3]/100,1):(t=Lt.exec(e))?Wt(t[1],t[2]/100,t[3]/100,t[4]):zt.hasOwnProperty(e)?$t(zt[e]):"transparent"===e?new Bt(NaN,NaN,NaN,0):null}function $t(e){return new Bt(e>>16&255,e>>8&255,255&e,1)}function _t(e,t,n,r){return r<=0&&(e=t=n=NaN),new Bt(e,t,n,r)}function Ft(e){return e instanceof Ct||(e=jt(e)),e?new Bt((e=e.rgb()).r,e.g,e.b,e.opacity):new Bt}function Ht(e,t,n,r){return 1===arguments.length?Ft(e):new Bt(e,t,n,null==r?1:r)}function Bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ut(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Wt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vt(e,t,n,r)}function Vt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}St(Ct,jt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),St(Bt,Ht,wt(Ct,{brighter:function(e){return e=null==e?Et:Math.pow(Et,e),new Bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?kt:Math.pow(kt,e),new Bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Ut(this.r)+Ut(this.g)+Ut(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),St(Vt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Vt)return new Vt(e.h,e.s,e.l,e.opacity);if(e instanceof Ct||(e=jt(e)),!e)return new Vt;if(e instanceof Vt)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 Vt(a,s,l,e.opacity)}(e):new Vt(e,t,n,null==r?1:r)}),wt(Ct,{brighter:function(e){return e=null==e?Et:Math.pow(Et,e),new Vt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?kt:Math.pow(kt,e),new Vt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 Bt(Gt(e>=240?e-240:e+120,o,r),Gt(e,o,r),Gt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Kt=Math.PI/180,Yt=180/Math.PI,Xt=.96422,Jt=1,Zt=.82521,Qt=4/29,en=6/29,tn=3*en*en,nn=en*en*en;function rn(e){if(e instanceof on)return new on(e.l,e.a,e.b,e.opacity);if(e instanceof un){if(isNaN(e.h))return new on(e.l,0,0,e.opacity);var t=e.h*Kt;return new on(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Bt||(e=Ft(e));var n,r,o=cn(e.r),i=cn(e.g),a=cn(e.b),s=an((.2225045*o+.7168786*i+.0606169*a)/Jt);return o===i&&i===a?n=r=s:(n=an((.4360747*o+.3850649*i+.1430804*a)/Xt),r=an((.0139322*o+.0971045*i+.7141733*a)/Zt)),new on(116*s-16,500*(n-s),200*(s-r),e.opacity)}function on(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function an(e){return e>nn?Math.pow(e,1/3):e/tn+Qt}function sn(e){return e>en?e*e*e:tn*(e-Qt)}function ln(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function un(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}St(on,(function(e,t,n,r){return 1===arguments.length?rn(e):new on(e,t,n,null==r?1:r)}),wt(Ct,{brighter:function(e){return new on(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new on(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 Bt(ln(3.1338561*(t=Xt*sn(t))-1.6168667*(e=Jt*sn(e))-.4906146*(n=Zt*sn(n))),ln(-.9787684*t+1.9161415*e+.033454*n),ln(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),St(un,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof un)return new un(e.h,e.c,e.l,e.opacity);if(e instanceof on||(e=rn(e)),0===e.a&&0===e.b)return new un(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Yt;return new un(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new un(e,t,n,null==r?1:r)}),wt(Ct,{brighter:function(e){return new un(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new un(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return rn(this).rgb()}}));var dn=-.14861,pn=1.78277,fn=-.29227,hn=-.90649,mn=1.97294,gn=mn*hn,yn=mn*pn,vn=pn*fn-hn*dn;function bn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xn)return new xn(e.h,e.s,e.l,e.opacity);e instanceof Bt||(e=Ft(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(vn*r+gn*t-yn*n)/(vn+gn-yn),i=r-o,a=(mn*(n-o)-fn*i)/hn,s=Math.sqrt(a*a+i*i)/(mn*o*(1-o)),l=s?Math.atan2(a,i)*Yt-120:NaN;return new xn(l<0?l+360:l,s,o,e.opacity)}(e):new xn(e,t,n,null==r?1:r)}function xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sn(e){return function(){return e}}function wn(e,t){return function(n){return e+n*t}}function Cn(e){return 1==(e=+e)?kn: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):Sn(isNaN(t)?n:t)}}function kn(e,t){var n=t-e;return n?wn(e,n):Sn(isNaN(e)?t:e)}function En(e){return function t(n){function r(t,r){var o=e((t=bn(t)).h,(r=bn(r)).h),i=kn(t.s,r.s),a=kn(t.l,r.l),s=kn(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Tn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}St(xn,bn,wt(Ct,{brighter:function(e){return e=null==e?Et:Math.pow(Et,e),new xn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?kt:Math.pow(kt,e),new xn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Kt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Bt(255*(t+n*(dn*r+pn*o)),255*(t+n*(fn*r+hn*o)),255*(t+n*(mn*r)),this.opacity)}})),function e(t){var n=Cn(t);function r(e,t){var r=n((e=Ht(e)).r,(t=Ht(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=kn(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),En((function(e,t){var n=t-e;return n?wn(e,n>180||n<-180?n-360*Math.round(n/360):n):Sn(isNaN(e)?t:e)})),En(kn);var Rn,Mn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pn(e){return new On(e)}function On(e){if(!(t=Mn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Dn(e,t){var n=Tn(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Pn.prototype=On.prototype,On.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var In={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Dn(100*e,t)},r:Dn,s:function(e,t){var n=Tn(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Rn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Tn(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function qn(e){return e}var An,Nn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ln(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):qn,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):qn,s=e.percent||"%";function l(e){var t=(e=Pn(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,f=e.precision,h=e.trim,m=e.type;"n"===m?(p=!0,m="g"):In[m]||(null==f&&(f=12),h=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===c?o[1]:/[%p]/.test(m)?s:"",v=In[m],b=/[defgprs%]/.test(m);function x(e){var o,s,c,x=g,S=y;if("c"===m)S=v(e)+S,e="";else{var w=(e=+e)<0;if(e=v(Math.abs(e),f),h&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),w&&0==+e&&(w=!1),x=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===m?Nn[8+Rn/3]:"")+S+(w&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){S=(46===c?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+S.length,k=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(k+e,k.length?d-S.length:1/0),k=""),n){case"<":e=x+e+S+k;break;case"=":e=x+k+e+S;break;case"^":e=k.slice(0,C=k.length>>1)+x+e+S+k.slice(C);break;default:e=k+x+e+S}return a(e)}return f=null==f?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n,r=l(((e=Pn(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=Tn(Math.abs(n)))?n[1]:NaN)/3)))),i=Math.pow(10,-o),a=Nn[8+o/3];return function(e){return r(i*e)+a}}}}!function(e){An=Ln(e),An.format,An.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var zn=new Date,jn=new Date;function $n(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return $n((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return zn.setTime(+t),jn.setTime(+r),e(zn),e(jn),Math.floor(n(zn,jn))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var _n=$n((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));_n.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?$n((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):_n:null},_n.range;var Fn=1e3,Hn=6e4,Bn=36e5,Un=864e5,Wn=6048e5;$n((function(e){e.setTime(Math.floor(e/Fn)*Fn)}),(function(e,t){e.setTime(+e+t*Fn)}),(function(e,t){return(t-e)/Fn}),(function(e){return e.getUTCSeconds()})).range,$n((function(e){e.setTime(Math.floor(e/Hn)*Hn)}),(function(e,t){e.setTime(+e+t*Hn)}),(function(e,t){return(t-e)/Hn}),(function(e){return e.getMinutes()})).range,$n((function(e){var t=e.getTimezoneOffset()*Hn%Bn;t<0&&(t+=Bn),e.setTime(Math.floor((+e-t)/Bn)*Bn+t)}),(function(e,t){e.setTime(+e+t*Bn)}),(function(e,t){return(t-e)/Bn}),(function(e){return e.getHours()})).range;var Vn=$n((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hn)/Un}),(function(e){return e.getDate()-1}));function Gn(e){return $n((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hn)/Wn}))}Vn.range;var Kn=Gn(0),Yn=Gn(1),Xn=Gn(2),Jn=Gn(3),Zn=Gn(4),Qn=Gn(5),er=Gn(6);Kn.range,Yn.range,Xn.range,Jn.range,Zn.range,Qn.range,er.range,$n((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var tr=$n((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));tr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$n((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},tr.range,$n((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Hn)}),(function(e,t){return(t-e)/Hn}),(function(e){return e.getUTCMinutes()})).range,$n((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Bn)}),(function(e,t){return(t-e)/Bn}),(function(e){return e.getUTCHours()})).range;var nr=$n((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Un}),(function(e){return e.getUTCDate()-1}));function rr(e){return $n((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Wn}))}nr.range;var or=rr(0),ir=rr(1),ar=rr(2),sr=rr(3),lr=rr(4),cr=rr(5),ur=rr(6);or.range,ir.range,ar.range,sr.range,lr.range,cr.range,ur.range,$n((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var dr=$n((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function pr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function fr(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function hr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}dr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$n((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},dr.range;var mr,gr,yr,vr={"-":"",_:" ",0:"0"},br=/^\s*\d+/,xr=/^%/,Sr=/[\\^$*+?|[\]().{}]/g;function wr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Cr(e){return e.replace(Sr,"\\$&")}function kr(e){return new RegExp("^(?:"+e.map(Cr).join("|")+")","i")}function Er(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Tr(e,t,n){var r=br.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Rr(e,t,n){var r=br.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Mr(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Pr(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Dr(e,t,n){var r=br.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ir(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function qr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Nr(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=br.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function jr(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function $r(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=br.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=br.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Hr(e,t,n){var r=xr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Br(e,t,n){var r=br.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=br.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Wr(e,t){return wr(e.getDate(),t,2)}function Vr(e,t){return wr(e.getHours(),t,2)}function Gr(e,t){return wr(e.getHours()%12||12,t,2)}function Kr(e,t){return wr(1+Vn.count(tr(e),e),t,3)}function Yr(e,t){return wr(e.getMilliseconds(),t,3)}function Xr(e,t){return Yr(e,t)+"000"}function Jr(e,t){return wr(e.getMonth()+1,t,2)}function Zr(e,t){return wr(e.getMinutes(),t,2)}function Qr(e,t){return wr(e.getSeconds(),t,2)}function eo(e){var t=e.getDay();return 0===t?7:t}function to(e,t){return wr(Kn.count(tr(e),e),t,2)}function no(e,t){var n=e.getDay();return e=n>=4||0===n?Zn(e):Zn.ceil(e),wr(Zn.count(tr(e),e)+(4===tr(e).getDay()),t,2)}function ro(e){return e.getDay()}function oo(e,t){return wr(Yn.count(tr(e),e),t,2)}function io(e,t){return wr(e.getFullYear()%100,t,2)}function ao(e,t){return wr(e.getFullYear()%1e4,t,4)}function so(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+wr(t/60|0,"0",2)+wr(t%60,"0",2)}function lo(e,t){return wr(e.getUTCDate(),t,2)}function co(e,t){return wr(e.getUTCHours(),t,2)}function uo(e,t){return wr(e.getUTCHours()%12||12,t,2)}function po(e,t){return wr(1+nr.count(dr(e),e),t,3)}function fo(e,t){return wr(e.getUTCMilliseconds(),t,3)}function ho(e,t){return fo(e,t)+"000"}function mo(e,t){return wr(e.getUTCMonth()+1,t,2)}function go(e,t){return wr(e.getUTCMinutes(),t,2)}function yo(e,t){return wr(e.getUTCSeconds(),t,2)}function vo(e){var t=e.getUTCDay();return 0===t?7:t}function bo(e,t){return wr(or.count(dr(e),e),t,2)}function xo(e,t){var n=e.getUTCDay();return e=n>=4||0===n?lr(e):lr.ceil(e),wr(lr.count(dr(e),e)+(4===dr(e).getUTCDay()),t,2)}function So(e){return e.getUTCDay()}function wo(e,t){return wr(ir.count(dr(e),e),t,2)}function Co(e,t){return wr(e.getUTCFullYear()%100,t,2)}function ko(e,t){return wr(e.getUTCFullYear()%1e4,t,4)}function Eo(){return"+0000"}function To(){return"%"}function Ro(e){return+e}function Mo(e){return Math.floor(+e/1e3)}!function(e){mr=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=kr(o),u=Er(o),d=kr(i),p=Er(i),f=kr(a),h=Er(a),m=kr(s),g=Er(s),y=kr(l),v=Er(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Wr,e:Wr,f:Xr,H:Vr,I:Gr,j:Kr,L:Yr,m:Jr,M:Zr,p:function(e){return o[+(e.getHours()>=12)]},Q:Ro,s:Mo,S:Qr,u:eo,U:to,V:no,w:ro,W:oo,x:null,X:null,y:io,Y:ao,Z:so,"%":To},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:lo,e:lo,f:ho,H:co,I:uo,j:po,L:fo,m:mo,M:go,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Ro,s:Mo,S:yo,u:vo,U:bo,V:xo,w:So,W:wo,x:null,X:null,y:Co,Y:ko,Z:Eo,"%":To},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Nr,e:Nr,f:Fr,H:zr,I:zr,j:Lr,L:_r,m:Ar,M:jr,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Br,s:Ur,S:$r,u:Rr,U:Mr,V:Pr,w:Tr,W:Or,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:Ir,Y:Dr,Z:qr,"%":Hr};function w(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=vr[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=hr(1900);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=fr(hr(i.y))).getUTCDay(),r=o>4||0===o?ir.ceil(r):ir(r),r=nr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(hr(i.y))).getDay(),r=o>4||0===o?Yn.ceil(r):Yn(r),r=Vn.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?fr(hr(i.y)).getUTCDay():t(hr(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,fr(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=S[o in vr?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",pr);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,fr);return t.toString=function(){return e},t}}}(e),mr.format,mr.parse,gr=mr.utcFormat,yr=mr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Po="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||gr(Po),+new Date("2000-01-01T00:00:00.000Z")||yr(Po);const Oo=te.bind(null,!0),Do={},{isArray:Io}=Array;function qo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ao(e){return void 0===e}function No(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Lo(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Ao(e[r||t])?i:e[t],e=e[r||t]})),e}function zo(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function jo(e,t,n){let r=!0;if(qo(e)&&qo(t))return zo(e,n)===zo(t,n)&&(Object.keys(e).forEach((o=>{jo(e[o],t[o],n)||(r=!1)})),r);if(Io(e)&&Io(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!jo(e[r],t[r],n))return!1;return!0}return e===t}Do.compare=jo,Do.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Oo({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;jo(i,a)||No(t,o)||(Ao(a)?r.push({op:"add",path:s,value:i}):qo(i)&&qo(a)?r=r.concat(Do.generate(a,i,s)):Io(i)&&Io(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Ao(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(jo(t,o))return r;if(!Ao(t[0])&&Ao(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Do.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{Ao(t[o])&&!No(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Do.apply=function(e,t){t.forEach((t=>{let n=Lo(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Io(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Io(o)&&Io(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(qo(o)&&qo(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!No(a,e)&&delete a[e]})),Oo(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Lo(e,t.from);Io(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Io(n)?n.splice(+r,1):delete n[r]);var a}))},Do.clone=function(e){return Oo({},e)},Do.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Do.updateObject=function(e,t){Object.keys(e).length?Do.apply(e,Do.generate(e,t)):Oo(e,t)};const $o=[[2,4,6],[2,4],[3]],_o=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Fo(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Ho(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Fo(e[r],t,n)}!function(){let e,t;for(Ho($o,1,10),e=0;e<_o.length;e++)if(_o[e])for(t=0;t<_o[e].length;t++)Array.isArray(_o[e][t])&&Ho(_o[e][t])}();var Bo={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Uo(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=te(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Bo;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var Wo={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Uo(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Uo(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Vo(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const Go={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},Ko={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Yo={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},Xo={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},Jo={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},Zo={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},Qo={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},ei={single:"N",drillDown:"H",cyclic:"C"},ti={N:void 0,H:Go,C:Yo},ni=(e,t)=>{switch(e.qGrouping){case ei.single:return;case ei.drillDown:return{path:Go,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case ei.cyclic:return{path:t?Ko:Yo,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function ri(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Do.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function oi(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=te(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),ri(e,a,c)}))}function ii(e){return e.qGrouping===ei.single?e.qFallbackTitle||"":e.title||""}const ai=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case ei.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:Go,groupItem:!0,title:e.title,selected:!1,children:n}}case ei.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:Yo,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:ii(e)}}},si=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},li=async(e,t,n,r,o)=>{const i=await si(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===ei.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=ti[s],c=s!==ei.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){oi(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function ci({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===ei.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await ai(l,o,a,e),n=c?await li(a,o,r,i,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function ui(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===ei.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:ni(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===ei.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:ii(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function di({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await si(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){oi(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function pi(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function fi(){return fi=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},fi.apply(null,arguments)}var hi,mi,gi,yi,vi,bi={exports:{}};function xi(){if(mi)return hi;mi=1;return hi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Si(){if(yi)return gi;yi=1;var e=xi();function t(){}function n(){}return n.resetWarningCache=t,gi=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function wi(){return vi||(vi=1,bi.exports=Si()()),bi.exports}var Ci=X(wi()),ki={black:"#000",white:"#fff"},Ei={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ti={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Ri={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Mi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Pi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Oi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Di={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}function qi(e){return qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(e)}function Ai(e){return e&&"object"===qi(e)&&e.constructor===Object}function Ni(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Ii({},e):e;return Ai(e)&&Ai(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ai(t[o])&&o in e?r[o]=Ni(e[o],t[o],n):r[o]=t[o])})),r}function Li(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qi(t)?t:t+""}function zi(e,t,n){return(t=Li(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ji(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function $i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function _i(e){if(e.type)return e;if("#"===e.charAt(0))return _i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(ji(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Fi(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Hi(e){var t="hsl"===(e=_i(e)).type?_i(function(e){var t=(e=_i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Fi({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Bi(e,t){return e=_i(e),t=$i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Fi(e)}function Ui(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Wi(e,t){if(null==e)return{};var n,r,o=Ui(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vi=["xs","sm","md","lg","xl"];function Gi(e,t,n){var r;return Ii({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Ii({paddingLeft:t(2),paddingRight:t(2)},n,zi({},e.up("sm"),Ii({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},zi(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),zi(r,e.up("sm"),{minHeight:64}),r)},n)}var Ki={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ki.white,default:Di[50]},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}},Yi={text:{primary:ki.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Di[800],default:"#303030"},action:{active:ki.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 Xi(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=_i(e),t=$i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Fi(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=_i(e),t=$i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Fi(e)}(e.main,i)))}function Ji(e){var t=e.primary,n=void 0===t?{light:Ri[300],main:Ri[500],dark:Ri[700]}:t,r=e.secondary,o=void 0===r?{light:Ti.A200,main:Ti.A400,dark:Ti.A700}:r,i=e.error,a=void 0===i?{light:Ei[300],main:Ei[500],dark:Ei[700]}:i,s=e.warning,l=void 0===s?{light:Oi[300],main:Oi[500],dark:Oi[700]}:s,c=e.info,u=void 0===c?{light:Mi[300],main:Mi[500],dark:Mi[700]}:c,d=e.success,p=void 0===d?{light:Pi[300],main:Pi[500],dark:Pi[700]}:d,f=e.type,h=void 0===f?"light":f,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=Wi(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Hi(e),r=Hi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Yi.text.primary)>=g?Yi.text.primary:Ki.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Ii({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(ji(4,t));if("string"!=typeof e.main)throw new Error(ji(5,JSON.stringify(e.main)));return Xi(e,"light",n,v),Xi(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:Yi,light:Ki};return Ni(Ii({common:ki,type:h,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(p),grey:Di,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},w[h]),b)}function Zi(e){return Math.round(1e5*e)/1e5}function Qi(e){return Zi(e)}var ea={textTransform:"uppercase"},ta='"Roboto", "Helvetica", "Arial", sans-serif';function na(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ta:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=Wi(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,i){return Ii({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===ta?{letterSpacing:"".concat(Zi(r/t),"em")}:{},i,y)},C={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(p,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(p,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(p,14,1.75,.4,ea),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,ea)};return Ni(Ii({htmlFontSize:g,pxToRem:S,round:Qi,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:h},C),b,{clone:!1})}function ra(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var oa=["none",ra(0,2,1,-1,0,1,1,0,0,1,3,0),ra(0,3,1,-2,0,2,2,0,0,1,5,0),ra(0,3,3,-2,0,3,4,0,0,1,8,0),ra(0,2,4,-1,0,4,5,0,0,1,10,0),ra(0,3,5,-1,0,5,8,0,0,1,14,0),ra(0,3,5,-1,0,6,10,0,0,1,18,0),ra(0,4,5,-2,0,7,10,1,0,2,16,1),ra(0,5,5,-3,0,8,10,1,0,3,14,2),ra(0,5,6,-3,0,9,12,1,0,3,16,2),ra(0,6,6,-3,0,10,14,1,0,4,18,3),ra(0,6,7,-4,0,11,15,1,0,4,20,3),ra(0,7,8,-4,0,12,17,2,0,5,22,4),ra(0,7,8,-4,0,13,19,2,0,5,24,4),ra(0,7,9,-4,0,14,21,2,0,5,26,4),ra(0,8,9,-5,0,15,22,2,0,6,28,5),ra(0,8,10,-5,0,16,24,2,0,6,30,5),ra(0,8,11,-5,0,17,26,2,0,6,32,5),ra(0,9,11,-5,0,18,28,2,0,7,34,6),ra(0,9,12,-6,0,19,29,2,0,7,36,6),ra(0,10,13,-6,0,20,31,3,0,8,38,7),ra(0,10,13,-6,0,21,33,3,0,8,40,7),ra(0,10,14,-6,0,22,35,3,0,8,42,7),ra(0,11,14,-7,0,23,36,3,0,9,44,8),ra(0,11,15,-7,0,24,38,3,0,9,46,8)],ia={borderRadius:4};function aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sa(e,t){if(e){if("string"==typeof e)return aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aa(e,t):void 0}}function la(e){return function(e){if(Array.isArray(e))return aa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||sa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ua(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var da={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},pa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fa(e){return"".concat(Math.round(e),"ms")}var ha={easing:da,duration:pa,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?pa.standard:n,o=t.easing,i=void 0===o?da.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Wi(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:fa(r)," ").concat(i," ").concat("string"==typeof s?s:fa(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},ma={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ga(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Wi(e,["breakpoints","mixins","palette","spacing","typography"]),d=Ji(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=Wi(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Vi.indexOf(t);return r===Vi.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Vi[r+1]]?n[Vi[r+1]]:t)-a/100).concat(o,")")}return Ii({keys:Vi,values:n,up:l,down:function(e){var t=Vi.indexOf(e)+1,r=n[Vi[t]];return t===Vi.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),f=ua(s),h=Ni({breakpoints:p,direction:"ltr",mixins:Gi(p,f,o),overrides:{},palette:d,props:{},shadows:oa,typography:na(d,c),spacing:f,shape:ia,transitions:ha,zIndex:ma},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return h=g.reduce((function(e,t){return Ni(e,t)}),h)}var ya="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",va=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==va.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[ya]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function xa(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa="object"===("undefined"==typeof window?"undefined":Sa(window))&&"object"===("undefined"==typeof document?"undefined":Sa(document))&&9===document.nodeType;function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Li(r.key),r)}}function ka(e,t,n){return t&&Ca(e.prototype,t),n&&Ca(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ea(e,t){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ea(e,t)}function Ta(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ea(e,t)}function Ra(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ma={}.constructor;function Pa(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Pa);if(e.constructor!==Ma)return e;var t={};for(var n in e)t[n]=Pa(e[n]);return t}function Oa(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=Pa(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Da=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ia=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Da(e[n]," ");else t=Da(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function qa(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Aa(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Na(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=qa(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Aa(p+":"+c+Ia(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Aa(h+":"+c+Ia(m)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Aa(g+":"+c+Ia(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Aa(""+e+c+"{"+r,--i)+Aa("}",i)):r}var La=/([[\].#*$><+~=|^:(),"'`\s])/g,za="undefined"!=typeof CSS&&CSS.escape,ja=function(e){return za?za(e):e.replace(La,"\\$1")},$a=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_a=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ra(Ra(o)),s),o.selectorText="."+ja(o.id)),o}Ta(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ia(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ii({},e,{allowEmpty:!0}):e;return Na(this.selectorText,this.style,n)},ka(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}($a),Fa={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new _a(e,t,n)}},Ha={indent:1,children:!0},Ba=/@([\w-]+)/,Ua=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Ba);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new hs(Ii({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Ha);var t=qa(e).linebreak;if(null==e.indent&&(e.indent=Ha.indent),null==e.children&&(e.children=Ha.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Wa=/@container|@media|@supports\s+/,Va={onCreateRule:function(e,t,n){return Wa.test(e)?new Ua(e,t,n):null}},Ga={indent:1,children:!0},Ka=/@keyframes\s+([\w-]+)/,Ya=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ka);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:ja(a(this,i)),this.rules=new hs(Ii({},n,{parent:this})),t)this.rules.add(s,t[s],Ii({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ga);var t=qa(e).linebreak;if(null==e.indent&&(e.indent=Ga.indent),null==e.children&&(e.children=Ga.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Xa=/@keyframes\s+/,Ja=/\$([\w-]+)/g,Za=function(e,t){return"string"==typeof e?e.replace(Ja,(function(e,n){return n in t?t[n]:e})):e},Qa=function(e,t,n){var r=e[t],o=Za(r,n);o!==r&&(e[t]=o)},es={onCreateRule:function(e,t,n){return"string"==typeof e&&Xa.test(e)?new Ya(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Qa(e,"animation-name",n.keyframes),"animation"in e&&Qa(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Za(e,r.keyframes);default:return e}}},ts=function(e){function t(){return e.apply(this,arguments)||this}return Ta(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ii({},e,{allowEmpty:!0}):e;return Na(this.key,this.style,n)},t}($a),ns={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ts(e,t,n):null}},rs=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=qa(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Na(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Na(this.at,this.style,e)},e}(),os=/@font-face/,is={onCreateRule:function(e,t,n){return os.test(e)?new rs(e,t,n):null}},as=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Na(this.key,this.style,e)},e}(),ss={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new as(e,t,n):null}},ls=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),cs={"@charset":!0,"@import":!0,"@namespace":!0},us={onCreateRule:function(e,t,n){return e in cs?new ls(e,t,n):null}},ds=[Fa,Va,es,ns,is,ss,us],ps={process:!0},fs={force:!0,process:!0},hs=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Ii({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+ja(this.classes[d]));var p=Oa(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Ii({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof _a?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ya&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _a?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ya&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=ps);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,fs)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,fs)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=qa(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),ms=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ii({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new hs(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),gs=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ys=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Ui(t,["attached"]),o=qa(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},ka(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),vs=new ys,bs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),xs="2f1acc6c3a606b082e5eef5e54414ffb";null==bs[xs]&&(bs[xs]=0);var Ss=bs[xs]++,ws=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Ss+o+t:i+n.key+"-"+Ss+(o?"-"+o:"")+"-"+t}},Cs=function(e){var t;return function(){return t||(t=e()),t}},ks=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Es=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ia(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ts=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Rs=function(e,t){return e.selectorText=t,e.selectorText===t},Ms=Cs((function(){return document.querySelector("head")}));function Ps(e){var t=vs.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Ms(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Os=Cs((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ds=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Is=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},qs=function(){function e(e){this.getPropertyValue=ks,this.setProperty=Es,this.removeProperty=Ts,this.setSelector=Rs,this.hasInsertedRules=!1,this.cssRules=[],e&&vs.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=Os();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ps(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Ms().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Is(n,t);if(!1===(o=Ds(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=Is(n,t),l=Ds(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ms&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),As=0,Ns=function(){function e(e){this.id=As++,this.version="10.10.0",this.plugins=new gs,this.options={id:{minify:!1},createGenerateId:ws,Renderer:wa?qs:null,plugins:[]},this.generateId=ws({minify:!1});for(var t=0;t<ds.length;t++)this.plugins.use(ds[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Ii({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===vs.index?0:vs.index+1);var r=new ms(e,Ii({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),vs.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Ii({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Oa(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ls=function(e){return new Ns(e)},zs="object"==typeof CSS&&null!=CSS&&"number"in CSS;function js(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=js(r);i&&(t||(t={}),t[n]=i)}}return t}
8
8
  /**
9
9
  * A better abstraction over CSS.
10
10
  *
11
11
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
12
12
  * @website https://github.com/cssinjs/jss
13
13
  * @license MIT
14
- */Ls();var $s=Date.now(),_s="fnValues"+$s,Fs="fnStyle"+ ++$s,Hs=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Da(e,{},n);return r[Fs]=t,r},onProcessStyle:function(e,t){if(_s in t||Fs in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[_s]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Fs];i&&(o.style=i(e)||{});var a=o[_s];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Bs="@global",Us="@global ",Ws=function(){function e(e,t,n){for(var r in this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new hs(Ii({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Vs=function(){function e(e,t,n){this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Us.length);this.rule=n.jss.createRule(r,t,Ii({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Gs=/\s*,\s*/g;function Ks(e,t){for(var n=e.split(Gs),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Ys(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Bs)return new Ws(e,t,n);if("@"===e[0]&&e.substr(0,Us.length)===Us)return new Vs(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Bs]:null;if(o){for(var i in o)t.addRule(i,o[i],Ii({},n,{selector:Ks(i,e.selector)}));delete r[Bs]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Bs.length)===Bs){var i=Ks(o.substr(Bs.length),e.selector);t.addRule(i,r[o],Ii({},n,{selector:i})),delete r[o]}}(e,t))}}}var Xs=/\s*,\s*/g,Js=/&/g,Zs=/\$([\w-]+)/g;function Qs(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Xs),r=e.split(Xs),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Js,a):a+" "+l}return o}function n(e,t,n){if(n)return Ii({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Ii({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(Zs,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],Ii({},a,{selector:f})):c.addRule(h,r[u],Ii({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var el=/[A-Z]/g,tl=/^ms-/,nl={};function rl(e){return"-"+e.toLowerCase()}function ol(e){if(nl.hasOwnProperty(e))return nl[e];var t=e.replace(el,rl);return nl[e]=tl.test(t)?"-"+t:t}function il(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ol(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(il):t.fallbacks=il(e.fallbacks)),t}var al=zs&&CSS?CSS.px:"px",sl=zs&&CSS?CSS.ms:"ms",ll=zs&&CSS?CSS.percent:"%";function cl(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var ul=cl({"animation-delay":sl,"animation-duration":sl,"background-position":al,"background-position-x":al,"background-position-y":al,"background-size":al,border:al,"border-bottom":al,"border-bottom-left-radius":al,"border-bottom-right-radius":al,"border-bottom-width":al,"border-left":al,"border-left-width":al,"border-radius":al,"border-right":al,"border-right-width":al,"border-top":al,"border-top-left-radius":al,"border-top-right-radius":al,"border-top-width":al,"border-width":al,"border-block":al,"border-block-end":al,"border-block-end-width":al,"border-block-start":al,"border-block-start-width":al,"border-block-width":al,"border-inline":al,"border-inline-end":al,"border-inline-end-width":al,"border-inline-start":al,"border-inline-start-width":al,"border-inline-width":al,"border-start-start-radius":al,"border-start-end-radius":al,"border-end-start-radius":al,"border-end-end-radius":al,margin:al,"margin-bottom":al,"margin-left":al,"margin-right":al,"margin-top":al,"margin-block":al,"margin-block-end":al,"margin-block-start":al,"margin-inline":al,"margin-inline-end":al,"margin-inline-start":al,padding:al,"padding-bottom":al,"padding-left":al,"padding-right":al,"padding-top":al,"padding-block":al,"padding-block-end":al,"padding-block-start":al,"padding-inline":al,"padding-inline-end":al,"padding-inline-start":al,"mask-position-x":al,"mask-position-y":al,"mask-size":al,height:al,width:al,"min-height":al,"max-height":al,"min-width":al,"max-width":al,bottom:al,left:al,top:al,right:al,inset:al,"inset-block":al,"inset-block-end":al,"inset-block-start":al,"inset-inline":al,"inset-inline-end":al,"inset-inline-start":al,"box-shadow":al,"text-shadow":al,"column-gap":al,"column-rule":al,"column-rule-width":al,"column-width":al,"font-size":al,"font-size-delta":al,"letter-spacing":al,"text-decoration-thickness":al,"text-indent":al,"text-stroke":al,"text-stroke-width":al,"word-spacing":al,motion:al,"motion-offset":al,outline:al,"outline-offset":al,"outline-width":al,perspective:al,"perspective-origin-x":ll,"perspective-origin-y":ll,"transform-origin":ll,"transform-origin-x":ll,"transform-origin-y":ll,"transform-origin-z":ll,"transition-delay":sl,"transition-duration":sl,"vertical-align":al,"flex-basis":al,"shape-margin":al,size:al,gap:al,grid:al,"grid-gap":al,"row-gap":al,"grid-row-gap":al,"grid-column-gap":al,"grid-template-rows":al,"grid-template-columns":al,"grid-auto-rows":al,"grid-auto-columns":al,"box-shadow-x":al,"box-shadow-y":al,"box-shadow-blur":al,"box-shadow-spread":al,"font-line-height":al,"text-shadow-x":al,"text-shadow-y":al,"text-shadow-blur":al});function dl(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=dl(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=dl(o,t[o],n);else for(var i in t)t[i]=dl(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ul[e];return!a||0===t&&a===al?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function pl(e){void 0===e&&(e={});var t=cl(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=dl(r,e[r],t);return e},onChangeValue:function(e,n){return dl(n,e,t)}}}var fl="",hl="",ml="",gl="",yl=Sa&&"ontouchstart"in document.documentElement;if(Sa){var vl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bl=document.createElement("p").style;for(var xl in vl)if(xl+"Transform"in bl){fl=xl,hl=vl[xl];break}"Webkit"===fl&&"msHyphens"in bl&&(fl="ms",hl=vl.ms,gl="edge"),"Webkit"===fl&&"-apple-trailing-word"in bl&&(ml="apple")}var wl={js:fl,css:hl,vendor:ml,browser:gl,isTouch:yl};var Sl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===wl.js?"-webkit-"+e:wl.css+e)}},Cl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===wl.js?wl.css+"print-"+e:e)}},kl=/[-\s]+(.)?/g;function El(e,t){return t?t.toUpperCase():""}function Tl(e){return e.replace(kl,El)}function Rl(e){return Tl("-"+e)}var Ml,Pl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===wl.js){var n="mask-image";if(Tl(n)in t)return e;if(wl.js+Rl(n)in t)return wl.css+e}return e}},Dl={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==wl.vendor||wl.isTouch?e:wl.css+e)}},Ol={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:wl.css+e)}},Il={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:wl.css+e)}},ql={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===wl.js||"ms"===wl.js&&"edge"!==wl.browser?wl.css+e:e)}},Al={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===wl.js||"ms"===wl.js||"apple"===wl.vendor?wl.css+e:e)}},Nl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===wl.js?"WebkitColumn"+Rl(e)in t&&wl.css+"column-"+e:"Moz"===wl.js&&("page"+Rl(e)in t&&"page-"+e))}},Ll={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===wl.js)return e;var n=e.replace("-inline","");return wl.js+Rl(n)in t&&wl.css+n}},zl={supportedProperty:function(e,t){return Tl(e)in t&&e}},jl={supportedProperty:function(e,t){var n=Rl(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:wl.js+n in t?wl.css+e:"Webkit"!==wl.js&&"Webkit"+n in t&&"-webkit-"+e}},$l={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===wl.js?""+wl.css+e:e)}},_l={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===wl.js?wl.css+"scroll-chaining":e)}},Fl={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Hl={supportedProperty:function(e,t){var n=Fl[e];return!!n&&(wl.js+Rl(n)in t&&wl.css+n)}},Bl={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Ul=Object.keys(Bl),Wl=function(e){return wl.css+e},Vl={supportedProperty:function(e,t,n){var r=n.multiple;if(Ul.indexOf(e)>-1){var o=Bl[e];if(!Array.isArray(o))return wl.js+Rl(o)in t&&wl.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(wl.js+Rl(o[0])in t))return!1;return o.map(Wl)}return!1}},Gl=[Sl,Cl,Pl,Dl,Ol,Il,ql,Al,Nl,Ll,zl,jl,$l,_l,Hl,Vl],Kl=Gl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Yl=Gl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,la(t.noPrefill)),e}),[]),Xl={};if(Sa){Ml=document.createElement("p");var Jl=window.getComputedStyle(document.documentElement,"");for(var Zl in Jl)isNaN(Zl)||(Xl[Jl[Zl]]=Jl[Zl]);Yl.forEach((function(e){return delete Xl[e]}))}function Ql(e,t){if(void 0===t&&(t={}),!Ml)return e;if(null!=Xl[e])return Xl[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ml.style);for(var n=0;n<Kl.length&&(Xl[e]=Kl[n](e,Ml.style,t),!Xl[e]);n++);try{Ml.style[e]=""}catch(e){return!1}return Xl[e]}var ec,tc={},nc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},rc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function oc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ql(t):", "+Ql(n);return r||(t||n)}function ic(e,t){var n=t;if(!ec||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=tc[r])return tc[r];try{ec.style[e]=n}catch(e){return tc[r]=!1,!1}if(nc[e])n=n.replace(rc,oc);else if(""===ec.style[e]&&("-ms-flex"===(n=wl.css+n)&&(ec.style[e]="-ms-flexbox"),ec.style[e]=n,""===ec.style[e]))return tc[r]=!1,!1;return ec.style[e]="",tc[r]=n,tc[r]}function ac(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Ql(n);i&&i!==n&&(o=!0);var a=!1,s=ic(i,Ia(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===wl.js?e:"@"+wl.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ic(t,Ia(e))||e}}}function sc(){return{plugins:[Hs(),Ys(),Qs(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=il(e[t]);return e}return il(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ol(t);return t===r?e:(n.prop(r,e),null)}},pl(),"undefined"==typeof window?null:ac(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function lc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Ii({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Sa&&(ec=document.createElement("p"));var cc={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},uc=cc,dc=g.createContext(null);function pc(){return g.useContext(dc)}var fc,hc=Ls(sc()),mc={disableGeneration:!1,generateClassName:ba(),jss:hc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},gc=g.createContext(mc);function yc(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Wi(e,["children","injectFirst","disableGeneration"]),s=Ii({},g.useContext(gc),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!fc){var l=document.head;fc=document.createComment("mui-inject-first"),l.insertBefore(fc,l.firstChild)}s.jss=Ls({plugins:sc().plugins,insertionPoint:fc})}return g.createElement(gc.Provider,{value:s},t)}var vc=-1e9;var bc={};function xc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=uc.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},uc.set(o.sheetsManager,i,r,s));var l=Ii({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=uc.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Ii({link:!1},l))).attach(),o.sheetsCache&&uc.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=js(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Ii({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=lc({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function wc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?bc:i,s=Wi(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Ii({},o);return Object.keys(i).forEach((function(e){a[e]=Ni(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:vc+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pc()||a,r=Ii({},g.useContext(gc),s),i=g.useRef(),c=g.useRef();!function(e,t){var n,r=g.useRef([]),o=g.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),g.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return xc(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=uc.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(uc.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),g.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=lc({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Sc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Sc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cc(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Sc(e))&&(r&&(r+=" "),r+=t);return r}var kc={exports:{}},Ec={},Tc="function"==typeof Symbol&&Symbol.for,Rc=Tc?Symbol.for("react.element"):60103,Mc=Tc?Symbol.for("react.portal"):60106,Pc=Tc?Symbol.for("react.fragment"):60107,Dc=Tc?Symbol.for("react.strict_mode"):60108,Oc=Tc?Symbol.for("react.profiler"):60114,Ic=Tc?Symbol.for("react.provider"):60109,qc=Tc?Symbol.for("react.context"):60110,Ac=Tc?Symbol.for("react.async_mode"):60111,Nc=Tc?Symbol.for("react.concurrent_mode"):60111,Lc=Tc?Symbol.for("react.forward_ref"):60112,zc=Tc?Symbol.for("react.suspense"):60113,jc=Tc?Symbol.for("react.suspense_list"):60120,$c=Tc?Symbol.for("react.memo"):60115,_c=Tc?Symbol.for("react.lazy"):60116,Fc=Tc?Symbol.for("react.block"):60121,Hc=Tc?Symbol.for("react.fundamental"):60117,Bc=Tc?Symbol.for("react.responder"):60118,Uc=Tc?Symbol.for("react.scope"):60119;function Wc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rc:switch(e=e.type){case Ac:case Nc:case Pc:case Oc:case Dc:case zc:return e;default:switch(e=e&&e.$$typeof){case qc:case Lc:case _c:case $c:case Ic:return e;default:return t}}case Mc:return t}}}function Vc(e){return Wc(e)===Nc}Ec.AsyncMode=Ac,Ec.ConcurrentMode=Nc,Ec.ContextConsumer=qc,Ec.ContextProvider=Ic,Ec.Element=Rc,Ec.ForwardRef=Lc,Ec.Fragment=Pc,Ec.Lazy=_c,Ec.Memo=$c,Ec.Portal=Mc,Ec.Profiler=Oc,Ec.StrictMode=Dc,Ec.Suspense=zc,Ec.isAsyncMode=function(e){return Vc(e)||Wc(e)===Ac},Ec.isConcurrentMode=Vc,Ec.isContextConsumer=function(e){return Wc(e)===qc},Ec.isContextProvider=function(e){return Wc(e)===Ic},Ec.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rc},Ec.isForwardRef=function(e){return Wc(e)===Lc},Ec.isFragment=function(e){return Wc(e)===Pc},Ec.isLazy=function(e){return Wc(e)===_c},Ec.isMemo=function(e){return Wc(e)===$c},Ec.isPortal=function(e){return Wc(e)===Mc},Ec.isProfiler=function(e){return Wc(e)===Oc},Ec.isStrictMode=function(e){return Wc(e)===Dc},Ec.isSuspense=function(e){return Wc(e)===zc},Ec.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pc||e===Nc||e===Oc||e===Dc||e===zc||e===jc||"object"==typeof e&&null!==e&&(e.$$typeof===_c||e.$$typeof===$c||e.$$typeof===Ic||e.$$typeof===qc||e.$$typeof===Lc||e.$$typeof===Hc||e.$$typeof===Bc||e.$$typeof===Uc||e.$$typeof===Fc)},Ec.typeOf=Wc,kc.exports=Ec;var Gc=kc.exports,Kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jc={};function Zc(e){return Gc.isMemo(e)?Xc:Jc[e.$$typeof]||Kc}Jc[Gc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jc[Gc.Memo]=Xc;var Qc=Object.defineProperty,eu=Object.getOwnPropertyNames,tu=Object.getOwnPropertySymbols,nu=Object.getOwnPropertyDescriptor,ru=Object.getPrototypeOf,ou=Object.prototype;var iu=function e(t,n,r){if("string"!=typeof n){if(ou){var o=ru(n);o&&o!==ou&&e(t,o,r)}var i=eu(n);tu&&(i=i.concat(tu(n)));for(var a=Zc(t),s=Zc(n),l=0;l<i.length;++l){var c=i[l];if(!(Yc[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=nu(n,c);try{Qc(t,c,u)}catch(e){}}}}return t},au=X(iu);function su(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Wi(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Ii({theme:e},n))}}}:{root:t},l=wc(s,Ii({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=g.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=Wi(t,["children","className","clone","component"]),f=Cc(l(t).root,c),h=p;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),u)return g.cloneElement(s,Ii({className:Cc(s.props.className,f)},h));if("function"==typeof s)return s(Ii({className:f},h));var m=d||e;return g.createElement(m,Ii({ref:r,className:f},h),s)}));return au(c,e),c}}function lu(e){var t=e.children,n=e.theme,r=pc(),o=g.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ii({},e,t)}(r,n);return null!=e&&(e[ya]=null!==r),e}),[n,r]);return g.createElement(dc.Provider,{value:o},t)}var cu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Wi(t,["defaultTheme","withTheme","name"]),l=a,c=wc(e,Ii({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=g.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Wi(e,["classes","innerRef"]),u=c(Ii({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=pc()||r,a&&(d=xa({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),g.createElement(n,Ii({ref:s||t,classes:u},d))}));return au(u,n),u}},uu=ga(),du=function(e){var t=su(e);return function(e,n){return t(e,Ii({defaultTheme:uu},n))}};function pu(e,t){return cu(e,Ii({defaultTheme:uu},t))}function fu(e){if("string"!=typeof e)throw new Error(ji(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function mu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=mu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=mu(e))&&(r&&(r+=" "),r+=t);return r}function yu(e){return e&&e.ownerDocument||document}function vu(e){return yu(e).defaultView||window}function bu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var xu="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function wu(e){var t=y.useRef(e);return xu((function(){t.current=e})),y.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Su(e,t){return y.useMemo((function(){return null==e&&null==t?null:function(n){bu(e,n),bu(t,n)}}),[e,t])}var Cu=!0,ku=!1,Eu=null,Tu={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 Ru(e){e.metaKey||e.altKey||e.ctrlKey||(Cu=!0)}function Mu(){Cu=!1}function Pu(){"hidden"===this.visibilityState&&ku&&(Cu=!0)}function Du(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Cu||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Tu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ou(){ku=!0,window.clearTimeout(Eu),Eu=window.setTimeout((function(){ku=!1}),100)}function Iu(){var e=y.useCallback((function(e){var t,n=C.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Ru,!0),t.addEventListener("mousedown",Mu,!0),t.addEventListener("pointerdown",Mu,!0),t.addEventListener("touchstart",Mu,!0),t.addEventListener("visibilitychange",Pu,!0))}),[]);return{isFocusVisible:Du,onBlurVisible:Ou,ref:e}}var qu=!1,Au=g.createContext(null),Nu="unmounted",Lu="exited",zu="entering",ju="entered",$u="exiting",_u=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=Lu,r.appearStatus=zu):o=ju:o=t.unmountOnExit||t.mountOnEnter?Nu:Lu,r.state={status:o},r.nextCallback=null,r}Ta(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Nu?{status:Lu}: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!==zu&&n!==ju&&(t=zu):n!==zu&&n!==ju||(t=$u)}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===zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lu&&this.setState({status:Nu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[k.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||qu?this.safeSetState({status:ju},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:zu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ju},(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:k.findDOMNode(this);t&&!qu?(this.props.onExit(r),this.safeSetState({status:$u},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Lu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Lu},(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:k.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===Nu)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=Ui(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(Au.Provider,{value:null},"function"==typeof n?n(e,r):g.cloneElement(g.Children.only(n),r))},t}(g.Component);function Fu(){}_u.contextType=Au,_u.propTypes={},_u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fu,onEntering:Fu,onEntered:Fu,onExit:Fu,onExiting:Fu,onExited:Fu},_u.UNMOUNTED=Nu,_u.EXITED=Lu,_u.ENTERING=zu,_u.ENTERED=ju,_u.EXITING=$u;var Hu=_u;function Bu(e,t){var n=Object.create(null);return e&&v.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b(e)?t(e):e}(e)})),n}function Uu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wu(e,t,n){var r=Bu(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(b(a)){var s=i in t,l=i in r,c=t[i],u=b(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&b(c)&&(o[i]=x(a,{onExited:n.bind(null,a),in:c.props.in,exit:Uu(a,"exit",e),enter:Uu(a,"enter",e)})):o[i]=x(a,{in:!1}):o[i]=x(a,{onExited:n.bind(null,a),in:!0,exit:Uu(a,"exit",e),enter:Uu(a,"enter",e)})}})),o}var Vu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Gu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ra(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ta(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,Bu(n.children,(function(e){return x(e,{onExited:r.bind(null,e),in:!0,appear:Uu(e,"appear",n),enter:Uu(e,"enter",n),exit:Uu(e,"exit",n)})}))):Wu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Bu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ii({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ui(e,["component","childFactory"]),o=this.state.contextValue,i=Vu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?g.createElement(Au.Provider,{value:o},i):g.createElement(Au.Provider,{value:o},g.createElement(t,r,i))},t}(g.Component);Gu.propTypes={},Gu.defaultProps={component:"div",childFactory:function(e){return e}};var Ku=Gu;function Yu(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var Xu=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=Wi(e,["classes","className","component","square","elevation","variant"]);return y.createElement(i,Ii({className:gu(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),Ju=pu((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ii({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Xu),Zu="undefined"==typeof window?y.useEffect:y.useLayoutEffect;function Qu(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=y.useState(!1),p=d[0],f=d[1],h=gu(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=gu(t.child,p&&t.childLeaving,r&&t.childPulsate),v=wu(c);return Zu((function(){if(!s){f(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),y.createElement("span",{className:h,style:m},y.createElement("span",{className:g}))}var ed=y.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Wi(e,["center","classes","className"]),s=y.useState([]),l=s[0],c=s[1],u=y.useRef(0),d=y.useRef(null);y.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=y.useRef(!1),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null);y.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=y.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(la(e),[y.createElement(Qu,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),v=y.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;u=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(k,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),b=y.useCallback((function(){v({},{pulsate:!0})}),[v]),x=y.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return y.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),y.createElement("span",Ii({className:gu(o.root,i),ref:m},a),y.createElement(Ku,{component:null,exit:!0},l))})),td=pu((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(y.memo(ed)),nd=y.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,x=e.focusVisibleClassName,w=e.onBlur,S=e.onClick,k=e.onFocus,E=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,M=e.onMouseDown,P=e.onMouseLeave,D=e.onMouseUp,O=e.onTouchEnd,I=e.onTouchMove,q=e.onTouchStart,A=e.onDragLeave,N=e.tabIndex,L=void 0===N?0:N,z=e.TouchRippleProps,j=e.type,$=void 0===j?"button":j,_=Wi(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=y.useRef(null);var H=y.useRef(null),B=y.useState(!1),U=B[0],W=B[1];p&&U&&W(!1);var V=Iu(),G=V.isFocusVisible,K=V.onBlurVisible,Y=V.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return wu((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}y.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),F.current.focus()}}}),[]),y.useEffect((function(){U&&b&&!h&&H.current.pulsate()}),[h,b,U]);var J=X("start",M),Z=X("stop",A),Q=X("stop",D),ee=X("stop",(function(e){U&&e.preventDefault(),P&&P(e)})),te=X("start",q),ne=X("stop",O),re=X("stop",I),oe=X("stop",(function(e){U&&(K(e),W(!1)),w&&w(e)}),!1),ie=wu((function(e){F.current||(F.current=e.currentTarget),G(e)&&(W(!0),E&&E(e)),k&&k(e)})),ae=function(){var e=C.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=y.useRef(!1),le=wu((function(e){b&&!se.current&&U&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),S&&S(e))})),ce=wu((function(e){b&&" "===e.key&&H.current&&U&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),R&&R(e),S&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ue=u;"button"===ue&&_.href&&(ue="a");var de={};"button"===ue?(de.type=$,de.disabled=p):("a"===ue&&_.href||(de.role="button"),de["aria-disabled"]=p);var pe=Su(r,t),fe=Su(Y,F),he=Su(pe,fe),me=y.useState(!1),ge=me[0],ye=me[1];y.useEffect((function(){ye(!0)}),[]);var ve=ge&&!h&&!p;return y.createElement(ue,Ii({className:gu(s.root,l,U&&[s.focusVisible,x],p&&s.disabled),onBlur:oe,onClick:S,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:p?-1:L},de,_),a,ve?y.createElement(td,Ii({ref:H,center:i},z)):null)})),rd=pu({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(nd),od={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},id=y.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?od:x,S=Wi(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":w[b]||od[b])||"span";return y.createElement(C,Ii({className:gu(o.root,i,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(fu(s))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(fu(r))],"initial"!==u&&o["display".concat(fu(u))]),ref:t},S))})),ad=pu((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(id),sd=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,S=e.startIcon,C=e.type,k=void 0===C?"button":C,E=e.variant,T=void 0===E?"text":E,R=Wi(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=S&&y.createElement("span",{className:gu(r.startIcon,r["iconSize".concat(fu(w))])},S),P=m&&y.createElement("span",{className:gu(r.endIcon,r["iconSize".concat(fu(w))])},m);return y.createElement(rd,Ii({className:gu(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(fu(a))],"medium"!==w&&[r["".concat(T,"Size").concat(fu(w))],r["size".concat(fu(w))]],p&&r.disableElevation,u&&r.disabled,b&&r.fullWidth),component:l,disabled:u,focusRipple:!h,focusVisibleClassName:gu(r.focusVisible,g),ref:t,type:k},R),y.createElement("span",{className:r.label},M,n,P))})),ld=pu((function(e){return{root:Ii({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Bi(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Bi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Bi(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Bi(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Bi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(sd);var cd="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,ud=y.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=y.useState(null),l=s[0],c=s[1],u=Su(y.isValidElement(n)?n.ref:null,t);return cd((function(){i||c(function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(r)||document.body)}),[r,i]),cd((function(){if(l&&!i)return bu(t,l),function(){bu(t,null)}}),[t,l,i]),cd((function(){a&&(l||i)&&a()}),[a,l,i]),i?y.isValidElement(n)?y.cloneElement(n,{ref:u}):n:l?C.createPortal(n,l):l})),dd=ud;function pd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fd(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function hd(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(la(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&pd(e,r)}))}function md(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gd(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=yu(e);return t.body===e?vu(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(fd(i)+a,"px"),n=yu(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(fd(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var yd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return ka(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&pd(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);hd(t,e.mountNode,e.modalRef,r,!0);var o=md(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=md(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gd(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=md(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&pd(e.modalRef,!0),hd(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&pd(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function vd(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=y.useRef(),p=y.useRef(null),f=y.useRef(null),h=y.useRef(),m=y.useRef(null),g=y.useCallback((function(e){m.current=C.findDOMNode(e)}),[]),v=Su(t.ref,g),b=y.useRef();return y.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(h.current=l().activeElement),y.useEffect((function(){if(u){var e=yu(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,s,c,u]),y.createElement(y.Fragment,null,y.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),y.cloneElement(t,{ref:v}),y.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var bd={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},xd=y.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Wi(e,["invisible","open"]);return o?y.createElement("div",Ii({"aria-hidden":!0,ref:t},i,{style:Ii({},bd.root,r?bd.invisible:{},i.style)})):null}));var wd=new yd,Sd=y.forwardRef((function(e,t){var n=pc(),r=xa({name:"MuiModal",props:Ii({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?xd:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,x=r.disablePortal,w=void 0!==x&&x,S=r.disableRestoreFocus,k=void 0!==S&&S,E=r.disableScrollLock,T=void 0!==E&&E,R=r.hideBackdrop,M=void 0!==R&&R,P=r.keepMounted,D=void 0!==P&&P,O=r.manager,I=void 0===O?wd:O,q=r.onBackdropClick,A=r.onClose,N=r.onEscapeKeyDown,L=r.onRendered,z=r.open,j=Wi(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=y.useState(!0),_=$[0],F=$[1],H=y.useRef({}),B=y.useRef(null),U=y.useRef(null),W=Su(U,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),G=function(){return yu(B.current)},K=function(){return H.current.modalRef=U.current,H.current.mountNode=B.current,H.current},Y=function(){I.mount(K(),{disableScrollLock:T}),U.current.scrollTop=0},X=wu((function(){var e=function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(u)||G().body;I.add(K(),e),U.current&&Y()})),J=y.useCallback((function(){return I.isTopModal(K())}),[I]),Z=wu((function(e){B.current=e,e&&(L&&L(),z&&J()?Y():pd(U.current,!0))})),Q=y.useCallback((function(){I.remove(K())}),[I]);if(y.useEffect((function(){return function(){Q()}}),[Q]),y.useEffect((function(){z?X():V&&c||Q()}),[z,Q,V,c,X]),!D&&!z&&(!V||_))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:ma}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),V&&(te.onEnter=hu((function(){F(!1)}),s.props.onEnter),te.onExited=hu((function(){F(!0),c&&Q()}),s.props.onExited)),y.createElement(dd,{ref:Z,container:u,disablePortal:w},y.createElement("div",Ii({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(N&&N(e),b||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},j,{style:Ii({},ee.root,!z&&_?ee.hidden:{},j.style)}),M?null:y.createElement(i,Ii({open:z,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!h&&A&&A(e,"backdropClick"))}},a)),y.createElement(vd,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:k,getDoc:G,isEnabled:J,open:z},y.cloneElement(s,te))))})),Cd=Sd,kd=y.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,h=e.role,m=void 0===h?"hr"!==s?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,b=Wi(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return y.createElement(s,Ii({className:gu(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},b))})),Ed=pu((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Bi(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(kd);function Td(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Rd={entering:{opacity:1,transform:Td(1)},entered:{opacity:1,transform:"none"}},Md=y.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?Hu:m,v=Wi(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=y.useRef(),x=y.useRef(),w=pc()||uu,S=w.unstable_strictMode&&!o,C=y.useRef(null),k=Su(n.ref,t),E=Su(S?C:void 0,k),T=function(e){return function(t,n){if(e){var r=ca(S?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},R=T(l),M=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Yu({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:i}),w.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),P=T(s),D=T(d),O=T((function(e){var t,n=Yu({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:o}),w.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Td(.75),c&&c(e)})),I=T(u);return y.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),y.createElement(g,Ii({appear:!0,in:i,nodeRef:S?C:void 0,onEnter:M,onEntered:P,onEntering:R,onExit:O,onExited:I,onExiting:D,addEndListener:function(e,t){var n=S?e:t;"auto"===h&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return y.cloneElement(n,Ii({style:Ii({opacity:0,transform:Td(.75),visibility:"exited"!==e||i?void 0:"hidden"},Rd[e],p,n.props.style),ref:E},t))}))}));Md.muiSupportAuto=!0;var Pd=Md,Dd=y.createContext({}),Od=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=Wi(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=y.useMemo((function(){return{dense:l}}),[l]);return y.createElement(Dd.Provider,{value:f},y.createElement(a,Ii({className:gu(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),Id=pu({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Od),qd="undefined"==typeof window?y.useEffect:y.useLayoutEffect,Ad=y.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=Wi(h,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,w=void 0!==x&&x,S=e.disableGutters,k=void 0!==S&&S,E=e.divider,T=void 0!==E&&E,R=e.focusVisibleClassName,M=e.selected,P=void 0!==M&&M,D=Wi(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=y.useContext(Dd),I={dense:b||O.dense||!1,alignItems:r},q=y.useRef(null);qd((function(){i&&q.current&&q.current.focus()}),[i]);var A,N,L=y.Children.toArray(l),z=L.length&&(A=L[L.length-1],N=["ListItemSecondaryAction"],y.isValidElement(A)&&-1!==N.indexOf(A.type.muiName)),j=Su(y.useCallback((function(e){q.current=C.findDOMNode(e)}),[]),t),$=Ii({className:gu(c.root,u,I.dense&&c.dense,!k&&c.gutters,T&&c.divider,w&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,P&&c.selected),disabled:w},D),_=d||"li";return s&&($.component=d||"div",$.focusVisibleClassName=gu(c.focusVisible,R),_=rd),z?(_=$.component||d?_:"div","li"===f&&("li"===_?_="div":"li"===$.component&&($.component="div")),y.createElement(Dd.Provider,{value:I},y.createElement(f,Ii({className:gu(c.container,m),ref:j},g),y.createElement(_,$,L),L.pop()))):y.createElement(Dd.Provider,{value:I},y.createElement(_,Ii({ref:j},$),L))})),Nd=pu((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Ad),Ld=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Wi(e,["classes","className"]),i=y.useContext(Dd);return y.createElement("div",Ii({className:gu(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),zd=pu((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Ld),jd=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=Wi(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=y.useContext(Dd).dense,m=null!=c?c:n;null==m||m.type===ad||a||(m=y.createElement(ad,Ii({variant:h?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===ad||a||(g=y.createElement(ad,Ii({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),y.createElement("div",Ii({className:gu(r.root,o,h&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},f),m,g)})),$d=pu({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(jd);function _d(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Fd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Hd(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Bd(e){return"function"==typeof e?e():e}var Ud=y.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,b=e.onEnter,x=e.onEntered,w=e.onEntering,S=e.onExit,k=e.onExited,E=e.onExiting,T=e.open,R=e.PaperProps,M=void 0===R?{}:R,P=e.transformOrigin,D=void 0===P?{vertical:"top",horizontal:"left"}:P,O=e.TransitionComponent,I=void 0===O?Pd:O,q=e.transitionDuration,A=void 0===q?"auto":q,N=e.TransitionProps,L=void 0===N?{}:N,z=Wi(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=y.useRef(),$=y.useCallback((function(e){if("anchorPosition"===l)return a;var t=Bd(r),n=(t&&1===t.nodeType?t:yu(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+_d(n,o),left:n.left+Fd(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),_=y.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,m]),F=y.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:_d(e,D.vertical)+t,horizontal:Fd(e,D.horizontal)}}),[D.horizontal,D.vertical]),H=y.useCallback((function(e){var t=_(e),n={width:e.offsetWidth,height:e.offsetHeight},o=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Hd(o)};var i=$(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=vu(Bd(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(c>p){var m=c-p;a-=m,o.vertical+=m}if(s<v){var g=s-v;s-=g,o.horizontal+=g}else if(u>f){var y=u-f;s-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Hd(o)}}),[r,l,$,_,F,v]),B=y.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),U=y.useCallback((function(e){j.current=C.findDOMNode(e)}),[]);y.useEffect((function(){T&&B()})),y.useImperativeHandle(n,(function(){return T?{updatePosition:function(){B()}}:null}),[T,B]),y.useEffect((function(){if(T){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,B]);var W=A;"auto"!==A||I.muiSupportAuto||(W=void 0);var V=p||(r?yu(Bd(r)).body:void 0);return y.createElement(Cd,Ii({container:V,open:T,ref:t,BackdropProps:{invisible:!0},className:gu(u.root,d)},z),y.createElement(I,Ii({appear:!0,in:T,onEnter:b,onEntered:x,onExit:S,onExited:k,onExiting:E,timeout:W},L,{onEntering:hu((function(e,t){w&&w(e,t),B()}),L.onEntering)}),y.createElement(Ju,Ii({elevation:h,ref:U},M,{className:gu(u.paper,M.className)}),c)))})),Wd=pu({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Ud);function Vd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Gd({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Vd(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return g.createElement("i",{style:o},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},g.createElement("path",{d:e})))}const Kd={menuItem:"alternative-menu-item"},Yd=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>wc((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return g.createElement(Nd,bi({className:`${o.root} ${n}`},r))},Xd=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Kd.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function Jd({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=ve.detectTextDirection(e);return g.createElement(Yd,{nested:r,role:"menuitem",button:!0,onClick:n,className:Kd.menuItem,onKeyDown:Xd,dir:a,autoFocus:t},g.createElement($d,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),g.createElement(zd,{style:{minWidth:16}},g.createElement(Gd,{d:t?ri.d:""})),o&&g.createElement(zd,{style:{minWidth:16}},g.createElement(Gd,{d:o.d})))}Jd.propTypes={title:Ci.string.isRequired,selected:Ci.bool,onClick:Ci.func.isRequired,nested:Ci.bool,icon:Ci.shape({d:Ci.string.isRequired}),bold:Ci.bool,dir:Ci.string.isRequired},Jd.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Yd.propTypes={nested:Ci.bool,className:Ci.string},Yd.defaultProps={nested:!1,className:Kd.menuItem};const Zd={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function Qd({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return g.createElement(g.Fragment,{key:t.id},g.createElement(Jd,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&g.createElement(Id,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>g.createElement(Jd,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&g.createElement(Ed,{key:`divider-${t.id}`}))}));return g.createElement(Wd,bi({anchorEl:t,open:s,onClose:a},Zd[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),g.createElement(Id,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}Qd.propTypes={chartId:Ci.string.isRequired,alignTo:Ci.any,currentId:Ci.string.isRequired,dir:Ci.string.isRequired,dock:Ci.string.isRequired,list:Ci.array,onClose:Ci.func.isRequired,show:Ci.bool.isRequired,instruction:Ci.string.isRequired},Qd.defaultProps={list:[],alignTo:null};const ep="title-button",tp="active-title-button",np=du((({children:e,...t})=>g.createElement(ld,bi({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),rp=du(ld)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class op extends g.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=g.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:o}=this.props;n&&(r||o)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${ep}`);t&&(t.focus(),t.classList.add(tp))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${ep}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${tp}`);e&&(e.classList.remove(tp),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,h=t.breadcrumbs.map(((e,n)=>g.createElement(np,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:t.drillUp(p-n),title:e},g.createElement("span",{style:d},e),g.createElement(Gd,bi({},ii,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,y=n&&!this.state.open?this.openPopover:this.closePopover,v=!n||o||this.state.inSelection,b={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&v&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(b.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},w=ve.detectTextDirection(t.text),S=g.createElement(np,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:b,onClick:v?void 0:y,title:t.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${ep} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&g.createElement(Gd,bi({},ni,{size:"small",title:r.get("Tooltip.selections.locked")})),g.createElement("span",{style:d,dir:w},t.text),n&&m&&g.createElement(Gd,bi({},oi,{size:"small",style:{margin:"0 8px"}})));return g.createElement(g.Fragment,null,t.icon&&t.icon.onClick&&g.createElement(rp,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},g.createElement(Gd,bi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&g.createElement(Gd,bi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,g.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},S),n&&m&&g.createElement(Qd,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function ip(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function ap(e){function t(e){return!e.isDimension&&fe.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:f,translator:h,supportConditional:m=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,w=x&&x[a?"qDimensions":"qMeasures"]||[],S=r||o[a?"qDimensionInfo":"qMeasureInfo"],C=a?mi:yi,k=a?gi:vi,E=Boolean(l&&l.colorSupport&&l.modifiers),T=E&&((R=this.settings.settings).isDimension&&fe.getValue(R,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var R;const M=S.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,v=k(t,i,l,e),b=r===S.length-1,x=Boolean(e)&&a&&"N"!==t.qGrouping,R=E||x?C({column:i,activeInfo:t,altList:w,app:e,dir:d?"rtl":"ltr",dock:ip(y),model:l,onChange:c,skipAttributeExpressions:f,translator:h,allowChangeOfAlternatives:E}):void 0;return g.createElement(g.Fragment,{key:t.cId},g.createElement(op,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:R,titleData:v,model:l,translator:h,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:T,supportConditional:m}),!b&&g.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return g.createElement("div",{style:b,dir:v},M)}}}op.propTypes={chartId:Ci.string.isRequired,disabled:Ci.bool.isRequired,padding:Ci.string,minWidth:Ci.string,titleData:Ci.shape({breadcrumbs:Ci.arrayOf(Ci.string).isRequired,icon:Ci.shape({path:Ci.shape({d:Ci.string.isRequired}),tooltip:Ci.string.isRequired,onClick:Ci.func}),index:Ci.number.isRequired,locked:Ci.bool.isRequired,text:Ci.string.isRequired,popoverText:Ci.string.isRequired,drillUp:Ci.func,id:Ci.string.isRequired}).isRequired,popover:Ci.shape({dir:Ci.string.isRequired,dock:Ci.string.isRequired,getPopoverOptions:Ci.func.isRequired}),translator:Ci.shape({get:Ci.func.isRequired}).isRequired,selections:Ci.shape({isActive:Ci.func,addListener:Ci.func,removeListener:Ci.func}),style:Ci.shape({fontSize:Ci.string,color:Ci.string,fontFamily:Ci.string}).isRequired,isDimension:Ci.bool.isRequired,hasAlternative:Ci.bool.isRequired,supportConditional:Ci.bool.isRequired,showGroupDimOptions:Ci.bool.isRequired},op.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const sp=ga({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0}}});const lp=ba({productionPrefix:"qed30",disableGlobal:!0,seed:""});function cp(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",k.render(function(e,t){return g.createElement(yc,{generateClassName:t},g.createElement(lu,{theme:sp},e))}(e,lp),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&k.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(k.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}var up={black:"#000",white:"#fff"};var dp={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var pp={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var fp={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var hp={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var mp={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var gp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var yp={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"};function vp(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 bp=Object.freeze({__proto__:null,default:vp}),xp="$$material";function wp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Sp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Cp=wp((function(e){return Sp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var kp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ep="-ms-",Tp="-moz-",Rp="-webkit-",Mp="comm",Pp="rule",Dp="decl",Op="@keyframes",Ip=Math.abs,qp=String.fromCharCode,Ap=Object.assign;function Np(e){return e.trim()}function Lp(e,t,n){return e.replace(t,n)}function zp(e,t){return e.indexOf(t)}function jp(e,t){return 0|e.charCodeAt(t)}function $p(e,t,n){return e.slice(t,n)}function _p(e){return e.length}function Fp(e){return e.length}function Hp(e,t){return t.push(e),e}var Bp=1,Up=1,Wp=0,Vp=0,Gp=0,Kp="";function Yp(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Bp,column:Up,length:a,return:""}}function Xp(e,t){return Ap(Yp("",null,null,"",null,null,0),e,{length:-e.length},t)}function Jp(){return Gp=Vp>0?jp(Kp,--Vp):0,Up--,10===Gp&&(Up=1,Bp--),Gp}function Zp(){return Gp=Vp<Wp?jp(Kp,Vp++):0,Up++,10===Gp&&(Up=1,Bp++),Gp}function Qp(){return jp(Kp,Vp)}function ef(){return Vp}function tf(e,t){return $p(Kp,e,t)}function nf(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 rf(e){return Bp=Up=1,Wp=_p(Kp=e),Vp=0,[]}function of(e){return Kp="",e}function af(e){return Np(tf(Vp-1,cf(91===e?e+2:40===e?e+1:e)))}function sf(e){for(;(Gp=Qp())&&Gp<33;)Zp();return nf(e)>2||nf(Gp)>3?"":" "}function lf(e,t){for(;--t&&Zp()&&!(Gp<48||Gp>102||Gp>57&&Gp<65||Gp>70&&Gp<97););return tf(e,ef()+(t<6&&32==Qp()&&32==Zp()))}function cf(e){for(;Zp();)switch(Gp){case e:return Vp;case 34:case 39:34!==e&&39!==e&&cf(Gp);break;case 40:41===e&&cf(e);break;case 92:Zp()}return Vp}function uf(e,t){for(;Zp()&&e+Gp!==57&&(e+Gp!==84||47!==Qp()););return"/*"+tf(t,Vp-1)+"*"+qp(47===e?e:Zp())}function df(e){for(;!nf(Qp());)Zp();return tf(e,Vp)}function pf(e){return of(ff("",null,null,null,[""],e=rf(e),0,[0],e))}function ff(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,y=1,v=0,b="",x=o,w=i,S=r,C=b;g;)switch(h=v,v=Zp()){case 40:if(108!=h&&58==jp(C,d-1)){-1!=zp(C+=Lp(af(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=af(v);break;case 9:case 10:case 13:case 32:C+=sf(h);break;case 92:C+=lf(ef()-1,7);continue;case 47:switch(Qp()){case 42:case 47:Hp(mf(uf(Zp(),ef()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=_p(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=Lp(C,/\f/g,"")),f>0&&_p(C)-d&&Hp(f>32?gf(C+";",r,n,d-1):gf(Lp(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Hp(S=hf(C,t,n,c,u,o,s,b,x=[],w=[],d),i),123===v)if(0===u)ff(C,t,S,S,x,i,d,s,w);else switch(99===p&&110===jp(C,3)?100:p){case 100:case 108:case 109:case 115:ff(e,S,S,r&&Hp(hf(e,S,S,0,0,o,s,b,o,x=[],d),w),o,w,d,s,r?x:w);break;default:ff(C,S,S,S,[""],w,0,s,w)}}c=u=f=0,m=y=1,b=C="",d=a;break;case 58:d=1+_p(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Jp())continue;switch(C+=qp(v),v*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(_p(C)-1)*y,y=1;break;case 64:45===Qp()&&(C+=af(Zp())),p=Qp(),u=d=_p(b=C+=df(ef())),v++;break;case 45:45===h&&2==_p(C)&&(m=0)}}return i}function hf(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Fp(p),h=0,m=0,g=0;h<r;++h)for(var y=0,v=$p(e,d+1,d=Ip(m=a[h])),b=e;y<f;++y)(b=Np(m>0?p[y]+" "+v:Lp(v,/&\f/g,p[y])))&&(l[g++]=b);return Yp(e,t,n,0===o?Pp:s,l,c,u)}function mf(e,t,n){return Yp(e,t,n,Mp,qp(Gp),$p(e,2,-2),0)}function gf(e,t,n,r){return Yp(e,t,n,Dp,$p(e,0,r),$p(e,r+1,-1),r)}function yf(e,t){for(var n="",r=Fp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dp:return e.return=e.return||e.value;case Mp:return"";case Op:return e.return=e.value+"{"+yf(e.children,r)+"}";case Pp:e.value=e.props.join(",")}return _p(n=yf(e.children,r))?e.return=e.value+"{"+n+"}":""}function bf(e){var t=Fp(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var xf="undefined"!=typeof document,wf=function(e,t,n){for(var r=0,o=0;r=o,o=Qp(),38===r&&12===o&&(t[n]=1),!nf(o);)Zp();return tf(e,Vp)},Sf=function(e,t){return of(function(e,t){var n=-1,r=44;do{switch(nf(r)){case 0:38===r&&12===Qp()&&(t[n]=1),e[n]+=wf(Vp-1,t,n);break;case 2:e[n]+=af(r);break;case 4:if(44===r){e[++n]=58===Qp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qp(r)}}while(r=Zp());return e}(rf(e),t))},Cf=new WeakMap,kf=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)||Cf.get(n))&&!r){Cf.set(e,!0);for(var o=[],i=Sf(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]}}},Ef=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Tf(e,t){switch(function(e,t){return 45^jp(e,0)?(((t<<2^jp(e,0))<<2^jp(e,1))<<2^jp(e,2))<<2^jp(e,3):0}(e,t)){case 5103:return Rp+"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 Rp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rp+e+Tp+e+Ep+e+e;case 6828:case 4268:return Rp+e+Ep+e+e;case 6165:return Rp+e+Ep+"flex-"+e+e;case 5187:return Rp+e+Lp(e,/(\w+).+(:[^]+)/,Rp+"box-$1$2"+Ep+"flex-$1$2")+e;case 5443:return Rp+e+Ep+"flex-item-"+Lp(e,/flex-|-self/,"")+e;case 4675:return Rp+e+Ep+"flex-line-pack"+Lp(e,/align-content|flex-|-self/,"")+e;case 5548:return Rp+e+Ep+Lp(e,"shrink","negative")+e;case 5292:return Rp+e+Ep+Lp(e,"basis","preferred-size")+e;case 6060:return Rp+"box-"+Lp(e,"-grow","")+Rp+e+Ep+Lp(e,"grow","positive")+e;case 4554:return Rp+Lp(e,/([^-])(transform)/g,"$1"+Rp+"$2")+e;case 6187:return Lp(Lp(Lp(e,/(zoom-|grab)/,Rp+"$1"),/(image-set)/,Rp+"$1"),e,"")+e;case 5495:case 3959:return Lp(e,/(image-set\([^]*)/,Rp+"$1$`$1");case 4968:return Lp(Lp(e,/(.+:)(flex-)?(.*)/,Rp+"box-pack:$3"+Ep+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rp+e+e;case 4095:case 3583:case 4068:case 2532:return Lp(e,/(.+)-inline(.+)/,Rp+"$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(_p(e)-1-t>6)switch(jp(e,t+1)){case 109:if(45!==jp(e,t+4))break;case 102:return Lp(e,/(.+:)(.+)-([^]+)/,"$1"+Rp+"$2-$3$1"+Tp+(108==jp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zp(e,"stretch")?Tf(Lp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jp(e,t+1))break;case 6444:switch(jp(e,_p(e)-3-(~zp(e,"!important")&&10))){case 107:return Lp(e,":",":"+Rp)+e;case 101:return Lp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rp+(45===jp(e,14)?"inline-":"")+"box$3$1"+Rp+"$2$3$1"+Ep+"$2box$3")+e}break;case 5936:switch(jp(e,t+11)){case 114:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rp+e+Ep+e+e}return e}var Rf=xf?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return wp((function(){var e={};return function(t){return e[t]}}))})),Mf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dp:e.return=Tf(e.value,e.length);break;case Op:return yf([Xp(e,{value:Lp(e.value,"@","@"+Rp)})],r);case Pp: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 yf([Xp(e,{props:[Lp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return yf([Xp(e,{props:[Lp(t,/:(plac\w+)/,":"+Rp+"input-$1")]}),Xp(e,{props:[Lp(t,/:(plac\w+)/,":-moz-$1")]}),Xp(e,{props:[Lp(t,/:(plac\w+)/,Ep+"input-$1")]})],r)}return""}))}}],Pf=function(e){var t=e.key;if(xf&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Mf,a={},s=[];xf&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[kf,Ef];if(xf){var u,d=[vf,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=bf(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){yf(pf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var f=[vf],h=bf(c.concat(i,f)),m=Rf(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return yf(pf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new kp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return y.sheet.hydrate(s),y},Df="undefined"!=typeof document;var Of=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Df&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},If=function(e,t,n){Of(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Df||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Df&&0!==o.length)return o}};var qf={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},Af=!1,Nf=/[A-Z]|^ms/g,Lf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zf=function(e){return 45===e.charCodeAt(1)},jf=function(e){return null!=e&&"boolean"!=typeof e},$f=wp((function(e){return zf(e)?e:e.replace(Nf,"-$&").toLowerCase()})),_f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Lf,(function(e,t,n){return Bf={name:t,styles:n,next:Bf},t}))}return 1===qf[e]||zf(e)||"number"!=typeof t||0===t?t:t+"px"},Ff="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Hf(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Bf={name:o.name,styles:o.styles,next:Bf},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Bf={name:a.name,styles:a.styles,next:Bf},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+=Hf(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]+"}":jf(s)&&(r+=$f(i)+":"+_f(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&Af)throw new Error(Ff);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Hf(e,t,a);switch(i){case"animation":case"animationName":r+=$f(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)jf(a[c])&&(r+=$f(i)+":"+_f(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Bf,l=n(e);return Bf=s,Hf(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Bf,Uf=/label:\s*([^\s;{]+)\s*(;|$)/g;function Wf(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="";Bf=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Hf(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Hf(n,t,e[a]),r)o+=i[a]}Uf.lastIndex=0;for(var s,l="";null!==(s=Uf.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Bf}}var Vf="undefined"!=typeof document,Gf=function(e){return e()},Kf=!!y.useInsertionEffect&&y.useInsertionEffect,Yf=Vf&&Kf||Gf,Xf=Kf||y.useLayoutEffect,Jf="undefined"!=typeof document,Zf=y.createContext("undefined"!=typeof HTMLElement?Pf({key:"css"}):null),Qf=Zf.Provider,eh=function(e){return w((function(t,n){var r=S(Zf);return e(t,r,n)}))};Jf||(eh=function(e){return function(t){var n=S(Zf);return null===n?(n=Pf({key:"css"}),y.createElement(Zf.Provider,{value:n},e(t,n))):e(t,n)}});var th=y.createContext({}),nh=eh((function(e,t){var n=Wf([e.styles],void 0,y.useContext(th));if(!Jf){for(var r,o=n.name,i=n.styles,a=n.next;void 0!==a;)o+=" "+a.name,i+=a.styles,a=a.next;var s=!0===t.compat,l=t.insert("",{name:o,styles:i},t.sheet,s);return s?null:y.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:l},r.nonce=t.sheet.nonce,r))}var c=y.useRef();return Xf((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,o],function(){r.flush()}}),[t]),Xf((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&If(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function rh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wf(t)}var oh=function(){var e=rh.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_"}}},ih=Cp,ah=function(e){return"theme"!==e},sh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ih:ah},lh=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},ch="undefined"!=typeof document,uh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Of(t,n,r);var o=Yf((function(){return If(t,n,r)}));if(!ch&&void 0!==o){for(var i,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return y.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},dh=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=lh(t,n,i),l=s||sh(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=eh((function(e,t,n){var r,i,u,p,f=c&&e.as||a,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=y.useContext(th)}"string"==typeof e.className?(r=t.registered,i=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(p+=e+" ")})),h=p):null!=e.className&&(h=e.className+" ");var b=Wf(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var x=c&&void 0===s?sh(f):l,w={};for(var S in e)c&&"as"===S||x(S)&&(w[S]=e[S]);return w.className=h,n&&(w.ref=n),y.createElement(y.Fragment,null,y.createElement(uh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),y.createElement(f,w))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Ii({},n,r,{shouldForwardProp:lh(h,r,!0)})).apply(void 0,d)},h}}.bind();["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){dh[e]=dh(e)}));var ph={exports:{}},fh={},hh=g,mh=Symbol.for("react.element"),gh=Symbol.for("react.fragment"),yh=Object.prototype.hasOwnProperty,vh=hh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bh={key:!0,ref:!0,__self:!0,__source:!0};function xh(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)yh.call(t,r)&&!bh.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:mh,type:e,key:i,ref:a,props:o,_owner:vh.current}}fh.Fragment=gh,fh.jsx=xh,fh.jsxs=xh,ph.exports=fh;var wh=ph.exports;let Sh;"object"==typeof document&&(Sh=Pf({key:"css",prepend:!0}));var Ch=Object.freeze({__proto__:null,GlobalStyles:function(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 wh.jsx(nh,{styles:r})}
14
+ */Ls();var $s=Date.now(),_s="fnValues"+$s,Fs="fnStyle"+ ++$s,Hs=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Oa(e,{},n);return r[Fs]=t,r},onProcessStyle:function(e,t){if(_s in t||Fs in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[_s]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Fs];i&&(o.style=i(e)||{});var a=o[_s];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Bs="@global",Us="@global ",Ws=function(){function e(e,t,n){for(var r in this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new hs(Ii({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Vs=function(){function e(e,t,n){this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Us.length);this.rule=n.jss.createRule(r,t,Ii({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Gs=/\s*,\s*/g;function Ks(e,t){for(var n=e.split(Gs),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Ys(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Bs)return new Ws(e,t,n);if("@"===e[0]&&e.substr(0,Us.length)===Us)return new Vs(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Bs]:null;if(o){for(var i in o)t.addRule(i,o[i],Ii({},n,{selector:Ks(i,e.selector)}));delete r[Bs]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Bs.length)===Bs){var i=Ks(o.substr(Bs.length),e.selector);t.addRule(i,r[o],Ii({},n,{selector:i})),delete r[o]}}(e,t))}}}var Xs=/\s*,\s*/g,Js=/&/g,Zs=/\$([\w-]+)/g;function Qs(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Xs),r=e.split(Xs),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Js,a):a+" "+l}return o}function n(e,t,n){if(n)return Ii({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Ii({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(Zs,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],Ii({},a,{selector:f})):c.addRule(h,r[u],Ii({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var el=/[A-Z]/g,tl=/^ms-/,nl={};function rl(e){return"-"+e.toLowerCase()}function ol(e){if(nl.hasOwnProperty(e))return nl[e];var t=e.replace(el,rl);return nl[e]=tl.test(t)?"-"+t:t}function il(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ol(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(il):t.fallbacks=il(e.fallbacks)),t}var al=zs&&CSS?CSS.px:"px",sl=zs&&CSS?CSS.ms:"ms",ll=zs&&CSS?CSS.percent:"%";function cl(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var ul=cl({"animation-delay":sl,"animation-duration":sl,"background-position":al,"background-position-x":al,"background-position-y":al,"background-size":al,border:al,"border-bottom":al,"border-bottom-left-radius":al,"border-bottom-right-radius":al,"border-bottom-width":al,"border-left":al,"border-left-width":al,"border-radius":al,"border-right":al,"border-right-width":al,"border-top":al,"border-top-left-radius":al,"border-top-right-radius":al,"border-top-width":al,"border-width":al,"border-block":al,"border-block-end":al,"border-block-end-width":al,"border-block-start":al,"border-block-start-width":al,"border-block-width":al,"border-inline":al,"border-inline-end":al,"border-inline-end-width":al,"border-inline-start":al,"border-inline-start-width":al,"border-inline-width":al,"border-start-start-radius":al,"border-start-end-radius":al,"border-end-start-radius":al,"border-end-end-radius":al,margin:al,"margin-bottom":al,"margin-left":al,"margin-right":al,"margin-top":al,"margin-block":al,"margin-block-end":al,"margin-block-start":al,"margin-inline":al,"margin-inline-end":al,"margin-inline-start":al,padding:al,"padding-bottom":al,"padding-left":al,"padding-right":al,"padding-top":al,"padding-block":al,"padding-block-end":al,"padding-block-start":al,"padding-inline":al,"padding-inline-end":al,"padding-inline-start":al,"mask-position-x":al,"mask-position-y":al,"mask-size":al,height:al,width:al,"min-height":al,"max-height":al,"min-width":al,"max-width":al,bottom:al,left:al,top:al,right:al,inset:al,"inset-block":al,"inset-block-end":al,"inset-block-start":al,"inset-inline":al,"inset-inline-end":al,"inset-inline-start":al,"box-shadow":al,"text-shadow":al,"column-gap":al,"column-rule":al,"column-rule-width":al,"column-width":al,"font-size":al,"font-size-delta":al,"letter-spacing":al,"text-decoration-thickness":al,"text-indent":al,"text-stroke":al,"text-stroke-width":al,"word-spacing":al,motion:al,"motion-offset":al,outline:al,"outline-offset":al,"outline-width":al,perspective:al,"perspective-origin-x":ll,"perspective-origin-y":ll,"transform-origin":ll,"transform-origin-x":ll,"transform-origin-y":ll,"transform-origin-z":ll,"transition-delay":sl,"transition-duration":sl,"vertical-align":al,"flex-basis":al,"shape-margin":al,size:al,gap:al,grid:al,"grid-gap":al,"row-gap":al,"grid-row-gap":al,"grid-column-gap":al,"grid-template-rows":al,"grid-template-columns":al,"grid-auto-rows":al,"grid-auto-columns":al,"box-shadow-x":al,"box-shadow-y":al,"box-shadow-blur":al,"box-shadow-spread":al,"font-line-height":al,"text-shadow-x":al,"text-shadow-y":al,"text-shadow-blur":al});function dl(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=dl(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=dl(o,t[o],n);else for(var i in t)t[i]=dl(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ul[e];return!a||0===t&&a===al?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function pl(e){void 0===e&&(e={});var t=cl(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=dl(r,e[r],t);return e},onChangeValue:function(e,n){return dl(n,e,t)}}}var fl="",hl="",ml="",gl="",yl=wa&&"ontouchstart"in document.documentElement;if(wa){var vl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bl=document.createElement("p").style;for(var xl in vl)if(xl+"Transform"in bl){fl=xl,hl=vl[xl];break}"Webkit"===fl&&"msHyphens"in bl&&(fl="ms",hl=vl.ms,gl="edge"),"Webkit"===fl&&"-apple-trailing-word"in bl&&(ml="apple")}var Sl={js:fl,css:hl,vendor:ml,browser:gl,isTouch:yl};var wl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Sl.js?"-webkit-"+e:Sl.css+e)}},Cl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Sl.js?Sl.css+"print-"+e:e)}},kl=/[-\s]+(.)?/g;function El(e,t){return t?t.toUpperCase():""}function Tl(e){return e.replace(kl,El)}function Rl(e){return Tl("-"+e)}var Ml,Pl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Sl.js){var n="mask-image";if(Tl(n)in t)return e;if(Sl.js+Rl(n)in t)return Sl.css+e}return e}},Ol={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Sl.vendor||Sl.isTouch?e:Sl.css+e)}},Dl={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Sl.css+e)}},Il={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Sl.css+e)}},ql={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Sl.js||"ms"===Sl.js&&"edge"!==Sl.browser?Sl.css+e:e)}},Al={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Sl.js||"ms"===Sl.js||"apple"===Sl.vendor?Sl.css+e:e)}},Nl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Sl.js?"WebkitColumn"+Rl(e)in t&&Sl.css+"column-"+e:"Moz"===Sl.js&&("page"+Rl(e)in t&&"page-"+e))}},Ll={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Sl.js)return e;var n=e.replace("-inline","");return Sl.js+Rl(n)in t&&Sl.css+n}},zl={supportedProperty:function(e,t){return Tl(e)in t&&e}},jl={supportedProperty:function(e,t){var n=Rl(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Sl.js+n in t?Sl.css+e:"Webkit"!==Sl.js&&"Webkit"+n in t&&"-webkit-"+e}},$l={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Sl.js?""+Sl.css+e:e)}},_l={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Sl.js?Sl.css+"scroll-chaining":e)}},Fl={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Hl={supportedProperty:function(e,t){var n=Fl[e];return!!n&&(Sl.js+Rl(n)in t&&Sl.css+n)}},Bl={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Ul=Object.keys(Bl),Wl=function(e){return Sl.css+e},Vl={supportedProperty:function(e,t,n){var r=n.multiple;if(Ul.indexOf(e)>-1){var o=Bl[e];if(!Array.isArray(o))return Sl.js+Rl(o)in t&&Sl.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Sl.js+Rl(o[0])in t))return!1;return o.map(Wl)}return!1}},Gl=[wl,Cl,Pl,Ol,Dl,Il,ql,Al,Nl,Ll,zl,jl,$l,_l,Hl,Vl],Kl=Gl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Yl=Gl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,la(t.noPrefill)),e}),[]),Xl={};if(wa){Ml=document.createElement("p");var Jl=window.getComputedStyle(document.documentElement,"");for(var Zl in Jl)isNaN(Zl)||(Xl[Jl[Zl]]=Jl[Zl]);Yl.forEach((function(e){return delete Xl[e]}))}function Ql(e,t){if(void 0===t&&(t={}),!Ml)return e;if(null!=Xl[e])return Xl[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ml.style);for(var n=0;n<Kl.length&&(Xl[e]=Kl[n](e,Ml.style,t),!Xl[e]);n++);try{Ml.style[e]=""}catch(e){return!1}return Xl[e]}var ec,tc={},nc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},rc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function oc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ql(t):", "+Ql(n);return r||(t||n)}function ic(e,t){var n=t;if(!ec||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=tc[r])return tc[r];try{ec.style[e]=n}catch(e){return tc[r]=!1,!1}if(nc[e])n=n.replace(rc,oc);else if(""===ec.style[e]&&("-ms-flex"===(n=Sl.css+n)&&(ec.style[e]="-ms-flexbox"),ec.style[e]=n,""===ec.style[e]))return tc[r]=!1,!1;return ec.style[e]="",tc[r]=n,tc[r]}function ac(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Ql(n);i&&i!==n&&(o=!0);var a=!1,s=ic(i,Ia(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Sl.js?e:"@"+Sl.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ic(t,Ia(e))||e}}}function sc(){return{plugins:[Hs(),Ys(),Qs(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=il(e[t]);return e}return il(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ol(t);return t===r?e:(n.prop(r,e),null)}},pl(),"undefined"==typeof window?null:ac(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function lc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Ii({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}wa&&(ec=document.createElement("p"));var cc={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},uc=cc,dc=g.createContext(null);function pc(){return g.useContext(dc)}var fc,hc=Ls(sc()),mc={disableGeneration:!1,generateClassName:ba(),jss:hc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},gc=g.createContext(mc);function yc(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Wi(e,["children","injectFirst","disableGeneration"]),s=Ii({},g.useContext(gc),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!fc){var l=document.head;fc=document.createComment("mui-inject-first"),l.insertBefore(fc,l.firstChild)}s.jss=Ls({plugins:sc().plugins,insertionPoint:fc})}return g.createElement(gc.Provider,{value:s},t)}var vc=-1e9;var bc={};function xc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=uc.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},uc.set(o.sheetsManager,i,r,s));var l=Ii({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=uc.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Ii({link:!1},l))).attach(),o.sheetsCache&&uc.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=js(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Ii({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=lc({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Sc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?bc:i,s=Wi(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Ii({},o);return Object.keys(i).forEach((function(e){a[e]=Ni(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:vc+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pc()||a,r=Ii({},g.useContext(gc),s),i=g.useRef(),c=g.useRef();!function(e,t){var n,r=g.useRef([]),o=g.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),g.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return xc(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=uc.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(uc.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),g.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=lc({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function wc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cc(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wc(e))&&(r&&(r+=" "),r+=t);return r}var kc,Ec,Tc,Rc,Mc={exports:{}},Pc={};function Oc(){return Ec||(Ec=1,Mc.exports=function(){if(kc)return Pc;kc=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,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(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 d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return b(e)===c}return Pc.AsyncMode=l,Pc.ConcurrentMode=c,Pc.ContextConsumer=s,Pc.ContextProvider=a,Pc.Element=t,Pc.ForwardRef=u,Pc.Fragment=r,Pc.Lazy=h,Pc.Memo=f,Pc.Portal=n,Pc.Profiler=i,Pc.StrictMode=o,Pc.Suspense=d,Pc.isAsyncMode=function(e){return x(e)||b(e)===l},Pc.isConcurrentMode=x,Pc.isContextConsumer=function(e){return b(e)===s},Pc.isContextProvider=function(e){return b(e)===a},Pc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pc.isForwardRef=function(e){return b(e)===u},Pc.isFragment=function(e){return b(e)===r},Pc.isLazy=function(e){return b(e)===h},Pc.isMemo=function(e){return b(e)===f},Pc.isPortal=function(e){return b(e)===n},Pc.isProfiler=function(e){return b(e)===i},Pc.isStrictMode=function(e){return b(e)===o},Pc.isSuspense=function(e){return b(e)===d},Pc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},Pc.typeOf=b,Pc}()),Mc.exports}var Dc=function(){if(Rc)return Tc;Rc=1;var e=Oc(),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,u=Object.getPrototypeOf,d=Object.prototype;return Tc=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var y=f[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var v=c(r,y);try{a(t,y,v)}catch(e){}}}}return t},Tc}(),Ic=X(Dc);function qc(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Wi(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Ii({theme:e},n))}}}:{root:t},l=Sc(s,Ii({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=g.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=Wi(t,["children","className","clone","component"]),f=Cc(l(t).root,c),h=p;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),u)return g.cloneElement(s,Ii({className:Cc(s.props.className,f)},h));if("function"==typeof s)return s(Ii({className:f},h));var m=d||e;return g.createElement(m,Ii({ref:r,className:f},h),s)}));return Ic(c,e),c}}function Ac(e){var t=e.children,n=e.theme,r=pc(),o=g.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ii({},e,t)}(r,n);return null!=e&&(e[ya]=null!==r),e}),[n,r]);return g.createElement(dc.Provider,{value:o},t)}var Nc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Wi(t,["defaultTheme","withTheme","name"]),l=a,c=Sc(e,Ii({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=g.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Wi(e,["classes","innerRef"]),u=c(Ii({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=pc()||r,a&&(d=xa({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),g.createElement(n,Ii({ref:s||t,classes:u},d))}));return Ic(u,n),u}},Lc=ga(),zc=function(e){var t=qc(e);return function(e,n){return t(e,Ii({defaultTheme:Lc},n))}};function jc(e,t){return Nc(e,Ii({defaultTheme:Lc},t))}function $c(e){if("string"!=typeof e)throw new Error(ji(7));return e.charAt(0).toUpperCase()+e.slice(1)}function _c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Fc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Fc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Hc(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Fc(e))&&(r&&(r+=" "),r+=t);return r}function Bc(e){return e&&e.ownerDocument||document}function Uc(e){return Bc(e).defaultView||window}function Wc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Vc="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Gc(e){var t=y.useRef(e);return Vc((function(){t.current=e})),y.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Kc(e,t){return y.useMemo((function(){return null==e&&null==t?null:function(n){Wc(e,n),Wc(t,n)}}),[e,t])}var Yc=!0,Xc=!1,Jc=null,Zc={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 Qc(e){e.metaKey||e.altKey||e.ctrlKey||(Yc=!0)}function eu(){Yc=!1}function tu(){"hidden"===this.visibilityState&&Xc&&(Yc=!0)}function nu(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Yc||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Zc[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ru(){Xc=!0,window.clearTimeout(Jc),Jc=window.setTimeout((function(){Xc=!1}),100)}function ou(){var e=y.useCallback((function(e){var t,n=C.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Qc,!0),t.addEventListener("mousedown",eu,!0),t.addEventListener("pointerdown",eu,!0),t.addEventListener("touchstart",eu,!0),t.addEventListener("visibilitychange",tu,!0))}),[]);return{isFocusVisible:nu,onBlurVisible:ru,ref:e}}var iu=!1,au=g.createContext(null),su="unmounted",lu="exited",cu="entering",uu="entered",du="exiting",pu=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=lu,r.appearStatus=cu):o=uu:o=t.unmountOnExit||t.mountOnEnter?su:lu,r.state={status:o},r.nextCallback=null,r}Ta(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===su?{status:lu}: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!==cu&&n!==uu&&(t=cu):n!==cu&&n!==uu||(t=du)}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===cu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lu&&this.setState({status:su})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[k.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||iu?this.safeSetState({status:uu},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:cu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:uu},(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:k.findDOMNode(this);t&&!iu?(this.props.onExit(r),this.safeSetState({status:du},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lu},(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:k.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===su)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=Ui(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(au.Provider,{value:null},"function"==typeof n?n(e,r):g.cloneElement(g.Children.only(n),r))},t}(g.Component);function fu(){}pu.contextType=au,pu.propTypes={},pu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fu,onEntering:fu,onEntered:fu,onExit:fu,onExiting:fu,onExited:fu},pu.UNMOUNTED=su,pu.EXITED=lu,pu.ENTERING=cu,pu.ENTERED=uu,pu.EXITING=du;var hu=pu;function mu(e,t){var n=Object.create(null);return e&&v.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b(e)?t(e):e}(e)})),n}function gu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function yu(e,t,n){var r=mu(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(b(a)){var s=i in t,l=i in r,c=t[i],u=b(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&b(c)&&(o[i]=x(a,{onExited:n.bind(null,a),in:c.props.in,exit:gu(a,"exit",e),enter:gu(a,"enter",e)})):o[i]=x(a,{in:!1}):o[i]=x(a,{onExited:n.bind(null,a),in:!0,exit:gu(a,"exit",e),enter:gu(a,"enter",e)})}})),o}var vu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ra(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ta(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,mu(n.children,(function(e){return x(e,{onExited:r.bind(null,e),in:!0,appear:gu(e,"appear",n),enter:gu(e,"enter",n),exit:gu(e,"exit",n)})}))):yu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=mu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ii({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ui(e,["component","childFactory"]),o=this.state.contextValue,i=vu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?g.createElement(au.Provider,{value:o},i):g.createElement(au.Provider,{value:o},g.createElement(t,r,i))},t}(g.Component);bu.propTypes={},bu.defaultProps={component:"div",childFactory:function(e){return e}};var xu=bu;function Su(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var wu=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=Wi(e,["classes","className","component","square","elevation","variant"]);return y.createElement(i,Ii({className:Hc(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),Cu=jc((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ii({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(wu),ku="undefined"==typeof window?y.useEffect:y.useLayoutEffect;function Eu(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=y.useState(!1),p=d[0],f=d[1],h=Hc(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Hc(t.child,p&&t.childLeaving,r&&t.childPulsate),v=Gc(c);return ku((function(){if(!s){f(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),y.createElement("span",{className:h,style:m},y.createElement("span",{className:g}))}var Tu=y.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Wi(e,["center","classes","className"]),s=y.useState([]),l=s[0],c=s[1],u=y.useRef(0),d=y.useRef(null);y.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=y.useRef(!1),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null);y.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=y.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(la(e),[y.createElement(Eu,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),v=y.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,w=x.clientY;u=Math.round(S-b.left),d=Math.round(w-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(k,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),b=y.useCallback((function(){v({},{pulsate:!0})}),[v]),x=y.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return y.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),y.createElement("span",Ii({className:Hc(o.root,i),ref:m},a),y.createElement(xu,{component:null,exit:!0},l))})),Ru=jc((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(y.memo(Tu)),Mu=y.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,x=e.focusVisibleClassName,S=e.onBlur,w=e.onClick,k=e.onFocus,E=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,M=e.onMouseDown,P=e.onMouseLeave,O=e.onMouseUp,D=e.onTouchEnd,I=e.onTouchMove,q=e.onTouchStart,A=e.onDragLeave,N=e.tabIndex,L=void 0===N?0:N,z=e.TouchRippleProps,j=e.type,$=void 0===j?"button":j,_=Wi(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=y.useRef(null);var H=y.useRef(null),B=y.useState(!1),U=B[0],W=B[1];p&&U&&W(!1);var V=ou(),G=V.isFocusVisible,K=V.onBlurVisible,Y=V.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Gc((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}y.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),F.current.focus()}}}),[]),y.useEffect((function(){U&&b&&!h&&H.current.pulsate()}),[h,b,U]);var J=X("start",M),Z=X("stop",A),Q=X("stop",O),ee=X("stop",(function(e){U&&e.preventDefault(),P&&P(e)})),te=X("start",q),ne=X("stop",D),re=X("stop",I),oe=X("stop",(function(e){U&&(K(e),W(!1)),S&&S(e)}),!1),ie=Gc((function(e){F.current||(F.current=e.currentTarget),G(e)&&(W(!0),E&&E(e)),k&&k(e)})),ae=function(){var e=C.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=y.useRef(!1),le=Gc((function(e){b&&!se.current&&U&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),w&&w(e))})),ce=Gc((function(e){b&&" "===e.key&&H.current&&U&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),R&&R(e),w&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&w(e)})),ue=u;"button"===ue&&_.href&&(ue="a");var de={};"button"===ue?(de.type=$,de.disabled=p):("a"===ue&&_.href||(de.role="button"),de["aria-disabled"]=p);var pe=Kc(r,t),fe=Kc(Y,F),he=Kc(pe,fe),me=y.useState(!1),ge=me[0],ye=me[1];y.useEffect((function(){ye(!0)}),[]);var ve=ge&&!h&&!p;return y.createElement(ue,Ii({className:Hc(s.root,l,U&&[s.focusVisible,x],p&&s.disabled),onBlur:oe,onClick:w,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:p?-1:L},de,_),a,ve?y.createElement(Ru,Ii({ref:H,center:i},z)):null)})),Pu=jc({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Mu),Ou={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Du=y.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,S=void 0===x?Ou:x,w=Wi(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":S[b]||Ou[b])||"span";return y.createElement(C,Ii({className:Hc(o.root,i,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat($c(s))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat($c(r))],"initial"!==u&&o["display".concat($c(u))]),ref:t},w))})),Iu=jc((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Du),qu=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,S=void 0===x?"medium":x,w=e.startIcon,C=e.type,k=void 0===C?"button":C,E=e.variant,T=void 0===E?"text":E,R=Wi(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=w&&y.createElement("span",{className:Hc(r.startIcon,r["iconSize".concat($c(S))])},w),P=m&&y.createElement("span",{className:Hc(r.endIcon,r["iconSize".concat($c(S))])},m);return y.createElement(Pu,Ii({className:Hc(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat($c(a))],"medium"!==S&&[r["".concat(T,"Size").concat($c(S))],r["size".concat($c(S))]],p&&r.disableElevation,u&&r.disabled,b&&r.fullWidth),component:l,disabled:u,focusRipple:!h,focusVisibleClassName:Hc(r.focusVisible,g),ref:t,type:k},R),y.createElement("span",{className:r.label},M,n,P))})),Au=jc((function(e){return{root:Ii({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Bi(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Bi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Bi(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Bi(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Bi(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(qu);var Nu="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,Lu=y.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=y.useState(null),l=s[0],c=s[1],u=Kc(y.isValidElement(n)?n.ref:null,t);return Nu((function(){i||c(function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(r)||document.body)}),[r,i]),Nu((function(){if(l&&!i)return Wc(t,l),function(){Wc(t,null)}}),[t,l,i]),Nu((function(){a&&(l||i)&&a()}),[a,l,i]),i?y.isValidElement(n)?y.cloneElement(n,{ref:u}):n:l?C.createPortal(n,l):l})),zu=Lu;function ju(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $u(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _u(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(la(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&ju(e,r)}))}function Fu(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Hu(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Bc(e);return t.body===e?Uc(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat($u(i)+a,"px"),n=Bc(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat($u(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Bu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return ka(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ju(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);_u(t,e.mountNode,e.modalRef,r,!0);var o=Fu(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Fu(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Hu(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Fu(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ju(e.modalRef,!0),_u(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&ju(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Uu(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=y.useRef(),p=y.useRef(null),f=y.useRef(null),h=y.useRef(),m=y.useRef(null),g=y.useCallback((function(e){m.current=C.findDOMNode(e)}),[]),v=Kc(t.ref,g),b=y.useRef();return y.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(h.current=l().activeElement),y.useEffect((function(){if(u){var e=Bc(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,s,c,u]),y.createElement(y.Fragment,null,y.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),y.cloneElement(t,{ref:v}),y.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Wu={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Vu=y.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Wi(e,["invisible","open"]);return o?y.createElement("div",Ii({"aria-hidden":!0,ref:t},i,{style:Ii({},Wu.root,r?Wu.invisible:{},i.style)})):null}));var Gu=new Bu,Ku=y.forwardRef((function(e,t){var n=pc(),r=xa({name:"MuiModal",props:Ii({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Vu:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,x=r.disablePortal,S=void 0!==x&&x,w=r.disableRestoreFocus,k=void 0!==w&&w,E=r.disableScrollLock,T=void 0!==E&&E,R=r.hideBackdrop,M=void 0!==R&&R,P=r.keepMounted,O=void 0!==P&&P,D=r.manager,I=void 0===D?Gu:D,q=r.onBackdropClick,A=r.onClose,N=r.onEscapeKeyDown,L=r.onRendered,z=r.open,j=Wi(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=y.useState(!0),_=$[0],F=$[1],H=y.useRef({}),B=y.useRef(null),U=y.useRef(null),W=Kc(U,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),G=function(){return Bc(B.current)},K=function(){return H.current.modalRef=U.current,H.current.mountNode=B.current,H.current},Y=function(){I.mount(K(),{disableScrollLock:T}),U.current.scrollTop=0},X=Gc((function(){var e=function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(u)||G().body;I.add(K(),e),U.current&&Y()})),J=y.useCallback((function(){return I.isTopModal(K())}),[I]),Z=Gc((function(e){B.current=e,e&&(L&&L(),z&&J()?Y():ju(U.current,!0))})),Q=y.useCallback((function(){I.remove(K())}),[I]);if(y.useEffect((function(){return function(){Q()}}),[Q]),y.useEffect((function(){z?X():V&&c||Q()}),[z,Q,V,c,X]),!O&&!z&&(!V||_))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:ma}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),V&&(te.onEnter=_c((function(){F(!1)}),s.props.onEnter),te.onExited=_c((function(){F(!0),c&&Q()}),s.props.onExited)),y.createElement(zu,{ref:Z,container:u,disablePortal:S},y.createElement("div",Ii({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(N&&N(e),b||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},j,{style:Ii({},ee.root,!z&&_?ee.hidden:{},j.style)}),M?null:y.createElement(i,Ii({open:z,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!h&&A&&A(e,"backdropClick"))}},a)),y.createElement(Uu,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:k,getDoc:G,isEnabled:J,open:z},y.cloneElement(s,te))))})),Yu=Ku,Xu=y.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,h=e.role,m=void 0===h?"hr"!==s?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,b=Wi(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return y.createElement(s,Ii({className:Hc(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},b))})),Ju=jc((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Bi(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Xu);function Zu(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Qu={entering:{opacity:1,transform:Zu(1)},entered:{opacity:1,transform:"none"}},ed=y.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?hu:m,v=Wi(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=y.useRef(),x=y.useRef(),S=pc()||Lc,w=S.unstable_strictMode&&!o,C=y.useRef(null),k=Kc(n.ref,t),E=Kc(w?C:void 0,k),T=function(e){return function(t,n){if(e){var r=ca(w?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},R=T(l),M=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Su({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),P=T(s),O=T(d),D=T((function(e){var t,n=Su({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Zu(.75),c&&c(e)})),I=T(u);return y.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),y.createElement(g,Ii({appear:!0,in:i,nodeRef:w?C:void 0,onEnter:M,onEntered:P,onEntering:R,onExit:D,onExited:I,onExiting:O,addEndListener:function(e,t){var n=w?e:t;"auto"===h&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return y.cloneElement(n,Ii({style:Ii({opacity:0,transform:Zu(.75),visibility:"exited"!==e||i?void 0:"hidden"},Qu[e],p,n.props.style),ref:E},t))}))}));ed.muiSupportAuto=!0;var td=ed,nd=y.createContext({}),rd=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=Wi(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=y.useMemo((function(){return{dense:l}}),[l]);return y.createElement(nd.Provider,{value:f},y.createElement(a,Ii({className:Hc(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),od=jc({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(rd),id="undefined"==typeof window?y.useEffect:y.useLayoutEffect,ad=y.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=Wi(h,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,S=void 0!==x&&x,w=e.disableGutters,k=void 0!==w&&w,E=e.divider,T=void 0!==E&&E,R=e.focusVisibleClassName,M=e.selected,P=void 0!==M&&M,O=Wi(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=y.useContext(nd),I={dense:b||D.dense||!1,alignItems:r},q=y.useRef(null);id((function(){i&&q.current&&q.current.focus()}),[i]);var A,N,L=y.Children.toArray(l),z=L.length&&(A=L[L.length-1],N=["ListItemSecondaryAction"],y.isValidElement(A)&&-1!==N.indexOf(A.type.muiName)),j=Kc(y.useCallback((function(e){q.current=C.findDOMNode(e)}),[]),t),$=Ii({className:Hc(c.root,u,I.dense&&c.dense,!k&&c.gutters,T&&c.divider,S&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,P&&c.selected),disabled:S},O),_=d||"li";return s&&($.component=d||"div",$.focusVisibleClassName=Hc(c.focusVisible,R),_=Pu),z?(_=$.component||d?_:"div","li"===f&&("li"===_?_="div":"li"===$.component&&($.component="div")),y.createElement(nd.Provider,{value:I},y.createElement(f,Ii({className:Hc(c.container,m),ref:j},g),y.createElement(_,$,L),L.pop()))):y.createElement(nd.Provider,{value:I},y.createElement(_,Ii({ref:j},$),L))})),sd=jc((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(ad),ld=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Wi(e,["classes","className"]),i=y.useContext(nd);return y.createElement("div",Ii({className:Hc(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),cd=jc((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(ld),ud=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=Wi(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=y.useContext(nd).dense,m=null!=c?c:n;null==m||m.type===Iu||a||(m=y.createElement(Iu,Ii({variant:h?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===Iu||a||(g=y.createElement(Iu,Ii({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),y.createElement("div",Ii({className:Hc(r.root,o,h&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},f),m,g)})),dd=jc({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(ud);function pd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function fd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function hd(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function md(e){return"function"==typeof e?e():e}var gd=y.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,b=e.onEnter,x=e.onEntered,S=e.onEntering,w=e.onExit,k=e.onExited,E=e.onExiting,T=e.open,R=e.PaperProps,M=void 0===R?{}:R,P=e.transformOrigin,O=void 0===P?{vertical:"top",horizontal:"left"}:P,D=e.TransitionComponent,I=void 0===D?td:D,q=e.transitionDuration,A=void 0===q?"auto":q,N=e.TransitionProps,L=void 0===N?{}:N,z=Wi(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=y.useRef(),$=y.useCallback((function(e){if("anchorPosition"===l)return a;var t=md(r),n=(t&&1===t.nodeType?t:Bc(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+pd(n,o),left:n.left+fd(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),_=y.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,m]),F=y.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:pd(e,O.vertical)+t,horizontal:fd(e,O.horizontal)}}),[O.horizontal,O.vertical]),H=y.useCallback((function(e){var t=_(e),n={width:e.offsetWidth,height:e.offsetHeight},o=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:hd(o)};var i=$(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Uc(md(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(c>p){var m=c-p;a-=m,o.vertical+=m}if(s<v){var g=s-v;s-=g,o.horizontal+=g}else if(u>f){var y=u-f;s-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:hd(o)}}),[r,l,$,_,F,v]),B=y.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),U=y.useCallback((function(e){j.current=C.findDOMNode(e)}),[]);y.useEffect((function(){T&&B()})),y.useImperativeHandle(n,(function(){return T?{updatePosition:function(){B()}}:null}),[T,B]),y.useEffect((function(){if(T){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,B]);var W=A;"auto"!==A||I.muiSupportAuto||(W=void 0);var V=p||(r?Bc(md(r)).body:void 0);return y.createElement(Yu,Ii({container:V,open:T,ref:t,BackdropProps:{invisible:!0},className:Hc(u.root,d)},z),y.createElement(I,Ii({appear:!0,in:T,onEnter:b,onEntered:x,onExit:w,onExited:k,onExiting:E,timeout:W},L,{onEntering:_c((function(e,t){S&&S(e,t),B()}),L.onEntering)}),y.createElement(Cu,Ii({elevation:h,ref:U},M,{className:Hc(u.paper,M.className)}),c)))})),yd=jc({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(gd);function vd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function bd({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:vd(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return g.createElement("i",{style:o},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},g.createElement("path",{d:e})))}const xd={menuItem:"alternative-menu-item"},Sd=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Sc((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return g.createElement(sd,fi({className:`${o.root} ${n}`},r))},wd=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${xd.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function Cd({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=pe.detectTextDirection(e);return g.createElement(Sd,{nested:r,role:"menuitem",button:!0,onClick:n,className:xd.menuItem,onKeyDown:wd,dir:a,autoFocus:t},g.createElement(dd,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),g.createElement(cd,{style:{minWidth:16}},g.createElement(bd,{d:t?Jo.d:""})),o&&g.createElement(cd,{style:{minWidth:16}},g.createElement(bd,{d:o.d})))}Cd.propTypes={title:Ci.string.isRequired,selected:Ci.bool,onClick:Ci.func.isRequired,nested:Ci.bool,icon:Ci.shape({d:Ci.string.isRequired}),bold:Ci.bool,dir:Ci.string.isRequired},Cd.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Sd.propTypes={nested:Ci.bool,className:Ci.string},Sd.defaultProps={nested:!1,className:xd.menuItem};const kd={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function Ed({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return g.createElement(g.Fragment,{key:t.id},g.createElement(Cd,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&g.createElement(od,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>g.createElement(Cd,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&g.createElement(Ju,{key:`divider-${t.id}`}))}));return g.createElement(yd,fi({anchorEl:t,open:s,onClose:a},kd[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),g.createElement(od,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}Ed.propTypes={chartId:Ci.string.isRequired,alignTo:Ci.any,currentId:Ci.string.isRequired,dir:Ci.string.isRequired,dock:Ci.string.isRequired,list:Ci.array,onClose:Ci.func.isRequired,show:Ci.bool.isRequired,instruction:Ci.string.isRequired},Ed.defaultProps={list:[],alignTo:null};const Td="title-button",Rd="active-title-button",Md=zc((({children:e,...t})=>g.createElement(Au,fi({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Pd=zc(Au)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Od extends g.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=g.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:o}=this.props;n&&(r||o)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${Td}`);t&&(t.focus(),t.classList.add(Rd))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${Td}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Rd}`);e&&(e.classList.remove(Rd),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,h=t.breadcrumbs.map(((e,n)=>g.createElement(Md,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:t.drillUp(p-n),title:e},g.createElement("span",{style:d},e),g.createElement(bd,fi({},Qo,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,y=n&&!this.state.open?this.openPopover:this.closePopover,v=!n||o||this.state.inSelection,b={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&v&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(b.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},S=pe.detectTextDirection(t.text),w=g.createElement(Md,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:b,onClick:v?void 0:y,title:t.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${Td} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&g.createElement(bd,fi({},Xo,{size:"small",title:r.get("Tooltip.selections.locked")})),g.createElement("span",{style:d,dir:S},t.text),n&&m&&g.createElement(bd,fi({},Zo,{size:"small",style:{margin:"0 8px"}})));return g.createElement(g.Fragment,null,t.icon&&t.icon.onClick&&g.createElement(Pd,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},g.createElement(bd,fi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&g.createElement(bd,fi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,g.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&g.createElement(Ed,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function Dd(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function Id(e){function t(e){return!e.isDimension&&se.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:f,translator:h,supportConditional:m=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,S=x&&x[a?"qDimensions":"qMeasures"]||[],w=r||o[a?"qDimensionInfo":"qMeasureInfo"],C=a?ci:di,k=a?ui:pi,E=Boolean(l&&l.colorSupport&&l.modifiers),T=E&&((R=this.settings.settings).isDimension&&se.getValue(R,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var R;const M=w.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,v=k(t,i,l,e),b=r===w.length-1,x=Boolean(e)&&a&&"N"!==t.qGrouping,R=E||x?C({column:i,activeInfo:t,altList:S,app:e,dir:d?"rtl":"ltr",dock:Dd(y),model:l,onChange:c,skipAttributeExpressions:f,translator:h,allowChangeOfAlternatives:E}):void 0;return g.createElement(g.Fragment,{key:t.cId},g.createElement(Od,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:R,titleData:v,model:l,translator:h,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:T,supportConditional:m}),!b&&g.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return g.createElement("div",{style:b,dir:v},M)}}}Od.propTypes={chartId:Ci.string.isRequired,disabled:Ci.bool.isRequired,padding:Ci.string,minWidth:Ci.string,titleData:Ci.shape({breadcrumbs:Ci.arrayOf(Ci.string).isRequired,icon:Ci.shape({path:Ci.shape({d:Ci.string.isRequired}),tooltip:Ci.string.isRequired,onClick:Ci.func}),index:Ci.number.isRequired,locked:Ci.bool.isRequired,text:Ci.string.isRequired,popoverText:Ci.string.isRequired,drillUp:Ci.func,id:Ci.string.isRequired}).isRequired,popover:Ci.shape({dir:Ci.string.isRequired,dock:Ci.string.isRequired,getPopoverOptions:Ci.func.isRequired}),translator:Ci.shape({get:Ci.func.isRequired}).isRequired,selections:Ci.shape({isActive:Ci.func,addListener:Ci.func,removeListener:Ci.func}),style:Ci.shape({fontSize:Ci.string,color:Ci.string,fontFamily:Ci.string}).isRequired,isDimension:Ci.bool.isRequired,hasAlternative:Ci.bool.isRequired,supportConditional:Ci.bool.isRequired,showGroupDimOptions:Ci.bool.isRequired},Od.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const qd=ga({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0}}});const Ad=ba({productionPrefix:"qa80a",disableGlobal:!0,seed:""});function Nd(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",k.render(function(e,t){return g.createElement(yc,{generateClassName:t},g.createElement(Ac,{theme:qd},e))}(e,Ad),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&k.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(k.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}var Ld={black:"#000",white:"#fff"};var zd={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var jd={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var $d={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var _d={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Fd={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Hd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Bd={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"};function Ud(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 Wd=Object.freeze({__proto__:null,default:Ud}),Vd="$$material";var Gd=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Kd="-ms-",Yd="-moz-",Xd="-webkit-",Jd="comm",Zd="rule",Qd="decl",ep="@keyframes",tp=Math.abs,np=String.fromCharCode,rp=Object.assign;function op(e){return e.trim()}function ip(e,t,n){return e.replace(t,n)}function ap(e,t){return e.indexOf(t)}function sp(e,t){return 0|e.charCodeAt(t)}function lp(e,t,n){return e.slice(t,n)}function cp(e){return e.length}function up(e){return e.length}function dp(e,t){return t.push(e),e}var pp=1,fp=1,hp=0,mp=0,gp=0,yp="";function vp(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pp,column:fp,length:a,return:""}}function bp(e,t){return rp(vp("",null,null,"",null,null,0),e,{length:-e.length},t)}function xp(){return gp=mp>0?sp(yp,--mp):0,fp--,10===gp&&(fp=1,pp--),gp}function Sp(){return gp=mp<hp?sp(yp,mp++):0,fp++,10===gp&&(fp=1,pp++),gp}function wp(){return sp(yp,mp)}function Cp(){return mp}function kp(e,t){return lp(yp,e,t)}function Ep(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 Tp(e){return pp=fp=1,hp=cp(yp=e),mp=0,[]}function Rp(e){return yp="",e}function Mp(e){return op(kp(mp-1,Dp(91===e?e+2:40===e?e+1:e)))}function Pp(e){for(;(gp=wp())&&gp<33;)Sp();return Ep(e)>2||Ep(gp)>3?"":" "}function Op(e,t){for(;--t&&Sp()&&!(gp<48||gp>102||gp>57&&gp<65||gp>70&&gp<97););return kp(e,Cp()+(t<6&&32==wp()&&32==Sp()))}function Dp(e){for(;Sp();)switch(gp){case e:return mp;case 34:case 39:34!==e&&39!==e&&Dp(gp);break;case 40:41===e&&Dp(e);break;case 92:Sp()}return mp}function Ip(e,t){for(;Sp()&&e+gp!==57&&(e+gp!==84||47!==wp()););return"/*"+kp(t,mp-1)+"*"+np(47===e?e:Sp())}function qp(e){for(;!Ep(wp());)Sp();return kp(e,mp)}function Ap(e){return Rp(Np("",null,null,null,[""],e=Tp(e),0,[0],e))}function Np(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,y=1,v=0,b="",x=o,S=i,w=r,C=b;g;)switch(h=v,v=Sp()){case 40:if(108!=h&&58==sp(C,d-1)){-1!=ap(C+=ip(Mp(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Mp(v);break;case 9:case 10:case 13:case 32:C+=Pp(h);break;case 92:C+=Op(Cp()-1,7);continue;case 47:switch(wp()){case 42:case 47:dp(zp(Ip(Sp(),Cp()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=cp(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=ip(C,/\f/g,"")),f>0&&cp(C)-d&&dp(f>32?jp(C+";",r,n,d-1):jp(ip(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(dp(w=Lp(C,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)Np(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===sp(C,3)?100:p){case 100:case 108:case 109:case 115:Np(e,w,w,r&&dp(Lp(e,w,w,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:Np(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=y=1,b=C="",d=a;break;case 58:d=1+cp(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==xp())continue;switch(C+=np(v),v*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(cp(C)-1)*y,y=1;break;case 64:45===wp()&&(C+=Mp(Sp())),p=wp(),u=d=cp(b=C+=qp(Cp())),v++;break;case 45:45===h&&2==cp(C)&&(m=0)}}return i}function Lp(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=up(p),h=0,m=0,g=0;h<r;++h)for(var y=0,v=lp(e,d+1,d=tp(m=a[h])),b=e;y<f;++y)(b=op(m>0?p[y]+" "+v:ip(v,/&\f/g,p[y])))&&(l[g++]=b);return vp(e,t,n,0===o?Zd:s,l,c,u)}function zp(e,t,n){return vp(e,t,n,Jd,np(gp),lp(e,2,-2),0)}function jp(e,t,n,r){return vp(e,t,n,Qd,lp(e,0,r),lp(e,r+1,-1),r)}function $p(e,t){for(var n="",r=up(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _p(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qd:return e.return=e.return||e.value;case Jd:return"";case ep:return e.return=e.value+"{"+$p(e.children,r)+"}";case Zd:e.value=e.props.join(",")}return cp(n=$p(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Hp=function(e,t,n){for(var r=0,o=0;r=o,o=wp(),38===r&&12===o&&(t[n]=1),!Ep(o);)Sp();return kp(e,mp)},Bp=function(e,t){return Rp(function(e,t){var n=-1,r=44;do{switch(Ep(r)){case 0:38===r&&12===wp()&&(t[n]=1),e[n]+=Hp(mp-1,t,n);break;case 2:e[n]+=Mp(r);break;case 4:if(44===r){e[++n]=58===wp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=np(r)}}while(r=Sp());return e}(Tp(e),t))},Up=new WeakMap,Wp=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)||Up.get(n))&&!r){Up.set(e,!0);for(var o=[],i=Bp(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]}}},Vp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Gp(e,t){switch(function(e,t){return 45^sp(e,0)?(((t<<2^sp(e,0))<<2^sp(e,1))<<2^sp(e,2))<<2^sp(e,3):0}(e,t)){case 5103:return Xd+"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 Xd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xd+e+Yd+e+Kd+e+e;case 6828:case 4268:return Xd+e+Kd+e+e;case 6165:return Xd+e+Kd+"flex-"+e+e;case 5187:return Xd+e+ip(e,/(\w+).+(:[^]+)/,Xd+"box-$1$2"+Kd+"flex-$1$2")+e;case 5443:return Xd+e+Kd+"flex-item-"+ip(e,/flex-|-self/,"")+e;case 4675:return Xd+e+Kd+"flex-line-pack"+ip(e,/align-content|flex-|-self/,"")+e;case 5548:return Xd+e+Kd+ip(e,"shrink","negative")+e;case 5292:return Xd+e+Kd+ip(e,"basis","preferred-size")+e;case 6060:return Xd+"box-"+ip(e,"-grow","")+Xd+e+Kd+ip(e,"grow","positive")+e;case 4554:return Xd+ip(e,/([^-])(transform)/g,"$1"+Xd+"$2")+e;case 6187:return ip(ip(ip(e,/(zoom-|grab)/,Xd+"$1"),/(image-set)/,Xd+"$1"),e,"")+e;case 5495:case 3959:return ip(e,/(image-set\([^]*)/,Xd+"$1$`$1");case 4968:return ip(ip(e,/(.+:)(flex-)?(.*)/,Xd+"box-pack:$3"+Kd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xd+e+e;case 4095:case 3583:case 4068:case 2532:return ip(e,/(.+)-inline(.+)/,Xd+"$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(cp(e)-1-t>6)switch(sp(e,t+1)){case 109:if(45!==sp(e,t+4))break;case 102:return ip(e,/(.+:)(.+)-([^]+)/,"$1"+Xd+"$2-$3$1"+Yd+(108==sp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ap(e,"stretch")?Gp(ip(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==sp(e,t+1))break;case 6444:switch(sp(e,cp(e)-3-(~ap(e,"!important")&&10))){case 107:return ip(e,":",":"+Xd)+e;case 101:return ip(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xd+(45===sp(e,14)?"inline-":"")+"box$3$1"+Xd+"$2$3$1"+Kd+"$2box$3")+e}break;case 5936:switch(sp(e,t+11)){case 114:return Xd+e+Kd+ip(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xd+e+Kd+ip(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xd+e+Kd+ip(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xd+e+Kd+e+e}return e}var Kp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Qd:e.return=Gp(e.value,e.length);break;case ep:return $p([bp(e,{value:ip(e.value,"@","@"+Xd)})],r);case Zd: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 $p([bp(e,{props:[ip(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $p([bp(e,{props:[ip(t,/:(plac\w+)/,":"+Xd+"input-$1")]}),bp(e,{props:[ip(t,/:(plac\w+)/,":-moz-$1")]}),bp(e,{props:[ip(t,/:(plac\w+)/,Kd+"input-$1")]})],r)}return""}))}}],Yp=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Kp,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[_p,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=up(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Wp,Vp].concat(i,u));o=function(e,t,n,r){l=n,function(e){$p(Ap(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Gd({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function Xp(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Jp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Zp=function(e,t,n){Jp(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 Qp={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},ef=!1,tf=/[A-Z]|^ms/g,nf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rf=function(e){return 45===e.charCodeAt(1)},of=function(e){return null!=e&&"boolean"!=typeof e},af=Fp((function(e){return rf(e)?e:e.replace(tf,"-$&").toLowerCase()})),sf=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(nf,(function(e,t,n){return uf={name:t,styles:n,next:uf},t}))}return 1===Qp[e]||rf(e)||"number"!=typeof t||0===t?t:t+"px"},lf="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function cf(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return uf={name:o.name,styles:o.styles,next:uf},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)uf={name:a.name,styles:a.styles,next:uf},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+=cf(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]+"}":of(s)&&(r+=af(i)+":"+sf(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&ef)throw new Error(lf);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=cf(e,t,a);switch(i){case"animation":case"animationName":r+=af(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)of(a[c])&&(r+=af(i)+":"+sf(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=uf,l=n(e);return uf=s,cf(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var uf,df=/label:\s*([^\s;{]+)\s*(;|$)/g;function pf(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="";uf=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=cf(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=cf(n,t,e[a]),r)o+=i[a]}df.lastIndex=0;for(var s,l="";null!==(s=df.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:uf}}var ff,hf,mf=!!y.useInsertionEffect&&y.useInsertionEffect,gf=mf||function(e){return e()},yf=mf||y.useLayoutEffect,vf=y.createContext("undefined"!=typeof HTMLElement?Yp({key:"css"}):null),bf=vf.Provider,xf=function(e){return S((function(t,n){var r=w(vf);return e(t,r,n)}))},Sf=y.createContext({}),wf={}.hasOwnProperty,Cf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kf=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Jp(t,n,r),gf((function(){return Zp(t,n,r)})),null},Ef=xf((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Cf],i=[r],a="";"string"==typeof e.className?a=Xp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=pf(i,void 0,y.useContext(Sf));a+=t.key+"-"+s.name;var l={};for(var c in e)wf.call(e,c)&&"css"!==c&&c!==Cf&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(kf,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))})),Tf=Ef,Rf=function(e,t){var n=arguments;if(null==t||!wf.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Tf,o[1]=function(e,t){var n={};for(var r in t)wf.call(t,r)&&(n[r]=t[r]);return n[Cf]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};ff=Rf||(Rf={}),hf||(hf=ff.JSX||(ff.JSX={}));var Mf=xf((function(e,t){var n=pf([e.styles],void 0,y.useContext(Sf)),r=y.useRef();return yf((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]),yf((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Zp(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 Pf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pf(t)}function Of(){var e=Pf.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Df=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,If=Fp((function(e){return Df.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),qf=function(e){return"theme"!==e},Af=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?If:qf},Nf=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},Lf=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Jp(t,n,r),gf((function(){return Zp(t,n,r)})),null},zf=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Nf(t,n,i),l=s||Af(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],p[h])}var m=xf((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=y.useContext(Sf)}"string"==typeof e.className?i=Xp(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=pf(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?Af(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),y.createElement(y.Fragment,null,y.createElement(Lf,{cache:t,serialized:h,isStringTag:"string"==typeof r}),y.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Ii({},n,r,{shouldForwardProp:Nf(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){zf[e]=zf(e)}));var jf,$f,_f={exports:{}},Ff={};var Hf=($f||($f=1,_f.exports=function(){if(jf)return Ff;jf=1;var e=g,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,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=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:u,props:l,_owner:o.current}}return Ff.Fragment=n,Ff.jsx=a,Ff.jsxs=a,Ff}()),_f.exports);let Bf;"object"==typeof document&&(Bf=Yp({key:"css",prepend:!0}));var Uf=Object.freeze({__proto__:null,GlobalStyles:function(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 Hf.jsx(Mf,{styles:r})}
15
15
  /**
16
16
  * @mui/styled-engine v5.15.14
17
17
  *
18
18
  * @license MIT
19
19
  * This source code is licensed under the MIT license found in the
20
20
  * LICENSE file in the root directory of this source tree.
21
- */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Sh?wh.jsx(Qf,{value:Sh,children:n}):n},ThemeContext:th,css:rh,default:function(e,t){return dh(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:oh});function kh(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 Eh(e){if(!kh(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Eh(e[n])})),t}function Th(e,t,n={clone:!0}){const r=n.clone?Ii({},e):e;return kh(e)&&kh(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(kh(t[o])&&o in e&&kh(e[o])?r[o]=Th(e[o],t[o],n):n.clone?r[o]=kh(t[o])?Eh(t[o]):t[o]:r[o]=t[o])})),r}var Rh=Object.freeze({__proto__:null,default:Th,isPlainObject:kh});const Mh=["values","unit","step"],Ph=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)=>Ii({},e,{[t.key]:t.val})),{})};function Dh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ui(e,Mh),i=Ph(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 Ii({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)}var Oh={borderRadius:4};function Ih(e,t){return t?Th(e,t,{clone:!1}):e}const qh={xs:0,sm:600,md:900,lg:1200,xl:1536},Ah={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qh[e]}px)`};function Nh(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ah;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ah;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||qh).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Lh(e){if("string"!=typeof e)throw new Error(vp(7));return e.charAt(0).toUpperCase()+e.slice(1)}var zh=Object.freeze({__proto__:null,default:Lh});function jh(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 $h(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:jh(e,n)||r,t&&(o=t(o,r,e)),o}function _h(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=jh(e.theme,r)||{};return Nh(e,i,(e=>{let r=$h(a,o,e);return e===r&&"string"==typeof e&&(r=$h(a,o,`${t}${"default"===e?"":Lh(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Fh={m:"margin",p:"padding"},Hh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Uh=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Bh[e])return[e];e=Bh[e]}const[t,n]=e.split(""),r=Fh[t],o=Hh[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Wh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Gh(e,t,n,r){var o;const i=null!=(o=jh(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 Kh(e){return Gh(e,"spacing",8)}function Yh(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 Xh(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Yh(t,n),e)),{})}(Uh(n),r);return Nh(e,e[n],o)}function Jh(e,t){const n=Kh(e.theme);return Object.keys(e).map((r=>Xh(e,t,r,n))).reduce(Ih,{})}function Zh(e){return Jh(e,Wh)}function Qh(e){return Jh(e,Vh)}function em(...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]?Ih(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function tm(e){return"number"!=typeof e?e:`${e}px solid`}function nm(e,t){return _h({prop:e,themeKey:"borders",transform:t})}Zh.propTypes={},Zh.filterProps=Wh,Qh.propTypes={},Qh.filterProps=Vh;const rm=nm("border",tm),om=nm("borderTop",tm),im=nm("borderRight",tm),am=nm("borderBottom",tm),sm=nm("borderLeft",tm),lm=nm("borderColor"),cm=nm("borderTopColor"),um=nm("borderRightColor"),dm=nm("borderBottomColor"),pm=nm("borderLeftColor"),fm=nm("outline",tm),hm=nm("outlineColor"),mm=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Gh(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Yh(t,e)});return Nh(e,e.borderRadius,n)}return null};mm.propTypes={},mm.filterProps=["borderRadius"],em(rm,om,im,am,sm,lm,cm,um,dm,pm,mm,fm,hm);const gm=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Gh(e.theme,"spacing",8),n=e=>({gap:Yh(t,e)});return Nh(e,e.gap,n)}return null};gm.propTypes={},gm.filterProps=["gap"];const ym=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Gh(e.theme,"spacing",8),n=e=>({columnGap:Yh(t,e)});return Nh(e,e.columnGap,n)}return null};ym.propTypes={},ym.filterProps=["columnGap"];const vm=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Gh(e.theme,"spacing",8),n=e=>({rowGap:Yh(t,e)});return Nh(e,e.rowGap,n)}return null};vm.propTypes={},vm.filterProps=["rowGap"];function bm(e,t){return"grey"===t?t:e}em(gm,ym,vm,_h({prop:"gridColumn"}),_h({prop:"gridRow"}),_h({prop:"gridAutoFlow"}),_h({prop:"gridAutoColumns"}),_h({prop:"gridAutoRows"}),_h({prop:"gridTemplateColumns"}),_h({prop:"gridTemplateRows"}),_h({prop:"gridTemplateAreas"}),_h({prop:"gridArea"}));function xm(e){return e<=1&&0!==e?100*e+"%":e}em(_h({prop:"color",themeKey:"palette",transform:bm}),_h({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bm}),_h({prop:"backgroundColor",themeKey:"palette",transform:bm}));const wm=_h({prop:"width",transform:xm}),Sm=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])||qh[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:xm(t)}};return Nh(e,e.maxWidth,t)}return null};Sm.filterProps=["maxWidth"];const Cm=_h({prop:"minWidth",transform:xm}),km=_h({prop:"height",transform:xm}),Em=_h({prop:"maxHeight",transform:xm}),Tm=_h({prop:"minHeight",transform:xm});_h({prop:"size",cssProperty:"width",transform:xm}),_h({prop:"size",cssProperty:"height",transform:xm});em(wm,Sm,Cm,km,Em,Tm,_h({prop:"boxSizing"}));var Rm={border:{themeKey:"borders",transform:tm},borderTop:{themeKey:"borders",transform:tm},borderRight:{themeKey:"borders",transform:tm},borderBottom:{themeKey:"borders",transform:tm},borderLeft:{themeKey:"borders",transform:tm},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tm},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mm},color:{themeKey:"palette",transform:bm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bm},backgroundColor:{themeKey:"palette",transform:bm},p:{style:Qh},pt:{style:Qh},pr:{style:Qh},pb:{style:Qh},pl:{style:Qh},px:{style:Qh},py:{style:Qh},padding:{style:Qh},paddingTop:{style:Qh},paddingRight:{style:Qh},paddingBottom:{style:Qh},paddingLeft:{style:Qh},paddingX:{style:Qh},paddingY:{style:Qh},paddingInline:{style:Qh},paddingInlineStart:{style:Qh},paddingInlineEnd:{style:Qh},paddingBlock:{style:Qh},paddingBlockStart:{style:Qh},paddingBlockEnd:{style:Qh},m:{style:Zh},mt:{style:Zh},mr:{style:Zh},mb:{style:Zh},ml:{style:Zh},mx:{style:Zh},my:{style:Zh},margin:{style:Zh},marginTop:{style:Zh},marginRight:{style:Zh},marginBottom:{style:Zh},marginLeft:{style:Zh},marginX:{style:Zh},marginY:{style:Zh},marginInline:{style:Zh},marginInlineStart:{style:Zh},marginInlineEnd:{style:Zh},marginBlock:{style:Zh},marginBlockStart:{style:Zh},marginBlockEnd:{style:Zh},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:gm},rowGap:{style:vm},columnGap:{style:ym},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xm},maxWidth:{style:Sm},minWidth:{transform:xm},height:{transform:xm},maxHeight:{transform:xm},minHeight:{transform:xm},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Mm(){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 u=jh(n,s)||{};if(c)return c(o);return Nh(o,t,(t=>{let n=$h(u,l,t);return t===n&&"string"==typeof t&&(n=$h(u,l,`${e}${"default"===t?"":Lh(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Rm;function s(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;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=Ih(l,e(n,o,i,a));else{const e=Nh({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)?l=Ih(l,e):l[n]=t({sx:o,theme:i})}else l=Ih(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const Pm=Mm();Pm.filterProps=["sx"];var Dm=Pm;function Om(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const Im=["breakpoints","palette","spacing","shape"];function qm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ui(e,Im),s=Dh(n),l=function(e=8){if(e.mui)return e;const t=Kh({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=Th({breakpoints:s,direction:"ltr",components:{},palette:Ii({mode:"light"},r),spacing:l,shape:Ii({},Oh,i)},a);return c.applyStyles=Om,c=t.reduce(((e,t)=>Th(e,t)),c),c.unstable_sxConfig=Ii({},Rm,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Dm({sx:e,theme:this})},c}var Am=Object.freeze({__proto__:null,default:qm,private_createBreakpoints:Dh,unstable_applyStyles:Om});function Nm(e=null){const t=y.useContext(th);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Lm=qm();const zm=["sx"];var jm=Object.freeze({__proto__:null,default:Dm,extendSxProp:function(e){const{sx:t}=e,n=Ui(e,zm),{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:Rm;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 kh(n)?Ii({},r,n):r}:Ii({},r,t),Ii({},o,{sx:i})},unstable_createStyleFunctionSx:Mm,unstable_defaultSxConfig:Rm});const $m=e=>e;var _m=(()=>{let e=$m;return{configure(t){e=t},generate:t=>e(t),reset(){e=$m}}})();function Fm(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=Fm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fm(e))&&(r&&(r+=" "),r+=t);return r}const Bm={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 Um(e,t,n="Mui"){const r=Bm[t];return r?`${n}-${r}`:`${_m.generate(e)}-${t}`}function Wm(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Um(e,t,n)})),r}var Vm,Gm={exports:{}},Km={},Ym=Symbol.for("react.element"),Xm=Symbol.for("react.portal"),Jm=Symbol.for("react.fragment"),Zm=Symbol.for("react.strict_mode"),Qm=Symbol.for("react.profiler"),eg=Symbol.for("react.provider"),tg=Symbol.for("react.context"),ng=Symbol.for("react.server_context"),rg=Symbol.for("react.forward_ref"),og=Symbol.for("react.suspense"),ig=Symbol.for("react.suspense_list"),ag=Symbol.for("react.memo"),sg=Symbol.for("react.lazy"),lg=Symbol.for("react.offscreen");function cg(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ym:switch(e=e.type){case Jm:case Qm:case Zm:case og:case ig:return e;default:switch(e=e&&e.$$typeof){case ng:case tg:case rg:case sg:case ag:case eg:return e;default:return t}}case Xm:return t}}}Vm=Symbol.for("react.module.reference"),Km.ContextConsumer=tg,Km.ContextProvider=eg,Km.Element=Ym,Km.ForwardRef=rg,Km.Fragment=Jm,Km.Lazy=sg,Km.Memo=ag,Km.Portal=Xm,Km.Profiler=Qm,Km.StrictMode=Zm,Km.Suspense=og,Km.SuspenseList=ig,Km.isAsyncMode=function(){return!1},Km.isConcurrentMode=function(){return!1},Km.isContextConsumer=function(e){return cg(e)===tg},Km.isContextProvider=function(e){return cg(e)===eg},Km.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ym},Km.isForwardRef=function(e){return cg(e)===rg},Km.isFragment=function(e){return cg(e)===Jm},Km.isLazy=function(e){return cg(e)===sg},Km.isMemo=function(e){return cg(e)===ag},Km.isPortal=function(e){return cg(e)===Xm},Km.isProfiler=function(e){return cg(e)===Qm},Km.isStrictMode=function(e){return cg(e)===Zm},Km.isSuspense=function(e){return cg(e)===og},Km.isSuspenseList=function(e){return cg(e)===ig},Km.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Jm||e===Qm||e===Zm||e===og||e===ig||e===lg||"object"==typeof e&&null!==e&&(e.$$typeof===sg||e.$$typeof===ag||e.$$typeof===eg||e.$$typeof===tg||e.$$typeof===rg||e.$$typeof===Vm||void 0!==e.getModuleId)},Km.typeOf=cg,Gm.exports=Km;var ug=Gm.exports;const dg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function pg(e){const t=`${e}`.match(dg);return t&&t[1]||""}function fg(e,t=""){return e.displayName||e.name||pg(e)||t}function hg(e,t,n){const r=fg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var mg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return fg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ug.ForwardRef:return hg(e,e.render,"ForwardRef");case ug.Memo:return hg(e,e.type,"memo");default:return}}},getFunctionName:pg});function gg(e,t){const n=Ii({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ii({},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]=Ii({},i),Object.keys(o).forEach((e=>{n[r][e]=gg(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function yg({props:e,name:t,defaultTheme:n,themeId:r}){let o=function(e=Lm){return Nm(e)}(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?gg(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var vg="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;var bg=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function xg(e){const t=y.useRef(e);return vg((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function wg(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const Sg={};const Cg=[];class kg{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new kg}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Eg(){const e=function(e,t){const n=y.useRef(Sg);return n.current===Sg&&(n.current=e(t)),n}(kg.create).current;var t;return t=e.disposeEffect,y.useEffect(t,Cg),e}let Tg=!0,Rg=!1;const Mg=new kg,Pg={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 Dg(e){e.metaKey||e.altKey||e.ctrlKey||(Tg=!0)}function Og(){Tg=!1}function Ig(){"hidden"===this.visibilityState&&Rg&&(Tg=!0)}function qg(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Tg||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Pg[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ag(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Dg,!0),t.addEventListener("mousedown",Og,!0),t.addEventListener("pointerdown",Og,!0),t.addEventListener("touchstart",Og,!0),t.addEventListener("visibilitychange",Ig,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qg(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rg=!0,Mg.start(100,(()=>{Rg=!1})),t.current=!1,!0)},ref:e}}function Ng(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}var Lg=y.createContext(null);function zg(){return y.useContext(Lg)}var jg="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $g(e){const{children:t,theme:n}=e,r=zg(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ii({},e,t)}(r,n);return null!=e&&(e[jg]=null!==r),e}),[n,r]);return wh.jsx(Lg.Provider,{value:o,children:t})}const _g=["value"],Fg=y.createContext();function Hg(e){let{value:t}=e,n=Ui(e,_g);return wh.jsx(Fg.Provider,Ii({value:null==t||t},n))}const Bg={};function Ug(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ii({},t,{[e]:i}):i;return r?()=>a:a}return Ii({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Wg(e){const{children:t,theme:n,themeId:r}=e,o=Nm(Bg),i=zg()||Bg,a=Ug(r,o,n),s=Ug(r,i,n,!0),l="rtl"===a.direction;return wh.jsx($g,{theme:s,children:wh.jsx(th.Provider,{value:a,children:wh.jsx(Hg,{value:l,children:t})})})}var Vg,Gg={},Kg={exports:{}};(Vg=Kg).exports=function(e){return e&&e.__esModule?e:{default:e}},Vg.exports.__esModule=!0,Vg.exports.default=Vg.exports;var Yg=Kg.exports,Xg=J(bp),Jg=J(bg),Zg=Yg;Object.defineProperty(Gg,"__esModule",{value:!0});var Qg=Gg.alpha=py;Gg.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=sy(e),a=sy(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return cy({type:"rgb",values:s})},Gg.colorChannel=void 0;var ey=Gg.darken=fy;Gg.decomposeColor=sy,Gg.emphasize=function(e,t=.15){return dy(e)>.5?fy(e,t):hy(e,t)};var ty=Gg.getContrastRatio=function(e,t){const n=dy(e),r=dy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Gg.getLuminance=dy,Gg.hexToRgb=ay,Gg.hslToRgb=uy;var ny=Gg.lighten=hy;Gg.private_safeAlpha=function(e,t,n){try{return py(e,t)}catch(t){return e}},Gg.private_safeColorChannel=void 0,Gg.private_safeDarken=function(e,t,n){try{return fy(e,t)}catch(t){return e}},Gg.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},Gg.private_safeLighten=function(e,t,n){try{return hy(e,t)}catch(t){return e}},Gg.recomposeColor=cy,Gg.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=sy(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 ry=Zg(Xg),oy=Zg(Jg);function iy(e,t=0,n=1){return(0,oy.default)(e,t,n)}function ay(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 sy(e){if(e.type)return e;if("#"===e.charAt(0))return sy(ay(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,ry.default)(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((0,ry.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const ly=e=>{const t=sy(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Gg.colorChannel=ly;function cy(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 uy(e){e=sy(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),cy({type:s,values:l})}function dy(e){let t="hsl"===(e=sy(e)).type||"hsla"===e.type?sy(uy(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 py(e,t){return e=sy(e),t=iy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,cy(e)}function fy(e,t){if(e=sy(e),t=iy(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 cy(e)}function hy(e,t){if(e=sy(e),t=iy(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 cy(e)}Gg.private_safeColorChannel=(e,t)=>{try{return ly(e)}catch(t){return e}};const my=["mode","contrastThreshold","tonalOffset"],gy={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:up.white,default:up.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}},yy={text:{primary:up.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:up.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 vy(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=ny(e.main,o):"dark"===t&&(e.dark=ey(e.main,i)))}function by(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ui(e,my),i=e.primary||function(e="light"){return"dark"===e?{main:fp[200],light:fp[50],dark:fp[400]}:{main:fp[700],light:fp[400],dark:fp[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:pp[200],light:pp[50],dark:pp[400]}:{main:pp[500],light:pp[300],dark:pp[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:dp[500],light:dp[300],dark:dp[700]}:{main:dp[700],light:dp[400],dark:dp[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:hp[400],light:hp[300],dark:hp[700]}:{main:hp[700],light:hp[500],dark:hp[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:mp[400],light:mp[300],dark:mp[700]}:{main:mp[800],light:mp[500],dark:mp[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:gp[400],light:gp[300],dark:gp[700]}:{main:"#ed6c02",light:gp[500],dark:gp[900]}}(t);function d(e){return ty(e,yy.text.primary)>=n?yy.text.primary:gy.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ii({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(vp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(vp(12,t?` (${t})`:"",JSON.stringify(e.main)));return vy(e,"light",o,r),vy(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:yy,light:gy};return Th(Ii({common:Ii({},up),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:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:yp,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const xy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const wy={textTransform:"uppercase"},Sy='"Roboto", "Helvetica", "Arial", sans-serif';function Cy(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Sy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Ui(n,xy),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Ii({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Sy?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={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,wy),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,wy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Th(Ii({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function ky(...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(",")}var Ey=["none",ky(0,2,1,-1,0,1,1,0,0,1,3,0),ky(0,3,1,-2,0,2,2,0,0,1,5,0),ky(0,3,3,-2,0,3,4,0,0,1,8,0),ky(0,2,4,-1,0,4,5,0,0,1,10,0),ky(0,3,5,-1,0,5,8,0,0,1,14,0),ky(0,3,5,-1,0,6,10,0,0,1,18,0),ky(0,4,5,-2,0,7,10,1,0,2,16,1),ky(0,5,5,-3,0,8,10,1,0,3,14,2),ky(0,5,6,-3,0,9,12,1,0,3,16,2),ky(0,6,6,-3,0,10,14,1,0,4,18,3),ky(0,6,7,-4,0,11,15,1,0,4,20,3),ky(0,7,8,-4,0,12,17,2,0,5,22,4),ky(0,7,8,-4,0,13,19,2,0,5,24,4),ky(0,7,9,-4,0,14,21,2,0,5,26,4),ky(0,8,9,-5,0,15,22,2,0,6,28,5),ky(0,8,10,-5,0,16,24,2,0,6,30,5),ky(0,8,11,-5,0,17,26,2,0,6,32,5),ky(0,9,11,-5,0,18,28,2,0,7,34,6),ky(0,9,12,-6,0,19,29,2,0,7,36,6),ky(0,10,13,-6,0,20,31,3,0,8,38,7),ky(0,10,13,-6,0,21,33,3,0,8,40,7),ky(0,10,14,-6,0,22,35,3,0,8,42,7),ky(0,11,14,-7,0,23,36,3,0,9,44,8),ky(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ty=["duration","easing","delay"],Ry={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)"},My={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Py(e){return`${Math.round(e)}ms`}function Dy(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Oy(e){const t=Ii({},Ry,e.easing),n=Ii({},My,e.duration);return Ii({getAutoHeightDuration:Dy,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ui(r,Ty),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Py(o)} ${i} ${"string"==typeof a?a:Py(a)}`)).join(",")}},e,{easing:t,duration:n})}var Iy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const qy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ay(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ui(e,qy);if(e.vars)throw new Error(vp(18));const s=by(r),l=qm(e);let c=Th(l,{mixins:(u=l.breakpoints,d=n,Ii({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Ey.slice(),typography:Cy(s,i),transitions:Oy(o),zIndex:Ii({},Iy)});var u,d;return c=Th(c,a),c=t.reduce(((e,t)=>Th(e,t)),c),c.unstable_sxConfig=Ii({},Rm,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Dm({sx:e,theme:this})},c}var Ny=Ay();function Ly({props:e,name:t}){return yg({props:e,name:t,defaultTheme:Ny,themeId:xp})}var zy,jy={},$y={exports:{}};var _y,Fy={exports:{}};var Hy=J(Ch),By=J(Rh),Uy=J(zh),Wy=J(mg),Vy=J(Am),Gy=J(jm),Ky=Yg;Object.defineProperty(jy,"__esModule",{value:!0});var Yy=jy.default=function(e={}){const{themeId:t,defaultTheme:n=sv,rootShouldForwardProp:r=av,slotShouldForwardProp:o=av}=e,i=e=>(0,tv.default)((0,Xy.default)({},e,{theme:cv((0,Xy.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Zy.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=uv(lv(l))}=a,p=(0,Jy.default)(a,ov),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let m=av;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Zy.default)(e,(0,Xy.default)({shouldForwardProp:m,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Qy.isPlainObject)(e)?r=>dv(e,(0,Xy.default)({},r,{theme:cv({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=cv((0,Xy.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=dv(n,(0,Xy.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=cv((0,Xy.default)({},e,{defaultTheme:n,themeId:t}));return dv({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,Xy.default)({},e,{theme:o}))})),h||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};jy.shouldForwardProp=av,jy.systemDefaultTheme=void 0;var Xy=Ky((zy||(zy=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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($y)),$y.exports)),Jy=Ky((_y||(_y=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Fy)),Fy.exports)),Zy=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=iv(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}(Hy),Qy=By;Ky(Uy),Ky(Wy);var ev=Ky(Vy),tv=Ky(Gy);const nv=["ownerState"],rv=["variants"],ov=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iv(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(iv=function(e){return e?n:t})(e)}function av(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const sv=jy.systemDefaultTheme=(0,ev.default)(),lv=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function cv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function uv(e){return e?(t,n)=>n[e]:null}function dv(e,t){let{ownerState:n}=t,r=(0,Jy.default)(t,nv);const o="function"==typeof e?e((0,Xy.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>dv(e,(0,Xy.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Jy.default)(o,rv);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Xy.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Xy.default)({ownerState:n},r,n)):e.style))})),t}return o}var pv=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var fv=Yy({themeId:xp,defaultTheme:Ny,rootShouldForwardProp:pv});const hv=["theme"];function mv(e){let{theme:t}=e,n=Ui(e,hv);const r=t[xp];return wh.jsx(Wg,Ii({},n,{themeId:r?xp:void 0,theme:r||t}))}function gv(e){return Um("MuiSvgIcon",e)}Wm("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yv=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],vv=fv("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Lh(n.color)}`],t[`fontSize${Lh(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;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==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),bv=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Ui(n,yv),f=y.isValidElement(r)&&"svg"===r.type,h=Ii({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Ng({root:["root","inherit"!==t&&`color${Lh(t)}`,`fontSize${Lh(n)}`]},gv,r)})(h);return wh.jsxs(vv,Ii({as:a,className:Hm(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?wh.jsx("title",{children:u}):null]}))}));bv.muiName="SvgIcon";var xv=bv;var wv=Wm("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Sv=["center","classes","className"];let Cv,kv,Ev,Tv,Rv=e=>e;const Mv=oh(Cv||(Cv=Rv`
21
+ */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Bf?Hf.jsx(bf,{value:Bf,children:n}):n},ThemeContext:Sf,css:Pf,default:function(e,t){return zf(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:Of});function Wf(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 Vf(e){if(!Wf(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Vf(e[n])})),t}function Gf(e,t,n={clone:!0}){const r=n.clone?Ii({},e):e;return Wf(e)&&Wf(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Wf(t[o])&&o in e&&Wf(e[o])?r[o]=Gf(e[o],t[o],n):n.clone?r[o]=Wf(t[o])?Vf(t[o]):t[o]:r[o]=t[o])})),r}var Kf=Object.freeze({__proto__:null,default:Gf,isPlainObject:Wf});const Yf=["values","unit","step"],Xf=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)=>Ii({},e,{[t.key]:t.val})),{})};function Jf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ui(e,Yf),i=Xf(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 Ii({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)}var Zf={borderRadius:4};function Qf(e,t){return t?Gf(e,t,{clone:!1}):e}const eh={xs:0,sm:600,md:900,lg:1200,xl:1536},th={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${eh[e]}px)`};function nh(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||th;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||th;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||eh).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function rh(e){if("string"!=typeof e)throw new Error(Ud(7));return e.charAt(0).toUpperCase()+e.slice(1)}var oh=Object.freeze({__proto__:null,default:rh});function ih(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 ah(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ih(e,n)||r,t&&(o=t(o,r,e)),o}function sh(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=ih(e.theme,r)||{};return nh(e,i,(e=>{let r=ah(a,o,e);return e===r&&"string"==typeof e&&(r=ah(a,o,`${t}${"default"===e?"":rh(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const lh={m:"margin",p:"padding"},ch={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dh=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!uh[e])return[e];e=uh[e]}const[t,n]=e.split(""),r=lh[t],o=ch[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),ph=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function hh(e,t,n,r){var o;const i=null!=(o=ih(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 mh(e){return hh(e,"spacing",8)}function gh(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 yh(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=gh(t,n),e)),{})}(dh(n),r);return nh(e,e[n],o)}function vh(e,t){const n=mh(e.theme);return Object.keys(e).map((r=>yh(e,t,r,n))).reduce(Qf,{})}function bh(e){return vh(e,ph)}function xh(e){return vh(e,fh)}function Sh(...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]?Qf(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function wh(e){return"number"!=typeof e?e:`${e}px solid`}function Ch(e,t){return sh({prop:e,themeKey:"borders",transform:t})}bh.propTypes={},bh.filterProps=ph,xh.propTypes={},xh.filterProps=fh;const kh=Ch("border",wh),Eh=Ch("borderTop",wh),Th=Ch("borderRight",wh),Rh=Ch("borderBottom",wh),Mh=Ch("borderLeft",wh),Ph=Ch("borderColor"),Oh=Ch("borderTopColor"),Dh=Ch("borderRightColor"),Ih=Ch("borderBottomColor"),qh=Ch("borderLeftColor"),Ah=Ch("outline",wh),Nh=Ch("outlineColor"),Lh=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hh(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:gh(t,e)});return nh(e,e.borderRadius,n)}return null};Lh.propTypes={},Lh.filterProps=["borderRadius"],Sh(kh,Eh,Th,Rh,Mh,Ph,Oh,Dh,Ih,qh,Lh,Ah,Nh);const zh=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hh(e.theme,"spacing",8),n=e=>({gap:gh(t,e)});return nh(e,e.gap,n)}return null};zh.propTypes={},zh.filterProps=["gap"];const jh=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hh(e.theme,"spacing",8),n=e=>({columnGap:gh(t,e)});return nh(e,e.columnGap,n)}return null};jh.propTypes={},jh.filterProps=["columnGap"];const $h=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hh(e.theme,"spacing",8),n=e=>({rowGap:gh(t,e)});return nh(e,e.rowGap,n)}return null};$h.propTypes={},$h.filterProps=["rowGap"];function _h(e,t){return"grey"===t?t:e}Sh(zh,jh,$h,sh({prop:"gridColumn"}),sh({prop:"gridRow"}),sh({prop:"gridAutoFlow"}),sh({prop:"gridAutoColumns"}),sh({prop:"gridAutoRows"}),sh({prop:"gridTemplateColumns"}),sh({prop:"gridTemplateRows"}),sh({prop:"gridTemplateAreas"}),sh({prop:"gridArea"}));function Fh(e){return e<=1&&0!==e?100*e+"%":e}Sh(sh({prop:"color",themeKey:"palette",transform:_h}),sh({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_h}),sh({prop:"backgroundColor",themeKey:"palette",transform:_h}));const Hh=sh({prop:"width",transform:Fh}),Bh=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])||eh[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:Fh(t)}};return nh(e,e.maxWidth,t)}return null};Bh.filterProps=["maxWidth"];const Uh=sh({prop:"minWidth",transform:Fh}),Wh=sh({prop:"height",transform:Fh}),Vh=sh({prop:"maxHeight",transform:Fh}),Gh=sh({prop:"minHeight",transform:Fh});sh({prop:"size",cssProperty:"width",transform:Fh}),sh({prop:"size",cssProperty:"height",transform:Fh});Sh(Hh,Bh,Uh,Wh,Vh,Gh,sh({prop:"boxSizing"}));var Kh={border:{themeKey:"borders",transform:wh},borderTop:{themeKey:"borders",transform:wh},borderRight:{themeKey:"borders",transform:wh},borderBottom:{themeKey:"borders",transform:wh},borderLeft:{themeKey:"borders",transform:wh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lh},color:{themeKey:"palette",transform:_h},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_h},backgroundColor:{themeKey:"palette",transform:_h},p:{style:xh},pt:{style:xh},pr:{style:xh},pb:{style:xh},pl:{style:xh},px:{style:xh},py:{style:xh},padding:{style:xh},paddingTop:{style:xh},paddingRight:{style:xh},paddingBottom:{style:xh},paddingLeft:{style:xh},paddingX:{style:xh},paddingY:{style:xh},paddingInline:{style:xh},paddingInlineStart:{style:xh},paddingInlineEnd:{style:xh},paddingBlock:{style:xh},paddingBlockStart:{style:xh},paddingBlockEnd:{style:xh},m:{style:bh},mt:{style:bh},mr:{style:bh},mb:{style:bh},ml:{style:bh},mx:{style:bh},my:{style:bh},margin:{style:bh},marginTop:{style:bh},marginRight:{style:bh},marginBottom:{style:bh},marginLeft:{style:bh},marginX:{style:bh},marginY:{style:bh},marginInline:{style:bh},marginInlineStart:{style:bh},marginInlineEnd:{style:bh},marginBlock:{style:bh},marginBlockStart:{style:bh},marginBlockEnd:{style:bh},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:zh},rowGap:{style:$h},columnGap:{style:jh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fh},maxWidth:{style:Bh},minWidth:{transform:Fh},height:{transform:Fh},maxHeight:{transform:Fh},minHeight:{transform:Fh},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Yh(){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 u=ih(n,s)||{};if(c)return c(o);return nh(o,t,(t=>{let n=ah(u,l,t);return t===n&&"string"==typeof t&&(n=ah(u,l,`${e}${"default"===t?"":rh(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Kh;function s(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;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=Qf(l,e(n,o,i,a));else{const e=nh({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)?l=Qf(l,e):l[n]=t({sx:o,theme:i})}else l=Qf(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const Xh=Yh();Xh.filterProps=["sx"];var Jh=Xh;function Zh(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const Qh=["breakpoints","palette","spacing","shape"];function em(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ui(e,Qh),s=Jf(n),l=function(e=8){if(e.mui)return e;const t=mh({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=Gf({breakpoints:s,direction:"ltr",components:{},palette:Ii({mode:"light"},r),spacing:l,shape:Ii({},Zf,i)},a);return c.applyStyles=Zh,c=t.reduce(((e,t)=>Gf(e,t)),c),c.unstable_sxConfig=Ii({},Kh,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Jh({sx:e,theme:this})},c}var tm=Object.freeze({__proto__:null,default:em,private_createBreakpoints:Jf,unstable_applyStyles:Zh});function nm(e=null){const t=y.useContext(Sf);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const rm=em();const om=["sx"];var im=Object.freeze({__proto__:null,default:Jh,extendSxProp:function(e){const{sx:t}=e,n=Ui(e,om),{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:Kh;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 Wf(n)?Ii({},r,n):r}:Ii({},r,t),Ii({},o,{sx:i})},unstable_createStyleFunctionSx:Yh,unstable_defaultSxConfig:Kh});const am=e=>e;var sm=(()=>{let e=am;return{configure(t){e=t},generate:t=>e(t),reset(){e=am}}})();function lm(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=lm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lm(e))&&(r&&(r+=" "),r+=t);return r}const um={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 dm(e,t,n="Mui"){const r=um[t];return r?`${n}-${r}`:`${sm.generate(e)}-${t}`}function pm(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=dm(e,t,n)})),r}var fm,hm,mm={exports:{}},gm={};var ym=(hm||(hm=1,mm.exports=function(){if(fm)return gm;fm=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),gm.ContextConsumer=s,gm.ContextProvider=a,gm.Element=t,gm.ForwardRef=c,gm.Fragment=r,gm.Lazy=f,gm.Memo=p,gm.Portal=n,gm.Profiler=i,gm.StrictMode=o,gm.Suspense=u,gm.SuspenseList=d,gm.isAsyncMode=function(){return!1},gm.isConcurrentMode=function(){return!1},gm.isContextConsumer=function(e){return m(e)===s},gm.isContextProvider=function(e){return m(e)===a},gm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},gm.isForwardRef=function(e){return m(e)===c},gm.isFragment=function(e){return m(e)===r},gm.isLazy=function(e){return m(e)===f},gm.isMemo=function(e){return m(e)===p},gm.isPortal=function(e){return m(e)===n},gm.isProfiler=function(e){return m(e)===i},gm.isStrictMode=function(e){return m(e)===o},gm.isSuspense=function(e){return m(e)===u},gm.isSuspenseList=function(e){return m(e)===d},gm.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},gm.typeOf=m,gm}()),mm.exports);const vm=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function bm(e){const t=`${e}`.match(vm);return t&&t[1]||""}function xm(e,t=""){return e.displayName||e.name||bm(e)||t}function Sm(e,t,n){const r=xm(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var wm=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return xm(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ym.ForwardRef:return Sm(e,e.render,"ForwardRef");case ym.Memo:return Sm(e,e.type,"memo");default:return}}},getFunctionName:bm});function Cm(e,t){const n=Ii({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ii({},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]=Ii({},i),Object.keys(o).forEach((e=>{n[r][e]=Cm(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function km({props:e,name:t,defaultTheme:n,themeId:r}){let o=function(e=rm){return nm(e)}(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Cm(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var Em="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;var Tm=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Rm(e){const t=y.useRef(e);return Em((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Mm(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const Pm={};const Om=[];class Dm{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Dm}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Im(){const e=function(e,t){const n=y.useRef(Pm);return n.current===Pm&&(n.current=e(t)),n}(Dm.create).current;var t;return t=e.disposeEffect,y.useEffect(t,Om),e}let qm=!0,Am=!1;const Nm=new Dm,Lm={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 zm(e){e.metaKey||e.altKey||e.ctrlKey||(qm=!0)}function jm(){qm=!1}function $m(){"hidden"===this.visibilityState&&Am&&(qm=!0)}function _m(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return qm||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Lm[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Fm(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",zm,!0),t.addEventListener("mousedown",jm,!0),t.addEventListener("pointerdown",jm,!0),t.addEventListener("touchstart",jm,!0),t.addEventListener("visibilitychange",$m,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!_m(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Am=!0,Nm.start(100,(()=>{Am=!1})),t.current=!1,!0)},ref:e}}function Hm(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}var Bm=y.createContext(null);function Um(){return y.useContext(Bm)}var Wm="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vm(e){const{children:t,theme:n}=e,r=Um(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ii({},e,t)}(r,n);return null!=e&&(e[Wm]=null!==r),e}),[n,r]);return Hf.jsx(Bm.Provider,{value:o,children:t})}const Gm=["value"],Km=y.createContext();function Ym(e){let{value:t}=e,n=Ui(e,Gm);return Hf.jsx(Km.Provider,Ii({value:null==t||t},n))}const Xm={};function Jm(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ii({},t,{[e]:i}):i;return r?()=>a:a}return Ii({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Zm(e){const{children:t,theme:n,themeId:r}=e,o=nm(Xm),i=Um()||Xm,a=Jm(r,o,n),s=Jm(r,i,n,!0),l="rtl"===a.direction;return Hf.jsx(Vm,{theme:s,children:Hf.jsx(Sf.Provider,{value:a,children:Hf.jsx(Ym,{value:l,children:t})})})}var Qm,eg={},tg={exports:{}};function ng(){return Qm||(Qm=1,(e=tg).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),tg.exports;var e}var rg,og=J(Wd),ig=J(Tm);function ag(){if(rg)return eg;rg=1;var e=ng();Object.defineProperty(eg,"__esModule",{value:!0}),eg.alpha=u,eg.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})},eg.colorChannel=void 0,eg.darken=d,eg.decomposeColor=i,eg.emphasize=function(e,t=.15){return c(e)>.5?d(e,t):p(e,t)},eg.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},eg.getLuminance=c,eg.hexToRgb=o,eg.hslToRgb=l,eg.lighten=p,eg.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},eg.private_safeColorChannel=void 0,eg.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},eg.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},eg.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},eg.recomposeColor=s,eg.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(og),n=e(ig);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(" ")};eg.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 u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}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 u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}return eg.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},eg}var sg=ag();const lg=["mode","contrastThreshold","tonalOffset"],cg={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:Ld.white,default:Ld.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}},ug={text:{primary:Ld.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:Ld.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 dg(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=sg.lighten(e.main,o):"dark"===t&&(e.dark=sg.darken(e.main,i)))}function pg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ui(e,lg),i=e.primary||function(e="light"){return"dark"===e?{main:$d[200],light:$d[50],dark:$d[400]}:{main:$d[700],light:$d[400],dark:$d[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:jd[200],light:jd[50],dark:jd[400]}:{main:jd[500],light:jd[300],dark:jd[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:zd[500],light:zd[300],dark:zd[700]}:{main:zd[700],light:zd[400],dark:zd[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:_d[400],light:_d[300],dark:_d[700]}:{main:_d[700],light:_d[500],dark:_d[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Fd[400],light:Fd[300],dark:Fd[700]}:{main:Fd[800],light:Fd[500],dark:Fd[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Hd[400],light:Hd[300],dark:Hd[700]}:{main:"#ed6c02",light:Hd[500],dark:Hd[900]}}(t);function d(e){return sg.getContrastRatio(e,ug.text.primary)>=n?ug.text.primary:cg.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ii({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ud(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ud(12,t?` (${t})`:"",JSON.stringify(e.main)));return dg(e,"light",o,r),dg(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ug,light:cg};return Gf(Ii({common:Ii({},Ld),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:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Bd,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const fg=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const hg={textTransform:"uppercase"},mg='"Roboto", "Helvetica", "Arial", sans-serif';function gg(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=mg,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Ui(n,fg),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Ii({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===mg?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={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,hg),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,hg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gf(Ii({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function yg(...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(",")}var vg=["none",yg(0,2,1,-1,0,1,1,0,0,1,3,0),yg(0,3,1,-2,0,2,2,0,0,1,5,0),yg(0,3,3,-2,0,3,4,0,0,1,8,0),yg(0,2,4,-1,0,4,5,0,0,1,10,0),yg(0,3,5,-1,0,5,8,0,0,1,14,0),yg(0,3,5,-1,0,6,10,0,0,1,18,0),yg(0,4,5,-2,0,7,10,1,0,2,16,1),yg(0,5,5,-3,0,8,10,1,0,3,14,2),yg(0,5,6,-3,0,9,12,1,0,3,16,2),yg(0,6,6,-3,0,10,14,1,0,4,18,3),yg(0,6,7,-4,0,11,15,1,0,4,20,3),yg(0,7,8,-4,0,12,17,2,0,5,22,4),yg(0,7,8,-4,0,13,19,2,0,5,24,4),yg(0,7,9,-4,0,14,21,2,0,5,26,4),yg(0,8,9,-5,0,15,22,2,0,6,28,5),yg(0,8,10,-5,0,16,24,2,0,6,30,5),yg(0,8,11,-5,0,17,26,2,0,6,32,5),yg(0,9,11,-5,0,18,28,2,0,7,34,6),yg(0,9,12,-6,0,19,29,2,0,7,36,6),yg(0,10,13,-6,0,20,31,3,0,8,38,7),yg(0,10,13,-6,0,21,33,3,0,8,40,7),yg(0,10,14,-6,0,22,35,3,0,8,42,7),yg(0,11,14,-7,0,23,36,3,0,9,44,8),yg(0,11,15,-7,0,24,38,3,0,9,46,8)];const bg=["duration","easing","delay"],xg={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)"},Sg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wg(e){return`${Math.round(e)}ms`}function Cg(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function kg(e){const t=Ii({},xg,e.easing),n=Ii({},Sg,e.duration);return Ii({getAutoHeightDuration:Cg,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ui(r,bg),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wg(o)} ${i} ${"string"==typeof a?a:wg(a)}`)).join(",")}},e,{easing:t,duration:n})}var Eg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Tg=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Rg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ui(e,Tg);if(e.vars)throw new Error(Ud(18));const s=pg(r),l=em(e);let c=Gf(l,{mixins:(u=l.breakpoints,d=n,Ii({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:vg.slice(),typography:gg(s,i),transitions:kg(o),zIndex:Ii({},Eg)});var u,d;return c=Gf(c,a),c=t.reduce(((e,t)=>Gf(e,t)),c),c.unstable_sxConfig=Ii({},Kh,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Jh({sx:e,theme:this})},c}var Mg=Rg();function Pg({props:e,name:t}){return km({props:e,name:t,defaultTheme:Mg,themeId:Vd})}var Og,Dg={},Ig={exports:{}};var qg,Ag={exports:{}};var Ng,Lg=J(Uf),zg=J(Kf),jg=J(oh),$g=J(wm),_g=J(tm),Fg=J(im);function Hg(){if(Ng)return Dg;Ng=1;var e=ng();Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:m((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:v,skipVariantsResolver:b,skipSx:x,overridesResolver:S=g(h(v))}=s,w=(0,r.default)(s,u),C=void 0!==b?b:v&&"Root"!==v&&"root"!==v||!1,k=x||!1;let E=p;"Root"===v||"root"===v?E=l:v?E=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const T=(0,o.default)(e,(0,n.default)({shouldForwardProp:E,label:undefined},w)),R=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>y(e,(0,n.default)({},r,{theme:m({theme:r.theme,defaultTheme:a,themeId:t})})):e,M=(r,...o)=>{let i=R(r);const s=o?o.map(R):[];f&&S&&s.push((e=>{const r=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[f]||!r.components[f].styleOverrides)return null;const o=r.components[f].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=y(o,(0,n.default)({},e,{theme:r}))})),S(e,i)})),f&&!C&&s.push((e=>{var r;const o=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));return y({variants:null==o||null==(r=o.components)||null==(r=r[f])?void 0:r.variants},(0,n.default)({},e,{theme:o}))})),k||s.push(d);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=T(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return T.withConfig&&(M.withConfig=T.withConfig),M}},Dg.shouldForwardProp=p,Dg.systemDefaultTheme=void 0;var t,n=e((Og||(Og=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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ig)),Ig.exports)),r=e((qg||(qg=1,(t=Ag).exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports),Ag.exports)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Lg),i=zg;e(jg),e($g);var a=e(_g),s=e(Fg);const l=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=Dg.systemDefaultTheme=(0,a.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({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 y(e,t){let{ownerState:o}=t,i=(0,r.default)(t,l);const a="function"==typeof e?e((0,n.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,n.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,c);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:o},i,o)):e.style))})),t}return a}return Dg}var Bg=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Ug=X(Hg())({themeId:Vd,defaultTheme:Mg,rootShouldForwardProp:Bg});const Wg=["theme"];function Vg(e){let{theme:t}=e,n=Ui(e,Wg);const r=t[Vd];return Hf.jsx(Zm,Ii({},n,{themeId:r?Vd:void 0,theme:r||t}))}function Gg(e){return dm("MuiSvgIcon",e)}pm("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Yg=Ug("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${rh(n.color)}`],t[`fontSize${rh(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;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==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Xg=y.forwardRef((function(e,t){const n=Pg({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Ui(n,Kg),f=y.isValidElement(r)&&"svg"===r.type,h=Ii({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Hm({root:["root","inherit"!==t&&`color${rh(t)}`,`fontSize${rh(n)}`]},Gg,r)})(h);return Hf.jsxs(Yg,Ii({as:a,className:cm(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Hf.jsx("title",{children:u}):null]}))}));Xg.muiName="SvgIcon";var Jg=Xg;var Zg=pm("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Qg=["center","classes","className"];let ey,ty,ny,ry,oy=e=>e;const iy=Of(ey||(ey=oy`
22
22
  0% {
23
23
  transform: scale(0);
24
24
  opacity: 0.1;
@@ -28,7 +28,7 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
28
28
  transform: scale(1);
29
29
  opacity: 0.3;
30
30
  }
31
- `)),Pv=oh(kv||(kv=Rv`
31
+ `)),ay=Of(ty||(ty=oy`
32
32
  0% {
33
33
  opacity: 1;
34
34
  }
@@ -36,7 +36,7 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
36
36
  100% {
37
37
  opacity: 0;
38
38
  }
39
- `)),Dv=oh(Ev||(Ev=Rv`
39
+ `)),sy=Of(ny||(ny=oy`
40
40
  0% {
41
41
  transform: scale(1);
42
42
  }
@@ -48,7 +48,7 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
48
48
  100% {
49
49
  transform: scale(1);
50
50
  }
51
- `)),Ov=fv("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Iv=fv((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=y.useState(!1),p=Hm(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Hm(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),wh.jsx("span",{className:p,style:f,children:wh.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Tv||(Tv=Rv`
51
+ `)),ly=Ug("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cy=Ug((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=y.useState(!1),p=cm(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=cm(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),Hf.jsx("span",{className:p,style:f,children:Hf.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ry||(ry=oy`
52
52
  opacity: 0;
53
53
  position: absolute;
54
54
 
@@ -91,4 +91,4 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
91
91
  animation-iteration-count: infinite;
92
92
  animation-delay: 200ms;
93
93
  }
94
- `),wv.rippleVisible,Mv,550,(({theme:e})=>e.transitions.easing.easeInOut),wv.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wv.child,wv.childLeaving,Pv,550,(({theme:e})=>e.transitions.easing.easeInOut),wv.childPulsate,Dv,(({theme:e})=>e.transitions.easing.easeInOut)),qv=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ui(n,Sv),[s,l]=y.useState([]),c=y.useRef(0),u=y.useRef(null);y.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=y.useRef(!1),p=Eg(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,wh.jsx(Iv,{classes:{ripple:Hm(o.ripple,wv.ripple),rippleVisible:Hm(o.rippleVisible,wv.rippleVisible),ripplePulsate:Hm(o.ripplePulsate,wv.ripplePulsate),child:Hm(o.child,wv.child),childLeaving:Hm(o.childLeaving,wv.childLeaving),childPulsate:Hm(o.childPulsate,wv.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=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),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=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)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),wh.jsx(Ov,Ii({className:Hm(wv.root,o.root,i),ref:h},a,{children:wh.jsx(Ku,{component:null,exit:!0,children:s})}))}));var Av=qv;function Nv(e){return Um("MuiButtonBase",e)}var Lv=Wm("MuiButtonBase",["root","disabled","focusVisible"]);const zv=["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"],jv=fv("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"},[`&.${Lv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$v=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:S,onMouseLeave:C,onMouseUp:k,onTouchEnd:E,onTouchMove:T,onTouchStart:R,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:D,type:O}=n,I=Ui(n,zv),q=y.useRef(null),A=y.useRef(null),N=wg(A,D),{isFocusVisibleRef:L,onFocus:z,onBlur:j,ref:$}=Ag(),[_,F]=y.useState(!1);l&&_&&F(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),q.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const U=H&&!c&&!l;function W(e,t,n=u){return xg((r=>{t&&t(r);return!n&&A.current&&A.current[e](r),!0}))}y.useEffect((()=>{_&&d&&!c&&H&&A.current.pulsate()}),[c,d,_,H]);const V=W("start",S),G=W("stop",m),K=W("stop",g),Y=W("stop",k),X=W("stop",(e=>{_&&e.preventDefault(),C&&C(e)})),J=W("start",R),Z=W("stop",E),Q=W("stop",T),ee=W("stop",(e=>{j(e),!1===L.current&&F(!1),f&&f(e)}),!1),te=xg((e=>{q.current||(q.current=e.currentTarget),z(e),!0===L.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=xg((e=>{d&&!re.current&&_&&A.current&&" "===e.key&&(re.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=xg((e=>{d&&" "===e.key&&A.current&&_&&!e.defaultPrevented&&(re.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),w&&w(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(I.href||I.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(I.href||I.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=wg(t,$,q),ce=Ii({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:M,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ng({root:["root",t&&"disabled",n&&"focusVisible"]},Nv,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return wh.jsxs(jv,Ii({as:ae,className:Hm(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:O},se,I,{children:[i,U?wh.jsx(Av,Ii({ref:N,center:o},P)):null]}))}));var _v=$v;function Fv(e){return Um("MuiButton",e)}var Hv=Wm("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"]);var Bv=y.createContext({});var Uv=y.createContext(void 0);const Wv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Vv=e=>Ii({},"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}}),Gv=fv(_v,{shouldForwardProp:e=>pv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Lh(n.color)}`],t[`size${Lh(n.size)}`],t[`${n.variant}Size${Lh(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 Ii({},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":Ii({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qg(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})`:Qg(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})`:Qg(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":Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Hv.focusVisible}`]:Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Hv.disabled}`]:Ii({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 ${Qg(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"},[`&.${Hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hv.disabled}`]:{boxShadow:"none"}})),Kv=fv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Lh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Vv(e)))),Yv=fv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Lh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Vv(e)))),Xv=y.forwardRef((function(e,t){const n=y.useContext(Bv),r=y.useContext(Uv),o=Ly({props:gg(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,x=Ui(o,Wv),w=Ii({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ii({},a,Ng({root:["root",i,`${i}${Lh(t)}`,`size${Lh(o)}`,`${i}Size${Lh(o)}`,`color${Lh(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Lh(o)}`],endIcon:["icon","endIcon",`iconSize${Lh(o)}`]},Fv,a))})(w),C=g&&wh.jsx(Kv,{className:S.startIcon,ownerState:w,children:g}),k=p&&wh.jsx(Yv,{className:S.endIcon,ownerState:w,children:p}),E=r||"";return wh.jsxs(Gv,Ii({ownerState:w,className:Hm(n.className,S.root,l,E),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Hm(S.focusVisible,f),ref:t,type:v},x,{classes:S,children:[C,i,k]}))}));var Jv=Xv;var Zv=y.createContext({});function Qv(e){return Um("MuiListItemButton",e)}var eb=Wm("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const tb=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],nb=fv(_v,{shouldForwardProp:e=>pv(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})=>Ii({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"}},[`&.${eb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${eb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${eb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qg(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})`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${eb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${eb.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}))),rb=y.forwardRef((function(e,t){const n=Ly({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:u,selected:d=!1,className:p}=n,f=Ui(n,tb),h=y.useContext(Zv),m=y.useMemo((()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:l})),[r,h.dense,s,l]),g=y.useRef(null);vg((()=>{o&&g.current&&g.current.focus()}),[o]);const v=Ii({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Ii({},n,Ng({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Qv,n))})(v),x=wg(g,t);return wh.jsx(Zv.Provider,{value:m,children:wh.jsx(nb,Ii({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:Hm(b.focusVisible,u),ownerState:v,className:Hm(b.root,p)},f,{classes:b,children:a}))})}));var ob=rb;function ib(e){return Um("MuiListItemIcon",e)}Wm("MuiListItemIcon",["root","alignItemsFlexStart"]);const ab=["className"],sb=fv("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})=>Ii({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),lb=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ui(n,ab),i=Ii({},n,{alignItems:y.useContext(Zv).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ng({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ib,n)})(i);return wh.jsx(sb,Ii({className:Hm(a.root,r),ownerState:i,ref:t},o))}));var cb=lb;function ub(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?db(Object(n),!0).forEach((function(t){ub(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fb,hb,mb=function(e){var t=e.className,n=e.path,r=e.fillRule;return g.createElement(xv,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},g.createElement("path",{d:n}),r?g.createElement("use",{fillRule:r}):void 0)},gb={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};fv(Jv,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),fv((function(e){var t=e.className;return g.createElement(mb,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:gb.ICONS.COLOR.SECONDARY}})),fv((function(e){var t=e.className;return g.createElement(mb,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:gb.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:gb.ICONS.COLOR.DISABLED}}})),fv(Jv,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}}));var yb={color:gb.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:gb.ICONS.COLOR.DISABLED}};fv((function(e){var t=e.className;return g.createElement(mb,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return yb})),fv((function(e){var t=e.className;return g.createElement(mb,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return yb})),fv((function(e){var t=e.className;return g.createElement(mb,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:gb.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),fv(ob)((function(){return{padding:"4px 12px","&:focus":pb({},gb.FOCUS)}})),fv(cb)((function(){return{marginRight:0,justifyContent:"center"}})),fv((function(e){var t=e.className;return g.createElement(mb,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:gb.ICONS.COLOR.SECONDARY}}));var vb=function(){if(hb)return fb;hb=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 fb=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},fb}();!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(vb);var bb,xb=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return g.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},wb={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:o});return g.createElement("div",{dir:i,style:a},g.createElement(xb,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},Sb={},Cb=function(){if(bb)return Sb;bb=1;var e=k;return Sb.createRoot=e.createRoot,Sb.hydrateRoot=e.hydrateRoot,Sb}(),kb=Ay({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:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},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"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function Eb(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,o=n.y,i=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function Tb(){var e={rendererBox:Eb(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=Eb(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=Cb.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,o=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*o),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return g.createElement(g.StrictMode,null,g.createElement(mv,{theme:kb},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function Rb(e){return vt(e).l<70}function Mb(e,t){const n=vt(e).l/100,r=vt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Pb(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Db={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Mb(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=Pb({r:s,a:e},n),i=Pb({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:Rb(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ob(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function Ib(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Ob(s)}}var qb={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Ib({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ab(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Y(e))};e.interaction("hammer",Y(Hammer))}(t)),e.use((function(e){e.renderer("react",cp()),e.component("data-title",ap(e.renderer("svg")()))})),e.renderer("react-qcm",Tb),e.component("disclaimer",wb),e.component("pie-dividers",Db),e.component("negative-indicators",qb),e}var Nb={};function Lb(){Lb.init.call(this)}Nb.isObject=function(e){return"object"==typeof e&&null!==e},Nb.isNumber=function(e){return"number"==typeof e},Nb.isUndefined=function(e){return void 0===e},Nb.isFunction=function(e){return"function"==typeof e};var zb=Lb;Lb.EventEmitter=Lb,Lb.prototype._events=void 0,Lb.prototype._maxListeners=void 0,Lb.defaultMaxListeners=10,Lb.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Lb.prototype.setMaxListeners=function(e){if(!Nb.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Lb.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Nb.isUndefined(n))return!1;if(Nb.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Nb.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Lb.prototype.addListener=function(e,t){var n;if(!Nb.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Nb.isFunction(t.listener)?t.listener:t),this._events[e]?Nb.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Nb.isObject(this._events[e])&&!this._events[e].warned)&&((n=Nb.isUndefined(this._maxListeners)?Lb.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Nb.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Nb.isFunction(console.trace)&&console.trace()));return this},Lb.prototype.on=Lb.prototype.addListener,Lb.prototype.once=function(e,t){if(!Nb.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Lb.prototype.removeListener=function(e,t){var n,r,o,i;if(!Nb.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Nb.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Nb.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Lb.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Nb.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Lb.prototype.listeners=function(e){return this._events&&this._events[e]?Nb.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Lb.listenerCount=function(e,t){return e._events&&e._events[t]?Nb.isFunction(e._events[t])?1:e._events[t].length:0};var jb=X(zb);const $b=e=>(Object.keys(jb.prototype).forEach((t=>{e[t]=jb.prototype[t]})),jb.init(e),e);function _b({picasso:e}){var t;const n=E(),r=T(),o=R(),[i,c]=M(),u=function(){const e={};return $b(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=P(),p=D(),f=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[h,m]=M(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[0])||void 0===i||!i.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:d,isInSelections:f,isLassoActionActive:h,setIsLassoActionActive:m,translator:p}),O((()=>(i&&(i.interactions.lasso.active=()=>h),{...u.lasso})),[i,h,f,p.language()]),I((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),p=a({chart:i,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const f=s({legendScrollOffset:0,rotation:0});f.intercept("rotation",(e=>(f.get("rotation")+e)%(2*Math.PI))),f.onChanged("rotation",(()=>{i.update({partialData:!0})}));const h=l();return u.on("selections-start",(()=>{i.brush("selection").start()})),c({picasso:t,chart:i,selectionService:p,viewState:f,viewCache:h,interactions:u}),()=>{p.destroy(),i.destroy(),u.removeAllListeners(),delete u.select,f.intercept("rotation",void 0),f.onChanged("rotation",void 0)}}),[]),i}const Fb={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Hb(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Bb={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function Ub(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Bb.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Wb(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const h=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let m;if(-1!==f&&h[f]&&(m=h[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Ub(u,d,s);if("url"===p)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Hb(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Bb.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Bb.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Hb(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await Bb.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,m)}return[]}const Vb={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Wb(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},Gb={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Vb.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Vb.checkIfPromisesExist({customTooltipModel:e})};const Kb=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Fb.CHART.CHART_PARENT_TYPE,qId:Fb.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Yb=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:Fb.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Xb={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const o=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",i=Fb.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Fb.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await Xb.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Fb.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Fb.CHART.STATE,a=Kb(t,i),s=await e.createSessionObject(a),l=Yb(t);if(s.id!==Fb.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,h;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(h=e.source)&&void 0!==h&&h.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Fb.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await Xb.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Xb.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Fb.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Fb.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Jb(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Zb(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Fb.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Qb(e){const t=Zb();return e.filter((e=>t[e.id]))}const ex={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=ex.getAttrExprData(a);i.length||n.length?Gb.handlePromises({customTooltipModel:o,nodes:ex.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&Xb.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Gb.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[Fb.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[Fb.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Fb.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Qb(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[Fb.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Fb.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Jb(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Qb(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=Jb(e)||[];[...o,t].forEach((e=>{const t=Qb(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Zb(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:ve.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ve.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function tx(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Fb.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Fb.CUSTOM.TITLE:case Fb.CUSTOM.DESCRIPTION:case Fb.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const nx={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>tx(t,e,r,n)}}};const rx={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[Fb.CUSTOM.TITLE]:!0,[Fb.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=ex.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Fb.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Fb.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>be.getMeasure(e,t))),e,o)}};function ox({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(rx.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function ix(e){const t=Fb.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function ax(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var sx={attrExpr:{migrateProperties(e){var t,n;const r=se(!0,{},e),o=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let i=ax(r);return i=function(e,t){return t.concat(e.map((e=>ix(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=ix(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(ax(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:lx}=Fb;function cx({flags:e,layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:ex,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c}),f="rtl"===u.direction,h=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&o(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=ox({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===lx.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===lx.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>ex.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>ex.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const o=ex.getDataNodes(a,r),{attrExps:i}=ex.getAttrExprData(t);return Gb.handlePromises({customTooltipModel:p,nodes:o,attrExps:i,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>Xb.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>ex.getFooterRow(s.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>Xb.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>Xb.hide({app:n,customTooltipModel:p}),destroy:()=>Xb.destroyVisualization({customTooltipModel:p})}}}function ux(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function dx({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return c({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=fe.getValue(e,"qHyperCube.qSize.qcy");return fe.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const o=t({ds:e,encodings:r});return 0===n({rows:o,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o});return 0===r({rows:a,encodings:o}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o}),s=a,l=r({rows:a,encodings:o});return s.length!==l.length}}}}})}function px({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:d}=i.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}const fx=e=>"[object Object]"===Object.prototype.toString.call(e),hx=e=>Array.isArray(e);function mx(e,t){if(e===t)return!0;if(hx(e)){if(!hx(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!mx(e[n],t[n]))return!1;return!0}if(fx(e)){if(!fx(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!mx(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function gx({enable:e=!0}={}){const t=q(),n=()=>Date.now().toString()+Math.random(),[r,o]=M(n()),i={properties:void 0};return I((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=se(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=se(!0,{},e),l=se(!0,{},t);return a.exclude=!mx(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!mx(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}function yx({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const vx=.8,bx=.55,xx=.3,wx={CORNER_RADIUS:0,INNER_RADIUS:bx,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},Sx=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=vx,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:bx;e.donut.showAsDonut&&(i=vx-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:vx,Cx=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:bx;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=vx-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},kx=({layout:e},t)=>{var n,r,o,i,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:h}=t.chart,m=fe.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>h(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:p,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?nx.getNode(e,{dimensionCount:m}):void 0,radius:f?g(f,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:Cx({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?wx.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:wx.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:wx.STROKE.COLOR,outerRadius:Sx({layout:e},t,y),cornerRadius:null!==(i=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==i?i:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function Ex({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:bx,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=vx-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function Tx(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function Rx({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const Mx=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),Px=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}});function Dx(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function Ox(e){return e.node.data.num.label}function Ix(e){return e.node.data.radius.label}function qx(e,t,n){if(e.dataPoint.auto)return n?Ox:Dx;if("share"===e.dataPoint.labelMode)return Dx;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Ix:Ox}return null}function Ax({data:e}){return e?e.label:""}function Nx(e){const t=parseInt(e,10);if(!isNaN(t))return t}const Lx=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function zx(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:bx)>xx}function jx({node:e,data:t}){return se({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function $x(e,t,n){const r=t.styleService.label.name.getStyle(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:Nx(r.fontSize),fontFamily:r.fontFamily,label:Ax,linkData:({node:e,data:t})=>se({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(qx(e,t,!1)){const r=function(e,t,n){return{label:qx(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&zx(e)?"inside":"into",onBackground:e.donut.showAsDonut&&zx(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=Se(se(t,r),n.theme);i.linkData=jx,o.push(i)}return{key:"pie-labels",type:"labels",renderer:Zo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function _x({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=qx(e,t,!0),o=Lx(n.theme),i=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===i.label.name.color,c=s.fill===i.label.value.color;return{key:"pie-labels",type:"labels",renderer:Zo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:Nx(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:Ax,linkData:({data:e})=>e},{fontSize:Nx(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):$x(e,n,t))}const Fx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),o=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return o||this.chart.component("legendRangeBrush").emit("rangeClear"),o}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Hx(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Bx(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Hx(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*vx;return(i-r)**2+(a-o)**2<=s**2}const Ux=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Hx(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Wx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Vx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function Gx(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Bx(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const Kx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Bx(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),Yx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),Xx=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Kx(e,{}),Ux(e,t,{}),...n]:[Fx(e,{}),Vx(e,{}),Kx(e,{}),Wx(e,{}),Yx(e,{}),Ux(e,t,{}),...n]});function Jx(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[Xx(t,r,i.gestures),Gx(t),i.native]}function Zx({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function Qx({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function ew({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return se(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&se(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:o}=e,{fontFamily:i}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:o.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:i}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[kx({layout:e,settings:i},r),Ex({layout:e},r),Tx(r),Rx({layout:e},r),Qx({layout:e},r,t),...c.components,yx({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),Px(),Mx(),_x({layout:{components:e.components,dataPoint:se({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:Jx(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Zx({settings:i},r),strategy:de(0,r)}}function tw({instance:e,services:t,picasso:n,flags:o}){const i=E(),a=q(),s=A(),l=D(),c=j(),u=N(),d=R(),p=z(),{qLocaleInfo:f}=$(),m=gx({enable:u&&!u.snapshotData}),[g]=F((()=>{if(!t)return Promise.resolve();sx.attrExpr.updateProperties(a,u);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:f,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t,m]);I((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),I((()=>{if(!e||!g)return;const{chart:m,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,disclaimerService:w,pluginService:S,themeService:C,tooltipService:k,styleService:E}=t,T=i.viewState||{};u.snapshotData||(y.preventSet("legendScrollOffset",T.legendScrollOffset||0),y.preventSet("rotation",T.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,y),k.expando.set("properties",g[1]);const R=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}}),M=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}},...x.getData()],P={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(P.slice.outerRadius="qMeasureInfo/1"),w.initialize({args:{ds:R,encodings:P}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:u.qHyperCube,config:{localeInfo:f}}),P),O=d?()=>{const e=m.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},I=u.snapshotData&&!i.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,q=t=>e.selectionService.getIsSelectionLocked(t),A=()=>ew({layout:u,context:{rtl:"rtl"===i.direction,theme:c,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:R,model:a,app:s,chart:m,onSelect:O,isLocked:q,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:D,encodings:P,colorService:x,disclaimerService:w,pluginService:S,themeService:C,styleService:E,tooltipService:k,debouncer:h,properties:g[1],logicalSize:I,flags:o,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:o}){return!1!==t.chartAnimations&&n.get("chartWidth")===o.element.clientWidth&&n.get("chartHeight")===o.element.clientHeight&&n.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")&&!Jo.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:i,layout:u,viewCache:b,chart:m})}});e.generateSettings=A;const N=A();m.update({data:M,settings:N}),b.set("chartWidth",m.element.clientWidth),b.set("chartHeight",m.element.clientHeight),b.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),Jo.cacheProperties({viewCache:b,layout:u}),i.effect&&u.effectProperties?i.effect.update(u,m,{encodings:P}):u.effectPath||m.brush("highlight").end()}),[e,g,i.direction,i.effectProperties,p,c.name(),l.language()])}const nw="legend-cat";function rw({instance:e,services:t}){const n=T(),r=N();B((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:he(t,nw),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),U((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:he(e.chart,"legend-cat")})})),[e])}const ow={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},iw={getDimensions:e=>ow.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>ow.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>ow.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>ow.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=ow.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=ow.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const aw={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>iw.getNumMeasures(e)>=1},showLegend:e=>{const t=ow.getValue(e,"color.auto"),n=ow.getValue(e,"color.expressionIsColor"),r=ow.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!ow.getValue(e,"color.auto")&&"byDimension"===ow.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===ow.getValue(e,"color.useDimColVal")&&ow.setValue(e,"color.useDimColVal",!1),!ow.getValue(e,"color.auto")&&"byDimension"===ow.getValue(e,"color.mode")&&"libraryItem"===ow.getValue(e,"color.byDimDef.type"))},sw=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=aw;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!ow.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=ow.getValue(e,"color.auto");return ow.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===ow.getValue(e,"color.mode")&&!0===ow.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>ow.getValue(e,"legend.show")&&o(e)}}};function lw(e){return new sw(e)}const cw={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},uw=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},dw=(e,t,n,r)=>{const o=m({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:uw("axis.title",o,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:uw("label.name",o,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:uw("label.value",o,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:uw("legend.title",o,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:uw("legend.label",o,r)}}}:void 0}}},pw=lw("hard");const fw=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(i(e,"color.mode","byDimension"),i(e,"color.byDimDef.activeDimensionIndex",0),i(e,"color.persistent",!1))},hw=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},mw=e=>{var t;const{flags:n,translator:r}=e||{},o=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:fw},colorMode:{options:hw}}}}},l={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||i(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:cw,simpleLabels:l,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:dw(a,n,r,o),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:pw.color.colorMode.options},persistentColors:{show:pw.color.persistentColors.show}}},simpleColors:s,legend:{show:pw.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:pw.legend.showTitle.show},dock:{show:pw.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},gw={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},yw={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},vw={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function bw(e){return{type:"items",component:"accordion",items:{data:gw,sorting:yw,addons:vw,settings:mw(e)}}}const xw=lw("explore"),ww=bw();var Sw={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:ww.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:ww.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:xw.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&xw.color.useDimColVal.show(e))}}}}}}};const Cw="slices";function kw(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function Ew(e){return e.data.num.label}function Tw(e){return e.data.radius.label}function Rw(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?Ew:kw;if("share"===e.dataPoint.labelMode)return kw;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Tw:Ew;return Ew}(n,r)(e,t)}function Mw(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class Pw{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:Mw(n),label:Rw(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=se(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=se(e.options,{effect:null}),n?t.getProperties().then((e=>se(e,{effectPath:null,effectProperties:null,dataPoint:se(!0,{},e.originalModelSettings.dataPoint),legend:se(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class Dw extends Pw{init(e,t,n,r){return e.options=se(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(Cw).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class Ow extends Pw{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(Cw).data.items.map((e=>e.value)),o=r.indexOf(n.data.value);-1!==o&&(this.selectedIndex=o,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(Cw).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===Cw)).map(((n,r)=>{const o=Rw(n,this.chart.formatter,e,t);return{text:`${Mw(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=se(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const Iw="/effects/highlight-value",qw="/effects/maxmin";var Aw={isCompatible:({effectPath:e})=>e===qw||e===Iw,create:e=>e.effectPath===qw?new Dw(e):e.effectPath===Iw?new Ow(e):null};function Nw(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),r){var i;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(i=i.object)||void 0===i?void 0:i.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function Lw(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function zw(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function jw({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){zw(e),Lw(t),ex.addCallbackCustomTooltip(t)},move(e,t){zw(e),Lw(t),ex.moveCallbackCustomTooltip(t,e)},remove(e,t){ex.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){zw(e),Lw(r),ex.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){Lw(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const $w=e=>e.qMax<=0,_w=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every($w));function Fw(e){return{definition:bw(e),softDefinition:Sw,support:{snapshot:_w,export:_w,exportData:!0,sharing:_w,viewData:!0,effects:!0},effects:Aw,extendMetrics:Nw,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:jw(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function Hw(e){return{properties:{version:"1.27.20",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:wx.STROKE.COLOR},cornerRadius:wx.CORNER_RADIUS,innerRadius:wx.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[jw(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:jw(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(V).forEach((t=>{e.add(V[t])}))}}(e.translator);const n=Ab();return{qae:Hw(e),ext:Fw(e),component(){const e=_b({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),o=A(),i=D(),a=T(),[s,l]=M(),c=N(),u=L(),h=z(),m=E(),g=j(),{qLocaleInfo:y}=$(),v=_();return I((()=>{if(!n)return;a.style.overflow="hidden";const s=d({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),b=p({picassoInstance:n.picasso,plugins:u,pluginArgs:ux(c)}),x=cx({flags:e,layout:c,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:y,embed:v,options:m}),w=f({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),S=px({app:o,chart:n.chart,translator:i,layout:c,constraints:h,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),o=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(i=o("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=o("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:c,themeService:w,flags:e}),k=dx({layout:c});l({colorService:s,disclaimerService:k,pluginService:b,themeService:w,tooltipService:S,styleService:C})}),[r,o,n,c,i.language(),h,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});tw({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=E(),r=H();I((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),rw({instance:e,services:r})}}}))}}}));
94
+ `),Zg.rippleVisible,iy,550,(({theme:e})=>e.transitions.easing.easeInOut),Zg.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Zg.child,Zg.childLeaving,ay,550,(({theme:e})=>e.transitions.easing.easeInOut),Zg.childPulsate,sy,(({theme:e})=>e.transitions.easing.easeInOut)),uy=y.forwardRef((function(e,t){const n=Pg({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ui(n,Qg),[s,l]=y.useState([]),c=y.useRef(0),u=y.useRef(null);y.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=y.useRef(!1),p=Im(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Hf.jsx(cy,{classes:{ripple:cm(o.ripple,Zg.ripple),rippleVisible:cm(o.rippleVisible,Zg.rippleVisible),ripplePulsate:cm(o.ripplePulsate,Zg.ripplePulsate),child:cm(o.child,Zg.child),childLeaving:cm(o.childLeaving,Zg.childLeaving),childPulsate:cm(o.childPulsate,Zg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=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),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=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)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Hf.jsx(ly,Ii({className:cm(Zg.root,o.root,i),ref:h},a,{children:Hf.jsx(xu,{component:null,exit:!0,children:s})}))}));var dy=uy;function py(e){return dm("MuiButtonBase",e)}var fy=pm("MuiButtonBase",["root","disabled","focusVisible"]);const hy=["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"],my=Ug("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"},[`&.${fy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gy=y.forwardRef((function(e,t){const n=Pg({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:k,onTouchEnd:E,onTouchMove:T,onTouchStart:R,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:O,type:D}=n,I=Ui(n,hy),q=y.useRef(null),A=y.useRef(null),N=Mm(A,O),{isFocusVisibleRef:L,onFocus:z,onBlur:j,ref:$}=Fm(),[_,F]=y.useState(!1);l&&_&&F(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),q.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const U=H&&!c&&!l;function W(e,t,n=u){return Rm((r=>{t&&t(r);return!n&&A.current&&A.current[e](r),!0}))}y.useEffect((()=>{_&&d&&!c&&H&&A.current.pulsate()}),[c,d,_,H]);const V=W("start",w),G=W("stop",m),K=W("stop",g),Y=W("stop",k),X=W("stop",(e=>{_&&e.preventDefault(),C&&C(e)})),J=W("start",R),Z=W("stop",E),Q=W("stop",T),ee=W("stop",(e=>{j(e),!1===L.current&&F(!1),f&&f(e)}),!1),te=Rm((e=>{q.current||(q.current=e.currentTarget),z(e),!0===L.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Rm((e=>{d&&!re.current&&_&&A.current&&" "===e.key&&(re.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=Rm((e=>{d&&" "===e.key&&A.current&&_&&!e.defaultPrevented&&(re.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(I.href||I.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(I.href||I.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Mm(t,$,q),ce=Ii({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:M,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Hm({root:["root",t&&"disabled",n&&"focusVisible"]},py,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Hf.jsxs(my,Ii({as:ae,className:cm(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:D},se,I,{children:[i,U?Hf.jsx(dy,Ii({ref:N,center:o},P)):null]}))}));var yy=gy;function vy(e){return dm("MuiButton",e)}var by=pm("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"]);var xy=y.createContext({});var Sy=y.createContext(void 0);const wy=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cy=e=>Ii({},"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}}),ky=Ug(yy,{shouldForwardProp:e=>Bg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${rh(n.color)}`],t[`size${rh(n.size)}`],t[`${n.variant}Size${rh(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 Ii({},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":Ii({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:sg.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})`:sg.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})`:sg.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":Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${by.focusVisible}`]:Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${by.disabled}`]:Ii({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 ${sg.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"},[`&.${by.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${by.disabled}`]:{boxShadow:"none"}})),Ey=Ug("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${rh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Cy(e)))),Ty=Ug("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${rh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Cy(e)))),Ry=y.forwardRef((function(e,t){const n=y.useContext(xy),r=y.useContext(Sy),o=Pg({props:Cm(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,x=Ui(o,wy),S=Ii({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ii({},a,Hm({root:["root",i,`${i}${rh(t)}`,`size${rh(o)}`,`${i}Size${rh(o)}`,`color${rh(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${rh(o)}`],endIcon:["icon","endIcon",`iconSize${rh(o)}`]},vy,a))})(S),C=g&&Hf.jsx(Ey,{className:w.startIcon,ownerState:S,children:g}),k=p&&Hf.jsx(Ty,{className:w.endIcon,ownerState:S,children:p}),E=r||"";return Hf.jsxs(ky,Ii({ownerState:S,className:cm(n.className,w.root,l,E),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:cm(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[C,i,k]}))}));var My=Ry;var Py=y.createContext({});function Oy(e){return dm("MuiListItemButton",e)}var Dy=pm("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const Iy=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],qy=Ug(yy,{shouldForwardProp:e=>Bg(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})=>Ii({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"}},[`&.${Dy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:sg.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:sg.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:sg.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})`:sg.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Dy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dy.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}))),Ay=y.forwardRef((function(e,t){const n=Pg({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:u,selected:d=!1,className:p}=n,f=Ui(n,Iy),h=y.useContext(Py),m=y.useMemo((()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:l})),[r,h.dense,s,l]),g=y.useRef(null);Em((()=>{o&&g.current&&g.current.focus()}),[o]);const v=Ii({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Ii({},n,Hm({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Oy,n))})(v),x=Mm(g,t);return Hf.jsx(Py.Provider,{value:m,children:Hf.jsx(qy,Ii({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:cm(b.focusVisible,u),ownerState:v,className:cm(b.root,p)},f,{classes:b,children:a}))})}));var Ny=Ay;function Ly(e){return dm("MuiListItemIcon",e)}pm("MuiListItemIcon",["root","alignItemsFlexStart"]);const zy=["className"],jy=Ug("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})=>Ii({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),$y=y.forwardRef((function(e,t){const n=Pg({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ui(n,zy),i=Ii({},n,{alignItems:y.useContext(Py).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Hm({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ly,n)})(i);return Hf.jsx(jy,Ii({className:cm(a.root,r),ownerState:i,ref:t},o))}));var _y=$y;function Fy(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function By(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hy(Object(n),!0).forEach((function(t){Fy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uy,Wy,Vy=function(e){var t=e.className,n=e.path,r=e.fillRule;return g.createElement(Jg,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},g.createElement("path",{d:n}),r?g.createElement("use",{fillRule:r}):void 0)},Gy={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};Ug(My,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),Ug((function(e){var t=e.className;return g.createElement(Vy,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:Gy.ICONS.COLOR.SECONDARY}})),Ug((function(e){var t=e.className;return g.createElement(Vy,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:Gy.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:Gy.ICONS.COLOR.DISABLED}}})),Ug(My,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}}));var Ky={color:Gy.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:Gy.ICONS.COLOR.DISABLED}};Ug((function(e){var t=e.className;return g.createElement(Vy,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return Ky})),Ug((function(e){var t=e.className;return g.createElement(Vy,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return Ky})),Ug((function(e){var t=e.className;return g.createElement(Vy,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:Gy.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),Ug(Ny)((function(){return{padding:"4px 12px","&:focus":By({},Gy.FOCUS)}})),Ug(_y)((function(){return{marginRight:0,justifyContent:"center"}})),Ug((function(e){var t=e.className;return g.createElement(Vy,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:Gy.ICONS.COLOR.SECONDARY}}));var Yy,Xy=function(){if(Wy)return Uy;Wy=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 Uy=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Uy}();(Yy=Xy)&&Yy.__esModule&&Object.prototype.hasOwnProperty.call(Yy,"default")&&Yy.default;var Jy,Zy=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return g.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},Qy={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:o});return g.createElement("div",{dir:i,style:a},g.createElement(Zy,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},ev={},tv=function(){if(Jy)return ev;Jy=1;var e=k;return ev.createRoot=e.createRoot,ev.hydrateRoot=e.hydrateRoot,ev}(),nv=Rg({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:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},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"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function rv(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,o=n.y,i=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function ov(){var e={rendererBox:rv(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=rv(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=tv.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,o=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*o),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return g.createElement(g.StrictMode,null,g.createElement(Vg,{theme:nv},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function iv(e){return pt(e).l<70}function av(e,t){const n=pt(e).l/100,r=pt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function sv(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var lv={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(av(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=sv({r:s,a:e},n),i=sv({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:iv(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function cv(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function uv(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:cv(s)}}var dv,pv,fv={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=uv({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function hv(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Y(e))};e.interaction("hammer",Y(Hammer))}(t)),e.use((function(e){e.renderer("react",Nd()),e.component("data-title",Id(e.renderer("svg")()))})),e.renderer("react-qcm",ov),e.component("disclaimer",Qy),e.component("pie-dividers",lv),e.component("negative-indicators",fv),e}var mv=function(){if(pv)return dv;pv=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},dv=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},dv}(),gv=X(mv);const yv=e=>(Object.keys(gv.prototype).forEach((t=>{e[t]=gv.prototype[t]})),gv.init(e),e);function vv({picasso:e}){var t;const n=E(),r=T(),o=R(),[i,c]=M(),u=function(){const e={};return yv(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=P(),p=O(),f=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[h,m]=M(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[0])||void 0===i||!i.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:d,isInSelections:f,isLassoActionActive:h,setIsLassoActionActive:m,translator:p}),D((()=>(i&&(i.interactions.lasso.active=()=>h),{...u.lasso})),[i,h,f,p.language()]),I((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),p=a({chart:i,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const f=s({legendScrollOffset:0,rotation:0});f.intercept("rotation",(e=>(f.get("rotation")+e)%(2*Math.PI))),f.onChanged("rotation",(()=>{i.update({partialData:!0})}));const h=l();return u.on("selections-start",(()=>{i.brush("selection").start()})),c({picasso:t,chart:i,selectionService:p,viewState:f,viewCache:h,interactions:u}),()=>{p.destroy(),i.destroy(),u.removeAllListeners(),delete u.select,f.intercept("rotation",void 0),f.onChanged("rotation",void 0)}}),[]),i}const bv={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function xv(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Sv={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function wv(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await Sv.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Cv(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const h=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let m;if(-1!==f&&h[f]&&(m=h[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return wv(u,d,s);if("url"===p)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&xv(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Sv.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Sv.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(xv(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await Sv.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,m)}return[]}const kv={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Cv(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},Ev={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await kv.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>kv.checkIfPromisesExist({customTooltipModel:e})};const Tv=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:bv.CHART.CHART_PARENT_TYPE,qId:bv.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Rv=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:bv.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Mv={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const o=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",i=bv.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:bv.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await Mv.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=bv.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=bv.CHART.STATE,a=Tv(t,i),s=await e.createSessionObject(a),l=Rv(t);if(s.id!==bv.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,h;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(h=e.source)&&void 0!==h&&h.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(bv.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await Mv.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Mv.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(bv.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=bv.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Pv(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Ov(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=bv.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Dv(e){const t=Ov();return e.filter((e=>t[e.id]))}const Iv={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=Iv.getAttrExprData(a);i.length||n.length?Ev.handlePromises({customTooltipModel:o,nodes:Iv.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&Mv.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Ev.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[bv.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[bv.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[bv.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Dv(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[bv.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[bv.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Pv(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Dv(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=Pv(e)||[];[...o,t].forEach((e=>{const t=Dv(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Ov(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:pe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=pe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function qv(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case bv.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case bv.CUSTOM.TITLE:case bv.CUSTOM.DESCRIPTION:case bv.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const Av={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>qv(t,e,r,n)}}};const Nv={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[bv.CUSTOM.TITLE]:!0,[bv.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=Iv.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===bv.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===bv.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>fe.getMeasure(e,t))),e,o)}};function Lv({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Nv.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function zv(e){const t=bv.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function jv(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var $v={attrExpr:{migrateProperties(e){var t,n;const r=te(!0,{},e),o=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let i=jv(r);return i=function(e,t){return t.concat(e.map((e=>zv(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=zv(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(jv(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:_v}=bv;function Fv({flags:e,layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:Iv,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c}),f="rtl"===u.direction,h=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&o(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=Lv({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===_v.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===_v.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>Iv.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>Iv.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const o=Iv.getDataNodes(a,r),{attrExps:i}=Iv.getAttrExprData(t);return Ev.handlePromises({customTooltipModel:p,nodes:o,attrExps:i,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>Mv.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>Iv.getFooterRow(s.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>Mv.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>Mv.hide({app:n,customTooltipModel:p}),destroy:()=>Mv.destroyVisualization({customTooltipModel:p})}}}function Hv(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function Bv({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return c({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=se.getValue(e,"qHyperCube.qSize.qcy");return se.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const o=t({ds:e,encodings:r});return 0===n({rows:o,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o});return 0===r({rows:a,encodings:o}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o}),s=a,l=r({rows:a,encodings:o});return s.length!==l.length}}}}})}function Uv({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:d}=i.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}const Wv=e=>"[object Object]"===Object.prototype.toString.call(e),Vv=e=>Array.isArray(e);function Gv(e,t){if(e===t)return!0;if(Vv(e)){if(!Vv(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Gv(e[n],t[n]))return!1;return!0}if(Wv(e)){if(!Wv(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!Gv(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function Kv({enable:e=!0}={}){const t=q(),n=()=>Date.now().toString()+Math.random(),[r,o]=M(n()),i={properties:void 0};return I((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=te(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=te(!0,{},e),l=te(!0,{},t);return a.exclude=!Gv(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!Gv(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}function Yv({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const Xv=.8,Jv=.55,Zv=.3,Qv={CORNER_RADIUS:0,INNER_RADIUS:Jv,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},eb=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=Xv,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:Jv;e.donut.showAsDonut&&(i=Xv-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:Xv,tb=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:Jv;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=Xv-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},nb=({layout:e},t)=>{var n,r,o,i,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:h}=t.chart,m=se.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>h(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:p,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?Av.getNode(e,{dimensionCount:m}):void 0,radius:f?g(f,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:tb({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?Qv.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Qv.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:Qv.STROKE.COLOR,outerRadius:eb({layout:e},t,y),cornerRadius:null!==(i=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==i?i:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function rb({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:Jv,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=Xv-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function ob(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function ib({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const ab=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),sb=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}});function lb(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function cb(e){return e.node.data.num.label}function ub(e){return e.node.data.radius.label}function db(e,t,n){if(e.dataPoint.auto)return n?cb:lb;if("share"===e.dataPoint.labelMode)return lb;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?ub:cb}return null}function pb({data:e}){return e?e.label:""}function fb(e){const t=parseInt(e,10);if(!isNaN(t))return t}const hb=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function mb(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:Jv)>Zv}function gb({node:e,data:t}){return te({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function yb(e,t,n){const r=t.styleService.label.name.getStyle(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:fb(r.fontSize),fontFamily:r.fontFamily,label:pb,linkData:({node:e,data:t})=>te({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(db(e,t,!1)){const r=function(e,t,n){return{label:db(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&mb(e)?"inside":"into",onBackground:e.donut.showAsDonut&&mb(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=ge(te(t,r),n.theme);i.linkData=gb,o.push(i)}return{key:"pie-labels",type:"labels",renderer:Vo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function vb({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=db(e,t,!0),o=hb(n.theme),i=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===i.label.name.color,c=s.fill===i.label.value.color;return{key:"pie-labels",type:"labels",renderer:Vo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:fb(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:pb,linkData:({data:e})=>e},{fontSize:fb(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):yb(e,n,t))}const bb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),o=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return o||this.chart.component("legendRangeBrush").emit("rangeClear"),o}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function xb(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Sb(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=xb(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*Xv;return(i-r)**2+(a-o)**2<=s**2}const wb=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=xb(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Cb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),kb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function Eb(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Sb(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const Tb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Sb(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),Rb=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),Mb=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Tb(e,{}),wb(e,t,{}),...n]:[bb(e,{}),kb(e,{}),Tb(e,{}),Cb(e,{}),Rb(e,{}),wb(e,t,{}),...n]});function Pb(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[Mb(t,r,i.gestures),Eb(t),i.native]}function Ob({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function Db({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function Ib({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return te(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&te(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:o}=e,{fontFamily:i}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:o.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:i}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[nb({layout:e,settings:i},r),rb({layout:e},r),ob(r),ib({layout:e},r),Db({layout:e},r,t),...c.components,Yv({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),sb(),ab(),vb({layout:{components:e.components,dataPoint:te({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:Pb(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Ob({settings:i},r),strategy:ie(0,r)}}function qb({instance:e,services:t,picasso:n,flags:o}){const i=E(),a=q(),s=A(),l=O(),c=j(),u=N(),d=R(),p=z(),{qLocaleInfo:f}=$(),m=Kv({enable:u&&!u.snapshotData}),[g]=F((()=>{if(!t)return Promise.resolve();$v.attrExpr.updateProperties(a,u);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:f,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t,m]);I((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),I((()=>{if(!e||!g)return;const{chart:m,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,disclaimerService:S,pluginService:w,themeService:C,tooltipService:k,styleService:E}=t,T=i.viewState||{};u.snapshotData||(y.preventSet("legendScrollOffset",T.legendScrollOffset||0),y.preventSet("rotation",T.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,y),k.expando.set("properties",g[1]);const R=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}}),M=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}},...x.getData()],P={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(P.slice.outerRadius="qMeasureInfo/1"),S.initialize({args:{ds:R,encodings:P}});const O=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:u.qHyperCube,config:{localeInfo:f}}),P),D=d?()=>{const e=m.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},I=u.snapshotData&&!i.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,q=t=>e.selectionService.getIsSelectionLocked(t),A=()=>Ib({layout:u,context:{rtl:"rtl"===i.direction,theme:c,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:R,model:a,app:s,chart:m,onSelect:D,isLocked:q,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:O,encodings:P,colorService:x,disclaimerService:S,pluginService:w,themeService:C,styleService:E,tooltipService:k,debouncer:h,properties:g[1],logicalSize:I,flags:o,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:o}){return!1!==t.chartAnimations&&n.get("chartWidth")===o.element.clientWidth&&n.get("chartHeight")===o.element.clientHeight&&n.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")&&!Wo.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:i,layout:u,viewCache:b,chart:m})}});e.generateSettings=A;const N=A();m.update({data:M,settings:N}),b.set("chartWidth",m.element.clientWidth),b.set("chartHeight",m.element.clientHeight),b.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),Wo.cacheProperties({viewCache:b,layout:u}),i.effect&&u.effectProperties?i.effect.update(u,m,{encodings:P}):u.effectPath||m.brush("highlight").end()}),[e,g,i.direction,i.effectProperties,p,c.name(),l.language()])}const Ab="legend-cat";function Nb({instance:e,services:t}){const n=T(),r=N();B((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:le(t,Ab),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),U((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:le(e.chart,"legend-cat")})})),[e])}const Lb={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},zb={getDimensions:e=>Lb.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Lb.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Lb.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Lb.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Lb.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=Lb.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const jb={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>zb.getNumMeasures(e)>=1},showLegend:e=>{const t=Lb.getValue(e,"color.auto"),n=Lb.getValue(e,"color.expressionIsColor"),r=Lb.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Lb.getValue(e,"color.auto")&&"byDimension"===Lb.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Lb.getValue(e,"color.useDimColVal")&&Lb.setValue(e,"color.useDimColVal",!1),!Lb.getValue(e,"color.auto")&&"byDimension"===Lb.getValue(e,"color.mode")&&"libraryItem"===Lb.getValue(e,"color.byDimDef.type"))},$b=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=jb;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!Lb.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=Lb.getValue(e,"color.auto");return Lb.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===Lb.getValue(e,"color.mode")&&!0===Lb.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Lb.getValue(e,"legend.show")&&o(e)}}};function _b(e){return new $b(e)}const Fb={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},Hb=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},Bb=(e,t,n,r)=>{const o=m({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:Hb("axis.title",o,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:Hb("label.name",o,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:Hb("label.value",o,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Hb("legend.title",o,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:Hb("legend.label",o,r)}}}:void 0}}},Ub=_b("hard");const Wb=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(i(e,"color.mode","byDimension"),i(e,"color.byDimDef.activeDimensionIndex",0),i(e,"color.persistent",!1))},Vb=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},Gb=e=>{var t;const{flags:n,translator:r}=e||{},o=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:Wb},colorMode:{options:Vb}}}}},l={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||i(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:Fb,simpleLabels:l,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:Bb(a,n,r,o),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:Ub.color.colorMode.options},persistentColors:{show:Ub.color.persistentColors.show}}},simpleColors:s,legend:{show:Ub.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Ub.legend.showTitle.show},dock:{show:Ub.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},Kb={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},Yb={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},Xb={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function Jb(e){return{type:"items",component:"accordion",items:{data:Kb,sorting:Yb,addons:Xb,settings:Gb(e)}}}const Zb=_b("explore"),Qb=Jb();var ex={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:Qb.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:Qb.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:Zb.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&Zb.color.useDimColVal.show(e))}}}}}}};const tx="slices";function nx(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function rx(e){return e.data.num.label}function ox(e){return e.data.radius.label}function ix(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?rx:nx;if("share"===e.dataPoint.labelMode)return nx;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?ox:rx;return rx}(n,r)(e,t)}function ax(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class sx{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:ax(n),label:ix(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=te(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=te(e.options,{effect:null}),n?t.getProperties().then((e=>te(e,{effectPath:null,effectProperties:null,dataPoint:te(!0,{},e.originalModelSettings.dataPoint),legend:te(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class lx extends sx{init(e,t,n,r){return e.options=te(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(tx).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class cx extends sx{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(tx).data.items.map((e=>e.value)).indexOf(n.data.value);-1!==r&&(this.selectedIndex=r,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(tx).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===tx)).map(((n,r)=>{const o=ix(n,this.chart.formatter,e,t);return{text:`${ax(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=te(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const ux="/effects/highlight-value",dx="/effects/maxmin";var px={isCompatible:({effectPath:e})=>e===dx||e===ux,create:e=>e.effectPath===dx?new lx(e):e.effectPath===ux?new cx(e):null};function fx(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),r){var i;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(i=i.object)||void 0===i?void 0:i.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function hx(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function mx(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function gx({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){mx(e),hx(t),Iv.addCallbackCustomTooltip(t)},move(e,t){mx(e),hx(t),Iv.moveCallbackCustomTooltip(t,e)},remove(e,t){Iv.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){mx(e),hx(r),Iv.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){hx(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const yx=e=>e.qMax<=0,vx=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(yx));function bx(e){return{definition:Jb(e),softDefinition:ex,support:{snapshot:vx,export:vx,exportData:!0,sharing:vx,viewData:!0,effects:!0},effects:px,extendMetrics:fx,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:gx(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function xx(e){return{properties:{version:"1.27.21",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:Qv.STROKE.COLOR},cornerRadius:Qv.CORNER_RADIUS,innerRadius:Qv.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[gx(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:gx(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(V).forEach((t=>{e.add(V[t])}))}}(e.translator);const n=hv();return{qae:xx(e),ext:bx(e),component(){const e=vv({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),o=A(),i=O(),a=T(),[s,l]=M(),c=N(),u=L(),h=z(),m=E(),g=j(),{qLocaleInfo:y}=$(),v=_();return I((()=>{if(!n)return;a.style.overflow="hidden";const s=d({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),b=p({picassoInstance:n.picasso,plugins:u,pluginArgs:Hv(c)}),x=Fv({flags:e,layout:c,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:y,embed:v,options:m}),S=f({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),w=Uv({app:o,chart:n.chart,translator:i,layout:c,constraints:h,options:m,themeService:S,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),o=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(i=o("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=o("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:c,themeService:S,flags:e}),k=Bv({layout:c});l({colorService:s,disclaimerService:k,pluginService:b,themeService:S,tooltipService:w,styleService:C})}),[r,o,n,c,i.language(),h,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});qb({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=E(),r=H();I((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),Nb({instance:e,services:r})}}}))}}}));