@nebula.js/sn-waterfall 0.25.12 → 0.26.1
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/properties.json +1 -1
- package/core/esm/index.js +24 -11
- package/core/esm/index.js.map +1 -1
- package/dist/sn-waterfall.js +24 -11
- package/dist/sn-waterfall.js.map +1 -1
- package/package.json +2 -2
package/core/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-waterfall v0.
|
|
2
|
+
* @nebula.js/sn-waterfall v0.26.1
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useApp as i,useAppLayout as o,useDeviceType as a,useTheme as s,useTranslator as l,useMemo as u,onTakeSnapshot as c,useImperativeHandle as p,useElement as d,useStaleLayout as f,useState as m,useEffect as h}from"@nebula.js/stardust";import g from"jquery";import b from"picasso.js";import y from"picasso-plugin-q";import v from"picasso-plugin-hammer";import x from"hammerjs";import q from"extend";function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){E(o,n,i,a,s,"next",e)}function s(e){E(o,n,i,a,s,"throw",e)}a(void 0)}))}}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O={"Visualization.Histogram.MeasureAxisLabel":{id:"Visualization.Histogram.MeasureAxisLabel",locale:{"en-US":"Frequency","zh-TW":"頻率","zh-CN":"频率","tr-TR":"Sıklık","sv-SE":"Frekvens","it-IT":"Frequenza","es-ES":"Frecuencia","de-DE":"Häufigkeit","pl-PL":"Częstotliwość","nl-NL":"Frequentie","ko-KR":"빈도","pt-BR":"Frequência","fr-FR":"Fréquence","ja-JP":"レコード数","ru-RU":"Частота"}},"waterfall.legend.positiveValue.label":{id:"waterfall.legend.positiveValue.label",locale:{"en-US":"Positive","zh-TW":"正值","zh-CN":"正","tr-TR":"Pozitif","sv-SE":"Positiv","it-IT":"Positivi","es-ES":"Positivo","de-DE":"Positiv","pl-PL":"Dodatnie","nl-NL":"Positief","ko-KR":"양수","pt-BR":"Positivo","fr-FR":"Positive","ja-JP":"正","ru-RU":"Положительное"}},"waterfall.legend.negativeValue.label":{id:"waterfall.legend.negativeValue.label",locale:{"en-US":"Negative","zh-TW":"負值","zh-CN":"负","tr-TR":"Negatif","sv-SE":"Negativ","it-IT":"Negativi","es-ES":"Negativo","de-DE":"Negativ","pl-PL":"Ujemne","nl-NL":"Negatief","ko-KR":"음수","pt-BR":"Negativo","fr-FR":"Négative","ja-JP":"負","ru-RU":"Отрицательное"}},"waterfall.legend.subtotal.label":{id:"waterfall.legend.subtotal.label",locale:{"en-US":"Subtotal","zh-TW":"小計","zh-CN":"小计","tr-TR":"Ara Toplam","sv-SE":"Deltotal","it-IT":"Subtotale","es-ES":"Subtotal","de-DE":"Teilsumme","pl-PL":"Suma częściowa","nl-NL":"Subtotaal","ko-KR":"소계","pt-BR":"Subtotal","fr-FR":"Sous-total","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_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_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_RequireNumericDimension:{id:"Object.Disclaimer.RequireNumericDimension",locale:{"en-US":"This visualization requires a numeric diemnsion."}},"properties.boxplot.calculationMode.tukey.elements.boxEnd":{id:"properties.boxplot.calculationMode.tukey.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.tukey.elements.boxMiddle":{id:"properties.boxplot.calculationMode.tukey.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Drittes Quartil","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.tukey.elements.boxStart":{id:"properties.boxplot.calculationMode.tukey.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.tukey.elements.firstWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.firstWhisker",locale:{"en-US":"Box start - {0} IQR","zh-TW":"方塊開始 - {0} IQR","zh-CN":"框开始 - {0} IQR","tr-TR":"Kutu başlangıcı - {0} IQR","sv-SE":"Rutans start - {0} IQR","it-IT":"Inizio scatola - {0} IQR","es-ES":"Inicio de caja - {0} IQR","de-DE":"Box-Beginn - {0} IQR","pl-PL":"Początek wykresu pudełkowego - {0} IQR","nl-NL":"Begin box - {0} IQR","ko-KR":"상자 시작 - {0} IQR","pt-BR":"Início da caixa - {0} IQR","fr-FR":"Début de la boîte - {0} IQR","ja-JP":"ボックス開始 - {0} IQR","ru-RU":"Начало поля - {0} IQR"}},"properties.boxplot.calculationMode.tukey.elements.lastWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.lastWhisker",locale:{"en-US":"Box end + {0} IQR","zh-TW":"方塊結束 + {0} IQR","zh-CN":"框结束 + {0} IQR","tr-TR":"Kutu bitişi + {0} IQR","sv-SE":"Rutans slut + {0} IQR","it-IT":"Fine scatola + {0} IQR","es-ES":"Fin de caja + {0} IQR","de-DE":"Box-Ende + {0} IQR","pl-PL":"Koniec wykresu pudełkowego - {0} IQR","nl-NL":"Einde box + {0} IQR","ko-KR":"상자 끝 + {0} IQR","pt-BR":"Fim da caixa + {0} IQR","fr-FR":"Fin de la boîte + {0} IQR","ja-JP":"ボックス終了 + {0} IQR","ru-RU":"Конец поля + {0} IQR"}},"properties.boxplot.calculationMode.stdDev.elements.boxEnd":{id:"properties.boxplot.calculationMode.stdDev.elements.boxEnd",locale:{"en-US":"Box middle + 1 standard deviation","zh-TW":"方塊中間 + 1 個標準差","zh-CN":"框中部 + 1 个标准偏差","tr-TR":"Kutu ortası + 1 standart sapma","sv-SE":"Rutans mitt + 1 standardavvikelse","it-IT":"Centro scatola + 1 deviazione standard","es-ES":"Mitad de la caja + 1 desviación estándar","de-DE":"Box-Mitte +1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego + 1 odch. stand","nl-NL":"Midden box + 1 standaardafwijking","ko-KR":"상자 중간 + 1개 표준 편차","pt-BR":"Meio da caixa + 1 desvio padrão","fr-FR":"Milieu de la boîte + 1 écart type","ja-JP":"ボックス中間 + 1 標準偏差","ru-RU":"Середина поля + 1 стандартное отклонение"}},"properties.boxplot.calculationMode.stdDev.elements.boxMiddle":{id:"properties.boxplot.calculationMode.stdDev.elements.boxMiddle",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.boxplot.calculationMode.stdDev.elements.boxStart":{id:"properties.boxplot.calculationMode.stdDev.elements.boxStart",locale:{"en-US":"Box middle - 1 standard deviation","zh-TW":"方塊中間 - 1 個標準差","zh-CN":"框中部 - 1 个标准偏差","tr-TR":"Kutu ortası - 1 standart sapma","sv-SE":"Rutans mitt - 1 standardavvikelse","it-IT":"Centro scatola - 1 deviazione standard","es-ES":"Mitad de la caja - {1} desviación estándar","de-DE":"Box-Mitte -1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego - 1 odch. stand","nl-NL":"Midden box - 1 standaardafwijking","ko-KR":"상자 중간 - 1개 표준 편차","pt-BR":"Середина поля - 1 стандартное отклонение","fr-FR":"Milieu de la boîte - 1 écart type","ja-JP":"ボックス中間 - 1 標準偏差","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.stdDev.elements.firstWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.firstWhisker",locale:{"en-US":"Box middle - {0} standard deviations","zh-TW":"方塊中間 - {0} 個標準差","zh-CN":"框中部 - {0} 个标准偏差","tr-TR":"Kutu ortası - {0} standart sapma","sv-SE":"Rutans mitt - {0} standardavvikelser","it-IT":"Centro scatola - {0} deviazioni standard","es-ES":"Mitad de la caja - {0} desviaciones estándar","de-DE":"Box-Mitte -{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego - {0} odch. stand","nl-NL":"Midden box - {0} standaardafwijkingen","ko-KR":"상자 중간 - {0}개 표준 편차","pt-BR":"Meio da caixa - {0} desvios padrão","fr-FR":"Milieu de la boîte - {0} écarts types","ja-JP":"ボックス中間 - {0} 標準偏差","ru-RU":"Середина поля - {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.stdDev.elements.lastWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.lastWhisker",locale:{"en-US":"Box middle + {0} standard deviations","zh-TW":"方塊中間 + {0} 個標準差","zh-CN":"框中部 + {0} 个标准偏差","tr-TR":"Kutu ortası + {0} standart sapma","sv-SE":"Rutans mitt + {0} standardavvikelser","it-IT":"Centro scatola + {0} deviazioni standard","es-ES":"Mitad de la caja + {0} desviaciones estándar","de-DE":"Box-Mitte +{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego + {0} odch. stand","nl-NL":"Midden box + {0} standaardafwijkingen","ko-KR":"상자 중간 + {0}개 표준 편차","pt-BR":"Meio da caixa + {0} desvios padrão","fr-FR":"Milieu de la boîte + {0} écarts types","ja-JP":"ボックス中間 + {0} 標準偏差","ru-RU":"Середина поля + {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.fractiles.elements.boxEnd":{id:"properties.boxplot.calculationMode.fractiles.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile<","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.boxMiddle":{id:"properties.boxplot.calculationMode.fractiles.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Median","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.fractiles.elements.boxStart":{id:"properties.boxplot.calculationMode.fractiles.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth",locale:{"en-US":"5th percentile","zh-TW":"第 5 個百分位數","zh-CN":"第 5 个百分位","tr-TR":"5. yüzdebirlik","sv-SE":"5:e percentilen","it-IT":"5° percentile","es-ES":"5º percentil","de-DE":"5. Perzentil","pl-PL":"5. percentyl","nl-NL":"5e percentiel","ko-KR":"5번째 백분위수","pt-BR":"5º percentil","fr-FR":"5e centile","ja-JP":"5 番目のパーセンタイル","ru-RU":"5-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first",locale:{"en-US":"1st percentile","zh-TW":"第 1 個百分位數","zh-CN":"第 1 个百分位","tr-TR":"1. yüzdebirlik","sv-SE":"1:e percentilen","it-IT":"1° percentile","es-ES":"1er percentil","de-DE":"1. Perzentil","pl-PL":"1. percentyl","nl-NL":"1e percentiel","ko-KR":"1번째 백분위수","pt-BR":"1º percentil","fr-FR":"1er centile","ja-JP":"1 番目のパーセンタイル","ru-RU":"1-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min",locale:{"en-US":"Minimum","zh-TW":"最小","zh-CN":"最小值","tr-TR":"En az","sv-SE":"Min","it-IT":"Minimo","es-ES":"Mínimo","de-DE":"Minimum","pl-PL":"Minimum","nl-NL":"Minimum","ko-KR":"최소","pt-BR":"Mínimo","fr-FR":"Minimale","ja-JP":"最小値","ru-RU":"Минимум"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth",locale:{"en-US":"10th percentile","zh-TW":"第 10 個百分位數","zh-CN":"第 10 个百分位","tr-TR":"10. yüzdebirlik","sv-SE":"10:e percentilen","it-IT":"10° percentile","es-ES":"10º percentil","de-DE":"10. Perzentil","pl-PL":"10. percentyl","nl-NL":"10e percentiel","ko-KR":"10번째 백분위수","pt-BR":"10º percentil","fr-FR":"10e centile","ja-JP":"10 番目のパーセンタイル","ru-RU":"10-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max",locale:{"en-US":"Maximum","zh-TW":"最大","zh-CN":"最大值","tr-TR":"En fazla","sv-SE":"Max","it-IT":"Massimo","es-ES":"Máximo","de-DE":"Maximum","pl-PL":"Maksimum","nl-NL":"Maximum","ko-KR":"최대","pt-BR":"Máximo","fr-FR":"Maximale","ja-JP":"最大値","ru-RU":"Максимум"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth",locale:{"en-US":"90th percentile","zh-TW":"第 90 個百分位數","zh-CN":"第 90 个百分位","tr-TR":"90. yüzdebirlik","sv-SE":"90:e percentilen","it-IT":"90° percentile","es-ES":"90º percentil","de-DE":"90. Perzentil","pl-PL":"90. percentyl","nl-NL":"90e percentiel","ko-KR":"90번째 백분위수","pt-BR":"90º percentil","fr-FR":"90e centile","ja-JP":"90 番目の百分位数","ru-RU":"90-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth",locale:{"en-US":"95th percentile","zh-TW":"第 95 個百分位數","zh-CN":"第 95 个百分位","tr-TR":"95. yüzdebirlik","sv-SE":"95:e percentilen","it-IT":"95° percentile","es-ES":"95º percentil","de-DE":"95. Perzentil","pl-PL":"95. percentyl","nl-NL":"95e percentiel","ko-KR":"95번째 백분위수","pt-BR":"95º percentil","fr-FR":"95e centile","ja-JP":"95 番目の百分位数","ru-RU":"95-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth",locale:{"en-US":"99th percentile","zh-TW":"第 99 個百分位數","zh-CN":"第 99 个百分位","tr-TR":"99. yüzdebirlik","sv-SE":"99:e percentilen","it-IT":"99° percentile","es-ES":"99º percentil","de-DE":"99. Perzentil","pl-PL":"99. percentyl","nl-NL":"99e percentiel","ko-KR":"99번째 백분위수","pt-BR":"99º percentil","fr-FR":"99e centile","ja-JP":"99 番目の百分位数","ru-RU":"99-й процентиль"}}};function N(e){e.component("event-area",{mounted:function(e){e.classList.add("event-area"),e.style.pointerEvents="auto",e.style.zIndex=1},render:function(){return[]}})}var L={renderer:"dom",disableTriggers:!0,preferredSize:function(){return 22},render:function(e){var t=this.settings,r=t.settings,n=r.label,i=r.rtl,o=t.layout.dock,a="top"!==o&&"bottom"!==o||!i?"ltr":"rtl",s=function(e,t){var r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":r.width="".concat(t.height,"px"),r.transform="rotate(-90deg) translate(-".concat(t.height,"px, 0)"),r.transformOrigin="top left";break;case"right":r.width="".concat(t.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(t.width,"px)"),r.transformOrigin="top left";break;case"center":r.width="".concat(t.width,"px"),r.height="".concat(t.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(o,this.rect),l="center"===o?n:"* ".concat(n),u="center"!==o?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return e("div",{style:s,dir:a},e("span",{ref:this.alignToRef,style:u,title:l},l))}};var T={version:"0.25.12",qHyperCubeDef:{qDimensions:[],qMeasures:[],qMode:"S",qInitialDataFetch:[{qWidth:200,qHeight:10}],qSuppressMissing:!0},color:{auto:!0,positiveValue:{paletteColor:{index:6,color:null}},negativeValue:{paletteColor:{index:-1,color:"#cc6677"}},subtotal:{paletteColor:{index:-1,color:"#c3c3c3"}}},dataPoint:{showLabels:!0},dimensionAxis:{dock:"near",label:"auto",show:"labels"},gridlines:{auto:!0,spacing:2},legend:{dock:"auto",show:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"labels",spacing:1},qDef:{qNumFormat:{},numFormatFromTemplate:!0,isCustomFormatted:!1},refLine:{refLines:[]},showTitles:!0,subtitle:"",title:"",footnote:""};function R(e){var t=e.translator;return{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:1,max:50,description:function(){return t.get("Visualizations.Descriptions.Bars")}}}}function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={exports:{}};window;var _=P(F.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===S(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/conversion/",r(r.s="./index.js")}({"../node_modules/extend/index.js":
|
|
7
|
+
import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useApp as i,useAppLayout as o,useDeviceType as a,useTheme as s,useTranslator as l,useMemo as u,onTakeSnapshot as c,useImperativeHandle as p,useElement as d,useStaleLayout as f,useState as m,useEffect as h}from"@nebula.js/stardust";import g from"jquery";import b from"picasso.js";import y from"picasso-plugin-q";import v from"picasso-plugin-hammer";import x from"hammerjs";import q from"extend";function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){E(o,n,i,a,s,"next",e)}function s(e){E(o,n,i,a,s,"throw",e)}a(void 0)}))}}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O={"Visualization.Histogram.MeasureAxisLabel":{id:"Visualization.Histogram.MeasureAxisLabel",locale:{"en-US":"Frequency","zh-TW":"頻率","zh-CN":"频率","tr-TR":"Sıklık","sv-SE":"Frekvens","it-IT":"Frequenza","es-ES":"Frecuencia","de-DE":"Häufigkeit","pl-PL":"Częstotliwość","nl-NL":"Frequentie","ko-KR":"빈도","pt-BR":"Frequência","fr-FR":"Fréquence","ja-JP":"レコード数","ru-RU":"Частота"}},"waterfall.legend.positiveValue.label":{id:"waterfall.legend.positiveValue.label",locale:{"en-US":"Positive","zh-TW":"正值","zh-CN":"正","tr-TR":"Pozitif","sv-SE":"Positiv","it-IT":"Positivi","es-ES":"Positivo","de-DE":"Positiv","pl-PL":"Dodatnie","nl-NL":"Positief","ko-KR":"양수","pt-BR":"Positivo","fr-FR":"Positive","ja-JP":"正","ru-RU":"Положительное"}},"waterfall.legend.negativeValue.label":{id:"waterfall.legend.negativeValue.label",locale:{"en-US":"Negative","zh-TW":"負值","zh-CN":"负","tr-TR":"Negatif","sv-SE":"Negativ","it-IT":"Negativi","es-ES":"Negativo","de-DE":"Negativ","pl-PL":"Ujemne","nl-NL":"Negatief","ko-KR":"음수","pt-BR":"Negativo","fr-FR":"Négative","ja-JP":"負","ru-RU":"Отрицательное"}},"waterfall.legend.subtotal.label":{id:"waterfall.legend.subtotal.label",locale:{"en-US":"Subtotal","zh-TW":"小計","zh-CN":"小计","tr-TR":"Ara Toplam","sv-SE":"Deltotal","it-IT":"Subtotale","es-ES":"Subtotal","de-DE":"Teilsumme","pl-PL":"Suma częściowa","nl-NL":"Subtotaal","ko-KR":"소계","pt-BR":"Subtotal","fr-FR":"Sous-total","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_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_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_RequireNumericDimension:{id:"Object.Disclaimer.RequireNumericDimension",locale:{"en-US":"This visualization requires a numeric diemnsion."}},"properties.boxplot.calculationMode.tukey.elements.boxEnd":{id:"properties.boxplot.calculationMode.tukey.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.tukey.elements.boxMiddle":{id:"properties.boxplot.calculationMode.tukey.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Drittes Quartil","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.tukey.elements.boxStart":{id:"properties.boxplot.calculationMode.tukey.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.tukey.elements.firstWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.firstWhisker",locale:{"en-US":"Box start - {0} IQR","zh-TW":"方塊開始 - {0} IQR","zh-CN":"框开始 - {0} IQR","tr-TR":"Kutu başlangıcı - {0} IQR","sv-SE":"Rutans start - {0} IQR","it-IT":"Inizio scatola - {0} IQR","es-ES":"Inicio de caja - {0} IQR","de-DE":"Box-Beginn - {0} IQR","pl-PL":"Początek wykresu pudełkowego - {0} IQR","nl-NL":"Begin box - {0} IQR","ko-KR":"상자 시작 - {0} IQR","pt-BR":"Início da caixa - {0} IQR","fr-FR":"Début de la boîte - {0} IQR","ja-JP":"ボックス開始 - {0} IQR","ru-RU":"Начало поля - {0} IQR"}},"properties.boxplot.calculationMode.tukey.elements.lastWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.lastWhisker",locale:{"en-US":"Box end + {0} IQR","zh-TW":"方塊結束 + {0} IQR","zh-CN":"框结束 + {0} IQR","tr-TR":"Kutu bitişi + {0} IQR","sv-SE":"Rutans slut + {0} IQR","it-IT":"Fine scatola + {0} IQR","es-ES":"Fin de caja + {0} IQR","de-DE":"Box-Ende + {0} IQR","pl-PL":"Koniec wykresu pudełkowego - {0} IQR","nl-NL":"Einde box + {0} IQR","ko-KR":"상자 끝 + {0} IQR","pt-BR":"Fim da caixa + {0} IQR","fr-FR":"Fin de la boîte + {0} IQR","ja-JP":"ボックス終了 + {0} IQR","ru-RU":"Конец поля + {0} IQR"}},"properties.boxplot.calculationMode.stdDev.elements.boxEnd":{id:"properties.boxplot.calculationMode.stdDev.elements.boxEnd",locale:{"en-US":"Box middle + 1 standard deviation","zh-TW":"方塊中間 + 1 個標準差","zh-CN":"框中部 + 1 个标准偏差","tr-TR":"Kutu ortası + 1 standart sapma","sv-SE":"Rutans mitt + 1 standardavvikelse","it-IT":"Centro scatola + 1 deviazione standard","es-ES":"Mitad de la caja + 1 desviación estándar","de-DE":"Box-Mitte +1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego + 1 odch. stand","nl-NL":"Midden box + 1 standaardafwijking","ko-KR":"상자 중간 + 1개 표준 편차","pt-BR":"Meio da caixa + 1 desvio padrão","fr-FR":"Milieu de la boîte + 1 écart type","ja-JP":"ボックス中間 + 1 標準偏差","ru-RU":"Середина поля + 1 стандартное отклонение"}},"properties.boxplot.calculationMode.stdDev.elements.boxMiddle":{id:"properties.boxplot.calculationMode.stdDev.elements.boxMiddle",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.boxplot.calculationMode.stdDev.elements.boxStart":{id:"properties.boxplot.calculationMode.stdDev.elements.boxStart",locale:{"en-US":"Box middle - 1 standard deviation","zh-TW":"方塊中間 - 1 個標準差","zh-CN":"框中部 - 1 个标准偏差","tr-TR":"Kutu ortası - 1 standart sapma","sv-SE":"Rutans mitt - 1 standardavvikelse","it-IT":"Centro scatola - 1 deviazione standard","es-ES":"Mitad de la caja - {1} desviación estándar","de-DE":"Box-Mitte -1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego - 1 odch. stand","nl-NL":"Midden box - 1 standaardafwijking","ko-KR":"상자 중간 - 1개 표준 편차","pt-BR":"Середина поля - 1 стандартное отклонение","fr-FR":"Milieu de la boîte - 1 écart type","ja-JP":"ボックス中間 - 1 標準偏差","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.stdDev.elements.firstWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.firstWhisker",locale:{"en-US":"Box middle - {0} standard deviations","zh-TW":"方塊中間 - {0} 個標準差","zh-CN":"框中部 - {0} 个标准偏差","tr-TR":"Kutu ortası - {0} standart sapma","sv-SE":"Rutans mitt - {0} standardavvikelser","it-IT":"Centro scatola - {0} deviazioni standard","es-ES":"Mitad de la caja - {0} desviaciones estándar","de-DE":"Box-Mitte -{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego - {0} odch. stand","nl-NL":"Midden box - {0} standaardafwijkingen","ko-KR":"상자 중간 - {0}개 표준 편차","pt-BR":"Meio da caixa - {0} desvios padrão","fr-FR":"Milieu de la boîte - {0} écarts types","ja-JP":"ボックス中間 - {0} 標準偏差","ru-RU":"Середина поля - {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.stdDev.elements.lastWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.lastWhisker",locale:{"en-US":"Box middle + {0} standard deviations","zh-TW":"方塊中間 + {0} 個標準差","zh-CN":"框中部 + {0} 个标准偏差","tr-TR":"Kutu ortası + {0} standart sapma","sv-SE":"Rutans mitt + {0} standardavvikelser","it-IT":"Centro scatola + {0} deviazioni standard","es-ES":"Mitad de la caja + {0} desviaciones estándar","de-DE":"Box-Mitte +{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego + {0} odch. stand","nl-NL":"Midden box + {0} standaardafwijkingen","ko-KR":"상자 중간 + {0}개 표준 편차","pt-BR":"Meio da caixa + {0} desvios padrão","fr-FR":"Milieu de la boîte + {0} écarts types","ja-JP":"ボックス中間 + {0} 標準偏差","ru-RU":"Середина поля + {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.fractiles.elements.boxEnd":{id:"properties.boxplot.calculationMode.fractiles.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile<","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.boxMiddle":{id:"properties.boxplot.calculationMode.fractiles.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Median","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.fractiles.elements.boxStart":{id:"properties.boxplot.calculationMode.fractiles.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth",locale:{"en-US":"5th percentile","zh-TW":"第 5 個百分位數","zh-CN":"第 5 个百分位","tr-TR":"5. yüzdebirlik","sv-SE":"5:e percentilen","it-IT":"5° percentile","es-ES":"5º percentil","de-DE":"5. Perzentil","pl-PL":"5. percentyl","nl-NL":"5e percentiel","ko-KR":"5번째 백분위수","pt-BR":"5º percentil","fr-FR":"5e centile","ja-JP":"5 番目のパーセンタイル","ru-RU":"5-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first",locale:{"en-US":"1st percentile","zh-TW":"第 1 個百分位數","zh-CN":"第 1 个百分位","tr-TR":"1. yüzdebirlik","sv-SE":"1:e percentilen","it-IT":"1° percentile","es-ES":"1er percentil","de-DE":"1. Perzentil","pl-PL":"1. percentyl","nl-NL":"1e percentiel","ko-KR":"1번째 백분위수","pt-BR":"1º percentil","fr-FR":"1er centile","ja-JP":"1 番目のパーセンタイル","ru-RU":"1-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min",locale:{"en-US":"Minimum","zh-TW":"最小","zh-CN":"最小值","tr-TR":"En az","sv-SE":"Min","it-IT":"Minimo","es-ES":"Mínimo","de-DE":"Minimum","pl-PL":"Minimum","nl-NL":"Minimum","ko-KR":"최소","pt-BR":"Mínimo","fr-FR":"Minimale","ja-JP":"最小値","ru-RU":"Минимум"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth",locale:{"en-US":"10th percentile","zh-TW":"第 10 個百分位數","zh-CN":"第 10 个百分位","tr-TR":"10. yüzdebirlik","sv-SE":"10:e percentilen","it-IT":"10° percentile","es-ES":"10º percentil","de-DE":"10. Perzentil","pl-PL":"10. percentyl","nl-NL":"10e percentiel","ko-KR":"10번째 백분위수","pt-BR":"10º percentil","fr-FR":"10e centile","ja-JP":"10 番目のパーセンタイル","ru-RU":"10-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max",locale:{"en-US":"Maximum","zh-TW":"最大","zh-CN":"最大值","tr-TR":"En fazla","sv-SE":"Max","it-IT":"Massimo","es-ES":"Máximo","de-DE":"Maximum","pl-PL":"Maksimum","nl-NL":"Maximum","ko-KR":"최대","pt-BR":"Máximo","fr-FR":"Maximale","ja-JP":"最大値","ru-RU":"Максимум"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth",locale:{"en-US":"90th percentile","zh-TW":"第 90 個百分位數","zh-CN":"第 90 个百分位","tr-TR":"90. yüzdebirlik","sv-SE":"90:e percentilen","it-IT":"90° percentile","es-ES":"90º percentil","de-DE":"90. Perzentil","pl-PL":"90. percentyl","nl-NL":"90e percentiel","ko-KR":"90번째 백분위수","pt-BR":"90º percentil","fr-FR":"90e centile","ja-JP":"90 番目の百分位数","ru-RU":"90-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth",locale:{"en-US":"95th percentile","zh-TW":"第 95 個百分位數","zh-CN":"第 95 个百分位","tr-TR":"95. yüzdebirlik","sv-SE":"95:e percentilen","it-IT":"95° percentile","es-ES":"95º percentil","de-DE":"95. Perzentil","pl-PL":"95. percentyl","nl-NL":"95e percentiel","ko-KR":"95번째 백분위수","pt-BR":"95º percentil","fr-FR":"95e centile","ja-JP":"95 番目の百分位数","ru-RU":"95-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth",locale:{"en-US":"99th percentile","zh-TW":"第 99 個百分位數","zh-CN":"第 99 个百分位","tr-TR":"99. yüzdebirlik","sv-SE":"99:e percentilen","it-IT":"99° percentile","es-ES":"99º percentil","de-DE":"99. Perzentil","pl-PL":"99. percentyl","nl-NL":"99e percentiel","ko-KR":"99번째 백분위수","pt-BR":"99º percentil","fr-FR":"99e centile","ja-JP":"99 番目の百分位数","ru-RU":"99-й процентиль"}}};function N(e){e.component("event-area",{mounted:function(e){e.classList.add("event-area"),e.style.pointerEvents="auto",e.style.zIndex=1},render:function(){return[]}})}var L={renderer:"dom",disableTriggers:!0,preferredSize:function(){return 22},render:function(e){var t=this.settings,r=t.settings,n=r.label,i=r.rtl,o=t.layout.dock,a="top"!==o&&"bottom"!==o||!i?"ltr":"rtl",s=function(e,t){var r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":r.width="".concat(t.height,"px"),r.transform="rotate(-90deg) translate(-".concat(t.height,"px, 0)"),r.transformOrigin="top left";break;case"right":r.width="".concat(t.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(t.width,"px)"),r.transformOrigin="top left";break;case"center":r.width="".concat(t.width,"px"),r.height="".concat(t.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(o,this.rect),l="center"===o?n:"* ".concat(n),u="center"!==o?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return e("div",{style:s,dir:a},e("span",{ref:this.alignToRef,style:u,title:l},l))}};var T={version:"0.26.1",qHyperCubeDef:{qDimensions:[],qMeasures:[],qMode:"S",qInitialDataFetch:[{qWidth:200,qHeight:10}],qSuppressMissing:!0},color:{auto:!0,positiveValue:{paletteColor:{index:6,color:null}},negativeValue:{paletteColor:{index:-1,color:"#cc6677"}},subtotal:{paletteColor:{index:-1,color:"#c3c3c3"}}},dataPoint:{showLabels:!0},dimensionAxis:{dock:"near",label:"auto",show:"labels"},gridlines:{auto:!0,spacing:2},legend:{dock:"auto",show:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"labels",spacing:1},qDef:{qNumFormat:{},numFormatFromTemplate:!0,isCustomFormatted:!1},refLine:{refLines:[]},showTitles:!0,subtitle:"",title:"",footnote:""};function R(e){var t=e.translator;return{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:1,max:50,description:function(){return t.get("Visualizations.Descriptions.Bars")}}}}function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={exports:{}};window;var _=P(F.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===S(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/conversion/",r(r.s="./index.js")}({"../node_modules/extend/index.js":
|
|
8
8
|
/*!***************************************!*\
|
|
9
9
|
!*** ../node_modules/extend/index.js ***!
|
|
10
10
|
\***************************************/
|
|
@@ -78,7 +78,7 @@ function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
|
78
78
|
/*! ./helpers */
|
|
79
79
|
"./axis-chart/import-properties/helpers/index.js"),i=r(
|
|
80
80
|
/*! ../../color-chart */
|
|
81
|
-
"./color-chart/index.js");function o(e){var t=e.exportFormat,r=e.initialProperties,o=e.dataDefinition,a=e.defaultPropertyValues,s=e.hypercubePath,l=e.measureType,u=i.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:o,defaultPropertyValues:a,hypercubePath:s}),
|
|
81
|
+
"./color-chart/index.js");function o(e){var t=e.exportFormat,r=e.initialProperties,o=e.dataDefinition,a=e.defaultPropertyValues,s=e.hypercubePath,l=e.measureType,u=e.extension,c=e.supportedFilters,p=i.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:o,defaultPropertyValues:a,hypercubePath:s,extension:u,supportedFilters:c}),d=p.qProperty;return n.default.handleAutoMinMax({initialProperties:r,properties:d}),n.default.handleMeasuresAxis({exportFormat:t,initialProperties:r,properties:d,measureType:l}),n.default.setInterColumnSortOrder(d.qHyperCubeDef),p}},"./axis-chart/index.js":
|
|
82
82
|
/*!*****************************!*\
|
|
83
83
|
!*** ./axis-chart/index.js ***!
|
|
84
84
|
\*****************************/
|
|
@@ -505,7 +505,7 @@ function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
|
505
505
|
/*! ./helpers */
|
|
506
506
|
"./color-chart/import-properties/helpers/index.js"),o=r(
|
|
507
507
|
/*! ../../hypercube */
|
|
508
|
-
"./hypercube/index.js");function a(e){var t=e.exportFormat,r=e.initialProperties,a=e.dataDefinition,s=e.defaultPropertyValues,l=e.hypercubePath,u=o.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:a,defaultPropertyValues:s,hypercubePath:l}),
|
|
508
|
+
"./hypercube/index.js");function a(e){var t=e.exportFormat,r=e.initialProperties,a=e.dataDefinition,s=e.defaultPropertyValues,l=e.hypercubePath,u=e.extension,c=e.supportedFilters,p=o.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:a,defaultPropertyValues:s,hypercubePath:l,extension:u,supportedFilters:c}),d=p.qProperty,f=n.default.getValue(d,"visualization"),m=n.default.getValue(d,"qHyperCubeDef.qDimensions",[]),h=n.default.getValue(d,"color.mode",""),g=n.default.getValue(d,"color.auto",""),b=i.default.getCanColorBy(d,f),y=i.default.shouldUpdateColorBy({canColorBy:b,autoColor:g,colorMode:h,dimensions:m});return b[h]?i.default.shouldAddColorByExpression({shouldUpdateColorBy:y,properties:d})&&i.default.addColorByExpression(d):i.default.switchToAutoColor(d),y&&i.default.updateColorBy(d,"qHyperCubeDef."),i.default.shouldSwitchToColorPersistent(d)&&i.default.changeProperty(d,"color.persistent",!0),i.default.deleteTotalMode(m),p}},"./color-chart/index.js":
|
|
509
509
|
/*!******************************!*\
|
|
510
510
|
!*** ./color-chart/index.js ***!
|
|
511
511
|
\******************************/
|
|
@@ -610,13 +610,15 @@ function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
|
610
610
|
!*** ./hypercube/export-properties/index.js ***!
|
|
611
611
|
\**********************************************/
|
|
612
612
|
/*! exports provided: default */
|
|
613
|
-
function(e,t,r){r.r(t),r.d(t,"default",(function(){return
|
|
613
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return s}));var n=r(
|
|
614
614
|
/*! ../../export-format */
|
|
615
615
|
"./export-format.js"),i=r(
|
|
616
616
|
/*! ../../utils */
|
|
617
617
|
"./utils/index.js"),o=r(
|
|
618
618
|
/*! ./helpers */
|
|
619
|
-
"./hypercube/export-properties/helpers/index.js")
|
|
619
|
+
"./hypercube/export-properties/helpers/index.js"),a=r(
|
|
620
|
+
/*! ../../quarantine/quarantine-property */
|
|
621
|
+
"./quarantine/quarantine-property.js");function s(e){var t=e.propertyTree,r=e.hypercubePath,s=e.viewDataMode,l=Object(n.default)(),u=t.qProperty,c=i.default.getValue(u,r||""),p=c.qHyperCubeDef;return p.qInterColumnSortOrder||(p.qInterColumnSortOrder=[]),o.default.addDimensions({exportFormat:l,qHyperCubeDef:p}),o.default.addMeasures({exportFormat:l,qHyperCubeDef:p}),o.default.setInterColumnSortOrder({exportFormat:l,qHyperCubeDef:p}),delete p.qLayoutExclude,o.default.copyProperties({exportFormat:l,properties:u}),r&&(l.properties.qHyperCubeDef=p,delete c.qHyperCubeDef),o.default.updateLayoutExclude({exportFormat:l,properties:u}),s||o.default.storeMeasuresModifiers(l.properties.qHyperCubeDef.qMeasures),Array.isArray(l.properties.filters)&&(Object(a.default)(l.properties,"filters","storedFilters"),delete l.properties.filters),l.properties.qHyperCubeDef.qContextSetExpression&&(Object(a.default)(l.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),l.properties.qHyperCubeDef.qContextSetExpression=""),l}},"./hypercube/import-properties/helpers/add-dimensions.js":
|
|
620
622
|
/*!***************************************************************!*\
|
|
621
623
|
!*** ./hypercube/import-properties/helpers/add-dimensions.js ***!
|
|
622
624
|
\***************************************************************/
|
|
@@ -733,7 +735,9 @@ function(e,t,r){r.r(t);var n=r(
|
|
|
733
735
|
/*! ./update-dimensions-on-added */
|
|
734
736
|
"./hypercube/import-properties/helpers/update-dimensions-on-added.js"),g=r(
|
|
735
737
|
/*! ./update-measures-on-added */
|
|
736
|
-
"./hypercube/import-properties/helpers/update-measures-on-added.js")
|
|
738
|
+
"./hypercube/import-properties/helpers/update-measures-on-added.js"),b=r(
|
|
739
|
+
/*! ./restore-measures-modifiers */
|
|
740
|
+
"./hypercube/import-properties/helpers/restore-measures-modifiers.js");t.default={importCommonProperties:n.default,copyPropertyIfExist:i.default,copyPropertyOrSetDefault:o.default,getDefaultDimension:a.default,getDefaultMeasure:s.default,addDimensions:l.default,addMeasures:u.default,getMaxMinDimensionMeasure:c.default,setInterColumnSortOrder:p.default,createNewProperties:d.default,shouldInitLayoutExclude:f.default,initLayoutExclude:m.default,updateDimensionsOnAdded:h.default,updateMeasuresOnAdded:g.default,restoreMeasuresModifiers:b.default}},"./hypercube/import-properties/helpers/init-layout-exclude.js":
|
|
737
741
|
/*!********************************************************************!*\
|
|
738
742
|
!*** ./hypercube/import-properties/helpers/init-layout-exclude.js ***!
|
|
739
743
|
\********************************************************************/
|
|
@@ -748,7 +752,14 @@ function(e,t,r){function n(e){return-1!==["qMetaDef","descriptionExpression","la
|
|
|
748
752
|
!*** ./hypercube/import-properties/helpers/resolve-value.js ***!
|
|
749
753
|
\**************************************************************/
|
|
750
754
|
/*! exports provided: default */
|
|
751
|
-
function(e,t,r){function n(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/
|
|
755
|
+
function(e,t,r){function n(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/restore-measures-modifiers.js":
|
|
756
|
+
/*!***************************************************************************!*\
|
|
757
|
+
!*** ./hypercube/import-properties/helpers/restore-measures-modifiers.js ***!
|
|
758
|
+
\***************************************************************************/
|
|
759
|
+
/*! exports provided: default */
|
|
760
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
761
|
+
/*! qlik-modifiers */
|
|
762
|
+
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=r.n(n);function o(e){var t=e.measures,r=e.modifierTypes;r&&i.a.isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))}},"./hypercube/import-properties/helpers/set-inter-column-sort-order.js":
|
|
752
763
|
/*!****************************************************************************!*\
|
|
753
764
|
!*** ./hypercube/import-properties/helpers/set-inter-column-sort-order.js ***!
|
|
754
765
|
\****************************************************************************/
|
|
@@ -779,11 +790,13 @@ function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
|
779
790
|
!*** ./hypercube/import-properties/index.js ***!
|
|
780
791
|
\**********************************************/
|
|
781
792
|
/*! exports provided: default */
|
|
782
|
-
function(e,t,r){r.r(t),r.d(t,"default",(function(){return
|
|
793
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
783
794
|
/*! ../../utils */
|
|
784
795
|
"./utils/index.js"),i=r(
|
|
785
796
|
/*! ./helpers */
|
|
786
|
-
"./hypercube/import-properties/helpers/index.js")
|
|
797
|
+
"./hypercube/import-properties/helpers/index.js"),o=r(
|
|
798
|
+
/*! ../../quarantine/unquarantine-property */
|
|
799
|
+
"./quarantine/unquarantine-property.js");function a(e){var t=e.exportFormat,r=e.initialProperties,a=void 0===r?{}:r,s=e.dataDefinition,l=void 0===s?{}:s,u=e.defaultPropertyValues,c=void 0===u?{}:u,p=e.hypercubePath,d=e.extension,f=e.supportedFilters,m=void 0===f||f,h={qChildren:[]},g=i.default.createNewProperties({exportFormat:t,initialProperties:a,hypercubePath:p}),b=n.default.getValue(a,p||"").qHyperCubeDef,y=n.default.getValue(g,p||"").qHyperCubeDef,v=i.default.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:l}),x=v.maxDimensions,q=v.minDimensions,D=v.maxMeasures,M=v.minMeasures,S=c.defaultDimension,E=void 0===S?i.default.getDefaultDimension():S,w=c.defaultMeasure,A=void 0===w?i.default.getDefaultMeasure():w;y.qDimensions.length=0,y.qMeasures.length=0,i.default.shouldInitLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:q,maxMeasures:D,minMeasures:M})&&i.default.initLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:q,maxMeasures:D,minMeasures:M,newHyperCubeDef:y}),i.default.addDimensions({exportFormat:t,maxDimensions:x,minDimensions:q,newHyperCubeDef:y,defaultDimension:E}),i.default.addMeasures({exportFormat:t,maxMeasures:D,minMeasures:M,newHyperCubeDef:y,defaultMeasure:A}),i.default.updateDimensionsOnAdded({newProperties:g,dataDefinition:l,hypercubePath:p}),i.default.updateMeasuresOnAdded({newProperties:g,dataDefinition:l,hypercubePath:p}),i.default.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:y}),i.default.copyPropertyIfExist("qMaxStackedCells",b,y),i.default.copyPropertyIfExist("qNoOfLeftDims",b,y),i.default.copyPropertyOrSetDefault("qInitialDataFetch",b,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),i.default.copyPropertyOrSetDefault("qMode",b,y,"S"),i.default.copyPropertyOrSetDefault("qReductionMode",b,y,"N"),i.default.copyPropertyOrSetDefault("qSortbyYValue",b,y),i.default.copyPropertyOrSetDefault("qIndentMode",b,y),i.default.copyPropertyOrSetDefault("qShowTotalsAbove",b,y),i.default.importCommonProperties(g,t,a),h.qProperty=g;var j=n.default.getValue(d||{},"support.modifiers");return i.default.restoreMeasuresModifiers({measures:g.qHyperCubeDef.qMeasures,modifierTypes:j}),m&&Object(o.default)(h.qProperty,"storedFilters"),h}},"./hypercube/index.js":
|
|
787
800
|
/*!****************************!*\
|
|
788
801
|
!*** ./hypercube/index.js ***!
|
|
789
802
|
\****************************/
|
|
@@ -969,7 +982,7 @@ function(e,t,r){r.r(t),t.default={useMasterNumberFormat:function(e){e.quarantine
|
|
|
969
982
|
!*** ./utils/wrap-file-name.js ***!
|
|
970
983
|
\*********************************/
|
|
971
984
|
/*! exports provided: default */
|
|
972
|
-
function(e,t,r){function n(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e}r.r(t),r.d(t,"default",(function(){return n}))}}));function V(e){var t=e.dataDefinition,r=e.defaultPropertyValues,n=e.exportFormat,i=e.initialProperties,o=_.hypercube.importProperties({exportFormat:n,initialProperties:i,dataDefinition:t,defaultPropertyValues:r}),a=o.qProperty;return"all"===a.dimensionAxis.show?a.dimensionAxis.show="labels":"title"===a.dimensionAxis.show&&(a.dimensionAxis.show="none"),"all"===a.measureAxis.show?a.measureAxis.show="labels":"title"===a.measureAxis.show&&(a.measureAxis.show="none"),a.qHyperCubeDef.qMeasures.length>0&&(a.qDef.numFormatFromTemplate=a.qHyperCubeDef.qMeasures[0].qDef.numFormatFromTemplate,a.qDef.qNumFormat=a.qHyperCubeDef.qMeasures[0].qDef.qNumFormat,a.qHyperCubeDef.qMeasures.forEach((function(e){e.qDef.numFormatFromTemplate=a.qDef.numFormatFromTemplate,e.qDef.qNumFormat=q(!0,{},a.qDef.qNumFormat)}))),o}function H(e){var t=e.propertyTree,r=e.viewDataMode;return _.hypercube.exportProperties({propertyTree:t,viewDataMode:r})}var z=function(e){var t=R(e);return{properties:T,data:{targets:[t]},importProperties:function(e){var r=e.exportFormat,n=e.initialProperties;return V({dataDefinition:t,exportFormat:r,initialProperties:n})},exportProperties:H}};function B(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function U(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function W(){}var K=1/.7,G="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J=/^#([0-9a-f]{3,8})$/,X=new RegExp("^rgb\\("+[G,G,G]+"\\)$"),Q=new RegExp("^rgb\\("+[Y,Y,Y]+"\\)$"),Z=new RegExp("^rgba\\("+[G,G,G,$]+"\\)$"),ee=new RegExp("^rgba\\("+[Y,Y,Y,$]+"\\)$"),te=new RegExp("^hsl\\("+[$,Y,Y]+"\\)$"),re=new RegExp("^hsla\\("+[$,Y,Y,$]+"\\)$"),ne={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 ie(){return this.rgb().formatHex()}function oe(){return this.rgb().formatRgb()}function ae(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=J.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?se(t):3===r?new ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?le(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?le(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=X.exec(e))?new ce(t[1],t[2],t[3],1):(t=Q.exec(e))?new ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Z.exec(e))?le(t[1],t[2],t[3],t[4]):(t=ee.exec(e))?le(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=te.exec(e))?me(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?me(t[1],t[2]/100,t[3]/100,t[4]):ne.hasOwnProperty(e)?se(ne[e]):"transparent"===e?new ce(NaN,NaN,NaN,0):null}function se(e){return new ce(e>>16&255,e>>8&255,255&e,1)}function le(e,t,r,n){return n<=0&&(e=t=r=NaN),new ce(e,t,r,n)}function ue(e){return e instanceof W||(e=ae(e)),e?new ce((e=e.rgb()).r,e.g,e.b,e.opacity):new ce}function ce(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function pe(){return"#"+fe(this.r)+fe(this.g)+fe(this.b)}function de(){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+")")}function fe(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function me(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ge(e,t,r,n)}function he(e){if(e instanceof ge)return new ge(e.h,e.s,e.l,e.opacity);if(e instanceof W||(e=ae(e)),!e)return new ge;if(e instanceof ge)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ge(a,s,l,e.opacity)}function ge(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function be(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function ye(e,t,r){if(void 0===e||void 0===t)return r;for(var n=t.split("."),i=e,o=0;o<n.length;++o){var a=n[o];if(void 0===i[a])return r;i=i[a]}return i}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e,t,r){return t&&xe(e.prototype,t),r&&xe(e,r),e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}B(W,ae,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ie,formatHex:ie,formatHsl:function(){return he(this).formatHsl()},formatRgb:oe,toString:oe}),B(ce,(function(e,t,r,n){return 1===arguments.length?ue(e):new ce(e,t,r,null==n?1:n)}),U(W,{brighter:function(e){return e=null==e?K:Math.pow(K,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:pe,formatHex:pe,formatRgb:de,toString:de})),B(ge,(function(e,t,r,n){return 1===arguments.length?he(e):new ge(e,t,r,null==n?1:n)}),U(W,{brighter:function(e){return e=null==e?K:Math.pow(K,e),new ge(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ge(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ce(be(e>=240?e-240:e+120,i,n),be(e,i,n),be(e<120?e+240:e-120,i,n),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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Me,Se=(
|
|
985
|
+
function(e,t,r){function n(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e}r.r(t),r.d(t,"default",(function(){return n}))}}));function V(e){var t=e.dataDefinition,r=e.defaultPropertyValues,n=e.exportFormat,i=e.initialProperties,o=_.hypercube.importProperties({exportFormat:n,initialProperties:i,dataDefinition:t,defaultPropertyValues:r}),a=o.qProperty;return"all"===a.dimensionAxis.show?a.dimensionAxis.show="labels":"title"===a.dimensionAxis.show&&(a.dimensionAxis.show="none"),"all"===a.measureAxis.show?a.measureAxis.show="labels":"title"===a.measureAxis.show&&(a.measureAxis.show="none"),a.qHyperCubeDef.qMeasures.length>0&&(a.qDef.numFormatFromTemplate=a.qHyperCubeDef.qMeasures[0].qDef.numFormatFromTemplate,a.qDef.qNumFormat=a.qHyperCubeDef.qMeasures[0].qDef.qNumFormat,a.qHyperCubeDef.qMeasures.forEach((function(e){e.qDef.numFormatFromTemplate=a.qDef.numFormatFromTemplate,e.qDef.qNumFormat=q(!0,{},a.qDef.qNumFormat)}))),a.qHyperCubeDef.qSuppressZero=!1,o}function H(e){var t=e.propertyTree,r=e.viewDataMode;return _.hypercube.exportProperties({propertyTree:t,viewDataMode:r})}var z=function(e){var t=R(e);return{properties:T,data:{targets:[t]},importProperties:function(e){var r=e.exportFormat,n=e.initialProperties;return V({dataDefinition:t,exportFormat:r,initialProperties:n})},exportProperties:H}};function B(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function U(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function W(){}var K=1/.7,G="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J=/^#([0-9a-f]{3,8})$/,X=new RegExp("^rgb\\("+[G,G,G]+"\\)$"),Q=new RegExp("^rgb\\("+[Y,Y,Y]+"\\)$"),Z=new RegExp("^rgba\\("+[G,G,G,$]+"\\)$"),ee=new RegExp("^rgba\\("+[Y,Y,Y,$]+"\\)$"),te=new RegExp("^hsl\\("+[$,Y,Y]+"\\)$"),re=new RegExp("^hsla\\("+[$,Y,Y,$]+"\\)$"),ne={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 ie(){return this.rgb().formatHex()}function oe(){return this.rgb().formatRgb()}function ae(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=J.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?se(t):3===r?new ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?le(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?le(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=X.exec(e))?new ce(t[1],t[2],t[3],1):(t=Q.exec(e))?new ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Z.exec(e))?le(t[1],t[2],t[3],t[4]):(t=ee.exec(e))?le(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=te.exec(e))?me(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?me(t[1],t[2]/100,t[3]/100,t[4]):ne.hasOwnProperty(e)?se(ne[e]):"transparent"===e?new ce(NaN,NaN,NaN,0):null}function se(e){return new ce(e>>16&255,e>>8&255,255&e,1)}function le(e,t,r,n){return n<=0&&(e=t=r=NaN),new ce(e,t,r,n)}function ue(e){return e instanceof W||(e=ae(e)),e?new ce((e=e.rgb()).r,e.g,e.b,e.opacity):new ce}function ce(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function pe(){return"#"+fe(this.r)+fe(this.g)+fe(this.b)}function de(){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+")")}function fe(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function me(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ge(e,t,r,n)}function he(e){if(e instanceof ge)return new ge(e.h,e.s,e.l,e.opacity);if(e instanceof W||(e=ae(e)),!e)return new ge;if(e instanceof ge)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ge(a,s,l,e.opacity)}function ge(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function be(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function ye(e,t,r){if(void 0===e||void 0===t)return r;for(var n=t.split("."),i=e,o=0;o<n.length;++o){var a=n[o];if(void 0===i[a])return r;i=i[a]}return i}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e,t,r){return t&&xe(e.prototype,t),r&&xe(e,r),e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}B(W,ae,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ie,formatHex:ie,formatHsl:function(){return he(this).formatHsl()},formatRgb:oe,toString:oe}),B(ce,(function(e,t,r,n){return 1===arguments.length?ue(e):new ce(e,t,r,null==n?1:n)}),U(W,{brighter:function(e){return e=null==e?K:Math.pow(K,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:pe,formatHex:pe,formatRgb:de,toString:de})),B(ge,(function(e,t,r,n){return 1===arguments.length?he(e):new ge(e,t,r,null==n?1:n)}),U(W,{brighter:function(e){return e=null==e?K:Math.pow(K,e),new ge(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ge(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ce(be(e>=240?e-240:e+120,i,n),be(e,i,n),be(e<120?e+240:e-120,i,n),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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Me,Se=(
|
|
973
986
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
974
987
|
(Me={exports:{}}).exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,i,o,a,s,l,u,c,p,d=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=g>0?e.substring(v,d):"";if(r=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,i=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",o=n&&n[1]&&n[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(o),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(p=t[0]).length%l,d=p.length,v=0;v<d;v++)h+=p.charAt(v),!((v-b+1)%l)&&v<d-l&&(h+=o);t[0]=h}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x},Me.exports);function Ee(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}var we={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},Ae=/%$/,je=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Ce=/^\(oct\)/i,ke=/^\(dec\)/i,Ie=/^\(hex\)/i,Oe=/^\(bin\)/i,Ne=/^\(rom\)/i,Le=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Te=/#|0/g;function Re(e,t,r,n){return e=e.toString(t),r[1]===r[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",n||".")}function Pe(e,t,r){var n=Ee(e);return r?n:new RegExp(n||"",t)}function Fe(e,t,r){var n,i,o,a,s,l,u,c,p,d,f,m=e.pattern;m.indexOf("A")>=0&&(m=m.replace("A",""),e.abbreviate=!0),d=t,(f=r)&&(f=Ee(f)),d&&(d=Ee(d)),p=new RegExp("(?:[#0]+".concat(d,")?[#0]+(?:").concat(f,"[#0]+)?")),a=(o=(o=m.match(p))?o[0]:"")?m.substr(0,m.indexOf(o)):m,s=o?m.substring(m.indexOf(o)+o.length):"",o||(o=m?"#":"##########"),t&&t===r&&(i=(n=o.split(r)).pop(),o=n.join("")+r+i,t=""),l=t,t=/,/.test(r)?"¤":",",l&&(o=o.replace(Pe(l,"g"),t)),u=r,r=".",u&&(o=o.replace(Pe(u,"g"),r)),c=(c=o.match(/#/g))?c.length:0;var h,g=m.split(u);g[1]&&(h=g[1].match(Te)),e.prefix=a||"",e.postfix=s||"",e.pattern=m,e.maxPrecision=h?h.length:2,e.percentage=Ae.test(m),e.numericPattern=o||"",e.numericRegex=new RegExp("".concat(Pe(t,null,!0),"|").concat(Pe(r,null,!0)),"g"),e.groupTemp=l,e.decTemp=u,e.t=t,e.d=r,e.temp=c}!function(){function e(t,r,n,i,o){ve(this,e),this.localeInfo=t,this.pattern=r,this.thousandDelimiter=n||",",this.decimalDelimiter=i||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return we;var r={};return e.qNumericalAbbreviation.split(t).forEach((function(e){var t=e.split(":");2===t.length&&(r[t[0]]=t[1])})),r}(t,this.patternSeparator),this.prepare()}qe(e,[{key:"clone",value:function(){var t=new e(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return t.subtype=this.subtype,t}},{key:"format",value:function(e,t,r,n){return this.prepare(t,r,n),this.formatValue(e)}},{key:"prepare",value:function(e,t,r){var n;void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===r&&(r=this.decimalDelimiter),e?(this._prepared={positive:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},n=this._prepared,e=e.split(this.patternSeparator),n.positive.pattern=e[0],n.negative.pattern=e[1],n.zero.pattern=e[2],Le.test(e[0])&&(n.positive.isFunctional=!0),e[1]?Le.test(e[1])&&(n.negative.isFunctional=!0):n.negative=!1,e[2]?Le.test(e[2])&&(n.zero.isFunctional=!0):n.zero=!1,n.positive.isFunctional||Fe(n.positive,t,r),n.negative&&!n.negative.isFunctional&&Fe(n.negative,t,r),n.zero&&!n.zero.isFunctional&&Fe(n.zero,t,r)):this._prepared={pattern:!1}}},{key:"formatValue",value:function(e){var t,r,n,i,o,a,s,l,u,c=this._prepared,p="",d="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return(c=c.zero).pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,o=c.d,a=c.t,c.isFunctional)e=function(e,t,r){var n;return je.test(t)?e=Re(e,Number(/\d{2}/.exec(t)[0]),t,r):Ce.test(t)?e=Re(e,8,t,r):ke.test(t)?e=Re(e,10,t,r):Ie.test(t)?e=Re(e,16,t,r):Oe.test(t)?e=Re(e,2,t,r):Ne.test(t)&&(n="",e<0&&(n="-",e=-e),e=0===(e=Math.floor(e))?"0":e<=5e5?n+(e=function(e,t){for(var r,n="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();i>0;)for(r=0;r<a.length;r++)if(a[r]<=i){n+=s[r],i-=a[r];break}for(r=0;r<o;r++)n="M".concat(n);return t[1]!==t[1].toUpperCase()&&(n=n.toLowerCase()),n}(e,t)):t+n+e.toExponential(0)),e}(e,c.pattern,o);else{if(c.percentage&&(e*=100),c.abbreviate){var m,h,g=Object.keys(this.abbreviations).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t})),b=g[0];for(s=0,r=Number(Number(e).toExponential().split("e")[1]);b<=r&&s<g.length;)b=g[++s];s>0&&(m=g[s-1]),m&&r>0&&m>0?h=m:(r<0&&m<0||!m)&&(b<0&&b-r<=c.maxPrecision?h=b:m<=r&&!(b>0&&-r<=c.maxPrecision)&&(h=m)),h&&(p=this.abbreviations[h],e/=Math.pow(10,h))}if(n=Math.abs(e),t=c.temp,u=(l=c.numericPattern).split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,u||"#"!==l.slice(-1)[0])if(n>=1e15||n>0&&n<=1e-14)e=n?n.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{var y=Number(e.toFixed(Math.min(20,u?u.length:0)).split(".")[0]),v=l.split(o)[0];if(e=Se(v+=o,y)||"0",u){var x=Math.max(0,Math.min(14,u.length)),q=u.replace(/#+$/,"").length,D=("I"===this.type?0:n%1).toFixed(x).slice(2).replace(/0+$/,"");for(s=D.length;s<q;s++)D+="0";D&&(e+=o+D)}else 0===y&&(i=0)}else if(n>=Math.pow(10,t)||n<1||n<1e-4)0===e?e="0":n<1e-4||n>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),d=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(n)/Math.log(10)))),s=0;s<t;s++)l+="#";e=Se(l,e)}e=e.replace(c.numericRegex,(function(e){return e===a?c.groupTemp:e===o?c.decTemp:""})),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+d+p+c.postfix}}],[{key:"getStaticFormatter",value:function(){return{prepare:function(){},formatValue:function(e){return"".concat(e)}}}}])}();var _e=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ve=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],He=["January","February","March","April","May","June","July","August","September","October","November","December"],ze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Be(e,t){for(var r=e.length;r<t;r++)e="0".concat(e);return e}function Ue(e){var t=e.toString().split(".");return t[1]?t=Number("0.".concat(t[1])):0}!function(){function e(t,r,n){ve(this,e);var i,o=t||{};o.qCalendarStrings||(o.qCalendarStrings={qLongDayNames:_e,qDayNames:Ve,qLongMonthNames:He,qMonthNames:ze}),this.localeInfo=o,this.locale_days=o.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=o.qCalendarStrings.qDayNames.slice(),this.locale_months=o.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=o.qCalendarStrings.qMonthNames.slice(),r||(r=(De(i={},"T",o.qTimeFmt||"hh:mm:ss"),De(i,"D",o.qDateFmt||"YYYY-MM-DD"),De(i,"TS",o.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"),i)[n]),this.pattern=r}qe(e,[{key:"clone",value:function(){var t=new e(this.localeInfo,this.pattern);return t.subtype=this.subtype,t}},{key:"format",value:function(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");var r,n,i,o,a,s=/t+/gi.test(t);e instanceof Date?(i=s,o=(n=e).getUTCHours(),i&&((o%=12)||(o=12)),(a=n.getUTCDay()-1)<0&&(a=6),r={year:n.getUTCFullYear(),month:n.getUTCMonth(),day:a,date:n.getUTCDate(),h:o,m:n.getUTCMinutes(),s:n.getUTCSeconds(),f:n.getUTCMilliseconds(),t:n.getUTCHours()>=12?"pm":"am"}):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){var r,n=function(e){var t=e,r=24*Ue(t),n=60*Ue(r),i=60*Ue(n),o=1e3*Ue(i);return{d:Math.floor(t),h:Math.floor(r),m:Math.floor(n),s:Math.floor(i),f:Math.round(o)}}(e),i=n.d,o=n.h,a=n.m,s=n.s,l=n.f,u=0;/w+|t+/gi.test(t)&&(r=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(r.getTime())&&(r=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=r?r.getDay()-1:0)<0&&(u=6);var c="";return r&&(c=r.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:i,h:o,m:a,s:s,f:l,t:c}}(e,t));var l=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:Be("".concat(t.year).slice(-2),2),YYY:Be("".concat(t.year).slice(-3),3),def:function(e){return Be("".concat(t.year),e.length)}},"M+":{M:t.month+1,MM:Be("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:Be("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:function(e){return Be("".concat(t.date),e.length)}},"h+|H+":{h:t.h,def:function(e){return Be("".concat(t.h),e.length)}},"m+":{m:t.m,def:function(e){return Be("".concat(t.m),e.length)}},"s+|S+":{s:t.s,def:function(e){return Be("".concat(t.s),e.length)}},"f+|F+":{def:function(e){var r="".concat(t.f),n=e.length-r.length;if(n>0)for(var i=0;i<n;i++)r+="0";else n<0&&(r=r.slice(0,e.length));return r}},"t{1,2}|T{1,2}":{def:function(e){var r=t.t;return e[0].toUpperCase()===e[0]&&(r=r.toUpperCase()),r.slice(0,e.length)}}}}(this,r),u=[];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&u.push(c);var p=new RegExp(u.join("|"),"g");return t.replace(p,(function(e){var t,r,n;for(r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&(t=new RegExp(r)).test(e))break;if(!t)return"";for(var i in l[r])if(i===e||i.toLowerCase()===e){void 0===(n=l[r][i])&&(n=l[r][i.toLowerCase()]);break}return void 0===n&&(n=l[r].def),"function"==typeof n&&(n=n(e)),n}))}}])}();function We(e,t,r,n,i){var o=e.color||e.qDef.color;return o&&!o.auto&&o[r]?o[r].paletteColor:{index:i,color:t.getStyle("object.waterfallChart","shape.".concat(r),"fill")||n}}var Ke={valueTypes:{NORMAL:"NORMAL",INVERSE:"INVERSE",SUBTOTAL:"SUBTOTAL"},chartID:"object.waterfallChart",getColorForPositiveValue:function(e,t){return t.getColorPickerColor(We(e,t,"positiveValue",null,6))},getColorForNegativeValue:function(e,t){return t.getColorPickerColor(We(e,t,"negativeValue","#cc6677",-1))},getColorForSubtotal:function(e,t){return t.getColorPickerColor(We(e,t,"subtotal","#c3c3c3",-1))}};function Ge(e){return!e.color.auto}function $e(e){var t=e.flags,r=e.translator,n={translation:"properties.numberFormatting",type:"items",globalChange:function(e){e.qHyperCubeDef.qMeasures.forEach((function(t){t.qDef.numFormatFromTemplate=e.qDef.numFormatFromTemplate,t.qDef.qNumFormat=q(!0,{},e.qDef.qNumFormat)}))},items:{numberFormatting:{uses:"measures.items.numberFormatting",items:{numberFormattingType:void 0}}}};return{type:"items",component:"accordion",items:{data:{uses:"data",addTranslation:"Properties.AddData",items:{measures:{disabledRef:"",items:{numberFormatting:{show:!1},valueType:{type:"string",component:"dropdown",ref:"qDef.valueType",translation:"properties.waterfall.measureOperation",options:[{value:Ke.valueTypes.NORMAL,translation:"properties.waterfall.measureOperation.add"},{value:Ke.valueTypes.INVERSE,translation:"properties.waterfall.measureOperation.subtract"},{value:Ke.valueTypes.SUBTOTAL,translation:"properties.waterfall.measureOperation.subtotal"}],defaultValue:Ke.valueTypes.NORMAL},subTotal:{ref:"qDef.subtotal.enable",type:"boolean",defaultValue:!1,translation:"properties.waterfall.measureOperation.subtotal",show:function(e){return e.qDef.valueType!==Ke.valueTypes.SUBTOTAL}},subTotalLabel:{translation:"properties.waterfall.subtotalLabel",component:"string",expression:"optional",ref:"qDef.subtotal.label",defaultValue:function(){return r.get("properties.waterfall.measureOperation.subtotal")},show:function(e){return e.qDef.valueType!==Ke.valueTypes.SUBTOTAL&&e.qDef.subtotal&&e.qDef.subtotal.enable}}}}}},numberFormatting:n,addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines",items:{colorBackground:{show:!1}}}}},settings:{uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridlines.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridlines.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:function(e){return e.gridlines&&!e.gridlines.auto}}}},showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],snapshot:{tid:"property-dataPoints"}}}},colors:{translation:"properties.colorsAndLegend",type:"items",grouped:!0,items:{colors:{type:"items",items:{autoColor:{ref:"color.auto",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},positiveValueColor:{ref:"color.positiveValue.paletteColor",translation:"properties.waterfall.color.positiveValueColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:6,color:null},show:Ge},negativeValueColor:{ref:"color.negativeValue.paletteColor",translation:"properties.waterfall.color.negativeValueColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:-1,color:"#cc6677"},show:Ge},subtotalColor:{ref:"color.subtotal.paletteColor",translation:"properties.waterfall.color.subtotalColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:-1,color:"#c3c3c3"},show:Ge}}},legend:{type:"items",items:{show:{ref:"legend.show",type:"boolean",translation:"properties.legend.show",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},dock:{type:"string",component:"dropdown",ref:"legend.dock",translation:"properties.legend.position",options:[{value:"auto",translation:"Common.Auto"},{value:"right",translation:"properties.dock.right"},{value:"bottom",translation:"Common.Bottom"},{value:"left",translation:"properties.dock.left"},{value:"top",translation:"Common.Top"}],defaultValue:"auto",show:function(e){return ye(e,"legend.show",!0)}}}}}},measureAxis:{uses:"axis.picasso.measureAxis",label:r.get("properties.yAxis"),items:{axis:{items:{show:{translation:"properties.labels",defaultValue:"labels",options:[{value:"labels",translation:"properties.labels"},{value:"none",translation:"Common.None"},null,null]}}}}},dimensionAxis:{uses:"axis.picasso.dimensionAxis",items:{othersGroup:{items:{show:{translation:"properties.labels",defaultValue:"labels",options:[{value:"labels",translation:"properties.labels"},{value:"none",translation:"Common.None"},null,null]},label:{options:t.isEnabled("SENSECLIENT_LAYERED_LABELS")?[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]:void 0}}}}}}}}}}function Ye(e){var t;if(null!==(t=e.anything)&&void 0!==t&&t.sense)return{definition:$e(e),support:{cssScaling:!1,snapshot:!0,export:!0,exportData:!0,sharing:!0,viewData:!0},importProperties:function(t,r,n){n.mapProperties();var i={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return V({dataDefinition:R(e),defaultPropertyValues:i,exportFormat:t,initialProperties:r})},exportProperties:function(e,t,r){return H({propertyTree:e,viewDataMode:r})}}}Object.freeze(Ke.valueTypes),Object.freeze(Ke);var Je=/xyz/.test((function(){}))?/\b_super\b/:/.*/,Xe=function(){};Xe.extend=function e(t,r){var n=this.prototype;"string"!=typeof t&&(r=t,t="Class");var i=Object.create(this.prototype);for(var o in r)i[o]="function"==typeof r[o]&&"function"==typeof n[o]&&Je.test(r[o])?function(e,t){return function(){var r=this._super;this._super=n[e];var i=t.apply(this,arguments);return this._super=r,i}}(o,r[o]):r[o];if(!/^[_a-z][_a-z\d]*$/i.test(t))throw new Error("Invalid subclass name. Alphanumericals only.");var a=new Function("return (function ".concat(t,"(){ typeof this.init === 'function' && this.init.apply(this, [].slice.call(arguments)) });"))();return a.prototype=i,a.prototype.constructor=a,a.extend=e,a};var Qe={getChar:function(e){var t,r=e;return r>9?(t=65+r-10)>90&&(t+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(r+1):String.fromCharCode(t)},base62:function(e){var t=this.getChar(e%62),r=Math.floor(e/62);return r>0?this.base62(r)+t:t},id:function(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function Ze(){return Qe.id()}function et(e,t,r){return"y"===e?tt(t,r):function(e){return"far"===e?"top":"bottom"}(t)}function tt(e,t){var r=e||"near";return t&&"near"===r||!t&&"far"===r?"right":"left"}var rt={getAxisDock:et,getOppositeAxisDock:function(e,t,r){return et(e,"far"===t?"near":"far",r)},getYAxisDock:tt},nt=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),it=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),ot=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function at(e){return nt.test(e)}function st(e){return it.test(e)||ot.test(e)}var lt={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),detectTextDirection:function(e){var t,r,n=e?e.length:0;for(t=0;t<n;t++){if(at(r=e[t]))return"ltr";if(st(r))return"rtl"}return"ltr"}};var ut={lineSettings:function(e,t){var r,n={value:0,line:{stroke:void 0!==t.paletteColor?t.theme.getColorPickerColor(t.paletteColor):"transparent",strokeDasharray:null==t||null===(r=t.style)||void 0===r?void 0:r.lineType}};return q(!0,n,e||{})},lineLabelSettings:function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"referenceLine.label.name","color"),i=t.theme.getStyle(r,"referenceLine.label.name","fontSize"),o=t.theme.getStyle(r,"referenceLine.label.name","fontFamily");return t.paletteColor?n=t.theme.getColorPickerColor(t.paletteColor):n||(n="transparent"),q(!0,{value:0,line:{stroke:"transparent"},label:{align:"center",vAlign:"middle",text:"",fill:n,fontFamily:o,fontSize:i,maxWidthPx:135}},e||{})},isVisible:function(e){return e&&!1!==e.show&&0!==e.show&&"0"!==e.show&&void 0!==e.refLineExpr},getRefLineTitle:function(e){var t=e.refLine,r=e.label,n=e.valueString;return!1!==t.showValue?!1!==t.showLabel?"".concat(r," ").concat(lt.lrm,"(").concat(n,")").concat(lt.lrm):"".concat(lt.lrm,"(").concat(n,")").concat(lt.lrm):!1!==t.showLabel?r:""}},ct={SHOW_AXIS_LABELS_OPTIONS:["all","labels"],SHOW_TITLE_OPTIONS:["all","title"],HORIZONTAL:"horizontal",VERTICAL:"vertical",LAYOUTSETTINGS:{lasso:{displayOrder:1e4},rangeDim:{displayOrder:1e4},rangeMeasure:{displayOrder:1e4},rangeMinor:{displayOrder:1e4},scrollBar:{minimumLayoutMode:"SPARK",prioOrder:-1,displayOrder:100},refLines:{minimumLayoutMode:"SPARK",prioOrder:60,displayOrder:-10},measureAxisTitle:{minimumLayoutMode:"XSMALL",prioOrder:30,displayOrder:90},dimensionAxisTitle:{minimumLayoutMode:"XSMALL",prioOrder:30,displayOrder:90},measureAxis:{minimumLayoutMode:"XSMALL",prioOrder:10,displayOrder:80},dimensionAxis:{minimumLayoutMode:"XSMALL",prioOrder:10,displayOrder:80},gridLines:{minimumLayoutMode:"XSMALL",displayOrder:-100},refLinesLabels:{minimumLayoutMode:"SMALL",prioOrder:60,displayOrder:0}}};ct.DEFAULT_CHART_ORIENTATION=ct.HORIZONTAL;function pt(e,t){var r=t||{},n=r.measureAxisProperties||{},i=r.dimensionAxisProperties||{},o=r.orientation||ct.DEFAULT_CHART_ORIENTATION,a=o===ct.HORIZONTAL,s=a?"x":"y",l=a?"y":"x",u=ct.SHOW_AXIS_LABELS_OPTIONS,c=ct.SHOW_TITLE_OPTIONS,p=u.includes(n.show),d=!!r.measureTitleText&&c.includes(n.show),f=r.includeDimensionAxis&&u.includes(i.show),m=r.includeDimensionAxis&&!!r.dimensionTitleText&&c.includes(i.show),h=r.gridlines&&!(!r.gridlines.auto&&0===r.gridlines.spacing),g=r.refLines&&r.refLines.some((function(e){return e.show})),b=[];(p&&function(e,t,r,n){var i={scale:"measure",forceBounds:n&&!n.autoMinMax&&n.showBounds};i=q(i,ct.LAYOUTSETTINGS.measureAxis);var o=ft(t,r);e.addComponent("".concat(r,"-axis"),i,o)}(e,r,s,n),d&&function(e,t,r){var n={text:t.measureTitleText};n=q(n,ct.LAYOUTSETTINGS.measureAxisTitle);var i=function(e,t){return ft(e,t)}(t,r);e.addComponent("".concat(r,"-axis-title"),n,i)}(e,r,s),function(e,t,r,n){var i=t.measureScaleSettings,o={isRtl:t.isRtl,source:t.measureSource,orientation:r,measureAxisProperties:n};n&&n.spacing>0&&(i=q(!0,i||{},{component:{ticks:{distance:100*n.spacing}}}));e.addScale("measure-scale",i,o)}(e,r,o,n),f&&function(e,t,r){var n={scale:"dimension"};n=q(n,ct.LAYOUTSETTINGS.dimensionAxis);var i=mt(t,r);q(!0,n,t.dimensionAxisSettings||{}),e.addComponent("".concat(r,"-axis"),n,i)}(e,r,l),m&&function(e,t,r){var n={text:t.dimensionTitleText};n=q(n,ct.LAYOUTSETTINGS.dimensionAxisTitle);var i=function(e,t){return mt(e,t)}(t,r);e.addComponent("".concat(r,"-axis-title"),n,i)}(e,r,l),r.includeDimensionAxis&&function(e,t,r){var n={isRtl:t.isRtl,source:t.dimensionSource,orientation:r===ct.HORIZONTAL?ct.VERTICAL:ct.HORIZONTAL};e.addScale("dimension-scale",t.dimensionScaleSettings,n)}(e,r,o),h&&function(e,t,r){var n={ticks:{show:!0},minorTicks:{show:!t.auto&&!t.auto&&3===t.spacing}};(n=q(n,ct.LAYOUTSETTINGS.gridLines))[r]={scale:"measure"},e.addComponent("grid-line",n)}(e,r.gridlines,s),r.hasNavigation&&function(e,t,r,n){e.getSettings().scroll={dimension:{viewSize:r.scrollSettings&&r.scrollSettings.viewSize||0,max:r.scrollSettings&&r.scrollSettings.max||0}};var i={isRtl:r.isRtl,chartID:r.chartID,isHorizontal:!n},o=q({},ct.LAYOUTSETTINGS.scrollBar);e.addComponent("scrollbar",o,i),dt(t,function(e){function t(t,r){if(!r||!e())return!1;var n={x:r.center.x-r.deltaX,y:r.center.y-r.deltaY};return this.chart.componentsFromPoint(n).some((function(e){return"scrollbar"===e.settings.key}))}return[{type:"Tap",options:{enable:t},events:{tap:function(e){this.chart.component("scrollbar").emit("tap",e)}}},{type:"Pan",options:{enable:t},events:{panstart:function(e){this.chart.component("scrollbar").emit("panStart",e)},pan:function(e){this.chart.component("scrollbar").emit("panMove",e)},panend:function(e){this.chart.component("scrollbar").emit("panEnd",e)},pancancel:function(e){this.chart.component("scrollbar").emit("panCancel",e)}}}]}(r.isNavigationEnabledFn))}(e,b,r,a),g&&function(e,t,r,n){var i=rt.getAxisDock(r,n.dock,t.isRtl),o={key:"ref-line",style:{oob:{show:!1}},lines:{x:[],y:[]}};o=q(o,ct.LAYOUTSETTINGS.refLines);var a={key:"ref-line-labels-".concat(Ze()),require:["renderer","chart"],dock:rt.getOppositeAxisDock(r,n.dock,t.isRtl),preferredSize:function(){if("x"===r)return 26;for(var t=this.renderer.measureText,n=this.chart.formatter({data:e.settings.scales.measure.data}),i=a.lines.y.map((function(e){var r=!1!==e.label.showValue?"(".concat(n(e.value),")"):"",i="".concat(e.label.text," ").concat(r),o=e.label.text&&r?" ".concat(r):r;return{wanted:t({text:i,fontSize:e.fontSize,fontFamily:e.fontFamily}).width,required:t({text:o,fontSize:e.fontSize,fontFamily:e.fontFamily}).width}})),o=i[0],s=1;s<i.length;s++)i[s].wanted>o.wanted&&(o.wanted=i[s].wanted),i[s].required>o.required&&(o.required=i[s].required);var l=12;return o.required+l>100?o.required+l:Math.min(o.wanted+l,100)},lines:{x:[],y:[]}};a=q(a,ct.LAYOUTSETTINGS.refLinesLabels),t.refLines.forEach((function(n){if(n.show){var s=n.refLineExpr&&n.refLineExpr.value,l=q(!0,{},t,{paletteColor:n.paletteColor,style:n.style,chartID:e.options.chartID}),u=ut.lineSettings({scale:"measure",dir:r,value:s},l);o.lines[r].push(u);var c=ut.lineLabelSettings({scale:"measure",value:s,label:{text:!1!==n.showLabel?n.label:"",showValue:!1!==n.showValue}},l);"x"===r?c.label.vAlign="near"===i?1:0:c.label.align="near"===i?0:1,a.lines[r].push(c)}})),e.addComponent("ref-line",o,{}),e.addComponent("ref-line",a,{})}(e,r,s,n),r.enableLasso&&r.selectionsEnabled)&&function(e,t){var r={brushKey:t.brushKey,brushComponents:t.brushComponents,brushData:t.brushData};e.addComponent("lasso",ct.LAYOUTSETTINGS.lasso,r)}(e,r.lasso||{});r.enableDimRange&&r.includeDimensionAxis&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeDim"};o=q(o,ct.LAYOUTSETTINGS.rangeDim);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushArea:t.brushArea,brushScale:t.brushScale,isHorizontal:!r,dock:n,isRtl:i};e.addComponent("range",o,a)}(e,r.dimRange||{},a,mt(r,l).dock,r.isRtl);r.enableMeasureRange&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeMeasure"};o=q(o,ct.LAYOUTSETTINGS.rangeMeasure);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushArea:t.brushArea,brushScale:t.brushScale,multiple:t.multiple,isHorizontal:r,dock:n,isRtl:i};e.addComponent("range",o,a)}(e,r.measureRange||{},a,ft(r,s).dock,r.isRtl);r.enableAreaRange&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeMinor"};o=q(o,ct.LAYOUTSETTINGS.rangeMinor);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushData:t.brushData,brushArea:t.brushArea,brushComponents:t.brushComponents,brushScale:t.brushScale,multiple:t.multiple,isHorizontal:"measure"===t.brushScale?r:!r,dock:n,isRtl:i,chartInstance:t.chartInstance};e.addComponent("range-area",o,a)}(e,r.areaRange||{},a,mt(r,l).dock,r.isRtl);r.brushActions&&dt(b,r.brushActions),b.length&&function(e,t){e.addInteraction({},{gestures:t})}(e,b)}function dt(e,t){t.forEach((function(t){e.push(t)}))}function ft(e,t){return{dock:e.measureAxisProperties&&e.measureAxisProperties.dock,direction:t,isRtl:e.isRtl}}function mt(e,t){return{dock:e.dimensionAxisProperties&&e.dimensionAxisProperties.dock,direction:t,isRtl:e.isRtl}}function ht(e,t){var r=t||{},n=!r.orientation||"horizontal"===r.orientation,i=!!r.isRtl,o={name:r.name||"scale",component:{invert:n&&i,minorTicks:{count:1},range:r.range||void 0,domain:r.domain||void 0,trackBy:r.trackBy||"id"}};return q(!0,{},o,e||{})}function gt(e,t){var r=t&&t.chartID,n=t&&t.dock,i=t&&t.direction,o=t&&t.isRtl,a=t.theme.getStyle(r,"axis.line.major","color"),s=t.theme.getStyle(r,"axis.title","fontSize"),l=t.theme.getStyle(r,"axis.title","color"),u=t.theme.getStyle(r,"axis.label.name","color"),c=t.theme.getStyle(r,"axis.label.name","fontSize"),p=t.theme.getStyle(r,"axis.title","fontFamily"),d=t.theme.getStyle(r,"axis.label.name","fontFamily"),f={key:"axis",type:"axis",dock:rt.getAxisDock(i,n,o),brush:{trigger:[],consume:[]},settings:{title:{fontSize:s,fontFamily:p,fill:l},line:{show:!0,strokeWidth:1,stroke:a},labels:{fill:u,fontSize:c,fontFamily:d,tiltAngle:o?-40:40,maxEdgeBleed:75,maxSize:150,mode:"auto"},ticks:{stroke:a},minorTicks:{stroke:a}}};return q(!0,{},f,e||{})}function bt(e,t){var r=t&&t.chartID,n=t&&t.dock,i=t&&t.direction,o=t&&t.isRtl,a=t.theme.getStyle(r,"axis.title","fontSize"),s=t.theme.getStyle(r,"axis.title","color"),l=t.theme.getStyle(r,"axis.title","fontFamily"),u={key:"text",type:"text",dock:rt.getAxisDock(i,n,o)||"bottom",displayOrder:0,style:{text:{fontSize:a,fontFamily:l,fill:s}}};return q(!0,{},u,e||{})}ht.measureScale=function(e,t){var r=(t||{}).source||[];"string"==typeof r&&(r=[r]);var n={name:"measure",component:{expand:.1,data:{fields:r.map((function(e){return{field:e}}))}}},i=t&&t.measureAxisProperties;i&&!i.autoMinMax&&(["min","minMax"].includes(i.minMax)&&(n.component.min=i.min),["max","minMax"].includes(i.minMax)&&(n.component.max=i.max));var o=ht(q(!0,n,e||{}),t);return!(e&&e.component&&void 0!==e.component.invert)&&t&&"vertical"===t.orientation&&(o.component.invert=!o.component.invert),o},ht.dimensionScale=function(e,t){var r={name:"dimension",component:{trackBy:"id",type:"band",data:{extract:{field:t&&t.source||"",props:{label:function(e){return e.qText||""}}}},label:function(e){return e.datum.label.value}}};return ht(q(!0,r,e||{}),t)},gt.xAxis=function(e,t){return gt(q(!0,{key:"x-axis",scale:"x"},e||{}),t)},gt.yAxis=function(e,t){var r=t&&t.dock,n=t&&t.isRtl,i={key:"y-axis",scale:"y",dock:rt.getYAxisDock(r,n)};return gt(q(!0,i,e||{}),t)},bt.xAxisTitle=function(e,t){return bt(q(!0,{key:"x-axis-title"},e||{}),t)},bt.yAxisTitle=function(e,t){var r=t&&t.dock,n=t&&t.isRtl,i={key:"y-axis-title",dock:rt.getYAxisDock(r,n)||"left"};return bt(q(!0,i,e||{}),t)};var yt={getBublesAlign:function(e,t,r){var n=e&&"far"!==t||!e&&"far"===t;return!e&&r&&(n=!n),n?"start":"end"},getDock:function(e,t){var r,n=[];return e&&n.push("@".concat(e)),t&&n.push("@".concat(t)),n.length&&(r=n.join(",")),r}};var vt={SPARK:{width:0,height:0},XSMALL:{width:150,height:75},SMALL:{width:300,height:150},MEDIUM:{width:400,height:220},FULL:{width:550,height:450}};function xt(){return vt}function qt(e){var t=e.data.end;return e.dataset(t.source.key).field(t.source.field).formatter()(t.value)}xt.getLayoutModeKeys=function(){var e,t=[];for(e in vt)t.push(e);return t};var Dt={left:"left",right:"right",up:"top",down:"bottom"};function Mt(e,t,r){switch(e){case"scale":return ht(t,r);case"measure-scale":return ht.measureScale(t,r);case"dimension-scale":return ht.dimensionScale(t,r);case"axis":return gt(t,r);case"box-marker":return function(e){return q(!0,{},{key:"box-marker",type:"box-marker",settings:{minor:{scale:"x"},orientation:"horizontal"},brush:{trigger:[],consume:[]}},e||{})}(t);case"point-marker":return function(e){return q(!0,{},{key:"point-marker",type:"point-marker",settings:{},brush:{trigger:[],consume:[]}},e||{})}(t);case"scrollbar":return function(e,t){var r=t&&t.isRtl,n=t&&t.chartID,i=t&&t.isHorizontal,o={key:"scrollbar",type:"scrollbar",scroll:"dimension",dock:i?"bottom":r?"left":"right",settings:{backgroundColor:t.theme.getStyle(n,"","backgroundColor"),invert:r&&i}};return q(!0,{},o,e||{})}(t,r);case"text":return bt(t,r);case"lasso":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushComponents?t.brushComponents:[],i=t&&t.brushData?t.brushData:["elemNo"],o={type:"brush-lasso",key:"lasso",displayOrder:99,settings:{brush:{components:[]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"rgba(102,102,102,1)",strokeWidth:2,opacity:1,strokeDasharray:null},startPoint:{r:10,fill:"rgba(0, 152, 69, 1)",strokeWidth:0,opacity:1}}};return n.forEach((function(e){o.settings.brush.components.push({contexts:r?[r]:void 0,key:e,data:i})})),q(!0,{},o,e||{})}(t,r);case"range":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushAxis,i=t&&t.brushArea,o=t&&t.brushScale,a=t&&t.isHorizontal,s=t&&t.dock,l=t&&t.isRtl,u={type:"brush-range",key:"range",displayOrder:99,dock:yt.getDock(n,i),settings:{brush:r,fill:"rgba(0, 0, 0, 0)",scale:o,multiple:!t||!1!==t.multiple||t.multiple,direction:a?"horizontal":"vertical",target:{component:n,fill:"rgba( 82, 204, 82, 0.2 )",fillActive:"rgba(82, 204, 82, 0.4)"},bubbles:{align:yt.getBublesAlign(a,s,l)}}};return q(!0,{},u,e||{})}(t,r);case"range-area":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushAxis,i=t&&t.brushComponents?t.brushComponents:[],o=t&&t.brushData?t.brushData:["elemNo"],a=t&&t.brushArea,s=t&&t.isHorizontal,l=t&&t.dock,u=t&&t.isRtl,c=t&&t.chartInstance,p=!0,d={type:"brush-area-dir",key:"area",displayOrder:99,dock:yt.getDock(n,a),settings:{brush:{components:[]},direction:s?"horizontal":"vertical",target:{component:n,fill:"rgba( 82, 204, 82, 0.2 )",fillActive:"rgba(82, 204, 82, 0.4)"},bubbles:{align:yt.getBublesAlign(s,l,u),label:function(e){return p?(p=!1,c.dataset(e.binStart.source.key).field(e.binStart.source.field).formatter()(e.binStart.value)):(p=!0,c.dataset(e.binEnd.source.key).field(e.binEnd.source.field).formatter()(e.binEnd.value))}},multiple:!t||!1!==t.multiple||t.multiple}};return i.forEach((function(e){d.settings.brush.components.push({contexts:r?[r]:void 0,key:e,data:o,action:"add"})})),q(!0,{},d,e||{})}(t,r);case"categorical-legend":return function(e,t){var r=t&&t.chartID,n=t&&t.isRtl,i=t&&t.dock||"auto",o=t&&t.show;"auto"===i&&(i=t.chartHeight/t.chartWidth<1?n?"left":"right":"bottom");var a=t.theme.getStyle(r,"legend.title","color"),s=t.theme.getStyle(r,"legend.title","fontSize"),l=t.theme.getStyle(r,"legend.label","color"),u=t.theme.getStyle(r,"legend.label","fontSize"),c=t.theme.getStyle(r,"legend.title","fontFamily"),p={key:"legend",type:"legend-cat",dock:i,show:o,scale:{type:"color"},settings:{title:{anchor:"middle"},layout:{direction:n?"rtl":"ltr",size:"top"===i||"bottom"===i?2:1,vertical:"top"===i||"bottom"===i?16:8},navigation:{button:{class:{"lui-fade-button":!0},content:function(e,t){return e("span",{style:{pointerEvents:"none"},class:["lui-button__icon","lui-icon","lui-icon--triangle-".concat(Dt[t.direction])].join(" ")})}}}},style:{item:{label:{fontSize:u,fontFamily:t.theme.getStyle(r,"legend.label","fontFamily"),fill:l,lineHeight:1,wordBreak:"break-word"},margin:{top:5,left:10,right:10,bottom:10},shape:{type:t.type?t.type:"square",size:3*parseInt(u,10)/4}},title:{show:t.showTitle,fontSize:s,fontFamily:c,fill:a}}};return q(!0,{},p,e)}(t,r);case"sequential-legend":return function(e,t){var r=t&&t.chartID,n=t&&t.isRtl,i=t.dock||"auto";"auto"===i&&(i=t.chartHeight<t.chartWidth?n?"left":"right":"bottom");var o=t.theme.getStyle(r,"legend.title","color"),a=t.theme.getStyle(r,"legend.title","fontSize"),s=t.theme.getStyle(r,"legend.title","fontFamily"),l=t.theme.getStyle(r,"legend.label","color"),u=t.theme.getStyle(r,"legend.label","fontSize"),c=t.theme.getStyle(r,"legend.label","fontFamily");function p(e){switch(e){case"left":return 0;case"right":return 1;case"middle":default:return.5}}var d={key:"seqlegend",type:"legend-seq",dock:i,displayOrder:200,minimumLayoutMode:"MEDIUM",prioOrder:0,settings:{align:p(n?"right":"left"),major:{invert:"left"===i||"right"===i||n},title:{show:t.showTitle,fontSize:a,fontFamily:s,fill:o},tick:{fill:l,fontSize:u,fontFamily:c}}};return q(!0,{},d,e)}(t,r);case"x-axis":return gt.xAxis(t,r);case"y-axis":return gt.yAxis(t,r);case"x-axis-title":return bt.xAxisTitle(t,r);case"y-axis-title":return bt.yAxisTitle(t,r);case"grid-line":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"grid.line.major","color");return q(!0,{},{displayOrder:-1,key:"grid-line",type:"grid-line",x:null,y:null,ticks:{stroke:n},minorTicks:{stroke:n}},e||{})}(t,r);case"interaction":return function(e,t){var r=t&&t.gestures||[];return q(!0,{},{type:"hammer",key:"hammered",gestures:r},e||{})}(t,r);case"ref-line":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"referenceLine.outOfBounds","color"),i=t.theme.getStyle(r,"referenceLine.outOfBounds","backgroundColor");return q(!0,{},{key:"ref-line",type:"ref-line",dock:"center",prioOrder:-1,lines:{x:[],y:[]},style:{oob:{width:7,fill:i,text:{fill:n},padding:{x:7,y:5}}}},e||{})}(t,r);case"event-area":return function(e){return q(!0,{},{type:"event-area",key:"event-area"},e||{})}(t);case"labels":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"label.value","color"),i=t.theme.getStyle(r,"label.value","fontSize"),o={key:"labels",type:"labels",displayOrder:1,settings:{sources:[{component:"box-marker",selector:"rect",strategy:{type:"bar",settings:{direction:"up",fontFamily:t.theme.getStyle(r,"label.value","fontFamily"),fontSize:parseFloat(i),align:.5,labels:[{placements:[{position:"outside",fill:n,justify:0},{position:"inside",fill:e&&e.settings.sources[0].strategy.settings.labels[0].placements[1].fill,justify:1}],label:qt}]}}}]}};return q(!0,{},o,e||{})}(t,r);default:return}}function St(e){this.options=e||{},this.settings={dockLayout:{layoutModes:xt()},components:[],scales:{}}}St.prototype.addComponent=function(e,t,r){var n=Mt(e,t,q(!0,{},this.options,r||{}));return this.settings.components.push(n),n},St.prototype.addInteraction=function(e,t){var r=Mt("interaction",e,q(!0,{},this.options,t||{}));return this.settings.interactions||(this.settings.interactions=[]),this.settings.interactions.push(r),r},St.prototype.addScale=function(e,t,r){var n=Mt(e,t,q(!0,{},this.options,r||{}));this.settings.scales[n.name]=n.component},St.prototype.getSettings=function(){return this.settings},St.prototype.getComponent=function(e){return this.settings.components.filter((function(t){return t.key===e}))[0]},St.prototype.addPreset=function(e,t){!function(e,t,r){switch(e){case"dimension-measure-chart":pt(t,r);break;default:throw Error("There is no chart preset with that type")}}(e,this,t)},St.validateComponentKeys=function(e){var t={};return e.map((function(e){var r=e.key;return r?t[r]?"Duplicate key for component ".concat(e.type):(t[r]=!0,null):"Missing key for component ".concat(e.type)})).filter((function(e){return!!e}))},St.create=function(e){return new St(e)},St.createComponent=Mt;var Et={CENTER:0,BOTTOM:1},wt={DISCLAIMERS:[{label:"NoDataExist",alignment:Et.CENTER,default:!0},{label:"RequireNumericDimension",alignment:Et.CENTER,default:!1},{label:"OnlyNanData",alignment:Et.CENTER,default:!0},{label:"OnlyNegativeOrZeroValues",alignment:Et.CENTER,default:!1},{label:"LimitedData",alignment:Et.BOTTOM,default:!1},{label:"OnlyNanColor",alignment:Et.BOTTOM,default:!1},{label:"NegativeOrZeroValues",alignment:Et.BOTTOM,default:!1},{label:"DataRangeIncludingZero",alignment:Et.BOTTOM,default:!1}],ALIGNMENT:Et};var At={getNoDataExistAttribute:function(e){return e.qSize.qcy*e.qSize.qcx==0},getLimitedDataAttribute:function(e,t){var r,n,i=!1;return e?void 0!==t.explicitLimitedData?i=!0===t.explicitLimitedData:e.qDataPages&&e.qDataPages[0]?i=!t.paging&&e.qSize.qcy>e.qDataPages[0].qMatrix.length:(n=e.qStackedDataPages)&&n[0]&&n[0].qData[0]&&n[0].qData[0].qSubNodes&&(r=t.maxNbrOfDimensions?t.maxNbrOfDimensions:2,i=e.qDimensionInfo.length>=r?e.qStackedDataPages[0].qData[0].qSubNodes.some((function(e){return e.qDown>0})):e.qStackedDataPages[0].qData[0].qSubNodes.length<e.qStackedDataPages[0].qArea.qHeight):i=!0===t.explicitLimitedData,i},getNegativeOrZeroValuesAttribute:function(e,t){return!t.supportNegative&&e.qMeasureInfo.some((function(e){return e.qMin<=0}))},getOnlyNegativeOrZeroValuesAttribute:function(e,t){return!t.supportNegative&&e.qMeasureInfo.every((function(e){return e.qMax<=0&&e.qMax>=e.qMin}))||0===e.qSize.qcy},getOnlyNanDataAttribute:function(e,t){return void 0!==t.explicitOnlyNanData?t.explicitOnlyNanData:e.qMeasureInfo.every((function(e){return e.qMax<e.qMin||"NaN"===e.qMax}))},getDataRangeIncludingZeroAttribute:function(e,t){return!t.supportRangeOverZero&&function(e,t){var r,n,i,o,a,s=t.length;for(e&&(n=!(e.autoMinMax||"min"!==e.minMax&&"minMax"!==e.minMax||null===e.min||Number.isNaN(+e.min)),i=!(e.autoMinMax||"max"!==e.minMax&&"minMax"!==e.minMax||null===e.max||Number.isNaN(+e.max))),o=Number.MAX_VALUE,a=-Number.MAX_VALUE,r=0;r<s;r++)if(o=Math.min(o,t[r].qMin),a=Math.max(a,t[r].qMax),o<=0&&a>=0)return!0;return o=n?e.min:o,a=i?e.max:a,o<=0&&a>=0}(e.measureAxis,e.qHyperCube.qMeasureInfo)},applyAttributes:function(e,t){var r=e||{},n={};return r.supportNegative=void 0===r.supportNegative||r.supportNegative,r.supportRangeOverZero=void 0===r.supportRangeOverZero||r.supportRangeOverZero,wt.DISCLAIMERS.forEach((function(e){n[e.label]=!1})),t&&t.qHyperCube?(n.NoDataExist=this.getNoDataExistAttribute(t.qHyperCube),n.NoDataExist?n:(n.RequireNumericDimension=r.explicitRequireNumericDimension,n.RequireNumericDimension||(n.LimitedData=this.getLimitedDataAttribute(t.qHyperCube,r),n.NegativeOrZeroValues=this.getNegativeOrZeroValuesAttribute(t.qHyperCube,r),n.OnlyNegativeOrZeroValues=this.getOnlyNegativeOrZeroValuesAttribute(t.qHyperCube,r),n.OnlyNanData=this.getOnlyNanDataAttribute(t.qHyperCube,r),n.DataRangeIncludingZero=this.getDataRangeIncludingZeroAttribute(t,r)),n)):n}};function jt(e,t,r){this.disclaimersConfig=e,this.dataAttributes=t,this.supportedDisclaimers=r}function Ct(e,t){return e&&t&&t[e]}function kt(e){this.environment=e,this.clear()}jt.prototype.isValidAndSupported=function(e,t){return Ct(e.label,this.dataAttributes)&&(e.default||Ct(e.label,this.supportedDisclaimers))&&void 0!==t&&e.alignment===t},jt.prototype.isAnyValidDisclaimer=function(e){var t=!1,r=this;return this.disclaimersConfig.forEach((function(n){r.isValidAndSupported(n,e)&&(t=!0)})),t},jt.prototype.getMessage=function(e,t){var r="",n=this;return t&&this.disclaimersConfig.forEach((function(i){n.isValidAndSupported(i,e)&&(r+="".concat(t.get("Object.Disclaimer.".concat(i.label))," "))})),r},kt.ERRORS={SET:"Calling Disclaimer.set() without attributes",DISPLAY:"Calling Disclaimer.display() before attributes are applied"},kt._applyDefaultSupport=function(e,t){var r=e;return r||(r={}),t.forEach((function(e){void 0===r[e.label]&&(r[e.label]=e.default)})),r},kt.prototype.getComponentSettings=function(){var e,t,r,n,i=this.environment.translator,o=q(!0,{},this.vizAttributes.supportedDisclaimers),a=new jt(wt.DISCLAIMERS,this.dataAttributes,o);if(a.isAnyValidDisclaimer(wt.ALIGNMENT.CENTER))r=a.getMessage(wt.ALIGNMENT.CENTER,i),n="center";else{if(!a.isAnyValidDisclaimer(wt.ALIGNMENT.BOTTOM))return;r=a.getMessage(wt.ALIGNMENT.BOTTOM,i),n="bottom"}return{key:"disclaimer",type:"disclaimer",layout:{displayOrder:1e3,dock:n},settings:{label:r,rtl:"rtl"===(null===(e=this.environment)||void 0===e||null===(t=e.options)||void 0===t?void 0:t.direction)}}},kt.prototype.set=function(e){if(this.clear(),!e)throw new Error(kt.ERRORS.SET);this.vizAttributes=e,this.dataAttributes=At.applyAttributes(this.vizAttributes.options,this.vizAttributes.data)},kt.prototype.clear=function(){this.vizAttributes=null,this.dataAttributes=null};var It=Xe.extend({init:function(e,t,r,n,i){this.$element=t,this.environment=r,this.backendApi=n,this._selectionsApi=i,this._on=!1,this._disclaimer=new kt(r),this._dataPaths=["qHyperCube"];var o=this;this.picassoElement=t[0],this.picassoElement.className+=" picasso-chart",this.chartInstance=e.chart({element:this.picassoElement,settings:{components:[St.createComponent("event-area",{mounted:function(e){o.dataAreaElem=e}})]}})},updateEnvironment:function(e){this.environment=e},isRtl:function(){var e;return"rtl"===(null===(e=this.environment.options)||void 0===e?void 0:e.direction)},setDataPaths:function(e){this._dataPaths=e},getData:function(e,t,r){return function(e,t,r){var n,i={qTop:0,qLeft:0,qWidth:t.qSize.qcx,qHeight:1e4/t.qSize.qcx};if(r){var o=r.width||t.qSize.qcx,a=Math.floor(1e4/o);i={qTop:r.top||0,qLeft:r.left||0,qWidth:o,qHeight:r.height?Math.min(r.height,a):a}}else i={qTop:0,qLeft:0,qWidth:t.qSize.qcx,qHeight:1e4/t.qSize.qcx};switch(t.qMode){case"K":n="qStackedDataPages";break;case"S":default:n="qDataPages"}return e.getData([i],null,t).then((function(e){t[n]=e}))}(e,t,r)},hasValidData:function(){return!0},paint:function(){if(this.hasValidData()){var e;this._disclaimer.set(this.getDisclaimerAttributes(this.layout));var t=this._disclaimer.getComponentSettings(),r="center"===(null==t||null===(e=t.layout)||void 0===e?void 0:e.dock),n=this.createChartSettings(this.layout);r?n.components=[t]:t&&n.components.push(t),St.validateComponentKeys(n.components).forEach((function(e){console.error(e)})),this.updateChart(this.layout,n),this._painted=!0}return Promise.resolve()},resize:function(){if(this.layout)return this.paint()},createChartSettings:function(){throw new Error('Subclass must implement "createChartSettings" function')},addSnapshotChartSettings:function(e,t){!this.environment.options.freeResize&&t.snapshotData&&(e.dockLayout.logicalSize={width:t.snapshotData.content.size.w,height:t.snapshotData.content.size.h,preserveAspectRatio:!0})},updateData:function(e){return this._destroyed?Promise.reject():(this.layout=q(!0,{},e),this.layout.permissions=e.permissions,Promise.resolve())},updateChart:function(e,t,r){var n,i,o=null!==(n=null===(i=this.environment.appLayout)||void 0===i?void 0:i.qLocaleInfo)&&void 0!==n?n:{},a=this._dataPaths.map((function(t){return{type:"q",key:t,config:{localeInfo:o},data:ye(e,t.replace(/\//g,"."))}}));this.colorService&&a.push.apply(a,C(this.colorService.getData())),this.chartInstance.update({data:a,settings:t,partialData:r});this.picassoElement.setAttribute("data-state",2)},destroy:function(){this._destroyed=!0,this.off(),this.chartInstance.destroy()},getViewState:function(){return{}},isLassoDisabled:function(){return!0},setSnapshotData:function(e){e.snapshotData||(e.snapshotData={}),e.snapshotData.content={chartData:{},size:{w:this.$element.width(),h:this.$element.height()}}},getDisclaimerAttributes:function(e){return{data:e}}}),Ot={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Nt=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Lt=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Tt=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Rt=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,Pt=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Ft=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,_t=Math.floor,Vt=Math.round,Ht=Xe.extend({init:function(){var e,t,r,n,i,o,a,s,l,u,c,p,d=0,f=0,m=0,h=1;if(this._invalid=!1,arguments[0]instanceof Ht)d=arguments[0]._r,f=arguments[0]._g,m=arguments[0]._b,h=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(c=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p=arguments[0]))d=parseInt(c[1],10),f=parseInt(c[2],10),m=parseInt(c[3],10);else if(c=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p))d=parseInt(c[1],10),f=parseInt(c[2],10),m=parseInt(c[3],10),h=parseFloat(c[4]);else if(c=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(p))d=parseInt(c[1],16),f=parseInt(c[2],16),m=parseInt(c[3],16),h=1;else if(c=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(p))d=parseInt(c[1]+c[1],16),f=parseInt(c[2]+c[2],16),m=parseInt(c[3]+c[3],16),h=1;else if(c=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),n=parseFloat(c[5]),t=(t/=100)<0?0:t>1?1:t,a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(n=(n/=100)<0?0:n>1?1:n)<=.5?2*n*t:(2-2*n)*t)*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=n-.5*o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=Vt(255*d),f=Vt(255*f),m=Vt(255*m),h=1}else if(c=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),n=parseFloat(c[5]),h=parseFloat(c[7]),t=(t/=100)<0?0:t>1?1:t,a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(n=(n/=100)<0?0:n>1?1:n)<=.5?2*n*t:(2-2*n)*t)*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=n-.5*o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=Vt(255*d),f=Vt(255*f),m=Vt(255*m)}else if(c=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),i=parseFloat(c[5]),a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(i=(i/=100)<0?0:i>1?1:i)*(t=(t/=100)<0?0:t>1?1:t))*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=i-o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=Vt(255*d),f=Vt(255*f),m=Vt(255*m),h=1}else Ot[p.toLowerCase()]?(r=p.toLowerCase(),d=Ot[r].r,f=Ot[r].g,m=Ot[r].b,h="number"==typeof Ot[r].a?Ot[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(h=(4278190080&arguments[0])>>>24,h/=255,d=(16711680&arguments[0])>>16,f=(65280&arguments[0])>>8,m=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(d=(16711680&arguments[0])>>16,f=(65280&arguments[0])>>8,m=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(d=arguments[0],f=arguments[1],m=arguments[2],h=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+d+f+m+h)&&(this._invalid=!0),this._r=_t(d),this._g=_t(f),this._b=_t(m),this._a=h,this._spaces={}},isInvalid:function(){return this._invalid},setAlpha:function(e){this._a=e,this._spaces={}},getAlpha:function(){return this._a},toRGB:function(){return this._spaces.rgb||(this._spaces.rgb=Ht.toRGB(this)),this._spaces.rgb},toRGBA:function(){return this._spaces.rgba||(this._spaces.rgba=Ht.toRGBA(this)),this._spaces.rgba},toString:function(){return this._spaces.rgb||(this._spaces.rgb=Ht.toRGB(this)),this._spaces.rgb},toHex:function(){return this._spaces.hex||(this._spaces.hex=Ht.toHex(this)),this._spaces.hex},toHSL:function(e){return this._spaces.hsl||(this._spaces.hsl=Ht.toHSL(this,e)),this._spaces.hsl},toHSLA:function(e){return this._spaces.hsla||(this._spaces.hsla=Ht.toHSLA(this,e)),this._spaces.hsla},toHSV:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")},toHSVComponents:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=Ht.toHSVComponents(this)),this._spaces.hsvComp},toNumber:function(){return this._spaces.num||(this._spaces.num=Ht.toNumber(this)),this._spaces.num},isDark:function(){return this.isInvalid()||this.getLuminance()<125},getLuminance:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi},shiftLuminance:function(e){var t=this.toHSLA(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),n=parseFloat(r[1]),i=parseFloat(r[3]),o=parseFloat(r[5]),a=parseFloat(r[7]);return o+=e,o=Math.max(0,Math.min(o,100)),"hsla(".concat(n,",").concat(i,",").concat(o,",").concat(a,")")},isEqual:function(e){return e instanceof Ht||(e=new Ht(e)),this._r===e._r&&this._g===e._g&&this._b===e._b},blend:function(e,t){var r=_t(this._r+(e._r-this._r)*t),n=_t(this._g+(e._g-this._g)*t),i=_t(this._b+(e._b-this._b)*t),o=_t(this._a+(e._a-this._a)*t);return"rgba(".concat([r,n,i,o].join(","),")")},createShiftedColor:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var t=this.getLuminance(),r=this._g<126?1:1+this._g/512,n=this.shiftLuminance(20*(t*r<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Ht(n)}});Ht.toRGB=function(e){if(e instanceof Ht)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Ht.toNumber(e));var t=(65280&e)>>8,r=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(r,")")},Ht.toRGBA=function(e,t){if(e instanceof Ht)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Ht.toNumber(e));var r=(65280&e)>>8,n=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(r,",").concat(n,",").concat(void 0!==t?t:e._a,")")},Ht.toHex=function(e){var t,r,n;return e instanceof Ht?(t=e._r.toString(16),r=e._g.toString(16),n=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""))):("string"==typeof e&&(e=Ht.toNumber(e)),t=((16711680&e)>>16).toString(16),r=((65280&e)>>8).toString(16),n=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n))},Ht.toHSL=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new Ht(e));var a=e._r/255,s=e._g/255,l=e._b/255,u=Math.max(a,s,l),c=Math.min(a,s,l);if(n=t?.21*a+.72*s+.07*l:(u+c)/2,u===c)r=0,o=0;else{switch(i=u-c,r=n>.5?i/(2-u-c):i/(u+c),u){case a:o=(s-l)/i+(s<l?6:0);break;case s:o=(l-a)/i+2;break;case l:o=(a-s)/i+4}o/=6}return"hsl(".concat(360*o,",").concat(100*r,",").concat(100*n,")")},Ht.toHSLA=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new Ht(e));var a=e._r/255,s=e._g/255,l=e._b/255,u=e._a,c=Math.max(a,s,l),p=Math.min(a,s,l);if(n=t?.21*a+.72*s+.07*l:(c+p)/2,c===p)r=0,o=0;else{switch(i=c-p,r=n>.5?i/(2-c-p):i/(c+p),c){case a:o=(s-l)/i+(s<l?6:0);break;case s:o=(l-a)/i+2;break;case l:o=(a-s)/i+4}o/=6}return"hsla(".concat(360*o,",").concat(100*r,",").concat(100*n,",").concat(u,")")},Ht.toHSVComponents=function(e){var t,r,n=0;"string"==typeof e&&(e=new Ht(e));var i=e._r/255,o=e._g/255,a=e._b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=s;if(s===l)t=0,n=0;else{switch(t=0===(r=s-l)?0:r/u,s){case i:n=(o-a)/r+(o<a?6:0);break;case o:n=(a-i)/r+2;break;case a:n=(i-o)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*u}},Ht.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof Ht)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,r=0,n=0,i=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(r=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(r=parseInt(e[1],16),n=parseInt(e[2],16),i=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(r=parseInt(e[1]+e[1],16),n=parseInt(e[2]+e[2],16),i=parseInt(e[3]+e[3],16))),(r<<16)+(n<<8)+i},Ht.blend=function(e,t,r){var n=(16711680&(e=Ht.toNumber(e)))>>16,i=(65280&e)>>8,o=255&e;return(n+(((16711680&(t=Ht.toNumber(t)))>>16)-n)*r<<16)+(i+(((65280&t)>>8)-i)*r<<8)+(o+((255&t)-o)*r)},Ht.getBlend=function(e,t,r){var n=e._r+(t._r-e._r)*r,i=e._g+(t._g-e._g)*r,o=e._b+(t._b-e._b)*r,a=e._a+(t._a-e._a)*r;return new Ht(n,i,o,a)},Ht.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(Nt.test(e)||Lt.test(e)||Tt.test(e)||Rt.test(e)||Pt.test(e)||Ft.test(e)||Ot[e.toLowerCase()])},Ht.getBestContrast=function(e,t,r){var n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-r.getLuminance())?t:r},Ht.getContrast=function(e,t){if(e&&t){var r=e.getLuminance()/100,n=t.getLuminance()/100;return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}},Ht.isDark=function(){var e={getLuminance:Ht.prototype.getLuminance,isInvalid:Ht.prototype.isInvalid};return Ht.prototype.init.apply(e,[].slice.call(arguments)),Ht.prototype.isDark.call(e)},Ht.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t};var zt={TRANSPARENT_BLACK:"rgba( 0,0,0,0.2 )",TRANSPARENT_WHITE:"rgba( 255,255,255,0.7 )",LIGHT_GREY:"#ccc",DARK_GREY:"#666",BLACK:"#000",WHITE:"#fff",getInverse:function(e){var t=new Ht(e);return 0===t.getAlpha()?this.BLACK:t.isDark()?this.WHITE:this.BLACK},getContrastingGrey:function(e){var t=new Ht(e);return 0===t.getAlpha()?this.DARK_GREY:Ht.getBestContrast(t,new Ht(zt.LIGHT_GREY),new Ht(zt.DARK_GREY))},getBestContrast:function(e,t,r){return Ht.getBestContrast(new Ht(e),new Ht(t),new Ht(r))},getContrastingTransparent:function(e){var t=new Ht(e);return 0===t.getAlpha()||"none"===e?this.TRANSPARENT_BLACK:t.isDark()?this.TRANSPARENT_WHITE:this.TRANSPARENT_BLACK}},Bt=".scrollHandler";function Ut(e,t,r,n,i){if(!e||!t||!r)throw Error("Scroll-handler: Missing input");this._chartInstance=e,this._$chartElement=t,this._getSlicedDataFn=r,this._on=!1,this._itemSize=30,this.options={direction:"vertical"},this._onScrollCallback=n,this._legendKey=i}function Wt(){var e=("horizontal"===this.options.direction?this._$chartElement.width():this._$chartElement.height())||0,t=Math.floor(e/this.getItemSize());this._scrollViewSizeInItem=Math.max(t,1)}function Kt(e){var t,r,n,i,o=(t=e.originalEvent,r=0,n=0,i=0,t.wheelDelta&&(r=t.wheelDelta/60),t.detail&&(r=-t.detail/3),i=r,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(i=0,n=-1*r),void 0!==t.wheelDeltaY&&(i=t.wheelDeltaY/60),void 0!==t.wheelDeltaX&&(n=-1*t.wheelDeltaX/60),{delta:r,deltaX:n,deltaY:i,x:t.pageX,y:t.pageY});if(!function(e,t,r,n){return!(!n||!r.componentsFromPoint(t).some((function(e){return e.settings.key===n}))||(r.component(n).emit(t.delta>0?"prev":"next"),e.preventDefault(),0))}(e,o,this._chartInstance,this._legendKey)&&!this._disabled&&this.getScrollApi()&&(e.preventDefault(),o.delta)){var a=o.delta<0?3:-3;this._scrollApi.move(a)}}function Gt(){if(this._disabled||this._sizeChanged)this._sizeChanged=!1;else{var e=this;this.getViewData().then((function(t){e._on&&!e._disabled&&e._onScrollCallback&&e._onScrollCallback(t,void 0,!0)})).catch((function(e){}))}}Ut.prototype.getScrollApi=function(){this._scrollApi||(this._scrollApi=this._chartInstance.scroll("dimension"));return this._scrollApi},Ut.prototype.setDisabled=function(e){this._disabled=e},Ut.prototype.getDisabled=function(){return this._disabled},Ut.prototype.setItemSize=function(e){this._itemSize!==e&&(this._itemSize=e,Wt.call(this))},Ut.prototype.getItemSize=function(){return this._itemSize},Ut.prototype.getScrollViewSizeInItem=function(){this._scrollViewSizeInItem||Wt.call(this);return this._scrollViewSizeInItem},Ut.prototype.on=function(){if(this._on)return;this.getScrollApi()&&(this._scrollApi.removeAllListeners(),this._scrollApi.on("update",Gt.bind(this)));this._$chartElement.on("mousewheel".concat(Bt," DOMMouseScroll").concat(Bt),Kt.bind(this)),this._$chartElement.on("touchstart".concat(Bt),(function(e){e.preventDefault()})),this._on=!0},Ut.prototype.isOn=function(){return this._on},Ut.prototype.off=function(){if(!this._on)return;this.getScrollApi()&&this._scrollApi.removeAllListeners();this._$chartElement.off(Bt),this._on=!1},Ut.prototype.updateViewState=function(e){Wt.call(this),this.getScrollApi()&&this._scrollApi.update({viewSize:this._scrollViewSizeInItem,max:e})},Ut.prototype.onResize=function(){this._sizeChanged=!0,Wt.call(this),this.getScrollApi()&&this._scrollApi.update({viewSize:this._scrollViewSizeInItem})},Ut.prototype.isDataSizeChanged=function(e,t){return Math.min(this.getScrollViewSizeInItem(),t)!==e},Ut.prototype.resetScroll=function(){this.getScrollApi()&&this._scrollApi.moveTo(0)},Ut.prototype.getViewData=function(){var e=0,t=0;if(this.getScrollApi()){var r=this._scrollApi.getState();e=Math.round(r.start),t=r.viewSize}return this._getSlicedDataFn(e,t)},Ut.prototype.setOptions=function(e){this.options.direction!==e.direction&&(this._scrollViewSizeInItem=void 0);this.options=e},Ut.prototype.getScrollState=function(){return this.getScrollApi().getState().start},Ut.prototype.setScrollState=function(e){this.getScrollApi().moveTo(e)};var $t={isOnComponentForRange:function(e,t,r){return!!e&&!!r.chart.componentsFromPoint({x:e.center.x,y:e.center.y}).filter((function(e){return-1!==t.indexOf(e.settings.key)}))[0]},isOnComponentForLasso:function(e,t,r){return e&&r.chart.componentsFromPoint({x:e.center.x,y:e.center.y}).filter((function(e){return e.settings.key===t.keys.componentKey}))[0]},isOnComponentForNavBtn:function(e,t,r){return r.chart.componentsFromPoint(e.center).some((function(e){return e.settings.key===t}))}};var Yt={callLassoGesture:function(e,t,r){return{type:"Pan",options:{direction:x.DIRECTION_ALL,threshold:1,enable:function(n,i){if(e.lassoing)return t.isSelectionEnabled();var o,a=$t.isOnComponentForLasso(i,r,this);return t.isSelectionEnabled()&&i&&((o=r.handlers).selectionHandler.lassoState()&&!o.selectionHandler.allFieldsLocked()||e.lassoing)&&a},event:"lasso"},recognizeWith:r.handlers.scrollHandler?"drag":null,events:{lassostart:function(n){$t.isOnComponentForLasso(n,r,this)&&(t.switchTo("lasso",this.chart,n),e.lassoing=!0,r.handlers.selectionHandler.pauseEngineCalls(r.keys.lassoBrushKey),n.clientX=n.pointers[0].clientX,n.clientY=n.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoStart",n))},lassomove:function(r){e.lassoing&&(r.clientX=r.pointers[0].clientX,r.clientY=r.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoMove",r))},lassoend:function(n){e.lassoing&&(n.clientX=n.pointers[0].clientX,n.clientY=n.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoEnd",n),r.handlers.selectionHandler.resumeEngineCalls(r.keys.lassoBrushKey,!0),e.lassoing=!1)},lassocancel:function(n){e.lassoing=!1,t.doEmit(this.chart,"lasso","lassoCancel",n),r.handlers.selectionHandler.resumeEngineCalls(r.keys.lassoBrushKey,!1)}}}}};var Jt={callMeasureRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?x.DIRECTION_HORIZONTAL:x.DIRECTION_VERTICAL,event:"measurerange",enable:function(i,o){if(!r.rangeSelStatus.isOpenMea)return!1;if(e.measureSelecting)return t.isSelectionEnabled();var a="measurerange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=$t.isOnComponentForRange(o,a,this);return e.measureSelecting=t.isSelectionEnabled()&&!!o&&!!s,e.measureSelecting&&!!r.keys.measureRangeBrushKey}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{measurerangestart:function(i){var o="measurerange"===r.active.gesture?[n,r.keys.componentKey]:[n];$t.isOnComponentForRange(i,o,this)&&(e.measureSelecting=!0,t.switchTo("measurerange",this.chart,i),t.doEmit(this.chart,"rangeMeasure","rangeStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.measureRangeBrushKey))},measurerangemove:function(r){e.measureSelecting&&t.doEmit(this.chart,"rangeMeasure","rangeMove",r)},measurerangeend:function(n){e.measureSelecting&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.measureRangeBrushKey,!0),t.doEmit(this.chart,"rangeMeasure","rangeEnd",n),e.measureSelecting=!1)},measurerangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.measureRangeBrushKey,!1),e.measureSelecting=!1}}}}};function Xt(e,t){return"x-axis"===e?"horizontal"===t?x.DIRECTION_VERTICAL:x.DIRECTION_HORIZONTAL:"horizontal"===t?x.DIRECTION_HORIZONTAL:x.DIRECTION_VERTICAL}var Qt={callAreaRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"measurerange";return{type:"Pan",options:{direction:Xt(n,r.isHorizontal),event:"arearange",enable:function(i,o){if(!r.rangeSelStatus.isOpenDim)return!1;if(e.minoring)return t.isSelectionEnabled();var a="arearange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=$t.isOnComponentForRange(o,a,this);return e.minoring=t.isSelectionEnabled()&&!!o&&!!s,e.minoring}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{arearangestart:function(i){var o="arearange"===r.active.gesture?[n,r.keys.componentKey]:[n];$t.isOnComponentForRange(i,o,this)&&(e.minoring=!0,t.switchTo("arearange",this.chart,i),t.doEmit(this.chart,"rangeMinor","areaStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.areaBrushKey))},arearangemove:function(n){e.minoring&&(this.chart.brush(r.keys.areaBrushKey).clear(),t.doEmit(this.chart,"rangeMinor","areaMove",n))},arearangeend:function(n){e.minoring&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.areaBrushKey,!0),t.doEmit(this.chart,"rangeMinor","areaEnd",n),e.minoring=!1)},arearangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.areaBrushKey,!1),e.minoring=!1}}}}};var Zt={callDimensionRangeGesture:function(e,t,r,n){var i=r.keys.measureRangeBrushKey?"measurerange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?x.DIRECTION_VERTICAL:x.DIRECTION_HORIZONTAL,event:"majorrange",enable:function(i,o){if(!r.rangeSelStatus.isOpenDim)return!1;if(e.majoring)return t.isSelectionEnabled();var a="majorrange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=$t.isOnComponentForRange(o,a,this);return e.majoring=t.isSelectionEnabled()&&!!o&&!!s,e.majoring&&!!r.keys.dimRangeBrushKey}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{majorrangestart:function(i){var o="majorrange"===r.active.gesture?[n,r.keys.componentKey]:[n];$t.isOnComponentForRange(i,o,this)&&(e.majoring=!0,t.switchTo("majorrange",this.chart,i),t.doEmit(this.chart,"rangeDim","rangeStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.dimRangeBrushKey))},majorrangemove:function(r){e.majoring&&t.doEmit(this.chart,"rangeDim","rangeMove",r)},majorrangeend:function(n){e.majoring&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.dimRangeBrushKey,!0),t.doEmit(this.chart,"rangeDim","rangeEnd",n),e.majoring=!1)},majorrangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.dimRangeBrushKey,!1),e.majoring=!1}}}}};var er={callDragGesture:function(e,t,r,n,i){var o={};return{type:"Pan",options:{direction:r.isHorizontal?x.DIRECTION_VERTICAL:x.DIRECTION_HORIZONTAL,event:"drag",enable:function(n,i){return e.dragging?t.isNavigationEnabled():(e.dragging=t.isNavigationEnabled()&&!!i&&!!this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((function(e){return e.settings.key===r.keys.componentKey}))[0],e.dragging)}},requireFailure:n?"lasso ".concat(t.getBrushConfig()):"",events:{dragstart:function(e){o={x:e.deltaX,y:e.deltaY};var t=-(r.isHorizontal?e.deltaY:e.deltaX)/r.handlers.scrollHandler.getItemSize();!r.isHorizontal&&i&&(t=-t),r.handlers.scrollHandler.getScrollApi().move(t)},dragmove:function(t){if(e.dragging){var n=-(r.isHorizontal?t.deltaY-o.y:t.deltaX-o.x)/r.handlers.scrollHandler.getItemSize();!r.isHorizontal&&i&&(n=-n),r.handlers.scrollHandler.getScrollApi().move(n),o={x:t.deltaX,y:t.deltaY}}},dragend:function(){e.dragging&&(e.dragging=!1)},dragcancel:function(){e.dragging=!1}}}}};var tr={callNavBtnGesture:function(e,t){return{type:"Tap",options:{event:"navBtnTap",enable:function(r,n){return!(!n||!e())&&$t.isOnComponentForNavBtn(n,t,this)}},events:{navBtnTap:function(e){this.chart.componentsFromPoint(e.center).forEach((function(t){var r=e.target,n=r?r.getAttribute("data-action"):"";if(n)return t.emit(n)}))}}}}};var rr={create:function(e,t,r,n,i){var o={};t=t||"vertical";var a=n.lassoBrushKey||"select",s=n.dimRangeBrushKey||null,l=n.measureRangeBrushKey||null,u=n.areaBrushKey||null,c=n.legendBrushKey||null,p=!!e.selectionHandler&&e.selectionHandler.isOn(),d={dragging:!1,lassoing:!1,majoring:!1,minoring:!1,measureSelecting:!1},f={gesture:"",type:""},m="horizontal"===t,h=m?"y-axis":"x-axis",g=m?"x-axis":"y-axis";function b(e,t,r){if(f.gesture!==e){var n=a,i=t||f.chart;switch(f.gesture){case"majorrange":y(i,"rangeDim","rangeClear",r),n=s;break;case"measurerange":y(i,"rangeMeasure","rangeClear",r),n=l;break;case"arearange":y(i,"rangeMinor","areaClear",r),n=u}f.gesture=e;var o="range"===e?"range":"item";f.type&&f.type!==o&&i.brush(n).clear(),f.chart=t,f.type=o}}function y(e,t,r,n){if(e){var i=e.component(t);i&&i.emit(r,n)}}var v=[],x={isSelectionEnabled:function(){return e.selectionHandler&&e.selectionHandler.isOn()},isNavigationEnabled:function(){return e.scrollHandler&&e.scrollHandler.isOn()},doEmit:y,switchTo:b,getBrushConfig:function(){return s?l?"majorrange measurerange":"majorrange arearange":"measurerange arearange"}},q={handlers:e,keys:n,isHorizontal:m,active:f,rangeSelStatus:i};function D(){b("none"),d.majoring=!1,d.measureSelecting=!1,d.minoring=!1}return p&&((v=[{type:"Tap",options:{event:"rangeClearTap"},events:{rangeClearTap:function(e){b("none",this.chart,e),d.majoring=!1,d.measureSelecting=!1,d.minoring=!1}}}]).unshift(tr.callNavBtnGesture(x.isNavigationEnabled,c)),v.push(Yt.callLassoGesture(d,x,q)),s?l?(v.push(Zt.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(Jt.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(l,{id:"rangeMeasure",clear:"rangeClear"})):(v.push(Zt.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(Qt.callAreaRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(u,{id:"rangeMinor",clear:"areaClear"})):(v.push(Jt.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(l,{id:"rangeMeasure",clear:"rangeClear"}),v.push(Qt.callAreaRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(u,{id:"rangeMinor",clear:"areaClear"}))),e.scrollHandler&&(v.push(er.callDragGesture(d,x,q,p,r)),e.scrollHandler.getScrollApi().on("update",D)),o.gestures=v,o.destroy=function(){e.scrollHandler&&e.scrollHandler.getScrollApi().removeListener("update",D)},o}};function nr(e,t,r,n,i){var o=!1;n=n||"tooltip",r=r||["self"];var a=e.brush(n),s={};function l(){o&&e.component(i).emit("hide");o=!1}return s.isOpen=function(){return o},s.closeTooltip=l,s.update=function(){var s=a.brushes(),u=e.getAffectedShapes(n,"and",r,t);s.length>=1?(o=!0,function(t){o=!0;var r={nodes:t};e.component(i).emit("show",{},r)}(u)):l()},s.toggleInterceptor=function(e){if(r.length>1){var t={},n=[];return e.forEach((function(e){t[e.key]||(t[e.key]={}),t[e.key][e.value]||(t[e.key][e.value]=!0,n.push(e))})),n}return e},s}var ir=function(){return nr.apply(void 0,arguments)},or={formatMeasureValue:function(e,t){if(e.raw().isCustomFormatted)return e.formatter()(t.value.qText);var r=void 0!==t.value.qNum?t.value.qNum:t.value.qValue;return e.formatter()(r)}};var ar=function(e){return function(t){var r=t.h,n=t.data,i=t.style,o=function(e,t){for(var r=e.chartInstance.dataset(e.dataPath),n=[],i=t.length-5,o=Math.min(5,t.length),a=function(i){var o=t[i],a={rows:[]};if(e.labelData){for(var s=[],l=e.labelData,u=!1,c=0;c<l.length;c++){var p=o.data[l[c]].value;if(-2===p.qElemNo||-2===p.qElemNumber){u=!0;break}s.push(o.data[l[c]].value.qText)}if(u)return{v:void 0};a.header=e.headerResolver(s),a.rows=e.measureRows.map((function(t){var n=o.data;return e.rowResolver(r.field(n[t].source.field),n[t],n)})).filter((function(e){return!!e}));var d=function(e,t){var r,n,i,o=t.data.color,a=null===(r=e.colorService)||void 0===r||null===(n=r.getSettings)||void 0===n?void 0:n.call(r);if(!a||"color"===a.type||!o||!a.fieldType)return;var s=[];e.data.forEach((function(e){var r=t.data[e];r&&s.push(r.value)}));var l=function(e){for(var t=-1,r=0;r<e.length;r++)-3===e[r]&&(t=r);return t}(s),u=e.translator,c=a.label,p=null===(i=t.attrs)||void 0===i?void 0:i.fill,d=-1!==l?u.get("properties.dimensionLimits.others"):o.label;return{color:p,label:c,value:d}}(e,o);d&&a.rows.unshift(d),n.push(a)}},s=0;s<o;s++){var l=a(s);if("object"===S(l))return l.v}i>0&&(n.numberInExcess=i);return n.rowCount=n[0]?n.length*n[0].rows.length:0,n}(e,n),a={h:r,style:i,rtl:"rtl"===e.direction,translator:e.translator};return e.renderer(a,o)}};var sr="#".concat("dist-flow-tooltip");function lr(){if(!document.querySelector(sr)){var e=document.createElement("div");e.id="dist-flow-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function ur(e){var t=e.key,r=void 0===t?"tooltip":t,n=e.rtl,i=e.fontFamily,o=e.filter;return{show:!0,key:r,type:"tooltip",layout:{displayOrder:3},beforeMount:function(){lr()},beforeUpdate:function(){lr()},destroyed:function(){var e;(e=document.querySelector(sr))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(sr)},content:e.content,filter:o,extract:function(e){return e.node},direction:n?"rtl":"ltr",placement:"bounds"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:i,"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}var cr=lt.detectTextDirection;var pr={tooltipKey:"tooltip",data:[""],contexts:["tooltip"],headerResolver:function(e){return e.join(", ")},rowResolver:function(e,t){return{value:or.formatMeasureValue(e,t),label:e.title()}},direction:"ltr",renderer:function(e,t){var r=e.h,n=e.style,i=e.translator,o=e.rtl,a=[],s=o?"right":"left";if(t.forEach((function(e){if(e.header){var t=M(M({},n.cell),{},{textAlign:s,fontWeight:"bold",direction:cr(e.header)});a.push(r("tr",null,r("td",{style:t,colSpan:2},e.header)))}e.rows.forEach((function(e){var t=e.value;if(e.color){var i={display:"inline-block",width:10,height:10,"background-color":e.color,margin:"0 8px"},l=r("div",{style:i});t=o?[e.value,l]:[l,e.value]}var u=o?[":",e.label]:[e.label,":"],c=M(M({},n.cell),{},{textAlign:s,direction:cr(e.label)}),p=M(M({},n.cell),{},{textAlign:o?"left":"right",direction:cr(e.value)});a.push(r("tr",null,r("td",{style:c},u),r("td",{style:p},t)))}))})),t.numberInExcess){var l=i.get("Object.ChartTooltip.NMore",t.numberInExcess),u=M(M({},n.cell),{},{textAlign:s,direction:cr(l)});a.push(r("tr",null,r("td",{style:u,colSpan:2},l)))}return a}};function dr(e,t,r){if(!e)throw Error("Tooltips-handler: Missing input");var n={},i=!1,o={};function a(e){e.listeners.update=function(t,r){e.action.update(t,r,e)},e.listeners.end=function(){e.action.closeTooltip()},e.brush.on(e.treatAsDesktop?"update":"set-values",e.listeners.update),e.brush.on("end",e.listeners.end),e.brush.intercept("set-values",e.action.toggleInterceptor)}function s(){Object.keys(n).forEach((function(e){l(n[e])}))}function l(e){e.brush.removeListener(e.treatAsDesktop?"update":"set-values",e.listeners.update),e.brush.removeListener("end",e.listeners.end),e.brush.removeInterceptor("set-values",e.action.toggleInterceptor)}function u(){Object.keys(n).forEach((function(e){n[e].action.closeTooltip()}))}function c(){for(var e in u(),n)n[e].brush.clear()}return o.setUp=function(t){var o=q(!0,{},pr,t);if(!o.componentKey)throw Error("Tooltips-handler.setUp: Missing required input");n[o.contexts[0]]&&i&&l(n[o.contexts[0]]);var s=function(e,t){return{brush:t.brush(e.contexts[0]),action:ir(t,e.componentKey,e.data,e.contexts[0],e.tooltipKey),listeners:{},chartInstance:t,dataPath:e.dataPath,renderer:e.renderer,data:e.data,headerResolver:e.headerResolver,rowResolver:e.rowResolver,colorService:e.colorService,attrDimPath:e.attrDimPath,measureRows:e.measureRows,labelData:e.labelData,filterShapes:e.filterShapes,direction:e.environment.options.direction,theme:e.environment.theme,translator:e.environment.translator,treatAsDesktop:"touch"!==e.environment.deviceType}}(o,e);n[o.contexts[0]]=s,i&&a(s);var u,c=ur({key:o.tooltipKey,rtl:"rtl"===s.direction,fontFamily:s.theme.getStyle(r,"tooltip","fontFamily"),filter:(u=s.filterShapes,function(e){return u?u(e):function(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&"container"!==e.type&&t.push(e)})),t}(e)}),content:ar(s,o.dataPath)});return o.chartBuilder.getSettings().components.push(c),{trigger:{on:s.treatAsDesktop?"over":"tap",action:"set",contexts:o.contexts,data:o.data,globalPropagation:"stop"},consume:o.contexts.map((function(e){return{context:e}})),component:c}},o.tearDown=function(){i&&s(),n=[]},o.closeTooltip=u,o.isOn=function(){return i},o.on=function(){i||(i=!0,Object.keys(n).forEach((function(e){a(n[e])})),t&&t.on("mouseleave",c))},o.off=function(){i&&(i=!1,s(),t&&t.off("mouseleave",c),u())},o}var fr=function(e,t,r){return dr(e,t,r)};function mr(e){return(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/11}function hr(e){if(!e)return{latin:0,cjk:0};var t=e.match(/[\u4E00-\u9FFF]/g),r=e.match(/[\u3040-\u309F]/g),n=e.match(/[\u30A0-\u30FF]/g),i=(t=t?t.length:0)+(r=r?r.length:0)+(n=n?n.length:0);return{latin:e.length-i,cjk:i}}function gr(e,t){var r={latin:0,cjk:0};void 0===t?e.forEach((function(e){var t=hr(e.qText);r.latin+=t.latin,r.cjk+=t.cjk})):e.forEach((function(e){var n=hr(e[t].qText);r.latin+=n.latin,r.cjk+=n.cjk}));var n=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/n,r.cjkRatio=r.cjk/n,r}function br(e,t,r){return e*(e<=24?t:r)}var yr={endsWith:function(e,t){return-1!==e.indexOf(t,e.length-t.length)},startsWith:function(e,t){return 0===e.indexOf(t)},contains:function(e,t){if(!e)throw new Error("Haystack is undefined.");if(!t)throw new Error("Needle is undefined.");return-1!==e.indexOf(t)},stringWidthOverMWidth:mr,getCharacterRatios:hr,getTotalCharacterRatios:gr,getAdjustedMaxGlyphCount:function(e,t,r){var n=gr(t,r),i=n.latinRatio*e,o=n.cjkRatio*e;return Math.ceil(mr(i)+1.0909090909090908*o)},estimateLatinLabelWidth:br,estimateLabelWidth:function(e,t,r,n,i){return e*r+br(t,n,i)}};var vr={generateHyperCube:function(e,t){var r=e.qHyperCube.qMeasureInfo,n=e.qHyperCube.qDataPages[0].qMatrix,i=r.length;if(i){for(var o,a,s=Ke.getColorForPositiveValue(e,t),l=Ke.getColorForNegativeValue(e,t),u=Ke.getColorForSubtotal(e,t),c=function(e){return"".concat(e)},p=[],d=0,f=0,m=-Number.MAX_VALUE,h=Number.MAX_VALUE,g=-Number.MAX_VALUE,b=Number.MAX_VALUE,y=0,v=0;v<i;v++)a=Number.isNaN(+n[0][v].qNum)?0:n[0][v].qNum,r[v].valueType!==Ke.valueTypes.SUBTOTAL?(o=(d=f)<(f+=a*(r[v].valueType===Ke.valueTypes.INVERSE?-1:1))?s:l,p.push([{qText:r[v].qFallbackTitle,qElemNumber:y++},{qText:o},{qNum:d},{qNum:f},{qNum:f-d,qText:n[0][v].qText}]),r[v].subtotal&&r[v].subtotal.enable&&p.push([{qText:r[v].subtotal.label||"",qElemNumber:y++},{qText:u},{qNum:0},{qNum:f},{qNum:f,qText:c(f)}])):(d=0,f=a,p.push([{qText:r[v].qFallbackTitle,qElemNumber:y++},{qText:u},{qNum:d},{qNum:f},{qNum:f-d,qText:n[0][v].qText}])),m=Math.max(m,d),h=Math.min(h,d),g=Math.max(g,f),b=Math.min(b,f);var x=function(e){return e.qHyperCube.qMeasureInfo[0].qNumFormat}(e),q=e.qHyperCube.qMeasureInfo[0].qIsAutoFormat,D=e.qDef.isCustomFormatted,M={qHyperCube:{qMode:"S",qDataPages:[{qArea:{qTop:0,qLeft:0,qWidth:5,qHeight:p.length},qMatrix:p}],qDimensionInfo:[{qStateCounts:{}},{qStateCounts:{}}],qMeasureInfo:[{qMin:h,qMax:m,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D},{qMin:b,qMax:g,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D},{qMin:b,qMax:g,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D}]}};e.generatedMatrix=p,e.generated=M}},generateSlicedHyperCube:function(e,t,r){e.generated.qHyperCube.qDataPages=[{qArea:{qTop:t,qLeft:0,qWidth:5,qHeight:r},qMatrix:e.generatedMatrix.slice(t,t+r)}]},getGeneratedDimensionPath:function(e){return"qDimensionInfo/".concat(e)},getGeneratedMeasurePath:function(e){return"qMeasureInfo/".concat(e)}};function xr(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var qr,Dr,Mr=(1===(qr=xr).length&&(Dr=qr,qr=function(e,t){return xr(Dr(e),t)}),{left:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;qr(e[i],t)<0?r=i+1:n=i}return r},right:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;qr(e[i],t)>0?n=i:r=i+1}return r}}).right,Sr=Math.sqrt(50),Er=Math.sqrt(10),wr=Math.sqrt(2);function Ar(e,t,r){var n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,i);return i>=0?(o>=Sr?10:o>=Er?5:o>=wr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Sr?10:o>=Er?5:o>=wr?2:1)}function jr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Cr(){}function kr(e,t){var r=new Cr;if(e instanceof Cr)e.each((function(e,t){r.set(t,e)}));else if(Array.isArray(e)){var n,i=-1,o=e.length;if(null==t)for(;++i<o;)r.set(i,e[i]);else for(;++i<o;)r.set(t(n=e[i],i,e),n)}else if(e)for(var a in e)r.set(a,e[a]);return r}function Ir(){}Cr.prototype=kr.prototype={constructor:Cr,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Or=kr.prototype;Ir.prototype={constructor:Ir,has:Or.has,add:function(e){return this["$"+(e+="")]=e,this},remove:Or.remove,clear:Or.clear,values:Or.keys,size:Or.size,empty:Or.empty,each:Or.each};var Nr=Array.prototype,Lr=Nr.map,Tr=Nr.slice;function Rr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Pr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Fr(){}var _r=1/.7,Vr="\\s*([+-]?\\d+)\\s*",Hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",zr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Br=/^#([0-9a-f]{3,8})$/,Ur=new RegExp("^rgb\\("+[Vr,Vr,Vr]+"\\)$"),Wr=new RegExp("^rgb\\("+[zr,zr,zr]+"\\)$"),Kr=new RegExp("^rgba\\("+[Vr,Vr,Vr,Hr]+"\\)$"),Gr=new RegExp("^rgba\\("+[zr,zr,zr,Hr]+"\\)$"),$r=new RegExp("^hsl\\("+[Hr,zr,zr]+"\\)$"),Yr=new RegExp("^hsla\\("+[Hr,zr,zr,Hr]+"\\)$"),Jr={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 Xr(){return this.rgb().formatHex()}function Qr(){return this.rgb().formatRgb()}function Zr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Br.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?en(t):3===r?new on(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?tn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?tn(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=Ur.exec(e))?new on(t[1],t[2],t[3],1):(t=Wr.exec(e))?new on(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Kr.exec(e))?tn(t[1],t[2],t[3],t[4]):(t=Gr.exec(e))?tn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$r.exec(e))?un(t[1],t[2]/100,t[3]/100,1):(t=Yr.exec(e))?un(t[1],t[2]/100,t[3]/100,t[4]):Jr.hasOwnProperty(e)?en(Jr[e]):"transparent"===e?new on(NaN,NaN,NaN,0):null}function en(e){return new on(e>>16&255,e>>8&255,255&e,1)}function tn(e,t,r,n){return n<=0&&(e=t=r=NaN),new on(e,t,r,n)}function rn(e){return e instanceof Fr||(e=Zr(e)),e?new on((e=e.rgb()).r,e.g,e.b,e.opacity):new on}function nn(e,t,r,n){return 1===arguments.length?rn(e):new on(e,t,r,null==n?1:n)}function on(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function an(){return"#"+ln(this.r)+ln(this.g)+ln(this.b)}function sn(){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+")")}function ln(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function un(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pn(e,t,r,n)}function cn(e){if(e instanceof pn)return new pn(e.h,e.s,e.l,e.opacity);if(e instanceof Fr||(e=Zr(e)),!e)return new pn;if(e instanceof pn)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new pn(a,s,l,e.opacity)}function pn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function dn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function fn(e){return function(){return e}}function mn(e){return 1==(e=+e)?hn:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):fn(isNaN(t)?r:t)}}function hn(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):fn(isNaN(e)?t:e)}Rr(Fr,Zr,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Xr,formatHex:Xr,formatHsl:function(){return cn(this).formatHsl()},formatRgb:Qr,toString:Qr}),Rr(on,nn,Pr(Fr,{brighter:function(e){return e=null==e?_r:Math.pow(_r,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:an,formatHex:an,formatRgb:sn,toString:sn})),Rr(pn,(function(e,t,r,n){return 1===arguments.length?cn(e):new pn(e,t,r,null==n?1:n)}),Pr(Fr,{brighter:function(e){return e=null==e?_r:Math.pow(_r,e),new pn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new pn(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new on(dn(e>=240?e-240:e+120,i,n),dn(e,i,n),dn(e<120?e+240:e-120,i,n),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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var gn=function e(t){var r=mn(t);function n(e,t){var n=r((e=nn(e)).r,(t=nn(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=hn(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function bn(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function yn(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=En(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function vn(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function qn(e,t){var r,n={},i={};for(r in null!==e&&"object"===S(e)||(e={}),null!==t&&"object"===S(t)||(t={}),t)r in e?n[r]=En(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var Dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mn=new RegExp(Dn.source,"g");function Sn(e,t){var r,n,i,o=Dn.lastIndex=Mn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(r=Dn.exec(e))&&(n=Mn.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:xn(r,n)})),o=Mn.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var r,n=0;n<t;++n)s[(r=l[n]).i]=r.x(e);return s.join("")})}function En(e,t){var r,n,i=S(t);return null==t||"boolean"===i?fn(t):("number"===i?xn:"string"===i?(r=Zr(t))?(t=r,gn):Sn:t instanceof Zr?gn:t instanceof Date?vn:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?yn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qn:xn:bn))(e,t)}function wn(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function An(e){return+e}var jn=[0,1];function Cn(e){return e}function kn(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function In(e){var t,r=e[0],n=e[e.length-1];return r>n&&(t=r,r=n,n=t),function(e){return Math.max(r,Math.min(n,e))}}function On(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=kn(i,n),o=r(a,o)):(n=kn(n,i),o=r(o,a)),function(e){return o(n(e))}}function Nn(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=kn(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=Mr(e,t,1,n)-1;return o[r](i[r](t))}}function Ln(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Tn(e,t){return function(){var e,t,r,n,i,o,a=jn,s=jn,l=En,u=Cn;function c(){return n=Math.min(a.length,s.length)>2?Nn:On,i=o=null,p}function p(t){return isNaN(t=+t)?r:(i||(i=n(a.map(e),s,l)))(e(u(t)))}return p.invert=function(r){return u(t((o||(o=n(s,a.map(e),xn)))(r)))},p.domain=function(e){return arguments.length?(a=Lr.call(e,An),u===Cn||(u=In(a)),c()):a.slice()},p.range=function(e){return arguments.length?(s=Tr.call(e),c()):s.slice()},p.rangeRound=function(e){return s=Tr.call(e),l=wn,c()},p.clamp=function(e){return arguments.length?(u=e?In(a):Cn,p):u!==Cn},p.interpolate=function(e){return arguments.length?(l=e,c()):l},p.unknown=function(e){return arguments.length?(r=e,p):r},function(r,n){return e=r,t=n,c()}}()(e,t)}function Rn(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Pn(e){return(e=Rn(Math.abs(e)))?e[1]:NaN}var Fn,_n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vn(e){if(!(t=_n.exec(e)))throw new Error("invalid format: "+e);var t;return new Hn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Hn(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function zn(e,t){var r=Rn(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Vn.prototype=Hn.prototype,Hn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Bn={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zn(100*e,t)},r:zn,s:function(e,t){var r=Rn(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Fn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Rn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Un(e){return e}var Wn,Kn,Gn,$n=Array.prototype.map,Yn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Jn(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?Un:(t=$n.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Un:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}($n.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=Vn(e)).fill,r=e.align,p=e.sign,d=e.symbol,f=e.zero,m=e.width,h=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(h=!0,y="g"):Bn[y]||(void 0===g&&(g=12),b=!0,y="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var v="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===d?o:/[%p]/.test(y)?l:"",q=Bn[y],D=/[defgprs%]/.test(y);function M(e){var i,o,l,d=v,M=x;if("c"===y)M=q(e)+M,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:q(Math.abs(e),g),b&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==p&&(S=!1),d=(S?"("===p?p:u:"-"===p||"("===p?"":p)+d,M=("s"===y?Yn[8+Fn/3]:"")+M+(S&&"("===p?")":""),D)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){M=(46===l?a+e.slice(i+1):e.slice(i))+M,e=e.slice(0,i);break}}h&&!f&&(e=n(e,1/0));var E=d.length+e.length+M.length,w=E<m?new Array(m-E+1).join(t):"";switch(h&&f&&(e=n(w+e,w.length?m-M.length:1/0),w=""),r){case"<":e=d+e+M+w;break;case"=":e=d+w+e+M;break;case"^":e=w.slice(0,E=w.length>>1)+d+e+M+w.slice(E);break;default:e=w+d+e+M}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return e+""},M}return{format:p,formatPrefix:function(e,t){var r=p(((e=Vn(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(Pn(t)/3))),i=Math.pow(10,-n),o=Yn[8+n/3];return function(e){return r(i*e)+o}}}}function Xn(e,t,r,n){var i,o=function(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=Sr?i*=10:o>=Er?i*=5:o>=wr&&(i*=2),t<e?-i:i}(e,t,r);switch((n=Vn(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Pn(t)/3)))-Pn(Math.abs(e)))}(o,a))||(n.precision=i),Gn(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pn(t)-Pn(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-Pn(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return Kn(n)}function Qn(e){var t=e.domain;return e.ticks=function(e){var r=t();return function(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t<e)&&(i=e,e=t,t=i),0===(a=Ar(e,t,r))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return n&&o.reverse(),o}(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Xn(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(n=s,s=l,l=n,n=o,o=a,a=n),(n=Ar(s,l,r))>0?n=Ar(s=Math.floor(s/n)*n,l=Math.ceil(l/n)*n,r):n<0&&(n=Ar(s=Math.ceil(s*n)/n,l=Math.floor(l*n)/n,r)),n>0?(i[o]=Math.floor(s/n)*n,i[a]=Math.ceil(l/n)*n,t(i)):n<0&&(i[o]=Math.ceil(s*n)/n,i[a]=Math.floor(l*n)/n,t(i)),e},e}function Zn(){var e=Tn(Cn,Cn);return e.copy=function(){return Ln(e,Zn())},jr.apply(e,arguments),Qn(e)}Wn=Jn({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Kn=Wn.format,Gn=Wn.formatPrefix;var ei={getMinorTicks:function(e){for(var t=e.majorTicks,r=e.minorTickCount,n=[],i=0;i<t.length-1;i++)for(var o=t[i],a=(t[i+1]-o)/(r+1),s=1;s<=r;s++)n.push(o+a*s);return n},adjustTicks:function(e){var t=e.ticks,r=e.majorTicks,n=e.minorTicks,i=e.autoMinMax,o=e.minMax,a=e.min,s=e.max,l=n[0]-r[0],u=r[0]-a;u>l&&t.unshift({value:r[0]-l,isMinor:!0});var c=s-r[r.length-1];return c>l&&t.push({value:r[r.length-1]+l,isMinor:!0}),i||(("min"===o||"minMax"===o)&&u>0&&t.unshift({value:a,isMinor:!1}),("max"===o||"minMax"===o)&&c>0&&t.push({value:s,isMinor:!1})),t},getTicks:function(e){var t=e.layout,r=e.height,n=t.measureAxis,i=n.autoMinMax,o=n.minMax,a=n.spacing,s=Math.min.apply(Math,C(t.generated.qHyperCube.qMeasureInfo.map((function(e){return e.qMin})))),l=Math.max.apply(Math,C(t.generated.qHyperCube.qMeasureInfo.map((function(e){return e.qMax}))));if(!i)switch(o){case"min":s=t.measureAxis.min;break;case"max":l=t.measureAxis.max;break;case"minMax":var u=t.measureAxis;s=u.min,l=u.max}var c=100*a,p=Math.max(1,Math.round(r/c)),d=Zn().domain([s,l]).ticks(p),f=ei.getMinorTicks({majorTicks:d,minorTickCount:1}),m=[].concat(C(d.map((function(e){return{value:e,isMinor:!1}}))),C(f.map((function(e){return{value:e,isMinor:!0}})))).sort((function(e,t){return e.value-t.value}));return ei.adjustTicks({ticks:m,majorTicks:d,minorTicks:f,autoMinMax:i,minMax:o,min:s,max:l})}},ti=Ke.chartID;function ri(e){this._scrollHandler.setDisabled(!!e)}function ni(e){var t=-Number.MAX_VALUE;return e.qHyperCube.qMeasureInfo.forEach((function(e){t=Math.max(t,e.qFallbackTitle.length),e.valueType!==Ke.valueTypes.SUBTOTAL&&e.subtotal&&e.subtotal.enable&&(t=Math.max(t,e.subtotal.label?e.subtotal.label.length:0))})),Math.min(20,Math.max(0,t))}function ii(e){return{settings:{labels:{mode:e.dimensionAxis.label,maxGlyphCount:Math.ceil(yr.stringWidthOverMWidth(ni(e))),maxLengthPx:this.picassoElement.getBoundingClientRect().height/4}}}}function oi(e){var t=e.data.measure,r=e.dataset(t.source.key).field(t.source.field);return or.formatMeasureValue(r,t)}function ai(e){var t=e.getStyle(ti,"value.color","default"),r=e.getStyle(ti,"value.color","dark"),n=e.getStyle(ti,"value.color","light");return{settings:{sources:[{strategy:{settings:{direction:function(e){return e.data&&e.data.end.value>e.data.start.value?"up":"down"},labels:[{placements:[{fill:t},{fill:function(e){return function(e,t,r){return zt.getBestContrast(e,t,r)}(e.data.boxColor.value,r,n)}},{position:"opposite",fill:t,justify:0}],label:oi}]}}}]}}}function si(e,t){return{viewSize:t,max:e.generatedMatrix.length}}var li=It.extend("WaterfallChart",{namespace:".waterfallchart",chartID:ti,init:function(e){var t=e.picasso,r=e.environment,n=e.$element;this._super(t,n,r,null,null),this._tooltipHandler=fr(this.chartInstance,n,ti),this._scrollHandler=new Ut(this.chartInstance,n,this.getSlicedData.bind(this),this.updateChart.bind(this)),this._scrollHandler.setOptions({direction:"horizontal"}),this.setDataPaths(["generated/qHyperCube"])},updateConstraints:function(e){var t=!e.active,r=!e.passive;this._scrollHandler[t?"on":"off"](),this._tooltipHandler[r?"on":"off"]()},off:function(){this._scrollHandler.off(),this._tooltipHandler.off()},createChartSettings:function(e){var t=this,r=this.isRtl(),n=this.environment.theme,i=!!e.snapshotData,o=St.create({chartID:ti,theme:n,isRtl:r}),a=this.picassoElement.clientWidth,s=this.picassoElement.clientHeight,l={};l.box=this._tooltipHandler.setUp({chartBuilder:o,environment:this.environment,data:[""],contexts:["boxTip"],componentKey:"box-marker",headerResolver:function(){},rowResolver:function(e,t,r){var n=r.boxColor.value;return{value:or.formatMeasureValue(e,t),label:r.tooltip.value.qText,color:n}},labelData:["tooltip"],measureRows:["measure"]});var u={scrollHandler:this._scrollHandler,selectionHandler:null};this._dependentActions&&this._dependentActions.destroy(),this._dependentActions=rr.create(u,"vertical",r,{componentKey:"box-marker"}),o.addPreset("dimension-measure-chart",{isRtl:r,orientation:"vertical",theme:n,gridlines:e.gridlines,includeDimensionAxis:!0,dimensionAxisProperties:e.dimensionAxis,dimensionAxisSettings:ii.call(this,e),dimensionSource:vr.getGeneratedDimensionPath(0),dimensionScaleSettings:{component:{maxPxStep:function(){return s/4}}},includeMeasureAxis:!0,measureAxisProperties:e.measureAxis,measureSource:[vr.getGeneratedMeasurePath(0),vr.getGeneratedMeasurePath(1)],measureScaleSettings:{component:{expand:0,include:[0],ticks:{values:function(){return ei.getTicks({layout:e,height:s})}}}},hasNavigation:!i,isNavigationEnabledFn:function(){return t._scrollHandler.isOn()},scrollSettings:si(e,this._scrollHandler.getScrollViewSizeInItem()),refLines:e.refLine&&e.refLine.refLines,brushActions:this._dependentActions.gestures}),o.addComponent("box-marker",function(e,t){var r=e?[e.box.trigger]:[],n=e?e.box.consume:[];return{data:{extract:{key:"qHyperCube",field:vr.getGeneratedDimensionPath(0),props:{start:{field:vr.getGeneratedMeasurePath(0)},end:{field:vr.getGeneratedMeasurePath(1)},measure:{field:vr.getGeneratedMeasurePath(2),reduce:"first",value:function(e){return e}},boxColor:{field:vr.getGeneratedDimensionPath(1),value:function(e){return e.qText}},isCustomFormatted:!!t.qDef.isCustomFormatted,tooltip:{value:function(e){return e}}}}},settings:{major:{scale:"dimension"},minor:{scale:"measure"},orientation:"",box:{width:.7,maxWidthPx:4e3,fill:function(e){return e.datum.boxColor.value},strokeWidth:0}},brush:{trigger:r,consume:n}}}(l,e)),o.addComponent("point-marker",function(e,t){var r=t.getStyle(ti,"shape.bridge","stroke");return{data:{extract:{key:"qHyperCube",field:vr.getGeneratedDimensionPath(0),props:{x:{},y:{field:vr.getGeneratedMeasurePath(1)}}}},settings:{x:{scale:"dimension",ref:"x",fn:function(t){return e?t.scale(t.datum.value):t.scale(t.datum.value)+t.scale.bandwidth()}},y:{scale:"measure"},sizeLimits:{maxPx:2e4,maxRelExtent:1e4,minRelDiscrete:0,maxRelDiscrete:1},shape:"line",stroke:r,size:1-.7,strokeDasharray:"4 4",fill:"none",strokeWidth:function(e,t){return t===e.data.items.length-1?0:2}}}}(r,n)),e.legend&&!e.legend.show||o.addComponent("categorical-legend",function(e,t){var r=e.theme,n=e.translator,i=Ke.getColorForPositiveValue(t,r),o=Ke.getColorForNegativeValue(t,r),a=Ke.getColorForSubtotal(t,r);return{displayOrder:200,minimumLayoutMode:"MEDIUM",prioOrder:0,scale:{type:"categorical-color",data:[n.get("waterfall.legend.positiveValue.label"),n.get("waterfall.legend.negativeValue.label"),n.get("waterfall.legend.subtotal.label")],range:[i,o,a]},style:{title:{show:!1}}}}(this.environment,e),{dock:e.legend?e.legend.dock:"auto",isRtl:r,chartWidth:a,chartHeight:s}),e.dataPoint.showLabels&&o.addComponent("labels",ai(n));var c=o.getSettings();return this.addSnapshotChartSettings(c,e),c},updateData:function(e){var t=this.environment,r=t.theme,n=t.options,i=this;return this._super(e).then((function(){if(i._destroyed)return Promise.reject();var t,o;if(!!e.snapshotData){var a=i.layout.generated.qHyperCube.qDataPages[0].qArea;t=a.qTop,o=a.qHeight,vr.generateHyperCube(i.layout,r)}else{vr.generateHyperCube(i.layout,r),ri.call(i,!0);var s=n.viewState;s?(i._scrollHandler.updateViewState(i.layout.generatedMatrix.length),i._scrollHandler.setScrollState(s.scroll),t=s.scroll):(i._scrollHandler.resetScroll(),t=0),o=i._scrollHandler.getScrollViewSizeInItem()}vr.generateSlicedHyperCube(i.layout,t,o)}))},resize:function(){this._scrollHandler.onResize(),this._super()},paint:function(){var e=!!this.layout.snapshotData;e||this.environment.options.viewState||ri.call(this,!1),this._tooltipHandler.closeTooltip();var t=this.layout.generated.qHyperCube.qDataPages[0].qMatrix.length,r=this.layout.generatedMatrix.length;if(!e&&this._scrollHandler.isDataSizeChanged(t,r)){var n=this._super,i=this;return this._scrollHandler.getViewData().finally((function(){return n.call(i)}))}return this._super()},getSlicedData:function(e,t){return vr.generateSlicedHyperCube(this.layout,e,t),Promise.resolve(this.layout)},setSnapshotData:function(e){this._super(e),e.generated=this.layout.generated,e.generatedMatrix=this.layout.generatedMatrix},getViewState:function(){return{scroll:this._scrollHandler.getScrollState()}}});function ui(q){!function(e){if(e&&e.get&&e.add){var t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(O).forEach((function(t){e.add(O[t])}))}}(q.translator);var D=function(){var e=b();return e.renderer.prio(["canvas"]),e.use(y),e.use(v(x)),e.use(N),e.component("disclaimer",L),e}();return{qae:z(q),ext:Ye(q),component:function(){var b,y,v,x,q,M,S,E=d(),A=(b=i(),y=o(),v=a(),x=t(),q=s(),M=l(),u((function(){return{app:b,appLayout:y,deviceType:v,options:x,theme:q,translator:M}}),[b,y,x.direction,x.freeResize,M.language(),q.name(),v])),C=f(),k=r(),I=j(m(),2),O=I[0],N=I[1];h((function(){var e=g(E),t=new li({picasso:D,environment:A,$element:e});return N(t),function(){t.destroy()}}),[]),function(){var e=j(n.apply(void 0,arguments),2)[1];if(e)throw e}(w(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=2;break}return e.abrupt("return");case 2:return O.updateEnvironment(A),O.updateConstraints(k),e.next=6,O.updateData(C);case 6:return e.next=8,O.paint();case 8:case"end":return e.stop()}}),e)}))),[C,O,A]),function(i){var o=e(),a=t(),s=r(),l=j(n(w(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i){e.next=2;break}return e.abrupt("return");case 2:return i.updateConstraints(s),i.options=a,e.next=6,i.resize();case 6:case"end":return e.stop()}}),e)}))),[o.width,o.height]),2)[1];if(l)throw l}(O),S=O,c((function(e){if(S)return S.setSnapshotData(e)})),p((function(){return{getViewState:function(){if(S)return S.getViewState()}}}),[S])}}}export{ui as default};
|
|
975
988
|
//# sourceMappingURL=index.js.map
|