@symbo.ls/create 2.11.239 → 2.11.243

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.
@@ -213,11 +213,11 @@ var require_types = __commonJS({
213
213
  isFunction: () => isFunction4,
214
214
  isNot: () => isNot2,
215
215
  isNull: () => isNull,
216
- isNumber: () => isNumber,
216
+ isNumber: () => isNumber2,
217
217
  isObject: () => isObject12,
218
218
  isObjectLike: () => isObjectLike3,
219
219
  isString: () => isString11,
220
- isUndefined: () => isUndefined4
220
+ isUndefined: () => isUndefined5
221
221
  });
222
222
  module2.exports = __toCommonJS2(types_exports);
223
223
  var import_node = require_node();
@@ -227,7 +227,7 @@ var require_types = __commonJS({
227
227
  return typeof arg === "object" && arg.constructor === Object;
228
228
  };
229
229
  var isString11 = (arg) => typeof arg === "string";
230
- var isNumber = (arg) => typeof arg === "number";
230
+ var isNumber2 = (arg) => typeof arg === "number";
231
231
  var isFunction4 = (arg) => typeof arg === "function";
232
232
  var isBoolean = (arg) => arg === true || arg === false;
233
233
  var isNull = (arg) => arg === null;
@@ -239,9 +239,9 @@ var require_types = __commonJS({
239
239
  return typeof arg === "object";
240
240
  };
241
241
  var isDefined2 = (arg) => {
242
- return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
+ return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber2(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
243
243
  };
244
- var isUndefined4 = (arg) => {
244
+ var isUndefined5 = (arg) => {
245
245
  return arg === void 0;
246
246
  };
247
247
  var TYPES = {
@@ -250,7 +250,7 @@ var require_types = __commonJS({
250
250
  object: isObject12,
251
251
  string: isString11,
252
252
  date: isDate,
253
- number: isNumber,
253
+ number: isNumber2,
254
254
  null: isNull,
255
255
  function: isFunction4,
256
256
  objectLike: isObjectLike3,
@@ -1455,11 +1455,11 @@ var require_tree = __commonJS({
1455
1455
  TREE: () => TREE
1456
1456
  });
1457
1457
  module2.exports = __toCommonJS2(tree_exports);
1458
- var import_utils25 = require_cjs();
1458
+ var import_utils26 = require_cjs();
1459
1459
  var import_report = require_cjs2();
1460
1460
  var ROOT = {
1461
1461
  key: ":root",
1462
- node: import_utils25.document ? import_utils25.document.body : (0, import_report.report)("DocumentNotDefined", import_utils25.document)
1462
+ node: import_utils26.document ? import_utils26.document.body : (0, import_report.report)("DocumentNotDefined", import_utils26.document)
1463
1463
  };
1464
1464
  var TREE = ROOT;
1465
1465
  }
@@ -1495,12 +1495,12 @@ var require_on = __commonJS({
1495
1495
  triggerEventOnUpdate: () => triggerEventOnUpdate
1496
1496
  });
1497
1497
  module2.exports = __toCommonJS2(on_exports);
1498
- var import_utils25 = require_cjs();
1498
+ var import_utils26 = require_cjs();
1499
1499
  var applyEvent = (param, element, state, context, options) => {
1500
1500
  return param(element, state || element.state, context || element.context, options);
1501
1501
  };
1502
1502
  var triggerEventOn = (param, element, options) => {
1503
- if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1503
+ if (element.on && (0, import_utils26.isFunction)(element.on[param])) {
1504
1504
  const { state, context } = element;
1505
1505
  return applyEvent(element.on[param], element, state, context, options);
1506
1506
  }
@@ -1509,7 +1509,7 @@ var require_on = __commonJS({
1509
1509
  return param(updatedObj, element, state || element.state, context || element.context, options);
1510
1510
  };
1511
1511
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
1512
- if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1512
+ if (element.on && (0, import_utils26.isFunction)(element.on[param])) {
1513
1513
  const { state, context } = element;
1514
1514
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
1515
1515
  }
@@ -1520,7 +1520,7 @@ var require_on = __commonJS({
1520
1520
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
1521
1521
  continue;
1522
1522
  const appliedFunction = element.on[param];
1523
- if ((0, import_utils25.isFunction)(appliedFunction)) {
1523
+ if ((0, import_utils26.isFunction)(appliedFunction)) {
1524
1524
  node2.addEventListener(param, (event) => {
1525
1525
  const { state, context } = element;
1526
1526
  appliedFunction(event, element, state, context);
@@ -1558,10 +1558,10 @@ var require_can = __commonJS({
1558
1558
  });
1559
1559
  module2.exports = __toCommonJS2(can_exports);
1560
1560
  var import_report = require_cjs2();
1561
- var import_utils25 = require_cjs();
1561
+ var import_utils26 = require_cjs();
1562
1562
  var canRender = (element) => {
1563
1563
  const tag = element.tag || "div";
1564
- return (0, import_utils25.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1564
+ return (0, import_utils26.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1565
1565
  };
1566
1566
  }
1567
1567
  });
@@ -1652,7 +1652,7 @@ var require_cache = __commonJS({
1652
1652
  module2.exports = __toCommonJS2(cache_exports);
1653
1653
  var import_report = require_cjs2();
1654
1654
  var import_event = require_cjs3();
1655
- var import_utils25 = require_cjs();
1655
+ var import_utils26 = require_cjs();
1656
1656
  var cache2 = {};
1657
1657
  var createHTMLNode = (element) => {
1658
1658
  const { tag } = element;
@@ -1671,20 +1671,20 @@ var require_cache = __commonJS({
1671
1671
  };
1672
1672
  var detectTag = (element) => {
1673
1673
  let { tag, key, props: props4 } = element;
1674
- tag = (0, import_utils25.exec)(tag, element);
1674
+ tag = (0, import_utils26.exec)(tag, element);
1675
1675
  if (tag === true)
1676
1676
  tag = key;
1677
- if ((0, import_utils25.isObject)(props4) && (0, import_utils25.isString)(props4.tag)) {
1678
- const tagExists = (0, import_utils25.isValidHtmlTag)(props4.tag);
1677
+ if ((0, import_utils26.isObject)(props4) && (0, import_utils26.isString)(props4.tag)) {
1678
+ const tagExists = (0, import_utils26.isValidHtmlTag)(props4.tag);
1679
1679
  if (tagExists)
1680
1680
  return props4.tag;
1681
1681
  }
1682
- if ((0, import_utils25.isString)(tag)) {
1683
- const tagExists = (0, import_utils25.isValidHtmlTag)(tag);
1682
+ if ((0, import_utils26.isString)(tag)) {
1683
+ const tagExists = (0, import_utils26.isValidHtmlTag)(tag);
1684
1684
  if (tagExists)
1685
1685
  return tag;
1686
1686
  } else {
1687
- const isKeyATag = (0, import_utils25.isValidHtmlTag)(key);
1687
+ const isKeyATag = (0, import_utils26.isValidHtmlTag)(key);
1688
1688
  if (isKeyATag)
1689
1689
  return key;
1690
1690
  }
@@ -1817,16 +1817,16 @@ var require_attr = __commonJS({
1817
1817
  default: () => attr_default
1818
1818
  });
1819
1819
  module2.exports = __toCommonJS2(attr_exports);
1820
- var import_utils25 = require_cjs();
1820
+ var import_utils26 = require_cjs();
1821
1821
  var import_report = require_cjs2();
1822
1822
  var attr_default = (params, element, node2) => {
1823
1823
  const { __ref } = element;
1824
1824
  const { __attr } = __ref;
1825
- if ((0, import_utils25.isNot)("object"))
1825
+ if ((0, import_utils26.isNot)("object"))
1826
1826
  (0, import_report.report)("HTMLInvalidAttr", params);
1827
1827
  if (params) {
1828
1828
  for (const attr in params) {
1829
- const val = (0, import_utils25.exec)(params[attr], element);
1829
+ const val = (0, import_utils26.exec)(params[attr], element);
1830
1830
  if (val && node2.setAttribute)
1831
1831
  node2.setAttribute(attr, val);
1832
1832
  else if (node2.removeAttribute)
@@ -1869,7 +1869,7 @@ var require_classList = __commonJS({
1869
1869
  default: () => classList_default
1870
1870
  });
1871
1871
  module2.exports = __toCommonJS2(classList_exports);
1872
- var import_utils25 = require_cjs();
1872
+ var import_utils26 = require_cjs();
1873
1873
  var assignKeyAsClassname = (element) => {
1874
1874
  const { key } = element;
1875
1875
  if (element.class === true)
@@ -1887,7 +1887,7 @@ var require_classList = __commonJS({
1887
1887
  else if (typeof param === "string")
1888
1888
  className += ` ${param}`;
1889
1889
  else if (typeof param === "function") {
1890
- className += ` ${(0, import_utils25.exec)(param, element)}`;
1890
+ className += ` ${(0, import_utils26.exec)(param, element)}`;
1891
1891
  }
1892
1892
  }
1893
1893
  return className;
@@ -1898,9 +1898,9 @@ var require_classList = __commonJS({
1898
1898
  const { key } = element;
1899
1899
  if (params === true)
1900
1900
  params = element.class = { key };
1901
- if ((0, import_utils25.isString)(params))
1901
+ if ((0, import_utils26.isString)(params))
1902
1902
  params = element.class = { default: params };
1903
- if ((0, import_utils25.isObject)(params))
1903
+ if ((0, import_utils26.isObject)(params))
1904
1904
  params = classify2(params, element);
1905
1905
  const className = params.replace(/\s+/g, " ").trim();
1906
1906
  if (element.ref)
@@ -1984,7 +1984,7 @@ var require_set = __commonJS({
1984
1984
  default: () => set_default
1985
1985
  });
1986
1986
  module2.exports = __toCommonJS2(set_exports);
1987
- var import_utils25 = require_cjs();
1987
+ var import_utils26 = require_cjs();
1988
1988
  var import_create = __toESM2(require_create4(), 1);
1989
1989
  var import_options3 = __toESM2(require_options(), 1);
1990
1990
  var import_mixins = require_mixins();
@@ -1994,7 +1994,7 @@ var require_set = __commonJS({
1994
1994
  const { __ref: ref, content } = element;
1995
1995
  const __contentRef = content && content.__ref;
1996
1996
  const lazyLoad = element.props && element.props.lazyLoad;
1997
- if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils25.deepContains)(params, content)) {
1997
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils26.deepContains)(params, content)) {
1998
1998
  return content.update();
1999
1999
  }
2000
2000
  if (options.preventContentUpdate === true)
@@ -2062,7 +2062,7 @@ var require_content = __commonJS({
2062
2062
  updateContent: () => updateContent
2063
2063
  });
2064
2064
  module2.exports = __toCommonJS2(content_exports);
2065
- var import_utils25 = require_cjs();
2065
+ var import_utils26 = require_cjs();
2066
2066
  var import_set = __toESM2(require_set(), 1);
2067
2067
  var updateContent = function(params, options) {
2068
2068
  const element = this;
@@ -2085,7 +2085,7 @@ var require_content = __commonJS({
2085
2085
  if (__cached && __cached.content) {
2086
2086
  if (__cached.content.tag === "fragment")
2087
2087
  __cached.content.parent.node.innerHTML = "";
2088
- else if (__cached.content && (0, import_utils25.isFunction)(__cached.content.remove))
2088
+ else if (__cached.content && (0, import_utils26.isFunction)(__cached.content.remove))
2089
2089
  __cached.content.remove();
2090
2090
  }
2091
2091
  delete element.content;
@@ -2130,15 +2130,15 @@ var require_data = __commonJS({
2130
2130
  default: () => data_default
2131
2131
  });
2132
2132
  module2.exports = __toCommonJS2(data_exports);
2133
- var import_utils25 = require_cjs();
2133
+ var import_utils26 = require_cjs();
2134
2134
  var import_report = require_cjs2();
2135
2135
  var data_default = (params, element, node2) => {
2136
2136
  if (params && params.showOnNode) {
2137
- if (!(0, import_utils25.isObject)(params))
2137
+ if (!(0, import_utils26.isObject)(params))
2138
2138
  (0, import_report.report)("HTMLInvalidData", params);
2139
2139
  for (const dataset in params) {
2140
2140
  if (dataset !== "showOnNode") {
2141
- node2.dataset[dataset] = (0, import_utils25.exec)(params[dataset], element);
2141
+ node2.dataset[dataset] = (0, import_utils26.exec)(params[dataset], element);
2142
2142
  }
2143
2143
  }
2144
2144
  }
@@ -2172,9 +2172,9 @@ var require_html = __commonJS({
2172
2172
  default: () => html_default
2173
2173
  });
2174
2174
  module2.exports = __toCommonJS2(html_exports);
2175
- var import_utils25 = require_cjs();
2175
+ var import_utils26 = require_cjs();
2176
2176
  var html_default = (param, element, node2) => {
2177
- const prop = (0, import_utils25.exec)(param, element);
2177
+ const prop = (0, import_utils26.exec)(param, element);
2178
2178
  const { __ref } = element;
2179
2179
  if (prop !== __ref.__html) {
2180
2180
  if (node2.nodeName === "SVG")
@@ -2213,12 +2213,12 @@ var require_style = __commonJS({
2213
2213
  default: () => style_default2
2214
2214
  });
2215
2215
  module2.exports = __toCommonJS2(style_exports);
2216
- var import_utils25 = require_cjs();
2216
+ var import_utils26 = require_cjs();
2217
2217
  var import_report = require_cjs2();
2218
2218
  var style_default2 = (params, element, node2) => {
2219
2219
  if (params) {
2220
- if ((0, import_utils25.isObject)(params))
2221
- (0, import_utils25.map)(node2.style, params, element);
2220
+ if ((0, import_utils26.isObject)(params))
2221
+ (0, import_utils26.map)(node2.style, params, element);
2222
2222
  else
2223
2223
  (0, import_report.report)("HTMLInvalidStyles", params);
2224
2224
  }
@@ -2253,11 +2253,11 @@ var require_text = __commonJS({
2253
2253
  });
2254
2254
  module2.exports = __toCommonJS2(text_exports);
2255
2255
  var import__ = require_cjs8();
2256
- var import_utils25 = require_cjs();
2256
+ var import_utils26 = require_cjs();
2257
2257
  var text_default = (param, element, node2) => {
2258
- let prop = (0, import_utils25.exec)(param, element);
2259
- if ((0, import_utils25.isString)(prop) && prop.includes("{{")) {
2260
- prop = (0, import_utils25.replaceLiteralsWithObjectFields)(prop, element.state);
2258
+ let prop = (0, import_utils26.exec)(param, element);
2259
+ if ((0, import_utils26.isString)(prop) && prop.includes("{{")) {
2260
+ prop = (0, import_utils26.replaceLiteralsWithObjectFields)(prop, element.state);
2261
2261
  }
2262
2262
  if (element.tag === "string") {
2263
2263
  node2.nodeValue = prop;
@@ -2361,11 +2361,11 @@ var require_methods = __commonJS({
2361
2361
  toggle: () => toggle
2362
2362
  });
2363
2363
  module2.exports = __toCommonJS2(methods_exports);
2364
- var import_utils25 = require_cjs();
2364
+ var import_utils26 = require_cjs();
2365
2365
  var import_ignore = require_ignore();
2366
2366
  var parse3 = function() {
2367
2367
  const state = this;
2368
- if ((0, import_utils25.isObject)(state)) {
2368
+ if ((0, import_utils26.isObject)(state)) {
2369
2369
  const obj = {};
2370
2370
  for (const param in state) {
2371
2371
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -2373,7 +2373,7 @@ var require_methods = __commonJS({
2373
2373
  }
2374
2374
  }
2375
2375
  return obj;
2376
- } else if ((0, import_utils25.isArray)(state)) {
2376
+ } else if ((0, import_utils26.isArray)(state)) {
2377
2377
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
2378
2378
  }
2379
2379
  };
@@ -2393,7 +2393,7 @@ var require_methods = __commonJS({
2393
2393
  const state = this;
2394
2394
  const element = state.__element;
2395
2395
  const stateKey = element.__ref.__state;
2396
- if ((0, import_utils25.isString)(stateKey)) {
2396
+ if ((0, import_utils26.isString)(stateKey)) {
2397
2397
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
2398
2398
  return element.state;
2399
2399
  }
@@ -2406,7 +2406,7 @@ var require_methods = __commonJS({
2406
2406
  for (const key in state.__children) {
2407
2407
  const child = state.__children[key];
2408
2408
  if (child.state) {
2409
- if ((0, import_utils25.isArray)(child.state)) {
2409
+ if ((0, import_utils26.isArray)(child.state)) {
2410
2410
  Object.defineProperty(child.state, "parent", {
2411
2411
  value: state.parent,
2412
2412
  enumerable: false,
@@ -2440,10 +2440,10 @@ var require_methods = __commonJS({
2440
2440
  };
2441
2441
  var add = function(value2, options = {}) {
2442
2442
  const state = this;
2443
- if ((0, import_utils25.isArray)(state)) {
2443
+ if ((0, import_utils26.isArray)(state)) {
2444
2444
  state.push(value2);
2445
2445
  state.update(state.parse(), { overwrite: "replace", ...options });
2446
- } else if ((0, import_utils25.isObject)(state)) {
2446
+ } else if ((0, import_utils26.isObject)(state)) {
2447
2447
  const key = Object.keys(state).length;
2448
2448
  state.update({ [key]: value2 }, options);
2449
2449
  }
@@ -2454,25 +2454,25 @@ var require_methods = __commonJS({
2454
2454
  };
2455
2455
  var remove = function(key, options = {}) {
2456
2456
  const state = this;
2457
- if ((0, import_utils25.isArray)(state))
2458
- (0, import_utils25.removeFromArray)(state, key);
2459
- if ((0, import_utils25.isObject)(state))
2460
- (0, import_utils25.removeFromObject)(state, key);
2457
+ if ((0, import_utils26.isArray)(state))
2458
+ (0, import_utils26.removeFromArray)(state, key);
2459
+ if ((0, import_utils26.isObject)(state))
2460
+ (0, import_utils26.removeFromObject)(state, key);
2461
2461
  return state.update(state.parse(), { replace: true, ...options });
2462
2462
  };
2463
2463
  var set5 = function(val, options = {}) {
2464
2464
  const state = this;
2465
- const value2 = (0, import_utils25.deepCloneWithExtnd)(val);
2465
+ const value2 = (0, import_utils26.deepCloneWithExtnd)(val);
2466
2466
  return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
2467
2467
  };
2468
2468
  var reset = function(options = {}) {
2469
2469
  const state = this;
2470
- const value2 = (0, import_utils25.deepCloneWithExtnd)(state.parse());
2470
+ const value2 = (0, import_utils26.deepCloneWithExtnd)(state.parse());
2471
2471
  return state.set(value2, { replace: true, ...options });
2472
2472
  };
2473
2473
  var apply = function(func, options = {}) {
2474
2474
  const state = this;
2475
- if ((0, import_utils25.isFunction)(func)) {
2475
+ if ((0, import_utils26.isFunction)(func)) {
2476
2476
  func(state);
2477
2477
  return state.update(state.parse(), { replace: true, ...options });
2478
2478
  }
@@ -2512,7 +2512,7 @@ var require_inherit = __commonJS({
2512
2512
  isState: () => isState2
2513
2513
  });
2514
2514
  module2.exports = __toCommonJS2(inherit_exports);
2515
- var import_utils25 = require_cjs();
2515
+ var import_utils26 = require_cjs();
2516
2516
  var import_ignore = require_ignore();
2517
2517
  var getParentStateInKey = (stateKey, parentState) => {
2518
2518
  if (!stateKey.includes("../"))
@@ -2564,11 +2564,11 @@ var require_inherit = __commonJS({
2564
2564
  var createInheritedState = (element, parent) => {
2565
2565
  const ref = element.__ref;
2566
2566
  const inheritedState = findInheritedState(element, parent);
2567
- if ((0, import_utils25.isUndefined)(inheritedState))
2567
+ if ((0, import_utils26.isUndefined)(inheritedState))
2568
2568
  return element.state;
2569
- if ((0, import_utils25.is)(inheritedState)("object", "array")) {
2570
- return (0, import_utils25.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2571
- } else if ((0, import_utils25.is)(inheritedState)("string", "number", "boolean")) {
2569
+ if ((0, import_utils26.is)(inheritedState)("object", "array")) {
2570
+ return (0, import_utils26.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2571
+ } else if ((0, import_utils26.is)(inheritedState)("string", "number", "boolean")) {
2572
2572
  ref.__stateType = typeof inheritedState;
2573
2573
  return { value: inheritedState };
2574
2574
  }
@@ -2577,12 +2577,12 @@ var require_inherit = __commonJS({
2577
2577
  var checkIfInherits = (element) => {
2578
2578
  const ref = element.__ref;
2579
2579
  const stateKey = ref.__state;
2580
- if (stateKey && (0, import_utils25.is)(stateKey)("number", "string", "boolean"))
2580
+ if (stateKey && (0, import_utils26.is)(stateKey)("number", "string", "boolean"))
2581
2581
  return true;
2582
2582
  return false;
2583
2583
  };
2584
2584
  var isState2 = function(state) {
2585
- if (!(0, import_utils25.isObjectLike)(state))
2585
+ if (!(0, import_utils26.isObjectLike)(state))
2586
2586
  return false;
2587
2587
  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;
2588
2588
  };
@@ -2631,7 +2631,7 @@ var require_updateState = __commonJS({
2631
2631
  var import_report = require_cjs2();
2632
2632
  var import_event = require_cjs3();
2633
2633
  var import_ignore = require_ignore();
2634
- var import_utils25 = require_cjs();
2634
+ var import_utils26 = require_cjs();
2635
2635
  var import_inherit = require_inherit();
2636
2636
  var STATE_UPDATE_OPTIONS = {
2637
2637
  overwrite: true,
@@ -2644,7 +2644,7 @@ var require_updateState = __commonJS({
2644
2644
  const state = this;
2645
2645
  const element = state.__element;
2646
2646
  if (!options.updateByState)
2647
- (0, import_utils25.merge)(options, STATE_UPDATE_OPTIONS);
2647
+ (0, import_utils26.merge)(options, STATE_UPDATE_OPTIONS);
2648
2648
  if (!state.__element)
2649
2649
  (0, import_report.report)("ElementOnStateIsNotDefined");
2650
2650
  if (options.preventInheritAtCurrentState === true) {
@@ -2674,10 +2674,10 @@ var require_updateState = __commonJS({
2674
2674
  const shallow = overwrite === "shallow";
2675
2675
  const merge22 = overwrite === "merge";
2676
2676
  if (merge22) {
2677
- (0, import_utils25.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2677
+ (0, import_utils26.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2678
2678
  return;
2679
2679
  }
2680
- const overwriteFunc = shallow ? import_utils25.overwriteShallow : import_utils25.overwriteDeep;
2680
+ const overwriteFunc = shallow ? import_utils26.overwriteShallow : import_utils26.overwriteDeep;
2681
2681
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2682
2682
  };
2683
2683
  var hoistStateUpdate = (state, obj, options) => {
@@ -2699,7 +2699,7 @@ var require_updateState = __commonJS({
2699
2699
  const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
2700
2700
  const targetParent = findGrandParentState || parent.state;
2701
2701
  if (options.replace)
2702
- (0, import_utils25.overwriteDeep)(targetParent, changesValue || value2);
2702
+ (0, import_utils26.overwriteDeep)(targetParent, changesValue || value2);
2703
2703
  targetParent.update(changesValue, {
2704
2704
  execStateFunction: false,
2705
2705
  isHoisted: true,
@@ -2768,7 +2768,7 @@ var require_create2 = __commonJS({
2768
2768
  });
2769
2769
  module2.exports = __toCommonJS2(create_exports);
2770
2770
  var import_event = require_cjs3();
2771
- var import_utils25 = require_cjs();
2771
+ var import_utils26 = require_cjs();
2772
2772
  var import_ignore = require_ignore();
2773
2773
  var import_methods = require_methods();
2774
2774
  var import_updateState = require_updateState();
@@ -2782,13 +2782,13 @@ var require_create2 = __commonJS({
2782
2782
  if (objectizeState === false)
2783
2783
  return parent.state || {};
2784
2784
  else
2785
- element.state = (0, import_utils25.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2785
+ element.state = (0, import_utils26.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2786
2786
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
2787
2787
  if (whatInitReturns === false)
2788
2788
  return element.state;
2789
2789
  if ((0, import_inherit.checkIfInherits)(element)) {
2790
2790
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
2791
- element.state = (0, import_utils25.isUndefined)(inheritedState) ? {} : inheritedState;
2791
+ element.state = (0, import_utils26.isUndefined)(inheritedState) ? {} : inheritedState;
2792
2792
  }
2793
2793
  const dependentState = applyDependentState(element, element.state);
2794
2794
  if (dependentState)
@@ -2801,17 +2801,17 @@ var require_create2 = __commonJS({
2801
2801
  const { __ref: ref } = state;
2802
2802
  if (!ref)
2803
2803
  return;
2804
- const dependentState = (0, import_utils25.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
2804
+ const dependentState = (0, import_utils26.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
2805
2805
  const newDepends = { [element.key]: dependentState };
2806
- ref.__depends = (0, import_utils25.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2806
+ ref.__depends = (0, import_utils26.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2807
2807
  return dependentState;
2808
2808
  };
2809
2809
  var checkForTypes = (element) => {
2810
2810
  const { state, __ref: ref } = element;
2811
- if ((0, import_utils25.isFunction)(state)) {
2811
+ if ((0, import_utils26.isFunction)(state)) {
2812
2812
  ref.__state = state;
2813
- return (0, import_utils25.exec)(state, element);
2814
- } else if ((0, import_utils25.is)(state)("string", "number")) {
2813
+ return (0, import_utils26.exec)(state, element);
2814
+ } else if ((0, import_utils26.is)(state)("string", "number")) {
2815
2815
  ref.__state = state;
2816
2816
  return {};
2817
2817
  } else if (state === true) {
@@ -2859,7 +2859,7 @@ var require_create2 = __commonJS({
2859
2859
  __children: {},
2860
2860
  __root: ref.__root ? ref.__root.state : state
2861
2861
  };
2862
- if ((0, import_utils25.isArray)(state)) {
2862
+ if ((0, import_utils26.isArray)(state)) {
2863
2863
  addProtoToArray(state, proto);
2864
2864
  } else {
2865
2865
  Object.setPrototypeOf(state, proto);
@@ -2927,16 +2927,16 @@ var require_state = __commonJS({
2927
2927
  });
2928
2928
  module2.exports = __toCommonJS2(state_exports);
2929
2929
  var import_state2 = require_cjs5();
2930
- var import_utils25 = require_cjs();
2930
+ var import_utils26 = require_cjs();
2931
2931
  var state = (params, element, node2) => {
2932
- const state2 = (0, import_utils25.exec)(params, element);
2933
- if ((0, import_utils25.isObject)(state2)) {
2932
+ const state2 = (0, import_utils26.exec)(params, element);
2933
+ if ((0, import_utils26.isObject)(state2)) {
2934
2934
  for (const param in state2) {
2935
2935
  if (import_state2.IGNORE_STATE_PARAMS.includes(param))
2936
2936
  continue;
2937
2937
  if (!Object.hasOwnProperty.call(state2, param))
2938
2938
  continue;
2939
- element.state[param] = (0, import_utils25.exec)(state2[param], element);
2939
+ element.state[param] = (0, import_utils26.exec)(state2[param], element);
2940
2940
  }
2941
2941
  }
2942
2942
  return element;
@@ -2971,13 +2971,13 @@ var require_scope = __commonJS({
2971
2971
  default: () => scope_default
2972
2972
  });
2973
2973
  module2.exports = __toCommonJS2(scope_exports);
2974
- var import_utils25 = require_cjs();
2974
+ var import_utils26 = require_cjs();
2975
2975
  var scope_default = (params, element, node2) => {
2976
- if (!(0, import_utils25.isObject)(params))
2976
+ if (!(0, import_utils26.isObject)(params))
2977
2977
  return;
2978
2978
  for (const scopeItem in params) {
2979
2979
  const value2 = params[scopeItem];
2980
- if ((0, import_utils25.isFunction)(value2)) {
2980
+ if ((0, import_utils26.isFunction)(value2)) {
2981
2981
  element.scope[scopeItem] = value2.bind(element);
2982
2982
  } else {
2983
2983
  element.scope[scopeItem] = value2;
@@ -3184,7 +3184,7 @@ var require_methods2 = __commonJS({
3184
3184
  spotByPath: () => spotByPath
3185
3185
  });
3186
3186
  module2.exports = __toCommonJS2(methods_exports);
3187
- var import_utils25 = require_cjs();
3187
+ var import_utils26 = require_cjs();
3188
3188
  var import_tree = require_tree();
3189
3189
  var import_mixins = require_mixins();
3190
3190
  var spotByPath = function(path) {
@@ -3217,9 +3217,9 @@ var require_methods2 = __commonJS({
3217
3217
  };
3218
3218
  var remove = function(params) {
3219
3219
  const element = this;
3220
- if ((0, import_utils25.isFunction)(element.node.remove))
3220
+ if ((0, import_utils26.isFunction)(element.node.remove))
3221
3221
  element.node.remove();
3222
- else if (!(0, import_utils25.isProduction)()) {
3222
+ else if (!(0, import_utils26.isProduction)()) {
3223
3223
  console.warn("This item cant be removed");
3224
3224
  element.log();
3225
3225
  }
@@ -3259,12 +3259,12 @@ var require_methods2 = __commonJS({
3259
3259
  if (v === "state") {
3260
3260
  if (element.__ref && element.__ref.__hasRootState)
3261
3261
  return;
3262
- if ((0, import_utils25.isFunction)(val && val.parse))
3262
+ if ((0, import_utils26.isFunction)(val && val.parse))
3263
3263
  val = val.parse();
3264
3264
  } else if (v === "props") {
3265
3265
  const { __element, update, ...props4 } = element[v];
3266
3266
  obj[v] = props4;
3267
- } else if ((0, import_utils25.isDefined)(val))
3267
+ } else if ((0, import_utils26.isDefined)(val))
3268
3268
  obj[v] = val;
3269
3269
  });
3270
3270
  return obj;
@@ -3275,7 +3275,7 @@ var require_methods2 = __commonJS({
3275
3275
  for (const v in obj) {
3276
3276
  if (excl.includes(v))
3277
3277
  return;
3278
- if ((0, import_utils25.isObjectLike)(obj[v])) {
3278
+ if ((0, import_utils26.isObjectLike)(obj[v])) {
3279
3279
  obj[v] = parseDeep.call(obj[v], excl);
3280
3280
  }
3281
3281
  }
@@ -3393,18 +3393,18 @@ var require_inherit2 = __commonJS({
3393
3393
  inheritParentProps: () => inheritParentProps
3394
3394
  });
3395
3395
  module2.exports = __toCommonJS2(inherit_exports);
3396
- var import_utils25 = require_cjs();
3396
+ var import_utils26 = require_cjs();
3397
3397
  var objectizeStringProperty = (propValue) => {
3398
- if ((0, import_utils25.is)(propValue)("string", "number")) {
3398
+ if ((0, import_utils26.is)(propValue)("string", "number")) {
3399
3399
  return { inheritedString: propValue };
3400
3400
  }
3401
3401
  return propValue;
3402
3402
  };
3403
3403
  var inheritParentProps = (element, parent) => {
3404
3404
  let propsStack = [];
3405
- const parentProps = (0, import_utils25.exec)(parent, parent.state).props;
3405
+ const parentProps = (0, import_utils26.exec)(parent, parent.state).props;
3406
3406
  const matchParent = parent.props && parentProps[element.key];
3407
- const matchParentIsString = (0, import_utils25.isString)(matchParent);
3407
+ const matchParentIsString = (0, import_utils26.isString)(matchParent);
3408
3408
  const matchParentChildProps = parentProps && parentProps.childProps;
3409
3409
  if (matchParent) {
3410
3410
  if (matchParentIsString) {
@@ -3452,19 +3452,19 @@ var require_create3 = __commonJS({
3452
3452
  syncProps: () => syncProps
3453
3453
  });
3454
3454
  module2.exports = __toCommonJS2(create_exports);
3455
- var import_utils25 = require_cjs();
3455
+ var import_utils26 = require_cjs();
3456
3456
  var import_ignore = require_ignore2();
3457
3457
  var import_inherit = require_inherit2();
3458
3458
  var createPropsStack = (element, parent) => {
3459
3459
  const { props: props4, __ref } = element;
3460
3460
  const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
3461
- if ((0, import_utils25.isObject)(props4))
3461
+ if ((0, import_utils26.isObject)(props4))
3462
3462
  propsStack.push(props4);
3463
3463
  else if (props4 === "inherit" && parent.props)
3464
3464
  propsStack.push(parent.props);
3465
3465
  else if (props4)
3466
3466
  propsStack.push(props4);
3467
- if ((0, import_utils25.isArray)(__ref.__extend)) {
3467
+ if ((0, import_utils26.isArray)(__ref.__extend)) {
3468
3468
  __ref.__extend.forEach((extend) => {
3469
3469
  if (extend.props && extend.props !== props4)
3470
3470
  propsStack.push(extend.props);
@@ -3479,10 +3479,10 @@ var require_create3 = __commonJS({
3479
3479
  props4.forEach((v) => {
3480
3480
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
3481
3481
  return;
3482
- const execProps = (0, import_utils25.exec)(v, element);
3483
- element.props = (0, import_utils25.deepMerge)(
3482
+ const execProps = (0, import_utils26.exec)(v, element);
3483
+ element.props = (0, import_utils26.deepMerge)(
3484
3484
  mergedProps,
3485
- (0, import_utils25.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3485
+ (0, import_utils26.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3486
3486
  import_ignore.IGNORE_PROPS_PARAMS
3487
3487
  );
3488
3488
  });
@@ -3630,11 +3630,11 @@ var require_object2 = __commonJS({
3630
3630
  overwriteShallow: () => overwriteShallow2
3631
3631
  });
3632
3632
  module2.exports = __toCommonJS2(object_exports);
3633
- var import_utils25 = require_cjs();
3633
+ var import_utils26 = require_cjs();
3634
3634
  var import_state2 = require_cjs5();
3635
3635
  var import_props = require_props();
3636
3636
  var import_methods = require_methods2();
3637
- var METHODS_EXL = (0, import_utils25.joinArrays)(
3637
+ var METHODS_EXL = (0, import_utils26.joinArrays)(
3638
3638
  ["node", "state", "context", "extend"],
3639
3639
  import_methods.METHODS,
3640
3640
  import_state2.IGNORE_STATE_PARAMS,
@@ -3648,7 +3648,7 @@ var require_object2 = __commonJS({
3648
3648
  const extendProp = extend[e];
3649
3649
  if (elementProp === void 0) {
3650
3650
  element[e] = extendProp;
3651
- } else if ((0, import_utils25.isObjectLike)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3651
+ } else if ((0, import_utils26.isObjectLike)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
3652
3652
  deepMerge7(elementProp, extendProp);
3653
3653
  }
3654
3654
  }
@@ -3664,15 +3664,15 @@ var require_object2 = __commonJS({
3664
3664
  return o;
3665
3665
  };
3666
3666
  var deepClone4 = (obj, exclude = METHODS_EXL) => {
3667
- const o = (0, import_utils25.isArray)(obj) ? [] : {};
3667
+ const o = (0, import_utils26.isArray)(obj) ? [] : {};
3668
3668
  for (const e in obj) {
3669
3669
  if (exclude.includes(e))
3670
3670
  continue;
3671
3671
  let objProp = obj[e];
3672
- if (e === "extend" && (0, import_utils25.isArray)(objProp)) {
3672
+ if (e === "extend" && (0, import_utils26.isArray)(objProp)) {
3673
3673
  objProp = mergeArray(objProp, exclude);
3674
3674
  }
3675
- if ((0, import_utils25.isObjectLike)(objProp)) {
3675
+ if ((0, import_utils26.isObjectLike)(objProp)) {
3676
3676
  o[e] = deepClone4(objProp, exclude);
3677
3677
  } else
3678
3678
  o[e] = objProp;
@@ -3711,7 +3711,7 @@ var require_object2 = __commonJS({
3711
3711
  continue;
3712
3712
  const objProp = obj[e];
3713
3713
  const paramsProp = params[e];
3714
- if ((0, import_utils25.isObjectLike)(objProp) && (0, import_utils25.isObjectLike)(paramsProp)) {
3714
+ if ((0, import_utils26.isObjectLike)(objProp) && (0, import_utils26.isObjectLike)(paramsProp)) {
3715
3715
  overwriteDeep(objProp, paramsProp);
3716
3716
  } else if (paramsProp !== void 0) {
3717
3717
  obj[e] = paramsProp;
@@ -3720,7 +3720,7 @@ var require_object2 = __commonJS({
3720
3720
  return obj;
3721
3721
  };
3722
3722
  var mergeIfExisted = (a, b) => {
3723
- if ((0, import_utils25.isObjectLike)(a) && (0, import_utils25.isObjectLike)(b))
3723
+ if ((0, import_utils26.isObjectLike)(a) && (0, import_utils26.isObjectLike)(b))
3724
3724
  return deepMerge7(a, b);
3725
3725
  return a || b;
3726
3726
  };
@@ -3728,7 +3728,7 @@ var require_object2 = __commonJS({
3728
3728
  return arr.reduce((a, c) => deepMerge7(a, deepClone4(c, exclude)), {});
3729
3729
  };
3730
3730
  var mergeAndCloneIfArray = (obj) => {
3731
- return (0, import_utils25.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
3731
+ return (0, import_utils26.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
3732
3732
  };
3733
3733
  var flattenRecursive = (param, prop, stack = []) => {
3734
3734
  const objectized = mergeAndCloneIfArray(param);
@@ -3783,7 +3783,7 @@ var require_extendUtils = __commonJS({
3783
3783
  setHashedExtend: () => setHashedExtend
3784
3784
  });
3785
3785
  module2.exports = __toCommonJS2(extendUtils_exports);
3786
- var import_utils25 = require_cjs();
3786
+ var import_utils26 = require_cjs();
3787
3787
  var ENV2 = "development";
3788
3788
  var generateHash = () => Math.random().toString(36).substring(2);
3789
3789
  var extendStackRegistry = {};
@@ -3793,7 +3793,7 @@ var require_extendUtils = __commonJS({
3793
3793
  };
3794
3794
  var setHashedExtend = (extend, stack) => {
3795
3795
  const hash2 = generateHash();
3796
- if (!(0, import_utils25.isString)(extend)) {
3796
+ if (!(0, import_utils26.isString)(extend)) {
3797
3797
  extend.__hash = hash2;
3798
3798
  }
3799
3799
  extendStackRegistry[hash2] = stack;
@@ -3819,9 +3819,9 @@ var require_extendUtils = __commonJS({
3819
3819
  var flattenExtend = (extend, stack, context) => {
3820
3820
  if (!extend)
3821
3821
  return stack;
3822
- if ((0, import_utils25.isArray)(extend))
3822
+ if ((0, import_utils26.isArray)(extend))
3823
3823
  return extractArrayExtend(extend, stack, context);
3824
- if ((0, import_utils25.isString)(extend))
3824
+ if ((0, import_utils26.isString)(extend))
3825
3825
  extend = fallbackStringExtend(extend, context);
3826
3826
  stack.push(extend);
3827
3827
  if (extend.extend)
@@ -3834,9 +3834,9 @@ var require_extendUtils = __commonJS({
3834
3834
  if (["parent", "node", "__element"].indexOf(prop) > -1)
3835
3835
  continue;
3836
3836
  const objProp = obj[prop];
3837
- if ((0, import_utils25.isObject)(objProp)) {
3837
+ if ((0, import_utils26.isObject)(objProp)) {
3838
3838
  o[prop] = deepCloneExtend(objProp);
3839
- } else if ((0, import_utils25.isArray)(objProp)) {
3839
+ } else if ((0, import_utils26.isArray)(objProp)) {
3840
3840
  o[prop] = objProp.map((x) => x);
3841
3841
  } else
3842
3842
  o[prop] = objProp;
@@ -3851,14 +3851,14 @@ var require_extendUtils = __commonJS({
3851
3851
  const extendProp = extend[e];
3852
3852
  if (elementProp === void 0) {
3853
3853
  element[e] = extendProp;
3854
- } else if ((0, import_utils25.isObject)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3854
+ } else if ((0, import_utils26.isObject)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
3855
3855
  deepMergeExtend(elementProp, extendProp);
3856
- } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isArray)(extendProp)) {
3856
+ } else if ((0, import_utils26.isArray)(elementProp) && (0, import_utils26.isArray)(extendProp)) {
3857
3857
  element[e] = elementProp.concat(extendProp);
3858
- } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3858
+ } else if ((0, import_utils26.isArray)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
3859
3859
  const obj = deepMergeExtend({}, elementProp);
3860
3860
  element[e] = deepMergeExtend(obj, extendProp);
3861
- } else if (elementProp === void 0 && (0, import_utils25.isFunction)(extendProp)) {
3861
+ } else if (elementProp === void 0 && (0, import_utils26.isFunction)(extendProp)) {
3862
3862
  element[e] = extendProp;
3863
3863
  }
3864
3864
  }
@@ -3871,7 +3871,7 @@ var require_extendUtils = __commonJS({
3871
3871
  };
3872
3872
  var fallbackStringExtend = (extend, context, options = {}) => {
3873
3873
  const COMPONENTS = context && context.components || options.components;
3874
- if ((0, import_utils25.isString)(extend)) {
3874
+ if ((0, import_utils26.isString)(extend)) {
3875
3875
  const componentExists = COMPONENTS[extend] || COMPONENTS["smbls." + extend];
3876
3876
  if (COMPONENTS && componentExists) {
3877
3877
  return componentExists;
@@ -3928,27 +3928,27 @@ var require_extend = __commonJS({
3928
3928
  applyExtend: () => applyExtend
3929
3929
  });
3930
3930
  module2.exports = __toCommonJS2(extend_exports);
3931
- var import_utils25 = require_cjs();
3932
- var import_utils26 = require_utils();
3931
+ var import_utils26 = require_cjs();
3932
+ var import_utils27 = require_utils();
3933
3933
  var ENV2 = "development";
3934
3934
  var applyExtend = (element, parent, options = {}) => {
3935
- if ((0, import_utils25.isFunction)(element))
3936
- element = (0, import_utils25.exec)(element, parent);
3935
+ if ((0, import_utils26.isFunction)(element))
3936
+ element = (0, import_utils26.exec)(element, parent);
3937
3937
  let { extend, props: props4, context, __ref } = element;
3938
- extend = (0, import_utils26.fallbackStringExtend)(extend, context, options);
3939
- const extendStack = (0, import_utils26.getExtendStack)(extend, context);
3938
+ extend = (0, import_utils27.fallbackStringExtend)(extend, context, options);
3939
+ const extendStack = (0, import_utils27.getExtendStack)(extend, context);
3940
3940
  if (ENV2 !== "test" || ENV2 !== "development")
3941
3941
  delete element.extend;
3942
3942
  let childExtendStack = [];
3943
3943
  if (parent) {
3944
3944
  element.parent = parent;
3945
3945
  if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
3946
- childExtendStack = (0, import_utils26.getExtendStack)(parent.childExtend, context);
3946
+ childExtendStack = (0, import_utils27.getExtendStack)(parent.childExtend, context);
3947
3947
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
3948
3948
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
3949
3949
  const canExtendRecursive = element.key !== "__text";
3950
3950
  if (canExtendRecursive) {
3951
- const childExtendRecursiveStack = (0, import_utils26.getExtendStack)(parent.childExtendRecursive, context);
3951
+ const childExtendRecursiveStack = (0, import_utils27.getExtendStack)(parent.childExtendRecursive, context);
3952
3952
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
3953
3953
  element.childExtendRecursive = parent.childExtendRecursive;
3954
3954
  }
@@ -3959,7 +3959,7 @@ var require_extend = __commonJS({
3959
3959
  const childExtendLength = childExtendStack.length;
3960
3960
  let stack = [];
3961
3961
  if (extendLength && childExtendLength) {
3962
- stack = (0, import_utils26.jointStacks)(extendStack, childExtendStack);
3962
+ stack = (0, import_utils27.jointStacks)(extendStack, childExtendStack);
3963
3963
  } else if (extendLength) {
3964
3964
  stack = extendStack;
3965
3965
  } else if (childExtendLength) {
@@ -3967,19 +3967,19 @@ var require_extend = __commonJS({
3967
3967
  } else if (!options.extend)
3968
3968
  return element;
3969
3969
  if (options.extend) {
3970
- const defaultOptionsExtend = (0, import_utils26.getExtendStack)(options.extend, context);
3970
+ const defaultOptionsExtend = (0, import_utils27.getExtendStack)(options.extend, context);
3971
3971
  stack = [].concat(stack, defaultOptionsExtend);
3972
3972
  }
3973
3973
  if (__ref)
3974
3974
  __ref.__extend = stack;
3975
- let mergedExtend = (0, import_utils26.cloneAndMergeArrayExtend)(stack);
3975
+ let mergedExtend = (0, import_utils27.cloneAndMergeArrayExtend)(stack);
3976
3976
  const COMPONENTS = context && context.components || options.components;
3977
- const component = (0, import_utils25.exec)(element.component || mergedExtend.component, element);
3977
+ const component = (0, import_utils26.exec)(element.component || mergedExtend.component, element);
3978
3978
  if (component && COMPONENTS && COMPONENTS[component]) {
3979
- const componentExtend = (0, import_utils26.cloneAndMergeArrayExtend)((0, import_utils26.getExtendStack)(COMPONENTS[component]));
3980
- mergedExtend = (0, import_utils26.deepMergeExtend)(componentExtend, mergedExtend);
3979
+ const componentExtend = (0, import_utils27.cloneAndMergeArrayExtend)((0, import_utils27.getExtendStack)(COMPONENTS[component]));
3980
+ mergedExtend = (0, import_utils27.deepMergeExtend)(componentExtend, mergedExtend);
3981
3981
  }
3982
- return (0, import_utils26.deepMergeExtend)(element, mergedExtend);
3982
+ return (0, import_utils27.deepMergeExtend)(element, mergedExtend);
3983
3983
  };
3984
3984
  }
3985
3985
  });
@@ -4018,11 +4018,11 @@ var require_component = __commonJS({
4018
4018
  overwriteVariant: () => overwriteVariant
4019
4019
  });
4020
4020
  module2.exports = __toCommonJS2(component_exports);
4021
- var import_utils25 = require_cjs();
4021
+ var import_utils26 = require_cjs();
4022
4022
  var import_extend = require_extend();
4023
4023
  var ENV2 = "development";
4024
4024
  var checkIfKeyIsComponent2 = (key) => {
4025
- const isFirstKeyString = (0, import_utils25.isString)(key);
4025
+ const isFirstKeyString = (0, import_utils26.isString)(key);
4026
4026
  if (!isFirstKeyString)
4027
4027
  return;
4028
4028
  const firstCharKey = key.slice(0, 1);
@@ -4030,7 +4030,7 @@ var require_component = __commonJS({
4030
4030
  };
4031
4031
  var addAdditionalExtend = (newExtend, element) => {
4032
4032
  const { extend } = element;
4033
- const preserveExtend = (0, import_utils25.isArray)(extend) ? extend : [extend];
4033
+ const preserveExtend = (0, import_utils26.isArray)(extend) ? extend : [extend];
4034
4034
  return {
4035
4035
  ...element,
4036
4036
  extend: [newExtend].concat(preserveExtend)
@@ -4055,12 +4055,12 @@ var require_component = __commonJS({
4055
4055
  };
4056
4056
  } else if (extend) {
4057
4057
  addAdditionalExtend(extendKey, element);
4058
- } else if ((0, import_utils25.isFunction)(element)) {
4058
+ } else if ((0, import_utils26.isFunction)(element)) {
4059
4059
  console.log(element);
4060
4060
  return {
4061
4061
  extend: extendKey,
4062
4062
  tag,
4063
- props: { ...(0, import_utils25.exec)(element, parent) }
4063
+ props: { ...(0, import_utils26.exec)(element, parent) }
4064
4064
  };
4065
4065
  }
4066
4066
  };
@@ -4073,8 +4073,8 @@ var require_component = __commonJS({
4073
4073
  return;
4074
4074
  const { components } = context;
4075
4075
  const { extend } = element;
4076
- const execExtend = (0, import_utils25.exec)(extend, element);
4077
- if ((0, import_utils25.isString)(execExtend)) {
4076
+ const execExtend = (0, import_utils26.exec)(extend, element);
4077
+ if ((0, import_utils26.isString)(execExtend)) {
4078
4078
  const componentExists = components[execExtend] || components["smbls." + execExtend];
4079
4079
  if (componentExists)
4080
4080
  element.extend = componentExists;
@@ -4088,29 +4088,29 @@ var require_component = __commonJS({
4088
4088
  }
4089
4089
  };
4090
4090
  var isVariant = (param) => {
4091
- if (!(0, import_utils25.isString)(param))
4091
+ if (!(0, import_utils26.isString)(param))
4092
4092
  return;
4093
4093
  const firstCharKey = param.slice(0, 1);
4094
4094
  return firstCharKey === ".";
4095
4095
  };
4096
4096
  var hasVariantProp = (element) => {
4097
4097
  const { props: props4 } = element;
4098
- if ((0, import_utils25.isObject)(props4) && (0, import_utils25.isString)(props4.variant))
4098
+ if ((0, import_utils26.isObject)(props4) && (0, import_utils26.isString)(props4.variant))
4099
4099
  return true;
4100
4100
  };
4101
4101
  var overwriteVariant = (element, variant, variantProps) => {
4102
4102
  let variantElement = element[variant];
4103
4103
  if (!variantElement)
4104
4104
  return;
4105
- const props4 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
4106
- if ((0, import_utils25.isString)(variantElement)) {
4105
+ const props4 = (0, import_utils26.isObject)(variantProps) ? variantProps : {};
4106
+ if ((0, import_utils26.isString)(variantElement)) {
4107
4107
  variantElement = {
4108
4108
  extend: [{ props: props4 }, variantElement]
4109
4109
  };
4110
4110
  } else if (variantElement.extend) {
4111
4111
  variantElement = addAdditionalExtend({ props: props4 }, variantElement);
4112
4112
  }
4113
- return (0, import_utils25.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
4113
+ return (0, import_utils26.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
4114
4114
  };
4115
4115
  var applyVariant = (element) => {
4116
4116
  const { props: props4 } = element;
@@ -4185,8 +4185,8 @@ var require_iterate = __commonJS({
4185
4185
  throughUpdatedExec: () => throughUpdatedExec
4186
4186
  });
4187
4187
  module2.exports = __toCommonJS2(iterate_exports);
4188
- var import_utils25 = require_cjs();
4189
- var import_utils26 = require_utils();
4188
+ var import_utils26 = require_cjs();
4189
+ var import_utils27 = require_utils();
4190
4190
  var import_methods = require_methods2();
4191
4191
  var throughInitialExec = (element, exclude = {}) => {
4192
4192
  const { __ref: ref } = element;
@@ -4194,13 +4194,13 @@ var require_iterate = __commonJS({
4194
4194
  if (exclude[param])
4195
4195
  continue;
4196
4196
  const prop = element[param];
4197
- if ((0, import_utils25.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils26.isVariant)(param)) {
4197
+ if ((0, import_utils26.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils27.isVariant)(param)) {
4198
4198
  ref.__exec[param] = prop;
4199
4199
  element[param] = prop(element, element.state);
4200
4200
  }
4201
4201
  }
4202
4202
  };
4203
- var throughUpdatedExec = (element, options = { excludes: import_utils26.METHODS_EXL }) => {
4203
+ var throughUpdatedExec = (element, options = { excludes: import_utils27.METHODS_EXL }) => {
4204
4204
  const { __ref: ref } = element;
4205
4205
  const changes = {};
4206
4206
  for (const param in ref.__exec) {
@@ -4209,13 +4209,13 @@ var require_iterate = __commonJS({
4209
4209
  if (isDefinedParam)
4210
4210
  continue;
4211
4211
  const newExec = ref.__exec[param](element, element.state, element.context);
4212
- const execReturnsString = (0, import_utils25.isString)(newExec) || (0, import_utils25.isNumber)(newExec);
4212
+ const execReturnsString = (0, import_utils26.isString)(newExec) || (0, import_utils26.isNumber)(newExec);
4213
4213
  if (prop && prop.node && execReturnsString) {
4214
- (0, import_utils26.overwrite)(prop, { text: newExec }, options);
4214
+ (0, import_utils27.overwrite)(prop, { text: newExec }, options);
4215
4215
  } else if (newExec !== prop) {
4216
- if ((0, import_utils26.checkIfKeyIsComponent)(param)) {
4217
- const { extend, ...newElem } = (0, import_utils26.extendizeByKey)(newExec, element, param);
4218
- (0, import_utils26.overwrite)(prop, newElem, options);
4216
+ if ((0, import_utils27.checkIfKeyIsComponent)(param)) {
4217
+ const { extend, ...newElem } = (0, import_utils27.extendizeByKey)(newExec, element, param);
4218
+ (0, import_utils27.overwrite)(prop, newElem, options);
4219
4219
  } else {
4220
4220
  ref.__cached[param] = changes[param] = prop;
4221
4221
  element[param] = newExec;
@@ -4227,16 +4227,16 @@ var require_iterate = __commonJS({
4227
4227
  var throughInitialDefine = (element) => {
4228
4228
  const { define, context, __ref: ref } = element;
4229
4229
  let defineObj = {};
4230
- const hasGlobalDefine = context && (0, import_utils25.isObject)(context.define);
4231
- if ((0, import_utils25.isObject)(define))
4230
+ const hasGlobalDefine = context && (0, import_utils26.isObject)(context.define);
4231
+ if ((0, import_utils26.isObject)(define))
4232
4232
  defineObj = { ...define };
4233
4233
  if (hasGlobalDefine)
4234
4234
  defineObj = { ...defineObj, ...context.define };
4235
4235
  for (const param in defineObj) {
4236
4236
  let elementProp = element[param];
4237
- if ((0, import_utils25.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils26.isVariant)(param)) {
4237
+ if ((0, import_utils26.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils27.isVariant)(param)) {
4238
4238
  ref.__exec[param] = elementProp;
4239
- const execParam2 = elementProp = (0, import_utils25.exec)(elementProp, element);
4239
+ const execParam2 = elementProp = (0, import_utils26.exec)(elementProp, element);
4240
4240
  if (execParam2) {
4241
4241
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
4242
4242
  ref.__defineCache[param] = elementProp;
@@ -4252,15 +4252,15 @@ var require_iterate = __commonJS({
4252
4252
  const { context, define, __ref: ref } = element;
4253
4253
  const changes = {};
4254
4254
  let obj = {};
4255
- if ((0, import_utils25.isObject)(define))
4255
+ if ((0, import_utils26.isObject)(define))
4256
4256
  obj = { ...define };
4257
- if ((0, import_utils25.isObject)(context && context.define))
4257
+ if ((0, import_utils26.isObject)(context && context.define))
4258
4258
  obj = { ...obj, ...context.define };
4259
4259
  for (const param in obj) {
4260
4260
  const execParam = ref.__exec[param];
4261
4261
  if (execParam)
4262
4262
  ref.__defineCache[param] = execParam(element, element.state, element.context);
4263
- const cached = (0, import_utils25.exec)(ref.__defineCache[param], element);
4263
+ const cached = (0, import_utils26.exec)(ref.__defineCache[param], element);
4264
4264
  const newExecParam = obj[param](cached, element, element.state, element.context);
4265
4265
  if (newExecParam)
4266
4266
  element[param] = newExecParam;
@@ -4296,7 +4296,7 @@ var require_applyParam = __commonJS({
4296
4296
  applyParam: () => applyParam
4297
4297
  });
4298
4298
  module2.exports = __toCommonJS2(applyParam_exports);
4299
- var import_utils25 = require_cjs();
4299
+ var import_utils26 = require_cjs();
4300
4300
  var import_mixins = require_mixins();
4301
4301
  var applyParam = (param, element, options) => {
4302
4302
  const { node: node2, context, __ref: ref } = element;
@@ -4309,7 +4309,7 @@ var require_applyParam = __commonJS({
4309
4309
  if (!ref.__if)
4310
4310
  return;
4311
4311
  if (isGlobalTransformer && !hasContextDefine) {
4312
- if ((0, import_utils25.isFunction)(isGlobalTransformer)) {
4312
+ if ((0, import_utils26.isFunction)(isGlobalTransformer)) {
4313
4313
  isGlobalTransformer(prop, element, node2, options);
4314
4314
  return;
4315
4315
  }
@@ -4356,7 +4356,7 @@ var require_node2 = __commonJS({
4356
4356
  default: () => node_default
4357
4357
  });
4358
4358
  module2.exports = __toCommonJS2(node_exports);
4359
- var import_utils25 = require_cjs();
4359
+ var import_utils26 = require_cjs();
4360
4360
  var import_event = require_cjs3();
4361
4361
  var import_render = require_cjs4();
4362
4362
  var import_methods = require_methods2();
@@ -4364,7 +4364,7 @@ var require_node2 = __commonJS({
4364
4364
  var import_iterate = require_iterate();
4365
4365
  var import_mixins = require_mixins();
4366
4366
  var import_applyParam = require_applyParam();
4367
- var import_utils26 = require_utils();
4367
+ var import_utils27 = require_utils();
4368
4368
  var ENV2 = "development";
4369
4369
  var createNode = (element, options) => {
4370
4370
  let { node: node2, tag, __ref: ref } = element;
@@ -4381,24 +4381,24 @@ var require_node2 = __commonJS({
4381
4381
  }
4382
4382
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
4383
4383
  node2.ref = element;
4384
- if ((0, import_utils25.isFunction)(node2.setAttribute))
4384
+ if ((0, import_utils26.isFunction)(node2.setAttribute))
4385
4385
  node2.setAttribute("key", element.key);
4386
4386
  }
4387
4387
  (0, import_iterate.throughInitialDefine)(element);
4388
4388
  (0, import_iterate.throughInitialExec)(element);
4389
4389
  if (element.tag !== "string" && element.tag !== "fragment") {
4390
- if (isNewNode && (0, import_utils25.isObject)(element.on))
4390
+ if (isNewNode && (0, import_utils26.isObject)(element.on))
4391
4391
  (0, import_event.applyEventsOnNode)(element);
4392
4392
  }
4393
4393
  for (const param in element) {
4394
4394
  const value2 = element[param];
4395
- if ((0, import_utils25.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils26.isVariant)(param) || (0, import_utils25.isObject)(import_mixins.registry[param]))
4395
+ if ((0, import_utils26.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils27.isVariant)(param) || (0, import_utils26.isObject)(import_mixins.registry[param]))
4396
4396
  continue;
4397
4397
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4398
4398
  if (isElement) {
4399
4399
  const { hasDefine, hasContextDefine } = isElement;
4400
4400
  if (element[param] && !hasDefine && !hasContextDefine) {
4401
- const createAsync = () => (0, import_create.default)((0, import_utils25.exec)(value2, element), element, param, options);
4401
+ const createAsync = () => (0, import_create.default)((0, import_utils26.exec)(value2, element), element, param, options);
4402
4402
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
4403
4403
  window.requestAnimationFrame(() => createAsync());
4404
4404
  } else
@@ -4593,11 +4593,11 @@ var require_types2 = __commonJS({
4593
4593
  isFunction: () => isFunction4,
4594
4594
  isNot: () => isNot2,
4595
4595
  isNull: () => isNull,
4596
- isNumber: () => isNumber,
4596
+ isNumber: () => isNumber2,
4597
4597
  isObject: () => isObject12,
4598
4598
  isObjectLike: () => isObjectLike3,
4599
4599
  isString: () => isString11,
4600
- isUndefined: () => isUndefined4
4600
+ isUndefined: () => isUndefined5
4601
4601
  });
4602
4602
  module2.exports = __toCommonJS2(types_exports);
4603
4603
  var import_node = require_node3();
@@ -4607,7 +4607,7 @@ var require_types2 = __commonJS({
4607
4607
  return typeof arg === "object" && arg.constructor === Object;
4608
4608
  };
4609
4609
  var isString11 = (arg) => typeof arg === "string";
4610
- var isNumber = (arg) => typeof arg === "number";
4610
+ var isNumber2 = (arg) => typeof arg === "number";
4611
4611
  var isFunction4 = (arg) => typeof arg === "function";
4612
4612
  var isBoolean = (arg) => arg === true || arg === false;
4613
4613
  var isNull = (arg) => arg === null;
@@ -4618,9 +4618,9 @@ var require_types2 = __commonJS({
4618
4618
  return typeof arg === "object";
4619
4619
  };
4620
4620
  var isDefined2 = (arg) => {
4621
- return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
4621
+ return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber2(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
4622
4622
  };
4623
- var isUndefined4 = (arg) => {
4623
+ var isUndefined5 = (arg) => {
4624
4624
  return arg === void 0;
4625
4625
  };
4626
4626
  var TYPES = {
@@ -4628,7 +4628,7 @@ var require_types2 = __commonJS({
4628
4628
  array: isArray6,
4629
4629
  object: isObject12,
4630
4630
  string: isString11,
4631
- number: isNumber,
4631
+ number: isNumber2,
4632
4632
  null: isNull,
4633
4633
  function: isFunction4,
4634
4634
  objectLike: isObjectLike3,
@@ -5603,7 +5603,7 @@ var require_methods3 = __commonJS({
5603
5603
  DEFAULT_METHODS: () => DEFAULT_METHODS
5604
5604
  });
5605
5605
  module2.exports = __toCommonJS2(methods_exports);
5606
- var import_utils25 = require_cjs6();
5606
+ var import_utils26 = require_cjs6();
5607
5607
  var DEFAULT_METHODS = {
5608
5608
  key: {},
5609
5609
  tag: {},
@@ -5624,7 +5624,7 @@ var require_methods3 = __commonJS({
5624
5624
  text: (element, state) => {
5625
5625
  element.ref.text = {
5626
5626
  tag: "text",
5627
- text: (0, import_utils25.exec)(element.text, element, state)
5627
+ text: (0, import_utils26.exec)(element.text, element, state)
5628
5628
  };
5629
5629
  },
5630
5630
  innerHTML: {},
@@ -5861,19 +5861,19 @@ var require_update2 = __commonJS({
5861
5861
  default: () => update_default
5862
5862
  });
5863
5863
  module2.exports = __toCommonJS2(update_exports);
5864
- var import_utils25 = require_cjs();
5864
+ var import_utils26 = require_cjs();
5865
5865
  var import_event = require_cjs3();
5866
5866
  var import_methods = require_methods2();
5867
5867
  var import_props = require_props();
5868
5868
  var import_state2 = require_cjs5();
5869
- var import_utils26 = require_utils();
5869
+ var import_utils27 = require_utils();
5870
5870
  var import_create = __toESM2(require_create4(), 1);
5871
5871
  var import_iterate = require_iterate();
5872
5872
  var import_mixins = require_mixins();
5873
5873
  var import_applyParam = require_applyParam();
5874
5874
  var import_options3 = __toESM2(require_options(), 1);
5875
5875
  var snapshot = {
5876
- snapshotId: import_utils25.createSnapshotId
5876
+ snapshotId: import_utils26.createSnapshotId
5877
5877
  };
5878
5878
  var UPDATE_DEFAULT_OPTIONS = {
5879
5879
  stackChanges: false,
@@ -5881,7 +5881,7 @@ var require_update2 = __commonJS({
5881
5881
  preventRecursive: false,
5882
5882
  currentSnapshot: false,
5883
5883
  calleeElement: false,
5884
- excludes: import_utils26.METHODS_EXL
5884
+ excludes: import_utils27.METHODS_EXL
5885
5885
  };
5886
5886
  var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
5887
5887
  const element = this;
@@ -5891,14 +5891,14 @@ var require_update2 = __commonJS({
5891
5891
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
5892
5892
  return;
5893
5893
  if (!excludes)
5894
- (0, import_utils25.merge)(options, UPDATE_DEFAULT_OPTIONS);
5894
+ (0, import_utils26.merge)(options, UPDATE_DEFAULT_OPTIONS);
5895
5895
  let ref = element.__ref;
5896
5896
  if (!ref)
5897
5897
  ref = element.__ref = {};
5898
5898
  const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
5899
5899
  if (snapshotHasUpdated)
5900
5900
  return;
5901
- if ((0, import_utils25.isString)(params) || (0, import_utils25.isNumber)(params)) {
5901
+ if ((0, import_utils26.isString)(params) || (0, import_utils26.isNumber)(params)) {
5902
5902
  params = { text: params };
5903
5903
  }
5904
5904
  const inheritState = inheritStateUpdates(element, options);
@@ -5909,7 +5909,7 @@ var require_update2 = __commonJS({
5909
5909
  return;
5910
5910
  if (ref.__if && !options.preventPropsUpdate) {
5911
5911
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
5912
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils25.isFunction)(v));
5912
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils26.isFunction)(v));
5913
5913
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
5914
5914
  if (props4)
5915
5915
  (0, import_props.updateProps)(props4, element, parent);
@@ -5919,14 +5919,14 @@ var require_update2 = __commonJS({
5919
5919
  if (initUpdateReturns === false)
5920
5920
  return element;
5921
5921
  }
5922
- const overwriteChanges = (0, import_utils25.overwriteDeep)(element, params, import_utils26.METHODS_EXL);
5922
+ const overwriteChanges = (0, import_utils26.overwriteDeep)(element, params, import_utils27.METHODS_EXL);
5923
5923
  const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
5924
5924
  const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
5925
5925
  if (!options.isForced) {
5926
5926
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
5927
5927
  }
5928
5928
  if (options.stackChanges && element.__stackChanges) {
5929
- const stackChanges = (0, import_utils25.merge)(definedChanges, (0, import_utils25.merge)(execChanges, overwriteChanges));
5929
+ const stackChanges = (0, import_utils26.merge)(definedChanges, (0, import_utils26.merge)(execChanges, overwriteChanges));
5930
5930
  element.__stackChanges.push(stackChanges);
5931
5931
  }
5932
5932
  if (!ref.__if)
@@ -5937,16 +5937,16 @@ var require_update2 = __commonJS({
5937
5937
  for (const param in element) {
5938
5938
  const prop = element[param];
5939
5939
  const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
5940
- const isInPreventUpdate = (0, import_utils25.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
5941
- const isInPreventDefineUpdate = (0, import_utils25.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
5942
- 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))
5940
+ const isInPreventUpdate = (0, import_utils26.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
5941
+ const isInPreventDefineUpdate = (0, import_utils26.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
5942
+ if ((0, import_utils26.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_utils26.isObject)(import_mixins.registry[param]) || (0, import_utils27.isVariant)(param))
5943
5943
  continue;
5944
5944
  if (options.preventStateUpdate === "once")
5945
5945
  options.preventStateUpdate = false;
5946
5946
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
5947
5947
  if (isElement) {
5948
5948
  const { hasDefine, hasContextDefine } = isElement;
5949
- const canUpdate = (0, import_utils25.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
5949
+ const canUpdate = (0, import_utils26.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
5950
5950
  if (!canUpdate)
5951
5951
  continue;
5952
5952
  const lazyLoad = element.props.lazyLoad || options.lazyLoad;
@@ -5955,7 +5955,7 @@ var require_update2 = __commonJS({
5955
5955
  currentSnapshot: snapshotOnCallee,
5956
5956
  calleeElement
5957
5957
  });
5958
- lazyLoad ? import_utils25.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
5958
+ lazyLoad ? import_utils26.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
5959
5959
  }
5960
5960
  }
5961
5961
  if (!options.preventUpdateListener)
@@ -5978,7 +5978,7 @@ var require_update2 = __commonJS({
5978
5978
  };
5979
5979
  var checkIfOnUpdate = (element, parent, options) => {
5980
5980
  var _a;
5981
- if (!(0, import_utils25.isFunction)(element.if) || !parent)
5981
+ if (!(0, import_utils26.isFunction)(element.if) || !parent)
5982
5982
  return;
5983
5983
  const ref = element.__ref;
5984
5984
  const ifPassed = element.if(element, element.state, element.context, options);
@@ -6004,7 +6004,7 @@ var require_update2 = __commonJS({
6004
6004
  node: hasPrevious || hasNext
6005
6005
  };
6006
6006
  const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create, attachOptions);
6007
- if (options.preventUpdate !== true && element.on && (0, import_utils25.isFunction)(element.on.update)) {
6007
+ if (options.preventUpdate !== true && element.on && (0, import_utils26.isFunction)(element.on.update)) {
6008
6008
  (0, import_event.applyEvent)(element.on.update, created, created.state);
6009
6009
  }
6010
6010
  return created;
@@ -6025,9 +6025,9 @@ var require_update2 = __commonJS({
6025
6025
  element.state = parent && parent.state || {};
6026
6026
  return;
6027
6027
  }
6028
- const shouldForceFunctionState = (0, import_utils25.isFunction)(stateKey) && !isHoisted && execStateFunction;
6028
+ const shouldForceFunctionState = (0, import_utils26.isFunction)(stateKey) && !isHoisted && execStateFunction;
6029
6029
  if (shouldForceFunctionState) {
6030
- const execState = (0, import_utils25.exec)(stateKey, element);
6030
+ const execState = (0, import_utils26.exec)(stateKey, element);
6031
6031
  state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true });
6032
6032
  return;
6033
6033
  }
@@ -6095,7 +6095,7 @@ var require_set2 = __commonJS({
6095
6095
  addMethods: () => addMethods
6096
6096
  });
6097
6097
  module2.exports = __toCommonJS2(set_exports);
6098
- var import_utils25 = require_cjs();
6098
+ var import_utils26 = require_cjs();
6099
6099
  var import_set = __toESM2(require_set(), 1);
6100
6100
  var import_update = __toESM2(require_update2(), 1);
6101
6101
  var import__ = require_methods2();
@@ -6116,7 +6116,7 @@ var require_set2 = __commonJS({
6116
6116
  nextElement: import__.nextElement.bind(element),
6117
6117
  previousElement: import__.previousElement.bind(element)
6118
6118
  };
6119
- if ((0, import_utils25.isDevelopment)())
6119
+ if ((0, import_utils26.isDevelopment)())
6120
6120
  proto.log = import__.log.bind(element);
6121
6121
  Object.setPrototypeOf(element, proto);
6122
6122
  };
@@ -6172,7 +6172,7 @@ var require_create4 = __commonJS({
6172
6172
  var import_set = require_set2();
6173
6173
  var import_classList = require_classList();
6174
6174
  var import_iterate = require_iterate();
6175
- var import_utils25 = require_cjs();
6175
+ var import_utils26 = require_cjs();
6176
6176
  var import_options3 = __toESM2(require_options(), 1);
6177
6177
  var import_component = require_component();
6178
6178
  var ENV2 = "development";
@@ -6185,7 +6185,7 @@ var require_create4 = __commonJS({
6185
6185
  parent = redefineParent(element, parent, key);
6186
6186
  key = createKey(element, parent, key);
6187
6187
  const ref = addRef(element, parent, key);
6188
- ref.__initialProps = (0, import_utils25.deepClone)(element.props, []);
6188
+ ref.__initialProps = (0, import_utils26.deepClone)(element.props, []);
6189
6189
  applyContext(element, parent, options);
6190
6190
  (0, import_component.applyComponentFromContext)(element, parent, options);
6191
6191
  if (!ref.__skipCreate) {
@@ -6228,7 +6228,7 @@ var require_create4 = __commonJS({
6228
6228
  }
6229
6229
  return {};
6230
6230
  }
6231
- if ((0, import_utils25.isString)(key) && key.slice(0, 2 === "__")) {
6231
+ if ((0, import_utils26.isString)(key) && key.slice(0, 2 === "__")) {
6232
6232
  if (ENV2 === "test" || ENV2 === "development") {
6233
6233
  console.warn(key, "seems like to be in __ref");
6234
6234
  }
@@ -6255,7 +6255,7 @@ var require_create4 = __commonJS({
6255
6255
  var redefineParent = (element, parent, key, options) => {
6256
6256
  if (!parent)
6257
6257
  return import_tree.ROOT;
6258
- if ((0, import_utils25.isNode)(parent)) {
6258
+ if ((0, import_utils26.isNode)(parent)) {
6259
6259
  const parentNodeWrapper = { key: ":root", node: parent };
6260
6260
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
6261
6261
  return parentNodeWrapper;
@@ -6269,7 +6269,7 @@ var require_create4 = __commonJS({
6269
6269
  }
6270
6270
  };
6271
6271
  var createKey = (element, parent, key) => {
6272
- return ((0, import_utils25.exec)(key, element) || key || element.key || (0, import_utils25.generateKey)()).toString();
6272
+ return ((0, import_utils26.exec)(key, element) || key || element.key || (0, import_utils26.generateKey)()).toString();
6273
6273
  };
6274
6274
  var addRef = (element, parent) => {
6275
6275
  if (element.__ref)
@@ -6301,7 +6301,7 @@ var require_create4 = __commonJS({
6301
6301
  (0, import_event.triggerEventOn)("render", element, options);
6302
6302
  };
6303
6303
  var checkIfPrimitive = (element) => {
6304
- return (0, import_utils25.is)(element)("string", "number");
6304
+ return (0, import_utils26.is)(element)("string", "number");
6305
6305
  };
6306
6306
  var applyValueAsText = (element, parent, key) => {
6307
6307
  const extendTag = element.extend && element.extend.tag;
@@ -6325,7 +6325,7 @@ var require_create4 = __commonJS({
6325
6325
  };
6326
6326
  var createIfConditionFlag = (element, parent) => {
6327
6327
  const { __ref: ref } = element;
6328
- if ((0, import_utils25.isFunction)(element.if) && !element.if(element, element.state)) {
6328
+ if ((0, import_utils26.isFunction)(element.if) && !element.if(element, element.state)) {
6329
6329
  delete ref.__if;
6330
6330
  } else
6331
6331
  ref.__if = true;
@@ -6384,7 +6384,7 @@ var require_create4 = __commonJS({
6384
6384
  ref.__children = [];
6385
6385
  (0, import_set.addMethods)(element, parent);
6386
6386
  (0, import_state2.createState)(element, parent);
6387
- if ((0, import_utils25.isFunction)(element.if)) {
6387
+ if ((0, import_utils26.isFunction)(element.if)) {
6388
6388
  const ifPassed = element.if(element, element.state);
6389
6389
  if (!ifPassed) {
6390
6390
  delete ref.__if;
@@ -6404,7 +6404,7 @@ var require_create4 = __commonJS({
6404
6404
  (0, import_iterate.throughInitialDefine)(element);
6405
6405
  (0, import_iterate.throughInitialExec)(element);
6406
6406
  for (const k in element) {
6407
- 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))
6407
+ if ((0, import_utils26.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils26.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
6408
6408
  continue;
6409
6409
  const hasDefine = element.define && element.define[k];
6410
6410
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -6412,7 +6412,7 @@ var require_create4 = __commonJS({
6412
6412
  if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
6413
6413
  continue;
6414
6414
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
6415
- create2((0, import_utils25.exec)(element[k], element), element, k, options);
6415
+ create2((0, import_utils26.exec)(element[k], element), element, k, options);
6416
6416
  }
6417
6417
  }
6418
6418
  }
@@ -6645,7 +6645,7 @@ var require_cjs10 = __commonJS({
6645
6645
  }
6646
6646
  });
6647
6647
  var require_key3 = __commonJS2({
6648
- "../../../domql/packages/utils/dist/cjs/key.js"(exports2, module22) {
6648
+ "../../node_modules/@domql/utils/dist/cjs/key.js"(exports2, module22) {
6649
6649
  "use strict";
6650
6650
  var __defProp22 = Object.defineProperty;
6651
6651
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -6682,7 +6682,7 @@ var require_cjs10 = __commonJS({
6682
6682
  }
6683
6683
  });
6684
6684
  var require_env3 = __commonJS2({
6685
- "../../../domql/packages/utils/dist/cjs/env.js"(exports2, module22) {
6685
+ "../../node_modules/@domql/utils/dist/cjs/env.js"(exports2, module22) {
6686
6686
  "use strict";
6687
6687
  var __defProp22 = Object.defineProperty;
6688
6688
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -6718,7 +6718,7 @@ var require_cjs10 = __commonJS({
6718
6718
  }
6719
6719
  });
6720
6720
  var require_globals3 = __commonJS2({
6721
- "../../../domql/packages/utils/dist/cjs/globals.js"(exports2, module22) {
6721
+ "../../node_modules/@domql/utils/dist/cjs/globals.js"(exports2, module22) {
6722
6722
  "use strict";
6723
6723
  var __defProp22 = Object.defineProperty;
6724
6724
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -6752,7 +6752,7 @@ var require_cjs10 = __commonJS({
6752
6752
  }
6753
6753
  });
6754
6754
  var require_node4 = __commonJS2({
6755
- "../../../domql/packages/utils/dist/cjs/node.js"(exports2, module22) {
6755
+ "../../node_modules/@domql/utils/dist/cjs/node.js"(exports2, module22) {
6756
6756
  "use strict";
6757
6757
  var __defProp22 = Object.defineProperty;
6758
6758
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -6787,7 +6787,7 @@ var require_cjs10 = __commonJS({
6787
6787
  }
6788
6788
  });
6789
6789
  var require_types3 = __commonJS2({
6790
- "../../../domql/packages/utils/dist/cjs/types.js"(exports2, module22) {
6790
+ "../../node_modules/@domql/utils/dist/cjs/types.js"(exports2, module22) {
6791
6791
  "use strict";
6792
6792
  var __defProp22 = Object.defineProperty;
6793
6793
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -6817,11 +6817,11 @@ var require_cjs10 = __commonJS({
6817
6817
  isFunction: () => isFunction22,
6818
6818
  isNot: () => isNot2,
6819
6819
  isNull: () => isNull,
6820
- isNumber: () => isNumber2,
6820
+ isNumber: () => isNumber3,
6821
6821
  isObject: () => isObject82,
6822
6822
  isObjectLike: () => isObjectLike3,
6823
6823
  isString: () => isString102,
6824
- isUndefined: () => isUndefined4
6824
+ isUndefined: () => isUndefined5
6825
6825
  });
6826
6826
  module22.exports = __toCommonJS22(types_exports);
6827
6827
  var import_node = require_node4();
@@ -6831,7 +6831,7 @@ var require_cjs10 = __commonJS({
6831
6831
  return typeof arg === "object" && arg.constructor === Object;
6832
6832
  };
6833
6833
  var isString102 = (arg) => typeof arg === "string";
6834
- var isNumber2 = (arg) => typeof arg === "number";
6834
+ var isNumber3 = (arg) => typeof arg === "number";
6835
6835
  var isFunction22 = (arg) => typeof arg === "function";
6836
6836
  var isBoolean = (arg) => arg === true || arg === false;
6837
6837
  var isNull = (arg) => arg === null;
@@ -6843,9 +6843,9 @@ var require_cjs10 = __commonJS({
6843
6843
  return typeof arg === "object";
6844
6844
  };
6845
6845
  var isDefined2 = (arg) => {
6846
- return isObject82(arg) || isObjectLike3(arg) || isString102(arg) || isNumber2(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
6846
+ return isObject82(arg) || isObjectLike3(arg) || isString102(arg) || isNumber3(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
6847
6847
  };
6848
- var isUndefined4 = (arg) => {
6848
+ var isUndefined5 = (arg) => {
6849
6849
  return arg === void 0;
6850
6850
  };
6851
6851
  var TYPES = {
@@ -6854,7 +6854,7 @@ var require_cjs10 = __commonJS({
6854
6854
  object: isObject82,
6855
6855
  string: isString102,
6856
6856
  date: isDate,
6857
- number: isNumber2,
6857
+ number: isNumber3,
6858
6858
  null: isNull,
6859
6859
  function: isFunction22,
6860
6860
  objectLike: isObjectLike3,
@@ -6875,7 +6875,7 @@ var require_cjs10 = __commonJS({
6875
6875
  }
6876
6876
  });
6877
6877
  var require_array3 = __commonJS2({
6878
- "../../../domql/packages/utils/dist/cjs/array.js"(exports2, module22) {
6878
+ "../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
6879
6879
  "use strict";
6880
6880
  var __defProp22 = Object.defineProperty;
6881
6881
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -6986,7 +6986,7 @@ var require_cjs10 = __commonJS({
6986
6986
  }
6987
6987
  });
6988
6988
  var require_string3 = __commonJS2({
6989
- "../../../domql/packages/utils/dist/cjs/string.js"(exports2, module22) {
6989
+ "../../node_modules/@domql/utils/dist/cjs/string.js"(exports2, module22) {
6990
6990
  "use strict";
6991
6991
  var __defProp22 = Object.defineProperty;
6992
6992
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -7049,7 +7049,7 @@ var require_cjs10 = __commonJS({
7049
7049
  }
7050
7050
  });
7051
7051
  var require_object4 = __commonJS2({
7052
- "../../../domql/packages/utils/dist/cjs/object.js"(exports2, module22) {
7052
+ "../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
7053
7053
  "use strict";
7054
7054
  var __defProp22 = Object.defineProperty;
7055
7055
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -7557,7 +7557,7 @@ var require_cjs10 = __commonJS({
7557
7557
  }
7558
7558
  });
7559
7559
  var require_function3 = __commonJS2({
7560
- "../../../domql/packages/utils/dist/cjs/function.js"(exports2, module22) {
7560
+ "../../node_modules/@domql/utils/dist/cjs/function.js"(exports2, module22) {
7561
7561
  "use strict";
7562
7562
  var __defProp22 = Object.defineProperty;
7563
7563
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -7630,7 +7630,7 @@ var require_cjs10 = __commonJS({
7630
7630
  }
7631
7631
  });
7632
7632
  var require_log3 = __commonJS2({
7633
- "../../../domql/packages/utils/dist/cjs/log.js"(exports2, module22) {
7633
+ "../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
7634
7634
  "use strict";
7635
7635
  var __defProp22 = Object.defineProperty;
7636
7636
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -7669,7 +7669,7 @@ var require_cjs10 = __commonJS({
7669
7669
  }
7670
7670
  });
7671
7671
  var require_cookie3 = __commonJS2({
7672
- "../../../domql/packages/utils/dist/cjs/cookie.js"(exports2, module22) {
7672
+ "../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports2, module22) {
7673
7673
  "use strict";
7674
7674
  var __defProp22 = Object.defineProperty;
7675
7675
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -7723,7 +7723,7 @@ var require_cjs10 = __commonJS({
7723
7723
  }
7724
7724
  });
7725
7725
  var require_tags4 = __commonJS2({
7726
- "../../../domql/packages/utils/dist/cjs/tags.js"(exports2, module22) {
7726
+ "../../node_modules/@domql/utils/dist/cjs/tags.js"(exports2, module22) {
7727
7727
  "use strict";
7728
7728
  var __defProp22 = Object.defineProperty;
7729
7729
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -7886,7 +7886,7 @@ var require_cjs10 = __commonJS({
7886
7886
  }
7887
7887
  });
7888
7888
  var require_cjs22 = __commonJS2({
7889
- "../../../domql/packages/utils/dist/cjs/index.js"(exports2, module22) {
7889
+ "../../node_modules/@domql/utils/dist/cjs/index.js"(exports2, module22) {
7890
7890
  "use strict";
7891
7891
  var __defProp22 = Object.defineProperty;
7892
7892
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
@@ -7920,10 +7920,10 @@ var require_cjs10 = __commonJS({
7920
7920
  });
7921
7921
  var src_exports2 = {};
7922
7922
  __export2(src_exports2, {
7923
- ANIMATION: () => ANIMATION,
7923
+ ANIMATION: () => ANIMATION2,
7924
7924
  BREAKPOINTS: () => BREAKPOINTS,
7925
7925
  CASES: () => CASES,
7926
- COLOR: () => COLOR2,
7926
+ COLOR: () => COLOR3,
7927
7927
  CONFIG: () => CONFIG3,
7928
7928
  CSS_VARS: () => CSS_VARS,
7929
7929
  DEVICES: () => DEVICES,
@@ -8089,7 +8089,7 @@ var require_cjs10 = __commonJS({
8089
8089
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
8090
8090
  };
8091
8091
  var import_globals2 = __toESM2(require_cjs15(), 1);
8092
- var import_utils25 = __toESM2(require_cjs22(), 1);
8092
+ var import_utils26 = __toESM2(require_cjs22(), 1);
8093
8093
  var ENV2 = "development";
8094
8094
  var colorStringToRgbaArray = (color) => {
8095
8095
  if (color === "")
@@ -8217,11 +8217,11 @@ var require_cjs10 = __commonJS({
8217
8217
  return `rgba(${arr})`;
8218
8218
  };
8219
8219
  var getRgbTone = (rgb, tone) => {
8220
- if ((0, import_utils25.isString)(rgb) && rgb.includes("rgb"))
8220
+ if ((0, import_utils26.isString)(rgb) && rgb.includes("rgb"))
8221
8221
  rgb = colorStringToRgbaArray(rgb).join(", ");
8222
- if ((0, import_utils25.isString)(rgb))
8222
+ if ((0, import_utils26.isString)(rgb))
8223
8223
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
8224
- if ((0, import_utils25.isNumber)(tone))
8224
+ if ((0, import_utils26.isNumber)(tone))
8225
8225
  tone += "";
8226
8226
  const toHex = rgbArrayToHex(rgb);
8227
8227
  const abs2 = tone.slice(0, 1);
@@ -8286,7 +8286,7 @@ var require_cjs10 = __commonJS({
8286
8286
  };
8287
8287
  var import_utils52 = __toESM2(require_cjs22(), 1);
8288
8288
  var import_utils32 = __toESM2(require_cjs22());
8289
- var import_utils26 = __toESM2(require_cjs22());
8289
+ var import_utils27 = __toESM2(require_cjs22());
8290
8290
  var toCamelCase2 = (str) => {
8291
8291
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
8292
8292
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
@@ -8298,16 +8298,18 @@ var require_cjs10 = __commonJS({
8298
8298
  return val.split(" ");
8299
8299
  if ((0, import_utils32.isObject)(val))
8300
8300
  return Object.keys(val).map((v) => val[v]);
8301
+ if ((0, import_utils32.isNumber)(val))
8302
+ return [val];
8301
8303
  if ((0, import_utils32.isArray)(val))
8302
8304
  return val;
8303
8305
  };
8304
8306
  var import_utils42 = __toESM2(require_cjs22(), 1);
8305
8307
  var defaultConfig_exports = {};
8306
8308
  __export2(defaultConfig_exports, {
8307
- ANIMATION: () => ANIMATION,
8309
+ ANIMATION: () => ANIMATION2,
8308
8310
  BREAKPOINTS: () => BREAKPOINTS,
8309
8311
  CASES: () => CASES,
8310
- COLOR: () => COLOR2,
8312
+ COLOR: () => COLOR3,
8311
8313
  DEVICES: () => DEVICES,
8312
8314
  DOCUMENT: () => DOCUMENT,
8313
8315
  FONT: () => FONT2,
@@ -8422,7 +8424,7 @@ var require_cjs10 = __commonJS({
8422
8424
  vars: {}
8423
8425
  };
8424
8426
  var SPACING2 = defaultProps2;
8425
- var COLOR2 = {};
8427
+ var COLOR3 = {};
8426
8428
  var GRADIENT2 = {};
8427
8429
  var THEME2 = {};
8428
8430
  var SHADOW = {};
@@ -8466,7 +8468,7 @@ var require_cjs10 = __commonJS({
8466
8468
  mobileXS: [375, 768]
8467
8469
  };
8468
8470
  var CASES = {};
8469
- var ANIMATION = {};
8471
+ var ANIMATION2 = {};
8470
8472
  var SVG = {};
8471
8473
  var SVG_DATA = {};
8472
8474
  var TEMPLATES = {};
@@ -9687,7 +9689,7 @@ var require_cjs10 = __commonJS({
9687
9689
  });
9688
9690
  }
9689
9691
  };
9690
- var import_utils27 = __toESM2(require_cjs22(), 1);
9692
+ var import_utils272 = __toESM2(require_cjs22(), 1);
9691
9693
  var isBorderStyle = (str) => [
9692
9694
  "none",
9693
9695
  "hidden",
@@ -9759,7 +9761,7 @@ var require_cjs10 = __commonJS({
9759
9761
  return v;
9760
9762
  }).join(" ");
9761
9763
  };
9762
- var transfromGap2 = (gap) => (0, import_utils27.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
9764
+ var transfromGap2 = (gap) => (0, import_utils272.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
9763
9765
  var transformTransition = (transition) => {
9764
9766
  const arr = transition.split(" ");
9765
9767
  if (!arr.length)
@@ -9777,7 +9779,7 @@ var require_cjs10 = __commonJS({
9777
9779
  }).join(" ");
9778
9780
  };
9779
9781
  var transformDuration2 = (duration, props4, propertyName) => {
9780
- if (!(0, import_utils27.isString)(duration))
9782
+ if (!(0, import_utils272.isString)(duration))
9781
9783
  return;
9782
9784
  return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
9783
9785
  };
@@ -10012,8 +10014,8 @@ var require_cjs12 = __commonJS({
10012
10014
  router: () => router2
10013
10015
  });
10014
10016
  module2.exports = __toCommonJS2(router_exports);
10015
- var import_utils25 = require_cjs();
10016
- var getActiveRoute = (level = 0, route = import_utils25.window.location.pathname) => {
10017
+ var import_utils26 = require_cjs();
10018
+ var getActiveRoute = (level = 0, route = import_utils26.window.location.pathname) => {
10017
10019
  const routeArray = route.split("/");
10018
10020
  const activeRoute = routeArray[level + 1];
10019
10021
  if (activeRoute)
@@ -10027,7 +10029,7 @@ var require_cjs12 = __commonJS({
10027
10029
  initialRender: false,
10028
10030
  scrollToTop: true,
10029
10031
  scrollToNode: false,
10030
- scrollNode: import_utils25.document && import_utils25.document.documentElement,
10032
+ scrollNode: import_utils26.document && import_utils26.document.documentElement,
10031
10033
  scrollBody: false,
10032
10034
  useFragment: false,
10033
10035
  updateState: true,
@@ -10042,13 +10044,13 @@ var require_cjs12 = __commonJS({
10042
10044
  const route = getActiveRoute(options.level, pathname);
10043
10045
  const content = element.routes[route || "/"] || element.routes["/*"];
10044
10046
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
10045
- const hashChanged = hash2 && hash2 !== import_utils25.window.location.hash.slice(1);
10047
+ const hashChanged = hash2 && hash2 !== import_utils26.window.location.hash.slice(1);
10046
10048
  const pathChanged = pathname !== lastPathname;
10047
10049
  lastPathname = pathname;
10048
10050
  if (!content)
10049
10051
  return;
10050
10052
  if (options.pushState) {
10051
- import_utils25.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
10053
+ import_utils26.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
10052
10054
  }
10053
10055
  if (pathChanged || !hashChanged) {
10054
10056
  if (options.updateState) {
@@ -10074,7 +10076,7 @@ var require_cjs12 = __commonJS({
10074
10076
  });
10075
10077
  }
10076
10078
  if (hash2) {
10077
- const activeNode = import_utils25.document.getElementById(hash2);
10079
+ const activeNode = import_utils26.document.getElementById(hash2);
10078
10080
  if (activeNode) {
10079
10081
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
10080
10082
  scrollNode.scrollTo({
@@ -10469,7 +10471,7 @@ __export(src_exports, {
10469
10471
  });
10470
10472
  module.exports = __toCommonJS(src_exports);
10471
10473
  var import_domql = __toESM(require_cjs9(), 1);
10472
- var import_utils24 = __toESM(require_cjs(), 1);
10474
+ var import_utils25 = __toESM(require_cjs(), 1);
10473
10475
 
10474
10476
  // src/utilImports.js
10475
10477
  var utilImports_exports = {};
@@ -10480,14 +10482,14 @@ __export(utilImports_exports, {
10480
10482
  findClosestNumberInFactory: () => findClosestNumberInFactory,
10481
10483
  formatDate: () => formatDate,
10482
10484
  init: () => init,
10485
+ reInit: () => reInit,
10483
10486
  scratchSystem: () => import_scratch2.scratchSystem,
10484
10487
  scratchUtils: () => import_scratch2.scratchUtils,
10485
10488
  set: () => import_scratch2.set,
10486
10489
  toCamelCase: () => toCamelCase,
10487
10490
  toDashCase: () => toDashCase,
10488
10491
  toDescriptionCase: () => toDescriptionCase,
10489
- toTitleCase: () => toTitleCase,
10490
- updateReset: () => updateReset
10492
+ toTitleCase: () => toTitleCase
10491
10493
  });
10492
10494
  var import_scratch2 = __toESM(require_cjs10(), 1);
10493
10495
  __reExport(utilImports_exports, __toESM(require_cjs(), 1));
@@ -10552,6 +10554,8 @@ var arrayzeValue = (val) => {
10552
10554
  return val.split(" ");
10553
10555
  if ((0, import_utils2.isObject)(val))
10554
10556
  return Object.keys(val).map((v) => val[v]);
10557
+ if ((0, import_utils2.isNumber)(val))
10558
+ return [val];
10555
10559
  if ((0, import_utils2.isArray)(val))
10556
10560
  return val;
10557
10561
  };
@@ -11966,7 +11970,7 @@ var init = (config, options = SET_OPTIONS) => {
11966
11970
  var UPDATE_OPTIONS = {
11967
11971
  emotion
11968
11972
  };
11969
- var updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
11973
+ var reInit = (config, RC_FILE, options = UPDATE_OPTIONS) => {
11970
11974
  const emotion2 = options.emotion || emotion;
11971
11975
  const resultConfig = mergeWithLocalFile(config || {}, RC_FILE);
11972
11976
  const conf = (0, import_scratch.set)({
@@ -11989,6 +11993,7 @@ __export(uikit_exports, {
11989
11993
  AvatarBundle: () => AvatarBundle,
11990
11994
  AvatarChooser: () => AvatarChooser,
11991
11995
  AvatarIndicator: () => AvatarIndicator,
11996
+ B: () => B,
11992
11997
  BalanceCard: () => BalanceCard,
11993
11998
  Banner: () => Banner,
11994
11999
  Block: () => Block,
@@ -12055,6 +12060,7 @@ __export(uikit_exports, {
12055
12060
  Headline: () => Headline,
12056
12061
  Hoverable: () => Hoverable,
12057
12062
  Hr: () => Hr,
12063
+ I: () => I,
12058
12064
  Icon: () => Icon,
12059
12065
  IconCommonButton: () => IconCommonButton,
12060
12066
  IconTab: () => IconTab,
@@ -12790,6 +12796,12 @@ var Theme = {
12790
12796
  columnRule: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.columnRule) && {
12791
12797
  columnRule: deps.transformBorder(props4.columnRule)
12792
12798
  },
12799
+ filter: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.filter) && {
12800
+ filter: props4.filter
12801
+ },
12802
+ mixBlendMode: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.mixBlendMode) && {
12803
+ mixBlendMode: props4.mixBlendMode
12804
+ },
12793
12805
  appearance: ({ props: props4 }) => !(0, import_utils5.isUndefined)(props4.appearance) && {
12794
12806
  appearance: props4.appearance
12795
12807
  }
@@ -13104,6 +13116,46 @@ var import_state = __toESM(require_cjs5());
13104
13116
  var import_utils7 = __toESM(require_cjs());
13105
13117
  var Collection = {
13106
13118
  define: {
13119
+ $collection: (param, el, state) => {
13120
+ if (!param)
13121
+ return;
13122
+ if ((0, import_utils7.isString)(param)) {
13123
+ if (param === "state")
13124
+ param = state.parse();
13125
+ else
13126
+ param = (0, import_state.getChildStateInKey)(param, state);
13127
+ }
13128
+ if ((0, import_state.isState)(param))
13129
+ param = param.parse();
13130
+ if ((0, import_utils7.isNot)(param)("array", "object"))
13131
+ return;
13132
+ const { __ref: ref } = el;
13133
+ if (ref.__stateCollectionCache) {
13134
+ const d = (0, import_utils7.deepDiff)(param, ref.__stateCollectionCache);
13135
+ if (Object.keys(d).length) {
13136
+ ref.__stateCollectionCache = (0, import_utils7.deepClone)(param);
13137
+ delete ref.__noCollectionDifference;
13138
+ } else {
13139
+ ref.__noCollectionDifference = true;
13140
+ return;
13141
+ }
13142
+ } else {
13143
+ ref.__stateCollectionCache = (0, import_utils7.deepClone)(param);
13144
+ }
13145
+ const obj = {
13146
+ tag: "fragment",
13147
+ props: {
13148
+ childProps: el.props && el.props.childProps
13149
+ }
13150
+ };
13151
+ for (const key in param) {
13152
+ const value2 = param[key];
13153
+ obj[key] = (0, import_utils7.isObjectLike)(value2) ? value2 : { value: value2 };
13154
+ }
13155
+ el.removeContent();
13156
+ el.content = obj;
13157
+ return obj;
13158
+ },
13107
13159
  $setCollection: (param, el, state) => {
13108
13160
  if (!param)
13109
13161
  return;
@@ -13335,6 +13387,7 @@ var Shape = {
13335
13387
  };
13336
13388
 
13337
13389
  // ../uikit/Atoms/Text.js
13390
+ var import_utils9 = __toESM(require_cjs());
13338
13391
  var import_scratch10 = __toESM(require_cjs10());
13339
13392
  var Text = {
13340
13393
  deps: { getFontSizeByKey: import_scratch10.getFontSizeByKey, getFontFamily: import_scratch10.getFontFamily },
@@ -13348,18 +13401,19 @@ var Text = {
13348
13401
  const { props: props4, deps } = el;
13349
13402
  return props4.fontSize ? deps.getFontSizeByKey(props4.fontSize) : null;
13350
13403
  },
13351
- fontFamily: ({ props: props4, deps }) => props4.fontFamily && {
13404
+ font: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.font) && { font: props4.font },
13405
+ fontFamily: ({ props: props4, deps }) => !(0, import_utils9.isUndefined)(props4.fontFamily) && {
13352
13406
  fontFamily: deps.getFontFamily(props4.fontFamily) || props4.fontFamily
13353
13407
  },
13354
- lineHeight: ({ props: props4 }) => props4.lineHeight && { lineHeight: props4.lineHeight },
13355
- // lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
13356
- textDecoration: ({ props: props4 }) => props4.textDecoration && { textDecoration: props4.textDecoration },
13357
- textTransform: ({ props: props4 }) => props4.textTransform && { textTransform: props4.textTransform },
13358
- whiteSpace: ({ props: props4 }) => props4.whiteSpace && { whiteSpace: props4.whiteSpace },
13359
- wordWrap: ({ props: props4 }) => props4.wordWrap && { wordWrap: props4.wordWrap },
13360
- letterSpacing: ({ props: props4 }) => props4.letterSpacing && { letterSpacing: props4.letterSpacing },
13361
- textAlign: ({ props: props4 }) => props4.textAlign && { textAlign: props4.textAlign },
13362
- fontWeight: ({ props: props4 }) => props4.fontWeight && {
13408
+ lineHeight: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.lineHeight) && { lineHeight: props4.lineHeight },
13409
+ // lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
13410
+ textDecoration: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.textDecoration) && { textDecoration: props4.textDecoration },
13411
+ textTransform: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.textTransform) && { textTransform: props4.textTransform },
13412
+ whiteSpace: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.whiteSpace) && { whiteSpace: props4.whiteSpace },
13413
+ wordWrap: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.wordWrap) && { wordWrap: props4.wordWrap },
13414
+ letterSpacing: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.letterSpacing) && { letterSpacing: props4.letterSpacing },
13415
+ textAlign: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.textAlign) && { textAlign: props4.textAlign },
13416
+ fontWeight: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.fontWeight) && {
13363
13417
  fontWeight: props4.fontWeight,
13364
13418
  fontVariationSettings: '"wght" ' + props4.fontWeight
13365
13419
  }
@@ -13392,10 +13446,13 @@ var Footnote = {
13392
13446
  tag: "span",
13393
13447
  props: { fontSize: "Z" }
13394
13448
  };
13449
+ var B = { tag: "b" };
13450
+ var I = { tag: "i" };
13395
13451
 
13396
13452
  // ../uikit/Atoms/Transform.js
13397
13453
  var Transform = {
13398
13454
  class: {
13455
+ zoom: ({ props: props4 }) => props4.zoom && { zoom: props4.zoom },
13399
13456
  transform: ({ props: props4 }) => props4.transform && { transform: props4.transform },
13400
13457
  transformOrigin: ({ props: props4 }) => props4.transformOrigin && { transformOrigin: props4.transformOrigin }
13401
13458
  }
@@ -13410,18 +13467,18 @@ var XYZ = {
13410
13467
 
13411
13468
  // ../uikit/Atoms/Animation.js
13412
13469
  var import_scratch11 = __toESM(require_cjs10());
13413
- var import_utils9 = __toESM(require_cjs());
13470
+ var import_utils10 = __toESM(require_cjs());
13414
13471
  var applyAnimationProps = (animation, element) => {
13415
13472
  const { emotion: ctxEmotion } = element.context;
13416
13473
  const { keyframes } = ctxEmotion || emotion;
13417
- if ((0, import_utils9.isObject)(animation))
13474
+ if ((0, import_utils10.isObject)(animation))
13418
13475
  return { animationName: keyframes(animation) };
13419
- const { ANIMATION } = element.context && element.context.designSystem;
13420
- const record = ANIMATION[animation];
13476
+ const { ANIMATION: ANIMATION2 } = element.context && element.context.designSystem;
13477
+ const record = ANIMATION2[animation];
13421
13478
  return keyframes(record);
13422
13479
  };
13423
13480
  var Animation = {
13424
- deps: { isObject: import_utils9.isObject, getTimingByKey: import_scratch11.getTimingByKey, getTimingFunction: import_scratch11.getTimingFunction, applyAnimationProps },
13481
+ deps: { isObject: import_utils10.isObject, getTimingByKey: import_scratch11.getTimingByKey, getTimingFunction: import_scratch11.getTimingFunction, applyAnimationProps },
13425
13482
  class: {
13426
13483
  animation: (el) => el.props.animation && {
13427
13484
  animationName: el.deps.applyAnimationProps(el.props.animation, el),
@@ -13460,7 +13517,7 @@ var Animation = {
13460
13517
  };
13461
13518
 
13462
13519
  // ../uikit/Box/index.js
13463
- var import_utils10 = __toESM(require_cjs());
13520
+ var import_utils11 = __toESM(require_cjs());
13464
13521
  var PropsCSS = {
13465
13522
  class: {
13466
13523
  style: ({ props: props4 }) => props4 && props4.style
@@ -13482,7 +13539,7 @@ var Box = {
13482
13539
  XYZ,
13483
13540
  Animation
13484
13541
  ],
13485
- deps: { isString: import_utils10.isString },
13542
+ deps: { isString: import_utils11.isString },
13486
13543
  attr: {
13487
13544
  id: ({ props: props4, deps }) => deps.isString(props4.id) && props4.id,
13488
13545
  title: ({ props: props4, deps }) => deps.isString(props4.title) && props4.title,
@@ -13503,10 +13560,10 @@ var Circle = {
13503
13560
  };
13504
13561
 
13505
13562
  // ../uikit/Icon/index.js
13506
- var import_utils11 = __toESM(require_cjs());
13563
+ var import_utils12 = __toESM(require_cjs());
13507
13564
  var Icon = {
13508
13565
  extend: Svg,
13509
- deps: { isString: import_utils11.isString },
13566
+ deps: { isString: import_utils12.isString },
13510
13567
  props: ({ key, props: props4, parent, context, deps }) => {
13511
13568
  const { ICONS, useIconSprite, verbose } = context && context.designSystem;
13512
13569
  const { toCamelCase: toCamelCase2 } = context && context.utils;
@@ -13699,7 +13756,7 @@ var TitleParagraph = {
13699
13756
  props: {
13700
13757
  margin: "0",
13701
13758
  fontWeight: "400",
13702
- color: "gray4",
13759
+ color: "caption",
13703
13760
  "> p": { margin: "0" }
13704
13761
  }
13705
13762
  }
@@ -13736,7 +13793,7 @@ var TitleParagraphButton = {
13736
13793
  Button: {
13737
13794
  props: {
13738
13795
  background: "transparent",
13739
- color: "white",
13796
+ color: "currentColor",
13740
13797
  padding: "0",
13741
13798
  Icon: {
13742
13799
  name: "x",
@@ -13786,7 +13843,7 @@ var List = {
13786
13843
  position: "relative",
13787
13844
  cursor: "pointer",
13788
13845
  fontSize: "A1",
13789
- color: "gray4",
13846
+ color: "caption",
13790
13847
  ":hover": {
13791
13848
  background: "gray .92 +4"
13792
13849
  },
@@ -14045,7 +14102,7 @@ var CommonField = {
14045
14102
  text: "Label",
14046
14103
  lineHeight: "1em",
14047
14104
  padding: "- - - V2",
14048
- color: "gray4"
14105
+ color: "caption"
14049
14106
  }
14050
14107
  },
14051
14108
  Field: {
@@ -14054,7 +14111,7 @@ var CommonField = {
14054
14111
  Hint: {
14055
14112
  extend: IconText,
14056
14113
  props: {
14057
- color: "gray4",
14114
+ color: "caption",
14058
14115
  align: "center flex-start",
14059
14116
  text: "",
14060
14117
  fontSize: "Z1",
@@ -14386,7 +14443,7 @@ var Banner = {
14386
14443
  content: '""',
14387
14444
  position: "absolute",
14388
14445
  boxSize: "V 100%",
14389
- background: "white .1",
14446
+ theme: "dialog",
14390
14447
  top: "0",
14391
14448
  round: "C"
14392
14449
  }
@@ -14405,8 +14462,7 @@ var Banner = {
14405
14462
  Title: {
14406
14463
  tag: "h6",
14407
14464
  props: {
14408
- fontSize: "B",
14409
- color: "white .85"
14465
+ fontSize: "B"
14410
14466
  }
14411
14467
  },
14412
14468
  Paragraph: {
@@ -14421,9 +14477,7 @@ var Banner = {
14421
14477
  letterSpacing: ".1px",
14422
14478
  padding: "B - - Y",
14423
14479
  fontSize: "Z2",
14424
- color: "white .5",
14425
14480
  lineHeight: "1.6em"
14426
- // fontWeight: '100'
14427
14481
  }
14428
14482
  }
14429
14483
  };
@@ -14609,11 +14663,11 @@ var DoubleHr = {
14609
14663
  };
14610
14664
 
14611
14665
  // ../uikit/Input/Input.js
14612
- var import_utils12 = __toESM(require_cjs());
14666
+ var import_utils13 = __toESM(require_cjs());
14613
14667
  var Input = {
14614
14668
  tag: "input",
14615
14669
  extend: [Focusable],
14616
- deps: { isString: import_utils12.isString, replaceLiteralsWithObjectFields: import_utils12.replaceLiteralsWithObjectFields },
14670
+ deps: { isString: import_utils13.isString, replaceLiteralsWithObjectFields: import_utils13.replaceLiteralsWithObjectFields },
14617
14671
  props: {
14618
14672
  border: "none",
14619
14673
  type: "input",
@@ -15153,7 +15207,7 @@ var ProgressCircleWithSideUnitValue = {
15153
15207
  };
15154
15208
 
15155
15209
  // ../uikit/Range/index.js
15156
- var import_utils13 = __toESM(require_cjs());
15210
+ var import_utils14 = __toESM(require_cjs());
15157
15211
  var import_scratch12 = __toESM(require_cjs10());
15158
15212
  var props = {
15159
15213
  appearance: "none",
@@ -15221,7 +15275,7 @@ var Range = {
15221
15275
  };
15222
15276
  var returnPropertyValue = (el, property, def) => {
15223
15277
  const val = el.props && el.props[property];
15224
- const r = (0, import_utils13.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
15278
+ const r = (0, import_utils14.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
15225
15279
  return r + "";
15226
15280
  };
15227
15281
  var RangeWithButtons = {
@@ -15231,7 +15285,7 @@ var RangeWithButtons = {
15231
15285
  on: {
15232
15286
  click: (ev, el, s) => {
15233
15287
  const parentProps = el.parent.props;
15234
- if ((0, import_utils13.isFunction)(parentProps.onDecrease)) {
15288
+ if ((0, import_utils14.isFunction)(parentProps.onDecrease)) {
15235
15289
  parentProps.onDecrease(ev, el.parent, s);
15236
15290
  } else {
15237
15291
  const value2 = parseFloat(s.value);
@@ -15263,7 +15317,7 @@ var RangeWithButtons = {
15263
15317
  on: {
15264
15318
  input: (ev, el, s) => {
15265
15319
  const parentProps = el.parent.props;
15266
- if ((0, import_utils13.isFunction)(parentProps.onInput)) {
15320
+ if ((0, import_utils14.isFunction)(parentProps.onInput)) {
15267
15321
  parentProps.onInput(ev, el, s);
15268
15322
  } else {
15269
15323
  s.update({ value: parseFloat(el.node.value) });
@@ -15271,7 +15325,7 @@ var RangeWithButtons = {
15271
15325
  },
15272
15326
  change: (ev, el, s) => {
15273
15327
  const parentProps = el.parent.props;
15274
- if ((0, import_utils13.isFunction)(parentProps.onChange)) {
15328
+ if ((0, import_utils14.isFunction)(parentProps.onChange)) {
15275
15329
  parentProps.onChange(ev, el, s);
15276
15330
  } else {
15277
15331
  s.update({ value: parseFloat(el.node.value) });
@@ -15285,7 +15339,7 @@ var RangeWithButtons = {
15285
15339
  on: {
15286
15340
  click: (ev, el, s) => {
15287
15341
  const parentProps = el.parent.props;
15288
- if ((0, import_utils13.isFunction)(parentProps.onIncrease)) {
15342
+ if ((0, import_utils14.isFunction)(parentProps.onIncrease)) {
15289
15343
  parentProps.onIncrease(ev, el.parent, s);
15290
15344
  } else {
15291
15345
  const value2 = parseFloat(s.value);
@@ -15321,7 +15375,7 @@ var style_default = {
15321
15375
 
15322
15376
  // ../uikit/Slider/index.js
15323
15377
  var import_scratch13 = __toESM(require_cjs10());
15324
- var import_utils14 = __toESM(require_cjs());
15378
+ var import_utils15 = __toESM(require_cjs());
15325
15379
  (0, import_scratch13.set)({
15326
15380
  theme: {
15327
15381
  sliderThumb: {
@@ -15353,7 +15407,7 @@ var RangeSlider = {
15353
15407
  };
15354
15408
  var listenProp = (el, prop, def) => {
15355
15409
  const val = el && el.props && el.props[prop];
15356
- const r = ((0, import_utils14.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
15410
+ const r = ((0, import_utils15.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
15357
15411
  return r;
15358
15412
  };
15359
15413
  var Slider = {
@@ -15364,10 +15418,10 @@ var Slider = {
15364
15418
  },
15365
15419
  on: {
15366
15420
  click: (ev, el, s) => {
15367
- el.props && (0, import_utils14.isFunction)(el.props.click) && el.props.click(ev, el, s);
15421
+ el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
15368
15422
  const input = el.parent.input;
15369
15423
  const props4 = input.props;
15370
- const value2 = (0, import_utils14.isFunction)(props4.value) ? props4.value() : props4.value;
15424
+ const value2 = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
15371
15425
  input.node.value = value2;
15372
15426
  }
15373
15427
  }
@@ -15390,8 +15444,8 @@ var Slider = {
15390
15444
  step: (el, s) => listenProp(el, "step", 1)
15391
15445
  },
15392
15446
  on: {
15393
- input: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.input) && el.props.input(ev, el, s),
15394
- change: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.change) && el.props.change(ev, el, s)
15447
+ input: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.input) && el.props.input(ev, el, s),
15448
+ change: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.change) && el.props.change(ev, el, s)
15395
15449
  }
15396
15450
  },
15397
15451
  button1: {
@@ -15401,10 +15455,10 @@ var Slider = {
15401
15455
  },
15402
15456
  on: {
15403
15457
  click: (ev, el, s) => {
15404
- el.props && (0, import_utils14.isFunction)(el.props.click) && el.props.click(ev, el, s);
15458
+ el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
15405
15459
  const input = el.parent.input;
15406
15460
  const props4 = input.props;
15407
- const value2 = (0, import_utils14.isFunction)(props4.value) ? props4.value() : props4.value;
15461
+ const value2 = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
15408
15462
  input.node.value = value2;
15409
15463
  }
15410
15464
  }
@@ -15418,7 +15472,6 @@ var Label = {
15418
15472
  text: "-2.902x",
15419
15473
  fontSize: "X2",
15420
15474
  boxSize: "fit-content fit-content",
15421
- background: "#F4454E",
15422
15475
  padding: "W2 Y2",
15423
15476
  round: "Y1",
15424
15477
  fontWeight: "400"
@@ -15621,7 +15674,7 @@ var NotificationIndicator = {
15621
15674
  };
15622
15675
 
15623
15676
  // ../uikit/Tooltip/index.js
15624
- var import_utils15 = __toESM(require_cjs());
15677
+ var import_utils16 = __toESM(require_cjs());
15625
15678
  var Tooltip = {
15626
15679
  extend: Flex,
15627
15680
  props: {
@@ -15640,7 +15693,7 @@ var Tooltip = {
15640
15693
  },
15641
15694
  attr: { tooltip: true },
15642
15695
  Title: {
15643
- if: ({ parent, props: props4 }) => (0, import_utils15.isDefined)(parent.props.title) || props4.text,
15696
+ if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.title) || props4.text,
15644
15697
  props: ({ parent }) => ({
15645
15698
  width: "fit-content",
15646
15699
  fontWeight: 500,
@@ -15649,7 +15702,7 @@ var Tooltip = {
15649
15702
  })
15650
15703
  },
15651
15704
  P: {
15652
- if: ({ parent, props: props4 }) => (0, import_utils15.isDefined)(parent.props.description) || props4.text,
15705
+ if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.description) || props4.text,
15653
15706
  props: ({ parent }) => ({
15654
15707
  width: "fit-content",
15655
15708
  fontSize: "Z2",
@@ -15939,7 +15992,7 @@ var LineStepsWithTitleParagraph = {
15939
15992
  Paragraph: {
15940
15993
  text: "The easiest way to build your own website.",
15941
15994
  fontSize: "Z1",
15942
- color: "gray4"
15995
+ color: "caption"
15943
15996
  }
15944
15997
  },
15945
15998
  LineSteps: {
@@ -15961,7 +16014,7 @@ var ParagraphButton = {
15961
16014
  P: {
15962
16015
  props: {
15963
16016
  text: "Didn't get the code?",
15964
- color: "gray4",
16017
+ color: "caption",
15965
16018
  margin: "0"
15966
16019
  }
15967
16020
  },
@@ -16103,7 +16156,7 @@ var Modal = {
16103
16156
  Paragraph: {
16104
16157
  props: {
16105
16158
  fontSize: "Z",
16106
- color: "gray4",
16159
+ color: "caption",
16107
16160
  padding: "- Y"
16108
16161
  }
16109
16162
  }
@@ -16839,7 +16892,7 @@ var LogIn = {
16839
16892
  extend: SocialLink,
16840
16893
  props: {
16841
16894
  minWidth: "100%",
16842
- color: "gray4"
16895
+ color: "caption"
16843
16896
  }
16844
16897
  },
16845
16898
  ...[{}, {}]
@@ -17602,7 +17655,7 @@ var BalanceCard = {
17602
17655
  padding: "0",
17603
17656
  theme: "transparent",
17604
17657
  fontSize: "D",
17605
- color: "gray4",
17658
+ color: "caption",
17606
17659
  margin: "-X -W2 - -",
17607
17660
  Icon: { name: "arrowUpRight" }
17608
17661
  }
@@ -17620,7 +17673,7 @@ var BalanceCard = {
17620
17673
  },
17621
17674
  UnitValue: {
17622
17675
  flow: "row-reverse",
17623
- color: "white .75",
17676
+ color: "paragraph",
17624
17677
  fontWeight: "400",
17625
17678
  fontSize: "Z",
17626
17679
  gap: "Y",
@@ -17700,7 +17753,7 @@ var ConvertCard = {
17700
17753
  props: {
17701
17754
  justifyContent: "space-between",
17702
17755
  fontWeight: "400",
17703
- color: "gray4"
17756
+ color: "caption"
17704
17757
  },
17705
17758
  caption: {
17706
17759
  props: {
@@ -17826,6 +17879,7 @@ var defaultDefine = {
17826
17879
  set5();
17827
17880
  return obj;
17828
17881
  },
17882
+ $collection: Collection.define.$collection,
17829
17883
  $setCollection: Collection.define.$setCollection,
17830
17884
  $setStateCollection: Collection.define.$setStateCollection,
17831
17885
  $setPropsCollection: Collection.define.$setPropsCollection
@@ -17833,7 +17887,7 @@ var defaultDefine = {
17833
17887
 
17834
17888
  // src/router.js
17835
17889
  var import_router2 = __toESM(require_cjs12(), 1);
17836
- var import_utils16 = __toESM(require_cjs(), 1);
17890
+ var import_utils17 = __toESM(require_cjs(), 1);
17837
17891
  var DEFAULT_ROUTING_OPTIONS = {
17838
17892
  initRouter: true,
17839
17893
  injectRouterInLinkComponent: true,
@@ -17845,16 +17899,16 @@ var initRouter = (element, options) => {
17845
17899
  else if (options.router === true)
17846
17900
  options.router = DEFAULT_ROUTING_OPTIONS;
17847
17901
  else
17848
- (0, import_utils16.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS);
17902
+ (0, import_utils17.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS);
17849
17903
  const routerOptions = options.router;
17850
17904
  const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
17851
17905
  const onRouterRenderDefault = (el, s) => {
17852
- const { pathname, hash: hash2 } = import_utils16.window.location;
17906
+ const { pathname, hash: hash2 } = import_utils17.window.location;
17853
17907
  const url2 = pathname + hash2;
17854
17908
  if (el.routes)
17855
17909
  router2(url2, el, {}, { initialRender: true });
17856
17910
  };
17857
- const hasRenderRouter = element.on && !(0, import_utils16.isUndefined)(element.on.renderRouter);
17911
+ const hasRenderRouter = element.on && !(0, import_utils17.isUndefined)(element.on.renderRouter);
17858
17912
  if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
17859
17913
  if (element.on) {
17860
17914
  element.on.renderRouter = onRouterRenderDefault;
@@ -17876,20 +17930,20 @@ var popStateRouter = (element, options) => {
17876
17930
  if (!routerOptions.popState)
17877
17931
  return;
17878
17932
  const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
17879
- import_utils16.window.onpopstate = (e) => {
17880
- const { pathname, hash: hash2 } = import_utils16.window.location;
17933
+ import_utils17.window.onpopstate = (e) => {
17934
+ const { pathname, hash: hash2 } = import_utils17.window.location;
17881
17935
  const url2 = pathname + hash2;
17882
17936
  router2(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
17883
17937
  };
17884
17938
  };
17885
17939
  var injectRouterInLinkComponent = (routerOptions) => {
17886
17940
  if (routerOptions && routerOptions.injectRouterInLinkComponent) {
17887
- return (0, import_utils16.deepMerge)(Link, RouterLink);
17941
+ return (0, import_utils17.deepMerge)(Link, RouterLink);
17888
17942
  }
17889
17943
  };
17890
17944
 
17891
17945
  // src/ferchOnCreate.js
17892
- var import_utils17 = __toESM(require_cjs(), 1);
17946
+ var import_utils18 = __toESM(require_cjs(), 1);
17893
17947
  var import_fetch = __toESM(require_cjs14(), 1);
17894
17948
  var fetchSync = async (key, options) => {
17895
17949
  if (key && options.editor) {
@@ -17905,10 +17959,10 @@ var fetchAsync = (app, key, options, callback) => {
17905
17959
  if (key && options.editor) {
17906
17960
  try {
17907
17961
  const defaultCallback = (data) => {
17908
- if ((0, import_utils17.isObject)(data.designsystem)) {
17962
+ if ((0, import_utils18.isObject)(data.designsystem)) {
17909
17963
  options.utils.init(data.designsystem);
17910
17964
  }
17911
- if ((0, import_utils17.isObject)(data.state)) {
17965
+ if ((0, import_utils18.isObject)(data.state)) {
17912
17966
  app.state.set(data.state);
17913
17967
  }
17914
17968
  };
@@ -17921,10 +17975,10 @@ var fetchAsync = (app, key, options, callback) => {
17921
17975
  };
17922
17976
 
17923
17977
  // ../../node_modules/@domql/emotion/index.js
17924
- var import_utils19 = __toESM(require_cjs());
17978
+ var import_utils20 = __toESM(require_cjs());
17925
17979
 
17926
17980
  // ../../node_modules/@domql/classlist/index.js
17927
- var import_utils18 = __toESM(require_cjs());
17981
+ var import_utils19 = __toESM(require_cjs());
17928
17982
  var classify = (obj, element) => {
17929
17983
  let className = "";
17930
17984
  for (const item in obj) {
@@ -17934,7 +17988,7 @@ var classify = (obj, element) => {
17934
17988
  else if (typeof param === "string")
17935
17989
  className += ` ${param}`;
17936
17990
  else if (typeof param === "function") {
17937
- className += ` ${(0, import_utils18.exec)(param, element)}`;
17991
+ className += ` ${(0, import_utils19.exec)(param, element)}`;
17938
17992
  }
17939
17993
  }
17940
17994
  return className;
@@ -17945,9 +17999,9 @@ var classList = (params, element) => {
17945
17999
  const { key } = element;
17946
18000
  if (params === true)
17947
18001
  params = element.class = { key };
17948
- if ((0, import_utils18.isString)(params))
18002
+ if ((0, import_utils19.isString)(params))
17949
18003
  params = element.class = { default: params };
17950
- if ((0, import_utils18.isObject)(params))
18004
+ if ((0, import_utils19.isObject)(params))
17951
18005
  params = classify(params, element);
17952
18006
  const className = params.replace(/\s+/g, " ").trim();
17953
18007
  if (element.ref)
@@ -17963,9 +18017,9 @@ var applyClassListOnNode = (params, element, node2) => {
17963
18017
  // ../../node_modules/@domql/emotion/index.js
17964
18018
  var transformEmotionStyle = (emotion2) => {
17965
18019
  return (params, element, state) => {
17966
- const execParams = (0, import_utils19.exec)(params, element);
18020
+ const execParams = (0, import_utils20.exec)(params, element);
17967
18021
  if (params) {
17968
- if ((0, import_utils19.isObjectLike)(element.class))
18022
+ if ((0, import_utils20.isObjectLike)(element.class))
17969
18023
  element.class.elementStyle = execParams;
17970
18024
  else
17971
18025
  element.class = { elementStyle: execParams };
@@ -17979,18 +18033,18 @@ var transformEmotionClass = (emotion2) => {
17979
18033
  return;
17980
18034
  const { __ref } = element;
17981
18035
  const { __class, __classNames } = __ref;
17982
- if (!(0, import_utils19.isObjectLike)(params))
18036
+ if (!(0, import_utils20.isObjectLike)(params))
17983
18037
  return;
17984
18038
  for (const key in params) {
17985
- const prop = (0, import_utils19.exec)(params[key], element);
18039
+ const prop = (0, import_utils20.exec)(params[key], element);
17986
18040
  if (!prop) {
17987
18041
  delete __class[key];
17988
18042
  delete __classNames[key];
17989
18043
  continue;
17990
18044
  }
17991
- const isEqual = (0, import_utils19.isEqualDeep)(__class[key], prop);
18045
+ const isEqual = (0, import_utils20.isEqualDeep)(__class[key], prop);
17992
18046
  if (!isEqual) {
17993
- if (!(0, import_utils19.isProduction)() && (0, import_utils19.isObject)(prop))
18047
+ if (!(0, import_utils20.isProduction)() && (0, import_utils20.isObject)(prop))
17994
18048
  prop.label = key || element.key;
17995
18049
  const CSSed = emotion2.css(prop);
17996
18050
  __class[key] = prop;
@@ -18010,7 +18064,7 @@ var transformDOMQLEmotion = (emotion2, options) => {
18010
18064
  };
18011
18065
 
18012
18066
  // src/initEmotion.js
18013
- var import_utils20 = __toESM(require_cjs(), 1);
18067
+ var import_utils21 = __toESM(require_cjs(), 1);
18014
18068
 
18015
18069
  // src/options.js
18016
18070
  var DESIGN_SYSTEM_OPTIONS = {
@@ -18100,7 +18154,9 @@ var COLOR = {
18100
18154
  gray2: "#A3A3A8",
18101
18155
  gray3: "#1C1C1F",
18102
18156
  gray4: "#BDBDC1",
18103
- title: ["--gray2", "--gray4"]
18157
+ title: ["--black", "--white"],
18158
+ caption: ["--gray2", "--gray4"],
18159
+ paragraph: ["--gray2", "--white"]
18104
18160
  };
18105
18161
  var GRADIENT = {
18106
18162
  "gradient-blue-light": `linear-gradient(to right,
@@ -18337,7 +18393,7 @@ var THEME = {
18337
18393
  // ../default-config/src/typography.js
18338
18394
  var TYPOGRAPHY = {
18339
18395
  base: 16,
18340
- ratio: 1.125,
18396
+ ratio: 1.25,
18341
18397
  subSequence: true,
18342
18398
  templates: {}
18343
18399
  };
@@ -18350,7 +18406,11 @@ var SPACING = {
18350
18406
  };
18351
18407
 
18352
18408
  // ../default-config/src/font.js
18353
- var FONT = {};
18409
+ var FONT = {
18410
+ SourceSans: [{
18411
+ url: ""
18412
+ }]
18413
+ };
18354
18414
  var FONT_FAMILY = {
18355
18415
  system: {
18356
18416
  value: ['"Helvetica Neue"', "Helvetica", "Arial"],
@@ -18401,8 +18461,8 @@ var initEmotion = (key, options = {}) => {
18401
18461
  if (!initOptions.emotion)
18402
18462
  initOptions.emotion = emotion;
18403
18463
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
18404
- const defaultDesignSystem = (0, import_utils20.deepClone)(src_default);
18405
- const designSystem = initOptions.useDefaultConfig ? (0, import_utils20.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
18464
+ const defaultDesignSystem = (0, import_utils21.deepClone)(src_default);
18465
+ const designSystem = initOptions.useDefaultConfig ? (0, import_utils21.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
18406
18466
  const scratchSystem2 = init(designSystem, {
18407
18467
  key,
18408
18468
  emotion: emotion2,
@@ -21822,7 +21882,7 @@ function send(event = "change", changes, options) {
21822
21882
  var import_globals = __toESM(require_cjs13());
21823
21883
 
21824
21884
  // ../socket-ui/devFocus.js
21825
- var import_utils21 = __toESM(require_cjs());
21885
+ var import_utils22 = __toESM(require_cjs());
21826
21886
  var DevFocus = {
21827
21887
  props: {
21828
21888
  ".preventSelect": {
@@ -21876,7 +21936,7 @@ var DevFocus = {
21876
21936
  on: {
21877
21937
  init: ({ context }) => {
21878
21938
  const { components } = context;
21879
- if ((0, import_utils21.isObject)(components)) {
21939
+ if ((0, import_utils22.isObject)(components)) {
21880
21940
  const { Content, ...rest } = components;
21881
21941
  for (const key in rest) {
21882
21942
  if (uikit_exports[key])
@@ -21959,6 +22019,36 @@ var inspectOnKey = (app) => {
21959
22019
 
21960
22020
  // ../socket-ui/byld-socket.js
21961
22021
  var isLocalhost = import_globals.window && import_globals.window.location && import_globals.window.location.host.includes("local");
22022
+ var ANIMATION = {
22023
+ fadeInUp: {
22024
+ from: {
22025
+ transform: "translate3d(0, 12.5%, 1px)",
22026
+ opacity: 0
22027
+ },
22028
+ to: {
22029
+ transform: "translate3d(0, 0, 1px)",
22030
+ opacity: 1
22031
+ }
22032
+ },
22033
+ fadeOutDown: {
22034
+ from: {
22035
+ transform: "translate3d(0, 0, 1px)",
22036
+ opacity: 1
22037
+ },
22038
+ to: {
22039
+ transform: "translate3d(0, 12.5%, 1px)",
22040
+ opacity: 0
22041
+ }
22042
+ }
22043
+ };
22044
+ var COLOR2 = {
22045
+ black: "#000000",
22046
+ blue: "#3686F7"
22047
+ };
22048
+ (0, import_scratch14.set)({
22049
+ COLOR: COLOR2,
22050
+ ANIMATION
22051
+ });
21962
22052
  var connectedToSymbols = (clients, element, state) => {
21963
22053
  if (clients.symbols) {
21964
22054
  if (!state.connected) {
@@ -22068,15 +22158,15 @@ var Sync = {
22068
22158
  };
22069
22159
 
22070
22160
  // src/syncExtend.js
22071
- var import_utils22 = __toESM(require_cjs(), 1);
22161
+ var import_utils23 = __toESM(require_cjs(), 1);
22072
22162
  var applySyncDebug = (extend, options) => {
22073
22163
  const { editor } = options;
22074
22164
  if (!editor)
22075
22165
  return extend;
22076
- const inspect = (0, import_utils22.isUndefined)(editor.inspect) ? (0, import_utils22.isDevelopment)() : editor.inspect;
22166
+ const inspect = (0, import_utils23.isUndefined)(editor.inspect) ? (0, import_utils23.isDevelopment)() : editor.inspect;
22077
22167
  if (inspect)
22078
22168
  extend.push(DevFocus);
22079
- const liveSync = (0, import_utils22.isUndefined)(editor.liveSync) ? (0, import_utils22.isDevelopment)() : editor.liveSync;
22169
+ const liveSync = (0, import_utils23.isUndefined)(editor.liveSync) ? (0, import_utils23.isDevelopment)() : editor.liveSync;
22080
22170
  if (liveSync)
22081
22171
  extend.push(Sync);
22082
22172
  return extend;
@@ -22085,15 +22175,15 @@ var applyInspectListener = (root, options) => {
22085
22175
  const { editor } = options;
22086
22176
  if (!editor)
22087
22177
  return;
22088
- const inspect = (0, import_utils22.isUndefined)(editor.inspect) ? (0, import_utils22.isDevelopment)() : editor.inspect;
22178
+ const inspect = (0, import_utils23.isUndefined)(editor.inspect) ? (0, import_utils23.isDevelopment)() : editor.inspect;
22089
22179
  if (inspect)
22090
22180
  inspectOnKey(root);
22091
22181
  };
22092
22182
 
22093
22183
  // src/prepare.js
22094
- var import_utils23 = __toESM(require_cjs(), 1);
22184
+ var import_utils24 = __toESM(require_cjs(), 1);
22095
22185
  var checkIfKeyIsComponent = (key) => {
22096
- const isFirstKeyString = (0, import_utils23.isString)(key);
22186
+ const isFirstKeyString = (0, import_utils24.isString)(key);
22097
22187
  if (!isFirstKeyString)
22098
22188
  return;
22099
22189
  const firstCharKey = key.slice(0, 1);
@@ -22127,8 +22217,8 @@ var prepareState = (options, App) => {
22127
22217
  if (options.state)
22128
22218
  utilImports_exports.deepMerge(state, options.state);
22129
22219
  if (App && App.state)
22130
- (0, import_utils23.deepMerge)(state, App.state);
22131
- return (0, import_utils23.deepCloneWithExtnd)(state);
22220
+ (0, import_utils24.deepMerge)(state, App.state);
22221
+ return (0, import_utils24.deepCloneWithExtnd)(state);
22132
22222
  };
22133
22223
  var preparePages = (options) => {
22134
22224
  return options.pages || {};
@@ -22147,11 +22237,11 @@ var prepareDocument = (options) => {
22147
22237
  // src/index.js
22148
22238
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
22149
22239
  var mergeWithLocalFile2 = (options, optionsExternalFile) => {
22150
- const rcfile = (0, import_utils24.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
22151
- return (0, import_utils24.deepMerge)(options, rcfile);
22240
+ const rcfile = (0, import_utils25.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
22241
+ return (0, import_utils25.deepMerge)(options, rcfile);
22152
22242
  };
22153
22243
  var create = async (App, options = options_default, optionsExternalFile) => {
22154
- const appIsKey = (0, import_utils24.isString)(App);
22244
+ const appIsKey = (0, import_utils25.isString)(App);
22155
22245
  options = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
22156
22246
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
22157
22247
  if (appIsKey)
@@ -22201,7 +22291,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
22201
22291
  return domqlApp;
22202
22292
  };
22203
22293
  var createSync = (App, options = options_default, optionsExternalFile) => {
22204
- const appIsKey = (0, import_utils24.isString)(App);
22294
+ const appIsKey = (0, import_utils25.isString)(App);
22205
22295
  options = mergeWithLocalFile2(options, optionsExternalFile);
22206
22296
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
22207
22297
  if (appIsKey)