UNPKG

@nebula.js/sn-sankey-chart

Version:

A flow diagram visually emphasizing major transfers or flows within defined system boundaries.

7 lines (6 loc) 79.1 kB
/* * @nebula.js/sn-sankey-chart v1.15.0 * Copyright (c) 2026 QlikTech International AB * Released under the MIT license. */ System.register(["picasso.js","picasso-plugin-q","qlik-chart-modules/react","qlik-chart-modules","@nebula.js/stardust"],function(e){"use strict";var t,n,i,a,r,o,s,l,c,u,d,h,p,f,g,m,y,v,b,k,w,x,S,z,R;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){i=e.reactRenderer,a=e.disclaimerComponent},function(e){r=e.fontResolver,o=e.getValue,s=e.setValue,l=e.selectionService,c=e.pluginService,u=e.cache,d=e.disclaimerService,h=e.themeService},function(e){p=e.useStaleLayout,f=e.useElement,g=e.useSelections,m=e.useAppLayout,y=e.useRect,v=e.useState,b=e.useConstraints,k=e.useOptions,w=e.useTheme,x=e.useTranslator,S=e.usePlugins,z=e.useEffect,R=e.usePromise}],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 r=t();r.use(n),r.renderer("react-qcm",i),r.component("disclaimer",a),r.component("sankey",H);const{flags:o}=e;return{ext:X(e),qae:{properties:Ct,data:$t},component:()=>function({picasso:e,flags:t}){const n=p(),i=f(),a=g(),r=m(),o=y(),[s,E]=v(),[L,D]=v(),[q,T]=v(),[$,N]=v(),C=b(),M=k(),P=r.qLocaleInfo,j=w(),I=x(),O=S(),_=()=>{const e=s.element.clientWidth!==$.get("width")||s.element.clientHeight!==$.get("height");return!1!==M.chartAnimations&&!e&&!oe.propertiesHaveChanged({viewCache:$,layout:n})};z(()=>{i.style.overflow="hidden";const t=e({renderer:{prio:[M.renderer||"svg"]}}),r=t.chart({element:i,data:[],settings:{}});E(r);const o=l({chart:r,actions:!1,selections:a,config:{brushRanges:!1}});D(o);const s=function(e){const t={layout:e,keys:{SCALE:{DIMENSIONS:"dimensions"},COMPONENT:{LABELS_TITLES:"labels-titles",LABELS:"labels"}}};return t}(n),d=c({picassoInstance:t,plugins:O,pluginArgs:s});return T(d),N(u()),()=>{o.destroy(),r.destroy()}},[]),z(()=>{s&&(s.update(),$.set("width",s.element.clientWidth),$.set("height",s.element.clientHeight))},[o.width,o.height]),z(()=>{L&&L.setLayout(n)},[L,n]);const[A]=R(()=>q?q.initialize():Promise.resolve(),[n,q]);z(()=>{if(!s)return;let e=n.qHyperCube;const i=e.qDimensionInfo.length,a=e.qDataPages[0].qMatrix.filter(e=>e[i].qNum>0);e={...n.qHyperCube,qDataPages:[{qArea:{...e.qDataPages[0].qArea,qHeight:a.height},qMatrix:a}],qSize:{qcx:n.qHyperCube.qSize.qcx,qcy:a.height},qColumnOrder:null};const r=d({config:{disclaimers:{OnlyNegativeOrZeroValues:{condition:()=>0===a.length}}}});r.initialize();const o=h({theme:j,config:{id:"sankeyChart"}}),l=function({layout:e,themeService:t}){const n=t.getStyles(),i=t=>e.components?.find(e=>e.key===t)??void 0;return{axis:{title:{getStyle:()=>({fontFamily:i("axis")?.axis?.title?.fontFamily??n.axis.title.fontFamily,fontSize:i("axis")?.axis?.title?.fontSize??n.axis.title.fontSize,fill:i("axis")?.axis?.title?.color?.color??n.axis.title.color})}},label:{value:{getStyle:()=>({fontSize:i("label")?.label?.value?.fontSize??n.label.value.fontSize,fontFamily:i("label")?.label?.value?.fontFamily??n.label.value.fontFamily,fill:i("label")?.label?.value?.color?.color??n.label.value.color,useContrastColor:i("label")?.label?.value?.useContrastColor??!0})}}}}({layout:n,themeService:o});s.update({data:[{type:"q",key:"qHyperCube",config:{localeInfo:P},data:e}],settings:Tt({flags:t,layout:n,theme:j,constraints:C,translator:I,selectionService:L,themeService:o,styleModel:l,pluginService:q,disclaimerService:r,animationsEnabled:_})}),$.set("width",s.element.clientWidth),$.set("height",s.element.clientHeight),oe.cacheProperties({viewCache:$,layout:n})},[n,s,C,j.name(),A])}({picasso:r,flags:o})}});var E={Common_Measures:{id:"Common.Measures",locale:{"de-DE":"Kennzahlen","en-US":"Measures","es-ES":"Medidas","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","ru-RU":"Меры","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"de-DE":"Farbformel","en-US":"Color expression","es-ES":"Expresión de color","fr-FR":"Expression de couleur","it-IT":"Espressione colore","ja-JP":"カラー表現","ko-KR":"색상 표현식","nl-NL":"Kleuruitdrukking","pl-PL":"Wyrażenie koloru","pt-BR":"Expressão de cor","ru-RU":"Выражение для цвета","sv-SE":"Färguttryck","tr-TR":"Renk ifadesi","zh-CN":"颜色表达式","zh-TW":"色彩運算式"}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"de-DE":"+{0} mehr","en-US":"+{0} more","es-ES":"+{0} más","fr-FR":"+{0} plus","it-IT":"+{0} altre","ja-JP":"さらに +{0}","ko-KR":"{0} 이상","nl-NL":"+{0} meer","pl-PL":"Jeszcze {0}","pt-BR":"+{0} mais","ru-RU":"Еще +{0}","sv-SE":"Fler än {0} ytterligare","tr-TR":"+{0} daha","zh-CN":"+{0} 以上","zh-TW":"其他 +{0} 個"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"de-DE":"Summe negativer Werte","en-US":"Sum of negatives","es-ES":"Suma de negativos","fr-FR":"Somme des valeurs négatives","it-IT":"Somma valori negativi","ja-JP":"負の合計","ko-KR":"음수 합계","nl-NL":"Som negatieven","pl-PL":"Suma ujemnych","pt-BR":"Soma de negativos","ru-RU":"Сумма отрицательных значений","sv-SE":"Summan av negativa","tr-TR":"Negatif değerlerin toplamı","zh-CN":"负值总和","zh-TW":"負數總和"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"de-DE":"Summe positiver Werte","en-US":"Sum of positives","es-ES":"Suma de positivos","fr-FR":"Sommes des valeurs positives","it-IT":"Somma valori positivi","ja-JP":"正の合計","ko-KR":"양수 합계","nl-NL":"Som positieven","pl-PL":"Suma dodatnich","pt-BR":"Soma de positivos","ru-RU":"Сумма положительных значений","sv-SE":"Summan av positiva","tr-TR":"Pozitif değerlerin toplamı","zh-CN":"正值总和","zh-TW":"正數總和"}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","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.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","en-US":"Currently showing a limited data set.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","ja-JP":"現在、限定的なデータ セットを表示しています。","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","pt-BR":"Mostrando um conjunto de dados limitado.","ru-RU":"В настоящее время отображается ограниченный набор данных.","sv-SE":"Just nu visas en begränsad datauppsättning.","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","zh-CN":"当前正显示有限的数据集。","zh-TW":"目前顯示的是有限的資料集。"}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","en-US":"The data set contains negative or zero values that cannot be shown in this chart.","es-ES":"El conjunto de datos contiene valores cero o negativos que no se pueden mostrar en este gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze diagram.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。"}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","en-US":"The data set contains negative values that cannot be shown in this chart.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","zh-CN":"数据集包含无法在此图表中显示的负值。","zh-TW":"資料集包含無法在此圖表中顯示的負值。"}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","en-US":"The selections generated no data for this chart.","es-ES":"Las selecciones no han generado datos para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ko-KR":"선택 내용으로 이 차트에 대한 데이터가 생성되지 않았습니다.","nl-NL":"De selecties hebben geen gegevens voor de diagram gegenereerd.","pl-PL":"Wymiary nie spowodowały wygenerowania danych dla tego wykresu.","pt-BR":"As seleções não geraram dados para este gráfico.","ru-RU":"В результате выборок данные для этой диаграммы не созданы.","sv-SE":"Urvalen genererade inga data för detta diagram.","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","zh-CN":"选择未生成此图表的数据。","zh-TW":"此選項無法產生任何適用於此圖表的資料。"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","en-US":"The data used to color this visualization only contains undefined values.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。"}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","en-US":"The chart is not displayed because it contains only undefined values.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","nl-NL":"De diagram wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości niezdefiniowane.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","zh-CN":"未显示图表,因为它仅包含未定义的值。","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。"}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","en-US":"The chart is not displayed because it contains only negative or zero values.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos o valores cero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","nl-NL":"De diagram wordt niet weergegeven omdat deze alleen negatieve waarden of nulwaarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne lub zerowe.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa värden eller nollvärden","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","zh-CN":"未显示图表,因为它仅包含负值或零值。","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。"}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","en-US":"The chart is not displayed because it contains only negative values.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","zh-CN":"未显示图表,因为它仅包含负值。","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"de-DE":"Dimension nicht gefunden","en-US":"Dimension not found","es-ES":"No se ha encontrado la dimensión","fr-FR":"Dimension introuvable","it-IT":"Dimensione non trovata","ja-JP":"軸が見つかりません","ko-KR":"차원을 찾지 못했습니다.","nl-NL":"Dimensie niet gevonden","pl-PL":"Wymiar nie został znaleziony","pt-BR":"Dimensão não encontrada","ru-RU":"Измерение не найдено","sv-SE":"Dimensionen hittades inte","tr-TR":"Boyut bulunamadı","zh-CN":"未找到维度","zh-TW":"找不到維度"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"de-DE":"Kennzahl nicht gefunden","en-US":"Measure not found","es-ES":"No se ha encontrado la medida","fr-FR":"Mesure introuvable","it-IT":"Misura non trovata","ja-JP":"メジャーが見つかりません","ko-KR":"측정값을 찾지 못했습니다.","nl-NL":"Meting niet gevonden","pl-PL":"Miara nie została znaleziona","pt-BR":"Medida não encontrada","ru-RU":"Мера не найдена","sv-SE":"Måttet hittades inte","tr-TR":"Hesaplama bulunamadı","zh-CN":"未找到度量","zh-TW":"找不到量值"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"de-DE":"Lasso-Auswahl deaktivieren","en-US":"Turn off lasso selection","es-ES":"Desactivar la selección de contorno","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","ru-RU":"Выключить выбор лассо","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"de-DE":"Lasso-Auswahl aktivieren","en-US":"Turn on lasso selection","es-ES":"Activar la selección de contorno","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","ru-RU":"Включить выбор лассо","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取"}},Tooltip_dimensions_cyclic:{id:"Tooltip.dimensions.cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Descendre dans la hiérarchie de la dimension","it-IT":"Dimensione di drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão da hierarquia","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"下钻维度","zh-TW":"向下探查維度"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"de-DE":"Auswahlen sind für diese Dimension gesperrt","en-US":"Selections on this dimension are locked","es-ES":"Las selecciones de esta dimensión están bloqueadas.","fr-FR":"Sélections verrouillées pour cette dimension","it-IT":"Le selezioni in questa dimensione sono bloccate","ja-JP":"この軸での選択はロックされています","ko-KR":"이 차원의 선택은 잠겨 있습니다.","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","pl-PL":"Wybory dotyczące tego wymiaru są zablokowane","pt-BR":"Seleções estão bloqueadas nesta dimensão","ru-RU":"Выборки для данного измерения заблокированы","sv-SE":"Urval i den här dimensionen är låsta","tr-TR":"Bu boyuttaki seçimler kilitli","zh-CN":"相关维度的选择已锁定","zh-TW":"已鎖定此維度上的選項"}},Visualizations_Descriptions_Bars:{id:"Visualizations.Descriptions.Bars",locale:{"de-DE":"Balken","en-US":"Bars","es-ES":"Barras","fr-FR":"Barres","it-IT":"Barre","ja-JP":"棒","ko-KR":"막대","nl-NL":"Staven","pl-PL":"Słupki","pt-BR":"Barras","ru-RU":"Полосы","sv-SE":"Staplar","tr-TR":"Çubuklar","zh-CN":"条形","zh-TW":"長條"}},Visualizations_Descriptions_Group:{id:"Visualizations.Descriptions.Group",locale:{"de-DE":"Gruppe","en-US":"Group","es-ES":"Grupo","fr-FR":"Groupe","it-IT":"Gruppo","ja-JP":"グループ","ko-KR":"그룹","nl-NL":"Groep","pl-PL":"Grupa","pt-BR":"Grupo","ru-RU":"Группа","sv-SE":"Grupp","tr-TR":"Grup","zh-CN":"组","zh-TW":"群組"}},Visualizations_Descriptions_HeightLine:{id:"Visualizations.Descriptions.HeightLine",locale:{"de-DE":"Linienhöhe","en-US":"Height of line","es-ES":"Altura de línea","fr-FR":"Hauteur de ligne","it-IT":"Altezza della linea","ja-JP":"線の高さ","ko-KR":"선 높이","nl-NL":"Hoogte van lijn","pl-PL":"Wysokość linii","pt-BR":"Altura da linha","ru-RU":"Высота линии","sv-SE":"Linjens höjd","tr-TR":"Çizgi yüksekliği","zh-CN":"线高度","zh-TW":"折線高度"}},Visualizations_Descriptions_LengthBars:{id:"Visualizations.Descriptions.LengthBars",locale:{"de-DE":"Balkenlänge","en-US":"Length of bars","es-ES":"Longitud de barras","fr-FR":"Longueur des barres","it-IT":"Lunghezza delle barre","ja-JP":"棒の長さ","ko-KR":"막대 길이","nl-NL":"Lengte van staven","pl-PL":"Długość słupków","pt-BR":"Comprimento das barras","ru-RU":"Длина полос","sv-SE":"Staplarnas längd","tr-TR":"Çubuk uzunluğu","zh-CN":"条形长度","zh-TW":"長條長度"}},properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"de-DE":"Freigeben","en-US":"Share","es-ES":"Compartir","fr-FR":"Partage","it-IT":"Condividi","ja-JP":"共有","ko-KR":"공유","nl-NL":"Delen","pl-PL":"Udostępnij","pt-BR":"Compartilhar","ru-RU":"Совместное использование","sv-SE":"Dela","tr-TR":"Paylaş","zh-CN":"共享","zh-TW":"共用"}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"de-DE":"Durchschnitt","en-US":"Average","es-ES":"Media","fr-FR":"Moyenne","it-IT":"Media","ja-JP":"平均値","ko-KR":"평균","nl-NL":"Gemiddelde","pl-PL":"Średnia","pt-BR":"Média","ru-RU":"Среднее","sv-SE":"Medel","tr-TR":"Ortalama","zh-CN":"平均值","zh-TW":"平均值"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"de-DE":"Exponentiell","en-US":"Exponential","es-ES":"Exponencial","fr-FR":"Exponentiel","it-IT":"Esponenziale","ja-JP":"指数","ko-KR":"지수","nl-NL":"Exponentieel","pl-PL":"Wykładnicze","pt-BR":"Exponencial","ru-RU":"Экспоненциальный","sv-SE":"Exponentiell","tr-TR":"Üstel","zh-CN":"指数","zh-TW":"指數"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"de-DE":"Linear","en-US":"Linear","es-ES":"Lineal","fr-FR":"Linéaire","it-IT":"Lineare","ja-JP":"線形","ko-KR":"선형","nl-NL":"Lineair","pl-PL":"Liniowe","pt-BR":"Linear","ru-RU":"Линейный","sv-SE":"Linjär","tr-TR":"Doğrusal","zh-CN":"线性","zh-TW":"線性"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"de-DE":"Logarithmisch","en-US":"Logarithmic","es-ES":"Logarítmica","fr-FR":"Logarithmique","it-IT":"Logaritmica","ja-JP":"対数","ko-KR":"로그","nl-NL":"Logaritmisch","pl-PL":"Logarytmiczne","pt-BR":"Logarítmico","ru-RU":"Логарифмический","sv-SE":"Logaritmisk","tr-TR":"Logaritmik","zh-CN":"对数","zh-TW":"對數"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"de-DE":"Polynom zweiten Grades","en-US":"Second degree polynomial","es-ES":"Polinómica de segundo grado","fr-FR":"Polynomial du 2ème degré","it-IT":"Polinomio di secondo grado","ja-JP":"2 番目の角度の多項式近似","ko-KR":"2차 다항식","nl-NL":"Tweedegraadspolynoom","pl-PL":"Wielomianowe drugiego stopnia","pt-BR":"Polinômio de segundo grau","ru-RU":"Полиномиальный второй степени","sv-SE":"Polynomial, andra graden","tr-TR":"İkinci derece polinom","zh-CN":"二次多项式","zh-TW":"第二度多項式"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"de-DE":"Polynom dritten Grades","en-US":"Third degree polynomial","es-ES":"Polinómica de tercer grado","fr-FR":"Polynomial du 3ème degré","it-IT":"Polinomio di terzo grado","ja-JP":"3 番目の角度の多項式近似","ko-KR":"3차 다항식","nl-NL":"Derdegraadspolynoom","pl-PL":"Wielomianowe trzeciego stopnia","pt-BR":"Polinômio de terceiro grau","ru-RU":"Полиномиальный третьей степени","sv-SE":"Polynomial, tredje graden","tr-TR":"Üçüncü derece polinom","zh-CN":"三次多项式","zh-TW":"第三度多項式"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"de-DE":"Polynom vierten Grades","en-US":"Fourth degree polynomial","es-ES":"Polinómica de cuarto grado","fr-FR":"Polynomial du 4ème degré","it-IT":"Polinomio di quarto grado","ja-JP":"4 番目の角度の多項式近似","ko-KR":"4차 다항식","nl-NL":"Vierdegraadspolynoom","pl-PL":"Wielomianowe czwartego stopnia","pt-BR":"Polinômio de quarto grau","ru-RU":"Полиномиальный четвертой степени","sv-SE":"Polynomial, fjärde graden","tr-TR":"Dördüncü derece polinom","zh-CN":"四次多项式","zh-TW":"第四度多項式"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"de-DE":"Potenz","en-US":"Power","es-ES":"Potencia","fr-FR":"Puissance","it-IT":"Potenza","ja-JP":"累乗","ko-KR":"거듭제곱","nl-NL":"Macht","pl-PL":"Potęgowe","pt-BR":"Potência","ru-RU":"Степенной","sv-SE":"Potens","tr-TR":"Üs","zh-CN":"幂","zh-TW":"乘冪"}}};function L(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let i=-1;for(let a of e)null!=(a=t(a,++i,e))&&(n<a||void 0===n&&a>=a)&&(n=a)}return n}function D(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let i=-1;for(let a of e)(a=+t(a,++i,e))&&(n+=a)}return n}function q(e,t){return e.sourceLinks.length?e.depth:t-1}function T(e){return function(){return e}}function $(e,t){return C(e.source,t.source)||e.index-t.index}function N(e,t){return C(e.target,t.target)||e.index-t.index}function C(e,t){return e.y0-t.y0}function M(e){return e.value}function P(e){return e.index}function j(e){return e.nodes}function I(e){return e.links}function O(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function _({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function A(){let e,t,n,i=0,a=0,r=1,o=1,s=24,l=8,c=P,u=q,d=j,h=I,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const i=new Map(e.map((t,n)=>[c(t,n,e),t]));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:a}=n;"object"!=typeof t&&(t=n.source=O(i,t)),"object"!=typeof a&&(a=n.target=O(i,a)),t.sourceLinks.push(n),a.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:i}of e)t.sort(n),i.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(D(t.sourceLinks,M),D(t.targetLinks,M)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),i=new Set,a=0;for(;n.size;){for(const e of n){e.depth=a;for(const{target:t}of e.sourceLinks)i.add(t)}if(++a>t)throw new Error("circular link");n=i,i=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),i=new Set,a=0;for(;n.size;){for(const e of n){e.height=a;for(const{source:t}of e.targetLinks)i.add(t)}if(++a>t)throw new Error("circular link");n=i,i=new Set}}(f),function(n){const c=function({nodes:e}){const n=L(e,e=>e.depth)+1,a=(r-i-s)/(n-1),o=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(u.call(null,t,n))));t.layer=e,t.x0=i+e*a,t.x1=t.x0+s,o[e]?o[e].push(t):o[e]=[t]}if(t)for(const e of o)e.sort(t);return o}(n);e=Math.min(l,(o-a)/(L(c,e=>e.length)-1)),function(t){const n=function(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let i=-1;for(let a of e)null!=(a=t(a,++i,e))&&(n>a||void 0===n&&a>=a)&&(n=a)}return n}(t,t=>(o-a-(t.length-1)*e)/D(t,M));for(const i of t){let t=a;for(const a of i){a.y0=t,a.y1=t+a.value*n,t=a.y1+e;for(const e of a.sourceLinks)e.width=e.value*n}t=(o-t+e)/(i.length+1);for(let e=0;e<i.length;++e){const n=i[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}w(i)}}(c);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(c,t,n),g(c,t,n)}}(f),_(f),f}function g(e,n,i){for(let a=1,r=e.length;a<r;++a){const r=e[a];for(const e of r){let t=0,i=0;for(const{source:n,value:a}of e.targetLinks){let r=a*(e.layer-n.layer);t+=x(n,e)*r,i+=r}if(!(i>0))continue;let a=(t/i-e.y0)*n;e.y0+=a,e.y1+=a,k(e)}void 0===t&&r.sort(C),y(r,i)}}function m(e,n,i){for(let a=e.length-2;a>=0;--a){const r=e[a];for(const e of r){let t=0,i=0;for(const{target:n,value:a}of e.sourceLinks){let r=a*(n.layer-e.layer);t+=S(e,n)*r,i+=r}if(!(i>0))continue;let a=(t/i-e.y0)*n;e.y0+=a,e.y1+=a,k(e)}void 0===t&&r.sort(C),y(r,i)}}function y(t,n){const i=t.length>>1,r=t[i];b(t,r.y0-e,i-1,n),v(t,r.y1+e,i+1,n),b(t,o,t.length-1,n),v(t,a,0,n)}function v(t,n,i,a){for(;i<t.length;++i){const r=t[i],o=(n-r.y0)*a;o>1e-6&&(r.y0+=o,r.y1+=o),n=r.y1+e}}function b(t,n,i,a){for(;i>=0;--i){const r=t[i],o=(r.y1-n)*a;o>1e-6&&(r.y0-=o,r.y1-=o),n=r.y0-e}}function k({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(N);for(const{target:{targetLinks:t}}of e)t.sort($)}}function w(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(N),n.sort($)}function x(t,n){let i=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:a,width:r}of t.sourceLinks){if(a===n)break;i+=r+e}for(const{source:e,width:a}of n.targetLinks){if(e===t)break;i-=a}return i}function S(t,n){let i=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:a,width:r}of n.targetLinks){if(a===t)break;i+=r+e}for(const{target:e,width:a}of t.sourceLinks){if(e===n)break;i-=a}return i}return f.update=function(e){return _(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:T(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:T(e),f):u},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:T(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:T(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(i=a=0,r=+e[0],o=+e[1],f):[r-i,o-a]},f.extent=function(e){return arguments.length?(i=+e[0][0],r=+e[1][0],a=+e[0][1],o=+e[1][1],f):[[i,a],[r,o]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}const U=4,W={id:"",fill:"blue",opacity:1,stroke:"#000",strokeWidth:0,strokeDasharray:""},B={fill:"none",stroke:"#ccc",opacity:.6,from:"",to:"",value:0},F=e=>{const t=[`M${e.source.x1} ${e.y0-.5*e.width}`,`C${.5*(e.source.x1+e.target.x0)},${e.y0-.5*e.width+32}`,`${.5*(e.source.x1+e.target.x0)},${e.y1-.5*e.width+32}`,`${e.target.x0},${e.y1-.5*e.width}`].join(" "),n=[`C${.5*(e.source.x1+e.target.x0)},${e.y1+.5*e.width+32}`,`${.5*(e.source.x1+e.target.x0)},${e.y0+.5*e.width+32}`,`${e.source.x1},${e.y0+.5*e.width}`].join(" ");return`${t}${`V${e.y1+.5*e.width}`}${n}${"V"+(e.y0-.5*e.width)}`};var H={require:["resolver","chart","renderer"],defaultSettings:{settings:{},data:{},style:{node:"$shape",link:"$shape-outline",title:"$title"}},render({data:e}){const t=this.settings.settings,n=e.items.filter(e=>"node"===e.type.value),i=e.items.filter(e=>"link"===e.type.value),a={},r=this.resolver.resolve({data:{items:n},defaults:{...W,...this.style.node},settings:t.node}),o=this.resolver.resolve({data:{items:i},defaults:{...B,...this.style.link},settings:t.link}),s=[],l={},c=r.items;c.forEach(e=>{a[e.id]=e;const t=e.data.source.field;void 0===l[t]&&(l[t]=s.length,s[l[t]]=0),s[l[t]]++});const u=[],d={};o.items.forEach(e=>{if(e.value<=0)return;const t=`${e.from}__${e.to}__${e.fill}`;d[t]||(d[t]={...e,from:a[e.from],to:a[e.to],source:e.from,target:e.to,value:0},u.push(d[t]));d[t].value+=e.value});const h=this.renderer.measureText(this.style.title).height+U+8,p=Math.max(...s),f=(this.rect.height-h)/p*.5*t.layout.nodePadding,g=Math.max(t.layout.nodeWidth>0?10:0,this.rect.width/(2*s.length)*t.layout.nodeWidth),m=(this.rect.width-g*s.length)/(s.length-1),y=A().nodeWidth(g).nodePadding(f).nodeId(e=>e.id).extent([[0,h],[this.rect.width,this.rect.height]]);void 0!==t.layout.nodeSort&&y.nodeSort(t.layout.nodeSort),y.nodes(c).links(u).iterations(32)();const v=[];Object.keys(l).forEach((e,t,n)=>{const i=t*(g+m)-m/2,a=i+m+g,r=0===t?"Left":t>=n.length-1?"Right":"Center";v.push({desc:{label:this.chart.dataset().field(e).title()},tag:`dimensionTitle${r}`,type:"rect",x:Math.max(0,i),y:0,width:Math.min(this.rect.width,a)-Math.max(0,i),height:h,fill:"none",stroke:"green",strokeWidth:0,opacity:0})}),u.forEach(e=>{var n;t.link.shadow&&1===t.link.opacity&&v.push({data:e.data,type:"path",d:F(e),strokeWidth:0,fill:"rgba(0, 0, 0, 0.1)",tag:"shadow"}),v.push({desc:{source:e.source.data,target:e.target.data,flow:e.value},data:e.data,tag:"link",type:"path",d:(n=e,[`M${n.source.x1},${n.y0}`,`C${.5*(n.source.x1+n.target.x0)},${n.y0}`,`${.5*(n.source.x1+n.target.x0)},${n.y1}`,`${n.target.x0},${n.y1}`].join(" ")),strokeWidth:Math.max(1,e.width),stroke:"SOURCE"===e.fill?e.source.fill:"TARGET"===e.fill?e.target.fill:e.fill,fill:"none",opacity:t.link.opacity,collider:{visual:!0}})});const b=g<100&&m/2>g;return c.forEach(e=>{if(v.push({data:e.data,tag:"node"+(b?"":" labelCenter"),desc:{flow:e.value},type:"rect",x:4+e.x0,y:e.y0,height:e.y1-e.y0,width:Math.max(0,g-8),opacity:e.opacity,fill:e.fill,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.strokeDasharray}),b&&e.y1-e.y0>12){let t=e.x1,n=m,i="labelLeft";l[e.data.source.field]>=s.length-1?(n=m/2,t=e.x0-n,i="labelRight"):l[e.data.source.field]>=s.length-2&&(n=m/2,i="labelLeft"),v.push({data:e.data,desc:{flow:e.value},tag:i,type:"rect",x:t,y:e.y0,height:e.y1-e.y0,width:n,opacity:0,fill:"none",strokeWidth:0})}}),v}};function V(e,t,n){const i=`${e}.fontFamily`,a=`${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:a,options:()=>t.getOptions(a),defaultValue:()=>t.getDefaultValue(a)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.sankeyChart",e,"color")})}}}}}function K(e,t,n){const i=r({theme:e,translator:n,flags:t,config:{id:"sankeyChart",paths:["axis.title","axis.label.name","label.value"]}});return{component:"styling-panel",show:!0,chartType:"sankeychart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.SankeyChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{axisTitleSection:{translation:"properties.node.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:V("axis.title",i,e)}}},labelSection:{translation:"properties.node.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...V("label.value",i,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}}}}const J=({translator:e,flags:t,anything:n})=>{const i=n?.sense?.theme;return{uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{layout:{type:"items",label:"Layout",items:{stylingPanel:K(i,t,e),nodePadding:{label:"Node padding",ref:"node.padding",type:"number",component:"slider",step:.05,min:0,max:1},nodeWidth:{label:"Node width",ref:"node.width",type:"number",component:"slider",step:.05,min:0,max:1}}},link:{type:"items",label:"Links",items:{linkColorExpr:{component:"expression",expressionType:"measure",ref:"qHyperCubeDef.qMeasures.0.qAttributeExpressions.0.qExpression",schemaIgnore:!0,label:"Link color",defaultValue:"",show:e=>e.qHyperCubeDef.qMeasures.length>0},colorhint:{component:"text",label:"Hint: Use 'SOURCE' or 'TARGET' to color based on the link's anchor points"},linkOpacity:{label:"Link opacity",ref:"link.opacity",type:"number",component:"slider",step:.1,min:0,max:1},linkShadow:{label:"Drop shadow",ref:"link.shadow",type:"boolean",show:e=>1===e.link.opacity}}}}}}}},G={uses:"data",items:{dimensions:{uses:"dimensions",disabledRef:"",items:{nodeFill:{component:"expression",expressionType:"measure",ref:"qAttributeExpressions.0.qExpression",label:"Node color",defaultValue:""}}},measures:{uses:"measures",disabledRef:""}}},Z={type:"items",translation:"properties.sorting",items:{auto:{type:"boolean",component:"switch",ref:"node.sort",translation:"properties.sorting",schemaIgnore:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:"",convertFunctions:{get:e=>!e("string"),set(e,t){t("string",e?void 0:"valueD")}}},byValue:{type:"boolean",component:"switch",ref:"node.sort",translation:"properties.sorting.sortByNumeric",convertFunctions:{get:e=>-1!==["valueD","valueA"].indexOf(e("string")),set(e,t){t("string",e?"valueD":"data")}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],schemaIgnore:!0,show:e=>!!e.node.sort},modeValue:{type:"string",component:"dropdown",ref:"node.sort",schemaIgnore:!0,show:e=>-1!==["valueD","valueA"].indexOf(e.node.sort),options:[{value:"valueA",translation:"properties.sorting.ascending"},{value:"valueD",translation:"properties.sorting.descending"}]},defaultSorting:{uses:"sorting",show:e=>"data"===e.node.sort}}};function Y({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:G,sorting:Z,settings:J({translator:e,flags:t,anything:n})}}}function X(e){return{definition:Y(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1},importProperties:null,exportProperties:null}}function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ee,te;var ne=function(){if(te)return ee;te=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},r=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,a=e.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!a&&!r)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},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};return ee=function e(){var t,n,i,l,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)i=s(d,n),d!==(l=s(t,n))&&(f&&l&&(r(l)||(c=a(l)))?(c?(c=!1,u=i&&a(i)?i:[]):u=i&&r(i)?i:{},o(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&o(d,{name:n,newValue:l}));return d},ee}(),ie=Q(ne),ae={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo","plugins[].validMeasureValue","plugins[].labelBackgroundColor","plugins[].labelColor","plugins[].hasBackground","plugins[].maxLabelWidth","plugins[].points[].validMeasureValue","plugins[].points[].labelBackgroundColor","plugins[].points[].labelColor","plugins[].points[].hasBackground","plugins[].points[].maxLabelWidth"]};function re(e){const{qHyperCube:t,...n}=e,{qAxisData:i,qDataPages:a,qStackedDataPages:r,qTreeDataPages:l,...c}=t,u=ie(!0,{},{...n,qHyperCube:{...c}}),{dataRelatedPropertiesPaths:d}=ae;function h(e,t){const n=t.indexOf("[]");if(-1===n)return void(void 0!==o(e,t)&&s(e,t,void 0));const i=t.substring(0,n),a=t.substring(n+2),r=a.startsWith(".")?a.substring(1):a;o(e,i,[]).forEach(e=>{r&&h(e,r)})}return d.forEach(e=>{h(u,e)}),u}var oe={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:i}){return a=>{if(e||t||n){if("line"===a.type)return a.tickValue??"axis";if("text"===a.type)return`${a.tickValue} ${a.text}`;if("container"===a.type){const e=a.children.filter(e=>"text"===e.type).map(e=>e.text);return`${a.data.value} ${e.join("")}`}return Math.random()}if(i){if("line"===a.type&&void 0===a.tickValue)return"axis";const e=a.transform&&a.transform.match(/rotate/gi)?"rotated":"horizontal";return`${a.data.group?`${a.data.group.value} `:""}${a.data.value} ${a.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:i,dock:a}){return({currentNodes:r,currentRect:o,previousRect:s})=>{const l=o.x-s.x,c=o.y-s.y,u=o.width-s.width,d=o.height-s.height;e?("left"===a&&r.forEach(e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)}),"left"!==a&&"right"!==a||r.forEach(e=>{"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","#"===e.fill?.[0]&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`))}),"top"!==a&&"bottom"!==a||r.forEach(e=>{"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","#"===e.fill?.[0]&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`))})):t?r.forEach(e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)}):n||i?r.forEach(e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)}):r.forEach(e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)})}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const i=t.x-n.x,a=t.y-n.y;0===i&&0===a||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-=a):e.transform=`translate(${-i}, ${-a})`})})}},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,a=t.y-n.y;0===i&&0===a||e.forEach(e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=a,e.y-=i):(e.x-=i,e.y-=a)})},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){return"line"===e.type?e.value??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,a=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-=a,e.y2-=a):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:a/e.major.size,n="y"===e.minor.p?a/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,a=t.y-n.y;0===i&&0===a||e.forEach(e=>{switch(e.type){case"circle":e.cx-=i,e.cy-=a;break;case"rect":e.x-=i,e.y-=a;break;case"path":e.transform=`translate(${-i}, ${-a})`}})}},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,a=t.y-n.y;0===i&&0===a||e.forEach(e=>{"image"===e.type?(e.x-=i,e.y-=a):(e.cx-=i,e.cy-=a)})}},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,a=t.y-n.y,r=t.width-n.width,o=t.height-n.height;let s=-i,l=-a;e.forEach(e=>{switch(e.dock){case"right":i>0&&(s=t.width);break;case"left":r<0&&(s=-n.width);break;case"top":o<0&&(l=-n.height);break;case"bottom":a>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}})}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=re(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=re(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function se({h:e,data:t}){const n=[];return t.forEach(t=>{const i=e("th",{attrs:{colspan:3},style:{fontWeight:600,"text-align":"left",padding:"2px 4px"}},t.title);n.push(i),t.props.forEach(t=>{const i=[e("td",{style:{padding:"2px 4px"}},`${t.label}:`),e("td",{style:{margin:"2px 4px"}},[e("span",{style:{"background-color":t.color||"transparent",display:"inline-block",width:"0.75em",height:"0.75em"}})]),e("td",{style:{"text-align":"right",padding:"2px 4px"}},t.value)];n.push(e("tr",{},i))})}),e("div",{style:{display:"table",fontFamily:"$font-family"}},n)}const le="sankey-ext-gwet4-tooltip";function ce({flow:e}){return{type:"tooltip",key:"tool",layout:{displayOrder:99},beforeMount(){!function({selector:e}){if(!document.querySelector(`#${e}`)){const t=document.createElement("div");t.id=e,t.style.overflow="hidden",t.style.position="fixed",t.style.pointerEvents="none",t.style.left="0px",t.style.top="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1020,document.body.appendChild(t)}}({selector:le})},beforeUpdate(){},destroyed(){!function({selector:e}){const t=document.querySelector(`#${e}`);t&&t.parentElement&&t.childElementCount<1&&t.parentElement.removeChild(t)}({selector:le})},settings:{appendTo:()=>document.querySelector(`#${le}`),filter:e=>e.filter(e=>"san"===e.key&&e.tag||"labels"===e.key),extract:({node:t,resources:n})=>{if("rect"===t.type||"text"===t.type){const e=Object.keys(t.data).filter(e=>-1!==["flow"].indexOf(e)).map(e=>{const i=n.dataset(t.data[e].source.key).field(t.data[e].source.field),{value:a}=t.data[e];return{label:i.title(),value:Number.isNaN(a)?a:i.formatter()(a),color:"fill"===e&&t.data[e].source?t.attrs[e]:""}});return{contentFn:se,title:t.data.dim.value,props:e}}return{contentFn:se,title:`${t.desc.source.dim.value} - ${t.desc.target.dim.value}`,props:[{label:n.dataset().field(e.field).title(),value:n.dataset().field(e.field).formatter()(t.desc.flow)}]}},content:se}}}function ue(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function de(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function he(){}[["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 pe=.7,fe=1/pe,ge="\\s*([+-]?\\d+)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ve=/^#([0-9a-f]{3,8})$/,be=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),ke=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),we=new RegExp(`^rgba\\(${ge},${ge},${ge},${me}\\)$`),xe=new RegExp(`^rgba\\(${ye},${ye},${ye},${me}\\)$`),Se=new RegExp(`^hsl\\(${me},${ye},${ye}\\)$`),ze=new RegExp(`^hsla\\(${me},${ye},${ye},${me}\\)$`),Re={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:167