@symbo.ls/create 2.11.483 → 2.11.485

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.
@@ -217,7 +217,7 @@ var require_types = __commonJS({
217
217
  isBoolean: () => isBoolean2,
218
218
  isDate: () => isDate,
219
219
  isDefined: () => isDefined2,
220
- isFunction: () => isFunction3,
220
+ isFunction: () => isFunction2,
221
221
  isNot: () => isNot2,
222
222
  isNull: () => isNull,
223
223
  isNumber: () => isNumber3,
@@ -235,7 +235,7 @@ var require_types = __commonJS({
235
235
  };
236
236
  var isString11 = (arg) => typeof arg === "string";
237
237
  var isNumber3 = (arg) => typeof arg === "number";
238
- var isFunction3 = (arg) => typeof arg === "function";
238
+ var isFunction2 = (arg) => typeof arg === "function";
239
239
  var isBoolean2 = (arg) => arg === true || arg === false;
240
240
  var isNull = (arg) => arg === null;
241
241
  var isArray4 = (arg) => Array.isArray(arg);
@@ -246,7 +246,7 @@ var require_types = __commonJS({
246
246
  return typeof arg === "object";
247
247
  };
248
248
  var isDefined2 = (arg) => {
249
- return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction3(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
249
+ return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction2(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
250
250
  };
251
251
  var isUndefined11 = (arg) => {
252
252
  return arg === void 0;
@@ -259,7 +259,7 @@ var require_types = __commonJS({
259
259
  date: isDate,
260
260
  number: isNumber3,
261
261
  null: isNull,
262
- function: isFunction3,
262
+ function: isFunction2,
263
263
  objectLike: isObjectLike4,
264
264
  node: import_node.isNode,
265
265
  htmlElement: import_node.isHtmlElement,
@@ -1405,21 +1405,21 @@ var require_cookie = __commonJS({
1405
1405
  });
1406
1406
  module2.exports = __toCommonJS2(cookie_exports);
1407
1407
  var import_types = require_types();
1408
- var import_utils28 = require_cjs();
1408
+ var import_utils27 = require_cjs();
1409
1409
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
1410
1410
  var setCookie = (cname, cvalue, exdays = 365) => {
1411
- if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
1411
+ if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
1412
1412
  return;
1413
1413
  const d = /* @__PURE__ */ new Date();
1414
1414
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
1415
1415
  const expires = `expires=${d.toUTCString()}`;
1416
- import_utils28.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1416
+ import_utils27.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1417
1417
  };
1418
1418
  var getCookie = (cname) => {
1419
- if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
1419
+ if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
1420
1420
  return;
1421
1421
  const name = `${cname}=`;
1422
- const decodedCookie = decodeURIComponent(import_utils28.document.cookie);
1422
+ const decodedCookie = decodeURIComponent(import_utils27.document.cookie);
1423
1423
  const ca = decodedCookie.split(";");
1424
1424
  for (let i = 0; i < ca.length; i++) {
1425
1425
  let c = ca[i];
@@ -1431,9 +1431,9 @@ var require_cookie = __commonJS({
1431
1431
  return "";
1432
1432
  };
1433
1433
  var removeCookie = (cname) => {
1434
- if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
1434
+ if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
1435
1435
  return;
1436
- import_utils28.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1436
+ import_utils27.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1437
1437
  };
1438
1438
  function getLocalStorage(key) {
1439
1439
  let savedJSON;
@@ -2153,7 +2153,7 @@ var require_cjs2 = __commonJS({
2153
2153
  isBoolean: () => isBoolean2,
2154
2154
  isDate: () => isDate,
2155
2155
  isDefined: () => isDefined2,
2156
- isFunction: () => isFunction22,
2156
+ isFunction: () => isFunction2,
2157
2157
  isNot: () => isNot2,
2158
2158
  isNull: () => isNull2,
2159
2159
  isNumber: () => isNumber22,
@@ -2171,7 +2171,7 @@ var require_cjs2 = __commonJS({
2171
2171
  };
2172
2172
  var isString92 = (arg) => typeof arg === "string";
2173
2173
  var isNumber22 = (arg) => typeof arg === "number";
2174
- var isFunction22 = (arg) => typeof arg === "function";
2174
+ var isFunction2 = (arg) => typeof arg === "function";
2175
2175
  var isBoolean2 = (arg) => arg === true || arg === false;
2176
2176
  var isNull2 = (arg) => arg === null;
2177
2177
  var isArray7 = (arg) => Array.isArray(arg);
@@ -2182,7 +2182,7 @@ var require_cjs2 = __commonJS({
2182
2182
  return typeof arg === "object";
2183
2183
  };
2184
2184
  var isDefined2 = (arg) => {
2185
- return isObject72(arg) || isObjectLike32(arg) || isString92(arg) || isNumber22(arg) || isFunction22(arg) || isArray7(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
2185
+ return isObject72(arg) || isObjectLike32(arg) || isString92(arg) || isNumber22(arg) || isFunction2(arg) || isArray7(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
2186
2186
  };
2187
2187
  var isUndefined22 = (arg) => {
2188
2188
  return arg === void 0;
@@ -2195,7 +2195,7 @@ var require_cjs2 = __commonJS({
2195
2195
  date: isDate,
2196
2196
  number: isNumber22,
2197
2197
  null: isNull2,
2198
- function: isFunction22,
2198
+ function: isFunction2,
2199
2199
  objectLike: isObjectLike32,
2200
2200
  node: import_node.isNode,
2201
2201
  htmlElement: import_node.isHtmlElement,
@@ -3329,21 +3329,21 @@ var require_cjs2 = __commonJS({
3329
3329
  });
3330
3330
  module22.exports = __toCommonJS3(cookie_exports);
3331
3331
  var import_types = require_types3();
3332
- var import_utils292 = require_cjs22();
3332
+ var import_utils29 = require_cjs22();
3333
3333
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
3334
3334
  var setCookie = (cname, cvalue, exdays = 365) => {
3335
- if ((0, import_types.isUndefined)(import_utils292.document) || (0, import_types.isUndefined)(import_utils292.document.cookie))
3335
+ if ((0, import_types.isUndefined)(import_utils29.document) || (0, import_types.isUndefined)(import_utils29.document.cookie))
3336
3336
  return;
3337
3337
  const d = /* @__PURE__ */ new Date();
3338
3338
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
3339
3339
  const expires = `expires=${d.toUTCString()}`;
3340
- import_utils292.document.cookie = `${cname}=${cvalue};${expires};path=/`;
3340
+ import_utils29.document.cookie = `${cname}=${cvalue};${expires};path=/`;
3341
3341
  };
3342
3342
  var getCookie = (cname) => {
3343
- if ((0, import_types.isUndefined)(import_utils292.document) || (0, import_types.isUndefined)(import_utils292.document.cookie))
3343
+ if ((0, import_types.isUndefined)(import_utils29.document) || (0, import_types.isUndefined)(import_utils29.document.cookie))
3344
3344
  return;
3345
3345
  const name = `${cname}=`;
3346
- const decodedCookie = decodeURIComponent(import_utils292.document.cookie);
3346
+ const decodedCookie = decodeURIComponent(import_utils29.document.cookie);
3347
3347
  const ca = decodedCookie.split(";");
3348
3348
  for (let i = 0; i < ca.length; i++) {
3349
3349
  let c = ca[i];
@@ -3355,9 +3355,9 @@ var require_cjs2 = __commonJS({
3355
3355
  return "";
3356
3356
  };
3357
3357
  var removeCookie = (cname) => {
3358
- if ((0, import_types.isUndefined)(import_utils292.document) || (0, import_types.isUndefined)(import_utils292.document.cookie))
3358
+ if ((0, import_types.isUndefined)(import_utils29.document) || (0, import_types.isUndefined)(import_utils29.document.cookie))
3359
3359
  return;
3360
- import_utils292.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
3360
+ import_utils29.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
3361
3361
  };
3362
3362
  function getLocalStorage(key) {
3363
3363
  let savedJSON;
@@ -4004,7 +4004,7 @@ var require_cjs2 = __commonJS({
4004
4004
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
4005
4005
  };
4006
4006
  var import_globals = __toESM2(require_cjs17(), 1);
4007
- var import_utils28 = __toESM2(require_cjs22(), 1);
4007
+ var import_utils27 = __toESM2(require_cjs22(), 1);
4008
4008
  var ENV3 = "development";
4009
4009
  var colorStringToRgbaArray = (color) => {
4010
4010
  if (color === "")
@@ -4136,11 +4136,11 @@ var require_cjs2 = __commonJS({
4136
4136
  return `rgba(${arr})`;
4137
4137
  };
4138
4138
  var getRgbTone = (rgb, tone) => {
4139
- if ((0, import_utils28.isString)(rgb) && rgb.includes("rgb"))
4139
+ if ((0, import_utils27.isString)(rgb) && rgb.includes("rgb"))
4140
4140
  rgb = colorStringToRgbaArray(rgb).join(", ");
4141
- if ((0, import_utils28.isString)(rgb))
4141
+ if ((0, import_utils27.isString)(rgb))
4142
4142
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
4143
- if ((0, import_utils28.isNumber)(tone))
4143
+ if ((0, import_utils27.isNumber)(tone))
4144
4144
  tone += "";
4145
4145
  const toHex = rgbArrayToHex(rgb);
4146
4146
  const abs3 = tone.slice(0, 1);
@@ -4408,7 +4408,7 @@ var require_cjs2 = __commonJS({
4408
4408
  isBoolean: () => isBoolean2,
4409
4409
  isDate: () => isDate,
4410
4410
  isDefined: () => isDefined2,
4411
- isFunction: () => isFunction22,
4411
+ isFunction: () => isFunction2,
4412
4412
  isNot: () => isNot2,
4413
4413
  isNull: () => isNull2,
4414
4414
  isNumber: () => isNumber22,
@@ -4426,7 +4426,7 @@ var require_cjs2 = __commonJS({
4426
4426
  };
4427
4427
  var isString22 = (arg) => typeof arg === "string";
4428
4428
  var isNumber22 = (arg) => typeof arg === "number";
4429
- var isFunction22 = (arg) => typeof arg === "function";
4429
+ var isFunction2 = (arg) => typeof arg === "function";
4430
4430
  var isBoolean2 = (arg) => arg === true || arg === false;
4431
4431
  var isNull2 = (arg) => arg === null;
4432
4432
  var isArray32 = (arg) => Array.isArray(arg);
@@ -4437,7 +4437,7 @@ var require_cjs2 = __commonJS({
4437
4437
  return typeof arg === "object";
4438
4438
  };
4439
4439
  var isDefined2 = (arg) => {
4440
- return isObject32(arg) || isObjectLike32(arg) || isString22(arg) || isNumber22(arg) || isFunction22(arg) || isArray32(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
4440
+ return isObject32(arg) || isObjectLike32(arg) || isString22(arg) || isNumber22(arg) || isFunction2(arg) || isArray32(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
4441
4441
  };
4442
4442
  var isUndefined22 = (arg) => {
4443
4443
  return arg === void 0;
@@ -4450,7 +4450,7 @@ var require_cjs2 = __commonJS({
4450
4450
  date: isDate,
4451
4451
  number: isNumber22,
4452
4452
  null: isNull2,
4453
- function: isFunction22,
4453
+ function: isFunction2,
4454
4454
  objectLike: isObjectLike32,
4455
4455
  node: import_node.isNode,
4456
4456
  htmlElement: import_node.isHtmlElement,
@@ -6107,7 +6107,7 @@ var require_cjs2 = __commonJS({
6107
6107
  toggleFullscreen: () => toggleFullscreen
6108
6108
  });
6109
6109
  module2.exports = __toCommonJS22(src_exports3);
6110
- var import_utils29 = __toESM22(require_cjs32(), 1);
6110
+ var import_utils28 = __toESM22(require_cjs32(), 1);
6111
6111
  var toggleFullscreen = async (el) => {
6112
6112
  if (!document.fullscreenElement) {
6113
6113
  try {
@@ -6282,13 +6282,13 @@ var require_cjs2 = __commonJS({
6282
6282
  return result.charAt(0).toUpperCase() + result.slice(1);
6283
6283
  };
6284
6284
  var arrayzeValue = (val) => {
6285
- if ((0, import_utils29.isArray)(val))
6285
+ if ((0, import_utils28.isArray)(val))
6286
6286
  return val;
6287
- if ((0, import_utils29.isString)(val))
6287
+ if ((0, import_utils28.isString)(val))
6288
6288
  return val.split(" ");
6289
- if ((0, import_utils29.isObject)(val))
6289
+ if ((0, import_utils28.isObject)(val))
6290
6290
  return Object.values(val);
6291
- if ((0, import_utils29.isNumber)(val))
6291
+ if ((0, import_utils28.isNumber)(val))
6292
6292
  return [val];
6293
6293
  };
6294
6294
  var import_utils42 = __toESM2(require_cjs22(), 1);
@@ -8127,7 +8127,7 @@ var require_cjs3 = __commonJS({
8127
8127
  isBoolean: () => isBoolean2,
8128
8128
  isDate: () => isDate,
8129
8129
  isDefined: () => isDefined2,
8130
- isFunction: () => isFunction3,
8130
+ isFunction: () => isFunction2,
8131
8131
  isNot: () => isNot2,
8132
8132
  isNull: () => isNull,
8133
8133
  isNumber: () => isNumber22,
@@ -8145,7 +8145,7 @@ var require_cjs3 = __commonJS({
8145
8145
  };
8146
8146
  var isString22 = (arg) => typeof arg === "string";
8147
8147
  var isNumber22 = (arg) => typeof arg === "number";
8148
- var isFunction3 = (arg) => typeof arg === "function";
8148
+ var isFunction2 = (arg) => typeof arg === "function";
8149
8149
  var isBoolean2 = (arg) => arg === true || arg === false;
8150
8150
  var isNull = (arg) => arg === null;
8151
8151
  var isArray32 = (arg) => Array.isArray(arg);
@@ -8156,7 +8156,7 @@ var require_cjs3 = __commonJS({
8156
8156
  return typeof arg === "object";
8157
8157
  };
8158
8158
  var isDefined2 = (arg) => {
8159
- return isObject32(arg) || isObjectLike4(arg) || isString22(arg) || isNumber22(arg) || isFunction3(arg) || isArray32(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
8159
+ return isObject32(arg) || isObjectLike4(arg) || isString22(arg) || isNumber22(arg) || isFunction2(arg) || isArray32(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
8160
8160
  };
8161
8161
  var isUndefined11 = (arg) => {
8162
8162
  return arg === void 0;
@@ -8169,7 +8169,7 @@ var require_cjs3 = __commonJS({
8169
8169
  date: isDate,
8170
8170
  number: isNumber22,
8171
8171
  null: isNull,
8172
- function: isFunction3,
8172
+ function: isFunction2,
8173
8173
  objectLike: isObjectLike4,
8174
8174
  node: import_node.isNode,
8175
8175
  htmlElement: import_node.isHtmlElement,
@@ -9826,7 +9826,7 @@ var require_cjs3 = __commonJS({
9826
9826
  toggleFullscreen: () => toggleFullscreen
9827
9827
  });
9828
9828
  module2.exports = __toCommonJS2(src_exports2);
9829
- var import_utils28 = __toESM2(require_cjs17(), 1);
9829
+ var import_utils27 = __toESM2(require_cjs17(), 1);
9830
9830
  var toggleFullscreen = async (el) => {
9831
9831
  if (!document.fullscreenElement) {
9832
9832
  try {
@@ -9838,15 +9838,15 @@ var require_cjs3 = __commonJS({
9838
9838
  await document.exitFullscreen();
9839
9839
  }
9840
9840
  };
9841
- var import_utils29 = __toESM2(require_cjs17(), 1);
9841
+ var import_utils28 = __toESM2(require_cjs17(), 1);
9842
9842
  var findClosestNumber = (number, arr) => {
9843
- return ((0, import_utils29.isArray)(arr) ? arr : Object.values(arr)).reduce((prev3, curr) => {
9843
+ return ((0, import_utils28.isArray)(arr) ? arr : Object.values(arr)).reduce((prev3, curr) => {
9844
9844
  return Math.abs(curr - number) < Math.abs(prev3 - number) ? curr : prev3;
9845
9845
  });
9846
9846
  };
9847
9847
  var findClosestNumberInFactory = (val, factory) => {
9848
9848
  val = parseFloat(val);
9849
- if ((0, import_utils29.isObject)(factory))
9849
+ if ((0, import_utils28.isObject)(factory))
9850
9850
  factory = Object.values(factory);
9851
9851
  return findClosestNumber(val, factory);
9852
9852
  };
@@ -10001,13 +10001,13 @@ var require_cjs3 = __commonJS({
10001
10001
  return result.charAt(0).toUpperCase() + result.slice(1);
10002
10002
  };
10003
10003
  var arrayzeValue = (val) => {
10004
- if ((0, import_utils28.isArray)(val))
10004
+ if ((0, import_utils27.isArray)(val))
10005
10005
  return val;
10006
- if ((0, import_utils28.isString)(val))
10006
+ if ((0, import_utils27.isString)(val))
10007
10007
  return val.split(" ");
10008
- if ((0, import_utils28.isObject)(val))
10008
+ if ((0, import_utils27.isObject)(val))
10009
10009
  return Object.values(val);
10010
- if ((0, import_utils28.isNumber)(val))
10010
+ if ((0, import_utils27.isNumber)(val))
10011
10011
  return [val];
10012
10012
  };
10013
10013
  }
@@ -11531,13 +11531,13 @@ var require_on = __commonJS({
11531
11531
  triggerEventOnUpdate: () => triggerEventOnUpdate
11532
11532
  });
11533
11533
  module2.exports = __toCommonJS2(on_exports);
11534
- var import_utils28 = require_cjs();
11534
+ var import_utils27 = require_cjs();
11535
11535
  var applyEvent = (param, element, state, context, options) => {
11536
11536
  return param.call(element, element, state || element.state, context || element.context, options);
11537
11537
  };
11538
11538
  var triggerEventOn = (param, element, options) => {
11539
11539
  var _a;
11540
- if (element.on && (0, import_utils28.isFunction)(element.on[param])) {
11540
+ if (element.on && (0, import_utils27.isFunction)(element.on[param])) {
11541
11541
  const { state, context } = element;
11542
11542
  return applyEvent(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), element, state, context, options);
11543
11543
  }
@@ -11547,7 +11547,7 @@ var require_on = __commonJS({
11547
11547
  };
11548
11548
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
11549
11549
  var _a;
11550
- if (element.on && (0, import_utils28.isFunction)(element.on[param])) {
11550
+ if (element.on && (0, import_utils27.isFunction)(element.on[param])) {
11551
11551
  const { state, context } = element;
11552
11552
  return applyEventUpdate(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), updatedObj, element, state, context, options);
11553
11553
  }
@@ -11568,7 +11568,7 @@ var require_on = __commonJS({
11568
11568
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "beforeStateUpdate" || param === "stateUpdate" || param === "beforeUpdate" || param === "done" || param === "create" || param === "complete" || param === "frame" || param === "update")
11569
11569
  continue;
11570
11570
  const appliedFunction = element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]);
11571
- if ((0, import_utils28.isFunction)(appliedFunction)) {
11571
+ if ((0, import_utils27.isFunction)(appliedFunction)) {
11572
11572
  node3.addEventListener(param, (event) => {
11573
11573
  const { state, context } = element;
11574
11574
  appliedFunction.call(element, event, element, state, context, options);
@@ -11703,9 +11703,9 @@ var require_can = __commonJS({
11703
11703
  });
11704
11704
  module2.exports = __toCommonJS2(can_exports);
11705
11705
  var import_report = require_cjs5();
11706
- var import_utils28 = require_cjs();
11706
+ var import_utils27 = require_cjs();
11707
11707
  var canRenderTag = (tag) => {
11708
- return (0, import_utils28.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11708
+ return (0, import_utils27.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11709
11709
  };
11710
11710
  }
11711
11711
  });
@@ -11766,8 +11766,8 @@ var require_cjs7 = __commonJS({
11766
11766
  });
11767
11767
  module2.exports = __toCommonJS2(router_exports);
11768
11768
  var import_event = require_cjs6();
11769
- var import_utils28 = require_cjs();
11770
- var getActiveRoute = (level = 0, route = import_utils28.window.location.pathname) => {
11769
+ var import_utils27 = require_cjs();
11770
+ var getActiveRoute = (level = 0, route = import_utils27.window.location.pathname) => {
11771
11771
  const routeArray = route.split("/");
11772
11772
  const activeRoute = routeArray[level + 1];
11773
11773
  if (activeRoute)
@@ -11781,7 +11781,7 @@ var require_cjs7 = __commonJS({
11781
11781
  initialRender: false,
11782
11782
  scrollToTop: true,
11783
11783
  scrollToNode: false,
11784
- scrollNode: import_utils28.document && import_utils28.document.documentElement,
11784
+ scrollNode: import_utils27.document && import_utils27.document.documentElement,
11785
11785
  scrollBody: false,
11786
11786
  useFragment: false,
11787
11787
  updateState: true,
@@ -11790,15 +11790,15 @@ var require_cjs7 = __commonJS({
11790
11790
  scrollToOptions: { behavior: "smooth" }
11791
11791
  };
11792
11792
  var router = (path, element, state = {}, options = {}) => {
11793
- const win = element.context.window || import_utils28.window;
11794
- const doc = element.context.document || import_utils28.document;
11793
+ const win = element.context.window || import_utils27.window;
11794
+ const doc = element.context.document || import_utils27.document;
11795
11795
  const opts = { ...defaultOptions, ...element.context.routerOptions, ...options };
11796
11796
  lastLevel = opts.lastLevel;
11797
11797
  const ref = element.__ref;
11798
11798
  if (opts.contentElementKey !== "content" && opts.contentElementKey !== ref.contentElementKey || !ref.contentElementKey) {
11799
11799
  ref.contentElementKey = opts.contentElementKey || "content";
11800
11800
  }
11801
- const contentElementKey = (0, import_utils28.setContentKey)(element, opts);
11801
+ const contentElementKey = (0, import_utils27.setContentKey)(element, opts);
11802
11802
  const urlObj = new win.URL(win.location.origin + path);
11803
11803
  const { pathname, search, hash: hash3 } = urlObj;
11804
11804
  const rootNode = element.node;
@@ -13158,11 +13158,11 @@ var require_methods = __commonJS({
13158
13158
  values: () => values
13159
13159
  });
13160
13160
  module2.exports = __toCommonJS2(methods_exports);
13161
- var import_utils28 = require_cjs();
13161
+ var import_utils27 = require_cjs();
13162
13162
  var import_ignore = require_ignore();
13163
13163
  var parse4 = function() {
13164
13164
  const state = this;
13165
- if ((0, import_utils28.isObject)(state)) {
13165
+ if ((0, import_utils27.isObject)(state)) {
13166
13166
  const obj = {};
13167
13167
  for (const param in state) {
13168
13168
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -13170,7 +13170,7 @@ var require_methods = __commonJS({
13170
13170
  }
13171
13171
  }
13172
13172
  return obj;
13173
- } else if ((0, import_utils28.isArray)(state)) {
13173
+ } else if ((0, import_utils27.isArray)(state)) {
13174
13174
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
13175
13175
  }
13176
13176
  };
@@ -13190,7 +13190,7 @@ var require_methods = __commonJS({
13190
13190
  const state = this;
13191
13191
  const element = state.__element;
13192
13192
  const stateKey = element.__ref.__state;
13193
- if ((0, import_utils28.isString)(stateKey)) {
13193
+ if ((0, import_utils27.isString)(stateKey)) {
13194
13194
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
13195
13195
  return element.state;
13196
13196
  }
@@ -13203,7 +13203,7 @@ var require_methods = __commonJS({
13203
13203
  for (const key in state.__children) {
13204
13204
  const child = state.__children[key];
13205
13205
  if (child.state) {
13206
- if ((0, import_utils28.isArray)(child.state)) {
13206
+ if ((0, import_utils27.isArray)(child.state)) {
13207
13207
  Object.defineProperty(child.state, "parent", {
13208
13208
  value: state.parent,
13209
13209
  enumerable: false,
@@ -13237,10 +13237,10 @@ var require_methods = __commonJS({
13237
13237
  };
13238
13238
  var add = function(value2, options = {}) {
13239
13239
  const state = this;
13240
- if ((0, import_utils28.isArray)(state)) {
13240
+ if ((0, import_utils27.isArray)(state)) {
13241
13241
  state.push(value2);
13242
13242
  state.update(state.parse(), { overwrite: true, ...options });
13243
- } else if ((0, import_utils28.isObject)(state)) {
13243
+ } else if ((0, import_utils27.isObject)(state)) {
13244
13244
  const key = Object.keys(state).length;
13245
13245
  state.update({ [key]: value2 }, options);
13246
13246
  }
@@ -13251,41 +13251,41 @@ var require_methods = __commonJS({
13251
13251
  };
13252
13252
  var remove = function(key, options = {}) {
13253
13253
  const state = this;
13254
- if ((0, import_utils28.isArray)(state))
13255
- (0, import_utils28.removeFromArray)(state, key);
13256
- if ((0, import_utils28.isObject)(state))
13257
- (0, import_utils28.removeFromObject)(state, key);
13254
+ if ((0, import_utils27.isArray)(state))
13255
+ (0, import_utils27.removeFromArray)(state, key);
13256
+ if ((0, import_utils27.isObject)(state))
13257
+ (0, import_utils27.removeFromObject)(state, key);
13258
13258
  if (options.applyReset)
13259
13259
  return state.set(state.parse(), { replace: true, ...options });
13260
13260
  return state.update();
13261
13261
  };
13262
13262
  var set3 = function(val, options = {}) {
13263
13263
  const state = this;
13264
- const value2 = (0, import_utils28.deepClone)(val);
13264
+ const value2 = (0, import_utils27.deepClone)(val);
13265
13265
  return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
13266
13266
  };
13267
13267
  var reset = function(options = {}) {
13268
13268
  const state = this;
13269
- const value2 = (0, import_utils28.deepClone)(state.parse());
13269
+ const value2 = (0, import_utils27.deepClone)(state.parse());
13270
13270
  return state.set(value2, { replace: true, ...options });
13271
13271
  };
13272
13272
  var apply = function(func, options = {}) {
13273
13273
  const state = this;
13274
- if ((0, import_utils28.isFunction)(func)) {
13274
+ if ((0, import_utils27.isFunction)(func)) {
13275
13275
  const value2 = func(state);
13276
13276
  return state.update(value2, { replace: true, ...options });
13277
13277
  }
13278
13278
  };
13279
13279
  var applyReplace = function(func, options = {}) {
13280
13280
  const state = this;
13281
- if ((0, import_utils28.isFunction)(func)) {
13281
+ if ((0, import_utils27.isFunction)(func)) {
13282
13282
  const value2 = func(state);
13283
13283
  return state.replace(value2, options);
13284
13284
  }
13285
13285
  };
13286
13286
  var applyFunction = function(func, options = {}) {
13287
13287
  const state = this;
13288
- if ((0, import_utils28.isFunction)(func)) {
13288
+ if ((0, import_utils27.isFunction)(func)) {
13289
13289
  func(state);
13290
13290
  return state.update(state.parse(), { replace: true, ...options });
13291
13291
  }
@@ -13349,7 +13349,7 @@ var require_inherit = __commonJS({
13349
13349
  isState: () => isState2
13350
13350
  });
13351
13351
  module2.exports = __toCommonJS2(inherit_exports);
13352
- var import_utils28 = require_cjs();
13352
+ var import_utils27 = require_cjs();
13353
13353
  var import_ignore = require_ignore();
13354
13354
  var getRootStateInKey = (stateKey, parentState) => {
13355
13355
  if (!stateKey.includes("~/"))
@@ -13414,11 +13414,11 @@ var require_inherit = __commonJS({
13414
13414
  var createInheritedState = (element, parent) => {
13415
13415
  const ref = element.__ref;
13416
13416
  const inheritedState = findInheritedState(element, parent);
13417
- if ((0, import_utils28.isUndefined)(inheritedState))
13417
+ if ((0, import_utils27.isUndefined)(inheritedState))
13418
13418
  return element.state;
13419
- if ((0, import_utils28.is)(inheritedState)("object", "array")) {
13420
- return (0, import_utils28.deepClone)(inheritedState, { exclude: import_ignore.IGNORE_STATE_PARAMS });
13421
- } else if ((0, import_utils28.is)(inheritedState)("string", "number", "boolean")) {
13419
+ if ((0, import_utils27.is)(inheritedState)("object", "array")) {
13420
+ return (0, import_utils27.deepClone)(inheritedState, { exclude: import_ignore.IGNORE_STATE_PARAMS });
13421
+ } else if ((0, import_utils27.is)(inheritedState)("string", "number", "boolean")) {
13422
13422
  ref.__stateType = typeof inheritedState;
13423
13423
  return { value: inheritedState };
13424
13424
  }
@@ -13427,12 +13427,12 @@ var require_inherit = __commonJS({
13427
13427
  var checkIfInherits = (element) => {
13428
13428
  const ref = element.__ref;
13429
13429
  const stateKey = ref.__state;
13430
- if (stateKey && (0, import_utils28.is)(stateKey)("number", "string", "boolean"))
13430
+ if (stateKey && (0, import_utils27.is)(stateKey)("number", "string", "boolean"))
13431
13431
  return true;
13432
13432
  return false;
13433
13433
  };
13434
13434
  var isState2 = function(state) {
13435
- if (!(0, import_utils28.isObjectLike)(state))
13435
+ if (!(0, import_utils27.isObjectLike)(state))
13436
13436
  return false;
13437
13437
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.keys && state.values && state.toggle && state.replace && state.quietUpdate && state.quietReplace && state.add && state.apply && state.applyReplace && state.applyFunction && state.__element && state.__children;
13438
13438
  };
@@ -13481,7 +13481,7 @@ var require_updateState = __commonJS({
13481
13481
  var import_report = require_cjs5();
13482
13482
  var import_event = require_cjs6();
13483
13483
  var import_ignore = require_ignore();
13484
- var import_utils28 = require_cjs();
13484
+ var import_utils27 = require_cjs();
13485
13485
  var import_inherit = require_inherit();
13486
13486
  var STATE_UPDATE_OPTIONS = {
13487
13487
  overwrite: true,
@@ -13496,7 +13496,7 @@ var require_updateState = __commonJS({
13496
13496
  if (options.onEach)
13497
13497
  options.onEach(element, state, element.context, options);
13498
13498
  if (!options.updateByState)
13499
- (0, import_utils28.merge)(options, STATE_UPDATE_OPTIONS);
13499
+ (0, import_utils27.merge)(options, STATE_UPDATE_OPTIONS);
13500
13500
  if (!state.__element)
13501
13501
  (0, import_report.report)("ElementOnStateIsNotDefined");
13502
13502
  if (options.preventInheritAtCurrentState === true) {
@@ -13526,10 +13526,10 @@ var require_updateState = __commonJS({
13526
13526
  const shallow = overwrite === "shallow" || overwrite === "shallow-once";
13527
13527
  const merge22 = overwrite === "merge";
13528
13528
  if (merge22) {
13529
- (0, import_utils28.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13529
+ (0, import_utils27.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13530
13530
  return;
13531
13531
  }
13532
- const overwriteFunc = shallow ? import_utils28.overwriteShallow : import_utils28.overwriteDeep;
13532
+ const overwriteFunc = shallow ? import_utils27.overwriteShallow : import_utils27.overwriteDeep;
13533
13533
  if (options.overwrite === "shallow-once")
13534
13534
  options.overwrite = true;
13535
13535
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
@@ -13554,7 +13554,7 @@ var require_updateState = __commonJS({
13554
13554
  const changesValue = (0, import_inherit.createNestedObjectByKeyPath)(stateKey, passedValue);
13555
13555
  const targetParent = findRootState || findGrandParentState || parent.state;
13556
13556
  if (options.replace)
13557
- (0, import_utils28.overwriteDeep)(targetParent, changesValue || value2);
13557
+ (0, import_utils27.overwriteDeep)(targetParent, changesValue || value2);
13558
13558
  targetParent.update(changesValue, {
13559
13559
  execStateFunction: false,
13560
13560
  isHoisted: true,
@@ -13623,7 +13623,7 @@ var require_create = __commonJS({
13623
13623
  });
13624
13624
  module2.exports = __toCommonJS2(create_exports);
13625
13625
  var import_event = require_cjs6();
13626
- var import_utils28 = require_cjs();
13626
+ var import_utils27 = require_cjs();
13627
13627
  var import_ignore = require_ignore();
13628
13628
  var import_methods = require_methods();
13629
13629
  var import_updateState = require_updateState();
@@ -13643,7 +13643,7 @@ var require_create = __commonJS({
13643
13643
  return element.state;
13644
13644
  if ((0, import_inherit.checkIfInherits)(element)) {
13645
13645
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
13646
- element.state = (0, import_utils28.isUndefined)(inheritedState) ? {} : inheritedState;
13646
+ element.state = (0, import_utils27.isUndefined)(inheritedState) ? {} : inheritedState;
13647
13647
  }
13648
13648
  const dependentState = applyDependentState(element, element.state || parent.state || {});
13649
13649
  if (dependentState)
@@ -13654,12 +13654,12 @@ var require_create = __commonJS({
13654
13654
  };
13655
13655
  var applyDependentState = (element, state) => {
13656
13656
  const { __ref, ref, __element } = state;
13657
- const origState = (0, import_utils28.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
13657
+ const origState = (0, import_utils27.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
13658
13658
  if (!origState)
13659
13659
  return;
13660
- const dependentState = (0, import_utils28.deepClone)(origState, import_ignore.IGNORE_STATE_PARAMS);
13660
+ const dependentState = (0, import_utils27.deepClone)(origState, import_ignore.IGNORE_STATE_PARAMS);
13661
13661
  const newDepends = { [element.key]: dependentState };
13662
- const __depends = (0, import_utils28.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
13662
+ const __depends = (0, import_utils27.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
13663
13663
  if (Array.isArray(origState)) {
13664
13664
  addProtoToArray(origState, { ...Object.getPrototypeOf(origState), __depends });
13665
13665
  } else {
@@ -13670,10 +13670,10 @@ var require_create = __commonJS({
13670
13670
  var checkForTypes = (element) => {
13671
13671
  const { state: orig, props: props4, __ref: ref } = element;
13672
13672
  const state = (props4 == null ? void 0 : props4.state) || orig;
13673
- if ((0, import_utils28.isFunction)(state)) {
13673
+ if ((0, import_utils27.isFunction)(state)) {
13674
13674
  ref.__state = state;
13675
- return (0, import_utils28.exec)(state, element);
13676
- } else if ((0, import_utils28.is)(state)("string", "number")) {
13675
+ return (0, import_utils27.exec)(state, element);
13676
+ } else if ((0, import_utils27.is)(state)("string", "number")) {
13677
13677
  ref.__state = state;
13678
13678
  return { value: state };
13679
13679
  } else if (state === true) {
@@ -13728,7 +13728,7 @@ var require_create = __commonJS({
13728
13728
  __children: {},
13729
13729
  root: ref.root ? ref.root.state : state
13730
13730
  };
13731
- if ((0, import_utils28.isArray)(state)) {
13731
+ if ((0, import_utils27.isArray)(state)) {
13732
13732
  addProtoToArray(state, proto);
13733
13733
  } else {
13734
13734
  Object.setPrototypeOf(state, proto);
@@ -15249,17 +15249,11 @@ var init_Avatar = __esm({
15249
15249
  });
15250
15250
 
15251
15251
  // ../uikit/Range/index.js
15252
- var import_utils17, import_scratch12, returnPropertyValue, Range, RangeWithButtons;
15252
+ var import_scratch12, Range;
15253
15253
  var init_Range = __esm({
15254
15254
  "../uikit/Range/index.js"() {
15255
15255
  "use strict";
15256
- import_utils17 = __toESM(require_cjs());
15257
15256
  import_scratch12 = __toESM(require_cjs2());
15258
- returnPropertyValue = (el, property, def) => {
15259
- const val = el.props && el.props[property];
15260
- const r = (0, import_utils17.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
15261
- return r + "";
15262
- };
15263
15257
  Range = {
15264
15258
  props: {
15265
15259
  appearance: "none",
@@ -15269,7 +15263,7 @@ var init_Range = __esm({
15269
15263
  flex: 1,
15270
15264
  onInput: (ev, el, s) => {
15271
15265
  const props4 = el.props;
15272
- if ((0, import_utils17.isFunction)(props4.onInput)) {
15266
+ if (el.call("isFunction", props4.onInput)) {
15273
15267
  props4.onInput(ev, el, s);
15274
15268
  } else {
15275
15269
  s.update({ value: parseFloat(el.node.value) });
@@ -15277,7 +15271,7 @@ var init_Range = __esm({
15277
15271
  },
15278
15272
  onChange: (ev, el, s) => {
15279
15273
  const props4 = el.props;
15280
- if ((0, import_utils17.isFunction)(props4.onChange)) {
15274
+ if (el.call("isFunction", props4.onChange)) {
15281
15275
  props4.onChange(ev, el, s);
15282
15276
  } else {
15283
15277
  s.update({ value: parseFloat(el.node.value) });
@@ -15331,78 +15325,95 @@ var init_Range = __esm({
15331
15325
  }
15332
15326
  }
15333
15327
  },
15328
+ deps: {
15329
+ returnPropertyValue: (el, property, def) => {
15330
+ const val = el.props && el.props[property];
15331
+ const r = el.call("isFunction", val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
15332
+ return r + "";
15333
+ }
15334
+ },
15334
15335
  tag: "input",
15335
15336
  attr: {
15336
15337
  type: "range",
15337
15338
  value: (el, s) => parseFloat(el.state.value || el.props.value || el.props.defaultValue),
15338
- min: (el, s) => returnPropertyValue(el, "min", 0),
15339
- max: (el, s) => returnPropertyValue(el, "max", 100),
15340
- step: (el, s) => returnPropertyValue(el, "step", 1)
15339
+ min: (el, s) => el.deps.returnPropertyValue(el, "min", 0),
15340
+ max: (el, s) => el.deps.returnPropertyValue(el, "max", 100),
15341
+ step: (el, s) => el.deps.returnPropertyValue(el, "step", 1)
15341
15342
  }
15342
15343
  };
15343
- RangeWithButtons = {
15344
- SquareButton_minus: {
15345
- icon: "minus",
15346
- theme: "field",
15347
- onClick: (ev, el, s) => {
15348
- const parentProps = el.parent.props;
15349
- if ((0, import_utils17.isFunction)(parentProps.onDecrease)) {
15350
- parentProps.onDecrease(ev, el.parent, s);
15351
- } else {
15352
- const value2 = parseFloat(s.value);
15353
- const min = returnPropertyValue(el.parent, "min", 1);
15354
- const step = returnPropertyValue(el.parent, "step", 1);
15355
- if (value2 > min) {
15356
- s.update({ value: value2 - step });
15357
- }
15358
- }
15359
- }
15344
+ }
15345
+ });
15346
+
15347
+ // ../uikit/Dropdown/index.js
15348
+ var DropdownList, DropdownParent;
15349
+ var init_Dropdown = __esm({
15350
+ "../uikit/Dropdown/index.js"() {
15351
+ "use strict";
15352
+ DropdownList = {
15353
+ extend: "Flex",
15354
+ attr: {
15355
+ dropdown: true
15360
15356
  },
15361
- Value: {
15362
- tag: "span",
15363
- width: "4ch",
15364
- text: ({ state, parent }) => {
15365
- const unit = returnPropertyValue(parent, "unit", "");
15366
- return "" + (state.value || state.defaultValue || 0) + unit;
15357
+ props: {
15358
+ padding: "0 Y",
15359
+ maxHeight: "G",
15360
+ flow: "column",
15361
+ theme: "quaternary",
15362
+ overflow: "hidden auto",
15363
+ style: { listStyleType: "none" },
15364
+ transition: "B defaultBezier",
15365
+ transitionProperty: "transform, opacity, visibility",
15366
+ children: ({ props: props4 }) => props4.options || [],
15367
+ childrenAs: "props",
15368
+ ".hidden": {
15369
+ transform: "translate3d(0,10%,0)",
15370
+ opacity: 0,
15371
+ visibility: "hidden"
15367
15372
  }
15368
15373
  },
15369
- Range: {
15370
- attr: {
15371
- value: (el, s) => parseFloat(s.value || s.defaultValue),
15372
- min: (el, s) => returnPropertyValue(el.parent, "min", 0),
15373
- max: (el, s) => returnPropertyValue(el.parent, "max", 100),
15374
- step: (el, s) => returnPropertyValue(el.parent, "step", 1)
15375
- },
15376
- onInput: (ev, el, s) => {
15377
- const parentProps = el.parent.props;
15378
- if ((0, import_utils17.isFunction)(parentProps.onInput)) {
15379
- parentProps.onInput(ev, el, s);
15380
- } else {
15381
- s.update({ value: parseFloat(el.node.value) });
15382
- }
15383
- },
15384
- onChange: (ev, el, s) => {
15385
- const parentProps = el.parent.props;
15386
- if ((0, import_utils17.isFunction)(parentProps.onChange)) {
15387
- parentProps.onChange(ev, el, s);
15388
- } else {
15389
- s.update({ value: parseFloat(el.node.value) });
15374
+ childExtend: {
15375
+ extend: "Button",
15376
+ state: {},
15377
+ props: {
15378
+ isActive: ({ key, state }) => state.active === key,
15379
+ position: "relative",
15380
+ round: "0",
15381
+ align: "center flex-end",
15382
+ flow: "row-reverse",
15383
+ padding: "Z2 C Z2 Y2",
15384
+ margin: "0",
15385
+ gap: "Y2",
15386
+ theme: "quaternary .child",
15387
+ ":hover": {
15388
+ style: {
15389
+ svg: { opacity: "0.5" }
15390
+ }
15391
+ },
15392
+ Icon: {
15393
+ isActive: ({ key, state }) => state.active === key,
15394
+ name: "checkmark",
15395
+ opacity: "0.1",
15396
+ ".active": { opacity: "1" }
15397
+ },
15398
+ ":not(:first-child)": {
15399
+ "@dark": { border: "gray4 .65, solid" },
15400
+ "@light": { border: "gray11, solid" },
15401
+ borderWidth: "1px 0 0"
15390
15402
  }
15391
15403
  }
15392
- },
15393
- SquareButton_plus: {
15394
- theme: "field",
15395
- icon: "plus",
15396
- onClick: (ev, el, s) => {
15397
- const parentProps = el.parent.props;
15398
- if ((0, import_utils17.isFunction)(parentProps.onIncrease)) {
15399
- parentProps.onIncrease(ev, el.parent, s);
15400
- } else {
15401
- const value2 = parseFloat(s.value);
15402
- const max = returnPropertyValue(el.parent, "max", 1);
15403
- const step = returnPropertyValue(el.parent, "step", 1);
15404
- if (value2 < max) {
15405
- s.update({ value: value2 + step });
15404
+ }
15405
+ };
15406
+ DropdownParent = {
15407
+ props: {
15408
+ position: "relative",
15409
+ zIndex: 999,
15410
+ style: {
15411
+ "&:hover": {
15412
+ zIndex: 1e3,
15413
+ "& [dropdown]": {
15414
+ transform: "translate3d(0,0,0)",
15415
+ opacity: 1,
15416
+ visibility: "visible"
15406
15417
  }
15407
15418
  }
15408
15419
  }
@@ -15435,6 +15446,8 @@ __export(uikit_exports, {
15435
15446
  DialogHeader: () => DialogHeader,
15436
15447
  Direction: () => Direction,
15437
15448
  Div: () => Div,
15449
+ DropdownList: () => DropdownList,
15450
+ DropdownParent: () => DropdownParent,
15438
15451
  FileIcon: () => FileIcon,
15439
15452
  Flex: () => Flex,
15440
15453
  Focusable: () => Focusable,
@@ -15475,7 +15488,6 @@ __export(uikit_exports, {
15475
15488
  Radio: () => Radio,
15476
15489
  RadioHgroup: () => RadioHgroup,
15477
15490
  Range: () => Range,
15478
- RangeWithButtons: () => RangeWithButtons,
15479
15491
  RouteLink: () => RouteLink,
15480
15492
  RouterLink: () => RouterLink,
15481
15493
  Select: () => Select,
@@ -15519,6 +15531,7 @@ var init_uikit = __esm({
15519
15531
  init_Tooltip();
15520
15532
  init_Avatar();
15521
15533
  init_Range();
15534
+ init_Dropdown();
15522
15535
  }
15523
15536
  });
15524
15537
 
@@ -15693,11 +15706,11 @@ var require_tree = __commonJS({
15693
15706
  TREE: () => TREE
15694
15707
  });
15695
15708
  module2.exports = __toCommonJS2(tree_exports);
15696
- var import_utils28 = require_cjs();
15709
+ var import_utils27 = require_cjs();
15697
15710
  var import_report = require_cjs5();
15698
15711
  var ROOT = {
15699
15712
  key: ":root",
15700
- node: import_utils28.document ? import_utils28.document.body : (0, import_report.report)("DocumentNotDefined", import_utils28.document)
15713
+ node: import_utils27.document ? import_utils27.document.body : (0, import_report.report)("DocumentNotDefined", import_utils27.document)
15701
15714
  };
15702
15715
  var TREE = ROOT;
15703
15716
  }
@@ -15764,10 +15777,10 @@ var require_cache = __commonJS({
15764
15777
  module2.exports = __toCommonJS2(cache_exports);
15765
15778
  var import_report = require_cjs5();
15766
15779
  var import_event = require_cjs6();
15767
- var import_utils28 = require_cjs();
15780
+ var import_utils27 = require_cjs();
15768
15781
  var createHTMLNode = (element) => {
15769
15782
  const { tag, context } = element;
15770
- const doc = context.document || import_utils28.document;
15783
+ const doc = context.document || import_utils27.document;
15771
15784
  if (tag) {
15772
15785
  if (tag === "string")
15773
15786
  return doc.createTextNode(element.text);
@@ -15783,16 +15796,16 @@ var require_cache = __commonJS({
15783
15796
  };
15784
15797
  var detectTag = (element) => {
15785
15798
  let { tag, key, props: props4 } = element;
15786
- tag = (0, import_utils28.exec)(tag, element);
15799
+ tag = (0, import_utils27.exec)(tag, element);
15787
15800
  if (tag === true)
15788
15801
  tag = key;
15789
- if ((0, import_utils28.isObject)(props4) && (0, import_utils28.isString)(props4.tag)) {
15790
- const tagExists = (0, import_utils28.isValidHtmlTag)(props4.tag);
15802
+ if ((0, import_utils27.isObject)(props4) && (0, import_utils27.isString)(props4.tag)) {
15803
+ const tagExists = (0, import_utils27.isValidHtmlTag)(props4.tag);
15791
15804
  if (tagExists)
15792
15805
  return props4.tag;
15793
15806
  }
15794
- if ((0, import_utils28.isString)(tag)) {
15795
- if ((0, import_utils28.isValidHtmlTag)(tag))
15807
+ if ((0, import_utils27.isString)(tag)) {
15808
+ if ((0, import_utils27.isValidHtmlTag)(tag))
15796
15809
  return tag;
15797
15810
  } else {
15798
15811
  let keyAsTag = key.toLowerCase();
@@ -15800,7 +15813,7 @@ var require_cache = __commonJS({
15800
15813
  keyAsTag = keyAsTag.split(".")[0];
15801
15814
  if (keyAsTag.includes("_"))
15802
15815
  keyAsTag = keyAsTag.split("_")[0];
15803
- if ((0, import_utils28.isValidHtmlTag)(keyAsTag))
15816
+ if ((0, import_utils27.isValidHtmlTag)(keyAsTag))
15804
15817
  return keyAsTag;
15805
15818
  }
15806
15819
  return "div";
@@ -15968,9 +15981,9 @@ var require_inherit2 = __commonJS({
15968
15981
  inheritParentProps: () => inheritParentProps
15969
15982
  });
15970
15983
  module2.exports = __toCommonJS2(inherit_exports);
15971
- var import_utils28 = require_cjs();
15984
+ var import_utils27 = require_cjs();
15972
15985
  var objectizeStringProperty = (propValue) => {
15973
- if ((0, import_utils28.is)(propValue)("string", "number")) {
15986
+ if ((0, import_utils27.is)(propValue)("string", "number")) {
15974
15987
  return { inheritedString: propValue };
15975
15988
  }
15976
15989
  return propValue;
@@ -15978,9 +15991,9 @@ var require_inherit2 = __commonJS({
15978
15991
  var inheritParentProps = (element, parent) => {
15979
15992
  var _a;
15980
15993
  let propsStack = [];
15981
- const parentProps = (0, import_utils28.exec)(parent, parent.state).props;
15994
+ const parentProps = (0, import_utils27.exec)(parent, parent.state).props;
15982
15995
  const matchParent = parent.props && parentProps[element.key];
15983
- const matchParentIsString = (0, import_utils28.isString)(matchParent);
15996
+ const matchParentIsString = (0, import_utils27.isString)(matchParent);
15984
15997
  const matchParentChildProps = parentProps && parentProps.childProps;
15985
15998
  if (matchParent) {
15986
15999
  if (matchParentIsString) {
@@ -16028,19 +16041,19 @@ var require_create3 = __commonJS({
16028
16041
  syncProps: () => syncProps
16029
16042
  });
16030
16043
  module2.exports = __toCommonJS2(create_exports);
16031
- var import_utils28 = require_cjs();
16044
+ var import_utils27 = require_cjs();
16032
16045
  var import_ignore = require_ignore2();
16033
16046
  var import_inherit = require_inherit2();
16034
16047
  var createPropsStack = (element, parent) => {
16035
16048
  const { props: props4, __ref: ref } = element;
16036
16049
  const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
16037
- if ((0, import_utils28.isObject)(props4))
16050
+ if ((0, import_utils27.isObject)(props4))
16038
16051
  propsStack.push(props4);
16039
16052
  else if (props4 === "inherit" && parent.props)
16040
16053
  propsStack.push(parent.props);
16041
16054
  else if (props4)
16042
16055
  propsStack.push(props4);
16043
- if ((0, import_utils28.isArray)(ref.__extend)) {
16056
+ if ((0, import_utils27.isArray)(ref.__extend)) {
16044
16057
  ref.__extend.forEach((extend) => {
16045
16058
  if (extend.props && extend.props !== props4)
16046
16059
  propsStack.push(extend.props);
@@ -16057,13 +16070,13 @@ var require_create3 = __commonJS({
16057
16070
  return;
16058
16071
  let execProps;
16059
16072
  try {
16060
- execProps = (0, import_utils28.exec)(v, element);
16073
+ execProps = (0, import_utils27.exec)(v, element);
16061
16074
  } catch (e) {
16062
16075
  element.error(e, opts);
16063
16076
  }
16064
- element.props = (0, import_utils28.deepMerge)(
16077
+ element.props = (0, import_utils27.deepMerge)(
16065
16078
  mergedProps,
16066
- (0, import_utils28.deepClone)(execProps, { ignore: import_ignore.IGNORE_PROPS_PARAMS }),
16079
+ (0, import_utils27.deepClone)(execProps, { ignore: import_ignore.IGNORE_PROPS_PARAMS }),
16067
16080
  import_ignore.IGNORE_PROPS_PARAMS
16068
16081
  );
16069
16082
  });
@@ -16211,7 +16224,7 @@ var require_object2 = __commonJS({
16211
16224
  overwriteShallow: () => overwriteShallow2
16212
16225
  });
16213
16226
  module2.exports = __toCommonJS2(object_exports);
16214
- var import_utils28 = require_cjs();
16227
+ var import_utils27 = require_cjs();
16215
16228
  var import_props = require_props();
16216
16229
  var IGNORE_STATE_PARAMS = [
16217
16230
  "update",
@@ -16263,7 +16276,7 @@ var require_object2 = __commonJS({
16263
16276
  "nextElement",
16264
16277
  "previousElement"
16265
16278
  ];
16266
- var METHODS_EXL = (0, import_utils28.joinArrays)(
16279
+ var METHODS_EXL = (0, import_utils27.joinArrays)(
16267
16280
  ["node", "state", "context", "extend", "__element"],
16268
16281
  METHODS,
16269
16282
  IGNORE_STATE_PARAMS,
@@ -16277,7 +16290,7 @@ var require_object2 = __commonJS({
16277
16290
  const extendProp = extend[e];
16278
16291
  if (elementProp === void 0) {
16279
16292
  element[e] = extendProp;
16280
- } else if ((0, import_utils28.isObjectLike)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
16293
+ } else if ((0, import_utils27.isObjectLike)(elementProp) && (0, import_utils27.isObject)(extendProp)) {
16281
16294
  deepMerge7(elementProp, extendProp);
16282
16295
  }
16283
16296
  }
@@ -16324,7 +16337,7 @@ var require_object2 = __commonJS({
16324
16337
  continue;
16325
16338
  const objProp = obj[e];
16326
16339
  const paramsProp = params[e];
16327
- if ((0, import_utils28.isObjectLike)(objProp) && (0, import_utils28.isObjectLike)(paramsProp)) {
16340
+ if ((0, import_utils27.isObjectLike)(objProp) && (0, import_utils27.isObjectLike)(paramsProp)) {
16328
16341
  overwriteDeep2(objProp, paramsProp);
16329
16342
  } else if (paramsProp !== void 0) {
16330
16343
  obj[e] = paramsProp;
@@ -16333,15 +16346,15 @@ var require_object2 = __commonJS({
16333
16346
  return obj;
16334
16347
  };
16335
16348
  var mergeIfExisted = (a, b) => {
16336
- if ((0, import_utils28.isObjectLike)(a) && (0, import_utils28.isObjectLike)(b))
16349
+ if ((0, import_utils27.isObjectLike)(a) && (0, import_utils27.isObjectLike)(b))
16337
16350
  return deepMerge7(a, b);
16338
16351
  return a || b;
16339
16352
  };
16340
16353
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
16341
- return arr.reduce((a, c) => deepMerge7(a, (0, import_utils28.deepClone)(c, { exclude })), {});
16354
+ return arr.reduce((a, c) => deepMerge7(a, (0, import_utils27.deepClone)(c, { exclude })), {});
16342
16355
  };
16343
16356
  var mergeAndCloneIfArray = (obj) => {
16344
- return (0, import_utils28.isArray)(obj) ? mergeArray(obj) : (0, import_utils28.deepClone)(obj);
16357
+ return (0, import_utils27.isArray)(obj) ? mergeArray(obj) : (0, import_utils27.deepClone)(obj);
16345
16358
  };
16346
16359
  var flattenRecursive = (param, prop, stack = []) => {
16347
16360
  const objectized = mergeAndCloneIfArray(param);
@@ -16395,7 +16408,7 @@ var require_extendUtils = __commonJS({
16395
16408
  setHashedExtend: () => setHashedExtend
16396
16409
  });
16397
16410
  module2.exports = __toCommonJS2(extendUtils_exports);
16398
- var import_utils28 = require_cjs();
16411
+ var import_utils27 = require_cjs();
16399
16412
  var ENV3 = "development";
16400
16413
  var generateHash = () => Math.random().toString(36).substring(2);
16401
16414
  var extendStackRegistry = {};
@@ -16405,7 +16418,7 @@ var require_extendUtils = __commonJS({
16405
16418
  };
16406
16419
  var setHashedExtend = (extend, stack) => {
16407
16420
  const hash3 = generateHash();
16408
- if (!(0, import_utils28.isString)(extend)) {
16421
+ if (!(0, import_utils27.isString)(extend)) {
16409
16422
  extend.__hash = hash3;
16410
16423
  }
16411
16424
  extendStackRegistry[hash3] = stack;
@@ -16431,9 +16444,9 @@ var require_extendUtils = __commonJS({
16431
16444
  var flattenExtend = (extend, stack, context) => {
16432
16445
  if (!extend)
16433
16446
  return stack;
16434
- if ((0, import_utils28.isArray)(extend))
16447
+ if ((0, import_utils27.isArray)(extend))
16435
16448
  return extractArrayExtend(extend, stack, context);
16436
- if ((0, import_utils28.isString)(extend))
16449
+ if ((0, import_utils27.isString)(extend))
16437
16450
  extend = fallbackStringExtend(extend, context);
16438
16451
  stack.push(extend);
16439
16452
  if (extend.extend)
@@ -16448,14 +16461,14 @@ var require_extendUtils = __commonJS({
16448
16461
  const extendProp = extend[e];
16449
16462
  if (elementProp === void 0) {
16450
16463
  element[e] = extendProp;
16451
- } else if ((0, import_utils28.isObject)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
16464
+ } else if ((0, import_utils27.isObject)(elementProp) && (0, import_utils27.isObject)(extendProp)) {
16452
16465
  deepMergeExtend(elementProp, extendProp);
16453
- } else if ((0, import_utils28.isArray)(elementProp) && (0, import_utils28.isArray)(extendProp)) {
16466
+ } else if ((0, import_utils27.isArray)(elementProp) && (0, import_utils27.isArray)(extendProp)) {
16454
16467
  element[e] = elementProp.concat(extendProp);
16455
- } else if ((0, import_utils28.isArray)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
16468
+ } else if ((0, import_utils27.isArray)(elementProp) && (0, import_utils27.isObject)(extendProp)) {
16456
16469
  const obj = deepMergeExtend({}, elementProp);
16457
16470
  element[e] = deepMergeExtend(obj, extendProp);
16458
- } else if (elementProp === void 0 && (0, import_utils28.isFunction)(extendProp)) {
16471
+ } else if (elementProp === void 0 && (0, import_utils27.isFunction)(extendProp)) {
16459
16472
  element[e] = extendProp;
16460
16473
  }
16461
16474
  }
@@ -16463,13 +16476,13 @@ var require_extendUtils = __commonJS({
16463
16476
  };
16464
16477
  var cloneAndMergeArrayExtend = (stack) => {
16465
16478
  return stack.reduce((a, c) => {
16466
- return deepMergeExtend(a, (0, import_utils28.deepClone)(c));
16479
+ return deepMergeExtend(a, (0, import_utils27.deepClone)(c));
16467
16480
  }, {});
16468
16481
  };
16469
16482
  var fallbackStringExtend = (extend, context, options = {}) => {
16470
16483
  const COMPONENTS = context && context.components || options.components;
16471
16484
  const PAGES = context && context.pages || options.pages;
16472
- if ((0, import_utils28.isString)(extend)) {
16485
+ if ((0, import_utils27.isString)(extend)) {
16473
16486
  const componentExists = COMPONENTS && (COMPONENTS[extend] || COMPONENTS["smbls." + extend]);
16474
16487
  const pageExists = PAGES && extend.startsWith("/") && PAGES[extend];
16475
16488
  if (componentExists)
@@ -16529,30 +16542,30 @@ var require_extend = __commonJS({
16529
16542
  applyExtend: () => applyExtend
16530
16543
  });
16531
16544
  module2.exports = __toCommonJS2(extend_exports);
16532
- var import_utils28 = require_cjs();
16533
- var import_utils29 = require_utils();
16545
+ var import_utils27 = require_cjs();
16546
+ var import_utils28 = require_utils();
16534
16547
  var ENV3 = "development";
16535
16548
  var mainExtend;
16536
16549
  var applyExtend = (element, parent, options = {}) => {
16537
- if ((0, import_utils28.isFunction)(element))
16538
- element = (0, import_utils28.exec)(element, parent);
16550
+ if ((0, import_utils27.isFunction)(element))
16551
+ element = (0, import_utils27.exec)(element, parent);
16539
16552
  const { props: props4, __ref } = element;
16540
16553
  let extend = (props4 == null ? void 0 : props4.extends) || element.extends || element.extend;
16541
16554
  const context = element.context || parent.context;
16542
- extend = (0, import_utils29.fallbackStringExtend)(extend, context, options);
16543
- const extendStack = (0, import_utils29.getExtendStack)(extend, context);
16555
+ extend = (0, import_utils28.fallbackStringExtend)(extend, context, options);
16556
+ const extendStack = (0, import_utils28.getExtendStack)(extend, context);
16544
16557
  if (ENV3 !== "test" || ENV3 !== "development")
16545
16558
  delete element.extend;
16546
16559
  let childExtendStack = [];
16547
16560
  if (parent) {
16548
16561
  element.parent = parent;
16549
16562
  if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
16550
- childExtendStack = (0, import_utils29.getExtendStack)(parent.childExtend, context);
16563
+ childExtendStack = (0, import_utils28.getExtendStack)(parent.childExtend, context);
16551
16564
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
16552
16565
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
16553
16566
  const canExtendRecursive = element.key !== "__text";
16554
16567
  if (canExtendRecursive) {
16555
- const childExtendRecursiveStack = (0, import_utils29.getExtendStack)(parent.childExtendRecursive, context);
16568
+ const childExtendRecursiveStack = (0, import_utils28.getExtendStack)(parent.childExtendRecursive, context);
16556
16569
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
16557
16570
  element.childExtendRecursive = parent.childExtendRecursive;
16558
16571
  }
@@ -16563,7 +16576,7 @@ var require_extend = __commonJS({
16563
16576
  const childExtendLength = childExtendStack.length;
16564
16577
  let stack = [];
16565
16578
  if (extendLength && childExtendLength) {
16566
- stack = (0, import_utils29.jointStacks)(extendStack, childExtendStack);
16579
+ stack = (0, import_utils28.jointStacks)(extendStack, childExtendStack);
16567
16580
  } else if (extendLength) {
16568
16581
  stack = extendStack;
16569
16582
  } else if (childExtendLength) {
@@ -16572,22 +16585,22 @@ var require_extend = __commonJS({
16572
16585
  return element;
16573
16586
  if (context.defaultExtends) {
16574
16587
  if (!mainExtend) {
16575
- const defaultOptionsExtend = (0, import_utils29.getExtendStack)(context.defaultExtends, context);
16576
- mainExtend = (0, import_utils29.cloneAndMergeArrayExtend)(defaultOptionsExtend);
16588
+ const defaultOptionsExtend = (0, import_utils28.getExtendStack)(context.defaultExtends, context);
16589
+ mainExtend = (0, import_utils28.cloneAndMergeArrayExtend)(defaultOptionsExtend);
16577
16590
  delete mainExtend.extend;
16578
16591
  }
16579
16592
  stack = [].concat(stack, mainExtend);
16580
16593
  }
16581
16594
  if (__ref)
16582
16595
  __ref.__extend = stack;
16583
- let mergedExtend = (0, import_utils29.cloneAndMergeArrayExtend)(stack);
16596
+ let mergedExtend = (0, import_utils28.cloneAndMergeArrayExtend)(stack);
16584
16597
  const COMPONENTS = context && context.components || options.components;
16585
- const component = (0, import_utils28.exec)(element.component || mergedExtend.component, element);
16598
+ const component = (0, import_utils27.exec)(element.component || mergedExtend.component, element);
16586
16599
  if (component && COMPONENTS && COMPONENTS[component]) {
16587
- const componentExtend = (0, import_utils29.cloneAndMergeArrayExtend)((0, import_utils29.getExtendStack)(COMPONENTS[component]));
16588
- mergedExtend = (0, import_utils29.deepMergeExtend)(componentExtend, mergedExtend);
16600
+ const componentExtend = (0, import_utils28.cloneAndMergeArrayExtend)((0, import_utils28.getExtendStack)(COMPONENTS[component]));
16601
+ mergedExtend = (0, import_utils28.deepMergeExtend)(componentExtend, mergedExtend);
16589
16602
  }
16590
- const merged = (0, import_utils29.deepMergeExtend)(element, mergedExtend);
16603
+ const merged = (0, import_utils28.deepMergeExtend)(element, mergedExtend);
16591
16604
  return merged;
16592
16605
  };
16593
16606
  }
@@ -16621,7 +16634,7 @@ var require_component2 = __commonJS({
16621
16634
  overwriteVariant: () => overwriteVariant
16622
16635
  });
16623
16636
  module2.exports = __toCommonJS2(component_exports);
16624
- var import_utils28 = require_cjs();
16637
+ var import_utils27 = require_cjs();
16625
16638
  var import_extend = require_extend();
16626
16639
  var import_mixins = require_mixins();
16627
16640
  var replaceOnKeys = (key) => key.replace(/on\w+/g, (match3) => match3.substring(2));
@@ -16642,7 +16655,7 @@ var require_component2 = __commonJS({
16642
16655
  if (isDefine) {
16643
16656
  newElem.define[k] = prop;
16644
16657
  }
16645
- const isComponent = (0, import_utils28.checkIfKeyIsComponent)(k);
16658
+ const isComponent = (0, import_utils27.checkIfKeyIsComponent)(k);
16646
16659
  const isRegistry = import_mixins.REGISTRY[k];
16647
16660
  if (isComponent || isRegistry) {
16648
16661
  newElem[k] = prop;
@@ -16656,25 +16669,25 @@ var require_component2 = __commonJS({
16656
16669
  let variantElement = element[variant];
16657
16670
  if (!variantElement)
16658
16671
  return;
16659
- const props4 = (0, import_utils28.isObject)(variantProps) ? variantProps : {};
16660
- if ((0, import_utils28.isString)(variantElement)) {
16672
+ const props4 = (0, import_utils27.isObject)(variantProps) ? variantProps : {};
16673
+ if ((0, import_utils27.isString)(variantElement)) {
16661
16674
  variantElement = {
16662
16675
  extend: [{ props: props4 }, variantElement]
16663
16676
  };
16664
16677
  } else if (variantElement.extend) {
16665
- variantElement = (0, import_utils28.addAdditionalExtend)({ props: props4 }, variantElement);
16678
+ variantElement = (0, import_utils27.addAdditionalExtend)({ props: props4 }, variantElement);
16666
16679
  }
16667
16680
  const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
16668
16681
  const { parent, ...rest } = extendedVariant;
16669
- return (0, import_utils28.overwriteDeep)(element, rest);
16682
+ return (0, import_utils27.overwriteDeep)(element, rest);
16670
16683
  };
16671
16684
  var applyVariant = (element) => {
16672
16685
  const { props: props4 } = element;
16673
- if (!(0, import_utils28.hasVariantProp)(element))
16686
+ if (!(0, import_utils27.hasVariantProp)(element))
16674
16687
  return element;
16675
16688
  const { variant } = props4;
16676
16689
  overwriteVariant(element, `.${variant}`);
16677
- const elKeys = Object.keys(element).filter((key) => (0, import_utils28.isVariant)(key));
16690
+ const elKeys = Object.keys(element).filter((key) => (0, import_utils27.isVariant)(key));
16678
16691
  elKeys.forEach((variant2) => {
16679
16692
  const slicedVariantElementKey = variant2.slice(1);
16680
16693
  const variantElementProps = props4[slicedVariantElementKey];
@@ -16739,20 +16752,20 @@ var require_attr = __commonJS({
16739
16752
  default: () => attr_default
16740
16753
  });
16741
16754
  module2.exports = __toCommonJS2(attr_exports);
16742
- var import_utils28 = require_cjs();
16755
+ var import_utils27 = require_cjs();
16743
16756
  var import_report = require_cjs5();
16744
- var import_utils29 = require_utils();
16757
+ var import_utils28 = require_utils();
16745
16758
  function attr(params, element, node3) {
16746
16759
  const { __ref: ref, props: props4 } = element;
16747
16760
  const { __attr } = ref;
16748
- if ((0, import_utils28.isNot)("object"))
16761
+ if ((0, import_utils27.isNot)("object"))
16749
16762
  (0, import_report.report)("HTMLInvalidAttr", params);
16750
16763
  if (params) {
16751
16764
  if (props4.attr)
16752
- (0, import_utils29.deepMerge)(params, props4.attr);
16765
+ (0, import_utils28.deepMerge)(params, props4.attr);
16753
16766
  for (const attr2 in params) {
16754
- const val = (0, import_utils28.exec)(params[attr2], element);
16755
- if (val !== false && !(0, import_utils28.isUndefined)(val) && !(0, import_utils28.isNull)(val) && node3.setAttribute)
16767
+ const val = (0, import_utils27.exec)(params[attr2], element);
16768
+ if (val !== false && !(0, import_utils27.isUndefined)(val) && !(0, import_utils27.isNull)(val) && node3.setAttribute)
16756
16769
  node3.setAttribute(attr2, val);
16757
16770
  else if (node3.removeAttribute)
16758
16771
  node3.removeAttribute(attr2);
@@ -16795,7 +16808,7 @@ var require_classList = __commonJS({
16795
16808
  default: () => classList_default
16796
16809
  });
16797
16810
  module2.exports = __toCommonJS2(classList_exports);
16798
- var import_utils28 = require_cjs();
16811
+ var import_utils27 = require_cjs();
16799
16812
  var assignKeyAsClassname = (element) => {
16800
16813
  const { key } = element;
16801
16814
  if (element.class === true)
@@ -16813,7 +16826,7 @@ var require_classList = __commonJS({
16813
16826
  else if (typeof param === "string")
16814
16827
  className += ` ${param}`;
16815
16828
  else if (typeof param === "function") {
16816
- className += ` ${(0, import_utils28.exec)(param, element)}`;
16829
+ className += ` ${(0, import_utils27.exec)(param, element)}`;
16817
16830
  }
16818
16831
  }
16819
16832
  return className;
@@ -16824,9 +16837,9 @@ var require_classList = __commonJS({
16824
16837
  const { key } = element;
16825
16838
  if (params === true)
16826
16839
  params = element.class = { key };
16827
- if ((0, import_utils28.isString)(params))
16840
+ if ((0, import_utils27.isString)(params))
16828
16841
  params = element.class = { default: params };
16829
- if ((0, import_utils28.isObject)(params))
16842
+ if ((0, import_utils27.isObject)(params))
16830
16843
  params = classify2(params, element);
16831
16844
  const className = params.replace(/\s+/g, " ").trim();
16832
16845
  if (element.ref)
@@ -16906,7 +16919,7 @@ var require_set = __commonJS({
16906
16919
  set: () => set3
16907
16920
  });
16908
16921
  module2.exports = __toCommonJS2(set_exports);
16909
- var import_utils28 = require_cjs();
16922
+ var import_utils27 = require_cjs();
16910
16923
  var import_options3 = require_options();
16911
16924
  var import_create = require_create4();
16912
16925
  var import_mixins = require_mixins();
@@ -16936,13 +16949,13 @@ var require_set = __commonJS({
16936
16949
  var _a;
16937
16950
  const element = el || this;
16938
16951
  const { __ref: ref } = element;
16939
- const content = (0, import_utils28.setContentKey)(element, options);
16952
+ const content = (0, import_utils27.setContentKey)(element, options);
16940
16953
  const __contentRef = content && content.__ref;
16941
16954
  const lazyLoad = element.props && element.props.lazyLoad;
16942
16955
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
16943
16956
  if (options.preventContentUpdate === true && !hasCollection)
16944
16957
  return;
16945
- if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils28.deepContains)(params, content)) {
16958
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils27.deepContains)(params, content)) {
16946
16959
  if (!options.preventBeforeUpdateListener && !options.preventListeners) {
16947
16960
  const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
16948
16961
  if (beforeUpdateReturns === false)
@@ -17003,7 +17016,7 @@ var require_content = __commonJS({
17003
17016
  updateContent: () => updateContent
17004
17017
  });
17005
17018
  module2.exports = __toCommonJS2(content_exports);
17006
- var import_utils28 = require_cjs();
17019
+ var import_utils27 = require_cjs();
17007
17020
  var import_set = require_set();
17008
17021
  var updateContent = function(params, options) {
17009
17022
  const element = this;
@@ -17017,7 +17030,7 @@ var require_content = __commonJS({
17017
17030
  var removeContent = function(el, opts = {}) {
17018
17031
  const element = el || this;
17019
17032
  const { __ref: ref } = element;
17020
- const contentElementKey = (0, import_utils28.setContentKey)(element, opts);
17033
+ const contentElementKey = (0, import_utils27.setContentKey)(element, opts);
17021
17034
  if (opts.contentElementKey !== "content")
17022
17035
  opts.contentElementKey = "content";
17023
17036
  if (element[contentElementKey]) {
@@ -17034,14 +17047,14 @@ var require_content = __commonJS({
17034
17047
  if (__cached && __cached[contentElementKey]) {
17035
17048
  if (__cached[contentElementKey].tag === "fragment")
17036
17049
  __cached[contentElementKey].parent.node.innerHTML = "";
17037
- else if (__cached[contentElementKey] && (0, import_utils28.isFunction)(__cached[contentElementKey].remove))
17050
+ else if (__cached[contentElementKey] && (0, import_utils27.isFunction)(__cached[contentElementKey].remove))
17038
17051
  __cached[contentElementKey].remove();
17039
17052
  }
17040
17053
  delete element[contentElementKey];
17041
17054
  }
17042
17055
  };
17043
17056
  function setContent(param, element, node3, opts) {
17044
- const contentElementKey = (0, import_utils28.setContentKey)(element, opts);
17057
+ const contentElementKey = (0, import_utils27.setContentKey)(element, opts);
17045
17058
  if (param && element) {
17046
17059
  if (element[contentElementKey].update) {
17047
17060
  element[contentElementKey].update({}, opts);
@@ -17081,18 +17094,18 @@ var require_data = __commonJS({
17081
17094
  default: () => data_default
17082
17095
  });
17083
17096
  module2.exports = __toCommonJS2(data_exports);
17084
- var import_utils28 = require_cjs();
17097
+ var import_utils27 = require_cjs();
17085
17098
  var import_report = require_cjs5();
17086
17099
  function data(params, element, node3) {
17087
17100
  if (params) {
17088
17101
  if (element.props.data)
17089
- (0, import_utils28.deepMerge)(params, element.props.data);
17102
+ (0, import_utils27.deepMerge)(params, element.props.data);
17090
17103
  if (params.showOnNode) {
17091
- if (!(0, import_utils28.isObject)(params))
17104
+ if (!(0, import_utils27.isObject)(params))
17092
17105
  (0, import_report.report)("HTMLInvalidData", params);
17093
17106
  for (const dataset in params) {
17094
17107
  if (dataset !== "showOnNode") {
17095
- node3.dataset[dataset] = (0, import_utils28.exec)(params[dataset], element);
17108
+ node3.dataset[dataset] = (0, import_utils27.exec)(params[dataset], element);
17096
17109
  }
17097
17110
  }
17098
17111
  }
@@ -17129,10 +17142,10 @@ var require_html = __commonJS({
17129
17142
  html: () => html
17130
17143
  });
17131
17144
  module2.exports = __toCommonJS2(html_exports);
17132
- var import_utils28 = require_cjs();
17145
+ var import_utils27 = require_cjs();
17133
17146
  function html(param, element, node3) {
17134
17147
  var _a;
17135
- const prop = (0, import_utils28.exec)(param, element) || (0, import_utils28.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
17148
+ const prop = (0, import_utils27.exec)(param, element) || (0, import_utils27.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
17136
17149
  const { __ref } = element;
17137
17150
  if (prop !== __ref.__html) {
17138
17151
  if (node3.nodeName === "SVG")
@@ -17173,12 +17186,12 @@ var require_style = __commonJS({
17173
17186
  style: () => style2
17174
17187
  });
17175
17188
  module2.exports = __toCommonJS2(style_exports);
17176
- var import_utils28 = require_cjs();
17189
+ var import_utils27 = require_cjs();
17177
17190
  var import_report = require_cjs5();
17178
17191
  function style2(params, element, node3) {
17179
17192
  if (params) {
17180
- if ((0, import_utils28.isObject)(params))
17181
- (0, import_utils28.map)(node3.style, params, element);
17193
+ if ((0, import_utils27.isObject)(params))
17194
+ (0, import_utils27.map)(node3.style, params, element);
17182
17195
  else
17183
17196
  (0, import_report.report)("HTMLInvalidStyles", params);
17184
17197
  }
@@ -17215,11 +17228,11 @@ var require_text = __commonJS({
17215
17228
  });
17216
17229
  module2.exports = __toCommonJS2(text_exports);
17217
17230
  var import_create = require_create4();
17218
- var import_utils28 = require_cjs();
17231
+ var import_utils27 = require_cjs();
17219
17232
  function text(param, element, node3) {
17220
- let prop = (0, import_utils28.exec)(param, element);
17221
- if ((0, import_utils28.isString)(prop) && prop.includes("{{")) {
17222
- prop = (0, import_utils28.replaceLiteralsWithObjectFields)(prop, element.state);
17233
+ let prop = (0, import_utils27.exec)(param, element);
17234
+ if ((0, import_utils27.isString)(prop) && prop.includes("{{")) {
17235
+ prop = (0, import_utils27.replaceLiteralsWithObjectFields)(prop, element.state);
17223
17236
  }
17224
17237
  if (element.tag === "string") {
17225
17238
  node3.nodeValue = prop;
@@ -17266,10 +17279,10 @@ var require_state = __commonJS({
17266
17279
  });
17267
17280
  module2.exports = __toCommonJS2(state_exports);
17268
17281
  var import_state2 = require_cjs8();
17269
- var import_utils28 = require_cjs();
17282
+ var import_utils27 = require_cjs();
17270
17283
  function state(params, element, node3) {
17271
- const state2 = (0, import_utils28.exec)(params, element);
17272
- if ((0, import_utils28.isObject)(state2)) {
17284
+ const state2 = (0, import_utils27.exec)(params, element);
17285
+ if ((0, import_utils27.isObject)(state2)) {
17273
17286
  for (const param in state2) {
17274
17287
  if (import_state2.IGNORE_STATE_PARAMS.includes(param))
17275
17288
  continue;
@@ -17310,13 +17323,13 @@ var require_scope = __commonJS({
17310
17323
  scope: () => scope
17311
17324
  });
17312
17325
  module2.exports = __toCommonJS2(scope_exports);
17313
- var import_utils28 = require_cjs();
17326
+ var import_utils27 = require_cjs();
17314
17327
  function scope(params, element, node3) {
17315
- if (!(0, import_utils28.isObject)(params))
17328
+ if (!(0, import_utils27.isObject)(params))
17316
17329
  return;
17317
17330
  for (const scopeItem in params) {
17318
17331
  const value2 = params[scopeItem];
17319
- if ((0, import_utils28.isFunction)(value2)) {
17332
+ if ((0, import_utils27.isFunction)(value2)) {
17320
17333
  element.scope[scopeItem] = value2.bind(element);
17321
17334
  } else {
17322
17335
  element.scope[scopeItem] = value2;
@@ -17545,7 +17558,7 @@ var require_methods2 = __commonJS({
17545
17558
  warn: () => warn
17546
17559
  });
17547
17560
  module2.exports = __toCommonJS2(methods_exports);
17548
- var import_utils28 = require_cjs();
17561
+ var import_utils27 = require_cjs();
17549
17562
  var import_tree = require_tree();
17550
17563
  var import_mixins = require_mixins();
17551
17564
  var ENV3 = "development";
@@ -17568,7 +17581,7 @@ var require_methods2 = __commonJS({
17568
17581
  function lookup3(param) {
17569
17582
  const el = this;
17570
17583
  let { parent } = el;
17571
- if ((0, import_utils28.isFunction)(param)) {
17584
+ if ((0, import_utils27.isFunction)(param)) {
17572
17585
  if (parent.state && param(parent, parent.state, parent.context))
17573
17586
  return parent;
17574
17587
  else if (parent.parent)
@@ -17597,7 +17610,7 @@ var require_methods2 = __commonJS({
17597
17610
  const childElem = el[v];
17598
17611
  if (v === param)
17599
17612
  return childElem;
17600
- else if ((0, import_utils28.isFunction)(param)) {
17613
+ else if ((0, import_utils27.isFunction)(param)) {
17601
17614
  const exec6 = param(childElem, childElem.state, childElem.context);
17602
17615
  if (childElem.state && exec6) {
17603
17616
  return childElem;
@@ -17618,7 +17631,7 @@ var require_methods2 = __commonJS({
17618
17631
  const childElem = el[v];
17619
17632
  if (v === param)
17620
17633
  results.push(childElem);
17621
- else if ((0, import_utils28.isFunction)(param)) {
17634
+ else if ((0, import_utils27.isFunction)(param)) {
17622
17635
  const exec6 = param(childElem, childElem.state, childElem.context);
17623
17636
  if (childElem.state && exec6)
17624
17637
  results.push(childElem);
@@ -17635,7 +17648,7 @@ var require_methods2 = __commonJS({
17635
17648
  for (const param in params) {
17636
17649
  const value2 = params[param];
17637
17650
  const childElem = el[param];
17638
- if ((0, import_utils28.isObject)(value2) && childElem)
17651
+ if ((0, import_utils27.isObject)(value2) && childElem)
17639
17652
  setNodeStyles.call(childElem, value2);
17640
17653
  else
17641
17654
  el.node.style[param] = value2;
@@ -17644,15 +17657,15 @@ var require_methods2 = __commonJS({
17644
17657
  }
17645
17658
  function remove() {
17646
17659
  const element = this;
17647
- if ((0, import_utils28.isFunction)(element.node.remove))
17660
+ if ((0, import_utils27.isFunction)(element.node.remove))
17648
17661
  element.node.remove();
17649
- else if (!(0, import_utils28.isProduction)()) {
17662
+ else if (!(0, import_utils27.isProduction)()) {
17650
17663
  console.warn("This item cant be removed");
17651
17664
  element.log();
17652
17665
  }
17653
17666
  delete element.parent[element.key];
17654
17667
  if (element.parent.__ref)
17655
- element.parent.__ref.__children = (0, import_utils28.removeValueFromArray)(element.parent.__ref.__children, element.key);
17668
+ element.parent.__ref.__children = (0, import_utils27.removeValueFromArray)(element.parent.__ref.__children, element.key);
17656
17669
  }
17657
17670
  function get(param) {
17658
17671
  const element = this;
@@ -17694,8 +17707,8 @@ var require_methods2 = __commonJS({
17694
17707
  if (v === "state") {
17695
17708
  if (element.__ref && !element.__ref.__hasRootState)
17696
17709
  return;
17697
- const parsedVal = (0, import_utils28.isFunction)(val && val.parse) ? val.parse() : val;
17698
- obj[v] = (0, import_utils28.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
17710
+ const parsedVal = (0, import_utils27.isFunction)(val && val.parse) ? val.parse() : val;
17711
+ obj[v] = (0, import_utils27.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
17699
17712
  } else if (v === "scope") {
17700
17713
  if (element.__ref && !element.__ref.__hasRootScope)
17701
17714
  return;
@@ -17703,7 +17716,7 @@ var require_methods2 = __commonJS({
17703
17716
  } else if (v === "props") {
17704
17717
  const { __element, update, ...props4 } = element[v];
17705
17718
  obj[v] = props4;
17706
- } else if ((0, import_utils28.isDefined)(val) && Object.hasOwnProperty.call(element, v))
17719
+ } else if ((0, import_utils27.isDefined)(val) && Object.hasOwnProperty.call(element, v))
17707
17720
  obj[v] = val;
17708
17721
  });
17709
17722
  return obj;
@@ -17714,7 +17727,7 @@ var require_methods2 = __commonJS({
17714
17727
  for (const v in obj) {
17715
17728
  if (excl.includes(v))
17716
17729
  return;
17717
- if ((0, import_utils28.isObjectLike)(obj[v])) {
17730
+ if ((0, import_utils27.isObjectLike)(obj[v])) {
17718
17731
  obj[v] = parseDeep.call(obj[v], excl);
17719
17732
  }
17720
17733
  }
@@ -17794,7 +17807,7 @@ var require_methods2 = __commonJS({
17794
17807
  changed: (cb) => {
17795
17808
  if (!changed)
17796
17809
  return;
17797
- const returns = cb(changes, (0, import_utils28.deepClone)(varCaches));
17810
+ const returns = cb(changes, (0, import_utils27.deepClone)(varCaches));
17798
17811
  for (const key in changes) {
17799
17812
  varCaches[key] = changes[key];
17800
17813
  }
@@ -17874,8 +17887,8 @@ var require_iterate = __commonJS({
17874
17887
  throughUpdatedExec: () => throughUpdatedExec
17875
17888
  });
17876
17889
  module2.exports = __toCommonJS2(iterate_exports);
17877
- var import_utils28 = require_cjs();
17878
- var import_utils29 = require_utils();
17890
+ var import_utils27 = require_cjs();
17891
+ var import_utils28 = require_utils();
17879
17892
  var import_methods = require_methods2();
17880
17893
  var throughInitialExec = (element, exclude = {}) => {
17881
17894
  const { __ref: ref } = element;
@@ -17883,13 +17896,13 @@ var require_iterate = __commonJS({
17883
17896
  if (exclude[param])
17884
17897
  continue;
17885
17898
  const prop = element[param];
17886
- if ((0, import_utils28.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils28.isVariant)(param)) {
17899
+ if ((0, import_utils27.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils27.isVariant)(param)) {
17887
17900
  ref.__exec[param] = prop;
17888
17901
  element[param] = prop(element, element.state, element.context);
17889
17902
  }
17890
17903
  }
17891
17904
  };
17892
- var throughUpdatedExec = (element, options = { excludes: import_utils29.METHODS_EXL }) => {
17905
+ var throughUpdatedExec = (element, options = { excludes: import_utils28.METHODS_EXL }) => {
17893
17906
  const { __ref: ref } = element;
17894
17907
  const changes = {};
17895
17908
  for (const param in ref.__exec) {
@@ -17898,13 +17911,13 @@ var require_iterate = __commonJS({
17898
17911
  if (isDefinedParam)
17899
17912
  continue;
17900
17913
  const newExec = ref.__exec[param](element, element.state, element.context);
17901
- const execReturnsString = (0, import_utils28.isString)(newExec) || (0, import_utils28.isNumber)(newExec);
17914
+ const execReturnsString = (0, import_utils27.isString)(newExec) || (0, import_utils27.isNumber)(newExec);
17902
17915
  if (prop && prop.node && execReturnsString) {
17903
- (0, import_utils29.overwrite)(prop, { text: newExec }, options);
17916
+ (0, import_utils28.overwrite)(prop, { text: newExec }, options);
17904
17917
  } else if (newExec !== prop) {
17905
- if ((0, import_utils28.checkIfKeyIsComponent)(param)) {
17906
- const { extend, ...newElem } = (0, import_utils28.extendizeByKey)(newExec, element, param);
17907
- (0, import_utils29.overwrite)(prop, newElem, options);
17918
+ if ((0, import_utils27.checkIfKeyIsComponent)(param)) {
17919
+ const { extend, ...newElem } = (0, import_utils27.extendizeByKey)(newExec, element, param);
17920
+ (0, import_utils28.overwrite)(prop, newElem, options);
17908
17921
  } else {
17909
17922
  ref.__cached[param] = changes[param] = prop;
17910
17923
  element[param] = newExec;
@@ -17919,27 +17932,27 @@ var require_iterate = __commonJS({
17919
17932
  for (const k in props4) {
17920
17933
  const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
17921
17934
  const cachedExecProp = ref.__execProps[k];
17922
- if ((0, import_utils28.isFunction)(cachedExecProp)) {
17923
- props4[k] = (0, import_utils28.exec)(cachedExecProp, element);
17924
- } else if (isDefine && (0, import_utils28.isFunction)(props4[k])) {
17935
+ if ((0, import_utils27.isFunction)(cachedExecProp)) {
17936
+ props4[k] = (0, import_utils27.exec)(cachedExecProp, element);
17937
+ } else if (isDefine && (0, import_utils27.isFunction)(props4[k])) {
17925
17938
  ref.__execProps[k] = props4[k];
17926
- props4[k] = (0, import_utils28.exec)(props4[k], element);
17939
+ props4[k] = (0, import_utils27.exec)(props4[k], element);
17927
17940
  }
17928
17941
  }
17929
17942
  };
17930
17943
  var throughInitialDefine = (element) => {
17931
17944
  const { define, context, __ref: ref } = element;
17932
17945
  let defineObj = {};
17933
- const hasGlobalDefine = context && (0, import_utils28.isObject)(context.define);
17934
- if ((0, import_utils28.isObject)(define))
17946
+ const hasGlobalDefine = context && (0, import_utils27.isObject)(context.define);
17947
+ if ((0, import_utils27.isObject)(define))
17935
17948
  defineObj = { ...define };
17936
17949
  if (hasGlobalDefine)
17937
17950
  defineObj = { ...defineObj, ...context.define };
17938
17951
  for (const param in defineObj) {
17939
17952
  let elementProp = element[param];
17940
- if ((0, import_utils28.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils28.isVariant)(param)) {
17953
+ if ((0, import_utils27.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils27.isVariant)(param)) {
17941
17954
  ref.__exec[param] = elementProp;
17942
- const execParam2 = elementProp = (0, import_utils28.exec)(elementProp, element);
17955
+ const execParam2 = elementProp = (0, import_utils27.exec)(elementProp, element);
17943
17956
  if (execParam2) {
17944
17957
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
17945
17958
  ref.__defineCache[param] = elementProp;
@@ -17955,15 +17968,15 @@ var require_iterate = __commonJS({
17955
17968
  const { context, define, __ref: ref } = element;
17956
17969
  const changes = {};
17957
17970
  let obj = {};
17958
- if ((0, import_utils28.isObject)(define))
17971
+ if ((0, import_utils27.isObject)(define))
17959
17972
  obj = { ...define };
17960
- if ((0, import_utils28.isObject)(context && context.define))
17973
+ if ((0, import_utils27.isObject)(context && context.define))
17961
17974
  obj = { ...obj, ...context.define };
17962
17975
  for (const param in obj) {
17963
17976
  const execParam = ref.__exec[param];
17964
17977
  if (execParam)
17965
17978
  ref.__defineCache[param] = execParam(element, element.state, element.context);
17966
- const cached = (0, import_utils28.exec)(ref.__defineCache[param], element);
17979
+ const cached = (0, import_utils27.exec)(ref.__defineCache[param], element);
17967
17980
  const newExecParam = obj[param](cached, element, element.state, element.context);
17968
17981
  if (newExecParam)
17969
17982
  element[param] = newExecParam;
@@ -17999,7 +18012,7 @@ var require_applyParam = __commonJS({
17999
18012
  applyParam: () => applyParam
18000
18013
  });
18001
18014
  module2.exports = __toCommonJS2(applyParam_exports);
18002
- var import_utils28 = require_cjs();
18015
+ var import_utils27 = require_cjs();
18003
18016
  var import_mixins = require_mixins();
18004
18017
  var applyParam = (param, element, options) => {
18005
18018
  const { node: node3, context, __ref: ref } = element;
@@ -18014,7 +18027,7 @@ var require_applyParam = __commonJS({
18014
18027
  return;
18015
18028
  const hasOnlyUpdate = onlyUpdate ? onlyUpdate === param || element.lookup(onlyUpdate) : true;
18016
18029
  if (isGlobalTransformer && !hasContextDefine && hasOnlyUpdate) {
18017
- if ((0, import_utils28.isFunction)(isGlobalTransformer)) {
18030
+ if ((0, import_utils27.isFunction)(isGlobalTransformer)) {
18018
18031
  isGlobalTransformer(prop, element, node3, options);
18019
18032
  return;
18020
18033
  }
@@ -18050,15 +18063,15 @@ var require_propEvents = __commonJS({
18050
18063
  propagateEventsFromProps: () => propagateEventsFromProps
18051
18064
  });
18052
18065
  module2.exports = __toCommonJS2(propEvents_exports);
18053
- var import_utils28 = require_cjs();
18066
+ var import_utils27 = require_cjs();
18054
18067
  var propagateEventsFromProps = (element) => {
18055
18068
  const { props: props4, on: on2 } = element;
18056
18069
  const eventKeysFromProps = Object.keys(props4).filter((key) => key.startsWith("on"));
18057
18070
  eventKeysFromProps.forEach((v) => {
18058
- const eventName = (0, import_utils28.lowercaseFirstLetter)(v.split("on")[1]);
18071
+ const eventName = (0, import_utils27.lowercaseFirstLetter)(v.split("on")[1]);
18059
18072
  const origEvent = on2[eventName];
18060
18073
  const funcFromProps = props4[v];
18061
- if ((0, import_utils28.isFunction)(origEvent)) {
18074
+ if ((0, import_utils27.isFunction)(origEvent)) {
18062
18075
  on2[eventName] = (...args) => {
18063
18076
  const originalEventRetunrs = origEvent(...args);
18064
18077
  if (originalEventRetunrs !== false)
@@ -18108,7 +18121,7 @@ var require_node2 = __commonJS({
18108
18121
  default: () => node_default
18109
18122
  });
18110
18123
  module2.exports = __toCommonJS2(node_exports);
18111
- var import_utils28 = require_cjs();
18124
+ var import_utils27 = require_cjs();
18112
18125
  var import_event = require_cjs6();
18113
18126
  var import_render = require_cjs11();
18114
18127
  var import_methods = require_methods2();
@@ -18133,7 +18146,7 @@ var require_node2 = __commonJS({
18133
18146
  }
18134
18147
  if (ENV3 === "test" || ENV3 === "development" || options.alowRefReference) {
18135
18148
  node3.ref = element;
18136
- if ((0, import_utils28.isFunction)(node3.setAttribute))
18149
+ if ((0, import_utils27.isFunction)(node3.setAttribute))
18137
18150
  node3.setAttribute("key", element.key);
18138
18151
  }
18139
18152
  (0, import_iterate.throughExecProps)(element);
@@ -18142,7 +18155,7 @@ var require_node2 = __commonJS({
18142
18155
  if (element.tag !== "string" && element.tag !== "fragment") {
18143
18156
  (0, import_propEvents.propagateEventsFromProps)(element);
18144
18157
  (0, import_event.applyAnimationFrame)(element, options);
18145
- if (isNewNode && (0, import_utils28.isObject)(element.on)) {
18158
+ if (isNewNode && (0, import_utils27.isObject)(element.on)) {
18146
18159
  (0, import_event.applyEventsOnNode)(element, options);
18147
18160
  }
18148
18161
  }
@@ -18150,14 +18163,14 @@ var require_node2 = __commonJS({
18150
18163
  const value2 = element[param];
18151
18164
  if (!Object.hasOwnProperty.call(element, param))
18152
18165
  continue;
18153
- if ((0, import_utils28.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils28.isVariant)(param) || (0, import_utils28.isObject)(import_mixins.REGISTRY[param]))
18166
+ if ((0, import_utils27.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils27.isVariant)(param) || (0, import_utils27.isObject)(import_mixins.REGISTRY[param]))
18154
18167
  continue;
18155
18168
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
18156
18169
  if (isElement) {
18157
18170
  const { hasDefine, hasContextDefine } = isElement;
18158
18171
  if (element[param] && !hasDefine && !hasContextDefine) {
18159
18172
  const createAsync2 = () => {
18160
- (0, import_create.default)((0, import_utils28.exec)(value2, element), element, param, options);
18173
+ (0, import_create.default)((0, import_utils27.exec)(value2, element), element, param, options);
18161
18174
  };
18162
18175
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
18163
18176
  window.requestAnimationFrame(() => createAsync2());
@@ -18199,7 +18212,7 @@ var require_update2 = __commonJS({
18199
18212
  update: () => update
18200
18213
  });
18201
18214
  module2.exports = __toCommonJS2(update_exports);
18202
- var import_utils28 = require_cjs();
18215
+ var import_utils27 = require_cjs();
18203
18216
  var import_event = require_cjs6();
18204
18217
  var import_methods = require_methods2();
18205
18218
  var import_props = require_props();
@@ -18209,9 +18222,9 @@ var require_update2 = __commonJS({
18209
18222
  var import_mixins = require_mixins();
18210
18223
  var import_applyParam = require_applyParam();
18211
18224
  var import_options3 = require_options();
18212
- var import_utils29 = require_utils();
18225
+ var import_utils28 = require_utils();
18213
18226
  var snapshot = {
18214
- snapshotId: import_utils28.createSnapshotId
18227
+ snapshotId: import_utils27.createSnapshotId
18215
18228
  };
18216
18229
  var UPDATE_DEFAULT_OPTIONS = {
18217
18230
  stackChanges: false,
@@ -18219,11 +18232,11 @@ var require_update2 = __commonJS({
18219
18232
  preventRecursive: false,
18220
18233
  currentSnapshot: false,
18221
18234
  calleeElement: false,
18222
- excludes: import_utils29.METHODS_EXL
18235
+ excludes: import_utils28.METHODS_EXL
18223
18236
  };
18224
18237
  var update = function(params = {}, opts) {
18225
18238
  const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
18226
- const options = (0, import_utils28.deepClone)((0, import_utils28.isObject)(opts) ? (0, import_utils29.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, { exclude: ["calleeElement"] });
18239
+ const options = (0, import_utils27.deepClone)((0, import_utils27.isObject)(opts) ? (0, import_utils28.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, { exclude: ["calleeElement"] });
18227
18240
  options.calleeElement = calleeElementCache;
18228
18241
  const element = this;
18229
18242
  const { parent, node: node3, key } = element;
@@ -18239,8 +18252,8 @@ var require_update2 = __commonJS({
18239
18252
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
18240
18253
  return;
18241
18254
  if (!excludes)
18242
- (0, import_utils28.merge)(options, UPDATE_DEFAULT_OPTIONS);
18243
- if ((0, import_utils28.isString)(params) || (0, import_utils28.isNumber)(params)) {
18255
+ (0, import_utils27.merge)(options, UPDATE_DEFAULT_OPTIONS);
18256
+ if ((0, import_utils27.isString)(params) || (0, import_utils27.isNumber)(params)) {
18244
18257
  params = { text: params };
18245
18258
  }
18246
18259
  const inheritState = inheritStateUpdates(element, options);
@@ -18251,7 +18264,7 @@ var require_update2 = __commonJS({
18251
18264
  return;
18252
18265
  if (ref.__if && !options.preventPropsUpdate) {
18253
18266
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
18254
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils28.isFunction)(v));
18267
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils27.isFunction)(v));
18255
18268
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
18256
18269
  if (props4)
18257
18270
  (0, import_props.updateProps)(props4, element, parent);
@@ -18261,7 +18274,7 @@ var require_update2 = __commonJS({
18261
18274
  if (beforeUpdateReturns === false)
18262
18275
  return element;
18263
18276
  }
18264
- (0, import_utils28.overwriteDeep)(element, params, { exclude: import_utils29.METHODS_EXL });
18277
+ (0, import_utils27.overwriteDeep)(element, params, { exclude: import_utils28.METHODS_EXL });
18265
18278
  (0, import_iterate.throughExecProps)(element);
18266
18279
  (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
18267
18280
  (0, import_iterate.throughUpdatedDefine)(element);
@@ -18284,7 +18297,7 @@ var require_update2 = __commonJS({
18284
18297
  preventUpdateAfterCount
18285
18298
  } = options;
18286
18299
  if (preventUpdateAfter) {
18287
- if ((0, import_utils28.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
18300
+ if ((0, import_utils27.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
18288
18301
  return;
18289
18302
  else if (options.preventUpdateAfterCount === void 0)
18290
18303
  options.preventUpdateAfterCount = 1;
@@ -18298,17 +18311,17 @@ var require_update2 = __commonJS({
18298
18311
  }
18299
18312
  if (!Object.hasOwnProperty.call(element, param))
18300
18313
  continue;
18301
- const isInPreventUpdate = (0, import_utils28.isArray)(preventUpdate) && preventUpdate.includes(param);
18302
- const isInPreventDefineUpdate = (0, import_utils28.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
18314
+ const isInPreventUpdate = (0, import_utils27.isArray)(preventUpdate) && preventUpdate.includes(param);
18315
+ const isInPreventDefineUpdate = (0, import_utils27.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
18303
18316
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
18304
- if ((0, import_utils28.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils28.isObject)(import_mixins.REGISTRY[param]) || (0, import_utils28.isVariant)(param))
18317
+ if ((0, import_utils27.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils27.isObject)(import_mixins.REGISTRY[param]) || (0, import_utils27.isVariant)(param))
18305
18318
  continue;
18306
18319
  if (preventStateUpdate === "once")
18307
18320
  options.preventStateUpdate = false;
18308
18321
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
18309
18322
  if (isElement) {
18310
18323
  const { hasDefine, hasContextDefine } = isElement;
18311
- const canUpdate = (0, import_utils28.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
18324
+ const canUpdate = (0, import_utils27.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
18312
18325
  if (!canUpdate)
18313
18326
  continue;
18314
18327
  const lazyLoad = element.props.lazyLoad || options.lazyLoad;
@@ -18320,7 +18333,7 @@ var require_update2 = __commonJS({
18320
18333
  currentSnapshot: snapshotOnCallee,
18321
18334
  calleeElement
18322
18335
  });
18323
- lazyLoad ? import_utils28.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
18336
+ lazyLoad ? import_utils27.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
18324
18337
  }
18325
18338
  }
18326
18339
  if (!preventUpdateListener)
@@ -18343,7 +18356,7 @@ var require_update2 = __commonJS({
18343
18356
  };
18344
18357
  var checkIfOnUpdate = (element, parent, options) => {
18345
18358
  var _a, _b, _c;
18346
- if (!(0, import_utils28.isFunction)(element.if) && !(0, import_utils28.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
18359
+ if (!(0, import_utils27.isFunction)(element.if) && !(0, import_utils27.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
18347
18360
  return;
18348
18361
  const ref = element.__ref;
18349
18362
  const ifPassed = (element.if || ((_b = element.props) == null ? void 0 : _b.if))(element, element.state, element.context, options);
@@ -18384,7 +18397,7 @@ var require_update2 = __commonJS({
18384
18397
  delete element.__ref;
18385
18398
  delete element.parent;
18386
18399
  const createdElement = (0, import_create.create)(element, parent, element.key, import_options3.OPTIONS.create, attachOptions);
18387
- if (options.preventUpdate !== true && element.on && (0, import_utils28.isFunction)(element.on.update)) {
18400
+ if (options.preventUpdate !== true && element.on && (0, import_utils27.isFunction)(element.on.update)) {
18388
18401
  (0, import_event.applyEvent)(element.on.update, createdElement, createdElement.state);
18389
18402
  }
18390
18403
  return createdElement;
@@ -18405,9 +18418,9 @@ var require_update2 = __commonJS({
18405
18418
  element.state = parent && parent.state || {};
18406
18419
  return;
18407
18420
  }
18408
- const shouldForceFunctionState = (0, import_utils28.isFunction)(stateKey) && !isHoisted && execStateFunction;
18421
+ const shouldForceFunctionState = (0, import_utils27.isFunction)(stateKey) && !isHoisted && execStateFunction;
18409
18422
  if (shouldForceFunctionState) {
18410
- const execState = (0, import_utils28.exec)(stateKey, element);
18423
+ const execState = (0, import_utils27.exec)(stateKey, element);
18411
18424
  state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true });
18412
18425
  return;
18413
18426
  }
@@ -18465,7 +18478,7 @@ var require_set2 = __commonJS({
18465
18478
  addMethods: () => addMethods
18466
18479
  });
18467
18480
  module2.exports = __toCommonJS2(set_exports);
18468
- var import_utils28 = require_cjs();
18481
+ var import_utils27 = require_cjs();
18469
18482
  var import_set = require_set();
18470
18483
  var import_update = require_update2();
18471
18484
  var import__ = require_methods2();
@@ -18498,7 +18511,7 @@ var require_set2 = __commonJS({
18498
18511
  error: import__.error
18499
18512
  };
18500
18513
  if (element.context.methods)
18501
- (options.strict ? import_utils28.merge : import_utils28.overwrite)(proto, element.context.methods);
18514
+ (options.strict ? import_utils27.merge : import_utils27.overwrite)(proto, element.context.methods);
18502
18515
  Object.setPrototypeOf(element, proto);
18503
18516
  };
18504
18517
  }
@@ -18543,7 +18556,7 @@ var require_create4 = __commonJS({
18543
18556
  module2.exports = __toCommonJS2(create_exports);
18544
18557
  var import_node = __toESM2(require_node2(), 1);
18545
18558
  var import_tree = require_tree();
18546
- var import_utils28 = require_cjs();
18559
+ var import_utils27 = require_cjs();
18547
18560
  var import_event = require_cjs6();
18548
18561
  var import_render = require_cjs11();
18549
18562
  var import_state2 = require_cjs8();
@@ -18566,9 +18579,9 @@ var require_create4 = __commonJS({
18566
18579
  parent = redefineParent(element, parent, key);
18567
18580
  key = createKey(element, parent, key);
18568
18581
  const ref = addRef(element, parent, key);
18569
- ref.__initialProps = (0, import_utils28.deepClone)(element.props);
18582
+ ref.__initialProps = (0, import_utils27.deepClone)(element.props);
18570
18583
  applyContext(element, parent, options);
18571
- (0, import_utils28.applyComponentFromContext)(element, parent, options);
18584
+ (0, import_utils27.applyComponentFromContext)(element, parent, options);
18572
18585
  if (!ref.__skipCreate) {
18573
18586
  (0, import_extend.applyExtend)(element, parent, options);
18574
18587
  }
@@ -18597,7 +18610,7 @@ var require_create4 = __commonJS({
18597
18610
  return element;
18598
18611
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
18599
18612
  (0, import_classList.assignKeyAsClassname)(element);
18600
- (0, import_utils28.addChildrenIfNotInOriginal)(element, parent, key);
18613
+ (0, import_utils27.addChildrenIfNotInOriginal)(element, parent, key);
18601
18614
  renderElement(element, parent, options, attachOptions);
18602
18615
  addElementIntoParentChildren(element, parent);
18603
18616
  (0, import_event.triggerEventOn)("complete", element, options);
@@ -18610,7 +18623,7 @@ var require_create4 = __commonJS({
18610
18623
  }
18611
18624
  return {};
18612
18625
  }
18613
- if ((0, import_utils28.isString)(key) && key.slice(0, 2 === "__")) {
18626
+ if ((0, import_utils27.isString)(key) && key.slice(0, 2 === "__")) {
18614
18627
  if (ENV3 === "test" || ENV3 === "development") {
18615
18628
  console.warn(key, "seems like to be in __ref");
18616
18629
  }
@@ -18632,8 +18645,8 @@ var require_create4 = __commonJS({
18632
18645
  else
18633
18646
  element.syntaxv3 = true;
18634
18647
  return (0, import_component.createValidDomqlObjectFromSugar)(element, parent, key, options);
18635
- } else if ((0, import_utils28.checkIfKeyIsComponent)(key)) {
18636
- return (0, import_utils28.applyKeyComponentAsExtend)(elementWrapper, parent, key);
18648
+ } else if ((0, import_utils27.checkIfKeyIsComponent)(key)) {
18649
+ return (0, import_utils27.applyKeyComponentAsExtend)(elementWrapper, parent, key);
18637
18650
  }
18638
18651
  if (checkIfMedia(key)) {
18639
18652
  return applyMediaProps2(elementWrapper, parent, key);
@@ -18643,7 +18656,7 @@ var require_create4 = __commonJS({
18643
18656
  var redefineParent = (element, parent, key, options) => {
18644
18657
  if (!parent)
18645
18658
  return import_tree.ROOT;
18646
- if ((0, import_utils28.isNode)(parent)) {
18659
+ if ((0, import_utils27.isNode)(parent)) {
18647
18660
  const parentNodeWrapper = { key: ":root", node: parent };
18648
18661
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
18649
18662
  return parentNodeWrapper;
@@ -18657,7 +18670,7 @@ var require_create4 = __commonJS({
18657
18670
  }
18658
18671
  };
18659
18672
  var createKey = (element, parent, key) => {
18660
- return ((0, import_utils28.exec)(key, element) || key || element.key || (0, import_utils28.generateKey)()).toString();
18673
+ return ((0, import_utils27.exec)(key, element) || key || element.key || (0, import_utils27.generateKey)()).toString();
18661
18674
  };
18662
18675
  var addRef = (element, parent) => {
18663
18676
  if (element.__ref)
@@ -18687,7 +18700,7 @@ var require_create4 = __commonJS({
18687
18700
  visitedElements.set(element, true);
18688
18701
  const { __ref: ref, key } = element;
18689
18702
  try {
18690
- const isInfiniteLoopDetected = (0, import_utils28.detectInfiniteLoop)(ref.path);
18703
+ const isInfiniteLoopDetected = (0, import_utils27.detectInfiniteLoop)(ref.path);
18691
18704
  if (ref.__uniqId || isInfiniteLoopDetected)
18692
18705
  return;
18693
18706
  (0, import_node.default)(element, options);
@@ -18719,12 +18732,12 @@ var require_create4 = __commonJS({
18719
18732
  (0, import_event.triggerEventOn)("done", element, options);
18720
18733
  (0, import_event.triggerEventOn)("create", element, options);
18721
18734
  };
18722
- var checkIfPrimitive = (element) => (0, import_utils28.is)(element)("string", "number");
18735
+ var checkIfPrimitive = (element) => (0, import_utils27.is)(element)("string", "number");
18723
18736
  var applyValueAsText = (element, parent, key) => {
18724
18737
  const extendTag = element.extend && element.extend.tag;
18725
18738
  const childExtendTag = parent.childExtend && parent.childExtend.tag;
18726
18739
  const childPropsTag = parent.props.childProps && parent.props.childProps.tag;
18727
- const isKeyValidHTMLTag = import_utils28.HTML_TAGS.body.indexOf(key) > -1 && key;
18740
+ const isKeyValidHTMLTag = import_utils27.HTML_TAGS.body.indexOf(key) > -1 && key;
18728
18741
  return {
18729
18742
  text: element,
18730
18743
  tag: extendTag || childExtendTag || childPropsTag || isKeyValidHTMLTag || "string"
@@ -18744,7 +18757,7 @@ var require_create4 = __commonJS({
18744
18757
  };
18745
18758
  var createIfConditionFlag = (element, parent) => {
18746
18759
  const { __ref: ref } = element;
18747
- if ((0, import_utils28.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
18760
+ if ((0, import_utils27.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
18748
18761
  delete ref.__if;
18749
18762
  } else
18750
18763
  ref.__if = true;
@@ -18772,7 +18785,7 @@ var require_create4 = __commonJS({
18772
18785
  ref.__changes = [];
18773
18786
  if (!ref.__children)
18774
18787
  ref.__children = [];
18775
- if ((0, import_utils28.checkIfKeyIsComponent)(key))
18788
+ if ((0, import_utils27.checkIfKeyIsComponent)(key))
18776
18789
  ref.__componentKey = key.split("_")[0].split(".")[0].split("+")[0];
18777
18790
  const hasRoot = parent && parent.key === ":root";
18778
18791
  if (!ref.root)
@@ -18808,7 +18821,7 @@ var require_create4 = __commonJS({
18808
18821
  (0, import_iterate.throughInitialDefine)(element);
18809
18822
  (0, import_iterate.throughInitialExec)(element);
18810
18823
  for (const k in element) {
18811
- if ((0, import_utils28.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils28.isObject)((import_mixins.registry.default || import_mixins.registry)[k]) || (0, import_utils28.isVariant)(k))
18824
+ if ((0, import_utils27.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils27.isObject)((import_mixins.registry.default || import_mixins.registry)[k]) || (0, import_utils27.isVariant)(k))
18812
18825
  continue;
18813
18826
  const hasDefine = element.define && element.define[k];
18814
18827
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -18816,7 +18829,7 @@ var require_create4 = __commonJS({
18816
18829
  if (!ref.__skipCreate && import_mixins.REGISTRY[k] && !optionsHasDefine) {
18817
18830
  continue;
18818
18831
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
18819
- create2((0, import_utils28.exec)(element[k], element), element, k, options);
18832
+ create2((0, import_utils27.exec)(element[k], element), element, k, options);
18820
18833
  }
18821
18834
  }
18822
18835
  }
@@ -22574,14 +22587,14 @@ function send(event = "change", changes, options) {
22574
22587
  function disconnect() {
22575
22588
  this.disconnect();
22576
22589
  }
22577
- var utils, globals, isFunction2, isArray3, window3, ENV, defautlOpts, CONNECT_ATTEPT, CONNECT_ATTEPT_MAX_ALLOWED, getIsDev, getSocketUrl, connect;
22590
+ var utils, globals, isFunction, isArray3, window3, ENV, defautlOpts, CONNECT_ATTEPT, CONNECT_ATTEPT_MAX_ALLOWED, getIsDev, getSocketUrl, connect;
22578
22591
  var init_client = __esm({
22579
22592
  "../socket/client.js"() {
22580
22593
  "use strict";
22581
22594
  utils = __toESM(require_cjs(), 1);
22582
22595
  globals = __toESM(require_cjs9(), 1);
22583
22596
  init_esm5();
22584
- ({ isFunction: isFunction2, isArray: isArray3 } = utils.default || utils);
22597
+ ({ isFunction, isArray: isArray3 } = utils.default || utils);
22585
22598
  ({ window: window3 } = globals.default || globals);
22586
22599
  ENV = "development";
22587
22600
  defautlOpts = {};
@@ -22617,7 +22630,7 @@ var init_client = __esm({
22617
22630
  }
22618
22631
  socket.emit("initConnect", { key, ...options });
22619
22632
  try {
22620
- if (isFunction2(options.onConnect)) {
22633
+ if (isFunction(options.onConnect)) {
22621
22634
  options.onConnect(socket.id, socket);
22622
22635
  }
22623
22636
  } catch (e) {
@@ -22627,7 +22640,7 @@ var init_client = __esm({
22627
22640
  socket.on("connect_error", (err) => {
22628
22641
  console.log(`event: connect_error | reason: ${err.message}`);
22629
22642
  try {
22630
- if (isFunction2(options.onError))
22643
+ if (isFunction(options.onError))
22631
22644
  options.onError(err, socket);
22632
22645
  if (CONNECT_ATTEPT < CONNECT_ATTEPT_MAX_ALLOWED) {
22633
22646
  CONNECT_ATTEPT++;
@@ -22649,7 +22662,7 @@ var init_client = __esm({
22649
22662
  socket.on("disconnect", (reason) => {
22650
22663
  console.log(`event: disconnect | reason: ${reason}`);
22651
22664
  try {
22652
- if (isFunction2(options.onDisconnect))
22665
+ if (isFunction(options.onDisconnect))
22653
22666
  options.onDisconnect(reason, socket);
22654
22667
  } catch (e) {
22655
22668
  console.error(e);
@@ -22659,7 +22672,7 @@ var init_client = __esm({
22659
22672
  if (event === "connect")
22660
22673
  return;
22661
22674
  try {
22662
- if (isFunction2(options.onChange)) {
22675
+ if (isFunction(options.onChange)) {
22663
22676
  options.onChange(event, args[0], socket);
22664
22677
  }
22665
22678
  } catch (e) {
@@ -22817,10 +22830,10 @@ var require_Inspect = __commonJS({
22817
22830
  });
22818
22831
  module2.exports = __toCommonJS2(Inspect_exports);
22819
22832
  var smblsUI = __toESM2((init_uikit(), __toCommonJS(uikit_exports)), 1);
22820
- var import_utils28 = require_cjs();
22833
+ var import_utils27 = require_cjs();
22821
22834
  var import_client = (init_client(), __toCommonJS(client_exports));
22822
22835
  function returnStringExtend(extend) {
22823
- return (0, import_utils28.isString)(extend) ? extend : (0, import_utils28.isArray)(extend) ? extend.find((extItem) => (0, import_utils28.isString)(extItem)) : "";
22836
+ return (0, import_utils27.isString)(extend) ? extend : (0, import_utils27.isArray)(extend) ? extend.find((extItem) => (0, import_utils27.isString)(extItem)) : "";
22824
22837
  }
22825
22838
  function getComponentKey(el) {
22826
22839
  if (!el)
@@ -22907,7 +22920,7 @@ var require_Inspect = __commonJS({
22907
22920
  on: {
22908
22921
  init: ({ context }) => {
22909
22922
  const { components } = context;
22910
- if ((0, import_utils28.isObject)(components)) {
22923
+ if ((0, import_utils27.isObject)(components)) {
22911
22924
  const { Content, ...rest } = components;
22912
22925
  for (const key in rest) {
22913
22926
  if (smblsUI[key])
@@ -23038,7 +23051,7 @@ var require_cjs14 = __commonJS({
23038
23051
  var import_init3 = (init_init(), __toCommonJS(init_exports));
23039
23052
  var import_client = (init_client(), __toCommonJS(client_exports));
23040
23053
  var import_globals = require_cjs9();
23041
- var import_utils28 = require_cjs();
23054
+ var import_utils27 = require_cjs();
23042
23055
  var import_Notifications = require_Notifications();
23043
23056
  var import_Inspect = require_Inspect();
23044
23057
  __reExport2(sync_exports, require_DefaultSyncApp(), module2.exports);
@@ -23062,16 +23075,16 @@ var require_cjs14 = __commonJS({
23062
23075
  const { state, designSystem, pages, components, snippets, functions } = obj.DATA;
23063
23076
  const { utils: utils2 } = ctx;
23064
23077
  if (pages) {
23065
- (0, import_utils28.overwriteShallow)(ctx.pages, pages);
23078
+ (0, import_utils27.overwriteShallow)(ctx.pages, pages);
23066
23079
  }
23067
23080
  if (components) {
23068
- (0, import_utils28.overwriteShallow)(ctx.components, components);
23081
+ (0, import_utils27.overwriteShallow)(ctx.components, components);
23069
23082
  }
23070
23083
  if (functions) {
23071
- (0, import_utils28.overwriteShallow)(ctx.functions, functions);
23084
+ (0, import_utils27.overwriteShallow)(ctx.functions, functions);
23072
23085
  }
23073
23086
  if (snippets) {
23074
- (0, import_utils28.overwriteShallow)(ctx.snippets, snippets);
23087
+ (0, import_utils27.overwriteShallow)(ctx.snippets, snippets);
23075
23088
  }
23076
23089
  if (state) {
23077
23090
  const route = state.route;
@@ -23296,7 +23309,7 @@ var require_types2 = __commonJS({
23296
23309
  isBoolean: () => isBoolean2,
23297
23310
  isDate: () => isDate,
23298
23311
  isDefined: () => isDefined2,
23299
- isFunction: () => isFunction3,
23312
+ isFunction: () => isFunction2,
23300
23313
  isNot: () => isNot2,
23301
23314
  isNull: () => isNull,
23302
23315
  isNumber: () => isNumber3,
@@ -23314,7 +23327,7 @@ var require_types2 = __commonJS({
23314
23327
  };
23315
23328
  var isString11 = (arg) => typeof arg === "string";
23316
23329
  var isNumber3 = (arg) => typeof arg === "number";
23317
- var isFunction3 = (arg) => typeof arg === "function";
23330
+ var isFunction2 = (arg) => typeof arg === "function";
23318
23331
  var isBoolean2 = (arg) => arg === true || arg === false;
23319
23332
  var isNull = (arg) => arg === null;
23320
23333
  var isArray4 = (arg) => Array.isArray(arg);
@@ -23325,7 +23338,7 @@ var require_types2 = __commonJS({
23325
23338
  return typeof arg === "object";
23326
23339
  };
23327
23340
  var isDefined2 = (arg) => {
23328
- return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction3(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
23341
+ return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction2(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
23329
23342
  };
23330
23343
  var isUndefined11 = (arg) => {
23331
23344
  return arg === void 0;
@@ -23338,7 +23351,7 @@ var require_types2 = __commonJS({
23338
23351
  date: isDate,
23339
23352
  number: isNumber3,
23340
23353
  null: isNull,
23341
- function: isFunction3,
23354
+ function: isFunction2,
23342
23355
  objectLike: isObjectLike4,
23343
23356
  node: import_node.isNode,
23344
23357
  htmlElement: import_node.isHtmlElement,
@@ -24502,21 +24515,21 @@ var require_cookie2 = __commonJS({
24502
24515
  });
24503
24516
  module2.exports = __toCommonJS2(cookie_exports);
24504
24517
  var import_types = require_types2();
24505
- var import_utils28 = require_cjs15();
24518
+ var import_utils27 = require_cjs15();
24506
24519
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
24507
24520
  var setCookie = (cname, cvalue, exdays = 365) => {
24508
- if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
24521
+ if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
24509
24522
  return;
24510
24523
  const d = /* @__PURE__ */ new Date();
24511
24524
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
24512
24525
  const expires = `expires=${d.toUTCString()}`;
24513
- import_utils28.document.cookie = `${cname}=${cvalue};${expires};path=/`;
24526
+ import_utils27.document.cookie = `${cname}=${cvalue};${expires};path=/`;
24514
24527
  };
24515
24528
  var getCookie = (cname) => {
24516
- if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
24529
+ if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
24517
24530
  return;
24518
24531
  const name = `${cname}=`;
24519
- const decodedCookie = decodeURIComponent(import_utils28.document.cookie);
24532
+ const decodedCookie = decodeURIComponent(import_utils27.document.cookie);
24520
24533
  const ca = decodedCookie.split(";");
24521
24534
  for (let i = 0; i < ca.length; i++) {
24522
24535
  let c = ca[i];
@@ -24528,9 +24541,9 @@ var require_cookie2 = __commonJS({
24528
24541
  return "";
24529
24542
  };
24530
24543
  var removeCookie = (cname) => {
24531
- if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
24544
+ if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
24532
24545
  return;
24533
- import_utils28.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
24546
+ import_utils27.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
24534
24547
  };
24535
24548
  function getLocalStorage(key) {
24536
24549
  let savedJSON;
@@ -25271,7 +25284,7 @@ __export(src_exports, {
25271
25284
  default: () => src_default
25272
25285
  });
25273
25286
  module.exports = __toCommonJS(src_exports);
25274
- var import_utils27 = __toESM(require_cjs(), 1);
25287
+ var import_utils26 = __toESM(require_cjs(), 1);
25275
25288
 
25276
25289
  // src/utilImports.js
25277
25290
  var utilImports_exports = {};
@@ -25292,7 +25305,7 @@ __reExport(utilImports_exports, __toESM(require_cjs7(), 1));
25292
25305
 
25293
25306
  // src/router.js
25294
25307
  var import_router2 = __toESM(require_cjs7(), 1);
25295
- var import_utils18 = __toESM(require_cjs(), 1);
25308
+ var import_utils17 = __toESM(require_cjs(), 1);
25296
25309
  init_uikit();
25297
25310
  var DEFAULT_ROUTING_OPTIONS = {
25298
25311
  initRouter: true,
@@ -25305,16 +25318,16 @@ var initRouter = (element, context) => {
25305
25318
  else if (context.router === true)
25306
25319
  context.router = DEFAULT_ROUTING_OPTIONS;
25307
25320
  else
25308
- (0, import_utils18.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
25321
+ (0, import_utils17.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
25309
25322
  const routerOptions = context.router;
25310
25323
  const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
25311
25324
  const onRouterRenderDefault = (el, s) => {
25312
- const { pathname, search, hash: hash3 } = import_utils18.window.location;
25325
+ const { pathname, search, hash: hash3 } = import_utils17.window.location;
25313
25326
  const url2 = pathname + search + hash3;
25314
25327
  if (el.routes)
25315
25328
  router(url2, el, {}, { initialRender: true });
25316
25329
  };
25317
- const hasRenderRouter = element.on && !(0, import_utils18.isUndefined)(element.on.renderRouter);
25330
+ const hasRenderRouter = element.on && !(0, import_utils17.isUndefined)(element.on.renderRouter);
25318
25331
  if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
25319
25332
  if (element.on) {
25320
25333
  element.on.renderRouter = onRouterRenderDefault;
@@ -25336,20 +25349,20 @@ var popStateRouter = (element, context) => {
25336
25349
  if (!routerOptions.popState)
25337
25350
  return;
25338
25351
  const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
25339
- import_utils18.window.onpopstate = (e) => {
25340
- const { pathname, search, hash: hash3 } = import_utils18.window.location;
25352
+ import_utils17.window.onpopstate = (e) => {
25353
+ const { pathname, search, hash: hash3 } = import_utils17.window.location;
25341
25354
  const url2 = pathname + search + hash3;
25342
25355
  router(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
25343
25356
  };
25344
25357
  };
25345
25358
  var injectRouterInLinkComponent = (routerOptions) => {
25346
25359
  if (routerOptions && routerOptions.injectRouterInLinkComponent) {
25347
- return (0, import_utils18.deepMerge)(Link, RouterLink);
25360
+ return (0, import_utils17.deepMerge)(Link, RouterLink);
25348
25361
  }
25349
25362
  };
25350
25363
 
25351
25364
  // src/ferchOnCreate.js
25352
- var import_utils19 = __toESM(require_cjs(), 1);
25365
+ var import_utils18 = __toESM(require_cjs(), 1);
25353
25366
  var import_fetch = __toESM(require_cjs10(), 1);
25354
25367
  var fetchSync = async (key, options) => {
25355
25368
  if (key && options.editor) {
@@ -25366,10 +25379,10 @@ var fetchAsync = (app, key, options, callback) => {
25366
25379
  try {
25367
25380
  if (options.editor.async) {
25368
25381
  (0, import_fetch.fetchProjectAsync)(key, options, callback || ((data) => {
25369
- if ((0, import_utils19.isObject)(data.designsystem)) {
25382
+ if ((0, import_utils18.isObject)(data.designsystem)) {
25370
25383
  options.utils.init(data.designsystem);
25371
25384
  }
25372
- if ((0, import_utils19.isObject)(data.state)) {
25385
+ if ((0, import_utils18.isObject)(data.state)) {
25373
25386
  app.state.set(data.state);
25374
25387
  }
25375
25388
  }));
@@ -25434,19 +25447,19 @@ init_dynamic();
25434
25447
  // src/createDomql.js
25435
25448
  var import_domql = __toESM(require_cjs13(), 1);
25436
25449
  init_uikit();
25437
- var import_utils26 = __toESM(require_cjs(), 1);
25450
+ var import_utils25 = __toESM(require_cjs(), 1);
25438
25451
 
25439
25452
  // src/syncExtend.js
25440
- var import_utils20 = __toESM(require_cjs(), 1);
25453
+ var import_utils19 = __toESM(require_cjs(), 1);
25441
25454
  var import_sync = __toESM(require_cjs14(), 1);
25442
25455
  var initializeExtend = (app, ctx) => {
25443
- return (0, import_utils20.isObjectLike)(app.extend) ? app.extend : [];
25456
+ return (0, import_utils19.isObjectLike)(app.extend) ? app.extend : [];
25444
25457
  };
25445
25458
  var initializeSync = (app, ctx) => {
25446
25459
  const { editor } = ctx;
25447
25460
  if (!editor)
25448
25461
  return;
25449
- const liveSync = (0, import_utils20.isUndefined)(editor.liveSync) ? (0, import_utils20.isDevelopment)() : editor.liveSync;
25462
+ const liveSync = (0, import_utils19.isUndefined)(editor.liveSync) ? (0, import_utils19.isDevelopment)() : editor.liveSync;
25450
25463
  if (liveSync)
25451
25464
  app.extend.push(import_sync.SyncComponent);
25452
25465
  };
@@ -25454,7 +25467,7 @@ var initializeInspect = (app, ctx) => {
25454
25467
  const { editor } = ctx;
25455
25468
  if (!editor)
25456
25469
  return;
25457
- const inspect = (0, import_utils20.isUndefined)(editor.inspect) ? (0, import_utils20.isDevelopment)() : editor.inspect;
25470
+ const inspect = (0, import_utils19.isUndefined)(editor.inspect) ? (0, import_utils19.isDevelopment)() : editor.inspect;
25458
25471
  if (inspect)
25459
25472
  app.extend.push(import_sync.Inspect);
25460
25473
  };
@@ -25462,19 +25475,19 @@ var initializeNotifications = (app, ctx) => {
25462
25475
  const { editor } = ctx;
25463
25476
  if (!editor)
25464
25477
  return;
25465
- const verbose = (0, import_utils20.isUndefined)(editor.verbose) ? (0, import_utils20.isDevelopment)() || ctx.verbose : editor.verbose;
25478
+ const verbose = (0, import_utils19.isUndefined)(editor.verbose) ? (0, import_utils19.isDevelopment)() || ctx.verbose : editor.verbose;
25466
25479
  if (verbose)
25467
25480
  app.extend.push(import_sync.Notifications);
25468
25481
  };
25469
25482
 
25470
25483
  // src/prepare.js
25471
- var import_utils25 = __toESM(require_cjs(), 1);
25484
+ var import_utils24 = __toESM(require_cjs(), 1);
25472
25485
 
25473
25486
  // ../../../domql/plugins/emotion/index.js
25474
- var import_utils23 = __toESM(require_cjs());
25487
+ var import_utils22 = __toESM(require_cjs());
25475
25488
 
25476
25489
  // ../../../domql/node_modules/@domql/classlist/index.js
25477
- var import_utils21 = __toESM(require_cjs15());
25490
+ var import_utils20 = __toESM(require_cjs15());
25478
25491
  var classify = (obj, element) => {
25479
25492
  let className = "";
25480
25493
  for (const item in obj) {
@@ -25484,7 +25497,7 @@ var classify = (obj, element) => {
25484
25497
  else if (typeof param === "string")
25485
25498
  className += ` ${param}`;
25486
25499
  else if (typeof param === "function") {
25487
- className += ` ${(0, import_utils21.exec)(param, element)}`;
25500
+ className += ` ${(0, import_utils20.exec)(param, element)}`;
25488
25501
  }
25489
25502
  }
25490
25503
  return className;
@@ -25495,9 +25508,9 @@ var classList = (params, element) => {
25495
25508
  const { key } = element;
25496
25509
  if (params === true)
25497
25510
  params = element.class = { key };
25498
- if ((0, import_utils21.isString)(params))
25511
+ if ((0, import_utils20.isString)(params))
25499
25512
  params = element.class = { default: params };
25500
- if ((0, import_utils21.isObject)(params))
25513
+ if ((0, import_utils20.isObject)(params))
25501
25514
  params = classify(params, element);
25502
25515
  const className = params.replace(/\s+/g, " ").trim();
25503
25516
  if (element.ref)
@@ -26852,9 +26865,9 @@ var classnames3 = function classnames4(args) {
26852
26865
  // ../../../domql/plugins/emotion/index.js
26853
26866
  var transformEmotionStyle = (emotion2) => {
26854
26867
  return (params, element, state) => {
26855
- const execParams = (0, import_utils23.exec)(params, element);
26868
+ const execParams = (0, import_utils22.exec)(params, element);
26856
26869
  if (params) {
26857
- if ((0, import_utils23.isObjectLike)(element.class))
26870
+ if ((0, import_utils22.isObjectLike)(element.class))
26858
26871
  element.class.elementStyle = execParams;
26859
26872
  else
26860
26873
  element.class = { elementStyle: execParams };
@@ -26868,7 +26881,7 @@ var transformEmotionClass = (emotion2) => {
26868
26881
  return;
26869
26882
  const { __ref } = element;
26870
26883
  const { __class, __classNames } = __ref;
26871
- if (!(0, import_utils23.isObjectLike)(params))
26884
+ if (!(0, import_utils22.isObjectLike)(params))
26872
26885
  return;
26873
26886
  if (element.props.class) {
26874
26887
  __classNames.classProps = element.props.class;
@@ -26877,20 +26890,20 @@ var transformEmotionClass = (emotion2) => {
26877
26890
  __classNames.class = element.attr.class;
26878
26891
  }
26879
26892
  for (const key in params) {
26880
- const prop = (0, import_utils23.exec)(params[key], element);
26893
+ const prop = (0, import_utils22.exec)(params[key], element);
26881
26894
  if (!prop) {
26882
26895
  delete __class[key];
26883
26896
  delete __classNames[key];
26884
26897
  continue;
26885
26898
  }
26886
- const isEqual = (0, import_utils23.isEqualDeep)(__class[key], prop);
26899
+ const isEqual = (0, import_utils22.isEqualDeep)(__class[key], prop);
26887
26900
  if (!isEqual) {
26888
- if (!(0, import_utils23.isProduction)() && (0, import_utils23.isObject)(prop))
26901
+ if (!(0, import_utils22.isProduction)() && (0, import_utils22.isObject)(prop))
26889
26902
  prop.label = key || element.key;
26890
26903
  let className;
26891
- if ((0, import_utils23.isString)(prop) || (0, import_utils23.isNumber)(prop))
26904
+ if ((0, import_utils22.isString)(prop) || (0, import_utils22.isNumber)(prop))
26892
26905
  className = prop;
26893
- else if ((0, import_utils23.isBoolean)(prop))
26906
+ else if ((0, import_utils22.isBoolean)(prop))
26894
26907
  className = element.key;
26895
26908
  else
26896
26909
  className = emotion2.css(prop);
@@ -26913,7 +26926,7 @@ var transformDOMQLEmotion = (emotion2, options) => {
26913
26926
  // src/initEmotion.js
26914
26927
  init_emotion();
26915
26928
  init_init();
26916
- var import_utils24 = __toESM(require_cjs(), 1);
26929
+ var import_utils23 = __toESM(require_cjs(), 1);
26917
26930
 
26918
26931
  // ../default-config/src/index.js
26919
26932
  var import_default_icons = __toESM(require_cjs16());
@@ -27307,7 +27320,7 @@ var initEmotion = (key, options = {}) => {
27307
27320
  if (!initOptions.emotion)
27308
27321
  initOptions.emotion = emotion;
27309
27322
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
27310
- const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils24.deepMerge)(options.designSystem, (0, import_utils24.deepClone)(DEFAULT_CONFIG)) : options.designSystem || (0, import_utils24.deepClone)(DEFAULT_CONFIG);
27323
+ const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils23.deepMerge)(options.designSystem, (0, import_utils23.deepClone)(DEFAULT_CONFIG)) : options.designSystem || (0, import_utils23.deepClone)(DEFAULT_CONFIG);
27311
27324
  const scratchSystem2 = init(designSystem, {
27312
27325
  key,
27313
27326
  emotion: emotion2,
@@ -27340,7 +27353,7 @@ var UIkitWithPrefix = () => {
27340
27353
  const newObj = {};
27341
27354
  for (const key in uikit_exports) {
27342
27355
  if (Object.prototype.hasOwnProperty.call(uikit_exports, key)) {
27343
- if ((0, import_utils25.checkIfKeyIsComponent)(key)) {
27356
+ if ((0, import_utils24.checkIfKeyIsComponent)(key)) {
27344
27357
  newObj[`smbls.${key}`] = uikit_exports[key];
27345
27358
  } else {
27346
27359
  newObj[key] = uikit_exports[key];
@@ -27427,7 +27440,7 @@ var prepareRequire = (packages, ctx) => {
27427
27440
  return windowOpts2.require(key);
27428
27441
  };
27429
27442
  if (windowOpts.packages) {
27430
- windowOpts.packages = (0, import_utils25.merge)(windowOpts.packages, packages);
27443
+ windowOpts.packages = (0, import_utils24.merge)(windowOpts.packages, packages);
27431
27444
  } else {
27432
27445
  windowOpts.packages = packages;
27433
27446
  }
@@ -27449,12 +27462,12 @@ var prepareState = (app, context) => {
27449
27462
  if (context.state)
27450
27463
  utilImports_exports.deepMerge(state, context.state);
27451
27464
  if (app && app.state)
27452
- (0, import_utils25.deepMerge)(state, app.state);
27453
- return (0, import_utils25.deepClone)(state);
27465
+ (0, import_utils24.deepMerge)(state, app.state);
27466
+ return (0, import_utils24.deepClone)(state);
27454
27467
  };
27455
27468
  var preparePages = (app, context) => {
27456
- if ((0, import_utils25.isObject)(app.routes) && (0, import_utils25.isObject)(context.pages)) {
27457
- (0, import_utils25.merge)(app.routes, context.pages);
27469
+ if ((0, import_utils24.isObject)(app.routes) && (0, import_utils24.isObject)(context.pages)) {
27470
+ (0, import_utils24.merge)(app.routes, context.pages);
27458
27471
  }
27459
27472
  const pages = app.routes || context.pages || {};
27460
27473
  return Object.keys(pages).filter((v) => !v.startsWith("/")).reduce((pages2, v) => {
@@ -27486,7 +27499,7 @@ var initAnimationFrame = () => {
27486
27499
 
27487
27500
  // src/createDomql.js
27488
27501
  var prepareContext = (app, context = {}) => {
27489
- const key = context.key = context.key || ((0, import_utils26.isString)(app) ? app : "smblsapp");
27502
+ const key = context.key = context.key || ((0, import_utils25.isString)(app) ? app : "smblsapp");
27490
27503
  context.define = context.define || defaultDefine;
27491
27504
  context.window = prepareWindow(context);
27492
27505
  const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem(key, context);
@@ -27505,17 +27518,17 @@ var prepareContext = (app, context = {}) => {
27505
27518
  return context;
27506
27519
  };
27507
27520
  var createDomqlElement = (app, ctx) => {
27508
- if (!(0, import_utils26.isObject)(ctx))
27521
+ if (!(0, import_utils25.isObject)(ctx))
27509
27522
  ctx = {};
27510
- if ((0, import_utils26.isNode)(app)) {
27523
+ if ((0, import_utils25.isNode)(app)) {
27511
27524
  app = {};
27512
27525
  ctx.parent = app;
27513
27526
  }
27514
- if ((0, import_utils26.isString)(app)) {
27527
+ if ((0, import_utils25.isString)(app)) {
27515
27528
  app = {};
27516
27529
  ctx.key = app;
27517
27530
  }
27518
- if (!(0, import_utils26.isObject)(app)) {
27531
+ if (!(0, import_utils25.isObject)(app)) {
27519
27532
  app = {};
27520
27533
  }
27521
27534
  prepareContext(app, ctx);
@@ -27544,9 +27557,9 @@ var createDomqlElement = (app, ctx) => {
27544
27557
  };
27545
27558
 
27546
27559
  // src/index.js
27547
- var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils27.deepMerge)(
27560
+ var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils26.deepMerge)(
27548
27561
  options,
27549
- (0, import_utils27.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
27562
+ (0, import_utils26.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
27550
27563
  );
27551
27564
  var create = (App, options = options_default, optionsExternalFile) => {
27552
27565
  const redefinedOptions = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
@@ -27575,10 +27588,10 @@ var createSync = async (App, options = options_default, optionsExternalFile) =>
27575
27588
  var createSkeleton = (App = {}, options = options_default, optionsExternalFile) => {
27576
27589
  return create(
27577
27590
  {
27578
- deps: { isUndefined: import_utils27.isUndefined },
27591
+ deps: { isUndefined: import_utils26.isUndefined },
27579
27592
  ...App
27580
27593
  },
27581
- (0, import_utils27.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
27594
+ (0, import_utils26.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
27582
27595
  optionsExternalFile
27583
27596
  );
27584
27597
  };