@nebula.js/sn-funnel-chart 1.9.26 → 1.9.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-funnel-chart.js +4 -4
- package/dist/sn-funnel-chart.systemjs.js +2 -2
- package/package.json +1 -1
- package/sn-funnel-chart-ext/dist/sn-funnel-chart.js +4 -4
- package/sn-funnel-chart-ext/sn-funnel-chart.qext +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
|
-
* @nebula.js/sn-funnel-chart v1.9.
|
2
|
+
* @nebula.js/sn-funnel-chart v1.9.27
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
4
4
|
* Released under the MIT license.
|
5
5
|
*/
|
6
6
|
|
7
|
-
System.register(["picasso.js","picasso-plugin-q","qlik-chart-modules","@nebula.js/stardust"],(function(e){"use strict";var t,n,i,r,a,o,l,s,u,c,d,h,f,g,p,m,y,v,b,w,x,M,S,k,T,D;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){i=e.fontResolver,r=e.getValue,a=e.setValue,o=e.colorService,l=e.selectionService,s=e.cache,u=e.pluginService,c=e.themeService},function(e){d=e.useElement,h=e.useSelections,f=e.useModel,g=e.useApp,p=e.useTranslator,m=e.useOptions,y=e.useState,v=e.useEffect,b=e.useStaleLayout,w=e.useTheme,x=e.useConstraints,M=e.useRect,S=e.usePlugins,k=e.useAppLayout,T=e.usePromise,D=e.onTakeSnapshot}],execute:function(){e("default",(function(e){!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(R).forEach((t=>{e.add(R[t])}))}}(e.translator);const i=t();i.use(n),i.component("funnel",U);const{flags:r}=e;return{ext:W(e),qae:{properties:{initial:j},data:{targets:B}},component(){!function({picasso:e,flags:t}){const n=b(),i=w(),r=x(),a=M(),o=S(),l=k().qLocaleInfo,[s,d,h,f]=Rr({picasso:e,layout:n}),g=m(),p=()=>{const e=s.element.clientWidth!==f.get("width")||s.element.clientHeight!==f.get("height");return!1!==g.chartAnimations&&!e&&!Q.propertiesHaveChanged({viewCache:f,layout:n})},[y]=T((()=>{if(!d)return Promise.resolve();const t=({getUseBaseColors:e})=>({theme:i,colorProps:{...n.color,useBaseColors:e(n)},layout:n,hc:n.qHyperCube}),r=function(e){const t={layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{FUNNEL:"fun",FUNNEL_LABELS:"funnel-labels",DIMENSION_TITLE:"dimension-title"}}};return t}(n),a=u({picassoInstance:e,plugins:o,pluginArgs:r});return Promise.all([d.initialize({createConfig:t}),a.initialize()]).then((()=>a))}),[n,d]);v((()=>{if(!s||!d||!y)return;const e=[{type:"q",key:"qHyperCube",data:n.qHyperCube,config:{localeInfo:l}},...d.getData()],a=c({theme:i,config:{id:"funnelChart"}}),o=function({layout:e,themeService:t}){const n=t.getStyles(),i=t=>{var n,i;return null!==(n=null===(i=e.components)||void 0===i?void 0:i.find((e=>e.key===t)))&&void 0!==n?n:void 0};return{axis:{title:{getStyle:()=>{var e,t,r,a,o,l;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(r=null===(a=i("axis"))||void 0===a||null===(a=a.axis)||void 0===a||null===(a=a.title)||void 0===a?void 0:a.fontSize)&&void 0!==r?r:n.axis.title.fontSize,fill:null!==(o=null===(l=i("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.title)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.axis.title.color}}},label:{getStyle:()=>{var e,t,r,a,o,l;return{fontSize:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t?void 0:t.fontSize)&&void 0!==e?e:n.axis.label.name.fontSize,fontFamily:null!==(r=null===(a=i("axis"))||void 0===a||null===(a=a.axis)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.name)||void 0===a?void 0:a.fontFamily)&&void 0!==r?r:n.axis.label.name.fontFamily,fill:null!==(o=null===(l=i("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.name)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.axis.label.name.color}}}},label:{value:{getStyle:()=>{var e,t,r,a,o,l,s,u;return{fontSize:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.fontSize)&&void 0!==e?e:n.label.value.fontSize,fontFamily:null!==(r=null===(a=i("label"))||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a.fontFamily)&&void 0!==r?r:n.label.value.fontFamily,fill:null!==(o=null===(l=i("label"))||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.label.value.color,useContrastColor:null===(s=null===(u=i("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.useContrastColor)||void 0===s||s}}}}}}({layout:n,themeService:a}),u=function({flags:e,layout:t,constraints:n,colorService:i,themeService:r,styleModel:a,pluginService:o,animationsEnabled:l}){const s=function(e){const t={...e.getScales()};return t}(i),u=i.getPalettes(),c=function({layout:e,constraints:t,colorService:n,animationsEnabled:i}){const r=n.getDatumProps(),a=n.getColor(),o={type:"funnel",key:"fun",data:{extract:{field:"qDimensionInfo/0",props:{num:{field:"qMeasureInfo/0"},...r}}},brush:t.select||t.active?{}:{trigger:[{contexts:["selection"],data:[""]}],consume:[{context:"selection",filter:e=>"section"===e.tag,style:{inactive:{opacity:.3}}}]},settings:{num:{ref:"num"},fill:a,mode:e.funnel.mode},animations:{enabled:i,isMainComponent:!0,trackBy:e=>`${e.tag}: ${e.data.value}`}};return o}({layout:t,constraints:n,colorService:i,animationsEnabled:l}),d=[c,kr(e,t,r,l,a),Tr(e,t,a)];return{palettes:u,scales:s,components:o.extendComponents(d),formatters:Dr()}}({flags:t,layout:n,constraints:r,colorService:d,themeService:a,styleModel:o,pluginService:y,animationsEnabled:p});s.update({data:e,settings:u}),f.set("width",s.element.clientWidth),f.set("height",s.element.clientHeight),Q.cacheProperties({viewCache:f,layout:n})}),[s,d,i.name(),y,r]),v((()=>{s&&(s.update(),f.set("width",s.element.clientWidth),f.set("height",s.element.clientHeight))}),[a.width,a.height]),v((()=>{h&&h.setLayout(n)}),[n]),D((e=>d.getSnapshotData().then((t=>(e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData=t,e))).catch((()=>e))))}({picasso:i,flags:r})}}}));var R={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 z={fill:"steelblue",num:1},C=.9,N=150,E=(e,t,n)=>{let i=0,r=0,a=0,o={},l=0;if("labelCenter"===e)i=t.bottomLeft.x,r=t.topRight.y,a=t.bottomRight.x-t.bottomLeft.x,l=t.bottomRight.y-t.topRight.y,o={share:n.share,fill:n.fill};else{const e=180/Math.PI*Math.atan((t.bottomRight.y-t.topRight.y)/(t.topRight.x-t.bottomRight.x));i=e<15&&e>=0?t.topRight.x:e>-15&&e<0?t.bottomRight.x:e<-15?(t.bottomRight.x-t.topRight.x)/2+t.topRight.x+15:(t.topRight.x-t.bottomRight.x)/2+t.bottomRight.x+15,r=t.topRight.y,a=t.width-i,l=t.bottomRight.y-t.topRight.y,o={fill:n.fill}}return{tag:e,type:"rect",x:i,y:r,width:a,height:l,data:n.data,desc:o,fill:"none"}},L=(e,t)=>{const n=(e=>{const t=(e=>{let t=0;return e.forEach((e=>{e.num>t&&(t=e.num)})),t})(e);let n=0;return e.slice().reverse().map((e=>{const i={datum:e,s:n/t,e:e.num/t};return n=e.num,i})).reverse()})(e),i=t.width*C,r=t.height*C,a=(t.width-i)/2,o=(t.height-r)/2,l=i-(i>N&&r>N?100:0),s=(r-1*(n.length-1))/n.length,u=[];return n.forEach(((e,i)=>{const r=(c=e.e,d=i<n.length-1?e.s:e.e,[.5-.5*c,.5+.5*c,.5+.5*d,.5-.5*d]).map((e=>Math.round(e*l+a)));var c,d;const h=s*i+1*i+o,f={bottomRight:{x:r[2],y:Math.round(h+s)},bottomLeft:{x:r[3],y:Math.round(h+s)},topRight:{x:r[1],y:Math.round(h)},topLeft:{x:r[0],y:Math.round(h)},width:t.width},g=`M${f.topLeft.x},${f.topLeft.y} L${f.topRight.x},${f.topRight.y} ${f.bottomRight.x},${f.bottomRight.y} ${f.bottomLeft.x},${f.bottomLeft.y}Z`;u.push({tag:"section",type:"path",d:g,data:e.datum.data,fill:e.datum.fill});const p={share:e.e,fill:e.datum.fill,data:e.datum.data};s>12&&(f.bottomRight.x-f.bottomLeft.x>32&&u.push(E("labelCenter",f,p)),u.push(E("labelLeft",f,p)))})),u},P=(e,t,n,i)=>(i-e)/i*(t-n)+n,$=(e,t,n)=>{const i=e.filter((e=>"NaN"!==e.num&&e.num>0)),r=i.length,a=n.width*C,o=n.height*C,l=Math.round((n.width-a)/2),s=Math.round((n.height-o)/2),u=a-(a>N&&o>N?100:0),c=o-1*(r-1),d=[],h=i[0].data.num.value;let f=s;return i.forEach(((e,i)=>{const r=t[i]*c,a=Math.round(P(f-s,u,.2*u,o)/2),g=Math.round(P(f-s+r,u,.2*u,o)/2),p=l+Math.round(u/2),m={bottomRight:{x:p+g,y:Math.round(f+r)},bottomLeft:{x:p-g,y:Math.round(f+r)},topRight:{x:p+a,y:f},topLeft:{x:p-a,y:f},width:n.width},y=`M${m.topLeft.x},${m.topLeft.y} L${m.topRight.x},${m.topRight.y} ${m.bottomRight.x},${m.bottomRight.y} ${m.bottomLeft.x},${m.bottomLeft.y}Z`;d.push({tag:"section",type:"path",d:y,data:e.data,fill:e.fill});const v={share:e.data.num.value/h,fill:e.fill,data:e.data};r>2&&(m.bottomRight.x-m.bottomLeft.x>32&&d.push(E("labelCenter",m,v)),d.push(E("labelLeft",m,v))),f+=r+1})),d},q=(e,t,n)=>{const i=e.filter((e=>"NaN"!==e.num&&e.num>0));if(i&&i.length>0)switch(t){case"WIDTH":default:return L(i,n);case"ORDER":return $(i,i.map((()=>1/i.length)),n);case"HEIGHT":return $(i,(e=>{const t=e.reduce(((e,t)=>e+t.data.num.value),0);return e.map((e=>e.data.num.value/t))})(i),n);case"AREA":return $(i,((e,t,n)=>{const i=e.reduce(((e,t)=>e+t.data.num.value),0),r=t.width*C,a=t.height*C,o=r*n,l=a*(r+o)/2,s=(r-o)/2/a,u=[];let c=0;for(let t=e.length-1;t>=0;t--){const n=e[t].data.num.value/i,r=2*s*c+o,d=-r/(2*s)+Math.sqrt(r*r/(4*s*s)+n*l/s);u[t]=d/a,c+=d}return u})(i,n,.2),n)}return[]};var U={require:["resolver"],defaultSettings:{settings:{},data:{},style:{item:"$shape"}},render({data:e}){const t=this.resolver.resolve({data:e,defaults:{...z,...this.style.item},settings:this.settings.settings});return q(t.items,this.settings.settings.mode,this.rect)}};const j={version:"1.9.26",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",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},dataPoint:{auto:!0,labelMode:"share"},footnote:"",funnel:{mode:"WIDTH"},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInterColumnSortOrder:[],qInitialDataFetch:[{qWidth:2,qHeight:5e3}],qSuppressMissing:!0,qSuppressZero:!1},showDimensionTitle:!0,showTitles:!0,subtitle:"",title:""};function I(e,t,n){const i=`${e}.fontFamily`,r=`${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:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.funnelChart",e,"color")})}}}}}function O(e,t,n){const r=i({theme:e,translator:n,flags:t,config:{id:"funnelChart",paths:["axis.title","axis.label.name","label.value"]}});return{component:"styling-panel",show:!0,chartType:"funnelchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.FunnelChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{axisTitleSection:{component:"panel-section",label:"Dimension title",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:I("axis.title",r,e)}}},labelNameSection:{component:"panel-section",label:"Dimension value label",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:I("axis.label.name",r,e)}}},labelValueSection:{component:"panel-section",label:"Value Label",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...I("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}}}}const F={uses:"sorting"},H=(e,t,n)=>{var i;const r=null==n||null===(i=n.sense)||void 0===i?void 0:i.theme;return{uses:"settings",items:{presentation:{type:"items",label:"Presentation",grouped:!0,items:{...(null==t?void 0:t.isEnabled("SENSECLIENT_IM_4897_VIZBUNDLE_STYLING"))&&{funnelStyling:O(r,t,e)},funnelmode:{ref:"funnel.mode",label:"Funnel Mode",type:"string",component:"dropdown",options:[{value:"AREA",label:"Area"},{value:"HEIGHT",label:"Height"},{value:"WIDTH",label:"Width"},{value:"ORDER",label:"Ordering"}],defaultValue:"WIDTH"},dimensionTitle:{ref:"showDimensionTitle",type:"boolean",component:"switch",label:"Dimension title",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",label:"Value labels",component:"switch",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",label:"None"},{value:"share",label:"Share"},{value:"value",label:"Values"}],defaultValue:"share",show:e=>!e.dataPoint.auto}}},colorsAndLegend:{uses:"colorsAndLegend",translation:"Colors",items:{colors:{items:{colorByLabel:{show:!1},expressionLabel:{show:!1}}},legend:{show:!1}}}}}},_={uses:"data",items:{dimensions:{uses:"dimensions",items:{others:{items:{suppressOther:{defaultValue:!0,show:!1}}}},disabledRef:""},measures:{uses:"measures",disabledRef:""}}};function A({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:_,sorting:F,settings:H(e,t,n)}}}function W(e){return{definition:A(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1},importProperties:null,exportProperties:null}}const B=[{path:"/qHyperCubeDef",dimensions:{min:1,max:1,description:()=>"Segments"},measures:{min:1,max:1,description(e){switch(e.funnel.mode){case"WIDTH":return"Width";case"AREA":return"Area";case"HEIGHT":return"Height";case"ORDER":return"Order";default:return""}},added(e,t){2===t.qHyperCubeDef.qInterColumnSortOrder.length&&1!==t.qHyperCubeDef.qInterColumnSortOrder[0]&&(t.qHyperCubeDef.qInterColumnSortOrder=[1,0])}}}];function V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y,J;var K=function(){if(J)return Y;J=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,r=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!r&&!a)return!1;for(i in n);return void 0===i||e.call(n,i)},o=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};return Y=function e(){var t,n,i,s,u,c,d=arguments[0],h=1,f=arguments.length,g=!1;for("boolean"==typeof d&&(g=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<f;++h)if(null!=(t=arguments[h]))for(n in t)i=l(d,n),d!==(s=l(t,n))&&(g&&s&&(a(s)||(u=r(s)))?(u?(u=!1,c=i&&r(i)?i:[]):c=i&&a(i)?i:{},o(d,{name:n,newValue:e(g,c,s)})):void 0!==s&&o(d,{name:n,newValue:s}));return d},Y}(),Z=V(K),G={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function X(e){const{qHyperCube:t,...n}=e,{qAxisData:i,qDataPages:o,qStackedDataPages:l,qTreeDataPages:s,...u}=t,c=Z(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=G;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==r(c,e)&&a(c,e,null);else{const e=t[0],n=t[1].split("].")[1];r(c,e,[]).forEach((e=>{void 0!==r(e,n)&&a(e,n,null)}))}})),c}var Q={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:i}){return r=>{if(e||t||n){var a;if("line"===r.type)return null!==(a=r.tickValue)&&void 0!==a?a:"axis";if("text"===r.type)return`${r.tickValue} ${r.text}`;if("container"===r.type){const e=r.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${r.data.value} ${e.join("")}`}return Math.random()}if(i){if("line"===r.type&&void 0===r.tickValue)return"axis";const e=r.transform&&r.transform.match(/rotate/gi)?"rotated":"horizontal";return`${r.data.group?`${r.data.group.value} `:""}${r.data.value} ${r.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:i,dock:r}){return({currentNodes:a,currentRect:o,previousRect:l})=>{const s=o.x-l.x,u=o.y-l.y,c=o.width-l.width,d=o.height-l.height;e?("left"===r&&a.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==r&&"right"!==r||a.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=o.y,e.y2=e.y1+o.height):(Math.round(e.y1)<o.y||e.y1>o.y+o.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<o.y||e.y>o.y+o.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"!==r&&"bottom"!==r||a.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=o.x,e.x2=e.x1+o.width):(Math.round(e.x1)<o.x||e.x1>o.x+o.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<o.x||e.x>o.x+o.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?a.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=s,e.x2-=s):"text"===e.type&&(e.x-=s)})):n||i?a.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=s,e.x2+=s+c)})):a.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+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,r=t.y-n.y;0===i&&0===r||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-=r):e.transform=`translate(${-i}, ${-r})`}))}))}},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,r=t.y-n.y;0===i&&0===r||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=r,e.y-=i):(e.x-=i,e.y-=r)}))},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,r=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-=r,e.y2-=r):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:r/e.major.size,n="y"===e.minor.p?r/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,r=t.y-n.y;0===i&&0===r||e.forEach((e=>{switch(e.type){case"circle":e.cx-=i,e.cy-=r;break;case"rect":e.x-=i,e.y-=r;break;case"path":e.transform=`translate(${-i}, ${-r})`}}))}},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,r=t.y-n.y;0===i&&0===r||e.forEach((e=>{e.cx-=i,e.cy-=r}))}},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,r=t.y-n.y,a=t.width-n.width,o=t.height-n.height;let l=-i,s=-r;e.forEach((e=>{switch(e.dock){case"right":i>0&&(l=t.width);break;case"left":a<0&&(l=-n.width);break;case"top":o<0&&(s=-n.height);break;case"bottom":r>0&&(s=t.height)}switch(e.type){case"text":case"rect":e.x+=l,e.y+=s;break;case"circle":e.cx+=l,e.cy+=s;break;case"path":e.transform=`translate(${l}, ${s})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=X(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=X(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function ee(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function te(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function ne(){}var ie=.7,re=1/ie,ae="\\s*([+-]?\\d+)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",se=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),ce=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),de=new RegExp(`^rgba\\(${ae},${ae},${ae},${oe}\\)$`),he=new RegExp(`^rgba\\(${le},${le},${le},${oe}\\)$`),fe=new RegExp(`^hsl\\(${oe},${le},${le}\\)$`),ge=new RegExp(`^hsla\\(${oe},${le},${le},${oe}\\)$`),pe={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 me(){return this.rgb().formatHex()}function ye(){return this.rgb().formatRgb()}function ve(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?be(t):3===n?new Me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?we(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=ue.exec(e))?new Me(t[1],t[2],t[3],1):(t=ce.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=de.exec(e))?we(t[1],t[2],t[3],t[4]):(t=he.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fe.exec(e))?ze(t[1],t[2]/100,t[3]/100,1):(t=ge.exec(e))?ze(t[1],t[2]/100,t[3]/100,t[4]):pe.hasOwnProperty(e)?be(pe[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function be(e){return new Me(e>>16&255,e>>8&255,255&e,1)}function we(e,t,n,i){return i<=0&&(e=t=n=NaN),new Me(e,t,n,i)}function xe(e){return e instanceof ne||(e=ve(e)),e?new Me((e=e.rgb()).r,e.g,e.b,e.opacity):new Me}function Me(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Se(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function ke(){const e=Te(this.opacity);return`${1===e?"rgb(":"rgba("}${De(this.r)}, ${De(this.g)}, ${De(this.b)}${1===e?")":`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function De(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Re(e){return((e=De(e))<16?"0":"")+e.toString(16)}function ze(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ne(e,t,n,i)}function Ce(e){if(e instanceof Ne)return new Ne(e.h,e.s,e.l,e.opacity);if(e instanceof ne||(e=ve(e)),!e)return new Ne;if(e instanceof Ne)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,l=a-r,s=(a+r)/2;return l?(o=t===a?(n-i)/l+6*(n<i):n===a?(i-t)/l+2:(t-n)/l+4,l/=s<.5?a+r:2-a-r,o*=60):l=s>0&&s<1?0:o,new Ne(o,l,s,e.opacity)}function Ne(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Ee(e){return(e=(e||0)%360)<0?e+360:e}function Le(e){return Math.max(0,Math.min(1,e||0))}function Pe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ee(ne,ve,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:me,formatHex:me,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ce(this).formatHsl()},formatRgb:ye,toString:ye}),ee(Me,(function(e,t,n,i){return 1===arguments.length?xe(e):new Me(e,t,n,null==i?1:i)}),te(ne,{brighter(e){return e=null==e?re:Math.pow(re,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(De(this.r),De(this.g),De(this.b),Te(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:Se,formatHex:Se,formatHex8:function(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ke,toString:ke})),ee(Ne,(function(e,t,n,i){return 1===arguments.length?Ce(e):new Ne(e,t,n,null==i?1:i)}),te(ne,{brighter(e){return e=null==e?re:Math.pow(re,e),new Ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new Ne(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,r=2*n-i;return new Me(Pe(e>=240?e-240:e+120,r,i),Pe(e,r,i),Pe(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new Ne(Ee(this.h),Le(this.s),Le(this.l),Te(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=Te(this.opacity);return`${1===e?"hsl(":"hsla("}${Ee(this.h)}, ${100*Le(this.s)}%, ${100*Le(this.l)}%${1===e?")":`, ${e})`}`}}));const $e=Math.PI/180,qe=180/Math.PI,Ue=.96422,je=1,Ie=.82521,Oe=4/29,Fe=6/29,He=3*Fe*Fe,_e=Fe*Fe*Fe;function Ae(e){if(e instanceof We)return new We(e.l,e.a,e.b,e.opacity);if(e instanceof Ze)return Ge(e);e instanceof Me||(e=xe(e));var t,n,i=Je(e.r),r=Je(e.g),a=Je(e.b),o=Be((.2225045*i+.7168786*r+.0606169*a)/je);return i===r&&r===a?t=n=o:(t=Be((.4360747*i+.3850649*r+.1430804*a)/Ue),n=Be((.0139322*i+.0971045*r+.7141733*a)/Ie)),new We(116*o-16,500*(t-o),200*(o-n),e.opacity)}function We(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function Be(e){return e>_e?Math.pow(e,1/3):e/He+Oe}function Ve(e){return e>Fe?e*e*e:He*(e-Oe)}function Ye(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Je(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ke(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Ze)return new Ze(e.h,e.c,e.l,e.opacity);if(e instanceof We||(e=Ae(e)),0===e.a&&0===e.b)return new Ze(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*qe;return new Ze(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ze(e,t,n,null==i?1:i)}function Ze(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Ge(e){if(isNaN(e.h))return new We(e.l,0,0,e.opacity);var t=e.h*$e;return new We(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ee(We,(function(e,t,n,i){return 1===arguments.length?Ae(e):new We(e,t,n,null==i?1:i)}),te(ne,{brighter(e){return new We(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new We(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 Me(Ye(3.1338561*(t=Ue*Ve(t))-1.6168667*(e=je*Ve(e))-.4906146*(n=Ie*Ve(n))),Ye(-.9787684*t+1.9161415*e+.033454*n),Ye(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ee(Ze,Ke,te(ne,{brighter(e){return new Ze(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ze(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ge(this).rgb()}}));var Xe,Qe,et={isDark:function(e){return Ke(e).l<70}};function tt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}1===(Xe=tt).length&&(Qe=Xe,Xe=function(e,t){return tt(Qe(e),t)});var nt="$";function it(){}function rt(e,t){var n=new it;if(e instanceof it)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var i,r=-1,a=e.length;if(null==t)for(;++r<a;)n.set(r,e[r]);else for(;++r<a;)n.set(t(i=e[r],r,e),i)}else if(e)for(var o in e)n.set(o,e[o]);return n}function at(){}it.prototype=rt.prototype={constructor:it,has:function(e){return nt+e in this},get:function(e){return this[nt+e]},set:function(e,t){return this[nt+e]=t,this},remove:function(e){var t=nt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===nt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===nt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===nt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===nt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===nt&&++e;return e},empty:function(){for(var e in this)if(e[0]===nt)return!1;return!0},each:function(e){for(var t in this)t[0]===nt&&e(this[t],t.slice(1),this)}};var ot=rt.prototype;function lt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function st(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function ut(){}at.prototype={constructor:at,has:ot.has,add:function(e){return this[nt+(e+="")]=e,this},remove:ot.remove,clear:ot.clear,values:ot.keys,size:ot.size,empty:ot.empty,each:ot.each};var ct=.7,dt=1/ct,ht="\\s*([+-]?\\d+)\\s*",ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pt=/^#([0-9a-f]{3})$/,mt=/^#([0-9a-f]{6})$/,yt=new RegExp("^rgb\\("+[ht,ht,ht]+"\\)$"),vt=new RegExp("^rgb\\("+[gt,gt,gt]+"\\)$"),bt=new RegExp("^rgba\\("+[ht,ht,ht,ft]+"\\)$"),wt=new RegExp("^rgba\\("+[gt,gt,gt,ft]+"\\)$"),xt=new RegExp("^hsl\\("+[ft,gt,gt]+"\\)$"),Mt=new RegExp("^hsla\\("+[ft,gt,gt,ft]+"\\)$"),St={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 kt(e){var t;return e=(e+"").trim().toLowerCase(),(t=pt.exec(e))?new Ct((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=mt.exec(e))?Tt(parseInt(t[1],16)):(t=yt.exec(e))?new Ct(t[1],t[2],t[3],1):(t=vt.exec(e))?new Ct(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bt.exec(e))?Dt(t[1],t[2],t[3],t[4]):(t=wt.exec(e))?Dt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xt.exec(e))?Et(t[1],t[2]/100,t[3]/100,1):(t=Mt.exec(e))?Et(t[1],t[2]/100,t[3]/100,t[4]):St.hasOwnProperty(e)?Tt(St[e]):"transparent"===e?new Ct(NaN,NaN,NaN,0):null}function Tt(e){return new Ct(e>>16&255,e>>8&255,255&e,1)}function Dt(e,t,n,i){return i<=0&&(e=t=n=NaN),new Ct(e,t,n,i)}function Rt(e){return e instanceof ut||(e=kt(e)),e?new Ct((e=e.rgb()).r,e.g,e.b,e.opacity):new Ct}function zt(e,t,n,i){return 1===arguments.length?Rt(e):new Ct(e,t,n,null==i?1:i)}function Ct(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Nt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Et(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lt(e,t,n,i)}function Lt(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Pt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}lt(ut,kt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),lt(Ct,zt,st(ut,{brighter:function(e){return e=null==e?dt:Math.pow(dt,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ct:Math.pow(ct,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Nt(this.r)+Nt(this.g)+Nt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),lt(Lt,(function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Lt)return new Lt(e.h,e.s,e.l,e.opacity);if(e instanceof ut||(e=kt(e)),!e)return new Lt;if(e instanceof Lt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,l=a-r,s=(a+r)/2;return l?(o=t===a?(n-i)/l+6*(n<i):n===a?(i-t)/l+2:(t-n)/l+4,l/=s<.5?a+r:2-a-r,o*=60):l=s>0&&s<1?0:o,new Lt(o,l,s,e.opacity)}(e):new Lt(e,t,n,null==i?1:i)}),st(ut,{brighter:function(e){return e=null==e?dt:Math.pow(dt,e),new Lt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ct:Math.pow(ct,e),new Lt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new Ct(Pt(e>=240?e-240:e+120,r,i),Pt(e,r,i),Pt(e<120?e+240:e-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var $t=Math.PI/180,qt=180/Math.PI,Ut=.96422,jt=1,It=.82521,Ot=4/29,Ft=6/29,Ht=3*Ft*Ft,_t=Ft*Ft*Ft;function At(e){if(e instanceof Wt)return new Wt(e.l,e.a,e.b,e.opacity);if(e instanceof Kt){if(isNaN(e.h))return new Wt(e.l,0,0,e.opacity);var t=e.h*$t;return new Wt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Ct||(e=Rt(e));var n,i,r=Jt(e.r),a=Jt(e.g),o=Jt(e.b),l=Bt((.2225045*r+.7168786*a+.0606169*o)/jt);return r===a&&a===o?n=i=l:(n=Bt((.4360747*r+.3850649*a+.1430804*o)/Ut),i=Bt((.0139322*r+.0971045*a+.7141733*o)/It)),new Wt(116*l-16,500*(n-l),200*(l-i),e.opacity)}function Wt(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function Bt(e){return e>_t?Math.pow(e,1/3):e/Ht+Ot}function Vt(e){return e>Ft?e*e*e:Ht*(e-Ot)}function Yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Jt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Kt(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}lt(Wt,(function(e,t,n,i){return 1===arguments.length?At(e):new Wt(e,t,n,null==i?1:i)}),st(ut,{brighter:function(e){return new Wt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Wt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ct(Yt(3.1338561*(t=Ut*Vt(t))-1.6168667*(e=jt*Vt(e))-.4906146*(n=It*Vt(n))),Yt(-.9787684*t+1.9161415*e+.033454*n),Yt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),lt(Kt,(function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Kt)return new Kt(e.h,e.c,e.l,e.opacity);if(e instanceof Wt||(e=At(e)),0===e.a&&0===e.b)return new Kt(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*qt;return new Kt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Kt(e,t,n,null==i?1:i)}),st(ut,{brighter:function(e){return new Kt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Kt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return At(this).rgb()}}));var Zt=-.14861,Gt=1.78277,Xt=-.29227,Qt=-.90649,en=1.97294,tn=en*Qt,nn=en*Gt,rn=Gt*Xt-Qt*Zt;function an(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof on)return new on(e.h,e.s,e.l,e.opacity);e instanceof Ct||(e=Rt(e));var t=e.r/255,n=e.g/255,i=e.b/255,r=(rn*i+tn*t-nn*n)/(rn+tn-nn),a=i-r,o=(en*(n-r)-Xt*a)/Qt,l=Math.sqrt(o*o+a*a)/(en*r*(1-r)),s=l?Math.atan2(o,a)*qt-120:NaN;return new on(s<0?s+360:s,l,r,e.opacity)}(e):new on(e,t,n,null==i?1:i)}function on(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function ln(e){return function(){return e}}function sn(e,t){return function(n){return e+n*t}}function un(e){return 1==(e=+e)?cn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):ln(isNaN(t)?n:t)}}function cn(e,t){var n=t-e;return n?sn(e,n):ln(isNaN(e)?t:e)}function dn(e){return function t(n){function i(t,i){var r=e((t=an(t)).h,(i=an(i)).h),a=cn(t.s,i.s),o=cn(t.l,i.l),l=cn(t.opacity,i.opacity);return function(e){return t.h=r(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,i.gamma=t,i}(1)}function hn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}lt(on,an,st(ut,{brighter:function(e){return e=null==e?dt:Math.pow(dt,e),new on(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ct:Math.pow(ct,e),new on(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*$t,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new Ct(255*(t+n*(Zt*i+Gt*r)),255*(t+n*(Xt*i+Qt*r)),255*(t+n*(en*i)),this.opacity)}})),function e(t){var n=un(t);function i(e,t){var i=n((e=zt(e)).r,(t=zt(t)).r),r=n(e.g,t.g),a=n(e.b,t.b),o=cn(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1),dn((function(e,t){var n=t-e;return n?sn(e,n>180||n<-180?n-360*Math.round(n/360):n):ln(isNaN(e)?t:e)})),dn(cn);var fn,gn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pn(e){return new mn(e)}function mn(e){if(!(t=gn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function yn(e,t){var n=hn(e,t);if(!n)return e+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}pn.prototype=mn.prototype,mn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var vn={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return yn(100*e,t)},r:yn,s:function(e,t){var n=hn(e,t);if(!n)return e+"";var i=n[0],r=n[1],a=r-(fn=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+hn(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function bn(e){return e}var wn,xn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mn(e){var t,n,i=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,i){for(var r=e.length,a=[],o=0,l=t[0],s=0;r>0&&l>0&&(s+l+1>i&&(l=Math.max(1,i-s)),a.push(e.substring(r-=l,r+l)),!((s+=l+1)>i));)l=t[o=(o+1)%t.length];return a.reverse().join(n)}):bn,r=e.currency,a=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):bn,l=e.percent||"%";function s(e){var t=(e=pn(e)).fill,n=e.align,s=e.sign,u=e.symbol,c=e.zero,d=e.width,h=e.comma,f=e.precision,g=e.trim,p=e.type;"n"===p?(h=!0,p="g"):vn[p]||(null==f&&(f=12),g=!0,p="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var m="$"===u?r[0]:"#"===u&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",y="$"===u?r[1]:/[%p]/.test(p)?l:"",v=vn[p],b=/[defgprs%]/.test(p);function w(e){var r,l,u,w=m,x=y;if("c"===p)x=v(e)+x,e="";else{var M=(e=+e)<0;if(e=v(Math.abs(e),f),g&&(e=function(e){e:for(var t,n=e.length,i=1,r=-1;i<n;++i)switch(e[i]){case".":r=t=i;break;case"0":0===r&&(r=i),t=i;break;default:if(r>0){if(!+e[i])break e;r=0}}return r>0?e.slice(0,r)+e.slice(t+1):e}(e)),M&&0==+e&&(M=!1),w=(M?"("===s?s:"-":"-"===s||"("===s?"":s)+w,x=("s"===p?xn[8+fn/3]:"")+x+(M&&"("===s?")":""),b)for(r=-1,l=e.length;++r<l;)if(48>(u=e.charCodeAt(r))||u>57){x=(46===u?a+e.slice(r+1):e.slice(r))+x,e=e.slice(0,r);break}}h&&!c&&(e=i(e,1/0));var S=w.length+e.length+x.length,k=S<d?new Array(d-S+1).join(t):"";switch(h&&c&&(e=i(k+e,k.length?d-x.length:1/0),k=""),n){case"<":e=w+e+x+k;break;case"=":e=w+k+e+x;break;case"^":e=k.slice(0,S=k.length>>1)+w+e+x+k.slice(S);break;default:e=k+w+e+x}return o(e)}return f=null==f?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),w.toString=function(){return e+""},w}return{format:s,formatPrefix:function(e,t){var n,i=s(((e=pn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=hn(Math.abs(n)))?n[1]:NaN)/3)))),a=Math.pow(10,-r),o=xn[8+r/3];return function(e){return i(a*e)+o}}}}(wn=Mn({decimal:".",thousands:",",grouping:[3],currency:["$",""]})).format,wn.formatPrefix;var Sn=new Date,kn=new Date;function Tn(e,t,n,i){function r(t){return e(t=new Date(+t)),t}return r.floor=r,r.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},r.round=function(e){var t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},r.range=function(n,i,a){var o,l=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n<i&&a>0))return l;do{l.push(o=new Date(+n)),t(n,a),e(n)}while(o<n&&n<i);return l},r.filter=function(n){return Tn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,i){if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););}))},n&&(r.count=function(t,i){return Sn.setTime(+t),kn.setTime(+i),e(Sn),e(kn),Math.floor(n(Sn,kn))},r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(i?function(t){return i(t)%e==0}:function(t){return r.count(0,t)%e==0}):r:null}),r}var Dn=Tn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Dn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Tn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Dn:null},Dn.range;var Rn=1e3,zn=6e4,Cn=36e5,Nn=864e5,En=6048e5;Tn((function(e){e.setTime(Math.floor(e/Rn)*Rn)}),(function(e,t){e.setTime(+e+t*Rn)}),(function(e,t){return(t-e)/Rn}),(function(e){return e.getUTCSeconds()})).range,Tn((function(e){e.setTime(Math.floor(e/zn)*zn)}),(function(e,t){e.setTime(+e+t*zn)}),(function(e,t){return(t-e)/zn}),(function(e){return e.getMinutes()})).range,Tn((function(e){var t=e.getTimezoneOffset()*zn%Cn;t<0&&(t+=Cn),e.setTime(Math.floor((+e-t)/Cn)*Cn+t)}),(function(e,t){e.setTime(+e+t*Cn)}),(function(e,t){return(t-e)/Cn}),(function(e){return e.getHours()})).range;var Ln=Tn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*zn)/Nn}),(function(e){return e.getDate()-1}));function Pn(e){return Tn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*zn)/En}))}Ln.range;var $n=Pn(0),qn=Pn(1),Un=Pn(2),jn=Pn(3),In=Pn(4),On=Pn(5),Fn=Pn(6);$n.range,qn.range,Un.range,jn.range,In.range,On.range,Fn.range,Tn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var Hn=Tn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Hn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},Hn.range,Tn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*zn)}),(function(e,t){return(t-e)/zn}),(function(e){return e.getUTCMinutes()})).range,Tn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Cn)}),(function(e,t){return(t-e)/Cn}),(function(e){return e.getUTCHours()})).range;var _n=Tn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Nn}),(function(e){return e.getUTCDate()-1}));function An(e){return Tn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/En}))}_n.range;var Wn=An(0),Bn=An(1),Vn=An(2),Yn=An(3),Jn=An(4),Kn=An(5),Zn=An(6);Wn.range,Bn.range,Vn.range,Yn.range,Jn.range,Kn.range,Zn.range,Tn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var Gn=Tn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Xn(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Qn(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ei(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}Gn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},Gn.range;var ti,ni,ii,ri={"-":"",_:" ",0:"0"},ai=/^\s*\d+/,oi=/^%/,li=/[\\^$*+?|[\]().{}]/g;function si(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(t)+r:r)}function ui(e){return e.replace(li,"\\$&")}function ci(e){return new RegExp("^(?:"+e.map(ui).join("|")+")","i")}function di(e){for(var t={},n=-1,i=e.length;++n<i;)t[e[n].toLowerCase()]=n;return t}function hi(e,t,n){var i=ai.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function fi(e,t,n){var i=ai.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function gi(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function pi(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function mi(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function yi(e,t,n){var i=ai.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function vi(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function bi(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function wi(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function xi(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Mi(e,t,n){var i=ai.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Si(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function ki(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Ti(e,t,n){var i=ai.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Di(e,t,n){var i=ai.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Ri(e,t,n){var i=ai.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function zi(e,t,n){var i=oi.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function Ci(e,t,n){var i=ai.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ni(e,t,n){var i=ai.exec(t.slice(n));return i?(e.Q=1e3*+i[0],n+i[0].length):-1}function Ei(e,t){return si(e.getDate(),t,2)}function Li(e,t){return si(e.getHours(),t,2)}function Pi(e,t){return si(e.getHours()%12||12,t,2)}function $i(e,t){return si(1+Ln.count(Hn(e),e),t,3)}function qi(e,t){return si(e.getMilliseconds(),t,3)}function Ui(e,t){return qi(e,t)+"000"}function ji(e,t){return si(e.getMonth()+1,t,2)}function Ii(e,t){return si(e.getMinutes(),t,2)}function Oi(e,t){return si(e.getSeconds(),t,2)}function Fi(e){var t=e.getDay();return 0===t?7:t}function Hi(e,t){return si($n.count(Hn(e),e),t,2)}function _i(e,t){var n=e.getDay();return e=n>=4||0===n?In(e):In.ceil(e),si(In.count(Hn(e),e)+(4===Hn(e).getDay()),t,2)}function Ai(e){return e.getDay()}function Wi(e,t){return si(qn.count(Hn(e),e),t,2)}function Bi(e,t){return si(e.getFullYear()%100,t,2)}function Vi(e,t){return si(e.getFullYear()%1e4,t,4)}function Yi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+si(t/60|0,"0",2)+si(t%60,"0",2)}function Ji(e,t){return si(e.getUTCDate(),t,2)}function Ki(e,t){return si(e.getUTCHours(),t,2)}function Zi(e,t){return si(e.getUTCHours()%12||12,t,2)}function Gi(e,t){return si(1+_n.count(Gn(e),e),t,3)}function Xi(e,t){return si(e.getUTCMilliseconds(),t,3)}function Qi(e,t){return Xi(e,t)+"000"}function er(e,t){return si(e.getUTCMonth()+1,t,2)}function tr(e,t){return si(e.getUTCMinutes(),t,2)}function nr(e,t){return si(e.getUTCSeconds(),t,2)}function ir(e){var t=e.getUTCDay();return 0===t?7:t}function rr(e,t){return si(Wn.count(Gn(e),e),t,2)}function ar(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Jn(e):Jn.ceil(e),si(Jn.count(Gn(e),e)+(4===Gn(e).getUTCDay()),t,2)}function or(e){return e.getUTCDay()}function lr(e,t){return si(Bn.count(Gn(e),e),t,2)}function sr(e,t){return si(e.getUTCFullYear()%100,t,2)}function ur(e,t){return si(e.getUTCFullYear()%1e4,t,4)}function cr(){return"+0000"}function dr(){return"%"}function hr(e){return+e}function fr(e){return Math.floor(+e/1e3)}!function(e){ti=function(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=ci(r),c=di(r),d=ci(a),h=di(a),f=ci(o),g=di(o),p=ci(l),m=di(l),y=ci(s),v=di(s),b={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:Ei,e:Ei,f:Ui,H:Li,I:Pi,j:$i,L:qi,m:ji,M:Ii,p:function(e){return r[+(e.getHours()>=12)]},Q:hr,s:fr,S:Oi,u:Fi,U:Hi,V:_i,w:Ai,W:Wi,x:null,X:null,y:Bi,Y:Vi,Z:Yi,"%":dr},w={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Ji,e:Ji,f:Qi,H:Ki,I:Zi,j:Gi,L:Xi,m:er,M:tr,p:function(e){return r[+(e.getUTCHours()>=12)]},Q:hr,s:fr,S:nr,u:ir,U:rr,V:ar,w:or,W:lr,x:null,X:null,y:sr,Y:ur,Z:cr,"%":dr},x={a:function(e,t,n){var i=f.exec(t.slice(n));return i?(e.w=g[i[0].toLowerCase()],n+i[0].length):-1},A:function(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=h[i[0].toLowerCase()],n+i[0].length):-1},b:function(e,t,n){var i=y.exec(t.slice(n));return i?(e.m=v[i[0].toLowerCase()],n+i[0].length):-1},B:function(e,t,n){var i=p.exec(t.slice(n));return i?(e.m=m[i[0].toLowerCase()],n+i[0].length):-1},c:function(e,n,i){return k(e,t,n,i)},d:xi,e:xi,f:Ri,H:Si,I:Si,j:Mi,L:Di,m:wi,M:ki,p:function(e,t,n){var i=u.exec(t.slice(n));return i?(e.p=c[i[0].toLowerCase()],n+i[0].length):-1},Q:Ci,s:Ni,S:Ti,u:fi,U:gi,V:pi,w:hi,W:mi,x:function(e,t,i){return k(e,n,t,i)},X:function(e,t,n){return k(e,i,t,n)},y:vi,Y:yi,Z:bi,"%":zi};function M(e,t){return function(n){var i,r,a,o=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(r=ri[i=e.charAt(++l)])?i=e.charAt(++l):r="e"===i?" ":"0",(a=t[i])&&(i=a(n,r)),o.push(i),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function S(e,t){return function(n){var i,r,a=ei(1900);if(k(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=Qn(ei(a.y))).getUTCDay(),i=r>4||0===r?Bn.ceil(i):Bn(i),i=_n.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=t(ei(a.y))).getDay(),i=r>4||0===r?qn.ceil(i):qn(i),i=Ln.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?Qn(ei(a.y)).getUTCDay():t(ei(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Qn(a)):t(a)}}function k(e,t,n,i){for(var r,a,o=0,l=t.length,s=n.length;o<l;){if(i>=s)return-1;if(37===(r=t.charCodeAt(o++))){if(r=t.charAt(o++),!(a=x[r in ri?t.charAt(o++):r])||(i=a(e,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return b.x=M(n,b),b.X=M(i,b),b.c=M(t,b),w.x=M(n,w),w.X=M(i,w),w.c=M(t,w),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",Xn);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,Qn);return t.toString=function(){return e},t}}}(e),ti.format,ti.parse,ni=ti.utcFormat,ii=ti.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var gr="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||ni(gr),+new Date("2000-01-01T00:00:00.000Z")||ii(gr),Z.bind(null,!0);const pr=[[2,4,6],[2,4],[3]],mr=[,[,,[[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 yr(e,t,n){const i=e?e.length:0;let r,a=void 0===t?Number.MAX_VALUE:e[0]/t;for(r=1;r<i;r++)a=Math.min(a,e[r]/e[r-1]);void 0!==n&&(a=Math.min(a,n/e[i-1])),e.splice(0,0,a)}function vr(e,t,n){let i;const r=e?e.length:0;for(i=0;i<r;i++)yr(e[i],t,n)}function br(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"}function wr(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function xr(e){return e.formatter("num")(e.node.data.num.value)}function Mr({data:e}){return e?e.label:""}function Sr(e){if(e.dataPoint.auto)return wr;switch(e.dataPoint.labelMode){case"share":default:return wr;case"value":return xr;case"none":return null}}function kr(e,t,n,i,r){const a=r.axis.label.getStyle(),o=r.label.value.getStyle(),l=n.getStyles().label.value;return{type:"labels",key:"funnel-labels",renderer:br(e,!0),layout:{displayOrder:2},settings:{sources:[{component:"fun",selector:".labelLeft",strategy:{type:"rows",settings:{align:0,fill:a.fill,fontSize:parseInt(a.fontSize,10),fontFamily:a.fontFamily,labels:[{label:Mr}],linkData:e=>`${e.data.value} ${Mr(e)}`}}},{component:"fun",selector:".labelCenter",strategy:{type:"rows",settings:{align:.5,fill:o.useContrastColor?({node:e})=>(e=>et.isDark(e.desc.fill)?l.lightColor:l.darkColor)(e):o.fill,fontSize:parseInt(o.fontSize,10),fontFamily:o.fontFamily,labels:[{label:Sr(t)}],linkData:e=>"none"===t.dataPoint.labelMode?Math.random():`${e.data.value} ${Sr(t)(e)}`}}}]},animations:{enabled:i,trackBy:e=>e.data}}}function Tr(e,t,n){if(!t.showDimensionTitle||!t.qHyperCube.qDimensionInfo[0].qFallbackTitle)return!1;const i=t.qHyperCube.qDimensionInfo[0].qFallbackTitle,r=n.axis.title.getStyle();return{type:"text",key:"dimension-title",renderer:br(e,!0),text:i,layout:{dock:"top"},style:{text:{fill:r.fill,fontSize:r.fontSize,fontFamily:r.fontFamily}}}}function Dr(){return{share:{type:"d3-number",format:".1%"},num:{data:{field:"qMeasureInfo/0"}}}}function Rr({picasso:e}){const t=d(),n=h(),i=f(),r=g(),a=p(),u=m(),[c,b]=y(),[w,x]=y(),[M,S]=y(),[k,T]=y();return v((()=>{const c=o({picasso:e,model:i,app:r,translator:a,config:{auto:!1,key:"fill"}});t.style.overflow="hidden";const d=e({renderer:{prio:[u.renderer||"svg"]}}).chart({element:t,data:[],settings:{}}),h=l({chart:d,selections:n,config:{selectionActions:!1}});return S(h),x(c),b(d),T(s()),()=>{h.destroy(),d.destroy()}}),[]),[c,w,M,k]}!function(){let e,t;for(vr(pr,1,10),e=0;e<mr.length;e++)if(mr[e])for(t=0;t<mr[e].length;t++)Array.isArray(mr[e][t])&&vr(mr[e][t])}()}}}));
|
7
|
+
System.register(["picasso.js","picasso-plugin-q","qlik-chart-modules","@nebula.js/stardust"],(function(e){"use strict";var t,n,a,i,o,r,l,s,u,c,d,h,p,m,g,f,y,v,b,w,R,x,S,z,k,D;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){a=e.fontResolver,i=e.getValue,o=e.setValue,r=e.colorService,l=e.selectionService,s=e.cache,u=e.pluginService,c=e.themeService},function(e){d=e.useElement,h=e.useSelections,p=e.useModel,m=e.useApp,g=e.useTranslator,f=e.useOptions,y=e.useState,v=e.useEffect,b=e.useStaleLayout,w=e.useTheme,R=e.useConstraints,x=e.useRect,S=e.usePlugins,z=e.useAppLayout,k=e.usePromise,D=e.onTakeSnapshot}],execute:function(){e("default",(function(e){!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(E).forEach((t=>{e.add(E[t])}))}}(e.translator);const a=t();a.use(n),a.component("funnel",j);const{flags:i}=e;return{ext:H(e),qae:{properties:{initial:I},data:{targets:B}},component(){!function({picasso:e,flags:t}){const n=b(),a=w(),i=R(),o=x(),r=S(),l=z().qLocaleInfo,[s,d,h,p]=zt({picasso:e}),m=f(),g=()=>{const e=s.element.clientWidth!==p.get("width")||s.element.clientHeight!==p.get("height");return!1!==m.chartAnimations&&!e&&!oe.propertiesHaveChanged({viewCache:p,layout:n})},[y]=k((()=>{if(!d)return Promise.resolve();const t=({getUseBaseColors:e})=>({theme:a,colorProps:{...n.color,useBaseColors:e(n)},layout:n,hc:n.qHyperCube}),i=function(e){const t={layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{FUNNEL:"fun",FUNNEL_LABELS:"funnel-labels",DIMENSION_TITLE:"dimension-title"}}};return t}(n),o=u({picassoInstance:e,plugins:r,pluginArgs:i});return Promise.all([d.initialize({createConfig:t}),o.initialize()]).then((()=>o))}),[n,d]);v((()=>{if(!s||!d||!y)return;const e=[{type:"q",key:"qHyperCube",data:n.qHyperCube,config:{localeInfo:l}},...d.getData()],o=c({theme:a,config:{id:"funnelChart"}}),r=function({layout:e,themeService:t}){const n=t.getStyles(),a=t=>{var n,a;return null!==(n=null===(a=e.components)||void 0===a?void 0:a.find((e=>e.key===t)))&&void 0!==n?n:void 0};return{axis:{title:{getStyle:()=>{var e,t,i,o,r,l;return{fontFamily:null!==(e=null===(t=a("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(i=null===(o=a("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.title.fontSize,fill:null!==(r=null===(l=a("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.title)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==r?r:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,o,r,l;return{fontSize:null!==(e=null===(t=a("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t?void 0:t.fontSize)&&void 0!==e?e:n.axis.label.name.fontSize,fontFamily:null!==(i=null===(o=a("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:n.axis.label.name.fontFamily,fill:null!==(r=null===(l=a("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.name)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==r?r:n.axis.label.name.color}}}},label:{value:{getStyle:()=>{var e,t,i,o,r,l,s,u;return{fontSize:null!==(e=null===(t=a("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.fontSize)&&void 0!==e?e:n.label.value.fontSize,fontFamily:null!==(i=null===(o=a("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:n.label.value.fontFamily,fill:null!==(r=null===(l=a("label"))||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==r?r:n.label.value.color,useContrastColor:null===(s=null===(u=a("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.useContrastColor)||void 0===s||s}}}}}}({layout:n,themeService:o}),u=function({flags:e,layout:t,constraints:n,colorService:a,themeService:i,styleModel:o,pluginService:r,animationsEnabled:l}){const s=function(e){const t={...e.getScales()};return t}(a),u=a.getPalettes(),c=function({layout:e,constraints:t,colorService:n,animationsEnabled:a}){const i=n.getDatumProps(),o=n.getColor(),r={type:"funnel",key:"fun",data:{extract:{field:"qDimensionInfo/0",props:{num:{field:"qMeasureInfo/0"},...i}}},brush:t.select||t.active?{}:{trigger:[{contexts:["selection"],data:[""]}],consume:[{context:"selection",filter:e=>"section"===e.tag,style:{inactive:{opacity:.3}}}]},settings:{num:{ref:"num"},fill:o,mode:e.funnel.mode},animations:{enabled:a,isMainComponent:!0,trackBy:e=>`${e.tag}: ${e.data.value}`}};return r}({layout:t,constraints:n,colorService:a,animationsEnabled:l}),d=[c,Rt(e,t,i,l,o),xt(e,t,o)];return{palettes:u,scales:s,components:r.extendComponents(d),formatters:St()}}({flags:t,layout:n,constraints:i,colorService:d,themeService:o,styleModel:r,pluginService:y,animationsEnabled:g});s.update({data:e,settings:u}),p.set("width",s.element.clientWidth),p.set("height",s.element.clientHeight),oe.cacheProperties({viewCache:p,layout:n})}),[s,d,a.name(),y,i]),v((()=>{s&&(s.update(),p.set("width",s.element.clientWidth),p.set("height",s.element.clientHeight))}),[o.width,o.height]),v((()=>{h&&h.setLayout(n)}),[n]),D((e=>d.getSnapshotData().then((t=>(e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData=t,e))).catch((()=>e))))}({picasso:a,flags:i})}}}));var E={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 L={fill:"steelblue",num:1},T=.9,N=150,P=(e,t,n)=>{let a=0,i=0,o=0,r={},l=0;if("labelCenter"===e)a=t.bottomLeft.x,i=t.topRight.y,o=t.bottomRight.x-t.bottomLeft.x,l=t.bottomRight.y-t.topRight.y,r={share:n.share,fill:n.fill};else{const e=180/Math.PI*Math.atan((t.bottomRight.y-t.topRight.y)/(t.topRight.x-t.bottomRight.x));a=e<15&&e>=0?t.topRight.x:e>-15&&e<0?t.bottomRight.x:e<-15?(t.bottomRight.x-t.topRight.x)/2+t.topRight.x+15:(t.topRight.x-t.bottomRight.x)/2+t.bottomRight.x+15,i=t.topRight.y,o=t.width-a,l=t.bottomRight.y-t.topRight.y,r={fill:n.fill}}return{tag:e,type:"rect",x:a,y:i,width:o,height:l,data:n.data,desc:r,fill:"none"}},M=(e,t)=>{const n=(e=>{const t=(e=>{let t=0;return e.forEach((e=>{e.num>t&&(t=e.num)})),t})(e);let n=0;return e.slice().reverse().map((e=>{const a={datum:e,s:n/t,e:e.num/t};return n=e.num,a})).reverse()})(e),a=t.width*T,i=t.height*T,o=(t.width-a)/2,r=(t.height-i)/2,l=a-(a>N&&i>N?100:0),s=(i-1*(n.length-1))/n.length,u=[];return n.forEach(((e,a)=>{const i=(c=e.e,d=a<n.length-1?e.s:e.e,[.5-.5*c,.5+.5*c,.5+.5*d,.5-.5*d]).map((e=>Math.round(e*l+o)));var c,d;const h=s*a+1*a+r,p={bottomRight:{x:i[2],y:Math.round(h+s)},bottomLeft:{x:i[3],y:Math.round(h+s)},topRight:{x:i[1],y:Math.round(h)},topLeft:{x:i[0],y:Math.round(h)},width:t.width},m=`M${p.topLeft.x},${p.topLeft.y} L${p.topRight.x},${p.topRight.y} ${p.bottomRight.x},${p.bottomRight.y} ${p.bottomLeft.x},${p.bottomLeft.y}Z`;u.push({tag:"section",type:"path",d:m,data:e.datum.data,fill:e.datum.fill});const g={share:e.e,fill:e.datum.fill,data:e.datum.data};s>12&&(p.bottomRight.x-p.bottomLeft.x>32&&u.push(P("labelCenter",p,g)),u.push(P("labelLeft",p,g)))})),u},C=(e,t,n,a)=>(a-e)/a*(t-n)+n,q=(e,t,n)=>{const a=e.filter((e=>"NaN"!==e.num&&e.num>0)),i=a.length,o=n.width*T,r=n.height*T,l=Math.round((n.width-o)/2),s=Math.round((n.height-r)/2),u=o-(o>N&&r>N?100:0),c=r-1*(i-1),d=[],h=a[0].data.num.value;let p=s;return a.forEach(((e,a)=>{const i=t[a]*c,o=Math.round(C(p-s,u,.2*u,r)/2),m=Math.round(C(p-s+i,u,.2*u,r)/2),g=l+Math.round(u/2),f={bottomRight:{x:g+m,y:Math.round(p+i)},bottomLeft:{x:g-m,y:Math.round(p+i)},topRight:{x:g+o,y:p},topLeft:{x:g-o,y:p},width:n.width},y=`M${f.topLeft.x},${f.topLeft.y} L${f.topRight.x},${f.topRight.y} ${f.bottomRight.x},${f.bottomRight.y} ${f.bottomLeft.x},${f.bottomLeft.y}Z`;d.push({tag:"section",type:"path",d:y,data:e.data,fill:e.fill});const v={share:e.data.num.value/h,fill:e.fill,data:e.data};i>2&&(f.bottomRight.x-f.bottomLeft.x>32&&d.push(P("labelCenter",f,v)),d.push(P("labelLeft",f,v))),p+=i+1})),d},$=(e,t,n)=>{const a=e.filter((e=>"NaN"!==e.num&&e.num>0));if(a&&a.length>0)switch(t){case"WIDTH":default:return M(a,n);case"ORDER":return q(a,a.map((()=>1/a.length)),n);case"HEIGHT":return q(a,(e=>{const t=e.reduce(((e,t)=>e+t.data.num.value),0);return e.map((e=>e.data.num.value/t))})(a),n);case"AREA":return q(a,((e,t,n)=>{const a=e.reduce(((e,t)=>e+t.data.num.value),0),i=t.width*T,o=t.height*T,r=i*n,l=o*(i+r)/2,s=(i-r)/2/o,u=[];let c=0;for(let t=e.length-1;t>=0;t--){const n=e[t].data.num.value/a,i=2*s*c+r,d=-i/(2*s)+Math.sqrt(i*i/(4*s*s)+n*l/s);u[t]=d/o,c+=d}return u})(a,n,.2),n)}return[]};var j={require:["resolver"],defaultSettings:{settings:{},data:{},style:{item:"$shape"}},render({data:e}){const t=this.resolver.resolve({data:e,defaults:{...L,...this.style.item},settings:this.settings.settings});return $(t.items,this.settings.settings.mode,this.rect)}};const I={version:"1.9.27",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",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},dataPoint:{auto:!0,labelMode:"share"},footnote:"",funnel:{mode:"WIDTH"},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInterColumnSortOrder:[],qInitialDataFetch:[{qWidth:2,qHeight:5e3}],qSuppressMissing:!0,qSuppressZero:!1},showDimensionTitle:!0,showTitles:!0,subtitle:"",title:""};function O(e,t,n){const a=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:a,options:()=>t.getOptions(a),defaultValue:()=>t.getDefaultValue(a)},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.funnelChart",e,"color")})}}}}}function _(e,t,n){const i=a({theme:e,translator:n,flags:t,config:{id:"funnelChart",paths:["axis.title","axis.label.name","label.value"]}});return{component:"styling-panel",show:!0,chartType:"funnelchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.FunnelChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{axisTitleSection:{component:"panel-section",label:"Dimension title",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:O("axis.title",i,e)}}},labelNameSection:{component:"panel-section",label:"Dimension value label",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:O("axis.label.name",i,e)}}},labelValueSection:{component:"panel-section",label:"Value Label",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...O("label.value",i,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}}}}const U={uses:"sorting"},F=(e,t,n)=>{var a;const i=null==n||null===(a=n.sense)||void 0===a?void 0:a.theme;return{uses:"settings",items:{presentation:{type:"items",label:"Presentation",grouped:!0,items:{...(null==t?void 0:t.isEnabled("SENSECLIENT_IM_4897_VIZBUNDLE_STYLING"))&&{funnelStyling:_(i,t,e)},funnelmode:{ref:"funnel.mode",label:"Funnel Mode",type:"string",component:"dropdown",options:[{value:"AREA",label:"Area"},{value:"HEIGHT",label:"Height"},{value:"WIDTH",label:"Width"},{value:"ORDER",label:"Ordering"}],defaultValue:"WIDTH"},dimensionTitle:{ref:"showDimensionTitle",type:"boolean",component:"switch",label:"Dimension title",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",label:"Value labels",component:"switch",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",label:"None"},{value:"share",label:"Share"},{value:"value",label:"Values"}],defaultValue:"share",show:e=>!e.dataPoint.auto}}},colorsAndLegend:{uses:"colorsAndLegend",translation:"Colors",items:{colors:{items:{colorByLabel:{show:!1},expressionLabel:{show:!1}}},legend:{show:!1}}}}}},W={uses:"data",items:{dimensions:{uses:"dimensions",items:{others:{items:{suppressOther:{defaultValue:!0,show:!1}}}},disabledRef:""},measures:{uses:"measures",disabledRef:""}}};function A({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:W,sorting:U,settings:F(e,t,n)}}}function H(e){return{definition:A(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1},importProperties:null,exportProperties:null}}const B=[{path:"/qHyperCubeDef",dimensions:{min:1,max:1,description:()=>"Segments"},measures:{min:1,max:1,description(e){switch(e.funnel.mode){case"WIDTH":return"Width";case"AREA":return"Area";case"HEIGHT":return"Height";case"ORDER":return"Order";default:return""}},added(e,t){2===t.qHyperCubeDef.qInterColumnSortOrder.length&&1!==t.qHyperCubeDef.qInterColumnSortOrder[0]&&(t.qHyperCubeDef.qInterColumnSortOrder=[1,0])}}}];function V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K=Object.prototype.hasOwnProperty,J=Object.prototype.toString,G=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Y=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===J.call(e)},X=function(e){if(!e||"[object Object]"!==J.call(e))return!1;var t,n=K.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&K.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a)return!1;for(t in e);return void 0===t||K.call(e,t)},Q=function(e,t){G&&"__proto__"===t.name?G(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ee=function(e,t){if("__proto__"===t){if(!K.call(e,t))return;if(Z)return Z(e,t).value}return e[t]},te=function e(){var t,n,a,i,o,r,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)a=ee(l,n),l!==(i=ee(t,n))&&(c&&i&&(X(i)||(o=Y(i)))?(o?(o=!1,r=a&&Y(a)?a:[]):r=a&&X(a)?a:{},Q(l,{name:n,newValue:e(c,r,i)})):void 0!==i&&Q(l,{name:n,newValue:i}));return l},ne=V(te),ae={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function ie(e){const{qHyperCube:t,...n}=e,{qAxisData:a,qDataPages:r,qStackedDataPages:l,qTreeDataPages:s,...u}=t,c=ne(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=ae;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(c,e)&&o(c,e,null);else{const e=t[0],n=t[1].split("].")[1];i(c,e,[]).forEach((e=>{void 0!==i(e,n)&&o(e,n,null)}))}})),c}var oe={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:a}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"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(a){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:a,dock:i}){return({currentNodes:o,currentRect:r,previousRect:l})=>{const s=r.x-l.x,u=r.y-l.y,c=r.width-l.width,d=r.height-l.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=r.y,e.y2=e.y1+r.height):(Math.round(e.y1)<r.y||e.y1>r.y+r.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<r.y||e.y>r.y+r.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||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=r.x,e.x2=e.x1+r.width):(Math.round(e.x1)<r.x||e.x1>r.x+r.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<r.x||e.x>r.x+r.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?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=s,e.x2-=s):"text"===e.type&&(e.x-=s)})):n||a?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=s,e.x2+=s+c)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+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 a=t.x-n.x,i=t.y-n.y;0===a&&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-=a,e.y-=i):e.transform=`translate(${-a}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const a=t.x-n.x;0===t.y-n.y&&0===a||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 a=t.x-n.x,i=t.y-n.y;0===a&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=a):(e.x-=a,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 a=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-=a,e.x2-=a);else{const t="x"===e.major.p?a/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:a/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 a=t.x-n.x;0===t.y-n.y&&0===a||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 a=t.x-n.x,i=t.y-n.y;0===a&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=a,e.cy-=i;break;case"rect":e.x-=a,e.y-=i;break;case"path":e.transform=`translate(${-a}, ${-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 a=t.x-n.x,i=t.y-n.y;0===a&&0===i||e.forEach((e=>{e.cx-=a,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 a=t.x-n.x,i=t.y-n.y,o=t.width-n.width,r=t.height-n.height;let l=-a,s=-i;e.forEach((e=>{switch(e.dock){case"right":a>0&&(l=t.width);break;case"left":o<0&&(l=-n.width);break;case"top":r<0&&(s=-n.height);break;case"bottom":i>0&&(s=t.height)}switch(e.type){case"text":case"rect":e.x+=l,e.y+=s;break;case"circle":e.cx+=l,e.cy+=s;break;case"path":e.transform=`translate(${l}, ${s})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=ie(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=ie(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function re(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function le(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function se(){}[["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}]].forEach((([e,{width:t,height:n}])=>{}));var ue=.7,ce=1/ue,de="\\s*([+-]?\\d+)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",me=/^#([0-9a-f]{3,8})$/,ge=new RegExp(`^rgb\\(${de},${de},${de}\\)$`),fe=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),ye=new RegExp(`^rgba\\(${de},${de},${de},${he}\\)$`),ve=new RegExp(`^rgba\\(${pe},${pe},${pe},${he}\\)$`),be=new RegExp(`^hsl\\(${he},${pe},${pe}\\)$`),we=new RegExp(`^hsla\\(${he},${pe},${pe},${he}\\)$`),Re={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 xe(){return this.rgb().formatHex()}function Se(){return this.rgb().formatRgb()}function ze(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=me.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ke(t):3===n?new Le(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=ge.exec(e))?new Le(t[1],t[2],t[3],1):(t=fe.exec(e))?new Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ye.exec(e))?De(t[1],t[2],t[3],t[4]):(t=ve.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=be.exec(e))?qe(t[1],t[2]/100,t[3]/100,1):(t=we.exec(e))?qe(t[1],t[2]/100,t[3]/100,t[4]):Re.hasOwnProperty(e)?ke(Re[e]):"transparent"===e?new Le(NaN,NaN,NaN,0):null}function ke(e){return new Le(e>>16&255,e>>8&255,255&e,1)}function De(e,t,n,a){return a<=0&&(e=t=n=NaN),new Le(e,t,n,a)}function Ee(e){return e instanceof se||(e=ze(e)),e?new Le((e=e.rgb()).r,e.g,e.b,e.opacity):new Le}function Le(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function Te(){return`#${Ce(this.r)}${Ce(this.g)}${Ce(this.b)}`}function Ne(){const e=Pe(this.opacity);return`${1===e?"rgb(":"rgba("}${Me(this.r)}, ${Me(this.g)}, ${Me(this.b)}${1===e?")":`, ${e})`}`}function Pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Me(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ce(e){return((e=Me(e))<16?"0":"")+e.toString(16)}function qe(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new je(e,t,n,a)}function $e(e){if(e instanceof je)return new je(e.h,e.s,e.l,e.opacity);if(e instanceof se||(e=ze(e)),!e)return new je;if(e instanceof je)return e;var t=(e=e.rgb()).r/255,n=e.g/255,a=e.b/255,i=Math.min(t,n,a),o=Math.max(t,n,a),r=NaN,l=o-i,s=(o+i)/2;return l?(r=t===o?(n-a)/l+6*(n<a):n===o?(a-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,r*=60):l=s>0&&s<1?0:r,new je(r,l,s,e.opacity)}function je(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function Ie(e){return(e=(e||0)%360)<0?e+360:e}function Oe(e){return Math.max(0,Math.min(1,e||0))}function _e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}re(se,ze,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xe,formatHex:xe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return $e(this).formatHsl()},formatRgb:Se,toString:Se}),re(Le,(function(e,t,n,a){return 1===arguments.length?Ee(e):new Le(e,t,n,null==a?1:a)}),le(se,{brighter(e){return e=null==e?ce:Math.pow(ce,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ue:Math.pow(ue,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(Me(this.r),Me(this.g),Me(this.b),Pe(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:Te,formatHex:Te,formatHex8:function(){return`#${Ce(this.r)}${Ce(this.g)}${Ce(this.b)}${Ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ne,toString:Ne})),re(je,(function(e,t,n,a){return 1===arguments.length?$e(e):new je(e,t,n,null==a?1:a)}),le(se,{brighter(e){return e=null==e?ce:Math.pow(ce,e),new je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ue:Math.pow(ue,e),new je(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,a=n+(n<.5?n:1-n)*t,i=2*n-a;return new Le(_e(e>=240?e-240:e+120,i,a),_e(e,i,a),_e(e<120?e+240:e-120,i,a),this.opacity)},clamp(){return new je(Ie(this.h),Oe(this.s),Oe(this.l),Pe(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=Pe(this.opacity);return`${1===e?"hsl(":"hsla("}${Ie(this.h)}, ${100*Oe(this.s)}%, ${100*Oe(this.l)}%${1===e?")":`, ${e})`}`}}));const Ue=Math.PI/180,Fe=180/Math.PI,We=.96422,Ae=.82521,He=4/29,Be=6/29,Ve=3*Be*Be,Ke=Be*Be*Be;function Je(e){if(e instanceof Ge)return new Ge(e.l,e.a,e.b,e.opacity);if(e instanceof tt)return nt(e);e instanceof Le||(e=Ee(e));var t,n,a=Qe(e.r),i=Qe(e.g),o=Qe(e.b),r=Ze((.2225045*a+.7168786*i+.0606169*o)/1);return a===i&&i===o?t=n=r:(t=Ze((.4360747*a+.3850649*i+.1430804*o)/We),n=Ze((.0139322*a+.0971045*i+.7141733*o)/Ae)),new Ge(116*r-16,500*(t-r),200*(r-n),e.opacity)}function Ge(e,t,n,a){this.l=+e,this.a=+t,this.b=+n,this.opacity=+a}function Ze(e){return e>Ke?Math.pow(e,1/3):e/Ve+He}function Ye(e){return e>Be?e*e*e:Ve*(e-He)}function Xe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Qe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function et(e,t,n,a){return 1===arguments.length?function(e){if(e instanceof tt)return new tt(e.h,e.c,e.l,e.opacity);if(e instanceof Ge||(e=Je(e)),0===e.a&&0===e.b)return new tt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fe;return new tt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new tt(e,t,n,null==a?1:a)}function tt(e,t,n,a){this.h=+e,this.c=+t,this.l=+n,this.opacity=+a}function nt(e){if(isNaN(e.h))return new Ge(e.l,0,0,e.opacity);var t=e.h*Ue;return new Ge(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}re(Ge,(function(e,t,n,a){return 1===arguments.length?Je(e):new Ge(e,t,n,null==a?1:a)}),le(se,{brighter(e){return new Ge(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ge(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 Le(Xe(3.1338561*(t=We*Ye(t))-1.6168667*(e=1*Ye(e))-.4906146*(n=Ae*Ye(n))),Xe(-.9787684*t+1.9161415*e+.033454*n),Xe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),re(tt,et,le(se,{brighter(e){return new tt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new tt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nt(this).rgb()}}));var at,it,ot={isDark:function(e){return et(e).l<70}};function rt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}1===(at=rt).length&&(it=at,at=function(e,t){return rt(it(e),t)});var lt="$";function st(){}function ut(e,t){var n=new st;if(e instanceof st)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var a,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(a=e[i],i,e),a)}else if(e)for(var r in e)n.set(r,e[r]);return n}function ct(){}st.prototype=ut.prototype={constructor:st,has:function(e){return lt+e in this},get:function(e){return this[lt+e]},set:function(e,t){return this[lt+e]=t,this},remove:function(e){var t=lt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===lt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===lt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===lt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===lt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===lt&&++e;return e},empty:function(){for(var e in this)if(e[0]===lt)return!1;return!0},each:function(e){for(var t in this)t[0]===lt&&e(this[t],t.slice(1),this)}};var dt=ut.prototype;ct.prototype={constructor:ct,has:dt.has,add:function(e){return this[lt+(e+="")]=e,this},remove:dt.remove,clear:dt.clear,values:dt.keys,size:dt.size,empty:dt.empty,each:dt.each},ne.bind(null,!0);const ht=[[2,4,6],[2,4],[3]],pt=[,[,,[[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 mt(e,t,n){const a=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<a;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[a-1])),e.splice(0,0,o)}function gt(e,t,n){let a;const i=e?e.length:0;for(a=0;a<i;a++)mt(e[a],t,n)}function ft(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"}function yt(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function vt(e){return e.formatter("num")(e.node.data.num.value)}function bt({data:e}){return e?e.label:""}function wt(e){if(e.dataPoint.auto)return yt;switch(e.dataPoint.labelMode){case"share":default:return yt;case"value":return vt;case"none":return null}}function Rt(e,t,n,a,i){const o=i.axis.label.getStyle(),r=i.label.value.getStyle(),l=n.getStyles().label.value;return{type:"labels",key:"funnel-labels",renderer:ft(e,!0),layout:{displayOrder:2},settings:{sources:[{component:"fun",selector:".labelLeft",strategy:{type:"rows",settings:{align:0,fill:o.fill,fontSize:parseInt(o.fontSize,10),fontFamily:o.fontFamily,labels:[{label:bt}],linkData:e=>`${e.data.value} ${bt(e)}`}}},{component:"fun",selector:".labelCenter",strategy:{type:"rows",settings:{align:.5,fill:r.useContrastColor?({node:e})=>(e=>ot.isDark(e.desc.fill)?l.lightColor:l.darkColor)(e):r.fill,fontSize:parseInt(r.fontSize,10),fontFamily:r.fontFamily,labels:[{label:wt(t)}],linkData:e=>"none"===t.dataPoint.labelMode?Math.random():`${e.data.value} ${wt(t)(e)}`}}}]},animations:{enabled:a,trackBy:e=>e.data}}}function xt(e,t,n){if(!t.showDimensionTitle||!t.qHyperCube.qDimensionInfo[0].qFallbackTitle)return!1;const a=t.qHyperCube.qDimensionInfo[0].qFallbackTitle,i=n.axis.title.getStyle();return{type:"text",key:"dimension-title",renderer:ft(e,!0),text:a,layout:{dock:"top"},style:{text:{fill:i.fill,fontSize:i.fontSize,fontFamily:i.fontFamily}}}}function St(){return{share:{type:"d3-number",format:".1%"},num:{data:{field:"qMeasureInfo/0"}}}}function zt({picasso:e}){const t=d(),n=h(),a=p(),i=m(),o=g(),u=f(),[c,b]=y(),[w,R]=y(),[x,S]=y(),[z,k]=y();return v((()=>{const c=r({picasso:e,model:a,app:i,translator:o,config:{auto:!1,key:"fill"}});t.style.overflow="hidden";const d=e({renderer:{prio:[u.renderer||"svg"]}}).chart({element:t,data:[],settings:{}}),h=l({chart:d,selections:n,config:{selectionActions:!1}});return S(h),R(c),b(d),k(s()),()=>{h.destroy(),d.destroy()}}),[]),[c,w,x,z]}!function(){let e,t;for(gt(ht,1,10),e=0;e<pt.length;e++)if(pt[e])for(t=0;t<pt[e].length;t++)Array.isArray(pt[e][t])&>(pt[e][t])}()}}}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nebula.js/sn-funnel-chart",
|
3
|
-
"version": "1.9.
|
3
|
+
"version": "1.9.27",
|
4
4
|
"description": "A sequential chart visualizing a linear process with connected stages, for example a sales process with potential revenue at each stage.",
|
5
5
|
"author": "QlikTech International AB",
|
6
6
|
"license": "MIT",
|