@symbo.ls/create 2.11.179 → 2.11.180

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.
@@ -206,51 +206,51 @@ var require_types = __commonJS({
206
206
  __export2(types_exports, {
207
207
  TYPES: () => TYPES,
208
208
  is: () => is,
209
- isArray: () => isArray6,
209
+ isArray: () => isArray8,
210
210
  isBoolean: () => isBoolean,
211
211
  isDefined: () => isDefined,
212
212
  isFunction: () => isFunction4,
213
- isNot: () => isNot2,
213
+ isNot: () => isNot3,
214
214
  isNull: () => isNull,
215
215
  isNumber: () => isNumber,
216
- isObject: () => isObject12,
217
- isObjectLike: () => isObjectLike3,
218
- isString: () => isString8,
216
+ isObject: () => isObject14,
217
+ isObjectLike: () => isObjectLike4,
218
+ isString: () => isString10,
219
219
  isUndefined: () => isUndefined3
220
220
  });
221
221
  module2.exports = __toCommonJS2(types_exports);
222
222
  var import_node = require_node();
223
- var isObject12 = (arg) => {
223
+ var isObject14 = (arg) => {
224
224
  if (arg === null)
225
225
  return false;
226
226
  return typeof arg === "object" && arg.constructor === Object;
227
227
  };
228
- var isString8 = (arg) => typeof arg === "string";
228
+ var isString10 = (arg) => typeof arg === "string";
229
229
  var isNumber = (arg) => typeof arg === "number";
230
230
  var isFunction4 = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray6 = (arg) => Array.isArray(arg);
234
- var isObjectLike3 = (arg) => {
233
+ var isArray8 = (arg) => Array.isArray(arg);
234
+ var isObjectLike4 = (arg) => {
235
235
  if (arg === null)
236
236
  return false;
237
237
  return typeof arg === "object";
238
238
  };
239
239
  var isDefined = (arg) => {
240
- return isObject12(arg) || isObjectLike3(arg) || isString8(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
240
+ return isObject14(arg) || isObjectLike4(arg) || isString10(arg) || isNumber(arg) || isFunction4(arg) || isArray8(arg) || isObjectLike4(arg) || isBoolean(arg) || isNull(arg);
241
241
  };
242
242
  var isUndefined3 = (arg) => {
243
243
  return arg === void 0;
244
244
  };
245
245
  var TYPES = {
246
246
  boolean: isBoolean,
247
- array: isArray6,
248
- object: isObject12,
249
- string: isString8,
247
+ array: isArray8,
248
+ object: isObject14,
249
+ string: isString10,
250
250
  number: isNumber,
251
251
  null: isNull,
252
252
  function: isFunction4,
253
- objectLike: isObjectLike3,
253
+ objectLike: isObjectLike4,
254
254
  node: import_node.isNode,
255
255
  htmlElement: import_node.isHtmlElement,
256
256
  defined: isDefined
@@ -260,7 +260,7 @@ var require_types = __commonJS({
260
260
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
261
261
  };
262
262
  };
263
- var isNot2 = (arg) => {
263
+ var isNot3 = (arg) => {
264
264
  return (...args) => {
265
265
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
266
266
  };
@@ -451,26 +451,26 @@ var require_object = __commonJS({
451
451
  var object_exports = {};
452
452
  __export2(object_exports, {
453
453
  clone: () => clone,
454
- deepClone: () => deepClone3,
454
+ deepClone: () => deepClone4,
455
455
  deepCloneExclude: () => deepCloneExclude,
456
456
  deepDestringify: () => deepDestringify,
457
457
  deepMerge: () => deepMerge4,
458
458
  deepStringify: () => deepStringify,
459
459
  detachFunctionsFromObject: () => detachFunctionsFromObject,
460
- diff: () => diff2,
460
+ diff: () => diff3,
461
461
  diffArrays: () => diffArrays,
462
462
  diffObjects: () => diffObjects,
463
- exec: () => exec4,
463
+ exec: () => exec5,
464
464
  flattenRecursive: () => flattenRecursive,
465
465
  isEqualDeep: () => isEqualDeep2,
466
466
  map: () => map2,
467
- merge: () => merge4,
467
+ merge: () => merge5,
468
468
  mergeArrayExclude: () => mergeArrayExclude,
469
469
  mergeIfExisted: () => mergeIfExisted,
470
470
  objectToString: () => objectToString,
471
471
  overwrite: () => overwrite,
472
472
  overwriteDeep: () => overwriteDeep,
473
- overwriteShallow: () => overwriteShallow2,
473
+ overwriteShallow: () => overwriteShallow3,
474
474
  removeFromObject: () => removeFromObject,
475
475
  stringToObject: () => stringToObject
476
476
  });
@@ -479,7 +479,7 @@ var require_object = __commonJS({
479
479
  var import_types = require_types();
480
480
  var import_array = require_array();
481
481
  var import_string = require_string();
482
- var exec4 = (param, element, state, context) => {
482
+ var exec5 = (param, element, state, context) => {
483
483
  if ((0, import_types.isFunction)(param)) {
484
484
  return param(
485
485
  element,
@@ -491,10 +491,10 @@ var require_object = __commonJS({
491
491
  };
492
492
  var map2 = (obj, extention, element) => {
493
493
  for (const e in extention) {
494
- obj[e] = exec4(extention[e], element);
494
+ obj[e] = exec5(extention[e], element);
495
495
  }
496
496
  };
497
- var merge4 = (element, obj, excludeFrom = []) => {
497
+ var merge5 = (element, obj, excludeFrom = []) => {
498
498
  for (const e in obj) {
499
499
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
500
500
  if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
@@ -557,7 +557,7 @@ var require_object = __commonJS({
557
557
  var mergeArrayExclude = (arr, excl = []) => {
558
558
  return arr.reduce((acc, curr) => deepMerge4(acc, deepCloneExclude(curr, excl)), {});
559
559
  };
560
- var deepClone3 = (obj, excludeFrom = []) => {
560
+ var deepClone4 = (obj, excludeFrom = []) => {
561
561
  const o = (0, import_types.isArray)(obj) ? [] : {};
562
562
  for (const prop in obj) {
563
563
  if (prop === "__proto__")
@@ -569,7 +569,7 @@ var require_object = __commonJS({
569
569
  objProp = (0, import_array.mergeArray)(objProp);
570
570
  }
571
571
  if ((0, import_types.isObjectLike)(objProp)) {
572
- o[prop] = deepClone3(objProp, excludeFrom);
572
+ o[prop] = deepClone4(objProp, excludeFrom);
573
573
  } else
574
574
  o[prop] = objProp;
575
575
  }
@@ -726,7 +726,7 @@ var require_object = __commonJS({
726
726
  const objToDiffProp = objToDiff[e];
727
727
  if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
728
728
  cache2[e] = {};
729
- diff2(originalProp, objToDiffProp, cache2[e]);
729
+ diff3(originalProp, objToDiffProp, cache2[e]);
730
730
  } else if (objToDiffProp !== void 0) {
731
731
  cache2[e] = objToDiffProp;
732
732
  }
@@ -739,7 +739,7 @@ var require_object = __commonJS({
739
739
  } else {
740
740
  const diffArr = [];
741
741
  for (let i2 = 0; i2 < original.length; i2++) {
742
- const diffObj = diff2(original[i2], objToDiff[i2]);
742
+ const diffObj = diff3(original[i2], objToDiff[i2]);
743
743
  if (Object.keys(diffObj).length > 0) {
744
744
  diffArr.push(diffObj);
745
745
  }
@@ -750,7 +750,7 @@ var require_object = __commonJS({
750
750
  }
751
751
  return cache2;
752
752
  };
753
- var diff2 = (original, objToDiff, cache2 = {}) => {
753
+ var diff3 = (original, objToDiff, cache2 = {}) => {
754
754
  if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
755
755
  cache2 = [];
756
756
  diffArrays(original, objToDiff, cache2);
@@ -774,7 +774,7 @@ var require_object = __commonJS({
774
774
  }
775
775
  return changes;
776
776
  };
777
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
777
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
778
778
  for (const e in params) {
779
779
  if (excludeFrom.includes(e) || e.startsWith("__"))
780
780
  continue;
@@ -1320,11 +1320,11 @@ var require_tree = __commonJS({
1320
1320
  TREE: () => TREE
1321
1321
  });
1322
1322
  module2.exports = __toCommonJS2(tree_exports);
1323
- var import_utils20 = require_cjs();
1323
+ var import_utils24 = require_cjs();
1324
1324
  var import_report = require_cjs2();
1325
1325
  var ROOT = {
1326
1326
  key: ":root",
1327
- node: import_utils20.document ? import_utils20.document.body : (0, import_report.report)("DocumentNotDefined", import_utils20.document)
1327
+ node: import_utils24.document ? import_utils24.document.body : (0, import_report.report)("DocumentNotDefined", import_utils24.document)
1328
1328
  };
1329
1329
  var TREE = ROOT;
1330
1330
  }
@@ -1360,12 +1360,12 @@ var require_on = __commonJS({
1360
1360
  triggerEventOnUpdate: () => triggerEventOnUpdate
1361
1361
  });
1362
1362
  module2.exports = __toCommonJS2(on_exports);
1363
- var import_utils20 = require_cjs();
1363
+ var import_utils24 = require_cjs();
1364
1364
  var applyEvent = (param, element, state, context, options) => {
1365
1365
  return param(element, state || element.state, context || element.context, options);
1366
1366
  };
1367
1367
  var triggerEventOn = (param, element, options) => {
1368
- if (element.on && (0, import_utils20.isFunction)(element.on[param])) {
1368
+ if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
1369
1369
  const { state, context } = element;
1370
1370
  return applyEvent(element.on[param], element, state, context, options);
1371
1371
  }
@@ -1374,7 +1374,7 @@ var require_on = __commonJS({
1374
1374
  return param(updatedObj, element, state || element.state, context || element.context, options);
1375
1375
  };
1376
1376
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
1377
- if (element.on && (0, import_utils20.isFunction)(element.on[param])) {
1377
+ if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
1378
1378
  const { state, context } = element;
1379
1379
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
1380
1380
  }
@@ -1385,7 +1385,7 @@ var require_on = __commonJS({
1385
1385
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
1386
1386
  continue;
1387
1387
  const appliedFunction = element.on[param];
1388
- if ((0, import_utils20.isFunction)(appliedFunction)) {
1388
+ if ((0, import_utils24.isFunction)(appliedFunction)) {
1389
1389
  const { state, context } = element;
1390
1390
  node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
1391
1391
  }
@@ -1421,10 +1421,10 @@ var require_can = __commonJS({
1421
1421
  });
1422
1422
  module2.exports = __toCommonJS2(can_exports);
1423
1423
  var import_report = require_cjs2();
1424
- var import_utils20 = require_cjs();
1424
+ var import_utils24 = require_cjs();
1425
1425
  var canRender = (element) => {
1426
1426
  const tag = element.tag || "div";
1427
- return (0, import_utils20.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1427
+ return (0, import_utils24.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1428
1428
  };
1429
1429
  }
1430
1430
  });
@@ -1515,7 +1515,7 @@ var require_cache = __commonJS({
1515
1515
  module2.exports = __toCommonJS2(cache_exports);
1516
1516
  var import_report = require_cjs2();
1517
1517
  var import_event = require_cjs3();
1518
- var import_utils20 = require_cjs();
1518
+ var import_utils24 = require_cjs();
1519
1519
  var cache2 = {};
1520
1520
  var createHTMLNode = (element) => {
1521
1521
  const { tag } = element;
@@ -1534,15 +1534,15 @@ var require_cache = __commonJS({
1534
1534
  };
1535
1535
  var detectTag = (element) => {
1536
1536
  let { tag, key } = element;
1537
- tag = (0, import_utils20.exec)(tag, element);
1537
+ tag = (0, import_utils24.exec)(tag, element);
1538
1538
  if (tag === true)
1539
1539
  tag = key;
1540
- if ((0, import_utils20.isString)(tag)) {
1541
- const tagExists = (0, import_utils20.isValidHtmlTag)(tag);
1540
+ if ((0, import_utils24.isString)(tag)) {
1541
+ const tagExists = (0, import_utils24.isValidHtmlTag)(tag);
1542
1542
  if (tagExists)
1543
1543
  return tag;
1544
1544
  } else {
1545
- const isKeyATag = (0, import_utils20.isValidHtmlTag)(key);
1545
+ const isKeyATag = (0, import_utils24.isValidHtmlTag)(key);
1546
1546
  if (isKeyATag)
1547
1547
  return key;
1548
1548
  }
@@ -1661,16 +1661,16 @@ var require_attr = __commonJS({
1661
1661
  default: () => attr_default
1662
1662
  });
1663
1663
  module2.exports = __toCommonJS2(attr_exports);
1664
- var import_utils20 = require_cjs();
1664
+ var import_utils24 = require_cjs();
1665
1665
  var import_report = require_cjs2();
1666
1666
  var attr_default = (params, element, node2) => {
1667
1667
  const { __ref } = element;
1668
1668
  const { __attr } = __ref;
1669
- if ((0, import_utils20.isNot)("object"))
1669
+ if ((0, import_utils24.isNot)("object"))
1670
1670
  (0, import_report.report)("HTMLInvalidAttr", params);
1671
1671
  if (params) {
1672
1672
  for (const attr in params) {
1673
- const val = (0, import_utils20.exec)(params[attr], element);
1673
+ const val = (0, import_utils24.exec)(params[attr], element);
1674
1674
  if (val && node2.setAttribute)
1675
1675
  node2.setAttribute(attr, val);
1676
1676
  else if (node2.removeAttribute)
@@ -1713,7 +1713,7 @@ var require_classList = __commonJS({
1713
1713
  default: () => classList_default
1714
1714
  });
1715
1715
  module2.exports = __toCommonJS2(classList_exports);
1716
- var import_utils20 = require_cjs();
1716
+ var import_utils24 = require_cjs();
1717
1717
  var assignKeyAsClassname = (element) => {
1718
1718
  const { key } = element;
1719
1719
  if (element.class === true)
@@ -1731,7 +1731,7 @@ var require_classList = __commonJS({
1731
1731
  else if (typeof param === "string")
1732
1732
  className += ` ${param}`;
1733
1733
  else if (typeof param === "function") {
1734
- className += ` ${(0, import_utils20.exec)(param, element)}`;
1734
+ className += ` ${(0, import_utils24.exec)(param, element)}`;
1735
1735
  }
1736
1736
  }
1737
1737
  return className;
@@ -1742,9 +1742,9 @@ var require_classList = __commonJS({
1742
1742
  const { key } = element;
1743
1743
  if (params === true)
1744
1744
  params = element.class = { key };
1745
- if ((0, import_utils20.isString)(params))
1745
+ if ((0, import_utils24.isString)(params))
1746
1746
  params = element.class = { default: params };
1747
- if ((0, import_utils20.isObject)(params))
1747
+ if ((0, import_utils24.isObject)(params))
1748
1748
  params = classify2(params, element);
1749
1749
  const className = params.replace(/\s+/g, " ").trim();
1750
1750
  if (element.ref)
@@ -1828,7 +1828,7 @@ var require_set = __commonJS({
1828
1828
  default: () => set_default
1829
1829
  });
1830
1830
  module2.exports = __toCommonJS2(set_exports);
1831
- var import_utils20 = require_cjs();
1831
+ var import_utils24 = require_cjs();
1832
1832
  var import_create = __toESM2(require_create4(), 1);
1833
1833
  var import_options3 = __toESM2(require_options(), 1);
1834
1834
  var import_mixins = require_mixins();
@@ -1836,7 +1836,7 @@ var require_set = __commonJS({
1836
1836
  var set5 = function(params, options = {}, el) {
1837
1837
  const element = el || this;
1838
1838
  const __contentRef = element.content && element.content.__ref;
1839
- if (__contentRef && __contentRef.__cached && (0, import_utils20.isEqualDeep)(params, element.content)) {
1839
+ if (__contentRef && __contentRef.__cached && (0, import_utils24.isEqualDeep)(params, element.content)) {
1840
1840
  return element;
1841
1841
  }
1842
1842
  (0, import_content.removeContent)(element);
@@ -1896,7 +1896,7 @@ var require_content = __commonJS({
1896
1896
  updateContent: () => updateContent
1897
1897
  });
1898
1898
  module2.exports = __toCommonJS2(content_exports);
1899
- var import_utils20 = require_cjs();
1899
+ var import_utils24 = require_cjs();
1900
1900
  var import_set = __toESM2(require_set(), 1);
1901
1901
  var updateContent = function(params, options) {
1902
1902
  const element = this;
@@ -1919,7 +1919,7 @@ var require_content = __commonJS({
1919
1919
  if (__cached && __cached.content) {
1920
1920
  if (__cached.content.tag === "fragment")
1921
1921
  __cached.content.parent.node.innerHTML = "";
1922
- else if (__cached.content && (0, import_utils20.isFunction)(__cached.content.remove))
1922
+ else if (__cached.content && (0, import_utils24.isFunction)(__cached.content.remove))
1923
1923
  __cached.content.remove();
1924
1924
  }
1925
1925
  delete element.content;
@@ -1964,15 +1964,15 @@ var require_data = __commonJS({
1964
1964
  default: () => data_default
1965
1965
  });
1966
1966
  module2.exports = __toCommonJS2(data_exports);
1967
- var import_utils20 = require_cjs();
1967
+ var import_utils24 = require_cjs();
1968
1968
  var import_report = require_cjs2();
1969
1969
  var data_default = (params, element, node2) => {
1970
1970
  if (params && params.showOnNode) {
1971
- if (!(0, import_utils20.isObject)(params))
1971
+ if (!(0, import_utils24.isObject)(params))
1972
1972
  (0, import_report.report)("HTMLInvalidData", params);
1973
1973
  for (const dataset in params) {
1974
1974
  if (dataset !== "showOnNode") {
1975
- node2.dataset[dataset] = (0, import_utils20.exec)(params[dataset], element);
1975
+ node2.dataset[dataset] = (0, import_utils24.exec)(params[dataset], element);
1976
1976
  }
1977
1977
  }
1978
1978
  }
@@ -2006,9 +2006,9 @@ var require_html = __commonJS({
2006
2006
  default: () => html_default
2007
2007
  });
2008
2008
  module2.exports = __toCommonJS2(html_exports);
2009
- var import_utils20 = require_cjs();
2009
+ var import_utils24 = require_cjs();
2010
2010
  var html_default = (param, element, node2) => {
2011
- const prop = (0, import_utils20.exec)(param, element);
2011
+ const prop = (0, import_utils24.exec)(param, element);
2012
2012
  const { __ref } = element;
2013
2013
  if (prop !== __ref.__html) {
2014
2014
  if (node2.nodeName === "SVG")
@@ -2047,12 +2047,12 @@ var require_style = __commonJS({
2047
2047
  default: () => style_default2
2048
2048
  });
2049
2049
  module2.exports = __toCommonJS2(style_exports);
2050
- var import_utils20 = require_cjs();
2050
+ var import_utils24 = require_cjs();
2051
2051
  var import_report = require_cjs2();
2052
2052
  var style_default2 = (params, element, node2) => {
2053
2053
  if (params) {
2054
- if ((0, import_utils20.isObject)(params))
2055
- (0, import_utils20.map)(node2.style, params, element);
2054
+ if ((0, import_utils24.isObject)(params))
2055
+ (0, import_utils24.map)(node2.style, params, element);
2056
2056
  else
2057
2057
  (0, import_report.report)("HTMLInvalidStyles", params);
2058
2058
  }
@@ -2088,9 +2088,9 @@ var require_text = __commonJS({
2088
2088
  });
2089
2089
  module2.exports = __toCommonJS2(text_exports);
2090
2090
  var import__ = require_cjs7();
2091
- var import_utils20 = require_cjs();
2091
+ var import_utils24 = require_cjs();
2092
2092
  var asd = (param, element, node2) => {
2093
- const prop = (0, import_utils20.exec)(param, element);
2093
+ const prop = (0, import_utils24.exec)(param, element);
2094
2094
  if (element.tag === "string") {
2095
2095
  node2.nodeValue = prop;
2096
2096
  } else if (param !== void 0 || param !== null) {
@@ -2104,9 +2104,9 @@ var require_text = __commonJS({
2104
2104
  }
2105
2105
  };
2106
2106
  var text_default = (param, element, node2) => {
2107
- let prop = (0, import_utils20.exec)(param, element);
2108
- if ((0, import_utils20.isString)(prop) && prop.includes("{{")) {
2109
- prop = (0, import_utils20.replaceLiteralsWithObjectFields)(prop, element.state);
2107
+ let prop = (0, import_utils24.exec)(param, element);
2108
+ if ((0, import_utils24.isString)(prop) && prop.includes("{{")) {
2109
+ prop = (0, import_utils24.replaceLiteralsWithObjectFields)(prop, element.state);
2110
2110
  }
2111
2111
  if (element.tag === "string") {
2112
2112
  if (element.text === prop)
@@ -2210,11 +2210,11 @@ var require_methods = __commonJS({
2210
2210
  toggle: () => toggle
2211
2211
  });
2212
2212
  module2.exports = __toCommonJS2(methods_exports);
2213
- var import_utils20 = require_cjs();
2213
+ var import_utils24 = require_cjs();
2214
2214
  var import_ignore = require_ignore();
2215
2215
  var parse3 = function() {
2216
2216
  const state = this;
2217
- if ((0, import_utils20.isObject)(state)) {
2217
+ if ((0, import_utils24.isObject)(state)) {
2218
2218
  const obj = {};
2219
2219
  for (const param in state) {
2220
2220
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -2222,7 +2222,7 @@ var require_methods = __commonJS({
2222
2222
  }
2223
2223
  }
2224
2224
  return obj;
2225
- } else if ((0, import_utils20.isArray)(state)) {
2225
+ } else if ((0, import_utils24.isArray)(state)) {
2226
2226
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
2227
2227
  }
2228
2228
  };
@@ -2242,7 +2242,7 @@ var require_methods = __commonJS({
2242
2242
  const state = this;
2243
2243
  const element = state.__element;
2244
2244
  const stateKey = element.__ref.__state;
2245
- if ((0, import_utils20.isString)(stateKey)) {
2245
+ if ((0, import_utils24.isString)(stateKey)) {
2246
2246
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
2247
2247
  return element.state;
2248
2248
  }
@@ -2277,10 +2277,10 @@ var require_methods = __commonJS({
2277
2277
  };
2278
2278
  var add = function(value2, options = {}) {
2279
2279
  const state = this;
2280
- if ((0, import_utils20.isArray)(state)) {
2280
+ if ((0, import_utils24.isArray)(state)) {
2281
2281
  state.push(value2);
2282
2282
  state.update(state.parse(), { overwrite: "replace", ...options });
2283
- } else if ((0, import_utils20.isObject)(state)) {
2283
+ } else if ((0, import_utils24.isObject)(state)) {
2284
2284
  const key = Object.keys(state).length;
2285
2285
  state.update({ [key]: value2 }, options);
2286
2286
  }
@@ -2291,10 +2291,10 @@ var require_methods = __commonJS({
2291
2291
  };
2292
2292
  var remove = function(key, options = {}) {
2293
2293
  const state = this;
2294
- if ((0, import_utils20.isArray)(state))
2295
- (0, import_utils20.removeFromArray)(state, key);
2296
- if ((0, import_utils20.isObject)(state))
2297
- (0, import_utils20.removeFromObject)(state, key);
2294
+ if ((0, import_utils24.isArray)(state))
2295
+ (0, import_utils24.removeFromArray)(state, key);
2296
+ if ((0, import_utils24.isObject)(state))
2297
+ (0, import_utils24.removeFromObject)(state, key);
2298
2298
  return state.update(state.parse(), { replace: true, ...options });
2299
2299
  };
2300
2300
  var set5 = function(value2, options = {}) {
@@ -2303,7 +2303,7 @@ var require_methods = __commonJS({
2303
2303
  };
2304
2304
  var apply = function(func, options = {}) {
2305
2305
  const state = this;
2306
- if ((0, import_utils20.isFunction)(func)) {
2306
+ if ((0, import_utils24.isFunction)(func)) {
2307
2307
  func(state);
2308
2308
  return state.update(state, { replace: true, ...options });
2309
2309
  }
@@ -2338,12 +2338,12 @@ var require_inherit = __commonJS({
2338
2338
  createChangesByKey: () => createChangesByKey,
2339
2339
  createInheritedState: () => createInheritedState,
2340
2340
  findInheritedState: () => findInheritedState,
2341
- getChildStateInKey: () => getChildStateInKey2,
2341
+ getChildStateInKey: () => getChildStateInKey3,
2342
2342
  getParentStateInKey: () => getParentStateInKey,
2343
- isState: () => isState2
2343
+ isState: () => isState3
2344
2344
  });
2345
2345
  module2.exports = __toCommonJS2(inherit_exports);
2346
- var import_utils20 = require_cjs();
2346
+ var import_utils24 = require_cjs();
2347
2347
  var import_ignore = require_ignore();
2348
2348
  var getParentStateInKey = (stateKey, parentState) => {
2349
2349
  if (!stateKey.includes("../"))
@@ -2357,7 +2357,7 @@ var require_inherit = __commonJS({
2357
2357
  }
2358
2358
  return parentState;
2359
2359
  };
2360
- var getChildStateInKey2 = (stateKey, parentState, options = {}) => {
2360
+ var getChildStateInKey3 = (stateKey, parentState, options = {}) => {
2361
2361
  const arr = stateKey.split("/");
2362
2362
  const arrLength = arr.length - 1;
2363
2363
  for (let i2 = 0; i2 < arrLength; i2++) {
@@ -2390,16 +2390,16 @@ var require_inherit = __commonJS({
2390
2390
  }
2391
2391
  if (!parentState)
2392
2392
  return;
2393
- return getChildStateInKey2(stateKey, parentState, options);
2393
+ return getChildStateInKey3(stateKey, parentState, options);
2394
2394
  };
2395
2395
  var createInheritedState = (element, parent) => {
2396
2396
  const ref = element.__ref;
2397
2397
  const inheritedState = findInheritedState(element, parent);
2398
2398
  if (!inheritedState)
2399
2399
  return element.state;
2400
- if ((0, import_utils20.is)(inheritedState)("object", "array")) {
2401
- return (0, import_utils20.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2402
- } else if ((0, import_utils20.is)(inheritedState)("string", "number")) {
2400
+ if ((0, import_utils24.is)(inheritedState)("object", "array")) {
2401
+ return (0, import_utils24.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2402
+ } else if ((0, import_utils24.is)(inheritedState)("string", "number")) {
2403
2403
  ref.__stateType = "string";
2404
2404
  return { value: inheritedState };
2405
2405
  }
@@ -2408,12 +2408,12 @@ var require_inherit = __commonJS({
2408
2408
  var checkIfInherits = (element) => {
2409
2409
  const ref = element.__ref;
2410
2410
  const stateKey = ref.__state;
2411
- if (!stateKey || (0, import_utils20.isNot)(stateKey)("number", "string"))
2411
+ if (!stateKey || (0, import_utils24.isNot)(stateKey)("number", "string"))
2412
2412
  return false;
2413
2413
  return true;
2414
2414
  };
2415
- var isState2 = function(state) {
2416
- if (!(0, import_utils20.isObjectLike)(state))
2415
+ var isState3 = function(state) {
2416
+ if (!(0, import_utils24.isObjectLike)(state))
2417
2417
  return false;
2418
2418
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
2419
2419
  };
@@ -2462,7 +2462,7 @@ var require_updateState = __commonJS({
2462
2462
  var import_report = require_cjs2();
2463
2463
  var import_event = require_cjs3();
2464
2464
  var import_ignore = require_ignore();
2465
- var import_utils20 = require_cjs();
2465
+ var import_utils24 = require_cjs();
2466
2466
  var import_inherit = require_inherit();
2467
2467
  var STATE_UPDATE_OPTIONS = {
2468
2468
  overwrite: true,
@@ -2476,7 +2476,7 @@ var require_updateState = __commonJS({
2476
2476
  const state = this;
2477
2477
  const element = state.__element;
2478
2478
  if (!options.updateByState)
2479
- (0, import_utils20.merge)(options, STATE_UPDATE_OPTIONS);
2479
+ (0, import_utils24.merge)(options, STATE_UPDATE_OPTIONS);
2480
2480
  if (!state.__element)
2481
2481
  (0, import_report.report)("ElementOnStateIsNotDefined");
2482
2482
  if (options.preventInheritAtCurrentState === true) {
@@ -2506,10 +2506,10 @@ var require_updateState = __commonJS({
2506
2506
  const shallow = overwrite === "shallow";
2507
2507
  const merge22 = overwrite === "merge";
2508
2508
  if (merge22) {
2509
- (0, import_utils20.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2509
+ (0, import_utils24.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2510
2510
  return;
2511
2511
  }
2512
- const overwriteFunc = shallow ? import_utils20.overwriteShallow : import_utils20.overwriteDeep;
2512
+ const overwriteFunc = shallow ? import_utils24.overwriteShallow : import_utils24.overwriteDeep;
2513
2513
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2514
2514
  };
2515
2515
  var hoistStateUpdate = (state, obj, options) => {
@@ -2600,7 +2600,7 @@ var require_create2 = __commonJS({
2600
2600
  });
2601
2601
  module2.exports = __toCommonJS2(create_exports);
2602
2602
  var import_event = require_cjs3();
2603
- var import_utils20 = require_cjs();
2603
+ var import_utils24 = require_cjs();
2604
2604
  var import_ignore = require_ignore();
2605
2605
  var import_methods = require_methods();
2606
2606
  var import_updateState = require_updateState();
@@ -2614,7 +2614,7 @@ var require_create2 = __commonJS({
2614
2614
  if (objectizeState === false)
2615
2615
  return parent.state || {};
2616
2616
  else
2617
- element.state = (0, import_utils20.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2617
+ element.state = (0, import_utils24.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2618
2618
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
2619
2619
  if (whatInitReturns === false)
2620
2620
  return element.state;
@@ -2633,17 +2633,17 @@ var require_create2 = __commonJS({
2633
2633
  const { __ref: ref } = state;
2634
2634
  if (!ref)
2635
2635
  return;
2636
- const dependentState = (0, import_utils20.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2636
+ const dependentState = (0, import_utils24.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2637
2637
  const newDepends = { [element.key]: dependentState };
2638
- ref.__depends = (0, import_utils20.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2638
+ ref.__depends = (0, import_utils24.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2639
2639
  return dependentState;
2640
2640
  };
2641
2641
  var checkForTypes = (element) => {
2642
2642
  const { state, __ref: ref } = element;
2643
- if ((0, import_utils20.isFunction)(state)) {
2643
+ if ((0, import_utils24.isFunction)(state)) {
2644
2644
  ref.__state = state;
2645
- return (0, import_utils20.exec)(state, element);
2646
- } else if ((0, import_utils20.is)(state)("string", "number")) {
2645
+ return (0, import_utils24.exec)(state, element);
2646
+ } else if ((0, import_utils24.is)(state)("string", "number")) {
2647
2647
  ref.__state = state;
2648
2648
  return {};
2649
2649
  } else if (state === true) {
@@ -2690,7 +2690,7 @@ var require_create2 = __commonJS({
2690
2690
  __children: {},
2691
2691
  __root: ref.__root ? ref.__root.state : state
2692
2692
  };
2693
- if ((0, import_utils20.isArray)(state)) {
2693
+ if ((0, import_utils24.isArray)(state)) {
2694
2694
  addProtoToArray(state, proto);
2695
2695
  } else {
2696
2696
  Object.setPrototypeOf(state, proto);
@@ -2757,17 +2757,17 @@ var require_state = __commonJS({
2757
2757
  state: () => state
2758
2758
  });
2759
2759
  module2.exports = __toCommonJS2(state_exports);
2760
- var import_state2 = require_cjs5();
2761
- var import_utils20 = require_cjs();
2760
+ var import_state3 = require_cjs5();
2761
+ var import_utils24 = require_cjs();
2762
2762
  var state = (params, element, node2) => {
2763
- const state2 = (0, import_utils20.exec)(params, element);
2764
- if ((0, import_utils20.isObject)(state2)) {
2763
+ const state2 = (0, import_utils24.exec)(params, element);
2764
+ if ((0, import_utils24.isObject)(state2)) {
2765
2765
  for (const param in state2) {
2766
- if (import_state2.IGNORE_STATE_PARAMS.includes(param))
2766
+ if (import_state3.IGNORE_STATE_PARAMS.includes(param))
2767
2767
  continue;
2768
2768
  if (!Object.hasOwnProperty.call(state2, param))
2769
2769
  continue;
2770
- element.state[param] = (0, import_utils20.exec)(state2[param], element);
2770
+ element.state[param] = (0, import_utils24.exec)(state2[param], element);
2771
2771
  }
2772
2772
  }
2773
2773
  return element;
@@ -2913,8 +2913,8 @@ var require_mixins = __commonJS({
2913
2913
  data: () => import_data.default,
2914
2914
  html: () => import_html.default,
2915
2915
  registry: () => import_registry.default,
2916
- state: () => import_state2.default,
2917
- style: () => import_style4.default,
2916
+ state: () => import_state3.default,
2917
+ style: () => import_style6.default,
2918
2918
  text: () => import_text.default
2919
2919
  });
2920
2920
  module2.exports = __toCommonJS2(mixins_exports);
@@ -2923,9 +2923,9 @@ var require_mixins = __commonJS({
2923
2923
  var import_content = __toESM2(require_content(), 1);
2924
2924
  var import_data = __toESM2(require_data(), 1);
2925
2925
  var import_html = __toESM2(require_html(), 1);
2926
- var import_style4 = __toESM2(require_style(), 1);
2926
+ var import_style6 = __toESM2(require_style(), 1);
2927
2927
  var import_text = __toESM2(require_text(), 1);
2928
- var import_state2 = __toESM2(require_state(), 1);
2928
+ var import_state3 = __toESM2(require_state(), 1);
2929
2929
  var import_registry = __toESM2(require_registry(), 1);
2930
2930
  __reExport2(mixins_exports, require_registry(), module2.exports);
2931
2931
  }
@@ -2970,7 +2970,7 @@ var require_methods2 = __commonJS({
2970
2970
  spotByPath: () => spotByPath
2971
2971
  });
2972
2972
  module2.exports = __toCommonJS2(methods_exports);
2973
- var import_utils20 = require_cjs();
2973
+ var import_utils24 = require_cjs();
2974
2974
  var import_tree = require_tree();
2975
2975
  var import_mixins = require_mixins();
2976
2976
  var spotByPath = function(path) {
@@ -3003,9 +3003,9 @@ var require_methods2 = __commonJS({
3003
3003
  };
3004
3004
  var remove = function(params) {
3005
3005
  const element = this;
3006
- if ((0, import_utils20.isFunction)(element.node.remove))
3006
+ if ((0, import_utils24.isFunction)(element.node.remove))
3007
3007
  element.node.remove();
3008
- else if (!(0, import_utils20.isProduction)()) {
3008
+ else if (!(0, import_utils24.isProduction)()) {
3009
3009
  console.warn("This item cant be removed");
3010
3010
  element.log();
3011
3011
  }
@@ -3045,12 +3045,12 @@ var require_methods2 = __commonJS({
3045
3045
  if (v === "state") {
3046
3046
  if (element.__ref && element.__ref.__hasRootState)
3047
3047
  return;
3048
- if ((0, import_utils20.isFunction)(val && val.parse))
3048
+ if ((0, import_utils24.isFunction)(val && val.parse))
3049
3049
  val = val.parse();
3050
3050
  } else if (v === "props") {
3051
3051
  const { __element, update, ...props4 } = element[v];
3052
3052
  obj[v] = props4;
3053
- } else if ((0, import_utils20.isDefined)(val))
3053
+ } else if ((0, import_utils24.isDefined)(val))
3054
3054
  obj[v] = val;
3055
3055
  });
3056
3056
  return obj;
@@ -3061,7 +3061,7 @@ var require_methods2 = __commonJS({
3061
3061
  for (const v in obj) {
3062
3062
  if (excl.includes(v))
3063
3063
  return;
3064
- if ((0, import_utils20.isObjectLike)(obj[v])) {
3064
+ if ((0, import_utils24.isObjectLike)(obj[v])) {
3065
3065
  obj[v] = parseDeep.call(obj[v], excl);
3066
3066
  }
3067
3067
  }
@@ -3179,18 +3179,18 @@ var require_inherit2 = __commonJS({
3179
3179
  inheritParentProps: () => inheritParentProps
3180
3180
  });
3181
3181
  module2.exports = __toCommonJS2(inherit_exports);
3182
- var import_utils20 = require_cjs();
3182
+ var import_utils24 = require_cjs();
3183
3183
  var objectizeStringProperty = (propValue) => {
3184
- if ((0, import_utils20.is)(propValue)("string", "number")) {
3184
+ if ((0, import_utils24.is)(propValue)("string", "number")) {
3185
3185
  return { inheritedString: propValue };
3186
3186
  }
3187
3187
  return propValue;
3188
3188
  };
3189
3189
  var inheritParentProps = (element, parent) => {
3190
3190
  let propsStack = [];
3191
- const parentProps = (0, import_utils20.exec)(parent, parent.state).props;
3191
+ const parentProps = (0, import_utils24.exec)(parent, parent.state).props;
3192
3192
  const matchParent = parent.props && parentProps[element.key];
3193
- const matchParentIsString = (0, import_utils20.isString)(matchParent);
3193
+ const matchParentIsString = (0, import_utils24.isString)(matchParent);
3194
3194
  const matchParentChildProps = parentProps && parentProps.childProps;
3195
3195
  if (matchParent) {
3196
3196
  if (matchParentIsString) {
@@ -3238,19 +3238,19 @@ var require_create3 = __commonJS({
3238
3238
  syncProps: () => syncProps
3239
3239
  });
3240
3240
  module2.exports = __toCommonJS2(create_exports);
3241
- var import_utils20 = require_cjs();
3241
+ var import_utils24 = require_cjs();
3242
3242
  var import_ignore = require_ignore2();
3243
3243
  var import_inherit = require_inherit2();
3244
3244
  var createPropsStack = (element, parent) => {
3245
3245
  const { props: props4, __ref } = element;
3246
3246
  const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
3247
- if ((0, import_utils20.isObject)(props4))
3247
+ if ((0, import_utils24.isObject)(props4))
3248
3248
  propsStack.push(props4);
3249
3249
  else if (props4 === "inherit" && parent.props)
3250
3250
  propsStack.push(parent.props);
3251
3251
  else if (props4)
3252
3252
  propsStack.push(props4);
3253
- if ((0, import_utils20.isArray)(__ref.__extend)) {
3253
+ if ((0, import_utils24.isArray)(__ref.__extend)) {
3254
3254
  __ref.__extend.forEach((extend) => {
3255
3255
  if (extend.props)
3256
3256
  propsStack.push(extend.props);
@@ -3265,12 +3265,12 @@ var require_create3 = __commonJS({
3265
3265
  props4.forEach((v) => {
3266
3266
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
3267
3267
  return;
3268
- const execProps = (0, import_utils20.exec)(v, element);
3269
- if ((0, import_utils20.isObject)(execProps) && execProps.__element)
3268
+ const execProps = (0, import_utils24.exec)(v, element);
3269
+ if ((0, import_utils24.isObject)(execProps) && execProps.__element)
3270
3270
  return;
3271
- element.props = (0, import_utils20.deepMerge)(
3271
+ element.props = (0, import_utils24.deepMerge)(
3272
3272
  mergedProps,
3273
- (0, import_utils20.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3273
+ (0, import_utils24.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3274
3274
  import_ignore.IGNORE_PROPS_PARAMS
3275
3275
  );
3276
3276
  });
@@ -3391,7 +3391,7 @@ var require_object2 = __commonJS({
3391
3391
  __export2(object_exports, {
3392
3392
  METHODS_EXL: () => METHODS_EXL,
3393
3393
  clone: () => clone,
3394
- deepClone: () => deepClone3,
3394
+ deepClone: () => deepClone4,
3395
3395
  deepMerge: () => deepMerge4,
3396
3396
  flattenRecursive: () => flattenRecursive,
3397
3397
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
@@ -3399,17 +3399,17 @@ var require_object2 = __commonJS({
3399
3399
  mergeIfExisted: () => mergeIfExisted,
3400
3400
  overwrite: () => overwrite,
3401
3401
  overwriteDeep: () => overwriteDeep,
3402
- overwriteShallow: () => overwriteShallow2
3402
+ overwriteShallow: () => overwriteShallow3
3403
3403
  });
3404
3404
  module2.exports = __toCommonJS2(object_exports);
3405
- var import_utils20 = require_cjs();
3406
- var import_state2 = require_cjs5();
3405
+ var import_utils24 = require_cjs();
3406
+ var import_state3 = require_cjs5();
3407
3407
  var import_props = require_props();
3408
3408
  var import_methods = require_methods2();
3409
- var METHODS_EXL = (0, import_utils20.joinArrays)(
3409
+ var METHODS_EXL = (0, import_utils24.joinArrays)(
3410
3410
  ["node", "state", "context", "extend"],
3411
3411
  import_methods.METHODS,
3412
- import_state2.IGNORE_STATE_PARAMS,
3412
+ import_state3.IGNORE_STATE_PARAMS,
3413
3413
  import_props.IGNORE_PROPS_PARAMS
3414
3414
  );
3415
3415
  var deepMerge4 = (element, extend, exclude = METHODS_EXL) => {
@@ -3420,7 +3420,7 @@ var require_object2 = __commonJS({
3420
3420
  const extendProp = extend[e];
3421
3421
  if (elementProp === void 0) {
3422
3422
  element[e] = extendProp;
3423
- } else if ((0, import_utils20.isObjectLike)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3423
+ } else if ((0, import_utils24.isObjectLike)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3424
3424
  deepMerge4(elementProp, extendProp);
3425
3425
  }
3426
3426
  }
@@ -3435,17 +3435,17 @@ var require_object2 = __commonJS({
3435
3435
  }
3436
3436
  return o;
3437
3437
  };
3438
- var deepClone3 = (obj, exclude = METHODS_EXL) => {
3439
- const o = (0, import_utils20.isArray)(obj) ? [] : {};
3438
+ var deepClone4 = (obj, exclude = METHODS_EXL) => {
3439
+ const o = (0, import_utils24.isArray)(obj) ? [] : {};
3440
3440
  for (const e in obj) {
3441
3441
  if (exclude.includes(e))
3442
3442
  continue;
3443
3443
  let objProp = obj[e];
3444
- if (e === "extend" && (0, import_utils20.isArray)(objProp)) {
3444
+ if (e === "extend" && (0, import_utils24.isArray)(objProp)) {
3445
3445
  objProp = mergeArray(objProp, exclude);
3446
3446
  }
3447
- if ((0, import_utils20.isObjectLike)(objProp)) {
3448
- o[e] = deepClone3(objProp, exclude);
3447
+ if ((0, import_utils24.isObjectLike)(objProp)) {
3448
+ o[e] = deepClone4(objProp, exclude);
3449
3449
  } else
3450
3450
  o[e] = objProp;
3451
3451
  }
@@ -3469,7 +3469,7 @@ var require_object2 = __commonJS({
3469
3469
  }
3470
3470
  return changes;
3471
3471
  };
3472
- var overwriteShallow2 = (obj, params, exclude = METHODS_EXL) => {
3472
+ var overwriteShallow3 = (obj, params, exclude = METHODS_EXL) => {
3473
3473
  for (const e in params) {
3474
3474
  if (exclude.includes(e))
3475
3475
  continue;
@@ -3483,7 +3483,7 @@ var require_object2 = __commonJS({
3483
3483
  continue;
3484
3484
  const objProp = obj[e];
3485
3485
  const paramsProp = params[e];
3486
- if ((0, import_utils20.isObjectLike)(objProp) && (0, import_utils20.isObjectLike)(paramsProp)) {
3486
+ if ((0, import_utils24.isObjectLike)(objProp) && (0, import_utils24.isObjectLike)(paramsProp)) {
3487
3487
  overwriteDeep(objProp, paramsProp);
3488
3488
  } else if (paramsProp !== void 0) {
3489
3489
  obj[e] = paramsProp;
@@ -3492,15 +3492,15 @@ var require_object2 = __commonJS({
3492
3492
  return obj;
3493
3493
  };
3494
3494
  var mergeIfExisted = (a, b) => {
3495
- if ((0, import_utils20.isObjectLike)(a) && (0, import_utils20.isObjectLike)(b))
3495
+ if ((0, import_utils24.isObjectLike)(a) && (0, import_utils24.isObjectLike)(b))
3496
3496
  return deepMerge4(a, b);
3497
3497
  return a || b;
3498
3498
  };
3499
3499
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
3500
- return arr.reduce((a, c) => deepMerge4(a, deepClone3(c, exclude)), {});
3500
+ return arr.reduce((a, c) => deepMerge4(a, deepClone4(c, exclude)), {});
3501
3501
  };
3502
3502
  var mergeAndCloneIfArray = (obj) => {
3503
- return (0, import_utils20.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
3503
+ return (0, import_utils24.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
3504
3504
  };
3505
3505
  var flattenRecursive = (param, prop, stack = []) => {
3506
3506
  const objectized = mergeAndCloneIfArray(param);
@@ -3556,7 +3556,7 @@ var require_extendUtils = __commonJS({
3556
3556
  setHashedExtend: () => setHashedExtend
3557
3557
  });
3558
3558
  module2.exports = __toCommonJS2(extendUtils_exports);
3559
- var import_utils20 = require_cjs();
3559
+ var import_utils24 = require_cjs();
3560
3560
  var ENV2 = "development";
3561
3561
  var generateHash = () => Math.random().toString(36).substring(2);
3562
3562
  var extendStackRegistry = {};
@@ -3566,7 +3566,7 @@ var require_extendUtils = __commonJS({
3566
3566
  };
3567
3567
  var setHashedExtend = (extend, stack) => {
3568
3568
  const hash2 = generateHash();
3569
- if (!(0, import_utils20.isString)(extend)) {
3569
+ if (!(0, import_utils24.isString)(extend)) {
3570
3570
  extend.__hash = hash2;
3571
3571
  }
3572
3572
  extendStackRegistry[hash2] = stack;
@@ -3592,7 +3592,7 @@ var require_extendUtils = __commonJS({
3592
3592
  var flattenExtend = (extend, stack) => {
3593
3593
  if (!extend)
3594
3594
  return stack;
3595
- if ((0, import_utils20.isArray)(extend))
3595
+ if ((0, import_utils24.isArray)(extend))
3596
3596
  return extractArrayExtend(extend, stack);
3597
3597
  stack.push(extend);
3598
3598
  if (extend.extend)
@@ -3605,9 +3605,9 @@ var require_extendUtils = __commonJS({
3605
3605
  if (["parent", "node", "__element"].indexOf(prop) > -1)
3606
3606
  continue;
3607
3607
  const objProp = obj[prop];
3608
- if ((0, import_utils20.isObject)(objProp)) {
3608
+ if ((0, import_utils24.isObject)(objProp)) {
3609
3609
  o[prop] = deepCloneExtend(objProp);
3610
- } else if ((0, import_utils20.isArray)(objProp)) {
3610
+ } else if ((0, import_utils24.isArray)(objProp)) {
3611
3611
  o[prop] = objProp.map((x) => x);
3612
3612
  } else
3613
3613
  o[prop] = objProp;
@@ -3622,14 +3622,14 @@ var require_extendUtils = __commonJS({
3622
3622
  const extendProp = extend[e];
3623
3623
  if (elementProp === void 0) {
3624
3624
  element[e] = extendProp;
3625
- } else if ((0, import_utils20.isObject)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3625
+ } else if ((0, import_utils24.isObject)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3626
3626
  deepMergeExtend(elementProp, extendProp);
3627
- } else if ((0, import_utils20.isArray)(elementProp) && (0, import_utils20.isArray)(extendProp)) {
3627
+ } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isArray)(extendProp)) {
3628
3628
  element[e] = elementProp.concat(extendProp);
3629
- } else if ((0, import_utils20.isArray)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3629
+ } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3630
3630
  const obj = deepMergeExtend({}, elementProp);
3631
3631
  element[e] = deepMergeExtend(obj, extendProp);
3632
- } else if (elementProp === void 0 && (0, import_utils20.isFunction)(extendProp)) {
3632
+ } else if (elementProp === void 0 && (0, import_utils24.isFunction)(extendProp)) {
3633
3633
  element[e] = extendProp;
3634
3634
  }
3635
3635
  }
@@ -3642,7 +3642,7 @@ var require_extendUtils = __commonJS({
3642
3642
  };
3643
3643
  var fallbackStringExtend = (extend, context, options) => {
3644
3644
  const COMPONENTS = context && context.components || options.components;
3645
- if ((0, import_utils20.isString)(extend)) {
3645
+ if ((0, import_utils24.isString)(extend)) {
3646
3646
  console.log("extend", extend);
3647
3647
  console.log(COMPONENTS[extend]);
3648
3648
  if (COMPONENTS && COMPONENTS[extend]) {
@@ -3674,11 +3674,11 @@ var require_extendUtils = __commonJS({
3674
3674
  var replaceStringsWithComponents = (stack, context, options) => {
3675
3675
  const COMPONENTS = context && context.components || options.components;
3676
3676
  return stack.map((v) => {
3677
- if ((0, import_utils20.isString)(v)) {
3677
+ if ((0, import_utils24.isString)(v)) {
3678
3678
  const component = COMPONENTS[v];
3679
3679
  return component;
3680
3680
  }
3681
- if ((0, import_utils20.isString)(v.extend)) {
3681
+ if ((0, import_utils24.isString)(v.extend)) {
3682
3682
  v.extend = COMPONENTS[v.extend];
3683
3683
  return { ...getExtendMerged(v.extend), ...v };
3684
3684
  }
@@ -3714,15 +3714,15 @@ var require_extend = __commonJS({
3714
3714
  applyExtend: () => applyExtend
3715
3715
  });
3716
3716
  module2.exports = __toCommonJS2(extend_exports);
3717
- var import_utils20 = require_cjs();
3718
- var import_utils22 = require_utils();
3717
+ var import_utils24 = require_cjs();
3718
+ var import_utils25 = require_utils();
3719
3719
  var ENV2 = "development";
3720
3720
  var applyExtend = (element, parent, options = {}) => {
3721
- if ((0, import_utils20.isFunction)(element))
3722
- element = (0, import_utils20.exec)(element, parent);
3721
+ if ((0, import_utils24.isFunction)(element))
3722
+ element = (0, import_utils24.exec)(element, parent);
3723
3723
  let { extend, props: props4, context, __ref } = element;
3724
- extend = (0, import_utils22.fallbackStringExtend)(extend, context, options);
3725
- const extendStack = (0, import_utils22.getExtendStack)(extend);
3724
+ extend = (0, import_utils25.fallbackStringExtend)(extend, context, options);
3725
+ const extendStack = (0, import_utils25.getExtendStack)(extend);
3726
3726
  if (ENV2 !== "test" || ENV2 !== "development")
3727
3727
  delete element.extend;
3728
3728
  let childExtendStack = [];
@@ -3731,12 +3731,12 @@ var require_extend = __commonJS({
3731
3731
  if (!options.ignoreChildExtend) {
3732
3732
  if (props4 && props4.ignoreChildExtend)
3733
3733
  return;
3734
- childExtendStack = (0, import_utils22.getExtendStack)(parent.childExtend);
3734
+ childExtendStack = (0, import_utils25.getExtendStack)(parent.childExtend);
3735
3735
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
3736
3736
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
3737
3737
  const canExtendRecursive = element.key !== "__text";
3738
3738
  if (canExtendRecursive) {
3739
- const childExtendRecursiveStack = (0, import_utils22.getExtendStack)(parent.childExtendRecursive);
3739
+ const childExtendRecursiveStack = (0, import_utils25.getExtendStack)(parent.childExtendRecursive);
3740
3740
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
3741
3741
  element.childExtendRecursive = parent.childExtendRecursive;
3742
3742
  }
@@ -3747,7 +3747,7 @@ var require_extend = __commonJS({
3747
3747
  const childExtendLength = childExtendStack.length;
3748
3748
  let stack = [];
3749
3749
  if (extendLength && childExtendLength) {
3750
- stack = (0, import_utils22.jointStacks)(extendStack, childExtendStack);
3750
+ stack = (0, import_utils25.jointStacks)(extendStack, childExtendStack);
3751
3751
  } else if (extendLength) {
3752
3752
  stack = extendStack;
3753
3753
  } else if (childExtendLength) {
@@ -3755,20 +3755,20 @@ var require_extend = __commonJS({
3755
3755
  } else if (!options.extend)
3756
3756
  return element;
3757
3757
  if (options.extend) {
3758
- const defaultOptionsExtend = (0, import_utils22.getExtendStack)(options.extend);
3758
+ const defaultOptionsExtend = (0, import_utils25.getExtendStack)(options.extend);
3759
3759
  stack = [].concat(stack, defaultOptionsExtend);
3760
3760
  }
3761
3761
  if (__ref)
3762
3762
  __ref.__extend = stack;
3763
- const findAndReplaceStrings = (0, import_utils22.replaceStringsWithComponents)(stack, context, options);
3764
- let mergedExtend = (0, import_utils22.cloneAndMergeArrayExtend)(findAndReplaceStrings);
3763
+ const findAndReplaceStrings = (0, import_utils25.replaceStringsWithComponents)(stack, context, options);
3764
+ let mergedExtend = (0, import_utils25.cloneAndMergeArrayExtend)(findAndReplaceStrings);
3765
3765
  const COMPONENTS = context && context.components || options.components;
3766
- const component = (0, import_utils20.exec)(element.component || mergedExtend.component, element);
3766
+ const component = (0, import_utils24.exec)(element.component || mergedExtend.component, element);
3767
3767
  if (component && COMPONENTS && COMPONENTS[component]) {
3768
- const componentExtend = (0, import_utils22.cloneAndMergeArrayExtend)((0, import_utils22.getExtendStack)(COMPONENTS[component]));
3769
- mergedExtend = (0, import_utils22.deepMergeExtend)(componentExtend, mergedExtend);
3768
+ const componentExtend = (0, import_utils25.cloneAndMergeArrayExtend)((0, import_utils25.getExtendStack)(COMPONENTS[component]));
3769
+ mergedExtend = (0, import_utils25.deepMergeExtend)(componentExtend, mergedExtend);
3770
3770
  }
3771
- return (0, import_utils22.deepMergeExtend)(element, mergedExtend);
3771
+ return (0, import_utils25.deepMergeExtend)(element, mergedExtend);
3772
3772
  };
3773
3773
  }
3774
3774
  });
@@ -3807,11 +3807,11 @@ var require_component = __commonJS({
3807
3807
  overwriteVariant: () => overwriteVariant
3808
3808
  });
3809
3809
  module2.exports = __toCommonJS2(component_exports);
3810
- var import_utils20 = require_cjs();
3810
+ var import_utils24 = require_cjs();
3811
3811
  var import_extend = require_extend();
3812
3812
  var ENV2 = "development";
3813
3813
  var checkIfKeyIsComponent = (key) => {
3814
- const isFirstKeyString = (0, import_utils20.isString)(key);
3814
+ const isFirstKeyString = (0, import_utils24.isString)(key);
3815
3815
  if (!isFirstKeyString)
3816
3816
  return;
3817
3817
  const firstCharKey = key.slice(0, 1);
@@ -3819,7 +3819,7 @@ var require_component = __commonJS({
3819
3819
  };
3820
3820
  var addAdditionalExtend = (newExtend, element) => {
3821
3821
  const { extend } = element;
3822
- const preserveExtend = (0, import_utils20.isArray)(extend) ? extend : [extend];
3822
+ const preserveExtend = (0, import_utils24.isArray)(extend) ? extend : [extend];
3823
3823
  return {
3824
3824
  ...element,
3825
3825
  extend: [newExtend].concat(preserveExtend)
@@ -3842,10 +3842,10 @@ var require_component = __commonJS({
3842
3842
  };
3843
3843
  } else if (extend) {
3844
3844
  addAdditionalExtend(extendKey, element);
3845
- } else if ((0, import_utils20.isFunction)(element)) {
3845
+ } else if ((0, import_utils24.isFunction)(element)) {
3846
3846
  return {
3847
3847
  extend: extendKey,
3848
- props: { ...(0, import_utils20.exec)(element, parent) }
3848
+ props: { ...(0, import_utils24.exec)(element, parent) }
3849
3849
  };
3850
3850
  }
3851
3851
  };
@@ -3858,8 +3858,8 @@ var require_component = __commonJS({
3858
3858
  return;
3859
3859
  const { components } = context;
3860
3860
  const { extend } = element;
3861
- const execExtend = (0, import_utils20.exec)(extend, element);
3862
- if ((0, import_utils20.isString)(execExtend)) {
3861
+ const execExtend = (0, import_utils24.exec)(extend, element);
3862
+ if ((0, import_utils24.isString)(execExtend)) {
3863
3863
  if (components[execExtend])
3864
3864
  element.extend = components[execExtend];
3865
3865
  else {
@@ -3872,29 +3872,29 @@ var require_component = __commonJS({
3872
3872
  }
3873
3873
  };
3874
3874
  var isVariant = (param) => {
3875
- if (!(0, import_utils20.isString)(param))
3875
+ if (!(0, import_utils24.isString)(param))
3876
3876
  return;
3877
3877
  const firstCharKey = param.slice(0, 1);
3878
3878
  return firstCharKey === ".";
3879
3879
  };
3880
3880
  var hasVariantProp = (element) => {
3881
3881
  const { props: props4 } = element;
3882
- if ((0, import_utils20.isObject)(props4) && (0, import_utils20.isString)(props4.variant))
3882
+ if ((0, import_utils24.isObject)(props4) && (0, import_utils24.isString)(props4.variant))
3883
3883
  return true;
3884
3884
  };
3885
3885
  var overwriteVariant = (element, variant, variantProps) => {
3886
3886
  let variantElement = element[variant];
3887
3887
  if (!variantElement)
3888
3888
  return;
3889
- const props4 = (0, import_utils20.isObject)(variantProps) ? variantProps : {};
3890
- if ((0, import_utils20.isString)(variantElement)) {
3889
+ const props4 = (0, import_utils24.isObject)(variantProps) ? variantProps : {};
3890
+ if ((0, import_utils24.isString)(variantElement)) {
3891
3891
  variantElement = {
3892
3892
  extend: [{ props: props4 }, variantElement]
3893
3893
  };
3894
3894
  } else if (variantElement.extend) {
3895
3895
  variantElement = addAdditionalExtend({ props: props4 }, variantElement);
3896
3896
  }
3897
- return (0, import_utils20.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3897
+ return (0, import_utils24.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3898
3898
  };
3899
3899
  var applyVariant = (element) => {
3900
3900
  const { props: props4 } = element;
@@ -3969,8 +3969,8 @@ var require_iterate = __commonJS({
3969
3969
  throughUpdatedExec: () => throughUpdatedExec
3970
3970
  });
3971
3971
  module2.exports = __toCommonJS2(iterate_exports);
3972
- var import_utils20 = require_cjs();
3973
- var import_utils22 = require_utils();
3972
+ var import_utils24 = require_cjs();
3973
+ var import_utils25 = require_utils();
3974
3974
  var import_methods = require_methods2();
3975
3975
  var throughInitialExec = (element, exclude = {}) => {
3976
3976
  const { __ref: ref } = element;
@@ -3978,13 +3978,13 @@ var require_iterate = __commonJS({
3978
3978
  if (exclude[param])
3979
3979
  continue;
3980
3980
  const prop = element[param];
3981
- if ((0, import_utils20.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
3981
+ if ((0, import_utils24.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils25.isVariant)(param)) {
3982
3982
  ref.__exec[param] = prop;
3983
3983
  element[param] = prop(element, element.state);
3984
3984
  }
3985
3985
  }
3986
3986
  };
3987
- var throughUpdatedExec = (element, options = { excludes: import_utils22.METHODS_EXL }) => {
3987
+ var throughUpdatedExec = (element, options = { excludes: import_utils25.METHODS_EXL }) => {
3988
3988
  const { __ref: ref } = element;
3989
3989
  const changes = {};
3990
3990
  for (const param in ref.__exec) {
@@ -3993,13 +3993,13 @@ var require_iterate = __commonJS({
3993
3993
  if (isDefinedParam)
3994
3994
  continue;
3995
3995
  const newExec = ref.__exec[param](element, element.state, element.context);
3996
- const execReturnsString = (0, import_utils20.isString)(newExec) || (0, import_utils20.isNumber)(newExec);
3996
+ const execReturnsString = (0, import_utils24.isString)(newExec) || (0, import_utils24.isNumber)(newExec);
3997
3997
  if (prop && prop.node && execReturnsString) {
3998
- (0, import_utils22.overwrite)(prop, { text: newExec }, options);
3998
+ (0, import_utils25.overwrite)(prop, { text: newExec }, options);
3999
3999
  } else if (newExec !== prop) {
4000
- if ((0, import_utils22.checkIfKeyIsComponent)(param)) {
4001
- const { extend, ...newElem } = (0, import_utils22.extendizeByKey)(newExec, element, param);
4002
- (0, import_utils22.overwrite)(prop, newElem, options);
4000
+ if ((0, import_utils25.checkIfKeyIsComponent)(param)) {
4001
+ const { extend, ...newElem } = (0, import_utils25.extendizeByKey)(newExec, element, param);
4002
+ (0, import_utils25.overwrite)(prop, newElem, options);
4003
4003
  } else {
4004
4004
  ref.__cached[param] = changes[param] = prop;
4005
4005
  element[param] = newExec;
@@ -4011,16 +4011,16 @@ var require_iterate = __commonJS({
4011
4011
  var throughInitialDefine = (element) => {
4012
4012
  const { define: define2, context, __ref: ref } = element;
4013
4013
  let defineObj = {};
4014
- const hasGlobalDefine = context && (0, import_utils20.isObject)(context.define);
4015
- if ((0, import_utils20.isObject)(define2))
4014
+ const hasGlobalDefine = context && (0, import_utils24.isObject)(context.define);
4015
+ if ((0, import_utils24.isObject)(define2))
4016
4016
  defineObj = { ...define2 };
4017
4017
  if (hasGlobalDefine)
4018
4018
  defineObj = { ...defineObj, ...context.define };
4019
4019
  for (const param in defineObj) {
4020
4020
  let elementProp = element[param];
4021
- if ((0, import_utils20.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
4021
+ if ((0, import_utils24.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils25.isVariant)(param)) {
4022
4022
  ref.__exec[param] = elementProp;
4023
- const execParam2 = elementProp = (0, import_utils20.exec)(elementProp, element);
4023
+ const execParam2 = elementProp = (0, import_utils24.exec)(elementProp, element);
4024
4024
  if (execParam2) {
4025
4025
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
4026
4026
  ref.__defineCache[param] = elementProp;
@@ -4036,15 +4036,15 @@ var require_iterate = __commonJS({
4036
4036
  const { context, define: define2, __ref: ref } = element;
4037
4037
  const changes = {};
4038
4038
  let obj = {};
4039
- if ((0, import_utils20.isObject)(define2))
4039
+ if ((0, import_utils24.isObject)(define2))
4040
4040
  obj = { ...define2 };
4041
- if ((0, import_utils20.isObject)(context && context.define))
4041
+ if ((0, import_utils24.isObject)(context && context.define))
4042
4042
  obj = { ...obj, ...context.define };
4043
4043
  for (const param in obj) {
4044
4044
  const execParam = ref.__exec[param];
4045
4045
  if (execParam)
4046
4046
  ref.__defineCache[param] = execParam(element, element.state, element.context);
4047
- const cached = (0, import_utils20.exec)(ref.__defineCache[param], element);
4047
+ const cached = (0, import_utils24.exec)(ref.__defineCache[param], element);
4048
4048
  const newExecParam = obj[param](cached, element, element.state, element.context);
4049
4049
  if (newExecParam)
4050
4050
  element[param] = newExecParam;
@@ -4080,7 +4080,7 @@ var require_applyParam = __commonJS({
4080
4080
  applyParam: () => applyParam
4081
4081
  });
4082
4082
  module2.exports = __toCommonJS2(applyParam_exports);
4083
- var import_utils20 = require_cjs();
4083
+ var import_utils24 = require_cjs();
4084
4084
  var import_mixins = require_mixins();
4085
4085
  var applyParam = (param, element, options) => {
4086
4086
  const { node: node2, context, __ref: ref } = element;
@@ -4093,7 +4093,7 @@ var require_applyParam = __commonJS({
4093
4093
  if (!ref.__if)
4094
4094
  return;
4095
4095
  if (isGlobalTransformer && !hasContextDefine) {
4096
- if ((0, import_utils20.isFunction)(isGlobalTransformer)) {
4096
+ if ((0, import_utils24.isFunction)(isGlobalTransformer)) {
4097
4097
  isGlobalTransformer(prop, element, node2, options);
4098
4098
  return;
4099
4099
  }
@@ -4140,7 +4140,7 @@ var require_node2 = __commonJS({
4140
4140
  default: () => node_default
4141
4141
  });
4142
4142
  module2.exports = __toCommonJS2(node_exports);
4143
- var import_utils20 = require_cjs();
4143
+ var import_utils24 = require_cjs();
4144
4144
  var import_event = require_cjs3();
4145
4145
  var import_render = require_cjs4();
4146
4146
  var import_methods = require_methods2();
@@ -4148,7 +4148,7 @@ var require_node2 = __commonJS({
4148
4148
  var import_iterate = require_iterate();
4149
4149
  var import_mixins = require_mixins();
4150
4150
  var import_applyParam = require_applyParam();
4151
- var import_utils22 = require_utils();
4151
+ var import_utils25 = require_utils();
4152
4152
  var ENV2 = "development";
4153
4153
  var createNode = (element, options) => {
4154
4154
  let { node: node2, tag, __ref: ref } = element;
@@ -4165,23 +4165,23 @@ var require_node2 = __commonJS({
4165
4165
  }
4166
4166
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
4167
4167
  node2.ref = element;
4168
- if ((0, import_utils20.isFunction)(node2.setAttribute))
4168
+ if ((0, import_utils24.isFunction)(node2.setAttribute))
4169
4169
  node2.setAttribute("key", element.key);
4170
4170
  }
4171
4171
  if (element.tag !== "string" || element.tag !== "fragment") {
4172
4172
  (0, import_iterate.throughInitialDefine)(element);
4173
4173
  (0, import_iterate.throughInitialExec)(element);
4174
- if (isNewNode && (0, import_utils20.isObject)(element.on))
4174
+ if (isNewNode && (0, import_utils24.isObject)(element.on))
4175
4175
  (0, import_event.applyEventsOnNode)(element);
4176
4176
  for (const param in element) {
4177
4177
  const prop = element[param];
4178
- if ((0, import_utils20.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils22.isVariant)(param) || (0, import_utils20.isObject)(import_mixins.registry[param]))
4178
+ if ((0, import_utils24.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils25.isVariant)(param) || (0, import_utils24.isObject)(import_mixins.registry[param]))
4179
4179
  continue;
4180
4180
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4181
4181
  if (isElement) {
4182
4182
  const { hasDefine, hasContextDefine } = isElement;
4183
4183
  if (element[param] && !hasDefine && !hasContextDefine) {
4184
- (0, import_create.default)((0, import_utils20.exec)(prop, element), element, param, options);
4184
+ (0, import_create.default)((0, import_utils24.exec)(prop, element), element, param, options);
4185
4185
  }
4186
4186
  }
4187
4187
  }
@@ -4218,7 +4218,7 @@ var require_methods3 = __commonJS({
4218
4218
  DEFAULT_METHODS: () => DEFAULT_METHODS
4219
4219
  });
4220
4220
  module2.exports = __toCommonJS2(methods_exports);
4221
- var import_utils20 = require_cjs();
4221
+ var import_utils24 = require_cjs();
4222
4222
  var DEFAULT_METHODS = {
4223
4223
  key: {},
4224
4224
  tag: {},
@@ -4239,7 +4239,7 @@ var require_methods3 = __commonJS({
4239
4239
  text: (element, state) => {
4240
4240
  element.ref.text = {
4241
4241
  tag: "text",
4242
- text: (0, import_utils20.exec)(element.text, element, state)
4242
+ text: (0, import_utils24.exec)(element.text, element, state)
4243
4243
  };
4244
4244
  },
4245
4245
  innerHTML: {},
@@ -4476,19 +4476,19 @@ var require_update2 = __commonJS({
4476
4476
  default: () => update_default
4477
4477
  });
4478
4478
  module2.exports = __toCommonJS2(update_exports);
4479
- var import_utils20 = require_cjs();
4479
+ var import_utils24 = require_cjs();
4480
4480
  var import_event = require_cjs3();
4481
4481
  var import_methods = require_methods2();
4482
4482
  var import_props = require_props();
4483
- var import_state2 = require_cjs5();
4484
- var import_utils22 = require_utils();
4483
+ var import_state3 = require_cjs5();
4484
+ var import_utils25 = require_utils();
4485
4485
  var import_create = __toESM2(require_create4(), 1);
4486
4486
  var import_iterate = require_iterate();
4487
4487
  var import_mixins = require_mixins();
4488
4488
  var import_applyParam = require_applyParam();
4489
4489
  var import_options3 = __toESM2(require_options(), 1);
4490
4490
  var snapshot = {
4491
- snapshotId: import_utils20.createSnapshotId
4491
+ snapshotId: import_utils24.createSnapshotId
4492
4492
  };
4493
4493
  var UPDATE_DEFAULT_OPTIONS = {
4494
4494
  stackChanges: false,
@@ -4496,7 +4496,7 @@ var require_update2 = __commonJS({
4496
4496
  preventRecursive: false,
4497
4497
  currentSnapshot: false,
4498
4498
  calleeElement: false,
4499
- excludes: import_utils22.METHODS_EXL
4499
+ excludes: import_utils25.METHODS_EXL
4500
4500
  };
4501
4501
  var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
4502
4502
  const element = this;
@@ -4505,14 +4505,14 @@ var require_update2 = __commonJS({
4505
4505
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
4506
4506
  return;
4507
4507
  if (!excludes)
4508
- (0, import_utils20.merge)(options, UPDATE_DEFAULT_OPTIONS);
4508
+ (0, import_utils24.merge)(options, UPDATE_DEFAULT_OPTIONS);
4509
4509
  let ref = element.__ref;
4510
4510
  if (!ref)
4511
4511
  ref = element.__ref = {};
4512
4512
  const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
4513
4513
  if (snapshotHasUpdated)
4514
4514
  return;
4515
- if ((0, import_utils20.isString)(params) || (0, import_utils20.isNumber)(params)) {
4515
+ if ((0, import_utils24.isString)(params) || (0, import_utils24.isNumber)(params)) {
4516
4516
  params = { text: params };
4517
4517
  }
4518
4518
  const ifFails = checkIfOnUpdate(element, parent, options);
@@ -4523,7 +4523,7 @@ var require_update2 = __commonJS({
4523
4523
  return;
4524
4524
  if (ref.__if && !options.preventPropsUpdate) {
4525
4525
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
4526
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils20.isFunction)(v));
4526
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils24.isFunction)(v));
4527
4527
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
4528
4528
  if (props4)
4529
4529
  (0, import_props.updateProps)(props4, element, parent);
@@ -4536,11 +4536,11 @@ var require_update2 = __commonJS({
4536
4536
  if (initUpdateReturns === false)
4537
4537
  return element;
4538
4538
  }
4539
- const overwriteChanges = (0, import_utils20.overwriteDeep)(element, params, import_utils22.METHODS_EXL);
4539
+ const overwriteChanges = (0, import_utils24.overwriteDeep)(element, params, import_utils25.METHODS_EXL);
4540
4540
  const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
4541
4541
  const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
4542
4542
  if (options.stackChanges && element.__stackChanges) {
4543
- const stackChanges = (0, import_utils20.merge)(definedChanges, (0, import_utils20.merge)(execChanges, overwriteChanges));
4543
+ const stackChanges = (0, import_utils24.merge)(definedChanges, (0, import_utils24.merge)(execChanges, overwriteChanges));
4544
4544
  element.__stackChanges.push(stackChanges);
4545
4545
  }
4546
4546
  if (!ref.__if)
@@ -4551,16 +4551,16 @@ var require_update2 = __commonJS({
4551
4551
  for (const param in element) {
4552
4552
  const prop = element[param];
4553
4553
  const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
4554
- const isInPreventUpdate = (0, import_utils20.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4555
- const isInPreventDefineUpdate = (0, import_utils20.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4556
- if ((0, import_utils20.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils20.isObject)(import_mixins.registry[param]) || (0, import_utils22.isVariant)(param))
4554
+ const isInPreventUpdate = (0, import_utils24.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4555
+ const isInPreventDefineUpdate = (0, import_utils24.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4556
+ if ((0, import_utils24.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils24.isObject)(import_mixins.registry[param]) || (0, import_utils25.isVariant)(param))
4557
4557
  continue;
4558
4558
  if (options.preventStateUpdate === "once")
4559
4559
  options.preventStateUpdate = false;
4560
4560
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4561
4561
  if (isElement) {
4562
4562
  const { hasDefine, hasContextDefine } = isElement;
4563
- const canUpdate = (0, import_utils20.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4563
+ const canUpdate = (0, import_utils24.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4564
4564
  if (!canUpdate)
4565
4565
  continue;
4566
4566
  const childUpdateCall = () => update.call(prop, params[prop], {
@@ -4569,7 +4569,7 @@ var require_update2 = __commonJS({
4569
4569
  calleeElement
4570
4570
  });
4571
4571
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
4572
- import_utils20.window.requestAnimationFrame(() => childUpdateCall());
4572
+ import_utils24.window.requestAnimationFrame(() => childUpdateCall());
4573
4573
  } else
4574
4574
  childUpdateCall();
4575
4575
  }
@@ -4593,7 +4593,7 @@ var require_update2 = __commonJS({
4593
4593
  return [snapshotOnCallee, calleeElement];
4594
4594
  };
4595
4595
  var checkIfOnUpdate = (element, parent, options) => {
4596
- if (!(0, import_utils20.isFunction)(element.if) || !element.state || !parent)
4596
+ if (!(0, import_utils24.isFunction)(element.if) || !element.state || !parent)
4597
4597
  return;
4598
4598
  const ref = element.__ref;
4599
4599
  const ifPassed = element.if(element, element.state, element.context, options);
@@ -4610,7 +4610,7 @@ var require_update2 = __commonJS({
4610
4610
  element.state = ref.__state;
4611
4611
  }
4612
4612
  const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create);
4613
- if (options.preventUpdate !== true && element.on && (0, import_utils20.isFunction)(element.on.update)) {
4613
+ if (options.preventUpdate !== true && element.on && (0, import_utils24.isFunction)(element.on.update)) {
4614
4614
  (0, import_event.applyEvent)(element.on.update, created, created.state);
4615
4615
  }
4616
4616
  return created;
@@ -4631,9 +4631,9 @@ var require_update2 = __commonJS({
4631
4631
  return;
4632
4632
  }
4633
4633
  const { isHoisted, execStateFunction, stateFunctionOverwrite } = options;
4634
- const shouldForceStateUpdate = (0, import_utils20.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4634
+ const shouldForceStateUpdate = (0, import_utils24.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4635
4635
  if (shouldForceStateUpdate) {
4636
- const execState = (0, import_utils20.exec)(stateKey, element);
4636
+ const execState = (0, import_utils24.exec)(stateKey, element);
4637
4637
  state.set(execState, {
4638
4638
  ...options,
4639
4639
  preventUpdate: true
@@ -4656,7 +4656,7 @@ var require_update2 = __commonJS({
4656
4656
  };
4657
4657
  var createStateUpdate = (element, parent, options) => {
4658
4658
  const __stateChildren = element.state.__children;
4659
- const newState = (0, import_state2.createState)(element, parent);
4659
+ const newState = (0, import_state3.createState)(element, parent);
4660
4660
  element.state = newState;
4661
4661
  for (const child in __stateChildren) {
4662
4662
  if (newState[child])
@@ -4705,7 +4705,7 @@ var require_set2 = __commonJS({
4705
4705
  addMethods: () => addMethods
4706
4706
  });
4707
4707
  module2.exports = __toCommonJS2(set_exports);
4708
- var import_utils20 = require_cjs();
4708
+ var import_utils24 = require_cjs();
4709
4709
  var import_set = __toESM2(require_set(), 1);
4710
4710
  var import_update = __toESM2(require_update2(), 1);
4711
4711
  var import__ = require_methods2();
@@ -4726,7 +4726,7 @@ var require_set2 = __commonJS({
4726
4726
  nextElement: import__.nextElement.bind(element),
4727
4727
  previousElement: import__.previousElement.bind(element)
4728
4728
  };
4729
- if ((0, import_utils20.isDevelopment)())
4729
+ if ((0, import_utils24.isDevelopment)())
4730
4730
  proto.log = import__.log.bind(element);
4731
4731
  Object.setPrototypeOf(element, proto);
4732
4732
  };
@@ -4774,7 +4774,7 @@ var require_create4 = __commonJS({
4774
4774
  var import_registry = require_cjs6();
4775
4775
  var import_event = require_cjs3();
4776
4776
  var import_render = require_cjs4();
4777
- var import_state2 = require_cjs5();
4777
+ var import_state3 = require_cjs5();
4778
4778
  var import_methods = require_methods2();
4779
4779
  var import_props = require_props();
4780
4780
  var import_extend = require_extend();
@@ -4782,7 +4782,7 @@ var require_create4 = __commonJS({
4782
4782
  var import_set = require_set2();
4783
4783
  var import_classList = require_classList();
4784
4784
  var import_iterate = require_iterate();
4785
- var import_utils20 = require_cjs();
4785
+ var import_utils24 = require_cjs();
4786
4786
  var import_options3 = __toESM2(require_options(), 1);
4787
4787
  var import_component = require_component();
4788
4788
  var ENV2 = "development";
@@ -4795,7 +4795,7 @@ var require_create4 = __commonJS({
4795
4795
  parent = redefineParent(element, parent, key);
4796
4796
  key = createKey(element, parent, key);
4797
4797
  const ref = addRef(element, parent, key);
4798
- ref.__initialProps = (0, import_utils20.deepClone)(element.props, []);
4798
+ ref.__initialProps = (0, import_utils24.deepClone)(element.props, []);
4799
4799
  applyContext(element, parent, options);
4800
4800
  (0, import_component.applyComponentFromContext)(element, parent, options);
4801
4801
  (0, import_extend.applyExtend)(element, parent, options);
@@ -4806,7 +4806,7 @@ var require_create4 = __commonJS({
4806
4806
  replaceOptions(element, parent, options);
4807
4807
  addCaching(element, parent);
4808
4808
  (0, import_set.addMethods)(element, parent);
4809
- (0, import_state2.createState)(element, parent);
4809
+ (0, import_state3.createState)(element, parent);
4810
4810
  createIfConditionFlag(element, parent);
4811
4811
  if (element.node && ref.__if) {
4812
4812
  return (0, import_render.assignNode)(element, parent, key);
@@ -4830,7 +4830,7 @@ var require_create4 = __commonJS({
4830
4830
  }
4831
4831
  return {};
4832
4832
  }
4833
- if ((0, import_utils20.isString)(key) && key.slice(0, 2 === "__")) {
4833
+ if ((0, import_utils24.isString)(key) && key.slice(0, 2 === "__")) {
4834
4834
  if (ENV2 === "test" || ENV2 === "development") {
4835
4835
  console.warn(key, "seems like to be in __ref");
4836
4836
  }
@@ -4857,7 +4857,7 @@ var require_create4 = __commonJS({
4857
4857
  var redefineParent = (element, parent, key, options) => {
4858
4858
  if (!parent)
4859
4859
  return import_tree.ROOT;
4860
- if ((0, import_utils20.isNode)(parent)) {
4860
+ if ((0, import_utils24.isNode)(parent)) {
4861
4861
  const parentNodeWrapper = { key: ":root", node: parent };
4862
4862
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
4863
4863
  return parentNodeWrapper;
@@ -4871,7 +4871,7 @@ var require_create4 = __commonJS({
4871
4871
  }
4872
4872
  };
4873
4873
  var createKey = (element, parent, key) => {
4874
- return (key || element.key || (0, import_utils20.generateKey)()).toString();
4874
+ return (key || element.key || (0, import_utils24.generateKey)()).toString();
4875
4875
  };
4876
4876
  var addRef = (element, parent) => {
4877
4877
  if (element.__ref)
@@ -4901,7 +4901,7 @@ var require_create4 = __commonJS({
4901
4901
  (0, import_event.triggerEventOn)("render", element, options);
4902
4902
  };
4903
4903
  var checkIfPrimitive = (element) => {
4904
- return (0, import_utils20.is)(element)("string", "number");
4904
+ return (0, import_utils24.is)(element)("string", "number");
4905
4905
  };
4906
4906
  var applyValueAsText = (element, parent, key) => {
4907
4907
  const extendTag = element.extend && element.extend.tag;
@@ -4920,7 +4920,7 @@ var require_create4 = __commonJS({
4920
4920
  };
4921
4921
  var createIfConditionFlag = (element, parent) => {
4922
4922
  const { __ref: ref } = element;
4923
- if ((0, import_utils20.isFunction)(element.if)) {
4923
+ if ((0, import_utils24.isFunction)(element.if)) {
4924
4924
  const ifPassed = element.if(element, element.state);
4925
4925
  if (!ifPassed) {
4926
4926
  const ifFragment = (0, import_render.cacheNode)({ tag: "fragment" });
@@ -4987,9 +4987,9 @@ var require_create4 = __commonJS({
4987
4987
  ref2.__children = [];
4988
4988
  }
4989
4989
  (0, import_set.addMethods)(element, parent);
4990
- (0, import_state2.createState)(element, parent);
4990
+ (0, import_state3.createState)(element, parent);
4991
4991
  const ref = __ref;
4992
- if ((0, import_utils20.isFunction)(element.if)) {
4992
+ if ((0, import_utils24.isFunction)(element.if)) {
4993
4993
  const ifPassed = element.if(element, element.state);
4994
4994
  if (!ifPassed) {
4995
4995
  delete ref.__if;
@@ -5008,7 +5008,7 @@ var require_create4 = __commonJS({
5008
5008
  (0, import_iterate.throughInitialDefine)(element);
5009
5009
  (0, import_iterate.throughInitialExec)(element);
5010
5010
  for (const k in element) {
5011
- if ((0, import_utils20.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils20.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
5011
+ if ((0, import_utils24.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils24.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
5012
5012
  continue;
5013
5013
  const hasDefine = element.define && element.define[k];
5014
5014
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -5016,7 +5016,7 @@ var require_create4 = __commonJS({
5016
5016
  if (import_mixins.registry[k] && !optionsHasDefine) {
5017
5017
  continue;
5018
5018
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
5019
- create2((0, import_utils20.exec)(element[k], element), element, k, options);
5019
+ create2((0, import_utils24.exec)(element[k], element), element, k, options);
5020
5020
  }
5021
5021
  }
5022
5022
  }
@@ -5414,16 +5414,16 @@ var require_cjs9 = __commonJS({
5414
5414
  __export22(types_exports, {
5415
5415
  TYPES: () => TYPES,
5416
5416
  is: () => is,
5417
- isArray: () => isArray6,
5417
+ isArray: () => isArray62,
5418
5418
  isBoolean: () => isBoolean,
5419
5419
  isDefined: () => isDefined2,
5420
5420
  isFunction: () => isFunction22,
5421
- isNot: () => isNot2,
5421
+ isNot: () => isNot3,
5422
5422
  isNull: () => isNull,
5423
5423
  isNumber: () => isNumber2,
5424
5424
  isObject: () => isObject72,
5425
- isObjectLike: () => isObjectLike3,
5426
- isString: () => isString9,
5425
+ isObjectLike: () => isObjectLike32,
5426
+ isString: () => isString92,
5427
5427
  isUndefined: () => isUndefined3
5428
5428
  });
5429
5429
  module22.exports = __toCommonJS22(types_exports);
@@ -5433,32 +5433,32 @@ var require_cjs9 = __commonJS({
5433
5433
  return false;
5434
5434
  return typeof arg === "object" && arg.constructor === Object;
5435
5435
  };
5436
- var isString9 = (arg) => typeof arg === "string";
5436
+ var isString92 = (arg) => typeof arg === "string";
5437
5437
  var isNumber2 = (arg) => typeof arg === "number";
5438
5438
  var isFunction22 = (arg) => typeof arg === "function";
5439
5439
  var isBoolean = (arg) => arg === true || arg === false;
5440
5440
  var isNull = (arg) => arg === null;
5441
- var isArray6 = (arg) => Array.isArray(arg);
5442
- var isObjectLike3 = (arg) => {
5441
+ var isArray62 = (arg) => Array.isArray(arg);
5442
+ var isObjectLike32 = (arg) => {
5443
5443
  if (arg === null)
5444
5444
  return false;
5445
5445
  return typeof arg === "object";
5446
5446
  };
5447
5447
  var isDefined2 = (arg) => {
5448
- return isObject72(arg) || isObjectLike3(arg) || isString9(arg) || isNumber2(arg) || isFunction22(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
5448
+ return isObject72(arg) || isObjectLike32(arg) || isString92(arg) || isNumber2(arg) || isFunction22(arg) || isArray62(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
5449
5449
  };
5450
5450
  var isUndefined3 = (arg) => {
5451
5451
  return arg === void 0;
5452
5452
  };
5453
5453
  var TYPES = {
5454
5454
  boolean: isBoolean,
5455
- array: isArray6,
5455
+ array: isArray62,
5456
5456
  object: isObject72,
5457
- string: isString9,
5457
+ string: isString92,
5458
5458
  number: isNumber2,
5459
5459
  null: isNull,
5460
5460
  function: isFunction22,
5461
- objectLike: isObjectLike3,
5461
+ objectLike: isObjectLike32,
5462
5462
  node: import_node.isNode,
5463
5463
  htmlElement: import_node.isHtmlElement,
5464
5464
  defined: isDefined2
@@ -5468,7 +5468,7 @@ var require_cjs9 = __commonJS({
5468
5468
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
5469
5469
  };
5470
5470
  };
5471
- var isNot2 = (arg) => {
5471
+ var isNot3 = (arg) => {
5472
5472
  return (...args) => {
5473
5473
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
5474
5474
  };
@@ -5659,10 +5659,10 @@ var require_cjs9 = __commonJS({
5659
5659
  deepMerge: () => deepMerge32,
5660
5660
  deepStringify: () => deepStringify,
5661
5661
  detachFunctionsFromObject: () => detachFunctionsFromObject,
5662
- diff: () => diff2,
5662
+ diff: () => diff3,
5663
5663
  diffArrays: () => diffArrays,
5664
5664
  diffObjects: () => diffObjects,
5665
- exec: () => exec4,
5665
+ exec: () => exec5,
5666
5666
  flattenRecursive: () => flattenRecursive,
5667
5667
  isEqualDeep: () => isEqualDeep2,
5668
5668
  map: () => map2,
@@ -5672,7 +5672,7 @@ var require_cjs9 = __commonJS({
5672
5672
  objectToString: () => objectToString,
5673
5673
  overwrite: () => overwrite,
5674
5674
  overwriteDeep: () => overwriteDeep2,
5675
- overwriteShallow: () => overwriteShallow2,
5675
+ overwriteShallow: () => overwriteShallow3,
5676
5676
  removeFromObject: () => removeFromObject,
5677
5677
  stringToObject: () => stringToObject
5678
5678
  });
@@ -5681,7 +5681,7 @@ var require_cjs9 = __commonJS({
5681
5681
  var import_types = require_types2();
5682
5682
  var import_array = require_array2();
5683
5683
  var import_string = require_string2();
5684
- var exec4 = (param, element, state, context) => {
5684
+ var exec5 = (param, element, state, context) => {
5685
5685
  if ((0, import_types.isFunction)(param)) {
5686
5686
  return param(
5687
5687
  element,
@@ -5693,7 +5693,7 @@ var require_cjs9 = __commonJS({
5693
5693
  };
5694
5694
  var map2 = (obj, extention, element) => {
5695
5695
  for (const e in extention) {
5696
- obj[e] = exec4(extention[e], element);
5696
+ obj[e] = exec5(extention[e], element);
5697
5697
  }
5698
5698
  };
5699
5699
  var merge5 = (element, obj, excludeFrom = []) => {
@@ -5928,7 +5928,7 @@ var require_cjs9 = __commonJS({
5928
5928
  const objToDiffProp = objToDiff[e];
5929
5929
  if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
5930
5930
  cache2[e] = {};
5931
- diff2(originalProp, objToDiffProp, cache2[e]);
5931
+ diff3(originalProp, objToDiffProp, cache2[e]);
5932
5932
  } else if (objToDiffProp !== void 0) {
5933
5933
  cache2[e] = objToDiffProp;
5934
5934
  }
@@ -5941,7 +5941,7 @@ var require_cjs9 = __commonJS({
5941
5941
  } else {
5942
5942
  const diffArr = [];
5943
5943
  for (let i2 = 0; i2 < original.length; i2++) {
5944
- const diffObj = diff2(original[i2], objToDiff[i2]);
5944
+ const diffObj = diff3(original[i2], objToDiff[i2]);
5945
5945
  if (Object.keys(diffObj).length > 0) {
5946
5946
  diffArr.push(diffObj);
5947
5947
  }
@@ -5952,7 +5952,7 @@ var require_cjs9 = __commonJS({
5952
5952
  }
5953
5953
  return cache2;
5954
5954
  };
5955
- var diff2 = (original, objToDiff, cache2 = {}) => {
5955
+ var diff3 = (original, objToDiff, cache2 = {}) => {
5956
5956
  if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
5957
5957
  cache2 = [];
5958
5958
  diffArrays(original, objToDiff, cache2);
@@ -5976,7 +5976,7 @@ var require_cjs9 = __commonJS({
5976
5976
  }
5977
5977
  return changes;
5978
5978
  };
5979
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
5979
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
5980
5980
  for (const e in params) {
5981
5981
  if (excludeFrom.includes(e) || e.startsWith("__"))
5982
5982
  continue;
@@ -6393,7 +6393,7 @@ var require_cjs9 = __commonJS({
6393
6393
  BREAKPOINTS: () => BREAKPOINTS,
6394
6394
  CASES: () => CASES,
6395
6395
  COLOR: () => COLOR2,
6396
- CONFIG: () => CONFIG3,
6396
+ CONFIG: () => CONFIG4,
6397
6397
  CSS_VARS: () => CSS_VARS,
6398
6398
  DEVICES: () => DEVICES,
6399
6399
  DOCUMENT: () => DOCUMENT,
@@ -6434,27 +6434,27 @@ var require_cjs9 = __commonJS({
6434
6434
  generateSequence: () => generateSequence,
6435
6435
  generateSprite: () => generateSprite,
6436
6436
  generateSubSequence: () => generateSubSequence,
6437
- getActiveConfig: () => getActiveConfig3,
6438
- getColor: () => getColor2,
6437
+ getActiveConfig: () => getActiveConfig4,
6438
+ getColor: () => getColor3,
6439
6439
  getColorShade: () => getColorShade,
6440
6440
  getDefaultOrFirstKey: () => getDefaultOrFirstKey,
6441
6441
  getFontFace: () => getFontFace,
6442
6442
  getFontFaceEach: () => getFontFaceEach,
6443
6443
  getFontFaceEachString: () => getFontFaceEachString,
6444
6444
  getFontFaceString: () => getFontFaceString2,
6445
- getFontFamily: () => getFontFamily2,
6445
+ getFontFamily: () => getFontFamily3,
6446
6446
  getFontFormat: () => getFontFormat,
6447
- getFontSizeByKey: () => getFontSizeByKey2,
6448
- getMediaColor: () => getMediaColor3,
6449
- getMediaTheme: () => getMediaTheme2,
6447
+ getFontSizeByKey: () => getFontSizeByKey3,
6448
+ getMediaColor: () => getMediaColor5,
6449
+ getMediaTheme: () => getMediaTheme3,
6450
6450
  getRgbTone: () => getRgbTone,
6451
6451
  getSequenceValue: () => getSequenceValue,
6452
6452
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
6453
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
6454
- getSpacingByKey: () => getSpacingByKey3,
6453
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
6454
+ getSpacingByKey: () => getSpacingByKey5,
6455
6455
  getTheme: () => getTheme,
6456
- getTimingByKey: () => getTimingByKey2,
6457
- getTimingFunction: () => getTimingFunction3,
6456
+ getTimingByKey: () => getTimingByKey3,
6457
+ getTimingFunction: () => getTimingFunction5,
6458
6458
  hexToRgb: () => hexToRgb,
6459
6459
  hexToRgbArray: () => hexToRgbArray,
6460
6460
  hexToRgba: () => hexToRgba,
@@ -6487,14 +6487,14 @@ var require_cjs9 = __commonJS({
6487
6487
  setTheme: () => setTheme,
6488
6488
  setValue: () => setValue,
6489
6489
  setVariables: () => setVariables,
6490
- splitTransition: () => splitTransition2,
6491
- transformBackgroundImage: () => transformBackgroundImage2,
6492
- transformBorder: () => transformBorder2,
6493
- transformDuration: () => transformDuration2,
6494
- transformShadow: () => transformShadow2,
6495
- transformTextStroke: () => transformTextStroke2,
6490
+ splitTransition: () => splitTransition3,
6491
+ transformBackgroundImage: () => transformBackgroundImage3,
6492
+ transformBorder: () => transformBorder3,
6493
+ transformDuration: () => transformDuration3,
6494
+ transformShadow: () => transformShadow3,
6495
+ transformTextStroke: () => transformTextStroke3,
6496
6496
  transformTransition: () => transformTransition,
6497
- transfromGap: () => transfromGap2
6497
+ transfromGap: () => transfromGap3
6498
6498
  });
6499
6499
  module2.exports = __toCommonJS2(src_exports2);
6500
6500
  var utils_exports = {};
@@ -6537,7 +6537,7 @@ var require_cjs9 = __commonJS({
6537
6537
  setVariables: () => setVariables
6538
6538
  });
6539
6539
  var import_globals2 = __toESM2(require_cjs13(), 1);
6540
- var import_utils20 = __toESM2(require_cjs22(), 1);
6540
+ var import_utils24 = __toESM2(require_cjs22(), 1);
6541
6541
  var ENV2 = "development";
6542
6542
  var colorStringToRgbaArray = (color) => {
6543
6543
  if (color === "")
@@ -6665,9 +6665,9 @@ var require_cjs9 = __commonJS({
6665
6665
  return `rgba(${arr})`;
6666
6666
  };
6667
6667
  var getRgbTone = (rgb, tone) => {
6668
- if ((0, import_utils20.isString)(rgb))
6668
+ if ((0, import_utils24.isString)(rgb))
6669
6669
  rgb = rgb.split(", ").map((v) => parseFloat(v));
6670
- if ((0, import_utils20.isNumber)(tone))
6670
+ if ((0, import_utils24.isNumber)(tone))
6671
6671
  tone += "";
6672
6672
  const toHex = rgbArrayToHex(rgb);
6673
6673
  const abs2 = tone.slice(0, 1);
@@ -6732,7 +6732,7 @@ var require_cjs9 = __commonJS({
6732
6732
  };
6733
6733
  var import_utils52 = __toESM2(require_cjs22(), 1);
6734
6734
  var import_utils32 = __toESM2(require_cjs22());
6735
- var import_utils22 = __toESM2(require_cjs22());
6735
+ var import_utils25 = __toESM2(require_cjs22());
6736
6736
  var toCamelCase2 = (str) => {
6737
6737
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
6738
6738
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
@@ -6913,17 +6913,17 @@ var require_cjs9 = __commonJS({
6913
6913
  var TEMPLATES = {};
6914
6914
  var RESET = {};
6915
6915
  var CSS_VARS = {};
6916
- var CONFIG3 = {
6916
+ var CONFIG4 = {
6917
6917
  verbose: false,
6918
6918
  useVariable: true,
6919
6919
  useReset: true,
6920
6920
  CSS_VARS,
6921
6921
  ...defaultConfig_exports
6922
6922
  };
6923
- var cachedConfig = (0, import_utils42.deepClone)(CONFIG3);
6923
+ var cachedConfig = (0, import_utils42.deepClone)(CONFIG4);
6924
6924
  var FACTORY = {
6925
6925
  active: "0",
6926
- 0: CONFIG3
6926
+ 0: CONFIG4
6927
6927
  };
6928
6928
  var activateConfig = (def) => {
6929
6929
  if ((0, import_utils42.isDefined)(def)) {
@@ -6931,7 +6931,7 @@ var require_cjs9 = __commonJS({
6931
6931
  }
6932
6932
  return FACTORY[def || FACTORY.active];
6933
6933
  };
6934
- var getActiveConfig3 = (def) => {
6934
+ var getActiveConfig4 = (def) => {
6935
6935
  return FACTORY[def || FACTORY.active];
6936
6936
  };
6937
6937
  var setActiveConfig = (newConfig) => {
@@ -6985,8 +6985,8 @@ var require_cjs9 = __commonJS({
6985
6985
  var generateSubSequence = (props4, sequenceProps) => {
6986
6986
  const { key, base, value: value2, ratio, variable, index } = props4;
6987
6987
  const next2 = value2 * ratio;
6988
- const diff2 = next2 - value2;
6989
- const smallscale = diff2 / 1.618;
6988
+ const diff3 = next2 - value2;
6989
+ const smallscale = diff3 / 1.618;
6990
6990
  const valueRounded = ~~value2;
6991
6991
  const nextRounded = ~~next2;
6992
6992
  const diffRounded = nextRounded - valueRounded;
@@ -7040,7 +7040,7 @@ var require_cjs9 = __commonJS({
7040
7040
  return sequenceProps;
7041
7041
  };
7042
7042
  var getSequenceValue = (value2 = "A", sequenceProps) => {
7043
- const CONFIG22 = getActiveConfig3();
7043
+ const CONFIG22 = getActiveConfig4();
7044
7044
  const { UNIT: UNIT2 } = CONFIG22;
7045
7045
  const {
7046
7046
  sequence,
@@ -7110,7 +7110,7 @@ var require_cjs9 = __commonJS({
7110
7110
  };
7111
7111
  var import_utils72 = __toESM2(require_cjs22(), 1);
7112
7112
  var setVariables = (result, key) => {
7113
- const CONFIG22 = getActiveConfig3();
7113
+ const CONFIG22 = getActiveConfig4();
7114
7114
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7115
7115
  if ((0, import_utils72.isObjectLike)(result.value)) {
7116
7116
  } else {
@@ -7118,7 +7118,7 @@ var require_cjs9 = __commonJS({
7118
7118
  }
7119
7119
  };
7120
7120
  var applySequenceVars = (props4, mediaName, options = {}) => {
7121
- const CONFIG22 = getActiveConfig3();
7121
+ const CONFIG22 = getActiveConfig4();
7122
7122
  const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
7123
7123
  const unit = props4.unit || UNIT2.default;
7124
7124
  const { sequence, scales } = props4;
@@ -7148,7 +7148,7 @@ var require_cjs9 = __commonJS({
7148
7148
  };
7149
7149
  var import_utils82 = __toESM2(require_cjs22(), 1);
7150
7150
  var generateSprite = (icons) => {
7151
- const CONFIG22 = getActiveConfig3();
7151
+ const CONFIG22 = getActiveConfig4();
7152
7152
  let sprite = "";
7153
7153
  for (const key in icons) {
7154
7154
  if (CONFIG22.__svg_cache[key])
@@ -7213,16 +7213,16 @@ var require_cjs9 = __commonJS({
7213
7213
  applySpacingSequence: () => applySpacingSequence,
7214
7214
  applyTimingSequence: () => applyTimingSequence,
7215
7215
  applyTypographySequence: () => applyTypographySequence,
7216
- getColor: () => getColor2,
7217
- getFontFamily: () => getFontFamily2,
7218
- getFontSizeByKey: () => getFontSizeByKey2,
7219
- getMediaColor: () => getMediaColor3,
7220
- getMediaTheme: () => getMediaTheme2,
7221
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
7222
- getSpacingByKey: () => getSpacingByKey3,
7216
+ getColor: () => getColor3,
7217
+ getFontFamily: () => getFontFamily3,
7218
+ getFontSizeByKey: () => getFontSizeByKey3,
7219
+ getMediaColor: () => getMediaColor5,
7220
+ getMediaTheme: () => getMediaTheme3,
7221
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
7222
+ getSpacingByKey: () => getSpacingByKey5,
7223
7223
  getTheme: () => getTheme,
7224
- getTimingByKey: () => getTimingByKey2,
7225
- getTimingFunction: () => getTimingFunction3,
7224
+ getTimingByKey: () => getTimingByKey3,
7225
+ getTimingFunction: () => getTimingFunction5,
7226
7226
  runThroughMedia: () => runThroughMedia,
7227
7227
  setColor: () => setColor,
7228
7228
  setFont: () => setFont,
@@ -7234,8 +7234,8 @@ var require_cjs9 = __commonJS({
7234
7234
  setTheme: () => setTheme
7235
7235
  });
7236
7236
  var import_utils92 = __toESM2(require_cjs22(), 1);
7237
- var getColor2 = (value2, key, config) => {
7238
- const CONFIG22 = config || getActiveConfig3();
7237
+ var getColor3 = (value2, key, config) => {
7238
+ const CONFIG22 = config || getActiveConfig4();
7239
7239
  if (!(0, import_utils92.isString)(value2)) {
7240
7240
  if (CONFIG22.verbose)
7241
7241
  console.warn(value2, "- type for color is not valid");
@@ -7273,8 +7273,8 @@ var require_cjs9 = __commonJS({
7273
7273
  return `rgba(${rgb}, ${alpha})`;
7274
7274
  return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
7275
7275
  };
7276
- var getMediaColor3 = (value2, globalTheme, config) => {
7277
- const CONFIG22 = config || getActiveConfig3();
7276
+ var getMediaColor5 = (value2, globalTheme, config) => {
7277
+ const CONFIG22 = config || getActiveConfig4();
7278
7278
  if (!globalTheme)
7279
7279
  globalTheme = CONFIG22.globalTheme;
7280
7280
  if (!(0, import_utils92.isString)(value2)) {
@@ -7289,16 +7289,16 @@ var require_cjs9 = __commonJS({
7289
7289
  const val = COLOR22[name] || GRADIENT2[name];
7290
7290
  const isObj = (0, import_utils92.isObject)(val);
7291
7291
  if (isObj && val.value)
7292
- return getColor2(value2, `@${globalTheme}`, config);
7292
+ return getColor3(value2, `@${globalTheme}`, config);
7293
7293
  else if (isObj) {
7294
7294
  if (globalTheme)
7295
- return getColor2(value2, `@${globalTheme}`, config);
7295
+ return getColor3(value2, `@${globalTheme}`, config);
7296
7296
  else {
7297
7297
  const obj = {};
7298
7298
  for (const mediaName in val) {
7299
7299
  const query = CONFIG22.MEDIA[mediaName.slice(1)];
7300
7300
  const media = `@media screen and ${query}`;
7301
- obj[media] = getColor2(value2, mediaName, config);
7301
+ obj[media] = getColor3(value2, mediaName, config);
7302
7302
  }
7303
7303
  return obj;
7304
7304
  }
@@ -7309,9 +7309,9 @@ var require_cjs9 = __commonJS({
7309
7309
  }
7310
7310
  };
7311
7311
  var setColor = (val, key, suffix) => {
7312
- const CONFIG22 = getActiveConfig3();
7312
+ const CONFIG22 = getActiveConfig4();
7313
7313
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7314
- val = getColor2(val.slice(2));
7314
+ val = getColor3(val.slice(2));
7315
7315
  if ((0, import_utils92.isArray)(val)) {
7316
7316
  return {
7317
7317
  "@light": setColor(val[0], key, "light"),
@@ -7340,9 +7340,9 @@ var require_cjs9 = __commonJS({
7340
7340
  };
7341
7341
  };
7342
7342
  var setGradient = (val, key, suffix) => {
7343
- const CONFIG22 = getActiveConfig3();
7343
+ const CONFIG22 = getActiveConfig4();
7344
7344
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7345
- val = getColor2(val.slice(2));
7345
+ val = getColor3(val.slice(2));
7346
7346
  if ((0, import_utils92.isArray)(val)) {
7347
7347
  return {
7348
7348
  "@light": setGradient(val[0], key, "light"),
@@ -7372,7 +7372,7 @@ var require_cjs9 = __commonJS({
7372
7372
  keys.map((key) => {
7373
7373
  const conditions = ["color", "Color", "background", "border"];
7374
7374
  const isColor = conditions.some((k) => key.includes(k));
7375
- return value2[key] = isColor ? getColor2(theme[key]) : theme[key];
7375
+ return value2[key] = isColor ? getColor3(theme[key]) : theme[key];
7376
7376
  });
7377
7377
  return value2;
7378
7378
  };
@@ -7383,9 +7383,9 @@ var require_cjs9 = __commonJS({
7383
7383
  return theme.value;
7384
7384
  };
7385
7385
  var getTheme = (value2, modifier) => {
7386
- const CONFIG22 = getActiveConfig3();
7386
+ const CONFIG22 = getActiveConfig4();
7387
7387
  if (CONFIG22.useVariable)
7388
- return getMediaTheme2(value2, modifier);
7388
+ return getMediaTheme3(value2, modifier);
7389
7389
  const { THEME: THEME2 } = CONFIG22;
7390
7390
  if ((0, import_utils112.isString)(value2)) {
7391
7391
  const [theme, subtheme] = value2.split(" ");
@@ -7462,7 +7462,7 @@ var require_cjs9 = __commonJS({
7462
7462
  return theme;
7463
7463
  };
7464
7464
  var setHelpers = (theme, value2) => {
7465
- const CONFIG22 = getActiveConfig3();
7465
+ const CONFIG22 = getActiveConfig4();
7466
7466
  const { helpers } = theme;
7467
7467
  if (!helpers)
7468
7468
  return;
@@ -7478,7 +7478,7 @@ var require_cjs9 = __commonJS({
7478
7478
  return theme;
7479
7479
  };
7480
7480
  var setTheme = (val, key) => {
7481
- const CONFIG22 = getActiveConfig3();
7481
+ const CONFIG22 = getActiveConfig4();
7482
7482
  if (CONFIG22.useVariable)
7483
7483
  return setMediaTheme(val, key);
7484
7484
  const { state, media, helpers } = val;
@@ -7490,7 +7490,7 @@ var require_cjs9 = __commonJS({
7490
7490
  return { var: CSSvar, value: value2, state, media, helpers };
7491
7491
  };
7492
7492
  var setMediaTheme = (val, key, suffix, prefers) => {
7493
- const CONFIG22 = getActiveConfig3();
7493
+ const CONFIG22 = getActiveConfig4();
7494
7494
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7495
7495
  const theme = { value: val };
7496
7496
  if ((0, import_utils112.isObjectLike)(val)) {
@@ -7501,7 +7501,7 @@ var require_cjs9 = __commonJS({
7501
7501
  const hasPrefers = symb === "@" && param;
7502
7502
  theme[param] = setMediaTheme(value2, key, param, prefers || hasPrefers);
7503
7503
  } else {
7504
- const color = getColor2(value2, prefers);
7504
+ const color = getColor3(value2, prefers);
7505
7505
  const metaSuffixes = [...new Set([prefers, suffix].filter((v) => v).map((v) => v.slice(1)))];
7506
7506
  const varmetaSuffixName = metaSuffixes.length ? "-" + metaSuffixes.join("-") : "";
7507
7507
  const CSSVar = `--theme-${key}${varmetaSuffixName}-${param}`;
@@ -7524,13 +7524,13 @@ var require_cjs9 = __commonJS({
7524
7524
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
7525
7525
  const { THEME: THEME2 } = CONFIG22;
7526
7526
  const value2 = THEME2[val.slice(2)];
7527
- const getReferenced = getMediaTheme2(value2, prefers);
7527
+ const getReferenced = getMediaTheme3(value2, prefers);
7528
7528
  return getReferenced;
7529
7529
  }
7530
7530
  return theme;
7531
7531
  };
7532
7532
  var recursiveTheme = (val) => {
7533
- const CONFIG22 = getActiveConfig3();
7533
+ const CONFIG22 = getActiveConfig4();
7534
7534
  const obj = {};
7535
7535
  for (const param in val) {
7536
7536
  const symb = param.slice(0, 1);
@@ -7561,10 +7561,10 @@ var require_cjs9 = __commonJS({
7561
7561
  else
7562
7562
  return val;
7563
7563
  };
7564
- var getMediaTheme2 = (val, mod) => {
7565
- const CONFIG22 = getActiveConfig3();
7564
+ var getMediaTheme3 = (val, mod) => {
7565
+ const CONFIG22 = getActiveConfig4();
7566
7566
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--")
7567
- val = getMediaTheme2(val.slice(2));
7567
+ val = getMediaTheme3(val.slice(2));
7568
7568
  if (!val || !(0, import_utils112.isString)(val)) {
7569
7569
  if (CONFIG22.verbose)
7570
7570
  console.warn(val, "- theme is not string");
@@ -7584,13 +7584,13 @@ var require_cjs9 = __commonJS({
7584
7584
  const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
7585
7585
  return { var: CSSvar, value: val, fontFace };
7586
7586
  };
7587
- var getFontFamily2 = (key, factory) => {
7588
- const CONFIG22 = getActiveConfig3();
7587
+ var getFontFamily3 = (key, factory) => {
7588
+ const CONFIG22 = getActiveConfig4();
7589
7589
  const { FONT_FAMILY: FONT_FAMILY2 } = CONFIG22;
7590
7590
  return getDefaultOrFirstKey(factory || FONT_FAMILY2, key);
7591
7591
  };
7592
7592
  var setFontFamily = (val, key) => {
7593
- const CONFIG22 = getActiveConfig3();
7593
+ const CONFIG22 = getActiveConfig4();
7594
7594
  const { FONT_FAMILY: FONT_FAMILY2, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG22;
7595
7595
  let { value: value2, type } = val;
7596
7596
  if (val.isDefault)
@@ -7603,7 +7603,7 @@ var require_cjs9 = __commonJS({
7603
7603
  };
7604
7604
  var import_utils152 = __toESM2(require_cjs22(), 1);
7605
7605
  var runThroughMedia = (props4) => {
7606
- const CONFIG22 = getActiveConfig3();
7606
+ const CONFIG22 = getActiveConfig4();
7607
7607
  const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
7608
7608
  for (const prop in props4) {
7609
7609
  const mediaProps = props4[prop];
@@ -7633,7 +7633,7 @@ var require_cjs9 = __commonJS({
7633
7633
  }
7634
7634
  };
7635
7635
  var applyHeadings = (props4) => {
7636
- const CONFIG22 = getActiveConfig3();
7636
+ const CONFIG22 = getActiveConfig4();
7637
7637
  if (props4.h1Matches) {
7638
7638
  const unit = props4.unit;
7639
7639
  const HEADINGS = findHeadings(props4);
@@ -7652,15 +7652,15 @@ var require_cjs9 = __commonJS({
7652
7652
  }
7653
7653
  };
7654
7654
  var applyTypographySequence = () => {
7655
- const CONFIG22 = getActiveConfig3();
7655
+ const CONFIG22 = getActiveConfig4();
7656
7656
  const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
7657
7657
  generateSequence(TYPOGRAPHY2);
7658
7658
  applyHeadings(TYPOGRAPHY2);
7659
7659
  applySequenceVars(TYPOGRAPHY2);
7660
7660
  runThroughMedia(TYPOGRAPHY2);
7661
7661
  };
7662
- var getFontSizeByKey2 = (value2) => {
7663
- const CONFIG22 = getActiveConfig3();
7662
+ var getFontSizeByKey3 = (value2) => {
7663
+ const CONFIG22 = getActiveConfig4();
7664
7664
  const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
7665
7665
  return getSequenceValuePropertyPair(
7666
7666
  value2,
@@ -7694,21 +7694,21 @@ var require_cjs9 = __commonJS({
7694
7694
  }
7695
7695
  };
7696
7696
  var applySpacingSequence = () => {
7697
- const CONFIG22 = getActiveConfig3();
7697
+ const CONFIG22 = getActiveConfig4();
7698
7698
  const { SPACING: SPACING2 } = CONFIG22;
7699
7699
  generateSequence(SPACING2);
7700
7700
  applySequenceVars(SPACING2);
7701
7701
  runThroughMedia2(SPACING2);
7702
7702
  };
7703
7703
  var getSequence = (sequenceProps) => {
7704
- const CONFIG22 = getActiveConfig3();
7704
+ const CONFIG22 = getActiveConfig4();
7705
7705
  const { SPACING: SPACING2 } = CONFIG22;
7706
7706
  if (!sequenceProps)
7707
7707
  return SPACING2;
7708
7708
  const hasGenerated = Object.keys(sequenceProps.sequence).length > 0;
7709
7709
  return hasGenerated ? sequenceProps : generateSequence(sequenceProps);
7710
7710
  };
7711
- var getSpacingByKey3 = (value2, propertyName = "padding", sequenceProps) => {
7711
+ var getSpacingByKey5 = (value2, propertyName = "padding", sequenceProps) => {
7712
7712
  const sequence = getSequence(sequenceProps);
7713
7713
  const stack = arrayzeValue2(value2);
7714
7714
  if (!stack)
@@ -7740,8 +7740,8 @@ var require_cjs9 = __commonJS({
7740
7740
  sequence
7741
7741
  );
7742
7742
  };
7743
- var getSpacingBasedOnRatio4 = (props4, propertyName, val) => {
7744
- const CONFIG22 = getActiveConfig3();
7743
+ var getSpacingBasedOnRatio7 = (props4, propertyName, val) => {
7744
+ const CONFIG22 = getActiveConfig4();
7745
7745
  const { SPACING: SPACING2 } = CONFIG22;
7746
7746
  const { spacingRatio, unit } = props4;
7747
7747
  const value2 = val || props4[propertyName];
@@ -7766,23 +7766,23 @@ var require_cjs9 = __commonJS({
7766
7766
  });
7767
7767
  }
7768
7768
  applySequenceVars(sequenceProps, null, { useDefault: false });
7769
- return getSpacingByKey3(value2, propertyName, sequenceProps);
7769
+ return getSpacingByKey5(value2, propertyName, sequenceProps);
7770
7770
  }
7771
- return getSpacingByKey3(value2, propertyName);
7771
+ return getSpacingByKey5(value2, propertyName);
7772
7772
  };
7773
7773
  var applyTimingSequence = () => {
7774
- const CONFIG22 = getActiveConfig3();
7774
+ const CONFIG22 = getActiveConfig4();
7775
7775
  const { TIMING: TIMING2 } = CONFIG22;
7776
7776
  generateSequence(TIMING2);
7777
7777
  applySequenceVars(TIMING2);
7778
7778
  };
7779
- var getTimingFunction3 = (value2) => {
7780
- const CONFIG22 = getActiveConfig3();
7779
+ var getTimingFunction5 = (value2) => {
7780
+ const CONFIG22 = getActiveConfig4();
7781
7781
  const { TIMING: TIMING2 } = CONFIG22;
7782
7782
  return TIMING2[value2] || TIMING2[toCamelCase2(value2)] || value2;
7783
7783
  };
7784
- var getTimingByKey2 = (value2, property = "timing") => {
7785
- const CONFIG22 = getActiveConfig3();
7784
+ var getTimingByKey3 = (value2, property = "timing") => {
7785
+ const CONFIG22 = getActiveConfig4();
7786
7786
  const { TIMING: TIMING2 } = CONFIG22;
7787
7787
  return getSequenceValuePropertyPair(
7788
7788
  value2,
@@ -7792,7 +7792,7 @@ var require_cjs9 = __commonJS({
7792
7792
  };
7793
7793
  var import_utils222 = __toESM2(require_cjs22(), 1);
7794
7794
  var applyDocument = () => {
7795
- const CONFIG22 = getActiveConfig3();
7795
+ const CONFIG22 = getActiveConfig4();
7796
7796
  const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
7797
7797
  return (0, import_utils222.merge)(DOCUMENT2, {
7798
7798
  theme: THEME2.document,
@@ -7806,7 +7806,7 @@ var require_cjs9 = __commonJS({
7806
7806
  document: import_globals22.document
7807
7807
  };
7808
7808
  var setSVG = (val, key) => {
7809
- const CONFIG22 = getActiveConfig3();
7809
+ const CONFIG22 = getActiveConfig4();
7810
7810
  if (!val) {
7811
7811
  if (CONFIG22.verbose)
7812
7812
  console.warn("setSVG: val is not defined", key);
@@ -7818,21 +7818,21 @@ var require_cjs9 = __commonJS({
7818
7818
  return val;
7819
7819
  };
7820
7820
  var appendSVGSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
7821
- const CONFIG22 = getActiveConfig3();
7821
+ const CONFIG22 = getActiveConfig4();
7822
7822
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.SVG;
7823
7823
  for (const key in LIBRARY)
7824
7824
  lib[key] = CONFIG22.SVG[key];
7825
7825
  appendSVG(lib, options);
7826
7826
  };
7827
7827
  var setIcon = (val, key) => {
7828
- const CONFIG22 = getActiveConfig3();
7828
+ const CONFIG22 = getActiveConfig4();
7829
7829
  if (CONFIG22.useIconSprite) {
7830
7830
  return setSVG(val, key);
7831
7831
  }
7832
7832
  return val;
7833
7833
  };
7834
7834
  var appendIconsSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
7835
- const CONFIG22 = getActiveConfig3();
7835
+ const CONFIG22 = getActiveConfig4();
7836
7836
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.ICONS;
7837
7837
  for (const key in LIBRARY)
7838
7838
  lib[key] = CONFIG22.ICONS[key];
@@ -7852,7 +7852,7 @@ var require_cjs9 = __commonJS({
7852
7852
  return svgElem;
7853
7853
  };
7854
7854
  var appendSVG = (lib, options = DEF_OPTIONS) => {
7855
- const CONFIG22 = getActiveConfig3();
7855
+ const CONFIG22 = getActiveConfig4();
7856
7856
  const doc = options.document || import_globals22.document;
7857
7857
  if (!doc || !doc.documentElement) {
7858
7858
  if (CONFIG22.verbose) {
@@ -7874,16 +7874,16 @@ var require_cjs9 = __commonJS({
7874
7874
  }
7875
7875
  }
7876
7876
  };
7877
- var import_utils25 = __toESM2(require_cjs22(), 1);
7877
+ var import_utils252 = __toESM2(require_cjs22(), 1);
7878
7878
  var applyReset = (reset = {}) => {
7879
- const CONFIG22 = getActiveConfig3();
7879
+ const CONFIG22 = getActiveConfig4();
7880
7880
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
7881
7881
  if (RESET2) {
7882
7882
  if (RESET2[":root"]) {
7883
7883
  const configReset = RESET2;
7884
7884
  const configTemplates = TYPOGRAPHY2.templates;
7885
7885
  configReset.body = {
7886
- ...CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {},
7886
+ ...CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {},
7887
7887
  ...configTemplates.body
7888
7888
  };
7889
7889
  configReset.h1 = configTemplates.h1;
@@ -7894,10 +7894,10 @@ var require_cjs9 = __commonJS({
7894
7894
  configReset.h6 = configTemplates.h6;
7895
7895
  }
7896
7896
  const { body, ...templates } = TYPOGRAPHY2.templates;
7897
- const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
7897
+ const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {};
7898
7898
  if (RESET2.html)
7899
- (0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
7900
- return (0, import_utils25.deepMerge)((0, import_utils25.merge)(RESET2, reset), {
7899
+ (0, import_utils252.overwriteDeep)(RESET2.html, globalTheme);
7900
+ return (0, import_utils252.deepMerge)((0, import_utils252.merge)(RESET2, reset), {
7901
7901
  html: {
7902
7902
  position: "absolute",
7903
7903
  // overflow: 'hidden',
@@ -7948,7 +7948,7 @@ var require_cjs9 = __commonJS({
7948
7948
  "outset",
7949
7949
  "initial"
7950
7950
  ].some((v) => str.includes(v));
7951
- var transformBorder2 = (border) => {
7951
+ var transformBorder3 = (border) => {
7952
7952
  const arr = border.split(", ");
7953
7953
  return arr.map((v) => {
7954
7954
  v = v.trim();
@@ -7958,39 +7958,39 @@ var require_cjs9 = __commonJS({
7958
7958
  return v || "solid";
7959
7959
  else if (v.slice(-2) === "px" || v.slice(-2) === "em")
7960
7960
  return v;
7961
- else if (getColor2(v).length > 2)
7962
- return getColor2(v);
7963
- return getSpacingByKey3(v, "border").border;
7961
+ else if (getColor3(v).length > 2)
7962
+ return getColor3(v);
7963
+ return getSpacingByKey5(v, "border").border;
7964
7964
  }).join(" ");
7965
7965
  };
7966
- var transformTextStroke2 = (stroke) => {
7966
+ var transformTextStroke3 = (stroke) => {
7967
7967
  return stroke.split(", ").map((v) => {
7968
7968
  if (v.slice(0, 2) === "--")
7969
7969
  return `var(${v})`;
7970
7970
  if (v.includes("px"))
7971
7971
  return v;
7972
- else if (getColor2(v))
7973
- return getColor2(v);
7972
+ else if (getColor3(v))
7973
+ return getColor3(v);
7974
7974
  return v;
7975
7975
  }).join(" ");
7976
7976
  };
7977
- var transformShadow2 = (shadows) => shadows.split("|").map((shadow) => {
7977
+ var transformShadow3 = (shadows) => shadows.split("|").map((shadow) => {
7978
7978
  return shadow.split(", ").map((v) => {
7979
7979
  v = v.trim();
7980
7980
  if (v.slice(0, 2) === "--")
7981
7981
  return `var(${v})`;
7982
- if (getColor2(v).length > 2)
7983
- return getColor2(v);
7982
+ if (getColor3(v).length > 2)
7983
+ return getColor3(v);
7984
7984
  if (v.includes("px") || v.slice(-2) === "em")
7985
7985
  return v;
7986
7986
  const arr = v.split(" ");
7987
7987
  if (!arr.length)
7988
7988
  return v;
7989
- return arr.map((v2) => getSpacingByKey3(v2, "shadow").shadow).join(" ");
7989
+ return arr.map((v2) => getSpacingByKey5(v2, "shadow").shadow).join(" ");
7990
7990
  }).join(" ");
7991
7991
  }).join(",");
7992
- var transformBackgroundImage2 = (backgroundImage, globalTheme) => {
7993
- const CONFIG22 = getActiveConfig3();
7992
+ var transformBackgroundImage3 = (backgroundImage, globalTheme) => {
7993
+ const CONFIG22 = getActiveConfig4();
7994
7994
  return backgroundImage.split(", ").map((v) => {
7995
7995
  if (v.slice(0, 2) === "--")
7996
7996
  return `var(${v})`;
@@ -7998,14 +7998,14 @@ var require_cjs9 = __commonJS({
7998
7998
  return v;
7999
7999
  else if (CONFIG22.GRADIENT[backgroundImage]) {
8000
8000
  return {
8001
- backgroundImage: getMediaColor3(backgroundImage, globalTheme || CONFIG22.globalTheme)
8001
+ backgroundImage: getMediaColor5(backgroundImage, globalTheme || CONFIG22.globalTheme)
8002
8002
  };
8003
8003
  } else if (v.includes("/") || v.includes("http"))
8004
8004
  return `url(${v})`;
8005
8005
  return v;
8006
8006
  }).join(" ");
8007
8007
  };
8008
- var transfromGap2 = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
8008
+ var transfromGap3 = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey5(v, "gap").gap).join(" ");
8009
8009
  var transformTransition = (transition) => {
8010
8010
  const arr = transition.split(" ");
8011
8011
  if (!arr.length)
@@ -8014,20 +8014,20 @@ var require_cjs9 = __commonJS({
8014
8014
  if (v.slice(0, 2) === "--")
8015
8015
  return `var(${v})`;
8016
8016
  if (v.length < 3 || v.includes("ms")) {
8017
- const mapWithSequence = getTimingByKey2(v);
8017
+ const mapWithSequence = getTimingByKey3(v);
8018
8018
  return mapWithSequence.timing || v;
8019
8019
  }
8020
- if (getTimingFunction3(v))
8021
- return getTimingFunction3(v);
8020
+ if (getTimingFunction5(v))
8021
+ return getTimingFunction5(v);
8022
8022
  return v;
8023
8023
  }).join(" ");
8024
8024
  };
8025
- var transformDuration2 = (duration, props4, propertyName) => {
8025
+ var transformDuration3 = (duration, props4, propertyName) => {
8026
8026
  if (!(0, import_utils26.isString)(duration))
8027
8027
  return;
8028
- return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
8028
+ return duration.split(",").map((v) => getTimingByKey3(v).timing || v).join(",");
8029
8029
  };
8030
- var splitTransition2 = (transition) => {
8030
+ var splitTransition3 = (transition) => {
8031
8031
  const arr = transition.split(",");
8032
8032
  if (!arr.length)
8033
8033
  return;
@@ -8059,7 +8059,7 @@ var require_cjs9 = __commonJS({
8059
8059
  animation: setSameValue
8060
8060
  };
8061
8061
  var setValue = (FACTORY_NAME, value2, key) => {
8062
- const CONFIG22 = getActiveConfig3();
8062
+ const CONFIG22 = getActiveConfig4();
8063
8063
  const factoryName = FACTORY_NAME.toLowerCase();
8064
8064
  const FACTORY2 = CONFIG22[FACTORY_NAME];
8065
8065
  if (VALUE_TRANSFORMERS[factoryName]) {
@@ -8071,7 +8071,7 @@ var require_cjs9 = __commonJS({
8071
8071
  console.warn("Can not find", factoryName, "method in scratch");
8072
8072
  };
8073
8073
  var setEach = (factoryName, props4) => {
8074
- const CONFIG22 = getActiveConfig3();
8074
+ const CONFIG22 = getActiveConfig4();
8075
8075
  const FACTORY_NAME = factoryName.toUpperCase();
8076
8076
  const keys = Object.keys(props4);
8077
8077
  keys.map((key) => setValue(FACTORY_NAME, props4[key], key));
@@ -8079,7 +8079,7 @@ var require_cjs9 = __commonJS({
8079
8079
  };
8080
8080
  var SET_OPTIONS2 = {};
8081
8081
  var set5 = (recivedConfig, options = SET_OPTIONS2) => {
8082
- let CONFIG22 = getActiveConfig3();
8082
+ let CONFIG22 = getActiveConfig4();
8083
8083
  const {
8084
8084
  version,
8085
8085
  verbose,
@@ -8157,8 +8157,8 @@ var require_cjs10 = __commonJS({
8157
8157
  router: () => router2
8158
8158
  });
8159
8159
  module2.exports = __toCommonJS2(router_exports);
8160
- var import_utils20 = require_cjs();
8161
- var getActiveRoute = (level = 0, route = import_utils20.window.location.pathname) => {
8160
+ var import_utils24 = require_cjs();
8161
+ var getActiveRoute = (level = 0, route = import_utils24.window.location.pathname) => {
8162
8162
  const routeArray = route.split("/");
8163
8163
  const activeRoute = routeArray[level + 1];
8164
8164
  if (activeRoute)
@@ -8172,7 +8172,7 @@ var require_cjs10 = __commonJS({
8172
8172
  initialRender: false,
8173
8173
  scrollToTop: true,
8174
8174
  scrollToNode: false,
8175
- scrollNode: import_utils20.document && import_utils20.document.documentElement,
8175
+ scrollNode: import_utils24.document && import_utils24.document.documentElement,
8176
8176
  scrollBody: false,
8177
8177
  useFragment: false,
8178
8178
  updateState: true,
@@ -8187,13 +8187,13 @@ var require_cjs10 = __commonJS({
8187
8187
  const route = getActiveRoute(options.level, pathname);
8188
8188
  const content = element.routes[route || "/"] || element.routes["/*"];
8189
8189
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
8190
- const hashChanged = hash2 && hash2 !== import_utils20.window.location.hash.slice(1);
8190
+ const hashChanged = hash2 && hash2 !== import_utils24.window.location.hash.slice(1);
8191
8191
  const pathChanged = pathname !== lastPathname;
8192
8192
  lastPathname = pathname;
8193
8193
  if (!content)
8194
8194
  return;
8195
8195
  if (options.pushState) {
8196
- import_utils20.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8196
+ import_utils24.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8197
8197
  }
8198
8198
  if (pathChanged || !hashChanged) {
8199
8199
  if (options.updateState) {
@@ -8219,7 +8219,7 @@ var require_cjs10 = __commonJS({
8219
8219
  });
8220
8220
  }
8221
8221
  if (hash2) {
8222
- const activeNode = import_utils20.document.getElementById(hash2);
8222
+ const activeNode = import_utils24.document.getElementById(hash2);
8223
8223
  if (activeNode) {
8224
8224
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
8225
8225
  scrollNode.scrollTo({
@@ -8248,10 +8248,10 @@ var require_moment = __commonJS({
8248
8248
  function setHookCallback(callback) {
8249
8249
  hookCallback = callback;
8250
8250
  }
8251
- function isArray6(input) {
8251
+ function isArray8(input) {
8252
8252
  return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]";
8253
8253
  }
8254
- function isObject12(input) {
8254
+ function isObject14(input) {
8255
8255
  return input != null && Object.prototype.toString.call(input) === "[object Object]";
8256
8256
  }
8257
8257
  function hasOwnProp(a, b) {
@@ -8499,7 +8499,7 @@ var require_moment = __commonJS({
8499
8499
  var res = extend({}, parentConfig), prop;
8500
8500
  for (prop in childConfig) {
8501
8501
  if (hasOwnProp(childConfig, prop)) {
8502
- if (isObject12(parentConfig[prop]) && isObject12(childConfig[prop])) {
8502
+ if (isObject14(parentConfig[prop]) && isObject14(childConfig[prop])) {
8503
8503
  res[prop] = {};
8504
8504
  extend(res[prop], parentConfig[prop]);
8505
8505
  extend(res[prop], childConfig[prop]);
@@ -8511,7 +8511,7 @@ var require_moment = __commonJS({
8511
8511
  }
8512
8512
  }
8513
8513
  for (prop in parentConfig) {
8514
- if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject12(parentConfig[prop])) {
8514
+ if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject14(parentConfig[prop])) {
8515
8515
  res[prop] = extend({}, res[prop]);
8516
8516
  }
8517
8517
  }
@@ -8675,8 +8675,8 @@ var require_moment = __commonJS({
8675
8675
  var output = this._relativeTime[string];
8676
8676
  return isFunction4(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
8677
8677
  }
8678
- function pastFuture(diff3, output) {
8679
- var format2 = this._relativeTime[diff3 > 0 ? "future" : "past"];
8678
+ function pastFuture(diff4, output) {
8679
+ var format2 = this._relativeTime[diff4 > 0 ? "future" : "past"];
8680
8680
  return isFunction4(format2) ? format2(output) : format2.replace(/%s/i, output);
8681
8681
  }
8682
8682
  var aliases = {};
@@ -8896,15 +8896,15 @@ var require_moment = __commonJS({
8896
8896
  ), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;
8897
8897
  function localeMonths(m, format2) {
8898
8898
  if (!m) {
8899
- return isArray6(this._months) ? this._months : this._months["standalone"];
8899
+ return isArray8(this._months) ? this._months : this._months["standalone"];
8900
8900
  }
8901
- return isArray6(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m.month()];
8901
+ return isArray8(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m.month()];
8902
8902
  }
8903
8903
  function localeMonthsShort(m, format2) {
8904
8904
  if (!m) {
8905
- return isArray6(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"];
8905
+ return isArray8(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"];
8906
8906
  }
8907
- return isArray6(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
8907
+ return isArray8(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
8908
8908
  }
8909
8909
  function handleStrictParse(monthName, format2, strict) {
8910
8910
  var i2, ii, mom, llc = monthName.toLocaleLowerCase();
@@ -9289,7 +9289,7 @@ var require_moment = __commonJS({
9289
9289
  }
9290
9290
  var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;
9291
9291
  function localeWeekdays(m, format2) {
9292
- var weekdays = isArray6(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
9292
+ var weekdays = isArray8(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
9293
9293
  return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
9294
9294
  }
9295
9295
  function localeWeekdaysShort(m) {
@@ -9791,7 +9791,7 @@ var require_moment = __commonJS({
9791
9791
  if (!key) {
9792
9792
  return globalLocale;
9793
9793
  }
9794
- if (!isArray6(key)) {
9794
+ if (!isArray8(key)) {
9795
9795
  locale2 = loadLocale(key);
9796
9796
  if (locale2) {
9797
9797
  return locale2;
@@ -10269,7 +10269,7 @@ var require_moment = __commonJS({
10269
10269
  return new Moment(checkOverflow(input));
10270
10270
  } else if (isDate(input)) {
10271
10271
  config._d = input;
10272
- } else if (isArray6(format2)) {
10272
+ } else if (isArray8(format2)) {
10273
10273
  configFromStringAndArray(config);
10274
10274
  } else if (format2) {
10275
10275
  configFromStringAndFormat(config);
@@ -10289,12 +10289,12 @@ var require_moment = __commonJS({
10289
10289
  config._d = new Date(input.valueOf());
10290
10290
  } else if (typeof input === "string") {
10291
10291
  configFromString(config);
10292
- } else if (isArray6(input)) {
10292
+ } else if (isArray8(input)) {
10293
10293
  config._a = map2(input.slice(0), function(obj) {
10294
10294
  return parseInt(obj, 10);
10295
10295
  });
10296
10296
  configFromArray(config);
10297
- } else if (isObject12(input)) {
10297
+ } else if (isObject14(input)) {
10298
10298
  configFromObject(config);
10299
10299
  } else if (isNumber(input)) {
10300
10300
  config._d = new Date(input);
@@ -10312,7 +10312,7 @@ var require_moment = __commonJS({
10312
10312
  strict = locale2;
10313
10313
  locale2 = void 0;
10314
10314
  }
10315
- if (isObject12(input) && isObjectEmpty(input) || isArray6(input) && input.length === 0) {
10315
+ if (isObject14(input) && isObjectEmpty(input) || isArray8(input) && input.length === 0) {
10316
10316
  input = void 0;
10317
10317
  }
10318
10318
  c._isAMomentObject = true;
@@ -10349,7 +10349,7 @@ var require_moment = __commonJS({
10349
10349
  );
10350
10350
  function pickBy(fn, moments) {
10351
10351
  var res, i2;
10352
- if (moments.length === 1 && isArray6(moments[0])) {
10352
+ if (moments.length === 1 && isArray8(moments[0])) {
10353
10353
  moments = moments[0];
10354
10354
  }
10355
10355
  if (!moments.length) {
@@ -10471,11 +10471,11 @@ var require_moment = __commonJS({
10471
10471
  return minutes2 === 0 ? 0 : parts2[0] === "+" ? minutes2 : -minutes2;
10472
10472
  }
10473
10473
  function cloneWithOffset(input, model) {
10474
- var res, diff3;
10474
+ var res, diff4;
10475
10475
  if (model._isUTC) {
10476
10476
  res = model.clone();
10477
- diff3 = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
10478
- res._d.setTime(res._d.valueOf() + diff3);
10477
+ diff4 = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
10478
+ res._d.setTime(res._d.valueOf() + diff4);
10479
10479
  hooks.updateOffset(res, false);
10480
10480
  return res;
10481
10481
  } else {
@@ -10724,14 +10724,14 @@ var require_moment = __commonJS({
10724
10724
  }
10725
10725
  }
10726
10726
  var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
10727
- function isString8(input) {
10727
+ function isString10(input) {
10728
10728
  return typeof input === "string" || input instanceof String;
10729
10729
  }
10730
10730
  function isMomentInput(input) {
10731
- return isMoment(input) || isDate(input) || isString8(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
10731
+ return isMoment(input) || isDate(input) || isString10(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
10732
10732
  }
10733
10733
  function isMomentInputObject(input) {
10734
- var objectTest = isObject12(input) && !isObjectEmpty(input), propertyTest = false, properties = [
10734
+ var objectTest = isObject14(input) && !isObjectEmpty(input), propertyTest = false, properties = [
10735
10735
  "years",
10736
10736
  "year",
10737
10737
  "y",
@@ -10764,16 +10764,16 @@ var require_moment = __commonJS({
10764
10764
  return objectTest && propertyTest;
10765
10765
  }
10766
10766
  function isNumberOrStringArray(input) {
10767
- var arrayTest = isArray6(input), dataTypeTest = false;
10767
+ var arrayTest = isArray8(input), dataTypeTest = false;
10768
10768
  if (arrayTest) {
10769
10769
  dataTypeTest = input.filter(function(item) {
10770
- return !isNumber(item) && isString8(input);
10770
+ return !isNumber(item) && isString10(input);
10771
10771
  }).length === 0;
10772
10772
  }
10773
10773
  return arrayTest && dataTypeTest;
10774
10774
  }
10775
10775
  function isCalendarSpec(input) {
10776
- var objectTest = isObject12(input) && !isObjectEmpty(input), propertyTest = false, properties = [
10776
+ var objectTest = isObject14(input) && !isObjectEmpty(input), propertyTest = false, properties = [
10777
10777
  "sameDay",
10778
10778
  "nextDay",
10779
10779
  "lastDay",
@@ -10788,8 +10788,8 @@ var require_moment = __commonJS({
10788
10788
  return objectTest && propertyTest;
10789
10789
  }
10790
10790
  function getCalendarFormat(myMoment, now2) {
10791
- var diff3 = myMoment.diff(now2, "days", true);
10792
- return diff3 < -6 ? "sameElse" : diff3 < -1 ? "lastWeek" : diff3 < 0 ? "lastDay" : diff3 < 1 ? "sameDay" : diff3 < 2 ? "nextDay" : diff3 < 7 ? "nextWeek" : "sameElse";
10791
+ var diff4 = myMoment.diff(now2, "days", true);
10792
+ return diff4 < -6 ? "sameElse" : diff4 < -1 ? "lastWeek" : diff4 < 0 ? "lastDay" : diff4 < 1 ? "sameDay" : diff4 < 2 ? "nextDay" : diff4 < 7 ? "nextWeek" : "sameElse";
10793
10793
  }
10794
10794
  function calendar$1(time, formats) {
10795
10795
  if (arguments.length === 1) {
@@ -10863,7 +10863,7 @@ var require_moment = __commonJS({
10863
10863
  function isSameOrBefore(input, units) {
10864
10864
  return this.isSame(input, units) || this.isBefore(input, units);
10865
10865
  }
10866
- function diff2(input, units, asFloat) {
10866
+ function diff3(input, units, asFloat) {
10867
10867
  var that, zoneDelta, output;
10868
10868
  if (!this.isValid()) {
10869
10869
  return NaN;
@@ -11595,7 +11595,7 @@ var require_moment = __commonJS({
11595
11595
  proto.add = add;
11596
11596
  proto.calendar = calendar$1;
11597
11597
  proto.clone = clone;
11598
- proto.diff = diff2;
11598
+ proto.diff = diff3;
11599
11599
  proto.endOf = endOf;
11600
11600
  proto.format = format;
11601
11601
  proto.from = from2;
@@ -12559,7 +12559,7 @@ __export(src_exports, {
12559
12559
  });
12560
12560
  module.exports = __toCommonJS(src_exports);
12561
12561
  var import_domql = __toESM(require_cjs8(), 1);
12562
- var import_utils19 = __toESM(require_cjs(), 1);
12562
+ var import_utils23 = __toESM(require_cjs(), 1);
12563
12563
 
12564
12564
  // src/utilImports.js
12565
12565
  var utilImports_exports = {};
@@ -14016,7 +14016,7 @@ var SET_OPTIONS = {
14016
14016
  useSvgSprite: true
14017
14017
  };
14018
14018
  var init = (config, options = SET_OPTIONS) => {
14019
- const emotion2 = options.emotion || emotion;
14019
+ const emotion4 = options.emotion || emotion;
14020
14020
  const resultConfig = mergeWithLocalFile(config || {});
14021
14021
  const conf = (0, import_scratch.set)({
14022
14022
  verbose: options.verbose,
@@ -14037,11 +14037,11 @@ var init = (config, options = SET_OPTIONS) => {
14037
14037
  const useIconSprite = conf.useIconSprite;
14038
14038
  const hasIcons = config.icons || config.ICONS;
14039
14039
  if (useFontImport)
14040
- emotion2.injectGlobal(FontFace);
14040
+ emotion4.injectGlobal(FontFace);
14041
14041
  if (useVariable)
14042
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
14042
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
14043
14043
  if (useReset)
14044
- emotion2.injectGlobal(conf.RESET);
14044
+ emotion4.injectGlobal(conf.RESET);
14045
14045
  if (hasSvgs)
14046
14046
  (0, import_scratch.appendSVGSprite)(hasSvgs, { document: options.document });
14047
14047
  else if (useSvgSprite)
@@ -14056,14 +14056,14 @@ var UPDATE_OPTIONS = {
14056
14056
  emotion
14057
14057
  };
14058
14058
  var updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
14059
- const emotion2 = options.emotion || emotion;
14059
+ const emotion4 = options.emotion || emotion;
14060
14060
  const resultConfig = mergeWithLocalFile(config || {}, RC_FILE);
14061
14061
  const conf = (0, import_scratch.set)({
14062
14062
  verbose: false,
14063
14063
  ...resultConfig
14064
14064
  });
14065
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
14066
- emotion2.injectGlobal(conf.RESET);
14065
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
14066
+ emotion4.injectGlobal(conf.RESET);
14067
14067
  };
14068
14068
 
14069
14069
  // src/utilImports.js
@@ -14576,8 +14576,8 @@ var getComputedBackgroundColor = ({ props: props4 }) => {
14576
14576
  return (0, import_scratch6.getColor)(props4.shapeDirectionColor) || (0, import_scratch6.getColor)(props4.borderColor) || (0, import_scratch6.getColor)(props4.backgroundColor) || (0, import_scratch6.getColor)(props4.background);
14577
14577
  };
14578
14578
  var inheritTransition = ({ props: props4, deps }) => {
14579
- const exec4 = Timing.class.transition({ props: props4, deps });
14580
- return exec4 && exec4.transition;
14579
+ const exec5 = Timing.class.transition({ props: props4, deps });
14580
+ return exec5 && exec5.transition;
14581
14581
  };
14582
14582
  var SHAPES = {
14583
14583
  rectangle: {},
@@ -14775,8 +14775,8 @@ var Theme = {
14775
14775
  const globalTheme = deps.getSystemTheme(element);
14776
14776
  if (!props4.theme)
14777
14777
  return;
14778
- const getMediaTheme2 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
14779
- return getMediaTheme2;
14778
+ const getMediaTheme3 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
14779
+ return getMediaTheme3;
14780
14780
  },
14781
14781
  color: (element) => {
14782
14782
  const { props: props4, deps } = element;
@@ -15537,7 +15537,7 @@ var Icon = {
15537
15537
  const { toCamelCase: toCamelCase2 } = context && context.utils;
15538
15538
  const iconName = props4.inheritedString || props4.name || props4.icon || key;
15539
15539
  const camelCase = toCamelCase2(iconName);
15540
- const isArray6 = camelCase.split(/([a-z])([A-Z])/g);
15540
+ const isArray8 = camelCase.split(/([a-z])([A-Z])/g);
15541
15541
  let activeIconName;
15542
15542
  if (props4.active) {
15543
15543
  activeIconName = props4[".active"].name || props4[".active"].icon;
@@ -15550,10 +15550,10 @@ var Icon = {
15550
15550
  validIconName = activeIconName;
15551
15551
  if (ICONS[camelCase])
15552
15552
  validIconName = camelCase;
15553
- else if (ICONS[isArray6[0] + isArray6[1]])
15554
- validIconName = isArray6[0] + isArray6[1];
15555
- else if (ICONS[isArray6[0]])
15556
- validIconName = isArray6[0];
15553
+ else if (ICONS[isArray8[0] + isArray8[1]])
15554
+ validIconName = isArray8[0] + isArray8[1];
15555
+ else if (ICONS[isArray8[0]])
15556
+ validIconName = isArray8[0];
15557
15557
  else {
15558
15558
  if (verbose)
15559
15559
  console.warn("Can't find icon:", iconName, validIconName);
@@ -15853,8 +15853,8 @@ var Link = {
15853
15853
  attr: {
15854
15854
  href: (el) => {
15855
15855
  const { context: ctx } = el;
15856
- const { exec: exec4 } = ctx.utils;
15857
- return exec4(el.props.href, el) || exec4(el.props, el).href;
15856
+ const { exec: exec5 } = ctx.utils;
15857
+ return exec5(el.props.href, el) || exec5(el.props, el).href;
15858
15858
  },
15859
15859
  target: ({ props: props4 }) => props4.target,
15860
15860
  "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
@@ -15958,8 +15958,8 @@ var Input = {
15958
15958
  autocomplete: ({ props: props4 }) => props4.autocomplete,
15959
15959
  placeholder: ({ props: props4 }) => props4.placeholder,
15960
15960
  value: ({ props: props4, state, deps }) => {
15961
- const { isString: isString8, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
15962
- if (isString8(props4.value) && props4.value.includes("{{")) {
15961
+ const { isString: isString10, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
15962
+ if (isString10(props4.value) && props4.value.includes("{{")) {
15963
15963
  return replaceLiteralsWithObjectFields2(props4.value, state);
15964
15964
  }
15965
15965
  return props4.value;
@@ -18444,6 +18444,137 @@ var TimePickerItem = {
18444
18444
  Button_minus: { icon: "minus" }
18445
18445
  };
18446
18446
 
18447
+ // ../../uikit/domql/TimePicker/node_modules/@symbo.ls/icon/index.js
18448
+ var Icon2 = {
18449
+ extend: Svg,
18450
+ props: ({ key, props: props4, parent, context }) => {
18451
+ const { ICONS, useIconSprite, verbose } = context && context.designSystem;
18452
+ const { toCamelCase: toCamelCase2 } = context && context.utils;
18453
+ const iconName = props4.inheritedString || props4.name || props4.icon || key;
18454
+ const camelCase = toCamelCase2(iconName);
18455
+ const isArray8 = camelCase.split(/([a-z])([A-Z])/g);
18456
+ let activeIconName;
18457
+ if (props4.active) {
18458
+ activeIconName = props4[".active"].name || props4[".active"].icon;
18459
+ }
18460
+ if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
18461
+ activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
18462
+ }
18463
+ let validIconName;
18464
+ if (ICONS[activeIconName])
18465
+ validIconName = activeIconName;
18466
+ if (ICONS[camelCase])
18467
+ validIconName = camelCase;
18468
+ else if (ICONS[isArray8[0] + isArray8[1]])
18469
+ validIconName = isArray8[0] + isArray8[1];
18470
+ else if (ICONS[isArray8[0]])
18471
+ validIconName = isArray8[0];
18472
+ else {
18473
+ if (verbose)
18474
+ console.warn("Can't find icon:", iconName, validIconName);
18475
+ }
18476
+ const iconFromLibrary = ICONS[validIconName];
18477
+ const directSrc = parent && parent.props && parent.props.src || props4.src;
18478
+ return {
18479
+ width: "A",
18480
+ height: "A",
18481
+ display: "inline-block",
18482
+ spriteId: useIconSprite && validIconName,
18483
+ src: iconFromLibrary || directSrc || ICONS.noIcon,
18484
+ style: { fill: "currentColor" }
18485
+ };
18486
+ },
18487
+ attr: { viewBox: "0 0 24 24" }
18488
+ };
18489
+ var IconText2 = {
18490
+ extend: Flex,
18491
+ props: {
18492
+ align: "center center",
18493
+ lineHeight: 1
18494
+ },
18495
+ // TODO: remove this variant
18496
+ icon: {
18497
+ extend: Icon2,
18498
+ if: ({ parent }) => parent.props.icon
18499
+ },
18500
+ Icon: {
18501
+ props: {},
18502
+ if: ({ props: props4 }) => props4.name || props4.icon
18503
+ },
18504
+ text: ({ props: props4 }) => props4.text,
18505
+ ".reversed": {
18506
+ props: { flow: "row-reverse" }
18507
+ },
18508
+ ".vertical": {
18509
+ props: { flow: "column" }
18510
+ }
18511
+ };
18512
+
18513
+ // ../../uikit/domql/TimePicker/node_modules/@symbo.ls/button/index.js
18514
+ var Button2 = {
18515
+ extend: [FocusableComponent, IconText2],
18516
+ tag: "button",
18517
+ props: {
18518
+ fontSize: "A",
18519
+ type: "button",
18520
+ border: "none",
18521
+ display: "inline-flex",
18522
+ align: "center center",
18523
+ textDecoration: "none",
18524
+ lineHeight: "1",
18525
+ whiteSpace: "nowrap",
18526
+ padding: "Z A1",
18527
+ fontFamily: "inherit",
18528
+ round: "C2"
18529
+ },
18530
+ attr: {
18531
+ type: ({ props: props4 }) => props4.type
18532
+ }
18533
+ };
18534
+ var CommonButton2 = {
18535
+ extend: Button2,
18536
+ props: {
18537
+ color: "white",
18538
+ background: "blue",
18539
+ boxSize: "fit-content",
18540
+ padding: "A A2",
18541
+ round: "Z2",
18542
+ gap: "Y2",
18543
+ position: "relative"
18544
+ },
18545
+ icon: {
18546
+ props: { fontSize: "C" }
18547
+ },
18548
+ Caption: {
18549
+ props: {
18550
+ text: "Button",
18551
+ line_height: "1em"
18552
+ }
18553
+ }
18554
+ };
18555
+ var CancelConfirmButtons2 = {
18556
+ extend: Flex,
18557
+ childExtend: {
18558
+ extend: CommonButton2,
18559
+ props: {
18560
+ minWidth: "D2",
18561
+ ":first-child": {
18562
+ background: "transparent",
18563
+ border: "1px solid #20202B"
18564
+ },
18565
+ ":last-child": {}
18566
+ }
18567
+ },
18568
+ ...[
18569
+ { Caption: { text: "No" } },
18570
+ { Caption: { text: "Yes" } }
18571
+ ],
18572
+ props: {
18573
+ gap: "Z",
18574
+ maxWidth: "fit-content"
18575
+ }
18576
+ };
18577
+
18447
18578
  // ../../uikit/domql/TimePicker/TimeSwitcher.js
18448
18579
  var props3 = {
18449
18580
  boxSize: "C B2",
@@ -18456,7 +18587,7 @@ var TimeSwitcher = {
18456
18587
  props: props3,
18457
18588
  extend: Flex,
18458
18589
  childExtend: {
18459
- extend: Button,
18590
+ extend: Button2,
18460
18591
  props: ({ state, key }) => ({
18461
18592
  active: state.activeShift === key,
18462
18593
  padding: "0",
@@ -19624,6 +19755,9 @@ var UserWithButton = {
19624
19755
  }
19625
19756
  };
19626
19757
 
19758
+ // ../../uikit/domql/Table/index.js
19759
+ var Table = {};
19760
+
19627
19761
  // ../../uikit/domql/Card/BalanceCard.js
19628
19762
  var BalanceCard = {
19629
19763
  extend: TitleParagraphWithButton,
@@ -19778,9 +19912,6 @@ var CurrencyConvert = {
19778
19912
  }
19779
19913
  };
19780
19914
 
19781
- // ../../uikit/domql/Table/index.js
19782
- var Table = {};
19783
-
19784
19915
  // src/define.js
19785
19916
  var defaultDefine = {
19786
19917
  routes: (param) => param,
@@ -19931,7 +20062,7 @@ var applyClassListOnNode = (params, element, node2) => {
19931
20062
  };
19932
20063
 
19933
20064
  // ../../node_modules/@domql/emotion/index.js
19934
- var transformEmotionStyle = (emotion2) => {
20065
+ var transformEmotionStyle = (emotion4) => {
19935
20066
  return (params, element, state) => {
19936
20067
  const execParams = (0, import_utils16.exec)(params, element);
19937
20068
  if (params) {
@@ -19940,10 +20071,10 @@ var transformEmotionStyle = (emotion2) => {
19940
20071
  else
19941
20072
  element.class = { elementStyle: execParams };
19942
20073
  }
19943
- transformEmotionClass(emotion2)(element.class, element, state, true);
20074
+ transformEmotionClass(emotion4)(element.class, element, state, true);
19944
20075
  };
19945
20076
  };
19946
- var transformEmotionClass = (emotion2) => {
20077
+ var transformEmotionClass = (emotion4) => {
19947
20078
  return (params, element, state, flag) => {
19948
20079
  if (element.style && !flag)
19949
20080
  return;
@@ -19962,7 +20093,7 @@ var transformEmotionClass = (emotion2) => {
19962
20093
  if (!isEqual) {
19963
20094
  if (!(0, import_utils16.isProduction)() && (0, import_utils16.isObject)(prop))
19964
20095
  prop.label = key || element.key;
19965
- const CSSed = emotion2.css(prop);
20096
+ const CSSed = emotion4.css(prop);
19966
20097
  __class[key] = prop;
19967
20098
  __classNames[key] = CSSed;
19968
20099
  }
@@ -19970,15 +20101,22 @@ var transformEmotionClass = (emotion2) => {
19970
20101
  applyClassListOnNode(__classNames, element, element.node);
19971
20102
  };
19972
20103
  };
19973
- var transformDOMQLEmotion = (emotion2, options) => {
19974
- if (!emotion2)
19975
- emotion2 = createEmotion(options || { key: "smbls" });
20104
+ var transformDOMQLEmotion = (emotion4, options) => {
20105
+ if (!emotion4)
20106
+ emotion4 = createEmotion(options || { key: "smbls" });
19976
20107
  return {
19977
- style: transformEmotionStyle(emotion2),
19978
- class: transformEmotionClass(emotion2)
20108
+ style: transformEmotionStyle(emotion4),
20109
+ class: transformEmotionClass(emotion4)
19979
20110
  };
19980
20111
  };
19981
20112
 
20113
+ // node_modules/@symbo.ls/emotion/index.js
20114
+ var createEmotion4 = (key = "smbls", container) => {
20115
+ const cleanKey = key.replaceAll(/\./g, "-");
20116
+ return createEmotion({ key: cleanKey, container });
20117
+ };
20118
+ var emotion2 = createEmotion4();
20119
+
19982
20120
  // src/options.js
19983
20121
  var options_default = {
19984
20122
  editor: {},
@@ -19994,7 +20132,7 @@ var options_default = {
19994
20132
  },
19995
20133
  components: {},
19996
20134
  initOptions: {
19997
- emotion
20135
+ emotion: emotion2
19998
20136
  },
19999
20137
  router: {
20000
20138
  initRouter: true,
@@ -20008,24 +20146,24 @@ var options_default = {
20008
20146
  var initEmotion = (key, options = options_default) => {
20009
20147
  const doc = options.parent || options.document || document;
20010
20148
  const initOptions = options.initOptions || {};
20011
- const emotion2 = initOptions.emotion || emotion;
20149
+ const emotion4 = initOptions.emotion || emotion2;
20012
20150
  if (!initOptions.emotion)
20013
- initOptions.emotion = emotion2;
20151
+ initOptions.emotion = emotion4;
20014
20152
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
20015
20153
  const scratchSystem2 = init(options.designSystem || {}, {
20016
20154
  key,
20017
- emotion: emotion2,
20155
+ emotion: emotion4,
20018
20156
  verbose: options.verbose,
20019
20157
  document: doc,
20020
20158
  ...options_default.designSystem,
20021
20159
  ...initOptions
20022
20160
  });
20023
- return [scratchSystem2, emotion2, registry];
20161
+ return [scratchSystem2, emotion4, registry];
20024
20162
  };
20025
20163
 
20026
20164
  // ../socket-ui/byld-socket.js
20027
20165
  var import_router3 = __toESM(require_cjs10());
20028
- var import_scratch14 = __toESM(require_cjs9());
20166
+ var import_scratch23 = __toESM(require_cjs9());
20029
20167
 
20030
20168
  // ../socket/client.js
20031
20169
  var utils = __toESM(require_cjs(), 1);
@@ -23353,7 +23491,9 @@ var connect = (key, options = {}) => {
23353
23491
  const socketUrls = isArray5(options.socketUrl) ? options.socketUrl : [options.socketUrl || SOCKET_BACKEND_URL];
23354
23492
  const primaryUrl = socketUrls[0];
23355
23493
  const secondaryUrl = socketUrls[1] || "socket.symbols.app";
23356
- const socket = lookup2(primaryUrl || SOCKET_BACKEND_URL);
23494
+ const socket = lookup2(primaryUrl || SOCKET_BACKEND_URL, {
23495
+ withCredentials: true
23496
+ });
23357
23497
  socket.on("connect", () => {
23358
23498
  if (isDev) {
23359
23499
  console.log(
@@ -23422,11 +23562,121 @@ function send(event = "change", changes, options) {
23422
23562
  this.emit(event, changes, { ...options, ...defautlOpts });
23423
23563
  }
23424
23564
 
23565
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Block.js
23566
+ var import_scratch14 = __toESM(require_cjs9());
23567
+
23568
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Flex.js
23569
+ var Flex2 = {
23570
+ props: {
23571
+ display: "flex"
23572
+ },
23573
+ class: {
23574
+ flow: ({ props: props4 }) => props4.flow && { flexFlow: props4.flow },
23575
+ wrap: ({ props: props4 }) => props4.wrap && { flexWrap: props4.wrap },
23576
+ align: ({ props: props4 }) => {
23577
+ if (typeof props4.align !== "string")
23578
+ return;
23579
+ const [alignItems, justifyContent] = props4.align.split(" ");
23580
+ return { alignItems, justifyContent };
23581
+ }
23582
+ }
23583
+ };
23584
+
23585
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Grid.js
23586
+ var import_scratch15 = __toESM(require_cjs9());
23587
+
23588
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Media.js
23589
+ var import_utils17 = __toESM(require_cjs());
23590
+
23591
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Theme.js
23592
+ var import_scratch18 = __toESM(require_cjs9());
23593
+
23594
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/style.js
23595
+ var import_scratch17 = __toESM(require_cjs9());
23596
+
23597
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Timing.js
23598
+ var import_scratch16 = __toESM(require_cjs9());
23599
+
23600
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/style.js
23601
+ var CONFIG3 = (0, import_scratch17.getActiveConfig)();
23602
+ var depth2 = {
23603
+ 4: { boxShadow: `rgba(0,0,0,.10) 0 2${CONFIG3.UNIT.default} 4${CONFIG3.UNIT.default}` },
23604
+ 6: { boxShadow: `rgba(0,0,0,.10) 0 3${CONFIG3.UNIT.default} 6${CONFIG3.UNIT.default}` },
23605
+ 10: { boxShadow: `rgba(0,0,0,.10) 0 4${CONFIG3.UNIT.default} 10${CONFIG3.UNIT.default}` },
23606
+ 16: { boxShadow: `rgba(0,0,0,.10) 0 8${CONFIG3.UNIT.default} 16${CONFIG3.UNIT.default}` },
23607
+ 26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG3.UNIT.default} 26${CONFIG3.UNIT.default}` },
23608
+ 42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG3.UNIT.default} 42${CONFIG3.UNIT.default}` }
23609
+ };
23610
+
23611
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Collection.js
23612
+ var import_state2 = __toESM(require_cjs5());
23613
+ var import_utils18 = __toESM(require_cjs());
23614
+
23615
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Position.js
23616
+ var import_scratch19 = __toESM(require_cjs9());
23617
+
23618
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/index.js
23619
+ var import_utils19 = __toESM(require_cjs());
23620
+ var import_scratch20 = __toESM(require_cjs9());
23621
+
23622
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Text.js
23623
+ var import_scratch21 = __toESM(require_cjs9());
23624
+
23625
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Animation.js
23626
+ var import_scratch22 = __toESM(require_cjs9());
23627
+ var import_utils20 = __toESM(require_cjs());
23628
+
23629
+ // ../socket-ui/node_modules/@symbo.ls/emotion/index.js
23630
+ var createEmotion5 = (key = "smbls", container) => {
23631
+ const cleanKey = key.replaceAll(/\./g, "-");
23632
+ return createEmotion({ key: cleanKey, container });
23633
+ };
23634
+ var emotion3 = createEmotion5();
23635
+
23636
+ // ../socket-ui/node_modules/@symbo.ls/notification/index.js
23637
+ var Notification2 = {
23638
+ extend: Flex2,
23639
+ props: {
23640
+ theme: "alert",
23641
+ padding: "Z1 B Z A",
23642
+ round: "A A A Y2",
23643
+ gap: "X2",
23644
+ cursor: "pointer",
23645
+ align: "flex-start center"
23646
+ },
23647
+ IconText: {
23648
+ props: {
23649
+ icon: "info outline"
23650
+ }
23651
+ },
23652
+ Flex: {
23653
+ props: {
23654
+ flow: "column",
23655
+ align: "flex-start",
23656
+ gap: "X2"
23657
+ },
23658
+ Title: {
23659
+ props: {
23660
+ fontWeight: "600",
23661
+ lineHeight: "1em",
23662
+ text: "Notification"
23663
+ }
23664
+ },
23665
+ P: {
23666
+ props: {
23667
+ fontSize: "Z",
23668
+ margin: "0",
23669
+ text: "is not always a distraction"
23670
+ }
23671
+ }
23672
+ }
23673
+ };
23674
+
23425
23675
  // ../socket-ui/byld-socket.js
23426
23676
  var import_globals = __toESM(require_cjs11());
23427
23677
 
23428
23678
  // ../socket-ui/devFocus.js
23429
- var import_utils17 = __toESM(require_cjs());
23679
+ var import_utils21 = __toESM(require_cjs());
23430
23680
  var DevFocus = {
23431
23681
  props: {
23432
23682
  ".preventSelect": {
@@ -23480,7 +23730,7 @@ var DevFocus = {
23480
23730
  on: {
23481
23731
  init: ({ context }) => {
23482
23732
  const { components } = context;
23483
- if ((0, import_utils17.isObject)(components)) {
23733
+ if ((0, import_utils21.isObject)(components)) {
23484
23734
  const { Content, ...rest } = components;
23485
23735
  for (const key in rest) {
23486
23736
  if (domql_exports[key])
@@ -23589,7 +23839,7 @@ var COLOR = {
23589
23839
  black: "#000000",
23590
23840
  blue: "#3686F7"
23591
23841
  };
23592
- (0, import_scratch14.set)({
23842
+ (0, import_scratch23.set)({
23593
23843
  COLOR,
23594
23844
  ANIMATION
23595
23845
  });
@@ -23667,7 +23917,7 @@ var Notifications = {
23667
23917
  zIndex: "999"
23668
23918
  },
23669
23919
  childExtend: {
23670
- extend: [Notification],
23920
+ extend: [Notification2],
23671
23921
  props: ({ state }) => ({
23672
23922
  animation: "fadeInUp",
23673
23923
  animationDuration: "C",
@@ -23702,13 +23952,13 @@ var Sync = {
23702
23952
  };
23703
23953
 
23704
23954
  // src/syncExtend.js
23705
- var import_utils18 = __toESM(require_cjs(), 1);
23955
+ var import_utils22 = __toESM(require_cjs(), 1);
23706
23956
  var applySyncDebug = (extend, options) => {
23707
23957
  const { editor } = options;
23708
23958
  if (!editor)
23709
23959
  return extend;
23710
- const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
23711
- const liveSync = (0, import_utils18.isUndefined)(editor.liveSync) ? (0, import_utils18.isDevelopment)() : editor.liveSync;
23960
+ const inspect = (0, import_utils22.isUndefined)(editor.inspect) ? (0, import_utils22.isDevelopment)() : editor.inspect;
23961
+ const liveSync = (0, import_utils22.isUndefined)(editor.liveSync) ? (0, import_utils22.isDevelopment)() : editor.liveSync;
23712
23962
  if (inspect)
23713
23963
  extend.push(DevFocus);
23714
23964
  if (liveSync)
@@ -23719,7 +23969,7 @@ var applyInspectListener = (root, options) => {
23719
23969
  const { editor } = options;
23720
23970
  if (!editor)
23721
23971
  return;
23722
- const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
23972
+ const inspect = (0, import_utils22.isUndefined)(editor.inspect) ? (0, import_utils22.isDevelopment)() : editor.inspect;
23723
23973
  if (inspect)
23724
23974
  inspectOnKey(root);
23725
23975
  };
@@ -23727,11 +23977,11 @@ var applyInspectListener = (root, options) => {
23727
23977
  // src/index.js
23728
23978
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
23729
23979
  var mergeWithLocalFile2 = (options, optionsExternalFile) => {
23730
- const rcfile = (0, import_utils19.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
23731
- return (0, import_utils19.deepMerge)(options, rcfile);
23980
+ const rcfile = (0, import_utils23.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
23981
+ return (0, import_utils23.deepMerge)(options, rcfile);
23732
23982
  };
23733
23983
  var create = async (App, options = options_default, optionsExternalFile) => {
23734
- const appIsKey = (0, import_utils19.isString)(App);
23984
+ const appIsKey = (0, import_utils23.isString)(App);
23735
23985
  options = mergeWithLocalFile2(options, optionsExternalFile);
23736
23986
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
23737
23987
  if (appIsKey)
@@ -23745,7 +23995,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
23745
23995
  document = window.document;
23746
23996
  }
23747
23997
  const doc = options.parent || options.document || document;
23748
- const [scratchSystem2, emotion2, registry] = initEmotion(key, options);
23998
+ const [scratchSystem2, emotion4, registry] = initEmotion(key, options);
23749
23999
  let state;
23750
24000
  if (options.state)
23751
24001
  state = options.state;
@@ -23774,7 +24024,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
23774
24024
  utils: snippets,
23775
24025
  define: define2,
23776
24026
  registry,
23777
- emotion: emotion2,
24027
+ emotion: emotion4,
23778
24028
  routerOptions,
23779
24029
  document: doc
23780
24030
  }
@@ -23794,7 +24044,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
23794
24044
  return domqlApp;
23795
24045
  };
23796
24046
  var createSync = (App, options = options_default, optionsExternalFile) => {
23797
- const appIsKey = (0, import_utils19.isString)(App);
24047
+ const appIsKey = (0, import_utils23.isString)(App);
23798
24048
  options = mergeWithLocalFile2(options, optionsExternalFile);
23799
24049
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
23800
24050
  if (appIsKey)
@@ -23813,7 +24063,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
23813
24063
  parent = options.document;
23814
24064
  else
23815
24065
  parent = document.body;
23816
- const [scratchSystem2, emotion2, registry] = initEmotion(key, options);
24066
+ const [scratchSystem2, emotion4, registry] = initEmotion(key, options);
23817
24067
  let state;
23818
24068
  if (options.state)
23819
24069
  state = options.state;
@@ -23841,7 +24091,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
23841
24091
  utils: snippets,
23842
24092
  define: define2,
23843
24093
  registry,
23844
- emotion: emotion2,
24094
+ emotion: emotion4,
23845
24095
  // routerOptions,
23846
24096
  document
23847
24097
  }