@nebula.js/stardust 5.7.1 → 5.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/dev.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /*
2
- * @nebula.js/stardust v5.7.1
2
+ * @nebula.js/stardust v5.8.1
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
7
  import * as React from 'react';
8
- import React__default, { useState as useState$1, useEffect as useEffect$1, forwardRef, useMemo as useMemo$1, useImperativeHandle as useImperativeHandle$1, useContext, useReducer, useCallback, useLayoutEffect as useLayoutEffect$1, PureComponent, useRef, createElement, Component } from 'react';
8
+ import React__default, { useState as useState$1, useEffect as useEffect$1, forwardRef, useMemo as useMemo$1, useImperativeHandle as useImperativeHandle$1, useContext, useReducer, useCallback, useLayoutEffect as useLayoutEffect$1, PureComponent, useRef as useRef$1, createElement, Component } from 'react';
9
9
  import ReactDOM$1 from 'react-dom';
10
10
  import { CacheProvider, Global, ThemeContext as ThemeContext$1, css, keyframes } from '@emotion/react';
11
11
  import { Checkbox, Radio, Typography, FormControlLabel, Box, Grid, Tooltip, Paper, IconButton, styled as styled$3, Popover, MenuList, MenuItem, ListItemIcon, Divider, OutlinedInput, InputAdornment, Badge, List, ListItem, Button, ButtonBase, CircularProgress, Icon } from '@mui/material';
@@ -10772,7 +10772,7 @@ function create$3(definition) {
10772
10772
  return cache[key];
10773
10773
  }
10774
10774
 
10775
- const NEBULA_VERSION_HASH = "28fc";
10775
+ const NEBULA_VERSION_HASH = "c2a3";
10776
10776
  ClassNameGenerator.configure(componentName => {
10777
10777
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
10778
10778
  });
@@ -11004,7 +11004,7 @@ function boot(_ref2) {
11004
11004
  const appRef = React__default.createRef();
11005
11005
  const element = document.createElement('div');
11006
11006
  element.style.display = 'none';
11007
- element.setAttribute('data-nebulajs-version', "5.7.1");
11007
+ element.setAttribute('data-nebulajs-version', "5.8.1");
11008
11008
  element.setAttribute('data-app-id', app.id);
11009
11009
  document.body.appendChild(element);
11010
11010
  if (context) {
@@ -11013,7 +11013,7 @@ function boot(_ref2) {
11013
11013
  const modelStore = initializeStores$1(app.id);
11014
11014
  const selectionStore = initializeStores(app.id);
11015
11015
  const root = ReactDOM.createRoot(element);
11016
- root.render( /*#__PURE__*/React__default.createElement(NebulaApp, {
11016
+ root.render(/*#__PURE__*/React__default.createElement(NebulaApp, {
11017
11017
  ref: appRef,
11018
11018
  initialContext: context,
11019
11019
  renderCallback: resolveRender,
@@ -11403,7 +11403,7 @@ const remove = props => _objectSpread2(_objectSpread2({}, props), {}, {
11403
11403
  }
11404
11404
  }]
11405
11405
  });
11406
- var Remove = (props => SvgIcon$1(remove(props)));
11406
+ var Remove = props => SvgIcon$1(remove(props));
11407
11407
 
11408
11408
  const lock = props => _objectSpread2(_objectSpread2({}, props), {}, {
11409
11409
  shapes: [{
@@ -11413,7 +11413,7 @@ const lock = props => _objectSpread2(_objectSpread2({}, props), {}, {
11413
11413
  }
11414
11414
  }]
11415
11415
  });
11416
- var Lock = (props => SvgIcon$1(lock(props)));
11416
+ var Lock = props => SvgIcon$1(lock(props));
11417
11417
 
11418
11418
  const unlock = props => _objectSpread2(_objectSpread2({}, props), {}, {
11419
11419
  viewBox: '0 0 12 16',
@@ -11424,7 +11424,7 @@ const unlock = props => _objectSpread2(_objectSpread2({}, props), {}, {
11424
11424
  }
11425
11425
  }]
11426
11426
  });
11427
- var Unlock = (props => SvgIcon$1(unlock(props)));
11427
+ var Unlock = props => SvgIcon$1(unlock(props));
11428
11428
 
11429
11429
  function isRangeVisible(_ref) {
11430
11430
  var lastRenderedStartIndex = _ref.lastRenderedStartIndex,
@@ -11827,7 +11827,7 @@ function useSelectionsInteractions(_ref) {
11827
11827
  doc = document,
11828
11828
  loaderRef
11829
11829
  } = _ref;
11830
- const currentSelect = useRef({
11830
+ const currentSelect = useRef$1({
11831
11831
  startElemNumber: undefined,
11832
11832
  elemNumbers: [],
11833
11833
  isRange: false,
@@ -12073,7 +12073,7 @@ const tick = props => _objectSpread2(_objectSpread2({}, props), {}, {
12073
12073
  }
12074
12074
  }]
12075
12075
  });
12076
- var Tick = (props => SvgIcon$1(tick(props)));
12076
+ var Tick = props => SvgIcon$1(tick(props));
12077
12077
 
12078
12078
  /**
12079
12079
  * @ignore
@@ -12325,6 +12325,9 @@ const RowColRoot = styled('div', {
12325
12325
  styles
12326
12326
  } = _ref4;
12327
12327
  const _styles$content = styles.content,
12328
+ {
12329
+ backgroundColor: _
12330
+ } = _styles$content,
12328
12331
  contentFontStyles = _objectWithoutProperties(_styles$content, _excluded$6);
12329
12332
  const rowSelectionStyle = getRowSelectionStyle({
12330
12333
  theme,
@@ -12870,7 +12873,6 @@ function Histogram(_ref) {
12870
12873
  }
12871
12874
  const width = getBarWidth({
12872
12875
  qFrequency,
12873
- checkboxes,
12874
12876
  frequencyMax
12875
12877
  });
12876
12878
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -16339,13 +16341,13 @@ function ListBox(_ref) {
16339
16341
  checkboxes = checkboxOption,
16340
16342
  histogram
16341
16343
  } = layout !== null && layout !== void 0 ? layout : {};
16342
- const loaderRef = useRef(null);
16343
- const local = useRef({
16344
+ const loaderRef = useRef$1(null);
16345
+ const local = useRef$1({
16344
16346
  queue: [],
16345
16347
  validPages: false,
16346
16348
  dataOffset: 0
16347
16349
  });
16348
- const listData = useRef({
16350
+ const listData = useRef$1({
16349
16351
  pages: []
16350
16352
  });
16351
16353
 
@@ -16364,6 +16366,9 @@ function ListBox(_ref) {
16364
16366
  postProcessPages,
16365
16367
  listData
16366
16368
  }),
16369
+ {
16370
+ isLoadingData
16371
+ } = _useItemsLoader,
16367
16372
  itemsLoader = _objectWithoutProperties(_useItemsLoader, _excluded$4);
16368
16373
  const {
16369
16374
  getStoreValue,
@@ -16464,10 +16469,7 @@ function ListBox(_ref) {
16464
16469
  pages,
16465
16470
  minimumBatchSize,
16466
16471
  count,
16467
- calculatePagesHeight,
16468
- layoutOptions,
16469
- model
16470
- });
16472
+ calculatePagesHeight});
16471
16473
  let freqIsAllowed = getFrequencyAllowed({
16472
16474
  itemWidth: width,
16473
16475
  layout,
@@ -16561,7 +16563,6 @@ function ListBox(_ref) {
16561
16563
  } = getListBoxComponents({
16562
16564
  direction,
16563
16565
  layout,
16564
- height,
16565
16566
  width,
16566
16567
  checkboxes,
16567
16568
  deducedFrequencyMode,
@@ -16673,7 +16674,7 @@ const selectExcluded = props => _objectSpread2(_objectSpread2({}, props), {}, {
16673
16674
  }]
16674
16675
  });
16675
16676
 
16676
- var createListboxSelectionToolbar = (_ref => {
16677
+ var createListboxSelectionToolbar = _ref => {
16677
16678
  let {
16678
16679
  layout,
16679
16680
  model,
@@ -16740,7 +16741,7 @@ var createListboxSelectionToolbar = (_ref => {
16740
16741
  model.selectListObjectExcluded(path);
16741
16742
  }
16742
16743
  }].filter(Boolean);
16743
- });
16744
+ };
16744
16745
 
16745
16746
  const more = props => _objectSpread2(_objectSpread2({}, props), {}, {
16746
16747
  shapes: [{
@@ -16827,7 +16828,7 @@ const close = props => _objectSpread2(_objectSpread2({}, props), {}, {
16827
16828
  }
16828
16829
  }]
16829
16830
  });
16830
- var Close = (props => SvgIcon$1(close(props)));
16831
+ var Close = props => SvgIcon$1(close(props));
16831
16832
 
16832
16833
  const clearSelections = props => _objectSpread2(_objectSpread2({}, props), {}, {
16833
16834
  shapes: [{
@@ -16837,7 +16838,7 @@ const clearSelections = props => _objectSpread2(_objectSpread2({}, props), {}, {
16837
16838
  }
16838
16839
  }]
16839
16840
  });
16840
- var ClearSelections = (props => SvgIcon$1(clearSelections(props)));
16841
+ var ClearSelections = props => SvgIcon$1(clearSelections(props));
16841
16842
 
16842
16843
  function useDefaultSelectionActions(_ref) {
16843
16844
  let {
@@ -17170,8 +17171,8 @@ function ActionsToolbar(_ref3) {
17170
17171
  vertical: 12,
17171
17172
  horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl === void 0 ? void 0 : _popover$anchorEl.clientWidth) !== null && _popover$anchorEl$cli !== void 0 ? _popover$anchorEl$cli : 0) - 7
17172
17173
  };
17173
- const actionsRef = useRef();
17174
- const moreRef = useRef();
17174
+ const actionsRef = useRef$1();
17175
+ const moreRef = useRef$1();
17175
17176
  const theme = useTheme$1();
17176
17177
  const dividerStyle = useMemo$1(() => ({
17177
17178
  margin: theme.spacing(0.5, 0)
@@ -17312,7 +17313,7 @@ const search = props => _objectSpread2(_objectSpread2({}, props), {}, {
17312
17313
  }
17313
17314
  }]
17314
17315
  });
17315
- var SearchIcon = (props => SvgIcon$1(search(props)));
17316
+ var SearchIcon = props => SvgIcon$1(search(props));
17316
17317
 
17317
17318
  const MAX_SEARCH_LENGTH = 64000;
17318
17319
  const TREE_PATH = '/qListObjectDef';
@@ -17401,8 +17402,8 @@ function ListBoxSearch(_ref2, ref) {
17401
17402
  } = useContext(InstanceContext);
17402
17403
  const [value, setValue] = useState$1('');
17403
17404
  const [wildcardOn, setWildcardOn] = useState$1(false);
17404
- const inputRef = useRef();
17405
- const clearSearchRef = useRef();
17405
+ const inputRef = useRef$1();
17406
+ const clearSearchRef = useRef$1();
17406
17407
  const clearSearchText = translator.get('Listbox.Clear.Search');
17407
17408
  const {
17408
17409
  getStoreValue,
@@ -18160,14 +18161,14 @@ function hasSelections(layout) {
18160
18161
  }
18161
18162
 
18162
18163
  /*
18163
- * qlik-chart-modules v0.79.0
18164
+ * qlik-chart-modules v0.82.0
18164
18165
  * Copyright (c) 2024 QlikTech International AB
18165
18166
  * Released under the MIT license.
18166
18167
  */
18167
18168
 
18168
- function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,c=n[0];(l=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(c))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(c))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(c))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={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}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,c,s,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)<=.5?2*c*o:(2-2*c)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=c-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)<=.5?2*c*o:(2-2*c)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=c-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=s-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=!0;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=!0;else n.length>=3?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=!0;return Number.isNaN(+g+y+b+x)&&(v.invalid=!0),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=c,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,c=Math.max(o,a,l),s=Math.min(o,a,l),u=(c+s)/2;if(c===s)t=0,r=0;else {switch(n=c-s,t=u>.5?n/(2-c-s):n/(c+s),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,",").concat(100*t,",").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,c=i.a,s=Math.max(o,a,l),u=Math.min(o,a,l),f=(s+u)/2;if(s===u)t=0,r=0;else {switch(n=s-u,t=f>.5?n/(2-s-u):n/(s+u),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,",").concat(100*t,",").concat(100*f,",").concat(c,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,c=Math.max(o,a,l),s=Math.min(o,a,l),u=c;if(c===s)t=0,r=0;else {switch(t=0===(n=c-s)?0:n/u,c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,",").concat(r,",").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(","),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,",").concat(i,",").concat(o,")")}function k(n,r){if(e(n))return "rgba(".concat([n.r,n.g,n.b,n.a].join(","),")");var i="string"==typeof n?t(n):n,o=(65280&i)>>8,a=255&i;return "rgba(".concat((16711680&i)>>16,",").concat(o,",").concat(a,",").concat(n.a,")")}var C=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function M(e){return .2126*C(e.r)+.7152*C(e.g)+.0722*C(e.b)}function S(){var e=v.apply(void 0,arguments);return e.invalid||M(e)<.5}function D(){var e=v.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(i,",").concat(o,",").concat(l,",").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return S(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(","),")")},getShiftedColor:function(e){var n=void 0===e||Number.isNaN(+e)?1:e,i=.299*t.r+.587*t.g+.114*t.b,o=t.g<126?1:1+t.g/512;return D(r(20*(i*o<220?.8+1/(i+1)*4:-(.8+i/255*1))*n))}}}function O(e,t){if(e&&t){var n=M(e),r=M(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function E(e,t){var n=D("#FFFFFF"),r=D(e),i=D(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=O(n,r),a=O(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var B,K;function re$1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ie=function(){if(K)return B;K=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return !1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return !1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return B=function e(){var t,n,r,c,s,u,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(c=l(t,n))&&(h&&c&&(o(c)||(s=i(c)))?(s?(s=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,c)})):void 0!==c&&a(f,{name:n,newValue:c}));return f},B}();re$1(ie);function fe(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function de(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pe(){}var he=1/.7,me="\\s*([+-]?\\d+)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,be=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),xe=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),qe=new RegExp(`^rgba\\(${me},${me},${me},${ve}\\)$`),we=new RegExp(`^rgba\\(${ge},${ge},${ge},${ve}\\)$`),ke=new RegExp(`^hsl\\(${ve},${ge},${ge}\\)$`),Ce=new RegExp(`^hsla\\(${ve},${ge},${ge},${ve}\\)$`),Me={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Se(){return this.rgb().formatHex()}function De(){return this.rgb().formatRgb()}function Oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ie(t):3===n?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ee(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=be.exec(e))?new Te(t[1],t[2],t[3],1):(t=xe.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qe.exec(e))?Ee(t[1],t[2],t[3],t[4]):(t=we.exec(e))?Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ke.exec(e))?ze(t[1],t[2]/100,t[3]/100,1):(t=Ce.exec(e))?ze(t[1],t[2]/100,t[3]/100,t[4]):Me.hasOwnProperty(e)?Ie(Me[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function Ie(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function Ee(e,t,n,r){return r<=0&&(e=t=n=NaN),new Te(e,t,n,r)}function Ae(e){return e instanceof pe||(e=Oe(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}function Ne(e,t,n,r){return 1===arguments.length?Ae(e):new Te(e,t,n,null==r?1:r)}function Te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Le(){return `#${He(this.r)}${He(this.g)}${He(this.b)}`}function Pe(){const e=je(this.opacity);return `${1===e?"rgb(":"rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${1===e?")":`, ${e})`}`}function je(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return ((e=Fe(e))<16?"0":"")+e.toString(16)}function ze(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,r)}function Re(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof pe||(e=Oe(e)),!e)return new Ve;if(e instanceof Ve)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,c=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=c<.5?o+i:2-o-i,a*=60):l=c>0&&c<1?0:a,new Ve(a,l,c,e.opacity)}function Ve(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function _e(e){return (e=(e||0)%360)<0?e+360:e}function Be(e){return Math.max(0,Math.min(1,e||0))}function Ke(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}fe(pe,Oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Se,formatHex:Se,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Re(this).formatHsl()},formatRgb:De,toString:De}),fe(Te,Ne,de(pe,{brighter(e){return e=null==e?he:Math.pow(he,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Te(Fe(this.r),Fe(this.g),Fe(this.b),je(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Le,formatHex:Le,formatHex8:function(){return `#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pe,toString:Pe})),fe(Ve,(function(e,t,n,r){return 1===arguments.length?Re(e):new Ve(e,t,n,null==r?1:r)}),de(pe,{brighter(e){return e=null==e?he:Math.pow(he,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Te(Ke(e>=240?e-240:e+120,i,r),Ke(e,i,r),Ke(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ve(_e(this.h),Be(this.s),Be(this.l),je(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=je(this.opacity);return `${1===e?"hsl(":"hsla("}${_e(this.h)}, ${100*Be(this.s)}%, ${100*Be(this.l)}%${1===e?")":`, ${e})`}`}}));const $e=Math.PI/180,Ye=180/Math.PI,Ue=4/29,Ge=6/29,We=3*Ge*Ge;function Xe(e){if(e instanceof Ze)return new Ze(e.l,e.a,e.b,e.opacity);if(e instanceof it)return ot(e);e instanceof Te||(e=Ae(e));var t,n,r=tt(e.r),i=tt(e.g),o=tt(e.b),a=Je((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Je((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Je((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Ze(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ze(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Je(e){return e>.008856451679035631?Math.pow(e,1/3):e/We+Ue}function Qe(e){return e>Ge?e*e*e:We*(e-Ue)}function et(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function tt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e){if(e instanceof it)return new it(e.h,e.c,e.l,e.opacity);if(e instanceof Ze||(e=Xe(e)),0===e.a&&0===e.b)return new it(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ye;return new it(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function rt(e,t,n,r){return 1===arguments.length?nt(e):new it(e,t,n,null==r?1:r)}function it(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function ot(e){if(isNaN(e.h))return new Ze(e.l,0,0,e.opacity);var t=e.h*$e;return new Ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fe(Ze,(function(e,t,n,r){return 1===arguments.length?Xe(e):new Ze(e,t,n,null==r?1:r)}),de(pe,{brighter(e){return new Ze(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ze(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Te(et(3.1338561*(t=.96422*Qe(t))-1.6168667*(e=1*Qe(e))-.4906146*(n=.82521*Qe(n))),et(-.9787684*t+1.9161415*e+.033454*n),et(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),fe(it,rt,de(pe,{brighter(e){return new it(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new it(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ot(this).rgb()}}));var at=e=>()=>e;function lt(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):at(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):at(isNaN(e)?t:e)}(function e(t){var n=lt(t);function r(e,t){var r=n((e=Ne(e)).r,(t=Ne(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Yt="center",Ut="bottom";[{key:"NoDataExist",alignment:Yt,condition:function(e){var t=e.layoutService;if(!t)return !1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Yt,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Yt,condition:function(e){var t=e.layoutService;if(!t)return !1;if(!t.meta.isContinuous)return !1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Yt},{key:"DataRangeIncludingZero",alignment:Ut},{key:"LimitedData",alignment:Ut},{key:"NegativeOrZeroValues",alignment:Ut}].reduce((function(e,t){return e[t.key]=t,e}),{});function Rn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function Vn(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Bn)):void 0===t&&(t=_n);for(var n,r,i,o,a,l=new Yn(e),c=[l];n=c.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Yn(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore($n)}function _n(e){return e.children}function Bn(e){return Array.isArray(e)?e[1]:null}function Kn(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function $n(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Yn(e){this.data=e,this.depth=this.height=0,this.parent=null;}Yn.prototype=Vn.prototype={constructor:Yn,count:function(){return this.eachAfter(Rn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],c=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++c,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return Vn(this).eachBefore(Kn)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var xr,qr;(xr=function(e){
18169
+ function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,s=n[0];(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={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:0,g:0,b:0,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}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,s,c,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=s-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=s-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=c-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=!0;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=!0;else n.length>=3&&n.length<=4?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=!0;return Number.isNaN(+g+y+b+x)&&(v.invalid=!0),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=s,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else {switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=i.a,c=Math.max(o,a,l),u=Math.min(o,a,l),f=(c+u)/2;if(c===u)t=0,r=0;else {switch(n=c-u,t=f>.5?n/(2-c-u):n/(c+u),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*f,", ").concat(s,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=s;if(s===c)t=0,r=0;else {switch(t=0===(n=s-c)?0:n/u,s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,", ").concat(r,", ").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(", "),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,", ").concat(i,", ").concat(o,")")}function k(t,n){return e(t)?"rgba(".concat([t.r,t.g,t.b,t.a].join(", "),")"):k(v(t))}function C(t){return e(t)?1===t.a?w(t):k(t):C(v(t))}var M=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function S(e){return .2126*M(e.r)+.7152*M(e.g)+.0722*M(e.b)}function D(){var e=v.apply(void 0,arguments);return e.invalid||S(e)<.4}function O(){var e=v.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]),s=Math.max(0,Math.min(l+e,100));return "hsla(".concat(i,", ").concat(o,", ").concat(s,", ").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return D(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=C(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(", "),")")},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*-e))}}}function I(e,t){if(e&&t){var n=S(e),r=S(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function A(e,t){var n=O("#FFFFFF"),r=O(e),i=O(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=I(n,r),a=I(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var K,$;function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe=function(){if($)return K;$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return !1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return !1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,s,c,u,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(s=l(t,n))&&(h&&s&&(o(s)||(c=i(s)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(f,{name:n,newValue:s}));return f},K}();ie(oe);function de(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function he(){}var me=1/.7,ve="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",be=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),qe=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),we=new RegExp(`^rgba\\(${ve},${ve},${ve},${ge}\\)$`),ke=new RegExp(`^rgba\\(${ye},${ye},${ye},${ge}\\)$`),Ce=new RegExp(`^hsl\\(${ge},${ye},${ye}\\)$`),Me=new RegExp(`^hsla\\(${ge},${ye},${ye},${ge}\\)$`),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 De(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=be.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ee(t):3===n?new Ne(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ae(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=xe.exec(e))?new Ne(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ne(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=we.exec(e))?Ae(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?Re(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Re(t[1],t[2]/100,t[3]/100,t[4]):Se.hasOwnProperty(e)?Ee(Se[e]):"transparent"===e?new Ne(NaN,NaN,NaN,0):null}function Ee(e){return new Ne(e>>16&255,e>>8&255,255&e,1)}function Ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ne(e,t,n,r)}function Te(e){return e instanceof he||(e=Ie(e)),e?new Ne((e=e.rgb()).r,e.g,e.b,e.opacity):new Ne}function Le(e,t,n,r){return 1===arguments.length?Te(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Pe(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function je(){const e=Fe(this.opacity);return `${1===e?"rgb(":"rgba("}${He(this.r)}, ${He(this.g)}, ${He(this.b)}${1===e?")":`, ${e})`}`}function Fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function He(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return ((e=He(e))<16?"0":"")+e.toString(16)}function Re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Ve(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof he||(e=Ie(e)),!e)return new _e;if(e instanceof _e)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new _e(a,l,s,e.opacity)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function Be(e){return (e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}de(he,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:De,formatHex:De,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Oe,toString:Oe}),de(Ne,Le,pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(He(this.r),He(this.g),He(this.b),Fe(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pe,formatHex:Pe,formatHex8:function(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),de(_e,(function(e,t,n,r){return 1===arguments.length?Ve(e):new _e(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ne($e(e>=240?e-240:e+120,i,r),$e(e,i,r),$e(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Be(this.h),Ke(this.s),Ke(this.l),Fe(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fe(this.opacity);return `${1===e?"hsl(":"hsla("}${Be(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Ye=Math.PI/180,Ue=180/Math.PI,Ge=4/29,We=6/29,Xe=3*We*We;function Ze(e){if(e instanceof Je)return new Je(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return at(e);e instanceof Ne||(e=Te(e));var t,n,r=nt(e.r),i=nt(e.g),o=nt(e.b),a=Qe((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Qe((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Qe((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Je(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Je(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ge}function et(e){return e>We?e*e*e:Xe*(e-Ge)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rt(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Je||(e=Ze(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function it(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}function ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function at(e){if(isNaN(e.h))return new Je(e.l,0,0,e.opacity);var t=e.h*Ye;return new Je(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}de(Je,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Je(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return new Je(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Je(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ne(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(n=.82521*et(n))),tt(-.9787684*t+1.9161415*e+.033454*n),tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),de(ot,it,pe(he,{brighter(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return at(this).rgb()}}));var lt=e=>()=>e;function st(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):lt(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lt(isNaN(e)?t:e)}(function e(t){var n=st(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Ut="center",Gt="bottom";[{key:"NoDataExist",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return !1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return !1;if(!t.meta.isContinuous)return !1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ut},{key:"DataRangeIncludingZero",alignment:Gt},{key:"LimitedData",alignment:Gt},{key:"NegativeOrZeroValues",alignment:Gt}].reduce((function(e,t){return e[t.key]=t,e}),{});function Vn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function _n(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kn)):void 0===t&&(t=Bn);for(var n,r,i,o,a,l=new Un(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Un(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yn)}function Bn(e){return e.children}function Kn(e){return Array.isArray(e)?e[1]:null}function $n(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function Yn(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Un(e){this.data=e,this.depth=this.height=0,this.parent=null;}Un.prototype=_n.prototype={constructor:Un,count:function(){return this.eachAfter(Vn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return _n(this).eachBefore($n)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var qr,wr;(qr=function(e){
18169
18170
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
18170
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,l,c,s,u,f,d=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),v=m.search(/[0-9\-\+#]/),g=d-v,y=e.substring(g,g+1),b=g+("."===y||","===y?1:0),x=v>0?e.substring(b,d):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(s=t.split("."))[1]||s[1]&&s[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;s[0].length<e[0].length-a;)s[0]="0"+s[0];else 0==+s[0]&&(s[0]="");if((t=t.split("."))[0]=s[0],c=u[1]&&u[u.length-1].length){for(m="",g=(f=t[0]).length%c,d=f.length,b=0;b<d;b++)m+=f.charAt(b),!((b-g+1)%c)&&b<d-c&&(m+=o);t[0]=m;}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x};},xr(qr={exports:{}},qr.exports),qr.exports);
18171
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,l,s,c,u,f,d=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),v=m.search(/[0-9\-\+#]/),g=d-v,y=e.substring(g,g+1),b=g+("."===y||","===y?1:0),x=v>0?e.substring(b,d):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",g=(f=t[0]).length%s,d=f.length,b=0;b<d;b++)m+=f.charAt(b),!((b-g+1)%s)&&b<d-s&&(m+=o);t[0]=m;}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x};},qr(wr={exports:{}},wr.exports),wr.exports);
18171
18172
 
18172
18173
  const MULTI_REG = /,(?![^(]*\))/;
18173
18174
  const SINGLE_REG = /\s(?![^(]*\))/;
@@ -18418,7 +18419,7 @@ function getSelectionColors(_ref) {
18418
18419
  const contrastState = "".concat(state, "Contrast");
18419
18420
  // color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default
18420
18421
  const color = getColorPickerColor(componentSelectionColors[state]) || getSelectionThemeColor(state) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 || (_theme$palette2 = _theme$palette2.selected) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2[paletteState]) || DEFAULT_SELECTION_COLORS[state];
18421
- const contrastColor = useContrastTextColor ? E(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === void 0 ? void 0 : _theme$palette3.selected["".concat(contrastState, "Text}")]);
18422
+ const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === void 0 ? void 0 : _theme$palette3.selected["".concat(contrastState, "Text}")]);
18422
18423
  return {
18423
18424
  [state]: color,
18424
18425
  [contrastState]: contrastColor
@@ -18447,11 +18448,11 @@ function getBackgroundColor(_ref2) {
18447
18448
  }
18448
18449
  function getSearchColor(getListboxStyle) {
18449
18450
  const desiredTextColor = getListboxStyle('content', 'color');
18450
- const color = E('#fff', desiredTextColor);
18451
+ const color = A('#fff', desiredTextColor);
18451
18452
  return color;
18452
18453
  }
18453
18454
  function getSearchBGColor(bgCol, getListboxStyle) {
18454
- const searchBgColorObj = D(getListboxStyle('', 'backgroundColor'));
18455
+ const searchBgColorObj = O(getListboxStyle('', 'backgroundColor'));
18455
18456
  searchBgColorObj.setAlpha(0.7);
18456
18457
  return searchBgColorObj.isInvalid() ? bgCol : searchBgColorObj.getRGBA();
18457
18458
  }
@@ -18561,7 +18562,7 @@ function ListBoxPopover(_ref) {
18561
18562
  const open = show && Boolean(alignTo.current);
18562
18563
  const [listCount, setListCount] = useState$1(0);
18563
18564
  const theme = useTheme$1();
18564
- const searchInputRef = useRef();
18565
+ const searchInputRef = useRef$1();
18565
18566
  const [model] = useSessionModel({
18566
18567
  qInfo: {
18567
18568
  qType: 'njsListbox'
@@ -18593,8 +18594,8 @@ function ListBoxPopover(_ref) {
18593
18594
  themeApi,
18594
18595
  keyboardNavigation
18595
18596
  } = useContext(InstanceContext);
18596
- const moreAlignTo = useRef();
18597
- const containerRef = useRef();
18597
+ const moreAlignTo = useRef$1();
18598
+ const containerRef = useRef$1();
18598
18599
  const [selections] = useObjectSelections(app, model, containerRef);
18599
18600
  const [layout] = useLayout$1(model);
18600
18601
  const [selectionState$1] = useState$1(() => selectionState({
@@ -18755,7 +18756,7 @@ function OneField(_ref) {
18755
18756
  const {
18756
18757
  translator
18757
18758
  } = useContext(InstanceContext);
18758
- const alignTo = moreAlignTo || useRef();
18759
+ const alignTo = moreAlignTo || useRef$1();
18759
18760
  const theme = useTheme$1();
18760
18761
  const [showListBoxPopover, setShowListBoxPopover] = useState$1(false);
18761
18762
  const handleShowListBoxPopover = e => {
@@ -18916,7 +18917,7 @@ const downArrow = props => _objectSpread2(_objectSpread2({}, props), {}, {
18916
18917
  }
18917
18918
  }]
18918
18919
  });
18919
- var DownArrow = (props => SvgIcon$1(downArrow(props)));
18920
+ var DownArrow = props => SvgIcon$1(downArrow(props));
18920
18921
 
18921
18922
  const PREFIX$6 = 'MultiState';
18922
18923
  const classes$6 = {
@@ -18952,7 +18953,7 @@ function MultiState(_ref2) {
18952
18953
  const [showStateIx, setShowStateIx] = useState$1(-1);
18953
18954
  // If originated from the `more` item align it
18954
18955
  const [anchorEl, setAnchorEl] = useState$1(moreAlignTo ? moreAlignTo.current : null);
18955
- const alignTo = moreAlignTo || useRef();
18956
+ const alignTo = moreAlignTo || useRef$1();
18956
18957
  const {
18957
18958
  translator
18958
18959
  } = useContext(InstanceContext);
@@ -19117,7 +19118,7 @@ function More(_ref2) {
19117
19118
  const [showMoreItems, setShowMoreItems] = useState$1(false);
19118
19119
  const [showItemIx, setShowItemIx] = useState$1(-1);
19119
19120
  const [anchorEl, setAnchorEl] = useState$1(null);
19120
- const alignTo = useRef();
19121
+ const alignTo = useRef$1();
19121
19122
  const handleShowMoreItems = e => {
19122
19123
  if (e.currentTarget.contains(e.target)) {
19123
19124
  // because click in popover will propagate to parent
@@ -19364,7 +19365,7 @@ const selectionsBack = props => _objectSpread2(_objectSpread2({}, props), {}, {
19364
19365
  }
19365
19366
  }]
19366
19367
  });
19367
- var SelectionsBack = (props => SvgIcon$1(selectionsBack(props)));
19368
+ var SelectionsBack = props => SvgIcon$1(selectionsBack(props));
19368
19369
 
19369
19370
  const selectionsForward = props => _objectSpread2(_objectSpread2({}, props), {}, {
19370
19371
  shapes: [{
@@ -19374,7 +19375,7 @@ const selectionsForward = props => _objectSpread2(_objectSpread2({}, props), {},
19374
19375
  }
19375
19376
  }]
19376
19377
  });
19377
- var SelectionsForward = (props => SvgIcon$1(selectionsForward(props)));
19378
+ var SelectionsForward = props => SvgIcon$1(selectionsForward(props));
19378
19379
 
19379
19380
  const patchAlternateState = (currentSelectionsModel, currentSelectionsLayout, appLayout) => {
19380
19381
  const states = [...(appLayout.qStateNames || [])].map(s => ({
@@ -19518,7 +19519,7 @@ function mount(_ref2) {
19518
19519
  element,
19519
19520
  app
19520
19521
  } = _ref2;
19521
- return ReactDOM$1.createPortal( /*#__PURE__*/React__default.createElement(AppSelections, {
19522
+ return ReactDOM$1.createPortal(/*#__PURE__*/React__default.createElement(AppSelections, {
19522
19523
  app: app
19523
19524
  }), element, uid());
19524
19525
  }
@@ -20243,7 +20244,7 @@ const cyclic = props => _objectSpread2(_objectSpread2({}, props), {}, {
20243
20244
  }
20244
20245
  }]
20245
20246
  });
20246
- var CyclicIcon = (props => SvgIcon$1(cyclic(props)));
20247
+ var CyclicIcon = props => SvgIcon$1(cyclic(props));
20247
20248
 
20248
20249
  const drillDown = props => _objectSpread2(_objectSpread2({}, props), {}, {
20249
20250
  shapes: [{
@@ -20253,7 +20254,7 @@ const drillDown = props => _objectSpread2(_objectSpread2({}, props), {}, {
20253
20254
  }
20254
20255
  }]
20255
20256
  });
20256
- var DrillDownIcon = (props => SvgIcon$1(drillDown(props)));
20257
+ var DrillDownIcon = props => SvgIcon$1(drillDown(props));
20257
20258
 
20258
20259
  const reload = props => _objectSpread2(_objectSpread2({}, props), {}, {
20259
20260
  shapes: [{
@@ -20263,10 +20264,9 @@ const reload = props => _objectSpread2(_objectSpread2({}, props), {}, {
20263
20264
  }
20264
20265
  }]
20265
20266
  });
20266
- var ReloadIcon = (props => SvgIcon$1(reload(props)));
20267
+ var ReloadIcon = props => SvgIcon$1(reload(props));
20267
20268
 
20268
20269
  const dimensionTypes = {
20269
- single: 'N',
20270
20270
  drillDown: 'H',
20271
20271
  cyclic: 'C'
20272
20272
  };
@@ -20459,7 +20459,7 @@ function ListBoxHeader(_ref2) {
20459
20459
  var _layout$qListObject2;
20460
20460
  setLocked(layout === null || layout === void 0 || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === void 0 || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === void 0 ? void 0 : _layout$qListObject2.qLocked);
20461
20461
  }, [layout === null || layout === void 0 || (_layout$qListObject3 = layout.qListObject) === null || _layout$qListObject3 === void 0 || (_layout$qListObject3 = _layout$qListObject3.qDimensionInfo) === null || _layout$qListObject3 === void 0 ? void 0 : _layout$qListObject3.qLocked]);
20462
- const titleRef = useRef(null);
20462
+ const titleRef = useRef$1(null);
20463
20463
  const iconData = iconUtils.createDimensionIconData({
20464
20464
  dimInfo: layout === null || layout === void 0 || (_layout$qListObject4 = layout.qListObject) === null || _layout$qListObject4 === void 0 ? void 0 : _layout$qListObject4.qDimensionInfo,
20465
20465
  app,
@@ -20534,7 +20534,6 @@ function ListBoxHeader(_ref2) {
20534
20534
  isDetached: isPopover ? false : isToolbarDetached,
20535
20535
  showToolbar,
20536
20536
  containerRef,
20537
- isPopover,
20538
20537
  isLocked,
20539
20538
  extraItems,
20540
20539
  listboxSelectionToolbarItems,
@@ -20705,12 +20704,12 @@ function ListBoxInline(_ref3) {
20705
20704
  const isDirectQuery = isDirectQueryEnabled({
20706
20705
  appLayout: app === null || app === void 0 ? void 0 : app.layout
20707
20706
  });
20708
- const containerRef = useRef();
20709
- const searchInputRef = useRef();
20707
+ const containerRef = useRef$1();
20708
+ const searchInputRef = useRef$1();
20710
20709
  const [containerRectRef, containerRect] = useRect$1();
20711
20710
  const [showToolbar, setShowToolbar] = useState$1(false);
20712
20711
  const [showSearch, setShowSearch] = useState$1(false);
20713
- const hovering = useRef(false);
20712
+ const hovering = useRef$1(false);
20714
20713
  const [keyScroll, setKeyScroll] = useState$1({
20715
20714
  down: 0,
20716
20715
  up: 0,
@@ -20744,10 +20743,7 @@ function ListBoxInline(_ref3) {
20744
20743
  keyboard,
20745
20744
  hovering,
20746
20745
  updateKeyScroll,
20747
- containerRef,
20748
20746
  currentScrollIndex,
20749
- app,
20750
- appSelections,
20751
20747
  constraints,
20752
20748
  isModal: isModalMode,
20753
20749
  selections
@@ -21264,7 +21260,7 @@ function useOnTheFlyModel(_ref) {
21264
21260
  maxRows: 1
21265
21261
  };
21266
21262
  }
21267
- const id = useRef();
21263
+ const id = useRef$1();
21268
21264
  if (!id.current) {
21269
21265
  id.current = uid();
21270
21266
  }
@@ -21433,7 +21429,7 @@ function ListBoxWrapper(_ref) {
21433
21429
  stateName,
21434
21430
  options
21435
21431
  });
21436
- const elementRef = useRef(element);
21432
+ const elementRef = useRef$1(element);
21437
21433
  const selections = hasExternalSelectionsApi ? options.selectionsApi : useObjectSelections(app, model, [elementRef, '.njs-action-toolbar-more', '.njs-action-toolbar-popover'], options)[0];
21438
21434
  const opts = useMemo$1(() => _objectSpread2(_objectSpread2({}, options), {}, {
21439
21435
  selections,
@@ -21460,7 +21456,7 @@ function ListBoxPortal(_ref2) {
21460
21456
  renderedCallback,
21461
21457
  flags
21462
21458
  } = _ref2;
21463
- return ReactDOM$1.createPortal( /*#__PURE__*/React__default.createElement(ListBoxWrapper, {
21459
+ return ReactDOM$1.createPortal(/*#__PURE__*/React__default.createElement(ListBoxWrapper, {
21464
21460
  app: app,
21465
21461
  element: element,
21466
21462
  fieldIdentifier: fieldIdentifier,
@@ -22728,7 +22724,7 @@ const warning = props => _objectSpread2(_objectSpread2({}, props), {}, {
22728
22724
  }
22729
22725
  }]
22730
22726
  });
22731
- var WarningTriangle = (props => SvgIcon$1(warning(props)));
22727
+ var WarningTriangle = props => SvgIcon$1(warning(props));
22732
22728
 
22733
22729
  /* eslint-disable react/no-array-index-key */
22734
22730
  function DescriptionRow(_ref) {
@@ -23417,6 +23413,22 @@ const useStyling = (layout, theme, app, themeName) => {
23417
23413
  return styling;
23418
23414
  };
23419
23415
 
23416
+ /**
23417
+ * @class RenderError
23418
+ * @extends Error
23419
+ * @param {string} message
23420
+ * @param {Error} originalError
23421
+ * @property {Error} originalError
23422
+ */
23423
+
23424
+ class RenderError extends Error {
23425
+ constructor(message, originalError) {
23426
+ super(message);
23427
+ this.originalError = originalError;
23428
+ this.name = 'RenderError';
23429
+ }
23430
+ }
23431
+
23420
23432
  /**
23421
23433
  * @interface
23422
23434
  * @extends HTMLElement
@@ -23697,7 +23709,8 @@ const loadType = async _ref5 => {
23697
23709
  dispatch({
23698
23710
  type: 'ERROR',
23699
23711
  error: {
23700
- title: err.message
23712
+ title: err.message,
23713
+ errorObject: err
23701
23714
  }
23702
23715
  });
23703
23716
  }
@@ -23714,7 +23727,8 @@ const Cell = forwardRef((_ref6, ref) => {
23714
23727
  onMount,
23715
23728
  currentId,
23716
23729
  emitter,
23717
- navigation
23730
+ navigation,
23731
+ onError
23718
23732
  } = _ref6;
23719
23733
  const {
23720
23734
  app,
@@ -23746,7 +23760,7 @@ const Cell = forwardRef((_ref6, ref) => {
23746
23760
  const cellElementId = "njs-cell-".concat(currentId);
23747
23761
  const [selections] = useObjectSelections(app, model, ["#".concat(cellElementId), '.njs-action-toolbar-popover']); // elements which will not trigger the click out listener
23748
23762
  const [hovering, setHover] = useState$1(false);
23749
- const hoveringDebouncer = useRef({
23763
+ const hoveringDebouncer = useRef$1({
23750
23764
  enter: null,
23751
23765
  leave: null
23752
23766
  });
@@ -23758,7 +23772,7 @@ const Cell = forwardRef((_ref6, ref) => {
23758
23772
  borderRadius,
23759
23773
  boxShadow
23760
23774
  } = useStyling(layout, halo.public.theme, halo.app, themeName);
23761
- const focusHandler = useRef({
23775
+ const focusHandler = useRef$1({
23762
23776
  focusToolbarButton(last) {
23763
23777
  // eslint-disable-next-line react/no-this-in-sfc
23764
23778
  this.emit(last ? 'focus_toolbar_last' : 'focus_toolbar_first');
@@ -23937,6 +23951,10 @@ const Cell = forwardRef((_ref6, ref) => {
23937
23951
  if (state.loading && !state.longRunningQuery) {
23938
23952
  Content = /*#__PURE__*/React__default.createElement(LoadingSn, null);
23939
23953
  } else if (state.error) {
23954
+ if (onError) {
23955
+ const e = state.error.errorObject ? state.error.errorObject : new RenderError(state.error.title);
23956
+ onError(e);
23957
+ }
23940
23958
  Content = /*#__PURE__*/React__default.createElement(Error$1, state.error);
23941
23959
  } else if (state.loaded) {
23942
23960
  Content = /*#__PURE__*/React__default.createElement(Supernova, {
@@ -24021,14 +24039,15 @@ function glue$1(_ref) {
24021
24039
  onMount,
24022
24040
  emitter,
24023
24041
  initialError,
24024
- navigation
24042
+ navigation,
24043
+ onError
24025
24044
  } = _ref;
24026
24045
  const {
24027
24046
  root
24028
24047
  } = halo;
24029
24048
  const cellRef = React__default.createRef();
24030
24049
  const currentId = uid();
24031
- const portal = ReactDOM$1.createPortal( /*#__PURE__*/React__default.createElement(Cell, {
24050
+ const portal = ReactDOM$1.createPortal(/*#__PURE__*/React__default.createElement(Cell, {
24032
24051
  ref: cellRef,
24033
24052
  halo: halo,
24034
24053
  model: model,
@@ -24038,7 +24057,8 @@ function glue$1(_ref) {
24038
24057
  initialError: initialError,
24039
24058
  onMount: onMount,
24040
24059
  emitter: emitter,
24041
- navigation: navigation
24060
+ navigation: navigation,
24061
+ onError: onError
24042
24062
  }), element, currentId);
24043
24063
  const unmount = () => {
24044
24064
  root.remove(portal);
@@ -24913,6 +24933,42 @@ function useMemo(fn, deps) {
24913
24933
  return h.value[1];
24914
24934
  }
24915
24935
 
24936
+ /**
24937
+ * Reference object returned from useRef
24938
+ * @interface Ref
24939
+ * @template R
24940
+ * @property {R} current Current value
24941
+ */
24942
+
24943
+ /**
24944
+ * Creates a reference to a value not needed for rendering
24945
+ *
24946
+ * While Nebula does not have a virtual DOM, it is still useful
24947
+ * to have a reference to an object that is retained across
24948
+ * renders and in it self does not trigger a render.
24949
+ * @entry
24950
+ * @template R
24951
+ * @param {R} initialValue - The initial value.
24952
+ * @returns {Ref<R>} An object with the current value
24953
+ * @example
24954
+ * import { useRef } from '@nebula.js/stardust';
24955
+ * // ...
24956
+ * // initiate with simple value
24957
+ * const timesRendered = useRef(0);
24958
+ *
24959
+ * useEffect(() => {
24960
+ * render(layout);
24961
+ * // increments the render counter, a useState would trigger another render
24962
+ * timesRendered.current += 1;
24963
+ * },[layout]);
24964
+ *
24965
+ */
24966
+ function useRef(initialValue) {
24967
+ return useMemo(() => ({
24968
+ current: initialValue
24969
+ }), []);
24970
+ }
24971
+
24916
24972
  /**
24917
24973
  * Runs a callback function when a dependent changes.
24918
24974
  *
@@ -26417,23 +26473,26 @@ function viz() {
26417
26473
  halo,
26418
26474
  navigation,
26419
26475
  initialError,
26420
- onDestroy = async () => {}
26476
+ onDestroy = async () => {},
26477
+ onRender = () => {},
26478
+ onError = () => {}
26421
26479
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
26422
26480
  let unmountCell = noopi$1;
26423
26481
  let cellRef = null;
26424
26482
  let mountedReference = null;
26425
26483
  let onMount = null;
26426
- let onRender = null;
26484
+ let onRenderResolve = null;
26427
26485
  let viewDataObjectId;
26428
26486
  const mounted = new Promise(resolve => {
26429
26487
  onMount = resolve;
26430
26488
  });
26431
26489
  const rendered = new Promise(resolve => {
26432
- onRender = resolve;
26490
+ onRenderResolve = resolve;
26433
26491
  });
26434
26492
  const createOnInitialRender = override => () => {
26435
- override && override();
26436
- onRender();
26493
+ override === null || override === void 0 || override(); // from options.onInitialRender
26494
+ onRenderResolve(); // internal promise in viz to wait for render
26495
+ onRender(); // from RenderConfig
26437
26496
  };
26438
26497
  let initialSnOptions = {};
26439
26498
  let initialSnPlugins = [];
@@ -26658,7 +26717,8 @@ function viz() {
26658
26717
  initialError,
26659
26718
  onMount,
26660
26719
  emitter,
26661
- navigation
26720
+ navigation,
26721
+ onError
26662
26722
  });
26663
26723
  return mounted;
26664
26724
  },
@@ -26755,12 +26815,18 @@ function viz() {
26755
26815
  /* eslint no-underscore-dangle:0 */
26756
26816
  async function init(model, optional, halo, navigation, initialError) {
26757
26817
  let onDestroy = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : async () => {};
26818
+ const {
26819
+ onRender,
26820
+ onError
26821
+ } = optional;
26758
26822
  const api = viz({
26759
26823
  model,
26760
26824
  halo,
26761
26825
  navigation,
26762
26826
  initialError,
26763
- onDestroy
26827
+ onDestroy,
26828
+ onRender,
26829
+ onError
26764
26830
  });
26765
26831
  if (optional.options) {
26766
26832
  api.__DO_NOT_USE__.options(optional.options);
@@ -26783,6 +26849,8 @@ async function init(model, optional, halo, navigation, initialError) {
26783
26849
  * @description Configuration for rendering a visualisation, either creating or fetching an existing object.
26784
26850
  * @property {HTMLElement} element Target html element to render in to
26785
26851
  * @property {object=} options Options passed into the visualisation
26852
+ * @property {function=} onRender Callback function called after rendering successfully
26853
+ * @property {function(RenderError)=} onError Callback function called if an error occurs
26786
26854
  * @property {Plugin[]} [plugins] plugins passed into the visualisation
26787
26855
  * @property {string=} id For existing objects: Engine identifier of object to render
26788
26856
  * @property {string=} type For creating objects: Type of visualisation to render
@@ -26821,7 +26889,9 @@ async function createSessionObject(_ref, halo, store) {
26821
26889
  plugins,
26822
26890
  element,
26823
26891
  extendProperties,
26824
- navigation
26892
+ navigation,
26893
+ onRender,
26894
+ onError
26825
26895
  } = _ref;
26826
26896
  let mergedProps = {};
26827
26897
  const children = [];
@@ -26876,7 +26946,9 @@ async function createSessionObject(_ref, halo, store) {
26876
26946
  return init(model, {
26877
26947
  options,
26878
26948
  plugins,
26879
- element
26949
+ element,
26950
+ onRender,
26951
+ onError
26880
26952
  }, halo, navigation, error, onDestroy);
26881
26953
  }
26882
26954
 
@@ -27179,7 +27251,7 @@ function glue(_ref) {
27179
27251
  const unmount = () => {
27180
27252
  root.remove(portal);
27181
27253
  };
27182
- portal = ReactDOM$1.createPortal( /*#__PURE__*/React__default.createElement(Sheet, {
27254
+ portal = ReactDOM$1.createPortal(/*#__PURE__*/React__default.createElement(Sheet, {
27183
27255
  ref: sheetRef,
27184
27256
  halo: halo,
27185
27257
  model: model,
@@ -27462,6 +27534,8 @@ async function getObject(_ref, halo, store) {
27462
27534
  options,
27463
27535
  plugins,
27464
27536
  element,
27537
+ onRender,
27538
+ onError,
27465
27539
  navigation: inputNavigation
27466
27540
  } = _ref;
27467
27541
  const {
@@ -27487,7 +27561,9 @@ async function getObject(_ref, halo, store) {
27487
27561
  return init(model, {
27488
27562
  options,
27489
27563
  plugins,
27490
- element
27564
+ element,
27565
+ onRender,
27566
+ onError
27491
27567
  }, halo, navigation);
27492
27568
  }
27493
27569
 
@@ -28878,7 +28954,7 @@ async function load(name, version, _ref, loader) {
28878
28954
  {
28879
28955
  console.warn(e); // eslint-disable-line no-console
28880
28956
  }
28881
- throw new Error("Failed to load visualization: '".concat(sKey, "'"));
28957
+ throw new RenderError("Failed to load visualization: '".concat(sKey, "'"), e);
28882
28958
  });
28883
28959
  }
28884
28960
  return LOADED[key];
@@ -30023,5 +30099,5 @@ const __DO_NOT_USE__ = {
30023
30099
  locale
30024
30100
  };
30025
30101
 
30026
- export { mocker as EnigmaMocker, __DO_NOT_USE__, conversion, index as embed, onContextMenu, onTakeSnapshot, useAction, useApp, useAppLayout, useConstraints, useDeviceType, useEffect, useElement, useEmbed, useEmitter, useGlobal, useImperativeHandle, useInteractionState, useKeyboard, useLayout, useMemo, useModel, useNavigation, useOptions, usePlugins, usePromise, useRect, useRenderState, useSelections, useStaleLayout, useState, useTheme, useTranslator };
30102
+ export { mocker as EnigmaMocker, __DO_NOT_USE__, conversion, index as embed, onContextMenu, onTakeSnapshot, useAction, useApp, useAppLayout, useConstraints, useDeviceType, useEffect, useElement, useEmbed, useEmitter, useGlobal, useImperativeHandle, useInteractionState, useKeyboard, useLayout, useMemo, useModel, useNavigation, useOptions, usePlugins, usePromise, useRect, useRef, useRenderState, useSelections, useStaleLayout, useState, useTheme, useTranslator };
30027
30103
  //# sourceMappingURL=dev.js.map