@nebula.js/sn-pie-chart 1.28.11 → 1.28.13

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,14 +1,7 @@
1
1
  /*
2
- * @nebula.js/sn-pie-chart v1.28.11
2
+ * @nebula.js/sn-pie-chart v1.28.13
3
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","qlik-chart-modules/react","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,i,o,r,a,s,l,c,u,d,p,h,f,m,g,v,y,b,x,S,C,w,E,k,R,T,q,D,P,I,M,N,O,L,A,z,j,F,_,$,H,V,W,U,B,G;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){i=e.default},function(e){o=e.getValue,r=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,c=e.disclaimerService,u=e.tooltipService,d=e.alternativeService,p=e.colorService,h=e.pluginService,f=e.themeService,m=e.debouncer,g=e.fontResolver},function(e){v=e.default,y=e,b=e.isValidElement,x=e.cloneElement,S=e.Children},function(e){C=e,w=e.default},function(e){E=e.reactRenderer,k=e.axisTitleComponent,R=e.disclaimerComponent},function(e){T=e.useOptions,q=e.useElement,D=e.useSelections,P=e.useState,I=e.useLayout,M=e.useTranslator,N=e.useAction,O=e.useEffect,L=e.useModel,A=e.useApp,z=e.useStaleLayout,j=e.usePlugins,F=e.useConstraints,_=e.useTheme,$=e.useAppLayout,H=e.useEmbed,V=e.usePromise,W=e.useRect,U=e.onTakeSnapshot,B=e.useImperativeHandle},function(e){G=e.default}],execute:function(){var K={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_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","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 J={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Z(e){return J[e]||e}function X(e){return function(t,n,i){let o,r,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(r)()),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(r));const n=Z(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(i),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(r),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=Z(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,r={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,r=null,o=null}}}}function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q=Object.prototype.hasOwnProperty,ee=Object.prototype.toString,te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,ie=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ee.call(e)},oe=function(e){if(!e||"[object Object]"!==ee.call(e))return!1;var t,n=Q.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&Q.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||Q.call(e,t)},re=function(e,t){te&&"__proto__"===t.name?te(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ae=function(e,t){if("__proto__"===t){if(!Q.call(e,t))return;if(ne)return ne(e,t).value}return e[t]},se=function e(){var t,n,i,o,r,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)i=ae(s,n),s!==(o=ae(t,n))&&(u&&o&&(oe(o)||(r=ie(o)))?(r?(r=!1,a=i&&ie(i)?i:[]):a=i&&oe(i)?i:{},re(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&re(s,{name:n,newValue:o}));return s},le=Y(se);const ce=[["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}]],ue={};ce.forEach((([e,{width:t,height:n}])=>{ue[e]={width:t,height:n}}));const de={getLayoutModes:()=>ue,getLayoutMode(e,t){let n;for(n=0;n<ce.length;++n)if(e>=ce[n][1].width&&t>=ce[n][1].height)return ce[n][0];return"SPARK"}};function pe(e,t){return{layoutModes:de.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 he=/^[A-Z][A-z0-9_]*$/i,fe={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},me={setValue:(e,t,n)=>{if(!t)return!1;const i=t.split("."),o=i[i.length-1];let r,a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];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 i=t.split(".");let o,r=e;if(void 0===r)return n;for(o=0;o<i.length;++o){if(void 0===r[i[o]])return n;r=r[i[o]]}return r},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||he.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>fe.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function ge(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ve=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ye=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),be=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),xe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>ve.test(e),isRtlChar:e=>ye.test(e)||be.test(e),detectTextDirection(e){const t=e?e.length:0;let n,i;for(n=0;n<t;n++){if(i=e[n],xe.isLtrChar(i))return"ltr";if(xe.isRtlChar(i))return"rtl"}return"ltr"}},Se={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 i=t.data,o=e.resources.formatter,r=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&i.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(i.fillTooltip.value):i.fillTooltip.label?i.fillTooltip.label:i.fillTooltip.value,!n.coloring.label){const e=r(i.fillTooltip.source.key).field(i.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===i._fillColor?Se.getNodeFillColor(t):i._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=xe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getDescriptionRow(e,t){const n=xe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getNMoreRow(e,t,n){const i=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:i,style:{"font-weight":"bold","text-align":n?"right":"left",direction:xe.detectTextDirection(i)},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 i=xe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],r=xe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:i}},{content:n?[t.color.value,Se.getColorSymbol(e,t)]:[Se.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:r,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,i,o=!1){const r=xe.detectTextDirection(e.label),a=i?[":",e.label]:[e.label,":"],s=xe.detectTextDirection(e.value);let l;return l=o?i?[e.value,Se.getColorSymbol(t,n)]:[Se.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":i?"right":"left",direction:r}},{content:l,style:{"text-align":i?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Ce(e){const t=parseInt(e,10);if(!isNaN(t))return t}const we=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Ee(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const i=n.themeService.getStyles(),o=n.styleService.label.value.getStyle(),r=o.fill===i.label.value.color;return{position:e.position,justify:e.justify,fill:r&&!e.onBackground?we(t):o.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:Ce(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function ke(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Re(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Te(){}var qe=.7,De=1/qe,Pe="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ne=/^#([0-9a-f]{3,8})$/,Oe=new RegExp(`^rgb\\(${Pe},${Pe},${Pe}\\)$`),Le=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Ae=new RegExp(`^rgba\\(${Pe},${Pe},${Pe},${Ie}\\)$`),ze=new RegExp(`^rgba\\(${Me},${Me},${Me},${Ie}\\)$`),je=new RegExp(`^hsl\\(${Ie},${Me},${Me}\\)$`),Fe=new RegExp(`^hsla\\(${Ie},${Me},${Me},${Ie}\\)$`),_e={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 He(){return this.rgb().formatRgb()}function Ve(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?We(t):3===n?new Ge(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(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=Oe.exec(e))?new Ge(t[1],t[2],t[3],1):(t=Le.exec(e))?new Ge(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ae.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=ze.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=je.exec(e))?Qe(t[1],t[2]/100,t[3]/100,1):(t=Fe.exec(e))?Qe(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?We(_e[e]):"transparent"===e?new Ge(NaN,NaN,NaN,0):null}function We(e){return new Ge(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,i){return i<=0&&(e=t=n=NaN),new Ge(e,t,n,i)}function Be(e){return e instanceof Te||(e=Ve(e)),e?new Ge((e=e.rgb()).r,e.g,e.b,e.opacity):new Ge}function Ge(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Ke(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function Je(){const e=Ze(this.opacity);return`${1===e?"rgb(":"rgba("}${Xe(this.r)}, ${Xe(this.g)}, ${Xe(this.b)}${1===e?")":`, ${e})`}`}function Ze(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Xe(e))<16?"0":"")+e.toString(16)}function Qe(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tt(e,t,n,i)}function et(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);if(e instanceof Te||(e=Ve(e)),!e)return new tt;if(e instanceof tt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),a=NaN,s=r-o,l=(r+o)/2;return s?(a=t===r?(n-i)/s+6*(n<i):n===r?(i-t)/s+2:(t-n)/s+4,s/=l<.5?r+o:2-r-o,a*=60):s=l>0&&l<1?0:a,new tt(a,s,l,e.opacity)}function tt(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function nt(e){return(e=(e||0)%360)<0?e+360:e}function it(e){return Math.max(0,Math.min(1,e||0))}function ot(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ke(Te,Ve,{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 et(this).formatHsl()},formatRgb:He,toString:He}),ke(Ge,(function(e,t,n,i){return 1===arguments.length?Be(e):new Ge(e,t,n,null==i?1:i)}),Re(Te,{brighter(e){return e=null==e?De:Math.pow(De,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?qe:Math.pow(qe,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ge(Xe(this.r),Xe(this.g),Xe(this.b),Ze(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:Ke,formatHex:Ke,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Je,toString:Je})),ke(tt,(function(e,t,n,i){return 1===arguments.length?et(e):new tt(e,t,n,null==i?1:i)}),Re(Te,{brighter(e){return e=null==e?De:Math.pow(De,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?qe:Math.pow(qe,e),new tt(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,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Ge(ot(e>=240?e-240:e+120,o,i),ot(e,o,i),ot(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new tt(nt(this.h),it(this.s),it(this.l),Ze(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=Ze(this.opacity);return`${1===e?"hsl(":"hsla("}${nt(this.h)}, ${100*it(this.s)}%, ${100*it(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,at=180/Math.PI,st=.96422,lt=.82521,ct=4/29,ut=6/29,dt=3*ut*ut,pt=ut*ut*ut;function ht(e){if(e instanceof ft)return new ft(e.l,e.a,e.b,e.opacity);if(e instanceof xt)return St(e);e instanceof Ge||(e=Be(e));var t,n,i=yt(e.r),o=yt(e.g),r=yt(e.b),a=mt((.2225045*i+.7168786*o+.0606169*r)/1);return i===o&&o===r?t=n=a:(t=mt((.4360747*i+.3850649*o+.1430804*r)/st),n=mt((.0139322*i+.0971045*o+.7141733*r)/lt)),new ft(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ft(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function mt(e){return e>pt?Math.pow(e,1/3):e/dt+ct}function gt(e){return e>ut?e*e*e:dt*(e-ct)}function vt(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 bt(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof xt)return new xt(e.h,e.c,e.l,e.opacity);if(e instanceof ft||(e=ht(e)),0===e.a&&0===e.b)return new xt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*at;return new xt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new xt(e,t,n,null==i?1:i)}function xt(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function St(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 Ct(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}ke(ft,(function(e,t,n,i){return 1===arguments.length?ht(e):new ft(e,t,n,null==i?1:i)}),Re(Te,{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 Ge(vt(3.1338561*(t=st*gt(t))-1.6168667*(e=1*gt(e))-.4906146*(n=lt*gt(n))),vt(-.9787684*t+1.9161415*e+.033454*n),vt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ke(xt,bt,Re(Te,{brighter(e){return new xt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new xt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return St(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return Ct(e(t),n)}}(e))}(Ct);var wt="$";function Et(){}function kt(e,t){var n=new Et;if(e instanceof Et)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var i,o=-1,r=e.length;if(null==t)for(;++o<r;)n.set(o,e[o]);else for(;++o<r;)n.set(t(i=e[o],o,e),i)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Rt(){}Et.prototype=kt.prototype={constructor:Et,has:function(e){return wt+e in this},get:function(e){return this[wt+e]},set:function(e,t){return this[wt+e]=t,this},remove:function(e){var t=wt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===wt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===wt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===wt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===wt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===wt&&++e;return e},empty:function(){for(var e in this)if(e[0]===wt)return!1;return!0},each:function(e){for(var t in this)t[0]===wt&&e(this[t],t.slice(1),this)}};var Tt=kt.prototype;Rt.prototype={constructor:Rt,has:Tt.has,add:function(e){return this[wt+(e+="")]=e,this},remove:Tt.remove,clear:Tt.clear,values:Tt.keys,size:Tt.size,empty:Tt.empty,each:Tt.each};const qt=le.bind(null,!0),Dt={},{isArray:Pt}=Array;function It(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Mt(e){return void 0===e}function Nt(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ot(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=Mt(e[i||t])?r:e[t],e=e[i||t]})),e}function Lt(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function At(e,t,n){let i=!0;if(It(e)&&It(t))return Lt(e,n)===Lt(t,n)&&(Object.keys(e).forEach((o=>{At(e[o],t[o],n)||(i=!1)})),i);if(Pt(e)&&Pt(t)){if(e.length!==t.length)return!1;for(let i=0,o=e.length;i<o;i+=1)if(!At(e[i],t[i],n))return!1;return!0}return e===t}Dt.compare=At,Dt.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?qt({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;At(r,a)||Nt(t,o)||(Mt(a)?i.push({op:"add",path:s,value:r}):It(r)&&It(a)?i=i.concat(Dt.generate(a,r,s)):Pt(r)&&Pt(a)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function a(e,t,n){if(e[n]&&Mt(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(At(t,o))return i;if(!Mt(t[0])&&Mt(t[0].qInfo)||0===t.length)return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(Dt.generate(o[e],t[r],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)r=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(a,r,s)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{Mt(t[o])&&!Nt(e,o)&&i.push({op:"remove",path:`${n}/${o}`})})),i},Dt.apply=function(e,t){t.forEach((t=>{let n=Ot(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Pt(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(Pt(o)&&Pt(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(It(o)&&It(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Nt(a,e)&&delete a[e]})),qt(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=Ot(e,t.from);Pt(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(Pt(n)?n.splice(+i,1):delete n[i]);var a}))},Dt.clone=function(e){return qt({},e)},Dt.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},Dt.updateObject=function(e,t){Object.keys(e).length?Dt.apply(e,Dt.generate(e,t)):qt(e,t)};const zt=[[2,4,6],[2,4],[3]],jt=[,[,,[[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 Ft(e,t,n){const i=e?e.length:0;let o,r=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<i;o++)r=Math.min(r,e[o]/e[o-1]);void 0!==n&&(r=Math.min(r,n/e[i-1])),e.splice(0,0,r)}function _t(e,t,n){let i;const o=e?e.length:0;for(i=0;i<o;i++)Ft(e[i],t,n)}!function(){let e,t;for(_t(zt,1,10),e=0;e<jt.length;e++)if(jt[e])for(t=0;t<jt[e].length;t++)Array.isArray(jt[e][t])&&_t(jt[e][t])}();var $t={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","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 Ht(e){const{qHyperCube:t,...n}=e,{qAxisData:i,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=le(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=$t;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&r(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&r(e,n,null)}))}})),u}var Vt={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:i}){return o=>{if(e||t||n){var r;if("line"===o.type)return null!==(r=o.tickValue)&&void 0!==r?r:"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(i){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:i,dock:o}){return({currentNodes:r,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&&r.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||r.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||r.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?r.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||i?r.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):r.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 i=t.x-n.x,o=t.y-n.y;0===i&&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-=i,e.y-=o):e.transform=`translate(${-i}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const i=t.x-n.x;0===t.y-n.y&&0===i||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 i=t.x-n.x,o=t.y-n.y;0===i&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=i):(e.x-=i,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 i=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-=i,e.x2-=i);else{const t="x"===e.major.p?i/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:i/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 i=t.x-n.x;0===t.y-n.y&&0===i||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 i=t.x-n.x,o=t.y-n.y;0===i&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=i,e.cy-=o;break;case"rect":e.x-=i,e.y-=o;break;case"path":e.transform=`translate(${-i}, ${-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 i=t.x-n.x,o=t.y-n.y;0===i&&0===o||e.forEach((e=>{e.cx-=i,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 i=t.x-n.x,o=t.y-n.y,r=t.width-n.width,a=t.height-n.height;let s=-i,l=-o;e.forEach((e=>{switch(e.dock){case"right":i>0&&(s=t.width);break;case"left":r<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=Ht(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ht(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Wt(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 Ut={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"},Bt={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"},Gt={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"},Kt={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"},Jt="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",Zt={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"},Xt={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"},Yt="N",Qt="H",en="C",tn={N:void 0,H:Ut,C:Gt},nn=(e,t)=>{switch(e.qGrouping){case Yt:return;case Qt:return{path:Ut,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case en:return{path:t?Bt:Gt,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 on(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 i=Dt.generate(t,n);i&&i.length&&(i=i.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(i,!0))}))}function rn(e,t,n,i,o,r){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[i].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((e=>e.qDef.cId===n)),c=le(!0,{},a),u=c.qHyperCubeDef[i][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],r||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[i][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),on(e,a,c)}))}function an(e){return e.qGrouping===Yt?e.qFallbackTitle||"":e.title||""}const sn=(e,t)=>{const n=[],i=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&i.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(i).then((()=>n))},ln=async(e,t,n,i,o)=>{const r=await sn(e,n),a=n.filter((e=>!r.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const r=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,i){if(e.qLibraryId)return i?i.qDim.qGrouping===Yt&&i.qDim.qLabelExpression?Promise.resolve(i.qDim.qLabelExpression):Promise.resolve(i.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const r=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(r)}(n,e,i,r),s=(null==r?void 0:r.qDim.qGrouping)||n.qDef.qGrouping,l=tn[s],c=s!==Yt;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){rn(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function cn({column:e,dir:t,dock:n,altList:i,model:o,translator:r,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Yt,d=l.qGrouping===Qt;return 0===i.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await(async(e,t,n,i,o="/qHyperCubeDef")=>{switch(e.qGrouping){case Qt:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.drillUp(o,i,e.qGroupPos-r)}})));return{id:e.cId,icon:Ut,groupItem:!0,title:e.title,selected:!1,children:n}}case en:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),i=null!=t&&t.setActiveField?e.qGroupFallbackTitles.map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.setActiveField(i).catch((()=>null))}}))):[];return{id:e.cId,icon:Gt,groupItem:!0,title:e.title,selected:!1,children:i}}default:return{selected:!0,id:e.cId,title:an(e)}}})(l,o,a,e),n=c?await ln(a,o,i,r,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function un(e,t,n,i,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Qt?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:nn(e,i),index:t,locked:!!e.qLocked,text:e.qGrouping===Yt?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:an(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function dn({activeInfo:e,altList:t,app:n,dir:i,dock:o,model:r,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:i,dock:o,getPopoverOptions:async()=>{const i=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await sn(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 i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);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){rn(r,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...i,...d]}}}function pn(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hn.apply(null,arguments)}var fn={exports:{}};function mn(){}function gn(){}gn.resetWarningCache=mn;fn.exports=function(){function e(e,t,n,i,o,r){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==r){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:gn,resetWarningCache:mn};return n.PropTypes=n,n}();var vn=Y(fn.exports),yn={black:"#000",white:"#fff"},bn="#e57373",xn="#f44336",Sn="#d32f2f",Cn="#ff4081",wn="#f50057",En="#c51162",kn="#7986cb",Rn="#3f51b5",Tn="#303f9f",qn="#64b5f6",Dn="#2196f3",Pn="#1976d2",In="#81c784",Mn="#4caf50",Nn="#388e3c",On="#ffb74d",Ln="#ff9800",An="#f57c00",zn={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 jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jn.apply(null,arguments)}function Fn(e){return Fn="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},Fn(e)}function _n(e){return e&&"object"===Fn(e)&&e.constructor===Object}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?jn({},e):e;return _n(e)&&_n(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(_n(t[o])&&o in e?i[o]=$n(e[o],t[o],n):i[o]=t[o])})),i}function Hn(e){var t=function(e,t){if("object"!=Fn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=Fn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fn(t)?t:t+""}function Vn(e,t,n){return(t=Hn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(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 Un(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 Bn(e){if(e.type)return e;if("#"===e.charAt(0))return Bn(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(Wn(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function Gn(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 Kn(e){var t="hsl"===(e=Bn(e)).type?Bn(function(e){var t=(e=Bn(e)).values,n=t[0],i=t[1]/100,o=t[2]/100,r=i*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-r*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])),Gn({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 Jn(e,t){return e=Bn(e),t=Un(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Gn(e)}function Zn(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}function Xn(e,t){if(null==e)return{};var n,i,o=Zn(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Yn=["xs","sm","md","lg","xl"];function Qn(e,t,n){var i;return jn({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")),jn({paddingLeft:t(2),paddingRight:t(2)},n,Vn({},e.up("sm"),jn({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Vn(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Vn(i,e.up("sm"),{minHeight:64}),i)},n)}var ei={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:yn.white,default:zn[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}},ti={text:{primary:yn.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:zn[800],default:"#303030"},action:{active:yn.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 ni(e,t,n,i){var o=i.light||i,r=i.dark||1.5*i;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Bn(e),t=Un(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 Gn(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Bn(e),t=Un(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 Gn(e)}(e.main,r)))}function ii(e){var t=e.primary,n=void 0===t?{light:kn,main:Rn,dark:Tn}:t,i=e.secondary,o=void 0===i?{light:Cn,main:wn,dark:En}:i,r=e.error,a=void 0===r?{light:bn,main:xn,dark:Sn}:r,s=e.warning,l=void 0===s?{light:On,main:Ln,dark:An}:s,c=e.info,u=void 0===c?{light:qn,main:Dn,dark:Pn}:c,d=e.success,p=void 0===d?{light:In,main:Mn,dark:Nn}:d,h=e.type,f=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,v=e.tonalOffset,y=void 0===v?.2:v,b=Xn(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Kn(e),i=Kn(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}(e,ti.text.primary)>=g?ti.text.primary:ei.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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=jn({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Wn(4,t));if("string"!=typeof e.main)throw new Error(Wn(5,JSON.stringify(e.main)));return ni(e,"light",n,y),ni(e,"dark",i,y),e.contrastText||(e.contrastText=x(e.main)),e},C={dark:ti,light:ei};return $n(jn({common:yn,type:f,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(p),grey:zn,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:y},C[f]),b)}function oi(e){return Math.round(1e5*e)/1e5}function ri(e){return oi(e)}var ai={textTransform:"uppercase"},si='"Roboto", "Helvetica", "Arial", sans-serif';function li(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,o=void 0===i?si:i,r=n.fontSize,a=void 0===r?14:r,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,h=n.fontWeightBold,f=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=Xn(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=y||function(e){return"".concat(e/g*x,"rem")},C=function(e,t,n,i,r){return jn({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===si?{letterSpacing:"".concat(oi(i/t),"em")}:{},r,v)},w={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(u,48,1.167,0),h4:C(u,34,1.235,.25),h5:C(u,24,1.334,0),h6:C(p,20,1.6,.15),subtitle1:C(u,16,1.75,.15),subtitle2:C(p,14,1.57,.1),body1:C(u,16,1.5,.15),body2:C(u,14,1.43,.15),button:C(p,14,1.75,.4,ai),caption:C(u,12,1.66,.4),overline:C(u,12,2.66,1,ai)};return $n(jn({htmlFontSize:g,pxToRem:S,round:ri,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:f},w),b,{clone:!1})}function ci(){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 ui=["none",ci(0,2,1,-1,0,1,1,0,0,1,3,0),ci(0,3,1,-2,0,2,2,0,0,1,5,0),ci(0,3,3,-2,0,3,4,0,0,1,8,0),ci(0,2,4,-1,0,4,5,0,0,1,10,0),ci(0,3,5,-1,0,5,8,0,0,1,14,0),ci(0,3,5,-1,0,6,10,0,0,1,18,0),ci(0,4,5,-2,0,7,10,1,0,2,16,1),ci(0,5,5,-3,0,8,10,1,0,3,14,2),ci(0,5,6,-3,0,9,12,1,0,3,16,2),ci(0,6,6,-3,0,10,14,1,0,4,18,3),ci(0,6,7,-4,0,11,15,1,0,4,20,3),ci(0,7,8,-4,0,12,17,2,0,5,22,4),ci(0,7,8,-4,0,13,19,2,0,5,24,4),ci(0,7,9,-4,0,14,21,2,0,5,26,4),ci(0,8,9,-5,0,15,22,2,0,6,28,5),ci(0,8,10,-5,0,16,24,2,0,6,30,5),ci(0,8,11,-5,0,17,26,2,0,6,32,5),ci(0,9,11,-5,0,18,28,2,0,7,34,6),ci(0,9,12,-6,0,19,29,2,0,7,36,6),ci(0,10,13,-6,0,20,31,3,0,8,38,7),ci(0,10,13,-6,0,21,33,3,0,8,40,7),ci(0,10,14,-6,0,22,35,3,0,8,42,7),ci(0,11,14,-7,0,23,36,3,0,9,44,8),ci(0,11,15,-7,0,24,38,3,0,9,46,8)],di={borderRadius:4};function pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function hi(e,t){if(e){if("string"==typeof e)return pi(e,t);var n={}.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)?pi(e,t):void 0}}function fi(e){return function(e){if(Array.isArray(e))return pi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hi(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 mi(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 i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(s.push(i.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)||hi(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 gi(){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),i=0;i<e;i++)n[i]=arguments[i];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 vi={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)"},yi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bi(e){return"".concat(Math.round(e),"ms")}var xi={easing:vi,duration:yi,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,i=void 0===n?yi.standard:n,o=t.easing,r=void 0===o?vi.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Xn(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof i?i:bi(i)," ").concat(r," ").concat("string"==typeof s?s:bi(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))}},Si={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ci(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,o=void 0===i?{}:i,r=e.palette,a=void 0===r?{}:r,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Xn(e,["breakpoints","mixins","palette","spacing","typography"]),d=ii(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,o=void 0===i?"px":i,r=e.step,a=void 0===r?5:r,s=Xn(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 i=Yn.indexOf(t);return i===Yn.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==i&&"number"==typeof n[Yn[i+1]]?n[Yn[i+1]]:t)-a/100).concat(o,")")}return jn({keys:Yn,values:n,up:l,down:function(e){var t=Yn.indexOf(e)+1,i=n[Yn[t]];return t===Yn.length?l("xs"):"@media (max-width:".concat(("number"==typeof i&&t>0?i:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=gi(s),f=$n({breakpoints:p,direction:"ltr",mixins:Qn(p,h,o),overrides:{},palette:d,props:{},shadows:ui,typography:li(d,c),spacing:h,shape:di,transitions:xi,zIndex:Si},u),m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return f=g.reduce((function(e,t){return $n(e,t)}),f)}var wi="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Ei=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ki(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,o=void 0===i?"jss":i,r=e.seed,a=void 0===r?"":r,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ei.indexOf(e.key))return"Mui-".concat(e.key);var r="".concat(s).concat(i,"-").concat(e.key);return t.options.theme[wi]&&""===a?"".concat(r,"-").concat(c()):r}return"".concat(s).concat(o).concat(c())}}function Ri(e){var t=e.theme,n=e.name,i=e.props;if(!t||!t.props||!t.props[n])return i;var o,r=t.props[n];for(o in r)void 0===i[o]&&(i[o]=r[o]);return i}var Ti="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="object"===("undefined"==typeof window?"undefined":Ti(window))&&"object"===("undefined"==typeof document?"undefined":Ti(document))&&9===document.nodeType;function Di(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Hn(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pi(e,t){return Pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pi(e,t)}function Ii(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pi(e,t)}function Mi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ni={}.constructor;function Oi(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Oi);if(e.constructor!==Ni)return e;var t={};for(var n in e)t[n]=Oi(e[n]);return t}function Li(e,t,n){void 0===e&&(e="unnamed");var i=n.jss,o=Oi(t),r=i.plugins.onCreateRule(e,o,n);return r||(e[0],null)}var Ai=function(e,t){for(var n="",i=0;i<e.length&&"!important"!==e[i];i++)n&&(n+=t),n+=e[i];return n},zi=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+=Ai(e[n]," ");else t=Ai(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function ji(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Fi(e,t){for(var n="",i=0;i<t;i++)n+=" ";return n+e}function _i(e,t,n){void 0===n&&(n={});var i="";if(!t)return i;var o=n.indent,r=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(r=-1/0);var s=ji(n),l=s.linebreak,c=s.space;if(e&&r++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var h=d[p];null!=h&&(i&&(i+=l),i+=Fi(p+":"+c+zi(h)+";",r))}}else for(var f in a){var m=a[f];null!=m&&(i&&(i+=l),i+=Fi(f+":"+c+zi(m)+";",r))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(i&&(i+=l),i+=Fi(g+":"+c+zi(v)+";",r))}return(i||n.allowEmpty)&&e?(i&&(i=""+l+i+l),Fi(""+e+c+"{"+i,--r)+Fi("}",r)):i}var $i=/([[\].#*$><+~=|^:(),"'`\s])/g,Hi="undefined"!=typeof CSS&&CSS.escape,Vi=function(e){return Hi?Hi(e):e.replace($i,"\\$1")},Wi=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var i=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,i?this.renderer=i.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var i=!!n&&n.force;if(!i&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var r=null==o||!1===o,a=e in this.style;if(r&&!a&&!i)return this;var s=r&&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}(),Ui=function(e){function t(t,n,i){var o;o=e.call(this,t,n,i)||this;var r=i.selector,a=i.scoped,s=i.sheet,l=i.generateId;return r?o.selectorText=r:!1!==a&&(o.id=l(Mi(Mi(o)),s),o.selectorText="."+Vi(o.id)),o}Ii(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var i in n)t.setProperty(e,i,n[i])}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]=zi(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?jn({},e,{allowEmpty:!0}):e;return _i(this.selectorText,this.style,n)},Di(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}(Wi),Bi={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ui(e,t,n)}},Gi={indent:1,children:!0},Ki=/@([\w-]+)/,Ji=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(Ki);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new xo(jn({},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 i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(e,t,n){var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(e){void 0===e&&(e=Gi);var t=ji(e).linebreak;if(null==e.indent&&(e.indent=Gi.indent),null==e.children&&(e.children=Gi.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Zi=/@container|@media|@supports\s+/,Xi={onCreateRule:function(e,t,n){return Zi.test(e)?new Ji(e,t,n):null}},Yi={indent:1,children:!0},Qi=/@keyframes\s+([\w-]+)/,eo=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(Qi);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,r=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Vi(a(this,r)),this.rules=new xo(jn({},n,{parent:this})),t)this.rules.add(s,t[s],jn({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Yi);var t=ji(e).linebreak;if(null==e.indent&&(e.indent=Yi.indent),null==e.children&&(e.children=Yi.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}(),to=/@keyframes\s+/,no=/\$([\w-]+)/g,io=function(e,t){return"string"==typeof e?e.replace(no,(function(e,n){return n in t?t[n]:e})):e},oo=function(e,t,n){var i=e[t],o=io(i,n);o!==i&&(e[t]=o)},ro={onCreateRule:function(e,t,n){return"string"==typeof e&&to.test(e)?new eo(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&oo(e,"animation-name",n.keyframes),"animation"in e&&oo(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var i=n.options.sheet;if(!i)return e;switch(t){case"animation":case"animation-name":return io(e,i.keyframes);default:return e}}},ao=function(e){function t(){return e.apply(this,arguments)||this}return Ii(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?jn({},e,{allowEmpty:!0}):e;return _i(this.key,this.style,n)},t}(Wi),so={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ao(e,t,n):null}},lo=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=ji(e).linebreak;if(Array.isArray(this.style)){for(var n="",i=0;i<this.style.length;i++)n+=_i(this.at,this.style[i]),this.style[i+1]&&(n+=t);return n}return _i(this.at,this.style,e)},e}(),co=/@font-face/,uo={onCreateRule:function(e,t,n){return co.test(e)?new lo(e,t,n):null}},po=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 _i(this.key,this.style,e)},e}(),ho={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new po(e,t,n):null}},fo=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}(),mo={"@charset":!0,"@import":!0,"@namespace":!0},go={onCreateRule:function(e,t,n){return e in mo?new fo(e,t,n):null}},vo=[Bi,Xi,ro,so,uo,ho,go],yo={process:!0},bo={force:!0,process:!0},xo=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 i=this.options,o=i.parent,r=i.sheet,a=i.jss,s=i.Renderer,l=i.generateId,c=i.scoped,u=jn({classes:this.classes,parent:o,sheet:r,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="."+Vi(this.classes[d]));var p=Li(d,t,u);if(!p)return null;this.register(p);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var i=this.get(e),o=this.index.indexOf(i);i&&this.remove(i);var r=n;return-1!==o&&(r=jn({},n,{index:o})),this.add(e,t,r)},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 Ui?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof eo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ui?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof eo&&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 i=0;i<this.index.length;i++)this.updateOne(this.index[i],t,n)},t.updateOne=function(t,n,i){void 0===i&&(i=yo);var o=this.options,r=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,i);else{var s=t.style;if(r.onUpdate(n,t,a,i),i.process&&s&&s!==t.style){for(var l in r.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,bo)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,bo)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,i=!!n&&n.options.link,o=ji(e).linebreak,r=0;r<this.index.length;r++){var a=this.index[r].toString(e);(a||i)&&(t&&(t+=o),t+=a)}return t},e}(),So=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=jn({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new xo(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 i=this.queue;this.attached&&!i&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(i?i.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 i=this.rules.get(e);if(!i)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?i.renderable&&this.renderer.replaceRule(i.renderable,o):this.renderer.deleteRule(i)),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 i in e){var o=this.addRule(i,e[i],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}(),Co=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var i=0;i<this.registry.onCreateRule.length;i++){var o=this.registry.onCreateRule[i](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 i=0;i<this.registry.onProcessStyle.length;i++)t.style=this.registry.onProcessStyle[i](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,i){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,i)},t.onChangeValue=function(e,t,n){for(var i=e,o=0;o<this.registry.onChangeValue.length;o++)i=this.registry.onChangeValue[o](i,t,n);return i},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}(),wo=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 i=0;i<t.length;i++)if(t[i].options.index>n)return void t.splice(i,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,i=Zn(t,["attached"]),o=ji(i).linebreak,r="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(r&&(r+=o),r+=s.toString(i))}return r},Di(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Eo=new wo,ko="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Ro="2f1acc6c3a606b082e5eef5e54414ffb";null==ko[Ro]&&(ko[Ro]=0);var To=ko[Ro]++,qo=function(e){void 0===e&&(e={});var t=0;return function(n,i){t+=1;var o="",r="";return i&&(i.options.classNamePrefix&&(r=i.options.classNamePrefix),null!=i.options.jss.id&&(o=String(i.options.jss.id))),e.minify?""+(r||"c")+To+o+t:r+n.key+"-"+To+(o?"-"+o:"")+"-"+t}},Do=function(e){var t;return function(){return t||(t=e()),t}},Po=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Io=function(e,t,n){try{var i=n;if(Array.isArray(n)&&(i=zi(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,i);else{var o=i?i.indexOf("!important"):-1,r=o>-1?i.substr(0,o-1):i;e.style.setProperty(t,r,o>-1?"important":"")}}catch(e){return!1}return!0},Mo=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},No=function(e,t){return e.selectorText=t,e.selectorText===t},Oo=Do((function(){return document.querySelector("head")}));function Lo(e){var t=Eo.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.attached&&i.options.index>t.index&&i.options.insertionPoint===t.insertionPoint)return i}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 i=e[n];if(i.attached&&i.options.insertionPoint===t.insertionPoint)return i}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var i=e.insertionPoint;if(i&&"string"==typeof i){var o=function(e){for(var t=Oo(),n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];if(8===i.nodeType&&i.nodeValue.trim()===e)return i}return null}(i);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ao=Do((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),zo=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]},jo=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Fo=function(){function e(e){this.getPropertyValue=Po,this.setProperty=Io,this.removeProperty=Mo,this.setSelector=No,this.hasInsertedRules=!1,this.cssRules=[],e&&Eo.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,i=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),i&&this.element.setAttribute("data-meta",i);var r=Ao();r&&this.element.setAttribute("nonce",r)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,i=Lo(t);if(!1!==i&&i.parent)i.parent.insertBefore(e,i.node);else if(n&&"number"==typeof n.nodeType){var o=n,r=o.parentNode;r&&r.insertBefore(e,o.nextSibling)}else Oo().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 i=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var r=jo(n,t);if(!1===(o=zo(n,i.toString({children:!1}),r)))return!1;this.refCssRule(e,r,o)}return this.insertRules(i.rules,o),o}var a=e.toString();if(!a)return!1;var s=jo(n,t),l=zo(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 So&&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}(),_o=0,$o=function(){function e(e){this.id=_o++,this.version="10.10.0",this.plugins=new Co,this.options={id:{minify:!1},createGenerateId:qo,Renderer:qi?Fo:null,plugins:[]},this.generateId=qo({minify:!1});for(var t=0;t<vo.length;t++)this.plugins.use(vo[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=jn({},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===Eo.index?0:Eo.index+1);var i=new So(e,jn({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(i),i},t.removeStyleSheet=function(e){return e.detach(),Eo.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 i=jn({},n,{name:e,jss:this,Renderer:this.options.Renderer});i.generateId||(i.generateId=this.generateId),i.classes||(i.classes={}),i.keyframes||(i.keyframes={});var o=Li(e,t,i);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ho=function(e){return new $o(e)},Vo="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Wo(e){var t=null;for(var n in e){var i=e[n],o=typeof i;if("function"===o)t||(t={}),t[n]=i;else if("object"===o&&null!==i&&!Array.isArray(i)){var r=Wo(i);r&&(t||(t={}),t[n]=r)}}return t}
8
- /**
9
- * A better abstraction over CSS.
10
- *
11
- * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
12
- * @website https://github.com/cssinjs/jss
13
- * @license MIT
14
- */Ho();var Uo=Date.now(),Bo="fnValues"+Uo,Go="fnStyle"+ ++Uo,Ko="@global",Jo="@global ",Zo=function(){function e(e,t,n){for(var i in this.type="global",this.at=Ko,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new xo(jn({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.replaceRule=function(e,t,n){var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Xo=function(){function e(e,t,n){this.type="global",this.at=Ko,this.isProcessed=!1,this.key=e,this.options=n;var i=e.substr(8);this.rule=n.jss.createRule(i,t,jn({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Yo=/\s*,\s*/g;function Qo(e,t){for(var n=e.split(Yo),i="",o=0;o<n.length;o++)i+=t+" "+n[o].trim(),n[o+1]&&(i+=", ");return i}function er(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ko)return new Zo(e,t,n);if("@"===e[0]&&e.substr(0,8)===Jo)return new Xo(e,t,n);var i=n.parent;return i&&("global"===i.type||i.options.parent&&"global"===i.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,i=e.style,o=i?i[Ko]:null;if(o){for(var r in o)t.addRule(r,o[r],jn({},n,{selector:Qo(r,e.selector)}));delete i[Ko]}}(e,t),function(e,t){var n=e.options,i=e.style;for(var o in i)if("@"===o[0]&&o.substr(0,7)===Ko){var r=Qo(o.substr(7),e.selector);t.addRule(r,i[o],jn({},n,{selector:r})),delete i[o]}}(e,t))}}}var tr=/\s*,\s*/g,nr=/&/g,ir=/\$([\w-]+)/g;function or(){function e(e,t){return function(n,i){var o=e.getRule(i)||t&&t.getRule(i);return o?o.selector:i}}function t(e,t){for(var n=t.split(tr),i=e.split(tr),o="",r=0;r<n.length;r++)for(var a=n[r],s=0;s<i.length;s++){var l=i[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(nr,a):a+" "+l}return o}function n(e,t,n){if(n)return jn({},n,{index:n.index+1});var i=e.options.nestingLevel;i=void 0===i?1:i+1;var o=jn({},e.options,{nestingLevel:i,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(i,o,r){if("style"!==o.type)return i;var a,s,l=o,c=l.options.parent;for(var u in i){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var h=t(u,l.selector);s||(s=e(c,r)),h=h.replace(ir,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,i[u],jn({},a,{selector:h})):c.addRule(f,i[u],jn({},a,{selector:h}))}else p&&c.addRule(u,{},a).addRule(l.key,i[u],{selector:l.selector});delete i[u]}}return i}}}var rr=/[A-Z]/g,ar=/^ms-/,sr={};function lr(e){return"-"+e.toLowerCase()}function cr(e){if(sr.hasOwnProperty(e))return sr[e];var t=e.replace(rr,lr);return sr[e]=ar.test(t)?"-"+t:t}function ur(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:cr(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ur):t.fallbacks=ur(e.fallbacks)),t}var dr=Vo&&CSS?CSS.px:"px",pr=Vo&&CSS?CSS.ms:"ms",hr=Vo&&CSS?CSS.percent:"%";function fr(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},i={};for(var o in e)i[o]=e[o],i[o.replace(t,n)]=e[o];return i}var mr=fr({"animation-delay":pr,"animation-duration":pr,"background-position":dr,"background-position-x":dr,"background-position-y":dr,"background-size":dr,border:dr,"border-bottom":dr,"border-bottom-left-radius":dr,"border-bottom-right-radius":dr,"border-bottom-width":dr,"border-left":dr,"border-left-width":dr,"border-radius":dr,"border-right":dr,"border-right-width":dr,"border-top":dr,"border-top-left-radius":dr,"border-top-right-radius":dr,"border-top-width":dr,"border-width":dr,"border-block":dr,"border-block-end":dr,"border-block-end-width":dr,"border-block-start":dr,"border-block-start-width":dr,"border-block-width":dr,"border-inline":dr,"border-inline-end":dr,"border-inline-end-width":dr,"border-inline-start":dr,"border-inline-start-width":dr,"border-inline-width":dr,"border-start-start-radius":dr,"border-start-end-radius":dr,"border-end-start-radius":dr,"border-end-end-radius":dr,margin:dr,"margin-bottom":dr,"margin-left":dr,"margin-right":dr,"margin-top":dr,"margin-block":dr,"margin-block-end":dr,"margin-block-start":dr,"margin-inline":dr,"margin-inline-end":dr,"margin-inline-start":dr,padding:dr,"padding-bottom":dr,"padding-left":dr,"padding-right":dr,"padding-top":dr,"padding-block":dr,"padding-block-end":dr,"padding-block-start":dr,"padding-inline":dr,"padding-inline-end":dr,"padding-inline-start":dr,"mask-position-x":dr,"mask-position-y":dr,"mask-size":dr,height:dr,width:dr,"min-height":dr,"max-height":dr,"min-width":dr,"max-width":dr,bottom:dr,left:dr,top:dr,right:dr,inset:dr,"inset-block":dr,"inset-block-end":dr,"inset-block-start":dr,"inset-inline":dr,"inset-inline-end":dr,"inset-inline-start":dr,"box-shadow":dr,"text-shadow":dr,"column-gap":dr,"column-rule":dr,"column-rule-width":dr,"column-width":dr,"font-size":dr,"font-size-delta":dr,"letter-spacing":dr,"text-decoration-thickness":dr,"text-indent":dr,"text-stroke":dr,"text-stroke-width":dr,"word-spacing":dr,motion:dr,"motion-offset":dr,outline:dr,"outline-offset":dr,"outline-width":dr,perspective:dr,"perspective-origin-x":hr,"perspective-origin-y":hr,"transform-origin":hr,"transform-origin-x":hr,"transform-origin-y":hr,"transform-origin-z":hr,"transition-delay":pr,"transition-duration":pr,"vertical-align":dr,"flex-basis":dr,"shape-margin":dr,size:dr,gap:dr,grid:dr,"grid-gap":dr,"row-gap":dr,"grid-row-gap":dr,"grid-column-gap":dr,"grid-template-rows":dr,"grid-template-columns":dr,"grid-auto-rows":dr,"grid-auto-columns":dr,"box-shadow-x":dr,"box-shadow-y":dr,"box-shadow-blur":dr,"box-shadow-spread":dr,"font-line-height":dr,"text-shadow-x":dr,"text-shadow-y":dr,"text-shadow-blur":dr});function gr(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]=gr(e,t[i],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=gr(o,t[o],n);else for(var r in t)t[r]=gr(e+"-"+r,t[r],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||mr[e];return!a||0===t&&a===dr?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function vr(e){void 0===e&&(e={});var t=fr(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var i in e)e[i]=gr(i,e[i],t);return e},onChangeValue:function(e,n){return gr(n,e,t)}}}var yr="",br="",xr="",Sr="",Cr=qi&&"ontouchstart"in document.documentElement;if(qi){var wr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Er=document.createElement("p").style;for(var kr in wr)if(kr+"Transform"in Er){yr=kr,br=wr[kr];break}"Webkit"===yr&&"msHyphens"in Er&&(yr="ms",br=wr.ms,Sr="edge"),"Webkit"===yr&&"-apple-trailing-word"in Er&&(xr="apple")}var Rr=yr,Tr=br,qr=xr,Dr=Sr,Pr=Cr;var Ir={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Rr?"-webkit-"+e:Tr+e)}},Mr={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Rr?Tr+"print-"+e:e)}},Nr=/[-\s]+(.)?/g;function Or(e,t){return t?t.toUpperCase():""}function Lr(e){return e.replace(Nr,Or)}function Ar(e){return Lr("-"+e)}var zr,jr={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Rr){var n="mask-image";if(Lr(n)in t)return e;if(Rr+Ar(n)in t)return Tr+e}return e}},Fr={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==qr||Pr?e:Tr+e)}},_r={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Tr+e)}},$r={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Tr+e)}},Hr={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Rr||"ms"===Rr&&"edge"!==Dr?Tr+e:e)}},Vr={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Rr||"ms"===Rr||"apple"===qr?Tr+e:e)}},Wr={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Rr?"WebkitColumn"+Ar(e)in t&&Tr+"column-"+e:"Moz"===Rr&&("page"+Ar(e)in t&&"page-"+e))}},Ur={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Rr)return e;var n=e.replace("-inline","");return Rr+Ar(n)in t&&Tr+n}},Br={supportedProperty:function(e,t){return Lr(e)in t&&e}},Gr={supportedProperty:function(e,t){var n=Ar(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Rr+n in t?Tr+e:"Webkit"!==Rr&&"Webkit"+n in t&&"-webkit-"+e}},Kr={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Rr?""+Tr+e:e)}},Jr={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Rr?Tr+"scroll-chaining":e)}},Zr={"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"},Xr={supportedProperty:function(e,t){var n=Zr[e];return!!n&&(Rr+Ar(n)in t&&Tr+n)}},Yr={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"},Qr=Object.keys(Yr),ea=function(e){return Tr+e},ta={supportedProperty:function(e,t,n){var i=n.multiple;if(Qr.indexOf(e)>-1){var o=Yr[e];if(!Array.isArray(o))return Rr+Ar(o)in t&&Tr+o;if(!i)return!1;for(var r=0;r<o.length;r++)if(!(Rr+Ar(o[0])in t))return!1;return o.map(ea)}return!1}},na=[Ir,Mr,jr,Fr,_r,$r,Hr,Vr,Wr,Ur,Br,Gr,Kr,Jr,Xr,ta],ia=na.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),oa=na.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,fi(t.noPrefill)),e}),[]),ra={};if(qi){zr=document.createElement("p");var aa=window.getComputedStyle(document.documentElement,"");for(var sa in aa)isNaN(sa)||(ra[aa[sa]]=aa[sa]);oa.forEach((function(e){return delete ra[e]}))}function la(e,t){if(void 0===t&&(t={}),!zr)return e;if(null!=ra[e])return ra[e];"transition"!==e&&"transform"!==e||(t[e]=e in zr.style);for(var n=0;n<ia.length&&(ra[e]=ia[n](e,zr.style,t),!ra[e]);n++);try{zr.style[e]=""}catch(e){return!1}return ra[e]}var ca,ua={},da={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},pa=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ha(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var i=t?la(t):", "+la(n);return i||(t||n)}function fa(e,t){var n=t;if(!ca||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var i=e+n;if(null!=ua[i])return ua[i];try{ca.style[e]=n}catch(e){return ua[i]=!1,!1}if(da[e])n=n.replace(pa,ha);else if(""===ca.style[e]&&("-ms-flex"===(n=Tr+n)&&(ca.style[e]="-ms-flexbox"),ca.style[e]=n,""===ca.style[e]))return ua[i]=!1,!1;return ca.style[e]="",ua[i]=n,ua[i]}function ma(){function e(t){for(var n in t){var i=t[n];if("fallbacks"===n&&Array.isArray(i))t[n]=i.map(e);else{var o=!1,r=la(n);r&&r!==n&&(o=!0);var a=!1,s=fa(r,zi(i));s&&s!==i&&(a=!0),(o||a)&&(o&&delete t[n],t[r||n]=s||i)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Rr?e:"@"+Tr+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return fa(t,zi(e))||e}}}function ga(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var i=Li(e,{},n);return i[Go]=t,i},onProcessStyle:function(e,t){if(Bo in t||Go in t)return e;var n={};for(var i in e){var o=e[i];"function"==typeof o&&(delete e[i],n[i]=o)}return t[Bo]=n,e},onUpdate:function(e,t,n,i){var o=t,r=o[Go];r&&(o.style=r(e)||{});var a=o[Bo];if(a)for(var s in a)o.prop(s,a[s](e),i)}},er(),or(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ur(e[t]);return e}return ur(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var i=cr(t);return t===i?e:(n.prop(i,e),null)}},vr(),"undefined"==typeof window?null:ma(),(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 i={},o=Object.keys(t).sort(e),r=0;r<o.length;r++)i[o[r]]=t[o[r]];return i}})]};var e}function va(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var i=jn({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}qi&&(ca=document.createElement("p"));var ya=function(e,t,n,i){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,i)},ba=function(e,t,n){var i=e.get(t);return i?i.get(n):void 0},xa=function(e,t,n){e.get(t).delete(n)},Sa=v.createContext(null);function Ca(){return v.useContext(Sa)}var wa,Ea=Ho(ga()),ka={disableGeneration:!1,generateClassName:ki(),jss:Ea,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Ra=v.createContext(ka);function Ta(e){var t=e.children,n=e.injectFirst,i=void 0!==n&&n,o=e.disableGeneration,r=void 0!==o&&o,a=Xn(e,["children","injectFirst","disableGeneration"]),s=jn({},v.useContext(Ra),{disableGeneration:r},a);if(!s.jss.options.insertionPoint&&i&&"undefined"!=typeof window){if(!wa){var l=document.head;wa=document.createComment("mui-inject-first"),l.insertBefore(wa,l.firstChild)}s.jss=Ho({plugins:ga().plugins,insertionPoint:wa})}return v.createElement(Ra.Provider,{value:s},t)}var qa=-1e9;var Da={};function Pa(e,t){var n=e.state,i=e.theme,o=e.stylesOptions,r=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ba(o.sheetsManager,r,i);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ya(o.sheetsManager,r,i,s));var l=jn({},r.options,o,{theme:i,flip:"boolean"==typeof o.flip?o.flip:"rtl"===i.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=ba(o.sheetsCache,r,i));var d=r.create(i,a);u||((u=o.jss.createStyleSheet(d,jn({link:!1},l))).attach(),o.sheetsCache&&ya(o.sheetsCache,r,i,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Wo(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,jn({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=va({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Ia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,o=t.Component,r=t.defaultTheme,a=void 0===r?Da:r,s=Xn(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,i){var o;try{o=t?e(n):e}catch(e){throw e}if(!i||!n.overrides||!n.overrides[i])return o;var r=n.overrides[i],a=jn({},o);return Object.keys(r).forEach((function(e){a[e]=$n(a[e],r[e])})),a},options:{}}}(e),c=n||i||"makeStyles";l.options={index:qa+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ca()||a,i=jn({},v.useContext(Ra),s),r=v.useRef(),c=v.useRef();!function(e,t){var n,i=v.useRef([]),o=v.useMemo((function(){return{}}),t);i.current!==o&&(i.current=o,n=e()),v.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:i,theme:t};return Pa(o,e),c.current=!1,r.current=o,function(){!function(e){var t=e.state,n=e.theme,i=e.stylesOptions,o=e.stylesCreator;if(!i.disableGeneration){var r=ba(i.sheetsManager,o,n);r.refs-=1;var a=i.sheetsRegistry;0===r.refs&&(xa(i.sheetsManager,o,n),i.jss.removeStyleSheet(r.staticSheet),a&&a.remove(r.staticSheet)),t.dynamicSheet&&(i.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),v.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(r.current,e),c.current=!0}));var u=function(e,t,n){var i=e.state;if(e.stylesOptions.disableGeneration)return t||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,o=!0),t!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=t,o=!0),o&&(i.cacheClasses.value=va({baseClasses:i.cacheClasses.lastJSS,newClasses:t,Component:n})),i.cacheClasses.value}(r.current,e.classes,o);return u}}function Ma(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ma(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function Na(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Ma(e))&&(i&&(i+=" "),i+=t);return i}var Oa={exports:{}},La={},Aa="function"==typeof Symbol&&Symbol.for,za=Aa?Symbol.for("react.element"):60103,ja=Aa?Symbol.for("react.portal"):60106,Fa=Aa?Symbol.for("react.fragment"):60107,_a=Aa?Symbol.for("react.strict_mode"):60108,$a=Aa?Symbol.for("react.profiler"):60114,Ha=Aa?Symbol.for("react.provider"):60109,Va=Aa?Symbol.for("react.context"):60110,Wa=Aa?Symbol.for("react.async_mode"):60111,Ua=Aa?Symbol.for("react.concurrent_mode"):60111,Ba=Aa?Symbol.for("react.forward_ref"):60112,Ga=Aa?Symbol.for("react.suspense"):60113,Ka=Aa?Symbol.for("react.suspense_list"):60120,Ja=Aa?Symbol.for("react.memo"):60115,Za=Aa?Symbol.for("react.lazy"):60116,Xa=Aa?Symbol.for("react.block"):60121,Ya=Aa?Symbol.for("react.fundamental"):60117,Qa=Aa?Symbol.for("react.responder"):60118,es=Aa?Symbol.for("react.scope"):60119;function ts(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case za:switch(e=e.type){case Wa:case Ua:case Fa:case $a:case _a:case Ga:return e;default:switch(e=e&&e.$$typeof){case Va:case Ba:case Za:case Ja:case Ha:return e;default:return t}}case ja:return t}}}function ns(e){return ts(e)===Ua}La.AsyncMode=Wa,La.ConcurrentMode=Ua,La.ContextConsumer=Va,La.ContextProvider=Ha,La.Element=za,La.ForwardRef=Ba,La.Fragment=Fa,La.Lazy=Za,La.Memo=Ja,La.Portal=ja,La.Profiler=$a,La.StrictMode=_a,La.Suspense=Ga,La.isAsyncMode=function(e){return ns(e)||ts(e)===Wa},La.isConcurrentMode=ns,La.isContextConsumer=function(e){return ts(e)===Va},La.isContextProvider=function(e){return ts(e)===Ha},La.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===za},La.isForwardRef=function(e){return ts(e)===Ba},La.isFragment=function(e){return ts(e)===Fa},La.isLazy=function(e){return ts(e)===Za},La.isMemo=function(e){return ts(e)===Ja},La.isPortal=function(e){return ts(e)===ja},La.isProfiler=function(e){return ts(e)===$a},La.isStrictMode=function(e){return ts(e)===_a},La.isSuspense=function(e){return ts(e)===Ga},La.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fa||e===Ua||e===$a||e===_a||e===Ga||e===Ka||"object"==typeof e&&null!==e&&(e.$$typeof===Za||e.$$typeof===Ja||e.$$typeof===Ha||e.$$typeof===Va||e.$$typeof===Ba||e.$$typeof===Ya||e.$$typeof===Qa||e.$$typeof===es||e.$$typeof===Xa)},La.typeOf=ts,Oa.exports=La;var is=Oa.exports,os={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rs={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},as={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ss={};function ls(e){return is.isMemo(e)?as:ss[e.$$typeof]||os}ss[is.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ss[is.Memo]=as;var cs=Object.defineProperty,us=Object.getOwnPropertyNames,ds=Object.getOwnPropertySymbols,ps=Object.getOwnPropertyDescriptor,hs=Object.getPrototypeOf,fs=Object.prototype;var ms=function e(t,n,i){if("string"!=typeof n){if(fs){var o=hs(n);o&&o!==fs&&e(t,o,i)}var r=us(n);ds&&(r=r.concat(ds(n)));for(var a=ls(t),s=ls(n),l=0;l<r.length;++l){var c=r[l];if(!(rs[c]||i&&i[c]||s&&s[c]||a&&a[c])){var u=ps(n,c);try{cs(t,c,u)}catch(e){}}}}return t},gs=Y(ms);function vs(e){return function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.name,r=Xn(i,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(jn({theme:e},n))}}}:{root:t},l=Ia(s,jn({Component:e,name:o||e.displayName,classNamePrefix:a},r));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=v.forwardRef((function(t,i){var o,r,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=Xn(t,["children","className","clone","component"]),h=Na(l(t).root,c),f=p;if(n&&(o=f,r=n,a={},Object.keys(o).forEach((function(e){-1===r.indexOf(e)&&(a[e]=o[e])})),f=a),u)return v.cloneElement(s,jn({className:Na(s.props.className,h)},f));if("function"==typeof s)return s(jn({className:h},f));var m=d||e;return v.createElement(m,jn({ref:i,className:h},f),s)}));return gs(c,e),c}}function ys(e){var t=e.children,n=e.theme,i=Ca(),o=v.useMemo((function(){var e=null===i?n:function(e,t){return"function"==typeof t?t(e):jn({},e,t)}(i,n);return null!=e&&(e[wi]=null!==i),e}),[n,i]);return v.createElement(Sa.Provider,{value:o},t)}var bs=Ci(),xs=function(e){var t=vs(e);return function(e,n){return t(e,jn({defaultTheme:bs},n))}};function Ss(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,o=t.withTheme,r=void 0!==o&&o,a=t.name,s=Xn(t,["defaultTheme","withTheme","name"]),l=a,c=Ia(e,jn({defaultTheme:i,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=v.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Xn(e,["classes","innerRef"]),u=c(jn({},n.defaultProps,e)),d=l;return("string"==typeof a||r)&&(o=Ca()||i,a&&(d=Ri({theme:o,name:a,props:l})),r&&!d.theme&&(d.theme=o)),v.createElement(n,jn({ref:s||t,classes:u},d))}));return gs(u,n),u}}(e,jn({defaultTheme:bs},t))}function Cs(e){if("string"!=typeof e)throw new Error(Wn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ws(){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,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];e.apply(this,i),t.apply(this,i)}}),(function(){}))}function Es(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Es(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function ks(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Es(e))&&(i&&(i+=" "),i+=t);return i}function Rs(e){return e&&e.ownerDocument||document}function Ts(e){return Rs(e).defaultView||window}function qs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ds="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Ps(e){var t=y.useRef(e);return Ds((function(){t.current=e})),y.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Is(e,t){return y.useMemo((function(){return null==e&&null==t?null:function(n){qs(e,n),qs(t,n)}}),[e,t])}var Ms=!0,Ns=!1,Os=null,Ls={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 As(e){e.metaKey||e.altKey||e.ctrlKey||(Ms=!0)}function zs(){Ms=!1}function js(){"hidden"===this.visibilityState&&Ns&&(Ms=!0)}function Fs(e){var t,n,i,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return Ms||(n=(t=o).type,!("INPUT"!==(i=t.tagName)||!Ls[n]||t.readOnly)||"TEXTAREA"===i&&!t.readOnly||!!t.isContentEditable)}function _s(){Ns=!0,window.clearTimeout(Os),Os=window.setTimeout((function(){Ns=!1}),100)}function $s(){return{isFocusVisible:Fs,onBlurVisible:_s,ref:y.useCallback((function(e){var t,n=C.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",As,!0),t.addEventListener("mousedown",zs,!0),t.addEventListener("pointerdown",zs,!0),t.addEventListener("touchstart",zs,!0),t.addEventListener("visibilitychange",js,!0))}),[])}}var Hs=!1,Vs=v.createContext(null),Ws="unmounted",Us="exited",Bs="entering",Gs="entered",Ks="exiting",Js=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var o,r=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o=Us,i.appearStatus=Bs):o=Gs:o=t.unmountOnExit||t.mountOnEnter?Ws:Us,i.state={status:o},i.nextCallback=null,i}Ii(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ws?{status:Us}: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!==Bs&&n!==Gs&&(t=Bs):n!==Bs&&n!==Gs||(t=Ks)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.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===Bs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Us&&this.setState({status:Ws})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[w.findDOMNode(this),i],r=o[0],a=o[1],s=this.getTimeouts(),l=i?s.appear:s.enter;!e&&!n||Hs?this.safeSetState({status:Gs},(function(){t.props.onEntered(r)})):(this.props.onEnter(r,a),this.safeSetState({status:Bs},(function(){t.props.onEntering(r,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Gs},(function(){t.props.onEntered(r,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:w.findDOMNode(this);t&&!Hs?(this.props.onExit(i),this.safeSetState({status:Ks},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Us},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:Us},(function(){e.props.onExited(i)}))},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(i){n&&(n=!1,t.nextCallback=null,e(i))},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:w.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=o[0],a=o[1];this.props.addEndListener(r,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ws)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 i=Zn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Vs.Provider,{value:null},"function"==typeof n?n(e,i):v.cloneElement(v.Children.only(n),i))},t}(v.Component);function Zs(){}function Xs(e,t){var n=Object.create(null);return e&&S.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b(e)?t(e):e}(e)})),n}function Ys(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Qs(e,t,n){var i=Xs(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,o=Object.create(null),r=[];for(var a in e)a in t?r.length&&(o[a]=r,r=[]):r.push(a);var s={};for(var l in t){if(o[l])for(i=0;i<o[l].length;i++){var c=o[l][i];s[o[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<r.length;i++)s[r[i]]=n(r[i]);return s}(t,i);return Object.keys(o).forEach((function(r){var a=o[r];if(b(a)){var s=r in t,l=r in i,c=t[r],u=b(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&b(c)&&(o[r]=x(a,{onExited:n.bind(null,a),in:c.props.in,exit:Ys(a,"exit",e),enter:Ys(a,"enter",e)})):o[r]=x(a,{in:!1}):o[r]=x(a,{onExited:n.bind(null,a),in:!0,exit:Ys(a,"exit",e),enter:Ys(a,"enter",e)})}})),o}Js.contextType=Vs,Js.propTypes={},Js.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zs,onEntering:Zs,onEntered:Zs,onExit:Zs,onExiting:Zs,onExited:Zs},Js.UNMOUNTED=Ws,Js.EXITED=Us,Js.ENTERING=Bs,Js.ENTERED=Gs,Js.EXITING=Ks;var el=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},tl=function(e){function t(t,n){var i,o=(i=e.call(this,t,n)||this).handleExited.bind(Mi(i));return i.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},i}Ii(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,i,o=t.children,r=t.handleExited;return{children:t.firstRender?(n=e,i=r,Xs(n.children,(function(e){return x(e,{onExited:i.bind(null,e),in:!0,appear:Ys(e,"appear",n),enter:Ys(e,"enter",n),exit:Ys(e,"exit",n)})}))):Qs(e,o,r),firstRender:!1}},n.handleExited=function(e,t){var n=Xs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=jn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=Zn(e,["component","childFactory"]),o=this.state.contextValue,r=el(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?v.createElement(Vs.Provider,{value:o},r):v.createElement(Vs.Provider,{value:o},v.createElement(t,i,r))},t}(v.Component);tl.propTypes={},tl.defaultProps={component:"div",childFactory:function(e){return e}};function nl(e,t){var n=e.timeout,i=e.style,o=void 0===i?{}:i;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var il=y.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.component,r=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=Xn(e,["classes","className","component","square","elevation","variant"]);return y.createElement(r,jn({className:ks(n.root,i,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),ol=Ss((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),jn({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"})(il),rl="undefined"==typeof window?y.useEffect:y.useLayoutEffect;function al(e){var t=e.classes,n=e.pulsate,i=void 0!==n&&n,o=e.rippleX,r=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],h=d[1],f=ks(t.ripple,t.rippleVisible,i&&t.ripplePulsate),m={width:a,height:a,top:-a/2+r,left:-a/2+o},g=ks(t.child,p&&t.childLeaving,i&&t.childPulsate),v=Ps(c);return rl((function(){if(!s){h(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),y.createElement("span",{className:f,style:m},y.createElement("span",{className:g}))}var sl=y.forwardRef((function(e,t){var n=e.center,i=void 0!==n&&n,o=e.classes,r=e.className,a=Xn(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),h=y.useRef(null),f=y.useRef(null),m=y.useRef(null);y.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=y.useCallback((function(e){var t=e.pulsate,n=e.rippleX,i=e.rippleY,r=e.rippleSize,a=e.cb;c((function(e){return[].concat(fi(e),[y.createElement(al,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:i,rippleSize:r})])})),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,r=void 0!==o&&o,a=t.center,s=void 0===a?i||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,v,y=c?null:m.current,b=y?y.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,C=x.clientY;u=Math.round(S-b.left),d=Math.round(C-b.top)}if(s)(v=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(v+=1);else{var w=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,E=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;v=Math.sqrt(Math.pow(w,2)+Math.pow(E,2))}e.touches?null===f.current&&(f.current=function(){g({pulsate:r,rippleX:u,rippleY:d,rippleSize:v,cb:n})},h.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):g({pulsate:r,rippleX:u,rippleY:d,rippleSize:v,cb:n})}}),[i,g]),b=y.useCallback((function(){v({},{pulsate:!0})}),[v]),x=y.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(h.current=setTimeout((function(){x(e,t)})));f.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",jn({className:ks(o.root,r),ref:m},a),y.createElement(tl,{component:null,exit:!0},l))})),ll=Ss((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(sl)),cl=y.forwardRef((function(e,t){var n=e.action,i=e.buttonRef,o=e.centerRipple,r=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,h=e.disableRipple,f=void 0!==h&&h,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,E=e.onFocus,k=e.onFocusVisible,R=e.onKeyDown,T=e.onKeyUp,q=e.onMouseDown,D=e.onMouseLeave,P=e.onMouseUp,I=e.onTouchEnd,M=e.onTouchMove,N=e.onTouchStart,O=e.onDragLeave,L=e.tabIndex,A=void 0===L?0:L,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,_=Xn(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"]),$=y.useRef(null);var H=y.useRef(null),V=y.useState(!1),W=V[0],U=V[1];p&&W&&U(!1);var B=$s(),G=B.isFocusVisible,K=B.onBlurVisible,J=B.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Ps((function(i){return t&&t(i),!n&&H.current&&H.current[e](i),!0}))}y.useImperativeHandle(n,(function(){return{focusVisible:function(){U(!0),$.current.focus()}}}),[]),y.useEffect((function(){W&&b&&!f&&H.current.pulsate()}),[f,b,W]);var X=Z("start",q),Y=Z("stop",O),Q=Z("stop",P),ee=Z("stop",(function(e){W&&e.preventDefault(),D&&D(e)})),te=Z("start",N),ne=Z("stop",I),ie=Z("stop",M),oe=Z("stop",(function(e){W&&(K(e),U(!1)),S&&S(e)}),!1),re=Ps((function(e){$.current||($.current=e.currentTarget),G(e)&&(U(!0),k&&k(e)),E&&E(e)})),ae=function(){var e=C.findDOMNode($.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=y.useRef(!1),le=Ps((function(e){b&&!se.current&&W&&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(),R&&R(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),w&&w(e))})),ce=Ps((function(e){b&&" "===e.key&&H.current&&W&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),T&&T(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=F,de.disabled=p):("a"===ue&&_.href||(de.role="button"),de["aria-disabled"]=p);var pe=Is(i,t),he=Is(J,$),fe=Is(pe,he),me=y.useState(!1),ge=me[0],ve=me[1];y.useEffect((function(){ve(!0)}),[]);var ye=ge&&!f&&!p;return y.createElement(ue,jn({className:ks(s.root,l,W&&[s.focusVisible,x],p&&s.disabled),onBlur:oe,onClick:w,onFocus:re,onKeyDown:le,onKeyUp:ce,onMouseDown:X,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Y,onTouchEnd:ne,onTouchMove:ie,onTouchStart:te,ref:fe,tabIndex:p?-1:A},de,_),a,ye?y.createElement(ll,jn({ref:H,center:r},z)):null)})),ul=Ss({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"})(cl),dl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},pl=y.forwardRef((function(e,t){var n=e.align,i=void 0===n?"inherit":n,o=e.classes,r=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,h=e.noWrap,f=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,S=void 0===x?dl:x,C=Xn(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=l||(g?"p":S[b]||dl[b])||"span";return y.createElement(w,jn({className:ks(o.root,r,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(Cs(s))],f&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==i&&o["align".concat(Cs(i))],"initial"!==u&&o["display".concat(Cs(u))]),ref:t},C))})),hl=Ss((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"})(pl),fl=y.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,r=e.color,a=void 0===r?"default":r,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,h=e.disableFocusRipple,f=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,S=void 0===x?"medium":x,C=e.startIcon,w=e.type,E=void 0===w?"button":w,k=e.variant,R=void 0===k?"text":k,T=Xn(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),q=C&&y.createElement("span",{className:ks(i.startIcon,i["iconSize".concat(Cs(S))])},C),D=m&&y.createElement("span",{className:ks(i.endIcon,i["iconSize".concat(Cs(S))])},m);return y.createElement(ul,jn({className:ks(i.root,i[R],o,"inherit"===a?i.colorInherit:"default"!==a&&i["".concat(R).concat(Cs(a))],"medium"!==S&&[i["".concat(R,"Size").concat(Cs(S))],i["size".concat(Cs(S))]],p&&i.disableElevation,u&&i.disabled,b&&i.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:ks(i.focusVisible,g),ref:t,type:E},T),y.createElement("span",{className:i.label},q,n,D))})),ml=Ss((function(e){return{root:jn({},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:Jn(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:Jn(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Jn(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(Jn(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Jn(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Jn(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Jn(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"})(fl);var gl="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,vl=y.forwardRef((function(e,t){var n=e.children,i=e.container,o=e.disablePortal,r=void 0!==o&&o,a=e.onRendered,s=y.useState(null),l=s[0],c=s[1],u=Is(y.isValidElement(n)?n.ref:null,t);return gl((function(){r||c(function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(i)||document.body)}),[i,r]),gl((function(){if(l&&!r)return qs(t,l),function(){qs(t,null)}}),[t,l,r]),gl((function(){a&&(l||r)&&a()}),[a,l,r]),r?y.isValidElement(n)?y.cloneElement(n,{ref:u}):n:l?C.createPortal(n,l):l}));function yl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bl(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function xl(e,t,n){var i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(fi(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),r=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===r.indexOf(e.tagName)&&yl(e,i)}))}function Sl(e,t){var n=-1;return e.some((function(e,i){return!!t(e)&&(n=i,!0)})),n}function Cl(e,t){var n,i=[],o=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=Rs(e);return t.body===e?Ts(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){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}();i.push({value:r.style.paddingRight,key:"padding-right",el:r}),r.style["padding-right"]="".concat(bl(r)+a,"px"),n=Rs(r).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(bl(e)+a,"px")}))}var s=r.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:r;i.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")})),i.forEach((function(e){var t=e.value,n=e.el,i=e.key;t?n.style.setProperty(i,t):n.style.removeProperty(i)}))}}var wl=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 Di(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&&yl(e.modalRef,!1);var i=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);xl(t,e.mountNode,e.modalRef,i,!0);var o=Sl(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:i}),n)}},{key:"mount",value:function(e,t){var n=Sl(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[n];i.restore||(i.restore=Cl(i,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Sl(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(t,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&yl(e.modalRef,!0),xl(i.container,e.mountNode,e.modalRef,i.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=i.modals[i.modals.length-1];o.modalRef&&yl(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function El(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,o=e.disableEnforceFocus,r=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),h=y.useRef(null),f=y.useRef(),m=y.useRef(null),g=y.useCallback((function(e){m.current=C.findDOMNode(e)}),[]),v=Is(t.ref,g),b=y.useRef();return y.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(f.current=l().activeElement),y.useEffect((function(){if(u){var e=Rs(m.current);i||!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()&&!r&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!r&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.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||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}}),[i,r,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:h,"data-test":"sentinelEnd"}))}var kl={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"}},Rl=y.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,o=e.open,r=Xn(e,["invisible","open"]);return o?y.createElement("div",jn({"aria-hidden":!0,ref:t},r,{style:jn({},kl.root,i?kl.invisible:{},r.style)})):null}));var Tl=new wl,ql=y.forwardRef((function(e,t){var n=Ca(),i=Ri({name:"MuiModal",props:jn({},e),theme:n}),o=i.BackdropComponent,r=void 0===o?Rl:o,a=i.BackdropProps,s=i.children,l=i.closeAfterTransition,c=void 0!==l&&l,u=i.container,d=i.disableAutoFocus,p=void 0!==d&&d,h=i.disableBackdropClick,f=void 0!==h&&h,m=i.disableEnforceFocus,g=void 0!==m&&m,v=i.disableEscapeKeyDown,b=void 0!==v&&v,x=i.disablePortal,S=void 0!==x&&x,w=i.disableRestoreFocus,E=void 0!==w&&w,k=i.disableScrollLock,R=void 0!==k&&k,T=i.hideBackdrop,q=void 0!==T&&T,D=i.keepMounted,P=void 0!==D&&D,I=i.manager,M=void 0===I?Tl:I,N=i.onBackdropClick,O=i.onClose,L=i.onEscapeKeyDown,A=i.onRendered,z=i.open,j=Xn(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=y.useState(!0),_=F[0],$=F[1],H=y.useRef({}),V=y.useRef(null),W=y.useRef(null),U=Is(W,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),G=function(){return Rs(V.current)},K=function(){return H.current.modalRef=W.current,H.current.mountNode=V.current,H.current},J=function(){M.mount(K(),{disableScrollLock:R}),W.current.scrollTop=0},Z=Ps((function(){var e=function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(u)||G().body;M.add(K(),e),W.current&&J()})),X=y.useCallback((function(){return M.isTopModal(K())}),[M]),Y=Ps((function(e){V.current=e,e&&(A&&A(),z&&X()?J():yl(W.current,!0))})),Q=y.useCallback((function(){M.remove(K())}),[M]);if(y.useEffect((function(){return function(){Q()}}),[Q]),y.useEffect((function(){z?Z():B&&c||Q()}),[z,Q,B,c,Z]),!P&&!z&&(!B||_))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:Si}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),B&&(te.onEnter=ws((function(){$(!1)}),s.props.onEnter),te.onExited=ws((function(){$(!0),c&&Q()}),s.props.onExited)),y.createElement(vl,{ref:Y,container:u,disablePortal:S},y.createElement("div",jn({ref:U,onKeyDown:function(e){"Escape"===e.key&&X()&&(L&&L(e),b||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))},role:"presentation"},j,{style:jn({},ee.root,!z&&_?ee.hidden:{},j.style)}),q?null:y.createElement(r,jn({open:z,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&O&&O(e,"backdropClick"))}},a)),y.createElement(El,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:E,getDoc:G,isEnabled:X,open:z},y.cloneElement(s,te))))})),Dl=y.forwardRef((function(e,t){var n=e.absolute,i=void 0!==n&&n,o=e.classes,r=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,h=void 0===p?"horizontal":p,f=e.role,m=void 0===f?"hr"!==s?"separator":void 0:f,g=e.variant,v=void 0===g?"fullWidth":g,b=Xn(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return y.createElement(s,jn({className:ks(o.root,r,"fullWidth"!==v&&o[v],i&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===h&&o.vertical),role:m,ref:t},b))})),Pl=Ss((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:Jn(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"})(Dl);function Il(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Ml={entering:{opacity:1,transform:Il(1)},entered:{opacity:1,transform:"none"}},Nl=y.forwardRef((function(e,t){var n=e.children,i=e.disableStrictModeCompat,o=void 0!==i&&i,r=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,f=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?Js:m,v=Xn(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=y.useRef(),x=y.useRef(),S=Ca()||bs,C=S.unstable_strictMode&&!o,w=y.useRef(null),E=Is(n.ref,t),k=Is(C?w:void 0,E),R=function(e){return function(t,n){if(e){var i=mi(C?[w.current,t]:[t,n],2),o=i[0],r=i[1];void 0===r?e(o):e(o,r)}}},T=R(l),q=R((function(e,t){!function(e){e.scrollTop}(e);var n,i=nl({style:p,timeout:f},{mode:"enter"}),o=i.duration,r=i.delay;"auto"===f?(n=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:r}),S.transitions.create("transform",{duration:.666*n,delay:r})].join(","),a&&a(e,t)})),D=R(s),P=R(d),I=R((function(e){var t,n=nl({style:p,timeout:f},{mode:"exit"}),i=n.duration,o=n.delay;"auto"===f?(t=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=i,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=Il(.75),c&&c(e)})),M=R(u);return y.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),y.createElement(g,jn({appear:!0,in:r,nodeRef:C?w:void 0,onEnter:q,onEntered:D,onEntering:T,onExit:I,onExited:M,onExiting:P,addEndListener:function(e,t){var n=C?e:t;"auto"===f&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===f?null:f},v),(function(e,t){return y.cloneElement(n,jn({style:jn({opacity:0,transform:Il(.75),visibility:"exited"!==e||r?void 0:"hidden"},Ml[e],p,n.props.style),ref:k},t))}))}));Nl.muiSupportAuto=!0;var Ol=y.createContext({}),Ll=y.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,r=e.component,a=void 0===r?"ul":r,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=Xn(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=y.useMemo((function(){return{dense:l}}),[l]);return y.createElement(Ol.Provider,{value:h},y.createElement(a,jn({className:ks(i.root,o,l&&i.dense,!u&&i.padding,d&&i.subheader),ref:t},p),d,n))})),Al=Ss({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ll),zl="undefined"==typeof window?y.useEffect:y.useLayoutEffect,jl=y.forwardRef((function(e,t){var n=e.alignItems,i=void 0===n?"center":n,o=e.autoFocus,r=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,h=void 0===p?"li":p,f=e.ContainerProps,m=(f=void 0===f?{}:f).className,g=Xn(f,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,S=void 0!==x&&x,w=e.disableGutters,E=void 0!==w&&w,k=e.divider,R=void 0!==k&&k,T=e.focusVisibleClassName,q=e.selected,D=void 0!==q&&q,P=Xn(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),I=y.useContext(Ol),M={dense:b||I.dense||!1,alignItems:i},N=y.useRef(null);zl((function(){r&&N.current&&N.current.focus()}),[r]);var O,L,A=y.Children.toArray(l),z=A.length&&(O=A[A.length-1],L=["ListItemSecondaryAction"],y.isValidElement(O)&&-1!==L.indexOf(O.type.muiName)),j=Is(y.useCallback((function(e){N.current=C.findDOMNode(e)}),[]),t),F=jn({className:ks(c.root,u,M.dense&&c.dense,!E&&c.gutters,R&&c.divider,S&&c.disabled,s&&c.button,"center"!==i&&c.alignItemsFlexStart,z&&c.secondaryAction,D&&c.selected),disabled:S},P),_=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=ks(c.focusVisible,T),_=ul),z?(_=F.component||d?_:"div","li"===h&&("li"===_?_="div":"li"===F.component&&(F.component="div")),y.createElement(Ol.Provider,{value:M},y.createElement(h,jn({className:ks(c.container,m),ref:j},g),y.createElement(_,F,A),A.pop()))):y.createElement(Ol.Provider,{value:M},y.createElement(_,jn({ref:j},F),A))})),Fl=Ss((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"})(jl),_l=y.forwardRef((function(e,t){var n=e.classes,i=e.className,o=Xn(e,["classes","className"]),r=y.useContext(Ol);return y.createElement("div",jn({className:ks(n.root,i,"flex-start"===r.alignItems&&n.alignItemsFlexStart),ref:t},o))})),$l=Ss((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(_l),Hl=y.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,r=e.disableTypography,a=void 0!==r&&r,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=Xn(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=y.useContext(Ol).dense,m=null!=c?c:n;null==m||m.type===hl||a||(m=y.createElement(hl,jn({variant:f?"body2":"body1",className:i.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===hl||a||(g=y.createElement(hl,jn({variant:"body2",className:i.secondary,color:"textSecondary",display:"block"},p),g)),y.createElement("div",jn({className:ks(i.root,o,f&&i.dense,l&&i.inset,m&&g&&i.multiline),ref:t},h),m,g)})),Vl=Ss({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Hl);function Wl(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ul(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Bl(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Gl(e){return"function"==typeof e?e():e}var Kl=y.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,o=e.anchorOrigin,r=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,h=e.elevation,f=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,b=e.onEnter,x=e.onEntered,S=e.onEntering,w=e.onExit,E=e.onExited,k=e.onExiting,R=e.open,T=e.PaperProps,q=void 0===T?{}:T,D=e.transformOrigin,P=void 0===D?{vertical:"top",horizontal:"left"}:D,I=e.TransitionComponent,M=void 0===I?Nl:I,N=e.transitionDuration,O=void 0===N?"auto":N,L=e.TransitionProps,A=void 0===L?{}:L,z=Xn(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(),F=y.useCallback((function(e){if("anchorPosition"===l)return a;var t=Gl(i),n=(t&&1===t.nodeType?t:Rs(j.current).body).getBoundingClientRect(),o=0===e?r.vertical:"center";return{top:n.top+Wl(n,o),left:n.left+Ul(n,r.horizontal)}}),[i,r.horizontal,r.vertical,a,l]),_=y.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var i=function(e,t){for(var n=t,i=0;n&&n!==e;)i+=(n=n.parentElement).scrollTop;return i}(e,n);t=n.offsetTop+n.clientHeight/2-i||0}}return t}),[r.vertical,l,m]),$=y.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Wl(e,P.vertical)+t,horizontal:Ul(e,P.horizontal)}}),[P.horizontal,P.vertical]),H=y.useCallback((function(e){var t=_(e),n={width:e.offsetWidth,height:e.offsetHeight},o=$(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Bl(o)};var r=F(t),a=r.top-o.vertical,s=r.left-o.horizontal,c=a+n.height,u=s+n.width,d=Ts(Gl(i)),p=d.innerHeight-v,h=d.innerWidth-v;if(a<v){var f=a-v;a-=f,o.vertical+=f}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>h){var y=u-h;s-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Bl(o)}}),[i,l,F,_,$,v]),V=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]),W=y.useCallback((function(e){j.current=C.findDOMNode(e)}),[]);y.useEffect((function(){R&&V()})),y.useImperativeHandle(n,(function(){return R?{updatePosition:function(){V()}}:null}),[R,V]),y.useEffect((function(){if(R){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function i(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return i.clear=function(){clearTimeout(t)},i}((function(){V()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[R,V]);var U=O;"auto"!==O||M.muiSupportAuto||(U=void 0);var B=p||(i?Rs(Gl(i)).body:void 0);return y.createElement(ql,jn({container:B,open:R,ref:t,BackdropProps:{invisible:!0},className:ks(u.root,d)},z),y.createElement(M,jn({appear:!0,in:R,onEnter:b,onEntered:x,onExit:w,onExited:E,onExiting:k,timeout:U},A,{onEntering:ws((function(e,t){S&&S(e,t),V()}),A.onEntering)}),y.createElement(ol,jn({elevation:f,ref:W},q,{className:ks(u.paper,q.className)}),c)))})),Jl=Ss({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Kl);function Zl(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Xl({d:e,size:t,style:n={},viewBox:i="0 0 16 16"}){const o={fontSize:Zl(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return v.createElement("i",{style:o},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:i,fill:"currentColor"},v.createElement("path",{d:e})))}const Yl="alternative-menu-item",Ql=e=>{const{nested:t,className:n,...i}=e,o=(({nested:e,dir:t})=>Ia((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 v.createElement(Fl,hn({className:`${o.root} ${n}`},i))},ec=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Yl}`);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 tc({title:e,selected:t,onClick:n,nested:i,icon:o,bold:r,dir:a}){const s=xe.detectTextDirection(e);return v.createElement(Ql,{nested:i,role:"menuitem",button:!0,onClick:n,className:Yl,onKeyDown:ec,dir:a,autoFocus:t},v.createElement(Vl,{primary:e,primaryTypographyProps:{dir:s,...r&&{style:{fontWeight:600}}}}),v.createElement($l,{style:{minWidth:16}},v.createElement(Xl,{d:t?Jt:""})),o&&v.createElement($l,{style:{minWidth:16}},v.createElement(Xl,{d:o.d})))}tc.propTypes={title:vn.string.isRequired,selected:vn.bool,onClick:vn.func.isRequired,nested:vn.bool,icon:vn.shape({d:vn.string.isRequired}),bold:vn.bool,dir:vn.string.isRequired},tc.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Ql.propTypes={nested:vn.bool,className:vn.string},Ql.defaultProps={nested:!1,className:Yl};const nc={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 ic({chartId:e,alignTo:t,currentId:n,dir:i,dock:o,list:r,onClose:a,show:s,instruction:l}){const c=r.map(((t,o)=>{var s;return v.createElement(v.Fragment,{key:t.id},v.createElement(tc,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:i}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&v.createElement(Al,{dense:!0,dir:i,component:"div",disablePadding:!0},t.children.map((e=>v.createElement(tc,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:i})))),o<r.length-1&&v.createElement(Pl,{key:`divider-${t.id}`}))}));return v.createElement(Jl,hn({anchorEl:t,open:s,onClose:a},nc[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),v.createElement(Al,{dense:!0,disablePadding:!0,dir:i,"aria-label":l,component:"nav"},c))}ic.propTypes={chartId:vn.string.isRequired,alignTo:vn.any,currentId:vn.string.isRequired,dir:vn.string.isRequired,dock:vn.string.isRequired,list:vn.array,onClose:vn.func.isRequired,show:vn.bool.isRequired,instruction:vn.string.isRequired},ic.defaultProps={list:[],alignTo:null};const oc="title-button",rc="active-title-button",ac=xs((({children:e,...t})=>v.createElement(ml,hn({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),sc=xs(ml)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class lc extends v.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=v.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:i}=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||i)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:i,showGroupDimOptions:o}=this.props;n&&(i||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(`.${oc}`);t&&(t.focus(),t.classList.add(rc))}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(`.${oc}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${rc}`);e&&(e.classList.remove(rc),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:i,disabled:o,isDimension:r,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,h=o||Boolean(!t.drillUp)||this.state.inSelection,f=t.breadcrumbs.map(((e,n)=>v.createElement(ac,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(p-n),title:e},v.createElement("span",{style:d},e),v.createElement(Xl,hn({},Xt,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,b={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!r&&y&&"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=xe.detectTextDirection(t.text),C=v.createElement(ac,{"aria-label":i.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:b,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${oc} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&v.createElement(Xl,hn({},Kt,{size:"small",title:i.get("Tooltip.selections.locked")})),v.createElement("span",{style:d,dir:S},t.text),n&&m&&v.createElement(Xl,hn({},Zt,{size:"small",style:{margin:"0 8px"}})));return v.createElement(v.Fragment,null,t.icon&&t.icon.onClick&&v.createElement(sc,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},v.createElement(Xl,hn({},t.icon.path,{size:"small",title:i.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&v.createElement(Xl,hn({},t.icon.path,{size:"small",title:i.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),f,v.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},C),n&&m&&v.createElement(ic,{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:i.get("Accessibility.Popover.Instructions")}))}}function cc(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function uc(e){function t(e){return!e.isDimension&&me.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:i,hyperCube:o,hyperCubeDef:r,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:h,translator:f,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!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}(g,this.rect),x=r&&r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef,S=x&&x[a?"qDimensions":"qMeasures"]||[],C=i||o[a?"qDimensionInfo":"qMeasureInfo"],w=a?cn:dn,E=a?un:pn,k=Boolean(l&&l.colorSupport&&l.modifiers),R=k&&((T=this.settings.settings).isDimension&&me.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var T;const q=C.map(((t,i)=>{var o;const r="number"==typeof t.explicitColumn?t.explicitColumn:i,y=E(t,r,l,e),b=i===C.length-1,x=Boolean(e)&&a&&"N"!==t.qGrouping,T=k||x?w({column:r,activeInfo:t,altList:S,app:e,dir:d?"rtl":"ltr",dock:cc(g),model:l,onChange:c,skipAttributeExpressions:h,translator:f,allowChangeOfAlternatives:k}):void 0;return v.createElement(v.Fragment,{key:t.cId},v.createElement(lc,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:T,titleData:y,model:l,translator:f,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:R,supportConditional:m}),!b&&v.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return v.createElement("div",{style:b,dir:y},q)}}}lc.propTypes={chartId:vn.string.isRequired,disabled:vn.bool.isRequired,padding:vn.string,minWidth:vn.string,titleData:vn.shape({breadcrumbs:vn.arrayOf(vn.string).isRequired,icon:vn.shape({path:vn.shape({d:vn.string.isRequired}),tooltip:vn.string.isRequired,onClick:vn.func}),index:vn.number.isRequired,locked:vn.bool.isRequired,text:vn.string.isRequired,popoverText:vn.string.isRequired,drillUp:vn.func,id:vn.string.isRequired}).isRequired,popover:vn.shape({dir:vn.string.isRequired,dock:vn.string.isRequired,getPopoverOptions:vn.func.isRequired}),translator:vn.shape({get:vn.func.isRequired}).isRequired,selections:vn.shape({isActive:vn.func,addListener:vn.func,removeListener:vn.func}),style:vn.shape({fontSize:vn.string,color:vn.string,fontFamily:vn.string}).isRequired,isDimension:vn.bool.isRequired,hasAlternative:vn.bool.isRequired,supportConditional:vn.bool.isRequired,showGroupDimOptions:vn.bool.isRequired},lc.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const dc=Ci({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 pc=ki({productionPrefix:"q88ec",disableGlobal:!0,seed:""});function hc(){function e({x:e,y:t,width:n,height:i,scaleRatio:o,margin:r}={}){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(i)?a.height:i,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!==r&&(a.margin.left=Number.isNaN(r.left)?0:r.left,a.margin.top=Number.isNaN(r.top)?0:r.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let i,o=e();const r={element:()=>i,root:()=>i,appendTo:e=>(i||(i=n("div"),i.style.position="absolute",i.style["-webkit-font-smoothing"]="antialiased",i.style["-moz-osx-font-smoothing"]="antialiased",i.style.pointerEvents="none"),e.appendChild(i),i),render(e){if(!i)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return i.style.left=`${Math.round(o.margin.left+o.x*t)}px`,i.style.top=`${Math.round(o.margin.top+o.y*n)}px`,i.style.width=`${Math.round(o.width)}px`,i.style.height=`${Math.round(o.height)}px`,i.style.transform=`scale(${t}, ${n})`,i.style.transformOrigin="top left",w.render(function(e,t){return v.createElement(Ta,{generateClassName:t},v.createElement(ys,{theme:dc},e))}(e,pc),i),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(i&&w.unmountComponentAtNode(i),r),destroy(){i&&i.parentElement&&(w.unmountComponentAtNode(i),i.parentElement.removeChild(i)),i=null},size:t=>(t&&(o=e(t)),o)};return r}}function fc(e){return bt(e).l<70}function mc(e,t){const n=bt(e).l/100,i=bt(t).l/100;return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}function gc(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var vc={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const i=e.findShapes(t.selector).filter((e=>e.key===t.component));if(i.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let r=i[i.length-1];for(let e=0;e<i.length;e+=1){const t=i[e],n=r.attrs.fill,a=t.attrs.fill;if(mc(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:i,outerRadius:s}=t.desc.slice;if(i=Math.max(i,r.desc.slice.innerRadius),s=Math.min(s,r.desc.slice.outerRadius),s>i){const t=gc({r:s,a:e},n),r=gc({r:i,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:r.x,y2:r.y,strokeWidth:1,opacity:.4,stroke:fc(a)?"#ccc":"#333"})}}r=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function yc(e,t=!0){let n="";for(let t=0;t<e.length;t++){const i=e[t];n+=0===t?`M${i.x} ${i.y}`:`L${i.x} ${i.y}`,n+=" "}return t&&(n+="Z"),n}function bc(e){const{size:t,angle:n}=e,i={x:e.x,y:e.y},o=t/2,r=e.x-o,a=e.y-o;let s=[{x:r,y:a+t},{x:r+o,y:a},{x:r+t,y:a+t},{x:r,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const i=Math.cos(t),o=Math.sin(t),r=(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:i*r.x-o*r.y,y:o*r.x+i*r.y},n)}(e,n,i))),{type:"path",fill:e.fill,d:yc(s)}}var xc={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 i=[];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:(r=s).x+o.r*Math.sin(o.a),y:r.y-o.r*Math.cos(o.a)}),u=bc({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},i.push(u)}}var o,r;return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Sc(){const e=n();return e.use(i),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",X(e))};e.interaction("hammer",X(Hammer))}(t)),e.use((function(e){e.renderer("react",hc()),e.component("data-title",uc(e.renderer("svg")()))})),e.renderer("react-qcm",E),e.component("axis-title",k),e.component("disclaimer",R),e.component("pie-dividers",vc),e.component("negative-indicators",xc),e}var Cc={};function wc(){wc.init.call(this)}Cc.isObject=function(e){return"object"==typeof e&&null!==e},Cc.isNumber=function(e){return"number"==typeof e},Cc.isUndefined=function(e){return void 0===e},Cc.isFunction=function(e){return"function"==typeof e};var Ec=wc;wc.EventEmitter=wc,wc.prototype._events=void 0,wc.prototype._maxListeners=void 0,wc.defaultMaxListeners=10,wc.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},wc.prototype.setMaxListeners=function(e){if(!Cc.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},wc.prototype.emit=function(e){var t,n,i,o,r,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],Cc.isUndefined(n))return!1;if(Cc.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(i=arguments.length,o=new Array(i-1),r=1;r<i;r++)o[r-1]=arguments[r];n.apply(this,o)}else if(Cc.isObject(n)){for(i=arguments.length,o=new Array(i-1),r=1;r<i;r++)o[r-1]=arguments[r];for(i=(a=n.slice()).length,r=0;r<i;r++)a[r].apply(this,o)}return!0},wc.prototype.addListener=function(e,t){var n;if(!Cc.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Cc.isFunction(t.listener)?t.listener:t),this._events[e]?Cc.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Cc.isObject(this._events[e])&&!this._events[e].warned)&&((n=Cc.isUndefined(this._maxListeners)?wc.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Cc.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),Cc.isFunction(console.trace)&&console.trace()));return this},wc.prototype.on=wc.prototype.addListener,wc.prototype.once=function(e,t){if(!Cc.isFunction(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},wc.prototype.removeListener=function(e,t){var n,i,o,r;if(!Cc.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,i=-1,n===t||Cc.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Cc.isObject(n)){for(r=o;r-- >0;)if(n[r]===t||n[r].listener&&n[r].listener===t){i=r;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},wc.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],Cc.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},wc.prototype.listeners=function(e){return this._events&&this._events[e]?Cc.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},wc.listenerCount=function(e,t){return e._events&&e._events[t]?Cc.isFunction(e._events[t])?1:e._events[t].length:0};var kc=Y(Ec);function Rc(){const e={};var t;return t=e,Object.keys(kc.prototype).forEach((e=>{t[e]=kc.prototype[e]})),kc.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}const Tc={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 qc(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Dc={getImageSize(e,t){let n;function i(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,i()}const r={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=r[t]*(n>l?1:n/l),u=r[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)},i()):(e={height:c,width:u},i()),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 Pc(e,t,n){let i=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,i;let o,r,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!==(i=e.session)&&void 0!==i&&null!==(i=i.config)&&void 0!==i&&i.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,r=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),r+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(i,o),i=i.replace(/"/g,'\\"'),i=i.replace(/'/g,"\\'"),i=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(i,o));const{height:r,width:a,imageError:s}=await Dc.getImageSize(i,t);return{src:i,size:t,height:r,width:a,imageError:s}}async function Ic(e,t,n,i){var o,r,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 h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const f=(null===(r=i.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];let m;if(-1!==h&&f[h]&&(m=f[h]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Pc(u,d,s);if("url"===p)return async function(e,t,n,i,o){let r,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&qc(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Dc.getImageSize(t,i);r={src:t,size:i,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Dc.getImageSize(a,i);r={src:a,size:i,height:e,width:t,imageError:n}}return r}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,i){let o;const r=i.label,a=`qmem://${t.qFallbackTitle}/${r}`;if(qc(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:i,width:r,imageError:a}=await Dc.getImageSize(e,n);o={src:e,size:n,height:i,width:r,imageError:a}}}catch(e){}return o}(s,n[h],d,m)}return[]}const Mc={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:i}){const o=t,r=[];for(let t=0;t<o.length;t++)r.push(Ic(e,i,n,o[t]));const a=await Promise.all(r);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}},Nc={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:i}){let o=t;return o=await Mc.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:i}),o},checkIfPromisesExist:({customTooltipModel:e})=>Mc.checkIfPromisesExist({customTooltipModel:e})};const Oc=(e,t)=>{var n,i,o;const r=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Tc.CHART.CHART_PARENT_TYPE,qId:Tc.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:r,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Lc=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:Tc.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Ac={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,i;const o=null!==(n=null===(i=t.tooltip)||void 0===i||null===(i=i.chart)||void 0===i||null===(i=i.style)||void 0===i?void 0:i.size)&&void 0!==n?n:"medium",r=Tc.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:r,height:r,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Tc.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":r}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:i,customTooltipModel:o,rtl:r})=>{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 Ac.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const i=n,o=Tc.CHART.STATE,r=t.qStateName;i.miniChartToken.alternateState||(i.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,r),i.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var i;const o=n;null!==(i=o.miniChartToken.sessionObj)&&void 0!==i&&i.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const r=Tc.CHART.STATE,a=Oc(t,r),s=await e.createSessionObject(a),l=Lc(t);if(s.id!==Tc.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!==i?i:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===i&&n.length>0){var h,f;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],i=void 0!==e.value?[e.value]:[];i.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),i,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Tc.CHART.CONTAINER_ID),g={direction:r?"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 Ac.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Ac.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Tc.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,i=Tc.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(i)}({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 zc(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function jc(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:i}=Tc.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[i]=!0,o}function Fc(e){const t=jc();return e.filter((e=>t[e.id]))}const _c={getNodes(e,t){const n=function(e,t){let n=0,i=0;e.center?(n+=e.center.x,i+=e.center.y):(n+=e.clientX,i+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:i-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,i=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var r,a,s,l;const c=null!==(r=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==r?r: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=[],i.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 i=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return i&&i.value===c.value&&i.label===c.label}));t.length>0&&(i=i.concat(t[0]))}})),i},displayTooltip(e,t,{nodes:n,opts:i={},customTooltipModel:o,extractedNodes:r=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=_c.getAttrExprData(a);r.length||n.length?Nc.handlePromises({customTooltipModel:o,nodes:_c.getDataNodes(s,r.length>0?r:n),attrExps:l,opts:i}).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&&Ac.hide({app:i.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Nc.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const i=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return i[o]||(i[o]=[]),i[o]},getAttrExprData(e){var t;let n=[],i="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var r;const t=o.length-1;n=(null===(r=e.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r||null===(r=r[t])||void 0===r?void 0:r.qAttrExprInfo)||[],i=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:i}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[Tc.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let i=n.qLayoutExclude;i||(n.qLayoutExclude={quarantine:{}},i=n.qLayoutExclude),i.quarantine||(i.quarantine={}),i.quarantine[Tc.CUSTOM.QUARANTINE]=[],e.forEach((e=>{i.quarantine[Tc.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=i}(Fc(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[Tc.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Tc.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=zc(e);if(!n)return;const i=void 0!==t?t:n.length-1;if(!n[i])return;const o=this.getAttrExps(e,n[i]);if(0===Fc(o).length){var r;const t=(null===(r=e.qLayoutExclude)||void 0===r||null===(r=r.quarantine)||void 0===r?void 0:r.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[i].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[i].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let i=[];const o=zc(e)||[];[...o,t].forEach((e=>{const t=Fc(e.qAttributeExpressions||[]);t.length>0&&(i=t)}));const r=jc(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!r[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(i));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:xe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=xe.detectTextDirection(e.src),i=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){i.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;i.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,i),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function $c(e,t,n,i){var o;const r=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[i])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[i]?e.qSubNodes[i].qAttrExps:e.qAttrExps;return s?(r.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,r=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Tc.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Tc.CUSTOM.TITLE:case Tc.CUSTOM.DESCRIPTION:case Tc.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}/${i}/qAttrExprInfo/${t}`},label:r,value:"value"})})),a):a}const Hc={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,i="qDimensionInfo";return{field:`${i}/${n}`,value:t=>$c(t,e,i,n)}}};const Vc={getCustomAttrExps(e,t,n){var i;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},r=(null===(i=t.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];if(Number.isNaN(r))return o;return function(e,t,n,i){const o={[Tc.CUSTOM.TITLE]:!0,[Tc.CUSTOM.DESCRIPTION]:!0},{attrExps:r,fieldPath:a}=_c.getAttrExprData(e);return 0===t.length||0===r.length||""===a||r.forEach(((e,r)=>{const s=t[r];if(e.id===Tc.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${r}`).formatter()(s.value);i.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&&i.customTooltipInfoAttrExpsArr.push({...e.id===Tc.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),i}(n,r.map((t=>Se.getMeasure(e,t))),e,o)}};function Wc({nodes:e,layout:t,dataset:n}){const i=function(e,t,n){const i=[];return e.forEach((e=>{i.push(Vc.getCustomAttrExps(n,e,t))})),i}(e,t,n);return i.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Uc(e){const t=Tc.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:i,qLabelExpression:o,cId:r}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:i,qLabelExpression:o,cId:r}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:i,qLabelExpression:o,cId:r}}function Bc(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var Gc={attrExpr:{migrateProperties(e){var t,n;const i=le(!0,{},e),o=(null===(t=i.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let r=Bc(i);return r=function(e,t){return t.concat(e.map((e=>Uc(e))))}(o,r),function(e,t){var n;const i=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;i[i.length-1].qAttributeExpressions=e}(r,i),null===(n=i.tooltip)||void 0===n||delete n.data,i},getPatches(e){var t,n;const i=(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,r=function(e,t,n){let i=e.length;const o=[];return t.forEach((e=>{const t=Uc(e),r=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${i}`,qOp:"add",qValue:r}),i++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(Bc(e),i,o);return r},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var i,o,r;const a=(null===(i=t.qHyperCube)||void 0===i?void 0:i.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(r=t.qMeta)||void 0===r||null===(r=r.privileges)||void 0===r?void 0:r.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const i=this.migrateProperties(t);e.setProperties(i).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const i=this.getPatches(t);e.applyPatches(i,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:Kc}=Tc;function Jc({flags:e,layout:t,app:n,model:i,picasso:r,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:i,chart:o,translator:r,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:i,chart:o,translator:r,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:_c,miniChartToken:{},embed:s}}({layout:t,app:n,model:i,picasso:r,chart:a,translator:s,localeInfo:l,embed:c}),h="rtl"===u.direction,f=()=>{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:()=>f(),hideBasic:()=>f()&&o(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var i,o;const r=Wc({dataset:e,nodes:n,layout:t});return{title:null===(i=r.customTooltipInfoAttrExpsArr.find((e=>e.id===Kc.TITLE)))||void 0===i?void 0:i.title,description:null===(o=r.customTooltipInfoAttrExpsArr.find((e=>e.id===Kc.DESCRIPTION)))||void 0===o?void 0:o.value,measures:r.customTooltipAttrExpsArr}},hasImages:()=>_c.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>_c.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:i})=>{const o=_c.getDataNodes(a,i),{attrExps:r}=_c.getAttrExprData(t);return Nc.handlePromises({customTooltipModel:p,nodes:o,attrExps:r,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(f()&&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==i?void 0:i.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>Ac.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>_c.getFooterRow(s.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>Ac.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>Ac.hide({app:n,customTooltipModel:p}),destroy:()=>Ac.destroyVisualization({customTooltipModel:p})}}}function Zc(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function Xc({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)),i=({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=me.getValue(e,"qHyperCube.qSize.qcy");return me.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i});return 0===n({rows:o,encodings:i}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const r=t({ds:e,encodings:o}),a=n({rows:r,encodings:o});return 0===i({rows:a,encodings:o}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const r=t({ds:e,encodings:o}),a=n({rows:r,encodings:o}),s=a,l=i({rows:a,encodings:o});return s.length!==l.length}}}}})}function Yc({chart:e,translator:t,layout:n,constraints:i,options:o,themeService:r,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:d}=r.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!i.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:i,formatter:o,create:r,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:i,nodes:n}):{},h=[];u&&h.push(r.text({value:u,style:{bold:!0}})),d&&h.push(r.text({value:d}));const f=s.hideBasic();if(f&&!p.length&&(u||d)||h.push(r.text({value:c.data.label,style:{bold:!0}})),!f){h.push(r.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(r.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(r.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(r.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&h.push(...p.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(r.raw({value:s.chart.createLimitationRow()}))):h.push(r.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>r.raw({value:s.createImageRow({value:t,h:e})})))),h},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 Qc=e=>"[object Object]"===Object.prototype.toString.call(e),eu=e=>Array.isArray(e);function tu(e,t){if(e===t)return!0;if(eu(e)){if(!eu(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!tu(e[n],t[n]))return!1;return!0}if(Qc(e)){if(!Qc(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i<n.length;i++){if(!Object.hasOwn(t,n[i]))return!1;if(!tu(e[n[i]],t[n[i]]))return!1}return!0}return e===t}function nu({enable:e=!0}={}){const t=L(),n=()=>Date.now().toString()+Math.random(),[i,o]=P(n()),r={properties:void 0};return O((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const i=()=>{t.getEffectiveProperties().then((e=>{const t=le(!0,{},e);if(!r.properties)return void(r.properties=t);const i=function(e,t){var n,i,o,r;const a={properties:!1,exclude:!1};if(e===t)return a;const s=le(!0,{},e),l=le(!0,{},t);return a.exclude=!tu(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i?void 0:i.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r||delete r.qLayoutExclude,a.properties=!tu(s,l),a}(r.properties,t);r.properties=t,i.exclude&&!i.properties&&o(n())}))};return t.on("changed",i),i(),()=>{t.removeListener("changed",i)}}),[e]),i}function iu({scaleKey:e,legend:t,onEdited:n}){const{layout:i}=t,{dock:o}=i||{};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 ou=.8,ru=.55,au={CORNER_RADIUS:0,INNER_RADIUS:ru,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},su=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var i,o;let r=ou,a=0;const s=null!==(i=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==i?i:ru;e.donut.showAsDonut&&(r=ou-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*r+a}}:ou,lu=({layout:e},t,n)=>{var i,o;if(!e.donut.showAsDonut)return 0;const r=null!==(i=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==i?i:ru;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=ou-r,n=r;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:r},cu=({layout:e},t)=>{var n,i,o,r,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)||"",h=t.encodings.slice.outerRadius,{formatter:f}=t.chart,m=me.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const i=t.ds.field(e).raw();return{field:e,label:!i.isCustomFormatted&&(i.qIsAutoFormat||"U"===i.qNumFormat.qType)?e=>f(n)(e.qNum):e=>e.qText}}const v=(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?Hc.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"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:lu({layout:e},t,v),fill:t.colorService.getColor(),strokeWidth:null!=v&&null!==(n=v.style)&&void 0!==n&&n.strokeWidth?au.STROKE.WIDTH[v.style.strokeWidth.toUpperCase()]:au.STROKE.WIDTH.NONE,stroke:null!==(i=null==v||null===(o=v.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==i?i:au.STROKE.COLOR,outerRadius:su({layout:e},t,v),cornerRadius:null!==(r=null==v||null===(a=v.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==r?r:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function uu({layout:e},t){var n,i;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],r=null!==(n=null==o||null===(i=o.style)||void 0===i?void 0:i.innerRadius)&&void 0!==n?n:ru,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=ou-r,n=r;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function du(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 pu({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}}}function hu(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function fu(e){return e.node.data.num.label}function mu(e){return e.node.data.radius.label}function gu(e,t,n){if(e.dataPoint.auto)return n?fu:hu;if("share"===e.dataPoint.labelMode)return hu;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?mu:fu}return null}function vu({data:e}){return e?e.label:""}function yu(e){const t=parseInt(e,10);if(!isNaN(t))return t}function bu(e){var t,n;const i=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==i||null===(n=i.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:ru)>.3}function xu({node:e,data:t}){return le({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Su(e,t,n){const i=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:i.fill}],fontSize:yu(i.fontSize),fontFamily:i.fontFamily,label:vu,linkData:({node:e,data:t})=>le({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(gu(e,t,!1)){const i=function(e,t,n){return{label:gu(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&bu(e)?"inside":"into",onBackground:e.donut.showAsDonut&&bu(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),r=Ee(le(t,i),n.theme);r.linkData=xu,o.push(r)}return{key:"pie-labels",type:"labels",renderer:Wt(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 Cu({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const i=gu(e,t,!0),o=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),r=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===r.label.name.color,c=s.fill===r.label.value.color;return{key:"pie-labels",type:"labels",renderer:Wt(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:yu(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:vu,linkData:({data:e})=>e},{fontSize:yu(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:i,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Su(e,n,t))}const wu=(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 i=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),o=(i||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 Eu(e,t){const n=t.element.getBoundingClientRect();let i,o;return e.center?(({x:i}=e.center),({y:o}=e.center)):(i=e.clientX,o=e.clientY),{x:i-n.left,y:o-n.top}}function ku(e,t){const n=t.component("slices");if(!n)return!1;const{x:i,y:o}=Eu(e,t),r=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*ou;return(r-i)**2+(a-o)**2<=s**2}const Ru=(e,t,{requireFailure:n,recognizeWith:i}={})=>({type:"Tap",requireFailure:n,recognizeWith:i,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:i}=n.srcEvent;if(i&&("INPUT"===i.nodeName||i.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(i&&i.hasAttribute("data-action")&&i.hasAttribute("data-component-key"))return void this.chart.component(i.getAttribute("data-component-key")).emit(i.getAttribute("data-action"));if(i&&i.children&&i.children[0]&&"legend-cat"===i.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Eu(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const r=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});r.length&&(this.chart.brushFromShapes(r,{components:[{key:r[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Tu=(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 i=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(i)&&i.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()}}}),qu=(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 i=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return i.some((e=>"slices"===e.key))&&!e.isLocked(i)}},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 Du(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&ku(t,this.chart)){const i=Math.sign(-t.deltaY);e.viewState.set("rotation",i*(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 Pu=(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()&&ku(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}}}),Iu=(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}}}),Mu=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Pu(e,{}),Ru(e,t,{}),...n]:[wu(e,{}),qu(e,{}),Pu(e,{}),Tu(e,{}),Iu(e,{}),Ru(e,t,{}),...n]});function Nu(e,t,n){const i=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const r=t.tooltipService.getInteractions();return[Mu(t,i,r.gestures),Du(t),r.native]}function Ou({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 Lu({layout:e},t,n){var i;if(null!=t&&null!==(i=t.flags)&&void 0!==i&&i.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const o=t.properties,r=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:o&&o.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:r.fontFamily,fontSize:r.fontSize,color:r.color}}}function Au({layout:e},t,n){var i,o;if(null==t||null===(i=t.flags)||void 0===i||!i.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const r=t.alternativeService.getAlternatives(),a=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:r.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,noModelDependencies:null==t||null===(o=t.flags)||void 0===o?void 0:o.isEnabled("VIZ_252_DATA_TITLE_OUTSIDE_SENSE"),skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function zu({layout:e,context:t,selectionService:n},i={}){const o=function({layout:e}={},t={}){const n={};return le(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&le(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},i),r={scales:o};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:i}=t,{translator:o}=e,{fontFamily:r}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:i,label:o.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:r}}}(i,t);if(i.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=i.colorService.getLegend({eventName:"legend",key:"legend",viewState:i.viewState,chart:i.chart,styleReference:"object.pieChart",styleOverrides:{title:i.styleService.legend.title.getStyle(),label:i.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=[cu({layout:e},i),uu({layout:e},i),du(i),pu({layout:e},i),Lu({layout:e},i,t),Au({layout:e},i,t),...c.components,iu({scaleKey:"fill",legend:c.components[0]||{},onEdited:i.onSelect}),{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}}},{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}}},Cu({layout:{components:e.components,dataPoint:le({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},i),...i.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:Nu(n,i,t),scales:o,components:i.pluginService.extendComponents(a),palettes:i.colorService.getPalettes(),formatters:Ou({settings:r},i),strategy:pe(0,i)}}function ju({instance:e,services:t,picasso:n,flags:o}){const r=T(),a=L(),s=A(),l=M(),c=_(),u=z(),d=D(),p=F(),{qLocaleInfo:h}=$(),f=nu({enable:u&&!u.snapshotData}),[g]=V((()=>{if(!t)return Promise.resolve();Gc.attrExpr.updateProperties(a,u);const e=({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}});return Promise.resolve(a&&!u.snapshotData?a.getEffectiveProperties():{}).then((async n=>Promise.all([t.colorService.initialize({createConfig:e}),Promise.resolve(n),t.pluginService.initialize(),t.alternativeService.initialize({properties:n})])))}),[t,f]);O((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),O((()=>{if(!e||!g)return;const{chart:f,viewState:v,interactions:y,viewCache:b}=e,{alternativeService:x,colorService:S,disclaimerService:C,pluginService:w,themeService:E,tooltipService:k,styleService:R}=t,T=r.viewState||{};u.snapshotData||(v.preventSet("legendScrollOffset",T.legendScrollOffset||0),v.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,v),k.expando.set("properties",g[1]);const q=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),D=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...S.getData()],P={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(P.slice.outerRadius="qMeasureInfo/1"),C.initialize({args:{ds:q,encodings:P}});const I=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:h}}),P),M=d?()=>{const e=f.brush("selection");i.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},N=u.snapshotData&&!r.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,O=t=>e.selectionService.getIsSelectionLocked(t),L=()=>zu({layout:u,context:{rtl:"rtl"===r.direction,theme:c,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:q,model:a,app:s,chart:f,onSelect:M,isLocked:O,interactions:y,constraints:p,translator:l,viewState:v,dataRowCount:I,encodings:P,alternativeService:x,colorService:S,disclaimerService:C,pluginService:w,themeService:E,styleService:R,tooltipService:k,debouncer:m,properties:g[1],selections:d,logicalSize:N,flags:o,viewCache:b,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:i,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")&&!Vt.propertiesHaveChanged({viewCache:n,layout:i})}({viewState:v,options:r,layout:u,viewCache:b,chart:f})}});e.generateSettings=L;const A=L();f.update({data:D,settings:A}),b.set("chartWidth",f.element.clientWidth),b.set("chartHeight",f.element.clientHeight),b.set("hasZeroLine",A.components.filter((e=>"zeroLine"===e.key)).length>0),Vt.cacheProperties({viewCache:b,layout:u}),r.effect&&u.effectProperties?r.effect.update(u,f,{encodings:P}):u.effectPath||f.brush("highlight").end()}),[e,g,r.direction,r.effectProperties,p,c.name(),l.language()])}function Fu({instance:e,services:t}){const n=q(),i=z();U((o=>{if(!(i.snapshotData&&i.snapshotData.content&&i.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:i}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:ge(t,"legend-cat"),rotation:n.get("rotation")},i.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),B((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:ge(e.chart,"legend-cat")})})),[e])}const _u={setValue(e,t,n){if(!t)return;const i=t.split(".");let o=e;const r=i[i.length-1];let a;for(a=0;a<i.length-1;++a)null==o[i[a]]&&(o[i[a]]=Number.isNaN(+i[a+1])?{}:[]),o=o[i[a]];void 0!==n?o[r]=n:delete o[r]},getValue(e,t,n){const i=t.split(".");let o,r=e;if(void 0===r)return n;for(o=0;o<i.length;++o){if(null==r[i[o]])return n;r=r[i[o]]}return r}},$u={getDimensions:e=>_u.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>_u.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>_u.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>_u.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=_u.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=_u.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 Hu={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>$u.getNumMeasures(e)>=1},showLegend:e=>{const t=_u.getValue(e,"color.auto"),n=_u.getValue(e,"color.expressionIsColor"),i=_u.getValue(e,"color.mode");return!(!t&&"primary"===i||!t&&"byExpression"===i&&(n||void 0===n))},persistentColorsShow:e=>!_u.getValue(e,"color.auto")&&"byDimension"===_u.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===_u.getValue(e,"color.useDimColVal")&&_u.setValue(e,"color.useDimColVal",!1),!_u.getValue(e,"color.auto")&&"byDimension"===_u.getValue(e,"color.mode")&&"libraryItem"===_u.getValue(e,"color.byDimDef.type"))},Vu=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:i,showLegend:o}=Hu;this.color={colorMode:{options(n){const i=[];return"explore"===e&&i.push({value:"auto",translation:"Common.Auto"}),i.push({value:"primary",translation:"properties.colorMode.primary"}),i.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),i.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&i.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),i}},persistentColors:{show:e=>i(e)?n(e)&&!_u.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:i}},this.legend={show:o,showTitle:{show(e){const t=_u.getValue(e,"color.auto");return _u.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===_u.getValue(e,"color.mode")&&!0===_u.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>_u.getValue(e,"legend.show")&&o(e)}}};function Wu(e){return new Vu(e)}const Uu={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}}}}}}},Bu=(e,t,n)=>{const i=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},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")})}}}}},Gu=(e,t,n,i)=>{const o=g({theme:i,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:Bu("axis.title",o,i)}}}: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:Bu("label.name",o,i)}}}: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:Bu("label.value",o,i)}}}: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:Bu("legend.title",o,i)}}}: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:Bu("legend.label",o,i)}}}:void 0}}},Ku=Wu("hard");const Ju=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(r(e,"color.mode","byDimension"),r(e,"color.byDimDef.activeDimensionIndex",0),r(e,"color.persistent",!1))},Zu=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},Xu=e=>{var t;const{flags:n,translator:i}=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?i.get("Simple.Color.Auto",i.get("properties.colorMode.byDimension")):i.get("Common.Custom")},change:Ju},colorMode:{options:Zu}}}}},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||r(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,i)=>!i.dimensionTitle,set(e,t,n,i,o){o.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:Uu,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:Gu(a,n,i,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:Ku.color.colorMode.options},persistentColors:{show:Ku.color.persistentColors.show}}},simpleColors:s,legend:{show:Ku.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Ku.legend.showTitle.show},dock:{show:Ku.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},Yu={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)}}}}}}},Qu={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:i}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=i.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},ed={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function td(e){return{type:"items",component:"accordion",items:{data:Yu,sorting:Qu,addons:ed,settings:Xu(e)}}}const nd=Wu("explore"),id=td();var od={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:id.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:id.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:nd.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&nd.color.useDimColVal.show(e))}}}}}}};const rd="slices";function ad(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function sd(e){return e.data.num.label}function ld(e){return e.data.radius.label}function cd(e,t,n,i){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?sd:ad;if("share"===e.dataPoint.labelMode)return ad;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?ld:sd;return sd}(n,i)(e,t)}function ud(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 dd{constructor({element:e,properties:t,effectHelper:n,Flag:i}){this.element=e,this.Flag=i,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"),i=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:r,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+r)/2,d=c.left-i.left+l.x*(s.x+a*Math.sin(u)),p=c.top-i.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",f=Math.sin(u)>0?"right":"left";return{title:ud(n),label:cd(n,this.chart.formatter,e,t),orientation:`${h}${f}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,i){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=le(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=i,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=le(e.options,{effect:null}),n?t.getProperties().then((e=>le(e,{effectPath:null,effectProperties:null,dataPoint:le(!0,{},e.originalModelSettings.dataPoint),legend:le(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class pd extends dd{init(e,t,n,i){return e.options=le(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===i.max?Promise.resolve():super.init(e,t,n,i)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(rd).data.items,n=e.effectProperties.min,i=e.effectProperties.max,o=[];let r=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<r[0]&&(r=[o,t]),i&&o>a[0]&&(a=[o,t])})),-1!==r[1]&&o.push(t[r[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 hd extends dd{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],i=this.chart.component(rd).data.items.map((e=>e.value)),o=i.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(rd).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===rd)).map(((n,i)=>{const o=cd(n,this.chart.formatter,e,t);return{text:`${ud(n)} (${o})`,value:i}}))}init(e,t,n,i){return e.options=le(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===i.selectedIndex?Promise.resolve():super.init(e,t,n,i)}}const fd="/effects/highlight-value",md="/effects/maxmin";var gd={isCompatible:({effectPath:e})=>e===md||e===fd,create:e=>e.effectPath===md?new pd(e):e.effectPath===fd?new hd(e):null};function vd(e){const t={},{components:n,tooltip:i}=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]})),i){var r;t.chart_tooltip_custom=!i.auto;const e=null===(r=i.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!i.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function yd(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 bd(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function xd({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){bd(e),yd(t),_c.addCallbackCustomTooltip(t)},move(e,t){bd(e),yd(t),_c.moveCallbackCustomTooltip(t,e)},remove(e,t){_c.removeCallbackCustomTooltip(t,e)},replace(e,t,n,i){bd(e),yd(i),_c.replaceCallbackCustomTooltip(i,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){yd(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 Sd=e=>e.qMax<=0,Cd=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(Sd));function wd(e){return{definition:td(e),softDefinition:od,support:{snapshot:Cd,export:Cd,exportData:!0,sharing:Cd,viewData:!0,effects:!0},effects:gd,extendMetrics:vd,importProperties:(t,n,i,o)=>{const r={layout:{templateId:n.templateId}};i.mapProperties(r);const a={defaultDimension:i.getDefaultDimensionProperties(),defaultMeasure:i.getDefaultMeasureProperties()},s=G.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xd(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>G.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function Ed(e){return{properties:{version:"1.28.11",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:au.STROKE.COLOR},cornerRadius:au.CORNER_RADIUS,innerRadius:au.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:[xd(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:i})=>{const o=G.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:xd(e),hypercubePath:i});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>G.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(K).forEach((t=>{e.add(K[t])}))}}(e.translator);const n=Sc();return{qae:Ed(e),ext:wd(e),component(){const e=function({picasso:e}){var t;const n=T(),i=q(),o=D(),[r,c]=P(),u=Rc(),d=I(),p=M(),h=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[f,m]=P(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:i,translator:o}){var r;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(r=e.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r||null===(r=r[0])||void 0===r||!r.qIsOneAndOnlyOne),action(e){i("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:h,isLassoActionActive:f,setIsLassoActionActive:m,translator:p}),N((()=>(r&&(r.interactions.lasso.active=()=>f),{...u.lasso})),[r,f,h,p.language()]),O((()=>{i.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),r=t.chart({element:i,data:[],settings:{}}),p=a({chart:r,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const h=s({legendScrollOffset:0,rotation:0});h.intercept("rotation",(e=>(h.get("rotation")+e)%(2*Math.PI))),h.onChanged("rotation",(()=>{r.update({partialData:!0})}));const f=l();return u.on("selections-start",(()=>{r.brush("selection").start()})),c({picasso:t,chart:r,selectionService:p,viewState:h,viewCache:f,interactions:u}),()=>{p.destroy(),r.destroy(),u.removeAllListeners(),delete u.select,h.intercept("rotation",void 0),h.onChanged("rotation",void 0)}}),[]),r}({picasso:n}),i=function({flags:e,picasso:t,instance:n}){const i=L(),o=A(),r=M(),a=q(),[s,l]=P(),c=z(),u=j(),m=F(),g=T(),v=_(),{qLocaleInfo:y}=$(),b=H();return O((()=>{if(!n)return;a.style.overflow="hidden";const s=d({app:o,translator:r}),x=p({picasso:n.picasso,model:i,app:o,translator:r,config:{auto:!1,key:"fill"}}),S=h({picassoInstance:n.picasso,plugins:u,pluginArgs:Zc(c)}),C=Jc({flags:e,layout:c,app:o,model:i,picasso:t,chart:n.chart,translator:r,localeInfo:y,embed:b,options:g}),w=f({theme:v,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),E=Yc({chart:n.chart,translator:r,layout:c,constraints:m,options:g,themeService:w,colorService:x,custom:C}),k=function({layout:e,themeService:t,colorService:n,flags:i}){const o=t.getStyles(),r=t=>{var n;return i.isEnabled("CLIENT_IM_3050")?null===(n=e.components)||void 0===n?void 0:n.find((e=>e.key===t)):void 0},a=(e,t)=>{const i=n.getPaletteColor;if(null!=e&&e.color&&i){const n=i(e);var o;return"none"===n&&e.index>0?null!==(o=null==e?void 0:e.color)&&void 0!==o?o:t:null!=n?n:t}return t};return{axis:{title:{getStyle:()=>{var e,t,n;const i=null===(e=r("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==i?void 0:i.fontFamily)&&void 0!==t?t:o.axis.title.fontFamily,fontSize:null!==(n=null==i?void 0:i.fontSize)&&void 0!==n?n:o.axis.title.fontSize,color:a(null==i?void 0:i.color,o.axis.title.color)}}}},label:{name:{getStyle:()=>{var e,t,n;const i=null===(e=r("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name;return{fill:a(null==i?void 0:i.color,o.label.name.color),fontSize:null!==(t=null==i?void 0:i.fontSize)&&void 0!==t?t:o.label.name.fontSize,fontFamily:null!==(n=null==i?void 0:i.fontFamily)&&void 0!==n?n:o.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n;const i=null===(e=r("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value;return{fill:a(null==i?void 0:i.color,o.label.value.color),fontSize:null!==(t=null==i?void 0:i.fontSize)&&void 0!==t?t:o.label.value.fontSize,fontFamily:null!==(n=null==i?void 0:i.fontFamily)&&void 0!==n?n:o.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n;const i=null===(e=r("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==i?void 0:i.fontFamily)&&void 0!==t?t:o.legend.title.fontFamily,fontSize:null!==(n=null==i?void 0:i.fontSize)&&void 0!==n?n:o.legend.title.fontSize,color:a(null==i?void 0:i.color,o.legend.title.color)}}},label:{getStyle:()=>{var e,t,n;const i=null===(e=r("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label;return{fontFamily:null!==(t=null==i?void 0:i.fontFamily)&&void 0!==t?t:o.legend.label.fontFamily,fontSize:null!==(n=null==i?void 0:i.fontSize)&&void 0!==n?n:o.legend.label.fontSize,color:a(null==i?void 0:i.color,o.legend.label.color)}}}}}}({layout:c,themeService:w,colorService:x,flags:e}),R=Xc({layout:c});l({alternativeService:s,colorService:x,disclaimerService:R,pluginService:S,themeService:w,tooltipService:E,styleService:k})}),[i,o,n,c,r.language(),m,g.direction,v.name()]),s}({flags:t,picasso:n,instance:e});ju({instance:e,services:i,picasso:n,flags:t}),function({instance:e}){const t=z(),n=T(),i=W();O((()=>{if(!e||!e.generateSettings)return;const{viewCache:i,chart:o,generateSettings:r}=e;o.update({settings:r()}),i.set("chartWidth",o.element.clientWidth),i.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[i.width,i.height])}({instance:e}),Fu({instance:e,services:i})}}}))}}}));
7
+ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules/react","@nebula.js/stardust","qlik-chart-modules","qlik-object-conversion"],(function(e){"use strict";var t,n,o,i,r,a,s,l,c,u,d,p,h,m,f,g,v,y,b,S,C,w,x,q,D,T,E,k,R,I,P,M,L,N,z,A,O,_,F,H;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){o=e.default},function(e){i=e.reactRenderer,r=e.axisTitleComponent,a=e.disclaimerComponent},function(e){s=e.useOptions,l=e.useElement,c=e.useSelections,u=e.useState,d=e.useLayout,p=e.useTranslator,h=e.useAction,m=e.useEffect,f=e.useModel,g=e.useApp,v=e.useStaleLayout,y=e.usePlugins,b=e.useConstraints,S=e.useTheme,C=e.useAppLayout,w=e.useEmbed,x=e.usePromise,q=e.useRect,D=e.onTakeSnapshot,T=e.useImperativeHandle},function(e){E=e.selectionService,k=e.storage,R=e.cache,I=e.getValue,P=e.setValue,M=e.disclaimerService,L=e.tooltipService,N=e.alternativeService,z=e.colorService,A=e.pluginService,O=e.themeService,_=e.debouncer,F=e.fontResolver},function(e){H=e.default}],execute:function(){var j={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_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","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 $={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function U(e){return $[e]||e}function V(e){return function(t,n,o){let i,r,a,s,l=[],c=!0;function u(){"function"==typeof i.enable&&(i.enable=i.enable.bind(r)()),i.enable&&(i.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(r));const n=U(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(o),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(r),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=U(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,i=e,r={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,r=null,i=null}}}}function W(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function B(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function K(){}var J=.7,Z=1/J,G="\\s*([+-]?\\d+)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,ee=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),te=new RegExp(`^rgb\\(${X},${X},${X}\\)$`),ne=new RegExp(`^rgba\\(${G},${G},${G},${Y}\\)$`),oe=new RegExp(`^rgba\\(${X},${X},${X},${Y}\\)$`),ie=new RegExp(`^hsl\\(${Y},${X},${X}\\)$`),re=new RegExp(`^hsla\\(${Y},${X},${X},${Y}\\)$`),ae={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 se(){return this.rgb().formatHex()}function le(){return this.rgb().formatRgb()}function ce(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ue(t):3===n?new he(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?de(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?de(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=ee.exec(e))?new he(t[1],t[2],t[3],1):(t=te.exec(e))?new he(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ne.exec(e))?de(t[1],t[2],t[3],t[4]):(t=oe.exec(e))?de(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ie.exec(e))?be(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?be(t[1],t[2]/100,t[3]/100,t[4]):ae.hasOwnProperty(e)?ue(ae[e]):"transparent"===e?new he(NaN,NaN,NaN,0):null}function ue(e){return new he(e>>16&255,e>>8&255,255&e,1)}function de(e,t,n,o){return o<=0&&(e=t=n=NaN),new he(e,t,n,o)}function pe(e){return e instanceof K||(e=ce(e)),e?new he((e=e.rgb()).r,e.g,e.b,e.opacity):new he}function he(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}function me(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}`}function fe(){const e=ge(this.opacity);return`${1===e?"rgb(":"rgba("}${ve(this.r)}, ${ve(this.g)}, ${ve(this.b)}${1===e?")":`, ${e})`}`}function ge(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ve(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ye(e){return((e=ve(e))<16?"0":"")+e.toString(16)}function be(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ce(e,t,n,o)}function Se(e){if(e instanceof Ce)return new Ce(e.h,e.s,e.l,e.opacity);if(e instanceof K||(e=ce(e)),!e)return new Ce;if(e instanceof Ce)return e;var t=(e=e.rgb()).r/255,n=e.g/255,o=e.b/255,i=Math.min(t,n,o),r=Math.max(t,n,o),a=NaN,s=r-i,l=(r+i)/2;return s?(a=t===r?(n-o)/s+6*(n<o):n===r?(o-t)/s+2:(t-n)/s+4,s/=l<.5?r+i:2-r-i,a*=60):s=l>0&&l<1?0:a,new Ce(a,s,l,e.opacity)}function Ce(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}function we(e){return(e=(e||0)%360)<0?e+360:e}function xe(e){return Math.max(0,Math.min(1,e||0))}function qe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}W(K,ce,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:se,formatHex:se,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Se(this).formatHsl()},formatRgb:le,toString:le}),W(he,(function(e,t,n,o){return 1===arguments.length?pe(e):new he(e,t,n,null==o?1:o)}),B(K,{brighter(e){return e=null==e?Z:Math.pow(Z,e),new he(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?J:Math.pow(J,e),new he(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new he(ve(this.r),ve(this.g),ve(this.b),ge(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:me,formatHex:me,formatHex8:function(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}${ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fe,toString:fe})),W(Ce,(function(e,t,n,o){return 1===arguments.length?Se(e):new Ce(e,t,n,null==o?1:o)}),B(K,{brighter(e){return e=null==e?Z:Math.pow(Z,e),new Ce(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?J:Math.pow(J,e),new Ce(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,o=n+(n<.5?n:1-n)*t,i=2*n-o;return new he(qe(e>=240?e-240:e+120,i,o),qe(e,i,o),qe(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new Ce(we(this.h),xe(this.s),xe(this.l),ge(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=ge(this.opacity);return`${1===e?"hsl(":"hsla("}${we(this.h)}, ${100*xe(this.s)}%, ${100*xe(this.l)}%${1===e?")":`, ${e})`}`}}));const De=Math.PI/180,Te=180/Math.PI,Ee=.96422,ke=.82521,Re=4/29,Ie=6/29,Pe=3*Ie*Ie,Me=Ie*Ie*Ie;function Le(e){if(e instanceof Ne)return new Ne(e.l,e.a,e.b,e.opacity);if(e instanceof He)return je(e);e instanceof he||(e=pe(e));var t,n,o=_e(e.r),i=_e(e.g),r=_e(e.b),a=ze((.2225045*o+.7168786*i+.0606169*r)/1);return o===i&&i===r?t=n=a:(t=ze((.4360747*o+.3850649*i+.1430804*r)/Ee),n=ze((.0139322*o+.0971045*i+.7141733*r)/ke)),new Ne(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ne(e,t,n,o){this.l=+e,this.a=+t,this.b=+n,this.opacity=+o}function ze(e){return e>Me?Math.pow(e,1/3):e/Pe+Re}function Ae(e){return e>Ie?e*e*e:Pe*(e-Re)}function Oe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _e(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fe(e,t,n,o){return 1===arguments.length?function(e){if(e instanceof He)return new He(e.h,e.c,e.l,e.opacity);if(e instanceof Ne||(e=Le(e)),0===e.a&&0===e.b)return new He(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Te;return new He(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new He(e,t,n,null==o?1:o)}function He(e,t,n,o){this.h=+e,this.c=+t,this.l=+n,this.opacity=+o}function je(e){if(isNaN(e.h))return new Ne(e.l,0,0,e.opacity);var t=e.h*De;return new Ne(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function $e(e){return Fe(e).l<70}function Ue(e,t){const n=Fe(e).l/100,o=Fe(t).l/100;return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)}function Ve(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}W(Ne,(function(e,t,n,o){return 1===arguments.length?Le(e):new Ne(e,t,n,null==o?1:o)}),B(K,{brighter(e){return new Ne(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ne(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 he(Oe(3.1338561*(t=Ee*Ae(t))-1.6168667*(e=1*Ae(e))-.4906146*(n=ke*Ae(n))),Oe(-.9787684*t+1.9161415*e+.033454*n),Oe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),W(He,Fe,B(K,{brighter(e){return new He(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new He(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return je(this).rgb()}}));var We={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const o=e.findShapes(t.selector).filter((e=>e.key===t.component));if(o.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let r=o[o.length-1];for(let e=0;e<o.length;e+=1){const t=o[e],n=r.attrs.fill,a=t.attrs.fill;if(Ue(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:o,outerRadius:s}=t.desc.slice;if(o=Math.max(o,r.desc.slice.innerRadius),s=Math.min(s,r.desc.slice.outerRadius),s>o){const t=Ve({r:s,a:e},n),r=Ve({r:o,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:r.x,y2:r.y,strokeWidth:1,opacity:.4,stroke:$e(a)?"#ccc":"#333"})}}r=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Be(e,t=!0){let n="";for(let t=0;t<e.length;t++){const o=e[t];n+=0===t?`M${o.x} ${o.y}`:`L${o.x} ${o.y}`,n+=" "}return t&&(n+="Z"),n}function Ke(e){const{size:t,angle:n}=e,o={x:e.x,y:e.y},i=t/2,r=e.x-i,a=e.y-i;let s=[{x:r,y:a+t},{x:r+i,y:a},{x:r+t,y:a+t},{x:r,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const o=Math.cos(t),i=Math.sin(t),r=(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:o*r.x-i*r.y,y:i*r.x+o*r.y},n)}(e,n,o))),{type:"path",fill:e.fill,d:Be(s)}}var Je={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 o=[];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=(i={r:t.offset,a:l},{x:(r=s).x+i.r*Math.sin(i.a),y:r.y-i.r*Math.cos(i.a)}),u=Ke({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},o.push(u)}}var i,r;return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ze(){const e=n();return e.use(o),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",V(e))};e.interaction("hammer",V(Hammer))}(t)),e.renderer("react-qcm",i),e.component("axis-title",r),e.component("disclaimer",a),e.component("pie-dividers",We),e.component("negative-indicators",Je),e}function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ye={};function Xe(){Xe.init.call(this)}Ye.isObject=function(e){return"object"==typeof e&&null!==e},Ye.isNumber=function(e){return"number"==typeof e},Ye.isUndefined=function(e){return void 0===e},Ye.isFunction=function(e){return"function"==typeof e};var Qe=Xe;Xe.EventEmitter=Xe,Xe.prototype._events=void 0,Xe.prototype._maxListeners=void 0,Xe.defaultMaxListeners=10,Xe.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Xe.prototype.setMaxListeners=function(e){if(!Ye.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Xe.prototype.emit=function(e){var t,n,o,i,r,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],Ye.isUndefined(n))return!1;if(Ye.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(o=arguments.length,i=new Array(o-1),r=1;r<o;r++)i[r-1]=arguments[r];n.apply(this,i)}else if(Ye.isObject(n)){for(o=arguments.length,i=new Array(o-1),r=1;r<o;r++)i[r-1]=arguments[r];for(o=(a=n.slice()).length,r=0;r<o;r++)a[r].apply(this,i)}return!0},Xe.prototype.addListener=function(e,t){var n;if(!Ye.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Ye.isFunction(t.listener)?t.listener:t),this._events[e]?Ye.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Ye.isObject(this._events[e])&&!this._events[e].warned)&&((n=Ye.isUndefined(this._maxListeners)?Xe.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Ye.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),Ye.isFunction(console.trace)&&console.trace()));return this},Xe.prototype.on=Xe.prototype.addListener,Xe.prototype.once=function(e,t){if(!Ye.isFunction(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},Xe.prototype.removeListener=function(e,t){var n,o,i,r;if(!Ye.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,o=-1,n===t||Ye.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Ye.isObject(n)){for(r=i;r-- >0;)if(n[r]===t||n[r].listener&&n[r].listener===t){o=r;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Xe.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],Ye.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},Xe.prototype.listeners=function(e){return this._events&&this._events[e]?Ye.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Xe.listenerCount=function(e,t){return e._events&&e._events[t]?Ye.isFunction(e._events[t])?1:e._events[t].length:0};var et=Ge(Qe);function tt(){const e={};var t;return t=e,Object.keys(et.prototype).forEach((e=>{t[e]=et.prototype[e]})),et.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}var nt=Object.prototype.hasOwnProperty,ot=Object.prototype.toString,it=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,at=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ot.call(e)},st=function(e){if(!e||"[object Object]"!==ot.call(e))return!1;var t,n=nt.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&nt.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||nt.call(e,t)},lt=function(e,t){it&&"__proto__"===t.name?it(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ct=function(e,t){if("__proto__"===t){if(!nt.call(e,t))return;if(rt)return rt(e,t).value}return e[t]},ut=function e(){var t,n,o,i,r,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)o=ct(s,n),s!==(i=ct(t,n))&&(u&&i&&(st(i)||(r=at(i)))?(r?(r=!1,a=o&&at(o)?o:[]):a=o&&st(o)?o:{},lt(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&lt(s,{name:n,newValue:i}));return s},dt=Ge(ut);const pt=[["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}]],ht={};pt.forEach((([e,{width:t,height:n}])=>{ht[e]={width:t,height:n}}));const mt={getLayoutModes:()=>ht,getLayoutMode(e,t){let n;for(n=0;n<pt.length;++n)if(e>=pt[n][1].width&&t>=pt[n][1].height)return pt[n][0];return"SPARK"}};function ft(e,t){return{layoutModes:mt.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 gt=/^[A-Z][A-z0-9_]*$/i,vt={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},yt={setValue:(e,t,n)=>{if(!t)return!1;const o=t.split("."),i=o[o.length-1];let r,a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const o=t.split(".");let i,r=e;if(void 0===r)return n;for(i=0;i<o.length;++i){if(void 0===r[o[i]])return n;r=r[o[i]]}return r},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||gt.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>vt.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function bt(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const St=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Ct=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),wt=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),xt={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>St.test(e),isRtlChar:e=>Ct.test(e)||wt.test(e),detectTextDirection(e){const t=e?e.length:0;let n,o;for(n=0;n<t;n++){if(o=e[n],xt.isLtrChar(o))return"ltr";if(xt.isRtlChar(o))return"rtl"}return"ltr"}},qt={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 o=t.data,i=e.resources.formatter,r=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&o.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(o.fillTooltip.value):o.fillTooltip.label?o.fillTooltip.label:o.fillTooltip.value,!n.coloring.label){const e=r(o.fillTooltip.source.key).field(o.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===o._fillColor?qt.getNodeFillColor(t):o._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=xt.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getDescriptionRow(e,t){const n=xt.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getNMoreRow(e,t,n){const o=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:o,style:{"font-weight":"bold","text-align":n?"right":"left",direction:xt.detectTextDirection(o)},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 o=xt.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],r=xt.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:o}},{content:n?[t.color.value,qt.getColorSymbol(e,t)]:[qt.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:r,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,o,i=!1){const r=xt.detectTextDirection(e.label),a=o?[":",e.label]:[e.label,":"],s=xt.detectTextDirection(e.value);let l;return l=i?o?[e.value,qt.getColorSymbol(t,n)]:[qt.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":o?"right":"left",direction:r}},{content:l,style:{"text-align":o?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Dt(e){const t=parseInt(e,10);if(!isNaN(t))return t}const Tt=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Et(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const o=n.themeService.getStyles(),i=n.styleService.label.value.getStyle(),r=i.fill===o.label.value.color;return{position:e.position,justify:e.justify,fill:r&&!e.onBackground?Tt(t):i.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:Dt(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function kt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var Rt,It;1===(Rt=kt).length&&(It=Rt,Rt=function(e,t){return kt(It(e),t)});var Pt="$";function Mt(){}function Lt(e,t){var n=new Mt;if(e instanceof Mt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var o,i=-1,r=e.length;if(null==t)for(;++i<r;)n.set(i,e[i]);else for(;++i<r;)n.set(t(o=e[i],i,e),o)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Nt(){}Mt.prototype=Lt.prototype={constructor:Mt,has:function(e){return Pt+e in this},get:function(e){return this[Pt+e]},set:function(e,t){return this[Pt+e]=t,this},remove:function(e){var t=Pt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Pt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Pt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Pt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Pt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Pt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Pt)return!1;return!0},each:function(e){for(var t in this)t[0]===Pt&&e(this[t],t.slice(1),this)}};var zt=Lt.prototype;Nt.prototype={constructor:Nt,has:zt.has,add:function(e){return this[Pt+(e+="")]=e,this},remove:zt.remove,clear:zt.clear,values:zt.keys,size:zt.size,empty:zt.empty,each:zt.each},dt.bind(null,!0);const At=[[2,4,6],[2,4],[3]],Ot=[,[,,[[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 _t(e,t,n){const o=e?e.length:0;let i,r=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<o;i++)r=Math.min(r,e[i]/e[i-1]);void 0!==n&&(r=Math.min(r,n/e[o-1])),e.splice(0,0,r)}function Ft(e,t,n){let o;const i=e?e.length:0;for(o=0;o<i;o++)_t(e[o],t,n)}!function(){let e,t;for(Ft(At,1,10),e=0;e<Ot.length;e++)if(Ot[e])for(t=0;t<Ot[e].length;t++)Array.isArray(Ot[e][t])&&Ft(Ot[e][t])}();var Ht={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","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 jt(e){const{qHyperCube:t,...n}=e,{qAxisData:o,qDataPages:i,qStackedDataPages:r,qTreeDataPages:a,...s}=t,l=dt(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Ht;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==I(l,e)&&P(l,e,null);else{const e=t[0],n=t[1].split("].")[1];I(l,e,[]).forEach((e=>{void 0!==I(e,n)&&P(e,n,null)}))}})),l}var $t={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:o}){return i=>{if(e||t||n){var r;if("line"===i.type)return null!==(r=i.tickValue)&&void 0!==r?r:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(o){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:o,dock:i}){return({currentNodes:r,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"===i&&r.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==i&&"right"!==i||r.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"!==i&&"bottom"!==i||r.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?r.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||o?r.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):r.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 o=t.x-n.x,i=t.y-n.y;0===o&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=o,e.y-=i):e.transform=`translate(${-o}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const o=t.x-n.x;0===t.y-n.y&&0===o||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 o=t.x-n.x,i=t.y-n.y;0===o&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=o):(e.x-=o,e.y-=i)}))},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 o=t.x-n.x,i=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-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=o,e.x2-=o);else{const t="x"===e.major.p?o/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:o/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 o=t.x-n.x;0===t.y-n.y&&0===o||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 o=t.x-n.x,i=t.y-n.y;0===o&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=o,e.cy-=i;break;case"rect":e.x-=o,e.y-=i;break;case"path":e.transform=`translate(${-o}, ${-i})`}}))}},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 o=t.x-n.x,i=t.y-n.y;0===o&&0===i||e.forEach((e=>{"image"===e.type?(e.x-=o,e.y-=i):(e.cx-=o,e.cy-=i)}))}},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 o=t.x-n.x,i=t.y-n.y,r=t.width-n.width,a=t.height-n.height;let s=-o,l=-i;e.forEach((e=>{switch(e.dock){case"right":o>0&&(s=t.width);break;case"left":r<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>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=jt(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=jt(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Ut(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"}var Vt=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,o=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=o.length):(n=arguments[1],t=arguments[2]),t&&o?(o.length>n&&(o=o.substr(0,n)),new e(o,t)):null}},Wt=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,o){let i,r;if(t.length===n)return r=this._value,this.setValue(o),r;const a=t.charAt(n);return this._nextMap?(i=this._nextMap[a],i||(i=new e,this._nextMap[a]=i)):(this._nextMap={},i=new e,this._nextMap[a]=i),i.put(t,n+1,o)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return Vt.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return Vt.newInstanceIfNeeded(e,t,this._value);const o=n.getLongestMatch(e,t+1);return o||Vt.newInstanceIfNeeded(e,t,this._value)}},Bt=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new Wt);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};(()=>{const e=[],t=[],n=new Bt;let o,i,r;for(o in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[o]&&e.hasOwnProperty(o)&&(t[e[o]]=o);for(i in t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r=t[i].toLowerCase().substr(1),n.put(r,String.fromCharCode(i)))})(),"undefined"!=typeof document&&document.createElement("div");for(let e=0;e<255;e++)e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e.toString(16);const Kt={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 Jt(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Zt={getImageSize(e,t){let n;function o(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,o()}const r={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=r[t]*(n>l?1:n/l),u=r[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},o()):(e={height:c,width:u},o()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function Gt(e,t,n){let o=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,o;let i,r,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!==(o=e.session)&&void 0!==o&&null!==(o=o.config)&&void 0!==o&&o.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,r=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),r+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(o,i),o=o.replace(/"/g,'\\"'),o=o.replace(/'/g,"\\'"),o=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(o,i));const{height:r,width:a,imageError:s}=await Zt.getImageSize(o,t);return{src:o,size:t,height:r,width:a,imageError:s}}async function Yt(e,t,n,o){var i,r,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const m=(null===(r=o.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];let f;if(-1!==h&&m[h]&&(f=m[h]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Gt(u,d,s);if("url"===p)return async function(e,t,n,o,i){let r,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Jt(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await Zt.getImageSize(t,o);r={src:t,size:o,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await Zt.getImageSize(a,o);r={src:a,size:o,height:e,width:t,imageError:n}}return r}(s,l,u,d,f);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&f&&f.label){return async function(e,t,n,o){let i;const r=o.label,a=`qmem://${t.qFallbackTitle}/${r}`;if(Jt(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:o,width:r,imageError:a}=await Zt.getImageSize(e,n);i={src:e,size:n,height:o,width:r,imageError:a}}}catch(e){}return i}(s,n[h],d,f)}return[]}const Xt={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:o}){const i=t,r=[];for(let t=0;t<i.length;t++)r.push(Yt(e,o,n,i[t]));const a=await Promise.all(r);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},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}},Qt={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:o}){let i=t;return i=await Xt.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:o}),i},checkIfPromisesExist:({customTooltipModel:e})=>Xt.checkIfPromisesExist({customTooltipModel:e})};const en=(e,t)=>{var n,o,i;const r=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:Kt.CHART.CHART_PARENT_TYPE,qId:Kt.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:r,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},tn=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:Kt.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const nn={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,o;const i=null!==(n=null===(o=t.tooltip)||void 0===o||null===(o=o.chart)||void 0===o||null===(o=o.style)||void 0===o?void 0:o.size)&&void 0!==n?n:"medium",r=Kt.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:r,height:r,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Kt.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":r}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:o,customTooltipModel:i,rtl:r})=>{var a;const s=i,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 nn.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const o=n,i=Kt.CHART.STATE,r=t.qStateName;o.miniChartToken.alternateState||(o.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,r),o.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var o;const i=n;null!==(o=i.miniChartToken.sessionObj)&&void 0!==o&&o.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const r=Kt.CHART.STATE,a=en(t,r),s=await e.createSessionObject(a),l=tn(t);if(s.id!==Kt.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});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!==o?o:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===o&&n.length>0){var h,m;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(m=e.source)&&void 0!==m&&m.field){var f;const t=null==e||null===(f=e.source)||void 0===f?void 0:f.field.split("/"),n=t[t.length-1],o=void 0!==e.value?[e.value]:[];o.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),o,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Kt.CHART.CONTAINER_ID),g={direction:r?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.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 nn.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(nn.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Kt.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,o=Kt.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(o)}({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 on(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function rn(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:o}=Kt.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[o]=!0,i}function an(e){const t=rn();return e.filter((e=>t[e.id]))}const sn={getNodes(e,t){const n=function(e,t){let n=0,o=0;e.center?(n+=e.center.x,o+=e.center.y):(n+=e.clientX,o+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:o-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,o=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var r,a,s,l;const c=null!==(r=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==r?r:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],o.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const o=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return o&&o.value===c.value&&o.label===c.label}));t.length>0&&(o=o.concat(t[0]))}})),o},displayTooltip(e,t,{nodes:n,opts:o={},customTooltipModel:i,extractedNodes:r=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=sn.getAttrExprData(a);r.length||n.length?Qt.handlePromises({customTooltipModel:i,nodes:sn.getDataNodes(s,r.length>0?r:n),attrExps:l,opts:o}).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!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&nn.hide({app:o.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Qt.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const o=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return o[i]||(o[i]=[]),o[i]},getAttrExprData(e){var t;let n=[],o="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var r;const t=i.length-1;n=(null===(r=e.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r||null===(r=r[t])||void 0===r?void 0:r.qAttrExprInfo)||[],o=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:o}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[Kt.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let o=n.qLayoutExclude;o||(n.qLayoutExclude={quarantine:{}},o=n.qLayoutExclude),o.quarantine||(o.quarantine={}),o.quarantine[Kt.CUSTOM.QUARANTINE]=[],e.forEach((e=>{o.quarantine[Kt.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=o}(an(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[Kt.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Kt.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=on(e);if(!n)return;const o=void 0!==t?t:n.length-1;if(!n[o])return;const i=this.getAttrExps(e,n[o]);if(0===an(i).length){var r;const t=(null===(r=e.qLayoutExclude)||void 0===r||null===(r=r.quarantine)||void 0===r?void 0:r.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[o].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[o].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let o=[];const i=on(e)||[];[...i,t].forEach((e=>{const t=an(e.qAttributeExpressions||[]);t.length>0&&(o=t)}));const r=rn(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!r[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(o));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:xt.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=xt.detectTextDirection(e.src),o=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){o.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;o.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,o),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function ln(e,t,n,o){var i;const r=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[o])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[o]?e.qSubNodes[o].qAttrExps:e.qAttrExps;return s?(r.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,r=void 0===i?"NaN":function(e,t){let n;switch(e.id){case Kt.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Kt.CUSTOM.TITLE:case Kt.CUSTOM.DESCRIPTION:case Kt.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${o}/qAttrExprInfo/${t}`},label:r,value:"value"})})),a):a}const cn={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,o="qDimensionInfo";return{field:`${o}/${n}`,value:t=>ln(t,e,o,n)}}};const un={getCustomAttrExps(e,t,n){var o;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},r=(null===(o=t.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];if(Number.isNaN(r))return i;return function(e,t,n,o){const i={[Kt.CUSTOM.TITLE]:!0,[Kt.CUSTOM.DESCRIPTION]:!0},{attrExps:r,fieldPath:a}=sn.getAttrExprData(e);return 0===t.length||0===r.length||""===a||r.forEach(((e,r)=>{const s=t[r];if(e.id===Kt.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${r}`).formatter()(s.value);o.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&o.customTooltipInfoAttrExpsArr.push({...e.id===Kt.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),o}(n,r.map((t=>qt.getMeasure(e,t))),e,i)}};function dn({nodes:e,layout:t,dataset:n}){const o=function(e,t,n){const o=[];return e.forEach((e=>{o.push(un.getCustomAttrExps(n,e,t))})),o}(e,t,n);return o.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function pn(e){const t=Kt.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:o,qLabelExpression:i,cId:r}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:o,qLabelExpression:i,cId:r}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:o,qLabelExpression:i,cId:r}}function hn(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var mn={attrExpr:{migrateProperties(e){var t,n;const o=dt(!0,{},e),i=(null===(t=o.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let r=hn(o);return r=function(e,t){return t.concat(e.map((e=>pn(e))))}(i,r),function(e,t){var n;const o=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;o[o.length-1].qAttributeExpressions=e}(r,o),null===(n=o.tooltip)||void 0===n||delete n.data,o},getPatches(e){var t,n;const o=(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)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,r=function(e,t,n){let o=e.length;const i=[];return t.forEach((e=>{const t=pn(e),r=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${o}`,qOp:"add",qValue:r}),o++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(hn(e),o,i);return r},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var o,i,r;const a=(null===(o=t.qHyperCube)||void 0===o?void 0:o.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(r=t.qMeta)||void 0===r||null===(r=r.privileges)||void 0===r?void 0:r.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const o=this.migrateProperties(t);e.setProperties(o).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const o=this.getPatches(t);e.applyPatches(o,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:fn}=Kt;function gn({flags:e,layout:t,app:n,model:o,picasso:i,chart:r,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:o,chart:i,translator:r,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:o,chart:i,translator:r,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:sn,miniChartToken:{},embed:s}}({layout:t,app:n,model:o,picasso:i,chart:r,translator:a,localeInfo:s,embed:l}),p="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.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=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&I(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var o,i;const r=dn({dataset:e,nodes:n,layout:t});return{title:null===(o=r.customTooltipInfoAttrExpsArr.find((e=>e.id===fn.TITLE)))||void 0===o?void 0:o.title,description:null===(i=r.customTooltipInfoAttrExpsArr.find((e=>e.id===fn.DESCRIPTION)))||void 0===i?void 0:i.value,measures:r.customTooltipAttrExpsArr}},hasImages:()=>sn.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>sn.getImageRow(e,{h:t,rtl:p}),addImages:({nodes:o})=>{const i=sn.getDataNodes(r,o),{attrExps:a}=sn.getAttrExprData(t);return Qt.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,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&&l&&"function"==typeof(null==o?void 0:o.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>nn.createContainer({layout:t,ctx:{h:e,rtl:p}}),createLimitationRow:()=>sn.getFooterRow(a.get("properties.tooltip.notselectedmessage"),p),show:({nodes:e,properties:t})=>nn.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:p}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>nn.hide({app:n,customTooltipModel:d}),destroy:()=>nn.destroyVisualization({customTooltipModel:d})}}}function vn(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function yn({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)),o=({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 M({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=yt.getValue(e,"qHyperCube.qSize.qcy");return yt.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o});return 0===n({rows:i,encodings:o}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const r=t({ds:e,encodings:i}),a=n({rows:r,encodings:i});return 0===o({rows:a,encodings:i}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const r=t({ds:e,encodings:i}),a=n({rows:r,encodings:i}),s=a,l=o({rows:a,encodings:i});return s.length!==l.length}}}}})}function bn({chart:e,translator:t,layout:n,constraints:o,options:i,themeService:r,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=r.getStyles();return L({chart:e,translator:t,config:{rtl:c,enable:()=>!o.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},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:o,formatter:i,create:r,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:o,nodes:n}):{},h=[];u&&h.push(r.text({value:u,style:{bold:!0}})),d&&h.push(r.text({value:d}));const m=s.hideBasic();if(m&&!p.length&&(u||d)||h.push(r.text({value:c.data.label,style:{bold:!0}})),!m){h.push(r.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(r.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(r.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(r.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}p&&h.push(...p.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(r.raw({value:s.chart.createLimitationRow()}))):h.push(r.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:f}=c.data;return s.isEnabled()&&f&&h.push(...f.map((t=>r.raw({value:s.createImageRow({value:t,h:e})})))),h},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 Sn=e=>"[object Object]"===Object.prototype.toString.call(e),Cn=e=>Array.isArray(e);function wn(e,t){if(e===t)return!0;if(Cn(e)){if(!Cn(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!wn(e[n],t[n]))return!1;return!0}if(Sn(e)){if(!Sn(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++){if(!Object.hasOwn(t,n[o]))return!1;if(!wn(e[n[o]],t[n[o]]))return!1}return!0}return e===t}function xn({enable:e=!0}={}){const t=f(),n=()=>Date.now().toString()+Math.random(),[o,i]=u(n()),r={properties:void 0};return m((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const o=()=>{t.getEffectiveProperties().then((e=>{const t=dt(!0,{},e);if(!r.properties)return void(r.properties=t);const o=function(e,t){var n,o,i,r;const a={properties:!1,exclude:!1};if(e===t)return a;const s=dt(!0,{},e),l=dt(!0,{},t);return a.exclude=!wn(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o?void 0:o.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r||delete r.qLayoutExclude,a.properties=!wn(s,l),a}(r.properties,t);r.properties=t,o.exclude&&!o.properties&&i(n())}))};return t.on("changed",o),o(),()=>{t.removeListener("changed",o)}}),[e]),o}function qn({scaleKey:e,legend:t,onEdited:n}){const{layout:o}=t,{dock:i}=o||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const Dn=.8,Tn=.55,En={CORNER_RADIUS:0,INNER_RADIUS:Tn,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},kn=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var o,i;let r=Dn,a=0;const s=null!==(o=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==o?o:Tn;e.donut.showAsDonut&&(r=Dn-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*r+a}}:Dn,Rn=({layout:e},t,n)=>{var o,i;if(!e.donut.showAsDonut)return 0;const r=null!==(o=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==o?o:Tn;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=Dn-r,n=r;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:r},In=({layout:e},t)=>{var n,o,i,r,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)||"",h=t.encodings.slice.outerRadius,{formatter:m}=t.chart,f=yt.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const o=t.ds.field(e).raw();return{field:e,label:!o.isCustomFormatted&&(o.qIsAutoFormat||"U"===o.qNumFormat.qType)?e=>m(n)(e.qNum):e=>e.qText}}const v=(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!==f?cn.getNode(e,{dimensionCount:f}):void 0,radius:h?g(h,"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:Rn({layout:e},t,v),fill:t.colorService.getColor(),strokeWidth:null!=v&&null!==(n=v.style)&&void 0!==n&&n.strokeWidth?En.STROKE.WIDTH[v.style.strokeWidth.toUpperCase()]:En.STROKE.WIDTH.NONE,stroke:null!==(o=null==v||null===(i=v.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==o?o:En.STROKE.COLOR,outerRadius:kn({layout:e},t,v),cornerRadius:null!==(r=null==v||null===(a=v.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==r?r:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function Pn({layout:e},t){var n,o;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],r=null!==(n=null==i||null===(o=i.style)||void 0===o?void 0:o.innerRadius)&&void 0!==n?n:Tn,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=Dn-r,n=r;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function Mn(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 Ln({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}}}function Nn(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function zn(e){return e.node.data.num.label}function An(e){return e.node.data.radius.label}function On(e,t,n){if(e.dataPoint.auto)return n?zn:Nn;if("share"===e.dataPoint.labelMode)return Nn;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?An:zn}return null}function _n({data:e}){return e?e.label:""}function Fn(e){const t=parseInt(e,10);if(!isNaN(t))return t}function Hn(e){var t,n;const o=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==o||null===(n=o.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:Tn)>.3}function jn({node:e,data:t}){return dt({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function $n(e,t,n){const o=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:o.fill}],fontSize:Fn(o.fontSize),fontFamily:o.fontFamily,label:_n,linkData:({node:e,data:t})=>dt({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(On(e,t,!1)){const o=function(e,t,n){return{label:On(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Hn(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Hn(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),r=Et(dt(t,o),n.theme);r.linkData=jn,i.push(r)}return{key:"pie-labels",type:"labels",renderer:Ut(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Un({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const o=On(e,t,!0),i=(r=n.theme,e=>r.getContrastingColorTo(e.node.attrs.fill));var r;const a=t.themeService.getStyles(),s=t.styleService.label.name.getStyle(),l=t.styleService.label.value.getStyle(),c=s.fill===a.label.name.color,u=l.fill===a.label.value.color;return{key:"pie-labels",type:"labels",renderer:Ut(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:Fn(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:_n,linkData:({data:e})=>e},{fontSize:Fn(l.fontSize),fontFamily:l.fontFamily,fill:u&&!e.donut.showAsDonut?i:l.fill,label:o,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):$n(e,n,t))}const Vn=(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 o=(this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type))||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 Wn(e,t){const n=t.element.getBoundingClientRect();let o,i;return e.center?(({x:o}=e.center),({y:i}=e.center)):(o=e.clientX,i=e.clientY),{x:o-n.left,y:i-n.top}}function Bn(e,t){const n=t.component("slices");if(!n)return!1;const{x:o,y:i}=Wn(e,t),r=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*Dn;return(r-o)**2+(a-i)**2<=s**2}const Kn=(e,t,{requireFailure:n,recognizeWith:o}={})=>({type:"Tap",requireFailure:n,recognizeWith:o,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:o}=n.srcEvent;if(o&&("INPUT"===o.nodeName||o.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(o&&o.hasAttribute("data-action")&&o.hasAttribute("data-component-key"))return void this.chart.component(o.getAttribute("data-component-key")).emit(o.getAttribute("data-action"));if(o&&o.children&&o.children[0]&&"legend-cat"===o.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=Wn(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const r=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});r.length&&(this.chart.brushFromShapes(r,{components:[{key:r[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Jn=(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 o=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(o)&&o.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()}}}),Zn=(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 o=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return o.some((e=>"slices"===e.key))&&!e.isLocked(o)}},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 Gn(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Bn(t,this.chart)){const o=Math.sign(-t.deltaY);e.viewState.set("rotation",o*(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 Yn=(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()&&Bn(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}}}),Xn=(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}}}),Qn=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Yn(e,{}),Kn(e,t,{}),...n]:[Vn(e,{}),Zn(e,{}),Yn(e,{}),Jn(e,{}),Xn(e,{}),Kn(e,t,{}),...n]});function eo(e,t,n){const o=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const r=t.tooltipService.getInteractions();return[Qn(t,o,r.gestures),Gn(t),r.native]}function to({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 no({layout:e},t,n){var o;if(!e.dimensionTitle)return!1;const i=t.alternativeService.getAlternatives(),r=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:i.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,noModelDependencies:null==t||null===(o=t.flags)||void 0===o?void 0:o.isEnabled("VIZ_252_DATA_TITLE_OUTSIDE_SENSE"),skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:r.color,fontFamily:r.fontFamily,fontSize:r.fontSize}}}}function oo({layout:e,context:t,selectionService:n},o={}){const i=function({layout:e}={},t={}){const n={};return dt(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&dt(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},o),r={scales:i};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:o}=t,{translator:i}=e,{fontFamily:r}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",renderer:"react-qcm",layout:{dock:n.alignment},settings:{isRTL:o,label:i.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:r}}}(o,t);if(o.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=o.colorService.getLegend({eventName:"legend",key:"legend",viewState:o.viewState,chart:o.chart,styleReference:"object.pieChart",styleOverrides:{title:o.styleService.legend.title.getStyle(),label:o.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[In({layout:e},o),Pn({layout:e},o),Mn(o),Ln({layout:e},o),no({layout:e},o,t),...c.components,qn({scaleKey:"fill",legend:c.components[0]||{},onEdited:o.onSelect}),{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}}},{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}}},Un({layout:{components:e.components,dataPoint:dt({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},o),...o.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:eo(n,o,t),scales:i,components:o.pluginService.extendComponents(a),palettes:o.colorService.getPalettes(),formatters:to({settings:r},o),strategy:ft(0,o)}}function io({instance:e,services:t,picasso:n,flags:i}){const r=s(),a=f(),l=g(),u=p(),d=S(),h=v(),y=c(),w=b(),{qLocaleInfo:q}=C(),D=xn({enable:h&&!h.snapshotData}),[T]=x((()=>{if(!t)return Promise.resolve();mn.attrExpr.updateProperties(a,h);const e=({getUseBaseColors:e})=>({theme:d,legendProps:h.legend,layout:h,localeInfo:q,hc:h.qHyperCube,colorProps:{...h.color,useBaseColors:e(h)}});return Promise.resolve(a&&!h.snapshotData?a.getEffectiveProperties():{}).then((async n=>Promise.all([t.colorService.initialize({createConfig:e}),Promise.resolve(n),t.pluginService.initialize(),t.alternativeService.initialize({properties:n})])))}),[t,D]);m((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(h)}),[h]),m((()=>{if(!e||!T)return;const{chart:s,viewState:c,interactions:p,viewCache:m}=e,{alternativeService:f,colorService:g,disclaimerService:v,pluginService:b,themeService:S,tooltipService:C,styleService:x}=t,D=r.viewState||{};h.snapshotData||(c.preventSet("legendScrollOffset",D.legendScrollOffset||0),c.preventSet("rotation",D.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))}(h,c),C.expando.set("properties",T[1]);const E=n.data("q")({key:"qHyperCube",data:h.qHyperCube,config:{localeInfo:q}}),k=[{type:"q",key:"qHyperCube",data:h.qHyperCube,config:{localeInfo:q}},...g.getData()],R={slice:{arc:"qMeasureInfo/0"}};h.qHyperCube.qMeasureInfo.length>1&&(R.slice.outerRadius="qMeasureInfo/1"),v.initialize({args:{ds:E,encodings:R}});const I=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:h.qHyperCube,config:{localeInfo:q}}),R),P=y?()=>{const e=s.brush("selection");o.selections(e,{},h).forEach((e=>{y.select(e)}))}:()=>{},M=h.snapshotData&&!r.freeResize?{width:(h.snapshotData.content.size||h.snapshotData.object.size).w,height:(h.snapshotData.content.size||h.snapshotData.object.size).h}:void 0,L=t=>e.selectionService.getIsSelectionLocked(t),N=()=>oo({layout:h,context:{rtl:"rtl"===r.direction,theme:d,constraints:w},selectionService:e.selectionService},{picasso:n,ds:E,model:a,app:l,chart:s,onSelect:P,isLocked:L,interactions:p,constraints:w,translator:u,viewState:c,dataRowCount:I,encodings:R,alternativeService:f,colorService:g,disclaimerService:v,pluginService:b,themeService:S,styleService:x,tooltipService:C,debouncer:_,properties:T[1],selections:y,logicalSize:M,flags:i,viewCache:m,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:o,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!$t.propertiesHaveChanged({viewCache:n,layout:o})}({viewState:c,options:r,layout:h,viewCache:m,chart:s})}});e.generateSettings=N;const z=N();s.update({data:k,settings:z}),m.set("chartWidth",s.element.clientWidth),m.set("chartHeight",s.element.clientHeight),m.set("hasZeroLine",z.components.filter((e=>"zeroLine"===e.key)).length>0),$t.cacheProperties({viewCache:m,layout:h}),r.effect&&h.effectProperties?r.effect.update(h,s,{encodings:R}):h.effectPath||s.brush("highlight").end()}),[e,T,r.direction,r.effectProperties,w,d.name(),u.language()])}function ro({instance:e,services:t}){const n=l(),o=v();D((i=>{if(!(o.snapshotData&&o.snapshotData.content&&o.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}}(i,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:o}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:bt(t,"legend-cat"),rotation:n.get("rotation")},o.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:i,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),T((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:bt(e.chart,"legend-cat")})})),[e])}const ao={setValue(e,t,n){if(!t)return;const o=t.split(".");let i=e;const r=o[o.length-1];let a;for(a=0;a<o.length-1;++a)null==i[o[a]]&&(i[o[a]]=Number.isNaN(+o[a+1])?{}:[]),i=i[o[a]];void 0!==n?i[r]=n:delete i[r]},getValue(e,t,n){const o=t.split(".");let i,r=e;if(void 0===r)return n;for(i=0;i<o.length;++i){if(null==r[o[i]])return n;r=r[o[i]]}return r}},so={getDimensions:e=>ao.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>ao.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>ao.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>ao.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=ao.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=ao.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 lo={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>so.getNumMeasures(e)>=1},showLegend:e=>{const t=ao.getValue(e,"color.auto"),n=ao.getValue(e,"color.expressionIsColor"),o=ao.getValue(e,"color.mode");return!(!t&&"primary"===o||!t&&"byExpression"===o&&(n||void 0===n))},persistentColorsShow:e=>!ao.getValue(e,"color.auto")&&"byDimension"===ao.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===ao.getValue(e,"color.useDimColVal")&&ao.setValue(e,"color.useDimColVal",!1),!ao.getValue(e,"color.auto")&&"byDimension"===ao.getValue(e,"color.mode")&&"libraryItem"===ao.getValue(e,"color.byDimDef.type"))},co=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:o,showLegend:i}=lo;this.color={colorMode:{options(n){const o=[];return"explore"===e&&o.push({value:"auto",translation:"Common.Auto"}),o.push({value:"primary",translation:"properties.colorMode.primary"}),o.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),o.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&o.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),o}},persistentColors:{show:e=>o(e)?n(e)&&!ao.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:o}},this.legend={show:i,showTitle:{show(e){const t=ao.getValue(e,"color.auto");return ao.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===ao.getValue(e,"color.mode")&&!0===ao.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>ao.getValue(e,"legend.show")&&i(e)}}};function uo(e){return new co(e)}const po={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}}}}}}},ho=(e,t,n)=>{const o=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},mo=(e,t,n,o)=>{const i=F({theme:o,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:ho("axis.title",i,o)}}}: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:ho("label.name",i,o)}}}: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:ho("label.value",i,o)}}}: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:ho("legend.title",i,o)}}}: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:ho("legend.label",i,o)}}}:void 0}}},fo=uo("hard");const go=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(P(e,"color.mode","byDimension"),P(e,"color.byDimDef.activeDimensionIndex",0),P(e,"color.persistent",!1))},vo=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},yo=e=>{var t;const{flags:n,translator:o}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,r=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?o.get("Simple.Color.Auto",o.get("properties.colorMode.byDimension")):o.get("Common.Custom")},change:go},colorMode:{options:vo}}}}},s={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||P(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,o)=>!o.dimensionTitle,set(e,t,n,o,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:po,simpleLabels:s,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:mo(r,n,o,i),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:fo.color.colorMode.options},persistentColors:{show:fo.color.persistentColors.show}}},simpleColors:a,legend:{show:fo.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:fo.legend.showTitle.show},dock:{show:fo.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},bo={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)}}}}}}},So={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:o}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=o.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},Co={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function wo(e){return{type:"items",component:"accordion",items:{data:bo,sorting:So,addons:Co,settings:yo(e)}}}const xo=uo("explore"),qo=wo();var Do={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:qo.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:qo.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:xo.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&xo.color.useDimColVal.show(e))}}}}}}};const To="slices";function Eo(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function ko(e){return e.data.num.label}function Ro(e){return e.data.radius.label}function Io(e,t,n,o){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?ko:Eo;if("share"===e.dataPoint.labelMode)return Eo;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Ro:ko;return ko}(n,o)(e,t)}function Po(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 Mo{constructor({element:e,properties:t,effectHelper:n,Flag:o}){this.element=e,this.Flag=o,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.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"),o=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:r,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+r)/2,d=c.left-o.left+l.x*(s.x+a*Math.sin(u)),p=c.top-o.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",m=Math.sin(u)>0?"right":"left";return{title:Po(n),label:Io(n,this.chart.formatter,e,t),orientation:`${h}${m}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,o){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=dt(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=o,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=dt(e.options,{effect:null}),n?t.getProperties().then((e=>dt(e,{effectPath:null,effectProperties:null,dataPoint:dt(!0,{},e.originalModelSettings.dataPoint),legend:dt(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class Lo extends Mo{init(e,t,n,o){return e.options=dt(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===o.max?Promise.resolve():super.init(e,t,n,o)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(To).data.items,n=e.effectProperties.min,o=e.effectProperties.max,i=[];let r=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<r[0]&&(r=[i,t]),o&&i>a[0]&&(a=[i,t])})),-1!==r[1]&&i.push(t[r[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class No extends Mo{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],o=this.chart.component(To).data.items.map((e=>e.value)).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(To).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===To)).map(((n,o)=>{const i=Io(n,this.chart.formatter,e,t);return{text:`${Po(n)} (${i})`,value:o}}))}init(e,t,n,o){return e.options=dt(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===o.selectedIndex?Promise.resolve():super.init(e,t,n,o)}}const zo="/effects/highlight-value",Ao="/effects/maxmin";var Oo={isCompatible:({effectPath:e})=>e===Ao||e===zo,create:e=>e.effectPath===Ao?new Lo(e):e.effectPath===zo?new No(e):null};function _o(e){const t={},{components:n,tooltip:o}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),o){var r;t.chart_tooltip_custom=!o.auto;const e=null===(r=o.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!o.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function Fo(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 Ho(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function jo({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){Ho(e),Fo(t),sn.addCallbackCustomTooltip(t)},move(e,t){Ho(e),Fo(t),sn.moveCallbackCustomTooltip(t,e)},remove(e,t){sn.removeCallbackCustomTooltip(t,e)},replace(e,t,n,o){Ho(e),Fo(o),sn.replaceCallbackCustomTooltip(o,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){Fo(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 $o=e=>e.qMax<=0,Uo=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every($o));function Vo(e){return{definition:wo(e),softDefinition:Do,support:{snapshot:Uo,export:Uo,exportData:!0,sharing:Uo,viewData:!0,effects:!0},effects:Oo,extendMetrics:_o,importProperties:(t,n,o,i)=>{const r={layout:{templateId:n.templateId}};o.mapProperties(r);const a={defaultDimension:o.getDefaultDimensionProperties(),defaultMeasure:o.getDefaultMeasureProperties()},s=H.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:jo(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>H.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function Wo(e){return{properties:{version:"1.28.13",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:En.STROKE.COLOR},cornerRadius:En.CORNER_RADIUS,innerRadius:En.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:[jo(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:o})=>{const i=H.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:jo(e),hypercubePath:o});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>H.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(j).forEach((t=>{e.add(j[t])}))}}(e.translator);const n=Ze();return{qae:Wo(e),ext:Vo(e),component(){const e=function({picasso:e}){var t;const n=s(),o=l(),i=c(),[r,a]=u(),f=tt(),g=d(),v=p(),y=!(null===(t=g.qSelectionInfo)||void 0===t||!t.qInSelections),[b,S]=u(!1);return f.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:o,translator:i}){var r;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(r=e.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r||null===(r=r[0])||void 0===r||!r.qIsOneAndOnlyOne),action(e){o("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:g,isInSelections:y,isLassoActionActive:b,setIsLassoActionActive:S,translator:v}),h((()=>(r&&(r.interactions.lasso.active=()=>b),{...f.lasso})),[r,b,y,v.language()]),m((()=>{o.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),r=t.chart({element:o,data:[],settings:{}}),s=E({chart:r,actions:f,selections:i,config:{selectionActions:!1}});s.setLayout(g),s.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const l=k({legendScrollOffset:0,rotation:0});l.intercept("rotation",(e=>(l.get("rotation")+e)%(2*Math.PI))),l.onChanged("rotation",(()=>{r.update({partialData:!0})}));const c=R();return f.on("selections-start",(()=>{r.brush("selection").start()})),a({picasso:t,chart:r,selectionService:s,viewState:l,viewCache:c,interactions:f}),()=>{s.destroy(),r.destroy(),f.removeAllListeners(),delete f.select,l.intercept("rotation",void 0),l.onChanged("rotation",void 0)}}),[]),r}({picasso:n}),o=function({flags:e,picasso:t,instance:n}){const o=f(),i=g(),r=p(),a=l(),[c,d]=u(),h=v(),x=y(),q=b(),D=s(),T=S(),{qLocaleInfo:E}=C(),k=w();return m((()=>{if(!n)return;a.style.overflow="hidden";const s=N({app:i,translator:r}),l=z({picasso:n.picasso,model:o,app:i,translator:r,config:{auto:!1,key:"fill"}}),c=A({picassoInstance:n.picasso,plugins:x,pluginArgs:vn(h)}),u=gn({flags:e,layout:h,app:i,model:o,picasso:t,chart:n.chart,translator:r,localeInfo:E,embed:k,options:D}),p=O({theme:T,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),m=bn({chart:n.chart,translator:r,layout:h,constraints:q,options:D,themeService:p,colorService:l,custom:u}),f=function({layout:e,themeService:t,colorService:n,flags:o}){const i=t.getStyles(),r=t=>{var n;return o.isEnabled("CLIENT_IM_3050")?null===(n=e.components)||void 0===n?void 0:n.find((e=>e.key===t)):void 0},a=(e,t)=>{const o=n.getPaletteColor;if(null!=e&&e.color&&o){const n=o(e);var i;return"none"===n&&e.index>0?null!==(i=null==e?void 0:e.color)&&void 0!==i?i:t:null!=n?n:t}return t};return{axis:{title:{getStyle:()=>{var e,t,n;const o=null===(e=r("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==o?void 0:o.fontFamily)&&void 0!==t?t:i.axis.title.fontFamily,fontSize:null!==(n=null==o?void 0:o.fontSize)&&void 0!==n?n:i.axis.title.fontSize,color:a(null==o?void 0:o.color,i.axis.title.color)}}}},label:{name:{getStyle:()=>{var e,t,n;const o=null===(e=r("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name;return{fill:a(null==o?void 0:o.color,i.label.name.color),fontSize:null!==(t=null==o?void 0:o.fontSize)&&void 0!==t?t:i.label.name.fontSize,fontFamily:null!==(n=null==o?void 0:o.fontFamily)&&void 0!==n?n:i.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n;const o=null===(e=r("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value;return{fill:a(null==o?void 0:o.color,i.label.value.color),fontSize:null!==(t=null==o?void 0:o.fontSize)&&void 0!==t?t:i.label.value.fontSize,fontFamily:null!==(n=null==o?void 0:o.fontFamily)&&void 0!==n?n:i.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n;const o=null===(e=r("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title;return{fontFamily:null!==(t=null==o?void 0:o.fontFamily)&&void 0!==t?t:i.legend.title.fontFamily,fontSize:null!==(n=null==o?void 0:o.fontSize)&&void 0!==n?n:i.legend.title.fontSize,color:a(null==o?void 0:o.color,i.legend.title.color)}}},label:{getStyle:()=>{var e,t,n;const o=null===(e=r("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label;return{fontFamily:null!==(t=null==o?void 0:o.fontFamily)&&void 0!==t?t:i.legend.label.fontFamily,fontSize:null!==(n=null==o?void 0:o.fontSize)&&void 0!==n?n:i.legend.label.fontSize,color:a(null==o?void 0:o.color,i.legend.label.color)}}}}}}({layout:h,themeService:p,colorService:l,flags:e}),g=yn({layout:h});d({alternativeService:s,colorService:l,disclaimerService:g,pluginService:c,themeService:p,tooltipService:m,styleService:f})}),[o,i,n,h,r.language(),q,D.direction,T.name()]),c}({flags:t,picasso:n,instance:e});io({instance:e,services:o,picasso:n,flags:t}),function({instance:e}){const t=v(),n=s(),o=q();m((()=>{if(!e||!e.generateSettings)return;const{viewCache:o,chart:i,generateSettings:r}=e;i.update({settings:r()}),o.set("chartWidth",i.element.clientWidth),o.set("chartHeight",i.element.clientHeight),n.effect&&n.effect.update(t,i)}),[o.width,o.height])}({instance:e}),ro({instance:e,services:o})}}}))}}}));