@symbo.ls/create 2.11.354 → 2.11.360

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.
@@ -212,7 +212,7 @@ var require_types = __commonJS({
212
212
  isArray: () => isArray7,
213
213
  isBoolean: () => isBoolean,
214
214
  isDate: () => isDate,
215
- isDefined: () => isDefined3,
215
+ isDefined: () => isDefined2,
216
216
  isFunction: () => isFunction4,
217
217
  isNot: () => isNot2,
218
218
  isNull: () => isNull,
@@ -241,7 +241,7 @@ var require_types = __commonJS({
241
241
  return false;
242
242
  return typeof arg === "object";
243
243
  };
244
- var isDefined3 = (arg) => {
244
+ var isDefined2 = (arg) => {
245
245
  return isObject12(arg) || isObjectLike3(arg) || isString14(arg) || isNumber2(arg) || isFunction4(arg) || isArray7(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
246
246
  };
247
247
  var isUndefined9 = (arg) => {
@@ -259,7 +259,7 @@ var require_types = __commonJS({
259
259
  objectLike: isObjectLike3,
260
260
  node: import_node.isNode,
261
261
  htmlElement: import_node.isHtmlElement,
262
- defined: isDefined3
262
+ defined: isDefined2
263
263
  };
264
264
  var is = (arg) => {
265
265
  return (...args) => {
@@ -498,7 +498,7 @@ var require_object = __commonJS({
498
498
  diff: () => diff,
499
499
  diffArrays: () => diffArrays,
500
500
  diffObjects: () => diffObjects,
501
- exec: () => exec5,
501
+ exec: () => exec4,
502
502
  flattenRecursive: () => flattenRecursive,
503
503
  hasOwnProperty: () => hasOwnProperty,
504
504
  isEmpty: () => isEmpty,
@@ -521,7 +521,7 @@ var require_object = __commonJS({
521
521
  var import_types = require_types();
522
522
  var import_array = require_array();
523
523
  var import_string = require_string();
524
- var exec5 = (param, element, state, context) => {
524
+ var exec4 = (param, element, state, context) => {
525
525
  if ((0, import_types.isFunction)(param)) {
526
526
  return param(
527
527
  element,
@@ -533,7 +533,7 @@ var require_object = __commonJS({
533
533
  };
534
534
  var map2 = (obj, extention, element) => {
535
535
  for (const e in extention) {
536
- obj[e] = exec5(extention[e], element);
536
+ obj[e] = exec4(extention[e], element);
537
537
  }
538
538
  };
539
539
  var merge5 = (element, obj, excludeFrom = []) => {
@@ -1584,7 +1584,7 @@ var require_cjs2 = __commonJS({
1584
1584
  isArray: () => isArray9,
1585
1585
  isBoolean: () => isBoolean,
1586
1586
  isDate: () => isDate,
1587
- isDefined: () => isDefined22,
1587
+ isDefined: () => isDefined2,
1588
1588
  isFunction: () => isFunction22,
1589
1589
  isNot: () => isNot2,
1590
1590
  isNull: () => isNull2,
@@ -1613,7 +1613,7 @@ var require_cjs2 = __commonJS({
1613
1613
  return false;
1614
1614
  return typeof arg === "object";
1615
1615
  };
1616
- var isDefined22 = (arg) => {
1616
+ var isDefined2 = (arg) => {
1617
1617
  return isObject82(arg) || isObjectLike3(arg) || isString102(arg) || isNumber3(arg) || isFunction22(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull2(arg);
1618
1618
  };
1619
1619
  var isUndefined22 = (arg) => {
@@ -1631,7 +1631,7 @@ var require_cjs2 = __commonJS({
1631
1631
  objectLike: isObjectLike3,
1632
1632
  node: import_node.isNode,
1633
1633
  htmlElement: import_node.isHtmlElement,
1634
- defined: isDefined22
1634
+ defined: isDefined2
1635
1635
  };
1636
1636
  var is = (arg) => {
1637
1637
  return (...args) => {
@@ -1864,7 +1864,7 @@ var require_cjs2 = __commonJS({
1864
1864
  diff: () => diff,
1865
1865
  diffArrays: () => diffArrays,
1866
1866
  diffObjects: () => diffObjects,
1867
- exec: () => exec5,
1867
+ exec: () => exec4,
1868
1868
  flattenRecursive: () => flattenRecursive,
1869
1869
  hasOwnProperty: () => hasOwnProperty,
1870
1870
  isEmpty: () => isEmpty,
@@ -1887,7 +1887,7 @@ var require_cjs2 = __commonJS({
1887
1887
  var import_types = require_types2();
1888
1888
  var import_array = require_array2();
1889
1889
  var import_string = require_string2();
1890
- var exec5 = (param, element, state, context) => {
1890
+ var exec4 = (param, element, state, context) => {
1891
1891
  if ((0, import_types.isFunction)(param)) {
1892
1892
  return param(
1893
1893
  element,
@@ -1899,7 +1899,7 @@ var require_cjs2 = __commonJS({
1899
1899
  };
1900
1900
  var map2 = (obj, extention, element) => {
1901
1901
  for (const e in extention) {
1902
- obj[e] = exec5(extention[e], element);
1902
+ obj[e] = exec4(extention[e], element);
1903
1903
  }
1904
1904
  };
1905
1905
  var merge5 = (element, obj, excludeFrom = []) => {
@@ -2877,7 +2877,7 @@ var require_cjs2 = __commonJS({
2877
2877
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
2878
2878
  };
2879
2879
  var import_globals2 = __toESM6(require_cjs13(), 1);
2880
- var import_utils38 = __toESM6(require_cjs22(), 1);
2880
+ var import_utils37 = __toESM6(require_cjs22(), 1);
2881
2881
  var ENV2 = "development";
2882
2882
  var colorStringToRgbaArray = (color) => {
2883
2883
  if (color === "")
@@ -3009,11 +3009,11 @@ var require_cjs2 = __commonJS({
3009
3009
  return `rgba(${arr})`;
3010
3010
  };
3011
3011
  var getRgbTone = (rgb, tone) => {
3012
- if ((0, import_utils38.isString)(rgb) && rgb.includes("rgb"))
3012
+ if ((0, import_utils37.isString)(rgb) && rgb.includes("rgb"))
3013
3013
  rgb = colorStringToRgbaArray(rgb).join(", ");
3014
- if ((0, import_utils38.isString)(rgb))
3014
+ if ((0, import_utils37.isString)(rgb))
3015
3015
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
3016
- if ((0, import_utils38.isNumber)(tone))
3016
+ if ((0, import_utils37.isNumber)(tone))
3017
3017
  tone += "";
3018
3018
  const toHex = rgbArrayToHex(rgb);
3019
3019
  const abs2 = tone.slice(0, 1);
@@ -3077,7 +3077,7 @@ var require_cjs2 = __commonJS({
3077
3077
  return keys.map((key) => getFontFaceEachString(key, LIBRARY[key].value));
3078
3078
  };
3079
3079
  var import_utils52 = __toESM6(require_cjs22(), 1);
3080
- var import_utils39 = __toESM6(require_cjs22());
3080
+ var import_utils38 = __toESM6(require_cjs22());
3081
3081
  var import_utils210 = __toESM6(require_cjs22());
3082
3082
  var toCamelCase2 = (str) => {
3083
3083
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
@@ -3086,13 +3086,13 @@ var require_cjs2 = __commonJS({
3086
3086
  };
3087
3087
  var toDashCase2 = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
3088
3088
  var arrayzeValue2 = (val) => {
3089
- if ((0, import_utils39.isArray)(val))
3089
+ if ((0, import_utils38.isArray)(val))
3090
3090
  return val;
3091
- if ((0, import_utils39.isString)(val))
3091
+ if ((0, import_utils38.isString)(val))
3092
3092
  return val.split(" ");
3093
- if ((0, import_utils39.isObject)(val))
3093
+ if ((0, import_utils38.isObject)(val))
3094
3094
  return Object.values(val);
3095
- if ((0, import_utils39.isNumber)(val))
3095
+ if ((0, import_utils38.isNumber)(val))
3096
3096
  return [val];
3097
3097
  };
3098
3098
  var import_utils42 = __toESM6(require_cjs22(), 1);
@@ -6557,12 +6557,12 @@ var require_on = __commonJS({
6557
6557
  triggerEventOnUpdate: () => triggerEventOnUpdate
6558
6558
  });
6559
6559
  module2.exports = __toCommonJS12(on_exports);
6560
- var import_utils38 = require_cjs();
6560
+ var import_utils37 = require_cjs();
6561
6561
  var applyEvent = (param, element, state, context, options) => {
6562
6562
  return param(element, state || element.state, context || element.context, options);
6563
6563
  };
6564
6564
  var triggerEventOn = (param, element, options) => {
6565
- if (element.on && (0, import_utils38.isFunction)(element.on[param])) {
6565
+ if (element.on && (0, import_utils37.isFunction)(element.on[param])) {
6566
6566
  const { state, context } = element;
6567
6567
  return applyEvent(element.on[param], element, state, context, options);
6568
6568
  }
@@ -6571,7 +6571,7 @@ var require_on = __commonJS({
6571
6571
  return param(updatedObj, element, state || element.state, context || element.context, options);
6572
6572
  };
6573
6573
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
6574
- if (element.on && (0, import_utils38.isFunction)(element.on[param])) {
6574
+ if (element.on && (0, import_utils37.isFunction)(element.on[param])) {
6575
6575
  const { state, context } = element;
6576
6576
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
6577
6577
  }
@@ -6582,7 +6582,7 @@ var require_on = __commonJS({
6582
6582
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdate" || param === "stateUpdate" || param === "initUpdate" || param === "update")
6583
6583
  continue;
6584
6584
  const appliedFunction = element.on[param];
6585
- if ((0, import_utils38.isFunction)(appliedFunction)) {
6585
+ if ((0, import_utils37.isFunction)(appliedFunction)) {
6586
6586
  node2.addEventListener(param, (event) => {
6587
6587
  const { state, context } = element;
6588
6588
  appliedFunction(event, element, state, context, options);
@@ -6620,9 +6620,9 @@ var require_can = __commonJS({
6620
6620
  });
6621
6621
  module2.exports = __toCommonJS12(can_exports);
6622
6622
  var import_report = require_cjs3();
6623
- var import_utils38 = require_cjs();
6623
+ var import_utils37 = require_cjs();
6624
6624
  var canRenderTag = (tag) => {
6625
- return (0, import_utils38.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
6625
+ return (0, import_utils37.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
6626
6626
  };
6627
6627
  }
6628
6628
  });
@@ -6683,8 +6683,8 @@ var require_cjs5 = __commonJS({
6683
6683
  });
6684
6684
  module2.exports = __toCommonJS12(router_exports3);
6685
6685
  var import_event = require_cjs4();
6686
- var import_utils38 = require_cjs();
6687
- var getActiveRoute = (level = 0, route = import_utils38.window.location.pathname) => {
6686
+ var import_utils37 = require_cjs();
6687
+ var getActiveRoute = (level = 0, route = import_utils37.window.location.pathname) => {
6688
6688
  const routeArray = route.split("/");
6689
6689
  const activeRoute = routeArray[level + 1];
6690
6690
  if (activeRoute)
@@ -6698,7 +6698,7 @@ var require_cjs5 = __commonJS({
6698
6698
  initialRender: false,
6699
6699
  scrollToTop: true,
6700
6700
  scrollToNode: false,
6701
- scrollNode: import_utils38.document && import_utils38.document.documentElement,
6701
+ scrollNode: import_utils37.document && import_utils37.document.documentElement,
6702
6702
  scrollBody: false,
6703
6703
  useFragment: false,
6704
6704
  updateState: true,
@@ -6714,13 +6714,13 @@ var require_cjs5 = __commonJS({
6714
6714
  const route = getActiveRoute(options.level, pathname);
6715
6715
  const content = element.routes[route || "/"] || element.routes["/*"];
6716
6716
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
6717
- const hashChanged = hash2 && hash2 !== import_utils38.window.location.hash.slice(1);
6717
+ const hashChanged = hash2 && hash2 !== import_utils37.window.location.hash.slice(1);
6718
6718
  const pathChanged = pathname !== lastPathname;
6719
6719
  lastPathname = pathname;
6720
6720
  if (!content)
6721
6721
  return;
6722
6722
  if (options.pushState) {
6723
- import_utils38.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
6723
+ import_utils37.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
6724
6724
  }
6725
6725
  if (pathChanged || !hashChanged) {
6726
6726
  if (options.updateState) {
@@ -6749,7 +6749,7 @@ var require_cjs5 = __commonJS({
6749
6749
  });
6750
6750
  }
6751
6751
  if (hash2) {
6752
- const activeNode = import_utils38.document.getElementById(hash2);
6752
+ const activeNode = import_utils37.document.getElementById(hash2);
6753
6753
  if (activeNode) {
6754
6754
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
6755
6755
  scrollNode.scrollTo({
@@ -7107,8 +7107,13 @@ var init_Img = __esm({
7107
7107
  Img = {
7108
7108
  tag: "img",
7109
7109
  attr: {
7110
- src: ({ props: props4, context }) => {
7111
- const src = props4.src;
7110
+ src: (el) => {
7111
+ const { props: props4, context } = el;
7112
+ const { exec: exec4, isString: isString14, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = context.utils;
7113
+ let src = exec4(props4.src, el);
7114
+ if (isString14(src) && src.includes("{{")) {
7115
+ src = replaceLiteralsWithObjectFields2(src, el.state);
7116
+ }
7112
7117
  let isUrl;
7113
7118
  try {
7114
7119
  isUrl = new URL(src);
@@ -11790,23 +11795,37 @@ var init_client = __esm({
11790
11795
  function findComponent(el) {
11791
11796
  if (!el || !el.__ref)
11792
11797
  return;
11793
- const components = el.context.components;
11794
- const extendStr = returnStringExtend(el.extend);
11795
- const parentChildExtendStr = returnStringExtend(el.parent.childExtend);
11796
- const __componentKey = el.__ref.__componentKey || "";
11797
- const componentKey = (__componentKey || extendStr || parentChildExtendStr).split("_")[0].split(".")[0].split("+")[0];
11798
+ const { components, editor } = el.context;
11799
+ const componentKey = getComponentKey(el);
11800
+ if (editor && editor.onInitInspect) {
11801
+ const initInspectReturns = editor.onInitInspect(componentKey, el, el.state);
11802
+ if (!initInspectReturns)
11803
+ return findComponent(el.parent);
11804
+ }
11798
11805
  if (componentKey && components[componentKey]) {
11799
11806
  return el;
11800
11807
  }
11801
11808
  return findComponent(el.parent);
11802
11809
  }
11803
- var import_utils9, DevFocus, returnStringExtend, inspectOnKey;
11810
+ var import_utils9, returnStringExtend, getComponentKey, DevFocus, inspectOnKey;
11804
11811
  var init_devFocus = __esm({
11805
11812
  "../socket-ui/devFocus.js"() {
11806
11813
  "use strict";
11807
11814
  init_uikit();
11808
11815
  import_utils9 = __toESM(require_cjs());
11809
11816
  init_client();
11817
+ returnStringExtend = (extend) => {
11818
+ return (0, import_utils9.isString)(extend) ? extend : (0, import_utils9.isArray)(extend) ? extend.find((extItem) => (0, import_utils9.isString)(extItem)) : "";
11819
+ };
11820
+ getComponentKey = (el) => {
11821
+ var _a, _b;
11822
+ if (!el)
11823
+ return;
11824
+ const __componentKey = el.__ref.__componentKey;
11825
+ const extendStr = el.extend && returnStringExtend(el.extend);
11826
+ const parentChildExtendStr = ((_a = el.parent) == null ? void 0 : _a.childExtend) && returnStringExtend((_b = el.parent) == null ? void 0 : _b.childExtend);
11827
+ return (__componentKey || extendStr || parentChildExtendStr || "").split("_")[0].split(".")[0].split("+")[0];
11828
+ };
11810
11829
  DevFocus = {
11811
11830
  props: {
11812
11831
  ".preventSelect": {
@@ -11818,28 +11837,14 @@ var init_devFocus = __esm({
11818
11837
  props: (el, s) => ({
11819
11838
  transition: "all, defaultBezier, X",
11820
11839
  position: "fixed",
11821
- hide: !s.area || !s.parent.debugging
11822
- }),
11823
- class: {
11824
- inset: (el, state) => {
11825
- const { area } = state;
11826
- if (!area)
11827
- return;
11828
- const { x, y, width, height } = area;
11829
- return {
11830
- top: y - 6 + "px",
11831
- left: x - 6 + "px",
11832
- width: width + 12 + "px",
11833
- height: height + 12 + "px"
11834
- };
11840
+ hide: !(s.area && s.parent.debugging),
11841
+ style: {
11842
+ boxShadow: "0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",
11843
+ zIndex: "9999999",
11844
+ borderRadius: "10px",
11845
+ pointerEvents: "none"
11835
11846
  }
11836
- },
11837
- style: {
11838
- boxShadow: "0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",
11839
- zIndex: "9999999",
11840
- borderRadius: "10px",
11841
- pointerEvents: "none"
11842
- },
11847
+ }),
11843
11848
  span: {
11844
11849
  props: {
11845
11850
  position: "absolute",
@@ -11851,13 +11856,13 @@ var init_devFocus = __esm({
11851
11856
  transition: "all, defaultBezier, X",
11852
11857
  textDecoration: "underline",
11853
11858
  fontWeight: "500",
11854
- top: "100%"
11855
- },
11856
- style: {
11857
- boxShadow: "0 25px 10px 35px black",
11858
- textShadow: "0 0 10px black"
11859
- },
11860
- text: (el, s) => s.focusKey
11859
+ top: "100%",
11860
+ style: {
11861
+ boxShadow: "0 25px 10px 35px black",
11862
+ textShadow: "0 0 10px black"
11863
+ },
11864
+ text: "{{ focusKey }}"
11865
+ }
11861
11866
  },
11862
11867
  on: {
11863
11868
  init: ({ context }) => {
@@ -11874,6 +11879,26 @@ var init_devFocus = __esm({
11874
11879
  }
11875
11880
  }
11876
11881
  }
11882
+ },
11883
+ initUpdate: (ch, el, s) => {
11884
+ const { area } = s;
11885
+ const isDebugging = s.area && s.parent.debugging;
11886
+ let style2;
11887
+ if (!isDebugging) {
11888
+ style2 = "display: none !important";
11889
+ } else if (area) {
11890
+ const { x, y, width, height } = area;
11891
+ style2 = `
11892
+ display: block !important;
11893
+ top: ${y - 6}px;
11894
+ left: ${x - 6}px;
11895
+ width: ${width + 12}px;
11896
+ height: ${height + 12}px;
11897
+ `;
11898
+ }
11899
+ el.node.style = style2;
11900
+ el.span.node.innerText = s.focusKey;
11901
+ return false;
11877
11902
  }
11878
11903
  }
11879
11904
  },
@@ -11881,11 +11906,12 @@ var init_devFocus = __esm({
11881
11906
  mousemove: (ev, e, state) => {
11882
11907
  const el = ev.target.ref;
11883
11908
  const component = findComponent(el);
11884
- if (!component || !state.debugging || !component.__ref)
11885
- return;
11886
11909
  const focusState = e.focus.state;
11910
+ if (!component || !state.debugging || !component.__ref)
11911
+ return focusState.update({ area: false });
11912
+ const componentKey = getComponentKey(component);
11887
11913
  const updateValue = (area) => {
11888
- focusState.update({ area, focusKey: component.__ref.__componentKey });
11914
+ focusState.update({ area, focusKey: componentKey });
11889
11915
  };
11890
11916
  const update = () => {
11891
11917
  if (ev.altKey && ev.shiftKey) {
@@ -11907,27 +11933,26 @@ var init_devFocus = __esm({
11907
11933
  click: (ev, elem, state) => {
11908
11934
  const el = ev.target.ref;
11909
11935
  const component = findComponent(el);
11910
- if (!component || !component.__ref.__componentKey || !state.debugging)
11936
+ const componentKey = getComponentKey(component);
11937
+ if (!component || !componentKey || !state.debugging)
11911
11938
  return;
11912
11939
  const editor = el.context.editor;
11913
11940
  if (editor && editor.onInspect) {
11914
- return editor.onInspect(component.__ref.__componentKey, el, el.state, { allowRouterWhileInspect: true });
11941
+ return editor.onInspect(componentKey, el, el.state, { allowRouterWhileInspect: true });
11915
11942
  }
11916
11943
  send.call(el.context.socket, "route", JSON.stringify({
11917
- componentKey: `${component.__ref.__componentKey}`
11944
+ componentKey: `${componentKey}`
11918
11945
  }));
11919
11946
  return false;
11920
11947
  }
11921
11948
  }
11922
11949
  };
11923
- returnStringExtend = (extend) => {
11924
- return (0, import_utils9.isString)(extend) ? extend : (0, import_utils9.isArray)(extend) ? extend.find((extItem) => (0, import_utils9.isString)(extItem)) : "";
11925
- };
11926
11950
  inspectOnKey = (app, opts) => {
11927
11951
  const windowOpts = opts.window || window;
11928
11952
  windowOpts.onkeydown = (ev) => {
11929
11953
  if (ev.altKey && ev.shiftKey) {
11930
11954
  app.state.update({ debugging: true, preventSelect: true }, {
11955
+ preventUpdate: true,
11931
11956
  preventContentUpdate: true,
11932
11957
  preventRecursive: true
11933
11958
  });
@@ -11938,6 +11963,7 @@ var init_devFocus = __esm({
11938
11963
  app.focus.state.update({ area: false });
11939
11964
  app.state.update({ debugging: false, preventSelect: false }, {
11940
11965
  // TODO: does not update false
11966
+ preventUpdate: true,
11941
11967
  preventContentUpdate: true,
11942
11968
  preventRecursive: true,
11943
11969
  preventPropsUpdate: true
@@ -12281,11 +12307,11 @@ var require_tree = __commonJS({
12281
12307
  TREE: () => TREE
12282
12308
  });
12283
12309
  module2.exports = __toCommonJS12(tree_exports);
12284
- var import_utils38 = require_cjs();
12310
+ var import_utils37 = require_cjs();
12285
12311
  var import_report = require_cjs3();
12286
12312
  var ROOT = {
12287
12313
  key: ":root",
12288
- node: import_utils38.document ? import_utils38.document.body : (0, import_report.report)("DocumentNotDefined", import_utils38.document)
12314
+ node: import_utils37.document ? import_utils37.document.body : (0, import_report.report)("DocumentNotDefined", import_utils37.document)
12289
12315
  };
12290
12316
  var TREE = ROOT;
12291
12317
  }
@@ -12352,7 +12378,7 @@ var require_cache = __commonJS({
12352
12378
  module2.exports = __toCommonJS12(cache_exports);
12353
12379
  var import_report = require_cjs3();
12354
12380
  var import_event = require_cjs4();
12355
- var import_utils38 = require_cjs();
12381
+ var import_utils37 = require_cjs();
12356
12382
  var cache2 = {};
12357
12383
  var createHTMLNode = (element) => {
12358
12384
  const { tag } = element;
@@ -12371,16 +12397,16 @@ var require_cache = __commonJS({
12371
12397
  };
12372
12398
  var detectTag = (element) => {
12373
12399
  let { tag, key, props: props4 } = element;
12374
- tag = (0, import_utils38.exec)(tag, element);
12400
+ tag = (0, import_utils37.exec)(tag, element);
12375
12401
  if (tag === true)
12376
12402
  tag = key;
12377
- if ((0, import_utils38.isObject)(props4) && (0, import_utils38.isString)(props4.tag)) {
12378
- const tagExists = (0, import_utils38.isValidHtmlTag)(props4.tag);
12403
+ if ((0, import_utils37.isObject)(props4) && (0, import_utils37.isString)(props4.tag)) {
12404
+ const tagExists = (0, import_utils37.isValidHtmlTag)(props4.tag);
12379
12405
  if (tagExists)
12380
12406
  return props4.tag;
12381
12407
  }
12382
- if ((0, import_utils38.isString)(tag)) {
12383
- if ((0, import_utils38.isValidHtmlTag)(tag))
12408
+ if ((0, import_utils37.isString)(tag)) {
12409
+ if ((0, import_utils37.isValidHtmlTag)(tag))
12384
12410
  return tag;
12385
12411
  } else {
12386
12412
  let keyAsTag = key.toLowerCase();
@@ -12388,7 +12414,7 @@ var require_cache = __commonJS({
12388
12414
  keyAsTag = keyAsTag.split(".")[0];
12389
12415
  if (keyAsTag.includes("_"))
12390
12416
  keyAsTag = keyAsTag.split("_")[0];
12391
- if ((0, import_utils38.isValidHtmlTag)(keyAsTag))
12417
+ if ((0, import_utils37.isValidHtmlTag)(keyAsTag))
12392
12418
  return keyAsTag;
12393
12419
  }
12394
12420
  return "div";
@@ -12522,16 +12548,16 @@ var require_attr = __commonJS({
12522
12548
  default: () => attr_default
12523
12549
  });
12524
12550
  module2.exports = __toCommonJS12(attr_exports);
12525
- var import_utils38 = require_cjs();
12551
+ var import_utils37 = require_cjs();
12526
12552
  var import_report = require_cjs3();
12527
12553
  var attr_default = (params, element, node2) => {
12528
12554
  const { __ref } = element;
12529
12555
  const { __attr } = __ref;
12530
- if ((0, import_utils38.isNot)("object"))
12556
+ if ((0, import_utils37.isNot)("object"))
12531
12557
  (0, import_report.report)("HTMLInvalidAttr", params);
12532
12558
  if (params) {
12533
12559
  for (const attr in params) {
12534
- const val = (0, import_utils38.exec)(params[attr], element);
12560
+ const val = (0, import_utils37.exec)(params[attr], element);
12535
12561
  if (val && node2.setAttribute)
12536
12562
  node2.setAttribute(attr, val);
12537
12563
  else if (node2.removeAttribute)
@@ -12574,7 +12600,7 @@ var require_classList = __commonJS({
12574
12600
  default: () => classList_default
12575
12601
  });
12576
12602
  module2.exports = __toCommonJS12(classList_exports);
12577
- var import_utils38 = require_cjs();
12603
+ var import_utils37 = require_cjs();
12578
12604
  var assignKeyAsClassname = (element) => {
12579
12605
  const { key } = element;
12580
12606
  if (element.class === true)
@@ -12592,7 +12618,7 @@ var require_classList = __commonJS({
12592
12618
  else if (typeof param === "string")
12593
12619
  className += ` ${param}`;
12594
12620
  else if (typeof param === "function") {
12595
- className += ` ${(0, import_utils38.exec)(param, element)}`;
12621
+ className += ` ${(0, import_utils37.exec)(param, element)}`;
12596
12622
  }
12597
12623
  }
12598
12624
  return className;
@@ -12603,9 +12629,9 @@ var require_classList = __commonJS({
12603
12629
  const { key } = element;
12604
12630
  if (params === true)
12605
12631
  params = element.class = { key };
12606
- if ((0, import_utils38.isString)(params))
12632
+ if ((0, import_utils37.isString)(params))
12607
12633
  params = element.class = { default: params };
12608
- if ((0, import_utils38.isObject)(params))
12634
+ if ((0, import_utils37.isObject)(params))
12609
12635
  params = classify2(params, element);
12610
12636
  const className = params.replace(/\s+/g, " ").trim();
12611
12637
  if (element.ref)
@@ -12690,7 +12716,7 @@ var require_set = __commonJS({
12690
12716
  resetElement: () => resetElement
12691
12717
  });
12692
12718
  module2.exports = __toCommonJS12(set_exports);
12693
- var import_utils38 = require_cjs();
12719
+ var import_utils37 = require_cjs();
12694
12720
  var import_create = __toESM6(require_create4(), 1);
12695
12721
  var import_options5 = __toESM6(require_options(), 1);
12696
12722
  var import_mixins = require_mixins();
@@ -12713,7 +12739,7 @@ var require_set = __commonJS({
12713
12739
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
12714
12740
  if (options.preventContentUpdate === true && !hasCollection)
12715
12741
  return;
12716
- if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils38.deepContains)(params, content)) {
12742
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils37.deepContains)(params, content)) {
12717
12743
  if (content == null ? void 0 : content.update)
12718
12744
  content.update();
12719
12745
  return;
@@ -12772,7 +12798,7 @@ var require_content = __commonJS({
12772
12798
  updateContent: () => updateContent
12773
12799
  });
12774
12800
  module2.exports = __toCommonJS12(content_exports);
12775
- var import_utils38 = require_cjs();
12801
+ var import_utils37 = require_cjs();
12776
12802
  var import_set = __toESM6(require_set(), 1);
12777
12803
  var updateContent = function(params, options) {
12778
12804
  const element = this;
@@ -12795,7 +12821,7 @@ var require_content = __commonJS({
12795
12821
  if (__cached && __cached.content) {
12796
12822
  if (__cached.content.tag === "fragment")
12797
12823
  __cached.content.parent.node.innerHTML = "";
12798
- else if (__cached.content && (0, import_utils38.isFunction)(__cached.content.remove))
12824
+ else if (__cached.content && (0, import_utils37.isFunction)(__cached.content.remove))
12799
12825
  __cached.content.remove();
12800
12826
  }
12801
12827
  delete element.content;
@@ -12840,15 +12866,15 @@ var require_data = __commonJS({
12840
12866
  default: () => data_default
12841
12867
  });
12842
12868
  module2.exports = __toCommonJS12(data_exports);
12843
- var import_utils38 = require_cjs();
12869
+ var import_utils37 = require_cjs();
12844
12870
  var import_report = require_cjs3();
12845
12871
  var data_default = (params, element, node2) => {
12846
12872
  if (params && params.showOnNode) {
12847
- if (!(0, import_utils38.isObject)(params))
12873
+ if (!(0, import_utils37.isObject)(params))
12848
12874
  (0, import_report.report)("HTMLInvalidData", params);
12849
12875
  for (const dataset in params) {
12850
12876
  if (dataset !== "showOnNode") {
12851
- node2.dataset[dataset] = (0, import_utils38.exec)(params[dataset], element);
12877
+ node2.dataset[dataset] = (0, import_utils37.exec)(params[dataset], element);
12852
12878
  }
12853
12879
  }
12854
12880
  }
@@ -12882,9 +12908,9 @@ var require_html = __commonJS({
12882
12908
  default: () => html_default
12883
12909
  });
12884
12910
  module2.exports = __toCommonJS12(html_exports);
12885
- var import_utils38 = require_cjs();
12911
+ var import_utils37 = require_cjs();
12886
12912
  var html_default = (param, element, node2) => {
12887
- const prop = (0, import_utils38.exec)(param, element);
12913
+ const prop = (0, import_utils37.exec)(param, element);
12888
12914
  const { __ref } = element;
12889
12915
  if (prop !== __ref.__html) {
12890
12916
  if (node2.nodeName === "SVG")
@@ -12923,12 +12949,12 @@ var require_style = __commonJS({
12923
12949
  default: () => style_default2
12924
12950
  });
12925
12951
  module2.exports = __toCommonJS12(style_exports);
12926
- var import_utils38 = require_cjs();
12952
+ var import_utils37 = require_cjs();
12927
12953
  var import_report = require_cjs3();
12928
12954
  var style_default2 = (params, element, node2) => {
12929
12955
  if (params) {
12930
- if ((0, import_utils38.isObject)(params))
12931
- (0, import_utils38.map)(node2.style, params, element);
12956
+ if ((0, import_utils37.isObject)(params))
12957
+ (0, import_utils37.map)(node2.style, params, element);
12932
12958
  else
12933
12959
  (0, import_report.report)("HTMLInvalidStyles", params);
12934
12960
  }
@@ -12963,11 +12989,11 @@ var require_text = __commonJS({
12963
12989
  });
12964
12990
  module2.exports = __toCommonJS12(text_exports);
12965
12991
  var import__ = require_cjs11();
12966
- var import_utils38 = require_cjs();
12992
+ var import_utils37 = require_cjs();
12967
12993
  var text_default = (param, element, node2) => {
12968
- let prop = (0, import_utils38.exec)(param, element);
12969
- if ((0, import_utils38.isString)(prop) && prop.includes("{{")) {
12970
- prop = (0, import_utils38.replaceLiteralsWithObjectFields)(prop, element.state);
12994
+ let prop = (0, import_utils37.exec)(param, element);
12995
+ if ((0, import_utils37.isString)(prop) && prop.includes("{{")) {
12996
+ prop = (0, import_utils37.replaceLiteralsWithObjectFields)(prop, element.state);
12971
12997
  }
12972
12998
  if (element.tag === "string") {
12973
12999
  node2.nodeValue = prop;
@@ -13071,11 +13097,11 @@ var require_methods = __commonJS({
13071
13097
  toggle: () => toggle
13072
13098
  });
13073
13099
  module2.exports = __toCommonJS12(methods_exports);
13074
- var import_utils38 = require_cjs();
13100
+ var import_utils37 = require_cjs();
13075
13101
  var import_ignore = require_ignore();
13076
13102
  var parse3 = function() {
13077
13103
  const state = this;
13078
- if ((0, import_utils38.isObject)(state)) {
13104
+ if ((0, import_utils37.isObject)(state)) {
13079
13105
  const obj = {};
13080
13106
  for (const param in state) {
13081
13107
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -13083,7 +13109,7 @@ var require_methods = __commonJS({
13083
13109
  }
13084
13110
  }
13085
13111
  return obj;
13086
- } else if ((0, import_utils38.isArray)(state)) {
13112
+ } else if ((0, import_utils37.isArray)(state)) {
13087
13113
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
13088
13114
  }
13089
13115
  };
@@ -13103,7 +13129,7 @@ var require_methods = __commonJS({
13103
13129
  const state = this;
13104
13130
  const element = state.__element;
13105
13131
  const stateKey = element.__ref.__state;
13106
- if ((0, import_utils38.isString)(stateKey)) {
13132
+ if ((0, import_utils37.isString)(stateKey)) {
13107
13133
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
13108
13134
  return element.state;
13109
13135
  }
@@ -13116,7 +13142,7 @@ var require_methods = __commonJS({
13116
13142
  for (const key in state.__children) {
13117
13143
  const child = state.__children[key];
13118
13144
  if (child.state) {
13119
- if ((0, import_utils38.isArray)(child.state)) {
13145
+ if ((0, import_utils37.isArray)(child.state)) {
13120
13146
  Object.defineProperty(child.state, "parent", {
13121
13147
  value: state.parent,
13122
13148
  enumerable: false,
@@ -13150,10 +13176,10 @@ var require_methods = __commonJS({
13150
13176
  };
13151
13177
  var add = function(value2, options = {}) {
13152
13178
  const state = this;
13153
- if ((0, import_utils38.isArray)(state)) {
13179
+ if ((0, import_utils37.isArray)(state)) {
13154
13180
  state.push(value2);
13155
13181
  state.update(state.parse(), { overwrite: true, ...options });
13156
- } else if ((0, import_utils38.isObject)(state)) {
13182
+ } else if ((0, import_utils37.isObject)(state)) {
13157
13183
  const key = Object.keys(state).length;
13158
13184
  state.update({ [key]: value2 }, options);
13159
13185
  }
@@ -13169,17 +13195,17 @@ var require_methods = __commonJS({
13169
13195
  };
13170
13196
  var set3 = function(val, options = {}) {
13171
13197
  const state = this;
13172
- const value2 = (0, import_utils38.deepCloneWithExtend)(val);
13198
+ const value2 = (0, import_utils37.deepCloneWithExtend)(val);
13173
13199
  return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
13174
13200
  };
13175
13201
  var reset = function(options = {}) {
13176
13202
  const state = this;
13177
- const value2 = (0, import_utils38.deepCloneWithExtend)(state.parse());
13203
+ const value2 = (0, import_utils37.deepCloneWithExtend)(state.parse());
13178
13204
  return state.set(value2, { replace: true, ...options });
13179
13205
  };
13180
13206
  var apply = function(func, options = {}) {
13181
13207
  const state = this;
13182
- if ((0, import_utils38.isFunction)(func)) {
13208
+ if ((0, import_utils37.isFunction)(func)) {
13183
13209
  func(state);
13184
13210
  return state.update(state.parse(), { replace: true, ...options });
13185
13211
  }
@@ -13220,7 +13246,7 @@ var require_inherit = __commonJS({
13220
13246
  isState: () => isState2
13221
13247
  });
13222
13248
  module2.exports = __toCommonJS12(inherit_exports);
13223
- var import_utils38 = require_cjs();
13249
+ var import_utils37 = require_cjs();
13224
13250
  var import_ignore = require_ignore();
13225
13251
  var getRootStateInKey = (stateKey, parentState) => {
13226
13252
  if (!stateKey.includes("~/"))
@@ -13285,11 +13311,11 @@ var require_inherit = __commonJS({
13285
13311
  var createInheritedState = (element, parent) => {
13286
13312
  const ref = element.__ref;
13287
13313
  const inheritedState = findInheritedState(element, parent);
13288
- if ((0, import_utils38.isUndefined)(inheritedState))
13314
+ if ((0, import_utils37.isUndefined)(inheritedState))
13289
13315
  return element.state;
13290
- if ((0, import_utils38.is)(inheritedState)("object", "array")) {
13291
- return (0, import_utils38.deepCloneWithExtend)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
13292
- } else if ((0, import_utils38.is)(inheritedState)("string", "number", "boolean")) {
13316
+ if ((0, import_utils37.is)(inheritedState)("object", "array")) {
13317
+ return (0, import_utils37.deepCloneWithExtend)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
13318
+ } else if ((0, import_utils37.is)(inheritedState)("string", "number", "boolean")) {
13293
13319
  ref.__stateType = typeof inheritedState;
13294
13320
  return { value: inheritedState };
13295
13321
  }
@@ -13298,12 +13324,12 @@ var require_inherit = __commonJS({
13298
13324
  var checkIfInherits = (element) => {
13299
13325
  const ref = element.__ref;
13300
13326
  const stateKey = ref.__state;
13301
- if (stateKey && (0, import_utils38.is)(stateKey)("number", "string", "boolean"))
13327
+ if (stateKey && (0, import_utils37.is)(stateKey)("number", "string", "boolean"))
13302
13328
  return true;
13303
13329
  return false;
13304
13330
  };
13305
13331
  var isState2 = function(state) {
13306
- if (!(0, import_utils38.isObjectLike)(state))
13332
+ if (!(0, import_utils37.isObjectLike)(state))
13307
13333
  return false;
13308
13334
  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;
13309
13335
  };
@@ -13352,7 +13378,7 @@ var require_updateState = __commonJS({
13352
13378
  var import_report = require_cjs3();
13353
13379
  var import_event = require_cjs4();
13354
13380
  var import_ignore = require_ignore();
13355
- var import_utils38 = require_cjs();
13381
+ var import_utils37 = require_cjs();
13356
13382
  var import_inherit = require_inherit();
13357
13383
  var STATE_UPDATE_OPTIONS = {
13358
13384
  overwrite: true,
@@ -13365,7 +13391,7 @@ var require_updateState = __commonJS({
13365
13391
  const state = this;
13366
13392
  const element = state.__element;
13367
13393
  if (!options.updateByState)
13368
- (0, import_utils38.merge)(options, STATE_UPDATE_OPTIONS);
13394
+ (0, import_utils37.merge)(options, STATE_UPDATE_OPTIONS);
13369
13395
  if (!state.__element)
13370
13396
  (0, import_report.report)("ElementOnStateIsNotDefined");
13371
13397
  if (options.preventInheritAtCurrentState === true) {
@@ -13395,10 +13421,10 @@ var require_updateState = __commonJS({
13395
13421
  const shallow = overwrite === "shallow" || overwrite === "shallow-once";
13396
13422
  const merge22 = overwrite === "merge";
13397
13423
  if (merge22) {
13398
- (0, import_utils38.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13424
+ (0, import_utils37.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13399
13425
  return;
13400
13426
  }
13401
- const overwriteFunc = shallow ? import_utils38.overwriteShallow : import_utils38.overwriteDeep;
13427
+ const overwriteFunc = shallow ? import_utils37.overwriteShallow : import_utils37.overwriteDeep;
13402
13428
  if (options.overwrite === "shallow-once")
13403
13429
  options.overwrite = true;
13404
13430
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
@@ -13423,7 +13449,7 @@ var require_updateState = __commonJS({
13423
13449
  const changesValue = (0, import_inherit.createNestedObjectByKeyPath)(stateKey, passedValue);
13424
13450
  const targetParent = findRootState || findGrandParentState || parent.state;
13425
13451
  if (options.replace)
13426
- (0, import_utils38.overwriteDeep)(targetParent, changesValue || value2);
13452
+ (0, import_utils37.overwriteDeep)(targetParent, changesValue || value2);
13427
13453
  targetParent.update(changesValue, {
13428
13454
  execStateFunction: false,
13429
13455
  isHoisted: true,
@@ -13492,7 +13518,7 @@ var require_create2 = __commonJS({
13492
13518
  });
13493
13519
  module2.exports = __toCommonJS12(create_exports);
13494
13520
  var import_event = require_cjs4();
13495
- var import_utils38 = require_cjs();
13521
+ var import_utils37 = require_cjs();
13496
13522
  var import_ignore = require_ignore();
13497
13523
  var import_methods = require_methods();
13498
13524
  var import_updateState = require_updateState();
@@ -13506,13 +13532,13 @@ var require_create2 = __commonJS({
13506
13532
  if (objectizeState === false)
13507
13533
  return parent.state || {};
13508
13534
  else
13509
- element.state = (0, import_utils38.deepCloneWithExtend)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
13535
+ element.state = (0, import_utils37.deepCloneWithExtend)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
13510
13536
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
13511
13537
  if (whatInitReturns === false)
13512
13538
  return element.state;
13513
13539
  if ((0, import_inherit.checkIfInherits)(element)) {
13514
13540
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
13515
- element.state = (0, import_utils38.isUndefined)(inheritedState) ? {} : inheritedState;
13541
+ element.state = (0, import_utils37.isUndefined)(inheritedState) ? {} : inheritedState;
13516
13542
  }
13517
13543
  const dependentState = applyDependentState(element, element.state);
13518
13544
  if (dependentState)
@@ -13525,17 +13551,17 @@ var require_create2 = __commonJS({
13525
13551
  const { __ref: ref } = state;
13526
13552
  if (!ref)
13527
13553
  return;
13528
- const dependentState = (0, import_utils38.deepCloneWithExtend)(ref, import_ignore.IGNORE_STATE_PARAMS);
13554
+ const dependentState = (0, import_utils37.deepCloneWithExtend)(ref, import_ignore.IGNORE_STATE_PARAMS);
13529
13555
  const newDepends = { [element.key]: dependentState };
13530
- ref.__depends = (0, import_utils38.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
13556
+ ref.__depends = (0, import_utils37.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
13531
13557
  return dependentState;
13532
13558
  };
13533
13559
  var checkForTypes = (element) => {
13534
13560
  const { state, __ref: ref } = element;
13535
- if ((0, import_utils38.isFunction)(state)) {
13561
+ if ((0, import_utils37.isFunction)(state)) {
13536
13562
  ref.__state = state;
13537
- return (0, import_utils38.exec)(state, element);
13538
- } else if ((0, import_utils38.is)(state)("string", "number")) {
13563
+ return (0, import_utils37.exec)(state, element);
13564
+ } else if ((0, import_utils37.is)(state)("string", "number")) {
13539
13565
  ref.__state = state;
13540
13566
  return {};
13541
13567
  } else if (state === true) {
@@ -13583,7 +13609,7 @@ var require_create2 = __commonJS({
13583
13609
  __children: {},
13584
13610
  root: ref.root ? ref.root.state : state
13585
13611
  };
13586
- if ((0, import_utils38.isArray)(state)) {
13612
+ if ((0, import_utils37.isArray)(state)) {
13587
13613
  addProtoToArray(state, proto);
13588
13614
  } else {
13589
13615
  Object.setPrototypeOf(state, proto);
@@ -13651,10 +13677,10 @@ var require_state = __commonJS({
13651
13677
  });
13652
13678
  module2.exports = __toCommonJS12(state_exports);
13653
13679
  var import_state2 = require_cjs9();
13654
- var import_utils38 = require_cjs();
13680
+ var import_utils37 = require_cjs();
13655
13681
  var state = (params, element, node2) => {
13656
- const state2 = (0, import_utils38.exec)(params, element);
13657
- if ((0, import_utils38.isObject)(state2)) {
13682
+ const state2 = (0, import_utils37.exec)(params, element);
13683
+ if ((0, import_utils37.isObject)(state2)) {
13658
13684
  for (const param in state2) {
13659
13685
  if (import_state2.IGNORE_STATE_PARAMS.includes(param))
13660
13686
  continue;
@@ -13694,13 +13720,13 @@ var require_scope = __commonJS({
13694
13720
  default: () => scope_default
13695
13721
  });
13696
13722
  module2.exports = __toCommonJS12(scope_exports);
13697
- var import_utils38 = require_cjs();
13723
+ var import_utils37 = require_cjs();
13698
13724
  var scope_default = (params, element, node2) => {
13699
- if (!(0, import_utils38.isObject)(params))
13725
+ if (!(0, import_utils37.isObject)(params))
13700
13726
  return;
13701
13727
  for (const scopeItem in params) {
13702
13728
  const value2 = params[scopeItem];
13703
- if ((0, import_utils38.isFunction)(value2)) {
13729
+ if ((0, import_utils37.isFunction)(value2)) {
13704
13730
  element.scope[scopeItem] = value2.bind(element);
13705
13731
  } else {
13706
13732
  element.scope[scopeItem] = value2;
@@ -13920,7 +13946,7 @@ var require_methods2 = __commonJS({
13920
13946
  spotByPath: () => spotByPath
13921
13947
  });
13922
13948
  module2.exports = __toCommonJS12(methods_exports);
13923
- var import_utils38 = require_cjs();
13949
+ var import_utils37 = require_cjs();
13924
13950
  var import_tree = require_tree();
13925
13951
  var import_mixins = require_mixins();
13926
13952
  var spotByPath = function(path) {
@@ -13953,9 +13979,9 @@ var require_methods2 = __commonJS({
13953
13979
  };
13954
13980
  var remove = function(params) {
13955
13981
  const element = this;
13956
- if ((0, import_utils38.isFunction)(element.node.remove))
13982
+ if ((0, import_utils37.isFunction)(element.node.remove))
13957
13983
  element.node.remove();
13958
- else if (!(0, import_utils38.isProduction)()) {
13984
+ else if (!(0, import_utils37.isProduction)()) {
13959
13985
  console.warn("This item cant be removed");
13960
13986
  element.log();
13961
13987
  }
@@ -13995,8 +14021,8 @@ var require_methods2 = __commonJS({
13995
14021
  if (v === "state") {
13996
14022
  if (element.__ref && !element.__ref.__hasRootState)
13997
14023
  return;
13998
- const parsedVal = (0, import_utils38.isFunction)(val && val.parse) ? val.parse() : val;
13999
- obj[v] = (0, import_utils38.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
14024
+ const parsedVal = (0, import_utils37.isFunction)(val && val.parse) ? val.parse() : val;
14025
+ obj[v] = (0, import_utils37.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
14000
14026
  } else if (v === "scope") {
14001
14027
  if (element.__ref && !element.__ref.__hasRootScope)
14002
14028
  return;
@@ -14004,7 +14030,7 @@ var require_methods2 = __commonJS({
14004
14030
  } else if (v === "props") {
14005
14031
  const { __element, update, ...props4 } = element[v];
14006
14032
  obj[v] = props4;
14007
- } else if ((0, import_utils38.isDefined)(val))
14033
+ } else if ((0, import_utils37.isDefined)(val))
14008
14034
  obj[v] = val;
14009
14035
  });
14010
14036
  return obj;
@@ -14015,7 +14041,7 @@ var require_methods2 = __commonJS({
14015
14041
  for (const v in obj) {
14016
14042
  if (excl.includes(v))
14017
14043
  return;
14018
- if ((0, import_utils38.isObjectLike)(obj[v])) {
14044
+ if ((0, import_utils37.isObjectLike)(obj[v])) {
14019
14045
  obj[v] = parseDeep.call(obj[v], excl);
14020
14046
  }
14021
14047
  }
@@ -14133,18 +14159,18 @@ var require_inherit2 = __commonJS({
14133
14159
  inheritParentProps: () => inheritParentProps
14134
14160
  });
14135
14161
  module2.exports = __toCommonJS12(inherit_exports);
14136
- var import_utils38 = require_cjs();
14162
+ var import_utils37 = require_cjs();
14137
14163
  var objectizeStringProperty = (propValue) => {
14138
- if ((0, import_utils38.is)(propValue)("string", "number")) {
14164
+ if ((0, import_utils37.is)(propValue)("string", "number")) {
14139
14165
  return { inheritedString: propValue };
14140
14166
  }
14141
14167
  return propValue;
14142
14168
  };
14143
14169
  var inheritParentProps = (element, parent) => {
14144
14170
  let propsStack = [];
14145
- const parentProps = (0, import_utils38.exec)(parent, parent.state).props;
14171
+ const parentProps = (0, import_utils37.exec)(parent, parent.state).props;
14146
14172
  const matchParent = parent.props && parentProps[element.key];
14147
- const matchParentIsString = (0, import_utils38.isString)(matchParent);
14173
+ const matchParentIsString = (0, import_utils37.isString)(matchParent);
14148
14174
  const matchParentChildProps = parentProps && parentProps.childProps;
14149
14175
  if (matchParent) {
14150
14176
  if (matchParentIsString) {
@@ -14192,19 +14218,19 @@ var require_create3 = __commonJS({
14192
14218
  syncProps: () => syncProps
14193
14219
  });
14194
14220
  module2.exports = __toCommonJS12(create_exports);
14195
- var import_utils38 = require_cjs();
14221
+ var import_utils37 = require_cjs();
14196
14222
  var import_ignore = require_ignore2();
14197
14223
  var import_inherit = require_inherit2();
14198
14224
  var createPropsStack = (element, parent) => {
14199
14225
  const { props: props4, __ref } = element;
14200
14226
  const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
14201
- if ((0, import_utils38.isObject)(props4))
14227
+ if ((0, import_utils37.isObject)(props4))
14202
14228
  propsStack.push(props4);
14203
14229
  else if (props4 === "inherit" && parent.props)
14204
14230
  propsStack.push(parent.props);
14205
14231
  else if (props4)
14206
14232
  propsStack.push(props4);
14207
- if ((0, import_utils38.isArray)(__ref.__extend)) {
14233
+ if ((0, import_utils37.isArray)(__ref.__extend)) {
14208
14234
  __ref.__extend.forEach((extend) => {
14209
14235
  if (extend.props && extend.props !== props4)
14210
14236
  propsStack.push(extend.props);
@@ -14219,10 +14245,10 @@ var require_create3 = __commonJS({
14219
14245
  props4.forEach((v) => {
14220
14246
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
14221
14247
  return;
14222
- const execProps = (0, import_utils38.exec)(v, element);
14223
- element.props = (0, import_utils38.deepMerge)(
14248
+ const execProps = (0, import_utils37.exec)(v, element);
14249
+ element.props = (0, import_utils37.deepMerge)(
14224
14250
  mergedProps,
14225
- (0, import_utils38.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
14251
+ (0, import_utils37.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
14226
14252
  import_ignore.IGNORE_PROPS_PARAMS
14227
14253
  );
14228
14254
  });
@@ -14370,11 +14396,11 @@ var require_object2 = __commonJS({
14370
14396
  overwriteShallow: () => overwriteShallow2
14371
14397
  });
14372
14398
  module2.exports = __toCommonJS12(object_exports);
14373
- var import_utils38 = require_cjs();
14399
+ var import_utils37 = require_cjs();
14374
14400
  var import_state2 = require_cjs9();
14375
14401
  var import_props = require_props();
14376
14402
  var import_methods = require_methods2();
14377
- var METHODS_EXL = (0, import_utils38.joinArrays)(
14403
+ var METHODS_EXL = (0, import_utils37.joinArrays)(
14378
14404
  ["node", "state", "context", "extend", "__element"],
14379
14405
  import_methods.METHODS,
14380
14406
  import_state2.IGNORE_STATE_PARAMS,
@@ -14388,7 +14414,7 @@ var require_object2 = __commonJS({
14388
14414
  const extendProp = extend[e];
14389
14415
  if (elementProp === void 0) {
14390
14416
  element[e] = extendProp;
14391
- } else if ((0, import_utils38.isObjectLike)(elementProp) && (0, import_utils38.isObject)(extendProp)) {
14417
+ } else if ((0, import_utils37.isObjectLike)(elementProp) && (0, import_utils37.isObject)(extendProp)) {
14392
14418
  deepMerge7(elementProp, extendProp);
14393
14419
  }
14394
14420
  }
@@ -14404,15 +14430,15 @@ var require_object2 = __commonJS({
14404
14430
  return o;
14405
14431
  };
14406
14432
  var deepClone3 = (obj, exclude = METHODS_EXL) => {
14407
- const o = (0, import_utils38.isArray)(obj) ? [] : {};
14433
+ const o = (0, import_utils37.isArray)(obj) ? [] : {};
14408
14434
  for (const e in obj) {
14409
14435
  if (exclude.includes(e))
14410
14436
  continue;
14411
14437
  let objProp = obj[e];
14412
- if (e === "extend" && (0, import_utils38.isArray)(objProp)) {
14438
+ if (e === "extend" && (0, import_utils37.isArray)(objProp)) {
14413
14439
  objProp = mergeArray(objProp, exclude);
14414
14440
  }
14415
- if ((0, import_utils38.isObjectLike)(objProp)) {
14441
+ if ((0, import_utils37.isObjectLike)(objProp)) {
14416
14442
  o[e] = deepClone3(objProp, exclude);
14417
14443
  } else
14418
14444
  o[e] = objProp;
@@ -14451,7 +14477,7 @@ var require_object2 = __commonJS({
14451
14477
  continue;
14452
14478
  const objProp = obj[e];
14453
14479
  const paramsProp = params[e];
14454
- if ((0, import_utils38.isObjectLike)(objProp) && (0, import_utils38.isObjectLike)(paramsProp)) {
14480
+ if ((0, import_utils37.isObjectLike)(objProp) && (0, import_utils37.isObjectLike)(paramsProp)) {
14455
14481
  overwriteDeep3(objProp, paramsProp);
14456
14482
  } else if (paramsProp !== void 0) {
14457
14483
  obj[e] = paramsProp;
@@ -14460,7 +14486,7 @@ var require_object2 = __commonJS({
14460
14486
  return obj;
14461
14487
  };
14462
14488
  var mergeIfExisted = (a, b) => {
14463
- if ((0, import_utils38.isObjectLike)(a) && (0, import_utils38.isObjectLike)(b))
14489
+ if ((0, import_utils37.isObjectLike)(a) && (0, import_utils37.isObjectLike)(b))
14464
14490
  return deepMerge7(a, b);
14465
14491
  return a || b;
14466
14492
  };
@@ -14468,7 +14494,7 @@ var require_object2 = __commonJS({
14468
14494
  return arr.reduce((a, c) => deepMerge7(a, deepClone3(c, exclude)), {});
14469
14495
  };
14470
14496
  var mergeAndCloneIfArray = (obj) => {
14471
- return (0, import_utils38.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
14497
+ return (0, import_utils37.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
14472
14498
  };
14473
14499
  var flattenRecursive = (param, prop, stack = []) => {
14474
14500
  const objectized = mergeAndCloneIfArray(param);
@@ -14522,7 +14548,7 @@ var require_extendUtils = __commonJS({
14522
14548
  setHashedExtend: () => setHashedExtend
14523
14549
  });
14524
14550
  module2.exports = __toCommonJS12(extendUtils_exports);
14525
- var import_utils38 = require_cjs();
14551
+ var import_utils37 = require_cjs();
14526
14552
  var ENV2 = "development";
14527
14553
  var generateHash = () => Math.random().toString(36).substring(2);
14528
14554
  var extendStackRegistry = {};
@@ -14532,7 +14558,7 @@ var require_extendUtils = __commonJS({
14532
14558
  };
14533
14559
  var setHashedExtend = (extend, stack) => {
14534
14560
  const hash2 = generateHash();
14535
- if (!(0, import_utils38.isString)(extend)) {
14561
+ if (!(0, import_utils37.isString)(extend)) {
14536
14562
  extend.__hash = hash2;
14537
14563
  }
14538
14564
  extendStackRegistry[hash2] = stack;
@@ -14558,9 +14584,9 @@ var require_extendUtils = __commonJS({
14558
14584
  var flattenExtend = (extend, stack, context) => {
14559
14585
  if (!extend)
14560
14586
  return stack;
14561
- if ((0, import_utils38.isArray)(extend))
14587
+ if ((0, import_utils37.isArray)(extend))
14562
14588
  return extractArrayExtend(extend, stack, context);
14563
- if ((0, import_utils38.isString)(extend))
14589
+ if ((0, import_utils37.isString)(extend))
14564
14590
  extend = fallbackStringExtend(extend, context);
14565
14591
  stack.push(extend);
14566
14592
  if (extend.extend)
@@ -14575,14 +14601,14 @@ var require_extendUtils = __commonJS({
14575
14601
  const extendProp = extend[e];
14576
14602
  if (elementProp === void 0) {
14577
14603
  element[e] = extendProp;
14578
- } else if ((0, import_utils38.isObject)(elementProp) && (0, import_utils38.isObject)(extendProp)) {
14604
+ } else if ((0, import_utils37.isObject)(elementProp) && (0, import_utils37.isObject)(extendProp)) {
14579
14605
  deepMergeExtend(elementProp, extendProp);
14580
- } else if ((0, import_utils38.isArray)(elementProp) && (0, import_utils38.isArray)(extendProp)) {
14606
+ } else if ((0, import_utils37.isArray)(elementProp) && (0, import_utils37.isArray)(extendProp)) {
14581
14607
  element[e] = elementProp.concat(extendProp);
14582
- } else if ((0, import_utils38.isArray)(elementProp) && (0, import_utils38.isObject)(extendProp)) {
14608
+ } else if ((0, import_utils37.isArray)(elementProp) && (0, import_utils37.isObject)(extendProp)) {
14583
14609
  const obj = deepMergeExtend({}, elementProp);
14584
14610
  element[e] = deepMergeExtend(obj, extendProp);
14585
- } else if (elementProp === void 0 && (0, import_utils38.isFunction)(extendProp)) {
14611
+ } else if (elementProp === void 0 && (0, import_utils37.isFunction)(extendProp)) {
14586
14612
  element[e] = extendProp;
14587
14613
  }
14588
14614
  }
@@ -14590,12 +14616,12 @@ var require_extendUtils = __commonJS({
14590
14616
  };
14591
14617
  var cloneAndMergeArrayExtend = (stack) => {
14592
14618
  return stack.reduce((a, c) => {
14593
- return deepMergeExtend(a, (0, import_utils38.deepCloneWithExtend)(c));
14619
+ return deepMergeExtend(a, (0, import_utils37.deepCloneWithExtend)(c));
14594
14620
  }, {});
14595
14621
  };
14596
14622
  var fallbackStringExtend = (extend, context, options = {}) => {
14597
14623
  const COMPONENTS = context && context.components || options.components;
14598
- if ((0, import_utils38.isString)(extend)) {
14624
+ if ((0, import_utils37.isString)(extend)) {
14599
14625
  const componentExists = COMPONENTS[extend] || COMPONENTS["smbls." + extend];
14600
14626
  if (COMPONENTS && componentExists) {
14601
14627
  return componentExists;
@@ -14652,13 +14678,13 @@ var require_extend = __commonJS({
14652
14678
  applyExtend: () => applyExtend
14653
14679
  });
14654
14680
  module2.exports = __toCommonJS12(extend_exports);
14655
- var import_utils38 = require_cjs();
14681
+ var import_utils37 = require_cjs();
14656
14682
  var import_utils210 = require_utils();
14657
14683
  var ENV2 = "development";
14658
14684
  var mainExtend;
14659
14685
  var applyExtend = (element, parent, options = {}) => {
14660
- if ((0, import_utils38.isFunction)(element))
14661
- element = (0, import_utils38.exec)(element, parent);
14686
+ if ((0, import_utils37.isFunction)(element))
14687
+ element = (0, import_utils37.exec)(element, parent);
14662
14688
  let { extend, props: props4, context, __ref } = element;
14663
14689
  extend = (0, import_utils210.fallbackStringExtend)(extend, context, options);
14664
14690
  const extendStack = (0, import_utils210.getExtendStack)(extend, context);
@@ -14703,7 +14729,7 @@ var require_extend = __commonJS({
14703
14729
  __ref.__extend = stack;
14704
14730
  let mergedExtend = (0, import_utils210.cloneAndMergeArrayExtend)(stack);
14705
14731
  const COMPONENTS = context && context.components || options.components;
14706
- const component = (0, import_utils38.exec)(element.component || mergedExtend.component, element);
14732
+ const component = (0, import_utils37.exec)(element.component || mergedExtend.component, element);
14707
14733
  if (component && COMPONENTS && COMPONENTS[component]) {
14708
14734
  const componentExtend = (0, import_utils210.cloneAndMergeArrayExtend)((0, import_utils210.getExtendStack)(COMPONENTS[component]));
14709
14735
  mergedExtend = (0, import_utils210.deepMergeExtend)(componentExtend, mergedExtend);
@@ -14750,7 +14776,7 @@ var require_component = __commonJS({
14750
14776
  overwriteVariant: () => overwriteVariant
14751
14777
  });
14752
14778
  module2.exports = __toCommonJS12(component_exports);
14753
- var import_utils38 = require_cjs();
14779
+ var import_utils37 = require_cjs();
14754
14780
  var import_extend = require_extend();
14755
14781
  var ENV2 = "development";
14756
14782
  var DOMQL_BUILTINS = [
@@ -14767,14 +14793,14 @@ var require_component = __commonJS({
14767
14793
  "tag"
14768
14794
  ];
14769
14795
  var checkIfKeyIsComponent3 = (key) => {
14770
- const isFirstKeyString = (0, import_utils38.isString)(key);
14796
+ const isFirstKeyString = (0, import_utils37.isString)(key);
14771
14797
  if (!isFirstKeyString)
14772
14798
  return;
14773
14799
  const firstCharKey = key.slice(0, 1);
14774
14800
  return /^[A-Z]*$/.test(firstCharKey);
14775
14801
  };
14776
14802
  var checkIfKeyIsProperty = (key) => {
14777
- const isFirstKeyString = (0, import_utils38.isString)(key);
14803
+ const isFirstKeyString = (0, import_utils37.isString)(key);
14778
14804
  if (!isFirstKeyString)
14779
14805
  return;
14780
14806
  const firstCharKey = key.slice(0, 1);
@@ -14782,9 +14808,9 @@ var require_component = __commonJS({
14782
14808
  };
14783
14809
  var addAdditionalExtend = (newExtend, element) => {
14784
14810
  const { extend: elementExtend } = element;
14785
- const originalArray = (0, import_utils38.isArray)(elementExtend) ? elementExtend : [elementExtend];
14786
- const receivedArray = (0, import_utils38.isArray)(newExtend) ? newExtend : [newExtend];
14787
- const extend = (0, import_utils38.joinArrays)(receivedArray, originalArray);
14811
+ const originalArray = (0, import_utils37.isArray)(elementExtend) ? elementExtend : [elementExtend];
14812
+ const receivedArray = (0, import_utils37.isArray)(newExtend) ? newExtend : [newExtend];
14813
+ const extend = (0, import_utils37.joinArrays)(receivedArray, originalArray);
14788
14814
  return { ...element, extend };
14789
14815
  };
14790
14816
  var replaceOnKeys = (key) => key.replace(/on\w+/g, (match2) => match2.substring(2));
@@ -14832,11 +14858,11 @@ var require_component = __commonJS({
14832
14858
  };
14833
14859
  } else if (extend) {
14834
14860
  return addAdditionalExtend(extendFromKey, element);
14835
- } else if ((0, import_utils38.isFunction)(element)) {
14861
+ } else if ((0, import_utils37.isFunction)(element)) {
14836
14862
  return {
14837
14863
  extend: extendFromKey,
14838
14864
  tag,
14839
- props: { ...(0, import_utils38.exec)(element, parent) }
14865
+ props: { ...(0, import_utils37.exec)(element, parent) }
14840
14866
  };
14841
14867
  }
14842
14868
  };
@@ -14849,8 +14875,8 @@ var require_component = __commonJS({
14849
14875
  return;
14850
14876
  const { components } = context;
14851
14877
  const { extend } = element;
14852
- const execExtend = (0, import_utils38.exec)(extend, element);
14853
- if ((0, import_utils38.isString)(execExtend)) {
14878
+ const execExtend = (0, import_utils37.exec)(extend, element);
14879
+ if ((0, import_utils37.isString)(execExtend)) {
14854
14880
  const componentExists = components[execExtend] || components["smbls." + execExtend];
14855
14881
  if (componentExists)
14856
14882
  element.extend = componentExists;
@@ -14864,29 +14890,29 @@ var require_component = __commonJS({
14864
14890
  }
14865
14891
  };
14866
14892
  var isVariant = (param) => {
14867
- if (!(0, import_utils38.isString)(param))
14893
+ if (!(0, import_utils37.isString)(param))
14868
14894
  return;
14869
14895
  const firstCharKey = param.slice(0, 1);
14870
14896
  return firstCharKey === ".";
14871
14897
  };
14872
14898
  var hasVariantProp = (element) => {
14873
14899
  const { props: props4 } = element;
14874
- if ((0, import_utils38.isObject)(props4) && (0, import_utils38.isString)(props4.variant))
14900
+ if ((0, import_utils37.isObject)(props4) && (0, import_utils37.isString)(props4.variant))
14875
14901
  return true;
14876
14902
  };
14877
14903
  var overwriteVariant = (element, variant, variantProps) => {
14878
14904
  let variantElement = element[variant];
14879
14905
  if (!variantElement)
14880
14906
  return;
14881
- const props4 = (0, import_utils38.isObject)(variantProps) ? variantProps : {};
14882
- if ((0, import_utils38.isString)(variantElement)) {
14907
+ const props4 = (0, import_utils37.isObject)(variantProps) ? variantProps : {};
14908
+ if ((0, import_utils37.isString)(variantElement)) {
14883
14909
  variantElement = {
14884
14910
  extend: [{ props: props4 }, variantElement]
14885
14911
  };
14886
14912
  } else if (variantElement.extend) {
14887
14913
  variantElement = addAdditionalExtend({ props: props4 }, variantElement);
14888
14914
  }
14889
- return (0, import_utils38.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
14915
+ return (0, import_utils37.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
14890
14916
  };
14891
14917
  var applyVariant = (element) => {
14892
14918
  const { props: props4 } = element;
@@ -14961,7 +14987,7 @@ var require_iterate = __commonJS({
14961
14987
  throughUpdatedExec: () => throughUpdatedExec
14962
14988
  });
14963
14989
  module2.exports = __toCommonJS12(iterate_exports);
14964
- var import_utils38 = require_cjs();
14990
+ var import_utils37 = require_cjs();
14965
14991
  var import_utils210 = require_utils();
14966
14992
  var import_methods = require_methods2();
14967
14993
  var throughInitialExec = (element, exclude = {}) => {
@@ -14970,7 +14996,7 @@ var require_iterate = __commonJS({
14970
14996
  if (exclude[param])
14971
14997
  continue;
14972
14998
  const prop = element[param];
14973
- if ((0, import_utils38.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
14999
+ if ((0, import_utils37.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
14974
15000
  ref.__exec[param] = prop;
14975
15001
  element[param] = prop(element, element.state);
14976
15002
  }
@@ -14985,7 +15011,7 @@ var require_iterate = __commonJS({
14985
15011
  if (isDefinedParam)
14986
15012
  continue;
14987
15013
  const newExec = ref.__exec[param](element, element.state, element.context);
14988
- const execReturnsString = (0, import_utils38.isString)(newExec) || (0, import_utils38.isNumber)(newExec);
15014
+ const execReturnsString = (0, import_utils37.isString)(newExec) || (0, import_utils37.isNumber)(newExec);
14989
15015
  if (prop && prop.node && execReturnsString) {
14990
15016
  (0, import_utils210.overwrite)(prop, { text: newExec }, options);
14991
15017
  } else if (newExec !== prop) {
@@ -15003,16 +15029,16 @@ var require_iterate = __commonJS({
15003
15029
  var throughInitialDefine = (element) => {
15004
15030
  const { define, context, __ref: ref } = element;
15005
15031
  let defineObj = {};
15006
- const hasGlobalDefine = context && (0, import_utils38.isObject)(context.define);
15007
- if ((0, import_utils38.isObject)(define))
15032
+ const hasGlobalDefine = context && (0, import_utils37.isObject)(context.define);
15033
+ if ((0, import_utils37.isObject)(define))
15008
15034
  defineObj = { ...define };
15009
15035
  if (hasGlobalDefine)
15010
15036
  defineObj = { ...defineObj, ...context.define };
15011
15037
  for (const param in defineObj) {
15012
15038
  let elementProp = element[param];
15013
- if ((0, import_utils38.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
15039
+ if ((0, import_utils37.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
15014
15040
  ref.__exec[param] = elementProp;
15015
- const execParam2 = elementProp = (0, import_utils38.exec)(elementProp, element);
15041
+ const execParam2 = elementProp = (0, import_utils37.exec)(elementProp, element);
15016
15042
  if (execParam2) {
15017
15043
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
15018
15044
  ref.__defineCache[param] = elementProp;
@@ -15028,15 +15054,15 @@ var require_iterate = __commonJS({
15028
15054
  const { context, define, __ref: ref } = element;
15029
15055
  const changes = {};
15030
15056
  let obj = {};
15031
- if ((0, import_utils38.isObject)(define))
15057
+ if ((0, import_utils37.isObject)(define))
15032
15058
  obj = { ...define };
15033
- if ((0, import_utils38.isObject)(context && context.define))
15059
+ if ((0, import_utils37.isObject)(context && context.define))
15034
15060
  obj = { ...obj, ...context.define };
15035
15061
  for (const param in obj) {
15036
15062
  const execParam = ref.__exec[param];
15037
15063
  if (execParam)
15038
15064
  ref.__defineCache[param] = execParam(element, element.state, element.context);
15039
- const cached = (0, import_utils38.exec)(ref.__defineCache[param], element);
15065
+ const cached = (0, import_utils37.exec)(ref.__defineCache[param], element);
15040
15066
  const newExecParam = obj[param](cached, element, element.state, element.context);
15041
15067
  if (newExecParam)
15042
15068
  element[param] = newExecParam;
@@ -15072,7 +15098,7 @@ var require_applyParam = __commonJS({
15072
15098
  applyParam: () => applyParam
15073
15099
  });
15074
15100
  module2.exports = __toCommonJS12(applyParam_exports);
15075
- var import_utils38 = require_cjs();
15101
+ var import_utils37 = require_cjs();
15076
15102
  var import_mixins = require_mixins();
15077
15103
  var applyParam = (param, element, options) => {
15078
15104
  const { node: node2, context, __ref: ref } = element;
@@ -15085,7 +15111,7 @@ var require_applyParam = __commonJS({
15085
15111
  if (!ref.__if)
15086
15112
  return;
15087
15113
  if (isGlobalTransformer && !hasContextDefine) {
15088
- if ((0, import_utils38.isFunction)(isGlobalTransformer)) {
15114
+ if ((0, import_utils37.isFunction)(isGlobalTransformer)) {
15089
15115
  isGlobalTransformer(prop, element, node2, options);
15090
15116
  return;
15091
15117
  }
@@ -15121,14 +15147,14 @@ var require_propEvents = __commonJS({
15121
15147
  propagateEventsFromProps: () => propagateEventsFromProps
15122
15148
  });
15123
15149
  module2.exports = __toCommonJS12(propEvents_exports);
15124
- var import_utils38 = require_cjs();
15150
+ var import_utils37 = require_cjs();
15125
15151
  var propagateEventsFromProps = (element) => {
15126
15152
  const { props: props4, on: on2 } = element;
15127
15153
  const eventKeysFromProps = Object.keys(props4).filter((key) => key.startsWith("on"));
15128
15154
  eventKeysFromProps.forEach((v) => {
15129
- const eventName = (0, import_utils38.lowercaseFirstLetter)(v.split("on")[1]);
15155
+ const eventName = (0, import_utils37.lowercaseFirstLetter)(v.split("on")[1]);
15130
15156
  const origEvent = on2[eventName];
15131
- if ((0, import_utils38.isFunction)(origEvent)) {
15157
+ if ((0, import_utils37.isFunction)(origEvent)) {
15132
15158
  on2[eventName] = (...args) => {
15133
15159
  const originalEventRetunrs = origEvent(...args);
15134
15160
  if (originalEventRetunrs !== false)
@@ -15178,7 +15204,7 @@ var require_node2 = __commonJS({
15178
15204
  default: () => node_default
15179
15205
  });
15180
15206
  module2.exports = __toCommonJS12(node_exports);
15181
- var import_utils38 = require_cjs();
15207
+ var import_utils37 = require_cjs();
15182
15208
  var import_event = require_cjs4();
15183
15209
  var import_render = require_cjs8();
15184
15210
  var import_methods = require_methods2();
@@ -15204,27 +15230,27 @@ var require_node2 = __commonJS({
15204
15230
  }
15205
15231
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
15206
15232
  node2.ref = element;
15207
- if ((0, import_utils38.isFunction)(node2.setAttribute))
15233
+ if ((0, import_utils37.isFunction)(node2.setAttribute))
15208
15234
  node2.setAttribute("key", element.key);
15209
15235
  }
15210
15236
  (0, import_iterate.throughInitialDefine)(element);
15211
15237
  (0, import_iterate.throughInitialExec)(element);
15212
15238
  if (element.tag !== "string" && element.tag !== "fragment") {
15213
15239
  (0, import_propEvents.propagateEventsFromProps)(element);
15214
- if (isNewNode && (0, import_utils38.isObject)(element.on))
15240
+ if (isNewNode && (0, import_utils37.isObject)(element.on))
15215
15241
  (0, import_event.applyEventsOnNode)(element, options);
15216
15242
  }
15217
15243
  for (const param in element) {
15218
15244
  const value2 = element[param];
15219
15245
  if (!Object.hasOwnProperty.call(element, param))
15220
15246
  continue;
15221
- if ((0, import_utils38.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils210.isVariant)(param) || (0, import_utils38.isObject)(import_mixins.registry[param]))
15247
+ if ((0, import_utils37.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils210.isVariant)(param) || (0, import_utils37.isObject)(import_mixins.registry[param]))
15222
15248
  continue;
15223
15249
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
15224
15250
  if (isElement) {
15225
15251
  const { hasDefine, hasContextDefine } = isElement;
15226
15252
  if (element[param] && !hasDefine && !hasContextDefine) {
15227
- const createAsync3 = () => (0, import_create.default)((0, import_utils38.exec)(value2, element), element, param, options);
15253
+ const createAsync3 = () => (0, import_create.default)((0, import_utils37.exec)(value2, element), element, param, options);
15228
15254
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
15229
15255
  window.requestAnimationFrame(() => createAsync3());
15230
15256
  } else
@@ -15264,7 +15290,7 @@ var require_methods3 = __commonJS({
15264
15290
  DEFAULT_METHODS: () => DEFAULT_METHODS
15265
15291
  });
15266
15292
  module2.exports = __toCommonJS12(methods_exports);
15267
- var import_utils38 = require_cjs();
15293
+ var import_utils37 = require_cjs();
15268
15294
  var DEFAULT_METHODS = {
15269
15295
  key: {},
15270
15296
  tag: {},
@@ -15285,7 +15311,7 @@ var require_methods3 = __commonJS({
15285
15311
  text: (element, state) => {
15286
15312
  element.ref.text = {
15287
15313
  tag: "text",
15288
- text: (0, import_utils38.exec)(element.text, element, state)
15314
+ text: (0, import_utils37.exec)(element.text, element, state)
15289
15315
  };
15290
15316
  },
15291
15317
  innerHTML: {},
@@ -15522,7 +15548,7 @@ var require_update2 = __commonJS({
15522
15548
  default: () => update_default
15523
15549
  });
15524
15550
  module2.exports = __toCommonJS12(update_exports);
15525
- var import_utils38 = require_cjs();
15551
+ var import_utils37 = require_cjs();
15526
15552
  var import_event = require_cjs4();
15527
15553
  var import_methods = require_methods2();
15528
15554
  var import_props = require_props();
@@ -15534,7 +15560,7 @@ var require_update2 = __commonJS({
15534
15560
  var import_applyParam = require_applyParam();
15535
15561
  var import_options5 = __toESM6(require_options(), 1);
15536
15562
  var snapshot = {
15537
- snapshotId: import_utils38.createSnapshotId
15563
+ snapshotId: import_utils37.createSnapshotId
15538
15564
  };
15539
15565
  var UPDATE_DEFAULT_OPTIONS = {
15540
15566
  stackChanges: false,
@@ -15556,14 +15582,14 @@ var require_update2 = __commonJS({
15556
15582
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
15557
15583
  return;
15558
15584
  if (!excludes)
15559
- (0, import_utils38.merge)(options, UPDATE_DEFAULT_OPTIONS);
15585
+ (0, import_utils37.merge)(options, UPDATE_DEFAULT_OPTIONS);
15560
15586
  let ref = element.__ref;
15561
15587
  if (!ref)
15562
15588
  ref = element.__ref = {};
15563
15589
  const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
15564
15590
  if (snapshotHasUpdated)
15565
15591
  return;
15566
- if ((0, import_utils38.isString)(params) || (0, import_utils38.isNumber)(params)) {
15592
+ if ((0, import_utils37.isString)(params) || (0, import_utils37.isNumber)(params)) {
15567
15593
  params = { text: params };
15568
15594
  }
15569
15595
  const inheritState = inheritStateUpdates(element, options);
@@ -15574,7 +15600,7 @@ var require_update2 = __commonJS({
15574
15600
  return;
15575
15601
  if (ref.__if && !options.preventPropsUpdate) {
15576
15602
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
15577
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils38.isFunction)(v));
15603
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils37.isFunction)(v));
15578
15604
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
15579
15605
  if (props4)
15580
15606
  (0, import_props.updateProps)(props4, element, parent);
@@ -15584,14 +15610,14 @@ var require_update2 = __commonJS({
15584
15610
  if (initUpdateReturns === false)
15585
15611
  return element;
15586
15612
  }
15587
- const overwriteChanges = (0, import_utils38.overwriteDeep)(element, params, import_utils210.METHODS_EXL);
15613
+ const overwriteChanges = (0, import_utils37.overwriteDeep)(element, params, import_utils210.METHODS_EXL);
15588
15614
  const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
15589
15615
  const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
15590
15616
  if (!options.isForced && !options.preventListeners) {
15591
15617
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
15592
15618
  }
15593
15619
  if (options.stackChanges && element.__stackChanges) {
15594
- const stackChanges = (0, import_utils38.merge)(definedChanges, (0, import_utils38.merge)(execChanges, overwriteChanges));
15620
+ const stackChanges = (0, import_utils37.merge)(definedChanges, (0, import_utils37.merge)(execChanges, overwriteChanges));
15595
15621
  element.__stackChanges.push(stackChanges);
15596
15622
  }
15597
15623
  if (!ref.__if)
@@ -15611,7 +15637,7 @@ var require_update2 = __commonJS({
15611
15637
  preventUpdateAfterCount
15612
15638
  } = options;
15613
15639
  if (preventUpdateAfter) {
15614
- if ((0, import_utils38.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
15640
+ if ((0, import_utils37.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
15615
15641
  return;
15616
15642
  else if (options.preventUpdateAfterCount === void 0)
15617
15643
  options.preventUpdateAfterCount = 1;
@@ -15623,17 +15649,17 @@ var require_update2 = __commonJS({
15623
15649
  if (!Object.hasOwnProperty.call(element, param))
15624
15650
  continue;
15625
15651
  const hasOnlyUpdateFalsy = onlyUpdate && (onlyUpdate !== param || !element.lookup(onlyUpdate));
15626
- const isInPreventUpdate = (0, import_utils38.isArray)(preventUpdate) && preventUpdate.includes(param);
15627
- const isInPreventDefineUpdate = (0, import_utils38.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
15652
+ const isInPreventUpdate = (0, import_utils37.isArray)(preventUpdate) && preventUpdate.includes(param);
15653
+ const isInPreventDefineUpdate = (0, import_utils37.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
15628
15654
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
15629
- if ((0, import_utils38.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils38.isObject)(import_mixins.registry[param]) || (0, import_utils210.isVariant)(param))
15655
+ if ((0, import_utils37.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils37.isObject)(import_mixins.registry[param]) || (0, import_utils210.isVariant)(param))
15630
15656
  continue;
15631
15657
  if (preventStateUpdate === "once")
15632
15658
  options.preventStateUpdate = false;
15633
15659
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
15634
15660
  if (isElement) {
15635
15661
  const { hasDefine, hasContextDefine } = isElement;
15636
- const canUpdate = (0, import_utils38.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
15662
+ const canUpdate = (0, import_utils37.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
15637
15663
  if (!canUpdate)
15638
15664
  continue;
15639
15665
  const lazyLoad = element.props.lazyLoad || options.lazyLoad;
@@ -15642,7 +15668,7 @@ var require_update2 = __commonJS({
15642
15668
  currentSnapshot: snapshotOnCallee,
15643
15669
  calleeElement
15644
15670
  });
15645
- lazyLoad ? import_utils38.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
15671
+ lazyLoad ? import_utils37.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
15646
15672
  }
15647
15673
  }
15648
15674
  if (!preventUpdateListener)
@@ -15665,7 +15691,7 @@ var require_update2 = __commonJS({
15665
15691
  };
15666
15692
  var checkIfOnUpdate = (element, parent, options) => {
15667
15693
  var _a;
15668
- if (!(0, import_utils38.isFunction)(element.if) || !parent)
15694
+ if (!(0, import_utils37.isFunction)(element.if) || !parent)
15669
15695
  return;
15670
15696
  const ref = element.__ref;
15671
15697
  const ifPassed = element.if(element, element.state, element.context, options);
@@ -15705,7 +15731,7 @@ var require_update2 = __commonJS({
15705
15731
  delete element.__ref;
15706
15732
  delete element.parent;
15707
15733
  const created = (0, import_create.default)(element, parent, element.key, import_options5.default.create, attachOptions);
15708
- if (options.preventUpdate !== true && element.on && (0, import_utils38.isFunction)(element.on.update)) {
15734
+ if (options.preventUpdate !== true && element.on && (0, import_utils37.isFunction)(element.on.update)) {
15709
15735
  (0, import_event.applyEvent)(element.on.update, created, created.state);
15710
15736
  }
15711
15737
  return created;
@@ -15726,9 +15752,9 @@ var require_update2 = __commonJS({
15726
15752
  element.state = parent && parent.state || {};
15727
15753
  return;
15728
15754
  }
15729
- const shouldForceFunctionState = (0, import_utils38.isFunction)(stateKey) && !isHoisted && execStateFunction;
15755
+ const shouldForceFunctionState = (0, import_utils37.isFunction)(stateKey) && !isHoisted && execStateFunction;
15730
15756
  if (shouldForceFunctionState) {
15731
- const execState = (0, import_utils38.exec)(stateKey, element);
15757
+ const execState = (0, import_utils37.exec)(stateKey, element);
15732
15758
  state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true });
15733
15759
  return;
15734
15760
  }
@@ -15796,7 +15822,7 @@ var require_set2 = __commonJS({
15796
15822
  addMethods: () => addMethods
15797
15823
  });
15798
15824
  module2.exports = __toCommonJS12(set_exports);
15799
- var import_utils38 = require_cjs();
15825
+ var import_utils37 = require_cjs();
15800
15826
  var import_set = __toESM6(require_set(), 1);
15801
15827
  var import_update = __toESM6(require_update2(), 1);
15802
15828
  var import__ = require_methods2();
@@ -15817,7 +15843,7 @@ var require_set2 = __commonJS({
15817
15843
  nextElement: import__.nextElement.bind(element),
15818
15844
  previousElement: import__.previousElement.bind(element)
15819
15845
  };
15820
- if ((0, import_utils38.isDevelopment)())
15846
+ if ((0, import_utils37.isDevelopment)())
15821
15847
  proto.log = import__.log.bind(element);
15822
15848
  Object.setPrototypeOf(element, proto);
15823
15849
  };
@@ -15873,7 +15899,7 @@ var require_create4 = __commonJS({
15873
15899
  var import_set = require_set2();
15874
15900
  var import_classList = require_classList();
15875
15901
  var import_iterate = require_iterate();
15876
- var import_utils38 = require_cjs();
15902
+ var import_utils37 = require_cjs();
15877
15903
  var import_options5 = __toESM6(require_options(), 1);
15878
15904
  var import_component = require_component();
15879
15905
  var ENV2 = "development";
@@ -15886,7 +15912,7 @@ var require_create4 = __commonJS({
15886
15912
  parent = redefineParent(element, parent, key);
15887
15913
  key = createKey(element, parent, key);
15888
15914
  const ref = addRef(element, parent, key);
15889
- ref.__initialProps = (0, import_utils38.deepClone)(element.props, []);
15915
+ ref.__initialProps = (0, import_utils37.deepClone)(element.props, []);
15890
15916
  applyContext(element, parent, options);
15891
15917
  (0, import_component.applyComponentFromContext)(element, parent, options);
15892
15918
  if (!ref.__skipCreate) {
@@ -15929,7 +15955,7 @@ var require_create4 = __commonJS({
15929
15955
  }
15930
15956
  return {};
15931
15957
  }
15932
- if ((0, import_utils38.isString)(key) && key.slice(0, 2 === "__")) {
15958
+ if ((0, import_utils37.isString)(key) && key.slice(0, 2 === "__")) {
15933
15959
  if (ENV2 === "test" || ENV2 === "development") {
15934
15960
  console.warn(key, "seems like to be in __ref");
15935
15961
  }
@@ -15962,7 +15988,7 @@ var require_create4 = __commonJS({
15962
15988
  var redefineParent = (element, parent, key, options) => {
15963
15989
  if (!parent)
15964
15990
  return import_tree.ROOT;
15965
- if ((0, import_utils38.isNode)(parent)) {
15991
+ if ((0, import_utils37.isNode)(parent)) {
15966
15992
  const parentNodeWrapper = { key: ":root", node: parent };
15967
15993
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
15968
15994
  return parentNodeWrapper;
@@ -15976,7 +16002,7 @@ var require_create4 = __commonJS({
15976
16002
  }
15977
16003
  };
15978
16004
  var createKey = (element, parent, key) => {
15979
- return ((0, import_utils38.exec)(key, element) || key || element.key || (0, import_utils38.generateKey)()).toString();
16005
+ return ((0, import_utils37.exec)(key, element) || key || element.key || (0, import_utils37.generateKey)()).toString();
15980
16006
  };
15981
16007
  var addRef = (element, parent) => {
15982
16008
  if (element.__ref)
@@ -16013,7 +16039,7 @@ var require_create4 = __commonJS({
16013
16039
  (0, import_event.triggerEventOn)("render", element, options);
16014
16040
  (0, import_event.triggerEventOn)("done", element, options);
16015
16041
  };
16016
- var checkIfPrimitive = (element) => (0, import_utils38.is)(element)("string", "number");
16042
+ var checkIfPrimitive = (element) => (0, import_utils37.is)(element)("string", "number");
16017
16043
  var applyValueAsText = (element, parent, key) => {
16018
16044
  const extendTag = element.extend && element.extend.tag;
16019
16045
  const childExtendTag = parent.childExtend && parent.childExtend.tag;
@@ -16037,7 +16063,7 @@ var require_create4 = __commonJS({
16037
16063
  };
16038
16064
  var createIfConditionFlag = (element, parent) => {
16039
16065
  const { __ref: ref } = element;
16040
- if ((0, import_utils38.isFunction)(element.if) && !element.if(element, element.state)) {
16066
+ if ((0, import_utils37.isFunction)(element.if) && !element.if(element, element.state)) {
16041
16067
  delete ref.__if;
16042
16068
  } else
16043
16069
  ref.__if = true;
@@ -16098,7 +16124,7 @@ var require_create4 = __commonJS({
16098
16124
  (0, import_iterate.throughInitialDefine)(element);
16099
16125
  (0, import_iterate.throughInitialExec)(element);
16100
16126
  for (const k in element) {
16101
- if ((0, import_utils38.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils38.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
16127
+ if ((0, import_utils37.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils37.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
16102
16128
  continue;
16103
16129
  const hasDefine = element.define && element.define[k];
16104
16130
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -16106,7 +16132,7 @@ var require_create4 = __commonJS({
16106
16132
  if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
16107
16133
  continue;
16108
16134
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
16109
- create3((0, import_utils38.exec)(element[k], element), element, k, options);
16135
+ create3((0, import_utils37.exec)(element[k], element), element, k, options);
16110
16136
  }
16111
16137
  }
16112
16138
  }
@@ -17055,8 +17081,8 @@ var init_style = __esm({
17055
17081
  return (0, import_scratch7.getColor)(props4.shapeDirectionColor) || (0, import_scratch7.getColor)(props4.borderColor) || (0, import_scratch7.getColor)(props4.backgroundColor) || (0, import_scratch7.getColor)(props4.background);
17056
17082
  };
17057
17083
  inheritTransition = ({ props: props4, deps }) => {
17058
- const exec5 = Timing.class.transition({ props: props4, deps });
17059
- return exec5 && exec5.transition;
17084
+ const exec4 = Timing.class.transition({ props: props4, deps });
17085
+ return exec4 && exec4.transition;
17060
17086
  };
17061
17087
  SHAPES = {
17062
17088
  rectangle: {},
@@ -17761,14 +17787,15 @@ var init_Collection = __esm({
17761
17787
  Collection = {
17762
17788
  define: {
17763
17789
  $collection: (param, el, state) => {
17764
- var _a, _b, _c;
17790
+ var _a, _b, _c, _d;
17765
17791
  const { __ref: ref } = el;
17766
17792
  const hasChildren = (0, import_utils20.isArray)((_a = el.props) == null ? void 0 : _a.children);
17767
17793
  if (hasChildren) {
17768
17794
  param = (_b = el.props) == null ? void 0 : _b.children;
17769
17795
  const childrenAs = (_c = el.props) == null ? void 0 : _c.childrenAs;
17796
+ const extend = (_d = el.props) == null ? void 0 : _d.childrenExtend;
17770
17797
  if (childrenAs)
17771
- param = param.map((v) => ({ [childrenAs]: v }));
17798
+ param = param.map((v) => ({ extend, [childrenAs]: v }));
17772
17799
  } else if (!param)
17773
17800
  return;
17774
17801
  if ((0, import_utils20.isString)(param)) {
@@ -18395,10 +18422,9 @@ var import_utils25, Icon, IconText, FileIcon;
18395
18422
  var init_Icon = __esm({
18396
18423
  "../uikit/Icon/index.js"() {
18397
18424
  "use strict";
18398
- init_Atoms();
18399
18425
  import_utils25 = __toESM(require_cjs());
18400
18426
  Icon = {
18401
- extend: Svg,
18427
+ extend: "Svg",
18402
18428
  deps: { isString: import_utils25.isString },
18403
18429
  props: ({ key, props: props4, parent, context, deps }) => {
18404
18430
  const { ICONS, useIconSprite, verbose } = context && context.designSystem;
@@ -18440,7 +18466,7 @@ var init_Icon = __esm({
18440
18466
  attr: { viewBox: "0 0 24 24" }
18441
18467
  };
18442
18468
  IconText = {
18443
- extend: Flex,
18469
+ extend: "Flex",
18444
18470
  props: {
18445
18471
  align: "center center",
18446
18472
  lineHeight: 1
@@ -18461,7 +18487,7 @@ var init_Icon = __esm({
18461
18487
  }
18462
18488
  };
18463
18489
  FileIcon = {
18464
- extend: Flex,
18490
+ extend: "Flex",
18465
18491
  props: {
18466
18492
  theme: "tertiary",
18467
18493
  boxSize: "C1",
@@ -18500,9 +18526,8 @@ var CheckIndicator, CheckIndicatorWithLabel;
18500
18526
  var init_CheckIndicator = __esm({
18501
18527
  "../uikit/Indicator/CheckIndicator.js"() {
18502
18528
  "use strict";
18503
- init_Atoms();
18504
18529
  CheckIndicator = {
18505
- extend: Flex,
18530
+ extend: "Flex",
18506
18531
  props: {
18507
18532
  padding: "Y1",
18508
18533
  round: "100%",
@@ -18514,7 +18539,7 @@ var init_CheckIndicator = __esm({
18514
18539
  }
18515
18540
  };
18516
18541
  CheckIndicatorWithLabel = {
18517
- extend: Flex,
18542
+ extend: "Flex",
18518
18543
  props: {
18519
18544
  align: "center flex-start",
18520
18545
  gap: "Z"
@@ -18533,9 +18558,8 @@ var CountIndicator;
18533
18558
  var init_CountIndicator = __esm({
18534
18559
  "../uikit/Indicator/CountIndicator.js"() {
18535
18560
  "use strict";
18536
- init_Atoms();
18537
18561
  CountIndicator = {
18538
- extend: Flex,
18562
+ extend: "Flex",
18539
18563
  props: {
18540
18564
  text: "2",
18541
18565
  theme: "primary",
@@ -18556,7 +18580,6 @@ var RadioIndicator, RadioIndicatorWithLabel;
18556
18580
  var init_RadioIndicator = __esm({
18557
18581
  "../uikit/Indicator/RadioIndicator.js"() {
18558
18582
  "use strict";
18559
- init_Atoms();
18560
18583
  RadioIndicator = {
18561
18584
  props: {
18562
18585
  padding: "Z+V",
@@ -18573,7 +18596,7 @@ var init_RadioIndicator = __esm({
18573
18596
  }
18574
18597
  };
18575
18598
  RadioIndicatorWithLabel = {
18576
- extend: Flex,
18599
+ extend: "Flex",
18577
18600
  props: {
18578
18601
  align: "center flex-start",
18579
18602
  gap: "Z"
@@ -18707,9 +18730,8 @@ var UnitValue, DoubleUnitValue, UnitValueWithLabel, UnitValueWithTitle;
18707
18730
  var init_UnitValue = __esm({
18708
18731
  "../uikit/UnitValue/index.js"() {
18709
18732
  "use strict";
18710
- init_Atoms();
18711
18733
  UnitValue = {
18712
- extend: Flex,
18734
+ extend: "Flex",
18713
18735
  props: {
18714
18736
  color: "title",
18715
18737
  align: "center flex-start",
@@ -18721,7 +18743,7 @@ var init_UnitValue = __esm({
18721
18743
  Unit: { props: { text: "%" } }
18722
18744
  };
18723
18745
  DoubleUnitValue = {
18724
- extend: Flex,
18746
+ extend: "Flex",
18725
18747
  props: {
18726
18748
  align: "center flex-start",
18727
18749
  color: "caption",
@@ -18766,7 +18788,7 @@ var init_UnitValue = __esm({
18766
18788
  }
18767
18789
  };
18768
18790
  UnitValueWithTitle = {
18769
- extend: Flex,
18791
+ extend: "Flex",
18770
18792
  props: {
18771
18793
  align: "center flex-start",
18772
18794
  gap: "Y",
@@ -18791,15 +18813,13 @@ var init_UnitValue = __esm({
18791
18813
  });
18792
18814
 
18793
18815
  // ../uikit/Link/index.js
18794
- var import_router5, import_utils26, Link, RouterLink, RouteLink;
18816
+ var import_router5, Link, RouterLink, RouteLink;
18795
18817
  var init_Link = __esm({
18796
18818
  "../uikit/Link/index.js"() {
18797
18819
  "use strict";
18798
18820
  import_router5 = __toESM(require_cjs5());
18799
- import_utils26 = __toESM(require_cjs());
18800
- init_Atoms();
18801
18821
  Link = {
18802
- extend: Focusable,
18822
+ extend: "Focusable",
18803
18823
  tag: "a",
18804
18824
  props: {
18805
18825
  aria: {},
@@ -18811,8 +18831,8 @@ var init_Link = __esm({
18811
18831
  attr: {
18812
18832
  href: (el) => {
18813
18833
  const { context: ctx } = el;
18814
- const { exec: exec5 } = ctx.utils;
18815
- return exec5(el.props.href, el) || exec5(el.props, el).href;
18834
+ const { exec: exec4 } = ctx.utils;
18835
+ return exec4(el.props.href, el) || exec4(el.props, el).href;
18816
18836
  },
18817
18837
  target: ({ props: props4 }) => props4.target,
18818
18838
  "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
@@ -18824,7 +18844,11 @@ var init_Link = __esm({
18824
18844
  click: (event, el, s) => {
18825
18845
  const { props: props4, context: ctx } = el;
18826
18846
  const { href: h, scrollToTop, stopPropagation } = props4;
18827
- const href = (0, import_utils26.exec)(h, el, s);
18847
+ const { exec: exec4, isString: isString14, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2, isDefined: isDefined2 } = ctx.utils;
18848
+ let href = exec4(h, el, s);
18849
+ if (isString14(href) && href.includes("{{")) {
18850
+ href = replaceLiteralsWithObjectFields2(href, s);
18851
+ }
18828
18852
  if (stopPropagation)
18829
18853
  event.stopPropagation();
18830
18854
  if (!href)
@@ -18836,7 +18860,7 @@ var init_Link = __esm({
18836
18860
  try {
18837
18861
  (snippets.router || utils4.router || import_router5.router)(href, root, {}, {
18838
18862
  scrollToOptions: { behaviour: "instant" },
18839
- scrollToTop: (0, import_utils26.isDefined)(scrollToTop) ? scrollToTop : true,
18863
+ scrollToTop: isDefined2(scrollToTop) ? scrollToTop : true,
18840
18864
  ...routerOptions,
18841
18865
  ...props4.routerOptions
18842
18866
  });
@@ -18893,7 +18917,7 @@ var init_DoubleHr = __esm({
18893
18917
  "use strict";
18894
18918
  init_Atoms();
18895
18919
  DoubleHr = {
18896
- extend: Flex,
18920
+ extend: "Flex",
18897
18921
  props: {
18898
18922
  gap: "B",
18899
18923
  fontSize: "Z1",
@@ -18918,15 +18942,15 @@ var init_DoubleHr = __esm({
18918
18942
  });
18919
18943
 
18920
18944
  // ../uikit/Input/Input.js
18921
- var import_utils27, Input;
18945
+ var import_utils26, Input;
18922
18946
  var init_Input = __esm({
18923
18947
  "../uikit/Input/Input.js"() {
18924
18948
  "use strict";
18925
- import_utils27 = __toESM(require_cjs());
18949
+ import_utils26 = __toESM(require_cjs());
18926
18950
  Input = {
18927
18951
  extend: ["Focusable"],
18928
18952
  tag: "input",
18929
- deps: { isString: import_utils27.isString, replaceLiteralsWithObjectFields: import_utils27.replaceLiteralsWithObjectFields },
18953
+ deps: { isString: import_utils26.isString, replaceLiteralsWithObjectFields: import_utils26.replaceLiteralsWithObjectFields },
18930
18954
  props: {
18931
18955
  border: "none",
18932
18956
  type: "input",
@@ -19181,7 +19205,7 @@ var init_Textarea = __esm({
19181
19205
  html: (el, s) => el.props.value
19182
19206
  };
19183
19207
  TextareaWithButton = {
19184
- extend: Flex,
19208
+ extend: "Flex",
19185
19209
  props: { gap: "Y2" },
19186
19210
  Textarea: {
19187
19211
  height: "C2+W",
@@ -19256,10 +19280,8 @@ var CommonField, CommonFieldTemplate;
19256
19280
  var init_CommonField = __esm({
19257
19281
  "../uikit/Field/CommonField.js"() {
19258
19282
  "use strict";
19259
- init_Atoms();
19260
- init_Icon();
19261
19283
  CommonField = {
19262
- extend: Flex,
19284
+ extend: "Flex",
19263
19285
  tag: "label",
19264
19286
  props: {
19265
19287
  flow: "column",
@@ -19278,7 +19300,7 @@ var init_CommonField = __esm({
19278
19300
  tag: "div"
19279
19301
  },
19280
19302
  Hint: {
19281
- extend: IconText,
19303
+ extend: "IconText",
19282
19304
  props: {
19283
19305
  color: "caption",
19284
19306
  align: "center flex-start",
@@ -19290,7 +19312,7 @@ var init_CommonField = __esm({
19290
19312
  }
19291
19313
  };
19292
19314
  CommonFieldTemplate = {
19293
- extend: CommonField,
19315
+ extend: "CommonField",
19294
19316
  Title: {},
19295
19317
  Field: {
19296
19318
  Icon: { props: { name: "info" } },
@@ -19353,7 +19375,7 @@ var init_Field = __esm({
19353
19375
  Button: { Icon: { name: "eye" } }
19354
19376
  };
19355
19377
  FieldWithTitle = {
19356
- extend: Flex,
19378
+ extend: "Flex",
19357
19379
  props: {
19358
19380
  flow: "column",
19359
19381
  boxSize: "fit-content fit-content",
@@ -19481,10 +19503,9 @@ var TextAreaField;
19481
19503
  var init_TextAreaField = __esm({
19482
19504
  "../uikit/Field/TextAreaField.js"() {
19483
19505
  "use strict";
19484
- init_Atoms();
19485
19506
  TextAreaField = {
19486
19507
  tag: "label",
19487
- extend: Focusable,
19508
+ extend: "Focusable",
19488
19509
  props: {
19489
19510
  boxSize: "fit-content",
19490
19511
  border: "solid, gray .45 +80",
@@ -19528,10 +19549,8 @@ var Button, SquareButton, CircleButton, KangorooButton, FlexButton, ButtonSet, C
19528
19549
  var init_Button = __esm({
19529
19550
  "../uikit/Button/index.js"() {
19530
19551
  "use strict";
19531
- init_Atoms();
19532
- init_Icon();
19533
19552
  Button = {
19534
- extend: [IconText, FocusableComponent],
19553
+ extend: ["IconText", "FocusableComponent"],
19535
19554
  tag: "button",
19536
19555
  props: {
19537
19556
  fontSize: "A",
@@ -19552,7 +19571,7 @@ var init_Button = __esm({
19552
19571
  }
19553
19572
  };
19554
19573
  SquareButton = {
19555
- extend: Button,
19574
+ extend: "Button",
19556
19575
  props: {
19557
19576
  fontSize: "A",
19558
19577
  width: "A",
@@ -19566,15 +19585,15 @@ var init_Button = __esm({
19566
19585
  }
19567
19586
  };
19568
19587
  CircleButton = {
19569
- extend: SquareButton,
19588
+ extend: "SquareButton",
19570
19589
  props: { round: "C" }
19571
19590
  };
19572
19591
  KangorooButton = {
19573
- extend: Button,
19574
- childExtend: IconText
19592
+ extend: "Button",
19593
+ childExtend: "IconText"
19575
19594
  };
19576
19595
  FlexButton = {
19577
- extend: Button,
19596
+ extend: "Button",
19578
19597
  props: {
19579
19598
  boxSize: "fit-content",
19580
19599
  padding: "Z2 A2",
@@ -19588,17 +19607,17 @@ var init_Button = __esm({
19588
19607
  };
19589
19608
  ButtonSet = {
19590
19609
  tag: "nav",
19591
- extend: Flex,
19592
- childExtend: SquareButton
19610
+ extend: "Flex",
19611
+ childExtend: "SquareButton"
19593
19612
  };
19594
19613
  CancelConfirmButtons = {
19595
- extend: Flex,
19614
+ extend: "Flex",
19596
19615
  props: {
19597
19616
  gap: "Z2",
19598
19617
  maxWidth: "fit-content"
19599
19618
  },
19600
19619
  childExtend: {
19601
- extend: FlexButton,
19620
+ extend: "FlexButton",
19602
19621
  props: {
19603
19622
  ":first-child": {
19604
19623
  theme: "transparent",
@@ -19612,7 +19631,7 @@ var init_Button = __esm({
19612
19631
  ]
19613
19632
  };
19614
19633
  IcontextButton = {
19615
- extend: FlexButton,
19634
+ extend: "FlexButton",
19616
19635
  props: {
19617
19636
  position: "relative",
19618
19637
  theme: "tertiary",
@@ -19621,7 +19640,7 @@ var init_Button = __esm({
19621
19640
  }
19622
19641
  };
19623
19642
  DropDownButton = {
19624
- extend: FlexButton,
19643
+ extend: "FlexButton",
19625
19644
  props: {
19626
19645
  gap: "X2",
19627
19646
  boxSize: "fit-content fit-content",
@@ -19635,7 +19654,7 @@ var init_Button = __esm({
19635
19654
  }
19636
19655
  };
19637
19656
  DropDownButtonWithAvatar = {
19638
- extend: DropDownButton,
19657
+ extend: "DropDownButton",
19639
19658
  props: {
19640
19659
  gap: "Y",
19641
19660
  padding: "Y",
@@ -19655,18 +19674,18 @@ var init_Button = __esm({
19655
19674
  }
19656
19675
  };
19657
19676
  PlusMinusButtons = {
19658
- extend: Flex,
19677
+ extend: "Flex",
19659
19678
  props: {
19660
19679
  alignItems: "center",
19661
19680
  gap: "A"
19662
19681
  },
19663
19682
  Minus: {
19664
- extend: SquareButton,
19683
+ extend: "SquareButton",
19665
19684
  props: { icon: "minus" }
19666
19685
  },
19667
19686
  Value: { props: { text: "1" } },
19668
19687
  Plus: {
19669
- extend: SquareButton,
19688
+ extend: "SquareButton",
19670
19689
  props: { icon: "plus" }
19671
19690
  }
19672
19691
  };
@@ -19678,7 +19697,6 @@ var ProgressLine, ProgressLineWithUnitValue;
19678
19697
  var init_ProgressLine = __esm({
19679
19698
  "../uikit/Progress/ProgressLine.js"() {
19680
19699
  "use strict";
19681
- init_Atoms();
19682
19700
  ProgressLine = {
19683
19701
  tag: "progress",
19684
19702
  props: {
@@ -19703,7 +19721,7 @@ var init_ProgressLine = __esm({
19703
19721
  }
19704
19722
  };
19705
19723
  ProgressLineWithUnitValue = {
19706
- extend: Flex,
19724
+ extend: "Flex",
19707
19725
  props: {
19708
19726
  align: "center flex-start",
19709
19727
  gap: "Z1"
@@ -19721,7 +19739,6 @@ var ProgressCircle, ProgressCircleWithIcon, ProgressCircleWithUnitValue, Progres
19721
19739
  var init_ProgressCircle = __esm({
19722
19740
  "../uikit/Progress/ProgressCircle.js"() {
19723
19741
  "use strict";
19724
- init_Atoms();
19725
19742
  ProgressCircle = {
19726
19743
  props: {
19727
19744
  widthRange: "D",
@@ -19783,7 +19800,7 @@ var init_ProgressCircle = __esm({
19783
19800
  }
19784
19801
  };
19785
19802
  ProgressCircleWithSideUnitValue = {
19786
- extend: Flex,
19803
+ extend: "Flex",
19787
19804
  props: {
19788
19805
  align: "center flex-start",
19789
19806
  boxSize: "fit-content",
@@ -19811,13 +19828,12 @@ var init_Progress = __esm({
19811
19828
  });
19812
19829
 
19813
19830
  // ../uikit/Range/index.js
19814
- var import_utils28, import_scratch13, props, returnPropertyValue, Range, RangeWithButtons;
19831
+ var import_utils27, import_scratch13, props, returnPropertyValue, Range, RangeWithButtons;
19815
19832
  var init_Range = __esm({
19816
19833
  "../uikit/Range/index.js"() {
19817
19834
  "use strict";
19818
- import_utils28 = __toESM(require_cjs());
19835
+ import_utils27 = __toESM(require_cjs());
19819
19836
  import_scratch13 = __toESM(require_cjs2());
19820
- init_Button();
19821
19837
  props = {
19822
19838
  appearance: "none",
19823
19839
  width: "100%",
@@ -19879,7 +19895,7 @@ var init_Range = __esm({
19879
19895
  };
19880
19896
  returnPropertyValue = (el, property, def) => {
19881
19897
  const val = el.props && el.props[property];
19882
- const r = (0, import_utils28.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
19898
+ const r = (0, import_utils27.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
19883
19899
  return r + "";
19884
19900
  };
19885
19901
  Range = {
@@ -19895,7 +19911,7 @@ var init_Range = __esm({
19895
19911
  on: {
19896
19912
  input: (ev, el, s) => {
19897
19913
  const props4 = el.props;
19898
- if ((0, import_utils28.isFunction)(props4.onInput)) {
19914
+ if ((0, import_utils27.isFunction)(props4.onInput)) {
19899
19915
  props4.onInput(ev, el, s);
19900
19916
  } else {
19901
19917
  s.update({ value: parseFloat(el.node.value) });
@@ -19903,7 +19919,7 @@ var init_Range = __esm({
19903
19919
  },
19904
19920
  change: (ev, el, s) => {
19905
19921
  const props4 = el.props;
19906
- if ((0, import_utils28.isFunction)(props4.onChange)) {
19922
+ if ((0, import_utils27.isFunction)(props4.onChange)) {
19907
19923
  props4.onChange(ev, el, s);
19908
19924
  } else {
19909
19925
  s.update({ value: parseFloat(el.node.value) });
@@ -19913,12 +19929,12 @@ var init_Range = __esm({
19913
19929
  };
19914
19930
  RangeWithButtons = {
19915
19931
  minus: {
19916
- extend: SquareButton,
19932
+ extend: "SquareButton",
19917
19933
  props: { theme: "field", icon: "minus" },
19918
19934
  on: {
19919
19935
  click: (ev, el, s) => {
19920
19936
  const parentProps = el.parent.props;
19921
- if ((0, import_utils28.isFunction)(parentProps.onDecrease)) {
19937
+ if ((0, import_utils27.isFunction)(parentProps.onDecrease)) {
19922
19938
  parentProps.onDecrease(ev, el.parent, s);
19923
19939
  } else {
19924
19940
  const value2 = parseFloat(s.value);
@@ -19950,7 +19966,7 @@ var init_Range = __esm({
19950
19966
  on: {
19951
19967
  input: (ev, el, s) => {
19952
19968
  const parentProps = el.parent.props;
19953
- if ((0, import_utils28.isFunction)(parentProps.onInput)) {
19969
+ if ((0, import_utils27.isFunction)(parentProps.onInput)) {
19954
19970
  parentProps.onInput(ev, el, s);
19955
19971
  } else {
19956
19972
  s.update({ value: parseFloat(el.node.value) });
@@ -19958,7 +19974,7 @@ var init_Range = __esm({
19958
19974
  },
19959
19975
  change: (ev, el, s) => {
19960
19976
  const parentProps = el.parent.props;
19961
- if ((0, import_utils28.isFunction)(parentProps.onChange)) {
19977
+ if ((0, import_utils27.isFunction)(parentProps.onChange)) {
19962
19978
  parentProps.onChange(ev, el, s);
19963
19979
  } else {
19964
19980
  s.update({ value: parseFloat(el.node.value) });
@@ -19967,12 +19983,12 @@ var init_Range = __esm({
19967
19983
  }
19968
19984
  },
19969
19985
  plus: {
19970
- extend: SquareButton,
19986
+ extend: "SquareButton",
19971
19987
  props: { theme: "field", icon: "plus" },
19972
19988
  on: {
19973
19989
  click: (ev, el, s) => {
19974
19990
  const parentProps = el.parent.props;
19975
- if ((0, import_utils28.isFunction)(parentProps.onIncrease)) {
19991
+ if ((0, import_utils27.isFunction)(parentProps.onIncrease)) {
19976
19992
  parentProps.onIncrease(ev, el.parent, s);
19977
19993
  } else {
19978
19994
  const value2 = parseFloat(s.value);
@@ -20015,12 +20031,12 @@ var init_style2 = __esm({
20015
20031
  });
20016
20032
 
20017
20033
  // ../uikit/Slider/index.js
20018
- var import_utils29, RangeSlider, listenProp, Slider;
20034
+ var import_utils28, RangeSlider, listenProp, Slider;
20019
20035
  var init_Slider = __esm({
20020
20036
  "../uikit/Slider/index.js"() {
20021
20037
  "use strict";
20022
20038
  init_style2();
20023
- import_utils29 = __toESM(require_cjs());
20039
+ import_utils28 = __toESM(require_cjs());
20024
20040
  init_Button();
20025
20041
  RangeSlider = {
20026
20042
  props: {
@@ -20032,7 +20048,7 @@ var init_Slider = __esm({
20032
20048
  };
20033
20049
  listenProp = (el, prop, def) => {
20034
20050
  const val = el && el.props && el.props[prop];
20035
- const r = ((0, import_utils29.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
20051
+ const r = ((0, import_utils28.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
20036
20052
  return r;
20037
20053
  };
20038
20054
  Slider = {
@@ -20043,10 +20059,10 @@ var init_Slider = __esm({
20043
20059
  },
20044
20060
  on: {
20045
20061
  click: (ev, el, s) => {
20046
- el.props && (0, import_utils29.isFunction)(el.props.click) && el.props.click(ev, el, s);
20062
+ el.props && (0, import_utils28.isFunction)(el.props.click) && el.props.click(ev, el, s);
20047
20063
  const input = el.parent.input;
20048
20064
  const props4 = input.props;
20049
- const value2 = (0, import_utils29.isFunction)(props4.value) ? props4.value() : props4.value;
20065
+ const value2 = (0, import_utils28.isFunction)(props4.value) ? props4.value() : props4.value;
20050
20066
  input.node.value = value2;
20051
20067
  }
20052
20068
  }
@@ -20069,8 +20085,8 @@ var init_Slider = __esm({
20069
20085
  step: (el, s) => listenProp(el, "step", 1)
20070
20086
  },
20071
20087
  on: {
20072
- input: (ev, el, s) => el.props && (0, import_utils29.isFunction)(el.props.input) && el.props.input(ev, el, s),
20073
- change: (ev, el, s) => el.props && (0, import_utils29.isFunction)(el.props.change) && el.props.change(ev, el, s)
20088
+ input: (ev, el, s) => el.props && (0, import_utils28.isFunction)(el.props.input) && el.props.input(ev, el, s),
20089
+ change: (ev, el, s) => el.props && (0, import_utils28.isFunction)(el.props.change) && el.props.change(ev, el, s)
20074
20090
  }
20075
20091
  },
20076
20092
  button1: {
@@ -20080,10 +20096,10 @@ var init_Slider = __esm({
20080
20096
  },
20081
20097
  on: {
20082
20098
  click: (ev, el, s) => {
20083
- el.props && (0, import_utils29.isFunction)(el.props.click) && el.props.click(ev, el, s);
20099
+ el.props && (0, import_utils28.isFunction)(el.props.click) && el.props.click(ev, el, s);
20084
20100
  const input = el.parent.input;
20085
20101
  const props4 = input.props;
20086
- const value2 = (0, import_utils29.isFunction)(props4.value) ? props4.value() : props4.value;
20102
+ const value2 = (0, import_utils28.isFunction)(props4.value) ? props4.value() : props4.value;
20087
20103
  input.node.value = value2;
20088
20104
  }
20089
20105
  }
@@ -20097,10 +20113,8 @@ var Label, LabelButton, CardLabel;
20097
20113
  var init_Label = __esm({
20098
20114
  "../uikit/Label/index.js"() {
20099
20115
  "use strict";
20100
- init_Atoms();
20101
- init_Button();
20102
20116
  Label = {
20103
- extend: Flex,
20117
+ extend: "Flex",
20104
20118
  props: {
20105
20119
  text: "-2.902x",
20106
20120
  fontSize: "Z",
@@ -20113,7 +20127,7 @@ var init_Label = __esm({
20113
20127
  }
20114
20128
  };
20115
20129
  LabelButton = {
20116
- extend: Button,
20130
+ extend: "Button",
20117
20131
  props: {
20118
20132
  theme: "tertiary",
20119
20133
  fontSize: "Z2",
@@ -20147,9 +20161,8 @@ var Avatar;
20147
20161
  var init_Avatar = __esm({
20148
20162
  "../uikit/Avatar/Avatar.js"() {
20149
20163
  "use strict";
20150
- init_Atoms();
20151
20164
  Avatar = {
20152
- extend: Img,
20165
+ extend: "Img",
20153
20166
  props: ({ key, props: props4 }) => ({
20154
20167
  display: "block",
20155
20168
  avatarType: "adventurer-neutral",
@@ -20188,10 +20201,9 @@ var AvatarBundle;
20188
20201
  var init_AvatarBundle = __esm({
20189
20202
  "../uikit/Avatar/AvatarBundle.js"() {
20190
20203
  "use strict";
20191
- init_Atoms();
20192
20204
  init_Avatar();
20193
20205
  AvatarBundle = {
20194
- extend: Flex,
20206
+ extend: "Flex",
20195
20207
  props: {
20196
20208
  childProps: {
20197
20209
  "@light": {
@@ -20216,9 +20228,8 @@ var AvatarChooser;
20216
20228
  var init_AvatarChooser = __esm({
20217
20229
  "../uikit/Avatar/AvatarChooser.js"() {
20218
20230
  "use strict";
20219
- init_Button();
20220
20231
  AvatarChooser = {
20221
- extend: Button,
20232
+ extend: "Button",
20222
20233
  tag: "label",
20223
20234
  state: { key: "am" },
20224
20235
  props: {
@@ -20299,9 +20310,8 @@ var Notification, NotificationIndicator;
20299
20310
  var init_Notification = __esm({
20300
20311
  "../uikit/Notification/index.js"() {
20301
20312
  "use strict";
20302
- init_Atoms();
20303
20313
  Notification = {
20304
- extend: Flex,
20314
+ extend: "Flex",
20305
20315
  props: {
20306
20316
  theme: "alert",
20307
20317
  padding: "Z1 B Z A",
@@ -20341,7 +20351,7 @@ var init_Notification = __esm({
20341
20351
  }
20342
20352
  };
20343
20353
  NotificationIndicator = {
20344
- extend: Flex,
20354
+ extend: "Flex",
20345
20355
  props: {
20346
20356
  text: "2",
20347
20357
  fontSize: "Z",
@@ -20356,14 +20366,13 @@ var init_Notification = __esm({
20356
20366
  });
20357
20367
 
20358
20368
  // ../uikit/Tooltip/index.js
20359
- var import_utils30, Tooltip, TooltipHidden, TooltipParent;
20369
+ var import_utils29, Tooltip, TooltipHidden, TooltipParent;
20360
20370
  var init_Tooltip = __esm({
20361
20371
  "../uikit/Tooltip/index.js"() {
20362
20372
  "use strict";
20363
- import_utils30 = __toESM(require_cjs());
20364
- init_Atoms();
20373
+ import_utils29 = __toESM(require_cjs());
20365
20374
  Tooltip = {
20366
- extend: Flex,
20375
+ extend: "Flex",
20367
20376
  props: {
20368
20377
  theme: "dialog",
20369
20378
  background: "black",
@@ -20380,7 +20389,7 @@ var init_Tooltip = __esm({
20380
20389
  },
20381
20390
  attr: { tooltip: true },
20382
20391
  Title: {
20383
- if: ({ parent, props: props4 }) => (0, import_utils30.isDefined)(parent.props.title) || props4.text,
20392
+ if: ({ parent, props: props4 }) => (0, import_utils29.isDefined)(parent.props.title) || props4.text,
20384
20393
  props: ({ parent }) => ({
20385
20394
  width: "fit-content",
20386
20395
  fontWeight: 500,
@@ -20389,7 +20398,7 @@ var init_Tooltip = __esm({
20389
20398
  })
20390
20399
  },
20391
20400
  P: {
20392
- if: ({ parent, props: props4 }) => (0, import_utils30.isDefined)(parent.props.description) || props4.text,
20401
+ if: ({ parent, props: props4 }) => (0, import_utils29.isDefined)(parent.props.description) || props4.text,
20393
20402
  props: ({ parent }) => ({
20394
20403
  width: "fit-content",
20395
20404
  fontSize: "Z2",
@@ -20478,9 +20487,8 @@ var Pills;
20478
20487
  var init_Pills = __esm({
20479
20488
  "../uikit/Pills/index.js"() {
20480
20489
  "use strict";
20481
- init_Atoms();
20482
20490
  Pills = {
20483
- extend: Flex,
20491
+ extend: "Flex",
20484
20492
  props: {
20485
20493
  gap: "Y2"
20486
20494
  },
@@ -20549,9 +20557,8 @@ var CheckStep, CheckSteps;
20549
20557
  var init_CheckSteps = __esm({
20550
20558
  "../uikit/Steps/CheckSteps.js"() {
20551
20559
  "use strict";
20552
- init_Atoms();
20553
20560
  CheckStep = {
20554
- extend: Flex,
20561
+ extend: "Flex",
20555
20562
  props: {
20556
20563
  boxSize: "fit-content",
20557
20564
  align: "center flex-start",
@@ -20577,7 +20584,7 @@ var init_CheckSteps = __esm({
20577
20584
  }
20578
20585
  };
20579
20586
  CheckSteps = {
20580
- extend: Flex,
20587
+ extend: "Flex",
20581
20588
  props: {
20582
20589
  boxSize: "fit-content fit-content",
20583
20590
  align: "center flex-start",
@@ -20618,7 +20625,6 @@ var RadioStep, RadioSteps;
20618
20625
  var init_RadioSteps = __esm({
20619
20626
  "../uikit/Steps/RadioSteps.js"() {
20620
20627
  "use strict";
20621
- init_Atoms();
20622
20628
  init_CheckSteps();
20623
20629
  RadioStep = {
20624
20630
  extend: CheckStep,
@@ -20637,7 +20643,7 @@ var init_RadioSteps = __esm({
20637
20643
  ProgressLine: {}
20638
20644
  };
20639
20645
  RadioSteps = {
20640
- extend: Flex,
20646
+ extend: "Flex",
20641
20647
  props: {
20642
20648
  boxSize: "fit-content fit-content",
20643
20649
  align: "center flex-start",
@@ -20678,10 +20684,9 @@ var LineSteps, LineStepsWithHgroup;
20678
20684
  var init_LineSteps = __esm({
20679
20685
  "../uikit/Steps/LineSteps.js"() {
20680
20686
  "use strict";
20681
- init_Atoms();
20682
20687
  init_Progress();
20683
20688
  LineSteps = {
20684
- extend: Flex,
20689
+ extend: "Flex",
20685
20690
  props: {
20686
20691
  boxSize: "fit-content",
20687
20692
  gap: "Y1"
@@ -20702,7 +20707,7 @@ var init_LineSteps = __esm({
20702
20707
  ]
20703
20708
  };
20704
20709
  LineStepsWithHgroup = {
20705
- extend: Flex,
20710
+ extend: "Flex",
20706
20711
  props: {
20707
20712
  flow: "column",
20708
20713
  padding: "A A1",
@@ -20748,9 +20753,8 @@ var ParagraphButton, ParagraphButtonWithCheckbox;
20748
20753
  var init_ParagraphButton = __esm({
20749
20754
  "../uikit/ParagraphButton/index.js"() {
20750
20755
  "use strict";
20751
- init_Atoms();
20752
20756
  ParagraphButton = {
20753
- extend: Flex,
20757
+ extend: "Flex",
20754
20758
  props: {
20755
20759
  alignItems: "center",
20756
20760
  gap: "Y2"
@@ -20772,7 +20776,7 @@ var init_ParagraphButton = __esm({
20772
20776
  }
20773
20777
  };
20774
20778
  ParagraphButtonWithCheckbox = {
20775
- extend: Flex,
20779
+ extend: "Flex",
20776
20780
  tag: "label",
20777
20781
  props: {
20778
20782
  gap: "1ch",
@@ -21128,14 +21132,14 @@ var init_List = __esm({
21128
21132
  }
21129
21133
  };
21130
21134
  DotList = {
21131
- extend: Flex,
21135
+ extend: "Flex",
21132
21136
  props: {
21133
21137
  flow: "column",
21134
21138
  gap: "Z2"
21135
21139
  },
21136
21140
  childExtend: {
21137
21141
  tag: "caption",
21138
- extend: Flex,
21142
+ extend: "Flex",
21139
21143
  props: {
21140
21144
  align: "center flex-start",
21141
21145
  lineHeight: "1em",
@@ -21163,7 +21167,7 @@ var init_ListWithTitle = __esm({
21163
21167
  init_Atoms();
21164
21168
  init_List();
21165
21169
  ListWithTitle = {
21166
- extend: Flex,
21170
+ extend: "Flex",
21167
21171
  props: {
21168
21172
  flow: "column",
21169
21173
  overflow: "hidden",
@@ -21218,7 +21222,7 @@ var init_GroupList = __esm({
21218
21222
  init_Atoms();
21219
21223
  init_ListWithTitle();
21220
21224
  GroupList = {
21221
- extend: Flex,
21225
+ extend: "Flex",
21222
21226
  props: {
21223
21227
  flow: "column",
21224
21228
  overflow: "hidden",
@@ -21228,7 +21232,7 @@ var init_GroupList = __esm({
21228
21232
  maxWidth: "G"
21229
21233
  },
21230
21234
  Header: {
21231
- extend: Flex,
21235
+ extend: "Flex",
21232
21236
  props: {
21233
21237
  text: "Header",
21234
21238
  padding: "Z2 A",
@@ -21257,7 +21261,7 @@ var init_GroupList = __esm({
21257
21261
  }
21258
21262
  },
21259
21263
  Flex: {
21260
- extend: Flex,
21264
+ extend: "Flex",
21261
21265
  props: {
21262
21266
  flow: "column",
21263
21267
  maxHeight: "G2",
@@ -21376,7 +21380,7 @@ var init_GroupListWithSearch = __esm({
21376
21380
  },
21377
21381
  Header: {},
21378
21382
  SearchContainer: {
21379
- extend: Flex,
21383
+ extend: "Flex",
21380
21384
  props: {
21381
21385
  padding: "0 Z1 Y2 Z1",
21382
21386
  background: "transparent"
@@ -21481,7 +21485,6 @@ var props2, TimePickerItem;
21481
21485
  var init_TimePickerItem = __esm({
21482
21486
  "../uikit/TimePicker/TimePickerItem.js"() {
21483
21487
  "use strict";
21484
- init_Atoms();
21485
21488
  props2 = {
21486
21489
  align: "center center",
21487
21490
  flow: "column",
@@ -21495,7 +21498,7 @@ var init_TimePickerItem = __esm({
21495
21498
  };
21496
21499
  TimePickerItem = {
21497
21500
  tag: "label",
21498
- extend: Flex,
21501
+ extend: "Flex",
21499
21502
  props: props2,
21500
21503
  Button_plus: { icon: "plus" },
21501
21504
  NumberInput: {
@@ -21528,7 +21531,6 @@ var props3, TimeSwitcher;
21528
21531
  var init_TimeSwitcher = __esm({
21529
21532
  "../uikit/TimePicker/TimeSwitcher.js"() {
21530
21533
  "use strict";
21531
- init_Atoms();
21532
21534
  init_Button();
21533
21535
  props3 = {
21534
21536
  boxSize: "C B2",
@@ -21539,7 +21541,7 @@ var init_TimeSwitcher = __esm({
21539
21541
  };
21540
21542
  TimeSwitcher = {
21541
21543
  props: props3,
21542
- extend: Flex,
21544
+ extend: "Flex",
21543
21545
  childExtend: {
21544
21546
  extend: Button,
21545
21547
  props: ({ state, key }) => ({
@@ -21725,7 +21727,6 @@ var CommonForm;
21725
21727
  var init_CommonForm = __esm({
21726
21728
  "../uikit/Form/CommonForm.js"() {
21727
21729
  "use strict";
21728
- init_Atoms();
21729
21730
  init_Modal2();
21730
21731
  init_Field2();
21731
21732
  CommonForm = {
@@ -21746,7 +21747,7 @@ var init_CommonForm = __esm({
21746
21747
  }
21747
21748
  },
21748
21749
  Form: {
21749
- extend: Flex,
21750
+ extend: "Flex",
21750
21751
  props: {
21751
21752
  flow: "column",
21752
21753
  "> div ~ button": { padding: "Z2+V1 -" },
@@ -21754,7 +21755,7 @@ var init_CommonForm = __esm({
21754
21755
  "> div ~ div:last-child > button:first-child": { padding: "Z2+V Z" }
21755
21756
  },
21756
21757
  Fields: {
21757
- extend: Grid,
21758
+ extend: "Grid",
21758
21759
  props: {
21759
21760
  columnGap: "A",
21760
21761
  rowGap: "A1"
@@ -21824,7 +21825,7 @@ var init_VerificationCode = __esm({
21824
21825
  }
21825
21826
  }
21826
21827
  // Form: {
21827
- // extend: Flex,
21828
+ // extend: 'Flex',
21828
21829
  // props: { flow: 'column' },
21829
21830
  // NumberFields: {
21830
21831
  // justifyContent: 'space-between',
@@ -21869,7 +21870,7 @@ var init_VerificationCode = __esm({
21869
21870
  // gap: 'A2'
21870
21871
  // },
21871
21872
  // Fields: {
21872
- // extend: Flex,
21873
+ // extend: 'Flex',
21873
21874
  // props: {
21874
21875
  // justifyContent: 'space-between',
21875
21876
  // flex: '1'
@@ -22108,8 +22109,6 @@ var LogIn;
22108
22109
  var init_LogIn = __esm({
22109
22110
  "../uikit/Form/LogIn.js"() {
22110
22111
  "use strict";
22111
- init_Atoms();
22112
- init_Button();
22113
22112
  init_SocialLink();
22114
22113
  init_CommonForm();
22115
22114
  LogIn = {
@@ -22154,14 +22153,14 @@ var init_LogIn = __esm({
22154
22153
  }
22155
22154
  },
22156
22155
  Submit: {
22157
- extend: FlexButton,
22156
+ extend: "",
22158
22157
  props: { margin: "A - - -" },
22159
22158
  text: "Sign in"
22160
22159
  }
22161
22160
  },
22162
22161
  DoubleHr: {},
22163
22162
  ModalFooter: {
22164
- extend: Flex,
22163
+ extend: "Flex",
22165
22164
  props: {
22166
22165
  flow: "column",
22167
22166
  gap: "Z2"
@@ -22197,7 +22196,6 @@ var UploadImage, UploadIcon;
22197
22196
  var init_UploadImage = __esm({
22198
22197
  "../uikit/Upload/UploadImage.js"() {
22199
22198
  "use strict";
22200
- init_Atoms();
22201
22199
  UploadImage = {
22202
22200
  props: {
22203
22201
  padding: "A+V",
@@ -22210,7 +22208,7 @@ var init_UploadImage = __esm({
22210
22208
  }
22211
22209
  };
22212
22210
  UploadIcon = {
22213
- extend: [Focusable, Flex],
22211
+ extend: ["Focusable", "Flex"],
22214
22212
  tag: "label",
22215
22213
  props: {
22216
22214
  position: "relative",
@@ -22300,7 +22298,7 @@ var init_UploadLabel = __esm({
22300
22298
  "use strict";
22301
22299
  init_Atoms();
22302
22300
  UploadLabel = {
22303
- extend: Flex,
22301
+ extend: "Flex",
22304
22302
  props: {
22305
22303
  flow: "column",
22306
22304
  align: "center flex-start",
@@ -22374,7 +22372,7 @@ var init_UploadModal = __esm({
22374
22372
  init_UploadButton();
22375
22373
  init_Modal2();
22376
22374
  UploadFooter = {
22377
- extend: Flex,
22375
+ extend: "Flex",
22378
22376
  props: {
22379
22377
  gap: "E",
22380
22378
  align: "center space-between",
@@ -22710,9 +22708,8 @@ var User;
22710
22708
  var init_User = __esm({
22711
22709
  "../uikit/User/User.js"() {
22712
22710
  "use strict";
22713
- init_Atoms();
22714
22711
  User = {
22715
- extend: Flex,
22712
+ extend: "Flex",
22716
22713
  props: {
22717
22714
  boxSize: "fit-content",
22718
22715
  theme: "dialog",
@@ -22751,7 +22748,6 @@ var ChatUser;
22751
22748
  var init_ChatUser = __esm({
22752
22749
  "../uikit/User/ChatUser.js"() {
22753
22750
  "use strict";
22754
- init_Atoms();
22755
22751
  init_User2();
22756
22752
  init_UnitValue();
22757
22753
  ChatUser = {
@@ -22777,7 +22773,7 @@ var init_ChatUser = __esm({
22777
22773
  Paragraph: {
22778
22774
  props: { gap: "C1" },
22779
22775
  p: {
22780
- extend: Flex,
22776
+ extend: "Flex",
22781
22777
  props: {
22782
22778
  text: "Hey team, I\u2019ve finished the requirements document",
22783
22779
  maxWidth: "F1",
@@ -22797,9 +22793,8 @@ var UserButtonSet, UserButtonSetCircle;
22797
22793
  var init_UserButtonSet = __esm({
22798
22794
  "../uikit/User/UserButtonSet.js"() {
22799
22795
  "use strict";
22800
- init_Atoms();
22801
22796
  UserButtonSet = {
22802
- extend: Flex,
22797
+ extend: "Flex",
22803
22798
  props: {
22804
22799
  boxSize: "fit-content",
22805
22800
  theme: "dialog",
@@ -22913,10 +22908,9 @@ var UserWithButton;
22913
22908
  var init_UserWithButton = __esm({
22914
22909
  "../uikit/User/UserWithButton.js"() {
22915
22910
  "use strict";
22916
- init_Atoms();
22917
22911
  init_User();
22918
22912
  UserWithButton = {
22919
- extend: Flex,
22913
+ extend: "Flex",
22920
22914
  props: {
22921
22915
  boxSize: "fit-content",
22922
22916
  theme: "dialog",
@@ -23095,7 +23089,7 @@ var init_Card = __esm({
23095
23089
  "use strict";
23096
23090
  init_Atoms();
23097
23091
  Card = {
23098
- extend: Flex,
23092
+ extend: "Flex",
23099
23093
  props: {
23100
23094
  boxSize: "fit-content",
23101
23095
  padding: "Z2 A",
@@ -23288,10 +23282,9 @@ var CurrencyConvert;
23288
23282
  var init_CurrencyConvertCard = __esm({
23289
23283
  "../uikit/Card/CurrencyConvertCard.js"() {
23290
23284
  "use strict";
23291
- init_Atoms();
23292
23285
  init_ConvertCard();
23293
23286
  CurrencyConvert = {
23294
- extend: Flex,
23287
+ extend: "Flex",
23295
23288
  props: {
23296
23289
  boxSize: "fit-content",
23297
23290
  gap: "Z",
@@ -23310,7 +23303,7 @@ var init_CurrencyConvertCard = __esm({
23310
23303
  }
23311
23304
  },
23312
23305
  Cards: {
23313
- extend: Flex,
23306
+ extend: "Flex",
23314
23307
  props: {
23315
23308
  flow: "column",
23316
23309
  gap: "A"
@@ -23605,7 +23598,7 @@ __export(src_exports4, {
23605
23598
  default: () => src_default3
23606
23599
  });
23607
23600
  module.exports = __toCommonJS(src_exports4);
23608
- var import_utils37 = __toESM(require_cjs(), 1);
23601
+ var import_utils36 = __toESM(require_cjs(), 1);
23609
23602
 
23610
23603
  // src/utilImports.js
23611
23604
  var utilImports_exports = {};
@@ -23638,7 +23631,7 @@ __reExport(utilImports_exports, __toESM(require_cjs5(), 1));
23638
23631
 
23639
23632
  // src/router.js
23640
23633
  var import_router6 = __toESM(require_cjs5(), 1);
23641
- var import_utils31 = __toESM(require_cjs(), 1);
23634
+ var import_utils30 = __toESM(require_cjs(), 1);
23642
23635
  init_uikit();
23643
23636
  var DEFAULT_ROUTING_OPTIONS2 = {
23644
23637
  initRouter: true,
@@ -23651,16 +23644,16 @@ var initRouter2 = (element, options) => {
23651
23644
  else if (options.router === true)
23652
23645
  options.router = DEFAULT_ROUTING_OPTIONS2;
23653
23646
  else
23654
- (0, import_utils31.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS2);
23647
+ (0, import_utils30.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS2);
23655
23648
  const routerOptions = options.router;
23656
23649
  const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router6.router;
23657
23650
  const onRouterRenderDefault = (el, s) => {
23658
- const { pathname, hash: hash2 } = import_utils31.window.location;
23651
+ const { pathname, hash: hash2 } = import_utils30.window.location;
23659
23652
  const url2 = pathname + hash2;
23660
23653
  if (el.routes)
23661
23654
  router2(url2, el, {}, { initialRender: true });
23662
23655
  };
23663
- const hasRenderRouter = element.on && !(0, import_utils31.isUndefined)(element.on.renderRouter);
23656
+ const hasRenderRouter = element.on && !(0, import_utils30.isUndefined)(element.on.renderRouter);
23664
23657
  if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
23665
23658
  if (element.on) {
23666
23659
  element.on.renderRouter = onRouterRenderDefault;
@@ -23682,20 +23675,20 @@ var popStateRouter2 = (element, options) => {
23682
23675
  if (!routerOptions.popState)
23683
23676
  return;
23684
23677
  const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router6.router;
23685
- import_utils31.window.onpopstate = (e) => {
23686
- const { pathname, hash: hash2 } = import_utils31.window.location;
23678
+ import_utils30.window.onpopstate = (e) => {
23679
+ const { pathname, hash: hash2 } = import_utils30.window.location;
23687
23680
  const url2 = pathname + hash2;
23688
23681
  router2(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
23689
23682
  };
23690
23683
  };
23691
23684
  var injectRouterInLinkComponent2 = (routerOptions) => {
23692
23685
  if (routerOptions && routerOptions.injectRouterInLinkComponent) {
23693
- return (0, import_utils31.deepMerge)(Link, RouterLink);
23686
+ return (0, import_utils30.deepMerge)(Link, RouterLink);
23694
23687
  }
23695
23688
  };
23696
23689
 
23697
23690
  // src/ferchOnCreate.js
23698
- var import_utils32 = __toESM(require_cjs(), 1);
23691
+ var import_utils31 = __toESM(require_cjs(), 1);
23699
23692
  var import_fetch2 = __toESM(require_cjs7(), 1);
23700
23693
  var fetchSync2 = async (key, options) => {
23701
23694
  if (key && options.editor) {
@@ -23712,10 +23705,10 @@ var fetchAsync2 = (app, key, options, callback) => {
23712
23705
  try {
23713
23706
  if (options.editor.async) {
23714
23707
  (0, import_fetch2.fetchProjectAsync)(key, options, callback || ((data) => {
23715
- if ((0, import_utils32.isObject)(data.designsystem)) {
23708
+ if ((0, import_utils31.isObject)(data.designsystem)) {
23716
23709
  options.utils.init(data.designsystem);
23717
23710
  }
23718
- if ((0, import_utils32.isObject)(data.state)) {
23711
+ if ((0, import_utils31.isObject)(data.state)) {
23719
23712
  app.state.set(data.state);
23720
23713
  }
23721
23714
  }));
@@ -23728,15 +23721,15 @@ var fetchAsync2 = (app, key, options, callback) => {
23728
23721
 
23729
23722
  // src/syncExtend.js
23730
23723
  init_byld_socket();
23731
- var import_utils33 = __toESM(require_cjs(), 1);
23724
+ var import_utils32 = __toESM(require_cjs(), 1);
23732
23725
  var applySyncDebug2 = (extend, options) => {
23733
23726
  const { editor } = options;
23734
23727
  if (!editor)
23735
23728
  return extend;
23736
- const inspect = (0, import_utils33.isUndefined)(editor.inspect) ? (0, import_utils33.isDevelopment)() : editor.inspect;
23729
+ const inspect = (0, import_utils32.isUndefined)(editor.inspect) ? (0, import_utils32.isDevelopment)() : editor.inspect;
23737
23730
  if (inspect)
23738
23731
  extend.push(DevFocus);
23739
- const liveSync = (0, import_utils33.isUndefined)(editor.liveSync) ? (0, import_utils33.isDevelopment)() : editor.liveSync;
23732
+ const liveSync = (0, import_utils32.isUndefined)(editor.liveSync) ? (0, import_utils32.isDevelopment)() : editor.liveSync;
23740
23733
  if (liveSync)
23741
23734
  extend.push(Sync);
23742
23735
  return extend;
@@ -23745,7 +23738,7 @@ var applyInspectListener2 = (root, options) => {
23745
23738
  const { editor } = options;
23746
23739
  if (!editor)
23747
23740
  return;
23748
- const inspect = (0, import_utils33.isUndefined)(editor.inspect) ? (0, import_utils33.isDevelopment)() : editor.inspect;
23741
+ const inspect = (0, import_utils32.isUndefined)(editor.inspect) ? (0, import_utils32.isDevelopment)() : editor.inspect;
23749
23742
  if (inspect)
23750
23743
  inspectOnKey(root, options);
23751
23744
  };
@@ -23802,17 +23795,17 @@ var import_dynamic3 = __toESM(require_dynamic(), 1);
23802
23795
 
23803
23796
  // src/createDomql.js
23804
23797
  var import_domql2 = __toESM(require_cjs12(), 1);
23805
- var import_utils36 = __toESM(require_cjs(), 1);
23798
+ var import_utils35 = __toESM(require_cjs(), 1);
23806
23799
  init_uikit();
23807
23800
 
23808
23801
  // src/prepare.js
23809
- var import_utils35 = __toESM(require_cjs(), 1);
23802
+ var import_utils34 = __toESM(require_cjs(), 1);
23810
23803
 
23811
23804
  // src/initEmotion.js
23812
23805
  init_emotion2();
23813
23806
  init_emotion();
23814
23807
  init_init();
23815
- var import_utils34 = __toESM(require_cjs(), 1);
23808
+ var import_utils33 = __toESM(require_cjs(), 1);
23816
23809
  init_src2();
23817
23810
  var initEmotion2 = (key, options = {}) => {
23818
23811
  const doc = options.parent || options.document || document;
@@ -23821,8 +23814,8 @@ var initEmotion2 = (key, options = {}) => {
23821
23814
  if (!initOptions.emotion)
23822
23815
  initOptions.emotion = emotion;
23823
23816
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
23824
- const defaultDesignSystem = (0, import_utils34.deepClone)(src_default);
23825
- const designSystem = initOptions.useDefaultConfig || options.useDefaultConfig ? (0, import_utils34.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
23817
+ const defaultDesignSystem = (0, import_utils33.deepClone)(src_default);
23818
+ const designSystem = initOptions.useDefaultConfig || options.useDefaultConfig ? (0, import_utils33.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
23826
23819
  const scratchSystem2 = init(designSystem, {
23827
23820
  key,
23828
23821
  emotion: emotion2,
@@ -23837,7 +23830,7 @@ var initEmotion2 = (key, options = {}) => {
23837
23830
  // src/prepare.js
23838
23831
  init_uikit();
23839
23832
  var checkIfKeyIsComponent2 = (key) => {
23840
- const isFirstKeyString = (0, import_utils35.isString)(key);
23833
+ const isFirstKeyString = (0, import_utils34.isString)(key);
23841
23834
  if (!isFirstKeyString)
23842
23835
  return;
23843
23836
  const firstCharKey = key.slice(0, 1);
@@ -23865,7 +23858,7 @@ var prepareUtils2 = (options) => {
23865
23858
  var preparePackages2 = (packages, opts) => {
23866
23859
  const windowOpts = opts.window || window;
23867
23860
  if (windowOpts.packages) {
23868
- windowOpts.packages = (0, import_utils35.merge)(windowOpts.packages, packages);
23861
+ windowOpts.packages = (0, import_utils34.merge)(windowOpts.packages, packages);
23869
23862
  } else {
23870
23863
  windowOpts.packages = packages;
23871
23864
  windowOpts.require = (key) => windowOpts.packages[key];
@@ -23880,8 +23873,8 @@ var prepareState2 = (options, App) => {
23880
23873
  if (options.state)
23881
23874
  utilImports_exports.deepMerge(state, options.state);
23882
23875
  if (App && App.state)
23883
- (0, import_utils35.deepMerge)(state, App.state);
23884
- return (0, import_utils35.deepCloneWithExtend)(state);
23876
+ (0, import_utils34.deepMerge)(state, App.state);
23877
+ return (0, import_utils34.deepCloneWithExtend)(state);
23885
23878
  };
23886
23879
  var preparePages2 = (options) => {
23887
23880
  const pages = options.pages;
@@ -23913,9 +23906,9 @@ var prepareDocument2 = (options) => {
23913
23906
  // src/createDomql.js
23914
23907
  var SYMBOLS_KEY3 = process.env.SYMBOLS_KEY;
23915
23908
  var createDomqlElement2 = (App, options) => {
23916
- const key = options.key || SYMBOLS_KEY3 || ((0, import_utils36.isString)(App) ? App : "");
23909
+ const key = options.key || SYMBOLS_KEY3 || ((0, import_utils35.isString)(App) ? App : "");
23917
23910
  const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem2(options, key);
23918
- if ((0, import_utils36.isString)(App))
23911
+ if ((0, import_utils35.isString)(App))
23919
23912
  App = {};
23920
23913
  const doc = prepareDocument2(options);
23921
23914
  const state = prepareState2(options, App);
@@ -23959,9 +23952,9 @@ var createDomqlElement2 = (App, options) => {
23959
23952
 
23960
23953
  // src/index.js
23961
23954
  var SYMBOLS_KEY4 = process.env.SYMBOLS_KEY;
23962
- var mergeWithLocalFile3 = (options, optionsExternalFile) => (0, import_utils37.deepMerge)(
23955
+ var mergeWithLocalFile3 = (options, optionsExternalFile) => (0, import_utils36.deepMerge)(
23963
23956
  options,
23964
- (0, import_utils37.isObject)(optionsExternalFile) ? optionsExternalFile : import_dynamic3.default || {}
23957
+ (0, import_utils36.isObject)(optionsExternalFile) ? optionsExternalFile : import_dynamic3.default || {}
23965
23958
  );
23966
23959
  var create2 = (App, options = options_default2, optionsExternalFile) => {
23967
23960
  const redefinedOptions = { ...options_default2, ...mergeWithLocalFile3(options, optionsExternalFile) };
@@ -23991,7 +23984,7 @@ var createSync2 = async (App, options = options_default2, optionsExternalFile) =
23991
23984
  var createSkeleton2 = (App, options = options_default2, optionsExternalFile) => {
23992
23985
  return create2(
23993
23986
  App,
23994
- (0, import_utils37.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
23987
+ (0, import_utils36.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
23995
23988
  optionsExternalFile
23996
23989
  );
23997
23990
  };