@nebula.js/sn-histogram 0.25.11 → 0.26.0
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/core/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-histogram v0.
|
|
2
|
+
* @nebula.js/sn-histogram v0.26.0
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useConstraints as e,useState as t,useLayout as r,useEffect as n,useAction as i,useRect as o,useOptions as a,usePromise as s,useApp as u,useAppLayout as l,useDeviceType as c,useTheme as p,useTranslator as d,useMemo as f,onTakeSnapshot as m,useImperativeHandle as h,useElement as g,useModel as b,useSelections as y,useStaleLayout as v,useRenderState as x}from"@nebula.js/stardust";import q from"jquery";import D from"picasso.js";import E from"picasso-plugin-q";import S from"picasso-plugin-hammer";import M from"hammerjs";import C from"extend";function A(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e){return(O="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 w(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function j(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){w(o,n,i,a,s,"next",e)}function s(e){w(o,n,i,a,s,"throw",e)}a(void 0)}))}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(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 T(e,t,r){return t&&L(e.prototype,t),r&&L(e,r),e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(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)||F(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 P(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(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 F(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}function _(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 V={"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 H(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 z={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),u="center"===o?n:"* ".concat(n),l="center"!==o?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return e("div",{style:s,dir:a},e("span",{ref:this.alignToRef,style:l,title:u},u))}};var B={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};var U={AUTO:!0,BIN_COUNT:10,BIN_SIZE:10,LABEL:"x",OFFSET:0,COUNT_DISTINCT:!1,BIN_MODE:"maxCount"};Object.freeze(U);var K={version:"0.25.11",qHyperCubeDef:{qDimensions:[],qMeasures:[],qMode:"S",qAlwaysFullyExpanded:!0,qSuppressZero:!1,qSuppressMissing:!0},bins:{auto:U.AUTO,binCount:"",binSize:U.BIN_SIZE,offset:U.OFFSET,countDistinct:U.COUNT_DISTINCT,binMode:U.BIN_MODE},color:{bar:{paletteColor:{index:6,color:"#4477aa"}}},dataPoint:{showLabels:!1},dimensionAxis:{dock:"near",label:"auto",show:"all"},measureAxis:{autoMinMax:!0,dock:"near",label:"",max:10,min:0,minMax:"min",show:"all",spacing:1},gridlines:{auto:!0,spacing:2},refLine:{refLines:[]},sorting:{autoSort:!0},showTitles:!0,subtitle:"",title:"",footnote:""};function W(e){var t=e.translator;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1,description:function(){return t.get("Visualization.Histogram.Binning")}},measures:{min:0,max:0}}]}}function Y(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function G(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $(){}var J=1/.7,Z="\\s*([+-]?\\d+)\\s*",Q="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ee=/^#([0-9a-f]{3,8})$/,te=new RegExp("^rgb\\("+[Z,Z,Z]+"\\)$"),re=new RegExp("^rgb\\("+[X,X,X]+"\\)$"),ne=new RegExp("^rgba\\("+[Z,Z,Z,Q]+"\\)$"),ie=new RegExp("^rgba\\("+[X,X,X,Q]+"\\)$"),oe=new RegExp("^hsl\\("+[Q,X,X]+"\\)$"),ae=new RegExp("^hsla\\("+[Q,X,X,Q]+"\\)$"),se={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 ue(){return this.rgb().formatHex()}function le(){return this.rgb().formatRgb()}function ce(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ee.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?pe(t):3===r?new me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?de(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?de(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=te.exec(e))?new me(t[1],t[2],t[3],1):(t=re.exec(e))?new me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ne.exec(e))?de(t[1],t[2],t[3],t[4]):(t=ie.exec(e))?de(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oe.exec(e))?ye(t[1],t[2]/100,t[3]/100,1):(t=ae.exec(e))?ye(t[1],t[2]/100,t[3]/100,t[4]):se.hasOwnProperty(e)?pe(se[e]):"transparent"===e?new me(NaN,NaN,NaN,0):null}function pe(e){return new me(e>>16&255,e>>8&255,255&e,1)}function de(e,t,r,n){return n<=0&&(e=t=r=NaN),new me(e,t,r,n)}function fe(e){return e instanceof $||(e=ce(e)),e?new me((e=e.rgb()).r,e.g,e.b,e.opacity):new me}function me(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function he(){return"#"+be(this.r)+be(this.g)+be(this.b)}function ge(){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 be(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function ye(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xe(e,t,r,n)}function ve(e){if(e instanceof xe)return new xe(e.h,e.s,e.l,e.opacity);if(e instanceof $||(e=ce(e)),!e)return new xe;if(e instanceof xe)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,u=(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/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new xe(a,s,u,e.opacity)}function xe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function qe(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 De(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 Ee(e,t,r){if(void 0!==e&&void 0!==t){for(var n=t.split("."),i=n[n.length-1],o=e,a=0;a<n.length-1;++a){var s=n[a];void 0===o[s]&&(o[s]=Number.isNaN(+n[a+1])?{}:[]),o=o[s]}void 0!==r?o[i]=r:delete o[i]}}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(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 Ce(e,t,r){return t&&Me(e.prototype,t),r&&Me(e,r),e}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Y($,ce,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ue,formatHex:ue,formatHsl:function(){return ve(this).formatHsl()},formatRgb:le,toString:le}),Y(me,(function(e,t,r,n){return 1===arguments.length?fe(e):new me(e,t,r,null==n?1:n)}),G($,{brighter:function(e){return e=null==e?J:Math.pow(J,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new me(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:he,formatHex:he,formatRgb:ge,toString:ge})),Y(xe,(function(e,t,r,n){return 1===arguments.length?ve(e):new xe(e,t,r,null==n?1:n)}),G($,{brighter:function(e){return e=null==e?J:Math.pow(J,e),new xe(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new xe(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 me(qe(e>=240?e-240:e+120,i,n),qe(e,i,n),qe(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 Ie,Oe=(
|
|
7
|
+
import{useConstraints as e,useState as t,useLayout as r,useEffect as n,useAction as i,useRect as o,useOptions as a,usePromise as s,useApp as u,useAppLayout as l,useDeviceType as c,useTheme as p,useTranslator as d,useMemo as f,onTakeSnapshot as m,useImperativeHandle as h,useElement as g,useModel as b,useSelections as y,useStaleLayout as v,useRenderState as x}from"@nebula.js/stardust";import q from"jquery";import D from"picasso.js";import E from"picasso-plugin-q";import S from"picasso-plugin-hammer";import M from"hammerjs";import C from"extend";function A(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e){return(O="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 w(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function j(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){w(o,n,i,a,s,"next",e)}function s(e){w(o,n,i,a,s,"throw",e)}a(void 0)}))}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(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 T(e,t,r){return t&&L(e.prototype,t),r&&L(e,r),e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(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)||F(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 P(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(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 F(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}function _(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 V={"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 H(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 z={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),u="center"===o?n:"* ".concat(n),l="center"!==o?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return e("div",{style:s,dir:a},e("span",{ref:this.alignToRef,style:l,title:u},u))}};var B={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};var U={AUTO:!0,BIN_COUNT:10,BIN_SIZE:10,LABEL:"x",OFFSET:0,COUNT_DISTINCT:!1,BIN_MODE:"maxCount"};Object.freeze(U);var K={version:"0.26.0",qHyperCubeDef:{qDimensions:[],qMeasures:[],qMode:"S",qAlwaysFullyExpanded:!0,qSuppressZero:!1,qSuppressMissing:!0},bins:{auto:U.AUTO,binCount:"",binSize:U.BIN_SIZE,offset:U.OFFSET,countDistinct:U.COUNT_DISTINCT,binMode:U.BIN_MODE},color:{bar:{paletteColor:{index:6,color:"#4477aa"}}},dataPoint:{showLabels:!1},dimensionAxis:{dock:"near",label:"auto",show:"all"},measureAxis:{autoMinMax:!0,dock:"near",label:"",max:10,min:0,minMax:"min",show:"all",spacing:1},gridlines:{auto:!0,spacing:2},refLine:{refLines:[]},sorting:{autoSort:!0},showTitles:!0,subtitle:"",title:"",footnote:""};function W(e){var t=e.translator;return{path:"/qHyperCubeDef",dimensions:{min:1,max:1,description:function(){return t.get("Visualization.Histogram.Binning")}},measures:{min:0,max:0}}}function Y(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function G(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $(){}var J=1/.7,Z="\\s*([+-]?\\d+)\\s*",Q="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ee=/^#([0-9a-f]{3,8})$/,te=new RegExp("^rgb\\("+[Z,Z,Z]+"\\)$"),re=new RegExp("^rgb\\("+[X,X,X]+"\\)$"),ne=new RegExp("^rgba\\("+[Z,Z,Z,Q]+"\\)$"),ie=new RegExp("^rgba\\("+[X,X,X,Q]+"\\)$"),oe=new RegExp("^hsl\\("+[Q,X,X]+"\\)$"),ae=new RegExp("^hsla\\("+[Q,X,X,Q]+"\\)$"),se={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 ue(){return this.rgb().formatHex()}function le(){return this.rgb().formatRgb()}function ce(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ee.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?pe(t):3===r?new me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?de(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?de(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=te.exec(e))?new me(t[1],t[2],t[3],1):(t=re.exec(e))?new me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ne.exec(e))?de(t[1],t[2],t[3],t[4]):(t=ie.exec(e))?de(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oe.exec(e))?ye(t[1],t[2]/100,t[3]/100,1):(t=ae.exec(e))?ye(t[1],t[2]/100,t[3]/100,t[4]):se.hasOwnProperty(e)?pe(se[e]):"transparent"===e?new me(NaN,NaN,NaN,0):null}function pe(e){return new me(e>>16&255,e>>8&255,255&e,1)}function de(e,t,r,n){return n<=0&&(e=t=r=NaN),new me(e,t,r,n)}function fe(e){return e instanceof $||(e=ce(e)),e?new me((e=e.rgb()).r,e.g,e.b,e.opacity):new me}function me(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function he(){return"#"+be(this.r)+be(this.g)+be(this.b)}function ge(){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 be(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function ye(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xe(e,t,r,n)}function ve(e){if(e instanceof xe)return new xe(e.h,e.s,e.l,e.opacity);if(e instanceof $||(e=ce(e)),!e)return new xe;if(e instanceof xe)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,u=(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/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new xe(a,s,u,e.opacity)}function xe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function qe(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 De(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 Ee(e,t,r){if(void 0!==e&&void 0!==t){for(var n=t.split("."),i=n[n.length-1],o=e,a=0;a<n.length-1;++a){var s=n[a];void 0===o[s]&&(o[s]=Number.isNaN(+n[a+1])?{}:[]),o=o[s]}void 0!==r?o[i]=r:delete o[i]}}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(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 Ce(e,t,r){return t&&Me(e.prototype,t),r&&Me(e,r),e}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Y($,ce,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ue,formatHex:ue,formatHsl:function(){return ve(this).formatHsl()},formatRgb:le,toString:le}),Y(me,(function(e,t,r,n){return 1===arguments.length?fe(e):new me(e,t,r,null==n?1:n)}),G($,{brighter:function(e){return e=null==e?J:Math.pow(J,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new me(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:he,formatHex:he,formatRgb:ge,toString:ge})),Y(xe,(function(e,t,r,n){return 1===arguments.length?ve(e):new xe(e,t,r,null==n?1:n)}),G($,{brighter:function(e){return e=null==e?J:Math.pow(J,e),new xe(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new xe(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 me(qe(e>=240?e-240:e+120,i,n),qe(e,i,n),qe(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 Ie,Oe=(
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
9
|
(Ie={exports:{}}).exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,i,o,a,s,u,l,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"),(!(l=t.split("."))[1]||l[1]&&l[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(;l[0].length<e[0].length-a;)l[0]="0"+l[0];else 0==+l[0]&&(l[0]="");if((t=t.split("."))[0]=l[0],u=c[1]&&c[c.length-1].length){for(h="",b=(p=t[0]).length%u,d=p.length,v=0;v<d;v++)h+=p.charAt(v),!((v-b+1)%u)&&v<d-u&&(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},Ie.exports);function we(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}var je={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"},ke=/%$/,Le=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Te=/^\(oct\)/i,Ne=/^\(dec\)/i,Re=/^\(hex\)/i,Pe=/^\(bin\)/i,Fe=/^\(rom\)/i,_e=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Ve=/#|0/g;function He(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 ze(e,t,r){var n=we(e);return r?n:new RegExp(n||"",t)}function Be(e,t,r){var n,i,o,a,s,u,l,c,p,d,f,m=e.pattern;m.indexOf("A")>=0&&(m=m.replace("A",""),e.abbreviate=!0),d=t,(f=r)&&(f=we(f)),d&&(d=we(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=""),u=t,t=/,/.test(r)?"¤":",",u&&(o=o.replace(ze(u,"g"),t)),l=r,r=".",l&&(o=o.replace(ze(l,"g"),r)),c=(c=o.match(/#/g))?c.length:0;var h,g=m.split(l);g[1]&&(h=g[1].match(Ve)),e.prefix=a||"",e.postfix=s||"",e.pattern=m,e.maxPrecision=h?h.length:2,e.percentage=ke.test(m),e.numericPattern=o||"",e.numericRegex=new RegExp("".concat(ze(t,null,!0),"|").concat(ze(r,null,!0)),"g"),e.groupTemp=u,e.decTemp=l,e.t=t,e.d=r,e.temp=c}!function(){function e(t,r,n,i,o){Se(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 je;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()}Ce(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],_e.test(e[0])&&(n.positive.isFunctional=!0),e[1]?_e.test(e[1])&&(n.negative.isFunctional=!0):n.negative=!1,e[2]?_e.test(e[2])&&(n.zero.isFunctional=!0):n.zero=!1,n.positive.isFunctional||Be(n.positive,t,r),n.negative&&!n.negative.isFunctional&&Be(n.negative,t,r),n.zero&&!n.zero.isFunctional&&Be(n.zero,t,r)):this._prepared={pattern:!1}}},{key:"formatValue",value:function(e){var t,r,n,i,o,a,s,u,l,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 Le.test(t)?e=He(e,Number(/\d{2}/.exec(t)[0]),t,r):Te.test(t)?e=He(e,8,t,r):Ne.test(t)?e=He(e,10,t,r):Re.test(t)?e=He(e,16,t,r):Pe.test(t)?e=He(e,2,t,r):Fe.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,l=(u=c.numericPattern).split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,l||"#"!==u.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,l?l.length:0)).split(".")[0]),v=u.split(o)[0];if(e=Oe(v+=o,y)||"0",l){var x=Math.max(0,Math.min(14,l.length)),q=l.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(u+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(n)/Math.log(10)))),s=0;s<t;s++)u+="#";e=Oe(u,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 Ue=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ke=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],We=["January","February","March","April","May","June","July","August","September","October","November","December"],Ye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ge(e,t){for(var r=e.length;r<t;r++)e="0".concat(e);return e}function $e(e){var t=e.toString().split(".");return t[1]?t=Number("0.".concat(t[1])):0}!function(){function e(t,r,n){Se(this,e);var i,o=t||{};o.qCalendarStrings||(o.qCalendarStrings={qLongDayNames:Ue,qDayNames:Ke,qLongMonthNames:We,qMonthNames:Ye}),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=(Ae(i={},"T",o.qTimeFmt||"hh:mm:ss"),Ae(i,"D",o.qDateFmt||"YYYY-MM-DD"),Ae(i,"TS",o.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"),i)[n]),this.pattern=r}Ce(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*$e(t),n=60*$e(r),i=60*$e(n),o=1e3*$e(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,u=n.f,l=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)&&(l=r?r.getDay()-1:0)<0&&(l=6);var c="";return r&&(c=r.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:l,date:i,h:o,m:a,s:s,f:u,t:c}}(e,t));var u=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:Ge("".concat(t.year).slice(-2),2),YYY:Ge("".concat(t.year).slice(-3),3),def:function(e){return Ge("".concat(t.year),e.length)}},"M+":{M:t.month+1,MM:Ge("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:Ge("".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 Ge("".concat(t.date),e.length)}},"h+|H+":{h:t.h,def:function(e){return Ge("".concat(t.h),e.length)}},"m+":{m:t.m,def:function(e){return Ge("".concat(t.m),e.length)}},"s+|S+":{s:t.s,def:function(e){return Ge("".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),l=[];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&l.push(c);var p=new RegExp(l.join("|"),"g");return t.replace(p,(function(e){var t,r,n;for(r in u)if(Object.prototype.hasOwnProperty.call(u,r)&&(t=new RegExp(r)).test(e))break;if(!t)return"";for(var i in u[r])if(i===e||i.toLowerCase()===e){void 0===(n=u[r][i])&&(n=u[r][i.toLowerCase()]);break}return void 0===n&&(n=u[r].def),"function"==typeof n&&(n=n(e)),n}))}}])}();var Je=/xyz/.test((function(){}))?/\b_super\b/:/.*/,Ze=function(){};Ze.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 Xe(){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 ut={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 lt={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 C(!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"),C(!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(ut.lrm,"(").concat(n,")").concat(ut.lrm):"".concat(ut.lrm,"(").concat(n,")").concat(ut.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",u=a?"y":"x",l=ct.SHOW_AXIS_LABELS_OPTIONS,c=ct.SHOW_TITLE_OPTIONS,p=l.includes(n.show),d=!!r.measureTitleText&&c.includes(n.show),f=r.includeDimensionAxis&&l.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=C(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=C(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=C(!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=C(n,ct.LAYOUTSETTINGS.dimensionAxis);var i=mt(t,r);C(!0,n,t.dimensionAxisSettings||{}),e.addComponent("".concat(r,"-axis"),n,i)}(e,r,u),m&&function(e,t,r){var n={text:t.dimensionTitleText};n=C(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,u),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=C(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=C({},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=C(o,ct.LAYOUTSETTINGS.refLines);var a={key:"ref-line-labels-".concat(Xe()),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 u=12;return o.required+u>100?o.required+u:Math.min(o.wanted+u,100)},lines:{x:[],y:[]}};a=C(a,ct.LAYOUTSETTINGS.refLinesLabels),t.refLines.forEach((function(n){if(n.show){var s=n.refLineExpr&&n.refLineExpr.value,u=C(!0,{},t,{paletteColor:n.paletteColor,style:n.style,chartID:e.options.chartID}),l=lt.lineSettings({scale:"measure",dir:r,value:s},u);o.lines[r].push(l);var c=lt.lineLabelSettings({scale:"measure",value:s,label:{text:!1!==n.showLabel?n.label:"",showValue:!1!==n.showValue}},u);"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=C(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,u).dock,r.isRtl);r.enableMeasureRange&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeMeasure"};o=C(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=C(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,u).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 C(!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"),u=t.theme.getStyle(r,"axis.title","color"),l=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:u},line:{show:!0,strokeWidth:1,stroke:a},labels:{fill:l,fontSize:c,fontFamily:d,tiltAngle:o?-40:40,maxEdgeBleed:75,maxSize:150,mode:"auto"},ticks:{stroke:a},minorTicks:{stroke:a}}};return C(!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"),u=t.theme.getStyle(r,"axis.title","fontFamily"),l={key:"text",type:"text",dock:rt.getAxisDock(i,n,o)||"bottom",displayOrder:0,style:{text:{fontSize:a,fontFamily:u,fill:s}}};return C(!0,{},l,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(C(!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(C(!0,r,e||{}),t)},gt.xAxis=function(e,t){return gt(C(!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(C(!0,i,e||{}),t)},bt.xAxisTitle=function(e,t){return bt(C(!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(C(!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 Et(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 C(!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 C(!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 C(!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})})),C(!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,u=t&&t.isRtl,l={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,u)}}};return C(!0,{},l,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,u=t&&t.dock,l=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,u,l),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"})})),C(!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"),u=t.theme.getStyle(r,"legend.label","color"),l=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:l,fontFamily:t.theme.getStyle(r,"legend.label","fontFamily"),fill:u,lineHeight:1,wordBreak:"break-word"},margin:{top:5,left:10,right:10,bottom:10},shape:{type:t.type?t.type:"square",size:3*parseInt(l,10)/4}},title:{show:t.showTitle,fontSize:s,fontFamily:c,fill:a}}};return C(!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"),u=t.theme.getStyle(r,"legend.label","color"),l=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:u,fontSize:l,fontFamily:c}}};return C(!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 C(!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 C(!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 C(!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 C(!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 C(!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=Et(e,t,C(!0,{},this.options,r||{}));return this.settings.components.push(n),n},St.prototype.addInteraction=function(e,t){var r=Et("interaction",e,C(!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=Et(e,t,C(!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=Et;var Mt={CENTER:0,BOTTOM:1},Ct={DISCLAIMERS:[{label:"NoDataExist",alignment:Mt.CENTER,default:!0},{label:"RequireNumericDimension",alignment:Mt.CENTER,default:!1},{label:"OnlyNanData",alignment:Mt.CENTER,default:!0},{label:"OnlyNegativeOrZeroValues",alignment:Mt.CENTER,default:!1},{label:"LimitedData",alignment:Mt.BOTTOM,default:!1},{label:"OnlyNanColor",alignment:Mt.BOTTOM,default:!1},{label:"NegativeOrZeroValues",alignment:Mt.BOTTOM,default:!1},{label:"DataRangeIncludingZero",alignment:Mt.BOTTOM,default:!1}],ALIGNMENT:Mt};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,Ct.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 It(e,t,r){this.disclaimersConfig=e,this.dataAttributes=t,this.supportedDisclaimers=r}function Ot(e,t){return e&&t&&t[e]}function wt(e){this.environment=e,this.clear()}It.prototype.isValidAndSupported=function(e,t){return Ot(e.label,this.dataAttributes)&&(e.default||Ot(e.label,this.supportedDisclaimers))&&void 0!==t&&e.alignment===t},It.prototype.isAnyValidDisclaimer=function(e){var t=!1,r=this;return this.disclaimersConfig.forEach((function(n){r.isValidAndSupported(n,e)&&(t=!0)})),t},It.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},wt.ERRORS={SET:"Calling Disclaimer.set() without attributes",DISPLAY:"Calling Disclaimer.display() before attributes are applied"},wt._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},wt.prototype.getComponentSettings=function(){var e,t,r,n,i=this.environment.translator,o=C(!0,{},this.vizAttributes.supportedDisclaimers),a=new It(Ct.DISCLAIMERS,this.dataAttributes,o);if(a.isAnyValidDisclaimer(Ct.ALIGNMENT.CENTER))r=a.getMessage(Ct.ALIGNMENT.CENTER,i),n="center";else{if(!a.isAnyValidDisclaimer(Ct.ALIGNMENT.BOTTOM))return;r=a.getMessage(Ct.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)}}},wt.prototype.set=function(e){if(this.clear(),!e)throw new Error(wt.ERRORS.SET);this.vizAttributes=e,this.dataAttributes=At.applyAttributes(this.vizAttributes.options,this.vizAttributes.data)},wt.prototype.clear=function(){this.vizAttributes=null,this.dataAttributes=null};var jt=Ze.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 wt(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=C(!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:De(e,t.replace(/\//g,"."))}}));this.colorService&&a.push.apply(a,P(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}}}),kt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tt={exports:{}},Nt=Tt.exports=function(){function e(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 t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(e){return(r="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 n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return(l=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&s(i,r.prototype),i}).apply(null,arguments)}function c(e,t){return f(e)||h(e,t)||g(e,t)||v()}function p(e){return d(e)||m(e)||g(e)||y()}function d(e){if(Array.isArray(e))return b(e)}function f(e){if(Array.isArray(e))return e}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){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}}function g(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function b(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}function y(){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 v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=Object.prototype.hasOwnProperty,q=Object.prototype.toString,D=Object.defineProperty,E=Object.getOwnPropertyDescriptor,S=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===q.call(e)},M=function(e){if(!e||"[object Object]"!==q.call(e))return!1;var t,r=x.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&x.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||x.call(e,t)},C=function(e,t){D&&"__proto__"===t.name?D(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},A=function(e,t){if("__proto__"===t){if(!x.call(e,t))return;if(E)return E(e,t).value}return e[t]},I=function e(){var t,r,n,i,o,a,s=arguments[0],u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),(null==s||"object"!==O(s)&&"function"!=typeof s)&&(s={});u<l;++u)if(null!=(t=arguments[u]))for(r in t)n=A(s,r),s!==(i=A(t,r))&&(c&&i&&(M(i)||(o=S(i)))?(o?(o=!1,a=n&&S(n)?n:[]):a=n&&M(n)?n:{},C(s,{name:r,newValue:e(c,a,i)})):void 0!==i&&C(s,{name:r,newValue:i}));return s};function w(e,t,r){if(!e)return-1;var n=r.cache,i=e.origin?e.origin():null;i&&(e=i);var o=n.fields.indexOf(e),a=-1,s=-1;if(-1===o)for(var u=0;u<n.wrappedFields.length;u++)if(s=n.wrappedFields[u].attrDims.map((function(e){return e.instance})).indexOf(e),a=n.wrappedFields[u].attrExps.map((function(e){return e.instance})).indexOf(e),-1!==s||-1!==a){o=u;break}return(o-=t.qArea.qLeft)<0||o>=t.qArea.qWidth?-1:s>=0?function(e){return e[o].qAttrDims.qValues[s]}:a>=0?function(e){return e[o].qAttrExps.qValues[a]}:function(e){return e[o]}}function j(e,t,r){var n=r.key,i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:n,field:e.field.key()}),i}function k(e){var t=e.cache,r=e.f,n=e.mainCell,i=e.p;e.prop;var o=e.page,a=e.rowIdx,s=e.row,u=e.sourceKey,l=e.target,c=e.targetProp,p=n;if(i.field&&i.field!==r){var d=w(i.field,o,{cache:t});if(-1===d)return;p=I({qRow:a},d(s))}l[c]=j(i,p,{key:u})}function L(e,t,n,i){for(var o=Array.isArray(e)?e:[e],a=[],s=0;s<o.length;s++)if(void 0!==o[s].field){for(var u=t.raw(),l=t.key(),c="object"===r(o[s].field)?o[s].field:t.field(o[s].field),d=i.normalizeConfig(o[s],t),f=d.props,m=d.main,h=Object.keys(f),g=!!o[s].trackBy,b=r(o[s].trackBy),y={},v=[],x=[],q=0;q<u.qDataPages.length;q++){var D=w(c,u.qDataPages[q],{cache:n});if(-1!==D)for(var E=0;E<u.qDataPages[q].qMatrix.length;E++){var S=u.qDataPages[q].qArea.qTop+E,M=I({qRow:S},D(u.qDataPages[q].qMatrix[E])),C=j(m,M,{key:l});if(!m.filter||m.filter(M)){for(var A=0;A<h.length;A++){var O=f[h[A]],L=O.fields||[O];O.fields&&(C[h[A]]=[]);for(var T=0;T<L.length;T++)k({cache:n,f:c,mainCell:M,p:L[T],prop:h[A],props:f,page:u.qDataPages[q],rowIdx:S,row:u.qDataPages[q].qMatrix[E],sourceKey:l,target:O.fields?C[h[A]]:C,targetProp:O.fields?T:h[A]});if(O.fields){var N=C[h[A]].map((function(e){return e.value})),R=C[h[A]].map((function(e){return e.label}));C[h[A]]={value:"function"==typeof O.value?O.value(N):void 0!==O.value?O.value:N,label:"function"==typeof O.label?O.label(R):void 0!==O.label?String(O.label):String(C[h[A]].value)}}}g&&i.track({cfg:o[s],itemData:M,obj:C,target:v,tracker:y,trackType:b}),x.push(C)}}}g?a.push.apply(a,p(i.collect(v,{main:m,propsArr:h,props:f}))):a.push.apply(a,x)}return a}function T(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function N(){return this.eachAfter(T)}function R(e){var t,r,n,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),r=o.children)for(n=0,i=r.length;n<i;++n)a.push(r[n])}while(a.length);return this}function P(e){for(var t,r,n=this,i=[n];n=i.pop();)if(e(n),t=n.children)for(r=t.length-1;r>=0;--r)i.push(t[r]);return this}function F(e){for(var t,r,n,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(r=0,n=t.length;r<n;++r)o.push(t[r]);for(;i=a.pop();)e(i);return this}function _(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r}))}function V(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}function H(e){for(var t=this,r=z(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function z(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function B(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function U(){var e=[];return this.each((function(t){e.push(t)})),e}function K(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}function W(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t}function Y(e,t){var r,n,i,o,a,s=new Q(e),u=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=$);r=l.pop();)if(u&&(r.value=+r.data.value),(i=t(r.data))&&(a=i.length))for(r.children=new Array(a),o=a-1;o>=0;--o)l.push(n=r.children[o]=new Q(i[o])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Z)}function G(){return Y(this).eachBefore(J)}function $(e){return e.children}function J(e){e.data=e.data.data}function Z(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Q(e){this.data=e,this.depth=this.height=0,this.parent=null}function X(e){if("function"!=typeof e)throw new Error;return e}Q.prototype=Y.prototype={constructor:Q,count:N,each:R,eachAfter:F,eachBefore:P,sum:_,sort:V,path:H,ancestors:B,descendants:U,leaves:K,links:W,copy:G};var ee="$",te={depth:-1},re={};function ne(e){return e.id}function ie(e){return e.parentId}function oe(){var e=ne,t=ie;function r(r){var n,i,o,a,s,u,l,c=r.length,p=new Array(c),d={};for(i=0;i<c;++i)n=r[i],s=p[i]=new Q(n),null!=(u=e(n,i,r))&&(u+="")&&(d[l=ee+(s.id=u)]=l in d?re:s);for(i=0;i<c;++i)if(s=p[i],null!=(u=t(r[i],i,r))&&(u+="")){if(!(a=d[ee+u]))throw new Error("missing: "+u);if(a===re)throw new Error("ambiguous: "+u);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=te,o.eachBefore((function(e){e.depth=e.parent.depth+1,--c})).eachBefore(Z),o.parent=null,c>0)throw new Error("cycle");return o}return r.id=function(t){return arguments.length?(e=X(t),r):e},r.parentId=function(e){return arguments.length?(t=X(e),r):t},r}function ae(e,t){"/"===e.charAt(0)&&(e=e.substring(1));for(var r,n=e.split("/"),i=t,o=0;o<n.length;o++){if("*"===n[o]&&Array.isArray(i)){var a=[];r=n.slice(o+1).join("/");for(var s=0;s<i.length;s++){var u=ae(r,i[s]);Array.isArray(u)?a.push.apply(a,p(u)):a.push(u)}return a}if(!n[o]&&Array.isArray(i)){var l=new Array(i.length);r=n.slice(o+1).join("/");for(var c=0;c<i.length;c++)l[c]=ae(r,i[c]);return l}n[o]in i&&(i=i[n[o]])}return i}function se(e,t,r){var n=[];if(!e||!e.length)return n;if(t<=0){var i=r>=0?[e[r]]:e;n.push.apply(n,p(i))}else for(var o=0;o<e.length;o++)e[o].children&&e[o].children.length&&n.push.apply(n,p(se(e[o].children,t-1,r)));return n}function ue(e,t,r){if(e===t)return function(e){return e};if(e>t){var n=Math.max(0,Math.min(100,e-t));return function(e){for(var t=e,r=0;r<n;++r)t=t.parent;return t}}if(t>e){var i=Math.max(0,Math.min(100,t-e));return function(e){return se(e.children,i-1,r)}}return!1}function le(e,t){var r=t.cache;if("number"==typeof e)return r.fields[e];var n=r.allFields;if("function"==typeof e){for(var i=0;i<n.length;i++)if(e(n[i]))return n[i];return!1}if("string"==typeof e){for(var o=0;o<n.length;o++)if(n[o].key()===e||n[o].title()===e)return n[o]}else if(e&&-1!==n.indexOf(e))return e;throw Error("Field not found: ".concat(e))}var ce=/^qDimensionInfo(?:\/(\d+))?/,pe=/^\/?qMeasureInfo\/(\d+)/,de=/\/qAttrExprInfo\/(\d+)/,fe=/\/qAttrDimInfo\/(\d+)/;function me(e){var t=e.raw().qColumnOrder,r=e.fields();return t&&t.length===r.length?t:r.map((function(e,t){return t}))}function he(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((function(e,t){return t}))).filter((function(t){return t<e.qDimensionInfo.length}))}function ge(e,t){var r=t.cube;if(!e)return-1;var n=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,u=-1,l=-1,c=n,p=r.qEffectiveInterColumnSortOrder,d=he(r);return ce.test(c)&&(i=!0,o=+ce.exec(c)[1],c=n.replace(ce,"")),pe.test(c)&&("K"===r.qMode?u=+pe.exec(c)[1]:p&&-1!==p.indexOf(-1)?(u=+pe.exec(c)[1],l=0):l=+pe.exec(c)[1],c=c.replace(pe,"")),c&&(fe.exec(c)?s=+fe.exec(c)[1]:de.exec(c)&&(a=+de.exec(c)[1])),{fieldDepth:(i?"S"===r.qMode?d[o]:p?p.indexOf(o):o:p&&-1!==p.indexOf(-1)?p.indexOf(-1):r.qDimensionInfo.length-("K"===r.qMode?0:1))+1,pseudoMeasureIndex:u,measureIdx:l,attrDimIdx:s,attrIdx:a}}function be(e,t){var r,n,i=ue(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return r=t.measureIdx>=0?function(e){return e.data.qValues[t.measureIdx]}:function(e){return e.data},t.attrDimIdx>=0?n=function(e){var r;return null==e||null===(r=e.qAttrDims)||void 0===r?void 0:r.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(n=function(e){var r;return null==e||null===(r=e.qAttrExps)||void 0===r?void 0:r.qValues[t.attrIdx]}),{nodeFn:i,attrFn:n,valueFn:r}}function ye(e,t,r){var n=r.key,i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:n,field:e.field.key()}),i}function ve(e){for(var t=e.propsArr,r=e.props,n=e.item,i=e.itemData,o=e.ret,a=e.sourceKey,s=0;s<t.length;s++){var u=r[t[s]],l=u.fields||[u],c=void 0,p=void 0;u.fields&&(c=[],p=[]);for(var d=function(e){var r=l[e],d=void 0,f=void 0,m=void 0,h=void 0,g=void 0,b=void 0;if("primitive"===r.type?(m=r.value,b=String(r.value)):("function"==typeof r.value&&(d=function(e){return r.value(e,n)}),"function"==typeof r.label&&(f=function(e){return r.label(e,n)}),r.accessor?(h=r.accessor(n),Array.isArray(h)?(g=h.map(r.valueAccessor),r.attrAccessor&&(g=g.map(r.attrAccessor)),d&&(m=g.map(d),d=null),f&&(b=g.map(f),f=null),m=r.reduce?r.reduce(m):m,b=r.reduceLabel?r.reduceLabel(b,m):String(m)):b=m=r.attrAccessor?r.attrAccessor(r.valueAccessor(h)):r.valueAccessor(h)):(m=i,b=i)),u.fields){var y=d?d(m):m;c.push(y),p.push(f&&null!=b?f(b):null!=b?b:String(y))}else{var v=d?d(m):m;o[t[s]]={value:v,label:f?f(b):null!=b?b:String(v)},r.field&&(o[t[s]].source={field:r.field.key(),key:a})}},f=0;f<l.length;f++)d(f);c&&(o[t[s]]={value:"function"==typeof u.value?u.value(c,n):c,label:"function"==typeof u.label?u.label(p,n):p})}}var xe=function(e,t,r){var n="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=ae(n,e);return o&&o[0]?(t.tree=Y(o[0],r.children||function(e){return e[i]}),t.tree):null};function qe(e){for(var r=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=me(e),i=e.fields(),o=e.fields().filter((function(e){return"dimension"===e.type()})).map((function(e){return n.indexOf(i.indexOf(e))})),a=e.fields().filter((function(e){return"measure"===e.type()})).map((function(e){return n.indexOf(i.indexOf(e))})),s={__root:{__id:"__root",qValues:[]}},u=0;u<r.length;u++){for(var l=r[u],c="__root",p=!1,d=0;d<o.length;d++){var f=l[o[d]],m="".concat(c,"__").concat(f.qText);s[m]||(s[m]=t({__id:m,__parent:c,qValues:[]},f),p=!0),c=m}if(p)for(var h=0;h<a.length;h++){var g=l[a[h]];s[c].qValues.push(g)}}var b=Object.keys(s).map((function(e){return s[e]}));return oe().id((function(e){return e.__id})).parentId((function(e){return e.__parent}))(b)}var De=function(e){for(var t=e.propsArr,r=e.props,n=e.cube,i=e.cache,o=e.itemDepthObject,a=e.f,s=0;s<t.length;s++)for(var u=r[t[s]],l=u.fields?u.fields:[u],c=0;c<l.length;c++){var p=l[c];if(p.field!==a){var d=be(o,ge(p.field,{cube:n,cache:i}));p.accessor=d.nodeFn,p.valueAccessor=d.valueFn,p.attrAccessor=d.attrFn}}};function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=r.raw(),a=r.key(),s="S"===o.qMode?qe(r):xe(o,n,e);if(!s)return null;for(var u=s.height,l=[],c=0;c<=u;c++){var p=null;if(c>0)if("S"===o.qMode){var d=he(o)[c-1];p=n.fields[d]}else{var f=o.qEffectiveInterColumnSortOrder[c-1];c>o.qEffectiveInterColumnSortOrder.length&&(f=o.qDimensionInfo.length),p=n.fields[f]}var m=i.normalizeConfig(t(t({},e),{},{field:p?p.key():void 0}),r),h=m.props,g=m.main,b=Object.keys(h);l[c]={propsArr:b,props:h,main:g};var y=p?ge(p,{cube:o,cache:n}):{fieldDepth:0};De({propsArr:b,props:h,cube:o,cache:n,itemDepthObject:y,f:p})}for(var v=s.copy().descendants(),x=s.descendants(),q=0;q<x.length;q++){var D=l[x[q].depth].propsArr,E=l[x[q].depth].props,S=l[x[q].depth].main,M=v[q],C=M.data,A=ye(S,C,{key:a});ve({propsArr:D,props:E,item:M,itemData:C,ret:A,sourceKey:a,isTree:!0}),x[q].data=A}return s}function Se(e,t,n,i){for(var o=Array.isArray(e)?e:[e],a=[],s=0;s<o.length;s++)if(void 0!==o[s].field){var u=t.raw(),l=t.key();if(!xe(u,n,e))continue;var c="object"===r(o[s].field)?o[s].field:t.field(o[s].field),d=i.normalizeConfig(o[s],t),f=d.props,m=d.main,h=Object.keys(f),g=ge(c,{cube:u,cache:n}),b=be({fieldDepth:0},g),y=b.nodeFn,v=b.attrFn,x=b.valueFn;De({propsArr:h,props:f,cube:u,cache:n,itemDepthObject:g,f:c});for(var q=!!o[s].trackBy,D=r(o[s].trackBy),E={},S=[],M=y(n.tree),C=[],A=0;A<M.length;A++){var I=M[A],O=v?v(x(I)):x(I);if(!m.filter||m.filter(O)){var w=ye(m,O,{key:l});ve({propsArr:h,props:f,item:I,itemData:O,ret:w,sourceKey:l}),q&&i.track({cfg:o[s],itemData:O,obj:w,target:S,tracker:E,trackType:D}),C.push(w)}}q?a.push.apply(a,p(i.collect(S,{main:m,propsArr:h,props:f}))):a.push.apply(a,C)}return a}function Me(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==kt||"undefined"!=typeof self&&self;var Ce=Me((function(e){var t;t=function(){return function(e,t){if(!e||isNaN(+t))return t;var r,n,i,o,a,s,u,l,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"),(!(l=t.split("."))[1]||l[1]&&l[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(;l[0].length<e[0].length-a;)l[0]="0"+l[0];else 0==+l[0]&&(l[0]="");if((t=t.split("."))[0]=l[0],u=c[1]&&c[c.length-1].length){for(h="",b=(p=t[0]).length%u,d=p.length,v=0;v<d;v++)h+=p.charAt(v),!((v-b+1)%u)&&v<d-u&&(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}},e.exports=t()}));function Ae(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}var Ie={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"},Oe=/%$/,we=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,je=/^\(oct\)/i,ke=/^\(dec\)/i,Le=/^\(hex\)/i,Te=/^\(bin\)/i,Ne=/^\(rom\)/i,Re=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Pe=/#|0/g;function Fe(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 _e(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}function Ve(e,t,r){var n;return we.test(t)?e=Fe(e,Number(/\d{2}/.exec(t)[0]),t,r):je.test(t)?e=Fe(e,8,t,r):ke.test(t)?e=Fe(e,10,t,r):Le.test(t)?e=Fe(e,16,t,r):Te.test(t)?e=Fe(e,2,t,r):Ne.test(t)&&(n="",e<0&&(n="-",e=-e),e=0===(e=Math.floor(e))?"0":e<=5e5?n+(e=_e(e,t)):t+n+e.toExponential(0)),e}function He(e,t,r){var n=Ae(e);return r?n:new RegExp(n||"",t)}function ze(e,t){return t&&(t=Ae(t)),e&&(e=Ae(e)),new RegExp("(?:[#0]+".concat(e,")?[#0]+(?:").concat(t,"[#0]+)?"))}function Be(e,t){if(!e||!e.qNumericalAbbreviation)return Ie;var r={};return e.qNumericalAbbreviation.split(t).forEach((function(e){var t=e.split(":");2===t.length&&(r[t[0]]=t[1])})),r}function Ue(e,t,r){var n,i,o,a,s,u,l,c,p,d=e.pattern;d.indexOf("A")>=0&&(d=d.replace("A",""),e.abbreviate=!0),p=ze(t,r),a=(o=(o=d.match(p))?o[0]:"")?d.substr(0,d.indexOf(o)):d,s=o?d.substring(d.indexOf(o)+o.length):"",o||(o=d?"#":"##########"),t&&t===r&&(i=(n=o.split(r)).pop(),o=n.join("")+r+i,t=""),u=t,t=/,/.test(r)?"¤":",",u&&(o=o.replace(He(u,"g"),t)),l=r,r=".",l&&(o=o.replace(He(l,"g"),r)),c=(c=o.match(/#/g))?c.length:0;var f,m=d.split(l);m[1]&&(f=m[1].match(Pe)),e.prefix=a||"",e.postfix=s||"",e.pattern=d,e.maxPrecision=f?f.length:2,e.percentage=Oe.test(d),e.numericPattern=o||"",e.numericRegex=new RegExp("".concat(He(t,null,!0),"|").concat(He(r,null,!0)),"g"),e.groupTemp=u,e.decTemp=l,e.t=t,e.d=r,e.temp=c}var Ke=function(){function e(t,r,i,o,a){n(this,e),this.localeInfo=t,this.pattern=r,this.thousandDelimiter=i||",",this.decimalDelimiter=o||".",this.type=a||"numeric",this.patternSeparator=";",this.abbreviations=Be(t,this.patternSeparator),this.prepare()}return o(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],Re.test(e[0])&&(n.positive.isFunctional=!0),e[1]?Re.test(e[1])&&(n.negative.isFunctional=!0):n.negative=!1,e[2]?Re.test(e[2])&&(n.zero.isFunctional=!0):n.zero=!1,n.positive.isFunctional||Ue(n.positive,t,r),n.negative&&!n.negative.isFunctional&&Ue(n.negative,t,r),n.zero&&!n.zero.isFunctional&&Ue(n.zero,t,r)):this._prepared={pattern:!1}}},{key:"formatValue",value:function(e){var t,r,n,i,o,a,s,u,l,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=Ve(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,l=(u=c.numericPattern).split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,l||"#"!==u.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,l?l.length:0)).split(".")[0]),v=u.split(o)[0];if(e=Ce(v+=o,y)||"0",l){var x=Math.max(0,Math.min(14,l.length)),q=l.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(u+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(n)/Math.log(10)))),s=0;s<t;s++)u+="#";e=Ce(u,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)}}}}]),e}();function We(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l(Ke,t)}function Ye(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.size,o=void 0===i?5e3:i,a=n.multipleArguments,s=void 0!==a&&a,u=n.toKey,l=void 0===u?function(e){return e}:u,c=Object.create(null),p=Object.create(null),d=0,f=0;return(t=s?function(){return r=l.apply(void 0,arguments),t.has(r)?t.get(r):t.set(r,e.apply(void 0,arguments))}:function(n){return r=l(n),t.has(r)?t.get(r):t.set(r,e(n))}).set=function(e,t){return d>=o&&(delete c[p[f]],delete p[f],d--,f++),c[e]=t,p[d]=e,d++,t},t.get=function(e){return c[e]},t.has=function(e){return e in c},t.clear=function(){c=Object.create(null),p=Object.create(null),d=0,f=0},t.size=function(){return d},t}function Ge(e,t,r,n,i){var o=We(i,e,t,r,n),a=Ye(o.formatValue.bind(o),{toKey:function(e){return isNaN(e)?e:+e}});function s(e){return a(e)}return s.format=function(e,t,r,n){return a.clear(),o.format(t,e,r,n)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}var $e={AUTO:"U",INTEGER:"I",NUMBER:"R",FIXED_TO:"F",MONEY:"M",DATE:"D",TIME:"T",DATE_TIME:"TS",INTERVAL:"IV"},Je=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ze=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],et=86400;function tt(e,t){for(var r=e.length;r<t;r++)e="0".concat(e);return e}function rt(e,t){var r=e.getUTCHours(),n=e.getUTCDay()-1;return t&&((r%=12)||(r=12)),n<0&&(n=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:n,date:e.getUTCDate(),h:r,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}function nt(e){var t=e.toString().split(".");return t[1]?t=Number("0.".concat(t[1])):0}function it(e){var t=e,r=24*nt(t),n=60*nt(r),i=60*nt(n),o=1e3*nt(i);return{d:Math.floor(t),h:Math.floor(r),m:Math.floor(n),s:Math.floor(i),f:Math.round(o)}}function ot(e,t){var r,n=it(e),i=n.d,o=n.h,a=n.m,s=n.s,u=n.f,l=0;/w+|t+/gi.test(t)&&(r=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(et*(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)&&(l=r?r.getDay()-1:0)<0&&(l=6);var c="";return r&&(c=r.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:l,date:i,h:o,m:a,s:s,f:u,t:c}}function at(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:tt("".concat(t.year).slice(-2),2),YYY:tt("".concat(t.year).slice(-3),3),def:function(e){return tt("".concat(t.year),e.length)}},"M+":{M:t.month+1,MM:tt("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:tt("".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 tt("".concat(t.date),e.length)}},"h+|H+":{h:t.h,def:function(e){return tt("".concat(t.h),e.length)}},"m+":{m:t.m,def:function(e){return tt("".concat(t.m),e.length)}},"s+|S+":{s:t.s,def:function(e){return tt("".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=r.slice(0,e.length)}}}}var st=function(){function e(t,r,i){n(this,e);var o,s=t||{};s.qCalendarStrings||(s.qCalendarStrings={qLongDayNames:Je,qDayNames:Ze,qLongMonthNames:Qe,qMonthNames:Xe}),this.localeInfo=s,this.locale_days=s.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=s.qCalendarStrings.qDayNames.slice(),this.locale_months=s.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=s.qCalendarStrings.qMonthNames.slice(),r||(r=(a(o={},$e.TIME,s.qTimeFmt||"hh:mm:ss"),a(o,$e.DATE,s.qDateFmt||"YYYY-MM-DD"),a(o,$e.DATE_TIME,s.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"),o)[i]),this.pattern=r}return o(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=/t+/gi.test(t);e instanceof Date?r=rt(e,n):(e<0&&(e=-e,t="-".concat(t)),r=ot(e,t));var i=at(this,r),o=[];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);var s=new RegExp(o.join("|"),"g");return t.replace(s,(function(e){var t,r,n;for(r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&(t=new RegExp(r)).test(e))break;if(!t)return"";for(var o in i[r])if(o===e||o.toLowerCase()===e){void 0===(n=i[r][o])&&(n=i[r][o.toLowerCase()]);break}return void 0===n&&(n=i[r].def),"function"==typeof n&&(n=n(e)),n}))}}]),e}();function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l(st,t)}var lt=864e5;function ct(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(lt*(e-Math.floor(e)))))}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=ut(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),i=Ye(n.format.bind(n),{toKey:function(e){return"object"===r(e)&&"function"==typeof e.getTime?e.getTime():e}});function o(e){return t!==$e.INTERVAL?ct(e):e}function a(e){return e=o(e),i(e)}return a.format=function(e,t){return i.clear(),t=o(t),n.format(t,e)},a.locale=function(o){return n=ut(o,e,t),i=Ye(n.format.bind(n),{toKey:function(e){return"object"===r(e)?e.getTime():e}}),this},a.qtype=function(e){return void 0!==e&&(t=e,i.clear()),t},a}function dt(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return pt(e.qNumFormat.qFmt,e.qNumFormat.qType,t);var r="#",n=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(r=e.qNumFormat.qFmt||r,n=e.qNumFormat.qThou||n,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(r="#".concat(i,"##A"),o="U"),Ge(r,n,i,o,t)}function ft(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.meta,n=t.id,i=t.key,o=t.localeInfo,a=t.fieldExtractor,s=t.value,u=t.type,l=t.sourceField,c=s||("dimension"===u?function(e){return e.qElemNo}:function(e){return e.qValue}),p=function(e){return e.qText||""},d="dimension"===u?"first":"avg",f=dt(r,o),m={id:function(){return n},key:function(){return i},raw:function(){return r},title:function(){return r.qFallbackTitle||r.label},type:function(){return u},origin:function(){return l},items:function(){return e||(e=a(m)),e},min:function(){return r.qMin},max:function(){return r.qMax},value:c,label:p,reduce:d,reduceLabel:"dimension"===u?"first":function(e,t){return f(t)},formatter:function(){return f},tags:function(){return r.qTags}};return m}function mt(e,t,r,n,i){return(t[e]||[]).map((function(t,o){var a="".concat(n?"".concat(n,"/"):"").concat(e,"/").concat(o),s={instance:ft(I({id:"".concat(r?"".concat(r,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=mt("qAttrDimInfo",t,r,a,I({},i,{value:function(e){return e.qElemNo},type:"dimension"})),s.attrExps=mt("qAttrExprInfo",t,r,a,I({},i,{value:function(e){return e.qNum},type:"measure"})),s.measures=mt("qMeasureInfo",t,r,a,I({},i,{value:function(e){return e.qValue},type:"measure"})),s}))}function ht(){var e,r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.key,a=i.data,s=i.config,u=void 0===s?{}:s,l={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},c=a;if(!c)throw new Error('Missing "data" input');if(!c.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');var d=ht.util,f={cache:l,cube:c,localeInfo:u.localeInfo,fieldExtractor:null,pages:null,hierarchy:function(){return null},virtualFields:u.virtualFields},m={key:function(){return o},raw:function(){return c},field:function(e){return le(e,f)},fields:function(){return l.fields.slice()},extract:function(e){return f.extractor(e,m,l,d)},hierarchy:function(e){return f.hierarchy(e,m,l,d)},_cache:function(){return l}};"K"===c.qMode||"T"===c.qMode||!c.qMode&&c.qNodesOnDim?(f.extractor=Se,f.hierarchy=Ee,f.pages="K"===c.qMode?c.qStackedDataPages:c.qTreeDataPages):"S"===c.qMode?(f.extractor=L,f.pages=c.qDataPages,f.hierarchy=Ee):f.extractor=function(){return[]},f.fieldExtractor=function(e){return f.extractor({field:e},m,l,d)};var h="S"===c.qMode?function(e){return e.qElemNumber}:void 0,g="S"===c.qMode?function(e){return e.qNum}:void 0;return(e=l.wrappedFields).push.apply(e,p(mt("qDimensionInfo",c,o,"",I({},f,{value:h,type:"dimension"})))),(r=l.wrappedFields).push.apply(r,p(mt("qMeasureInfo",c,o,"",I({},f,{value:g,type:"measure"})))),l.fields=l.wrappedFields.map((function(e){return e.instance})),function e(t){t.forEach((function(t){l.allFields.push(t.instance),e(t.measures),e(t.attrDims),e(t.attrExps)}))}(l.wrappedFields),(u.virtualFields||[]).forEach((function(e){var r=m.field(e.from),n=ft(t({meta:r.raw(),id:"".concat(o,"/").concat(e.key),sourceField:r,fieldExtractor:function(e){return f.extractor({field:e},m,l,d)},key:e.key,type:r.type(),localeInfo:f.localeInfo,value:r.value},e.override||{}));l.virtualFields.push(n)})),(n=l.allFields).push.apply(n,p(l.virtualFields)),m}var gt=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],bt=/\/qDimensionInfo(?:\/(\d+))?/,yt=/\/qMeasureInfo\/(\d+)/,vt=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,xt=/\/qAttrExprInfo\/(\d+)/,qt=/\/?qHyperCube/,Dt=/\/?qTreeData/,Et=function(e){return"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14))},St=function(e){return"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13))};function Mt(e,t){var r=e,n=-1,i=-1,o="",a=function(e){return e};qt.test(e)?(o="".concat(r.substr(0,r.indexOf("qHyperCube")+10)),a=Et):Dt.test(e)&&(o="".concat(r.substr(0,r.indexOf("qTreeData")+9)),a=St);var s=!0;if(bt.test(e)&&(n=+bt.exec(e)[1]),yt.test(e)&&(i=+yt.exec(e)[1]),vt.test(e)){i=-1,n=0;var u=+vt.exec(r)[2];isNaN(u)||(n=u,r=r.replace(/\/\d+$/,"")),s=!1}if(xt.test(e)){var l=i;if(t){i=0;var p=ae(o,t);i+=(p.qMeasureInfo||[]).length,n>-1?(i=p.qDimensionInfo.slice(0,n).reduce((function(e,t){return e+t.qAttrExprInfo.length}),i),n=-1):(i=p.qDimensionInfo.reduce((function(e,t){return e+t.qAttrExprInfo.length}),i),i=p.qMeasureInfo.slice(0,l).reduce((function(e,t){return e+t.qAttrExprInfo.length}),i)),i+=+xt.exec(r)[1]}else n>-1?(n=-1,i=+xt.exec(r)[1]):i+=+xt.exec(r)[1]+1}return gt.forEach((function(e){var t=c(e,2),n=t[0],i=t[1];r=r.replace(n,i)})),s&&(r=a(r)),r&&"/"!==r[0]&&(r="/".concat(r)),{measureIdx:i,dimensionIdx:n,path:r}}function Ct(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=r.byCells,o=r.primarySource,a=[],s={},u=e.isActive(),l=!1;return e.brushes().forEach((function(e){var t=Mt(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){var r=e.brush.ranges();r.length&&(l=!0,s.multiRangeSelectTreeDataValues||(s.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),r.forEach((function(e){return s.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})})))}else{if("range"===e.type&&t.measureIdx>-1){var u=e.brush.ranges();u.length&&(l=!0,s.rangeSelectHyperCubeValues||(s.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),u.forEach((function(e){return s.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})})))}if("range"===e.type&&t.dimensionIdx>-1){var c=e.brush.ranges();c.length&&(l=!0,s.selectHyperCubeContinuousRange||(s.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),c.forEach((function(e){return s.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}})})))}if("value"===e.type&&t.dimensionIdx>-1)if(i)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){var p=n.qHyperCube,d=p.qNoOfLeftDims,f=p.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(s.selectPivotCells||(s.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){var m=e.brush.values().map((function(e){return+e})).filter((function(e){return!isNaN(e)}));(0===d||f>=d)&&d>-1?m.forEach((function(e){s.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:f-d})})):m.forEach((function(e){s.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!s.selectPivotCells.cells.length}}else s.selectHyperCubeCells||(s.selectHyperCubeCells={path:t.path,cols:[]}),s.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||s.selectHyperCubeCells.values)||(s.selectHyperCubeCells.values=e.brush.values().map((function(e){return+e})).filter((function(e){return!isNaN(e)})),l=!!s.selectHyperCubeCells.values.length);else{var h=e.brush.values().map((function(e){return+e})).filter((function(e){return!isNaN(e)}));l=!!h.length,a.push({params:[t.path,t.dimensionIdx,h,!1],method:"selectHyperCubeValues"})}}})),!l&&u?[{method:"resetMadeSelections",params:[]}]:(s.rangeSelectHyperCubeValues&&a.push({method:"rangeSelectHyperCubeValues",params:[s.rangeSelectHyperCubeValues.path,s.rangeSelectHyperCubeValues.ranges,[],null===(t=r.orMode)||void 0===t||t]}),s.selectHyperCubeContinuousRange&&a.push({method:"selectHyperCubeContinuousRange",params:[s.selectHyperCubeContinuousRange.path,s.selectHyperCubeContinuousRange.ranges]}),s.selectHyperCubeCells&&a.push({method:"selectHyperCubeCells",params:[s.selectHyperCubeCells.path,s.selectHyperCubeCells.values,s.selectHyperCubeCells.cols]}),s.selectPivotCells&&a.push({method:"selectPivotCells",params:[s.selectPivotCells.path,s.selectPivotCells.cells]}),s.multiRangeSelectTreeDataValues&&a.push({method:"multiRangeSelectTreeDataValues",params:[s.multiRangeSelectTreeDataValues.path,s.multiRangeSelectTreeDataValues.ranges]}),a)}function At(e){ht.util=e.data("matrix").util,e.data("q",ht),e.formatter("q-number",Ge),e.formatter("q-time",pt)}return At.qBrushHelper=Ct,At.selections=Ct,At}(),Rt={brushInterceptors:{DIM_VALUE_NULL:-2,DIM_VALUE_TOTAL:-3,brushOnlyOne:function(e,t){var r=e.brushes().filter((function(e){return"value"===e.type})),n=[];r.length&&r.forEach((function(e){n=n.concat(e.brush.values().map((function(t){return{key:e.id,value:t}})))}));return n.concat(t)},filterValues:function(e,t){var r,n,i=this,o=[],a=0,s=[];return t.forEach((function(t){t.value!==i.DIM_VALUE_NULL&&t.value!==i.DIM_VALUE_TOTAL&&(n=function(e,t){var r=t.key.indexOf("qHyperCube")+"qHyperCube".length,n=t.key.substr(0,r),i=t.key.substr(r+1);return e.dataset(n).field(i)}(e,t),(r=n&&n.raw()).qLocked?(o.push(r),a++):s.push({key:t.key,value:t.value}))})),{items:s,itemsAreLocked:a>0&&a===t.length,lockedFields:o}}}};var Pt={data:["elemNo"],contexts:["select"],startOnEmptySelection:!0,style:{active:{strokeWidth:2,stroke:"#333"},inactive:{opacity:.3}}};function Ft(e){if(!e||!e.chartInstance||!e.selectionsApi)throw Error("Selections-handler: Missing input");var t=e.chartInstance,r=e.selectionsApi,n=e.dataPaths||[""],i=e.selectPaths,o=e.lasso,a=[],s={propertiesToRestore:{}},u=!1,l=function(e,t,r){function n(){}return n.update=function(e,n,i){t.isActive()||t.begin(r),Nt.qBrushHelper(i).forEach((function(e){t.select(e)}))},n.toggleValues=function(n,i,o){var a=Rt.brushInterceptors.filterValues(e,n),s=a.items;return t.isActive()||a.itemsAreLocked||!(o||s.length>0)||(t.begin(r),i.start(),i.emit("update",[],[])),s},n}(t,r,i),c={},p=!1;function d(e){16===e.keyCode&&e.shiftKey!==p&&(p=e.shiftKey,o.toggle())}function f(e){var t=e.keyCode;27===t?r.cancel():13===t&&r.confirm()}function m(){a.forEach((function(e){e.listeners.update=function(t,r){e.sleep||l.update(t,r,e.brush)},e.brush.on("update",e.listeners.update),e.brush.on("start",e.listeners.start)}))}function h(){a.forEach((function(e){e.brush.removeListener("update",e.listeners.update),e.brush.removeListener("start",e.listeners.start)}))}return r.on("cleared",(function(){a.forEach((function(e){e.brush.clear(),e.dependentComponents.forEach((function(e){var r=t.component(e.id);r&&r.emit(e.clear)}))}))})),c.setUp=function(e){c.tearDown();var t=this.setUpBrush(e);return u&&m(),t},c.setUpBrush=function(e){var r=C(!0,{},Pt,e),i={on:"tap",action:function(t){return t.ctrlKey||e.isSingleSelect?"set":"toggle"},contexts:r.contexts,data:r.data,globalPropagation:"stop"},o={context:r.contexts[0],data:r.data,style:r.style},s=function(e,t){return{brush:t.brush(e.contexts[0]),listeners:{},dependentComponents:[],id:e.contexts[0]}}(r,t);return s.listeners.toggle=function(e){if(!u)return[];var i=function(){var e=[],r=n.map((function(e){return t.dataset(e).fields().filter((function(e){return"dimension"===e.type()}))}));r=[].concat.apply([],r);for(var i=0;i<r.length;i++)r[i].raw().qLocked&&e.push(r[i].raw());return{fields:e,areAllFieldsLocked:e.length&&e.length===r.length}}();return r.startOnEmptySelection&&0===e.length&&i.areAllFieldsLocked?[]:l.toggleValues(e,s.brush,r.startOnEmptySelection)},s.brush.intercept("toggle-values",s.listeners.toggle),s.brush.intercept("add-values",s.listeners.toggle),s.brush.intercept("remove-values",s.listeners.toggle),s.brush.intercept("set-values",s.listeners.toggle),s.listeners.start=function(){a.length>1&&a.forEach((function(e){e!==s&&e.brush.end()}))},a.push(s),{trigger:i,consume:o}},c.setUpStart=function(){c.tearDown()},c.setUpDone=function(){u&&m()},c.tearDown=function(){u&&h(),a.forEach((function(e){e.brush.removeInterceptor("toggle-values",e.listeners.toggle),e.brush.removeInterceptor("add-values",e.listeners.toggle),e.brush.removeInterceptor("remove-values",e.listeners.toggle),e.brush.removeInterceptor("set-values",e.listeners.toggle)})),a=[]},c.pauseEngineCalls=function(e){a.forEach((function(t){t.id===e&&(t.sleep=!0)}))},c.resumeEngineCalls=function(e,t){a.forEach((function(r){r.id===e&&(r.sleep=!1,t&&r.listeners.update([],[]))}))},c.addComponent=function(e,t){a.forEach((function(r){r.id===e&&r.dependentComponents.push(t)}))},c.on=function(){if(!u){u=!0,m(),document.addEventListener("keydown",d),document.addEventListener("keyup",d);var e=function(){a.forEach((function(e){e.brush.end()})),document.removeEventListener("keyup",f),o.active()&&o.toggle()};r.on("deactivated",e),s.unbindDeactivated=function(){r.removeListener("deactivated",e)};var t=function(){document.addEventListener("keyup",f)};r.on("activated",t),s.unbindActivated=function(){r.removeListener("activated",t)}}},c.isOn=function(){return u},c.off=function(){u&&(u=!1,h(),document.removeEventListener("keydown",d),document.removeEventListener("keyup",d),document.removeEventListener("keyup",f),s.unbindActivated(),s.unbindDeactivated())},c.lassoState=function(){return o.active()&&!(e.isLassoDisabled&&e.isLassoDisabled())},c.allFieldsLocked=function(){return e=n.map((function(e){return t.dataset(e).fields().filter((function(e){return"dimension"===e.type()}))})),(e=[].concat.apply([],e)).length&&e.every((function(e){return e.raw().qLocked}));var e},c}var _t=function(){function e(){k(this,e)}return T(e,[{key:"isOn",value:function(){return!1}},{key:"on",value:function(){console.warn("Can not turn on selections on this object")}},{key:"off",value:function(){}}]),e}(),Vt=function(e){return e.selectionsApi?Ft(e):new _t};function Ht(e,t,r,n,i){var o=!1;n=n||"tooltip",r=r||["self"];var a=e.brush(n),s={};function u(){o&&e.component(i).emit("hide");o=!1}return s.isOpen=function(){return o},s.closeTooltip=u,s.update=function(){var s=a.brushes(),l=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)}(l)):u()},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 zt=function(){return Ht.apply(void 0,arguments)},Bt={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 Ut=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=[],u=e.labelData,l=!1,c=0;c<u.length;c++){var p=o.data[u[c]].value;if(-2===p.qElemNo||-2===p.qElemNumber){l=!0;break}s.push(o.data[u[c]].value.qText)}if(l)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 u=function(e){for(var t=-1,r=0;r<e.length;r++)-3===e[r]&&(t=r);return t}(s),l=e.translator,c=a.label,p=null===(i=t.attrs)||void 0===i?void 0:i.fill,d=-1!==u?l.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 u=a(s);if("object"===O(u))return u.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 Kt="#".concat("dist-flow-tooltip");function Wt(){if(!document.querySelector(Kt)){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 Yt(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(){Wt()},beforeUpdate:function(){Wt()},destroyed:function(){var e;(e=document.querySelector(Kt))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(Kt)},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 Gt=ut.detectTextDirection;var $t={tooltipKey:"tooltip",data:[""],contexts:["tooltip"],headerResolver:function(e){return e.join(", ")},rowResolver:function(e,t){return{value:Bt.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=I(I({},n.cell),{},{textAlign:s,fontWeight:"bold",direction:Gt(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"},u=r("div",{style:i});t=o?[e.value,u]:[u,e.value]}var l=o?[":",e.label]:[e.label,":"],c=I(I({},n.cell),{},{textAlign:s,direction:Gt(e.label)}),p=I(I({},n.cell),{},{textAlign:o?"left":"right",direction:Gt(e.value)});a.push(r("tr",null,r("td",{style:c},l),r("td",{style:p},t)))}))})),t.numberInExcess){var u=i.get("Object.ChartTooltip.NMore",t.numberInExcess),l=I(I({},n.cell),{},{textAlign:s,direction:Gt(u)});a.push(r("tr",null,r("td",{style:l,colSpan:2},u)))}return a}};function Jt(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){u(n[e])}))}function u(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 l(){Object.keys(n).forEach((function(e){n[e].action.closeTooltip()}))}function c(){for(var e in l(),n)n[e].brush.clear()}return o.setUp=function(t){var o=C(!0,{},$t,t);if(!o.componentKey)throw Error("Tooltips-handler.setUp: Missing required input");n[o.contexts[0]]&&i&&u(n[o.contexts[0]]);var s=function(e,t){return{brush:t.brush(e.contexts[0]),action:zt(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 l,c=Yt({key:o.tooltipKey,rtl:"rtl"===s.direction,fontFamily:s.theme.getStyle(r,"tooltip","fontFamily"),filter:(l=s.filterShapes,function(e){return l?l(e):function(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&"container"!==e.type&&t.push(e)})),t}(e)}),content:Ut(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=l,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),l())},o}var Zt=function(e,t,r){return Jt(e,t,r)};var Qt={generateHash:function(e){return function(e){var t=0;if(!e||!e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}(JSON.stringify(e))},updateHash:function(e,t){e.qUndoExclude||(e.qUndoExclude={});e.qUndoExclude.hashCode=Qt.generateHash(t)}};var Xt={getDefaultHashDataForHyperCube:function(e,t,r){return function(e,t){var r=[];if(!e.qMeasures)return Promise.resolve(r);return e.qMeasures.forEach((function(e){e.qLibraryId?r.push(function(e,t){return t.getMeasure(e).then((function(e){return e.getProperties().then((function(e){return e.qMeasure.qDef}))}))}(e.qLibraryId,t)):r.push(Promise.resolve())})),Promise.all(r)}(e,r).then((function(e){return{drillLevel:tr(t),dimensionExpressions:er(t),measureExpressions:e}}))}};function er(e){return e.qDimensionInfo.map((function(e){return e.qGroupFieldDefs}))}function tr(e){return function(e){return De(e,"qDimensionInfo",[])}(e).map((function(e){return e.qGroupPos}))}var rr={},nr=C.bind(null,!0);function ir(e){return null!=e&&!Array.isArray(e)&&"object"===O(e)}var or=Array.isArray,ar=function(e){return void 0===e};function sr(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function ur(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,i){i!==n.length&&(e[(r=+t)||t]=ar(e[r||t])?Number.isNaN(+r)?{}:[]:e[t],e=e[r||t])})),e}function lr(e,t){if(ir(e)&&ir(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(!lr(e[i],t[i]))return!1}return!0}if(or(e)&&or(t)){if(e.length!==t.length)return!1;for(var o=0,a=e.length;o<a;o++)if(!lr(e[o],t[o]))return!1;return!0}return e===t}rr.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(i){var o=function(e){return e&&(e=nr({},{val:e}).val),e}(t[i]),a=e[i],s="".concat(r,"/").concat(i);lr(o,a)||sr(t,i)||(ar(a)?n.push({op:"add",path:s,value:o}):ir(o)&&ir(a)?n=n.concat(rr.generate(a,o,s)):or(o)&&or(a)?n=n.concat(function(e,t,r){var n,i,o=[],a=e.slice(),s=-1;function u(e,t,r){if(e[r]&&ar(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,i=e.length;n<i;n++)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(lr(t,a))return o;if(null===t[0]||!ar(t[0])&&ar(t[0].qInfo))return o.push({op:"replace",path:r,value:t}),o;for(n=a.length-1;n>=0;--n)-1===(s=u(t,a[n]&&a[n].qInfo&&a[n].qInfo.qId,n))?(o.push({op:"remove",path:"".concat(r,"/").concat(n)}),a.splice(n,1)):o=o.concat(rr.generate(a[n],t[s],"".concat(r,"/").concat(n)));for(n=0,i=t.length;n<i;++n)-1===(s=u(a,t[n]&&t[n].qInfo&&t[n].qInfo.qId))?(o.push({op:"add",path:"".concat(r,"/").concat(n),value:t[n]}),a.splice(n,0,t[n])):s!==n&&(o.push({op:"move",path:"".concat(r,"/").concat(n),from:"".concat(r,"/").concat(s)}),a.splice(n,0,a.splice(s,1)[0]));return o}(a,o,s)):n.push({op:"replace",path:"".concat(r,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){ar(t[i])&&!sr(e,i)&&n.push({op:"remove",path:"".concat(r,"/").concat(i)})})),n},rr.apply=function(e,t){t.forEach((function(t){var r,n=ur(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&Number.isNaN(+i)?n[i]:n[+i]||n,a=t.from?t.from.split("/").splice(-1)[0]:null;if("add"===t.op||"replace"===t.op)if(or(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(or(o)&&or(t.value)){var s=t.value.slice();o.length=0,o.push.apply(o,s)}else ir(o)&&ir(t.value)?(r=o,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!sr(r,e)&&delete r[e]})),nr(o,t.value)):n[i]=t.value;else if("move"===t.op){var u=ur(e,t.from);or(n)?n.splice(+i,0,u.splice(+a,1)[0]):(n[i]=u[a],delete u[a])}else"remove"===t.op&&(or(n)?n.splice(+i,1):delete n[i])}))},rr.clone=function(e){return nr({},e)},rr.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},rr.updateObject=function(e,t){Object.keys(e).length?rr.apply(e,rr.generate(e,t)):nr(e,t)};var cr=function(){function e(t){k(this,e),this._model=t}var t;return T(e,[{key:"setModel",value:function(e){this._model=e}},{key:"saveSoftProperties",value:function(e,t){if(!this._model)return Promise.resolve(!1);var r=rr.generate(e,t);return C(!0,e,t),r&&r.length?(r=r.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),this._model.applyPatches(r,!0).then((function(){return!0}))):Promise.resolve(!1)}},{key:"mergeSoftPatches",value:(t=j(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._model){e.next=2;break}return e.abrupt("return");case 2:return t=this._model.getProperties(),r=this._model.getEffectiveProperties(),e.next=6,t;case 6:return n=e.sent,e.next=9,r;case 9:if(i=e.sent,!n.qExtendsId){e.next=12;break}return e.abrupt("return");case 12:o=rr.generate(n,i),rr.apply(n,o),(a=this)._model.setProperties(n).then((function(){a._model.clearSoftPatches()}));case 16:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),pr={canModifyHardProperties:function(e){if(e.qHasSoftPatches||e.qExtendsId)return!1;if(e.permissions)return e.permissions.update;return-1!==e.qMeta.privileges.indexOf("update")}};var dr={saveDerivedProperties:function(e,t,r,n){if(pr.canModifyHardProperties(t))return e.setProperties(r);return new cr(e).saveSoftProperties(n,r)}};var fr={validate:function(e){if(!(e&&e.layout&&e.properties&&e.model&&e.hashData&&e.generateDerivedProperties))throw Error("Derived-properties: Missing input")}};function mr(){this._generationInProgress=!1}function hr(e){fr.validate(e);var t=e.properties,r=Qt.generateHash(e.hashData);return!(!t.qUndoExclude||t.qUndoExclude.hashCode!==r)}mr.prototype.isDerivedUpToDate=hr,mr.prototype.updateDerivedProperties=function(e){if(fr.validate(e),this._generationInProgress)return Promise.resolve(!0);if(hr(e)){var t=e.layout.qUndoExclude&&e.layout.qUndoExclude.hashCode===e.properties.qUndoExclude.hashCode;return Promise.resolve(!t)}var r=this,n=e.model,i=e.layout,o=C(!0,{},e.properties),a=C(!0,{},o);return this._generationInProgress=!0,Qt.updateHash(o,e.hashData),e.generateDerivedProperties(i,o).then((function(){return dr.saveDerivedProperties(n,i,o,a).then((function(){return r._generationInProgress=!1,Promise.resolve(!0)}))}))},mr.prototype.addDefaultHyperCubeHash=function(e,t,r,n){return Xt.getDefaultHashDataForHyperCube(e,t,r).then((function(e){return C(!0,n,e)}))};var gr={wrapExpression:function(e){var t=e.replace(/\]/g,"]]");return t?"[".concat(t,"]"):""}};var br={replaceExpressionTokens:function(e,t,r){var n,i,o={start:r&&r.start||"{{",end:r&&r.end||"}}"},a=e;for(var s in t)n=t[s],i=o.start+s+o.end,a=a.replace(yr(i,!0),n);return a},createRegExp:yr};function yr(e,t,r){var n=e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"),i=r?"(".concat(n,")"):n;return t?new RegExp(i,"g"):new RegExp(i)}var vr={generateExpression:function(e,t){var r={};if(t){var n=function(e){var n=t[e],i=n.wrap?gr.wrapExpression(n.value):n.value;r[e]=i,(n.variations||[]).forEach((function(t){var n=function(e,t,r){if(""===t)return"";var n=br.createRegExp(r,!0,!0),i=e.split(n),o="";return i.forEach((function(e){o+=e!==r?e:t})),o}(t,i,e);r[t]=n}))};for(var i in t)n(i)}return br.replaceExpressionTokens(e,r)}};var xr={generateHyperCubeDef:function(e,t,r,n,i){return function(e,t,r,n){var i,o={},a=[];e.forEach((function(e){Cr(e.match(Mr("Dim"))).forEach((function(e){a.push(Dr(t.qDimensions[e],n,e,r).then((function(t){o["Dim[".concat(e,"]")]={value:t,wrap:!0}})))})),Cr(e.match(Mr("Mea"))).forEach((function(e){a.push(Er(t.qMeasures[e],n).then((function(t){o["Mea[".concat(e,"]")]={value:t}})))}))})),i=a.length?Promise.all(a).then((function(){return Promise.resolve(o)})):Promise.resolve(o);return i}(e.dimensions.concat(e.measures),t,r,n).then((function(r){var n=C({},r,i),o=C(!0,{},t);return o.qDimensions=[],o.qMeasures=[],e.dimensions.forEach((function(e){o.qDimensions.push({qDef:{qFieldDefs:["=".concat(vr.generateExpression(e,n))]}})})),e.measures.forEach((function(e){o.qMeasures.push({qDef:{qDef:vr.generateExpression(e,n)}})})),o}))},getAllHyperCubeExpressions:function(e,t,r){return qr.apply(this,arguments)}};function qr(){return(qr=j(regeneratorRuntime.mark((function e(t,r,n){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.qDimensions.map((function(e,t){return Dr(e,n,t,r)})),o=t.qMeasures.map((function(e){return Er(e,n)})),e.next=4,Promise.all(i);case 4:return e.t0=e.sent,e.next=7,Promise.all(o);case 7:return e.t1=e.sent,e.abrupt("return",{dimensions:e.t0,measures:e.t1});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dr(e,t,r,n){if(e.qLibraryId)return Sr(e.qLibraryId,"dimension",t,r,n);var i=n.qDimensionInfo[r].qGroupPos;return Promise.resolve(e.qDef.qFieldDefs[i])}function Er(e,t){return e.qLibraryId?Sr(e.qLibraryId,"measure",t):Promise.resolve(e.qDef.qDef)}function Sr(e,t,r,n,i){return r?r["dimension"===t?"getDimension":"getMeasure"](e).then((function(e){return e.getProperties().then((function(e){return"dimension"===t?e.qDim.qFieldDefs[i.qDimensionInfo[n].qGroupPos]:e.qMeasure.qDef}))})):(console.warn("No app provided, returning library id"),e)}function Mr(e){return new RegExp("\\{\\{".concat(e,"\\[\\d\\]\\}\\}"),"g")}function Cr(e){return e?e.map((function(e){return e.substr(6,1)})):[]}function Ar(e){return!Number.isNaN(parseFloat(e))&&Number.isFinite(+e)}function Ir(e){return!Number.isNaN(parseInt(e,10))&&parseFloat(e,10)===parseInt(e,10)}var Or={getBinSize:function(e){return De(e,"bins.binSize",U.BIN_SIZE)},getDerivedBinSize:function(e){return De(e,"qUndoExclude.bins.binSize",U.BIN_SIZE)},getDerivedBinOffset:function(e){return De(e,"qUndoExclude.bins.offset",U.OFFSET)},getDerivedBinCount:function(e){var t=De(e,"qUndoExclude.bins.binCount",U.BIN_COUNT);return Ar(t)?t<1?1:Ir(t)?t:Math.ceil(t):U.BIN_COUNT},getBinCount:function(e){return De(e,"bins.binCount",void 0)},getBinOffset:function(e){return De(e,"bins.offset",U.OFFSET)},isAutoBin:function(e){return De(e,"bins.auto",U.AUTO)},isCountDistinct:function(e){return De(e,"bins.countDistinct",U.COUNT_DISTINCT)},getBinMode:function(e){return De(e,"bins.binMode",U.BIN_MODE)},isEmpty:function(e){return null==e||""===e}},wr=Math.log(10),jr=[1,1.5,2,3,4,5,6,10],kr=[1,2,4,5,6,8,10],Lr=[2,4,5,10];function Tr(e,t){if(0===e)return 0;for(var r,n=Math.floor(Math.log(Math.abs(e))/wr),i=e/Math.pow(10,n),o=0;o<t.length;o++)if(i<=t[o]){r=t[o];break}return(n>=0?r*Math.pow(10,n):r/Math.pow(10,-n))*(e<0?-1:1)}function Nr(e,t,r,n,i,o){return Math.floor(Math.abs(e-i)/n)+Math.floor(Math.abs(o-t)/n)}var Rr={calculateBinSize:function(e,t,r){return function(e,t,r){if(!Ar(e)||!Ar(t)||!Ar(r))throw Error("binSizeCalculator: One of the inputs is NOT numeric");if(e>t)throw Error("binSizeCalculator: The 'min' parameter is bigger than the 'max' parameter")}(e,t,r),function(e,t,r){var n,i,o,a,s,u,l,c,p,d,f,m,h=-1,g=jr;if(r=Math.max(1,r),t===e)if(0===t){if(a=1,1===r)return{min:e,max:t,nbrOfBins:r,rawBinSize:o/r,offset:-.5,newMax:.5,binSize:1,numEmptyBins:0}}else 1===r?(a=t+1e-9,g=kr):a=Math.abs(t/r);else a=(o=(t+=1e-9)-e)/r;do{if(c=1,f=0,h>=0)for(p=1/Lr[h],d=1,g=[];d<=10;)g.push(Math.round(1e3*d)/1e3),d+=p;s=a;do{s=Tr(s*c,g),u=Math.floor(Math.log(s)/wr),l=Math.pow(10,u),n=(i=t===e?(Math.ceil(t/s)+Math.floor(r/2))*s:Math.ceil(t/s)*s)-r*s;var b=0;for(m=l;(n>e||i<t)&&b<Lr.length;)i=(n=Math.floor(e/m)*m)+r*s,m=l/Lr[b++];u<1&&(l=Math.pow(10,Math.abs(u)+1),i=Math.round(i*l)/l,n=Math.round(n*l)/l),c=1.1,f++}while((n>e||i<t)&&f<10);h++}while(Nr(e,t,0,a,n,i)>0&&h<Lr.length);return{binCount:r,offset:n,binSize:s}}(e,t,r=function(e){return e<1?1:Ir(e)?e:Math.ceil(e)}(r))}};var Pr={getMappingValues:function(e){var t,r,n,i,o=Or.isAutoBin(e),a=Or.getBinMode(e),s=Or.isCountDistinct(e);return o||"maxCount"===a?(t=(i=function(e){var t=De(e,"qHyperCube.qDimensionInfo.0",{}),r=t.qMin,n=t.qMax;r=Ar(r)?r:1,n=Ar(n)?n:1;var i=Or.getDerivedBinCount(e);return Rr.calculateBinSize(r,n,i)}(e)).binSize,r=i.offset,n=i.binCount):(t=Or.getBinSize(e),r=Or.getBinOffset(e)),{binSize:t,binOffset:r,binCount:n,distinct:s}},getMappings:function(e){var t={};return t.BinSize={value:",".concat(e.binSize)},t.Label={value:0===e.binOffset?"":",'x'"},t.Offset={value:0===e.binOffset?"":",".concat(e.binOffset)},t.Distinct={value:e.distinct?"Distinct ":""},t}};function Fr(){return(Fr=j(regeneratorRuntime.mark((function e(t,r,n){var i,o,a,s,u,l,c,p,d,f,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.app,o=n.translator,a=Pr.getMappingValues(t),s=Pr.getMappings(a),u={dimensions:["Class(aggr({{Dim[0]}},{{Dim[0]}}){{BinSize}}{{Label}}{{Offset}})"],measures:["Count({{Distinct}}{{Dim[0]}})"]},l="=Ceil(Log10(Count({{Dim[0]}})) / Log10(2)) + 1",c=xr.getAllHyperCubeExpressions(r.qHyperCubeDef,t.qHyperCube,i),p=xr.generateHyperCubeDef(u,r.qHyperCubeDef,t.qHyperCube,i,s),e.next=9,c;case 9:return d=e.sent,e.next=12,p;case 12:f=e.sent,m=Or.isAutoBin(t)?{qValueExpression:{qExpr:vr.generateExpression(l,{"Dim[0]":{value:d.dimensions[0],wrap:!0}})}}:"maxCount"===Or.getBinMode(t)&&Or.isEmpty(r.bins.binCount)?Or.getDerivedBinCount(t):r.bins.binCount,Ee(f,"qDimensions.0.qDef.qSortCriterias",[{qSortByNumeric:1}]),Ee(f,"qDimensions.0.qDef.qFieldLabels",[t.qHyperCube.qDimensionInfo[0].qFallbackTitle]),Ee(f,"qMeasures.0.qDef.qLabel",t.measureAxis.label||o.get("Visualization.Histogram.MeasureAxisLabel")),Ee(r,"qUndoExclude.box.qHyperCubeDef",f),Ee(r,"qUndoExclude.bins.binSize",a.binSize),Ee(r,"qUndoExclude.bins.offset",a.binOffset),Ee(r,"qUndoExclude.bins.binCount",m);case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var _r={generateHyperCubes:function(e,t,r){return Fr.apply(this,arguments)}};var Vr={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 Hr={callLassoGesture:function(e,t,r){return{type:"Pan",options:{direction:M.DIRECTION_ALL,threshold:1,enable:function(n,i){if(e.lassoing)return t.isSelectionEnabled();var o,a=Vr.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){Vr.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 zr={callMeasureRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?M.DIRECTION_HORIZONTAL:M.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=Vr.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];Vr.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 Br(e,t){return"x-axis"===e?"horizontal"===t?M.DIRECTION_VERTICAL:M.DIRECTION_HORIZONTAL:"horizontal"===t?M.DIRECTION_HORIZONTAL:M.DIRECTION_VERTICAL}var Ur={callAreaRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"measurerange";return{type:"Pan",options:{direction:Br(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=Vr.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];Vr.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 Kr={callDimensionRangeGesture:function(e,t,r,n){var i=r.keys.measureRangeBrushKey?"measurerange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?M.DIRECTION_VERTICAL:M.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=Vr.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];Vr.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 Wr={callDragGesture:function(e,t,r,n,i){var o={};return{type:"Pan",options:{direction:r.isHorizontal?M.DIRECTION_VERTICAL:M.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 Yr={callNavBtnGesture:function(e,t){return{type:"Tap",options:{event:"navBtnTap",enable:function(r,n){return!(!n||!e())&&Vr.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 Gr={create:function(e,t,r,n,i){var o={};t=t||"vertical";var a=n.lassoBrushKey||"select",s=n.dimRangeBrushKey||null,u=n.measureRangeBrushKey||null,l=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=u;break;case"arearange":y(i,"rangeMinor","areaClear",r),n=l}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?u?"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(Yr.callNavBtnGesture(x.isNavigationEnabled,c)),v.push(Hr.callLassoGesture(d,x,q)),s?u?(v.push(Kr.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(zr.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(u,{id:"rangeMeasure",clear:"rangeClear"})):(v.push(Kr.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(Ur.callAreaRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(l,{id:"rangeMinor",clear:"areaClear"})):(v.push(zr.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(u,{id:"rangeMeasure",clear:"rangeClear"}),v.push(Ur.callAreaRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(l,{id:"rangeMinor",clear:"areaClear"}))),e.scrollHandler&&(v.push(Wr.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 $r(e){var t=De(e,"qUndoExclude.box.qHyperCube.qDimensionInfo.0.qApprMaxGlyphCount",0);return Math.min(20,t)}var Jr={createSettings:function(e){return{settings:{labels:{maxGlyphCount:$r(e)}}}}};var Zr={createSettings:function(e){var t,r,n=Or.isAutoBin(e),i=Or.getBinMode(e),o=Or.getDerivedBinSize(e);if(n||"maxCount"===i){var a=Or.getDerivedBinOffset(e);t=a,r=a+Or.getDerivedBinCount(e)*o}else{var s=De(e,"qUndoExclude.box.qHyperCube.qDimensionInfo.0",{});t=s.qMin||0,r=(s.qMax||0)+o}return{component:{type:"linear",min:t,max:r}}}},Qr={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}},Xr=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,en=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,tn=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,rn=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,nn=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,on=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,an=Math.floor,sn=Math.round,un=Ze.extend({init:function(){var e,t,r,n,i,o,a,s,u,l,c,p,d=0,f=0,m=0,h=1;if(this._invalid=!1,arguments[0]instanceof un)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)),u=[],a=Math.floor(a)){case 0:u=[o,s,0];break;case 1:u=[s,o,0];break;case 2:u=[0,o,s];break;case 3:u=[0,s,o];break;case 4:u=[s,0,o];break;case 5:u=[o,0,s];break;default:u=[0,0,0]}l=n-.5*o,d=u[0]+l,f=u[1]+l,m=u[2]+l,d=sn(255*d),f=sn(255*f),m=sn(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)),u=[],a=Math.floor(a)){case 0:u=[o,s,0];break;case 1:u=[s,o,0];break;case 2:u=[0,o,s];break;case 3:u=[0,s,o];break;case 4:u=[s,0,o];break;case 5:u=[o,0,s];break;default:u=[0,0,0]}l=n-.5*o,d=u[0]+l,f=u[1]+l,m=u[2]+l,d=sn(255*d),f=sn(255*f),m=sn(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)),u=[],a=Math.floor(a)){case 0:u=[o,s,0];break;case 1:u=[s,o,0];break;case 2:u=[0,o,s];break;case 3:u=[0,s,o];break;case 4:u=[s,0,o];break;case 5:u=[o,0,s];break;default:u=[0,0,0]}l=i-o,d=u[0]+l,f=u[1]+l,m=u[2]+l,d=sn(255*d),f=sn(255*f),m=sn(255*m),h=1}else Qr[p.toLowerCase()]?(r=p.toLowerCase(),d=Qr[r].r,f=Qr[r].g,m=Qr[r].b,h="number"==typeof Qr[r].a?Qr[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=an(d),this._g=an(f),this._b=an(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=un.toRGB(this)),this._spaces.rgb},toRGBA:function(){return this._spaces.rgba||(this._spaces.rgba=un.toRGBA(this)),this._spaces.rgba},toString:function(){return this._spaces.rgb||(this._spaces.rgb=un.toRGB(this)),this._spaces.rgb},toHex:function(){return this._spaces.hex||(this._spaces.hex=un.toHex(this)),this._spaces.hex},toHSL:function(e){return this._spaces.hsl||(this._spaces.hsl=un.toHSL(this,e)),this._spaces.hsl},toHSLA:function(e){return this._spaces.hsla||(this._spaces.hsla=un.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=un.toHSVComponents(this)),this._spaces.hsvComp},toNumber:function(){return this._spaces.num||(this._spaces.num=un.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 un||(e=new un(e)),this._r===e._r&&this._g===e._g&&this._b===e._b},blend:function(e,t){var r=an(this._r+(e._r-this._r)*t),n=an(this._g+(e._g-this._g)*t),i=an(this._b+(e._b-this._b)*t),o=an(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 un(n)}});un.toRGB=function(e){if(e instanceof un)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=un.toNumber(e));var t=(65280&e)>>8,r=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(r,")")},un.toRGBA=function(e,t){if(e instanceof un)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=un.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,")")},un.toHex=function(e){var t,r,n;return e instanceof un?(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=un.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))},un.toHSL=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new un(e));var a=e._r/255,s=e._g/255,u=e._b/255,l=Math.max(a,s,u),c=Math.min(a,s,u);if(n=t?.21*a+.72*s+.07*u:(l+c)/2,l===c)r=0,o=0;else{switch(i=l-c,r=n>.5?i/(2-l-c):i/(l+c),l){case a:o=(s-u)/i+(s<u?6:0);break;case s:o=(u-a)/i+2;break;case u:o=(a-s)/i+4}o/=6}return"hsl(".concat(360*o,",").concat(100*r,",").concat(100*n,")")},un.toHSLA=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new un(e));var a=e._r/255,s=e._g/255,u=e._b/255,l=e._a,c=Math.max(a,s,u),p=Math.min(a,s,u);if(n=t?.21*a+.72*s+.07*u:(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-u)/i+(s<u?6:0);break;case s:o=(u-a)/i+2;break;case u:o=(a-s)/i+4}o/=6}return"hsla(".concat(360*o,",").concat(100*r,",").concat(100*n,",").concat(l,")")},un.toHSVComponents=function(e){var t,r,n=0;"string"==typeof e&&(e=new un(e));var i=e._r/255,o=e._g/255,a=e._b/255,s=Math.max(i,o,a),u=Math.min(i,o,a),l=s;if(s===u)t=0,n=0;else{switch(t=0===(r=s-u)?0:r/l,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*l}},un.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof un)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},un.blend=function(e,t,r){var n=(16711680&(e=un.toNumber(e)))>>16,i=(65280&e)>>8,o=255&e;return(n+(((16711680&(t=un.toNumber(t)))>>16)-n)*r<<16)+(i+(((65280&t)>>8)-i)*r<<8)+(o+((255&t)-o)*r)},un.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 un(n,i,o,a)},un.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(Xr.test(e)||en.test(e)||tn.test(e)||rn.test(e)||nn.test(e)||on.test(e)||Qr[e.toLowerCase()])},un.getBestContrast=function(e,t,r){var n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-r.getLuminance())?t:r},un.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)}},un.isDark=function(){var e={getLuminance:un.prototype.getLuminance,isInvalid:un.prototype.isInvalid};return un.prototype.init.apply(e,[].slice.call(arguments)),un.prototype.isDark.call(e)},un.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t};var ln={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 un(e);return 0===t.getAlpha()?this.BLACK:t.isDark()?this.WHITE:this.BLACK},getContrastingGrey:function(e){var t=new un(e);return 0===t.getAlpha()?this.DARK_GREY:un.getBestContrast(t,new un(ln.LIGHT_GREY),new un(ln.DARK_GREY))},getBestContrast:function(e,t,r){return un.getBestContrast(new un(e),new un(t),new un(r))},getContrastingTransparent:function(e){var t=new un(e);return 0===t.getAlpha()||"none"===e?this.TRANSPARENT_BLACK:t.isDark()?this.TRANSPARENT_WHITE:this.TRANSPARENT_BLACK}};var cn={createSettings:function(e,t,r,n,i,o){var a=e.environment.theme.getColorPickerColor(t.color.bar.paletteColor),s=Or.getDerivedBinSize(t),u=[],l=[r.consume,n.consume,i.consume];return e._tooltipHandler.isOn()&&(u.push(o.box.trigger),l.push.apply(l,o.box.consume)),u.push(r.trigger),{key:"box-marker",settings:{box:{fill:a,stroke:ln.getContrastingGrey(a).toHex(),strokeWidth:1,maxWidthPx:1/0,minWidthPx:NaN,minWidth:0},major:{scale:"dimension",ref:{start:"binStart",end:"binEnd"}},minor:{scale:"measure"},whiskers:!1,orientation:"vertical"},brush:{trigger:u,consume:l},data:{extract:{field:"qDimensionInfo/0",props:{start:0,end:{field:"qMeasureInfo/0"},measure:{field:"qMeasureInfo/0",reduce:"first",value:function(e){return e},reduceLabel:"none"},binStart:{field:"qDimensionInfo/0",value:function(e){return e.qNum}},binEnd:{field:"qDimensionInfo/0",value:function(e){return e.qNum+s}},elemNo:{field:"qDimensionInfo/0"},bin:{field:"qDimensionInfo/0",value:function(e){return e}}}}}}}};var pn={createSettings:function(e,t){var r=t.getColorPickerColor(e.color.bar.paletteColor);return{settings:{sources:[{strategy:{settings:{labels:[{placements:[{},{fill:ln.getInverse(r)}]}]}}}]}}}};function dn(e){return De(e,"qHyperCube.qDimensionInfo.0.qIsOneAndOnlyOne",!1)}var fn={createChartSettings:function(e,t){var r=e.isRtl(),n=De(t,"qHyperCube.qDimensionInfo.0",{}).qFallbackTitle||"",i=e.environment,o=i.theme,a=i.translator,s=St.create({chartID:"object.histogram",theme:o,isRtl:r}),u={},l={},c={};e._selectionHandler.isOn()&&(e._selectionHandler.setUpStart(),u=e._selectionHandler.setUpBrush({contexts:["select"],data:["elemNo"],dataPath:"qUndoExclude/box"}),l=e._selectionHandler.setUpBrush({contexts:["select-dimension"],data:["elemNo"],dataPath:"qUndoExclude/box",isSingleSelect:dn(t)}),c=e._selectionHandler.setUpBrush({dataPath:"qUndoExclude/box",contexts:["select-measure"],data:["end"]}),e._selectionHandler.setUpDone());var p={box:{}};e._tooltipHandler.isOn()&&(p.box=e._tooltipHandler.setUp({chartBuilder:s,environment:e.environment,data:[""],contexts:["boxTip"],componentKey:"box-marker",measureRows:["measure"],labelData:["bin"]}));var d=function(e){var t={};return e?(t.isOpenDim=!1,t.isOpenMea=!1):(t.isOpenDim=!0,t.isOpenMea=!0),t}(function(e){var t=e.qUndoExclude&&e.qUndoExclude.box&&e.qUndoExclude.box.qHyperCube&&e.qUndoExclude.box.qHyperCube.qDimensionInfo?e.qUndoExclude.box.qHyperCube.qDimensionInfo:void 0;return!!t&&!!t[0].qLocked}(t)),f={scrollHandler:null,selectionHandler:e._selectionHandler};this._dependentActions&&this._dependentActions.destroy(),this._dependentActions=Gr.create(f,"vertical",r,{componentKey:"box-marker",lassoBrushKey:"select",dimRangeBrushKey:null,measureRangeBrushKey:"select-measure",areaBrushKey:"select-dimension"},d),s.addPreset("dimension-measure-chart",{isRtl:r,includeDimensionAxis:!0,orientation:"vertical",selectionsEnabled:e._selectionHandler.isOn(),theme:o,measureSource:"qMeasureInfo/0",measureScaleSettings:{component:{expand:0,include:[0]}},enableLasso:!0,lasso:{brushKey:"select",brushComponents:["box-marker"]},enableMeasureRange:!0,measureRange:{brushKey:"select-measure",brushAxis:"y-axis",brushArea:"box-marker",brushScale:"measure"},enableAreaRange:!0,areaRange:{brushKey:"select-dimension",brushAxis:"x-axis",brushData:["elemNo"],brushArea:"box-marker",brushScale:"rangeSelSettings",brushComponents:["box-marker"],multiple:!0,chartInstance:e.chartInstance},brushActions:this._dependentActions.gestures,dimensionSource:"qDimensionInfo/0",dimensionScaleSettings:Zr.createSettings(t),measureAxisProperties:t.measureAxis,measureTitleText:t.measureAxis.label||a.get("Visualization.Histogram.MeasureAxisLabel"),dimensionAxisProperties:t.dimensionAxis,dimensionAxisSettings:Jr.createSettings(t),dimensionTitleText:n,gridlines:t.gridlines,hasNavigation:!1,isNavigationEnabledFn:function(){return!1},refLines:t.refLine&&t.refLine.refLines});var m=s.getSettings(),h=cn.createSettings(e,t,u,l,c,p);if(s.addComponent("box-marker",h),t.dataPoint&&t.dataPoint.showLabels){var g=pn.createSettings(t,o);s.addComponent("labels",g)}return e.addSnapshotChartSettings(m,t),m.scales.rangeSelSettings={type:"linear",min:m.scales.dimension.min,max:m.scales.dimension.max,source:"qDimensionInfo/0"},m}};var mn=jt.extend("Histogram",{namespace:".histogram",init:function(e){var t=e.environment,r=e.lasso,n=e.picasso,i=e.$element,o=e.backendApi,a=e.selectionsApi,s=e.renderState;this._super(n,i,t,o,a),this.renderState=s,this.picassoElement.__do_not_use_findShapes=this.chartInstance.findShapes.bind(this.chartInstance),this._derivedProperties=new mr,this._selectionHandler=Vt({model:o.model,chartInstance:this.chartInstance,selectionsApi:a,selectPaths:["/qUndoExclude/box/qHyperCubeDef"],lasso:r}),this._tooltipHandler=Zt(this.chartInstance,i,"object.histogram"),this.setDataPaths(["qUndoExclude/box/qHyperCube"])},updateConstraints:function(e){var t=!e.passive,r=!e.select&&!e.active;this._tooltipHandler[t?"on":"off"](),this._selectionHandler[r?"on":"off"]()},off:function(){this._tooltipHandler.off(),this._selectionHandler.off()},createChartSettings:function(e){return fn.createChartSettings(this,e)},setSnapshotData:function(e){return this._super(e),e.qUndoExclude.box.qHyperCube.qDataPages=this.layout.qUndoExclude.box.qHyperCube.qDataPages,Promise.resolve(e)},getDisclaimerAttributes:function(e){var t,r,n=1===(t=De(e,"qUndoExclude.box.qHyperCube.qDataPages.0.qMatrix",[])).length&&t[0][0]&&t[0][0].qIsNull;return{data:e.qUndoExclude&&e.qUndoExclude.box,supportedDisclaimers:{LimitedData:!0,OnlyNanData:!0,OnlyNegativeOrZeroValues:!n,RequireNumericDimension:!0},options:{bottom:!0,supportNegative:!1,explicitOnlyNanData:n,explicitRequireNumericDimension:(r=e.qHyperCube,r.qDimensionInfo.length>0&&-1===r.qDimensionInfo[0].qTags.indexOf("$numeric"))}}},updateChart:function(e,t){if(!e.qUndoExclude)return Promise.resolve();this._super(e,t)},updateData:function(e){var t=this,r=this;return r._super(e).then((function(){if(r._destroyed)return Promise.reject();e=r.layout;var n={height:Math.min(e.qHyperCube.qSize.qcy,1e3),width:2},i=r.backendApi.model;return!!t.layout.snapshotData?Promise.resolve():i.getEffectiveProperties().then((function(t){return r._destroyed?Promise.reject():r._derivedProperties.addDefaultHyperCubeHash(t.qHyperCubeDef,e.qHyperCube,r.environment.app,function(e,t){return{box:t.qHyperCubeDef,binMappings:Pr.getMappingValues(e),binProperties:t.bins,measureAxis:t.measureAxis,version:"2.0"}}(e,t)).then((function(o){if(r._destroyed)return Promise.reject();var a={layout:e,properties:t,model:i,hashData:o,generateDerivedProperties:function(e,t){return _r.generateHyperCubes(e,t,r.environment)}};return r._derivedProperties.isDerivedUpToDate(a)?e.qUndoExclude?(r.renderState.restore(),r.backendApi.updateCache(e.qUndoExclude.box),r.getData(r.backendApi,e.qUndoExclude.box.qHyperCube,n)):Promise.resolve():(r.renderState.pending(),r._derivedProperties.updateDerivedProperties(a))}))}))}))},paint:function(){var e=this.layout.qUndoExclude;return e&&e.box&&e.box.qHyperCube.qDataPages.length?this._super():Promise.resolve(!1)},isLassoDisabled:function(){return!1}}),hn=function(){function e(t){k(this,e),this.model=t,this.path="/qUndoExclude/box/qHyperCubeDef"}return T(e,[{key:"setCacheOptions",value:function(e){e.maxStackedValues}},{key:"updateCache",value:function(e){}},{key:"getData",value:function(e){return this.model.getHyperCubeData(this.path,e)}}]),e}(),gn={exports:{}};window;var bn=Lt(gn.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"===O(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":
|
|
10
10
|
/*!***************************************!*\
|
|
@@ -971,5 +971,5 @@ function(e,t,r){r.r(t),t.default={useMasterNumberFormat:function(e){e.quarantine
|
|
|
971
971
|
!*** ./utils/wrap-file-name.js ***!
|
|
972
972
|
\*********************************/
|
|
973
973
|
/*! exports provided: default */
|
|
974
|
-
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}))}}));var yn={onChangeCalcCond:function(e){var t,r,n=null==e?void 0:e.qHyperCubeDef,i=null==e||null===(t=e.qUndoExclude)||void 0===t||null===(r=t.box)||void 0===r?void 0:r.qHyperCubeDef;n&&i&&(i.qCalcCond=n.qCalcCond,i.qCalcCondition=n.qCalcCondition)}};function vn(e){return!(e.bins&&e.bins.auto)}function xn(e){return vn(e)&&"maxCount"===e.bins.binMode}function qn(e){var t=e.translator,r=e.anything.sense.theme;return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{translation:"Common.Fields",alternativeTranslation:"properties.alternative.fields",items:{dimensionLimits:{show:!1,items:{otherMode:{readOnly:!1},otherSortMode:{show:function(e){return"OTHER_COUNTED"===De(e,"qOtherTotalSpec.qOtherMode")}},otherCounted:{show:function(e){return"OTHER_COUNTED"===De(e,"qOtherTotalSpec.qOtherMode")}},otherLimitMode:{show:function(e){var t=De(e,"qOtherTotalSpec.qOtherMode");return"OTHER_ABS_LIMITED"===t||"OTHER_REL_LIMITED"===t}},otherLimit:{show:function(e){var t=De(e,"qOtherTotalSpec.qOtherMode");return"OTHER_ABS_LIMITED"===t||"OTHER_REL_LIMITED"===t}},calculatedAgainstMessage:{show:!0,label:function(){var e=t.get("properties.histogram.staticMeasureName");return t.get("Properties.DimensionLimits.CalculatedAgainst",e)}}}},others:{show:!1,items:{suppressOther:{defaultValue:!0}}}}}}},bins:{translation:"Visualization.Histogram.Bins",type:"items",component:"items",items:{auto:{ref:"bins.auto",translation:"Visualization.Histogram.Binning",component:"switch",type:"boolean",defaultValue:!0,undefinedValue:!1,options:[{value:!0,translation:"Visualization.Histogram.Binning.Auto"},{value:!1,translation:"Visualization.Histogram.Binning.Custom"}]},autoMessage:{component:"text",translation:"Visualization.Histogram.Binning.AutoDescription",show:function(e){return!vn(e)}},mode:{ref:"bins.binMode",type:"string",component:"dropdown",options:[{value:"maxCount",translation:"Visualization.Histogram.Binning.NumberOfBinsOption"},{value:"size",translation:"Visualization.Histogram.Binning.BarWidthOption"}],defaultValue:"maxCount",show:function(e){return vn(e)}},binCount:{ref:"bins.binCount",type:"number",expression:"optional",expressionType:"ValueExpression",translation:"Visualization.Histogram.Binning.BinCount",defaultValue:"",convertFunctions:{get:function(e,t,r){var n=r.properties.bins.binCount;return Or.isEmpty(n)?Or.getDerivedBinCount(r.layout):e(null)||""},set:function(e,t,r){t(r.type,e,void 0)}},show:xn},binMessage:{component:"text",translation:"Visualization.Histogram.Binning.BinCountRounding",show:function(e){var t=De(e,"bins.binCount"),r="object"===O(t);return xn(e)&&!Or.isEmpty(t)&&!r&&!Ir(t)&&t>0}},minBinMessage:{component:"text",translation:"Visualization.Histogram.Binning.BinCountMin",show:function(e){var t=De(e,"bins.binCount");return!!(xn(e)&&!Or.isEmpty(t)&&t<=0)}},binSize:{ref:"bins.binSize",type:"number",expression:"optional",expressionType:"ValueExpression",defaultValue:10,show:function(e){return vn(e)&&"size"===e.bins.binMode},translation:"Visualization.Histogram.Binning.BinSize"},offset:{ref:"bins.offset",type:"number",expression:"optional",expressionType:"ValueExpression",show:function(e){return vn(e)&&"size"===e.bins.binMode},translation:"Visualization.Histogram.Binning.Offset"},distinct:{ref:"bins.countDistinct",type:"boolean",defaultValue:!1,component:"checkbox",translation:"Visualization.Histogram.CountDistinct"}}},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond",change:yn.onChangeCalcCond}}},refLines:{uses:"reflines",items:{colorBackground:{show:!1}}}}},settings:{uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",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:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],snapshot:{tid:"property-dataPoints"}}}},colors:{translation:"properties.colors",type:"items",items:{colors:{type:"items",items:{barColor:{ref:"color.bar.paletteColor",translation:"properties.histogram.barColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:function(){var e=r.getDataColorSpecials().primary,t=r.getDataColorPickerPalettes()[0].colors,n=t.indexOf(e);return{index:-1===n?Math.min(6,t.length-1):n}}}}}}},measureAxis:{uses:"axis.picasso.measureAxis",items:{label:{type:"string",expression:"optional",expressionType:"StringExpression",ref:"measureAxis.label",defaultValue:"",translation:"Common.Label",placeholderTranslation:"Visualization.Histogram.MeasureAxisLabel"}}},dimensionAxis:{uses:"axis.picasso.dimensionAxis",items:{othersGroup:{items:{label:{show:!1}}}}}}}}}}var Dn={type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{translation:"Common.Fields"}}}}};var En={getExportRawDataOptions:function(e,t,r){return e.addItem({translation:"contextMenu.export",tid:"export",select:function(){r.show(t.model,"/qUndoExclude/box/qHyperCubeDef")}}),Promise.resolve()}};function Sn(e){var t;if(null!==(t=e.anything)&&void 0!==t&&t.sense)return{definition:qn(e),softDefinition:Dn,support:{cssScaling:!1,snapshot:!0,export:!0,exportData:!0,sharing:!0,viewData:!0},importProperties:
|
|
974
|
+
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}))}}));var yn={onChangeCalcCond:function(e){var t,r,n=null==e?void 0:e.qHyperCubeDef,i=null==e||null===(t=e.qUndoExclude)||void 0===t||null===(r=t.box)||void 0===r?void 0:r.qHyperCubeDef;n&&i&&(i.qCalcCond=n.qCalcCond,i.qCalcCondition=n.qCalcCondition)}};function vn(e){return!(e.bins&&e.bins.auto)}function xn(e){return vn(e)&&"maxCount"===e.bins.binMode}function qn(e){var t=e.translator,r=e.anything.sense.theme;return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{translation:"Common.Fields",alternativeTranslation:"properties.alternative.fields",items:{dimensionLimits:{show:!1,items:{otherMode:{readOnly:!1},otherSortMode:{show:function(e){return"OTHER_COUNTED"===De(e,"qOtherTotalSpec.qOtherMode")}},otherCounted:{show:function(e){return"OTHER_COUNTED"===De(e,"qOtherTotalSpec.qOtherMode")}},otherLimitMode:{show:function(e){var t=De(e,"qOtherTotalSpec.qOtherMode");return"OTHER_ABS_LIMITED"===t||"OTHER_REL_LIMITED"===t}},otherLimit:{show:function(e){var t=De(e,"qOtherTotalSpec.qOtherMode");return"OTHER_ABS_LIMITED"===t||"OTHER_REL_LIMITED"===t}},calculatedAgainstMessage:{show:!0,label:function(){var e=t.get("properties.histogram.staticMeasureName");return t.get("Properties.DimensionLimits.CalculatedAgainst",e)}}}},others:{show:!1,items:{suppressOther:{defaultValue:!0}}}}}}},bins:{translation:"Visualization.Histogram.Bins",type:"items",component:"items",items:{auto:{ref:"bins.auto",translation:"Visualization.Histogram.Binning",component:"switch",type:"boolean",defaultValue:!0,undefinedValue:!1,options:[{value:!0,translation:"Visualization.Histogram.Binning.Auto"},{value:!1,translation:"Visualization.Histogram.Binning.Custom"}]},autoMessage:{component:"text",translation:"Visualization.Histogram.Binning.AutoDescription",show:function(e){return!vn(e)}},mode:{ref:"bins.binMode",type:"string",component:"dropdown",options:[{value:"maxCount",translation:"Visualization.Histogram.Binning.NumberOfBinsOption"},{value:"size",translation:"Visualization.Histogram.Binning.BarWidthOption"}],defaultValue:"maxCount",show:function(e){return vn(e)}},binCount:{ref:"bins.binCount",type:"number",expression:"optional",expressionType:"ValueExpression",translation:"Visualization.Histogram.Binning.BinCount",defaultValue:"",convertFunctions:{get:function(e,t,r){var n=r.properties.bins.binCount;return Or.isEmpty(n)?Or.getDerivedBinCount(r.layout):e(null)||""},set:function(e,t,r){t(r.type,e,void 0)}},show:xn},binMessage:{component:"text",translation:"Visualization.Histogram.Binning.BinCountRounding",show:function(e){var t=De(e,"bins.binCount"),r="object"===O(t);return xn(e)&&!Or.isEmpty(t)&&!r&&!Ir(t)&&t>0}},minBinMessage:{component:"text",translation:"Visualization.Histogram.Binning.BinCountMin",show:function(e){var t=De(e,"bins.binCount");return!!(xn(e)&&!Or.isEmpty(t)&&t<=0)}},binSize:{ref:"bins.binSize",type:"number",expression:"optional",expressionType:"ValueExpression",defaultValue:10,show:function(e){return vn(e)&&"size"===e.bins.binMode},translation:"Visualization.Histogram.Binning.BinSize"},offset:{ref:"bins.offset",type:"number",expression:"optional",expressionType:"ValueExpression",show:function(e){return vn(e)&&"size"===e.bins.binMode},translation:"Visualization.Histogram.Binning.Offset"},distinct:{ref:"bins.countDistinct",type:"boolean",defaultValue:!1,component:"checkbox",translation:"Visualization.Histogram.CountDistinct"}}},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond",change:yn.onChangeCalcCond}}},refLines:{uses:"reflines",items:{colorBackground:{show:!1}}}}},settings:{uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",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:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],snapshot:{tid:"property-dataPoints"}}}},colors:{translation:"properties.colors",type:"items",items:{colors:{type:"items",items:{barColor:{ref:"color.bar.paletteColor",translation:"properties.histogram.barColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:function(){var e=r.getDataColorSpecials().primary,t=r.getDataColorPickerPalettes()[0].colors,n=t.indexOf(e);return{index:-1===n?Math.min(6,t.length-1):n}}}}}}},measureAxis:{uses:"axis.picasso.measureAxis",items:{label:{type:"string",expression:"optional",expressionType:"StringExpression",ref:"measureAxis.label",defaultValue:"",translation:"Common.Label",placeholderTranslation:"Visualization.Histogram.MeasureAxisLabel"}}},dimensionAxis:{uses:"axis.picasso.dimensionAxis",items:{othersGroup:{items:{label:{show:!1}}}}}}}}}}var Dn={type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{translation:"Common.Fields"}}}}};var En={getExportRawDataOptions:function(e,t,r){return e.addItem({translation:"contextMenu.export",tid:"export",select:function(){r.show(t.model,"/qUndoExclude/box/qHyperCubeDef")}}),Promise.resolve()}};function Sn(e){var t;if(null!==(t=e.anything)&&void 0!==t&&t.sense)return{definition:qn(e),softDefinition:Dn,support:{cssScaling:!1,snapshot:!0,export:!0,exportData:!0,sharing:!0,viewData:!0},importProperties:function(t,r,n,i){var o=W(e);n.mapProperties();var a={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return bn.hypercube.importProperties({exportFormat:t,initialProperties:r,dataDefinition:o,defaultPropertyValues:a,hypercubePath:i})},exportProperties:function(e,t,r){return bn.hypercube.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:r})},requireNumericDimension:!0,exportTableProperties:function(e){return bn.hypercube.exportProperties({propertyTree:e,hypercubePath:"qUndoExclude.box"})},getExportRawDataOptions:En.getExportRawDataOptions}}function Mn(C){!function(e){if(e&&e.get&&e.add){var t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(V).forEach((function(t){e.add(V[t])}))}}(C.translator);var A=function(){var e=D();return e.renderer.prio(["canvas"]),e.use(E),e.use(S(M)),e.use(H),e.component("disclaimer",z),e}(),I=W(C);return{qae:{properties:K,data:{targets:[I]}},ext:Sn(C),component:function(){var D,E,S,M,C,I,O=e(),w=g(),k=(D=u(),E=l(),S=c(),M=a(),C=p(),I=d(),f((function(){return{app:D,appLayout:E,deviceType:S,options:M,theme:C,translator:I}}),[D,E,M.direction,M.freeResize,I.language(),C.name(),S])),L=function(){var o=e(),a=R(t(!1),2),s=a[0],u=a[1],l=R(t(!1),2),c=l[0],p=l[1],d=!!r().qSelectionInfo.qInSelections,f=R(t((function(){return{toggle:function(){p((function(e){return!e}))}}})),1)[0];return n((function(){o&&u(!o.select&&!o.active)}),[o]),i((function(){return{key:"lasso",label:"Lasso",icon:B,hidden:!s||!d,active:c,action:function(){p((function(e){return!e}))}}}),[d,c,s]),f.enabled=function(){return s},f.active=function(){return c},f}(),T=b(),N=y(),P=v(),F=x(),_=R(t(),2),V=_[0],H=_[1];n((function(){var e=q(w),t=new hn(T),r=new mn({$element:e,backendApi:t,environment:k,lasso:L,picasso:A,selectionsApi:N,renderState:F});return H(r),function(){r.destroy()}}),[]);var z,U=R(s(j(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(V){e.next=2;break}return e.abrupt("return");case 2:return V.updateEnvironment(k),V.updateConstraints(O),e.next=6,V.updateData(P);case 6:return e.next=8,V.paint();case 8:case"end":return e.stop()}}),e)}))),[P,V,k]),2)[1];if(U)throw U;!function(t){var r=o(),n=a(),i=e(),u=R(s(j(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return t.updateConstraints(i),t.options=n,e.next=6,t.resize();case 6:case"end":return e.stop()}}),e)}))),[r.width,r.height]),2)[1];if(u)throw u}(V),z=V,m((function(e){if(z)return z.setSnapshotData(e)})),h((function(){return{getViewState:function(){if(z)return z.getViewState()}}}),[z])}}}export{Mn as default};
|
|
975
975
|
//# sourceMappingURL=index.js.map
|