@symbo.ls/create 2.11.236 → 2.11.237

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.
@@ -216,7 +216,7 @@ var require_types = __commonJS({
216
216
  isNumber: () => isNumber,
217
217
  isObject: () => isObject12,
218
218
  isObjectLike: () => isObjectLike3,
219
- isString: () => isString10,
219
+ isString: () => isString11,
220
220
  isUndefined: () => isUndefined4
221
221
  });
222
222
  module2.exports = __toCommonJS2(types_exports);
@@ -226,7 +226,7 @@ var require_types = __commonJS({
226
226
  return false;
227
227
  return typeof arg === "object" && arg.constructor === Object;
228
228
  };
229
- var isString10 = (arg) => typeof arg === "string";
229
+ var isString11 = (arg) => typeof arg === "string";
230
230
  var isNumber = (arg) => typeof arg === "number";
231
231
  var isFunction4 = (arg) => typeof arg === "function";
232
232
  var isBoolean = (arg) => arg === true || arg === false;
@@ -239,7 +239,7 @@ var require_types = __commonJS({
239
239
  return typeof arg === "object";
240
240
  };
241
241
  var isDefined2 = (arg) => {
242
- return isObject12(arg) || isObjectLike3(arg) || isString10(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
+ return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
243
243
  };
244
244
  var isUndefined4 = (arg) => {
245
245
  return arg === void 0;
@@ -248,7 +248,7 @@ var require_types = __commonJS({
248
248
  boolean: isBoolean,
249
249
  array: isArray6,
250
250
  object: isObject12,
251
- string: isString10,
251
+ string: isString11,
252
252
  date: isDate,
253
253
  number: isNumber,
254
254
  null: isNull,
@@ -473,7 +473,7 @@ var require_object = __commonJS({
473
473
  deepContains: () => deepContains,
474
474
  deepDestringify: () => deepDestringify,
475
475
  deepDiff: () => deepDiff2,
476
- deepMerge: () => deepMerge5,
476
+ deepMerge: () => deepMerge7,
477
477
  deepStringify: () => deepStringify,
478
478
  detachFunctionsFromObject: () => detachFunctionsFromObject,
479
479
  diff: () => diff,
@@ -530,7 +530,7 @@ var require_object = __commonJS({
530
530
  }
531
531
  return element;
532
532
  };
533
- var deepMerge5 = (element, extend, excludeFrom = []) => {
533
+ var deepMerge7 = (element, extend, excludeFrom = []) => {
534
534
  for (const e in extend) {
535
535
  const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
536
536
  if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
@@ -538,7 +538,7 @@ var require_object = __commonJS({
538
538
  const elementProp = element[e];
539
539
  const extendProp = extend[e];
540
540
  if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
541
- deepMerge5(elementProp, extendProp, excludeFrom);
541
+ deepMerge7(elementProp, extendProp, excludeFrom);
542
542
  } else if (elementProp === void 0) {
543
543
  element[e] = extendProp;
544
544
  }
@@ -578,7 +578,7 @@ var require_object = __commonJS({
578
578
  return o;
579
579
  };
580
580
  var mergeArrayExclude = (arr, excl = []) => {
581
- return arr.reduce((acc, curr) => deepMerge5(acc, deepCloneExclude(curr, excl)), {});
581
+ return arr.reduce((acc, curr) => deepMerge7(acc, deepCloneExclude(curr, excl)), {});
582
582
  };
583
583
  var deepClone4 = (obj, excludeFrom = [], cleanUndefined = false) => {
584
584
  const o = (0, import_types.isArray)(obj) ? [] : {};
@@ -856,7 +856,7 @@ var require_object = __commonJS({
856
856
  };
857
857
  var mergeIfExisted = (a, b) => {
858
858
  if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
859
- return deepMerge5(a, b);
859
+ return deepMerge7(a, b);
860
860
  return a || b;
861
861
  };
862
862
  var flattenRecursive = (param, prop, stack = []) => {
@@ -1432,11 +1432,11 @@ var require_tree = __commonJS({
1432
1432
  TREE: () => TREE
1433
1433
  });
1434
1434
  module2.exports = __toCommonJS2(tree_exports);
1435
- var import_utils24 = require_cjs();
1435
+ var import_utils25 = require_cjs();
1436
1436
  var import_report = require_cjs2();
1437
1437
  var ROOT = {
1438
1438
  key: ":root",
1439
- node: import_utils24.document ? import_utils24.document.body : (0, import_report.report)("DocumentNotDefined", import_utils24.document)
1439
+ node: import_utils25.document ? import_utils25.document.body : (0, import_report.report)("DocumentNotDefined", import_utils25.document)
1440
1440
  };
1441
1441
  var TREE = ROOT;
1442
1442
  }
@@ -1472,12 +1472,12 @@ var require_on = __commonJS({
1472
1472
  triggerEventOnUpdate: () => triggerEventOnUpdate
1473
1473
  });
1474
1474
  module2.exports = __toCommonJS2(on_exports);
1475
- var import_utils24 = require_cjs();
1475
+ var import_utils25 = require_cjs();
1476
1476
  var applyEvent = (param, element, state, context, options) => {
1477
1477
  return param(element, state || element.state, context || element.context, options);
1478
1478
  };
1479
1479
  var triggerEventOn = (param, element, options) => {
1480
- if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
1480
+ if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1481
1481
  const { state, context } = element;
1482
1482
  return applyEvent(element.on[param], element, state, context, options);
1483
1483
  }
@@ -1486,7 +1486,7 @@ var require_on = __commonJS({
1486
1486
  return param(updatedObj, element, state || element.state, context || element.context, options);
1487
1487
  };
1488
1488
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
1489
- if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
1489
+ if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1490
1490
  const { state, context } = element;
1491
1491
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
1492
1492
  }
@@ -1497,7 +1497,7 @@ var require_on = __commonJS({
1497
1497
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
1498
1498
  continue;
1499
1499
  const appliedFunction = element.on[param];
1500
- if ((0, import_utils24.isFunction)(appliedFunction)) {
1500
+ if ((0, import_utils25.isFunction)(appliedFunction)) {
1501
1501
  node2.addEventListener(param, (event) => {
1502
1502
  const { state, context } = element;
1503
1503
  appliedFunction(event, element, state, context);
@@ -1535,10 +1535,10 @@ var require_can = __commonJS({
1535
1535
  });
1536
1536
  module2.exports = __toCommonJS2(can_exports);
1537
1537
  var import_report = require_cjs2();
1538
- var import_utils24 = require_cjs();
1538
+ var import_utils25 = require_cjs();
1539
1539
  var canRender = (element) => {
1540
1540
  const tag = element.tag || "div";
1541
- return (0, import_utils24.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1541
+ return (0, import_utils25.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1542
1542
  };
1543
1543
  }
1544
1544
  });
@@ -1629,7 +1629,7 @@ var require_cache = __commonJS({
1629
1629
  module2.exports = __toCommonJS2(cache_exports);
1630
1630
  var import_report = require_cjs2();
1631
1631
  var import_event = require_cjs3();
1632
- var import_utils24 = require_cjs();
1632
+ var import_utils25 = require_cjs();
1633
1633
  var cache2 = {};
1634
1634
  var createHTMLNode = (element) => {
1635
1635
  const { tag } = element;
@@ -1648,20 +1648,20 @@ var require_cache = __commonJS({
1648
1648
  };
1649
1649
  var detectTag = (element) => {
1650
1650
  let { tag, key, props: props4 } = element;
1651
- tag = (0, import_utils24.exec)(tag, element);
1651
+ tag = (0, import_utils25.exec)(tag, element);
1652
1652
  if (tag === true)
1653
1653
  tag = key;
1654
- if ((0, import_utils24.isObject)(props4) && (0, import_utils24.isString)(props4.tag)) {
1655
- const tagExists = (0, import_utils24.isValidHtmlTag)(props4.tag);
1654
+ if ((0, import_utils25.isObject)(props4) && (0, import_utils25.isString)(props4.tag)) {
1655
+ const tagExists = (0, import_utils25.isValidHtmlTag)(props4.tag);
1656
1656
  if (tagExists)
1657
1657
  return props4.tag;
1658
1658
  }
1659
- if ((0, import_utils24.isString)(tag)) {
1660
- const tagExists = (0, import_utils24.isValidHtmlTag)(tag);
1659
+ if ((0, import_utils25.isString)(tag)) {
1660
+ const tagExists = (0, import_utils25.isValidHtmlTag)(tag);
1661
1661
  if (tagExists)
1662
1662
  return tag;
1663
1663
  } else {
1664
- const isKeyATag = (0, import_utils24.isValidHtmlTag)(key);
1664
+ const isKeyATag = (0, import_utils25.isValidHtmlTag)(key);
1665
1665
  if (isKeyATag)
1666
1666
  return key;
1667
1667
  }
@@ -1794,16 +1794,16 @@ var require_attr = __commonJS({
1794
1794
  default: () => attr_default
1795
1795
  });
1796
1796
  module2.exports = __toCommonJS2(attr_exports);
1797
- var import_utils24 = require_cjs();
1797
+ var import_utils25 = require_cjs();
1798
1798
  var import_report = require_cjs2();
1799
1799
  var attr_default = (params, element, node2) => {
1800
1800
  const { __ref } = element;
1801
1801
  const { __attr } = __ref;
1802
- if ((0, import_utils24.isNot)("object"))
1802
+ if ((0, import_utils25.isNot)("object"))
1803
1803
  (0, import_report.report)("HTMLInvalidAttr", params);
1804
1804
  if (params) {
1805
1805
  for (const attr in params) {
1806
- const val = (0, import_utils24.exec)(params[attr], element);
1806
+ const val = (0, import_utils25.exec)(params[attr], element);
1807
1807
  if (val && node2.setAttribute)
1808
1808
  node2.setAttribute(attr, val);
1809
1809
  else if (node2.removeAttribute)
@@ -1846,7 +1846,7 @@ var require_classList = __commonJS({
1846
1846
  default: () => classList_default
1847
1847
  });
1848
1848
  module2.exports = __toCommonJS2(classList_exports);
1849
- var import_utils24 = require_cjs();
1849
+ var import_utils25 = require_cjs();
1850
1850
  var assignKeyAsClassname = (element) => {
1851
1851
  const { key } = element;
1852
1852
  if (element.class === true)
@@ -1864,7 +1864,7 @@ var require_classList = __commonJS({
1864
1864
  else if (typeof param === "string")
1865
1865
  className += ` ${param}`;
1866
1866
  else if (typeof param === "function") {
1867
- className += ` ${(0, import_utils24.exec)(param, element)}`;
1867
+ className += ` ${(0, import_utils25.exec)(param, element)}`;
1868
1868
  }
1869
1869
  }
1870
1870
  return className;
@@ -1875,9 +1875,9 @@ var require_classList = __commonJS({
1875
1875
  const { key } = element;
1876
1876
  if (params === true)
1877
1877
  params = element.class = { key };
1878
- if ((0, import_utils24.isString)(params))
1878
+ if ((0, import_utils25.isString)(params))
1879
1879
  params = element.class = { default: params };
1880
- if ((0, import_utils24.isObject)(params))
1880
+ if ((0, import_utils25.isObject)(params))
1881
1881
  params = classify2(params, element);
1882
1882
  const className = params.replace(/\s+/g, " ").trim();
1883
1883
  if (element.ref)
@@ -1961,7 +1961,7 @@ var require_set = __commonJS({
1961
1961
  default: () => set_default
1962
1962
  });
1963
1963
  module2.exports = __toCommonJS2(set_exports);
1964
- var import_utils24 = require_cjs();
1964
+ var import_utils25 = require_cjs();
1965
1965
  var import_create = __toESM2(require_create4(), 1);
1966
1966
  var import_options3 = __toESM2(require_options(), 1);
1967
1967
  var import_mixins = require_mixins();
@@ -1971,7 +1971,7 @@ var require_set = __commonJS({
1971
1971
  const { __ref: ref, content } = element;
1972
1972
  const __contentRef = content && content.__ref;
1973
1973
  const lazyLoad = element.props && element.props.lazyLoad;
1974
- if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils24.deepContains)(params, content)) {
1974
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils25.deepContains)(params, content)) {
1975
1975
  return content.update();
1976
1976
  }
1977
1977
  if (options.preventContentUpdate === true)
@@ -2039,7 +2039,7 @@ var require_content = __commonJS({
2039
2039
  updateContent: () => updateContent
2040
2040
  });
2041
2041
  module2.exports = __toCommonJS2(content_exports);
2042
- var import_utils24 = require_cjs();
2042
+ var import_utils25 = require_cjs();
2043
2043
  var import_set = __toESM2(require_set(), 1);
2044
2044
  var updateContent = function(params, options) {
2045
2045
  const element = this;
@@ -2062,7 +2062,7 @@ var require_content = __commonJS({
2062
2062
  if (__cached && __cached.content) {
2063
2063
  if (__cached.content.tag === "fragment")
2064
2064
  __cached.content.parent.node.innerHTML = "";
2065
- else if (__cached.content && (0, import_utils24.isFunction)(__cached.content.remove))
2065
+ else if (__cached.content && (0, import_utils25.isFunction)(__cached.content.remove))
2066
2066
  __cached.content.remove();
2067
2067
  }
2068
2068
  delete element.content;
@@ -2107,15 +2107,15 @@ var require_data = __commonJS({
2107
2107
  default: () => data_default
2108
2108
  });
2109
2109
  module2.exports = __toCommonJS2(data_exports);
2110
- var import_utils24 = require_cjs();
2110
+ var import_utils25 = require_cjs();
2111
2111
  var import_report = require_cjs2();
2112
2112
  var data_default = (params, element, node2) => {
2113
2113
  if (params && params.showOnNode) {
2114
- if (!(0, import_utils24.isObject)(params))
2114
+ if (!(0, import_utils25.isObject)(params))
2115
2115
  (0, import_report.report)("HTMLInvalidData", params);
2116
2116
  for (const dataset in params) {
2117
2117
  if (dataset !== "showOnNode") {
2118
- node2.dataset[dataset] = (0, import_utils24.exec)(params[dataset], element);
2118
+ node2.dataset[dataset] = (0, import_utils25.exec)(params[dataset], element);
2119
2119
  }
2120
2120
  }
2121
2121
  }
@@ -2149,9 +2149,9 @@ var require_html = __commonJS({
2149
2149
  default: () => html_default
2150
2150
  });
2151
2151
  module2.exports = __toCommonJS2(html_exports);
2152
- var import_utils24 = require_cjs();
2152
+ var import_utils25 = require_cjs();
2153
2153
  var html_default = (param, element, node2) => {
2154
- const prop = (0, import_utils24.exec)(param, element);
2154
+ const prop = (0, import_utils25.exec)(param, element);
2155
2155
  const { __ref } = element;
2156
2156
  if (prop !== __ref.__html) {
2157
2157
  if (node2.nodeName === "SVG")
@@ -2190,12 +2190,12 @@ var require_style = __commonJS({
2190
2190
  default: () => style_default2
2191
2191
  });
2192
2192
  module2.exports = __toCommonJS2(style_exports);
2193
- var import_utils24 = require_cjs();
2193
+ var import_utils25 = require_cjs();
2194
2194
  var import_report = require_cjs2();
2195
2195
  var style_default2 = (params, element, node2) => {
2196
2196
  if (params) {
2197
- if ((0, import_utils24.isObject)(params))
2198
- (0, import_utils24.map)(node2.style, params, element);
2197
+ if ((0, import_utils25.isObject)(params))
2198
+ (0, import_utils25.map)(node2.style, params, element);
2199
2199
  else
2200
2200
  (0, import_report.report)("HTMLInvalidStyles", params);
2201
2201
  }
@@ -2230,11 +2230,11 @@ var require_text = __commonJS({
2230
2230
  });
2231
2231
  module2.exports = __toCommonJS2(text_exports);
2232
2232
  var import__ = require_cjs8();
2233
- var import_utils24 = require_cjs();
2233
+ var import_utils25 = require_cjs();
2234
2234
  var text_default = (param, element, node2) => {
2235
- let prop = (0, import_utils24.exec)(param, element);
2236
- if ((0, import_utils24.isString)(prop) && prop.includes("{{")) {
2237
- prop = (0, import_utils24.replaceLiteralsWithObjectFields)(prop, element.state);
2235
+ let prop = (0, import_utils25.exec)(param, element);
2236
+ if ((0, import_utils25.isString)(prop) && prop.includes("{{")) {
2237
+ prop = (0, import_utils25.replaceLiteralsWithObjectFields)(prop, element.state);
2238
2238
  }
2239
2239
  if (element.tag === "string") {
2240
2240
  node2.nodeValue = prop;
@@ -2338,11 +2338,11 @@ var require_methods = __commonJS({
2338
2338
  toggle: () => toggle
2339
2339
  });
2340
2340
  module2.exports = __toCommonJS2(methods_exports);
2341
- var import_utils24 = require_cjs();
2341
+ var import_utils25 = require_cjs();
2342
2342
  var import_ignore = require_ignore();
2343
2343
  var parse3 = function() {
2344
2344
  const state = this;
2345
- if ((0, import_utils24.isObject)(state)) {
2345
+ if ((0, import_utils25.isObject)(state)) {
2346
2346
  const obj = {};
2347
2347
  for (const param in state) {
2348
2348
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -2350,7 +2350,7 @@ var require_methods = __commonJS({
2350
2350
  }
2351
2351
  }
2352
2352
  return obj;
2353
- } else if ((0, import_utils24.isArray)(state)) {
2353
+ } else if ((0, import_utils25.isArray)(state)) {
2354
2354
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
2355
2355
  }
2356
2356
  };
@@ -2370,7 +2370,7 @@ var require_methods = __commonJS({
2370
2370
  const state = this;
2371
2371
  const element = state.__element;
2372
2372
  const stateKey = element.__ref.__state;
2373
- if ((0, import_utils24.isString)(stateKey)) {
2373
+ if ((0, import_utils25.isString)(stateKey)) {
2374
2374
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
2375
2375
  return element.state;
2376
2376
  }
@@ -2383,7 +2383,7 @@ var require_methods = __commonJS({
2383
2383
  for (const key in state.__children) {
2384
2384
  const child = state.__children[key];
2385
2385
  if (child.state) {
2386
- if ((0, import_utils24.isArray)(child.state)) {
2386
+ if ((0, import_utils25.isArray)(child.state)) {
2387
2387
  Object.defineProperty(child.state, "parent", {
2388
2388
  value: state.parent,
2389
2389
  enumerable: false,
@@ -2417,10 +2417,10 @@ var require_methods = __commonJS({
2417
2417
  };
2418
2418
  var add = function(value2, options = {}) {
2419
2419
  const state = this;
2420
- if ((0, import_utils24.isArray)(state)) {
2420
+ if ((0, import_utils25.isArray)(state)) {
2421
2421
  state.push(value2);
2422
2422
  state.update(state.parse(), { overwrite: "replace", ...options });
2423
- } else if ((0, import_utils24.isObject)(state)) {
2423
+ } else if ((0, import_utils25.isObject)(state)) {
2424
2424
  const key = Object.keys(state).length;
2425
2425
  state.update({ [key]: value2 }, options);
2426
2426
  }
@@ -2431,25 +2431,25 @@ var require_methods = __commonJS({
2431
2431
  };
2432
2432
  var remove = function(key, options = {}) {
2433
2433
  const state = this;
2434
- if ((0, import_utils24.isArray)(state))
2435
- (0, import_utils24.removeFromArray)(state, key);
2436
- if ((0, import_utils24.isObject)(state))
2437
- (0, import_utils24.removeFromObject)(state, key);
2434
+ if ((0, import_utils25.isArray)(state))
2435
+ (0, import_utils25.removeFromArray)(state, key);
2436
+ if ((0, import_utils25.isObject)(state))
2437
+ (0, import_utils25.removeFromObject)(state, key);
2438
2438
  return state.update(state.parse(), { replace: true, ...options });
2439
2439
  };
2440
2440
  var set5 = function(val, options = {}) {
2441
2441
  const state = this;
2442
- const value2 = (0, import_utils24.deepClone)(val);
2442
+ const value2 = (0, import_utils25.deepClone)(val);
2443
2443
  return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
2444
2444
  };
2445
2445
  var reset = function(options = {}) {
2446
2446
  const state = this;
2447
- const value2 = (0, import_utils24.deepClone)(state.parse());
2447
+ const value2 = (0, import_utils25.deepClone)(state.parse());
2448
2448
  return state.set(value2, { replace: true, ...options });
2449
2449
  };
2450
2450
  var apply = function(func, options = {}) {
2451
2451
  const state = this;
2452
- if ((0, import_utils24.isFunction)(func)) {
2452
+ if ((0, import_utils25.isFunction)(func)) {
2453
2453
  func(state);
2454
2454
  return state.update(state.parse(), { replace: true, ...options });
2455
2455
  }
@@ -2489,7 +2489,7 @@ var require_inherit = __commonJS({
2489
2489
  isState: () => isState2
2490
2490
  });
2491
2491
  module2.exports = __toCommonJS2(inherit_exports);
2492
- var import_utils24 = require_cjs();
2492
+ var import_utils25 = require_cjs();
2493
2493
  var import_ignore = require_ignore();
2494
2494
  var getParentStateInKey = (stateKey, parentState) => {
2495
2495
  if (!stateKey.includes("../"))
@@ -2541,11 +2541,11 @@ var require_inherit = __commonJS({
2541
2541
  var createInheritedState = (element, parent) => {
2542
2542
  const ref = element.__ref;
2543
2543
  const inheritedState = findInheritedState(element, parent);
2544
- if ((0, import_utils24.isUndefined)(inheritedState))
2544
+ if ((0, import_utils25.isUndefined)(inheritedState))
2545
2545
  return element.state;
2546
- if ((0, import_utils24.is)(inheritedState)("object", "array")) {
2547
- return (0, import_utils24.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2548
- } else if ((0, import_utils24.is)(inheritedState)("string", "number", "boolean")) {
2546
+ if ((0, import_utils25.is)(inheritedState)("object", "array")) {
2547
+ return (0, import_utils25.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2548
+ } else if ((0, import_utils25.is)(inheritedState)("string", "number", "boolean")) {
2549
2549
  ref.__stateType = typeof inheritedState;
2550
2550
  return { value: inheritedState };
2551
2551
  }
@@ -2554,12 +2554,12 @@ var require_inherit = __commonJS({
2554
2554
  var checkIfInherits = (element) => {
2555
2555
  const ref = element.__ref;
2556
2556
  const stateKey = ref.__state;
2557
- if (stateKey && (0, import_utils24.is)(stateKey)("number", "string", "boolean"))
2557
+ if (stateKey && (0, import_utils25.is)(stateKey)("number", "string", "boolean"))
2558
2558
  return true;
2559
2559
  return false;
2560
2560
  };
2561
2561
  var isState2 = function(state) {
2562
- if (!(0, import_utils24.isObjectLike)(state))
2562
+ if (!(0, import_utils25.isObjectLike)(state))
2563
2563
  return false;
2564
2564
  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;
2565
2565
  };
@@ -2608,7 +2608,7 @@ var require_updateState = __commonJS({
2608
2608
  var import_report = require_cjs2();
2609
2609
  var import_event = require_cjs3();
2610
2610
  var import_ignore = require_ignore();
2611
- var import_utils24 = require_cjs();
2611
+ var import_utils25 = require_cjs();
2612
2612
  var import_inherit = require_inherit();
2613
2613
  var STATE_UPDATE_OPTIONS = {
2614
2614
  overwrite: true,
@@ -2621,7 +2621,7 @@ var require_updateState = __commonJS({
2621
2621
  const state = this;
2622
2622
  const element = state.__element;
2623
2623
  if (!options.updateByState)
2624
- (0, import_utils24.merge)(options, STATE_UPDATE_OPTIONS);
2624
+ (0, import_utils25.merge)(options, STATE_UPDATE_OPTIONS);
2625
2625
  if (!state.__element)
2626
2626
  (0, import_report.report)("ElementOnStateIsNotDefined");
2627
2627
  if (options.preventInheritAtCurrentState === true) {
@@ -2651,10 +2651,10 @@ var require_updateState = __commonJS({
2651
2651
  const shallow = overwrite === "shallow";
2652
2652
  const merge22 = overwrite === "merge";
2653
2653
  if (merge22) {
2654
- (0, import_utils24.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2654
+ (0, import_utils25.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2655
2655
  return;
2656
2656
  }
2657
- const overwriteFunc = shallow ? import_utils24.overwriteShallow : import_utils24.overwriteDeep;
2657
+ const overwriteFunc = shallow ? import_utils25.overwriteShallow : import_utils25.overwriteDeep;
2658
2658
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2659
2659
  };
2660
2660
  var hoistStateUpdate = (state, obj, options) => {
@@ -2676,7 +2676,7 @@ var require_updateState = __commonJS({
2676
2676
  const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
2677
2677
  const targetParent = findGrandParentState || parent.state;
2678
2678
  if (options.replace)
2679
- (0, import_utils24.overwriteDeep)(targetParent, changesValue || value2);
2679
+ (0, import_utils25.overwriteDeep)(targetParent, changesValue || value2);
2680
2680
  targetParent.update(changesValue, {
2681
2681
  execStateFunction: false,
2682
2682
  isHoisted: true,
@@ -2745,7 +2745,7 @@ var require_create2 = __commonJS({
2745
2745
  });
2746
2746
  module2.exports = __toCommonJS2(create_exports);
2747
2747
  var import_event = require_cjs3();
2748
- var import_utils24 = require_cjs();
2748
+ var import_utils25 = require_cjs();
2749
2749
  var import_ignore = require_ignore();
2750
2750
  var import_methods = require_methods();
2751
2751
  var import_updateState = require_updateState();
@@ -2759,13 +2759,13 @@ var require_create2 = __commonJS({
2759
2759
  if (objectizeState === false)
2760
2760
  return parent.state || {};
2761
2761
  else
2762
- element.state = (0, import_utils24.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2762
+ element.state = (0, import_utils25.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2763
2763
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
2764
2764
  if (whatInitReturns === false)
2765
2765
  return element.state;
2766
2766
  if ((0, import_inherit.checkIfInherits)(element)) {
2767
2767
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
2768
- element.state = (0, import_utils24.isUndefined)(inheritedState) ? {} : inheritedState;
2768
+ element.state = (0, import_utils25.isUndefined)(inheritedState) ? {} : inheritedState;
2769
2769
  }
2770
2770
  const dependentState = applyDependentState(element, element.state);
2771
2771
  if (dependentState)
@@ -2778,17 +2778,17 @@ var require_create2 = __commonJS({
2778
2778
  const { __ref: ref } = state;
2779
2779
  if (!ref)
2780
2780
  return;
2781
- const dependentState = (0, import_utils24.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2781
+ const dependentState = (0, import_utils25.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2782
2782
  const newDepends = { [element.key]: dependentState };
2783
- ref.__depends = (0, import_utils24.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2783
+ ref.__depends = (0, import_utils25.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2784
2784
  return dependentState;
2785
2785
  };
2786
2786
  var checkForTypes = (element) => {
2787
2787
  const { state, __ref: ref } = element;
2788
- if ((0, import_utils24.isFunction)(state)) {
2788
+ if ((0, import_utils25.isFunction)(state)) {
2789
2789
  ref.__state = state;
2790
- return (0, import_utils24.exec)(state, element);
2791
- } else if ((0, import_utils24.is)(state)("string", "number")) {
2790
+ return (0, import_utils25.exec)(state, element);
2791
+ } else if ((0, import_utils25.is)(state)("string", "number")) {
2792
2792
  ref.__state = state;
2793
2793
  return {};
2794
2794
  } else if (state === true) {
@@ -2836,7 +2836,7 @@ var require_create2 = __commonJS({
2836
2836
  __children: {},
2837
2837
  __root: ref.__root ? ref.__root.state : state
2838
2838
  };
2839
- if ((0, import_utils24.isArray)(state)) {
2839
+ if ((0, import_utils25.isArray)(state)) {
2840
2840
  addProtoToArray(state, proto);
2841
2841
  } else {
2842
2842
  Object.setPrototypeOf(state, proto);
@@ -2904,16 +2904,16 @@ var require_state = __commonJS({
2904
2904
  });
2905
2905
  module2.exports = __toCommonJS2(state_exports);
2906
2906
  var import_state2 = require_cjs5();
2907
- var import_utils24 = require_cjs();
2907
+ var import_utils25 = require_cjs();
2908
2908
  var state = (params, element, node2) => {
2909
- const state2 = (0, import_utils24.exec)(params, element);
2910
- if ((0, import_utils24.isObject)(state2)) {
2909
+ const state2 = (0, import_utils25.exec)(params, element);
2910
+ if ((0, import_utils25.isObject)(state2)) {
2911
2911
  for (const param in state2) {
2912
2912
  if (import_state2.IGNORE_STATE_PARAMS.includes(param))
2913
2913
  continue;
2914
2914
  if (!Object.hasOwnProperty.call(state2, param))
2915
2915
  continue;
2916
- element.state[param] = (0, import_utils24.exec)(state2[param], element);
2916
+ element.state[param] = (0, import_utils25.exec)(state2[param], element);
2917
2917
  }
2918
2918
  }
2919
2919
  return element;
@@ -2948,13 +2948,13 @@ var require_scope = __commonJS({
2948
2948
  default: () => scope_default
2949
2949
  });
2950
2950
  module2.exports = __toCommonJS2(scope_exports);
2951
- var import_utils24 = require_cjs();
2951
+ var import_utils25 = require_cjs();
2952
2952
  var scope_default = (params, element, node2) => {
2953
- if (!(0, import_utils24.isObject)(params))
2953
+ if (!(0, import_utils25.isObject)(params))
2954
2954
  return;
2955
2955
  for (const scopeItem in params) {
2956
2956
  const value2 = params[scopeItem];
2957
- if ((0, import_utils24.isFunction)(value2)) {
2957
+ if ((0, import_utils25.isFunction)(value2)) {
2958
2958
  element.scope[scopeItem] = value2.bind(element);
2959
2959
  } else {
2960
2960
  element.scope[scopeItem] = value2;
@@ -3161,7 +3161,7 @@ var require_methods2 = __commonJS({
3161
3161
  spotByPath: () => spotByPath
3162
3162
  });
3163
3163
  module2.exports = __toCommonJS2(methods_exports);
3164
- var import_utils24 = require_cjs();
3164
+ var import_utils25 = require_cjs();
3165
3165
  var import_tree = require_tree();
3166
3166
  var import_mixins = require_mixins();
3167
3167
  var spotByPath = function(path) {
@@ -3194,9 +3194,9 @@ var require_methods2 = __commonJS({
3194
3194
  };
3195
3195
  var remove = function(params) {
3196
3196
  const element = this;
3197
- if ((0, import_utils24.isFunction)(element.node.remove))
3197
+ if ((0, import_utils25.isFunction)(element.node.remove))
3198
3198
  element.node.remove();
3199
- else if (!(0, import_utils24.isProduction)()) {
3199
+ else if (!(0, import_utils25.isProduction)()) {
3200
3200
  console.warn("This item cant be removed");
3201
3201
  element.log();
3202
3202
  }
@@ -3236,12 +3236,12 @@ var require_methods2 = __commonJS({
3236
3236
  if (v === "state") {
3237
3237
  if (element.__ref && element.__ref.__hasRootState)
3238
3238
  return;
3239
- if ((0, import_utils24.isFunction)(val && val.parse))
3239
+ if ((0, import_utils25.isFunction)(val && val.parse))
3240
3240
  val = val.parse();
3241
3241
  } else if (v === "props") {
3242
3242
  const { __element, update, ...props4 } = element[v];
3243
3243
  obj[v] = props4;
3244
- } else if ((0, import_utils24.isDefined)(val))
3244
+ } else if ((0, import_utils25.isDefined)(val))
3245
3245
  obj[v] = val;
3246
3246
  });
3247
3247
  return obj;
@@ -3252,7 +3252,7 @@ var require_methods2 = __commonJS({
3252
3252
  for (const v in obj) {
3253
3253
  if (excl.includes(v))
3254
3254
  return;
3255
- if ((0, import_utils24.isObjectLike)(obj[v])) {
3255
+ if ((0, import_utils25.isObjectLike)(obj[v])) {
3256
3256
  obj[v] = parseDeep.call(obj[v], excl);
3257
3257
  }
3258
3258
  }
@@ -3370,18 +3370,18 @@ var require_inherit2 = __commonJS({
3370
3370
  inheritParentProps: () => inheritParentProps
3371
3371
  });
3372
3372
  module2.exports = __toCommonJS2(inherit_exports);
3373
- var import_utils24 = require_cjs();
3373
+ var import_utils25 = require_cjs();
3374
3374
  var objectizeStringProperty = (propValue) => {
3375
- if ((0, import_utils24.is)(propValue)("string", "number")) {
3375
+ if ((0, import_utils25.is)(propValue)("string", "number")) {
3376
3376
  return { inheritedString: propValue };
3377
3377
  }
3378
3378
  return propValue;
3379
3379
  };
3380
3380
  var inheritParentProps = (element, parent) => {
3381
3381
  let propsStack = [];
3382
- const parentProps = (0, import_utils24.exec)(parent, parent.state).props;
3382
+ const parentProps = (0, import_utils25.exec)(parent, parent.state).props;
3383
3383
  const matchParent = parent.props && parentProps[element.key];
3384
- const matchParentIsString = (0, import_utils24.isString)(matchParent);
3384
+ const matchParentIsString = (0, import_utils25.isString)(matchParent);
3385
3385
  const matchParentChildProps = parentProps && parentProps.childProps;
3386
3386
  if (matchParent) {
3387
3387
  if (matchParentIsString) {
@@ -3429,19 +3429,19 @@ var require_create3 = __commonJS({
3429
3429
  syncProps: () => syncProps
3430
3430
  });
3431
3431
  module2.exports = __toCommonJS2(create_exports);
3432
- var import_utils24 = require_cjs();
3432
+ var import_utils25 = require_cjs();
3433
3433
  var import_ignore = require_ignore2();
3434
3434
  var import_inherit = require_inherit2();
3435
3435
  var createPropsStack = (element, parent) => {
3436
3436
  const { props: props4, __ref } = element;
3437
3437
  const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
3438
- if ((0, import_utils24.isObject)(props4))
3438
+ if ((0, import_utils25.isObject)(props4))
3439
3439
  propsStack.push(props4);
3440
3440
  else if (props4 === "inherit" && parent.props)
3441
3441
  propsStack.push(parent.props);
3442
3442
  else if (props4)
3443
3443
  propsStack.push(props4);
3444
- if ((0, import_utils24.isArray)(__ref.__extend)) {
3444
+ if ((0, import_utils25.isArray)(__ref.__extend)) {
3445
3445
  __ref.__extend.forEach((extend) => {
3446
3446
  if (extend.props && extend.props !== props4)
3447
3447
  propsStack.push(extend.props);
@@ -3456,10 +3456,10 @@ var require_create3 = __commonJS({
3456
3456
  props4.forEach((v) => {
3457
3457
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
3458
3458
  return;
3459
- const execProps = (0, import_utils24.exec)(v, element);
3460
- element.props = (0, import_utils24.deepMerge)(
3459
+ const execProps = (0, import_utils25.exec)(v, element);
3460
+ element.props = (0, import_utils25.deepMerge)(
3461
3461
  mergedProps,
3462
- (0, import_utils24.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3462
+ (0, import_utils25.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3463
3463
  import_ignore.IGNORE_PROPS_PARAMS
3464
3464
  );
3465
3465
  });
@@ -3597,7 +3597,7 @@ var require_object2 = __commonJS({
3597
3597
  METHODS_EXL: () => METHODS_EXL,
3598
3598
  clone: () => clone,
3599
3599
  deepClone: () => deepClone4,
3600
- deepMerge: () => deepMerge5,
3600
+ deepMerge: () => deepMerge7,
3601
3601
  flattenRecursive: () => flattenRecursive,
3602
3602
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
3603
3603
  mergeArray: () => mergeArray,
@@ -3607,17 +3607,17 @@ var require_object2 = __commonJS({
3607
3607
  overwriteShallow: () => overwriteShallow2
3608
3608
  });
3609
3609
  module2.exports = __toCommonJS2(object_exports);
3610
- var import_utils24 = require_cjs();
3610
+ var import_utils25 = require_cjs();
3611
3611
  var import_state2 = require_cjs5();
3612
3612
  var import_props = require_props();
3613
3613
  var import_methods = require_methods2();
3614
- var METHODS_EXL = (0, import_utils24.joinArrays)(
3614
+ var METHODS_EXL = (0, import_utils25.joinArrays)(
3615
3615
  ["node", "state", "context", "extend"],
3616
3616
  import_methods.METHODS,
3617
3617
  import_state2.IGNORE_STATE_PARAMS,
3618
3618
  import_props.IGNORE_PROPS_PARAMS
3619
3619
  );
3620
- var deepMerge5 = (element, extend, exclude = METHODS_EXL) => {
3620
+ var deepMerge7 = (element, extend, exclude = METHODS_EXL) => {
3621
3621
  for (const e in extend) {
3622
3622
  if (exclude.includes(e))
3623
3623
  continue;
@@ -3625,8 +3625,8 @@ var require_object2 = __commonJS({
3625
3625
  const extendProp = extend[e];
3626
3626
  if (elementProp === void 0) {
3627
3627
  element[e] = extendProp;
3628
- } else if ((0, import_utils24.isObjectLike)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3629
- deepMerge5(elementProp, extendProp);
3628
+ } else if ((0, import_utils25.isObjectLike)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3629
+ deepMerge7(elementProp, extendProp);
3630
3630
  }
3631
3631
  }
3632
3632
  return element;
@@ -3641,15 +3641,15 @@ var require_object2 = __commonJS({
3641
3641
  return o;
3642
3642
  };
3643
3643
  var deepClone4 = (obj, exclude = METHODS_EXL) => {
3644
- const o = (0, import_utils24.isArray)(obj) ? [] : {};
3644
+ const o = (0, import_utils25.isArray)(obj) ? [] : {};
3645
3645
  for (const e in obj) {
3646
3646
  if (exclude.includes(e))
3647
3647
  continue;
3648
3648
  let objProp = obj[e];
3649
- if (e === "extend" && (0, import_utils24.isArray)(objProp)) {
3649
+ if (e === "extend" && (0, import_utils25.isArray)(objProp)) {
3650
3650
  objProp = mergeArray(objProp, exclude);
3651
3651
  }
3652
- if ((0, import_utils24.isObjectLike)(objProp)) {
3652
+ if ((0, import_utils25.isObjectLike)(objProp)) {
3653
3653
  o[e] = deepClone4(objProp, exclude);
3654
3654
  } else
3655
3655
  o[e] = objProp;
@@ -3688,7 +3688,7 @@ var require_object2 = __commonJS({
3688
3688
  continue;
3689
3689
  const objProp = obj[e];
3690
3690
  const paramsProp = params[e];
3691
- if ((0, import_utils24.isObjectLike)(objProp) && (0, import_utils24.isObjectLike)(paramsProp)) {
3691
+ if ((0, import_utils25.isObjectLike)(objProp) && (0, import_utils25.isObjectLike)(paramsProp)) {
3692
3692
  overwriteDeep(objProp, paramsProp);
3693
3693
  } else if (paramsProp !== void 0) {
3694
3694
  obj[e] = paramsProp;
@@ -3697,15 +3697,15 @@ var require_object2 = __commonJS({
3697
3697
  return obj;
3698
3698
  };
3699
3699
  var mergeIfExisted = (a, b) => {
3700
- if ((0, import_utils24.isObjectLike)(a) && (0, import_utils24.isObjectLike)(b))
3701
- return deepMerge5(a, b);
3700
+ if ((0, import_utils25.isObjectLike)(a) && (0, import_utils25.isObjectLike)(b))
3701
+ return deepMerge7(a, b);
3702
3702
  return a || b;
3703
3703
  };
3704
3704
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
3705
- return arr.reduce((a, c) => deepMerge5(a, deepClone4(c, exclude)), {});
3705
+ return arr.reduce((a, c) => deepMerge7(a, deepClone4(c, exclude)), {});
3706
3706
  };
3707
3707
  var mergeAndCloneIfArray = (obj) => {
3708
- return (0, import_utils24.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
3708
+ return (0, import_utils25.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
3709
3709
  };
3710
3710
  var flattenRecursive = (param, prop, stack = []) => {
3711
3711
  const objectized = mergeAndCloneIfArray(param);
@@ -3760,7 +3760,7 @@ var require_extendUtils = __commonJS({
3760
3760
  setHashedExtend: () => setHashedExtend
3761
3761
  });
3762
3762
  module2.exports = __toCommonJS2(extendUtils_exports);
3763
- var import_utils24 = require_cjs();
3763
+ var import_utils25 = require_cjs();
3764
3764
  var ENV2 = "development";
3765
3765
  var generateHash = () => Math.random().toString(36).substring(2);
3766
3766
  var extendStackRegistry = {};
@@ -3770,7 +3770,7 @@ var require_extendUtils = __commonJS({
3770
3770
  };
3771
3771
  var setHashedExtend = (extend, stack) => {
3772
3772
  const hash2 = generateHash();
3773
- if (!(0, import_utils24.isString)(extend)) {
3773
+ if (!(0, import_utils25.isString)(extend)) {
3774
3774
  extend.__hash = hash2;
3775
3775
  }
3776
3776
  extendStackRegistry[hash2] = stack;
@@ -3796,9 +3796,9 @@ var require_extendUtils = __commonJS({
3796
3796
  var flattenExtend = (extend, stack, context) => {
3797
3797
  if (!extend)
3798
3798
  return stack;
3799
- if ((0, import_utils24.isArray)(extend))
3799
+ if ((0, import_utils25.isArray)(extend))
3800
3800
  return extractArrayExtend(extend, stack, context);
3801
- if ((0, import_utils24.isString)(extend))
3801
+ if ((0, import_utils25.isString)(extend))
3802
3802
  extend = fallbackStringExtend(extend, context);
3803
3803
  stack.push(extend);
3804
3804
  if (extend.extend)
@@ -3811,9 +3811,9 @@ var require_extendUtils = __commonJS({
3811
3811
  if (["parent", "node", "__element"].indexOf(prop) > -1)
3812
3812
  continue;
3813
3813
  const objProp = obj[prop];
3814
- if ((0, import_utils24.isObject)(objProp)) {
3814
+ if ((0, import_utils25.isObject)(objProp)) {
3815
3815
  o[prop] = deepCloneExtend(objProp);
3816
- } else if ((0, import_utils24.isArray)(objProp)) {
3816
+ } else if ((0, import_utils25.isArray)(objProp)) {
3817
3817
  o[prop] = objProp.map((x) => x);
3818
3818
  } else
3819
3819
  o[prop] = objProp;
@@ -3828,14 +3828,14 @@ var require_extendUtils = __commonJS({
3828
3828
  const extendProp = extend[e];
3829
3829
  if (elementProp === void 0) {
3830
3830
  element[e] = extendProp;
3831
- } else if ((0, import_utils24.isObject)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3831
+ } else if ((0, import_utils25.isObject)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3832
3832
  deepMergeExtend(elementProp, extendProp);
3833
- } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isArray)(extendProp)) {
3833
+ } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isArray)(extendProp)) {
3834
3834
  element[e] = elementProp.concat(extendProp);
3835
- } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3835
+ } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3836
3836
  const obj = deepMergeExtend({}, elementProp);
3837
3837
  element[e] = deepMergeExtend(obj, extendProp);
3838
- } else if (elementProp === void 0 && (0, import_utils24.isFunction)(extendProp)) {
3838
+ } else if (elementProp === void 0 && (0, import_utils25.isFunction)(extendProp)) {
3839
3839
  element[e] = extendProp;
3840
3840
  }
3841
3841
  }
@@ -3848,7 +3848,7 @@ var require_extendUtils = __commonJS({
3848
3848
  };
3849
3849
  var fallbackStringExtend = (extend, context, options = {}) => {
3850
3850
  const COMPONENTS = context && context.components || options.components;
3851
- if ((0, import_utils24.isString)(extend)) {
3851
+ if ((0, import_utils25.isString)(extend)) {
3852
3852
  const componentExists = COMPONENTS[extend] || COMPONENTS["smbls." + extend];
3853
3853
  console.log(extend, componentExists);
3854
3854
  if (COMPONENTS && componentExists) {
@@ -3906,27 +3906,27 @@ var require_extend = __commonJS({
3906
3906
  applyExtend: () => applyExtend
3907
3907
  });
3908
3908
  module2.exports = __toCommonJS2(extend_exports);
3909
- var import_utils24 = require_cjs();
3910
- var import_utils25 = require_utils();
3909
+ var import_utils25 = require_cjs();
3910
+ var import_utils26 = require_utils();
3911
3911
  var ENV2 = "development";
3912
3912
  var applyExtend = (element, parent, options = {}) => {
3913
- if ((0, import_utils24.isFunction)(element))
3914
- element = (0, import_utils24.exec)(element, parent);
3913
+ if ((0, import_utils25.isFunction)(element))
3914
+ element = (0, import_utils25.exec)(element, parent);
3915
3915
  let { extend, props: props4, context, __ref } = element;
3916
- extend = (0, import_utils25.fallbackStringExtend)(extend, context, options);
3917
- const extendStack = (0, import_utils25.getExtendStack)(extend, context);
3916
+ extend = (0, import_utils26.fallbackStringExtend)(extend, context, options);
3917
+ const extendStack = (0, import_utils26.getExtendStack)(extend, context);
3918
3918
  if (ENV2 !== "test" || ENV2 !== "development")
3919
3919
  delete element.extend;
3920
3920
  let childExtendStack = [];
3921
3921
  if (parent) {
3922
3922
  element.parent = parent;
3923
3923
  if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
3924
- childExtendStack = (0, import_utils25.getExtendStack)(parent.childExtend, context);
3924
+ childExtendStack = (0, import_utils26.getExtendStack)(parent.childExtend, context);
3925
3925
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
3926
3926
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
3927
3927
  const canExtendRecursive = element.key !== "__text";
3928
3928
  if (canExtendRecursive) {
3929
- const childExtendRecursiveStack = (0, import_utils25.getExtendStack)(parent.childExtendRecursive, context);
3929
+ const childExtendRecursiveStack = (0, import_utils26.getExtendStack)(parent.childExtendRecursive, context);
3930
3930
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
3931
3931
  element.childExtendRecursive = parent.childExtendRecursive;
3932
3932
  }
@@ -3937,7 +3937,7 @@ var require_extend = __commonJS({
3937
3937
  const childExtendLength = childExtendStack.length;
3938
3938
  let stack = [];
3939
3939
  if (extendLength && childExtendLength) {
3940
- stack = (0, import_utils25.jointStacks)(extendStack, childExtendStack);
3940
+ stack = (0, import_utils26.jointStacks)(extendStack, childExtendStack);
3941
3941
  } else if (extendLength) {
3942
3942
  stack = extendStack;
3943
3943
  } else if (childExtendLength) {
@@ -3945,19 +3945,19 @@ var require_extend = __commonJS({
3945
3945
  } else if (!options.extend)
3946
3946
  return element;
3947
3947
  if (options.extend) {
3948
- const defaultOptionsExtend = (0, import_utils25.getExtendStack)(options.extend, context);
3948
+ const defaultOptionsExtend = (0, import_utils26.getExtendStack)(options.extend, context);
3949
3949
  stack = [].concat(stack, defaultOptionsExtend);
3950
3950
  }
3951
3951
  if (__ref)
3952
3952
  __ref.__extend = stack;
3953
- let mergedExtend = (0, import_utils25.cloneAndMergeArrayExtend)(stack);
3953
+ let mergedExtend = (0, import_utils26.cloneAndMergeArrayExtend)(stack);
3954
3954
  const COMPONENTS = context && context.components || options.components;
3955
- const component = (0, import_utils24.exec)(element.component || mergedExtend.component, element);
3955
+ const component = (0, import_utils25.exec)(element.component || mergedExtend.component, element);
3956
3956
  if (component && COMPONENTS && COMPONENTS[component]) {
3957
- const componentExtend = (0, import_utils25.cloneAndMergeArrayExtend)((0, import_utils25.getExtendStack)(COMPONENTS[component]));
3958
- mergedExtend = (0, import_utils25.deepMergeExtend)(componentExtend, mergedExtend);
3957
+ const componentExtend = (0, import_utils26.cloneAndMergeArrayExtend)((0, import_utils26.getExtendStack)(COMPONENTS[component]));
3958
+ mergedExtend = (0, import_utils26.deepMergeExtend)(componentExtend, mergedExtend);
3959
3959
  }
3960
- return (0, import_utils25.deepMergeExtend)(element, mergedExtend);
3960
+ return (0, import_utils26.deepMergeExtend)(element, mergedExtend);
3961
3961
  };
3962
3962
  }
3963
3963
  });
@@ -3989,18 +3989,18 @@ var require_component = __commonJS({
3989
3989
  applyComponentFromContext: () => applyComponentFromContext,
3990
3990
  applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
3991
3991
  applyVariant: () => applyVariant,
3992
- checkIfKeyIsComponent: () => checkIfKeyIsComponent,
3992
+ checkIfKeyIsComponent: () => checkIfKeyIsComponent2,
3993
3993
  extendizeByKey: () => extendizeByKey,
3994
3994
  hasVariantProp: () => hasVariantProp,
3995
3995
  isVariant: () => isVariant,
3996
3996
  overwriteVariant: () => overwriteVariant
3997
3997
  });
3998
3998
  module2.exports = __toCommonJS2(component_exports);
3999
- var import_utils24 = require_cjs();
3999
+ var import_utils25 = require_cjs();
4000
4000
  var import_extend = require_extend();
4001
4001
  var ENV2 = "development";
4002
- var checkIfKeyIsComponent = (key) => {
4003
- const isFirstKeyString = (0, import_utils24.isString)(key);
4002
+ var checkIfKeyIsComponent2 = (key) => {
4003
+ const isFirstKeyString = (0, import_utils25.isString)(key);
4004
4004
  if (!isFirstKeyString)
4005
4005
  return;
4006
4006
  const firstCharKey = key.slice(0, 1);
@@ -4008,7 +4008,7 @@ var require_component = __commonJS({
4008
4008
  };
4009
4009
  var addAdditionalExtend = (newExtend, element) => {
4010
4010
  const { extend } = element;
4011
- const preserveExtend = (0, import_utils24.isArray)(extend) ? extend : [extend];
4011
+ const preserveExtend = (0, import_utils25.isArray)(extend) ? extend : [extend];
4012
4012
  return {
4013
4013
  ...element,
4014
4014
  extend: [newExtend].concat(preserveExtend)
@@ -4033,12 +4033,12 @@ var require_component = __commonJS({
4033
4033
  };
4034
4034
  } else if (extend) {
4035
4035
  addAdditionalExtend(extendKey, element);
4036
- } else if ((0, import_utils24.isFunction)(element)) {
4036
+ } else if ((0, import_utils25.isFunction)(element)) {
4037
4037
  console.log(element);
4038
4038
  return {
4039
4039
  extend: extendKey,
4040
4040
  tag,
4041
- props: { ...(0, import_utils24.exec)(element, parent) }
4041
+ props: { ...(0, import_utils25.exec)(element, parent) }
4042
4042
  };
4043
4043
  }
4044
4044
  };
@@ -4051,8 +4051,8 @@ var require_component = __commonJS({
4051
4051
  return;
4052
4052
  const { components } = context;
4053
4053
  const { extend } = element;
4054
- const execExtend = (0, import_utils24.exec)(extend, element);
4055
- if ((0, import_utils24.isString)(execExtend)) {
4054
+ const execExtend = (0, import_utils25.exec)(extend, element);
4055
+ if ((0, import_utils25.isString)(execExtend)) {
4056
4056
  if (components[execExtend])
4057
4057
  element.extend = components[execExtend];
4058
4058
  else {
@@ -4065,29 +4065,29 @@ var require_component = __commonJS({
4065
4065
  }
4066
4066
  };
4067
4067
  var isVariant = (param) => {
4068
- if (!(0, import_utils24.isString)(param))
4068
+ if (!(0, import_utils25.isString)(param))
4069
4069
  return;
4070
4070
  const firstCharKey = param.slice(0, 1);
4071
4071
  return firstCharKey === ".";
4072
4072
  };
4073
4073
  var hasVariantProp = (element) => {
4074
4074
  const { props: props4 } = element;
4075
- if ((0, import_utils24.isObject)(props4) && (0, import_utils24.isString)(props4.variant))
4075
+ if ((0, import_utils25.isObject)(props4) && (0, import_utils25.isString)(props4.variant))
4076
4076
  return true;
4077
4077
  };
4078
4078
  var overwriteVariant = (element, variant, variantProps) => {
4079
4079
  let variantElement = element[variant];
4080
4080
  if (!variantElement)
4081
4081
  return;
4082
- const props4 = (0, import_utils24.isObject)(variantProps) ? variantProps : {};
4083
- if ((0, import_utils24.isString)(variantElement)) {
4082
+ const props4 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
4083
+ if ((0, import_utils25.isString)(variantElement)) {
4084
4084
  variantElement = {
4085
4085
  extend: [{ props: props4 }, variantElement]
4086
4086
  };
4087
4087
  } else if (variantElement.extend) {
4088
4088
  variantElement = addAdditionalExtend({ props: props4 }, variantElement);
4089
4089
  }
4090
- return (0, import_utils24.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
4090
+ return (0, import_utils25.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
4091
4091
  };
4092
4092
  var applyVariant = (element) => {
4093
4093
  const { props: props4 } = element;
@@ -4162,8 +4162,8 @@ var require_iterate = __commonJS({
4162
4162
  throughUpdatedExec: () => throughUpdatedExec
4163
4163
  });
4164
4164
  module2.exports = __toCommonJS2(iterate_exports);
4165
- var import_utils24 = require_cjs();
4166
- var import_utils25 = require_utils();
4165
+ var import_utils25 = require_cjs();
4166
+ var import_utils26 = require_utils();
4167
4167
  var import_methods = require_methods2();
4168
4168
  var throughInitialExec = (element, exclude = {}) => {
4169
4169
  const { __ref: ref } = element;
@@ -4171,13 +4171,13 @@ var require_iterate = __commonJS({
4171
4171
  if (exclude[param])
4172
4172
  continue;
4173
4173
  const prop = element[param];
4174
- if ((0, import_utils24.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils25.isVariant)(param)) {
4174
+ if ((0, import_utils25.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils26.isVariant)(param)) {
4175
4175
  ref.__exec[param] = prop;
4176
4176
  element[param] = prop(element, element.state);
4177
4177
  }
4178
4178
  }
4179
4179
  };
4180
- var throughUpdatedExec = (element, options = { excludes: import_utils25.METHODS_EXL }) => {
4180
+ var throughUpdatedExec = (element, options = { excludes: import_utils26.METHODS_EXL }) => {
4181
4181
  const { __ref: ref } = element;
4182
4182
  const changes = {};
4183
4183
  for (const param in ref.__exec) {
@@ -4186,13 +4186,13 @@ var require_iterate = __commonJS({
4186
4186
  if (isDefinedParam)
4187
4187
  continue;
4188
4188
  const newExec = ref.__exec[param](element, element.state, element.context);
4189
- const execReturnsString = (0, import_utils24.isString)(newExec) || (0, import_utils24.isNumber)(newExec);
4189
+ const execReturnsString = (0, import_utils25.isString)(newExec) || (0, import_utils25.isNumber)(newExec);
4190
4190
  if (prop && prop.node && execReturnsString) {
4191
- (0, import_utils25.overwrite)(prop, { text: newExec }, options);
4191
+ (0, import_utils26.overwrite)(prop, { text: newExec }, options);
4192
4192
  } else if (newExec !== prop) {
4193
- if ((0, import_utils25.checkIfKeyIsComponent)(param)) {
4194
- const { extend, ...newElem } = (0, import_utils25.extendizeByKey)(newExec, element, param);
4195
- (0, import_utils25.overwrite)(prop, newElem, options);
4193
+ if ((0, import_utils26.checkIfKeyIsComponent)(param)) {
4194
+ const { extend, ...newElem } = (0, import_utils26.extendizeByKey)(newExec, element, param);
4195
+ (0, import_utils26.overwrite)(prop, newElem, options);
4196
4196
  } else {
4197
4197
  ref.__cached[param] = changes[param] = prop;
4198
4198
  element[param] = newExec;
@@ -4204,16 +4204,16 @@ var require_iterate = __commonJS({
4204
4204
  var throughInitialDefine = (element) => {
4205
4205
  const { define, context, __ref: ref } = element;
4206
4206
  let defineObj = {};
4207
- const hasGlobalDefine = context && (0, import_utils24.isObject)(context.define);
4208
- if ((0, import_utils24.isObject)(define))
4207
+ const hasGlobalDefine = context && (0, import_utils25.isObject)(context.define);
4208
+ if ((0, import_utils25.isObject)(define))
4209
4209
  defineObj = { ...define };
4210
4210
  if (hasGlobalDefine)
4211
4211
  defineObj = { ...defineObj, ...context.define };
4212
4212
  for (const param in defineObj) {
4213
4213
  let elementProp = element[param];
4214
- if ((0, import_utils24.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils25.isVariant)(param)) {
4214
+ if ((0, import_utils25.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils26.isVariant)(param)) {
4215
4215
  ref.__exec[param] = elementProp;
4216
- const execParam2 = elementProp = (0, import_utils24.exec)(elementProp, element);
4216
+ const execParam2 = elementProp = (0, import_utils25.exec)(elementProp, element);
4217
4217
  if (execParam2) {
4218
4218
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
4219
4219
  ref.__defineCache[param] = elementProp;
@@ -4229,15 +4229,15 @@ var require_iterate = __commonJS({
4229
4229
  const { context, define, __ref: ref } = element;
4230
4230
  const changes = {};
4231
4231
  let obj = {};
4232
- if ((0, import_utils24.isObject)(define))
4232
+ if ((0, import_utils25.isObject)(define))
4233
4233
  obj = { ...define };
4234
- if ((0, import_utils24.isObject)(context && context.define))
4234
+ if ((0, import_utils25.isObject)(context && context.define))
4235
4235
  obj = { ...obj, ...context.define };
4236
4236
  for (const param in obj) {
4237
4237
  const execParam = ref.__exec[param];
4238
4238
  if (execParam)
4239
4239
  ref.__defineCache[param] = execParam(element, element.state, element.context);
4240
- const cached = (0, import_utils24.exec)(ref.__defineCache[param], element);
4240
+ const cached = (0, import_utils25.exec)(ref.__defineCache[param], element);
4241
4241
  const newExecParam = obj[param](cached, element, element.state, element.context);
4242
4242
  if (newExecParam)
4243
4243
  element[param] = newExecParam;
@@ -4273,7 +4273,7 @@ var require_applyParam = __commonJS({
4273
4273
  applyParam: () => applyParam
4274
4274
  });
4275
4275
  module2.exports = __toCommonJS2(applyParam_exports);
4276
- var import_utils24 = require_cjs();
4276
+ var import_utils25 = require_cjs();
4277
4277
  var import_mixins = require_mixins();
4278
4278
  var applyParam = (param, element, options) => {
4279
4279
  const { node: node2, context, __ref: ref } = element;
@@ -4286,7 +4286,7 @@ var require_applyParam = __commonJS({
4286
4286
  if (!ref.__if)
4287
4287
  return;
4288
4288
  if (isGlobalTransformer && !hasContextDefine) {
4289
- if ((0, import_utils24.isFunction)(isGlobalTransformer)) {
4289
+ if ((0, import_utils25.isFunction)(isGlobalTransformer)) {
4290
4290
  isGlobalTransformer(prop, element, node2, options);
4291
4291
  return;
4292
4292
  }
@@ -4333,7 +4333,7 @@ var require_node2 = __commonJS({
4333
4333
  default: () => node_default
4334
4334
  });
4335
4335
  module2.exports = __toCommonJS2(node_exports);
4336
- var import_utils24 = require_cjs();
4336
+ var import_utils25 = require_cjs();
4337
4337
  var import_event = require_cjs3();
4338
4338
  var import_render = require_cjs4();
4339
4339
  var import_methods = require_methods2();
@@ -4341,7 +4341,7 @@ var require_node2 = __commonJS({
4341
4341
  var import_iterate = require_iterate();
4342
4342
  var import_mixins = require_mixins();
4343
4343
  var import_applyParam = require_applyParam();
4344
- var import_utils25 = require_utils();
4344
+ var import_utils26 = require_utils();
4345
4345
  var ENV2 = "development";
4346
4346
  var createNode = (element, options) => {
4347
4347
  let { node: node2, tag, __ref: ref } = element;
@@ -4358,24 +4358,24 @@ var require_node2 = __commonJS({
4358
4358
  }
4359
4359
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
4360
4360
  node2.ref = element;
4361
- if ((0, import_utils24.isFunction)(node2.setAttribute))
4361
+ if ((0, import_utils25.isFunction)(node2.setAttribute))
4362
4362
  node2.setAttribute("key", element.key);
4363
4363
  }
4364
4364
  (0, import_iterate.throughInitialDefine)(element);
4365
4365
  (0, import_iterate.throughInitialExec)(element);
4366
4366
  if (element.tag !== "string" && element.tag !== "fragment") {
4367
- if (isNewNode && (0, import_utils24.isObject)(element.on))
4367
+ if (isNewNode && (0, import_utils25.isObject)(element.on))
4368
4368
  (0, import_event.applyEventsOnNode)(element);
4369
4369
  }
4370
4370
  for (const param in element) {
4371
4371
  const value2 = element[param];
4372
- if ((0, import_utils24.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils25.isVariant)(param) || (0, import_utils24.isObject)(import_mixins.registry[param]))
4372
+ if ((0, import_utils25.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils26.isVariant)(param) || (0, import_utils25.isObject)(import_mixins.registry[param]))
4373
4373
  continue;
4374
4374
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4375
4375
  if (isElement) {
4376
4376
  const { hasDefine, hasContextDefine } = isElement;
4377
4377
  if (element[param] && !hasDefine && !hasContextDefine) {
4378
- const createAsync = () => (0, import_create.default)((0, import_utils24.exec)(value2, element), element, param, options);
4378
+ const createAsync = () => (0, import_create.default)((0, import_utils25.exec)(value2, element), element, param, options);
4379
4379
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
4380
4380
  window.requestAnimationFrame(() => createAsync());
4381
4381
  } else
@@ -4573,7 +4573,7 @@ var require_types2 = __commonJS({
4573
4573
  isNumber: () => isNumber,
4574
4574
  isObject: () => isObject12,
4575
4575
  isObjectLike: () => isObjectLike3,
4576
- isString: () => isString10,
4576
+ isString: () => isString11,
4577
4577
  isUndefined: () => isUndefined4
4578
4578
  });
4579
4579
  module2.exports = __toCommonJS2(types_exports);
@@ -4583,7 +4583,7 @@ var require_types2 = __commonJS({
4583
4583
  return false;
4584
4584
  return typeof arg === "object" && arg.constructor === Object;
4585
4585
  };
4586
- var isString10 = (arg) => typeof arg === "string";
4586
+ var isString11 = (arg) => typeof arg === "string";
4587
4587
  var isNumber = (arg) => typeof arg === "number";
4588
4588
  var isFunction4 = (arg) => typeof arg === "function";
4589
4589
  var isBoolean = (arg) => arg === true || arg === false;
@@ -4595,7 +4595,7 @@ var require_types2 = __commonJS({
4595
4595
  return typeof arg === "object";
4596
4596
  };
4597
4597
  var isDefined2 = (arg) => {
4598
- return isObject12(arg) || isObjectLike3(arg) || isString10(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
4598
+ return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
4599
4599
  };
4600
4600
  var isUndefined4 = (arg) => {
4601
4601
  return arg === void 0;
@@ -4604,7 +4604,7 @@ var require_types2 = __commonJS({
4604
4604
  boolean: isBoolean,
4605
4605
  array: isArray6,
4606
4606
  object: isObject12,
4607
- string: isString10,
4607
+ string: isString11,
4608
4608
  number: isNumber,
4609
4609
  null: isNull,
4610
4610
  function: isFunction4,
@@ -4812,7 +4812,7 @@ var require_object3 = __commonJS({
4812
4812
  deepClone: () => deepClone4,
4813
4813
  deepCloneExclude: () => deepCloneExclude,
4814
4814
  deepDestringify: () => deepDestringify,
4815
- deepMerge: () => deepMerge5,
4815
+ deepMerge: () => deepMerge7,
4816
4816
  deepStringify: () => deepStringify,
4817
4817
  detachFunctionsFromObject: () => detachFunctionsFromObject,
4818
4818
  diff: () => diff,
@@ -4865,7 +4865,7 @@ var require_object3 = __commonJS({
4865
4865
  }
4866
4866
  return element;
4867
4867
  };
4868
- var deepMerge5 = (element, extend, excludeFrom = []) => {
4868
+ var deepMerge7 = (element, extend, excludeFrom = []) => {
4869
4869
  for (const e in extend) {
4870
4870
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
4871
4871
  if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
@@ -4873,7 +4873,7 @@ var require_object3 = __commonJS({
4873
4873
  const elementProp = element[e];
4874
4874
  const extendProp = extend[e];
4875
4875
  if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
4876
- deepMerge5(elementProp, extendProp);
4876
+ deepMerge7(elementProp, extendProp);
4877
4877
  } else if (elementProp === void 0) {
4878
4878
  element[e] = extendProp;
4879
4879
  }
@@ -4913,7 +4913,7 @@ var require_object3 = __commonJS({
4913
4913
  return o;
4914
4914
  };
4915
4915
  var mergeArrayExclude = (arr, excl = []) => {
4916
- return arr.reduce((acc, curr) => deepMerge5(acc, deepCloneExclude(curr, excl)), {});
4916
+ return arr.reduce((acc, curr) => deepMerge7(acc, deepCloneExclude(curr, excl)), {});
4917
4917
  };
4918
4918
  var deepClone4 = (obj, excludeFrom = []) => {
4919
4919
  const o = (0, import_types.isArray)(obj) ? [] : {};
@@ -5158,7 +5158,7 @@ var require_object3 = __commonJS({
5158
5158
  };
5159
5159
  var mergeIfExisted = (a, b) => {
5160
5160
  if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
5161
- return deepMerge5(a, b);
5161
+ return deepMerge7(a, b);
5162
5162
  return a || b;
5163
5163
  };
5164
5164
  var flattenRecursive = (param, prop, stack = []) => {
@@ -5580,7 +5580,7 @@ var require_methods3 = __commonJS({
5580
5580
  DEFAULT_METHODS: () => DEFAULT_METHODS
5581
5581
  });
5582
5582
  module2.exports = __toCommonJS2(methods_exports);
5583
- var import_utils24 = require_cjs6();
5583
+ var import_utils25 = require_cjs6();
5584
5584
  var DEFAULT_METHODS = {
5585
5585
  key: {},
5586
5586
  tag: {},
@@ -5601,7 +5601,7 @@ var require_methods3 = __commonJS({
5601
5601
  text: (element, state) => {
5602
5602
  element.ref.text = {
5603
5603
  tag: "text",
5604
- text: (0, import_utils24.exec)(element.text, element, state)
5604
+ text: (0, import_utils25.exec)(element.text, element, state)
5605
5605
  };
5606
5606
  },
5607
5607
  innerHTML: {},
@@ -5838,19 +5838,19 @@ var require_update2 = __commonJS({
5838
5838
  default: () => update_default
5839
5839
  });
5840
5840
  module2.exports = __toCommonJS2(update_exports);
5841
- var import_utils24 = require_cjs();
5841
+ var import_utils25 = require_cjs();
5842
5842
  var import_event = require_cjs3();
5843
5843
  var import_methods = require_methods2();
5844
5844
  var import_props = require_props();
5845
5845
  var import_state2 = require_cjs5();
5846
- var import_utils25 = require_utils();
5846
+ var import_utils26 = require_utils();
5847
5847
  var import_create = __toESM2(require_create4(), 1);
5848
5848
  var import_iterate = require_iterate();
5849
5849
  var import_mixins = require_mixins();
5850
5850
  var import_applyParam = require_applyParam();
5851
5851
  var import_options3 = __toESM2(require_options(), 1);
5852
5852
  var snapshot = {
5853
- snapshotId: import_utils24.createSnapshotId
5853
+ snapshotId: import_utils25.createSnapshotId
5854
5854
  };
5855
5855
  var UPDATE_DEFAULT_OPTIONS = {
5856
5856
  stackChanges: false,
@@ -5858,7 +5858,7 @@ var require_update2 = __commonJS({
5858
5858
  preventRecursive: false,
5859
5859
  currentSnapshot: false,
5860
5860
  calleeElement: false,
5861
- excludes: import_utils25.METHODS_EXL
5861
+ excludes: import_utils26.METHODS_EXL
5862
5862
  };
5863
5863
  var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
5864
5864
  const element = this;
@@ -5868,14 +5868,14 @@ var require_update2 = __commonJS({
5868
5868
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
5869
5869
  return;
5870
5870
  if (!excludes)
5871
- (0, import_utils24.merge)(options, UPDATE_DEFAULT_OPTIONS);
5871
+ (0, import_utils25.merge)(options, UPDATE_DEFAULT_OPTIONS);
5872
5872
  let ref = element.__ref;
5873
5873
  if (!ref)
5874
5874
  ref = element.__ref = {};
5875
5875
  const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
5876
5876
  if (snapshotHasUpdated)
5877
5877
  return;
5878
- if ((0, import_utils24.isString)(params) || (0, import_utils24.isNumber)(params)) {
5878
+ if ((0, import_utils25.isString)(params) || (0, import_utils25.isNumber)(params)) {
5879
5879
  params = { text: params };
5880
5880
  }
5881
5881
  const inheritState = inheritStateUpdates(element, options);
@@ -5886,7 +5886,7 @@ var require_update2 = __commonJS({
5886
5886
  return;
5887
5887
  if (ref.__if && !options.preventPropsUpdate) {
5888
5888
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
5889
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils24.isFunction)(v));
5889
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils25.isFunction)(v));
5890
5890
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
5891
5891
  if (props4)
5892
5892
  (0, import_props.updateProps)(props4, element, parent);
@@ -5896,14 +5896,14 @@ var require_update2 = __commonJS({
5896
5896
  if (initUpdateReturns === false)
5897
5897
  return element;
5898
5898
  }
5899
- const overwriteChanges = (0, import_utils24.overwriteDeep)(element, params, import_utils25.METHODS_EXL);
5899
+ const overwriteChanges = (0, import_utils25.overwriteDeep)(element, params, import_utils26.METHODS_EXL);
5900
5900
  const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
5901
5901
  const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
5902
5902
  if (!options.isForced) {
5903
5903
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
5904
5904
  }
5905
5905
  if (options.stackChanges && element.__stackChanges) {
5906
- const stackChanges = (0, import_utils24.merge)(definedChanges, (0, import_utils24.merge)(execChanges, overwriteChanges));
5906
+ const stackChanges = (0, import_utils25.merge)(definedChanges, (0, import_utils25.merge)(execChanges, overwriteChanges));
5907
5907
  element.__stackChanges.push(stackChanges);
5908
5908
  }
5909
5909
  if (!ref.__if)
@@ -5914,16 +5914,16 @@ var require_update2 = __commonJS({
5914
5914
  for (const param in element) {
5915
5915
  const prop = element[param];
5916
5916
  const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
5917
- const isInPreventUpdate = (0, import_utils24.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
5918
- const isInPreventDefineUpdate = (0, import_utils24.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
5919
- if ((0, import_utils24.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils24.isObject)(import_mixins.registry[param]) || (0, import_utils25.isVariant)(param))
5917
+ const isInPreventUpdate = (0, import_utils25.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
5918
+ const isInPreventDefineUpdate = (0, import_utils25.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
5919
+ if ((0, import_utils25.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_utils25.isObject)(import_mixins.registry[param]) || (0, import_utils26.isVariant)(param))
5920
5920
  continue;
5921
5921
  if (options.preventStateUpdate === "once")
5922
5922
  options.preventStateUpdate = false;
5923
5923
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
5924
5924
  if (isElement) {
5925
5925
  const { hasDefine, hasContextDefine } = isElement;
5926
- const canUpdate = (0, import_utils24.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
5926
+ const canUpdate = (0, import_utils25.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
5927
5927
  if (!canUpdate)
5928
5928
  continue;
5929
5929
  const lazyLoad = element.props.lazyLoad || options.lazyLoad;
@@ -5932,7 +5932,7 @@ var require_update2 = __commonJS({
5932
5932
  currentSnapshot: snapshotOnCallee,
5933
5933
  calleeElement
5934
5934
  });
5935
- lazyLoad ? import_utils24.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
5935
+ lazyLoad ? import_utils25.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
5936
5936
  }
5937
5937
  }
5938
5938
  if (!options.preventUpdateListener)
@@ -5955,7 +5955,7 @@ var require_update2 = __commonJS({
5955
5955
  };
5956
5956
  var checkIfOnUpdate = (element, parent, options) => {
5957
5957
  var _a;
5958
- if (!(0, import_utils24.isFunction)(element.if) || !parent)
5958
+ if (!(0, import_utils25.isFunction)(element.if) || !parent)
5959
5959
  return;
5960
5960
  const ref = element.__ref;
5961
5961
  const ifPassed = element.if(element, element.state, element.context, options);
@@ -5981,7 +5981,7 @@ var require_update2 = __commonJS({
5981
5981
  node: hasPrevious || hasNext
5982
5982
  };
5983
5983
  const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create, attachOptions);
5984
- if (options.preventUpdate !== true && element.on && (0, import_utils24.isFunction)(element.on.update)) {
5984
+ if (options.preventUpdate !== true && element.on && (0, import_utils25.isFunction)(element.on.update)) {
5985
5985
  (0, import_event.applyEvent)(element.on.update, created, created.state);
5986
5986
  }
5987
5987
  return created;
@@ -6002,9 +6002,9 @@ var require_update2 = __commonJS({
6002
6002
  element.state = parent && parent.state || {};
6003
6003
  return;
6004
6004
  }
6005
- const shouldForceFunctionState = (0, import_utils24.isFunction)(stateKey) && !isHoisted && execStateFunction;
6005
+ const shouldForceFunctionState = (0, import_utils25.isFunction)(stateKey) && !isHoisted && execStateFunction;
6006
6006
  if (shouldForceFunctionState) {
6007
- const execState = (0, import_utils24.exec)(stateKey, element);
6007
+ const execState = (0, import_utils25.exec)(stateKey, element);
6008
6008
  state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true });
6009
6009
  return;
6010
6010
  }
@@ -6072,7 +6072,7 @@ var require_set2 = __commonJS({
6072
6072
  addMethods: () => addMethods
6073
6073
  });
6074
6074
  module2.exports = __toCommonJS2(set_exports);
6075
- var import_utils24 = require_cjs();
6075
+ var import_utils25 = require_cjs();
6076
6076
  var import_set = __toESM2(require_set(), 1);
6077
6077
  var import_update = __toESM2(require_update2(), 1);
6078
6078
  var import__ = require_methods2();
@@ -6093,7 +6093,7 @@ var require_set2 = __commonJS({
6093
6093
  nextElement: import__.nextElement.bind(element),
6094
6094
  previousElement: import__.previousElement.bind(element)
6095
6095
  };
6096
- if ((0, import_utils24.isDevelopment)())
6096
+ if ((0, import_utils25.isDevelopment)())
6097
6097
  proto.log = import__.log.bind(element);
6098
6098
  Object.setPrototypeOf(element, proto);
6099
6099
  };
@@ -6149,7 +6149,7 @@ var require_create4 = __commonJS({
6149
6149
  var import_set = require_set2();
6150
6150
  var import_classList = require_classList();
6151
6151
  var import_iterate = require_iterate();
6152
- var import_utils24 = require_cjs();
6152
+ var import_utils25 = require_cjs();
6153
6153
  var import_options3 = __toESM2(require_options(), 1);
6154
6154
  var import_component = require_component();
6155
6155
  var ENV2 = "development";
@@ -6162,7 +6162,7 @@ var require_create4 = __commonJS({
6162
6162
  parent = redefineParent(element, parent, key);
6163
6163
  key = createKey(element, parent, key);
6164
6164
  const ref = addRef(element, parent, key);
6165
- ref.__initialProps = (0, import_utils24.deepClone)(element.props, []);
6165
+ ref.__initialProps = (0, import_utils25.deepClone)(element.props, []);
6166
6166
  applyContext(element, parent, options);
6167
6167
  (0, import_component.applyComponentFromContext)(element, parent, options);
6168
6168
  if (!ref.__skipCreate) {
@@ -6205,7 +6205,7 @@ var require_create4 = __commonJS({
6205
6205
  }
6206
6206
  return {};
6207
6207
  }
6208
- if ((0, import_utils24.isString)(key) && key.slice(0, 2 === "__")) {
6208
+ if ((0, import_utils25.isString)(key) && key.slice(0, 2 === "__")) {
6209
6209
  if (ENV2 === "test" || ENV2 === "development") {
6210
6210
  console.warn(key, "seems like to be in __ref");
6211
6211
  }
@@ -6232,7 +6232,7 @@ var require_create4 = __commonJS({
6232
6232
  var redefineParent = (element, parent, key, options) => {
6233
6233
  if (!parent)
6234
6234
  return import_tree.ROOT;
6235
- if ((0, import_utils24.isNode)(parent)) {
6235
+ if ((0, import_utils25.isNode)(parent)) {
6236
6236
  const parentNodeWrapper = { key: ":root", node: parent };
6237
6237
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
6238
6238
  return parentNodeWrapper;
@@ -6246,7 +6246,7 @@ var require_create4 = __commonJS({
6246
6246
  }
6247
6247
  };
6248
6248
  var createKey = (element, parent, key) => {
6249
- return ((0, import_utils24.exec)(key, element) || key || element.key || (0, import_utils24.generateKey)()).toString();
6249
+ return ((0, import_utils25.exec)(key, element) || key || element.key || (0, import_utils25.generateKey)()).toString();
6250
6250
  };
6251
6251
  var addRef = (element, parent) => {
6252
6252
  if (element.__ref)
@@ -6278,7 +6278,7 @@ var require_create4 = __commonJS({
6278
6278
  (0, import_event.triggerEventOn)("render", element, options);
6279
6279
  };
6280
6280
  var checkIfPrimitive = (element) => {
6281
- return (0, import_utils24.is)(element)("string", "number");
6281
+ return (0, import_utils25.is)(element)("string", "number");
6282
6282
  };
6283
6283
  var applyValueAsText = (element, parent, key) => {
6284
6284
  const extendTag = element.extend && element.extend.tag;
@@ -6302,7 +6302,7 @@ var require_create4 = __commonJS({
6302
6302
  };
6303
6303
  var createIfConditionFlag = (element, parent) => {
6304
6304
  const { __ref: ref } = element;
6305
- if ((0, import_utils24.isFunction)(element.if) && !element.if(element, element.state)) {
6305
+ if ((0, import_utils25.isFunction)(element.if) && !element.if(element, element.state)) {
6306
6306
  delete ref.__if;
6307
6307
  } else
6308
6308
  ref.__if = true;
@@ -6361,7 +6361,7 @@ var require_create4 = __commonJS({
6361
6361
  ref.__children = [];
6362
6362
  (0, import_set.addMethods)(element, parent);
6363
6363
  (0, import_state2.createState)(element, parent);
6364
- if ((0, import_utils24.isFunction)(element.if)) {
6364
+ if ((0, import_utils25.isFunction)(element.if)) {
6365
6365
  const ifPassed = element.if(element, element.state);
6366
6366
  if (!ifPassed) {
6367
6367
  delete ref.__if;
@@ -6381,7 +6381,7 @@ var require_create4 = __commonJS({
6381
6381
  (0, import_iterate.throughInitialDefine)(element);
6382
6382
  (0, import_iterate.throughInitialExec)(element);
6383
6383
  for (const k in element) {
6384
- if ((0, import_utils24.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils24.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
6384
+ if ((0, import_utils25.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils25.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
6385
6385
  continue;
6386
6386
  const hasDefine = element.define && element.define[k];
6387
6387
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -6389,7 +6389,7 @@ var require_create4 = __commonJS({
6389
6389
  if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
6390
6390
  continue;
6391
6391
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
6392
- create2((0, import_utils24.exec)(element[k], element), element, k, options);
6392
+ create2((0, import_utils25.exec)(element[k], element), element, k, options);
6393
6393
  }
6394
6394
  }
6395
6395
  }
@@ -6797,7 +6797,7 @@ var require_cjs10 = __commonJS({
6797
6797
  isNumber: () => isNumber2,
6798
6798
  isObject: () => isObject82,
6799
6799
  isObjectLike: () => isObjectLike3,
6800
- isString: () => isString10,
6800
+ isString: () => isString102,
6801
6801
  isUndefined: () => isUndefined4
6802
6802
  });
6803
6803
  module22.exports = __toCommonJS22(types_exports);
@@ -6807,7 +6807,7 @@ var require_cjs10 = __commonJS({
6807
6807
  return false;
6808
6808
  return typeof arg === "object" && arg.constructor === Object;
6809
6809
  };
6810
- var isString10 = (arg) => typeof arg === "string";
6810
+ var isString102 = (arg) => typeof arg === "string";
6811
6811
  var isNumber2 = (arg) => typeof arg === "number";
6812
6812
  var isFunction22 = (arg) => typeof arg === "function";
6813
6813
  var isBoolean = (arg) => arg === true || arg === false;
@@ -6820,7 +6820,7 @@ var require_cjs10 = __commonJS({
6820
6820
  return typeof arg === "object";
6821
6821
  };
6822
6822
  var isDefined2 = (arg) => {
6823
- return isObject82(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
6823
+ return isObject82(arg) || isObjectLike3(arg) || isString102(arg) || isNumber2(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
6824
6824
  };
6825
6825
  var isUndefined4 = (arg) => {
6826
6826
  return arg === void 0;
@@ -6829,7 +6829,7 @@ var require_cjs10 = __commonJS({
6829
6829
  boolean: isBoolean,
6830
6830
  array: isArray8,
6831
6831
  object: isObject82,
6832
- string: isString10,
6832
+ string: isString102,
6833
6833
  date: isDate,
6834
6834
  number: isNumber2,
6835
6835
  null: isNull,
@@ -8043,7 +8043,7 @@ var require_cjs10 = __commonJS({
8043
8043
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
8044
8044
  };
8045
8045
  var import_globals2 = __toESM2(require_cjs15(), 1);
8046
- var import_utils24 = __toESM2(require_cjs22(), 1);
8046
+ var import_utils25 = __toESM2(require_cjs22(), 1);
8047
8047
  var ENV2 = "development";
8048
8048
  var colorStringToRgbaArray = (color) => {
8049
8049
  if (color === "")
@@ -8171,11 +8171,11 @@ var require_cjs10 = __commonJS({
8171
8171
  return `rgba(${arr})`;
8172
8172
  };
8173
8173
  var getRgbTone = (rgb, tone) => {
8174
- if ((0, import_utils24.isString)(rgb) && rgb.includes("rgb"))
8174
+ if ((0, import_utils25.isString)(rgb) && rgb.includes("rgb"))
8175
8175
  rgb = colorStringToRgbaArray(rgb).join(", ");
8176
- if ((0, import_utils24.isString)(rgb))
8176
+ if ((0, import_utils25.isString)(rgb))
8177
8177
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
8178
- if ((0, import_utils24.isNumber)(tone))
8178
+ if ((0, import_utils25.isNumber)(tone))
8179
8179
  tone += "";
8180
8180
  const toHex = rgbArrayToHex(rgb);
8181
8181
  const abs2 = tone.slice(0, 1);
@@ -8240,7 +8240,7 @@ var require_cjs10 = __commonJS({
8240
8240
  };
8241
8241
  var import_utils52 = __toESM2(require_cjs22(), 1);
8242
8242
  var import_utils32 = __toESM2(require_cjs22());
8243
- var import_utils25 = __toESM2(require_cjs22());
8243
+ var import_utils26 = __toESM2(require_cjs22());
8244
8244
  var toCamelCase2 = (str) => {
8245
8245
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
8246
8246
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
@@ -9581,7 +9581,7 @@ var require_cjs10 = __commonJS({
9581
9581
  }
9582
9582
  }
9583
9583
  };
9584
- var import_utils26 = __toESM2(require_cjs22(), 1);
9584
+ var import_utils262 = __toESM2(require_cjs22(), 1);
9585
9585
  var applyReset = (reset = {}) => {
9586
9586
  const CONFIG22 = getActiveConfig3();
9587
9587
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY22, DOCUMENT: DOCUMENT2 } = CONFIG22;
@@ -9603,8 +9603,8 @@ var require_cjs10 = __commonJS({
9603
9603
  const { body, ...templates } = TYPOGRAPHY22.templates;
9604
9604
  const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
9605
9605
  if (RESET2.html)
9606
- (0, import_utils26.overwriteDeep)(RESET2.html, globalTheme);
9607
- return (0, import_utils26.deepMerge)((0, import_utils26.merge)(RESET2, reset), {
9606
+ (0, import_utils262.overwriteDeep)(RESET2.html, globalTheme);
9607
+ return (0, import_utils262.deepMerge)((0, import_utils262.merge)(RESET2, reset), {
9608
9608
  html: {
9609
9609
  position: "absolute",
9610
9610
  // overflow: 'hidden',
@@ -9799,6 +9799,7 @@ var require_cjs10 = __commonJS({
9799
9799
  useIconSprite,
9800
9800
  globalTheme,
9801
9801
  useDocumentTheme,
9802
+ useDefaultConfig,
9802
9803
  ...config
9803
9804
  } = recivedConfig;
9804
9805
  if (options.newConfig) {
@@ -9963,8 +9964,8 @@ var require_cjs12 = __commonJS({
9963
9964
  router: () => router2
9964
9965
  });
9965
9966
  module2.exports = __toCommonJS2(router_exports);
9966
- var import_utils24 = require_cjs();
9967
- var getActiveRoute = (level = 0, route = import_utils24.window.location.pathname) => {
9967
+ var import_utils25 = require_cjs();
9968
+ var getActiveRoute = (level = 0, route = import_utils25.window.location.pathname) => {
9968
9969
  const routeArray = route.split("/");
9969
9970
  const activeRoute = routeArray[level + 1];
9970
9971
  if (activeRoute)
@@ -9978,7 +9979,7 @@ var require_cjs12 = __commonJS({
9978
9979
  initialRender: false,
9979
9980
  scrollToTop: true,
9980
9981
  scrollToNode: false,
9981
- scrollNode: import_utils24.document && import_utils24.document.documentElement,
9982
+ scrollNode: import_utils25.document && import_utils25.document.documentElement,
9982
9983
  scrollBody: false,
9983
9984
  useFragment: false,
9984
9985
  updateState: true,
@@ -9993,13 +9994,13 @@ var require_cjs12 = __commonJS({
9993
9994
  const route = getActiveRoute(options.level, pathname);
9994
9995
  const content = element.routes[route || "/"] || element.routes["/*"];
9995
9996
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
9996
- const hashChanged = hash2 && hash2 !== import_utils24.window.location.hash.slice(1);
9997
+ const hashChanged = hash2 && hash2 !== import_utils25.window.location.hash.slice(1);
9997
9998
  const pathChanged = pathname !== lastPathname;
9998
9999
  lastPathname = pathname;
9999
10000
  if (!content)
10000
10001
  return;
10001
10002
  if (options.pushState) {
10002
- import_utils24.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
10003
+ import_utils25.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
10003
10004
  }
10004
10005
  if (pathChanged || !hashChanged) {
10005
10006
  if (options.updateState) {
@@ -10025,7 +10026,7 @@ var require_cjs12 = __commonJS({
10025
10026
  });
10026
10027
  }
10027
10028
  if (hash2) {
10028
- const activeNode = import_utils24.document.getElementById(hash2);
10029
+ const activeNode = import_utils25.document.getElementById(hash2);
10029
10030
  if (activeNode) {
10030
10031
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
10031
10032
  scrollNode.scrollTo({
@@ -10420,7 +10421,7 @@ __export(src_exports, {
10420
10421
  });
10421
10422
  module.exports = __toCommonJS(src_exports);
10422
10423
  var import_domql = __toESM(require_cjs9(), 1);
10423
- var import_utils23 = __toESM(require_cjs(), 1);
10424
+ var import_utils24 = __toESM(require_cjs(), 1);
10424
10425
 
10425
10426
  // src/utilImports.js
10426
10427
  var utilImports_exports = {};
@@ -11887,6 +11888,7 @@ var init = (config, options = SET_OPTIONS) => {
11887
11888
  useSvgSprite: options.useSvgSprite,
11888
11889
  useDocumentTheme: options.useDocumentTheme,
11889
11890
  useIconSprite: options.useIconSprite,
11891
+ useDefaultConfig: options.useDefaultConfig,
11890
11892
  ...resultConfig
11891
11893
  }, { newConfig: options.newConfig });
11892
11894
  const FontFace = (0, import_scratch.getFontFaceString)(conf.FONT);
@@ -11961,6 +11963,8 @@ __export(uikit_exports, {
11961
11963
  Clickable: () => Clickable,
11962
11964
  Collection: () => Collection,
11963
11965
  CommonButton: () => CommonButton,
11966
+ CommonField: () => CommonField,
11967
+ CommonFieldTemplate: () => CommonFieldTemplate,
11964
11968
  CommonForm: () => CommonForm,
11965
11969
  CompleteProcess: () => CompleteProcess,
11966
11970
  ContactForm: () => ContactForm,
@@ -13895,8 +13899,8 @@ var Input = {
13895
13899
  autocomplete: ({ props: props4 }) => props4.autocomplete,
13896
13900
  placeholder: ({ props: props4 }) => props4.placeholder,
13897
13901
  value: ({ props: props4, state, deps }) => {
13898
- const { isString: isString10, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
13899
- if (isString10(props4.value) && props4.value.includes("{{")) {
13902
+ const { isString: isString11, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
13903
+ if (isString11(props4.value) && props4.value.includes("{{")) {
13900
13904
  return replaceLiteralsWithObjectFields2(props4.value, state);
13901
13905
  }
13902
13906
  return props4.value;
@@ -13913,7 +13917,6 @@ var NumberInput = {
13913
13917
  extend: [Input, Flex],
13914
13918
  props: {
13915
13919
  type: "number",
13916
- fontSize: "E",
13917
13920
  boxSize: "C+X",
13918
13921
  align: "center center",
13919
13922
  textAlign: "center",
@@ -14144,6 +14147,52 @@ var Select = {
14144
14147
  }
14145
14148
  };
14146
14149
 
14150
+ // ../uikit/Field/CommonField.js
14151
+ var CommonField = {
14152
+ extend: Flex,
14153
+ tag: "label",
14154
+ props: {
14155
+ flow: "column",
14156
+ boxSize: "fit-content fit-content",
14157
+ gap: "Z"
14158
+ },
14159
+ Title: {
14160
+ props: {
14161
+ text: "Label",
14162
+ lineHeight: "1em",
14163
+ padding: "- - - V2",
14164
+ color: "gray4"
14165
+ }
14166
+ },
14167
+ Field: {
14168
+ tag: "div"
14169
+ },
14170
+ Hint: {
14171
+ extend: IconText,
14172
+ props: {
14173
+ color: "gray4",
14174
+ align: "center flex-start",
14175
+ text: "",
14176
+ fontSize: "Z1",
14177
+ gap: "Y",
14178
+ padding: "W - - W"
14179
+ }
14180
+ }
14181
+ };
14182
+ var CommonFieldTemplate = {
14183
+ extend: CommonField,
14184
+ Title: {},
14185
+ Field: {
14186
+ Icon: { props: { name: "info" } },
14187
+ Input: {},
14188
+ Button: { icon: "eye" }
14189
+ },
14190
+ Hint: {
14191
+ Icon: { props: { name: "info" } },
14192
+ text: "Description"
14193
+ }
14194
+ };
14195
+
14147
14196
  // ../uikit/Field/Field.js
14148
14197
  var Field = {
14149
14198
  tag: "label",
@@ -15042,6 +15091,7 @@ var Notification = {
15042
15091
  Title: {
15043
15092
  tag: "h6",
15044
15093
  props: {
15094
+ margin: "0",
15045
15095
  fontWeight: "600",
15046
15096
  lineHeight: "1em",
15047
15097
  text: "Notification"
@@ -16316,7 +16366,7 @@ var VerificationCode = {
16316
16366
  props: {
16317
16367
  display: "flex",
16318
16368
  columnGap: "A",
16319
- childProps: { flex: "1" }
16369
+ childProps: { flex: "1", fontSize: "E" }
16320
16370
  },
16321
16371
  childExtend: NumberInput,
16322
16372
  ...[{}, {}, {}, {}]
@@ -18158,7 +18208,6 @@ var SPACING = {
18158
18208
  var FONT = {};
18159
18209
  var FONT_FAMILY = {
18160
18210
  system: {
18161
- isDefault: true,
18162
18211
  value: ['"Helvetica Neue"', "Helvetica", "Arial"],
18163
18212
  type: "sans-serif"
18164
18213
  }
@@ -18200,7 +18249,7 @@ var DEFAULT_CONFIG = {
18200
18249
  var src_default = DEFAULT_CONFIG;
18201
18250
 
18202
18251
  // src/initEmotion.js
18203
- var initEmotion = (key, options = DESIGN_SYSTEM_OPTIONS) => {
18252
+ var initEmotion = (key, options = {}) => {
18204
18253
  const doc = options.parent || options.document || document;
18205
18254
  const initOptions = options.initOptions || {};
18206
18255
  const emotion2 = initOptions.emotion;
@@ -18208,7 +18257,7 @@ var initEmotion = (key, options = DESIGN_SYSTEM_OPTIONS) => {
18208
18257
  initOptions.emotion = emotion;
18209
18258
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
18210
18259
  const defaultDesignSystem = (0, import_utils20.deepClone)(src_default);
18211
- const designSystem = options.useDefaultConfig ? (0, import_utils20.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem;
18260
+ const designSystem = initOptions.useDefaultConfig ? (0, import_utils20.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
18212
18261
  const scratchSystem2 = init(designSystem, {
18213
18262
  key,
18214
18263
  emotion: emotion2,
@@ -21893,37 +21942,80 @@ var applyInspectListener = (root, options) => {
21893
21942
  inspectOnKey(root);
21894
21943
  };
21895
21944
 
21945
+ // src/prepare.js
21946
+ var import_utils23 = __toESM(require_cjs(), 1);
21947
+ var checkIfKeyIsComponent = (key) => {
21948
+ const isFirstKeyString = (0, import_utils23.isString)(key);
21949
+ if (!isFirstKeyString)
21950
+ return;
21951
+ const firstCharKey = key.slice(0, 1);
21952
+ return /^[A-Z]*$/.test(firstCharKey);
21953
+ };
21954
+ var UIkitWithPrefix = () => {
21955
+ const newObj = {};
21956
+ for (const key in uikit_exports) {
21957
+ if (Object.prototype.hasOwnProperty.call(uikit_exports, key)) {
21958
+ if (checkIfKeyIsComponent(key)) {
21959
+ newObj[`smbls.${key}`] = uikit_exports[key];
21960
+ } else {
21961
+ newObj[key] = uikit_exports[key];
21962
+ }
21963
+ }
21964
+ }
21965
+ return newObj;
21966
+ };
21967
+ var prepareComponents = (options) => {
21968
+ return options.components ? { ...UIkitWithPrefix(), ...options.components } : UIkitWithPrefix();
21969
+ };
21970
+ var prepareUtils = (options) => {
21971
+ return { ...utilImports_exports, ...import_scratch2.scratchUtils, ...options.snippets || options.utils || {} };
21972
+ };
21973
+ var prepareDesignSystem = (options, key) => {
21974
+ const [scratcDesignhSystem, emotion2, registry] = initEmotion(key, options);
21975
+ return [scratcDesignhSystem, emotion2, registry];
21976
+ };
21977
+ var prepareState = (options, App) => {
21978
+ const state = {};
21979
+ if (options.state)
21980
+ utilImports_exports.deepMerge(state, options.state);
21981
+ if (App && App.state)
21982
+ (0, import_utils23.deepMerge)(state, App.state);
21983
+ return (0, import_utils23.deepCloneWithExtnd)(state);
21984
+ };
21985
+ var preparePages = (options) => {
21986
+ return options.pages || {};
21987
+ };
21988
+ var prepareDocument = (options) => {
21989
+ if (typeof document === "undefined") {
21990
+ if (typeof window === "undefined")
21991
+ window = {};
21992
+ if (!window.document)
21993
+ window.document = { body: {} };
21994
+ document = window.document;
21995
+ }
21996
+ return options.parent || options.document || document;
21997
+ };
21998
+
21896
21999
  // src/index.js
21897
22000
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
21898
22001
  var mergeWithLocalFile2 = (options, optionsExternalFile) => {
21899
- const rcfile = (0, import_utils23.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
21900
- return (0, import_utils23.deepMerge)(options, rcfile);
22002
+ const rcfile = (0, import_utils24.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
22003
+ return (0, import_utils24.deepMerge)(options, rcfile);
21901
22004
  };
21902
22005
  var create = async (App, options = options_default, optionsExternalFile) => {
21903
- const appIsKey = (0, import_utils23.isString)(App);
22006
+ const appIsKey = (0, import_utils24.isString)(App);
21904
22007
  options = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
21905
22008
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
21906
22009
  if (appIsKey)
21907
22010
  App = {};
21908
22011
  await fetchSync(key, options);
21909
- if (typeof document === "undefined") {
21910
- if (typeof window === "undefined")
21911
- window = {};
21912
- if (!window.document)
21913
- window.document = { body: {} };
21914
- document = window.document;
21915
- }
21916
- const doc = options.parent || options.document || document;
21917
- const [scratcDesignhSystem, emotion2, registry] = initEmotion(key, options);
21918
- const state = {};
21919
- if (options.state)
21920
- (0, import_utils23.deepMerge)(state, options.state);
21921
- if (App && App.state)
21922
- (0, import_utils23.deepMerge)(state, App.state);
21923
- const pages = options.pages || {};
21924
- const components = options.components ? { ...uikit_exports, ...options.components } : uikit_exports;
21925
- const designSystem = scratcDesignhSystem || {};
21926
- const snippets = { ...utilImports_exports, ...import_scratch2.scratchUtils, ...options.snippets || {} };
22012
+ const doc = prepareDocument(options);
22013
+ const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem(options, key);
22014
+ const state = prepareState(options, App);
22015
+ const pages = preparePages(options);
22016
+ const components = prepareComponents(options);
22017
+ const designSystem = scratcDesignSystem;
22018
+ const snippets = prepareUtils(options);
21927
22019
  const define = options.define || defaultDefine;
21928
22020
  const routerOptions = initRouter(App, options);
21929
22021
  const extend = applySyncDebug([App], options);
@@ -21961,7 +22053,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
21961
22053
  return domqlApp;
21962
22054
  };
21963
22055
  var createSync = (App, options = options_default, optionsExternalFile) => {
21964
- const appIsKey = (0, import_utils23.isString)(App);
22056
+ const appIsKey = (0, import_utils24.isString)(App);
21965
22057
  options = mergeWithLocalFile2(options, optionsExternalFile);
21966
22058
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
21967
22059
  if (appIsKey)
@@ -21980,7 +22072,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
21980
22072
  parent = options.document;
21981
22073
  else
21982
22074
  parent = document.body;
21983
- const [scratcDesignhSystem, emotion2, registry] = initEmotion(key, options);
22075
+ const [scratcDesignSystem, emotion2, registry] = initEmotion(key, options);
21984
22076
  let state;
21985
22077
  if (options.state)
21986
22078
  state = options.state;
@@ -21990,7 +22082,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
21990
22082
  state = {};
21991
22083
  const pages = options.pages || {};
21992
22084
  const components = options.components ? { ...uikit_exports, ...options.components } : uikit_exports;
21993
- const designSystem = scratcDesignhSystem || {};
22085
+ const designSystem = scratcDesignSystem || {};
21994
22086
  const snippets = { ...utilImports_exports, ...import_scratch2.scratchUtils, ...options.snippets || {} };
21995
22087
  const define = options.define || defaultDefine;
21996
22088
  const extend = applySyncDebug([App], options);