@symbo.ls/create 2.11.198 → 2.11.203

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.
@@ -464,7 +464,7 @@ var require_object = __commonJS({
464
464
  flattenRecursive: () => flattenRecursive,
465
465
  isEqualDeep: () => isEqualDeep2,
466
466
  map: () => map2,
467
- merge: () => merge5,
467
+ merge: () => merge4,
468
468
  mergeArrayExclude: () => mergeArrayExclude,
469
469
  mergeIfExisted: () => mergeIfExisted,
470
470
  objectToString: () => objectToString,
@@ -494,7 +494,7 @@ var require_object = __commonJS({
494
494
  obj[e] = exec4(extention[e], element);
495
495
  }
496
496
  };
497
- var merge5 = (element, obj, excludeFrom = []) => {
497
+ var merge4 = (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("__"))
@@ -1320,11 +1320,11 @@ var require_tree = __commonJS({
1320
1320
  TREE: () => TREE
1321
1321
  });
1322
1322
  module2.exports = __toCommonJS2(tree_exports);
1323
- var import_utils21 = require_cjs();
1323
+ var import_utils20 = require_cjs();
1324
1324
  var import_report = require_cjs2();
1325
1325
  var ROOT = {
1326
1326
  key: ":root",
1327
- node: import_utils21.document ? import_utils21.document.body : (0, import_report.report)("DocumentNotDefined", import_utils21.document)
1327
+ node: import_utils20.document ? import_utils20.document.body : (0, import_report.report)("DocumentNotDefined", import_utils20.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_utils21 = require_cjs();
1363
+ var import_utils20 = 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_utils21.isFunction)(element.on[param])) {
1368
+ if (element.on && (0, import_utils20.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_utils21.isFunction)(element.on[param])) {
1377
+ if (element.on && (0, import_utils20.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_utils21.isFunction)(appliedFunction)) {
1388
+ if ((0, import_utils20.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_utils21 = require_cjs();
1424
+ var import_utils20 = require_cjs();
1425
1425
  var canRender = (element) => {
1426
1426
  const tag = element.tag || "div";
1427
- return (0, import_utils21.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1427
+ return (0, import_utils20.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_utils21 = require_cjs();
1518
+ var import_utils20 = 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_utils21.exec)(tag, element);
1537
+ tag = (0, import_utils20.exec)(tag, element);
1538
1538
  if (tag === true)
1539
1539
  tag = key;
1540
- if ((0, import_utils21.isString)(tag)) {
1541
- const tagExists = (0, import_utils21.isValidHtmlTag)(tag);
1540
+ if ((0, import_utils20.isString)(tag)) {
1541
+ const tagExists = (0, import_utils20.isValidHtmlTag)(tag);
1542
1542
  if (tagExists)
1543
1543
  return tag;
1544
1544
  } else {
1545
- const isKeyATag = (0, import_utils21.isValidHtmlTag)(key);
1545
+ const isKeyATag = (0, import_utils20.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_utils21 = require_cjs();
1664
+ var import_utils20 = 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_utils21.isNot)("object"))
1669
+ if ((0, import_utils20.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_utils21.exec)(params[attr], element);
1673
+ const val = (0, import_utils20.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_utils21 = require_cjs();
1716
+ var import_utils20 = 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_utils21.exec)(param, element)}`;
1734
+ className += ` ${(0, import_utils20.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_utils21.isString)(params))
1745
+ if ((0, import_utils20.isString)(params))
1746
1746
  params = element.class = { default: params };
1747
- if ((0, import_utils21.isObject)(params))
1747
+ if ((0, import_utils20.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_utils21 = require_cjs();
1831
+ var import_utils20 = 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_utils21.isEqualDeep)(params, element.content)) {
1839
+ if (__contentRef && __contentRef.__cached && (0, import_utils20.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_utils21 = require_cjs();
1899
+ var import_utils20 = 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_utils21.isFunction)(__cached.content.remove))
1922
+ else if (__cached.content && (0, import_utils20.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_utils21 = require_cjs();
1967
+ var import_utils20 = 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_utils21.isObject)(params))
1971
+ if (!(0, import_utils20.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_utils21.exec)(params[dataset], element);
1975
+ node2.dataset[dataset] = (0, import_utils20.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_utils21 = require_cjs();
2009
+ var import_utils20 = require_cjs();
2010
2010
  var html_default = (param, element, node2) => {
2011
- const prop = (0, import_utils21.exec)(param, element);
2011
+ const prop = (0, import_utils20.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_utils21 = require_cjs();
2050
+ var import_utils20 = 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_utils21.isObject)(params))
2055
- (0, import_utils21.map)(node2.style, params, element);
2054
+ if ((0, import_utils20.isObject)(params))
2055
+ (0, import_utils20.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_utils21 = require_cjs();
2091
+ var import_utils20 = require_cjs();
2092
2092
  var asd = (param, element, node2) => {
2093
- const prop = (0, import_utils21.exec)(param, element);
2093
+ const prop = (0, import_utils20.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_utils21.exec)(param, element);
2108
- if ((0, import_utils21.isString)(prop) && prop.includes("{{")) {
2109
- prop = (0, import_utils21.replaceLiteralsWithObjectFields)(prop, element.state);
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);
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_utils21 = require_cjs();
2213
+ var import_utils20 = require_cjs();
2214
2214
  var import_ignore = require_ignore();
2215
2215
  var parse3 = function() {
2216
2216
  const state = this;
2217
- if ((0, import_utils21.isObject)(state)) {
2217
+ if ((0, import_utils20.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_utils21.isArray)(state)) {
2225
+ } else if ((0, import_utils20.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_utils21.isString)(stateKey)) {
2245
+ if ((0, import_utils20.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_utils21.isArray)(state)) {
2280
+ if ((0, import_utils20.isArray)(state)) {
2281
2281
  state.push(value2);
2282
2282
  state.update(state.parse(), { overwrite: "replace", ...options });
2283
- } else if ((0, import_utils21.isObject)(state)) {
2283
+ } else if ((0, import_utils20.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_utils21.isArray)(state))
2295
- (0, import_utils21.removeFromArray)(state, key);
2296
- if ((0, import_utils21.isObject)(state))
2297
- (0, import_utils21.removeFromObject)(state, key);
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);
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_utils21.isFunction)(func)) {
2306
+ if ((0, import_utils20.isFunction)(func)) {
2307
2307
  func(state);
2308
2308
  return state.update(state, { replace: true, ...options });
2309
2309
  }
@@ -2343,7 +2343,7 @@ var require_inherit = __commonJS({
2343
2343
  isState: () => isState2
2344
2344
  });
2345
2345
  module2.exports = __toCommonJS2(inherit_exports);
2346
- var import_utils21 = require_cjs();
2346
+ var import_utils20 = require_cjs();
2347
2347
  var import_ignore = require_ignore();
2348
2348
  var getParentStateInKey = (stateKey, parentState) => {
2349
2349
  if (!stateKey.includes("../"))
@@ -2397,9 +2397,9 @@ var require_inherit = __commonJS({
2397
2397
  const inheritedState = findInheritedState(element, parent);
2398
2398
  if (!inheritedState)
2399
2399
  return element.state;
2400
- if ((0, import_utils21.is)(inheritedState)("object", "array")) {
2401
- return (0, import_utils21.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2402
- } else if ((0, import_utils21.is)(inheritedState)("string", "number")) {
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")) {
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_utils21.isNot)(stateKey)("number", "string"))
2411
+ if (!stateKey || (0, import_utils20.isNot)(stateKey)("number", "string"))
2412
2412
  return false;
2413
2413
  return true;
2414
2414
  };
2415
2415
  var isState2 = function(state) {
2416
- if (!(0, import_utils21.isObjectLike)(state))
2416
+ if (!(0, import_utils20.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_utils21 = require_cjs();
2465
+ var import_utils20 = 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_utils21.merge)(options, STATE_UPDATE_OPTIONS);
2479
+ (0, import_utils20.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_utils21.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2509
+ (0, import_utils20.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2510
2510
  return;
2511
2511
  }
2512
- const overwriteFunc = shallow ? import_utils21.overwriteShallow : import_utils21.overwriteDeep;
2512
+ const overwriteFunc = shallow ? import_utils20.overwriteShallow : import_utils20.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_utils21 = require_cjs();
2603
+ var import_utils20 = 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_utils21.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2617
+ element.state = (0, import_utils20.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_utils21.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2636
+ const dependentState = (0, import_utils20.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2637
2637
  const newDepends = { [element.key]: dependentState };
2638
- ref.__depends = (0, import_utils21.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2638
+ ref.__depends = (0, import_utils20.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_utils21.isFunction)(state)) {
2643
+ if ((0, import_utils20.isFunction)(state)) {
2644
2644
  ref.__state = state;
2645
- return (0, import_utils21.exec)(state, element);
2646
- } else if ((0, import_utils21.is)(state)("string", "number")) {
2645
+ return (0, import_utils20.exec)(state, element);
2646
+ } else if ((0, import_utils20.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_utils21.isArray)(state)) {
2693
+ if ((0, import_utils20.isArray)(state)) {
2694
2694
  addProtoToArray(state, proto);
2695
2695
  } else {
2696
2696
  Object.setPrototypeOf(state, proto);
@@ -2758,16 +2758,16 @@ var require_state = __commonJS({
2758
2758
  });
2759
2759
  module2.exports = __toCommonJS2(state_exports);
2760
2760
  var import_state2 = require_cjs5();
2761
- var import_utils21 = require_cjs();
2761
+ var import_utils20 = require_cjs();
2762
2762
  var state = (params, element, node2) => {
2763
- const state2 = (0, import_utils21.exec)(params, element);
2764
- if ((0, import_utils21.isObject)(state2)) {
2763
+ const state2 = (0, import_utils20.exec)(params, element);
2764
+ if ((0, import_utils20.isObject)(state2)) {
2765
2765
  for (const param in state2) {
2766
2766
  if (import_state2.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_utils21.exec)(state2[param], element);
2770
+ element.state[param] = (0, import_utils20.exec)(state2[param], element);
2771
2771
  }
2772
2772
  }
2773
2773
  return element;
@@ -2970,7 +2970,7 @@ var require_methods2 = __commonJS({
2970
2970
  spotByPath: () => spotByPath
2971
2971
  });
2972
2972
  module2.exports = __toCommonJS2(methods_exports);
2973
- var import_utils21 = require_cjs();
2973
+ var import_utils20 = 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_utils21.isFunction)(element.node.remove))
3006
+ if ((0, import_utils20.isFunction)(element.node.remove))
3007
3007
  element.node.remove();
3008
- else if (!(0, import_utils21.isProduction)()) {
3008
+ else if (!(0, import_utils20.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_utils21.isFunction)(val && val.parse))
3048
+ if ((0, import_utils20.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_utils21.isDefined)(val))
3053
+ } else if ((0, import_utils20.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_utils21.isObjectLike)(obj[v])) {
3064
+ if ((0, import_utils20.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_utils21 = require_cjs();
3182
+ var import_utils20 = require_cjs();
3183
3183
  var objectizeStringProperty = (propValue) => {
3184
- if ((0, import_utils21.is)(propValue)("string", "number")) {
3184
+ if ((0, import_utils20.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_utils21.exec)(parent, parent.state).props;
3191
+ const parentProps = (0, import_utils20.exec)(parent, parent.state).props;
3192
3192
  const matchParent = parent.props && parentProps[element.key];
3193
- const matchParentIsString = (0, import_utils21.isString)(matchParent);
3193
+ const matchParentIsString = (0, import_utils20.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_utils21 = require_cjs();
3241
+ var import_utils20 = 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_utils21.isObject)(props4))
3247
+ if ((0, import_utils20.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_utils21.isArray)(__ref.__extend)) {
3253
+ if ((0, import_utils20.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_utils21.exec)(v, element);
3269
- if ((0, import_utils21.isObject)(execProps) && execProps.__element)
3268
+ const execProps = (0, import_utils20.exec)(v, element);
3269
+ if ((0, import_utils20.isObject)(execProps) && execProps.__element)
3270
3270
  return;
3271
- element.props = (0, import_utils21.deepMerge)(
3271
+ element.props = (0, import_utils20.deepMerge)(
3272
3272
  mergedProps,
3273
- (0, import_utils21.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3273
+ (0, import_utils20.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3274
3274
  import_ignore.IGNORE_PROPS_PARAMS
3275
3275
  );
3276
3276
  });
@@ -3402,11 +3402,11 @@ var require_object2 = __commonJS({
3402
3402
  overwriteShallow: () => overwriteShallow2
3403
3403
  });
3404
3404
  module2.exports = __toCommonJS2(object_exports);
3405
- var import_utils21 = require_cjs();
3405
+ var import_utils20 = require_cjs();
3406
3406
  var import_state2 = require_cjs5();
3407
3407
  var import_props = require_props();
3408
3408
  var import_methods = require_methods2();
3409
- var METHODS_EXL = (0, import_utils21.joinArrays)(
3409
+ var METHODS_EXL = (0, import_utils20.joinArrays)(
3410
3410
  ["node", "state", "context", "extend"],
3411
3411
  import_methods.METHODS,
3412
3412
  import_state2.IGNORE_STATE_PARAMS,
@@ -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_utils21.isObjectLike)(elementProp) && (0, import_utils21.isObject)(extendProp)) {
3423
+ } else if ((0, import_utils20.isObjectLike)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3424
3424
  deepMerge4(elementProp, extendProp);
3425
3425
  }
3426
3426
  }
@@ -3436,15 +3436,15 @@ var require_object2 = __commonJS({
3436
3436
  return o;
3437
3437
  };
3438
3438
  var deepClone3 = (obj, exclude = METHODS_EXL) => {
3439
- const o = (0, import_utils21.isArray)(obj) ? [] : {};
3439
+ const o = (0, import_utils20.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_utils21.isArray)(objProp)) {
3444
+ if (e === "extend" && (0, import_utils20.isArray)(objProp)) {
3445
3445
  objProp = mergeArray(objProp, exclude);
3446
3446
  }
3447
- if ((0, import_utils21.isObjectLike)(objProp)) {
3447
+ if ((0, import_utils20.isObjectLike)(objProp)) {
3448
3448
  o[e] = deepClone3(objProp, exclude);
3449
3449
  } else
3450
3450
  o[e] = objProp;
@@ -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_utils21.isObjectLike)(objProp) && (0, import_utils21.isObjectLike)(paramsProp)) {
3486
+ if ((0, import_utils20.isObjectLike)(objProp) && (0, import_utils20.isObjectLike)(paramsProp)) {
3487
3487
  overwriteDeep(objProp, paramsProp);
3488
3488
  } else if (paramsProp !== void 0) {
3489
3489
  obj[e] = paramsProp;
@@ -3492,7 +3492,7 @@ var require_object2 = __commonJS({
3492
3492
  return obj;
3493
3493
  };
3494
3494
  var mergeIfExisted = (a, b) => {
3495
- if ((0, import_utils21.isObjectLike)(a) && (0, import_utils21.isObjectLike)(b))
3495
+ if ((0, import_utils20.isObjectLike)(a) && (0, import_utils20.isObjectLike)(b))
3496
3496
  return deepMerge4(a, b);
3497
3497
  return a || b;
3498
3498
  };
@@ -3500,7 +3500,7 @@ var require_object2 = __commonJS({
3500
3500
  return arr.reduce((a, c) => deepMerge4(a, deepClone3(c, exclude)), {});
3501
3501
  };
3502
3502
  var mergeAndCloneIfArray = (obj) => {
3503
- return (0, import_utils21.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
3503
+ return (0, import_utils20.isArray)(obj) ? mergeArray(obj) : deepClone3(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_utils21 = require_cjs();
3559
+ var import_utils20 = 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_utils21.isString)(extend)) {
3569
+ if (!(0, import_utils20.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_utils21.isArray)(extend))
3595
+ if ((0, import_utils20.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_utils21.isObject)(objProp)) {
3608
+ if ((0, import_utils20.isObject)(objProp)) {
3609
3609
  o[prop] = deepCloneExtend(objProp);
3610
- } else if ((0, import_utils21.isArray)(objProp)) {
3610
+ } else if ((0, import_utils20.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_utils21.isObject)(elementProp) && (0, import_utils21.isObject)(extendProp)) {
3625
+ } else if ((0, import_utils20.isObject)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3626
3626
  deepMergeExtend(elementProp, extendProp);
3627
- } else if ((0, import_utils21.isArray)(elementProp) && (0, import_utils21.isArray)(extendProp)) {
3627
+ } else if ((0, import_utils20.isArray)(elementProp) && (0, import_utils20.isArray)(extendProp)) {
3628
3628
  element[e] = elementProp.concat(extendProp);
3629
- } else if ((0, import_utils21.isArray)(elementProp) && (0, import_utils21.isObject)(extendProp)) {
3629
+ } else if ((0, import_utils20.isArray)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3630
3630
  const obj = deepMergeExtend({}, elementProp);
3631
3631
  element[e] = deepMergeExtend(obj, extendProp);
3632
- } else if (elementProp === void 0 && (0, import_utils21.isFunction)(extendProp)) {
3632
+ } else if (elementProp === void 0 && (0, import_utils20.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_utils21.isString)(extend)) {
3645
+ if ((0, import_utils20.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_utils21.isString)(v)) {
3677
+ if ((0, import_utils20.isString)(v)) {
3678
3678
  const component = COMPONENTS[v];
3679
3679
  return component;
3680
3680
  }
3681
- if ((0, import_utils21.isString)(v.extend)) {
3681
+ if ((0, import_utils20.isString)(v.extend)) {
3682
3682
  v.extend = COMPONENTS[v.extend];
3683
3683
  return { ...getExtendMerged(v.extend), ...v };
3684
3684
  }
@@ -3714,12 +3714,12 @@ var require_extend = __commonJS({
3714
3714
  applyExtend: () => applyExtend
3715
3715
  });
3716
3716
  module2.exports = __toCommonJS2(extend_exports);
3717
- var import_utils21 = require_cjs();
3717
+ var import_utils20 = require_cjs();
3718
3718
  var import_utils22 = require_utils();
3719
3719
  var ENV2 = "development";
3720
3720
  var applyExtend = (element, parent, options = {}) => {
3721
- if ((0, import_utils21.isFunction)(element))
3722
- element = (0, import_utils21.exec)(element, parent);
3721
+ if ((0, import_utils20.isFunction)(element))
3722
+ element = (0, import_utils20.exec)(element, parent);
3723
3723
  let { extend, props: props4, context, __ref } = element;
3724
3724
  extend = (0, import_utils22.fallbackStringExtend)(extend, context, options);
3725
3725
  const extendStack = (0, import_utils22.getExtendStack)(extend);
@@ -3763,7 +3763,7 @@ var require_extend = __commonJS({
3763
3763
  const findAndReplaceStrings = (0, import_utils22.replaceStringsWithComponents)(stack, context, options);
3764
3764
  let mergedExtend = (0, import_utils22.cloneAndMergeArrayExtend)(findAndReplaceStrings);
3765
3765
  const COMPONENTS = context && context.components || options.components;
3766
- const component = (0, import_utils21.exec)(element.component || mergedExtend.component, element);
3766
+ const component = (0, import_utils20.exec)(element.component || mergedExtend.component, element);
3767
3767
  if (component && COMPONENTS && COMPONENTS[component]) {
3768
3768
  const componentExtend = (0, import_utils22.cloneAndMergeArrayExtend)((0, import_utils22.getExtendStack)(COMPONENTS[component]));
3769
3769
  mergedExtend = (0, import_utils22.deepMergeExtend)(componentExtend, mergedExtend);
@@ -3807,11 +3807,11 @@ var require_component = __commonJS({
3807
3807
  overwriteVariant: () => overwriteVariant
3808
3808
  });
3809
3809
  module2.exports = __toCommonJS2(component_exports);
3810
- var import_utils21 = require_cjs();
3810
+ var import_utils20 = require_cjs();
3811
3811
  var import_extend = require_extend();
3812
3812
  var ENV2 = "development";
3813
3813
  var checkIfKeyIsComponent = (key) => {
3814
- const isFirstKeyString = (0, import_utils21.isString)(key);
3814
+ const isFirstKeyString = (0, import_utils20.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_utils21.isArray)(extend) ? extend : [extend];
3822
+ const preserveExtend = (0, import_utils20.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_utils21.isFunction)(element)) {
3845
+ } else if ((0, import_utils20.isFunction)(element)) {
3846
3846
  return {
3847
3847
  extend: extendKey,
3848
- props: { ...(0, import_utils21.exec)(element, parent) }
3848
+ props: { ...(0, import_utils20.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_utils21.exec)(extend, element);
3862
- if ((0, import_utils21.isString)(execExtend)) {
3861
+ const execExtend = (0, import_utils20.exec)(extend, element);
3862
+ if ((0, import_utils20.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_utils21.isString)(param))
3875
+ if (!(0, import_utils20.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_utils21.isObject)(props4) && (0, import_utils21.isString)(props4.variant))
3882
+ if ((0, import_utils20.isObject)(props4) && (0, import_utils20.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_utils21.isObject)(variantProps) ? variantProps : {};
3890
- if ((0, import_utils21.isString)(variantElement)) {
3889
+ const props4 = (0, import_utils20.isObject)(variantProps) ? variantProps : {};
3890
+ if ((0, import_utils20.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_utils21.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3897
+ return (0, import_utils20.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3898
3898
  };
3899
3899
  var applyVariant = (element) => {
3900
3900
  const { props: props4 } = element;
@@ -3969,7 +3969,7 @@ var require_iterate = __commonJS({
3969
3969
  throughUpdatedExec: () => throughUpdatedExec
3970
3970
  });
3971
3971
  module2.exports = __toCommonJS2(iterate_exports);
3972
- var import_utils21 = require_cjs();
3972
+ var import_utils20 = require_cjs();
3973
3973
  var import_utils22 = require_utils();
3974
3974
  var import_methods = require_methods2();
3975
3975
  var throughInitialExec = (element, exclude = {}) => {
@@ -3978,7 +3978,7 @@ var require_iterate = __commonJS({
3978
3978
  if (exclude[param])
3979
3979
  continue;
3980
3980
  const prop = element[param];
3981
- if ((0, import_utils21.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
3981
+ if ((0, import_utils20.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
3982
3982
  ref.__exec[param] = prop;
3983
3983
  element[param] = prop(element, element.state);
3984
3984
  }
@@ -3993,7 +3993,7 @@ 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_utils21.isString)(newExec) || (0, import_utils21.isNumber)(newExec);
3996
+ const execReturnsString = (0, import_utils20.isString)(newExec) || (0, import_utils20.isNumber)(newExec);
3997
3997
  if (prop && prop.node && execReturnsString) {
3998
3998
  (0, import_utils22.overwrite)(prop, { text: newExec }, options);
3999
3999
  } else if (newExec !== prop) {
@@ -4011,16 +4011,16 @@ var require_iterate = __commonJS({
4011
4011
  var throughInitialDefine = (element) => {
4012
4012
  const { define, context, __ref: ref } = element;
4013
4013
  let defineObj = {};
4014
- const hasGlobalDefine = context && (0, import_utils21.isObject)(context.define);
4015
- if ((0, import_utils21.isObject)(define))
4014
+ const hasGlobalDefine = context && (0, import_utils20.isObject)(context.define);
4015
+ if ((0, import_utils20.isObject)(define))
4016
4016
  defineObj = { ...define };
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_utils21.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
4021
+ if ((0, import_utils20.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
4022
4022
  ref.__exec[param] = elementProp;
4023
- const execParam2 = elementProp = (0, import_utils21.exec)(elementProp, element);
4023
+ const execParam2 = elementProp = (0, import_utils20.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, __ref: ref } = element;
4037
4037
  const changes = {};
4038
4038
  let obj = {};
4039
- if ((0, import_utils21.isObject)(define))
4039
+ if ((0, import_utils20.isObject)(define))
4040
4040
  obj = { ...define };
4041
- if ((0, import_utils21.isObject)(context && context.define))
4041
+ if ((0, import_utils20.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_utils21.exec)(ref.__defineCache[param], element);
4047
+ const cached = (0, import_utils20.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_utils21 = require_cjs();
4083
+ var import_utils20 = 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_utils21.isFunction)(isGlobalTransformer)) {
4096
+ if ((0, import_utils20.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_utils21 = require_cjs();
4143
+ var import_utils20 = require_cjs();
4144
4144
  var import_event = require_cjs3();
4145
4145
  var import_render = require_cjs4();
4146
4146
  var import_methods = require_methods2();
@@ -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_utils21.isFunction)(node2.setAttribute))
4168
+ if ((0, import_utils20.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_utils21.isObject)(element.on))
4174
+ if (isNewNode && (0, import_utils20.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_utils21.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils22.isVariant)(param) || (0, import_utils21.isObject)(import_mixins.registry[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]))
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_utils21.exec)(prop, element), element, param, options);
4184
+ (0, import_create.default)((0, import_utils20.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_utils21 = require_cjs();
4221
+ var import_utils20 = 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_utils21.exec)(element.text, element, state)
4242
+ text: (0, import_utils20.exec)(element.text, element, state)
4243
4243
  };
4244
4244
  },
4245
4245
  innerHTML: {},
@@ -4476,7 +4476,7 @@ var require_update2 = __commonJS({
4476
4476
  default: () => update_default
4477
4477
  });
4478
4478
  module2.exports = __toCommonJS2(update_exports);
4479
- var import_utils21 = require_cjs();
4479
+ var import_utils20 = require_cjs();
4480
4480
  var import_event = require_cjs3();
4481
4481
  var import_methods = require_methods2();
4482
4482
  var import_props = require_props();
@@ -4488,7 +4488,7 @@ var require_update2 = __commonJS({
4488
4488
  var import_applyParam = require_applyParam();
4489
4489
  var import_options3 = __toESM2(require_options(), 1);
4490
4490
  var snapshot = {
4491
- snapshotId: import_utils21.createSnapshotId
4491
+ snapshotId: import_utils20.createSnapshotId
4492
4492
  };
4493
4493
  var UPDATE_DEFAULT_OPTIONS = {
4494
4494
  stackChanges: false,
@@ -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_utils21.merge)(options, UPDATE_DEFAULT_OPTIONS);
4508
+ (0, import_utils20.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_utils21.isString)(params) || (0, import_utils21.isNumber)(params)) {
4515
+ if ((0, import_utils20.isString)(params) || (0, import_utils20.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_utils21.isFunction)(v));
4526
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils20.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_utils21.overwriteDeep)(element, params, import_utils22.METHODS_EXL);
4539
+ const overwriteChanges = (0, import_utils20.overwriteDeep)(element, params, import_utils22.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_utils21.merge)(definedChanges, (0, import_utils21.merge)(execChanges, overwriteChanges));
4543
+ const stackChanges = (0, import_utils20.merge)(definedChanges, (0, import_utils20.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_utils21.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4555
- const isInPreventDefineUpdate = (0, import_utils21.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4556
- if ((0, import_utils21.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_utils21.isObject)(import_mixins.registry[param]) || (0, import_utils22.isVariant)(param))
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))
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_utils21.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4563
+ const canUpdate = (0, import_utils20.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_utils21.window.requestAnimationFrame(() => childUpdateCall());
4572
+ import_utils20.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_utils21.isFunction)(element.if) || !element.state || !parent)
4596
+ if (!(0, import_utils20.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_utils21.isFunction)(element.on.update)) {
4613
+ if (options.preventUpdate !== true && element.on && (0, import_utils20.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_utils21.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4634
+ const shouldForceStateUpdate = (0, import_utils20.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4635
4635
  if (shouldForceStateUpdate) {
4636
- const execState = (0, import_utils21.exec)(stateKey, element);
4636
+ const execState = (0, import_utils20.exec)(stateKey, element);
4637
4637
  state.set(execState, {
4638
4638
  ...options,
4639
4639
  preventUpdate: true
@@ -4705,7 +4705,7 @@ var require_set2 = __commonJS({
4705
4705
  addMethods: () => addMethods
4706
4706
  });
4707
4707
  module2.exports = __toCommonJS2(set_exports);
4708
- var import_utils21 = require_cjs();
4708
+ var import_utils20 = 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_utils21.isDevelopment)())
4729
+ if ((0, import_utils20.isDevelopment)())
4730
4730
  proto.log = import__.log.bind(element);
4731
4731
  Object.setPrototypeOf(element, proto);
4732
4732
  };
@@ -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_utils21 = require_cjs();
4785
+ var import_utils20 = 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_utils21.deepClone)(element.props, []);
4798
+ ref.__initialProps = (0, import_utils20.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);
@@ -4830,7 +4830,7 @@ var require_create4 = __commonJS({
4830
4830
  }
4831
4831
  return {};
4832
4832
  }
4833
- if ((0, import_utils21.isString)(key) && key.slice(0, 2 === "__")) {
4833
+ if ((0, import_utils20.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_utils21.isNode)(parent)) {
4860
+ if ((0, import_utils20.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_utils21.generateKey)()).toString();
4874
+ return (key || element.key || (0, import_utils20.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_utils21.is)(element)("string", "number");
4904
+ return (0, import_utils20.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_utils21.isFunction)(element.if)) {
4923
+ if ((0, import_utils20.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" });
@@ -4989,7 +4989,7 @@ var require_create4 = __commonJS({
4989
4989
  (0, import_set.addMethods)(element, parent);
4990
4990
  (0, import_state2.createState)(element, parent);
4991
4991
  const ref = __ref;
4992
- if ((0, import_utils21.isFunction)(element.if)) {
4992
+ if ((0, import_utils20.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_utils21.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils21.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
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))
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_utils21.exec)(element[k], element), element, k, options);
5019
+ create2((0, import_utils20.exec)(element[k], element), element, k, options);
5020
5020
  }
5021
5021
  }
5022
5022
  }
@@ -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_utils21 = __toESM2(require_cjs22(), 1);
6540
+ var import_utils20 = __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_utils21.isString)(rgb))
6668
+ if ((0, import_utils20.isString)(rgb))
6669
6669
  rgb = rgb.split(", ").map((v) => parseFloat(v));
6670
- if ((0, import_utils21.isNumber)(tone))
6670
+ if ((0, import_utils20.isNumber)(tone))
6671
6671
  tone += "";
6672
6672
  const toHex = rgbArrayToHex(rgb);
6673
6673
  const abs2 = tone.slice(0, 1);
@@ -8157,8 +8157,8 @@ var require_cjs10 = __commonJS({
8157
8157
  router: () => router2
8158
8158
  });
8159
8159
  module2.exports = __toCommonJS2(router_exports);
8160
- var import_utils21 = require_cjs();
8161
- var getActiveRoute = (level = 0, route = import_utils21.window.location.pathname) => {
8160
+ var import_utils20 = require_cjs();
8161
+ var getActiveRoute = (level = 0, route = import_utils20.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_utils21.document && import_utils21.document.documentElement,
8175
+ scrollNode: import_utils20.document && import_utils20.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_utils21.window.location.hash.slice(1);
8190
+ const hashChanged = hash2 && hash2 !== import_utils20.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_utils21.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8196
+ import_utils20.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_utils21.document.getElementById(hash2);
8222
+ const activeNode = import_utils20.document.getElementById(hash2);
8223
8223
  if (activeNode) {
8224
8224
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
8225
8225
  scrollNode.scrollTo({
@@ -8380,7 +8380,7 @@ __export(src_exports, {
8380
8380
  });
8381
8381
  module.exports = __toCommonJS(src_exports);
8382
8382
  var import_domql = __toESM(require_cjs8(), 1);
8383
- var import_utils20 = __toESM(require_cjs(), 1);
8383
+ var import_utils19 = __toESM(require_cjs(), 1);
8384
8384
 
8385
8385
  // src/utilImports.js
8386
8386
  var utilImports_exports = {};
@@ -9320,7 +9320,7 @@ var createCache = function createCache2(options) {
9320
9320
  return cache2;
9321
9321
  };
9322
9322
 
9323
- // ../emotion/node_modules/@emotion/hash/dist/emotion-hash.esm.js
9323
+ // ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
9324
9324
  function murmur2(str) {
9325
9325
  var h = 0;
9326
9326
  var k, i2 = 0, len = str.length;
@@ -9350,7 +9350,7 @@ function murmur2(str) {
9350
9350
  return ((h ^ h >>> 15) >>> 0).toString(36);
9351
9351
  }
9352
9352
 
9353
- // ../emotion/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
9353
+ // ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
9354
9354
  var unitlessKeys = {
9355
9355
  animationIterationCount: 1,
9356
9356
  aspectRatio: 1,
@@ -9401,7 +9401,7 @@ var unitlessKeys = {
9401
9401
  strokeWidth: 1
9402
9402
  };
9403
9403
 
9404
- // ../emotion/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
9404
+ // ../../node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
9405
9405
  var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
9406
9406
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
9407
9407
  You can read more about this here:
@@ -9446,7 +9446,7 @@ if (true) {
9446
9446
  msPattern = /^-ms-/;
9447
9447
  hyphenPattern = /-(.)/g;
9448
9448
  hyphenatedCache = {};
9449
- processStyleValue = function processStyleValue5(key, value2) {
9449
+ processStyleValue = function processStyleValue3(key, value2) {
9450
9450
  if (key === "content") {
9451
9451
  if (typeof value2 !== "string" || contentValues.indexOf(value2) === -1 && !contentValuePattern.test(value2) && (value2.charAt(0) !== value2.charAt(value2.length - 1) || value2.charAt(0) !== '"' && value2.charAt(0) !== "'")) {
9452
9452
  throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value2 + "\"'`");
@@ -9654,7 +9654,7 @@ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
9654
9654
  };
9655
9655
  };
9656
9656
 
9657
- // ../emotion/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
9657
+ // ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
9658
9658
  var isBrowser = true;
9659
9659
  function getRegisteredStyles(registered, registeredStyles, classNames) {
9660
9660
  var rawClassName = "";
@@ -9696,7 +9696,7 @@ var insertStyles = function insertStyles2(cache2, serialized, isStringTag) {
9696
9696
  }
9697
9697
  };
9698
9698
 
9699
- // ../emotion/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
9699
+ // ../../node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
9700
9700
  function insertWithoutScoping(cache2, serialized) {
9701
9701
  if (cache2.inserted[serialized.name] === void 0) {
9702
9702
  return cache2.insert("", serialized, cache2.sheet, true);
@@ -15298,7 +15298,7 @@ var fetchAsync = (app, key, options, callback) => {
15298
15298
  };
15299
15299
 
15300
15300
  // ../../node_modules/@domql/emotion/index.js
15301
- var import_utils17 = __toESM(require_cjs());
15301
+ var import_utils16 = __toESM(require_cjs());
15302
15302
 
15303
15303
  // ../../node_modules/@domql/classlist/index.js
15304
15304
  var import_utils15 = __toESM(require_cjs());
@@ -15337,502 +15337,12 @@ var applyClassListOnNode = (params, element, node2) => {
15337
15337
  return className;
15338
15338
  };
15339
15339
 
15340
- // ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
15341
- function murmur22(str) {
15342
- var h = 0;
15343
- var k, i2 = 0, len = str.length;
15344
- for (; len >= 4; ++i2, len -= 4) {
15345
- k = str.charCodeAt(i2) & 255 | (str.charCodeAt(++i2) & 255) << 8 | (str.charCodeAt(++i2) & 255) << 16 | (str.charCodeAt(++i2) & 255) << 24;
15346
- k = /* Math.imul(k, m): */
15347
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
15348
- k ^= /* k >>> r: */
15349
- k >>> 24;
15350
- h = /* Math.imul(k, m): */
15351
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
15352
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
15353
- }
15354
- switch (len) {
15355
- case 3:
15356
- h ^= (str.charCodeAt(i2 + 2) & 255) << 16;
15357
- case 2:
15358
- h ^= (str.charCodeAt(i2 + 1) & 255) << 8;
15359
- case 1:
15360
- h ^= str.charCodeAt(i2) & 255;
15361
- h = /* Math.imul(h, m): */
15362
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
15363
- }
15364
- h ^= h >>> 13;
15365
- h = /* Math.imul(h, m): */
15366
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
15367
- return ((h ^ h >>> 15) >>> 0).toString(36);
15368
- }
15369
-
15370
- // ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
15371
- var unitlessKeys2 = {
15372
- animationIterationCount: 1,
15373
- aspectRatio: 1,
15374
- borderImageOutset: 1,
15375
- borderImageSlice: 1,
15376
- borderImageWidth: 1,
15377
- boxFlex: 1,
15378
- boxFlexGroup: 1,
15379
- boxOrdinalGroup: 1,
15380
- columnCount: 1,
15381
- columns: 1,
15382
- flex: 1,
15383
- flexGrow: 1,
15384
- flexPositive: 1,
15385
- flexShrink: 1,
15386
- flexNegative: 1,
15387
- flexOrder: 1,
15388
- gridRow: 1,
15389
- gridRowEnd: 1,
15390
- gridRowSpan: 1,
15391
- gridRowStart: 1,
15392
- gridColumn: 1,
15393
- gridColumnEnd: 1,
15394
- gridColumnSpan: 1,
15395
- gridColumnStart: 1,
15396
- msGridRow: 1,
15397
- msGridRowSpan: 1,
15398
- msGridColumn: 1,
15399
- msGridColumnSpan: 1,
15400
- fontWeight: 1,
15401
- lineHeight: 1,
15402
- opacity: 1,
15403
- order: 1,
15404
- orphans: 1,
15405
- tabSize: 1,
15406
- widows: 1,
15407
- zIndex: 1,
15408
- zoom: 1,
15409
- WebkitLineClamp: 1,
15410
- // SVG-related properties
15411
- fillOpacity: 1,
15412
- floodOpacity: 1,
15413
- stopOpacity: 1,
15414
- strokeDasharray: 1,
15415
- strokeDashoffset: 1,
15416
- strokeMiterlimit: 1,
15417
- strokeOpacity: 1,
15418
- strokeWidth: 1
15419
- };
15420
-
15421
- // ../../node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
15422
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR2 = `You have illegal escape sequence in your template literal, most likely inside content's property value.
15423
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
15424
- You can read more about this here:
15425
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
15426
- var UNDEFINED_AS_OBJECT_KEY_ERROR2 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
15427
- var hyphenateRegex2 = /[A-Z]|^ms/g;
15428
- var animationRegex2 = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
15429
- var isCustomProperty3 = function isCustomProperty4(property) {
15430
- return property.charCodeAt(1) === 45;
15431
- };
15432
- var isProcessableValue3 = function isProcessableValue4(value2) {
15433
- return value2 != null && typeof value2 !== "boolean";
15434
- };
15435
- var processStyleName2 = /* @__PURE__ */ memoize(function(styleName) {
15436
- return isCustomProperty3(styleName) ? styleName : styleName.replace(hyphenateRegex2, "-$&").toLowerCase();
15437
- });
15438
- var processStyleValue3 = function processStyleValue4(key, value2) {
15439
- switch (key) {
15440
- case "animation":
15441
- case "animationName": {
15442
- if (typeof value2 === "string") {
15443
- return value2.replace(animationRegex2, function(match2, p1, p2) {
15444
- cursor2 = {
15445
- name: p1,
15446
- styles: p2,
15447
- next: cursor2
15448
- };
15449
- return p1;
15450
- });
15451
- }
15452
- }
15453
- }
15454
- if (unitlessKeys2[key] !== 1 && !isCustomProperty3(key) && typeof value2 === "number" && value2 !== 0) {
15455
- return value2 + "px";
15456
- }
15457
- return value2;
15458
- };
15459
- if (true) {
15460
- contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
15461
- contentValues = ["normal", "none", "initial", "inherit", "unset"];
15462
- oldProcessStyleValue = processStyleValue3;
15463
- msPattern = /^-ms-/;
15464
- hyphenPattern = /-(.)/g;
15465
- hyphenatedCache = {};
15466
- processStyleValue3 = function processStyleValue5(key, value2) {
15467
- if (key === "content") {
15468
- if (typeof value2 !== "string" || contentValues.indexOf(value2) === -1 && !contentValuePattern.test(value2) && (value2.charAt(0) !== value2.charAt(value2.length - 1) || value2.charAt(0) !== '"' && value2.charAt(0) !== "'")) {
15469
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value2 + "\"'`");
15470
- }
15471
- }
15472
- var processed = oldProcessStyleValue(key, value2);
15473
- if (processed !== "" && !isCustomProperty3(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
15474
- hyphenatedCache[key] = true;
15475
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
15476
- return _char.toUpperCase();
15477
- }) + "?");
15478
- }
15479
- return processed;
15480
- };
15481
- }
15482
- var contentValuePattern;
15483
- var contentValues;
15484
- var oldProcessStyleValue;
15485
- var msPattern;
15486
- var hyphenPattern;
15487
- var hyphenatedCache;
15488
- var noComponentSelectorMessage2 = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
15489
- function handleInterpolation2(mergedProps, registered, interpolation) {
15490
- if (interpolation == null) {
15491
- return "";
15492
- }
15493
- if (interpolation.__emotion_styles !== void 0) {
15494
- if (interpolation.toString() === "NO_COMPONENT_SELECTOR") {
15495
- throw new Error(noComponentSelectorMessage2);
15496
- }
15497
- return interpolation;
15498
- }
15499
- switch (typeof interpolation) {
15500
- case "boolean": {
15501
- return "";
15502
- }
15503
- case "object": {
15504
- if (interpolation.anim === 1) {
15505
- cursor2 = {
15506
- name: interpolation.name,
15507
- styles: interpolation.styles,
15508
- next: cursor2
15509
- };
15510
- return interpolation.name;
15511
- }
15512
- if (interpolation.styles !== void 0) {
15513
- var next2 = interpolation.next;
15514
- if (next2 !== void 0) {
15515
- while (next2 !== void 0) {
15516
- cursor2 = {
15517
- name: next2.name,
15518
- styles: next2.styles,
15519
- next: cursor2
15520
- };
15521
- next2 = next2.next;
15522
- }
15523
- }
15524
- var styles = interpolation.styles + ";";
15525
- if (interpolation.map !== void 0) {
15526
- styles += interpolation.map;
15527
- }
15528
- return styles;
15529
- }
15530
- return createStringFromObject2(mergedProps, registered, interpolation);
15531
- }
15532
- case "function": {
15533
- if (mergedProps !== void 0) {
15534
- var previousCursor = cursor2;
15535
- var result = interpolation(mergedProps);
15536
- cursor2 = previousCursor;
15537
- return handleInterpolation2(mergedProps, registered, result);
15538
- } else if (true) {
15539
- console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
15540
- }
15541
- break;
15542
- }
15543
- case "string":
15544
- if (true) {
15545
- var matched = [];
15546
- var replaced = interpolation.replace(animationRegex2, function(match2, p1, p2) {
15547
- var fakeVarName = "animation" + matched.length;
15548
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
15549
- return "${" + fakeVarName + "}";
15550
- });
15551
- if (matched.length) {
15552
- console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
15553
- }
15554
- }
15555
- break;
15556
- }
15557
- if (registered == null) {
15558
- return interpolation;
15559
- }
15560
- var cached = registered[interpolation];
15561
- return cached !== void 0 ? cached : interpolation;
15562
- }
15563
- function createStringFromObject2(mergedProps, registered, obj) {
15564
- var string = "";
15565
- if (Array.isArray(obj)) {
15566
- for (var i2 = 0; i2 < obj.length; i2++) {
15567
- string += handleInterpolation2(mergedProps, registered, obj[i2]) + ";";
15568
- }
15569
- } else {
15570
- for (var _key in obj) {
15571
- var value2 = obj[_key];
15572
- if (typeof value2 !== "object") {
15573
- if (registered != null && registered[value2] !== void 0) {
15574
- string += _key + "{" + registered[value2] + "}";
15575
- } else if (isProcessableValue3(value2)) {
15576
- string += processStyleName2(_key) + ":" + processStyleValue3(_key, value2) + ";";
15577
- }
15578
- } else {
15579
- if (_key === "NO_COMPONENT_SELECTOR" && true) {
15580
- throw new Error(noComponentSelectorMessage2);
15581
- }
15582
- if (Array.isArray(value2) && typeof value2[0] === "string" && (registered == null || registered[value2[0]] === void 0)) {
15583
- for (var _i = 0; _i < value2.length; _i++) {
15584
- if (isProcessableValue3(value2[_i])) {
15585
- string += processStyleName2(_key) + ":" + processStyleValue3(_key, value2[_i]) + ";";
15586
- }
15587
- }
15588
- } else {
15589
- var interpolated = handleInterpolation2(mergedProps, registered, value2);
15590
- switch (_key) {
15591
- case "animation":
15592
- case "animationName": {
15593
- string += processStyleName2(_key) + ":" + interpolated + ";";
15594
- break;
15595
- }
15596
- default: {
15597
- if (_key === "undefined") {
15598
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR2);
15599
- }
15600
- string += _key + "{" + interpolated + "}";
15601
- }
15602
- }
15603
- }
15604
- }
15605
- }
15606
- }
15607
- return string;
15608
- }
15609
- var labelPattern2 = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
15610
- var sourceMapPattern2;
15611
- if (true) {
15612
- sourceMapPattern2 = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
15613
- }
15614
- var cursor2;
15615
- var serializeStyles3 = function serializeStyles4(args, registered, mergedProps) {
15616
- if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
15617
- return args[0];
15618
- }
15619
- var stringMode = true;
15620
- var styles = "";
15621
- cursor2 = void 0;
15622
- var strings = args[0];
15623
- if (strings == null || strings.raw === void 0) {
15624
- stringMode = false;
15625
- styles += handleInterpolation2(mergedProps, registered, strings);
15626
- } else {
15627
- if (strings[0] === void 0) {
15628
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
15629
- }
15630
- styles += strings[0];
15631
- }
15632
- for (var i2 = 1; i2 < args.length; i2++) {
15633
- styles += handleInterpolation2(mergedProps, registered, args[i2]);
15634
- if (stringMode) {
15635
- if (strings[i2] === void 0) {
15636
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2);
15637
- }
15638
- styles += strings[i2];
15639
- }
15640
- }
15641
- var sourceMap;
15642
- if (true) {
15643
- styles = styles.replace(sourceMapPattern2, function(match3) {
15644
- sourceMap = match3;
15645
- return "";
15646
- });
15647
- }
15648
- labelPattern2.lastIndex = 0;
15649
- var identifierName = "";
15650
- var match2;
15651
- while ((match2 = labelPattern2.exec(styles)) !== null) {
15652
- identifierName += "-" + // $FlowFixMe we know it's not null
15653
- match2[1];
15654
- }
15655
- var name = murmur22(styles) + identifierName;
15656
- if (true) {
15657
- return {
15658
- name,
15659
- styles,
15660
- map: sourceMap,
15661
- next: cursor2,
15662
- toString: function toString2() {
15663
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
15664
- }
15665
- };
15666
- }
15667
- return {
15668
- name,
15669
- styles,
15670
- next: cursor2
15671
- };
15672
- };
15673
-
15674
- // ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
15675
- var isBrowser2 = true;
15676
- function getRegisteredStyles2(registered, registeredStyles, classNames) {
15677
- var rawClassName = "";
15678
- classNames.split(" ").forEach(function(className) {
15679
- if (registered[className] !== void 0) {
15680
- registeredStyles.push(registered[className] + ";");
15681
- } else {
15682
- rawClassName += className + " ";
15683
- }
15684
- });
15685
- return rawClassName;
15686
- }
15687
- var registerStyles3 = function registerStyles4(cache2, serialized, isStringTag) {
15688
- var className = cache2.key + "-" + serialized.name;
15689
- if (
15690
- // we only need to add the styles to the registered cache if the
15691
- // class name could be used further down
15692
- // the tree but if it's a string tag, we know it won't
15693
- // so we don't have to add it to registered cache.
15694
- // this improves memory usage since we can avoid storing the whole style string
15695
- (isStringTag === false || // we need to always store it if we're in compat mode and
15696
- // in node since emotion-server relies on whether a style is in
15697
- // the registered cache to know whether a style is global or not
15698
- // also, note that this check will be dead code eliminated in the browser
15699
- isBrowser2 === false) && cache2.registered[className] === void 0
15700
- ) {
15701
- cache2.registered[className] = serialized.styles;
15702
- }
15703
- };
15704
- var insertStyles3 = function insertStyles4(cache2, serialized, isStringTag) {
15705
- registerStyles3(cache2, serialized, isStringTag);
15706
- var className = cache2.key + "-" + serialized.name;
15707
- if (cache2.inserted[serialized.name] === void 0) {
15708
- var current = serialized;
15709
- do {
15710
- cache2.insert(serialized === current ? "." + className : "", current, cache2.sheet, true);
15711
- current = current.next;
15712
- } while (current !== void 0);
15713
- }
15714
- };
15715
-
15716
- // ../../node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
15717
- function insertWithoutScoping2(cache2, serialized) {
15718
- if (cache2.inserted[serialized.name] === void 0) {
15719
- return cache2.insert("", serialized, cache2.sheet, true);
15720
- }
15721
- }
15722
- function merge4(registered, css, className) {
15723
- var registeredStyles = [];
15724
- var rawClassName = getRegisteredStyles2(registered, registeredStyles, className);
15725
- if (registeredStyles.length < 2) {
15726
- return className;
15727
- }
15728
- return rawClassName + css(registeredStyles);
15729
- }
15730
- var createEmotion4 = function createEmotion5(options) {
15731
- var cache2 = createCache(options);
15732
- cache2.sheet.speedy = function(value2) {
15733
- if (this.ctr !== 0) {
15734
- throw new Error("speedy must be changed before any rules are inserted");
15735
- }
15736
- this.isSpeedy = value2;
15737
- };
15738
- cache2.compat = true;
15739
- var css = function css2() {
15740
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15741
- args[_key] = arguments[_key];
15742
- }
15743
- var serialized = serializeStyles3(args, cache2.registered, void 0);
15744
- insertStyles3(cache2, serialized, false);
15745
- return cache2.key + "-" + serialized.name;
15746
- };
15747
- var keyframes = function keyframes2() {
15748
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
15749
- args[_key2] = arguments[_key2];
15750
- }
15751
- var serialized = serializeStyles3(args, cache2.registered);
15752
- var animation = "animation-" + serialized.name;
15753
- insertWithoutScoping2(cache2, {
15754
- name: serialized.name,
15755
- styles: "@keyframes " + animation + "{" + serialized.styles + "}"
15756
- });
15757
- return animation;
15758
- };
15759
- var injectGlobal = function injectGlobal2() {
15760
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
15761
- args[_key3] = arguments[_key3];
15762
- }
15763
- var serialized = serializeStyles3(args, cache2.registered);
15764
- insertWithoutScoping2(cache2, serialized);
15765
- };
15766
- var cx = function cx2() {
15767
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
15768
- args[_key4] = arguments[_key4];
15769
- }
15770
- return merge4(cache2.registered, css, classnames3(args));
15771
- };
15772
- return {
15773
- css,
15774
- cx,
15775
- injectGlobal,
15776
- keyframes,
15777
- hydrate: function hydrate(ids) {
15778
- ids.forEach(function(key) {
15779
- cache2.inserted[key] = true;
15780
- });
15781
- },
15782
- flush: function flush() {
15783
- cache2.registered = {};
15784
- cache2.inserted = {};
15785
- cache2.sheet.flush();
15786
- },
15787
- // $FlowFixMe
15788
- sheet: cache2.sheet,
15789
- cache: cache2,
15790
- getRegisteredStyles: getRegisteredStyles2.bind(null, cache2.registered),
15791
- merge: merge4.bind(null, cache2.registered, css)
15792
- };
15793
- };
15794
- var classnames3 = function classnames4(args) {
15795
- var cls = "";
15796
- for (var i2 = 0; i2 < args.length; i2++) {
15797
- var arg = args[i2];
15798
- if (arg == null)
15799
- continue;
15800
- var toAdd = void 0;
15801
- switch (typeof arg) {
15802
- case "boolean":
15803
- break;
15804
- case "object": {
15805
- if (Array.isArray(arg)) {
15806
- toAdd = classnames4(arg);
15807
- } else {
15808
- toAdd = "";
15809
- for (var k in arg) {
15810
- if (arg[k] && k) {
15811
- toAdd && (toAdd += " ");
15812
- toAdd += k;
15813
- }
15814
- }
15815
- }
15816
- break;
15817
- }
15818
- default: {
15819
- toAdd = arg;
15820
- }
15821
- }
15822
- if (toAdd) {
15823
- cls && (cls += " ");
15824
- cls += toAdd;
15825
- }
15826
- }
15827
- return cls;
15828
- };
15829
-
15830
15340
  // ../../node_modules/@domql/emotion/index.js
15831
15341
  var transformEmotionStyle = (emotion2) => {
15832
15342
  return (params, element, state) => {
15833
- const execParams = (0, import_utils17.exec)(params, element);
15343
+ const execParams = (0, import_utils16.exec)(params, element);
15834
15344
  if (params) {
15835
- if ((0, import_utils17.isObjectLike)(element.class))
15345
+ if ((0, import_utils16.isObjectLike)(element.class))
15836
15346
  element.class.elementStyle = execParams;
15837
15347
  else
15838
15348
  element.class = { elementStyle: execParams };
@@ -15846,18 +15356,18 @@ var transformEmotionClass = (emotion2) => {
15846
15356
  return;
15847
15357
  const { __ref } = element;
15848
15358
  const { __class, __classNames } = __ref;
15849
- if (!(0, import_utils17.isObjectLike)(params))
15359
+ if (!(0, import_utils16.isObjectLike)(params))
15850
15360
  return;
15851
15361
  for (const key in params) {
15852
- const prop = (0, import_utils17.exec)(params[key], element);
15362
+ const prop = (0, import_utils16.exec)(params[key], element);
15853
15363
  if (!prop) {
15854
15364
  delete __class[key];
15855
15365
  delete __classNames[key];
15856
15366
  continue;
15857
15367
  }
15858
- const isEqual = (0, import_utils17.isEqualDeep)(__class[key], prop);
15368
+ const isEqual = (0, import_utils16.isEqualDeep)(__class[key], prop);
15859
15369
  if (!isEqual) {
15860
- if (!(0, import_utils17.isProduction)() && (0, import_utils17.isObject)(prop))
15370
+ if (!(0, import_utils16.isProduction)() && (0, import_utils16.isObject)(prop))
15861
15371
  prop.label = key || element.key;
15862
15372
  const CSSed = emotion2.css(prop);
15863
15373
  __class[key] = prop;
@@ -15869,7 +15379,7 @@ var transformEmotionClass = (emotion2) => {
15869
15379
  };
15870
15380
  var transformDOMQLEmotion = (emotion2, options) => {
15871
15381
  if (!emotion2)
15872
- emotion2 = createEmotion4(options || { key: "smbls" });
15382
+ emotion2 = createEmotion(options || { key: "smbls" });
15873
15383
  return {
15874
15384
  style: transformEmotionStyle(emotion2),
15875
15385
  class: transformEmotionClass(emotion2)
@@ -19325,7 +18835,7 @@ function send(event = "change", changes, options) {
19325
18835
  var import_globals = __toESM(require_cjs11());
19326
18836
 
19327
18837
  // ../socket-ui/devFocus.js
19328
- var import_utils18 = __toESM(require_cjs());
18838
+ var import_utils17 = __toESM(require_cjs());
19329
18839
  var DevFocus = {
19330
18840
  props: {
19331
18841
  ".preventSelect": {
@@ -19379,7 +18889,7 @@ var DevFocus = {
19379
18889
  on: {
19380
18890
  init: ({ context }) => {
19381
18891
  const { components } = context;
19382
- if ((0, import_utils18.isObject)(components)) {
18892
+ if ((0, import_utils17.isObject)(components)) {
19383
18893
  const { Content, ...rest } = components;
19384
18894
  for (const key in rest) {
19385
18895
  if (domql_exports[key])
@@ -19601,13 +19111,13 @@ var Sync = {
19601
19111
  };
19602
19112
 
19603
19113
  // src/syncExtend.js
19604
- var import_utils19 = __toESM(require_cjs(), 1);
19114
+ var import_utils18 = __toESM(require_cjs(), 1);
19605
19115
  var applySyncDebug = (extend, options) => {
19606
19116
  const { editor } = options;
19607
19117
  if (!editor)
19608
19118
  return extend;
19609
- const inspect = (0, import_utils19.isUndefined)(editor.inspect) ? (0, import_utils19.isDevelopment)() : editor.inspect;
19610
- const liveSync = (0, import_utils19.isUndefined)(editor.liveSync) ? (0, import_utils19.isDevelopment)() : editor.liveSync;
19119
+ const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
19120
+ const liveSync = (0, import_utils18.isUndefined)(editor.liveSync) ? (0, import_utils18.isDevelopment)() : editor.liveSync;
19611
19121
  if (inspect)
19612
19122
  extend.push(DevFocus);
19613
19123
  if (liveSync)
@@ -19618,7 +19128,7 @@ var applyInspectListener = (root, options) => {
19618
19128
  const { editor } = options;
19619
19129
  if (!editor)
19620
19130
  return;
19621
- const inspect = (0, import_utils19.isUndefined)(editor.inspect) ? (0, import_utils19.isDevelopment)() : editor.inspect;
19131
+ const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
19622
19132
  if (inspect)
19623
19133
  inspectOnKey(root);
19624
19134
  };
@@ -19626,11 +19136,11 @@ var applyInspectListener = (root, options) => {
19626
19136
  // src/index.js
19627
19137
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
19628
19138
  var mergeWithLocalFile2 = (options, optionsExternalFile) => {
19629
- const rcfile = (0, import_utils20.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
19630
- return (0, import_utils20.deepMerge)(options, rcfile);
19139
+ const rcfile = (0, import_utils19.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
19140
+ return (0, import_utils19.deepMerge)(options, rcfile);
19631
19141
  };
19632
19142
  var create = async (App, options = options_default, optionsExternalFile) => {
19633
- const appIsKey = (0, import_utils20.isString)(App);
19143
+ const appIsKey = (0, import_utils19.isString)(App);
19634
19144
  options = mergeWithLocalFile2(options, optionsExternalFile);
19635
19145
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
19636
19146
  if (appIsKey)
@@ -19693,7 +19203,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
19693
19203
  return domqlApp;
19694
19204
  };
19695
19205
  var createSync = (App, options = options_default, optionsExternalFile) => {
19696
- const appIsKey = (0, import_utils20.isString)(App);
19206
+ const appIsKey = (0, import_utils19.isString)(App);
19697
19207
  options = mergeWithLocalFile2(options, optionsExternalFile);
19698
19208
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
19699
19209
  if (appIsKey)