smbls 2.11.454 → 2.11.455

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.
Files changed (2) hide show
  1. package/dist/cjs/index.js +1039 -931
  2. package/package.json +8 -8
package/dist/cjs/index.js CHANGED
@@ -1157,13 +1157,13 @@ var require_object = __commonJS({
1157
1157
  }
1158
1158
  return true;
1159
1159
  };
1160
- var removeFromObject = (obj, props2) => {
1161
- if (props2 === void 0 || props2 === null)
1160
+ var removeFromObject = (obj, props5) => {
1161
+ if (props5 === void 0 || props5 === null)
1162
1162
  return obj;
1163
- if ((0, import_types.is)(props2)("string", "number")) {
1164
- delete obj[props2];
1165
- } else if ((0, import_types.isArray)(props2)) {
1166
- props2.forEach((prop) => delete obj[prop]);
1163
+ if ((0, import_types.is)(props5)("string", "number")) {
1164
+ delete obj[props5];
1165
+ } else if ((0, import_types.isArray)(props5)) {
1166
+ props5.forEach((prop) => delete obj[prop]);
1167
1167
  } else {
1168
1168
  throw new Error("Invalid input: props must be a string or an array of strings");
1169
1169
  }
@@ -1677,7 +1677,9 @@ var require_component = __commonJS({
1677
1677
  applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
1678
1678
  checkIfKeyIsComponent: () => checkIfKeyIsComponent,
1679
1679
  checkIfKeyIsProperty: () => checkIfKeyIsProperty,
1680
+ checkIfSugar: () => checkIfSugar,
1680
1681
  extendizeByKey: () => extendizeByKey,
1682
+ getCapitalCaseKeys: () => getCapitalCaseKeys,
1681
1683
  getChildrenComponentsByKey: () => getChildrenComponentsByKey,
1682
1684
  getExtendsInElement: () => getExtendsInElement,
1683
1685
  hasVariantProp: () => hasVariantProp,
@@ -1711,12 +1713,13 @@ var require_component = __commonJS({
1711
1713
  return { ...element, extend };
1712
1714
  };
1713
1715
  var checkIfSugar = (element, parent, key) => {
1716
+ var _a;
1714
1717
  const {
1715
1718
  extend,
1716
- props: props2,
1719
+ props: props5,
1717
1720
  childExtend,
1718
1721
  extends: extendProps,
1719
- childrenExtends,
1722
+ childExtends,
1720
1723
  childProps,
1721
1724
  children,
1722
1725
  on: on2,
@@ -1724,15 +1727,17 @@ var require_component = __commonJS({
1724
1727
  $stateCollection,
1725
1728
  $propsCollection
1726
1729
  } = element;
1727
- const hasComponentAttrs = extend || childExtend || props2 || on2 || $collection || $stateCollection || $propsCollection;
1728
- if (hasComponentAttrs && (childProps || extendProps || children || childrenExtends)) {
1729
- parent.error("Sugar component includes params for builtin components", { verbose: true });
1730
+ const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
1731
+ if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
1732
+ const logErr = (_a = parent || element) == null ? void 0 : _a.error;
1733
+ if (logErr)
1734
+ logErr("Sugar component includes params for builtin components", { verbose: true });
1730
1735
  }
1731
- return !hasComponentAttrs || childProps || extendProps || children || childrenExtends;
1736
+ return !hasComponentAttrs || childProps || extendProps || children || childExtends;
1732
1737
  };
1733
1738
  var extendizeByKey = (element, parent, key) => {
1734
1739
  const { context } = parent;
1735
- const { tag, extend, childrenExtends } = element;
1740
+ const { tag, extend, childExtends } = element;
1736
1741
  const isSugar = checkIfSugar(element, parent, key);
1737
1742
  const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent(key.split(".")[1]) ? [key.split(".")[0]] : [key];
1738
1743
  const isExtendKeyComponent = context && context.components[extendFromKey];
@@ -1744,8 +1749,8 @@ var require_component = __commonJS({
1744
1749
  tag,
1745
1750
  props: { ...element }
1746
1751
  });
1747
- if (childrenExtends)
1748
- newElem.childExtend = childrenExtends;
1752
+ if (childExtends)
1753
+ newElem.childExtend = childExtends;
1749
1754
  return newElem;
1750
1755
  } else if (!extend || extend === true) {
1751
1756
  return {
@@ -1774,23 +1779,24 @@ var require_component = __commonJS({
1774
1779
  const childKey = childElems[i];
1775
1780
  const childElem = element[childKey];
1776
1781
  const newChild = element.props[childKey];
1782
+ const assignChild = (val) => {
1783
+ element[childKey] = val;
1784
+ delete element.props[childKey];
1785
+ };
1777
1786
  if (newChild == null ? void 0 : newChild.ignoreExtend)
1778
1787
  continue;
1779
- if (!childElem)
1780
- element[childKey] = (0, import__.deepCloneWithExtend)(newChild);
1788
+ if (newChild === null)
1789
+ assignChild(null);
1790
+ else if (!childElem)
1791
+ assignChild((0, import__.deepCloneWithExtend)(newChild));
1781
1792
  else {
1782
- const isSugar = checkIfSugar(childElem, parent, key);
1783
- if (!isSugar)
1793
+ const isSugarChildElem = checkIfSugar(childElem, parent, key);
1794
+ if (isSugarChildElem)
1784
1795
  continue;
1785
- const inheritedChildElem = element[childKey].props;
1786
- if ((0, import__.isObjectLike)(newChild)) {
1787
- (0, import__.overwriteDeep)(inheritedChildElem, newChild);
1788
- } else if ((0, import__.isFunction)(newChild)) {
1789
- element[childKey] = {
1790
- extend: element[childKey],
1791
- props: newChild
1792
- };
1793
- }
1796
+ assignChild({
1797
+ extend: element[childKey],
1798
+ props: newChild
1799
+ });
1794
1800
  }
1795
1801
  }
1796
1802
  };
@@ -1824,8 +1830,8 @@ var require_component = __commonJS({
1824
1830
  return firstCharKey === ".";
1825
1831
  };
1826
1832
  var hasVariantProp = (element) => {
1827
- const { props: props2 } = element;
1828
- if ((0, import__.isObject)(props2) && (0, import__.isString)(props2.variant))
1833
+ const { props: props5 } = element;
1834
+ if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
1829
1835
  return true;
1830
1836
  };
1831
1837
  var getChildrenComponentsByKey = (key, el) => {
@@ -3459,10 +3465,10 @@ var require_cjs2 = __commonJS({
3459
3465
  return o;
3460
3466
  };
3461
3467
  var deepStringify = (obj, stringified = {}) => {
3462
- var _a;
3468
+ var _a, _b;
3463
3469
  if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
3464
- console.warn("Trying to clone element or state at", obj);
3465
- obj = (_a = obj.parse) == null ? void 0 : _a.call(obj);
3470
+ (obj.__element || ((_a = obj.parent) == null ? void 0 : _a.__element)).warn("Trying to clone element or state at", obj);
3471
+ obj = (_b = obj.parse) == null ? void 0 : _b.call(obj);
3466
3472
  }
3467
3473
  for (const prop in obj) {
3468
3474
  const objProp = obj[prop];
@@ -3844,13 +3850,13 @@ var require_cjs2 = __commonJS({
3844
3850
  }
3845
3851
  return true;
3846
3852
  };
3847
- var removeFromObject = (obj, props2) => {
3848
- if (props2 === void 0 || props2 === null)
3853
+ var removeFromObject = (obj, props5) => {
3854
+ if (props5 === void 0 || props5 === null)
3849
3855
  return obj;
3850
- if ((0, import_types.is)(props2)("string", "number")) {
3851
- delete obj[props2];
3852
- } else if ((0, import_types.isArray)(props2)) {
3853
- props2.forEach((prop) => delete obj[prop]);
3856
+ if ((0, import_types.is)(props5)("string", "number")) {
3857
+ delete obj[props5];
3858
+ } else if ((0, import_types.isArray)(props5)) {
3859
+ props5.forEach((prop) => delete obj[prop]);
3854
3860
  } else {
3855
3861
  throw new Error("Invalid input: props must be a string or an array of strings");
3856
3862
  }
@@ -4096,9 +4102,11 @@ var require_cjs2 = __commonJS({
4096
4102
  var cookie_exports = {};
4097
4103
  __export22(cookie_exports, {
4098
4104
  getCookie: () => getCookie,
4105
+ getLocalStorage: () => getLocalStorage,
4099
4106
  isMobile: () => isMobile,
4100
4107
  removeCookie: () => removeCookie,
4101
- setCookie: () => setCookie
4108
+ setCookie: () => setCookie,
4109
+ setLocalStorage: () => setLocalStorage
4102
4110
  });
4103
4111
  module22.exports = __toCommonJS22(cookie_exports);
4104
4112
  var import_types = require_types3();
@@ -4132,6 +4140,27 @@ var require_cjs2 = __commonJS({
4132
4140
  return;
4133
4141
  import_utils27.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
4134
4142
  };
4143
+ function getLocalStorage(key) {
4144
+ let savedJSON;
4145
+ if (window.localStorage) {
4146
+ try {
4147
+ savedJSON = JSON.parse(window.localStorage.getItem(key));
4148
+ } catch (e) {
4149
+ }
4150
+ }
4151
+ if (typeof savedJSON !== "undefined") {
4152
+ return savedJSON;
4153
+ }
4154
+ }
4155
+ function setLocalStorage(key, data) {
4156
+ if (data && window.localStorage) {
4157
+ if (typeof data === "object") {
4158
+ window.localStorage.setItem(key, JSON.stringify(data));
4159
+ } else {
4160
+ window.localStorage.setItem(key, data);
4161
+ }
4162
+ }
4163
+ }
4135
4164
  }
4136
4165
  });
4137
4166
  var require_tags3 = __commonJS2({
@@ -4331,7 +4360,9 @@ var require_cjs2 = __commonJS({
4331
4360
  applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
4332
4361
  checkIfKeyIsComponent: () => checkIfKeyIsComponent,
4333
4362
  checkIfKeyIsProperty: () => checkIfKeyIsProperty,
4363
+ checkIfSugar: () => checkIfSugar,
4334
4364
  extendizeByKey: () => extendizeByKey,
4365
+ getCapitalCaseKeys: () => getCapitalCaseKeys,
4335
4366
  getChildrenComponentsByKey: () => getChildrenComponentsByKey,
4336
4367
  getExtendsInElement: () => getExtendsInElement,
4337
4368
  hasVariantProp: () => hasVariantProp,
@@ -4365,12 +4396,13 @@ var require_cjs2 = __commonJS({
4365
4396
  return { ...element, extend };
4366
4397
  };
4367
4398
  var checkIfSugar = (element, parent, key) => {
4399
+ var _a;
4368
4400
  const {
4369
4401
  extend,
4370
- props: props2,
4402
+ props: props5,
4371
4403
  childExtend,
4372
4404
  extends: extendProps,
4373
- childrenExtends,
4405
+ childExtends,
4374
4406
  childProps,
4375
4407
  children,
4376
4408
  on: on2,
@@ -4378,16 +4410,18 @@ var require_cjs2 = __commonJS({
4378
4410
  $stateCollection,
4379
4411
  $propsCollection
4380
4412
  } = element;
4381
- const hasComponentAttrs = extend || childExtend || props2 || on2 || $collection || $stateCollection || $propsCollection;
4382
- if (hasComponentAttrs && (childProps || extendProps || children || childrenExtends)) {
4383
- element.error("Sugar component includes params for builtin components");
4413
+ const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
4414
+ if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
4415
+ const logErr = (_a = parent || element) == null ? void 0 : _a.error;
4416
+ if (logErr)
4417
+ logErr("Sugar component includes params for builtin components", { verbose: true });
4384
4418
  }
4385
- return !hasComponentAttrs || childProps || extendProps || children || childrenExtends;
4419
+ return !hasComponentAttrs || childProps || extendProps || children || childExtends;
4386
4420
  };
4387
4421
  var extendizeByKey = (element, parent, key) => {
4388
4422
  const { context } = parent;
4389
- const { tag, extend, childrenExtends } = element;
4390
- const isSugar = checkIfSugar(element);
4423
+ const { tag, extend, childExtends } = element;
4424
+ const isSugar = checkIfSugar(element, parent, key);
4391
4425
  const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent(key.split(".")[1]) ? [key.split(".")[0]] : [key];
4392
4426
  const isExtendKeyComponent = context && context.components[extendFromKey];
4393
4427
  if (element === isExtendKeyComponent)
@@ -4398,8 +4432,8 @@ var require_cjs2 = __commonJS({
4398
4432
  tag,
4399
4433
  props: { ...element }
4400
4434
  });
4401
- if (childrenExtends)
4402
- newElem.childExtend = childrenExtends;
4435
+ if (childExtends)
4436
+ newElem.childExtend = childExtends;
4403
4437
  return newElem;
4404
4438
  } else if (!extend || extend === true) {
4405
4439
  return {
@@ -4428,23 +4462,24 @@ var require_cjs2 = __commonJS({
4428
4462
  const childKey = childElems[i];
4429
4463
  const childElem = element[childKey];
4430
4464
  const newChild = element.props[childKey];
4465
+ const assignChild = (val) => {
4466
+ element[childKey] = val;
4467
+ delete element.props[childKey];
4468
+ };
4431
4469
  if (newChild == null ? void 0 : newChild.ignoreExtend)
4432
4470
  continue;
4433
- if (!childElem)
4434
- element[childKey] = (0, import__.deepCloneWithExtend)(newChild);
4471
+ if (newChild === null)
4472
+ assignChild(null);
4473
+ else if (!childElem)
4474
+ assignChild((0, import__.deepCloneWithExtend)(newChild));
4435
4475
  else {
4436
- const isSugar = checkIfSugar(childElem);
4437
- if (!isSugar)
4476
+ const isSugarChildElem = checkIfSugar(childElem, parent, key);
4477
+ if (isSugarChildElem)
4438
4478
  continue;
4439
- const inheritedChildElem = element[childKey].props;
4440
- if ((0, import__.isObjectLike)(newChild)) {
4441
- (0, import__.overwriteDeep)(inheritedChildElem, newChild);
4442
- } else if ((0, import__.isFunction)(newChild)) {
4443
- element[childKey] = {
4444
- extend: element[childKey],
4445
- props: newChild
4446
- };
4447
- }
4479
+ assignChild({
4480
+ extend: element[childKey],
4481
+ props: newChild
4482
+ });
4448
4483
  }
4449
4484
  }
4450
4485
  };
@@ -4478,8 +4513,8 @@ var require_cjs2 = __commonJS({
4478
4513
  return firstCharKey === ".";
4479
4514
  };
4480
4515
  var hasVariantProp = (element) => {
4481
- const { props: props2 } = element;
4482
- if ((0, import__.isObject)(props2) && (0, import__.isString)(props2.variant))
4516
+ const { props: props5 } = element;
4517
+ if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
4483
4518
  return true;
4484
4519
  };
4485
4520
  var getChildrenComponentsByKey = (key, el) => {
@@ -5326,10 +5361,10 @@ var require_cjs2 = __commonJS({
5326
5361
  return o;
5327
5362
  };
5328
5363
  var deepStringify = (obj, stringified = {}) => {
5329
- var _a;
5364
+ var _a, _b;
5330
5365
  if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
5331
- console.warn("Trying to clone element or state at", obj);
5332
- obj = (_a = obj.parse) == null ? void 0 : _a.call(obj);
5366
+ (obj.__element || ((_a = obj.parent) == null ? void 0 : _a.__element)).warn("Trying to clone element or state at", obj);
5367
+ obj = (_b = obj.parse) == null ? void 0 : _b.call(obj);
5333
5368
  }
5334
5369
  for (const prop in obj) {
5335
5370
  const objProp = obj[prop];
@@ -5711,13 +5746,13 @@ var require_cjs2 = __commonJS({
5711
5746
  }
5712
5747
  return true;
5713
5748
  };
5714
- var removeFromObject = (obj, props2) => {
5715
- if (props2 === void 0 || props2 === null)
5749
+ var removeFromObject = (obj, props5) => {
5750
+ if (props5 === void 0 || props5 === null)
5716
5751
  return obj;
5717
- if ((0, import_types.is)(props2)("string", "number")) {
5718
- delete obj[props2];
5719
- } else if ((0, import_types.isArray)(props2)) {
5720
- props2.forEach((prop) => delete obj[prop]);
5752
+ if ((0, import_types.is)(props5)("string", "number")) {
5753
+ delete obj[props5];
5754
+ } else if ((0, import_types.isArray)(props5)) {
5755
+ props5.forEach((prop) => delete obj[prop]);
5721
5756
  } else {
5722
5757
  throw new Error("Invalid input: props must be a string or an array of strings");
5723
5758
  }
@@ -5963,9 +5998,11 @@ var require_cjs2 = __commonJS({
5963
5998
  var cookie_exports = {};
5964
5999
  __export222(cookie_exports, {
5965
6000
  getCookie: () => getCookie,
6001
+ getLocalStorage: () => getLocalStorage,
5966
6002
  isMobile: () => isMobile,
5967
6003
  removeCookie: () => removeCookie,
5968
- setCookie: () => setCookie
6004
+ setCookie: () => setCookie,
6005
+ setLocalStorage: () => setLocalStorage
5969
6006
  });
5970
6007
  module222.exports = __toCommonJS222(cookie_exports);
5971
6008
  var import_types = require_types22();
@@ -5999,6 +6036,27 @@ var require_cjs2 = __commonJS({
5999
6036
  return;
6000
6037
  import_utils322.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
6001
6038
  };
6039
+ function getLocalStorage(key) {
6040
+ let savedJSON;
6041
+ if (window.localStorage) {
6042
+ try {
6043
+ savedJSON = JSON.parse(window.localStorage.getItem(key));
6044
+ } catch (e) {
6045
+ }
6046
+ }
6047
+ if (typeof savedJSON !== "undefined") {
6048
+ return savedJSON;
6049
+ }
6050
+ }
6051
+ function setLocalStorage(key, data) {
6052
+ if (data && window.localStorage) {
6053
+ if (typeof data === "object") {
6054
+ window.localStorage.setItem(key, JSON.stringify(data));
6055
+ } else {
6056
+ window.localStorage.setItem(key, data);
6057
+ }
6058
+ }
6059
+ }
6002
6060
  }
6003
6061
  });
6004
6062
  var require_tags22 = __commonJS22({
@@ -6198,7 +6256,9 @@ var require_cjs2 = __commonJS({
6198
6256
  applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
6199
6257
  checkIfKeyIsComponent: () => checkIfKeyIsComponent,
6200
6258
  checkIfKeyIsProperty: () => checkIfKeyIsProperty,
6259
+ checkIfSugar: () => checkIfSugar,
6201
6260
  extendizeByKey: () => extendizeByKey,
6261
+ getCapitalCaseKeys: () => getCapitalCaseKeys,
6202
6262
  getChildrenComponentsByKey: () => getChildrenComponentsByKey,
6203
6263
  getExtendsInElement: () => getExtendsInElement,
6204
6264
  hasVariantProp: () => hasVariantProp,
@@ -6232,12 +6292,13 @@ var require_cjs2 = __commonJS({
6232
6292
  return { ...element, extend };
6233
6293
  };
6234
6294
  var checkIfSugar = (element, parent, key) => {
6295
+ var _a;
6235
6296
  const {
6236
6297
  extend,
6237
- props: props2,
6298
+ props: props5,
6238
6299
  childExtend,
6239
6300
  extends: extendProps,
6240
- childrenExtends,
6301
+ childExtends,
6241
6302
  childProps,
6242
6303
  children,
6243
6304
  on: on2,
@@ -6245,16 +6306,18 @@ var require_cjs2 = __commonJS({
6245
6306
  $stateCollection,
6246
6307
  $propsCollection
6247
6308
  } = element;
6248
- const hasComponentAttrs = extend || childExtend || props2 || on2 || $collection || $stateCollection || $propsCollection;
6249
- if (hasComponentAttrs && (childProps || extendProps || children || childrenExtends)) {
6250
- element.error("Sugar component includes params for builtin components");
6309
+ const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
6310
+ if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
6311
+ const logErr = (_a = parent || element) == null ? void 0 : _a.error;
6312
+ if (logErr)
6313
+ logErr("Sugar component includes params for builtin components", { verbose: true });
6251
6314
  }
6252
- return !hasComponentAttrs || childProps || extendProps || children || childrenExtends;
6315
+ return !hasComponentAttrs || childProps || extendProps || children || childExtends;
6253
6316
  };
6254
6317
  var extendizeByKey = (element, parent, key) => {
6255
6318
  const { context } = parent;
6256
- const { tag, extend, childrenExtends } = element;
6257
- const isSugar = checkIfSugar(element);
6319
+ const { tag, extend, childExtends } = element;
6320
+ const isSugar = checkIfSugar(element, parent, key);
6258
6321
  const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent(key.split(".")[1]) ? [key.split(".")[0]] : [key];
6259
6322
  const isExtendKeyComponent = context && context.components[extendFromKey];
6260
6323
  if (element === isExtendKeyComponent)
@@ -6265,8 +6328,8 @@ var require_cjs2 = __commonJS({
6265
6328
  tag,
6266
6329
  props: { ...element }
6267
6330
  });
6268
- if (childrenExtends)
6269
- newElem.childExtend = childrenExtends;
6331
+ if (childExtends)
6332
+ newElem.childExtend = childExtends;
6270
6333
  return newElem;
6271
6334
  } else if (!extend || extend === true) {
6272
6335
  return {
@@ -6295,23 +6358,24 @@ var require_cjs2 = __commonJS({
6295
6358
  const childKey = childElems[i];
6296
6359
  const childElem = element[childKey];
6297
6360
  const newChild = element.props[childKey];
6361
+ const assignChild = (val) => {
6362
+ element[childKey] = val;
6363
+ delete element.props[childKey];
6364
+ };
6298
6365
  if (newChild == null ? void 0 : newChild.ignoreExtend)
6299
6366
  continue;
6300
- if (!childElem)
6301
- element[childKey] = (0, import__.deepCloneWithExtend)(newChild);
6367
+ if (newChild === null)
6368
+ assignChild(null);
6369
+ else if (!childElem)
6370
+ assignChild((0, import__.deepCloneWithExtend)(newChild));
6302
6371
  else {
6303
- const isSugar = checkIfSugar(childElem);
6304
- if (!isSugar)
6372
+ const isSugarChildElem = checkIfSugar(childElem, parent, key);
6373
+ if (isSugarChildElem)
6305
6374
  continue;
6306
- const inheritedChildElem = element[childKey].props;
6307
- if ((0, import__.isObjectLike)(newChild)) {
6308
- (0, import__.overwriteDeep)(inheritedChildElem, newChild);
6309
- } else if ((0, import__.isFunction)(newChild)) {
6310
- element[childKey] = {
6311
- extend: element[childKey],
6312
- props: newChild
6313
- };
6314
- }
6375
+ assignChild({
6376
+ extend: element[childKey],
6377
+ props: newChild
6378
+ });
6315
6379
  }
6316
6380
  }
6317
6381
  };
@@ -6345,8 +6409,8 @@ var require_cjs2 = __commonJS({
6345
6409
  return firstCharKey === ".";
6346
6410
  };
6347
6411
  var hasVariantProp = (element) => {
6348
- const { props: props2 } = element;
6349
- if ((0, import__.isObject)(props2) && (0, import__.isString)(props2.variant))
6412
+ const { props: props5 } = element;
6413
+ if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
6350
6414
  return true;
6351
6415
  };
6352
6416
  var getChildrenComponentsByKey = (key, el) => {
@@ -7238,8 +7302,8 @@ var require_cjs2 = __commonJS({
7238
7302
  18: "S",
7239
7303
  19: "T"
7240
7304
  };
7241
- var setSequenceValue = (props2, sequenceProps) => {
7242
- const { key, variable, value: value2, scaling, index, scalingVariable } = props2;
7305
+ var setSequenceValue = (props5, sequenceProps) => {
7306
+ const { key, variable, value: value2, scaling, index, scalingVariable } = props5;
7243
7307
  sequenceProps.sequence[key] = {
7244
7308
  key,
7245
7309
  decimal: ~~(value2 * 100) / 100,
@@ -7287,8 +7351,8 @@ var require_cjs2 = __commonJS({
7287
7351
  var getSubratio = (base, ratio) => {
7288
7352
  return getSubratioDifference(base, ratio).map((v) => v / base);
7289
7353
  };
7290
- var generateSubSequence = (props2, sequenceProps) => {
7291
- const { key, base, value: value2, ratio, variable, index } = props2;
7354
+ var generateSubSequence = (props5, sequenceProps) => {
7355
+ const { key, base, value: value2, ratio, variable, index } = props5;
7292
7356
  const next3 = value2 * ratio;
7293
7357
  const diffRounded = ~~next3 - ~~value2;
7294
7358
  let arr;
@@ -7327,7 +7391,7 @@ var require_cjs2 = __commonJS({
7327
7391
  const scaling = ~~(value2 / base * 100) / 100;
7328
7392
  const variable = prefix3 + letterKey;
7329
7393
  const scalingVariable = setScalingVar(key, sequenceProps);
7330
- const props2 = {
7394
+ const props5 = {
7331
7395
  key: letterKey,
7332
7396
  variable,
7333
7397
  value: value2,
@@ -7337,9 +7401,9 @@ var require_cjs2 = __commonJS({
7337
7401
  ratio,
7338
7402
  index: key
7339
7403
  };
7340
- setSequenceValue(props2, sequenceProps);
7404
+ setSequenceValue(props5, sequenceProps);
7341
7405
  if (subSequence)
7342
- generateSubSequence(props2, sequenceProps);
7406
+ generateSubSequence(props5, sequenceProps);
7343
7407
  }
7344
7408
  return sequenceProps;
7345
7409
  };
@@ -8015,20 +8079,20 @@ var require_cjs2 = __commonJS({
8015
8079
  applyMediaSequenceVars(FACTORY2, prop);
8016
8080
  }
8017
8081
  };
8018
- var applyHeadings = (props2) => {
8082
+ var applyHeadings = (props5) => {
8019
8083
  const CONFIG22 = getActiveConfig3();
8020
- if (props2.h1Matches) {
8021
- const unit = props2.unit;
8022
- const HEADINGS = findHeadings(props2);
8023
- const { templates } = props2;
8084
+ if (props5.h1Matches) {
8085
+ const unit = props5.unit;
8086
+ const HEADINGS = findHeadings(props5);
8087
+ const { templates } = props5;
8024
8088
  for (const k in HEADINGS) {
8025
8089
  const headerName = `h${parseInt(k) + 1}`;
8026
8090
  const headerStyle = templates[headerName];
8027
8091
  templates[headerName] = {
8028
8092
  fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
8029
8093
  margin: headerStyle ? headerStyle.margin : 0,
8030
- lineHeight: headerStyle ? headerStyle.lineHeight : props2.lineHeight,
8031
- letterSpacing: headerStyle ? headerStyle.letterSpacing : props2.letterSpacing,
8094
+ lineHeight: headerStyle ? headerStyle.lineHeight : props5.lineHeight,
8095
+ letterSpacing: headerStyle ? headerStyle.letterSpacing : props5.letterSpacing,
8032
8096
  fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
8033
8097
  };
8034
8098
  }
@@ -8132,11 +8196,11 @@ var require_cjs2 = __commonJS({
8132
8196
  sequence
8133
8197
  );
8134
8198
  };
8135
- var getSpacingBasedOnRatio4 = (props2, propertyName, val) => {
8199
+ var getSpacingBasedOnRatio4 = (props5, propertyName, val) => {
8136
8200
  const CONFIG22 = getActiveConfig3();
8137
8201
  const { SPACING: SPACING22 } = CONFIG22;
8138
- const { spacingRatio, unit } = props2;
8139
- const value2 = val || props2[propertyName];
8202
+ const { spacingRatio, unit } = props5;
8203
+ const value2 = val || props5[propertyName];
8140
8204
  if (spacingRatio) {
8141
8205
  let sequenceProps = SPACING22[spacingRatio];
8142
8206
  if (!sequenceProps) {
@@ -8506,7 +8570,7 @@ var require_cjs2 = __commonJS({
8506
8570
  return v;
8507
8571
  }).join(" ");
8508
8572
  };
8509
- var transformDuration2 = (duration, props2, propertyName) => {
8573
+ var transformDuration2 = (duration, props5, propertyName) => {
8510
8574
  if (!(0, import_utils252.isString)(duration))
8511
8575
  return;
8512
8576
  return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
@@ -8521,11 +8585,11 @@ var require_cjs2 = __commonJS({
8521
8585
  const prop = propertyName.toLowerCase();
8522
8586
  return (prop.includes("width") || prop.includes("height")) && !prop.includes("border");
8523
8587
  };
8524
- var transformSize2 = (propertyName, val, props2 = {}, opts = {}) => {
8525
- let value2 = val || props2[propertyName];
8588
+ var transformSize2 = (propertyName, val, props5 = {}, opts = {}) => {
8589
+ let value2 = val || props5[propertyName];
8526
8590
  if ((0, import_utils252.isUndefined)(value2) && (0, import_utils252.isNull)(value2))
8527
8591
  return;
8528
- const shouldScaleBoxSize = props2.scaleBoxSize;
8592
+ const shouldScaleBoxSize = props5.scaleBoxSize;
8529
8593
  const isBoxSize = checkIfBoxSize(propertyName);
8530
8594
  if (!shouldScaleBoxSize && isBoxSize && (0, import_utils252.isString)(value2)) {
8531
8595
  value2 = value2.split(" ").map((v) => {
@@ -8537,13 +8601,13 @@ var require_cjs2 = __commonJS({
8537
8601
  }).join(" ");
8538
8602
  }
8539
8603
  if (opts.ratio) {
8540
- return getSpacingBasedOnRatio4(props2, propertyName, value2);
8604
+ return getSpacingBasedOnRatio4(props5, propertyName, value2);
8541
8605
  } else {
8542
8606
  return getSpacingByKey3(value2, propertyName);
8543
8607
  }
8544
8608
  };
8545
- var transformSizeRatio2 = (propertyName, props2) => {
8546
- return transformSize2(propertyName, null, props2, {
8609
+ var transformSizeRatio2 = (propertyName, props5) => {
8610
+ return transformSize2(propertyName, null, props5, {
8547
8611
  ratio: true
8548
8612
  });
8549
8613
  };
@@ -8588,11 +8652,11 @@ var require_cjs2 = __commonJS({
8588
8652
  if (CONFIG22.verbose)
8589
8653
  console.warn("Can not find", factoryName, "method in scratch");
8590
8654
  };
8591
- var setEach = (factoryName, props2) => {
8655
+ var setEach = (factoryName, props5) => {
8592
8656
  const CONFIG22 = getActiveConfig3();
8593
8657
  const FACTORY_NAME = factoryName.toUpperCase();
8594
- const keys = Object.keys(props2);
8595
- keys.map((key) => setValue(FACTORY_NAME, props2[key], key));
8658
+ const keys = Object.keys(props5);
8659
+ keys.map((key) => setValue(FACTORY_NAME, props5[key], key));
8596
8660
  return CONFIG22[FACTORY_NAME];
8597
8661
  };
8598
8662
  var SET_OPTIONS2 = {};
@@ -8802,11 +8866,11 @@ var init_Utility = __esm({
8802
8866
  });
8803
8867
 
8804
8868
  // ../../node_modules/stylis/src/Tokenizer.js
8805
- function node(value2, root, parent, type, props2, children, length3) {
8806
- return { value: value2, root, parent, type, props: props2, children, line, column, length: length3, return: "" };
8869
+ function node(value2, root, parent, type, props5, children, length3) {
8870
+ return { value: value2, root, parent, type, props: props5, children, line, column, length: length3, return: "" };
8807
8871
  }
8808
- function copy(root, props2) {
8809
- return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props2);
8872
+ function copy(root, props5) {
8873
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props5);
8810
8874
  }
8811
8875
  function char() {
8812
8876
  return character;
@@ -8949,7 +9013,7 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
8949
9013
  var ampersand = 1;
8950
9014
  var character3 = 0;
8951
9015
  var type = "";
8952
- var props2 = rules;
9016
+ var props5 = rules;
8953
9017
  var children = rulesets;
8954
9018
  var reference = rule;
8955
9019
  var characters3 = type;
@@ -9003,17 +9067,17 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
9003
9067
  case 59:
9004
9068
  characters3 += ";";
9005
9069
  default:
9006
- append(reference = ruleset(characters3, root, parent, index, offset, rules, points, type, props2 = [], children = [], length3), rulesets);
9070
+ append(reference = ruleset(characters3, root, parent, index, offset, rules, points, type, props5 = [], children = [], length3), rulesets);
9007
9071
  if (character3 === 123)
9008
9072
  if (offset === 0)
9009
- parse(characters3, root, reference, reference, props2, rulesets, length3, points, children);
9073
+ parse(characters3, root, reference, reference, props5, rulesets, length3, points, children);
9010
9074
  else
9011
9075
  switch (atrule === 99 && charat(characters3, 3) === 110 ? 100 : atrule) {
9012
9076
  case 100:
9013
9077
  case 108:
9014
9078
  case 109:
9015
9079
  case 115:
9016
- parse(value2, reference, reference, rule && append(ruleset(value2, reference, reference, 0, 0, rules, points, type, rules, props2 = [], length3), children), rules, children, length3, points, rule ? props2 : children);
9080
+ parse(value2, reference, reference, rule && append(ruleset(value2, reference, reference, 0, 0, rules, points, type, rules, props5 = [], length3), children), rules, children, length3, points, rule ? props5 : children);
9017
9081
  break;
9018
9082
  default:
9019
9083
  parse(characters3, reference, reference, reference, [""], children, 0, points, children);
@@ -9049,15 +9113,15 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
9049
9113
  }
9050
9114
  return rulesets;
9051
9115
  }
9052
- function ruleset(value2, root, parent, index, offset, rules, points, type, props2, children, length3) {
9116
+ function ruleset(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
9053
9117
  var post = offset - 1;
9054
9118
  var rule = offset === 0 ? rules : [""];
9055
9119
  var size = sizeof(rule);
9056
9120
  for (var i = 0, j = 0, k = 0; i < index; ++i)
9057
9121
  for (var x = 0, y = substr(value2, post + 1, post = abs(j = points[i])), z = value2; x < size; ++x)
9058
9122
  if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
9059
- props2[k++] = z;
9060
- return node(value2, root, parent, offset === 0 ? RULESET : type, props2, children, length3);
9123
+ props5[k++] = z;
9124
+ return node(value2, root, parent, offset === 0 ? RULESET : type, props5, children, length3);
9061
9125
  }
9062
9126
  function comment(value2, root, parent) {
9063
9127
  return node(value2, root, parent, COMMENT, from(char()), substr(value2, 2, -2), 0);
@@ -10045,18 +10109,174 @@ var init_init = __esm({
10045
10109
  const emotion2 = options.emotion || emotion;
10046
10110
  emotion2.injectGlobal({ ":root": config.CSS_VARS });
10047
10111
  };
10048
- setClass = (props2, options = UPDATE_OPTIONS) => {
10112
+ setClass = (props5, options = UPDATE_OPTIONS) => {
10049
10113
  };
10050
10114
  }
10051
10115
  });
10052
10116
 
10053
10117
  // ../uikit/Atoms/Block.js
10054
- var import_utils3, import_scratch2, Block, Hr, Br, Div, Span, Li, Ul, Ol, Gutter;
10118
+ var import_utils3, import_scratch2, props, Block, Hr, Br, Div, Span, Li, Ul, Ol, Gutter;
10055
10119
  var init_Block = __esm({
10056
10120
  "../uikit/Atoms/Block.js"() {
10057
10121
  "use strict";
10058
10122
  import_utils3 = __toESM(require_cjs());
10059
10123
  import_scratch2 = __toESM(require_cjs2());
10124
+ props = {
10125
+ show: (el, s, ctx) => !!(ctx.utils.exec(el.props.show, el, s) === false) && {
10126
+ display: "none !important"
10127
+ },
10128
+ hide: (el, s, ctx) => !!ctx.utils.exec(el.props.hide, el, s) && {
10129
+ display: "none !important"
10130
+ },
10131
+ height: ({ props: props5, deps }) => deps.transformSizeRatio("height", props5),
10132
+ width: ({ props: props5, deps }) => deps.transformSizeRatio("width", props5),
10133
+ boxSizing: ({ props: props5, deps }) => !deps.isUndefined(props5.boxSizing) ? { boxSizing: props5.boxSizing } : { boxSizing: "border-box" },
10134
+ boxSize: ({ props: props5, deps }) => {
10135
+ if (!deps.isString(props5.boxSize))
10136
+ return;
10137
+ const [height, width] = props5.boxSize.split(" ");
10138
+ return {
10139
+ ...deps.transformSize("height", height),
10140
+ ...deps.transformSize("width", width || height)
10141
+ };
10142
+ },
10143
+ inlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("inlineSize", props5),
10144
+ blockSize: ({ props: props5, deps }) => deps.transformSizeRatio("blockSize", props5),
10145
+ minWidth: ({ props: props5, deps }) => deps.transformSizeRatio("minWidth", props5),
10146
+ maxWidth: ({ props: props5, deps }) => deps.transformSizeRatio("maxWidth", props5),
10147
+ widthRange: ({ props: props5, deps }) => {
10148
+ if (!deps.isString(props5.widthRange))
10149
+ return;
10150
+ const [minWidth, maxWidth] = props5.widthRange.split(" ");
10151
+ return {
10152
+ ...deps.transformSize("minWidth", minWidth),
10153
+ ...deps.transformSize("maxWidth", maxWidth || minWidth)
10154
+ };
10155
+ },
10156
+ minHeight: ({ props: props5, deps }) => deps.transformSizeRatio("minHeight", props5),
10157
+ maxHeight: ({ props: props5, deps }) => deps.transformSizeRatio("maxHeight", props5),
10158
+ heightRange: ({ props: props5, deps }) => {
10159
+ if (!deps.isString(props5.heightRange))
10160
+ return;
10161
+ const [minHeight, maxHeight] = props5.heightRange.split(" ");
10162
+ return {
10163
+ ...deps.transformSize("minHeight", minHeight),
10164
+ ...deps.transformSize("maxHeight", maxHeight || minHeight)
10165
+ };
10166
+ },
10167
+ size: ({ props: props5, deps }) => {
10168
+ if (!deps.isString(props5.size))
10169
+ return;
10170
+ const [inlineSize, blockSize] = props5.size.split(" ");
10171
+ return {
10172
+ ...deps.transformSizeRatio("inlineSize", inlineSize),
10173
+ ...deps.transformSizeRatio("blockSize", blockSize || inlineSize)
10174
+ };
10175
+ },
10176
+ minBlockSize: ({ props: props5, deps }) => deps.transformSizeRatio("minBlockSize", props5),
10177
+ minInlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("minInlineSize", props5),
10178
+ maxBlockSize: ({ props: props5, deps }) => deps.transformSizeRatio("maxBlockSize", props5),
10179
+ maxInlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("maxInlineSize", props5),
10180
+ minSize: ({ props: props5, deps }) => {
10181
+ if (!deps.isString(props5.minSize))
10182
+ return;
10183
+ const [minInlineSize, minBlockSize] = props5.minSize.split(" ");
10184
+ return {
10185
+ ...deps.transformSize("minInlineSize", minInlineSize),
10186
+ ...deps.transformSize("minBlockSize", minBlockSize || minInlineSize)
10187
+ };
10188
+ },
10189
+ maxSize: ({ props: props5, deps }) => {
10190
+ if (!deps.isString(props5.maxSize))
10191
+ return;
10192
+ const [maxInlineSize, maxBlockSize] = props5.maxSize.split(" ");
10193
+ return {
10194
+ ...deps.transformSize("maxInlineSize", maxInlineSize),
10195
+ ...deps.transformSize("maxBlockSize", maxBlockSize || maxInlineSize)
10196
+ };
10197
+ },
10198
+ borderWidth: ({ props: props5, deps }) => deps.transformSizeRatio("borderWidth", props5),
10199
+ padding: ({ props: props5, deps }) => deps.transformSizeRatio("padding", props5),
10200
+ scrollPadding: ({ props: props5, deps }) => deps.transformSizeRatio("scrollPadding", props5),
10201
+ paddingInline: ({ props: props5, deps }) => {
10202
+ if (!deps.isString(props5.paddingInline))
10203
+ return;
10204
+ const [paddingInlineStart, paddingInlineEnd] = props5.paddingInline.split(" ");
10205
+ return {
10206
+ ...deps.transformSize("paddingInlineStart", paddingInlineStart),
10207
+ ...deps.transformSize("paddingInlineEnd", paddingInlineEnd || paddingInlineStart)
10208
+ };
10209
+ },
10210
+ paddingBlock: ({ props: props5, deps }) => {
10211
+ if (!deps.isString(props5.paddingBlock))
10212
+ return;
10213
+ const [paddingBlockStart, paddingBlockEnd] = props5.paddingBlock.split(" ");
10214
+ return {
10215
+ ...deps.transformSize("paddingBlockStart", paddingBlockStart),
10216
+ ...deps.transformSize("paddingBlockEnd", paddingBlockEnd || paddingBlockStart)
10217
+ };
10218
+ },
10219
+ paddingInlineStart: ({ props: props5, deps }) => deps.transformSizeRatio("paddingInlineStart", props5),
10220
+ paddingInlineEnd: ({ props: props5, deps }) => deps.transformSizeRatio("paddingInlineEnd", props5),
10221
+ paddingBlockStart: ({ props: props5, deps }) => deps.transformSizeRatio("paddingBlockStart", props5),
10222
+ paddingBlockEnd: ({ props: props5, deps }) => deps.transformSizeRatio("paddingBlockEnd", props5),
10223
+ margin: ({ props: props5, deps }) => deps.transformSizeRatio("margin", props5),
10224
+ marginInline: ({ props: props5, deps }) => {
10225
+ if (!deps.isString(props5.marginInline))
10226
+ return;
10227
+ const [marginInlineStart, marginInlineEnd] = props5.marginInline.split(" ");
10228
+ return {
10229
+ ...deps.transformSize("marginInlineStart", marginInlineStart),
10230
+ ...deps.transformSize("marginInlineEnd", marginInlineEnd || marginInlineStart)
10231
+ };
10232
+ },
10233
+ marginBlock: ({ props: props5, deps }) => {
10234
+ if (!deps.isString(props5.marginBlock))
10235
+ return;
10236
+ const [marginBlockStart, marginBlockEnd] = props5.marginBlock.split(" ");
10237
+ return {
10238
+ ...deps.transformSize("marginBlockStart", marginBlockStart),
10239
+ ...deps.transformSize("marginBlockEnd", marginBlockEnd || marginBlockStart)
10240
+ };
10241
+ },
10242
+ marginInlineStart: ({ props: props5, deps }) => deps.transformSizeRatio("marginInlineStart", props5),
10243
+ marginInlineEnd: ({ props: props5, deps }) => deps.transformSizeRatio("marginInlineEnd", props5),
10244
+ marginBlockStart: ({ props: props5, deps }) => deps.transformSizeRatio("marginBlockStart", props5),
10245
+ marginBlockEnd: ({ props: props5, deps }) => deps.transformSizeRatio("marginBlockEnd", props5),
10246
+ gap: ({ props: props5, deps }) => !deps.isUndefined(props5.gap) && {
10247
+ gap: (0, import_scratch2.transfromGap)(props5.gap)
10248
+ },
10249
+ columnGap: ({ props: props5, deps }) => !deps.isUndefined(props5.columnGap) ? deps.getSpacingBasedOnRatio(props5, "columnGap") : null,
10250
+ rowGap: ({ props: props5, deps }) => !deps.isUndefined(props5.rowGap) ? deps.getSpacingBasedOnRatio(props5, "rowGap") : null,
10251
+ flexWrap: ({ props: props5, deps }) => !deps.isUndefined(props5.flexWrap) && {
10252
+ display: "flex",
10253
+ flexFlow: (props5.flexFlow || "row").split(" ")[0] + " " + props5.flexWrap
10254
+ },
10255
+ flexFlow: ({ props: props5, deps }) => {
10256
+ const { flexFlow, reverse } = props5;
10257
+ if (!deps.isString(flexFlow))
10258
+ return;
10259
+ let [direction, wrap] = (flexFlow || "row").split(" ");
10260
+ if (flexFlow.startsWith("x") || flexFlow === "row")
10261
+ direction = "row";
10262
+ if (flexFlow.startsWith("y") || flexFlow === "column")
10263
+ direction = "column";
10264
+ return {
10265
+ display: "flex",
10266
+ flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
10267
+ };
10268
+ },
10269
+ flexAlign: ({ props: props5, deps }) => {
10270
+ if (!deps.isString(props5.flexAlign))
10271
+ return;
10272
+ const [alignItems, justifyContent] = props5.flexAlign.split(" ");
10273
+ return {
10274
+ display: "flex",
10275
+ alignItems,
10276
+ justifyContent
10277
+ };
10278
+ }
10279
+ };
10060
10280
  Block = {
10061
10281
  deps: {
10062
10282
  getSpacingBasedOnRatio: import_scratch2.getSpacingBasedOnRatio,
@@ -10068,233 +10288,82 @@ var init_Block = __esm({
10068
10288
  isString: import_utils3.isString
10069
10289
  },
10070
10290
  class: {
10071
- boxSizing: ({ props: props2, deps }) => !deps.isUndefined(props2.boxSizing) ? { boxSizing: props2.boxSizing } : { boxSizing: "border-box" },
10072
- display: ({ props: props2, deps }) => !deps.isUndefined(props2.display) && {
10073
- display: props2.display
10291
+ ...props,
10292
+ display: ({ props: props5, deps }) => !deps.isUndefined(props5.display) && {
10293
+ display: props5.display
10074
10294
  },
10075
- show: (el, s, ctx) => !!(ctx.utils.exec(el.props.show, el, s) === false) && {
10076
- display: "none !important"
10295
+ direction: ({ props: props5, deps }) => !deps.isUndefined(props5.direction) && {
10296
+ direction: props5.direction
10077
10297
  },
10078
- hide: (el, s, ctx) => !!ctx.utils.exec(el.props.hide, el, s) && {
10079
- display: "none !important"
10298
+ objectFit: ({ props: props5, deps }) => !deps.isUndefined(props5.objectFit) && {
10299
+ objectFit: props5.objectFit
10080
10300
  },
10081
- height: ({ props: props2, deps }) => deps.transformSizeRatio("height", props2),
10082
- width: ({ props: props2, deps }) => deps.transformSizeRatio("width", props2),
10083
- boxSize: ({ props: props2, deps }) => {
10084
- if (!deps.isString(props2.boxSize))
10085
- return;
10086
- const [height, width] = props2.boxSize.split(" ");
10087
- return {
10088
- ...deps.transformSize("height", height),
10089
- ...deps.transformSize("width", width || height)
10090
- };
10301
+ aspectRatio: ({ props: props5, deps }) => !deps.isUndefined(props5.aspectRatio) && {
10302
+ aspectRatio: props5.aspectRatio
10091
10303
  },
10092
- inlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("inlineSize", props2),
10093
- blockSize: ({ props: props2, deps }) => deps.transformSizeRatio("blockSize", props2),
10094
- minWidth: ({ props: props2, deps }) => deps.transformSizeRatio("minWidth", props2),
10095
- maxWidth: ({ props: props2, deps }) => deps.transformSizeRatio("maxWidth", props2),
10096
- widthRange: ({ props: props2, deps }) => {
10097
- if (!deps.isString(props2.widthRange))
10098
- return;
10099
- const [minWidth, maxWidth] = props2.widthRange.split(" ");
10100
- return {
10101
- ...deps.transformSize("minWidth", minWidth),
10102
- ...deps.transformSize("maxWidth", maxWidth || minWidth)
10103
- };
10304
+ gridArea: ({ props: props5, deps }) => props5.gridArea && { gridArea: props5.gridArea },
10305
+ float: ({ props: props5, deps }) => !deps.isUndefined(props5.float) && {
10306
+ float: props5.float
10104
10307
  },
10105
- minHeight: ({ props: props2, deps }) => deps.transformSizeRatio("minHeight", props2),
10106
- maxHeight: ({ props: props2, deps }) => deps.transformSizeRatio("maxHeight", props2),
10107
- heightRange: ({ props: props2, deps }) => {
10108
- if (!deps.isString(props2.heightRange))
10109
- return;
10110
- const [minHeight, maxHeight] = props2.heightRange.split(" ");
10111
- return {
10112
- ...deps.transformSize("minHeight", minHeight),
10113
- ...deps.transformSize("maxHeight", maxHeight || minHeight)
10114
- };
10308
+ flex: ({ props: props5, deps }) => !deps.isUndefined(props5.flex) && {
10309
+ flex: props5.flex
10115
10310
  },
10116
- size: ({ props: props2, deps }) => {
10117
- if (!deps.isString(props2.size))
10118
- return;
10119
- const [inlineSize, blockSize] = props2.size.split(" ");
10120
- return {
10121
- ...deps.transformSizeRatio("inlineSize", inlineSize),
10122
- ...deps.transformSizeRatio("blockSize", blockSize || inlineSize)
10123
- };
10311
+ flexDirection: ({ props: props5, deps }) => !deps.isUndefined(props5.flexDirection) && {
10312
+ flexDirection: props5.flexDirection
10124
10313
  },
10125
- minBlockSize: ({ props: props2, deps }) => deps.transformSizeRatio("minBlockSize", props2),
10126
- minInlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("minInlineSize", props2),
10127
- maxBlockSize: ({ props: props2, deps }) => deps.transformSizeRatio("maxBlockSize", props2),
10128
- maxInlineSize: ({ props: props2, deps }) => deps.transformSizeRatio("maxInlineSize", props2),
10129
- minSize: ({ props: props2, deps }) => {
10130
- if (!deps.isString(props2.minSize))
10131
- return;
10132
- const [minInlineSize, minBlockSize] = props2.minSize.split(" ");
10133
- return {
10134
- ...deps.transformSize("minInlineSize", minInlineSize),
10135
- ...deps.transformSize("minBlockSize", minBlockSize || minInlineSize)
10136
- };
10314
+ alignItems: ({ props: props5, deps }) => !deps.isUndefined(props5.alignItems) && {
10315
+ alignItems: props5.alignItems
10137
10316
  },
10138
- maxSize: ({ props: props2, deps }) => {
10139
- if (!deps.isString(props2.maxSize))
10140
- return;
10141
- const [maxInlineSize, maxBlockSize] = props2.maxSize.split(" ");
10142
- return {
10143
- ...deps.transformSize("maxInlineSize", maxInlineSize),
10144
- ...deps.transformSize("maxBlockSize", maxBlockSize || maxInlineSize)
10145
- };
10317
+ alignContent: ({ props: props5, deps }) => !deps.isUndefined(props5.alignContent) && {
10318
+ alignContent: props5.alignContent
10146
10319
  },
10147
- direction: ({ props: props2, deps }) => !deps.isUndefined(props2.direction) && {
10148
- direction: props2.direction
10320
+ justifyContent: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyContent) && {
10321
+ justifyContent: props5.justifyContent
10149
10322
  },
10150
- objectFit: ({ props: props2, deps }) => !deps.isUndefined(props2.objectFit) && {
10151
- objectFit: props2.objectFit
10323
+ justifyItems: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyItems) && {
10324
+ justifyItems: props5.justifyItems
10152
10325
  },
10153
- aspectRatio: ({ props: props2, deps }) => !deps.isUndefined(props2.aspectRatio) && {
10154
- aspectRatio: props2.aspectRatio
10326
+ alignSelf: ({ props: props5, deps }) => !deps.isUndefined(props5.alignSelf) && {
10327
+ alignSelf: props5.alignSelf
10155
10328
  },
10156
- borderWidth: ({ props: props2, deps }) => deps.transformSizeRatio("borderWidth", props2),
10157
- padding: ({ props: props2, deps }) => deps.transformSizeRatio("padding", props2),
10158
- scrollPadding: ({ props: props2, deps }) => deps.transformSizeRatio("scrollPadding", props2),
10159
- paddingInline: ({ props: props2, deps }) => {
10160
- if (!deps.isString(props2.paddingInline))
10161
- return;
10162
- const [paddingInlineStart, paddingInlineEnd] = props2.paddingInline.split(" ");
10163
- return {
10164
- ...deps.transformSize("paddingInlineStart", paddingInlineStart),
10165
- ...deps.transformSize("paddingInlineEnd", paddingInlineEnd || paddingInlineStart)
10166
- };
10329
+ order: ({ props: props5, deps }) => !deps.isUndefined(props5.order) && {
10330
+ order: props5.order
10167
10331
  },
10168
- paddingBlock: ({ props: props2, deps }) => {
10169
- if (!deps.isString(props2.paddingBlock))
10170
- return;
10171
- const [paddingBlockStart, paddingBlockEnd] = props2.paddingBlock.split(" ");
10172
- return {
10173
- ...deps.transformSize("paddingBlockStart", paddingBlockStart),
10174
- ...deps.transformSize("paddingBlockEnd", paddingBlockEnd || paddingBlockStart)
10175
- };
10332
+ gridColumn: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumn) && {
10333
+ gridColumn: props5.gridColumn
10176
10334
  },
10177
- paddingInlineStart: ({ props: props2, deps }) => deps.transformSizeRatio("paddingInlineStart", props2),
10178
- paddingInlineEnd: ({ props: props2, deps }) => deps.transformSizeRatio("paddingInlineEnd", props2),
10179
- paddingBlockStart: ({ props: props2, deps }) => deps.transformSizeRatio("paddingBlockStart", props2),
10180
- paddingBlockEnd: ({ props: props2, deps }) => deps.transformSizeRatio("paddingBlockEnd", props2),
10181
- margin: ({ props: props2, deps }) => deps.transformSizeRatio("margin", props2),
10182
- marginInline: ({ props: props2, deps }) => {
10183
- if (!deps.isString(props2.marginInline))
10184
- return;
10185
- const [marginInlineStart, marginInlineEnd] = props2.marginInline.split(" ");
10186
- return {
10187
- ...deps.transformSize("marginInlineStart", marginInlineStart),
10188
- ...deps.transformSize("marginInlineEnd", marginInlineEnd || marginInlineStart)
10189
- };
10335
+ gridColumnStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumnStart) && {
10336
+ gridColumnStart: props5.gridColumnStart
10190
10337
  },
10191
- marginBlock: ({ props: props2, deps }) => {
10192
- if (!deps.isString(props2.marginBlock))
10193
- return;
10194
- const [marginBlockStart, marginBlockEnd] = props2.marginBlock.split(" ");
10195
- return {
10196
- ...deps.transformSize("marginBlockStart", marginBlockStart),
10197
- ...deps.transformSize("marginBlockEnd", marginBlockEnd || marginBlockStart)
10198
- };
10199
- },
10200
- marginInlineStart: ({ props: props2, deps }) => deps.transformSizeRatio("marginInlineStart", props2),
10201
- marginInlineEnd: ({ props: props2, deps }) => deps.transformSizeRatio("marginInlineEnd", props2),
10202
- marginBlockStart: ({ props: props2, deps }) => deps.transformSizeRatio("marginBlockStart", props2),
10203
- marginBlockEnd: ({ props: props2, deps }) => deps.transformSizeRatio("marginBlockEnd", props2),
10204
- gap: ({ props: props2, deps }) => !deps.isUndefined(props2.gap) && {
10205
- gap: (0, import_scratch2.transfromGap)(props2.gap)
10206
- },
10207
- columnGap: ({ props: props2, deps }) => props2.columnGap ? deps.getSpacingBasedOnRatio(props2, "columnGap") : null,
10208
- rowGap: ({ props: props2, deps }) => props2.rowGap ? deps.getSpacingBasedOnRatio(props2, "rowGap") : null,
10209
- gridArea: ({ props: props2, deps }) => props2.gridArea && { gridArea: props2.gridArea },
10210
- float: ({ props: props2, deps }) => !deps.isUndefined(props2.float) && {
10211
- float: props2.float
10212
- },
10213
- flex: ({ props: props2, deps }) => !deps.isUndefined(props2.flex) && {
10214
- flex: props2.flex
10215
- },
10216
- flexDirection: ({ props: props2, deps }) => !deps.isUndefined(props2.flexDirection) && {
10217
- flexDirection: props2.flexDirection
10218
- },
10219
- alignItems: ({ props: props2, deps }) => !deps.isUndefined(props2.alignItems) && {
10220
- alignItems: props2.alignItems
10221
- },
10222
- alignContent: ({ props: props2, deps }) => !deps.isUndefined(props2.alignContent) && {
10223
- alignContent: props2.alignContent
10224
- },
10225
- justifyContent: ({ props: props2, deps }) => !deps.isUndefined(props2.justifyContent) && {
10226
- justifyContent: props2.justifyContent
10227
- },
10228
- justifyItems: ({ props: props2, deps }) => !deps.isUndefined(props2.justifyItems) && {
10229
- justifyItems: props2.justifyItems
10230
- },
10231
- alignSelf: ({ props: props2, deps }) => !deps.isUndefined(props2.alignSelf) && {
10232
- alignSelf: props2.alignSelf
10233
- },
10234
- order: ({ props: props2, deps }) => !deps.isUndefined(props2.order) && {
10235
- order: props2.order
10236
- },
10237
- flexWrap: ({ props: props2, deps }) => !deps.isUndefined(props2.flexWrap) && {
10238
- display: "flex",
10239
- flexFlow: (props2.flexFlow || "row").split(" ")[0] + " " + props2.flexWrap
10240
- },
10241
- flexFlow: ({ props: props2, deps }) => {
10242
- const { flexFlow, reverse } = props2;
10243
- if (!deps.isString(flexFlow))
10244
- return;
10245
- let [direction, wrap] = (flexFlow || "row").split(" ");
10246
- if (flexFlow.startsWith("x") || flexFlow === "row")
10247
- direction = "row";
10248
- if (flexFlow.startsWith("y") || flexFlow === "column")
10249
- direction = "column";
10250
- return {
10251
- display: "flex",
10252
- flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
10253
- };
10338
+ gridRow: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRow) && {
10339
+ gridRow: props5.gridRow
10254
10340
  },
10255
- flexAlign: ({ props: props2, deps }) => {
10256
- if (!deps.isString(props2.flexAlign))
10257
- return;
10258
- const [alignItems, justifyContent] = props2.flexAlign.split(" ");
10259
- return {
10260
- display: "flex",
10261
- alignItems,
10262
- justifyContent
10263
- };
10341
+ gridRowStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRowStart) && {
10342
+ gridRowStart: props5.gridRowStart
10264
10343
  },
10265
- gridColumn: ({ props: props2, deps }) => !deps.isUndefined(props2.gridColumn) && {
10266
- gridColumn: props2.gridColumn
10344
+ resize: ({ props: props5, deps }) => !deps.isUndefined(props5.resize) && {
10345
+ resize: props5.resize
10267
10346
  },
10268
- gridColumnStart: ({ props: props2, deps }) => !deps.isUndefined(props2.gridColumnStart) && {
10269
- gridColumnStart: props2.gridColumnStart
10347
+ verticalAlign: ({ props: props5, deps }) => !deps.isUndefined(props5.verticalAlign) && {
10348
+ verticalAlign: props5.verticalAlign
10270
10349
  },
10271
- gridRow: ({ props: props2, deps }) => !deps.isUndefined(props2.gridRow) && {
10272
- gridRow: props2.gridRow
10350
+ columns: ({ props: props5, deps }) => !deps.isUndefined(props5.columns) && {
10351
+ columns: props5.columns
10273
10352
  },
10274
- gridRowStart: ({ props: props2, deps }) => !deps.isUndefined(props2.gridRowStart) && {
10275
- gridRowStart: props2.gridRowStart
10353
+ columnRule: ({ props: props5, deps }) => !deps.isUndefined(props5.columnRule) && {
10354
+ columnRule: props5.columnRule
10276
10355
  },
10277
- resize: ({ props: props2, deps }) => !deps.isUndefined(props2.resize) && {
10278
- resize: props2.resize
10356
+ columnWidth: ({ props: props5, deps }) => !deps.isUndefined(props5.columnWidth) && {
10357
+ columnWidth: props5.columnWidth
10279
10358
  },
10280
- verticalAlign: ({ props: props2, deps }) => !deps.isUndefined(props2.verticalAlign) && { verticalAlign: props2.verticalAlign },
10281
- columns: ({ props: props2, deps }) => !deps.isUndefined(props2.columns) && {
10282
- columns: props2.columns
10359
+ columnSpan: ({ props: props5, deps }) => !deps.isUndefined(props5.columnSpan) && {
10360
+ columnSpan: props5.columnSpan
10283
10361
  },
10284
- columnRule: ({ props: props2, deps }) => !deps.isUndefined(props2.columnRule) && {
10285
- columnRule: props2.columnRule
10362
+ columnFill: ({ props: props5, deps }) => !deps.isUndefined(props5.columnFill) && {
10363
+ columnFill: props5.columnFill
10286
10364
  },
10287
- columnWidth: ({ props: props2, deps }) => !deps.isUndefined(props2.columnWidth) && {
10288
- columnWidth: props2.columnWidth
10289
- },
10290
- columnSpan: ({ props: props2, deps }) => !deps.isUndefined(props2.columnSpan) && {
10291
- columnSpan: props2.columnSpan
10292
- },
10293
- columnFill: ({ props: props2, deps }) => !deps.isUndefined(props2.columnFill) && {
10294
- columnFill: props2.columnFill
10295
- },
10296
- columnCount: ({ props: props2, deps }) => !deps.isUndefined(props2.columnCount) && {
10297
- columnCount: props2.columnCount
10365
+ columnCount: ({ props: props5, deps }) => !deps.isUndefined(props5.columnCount) && {
10366
+ columnCount: props5.columnCount
10298
10367
  }
10299
10368
  }
10300
10369
  };
@@ -10315,20 +10384,8 @@ var init_Block = __esm({
10315
10384
  childExtend: { extend: "Li" }
10316
10385
  };
10317
10386
  Gutter = {
10318
- deps: { getSpacingByKey: import_scratch2.getSpacingByKey },
10319
10387
  props: {
10320
10388
  size: "C1"
10321
- },
10322
- class: {
10323
- size: ({ props: props2, deps }) => {
10324
- if (!deps.isString(props2.size))
10325
- return;
10326
- const [height, width] = props2.size.split(" ");
10327
- return {
10328
- ...deps.getSpacingByKey("height", height),
10329
- ...deps.getSpacingByKey("width", width || height)
10330
- };
10331
- }
10332
10389
  }
10333
10390
  };
10334
10391
  }
@@ -10344,7 +10401,7 @@ var init_Direction = __esm({
10344
10401
  direction: "ltr"
10345
10402
  },
10346
10403
  class: {
10347
- direction: ({ props: props2 }) => ({ direction: props2.direction })
10404
+ direction: ({ props: props5 }) => ({ direction: props5.direction })
10348
10405
  }
10349
10406
  };
10350
10407
  }
@@ -10361,8 +10418,8 @@ var init_Flex = __esm({
10361
10418
  display: "flex"
10362
10419
  },
10363
10420
  class: {
10364
- flow: ({ props: props2 }) => {
10365
- const { flow, reverse } = props2;
10421
+ flow: ({ props: props5 }) => {
10422
+ const { flow, reverse } = props5;
10366
10423
  if (!(0, import_utils4.isString)(flow))
10367
10424
  return;
10368
10425
  let [direction, wrap] = (flow || "row").split(" ");
@@ -10374,11 +10431,11 @@ var init_Flex = __esm({
10374
10431
  flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
10375
10432
  };
10376
10433
  },
10377
- wrap: ({ props: props2 }) => props2.wrap && { flexWrap: props2.wrap },
10378
- align: ({ props: props2 }) => {
10379
- if (!(0, import_utils4.isString)(props2.align))
10434
+ wrap: ({ props: props5 }) => props5.wrap && { flexWrap: props5.wrap },
10435
+ align: ({ props: props5 }) => {
10436
+ if (!(0, import_utils4.isString)(props5.align))
10380
10437
  return;
10381
- const [alignItems, justifyContent] = props2.align.split(" ");
10438
+ const [alignItems, justifyContent] = props5.align.split(" ");
10382
10439
  return { alignItems, justifyContent };
10383
10440
  }
10384
10441
  }
@@ -10396,20 +10453,20 @@ var init_Grid = __esm({
10396
10453
  deps: { getSpacingBasedOnRatio: import_scratch3.getSpacingBasedOnRatio },
10397
10454
  props: { display: "grid" },
10398
10455
  class: {
10399
- area: ({ props: props2 }) => props2.area ? { gridArea: props2.area } : null,
10400
- template: ({ props: props2 }) => props2.template ? { gridTemplate: props2.template } : null,
10401
- templateAreas: ({ props: props2 }) => props2.templateAreas ? { gridTemplateAreas: props2.templateAreas } : null,
10402
- column: ({ props: props2 }) => props2.column ? { gridColumn: props2.column } : null,
10403
- columns: ({ props: props2 }) => props2.columns ? { gridTemplateColumns: props2.columns } : null,
10404
- templateColumns: ({ props: props2 }) => props2.templateColumns ? { gridTemplateColumns: props2.templateColumns } : null,
10405
- autoColumns: ({ props: props2 }) => props2.autoColumns ? { gridAutoColumns: props2.autoColumns } : null,
10406
- columnStart: ({ props: props2 }) => props2.columnStart ? { gridColumnStart: props2.columnStart } : null,
10407
- row: ({ props: props2 }) => props2.row ? { gridRow: props2.row } : null,
10408
- rows: ({ props: props2 }) => props2.rows ? { gridTemplateRows: props2.rows } : null,
10409
- templateRows: ({ props: props2 }) => props2.templateRows ? { gridTemplateRows: props2.templateRows } : null,
10410
- autoRows: ({ props: props2 }) => props2.autoRows ? { gridAutoRows: props2.autoRows } : null,
10411
- rowStart: ({ props: props2 }) => props2.rowStart ? { gridRowStart: props2.rowStart } : null,
10412
- autoFlow: ({ props: props2 }) => props2.autoFlow ? { gridAutoFlow: props2.autoFlow } : null
10456
+ area: ({ props: props5 }) => props5.area ? { gridArea: props5.area } : null,
10457
+ template: ({ props: props5 }) => props5.template ? { gridTemplate: props5.template } : null,
10458
+ templateAreas: ({ props: props5 }) => props5.templateAreas ? { gridTemplateAreas: props5.templateAreas } : null,
10459
+ column: ({ props: props5 }) => props5.column ? { gridColumn: props5.column } : null,
10460
+ columns: ({ props: props5 }) => props5.columns ? { gridTemplateColumns: props5.columns } : null,
10461
+ templateColumns: ({ props: props5 }) => props5.templateColumns ? { gridTemplateColumns: props5.templateColumns } : null,
10462
+ autoColumns: ({ props: props5 }) => props5.autoColumns ? { gridAutoColumns: props5.autoColumns } : null,
10463
+ columnStart: ({ props: props5 }) => props5.columnStart ? { gridColumnStart: props5.columnStart } : null,
10464
+ row: ({ props: props5 }) => props5.row ? { gridRow: props5.row } : null,
10465
+ rows: ({ props: props5 }) => props5.rows ? { gridTemplateRows: props5.rows } : null,
10466
+ templateRows: ({ props: props5 }) => props5.templateRows ? { gridTemplateRows: props5.templateRows } : null,
10467
+ autoRows: ({ props: props5 }) => props5.autoRows ? { gridAutoRows: props5.autoRows } : null,
10468
+ rowStart: ({ props: props5 }) => props5.rowStart ? { gridRowStart: props5.rowStart } : null,
10469
+ autoFlow: ({ props: props5 }) => props5.autoFlow ? { gridAutoFlow: props5.autoFlow } : null
10413
10470
  }
10414
10471
  };
10415
10472
  }
@@ -10424,9 +10481,9 @@ var init_Img = __esm({
10424
10481
  tag: "img",
10425
10482
  attr: {
10426
10483
  src: (el) => {
10427
- const { props: props2, context } = el;
10484
+ const { props: props5, context } = el;
10428
10485
  const { exec: exec7, isString: isString12, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
10429
- let src = (props2.preSrc || "") + exec7(props2.src, el);
10486
+ let src = (props5.preSrc || "") + exec7(props5.src, el);
10430
10487
  if (isString12(src) && src.includes("{{")) {
10431
10488
  src = replaceLiteralsWithObjectFields3(src, el.state);
10432
10489
  }
@@ -10441,8 +10498,8 @@ var init_Img = __esm({
10441
10498
  if (file)
10442
10499
  return file.content && file.content.src;
10443
10500
  },
10444
- alt: ({ props: props2 }) => props2.alt,
10445
- title: ({ props: props2 }) => props2.title || props2.alt
10501
+ alt: ({ props: props5 }) => props5.alt,
10502
+ title: ({ props: props5 }) => props5.title || props5.alt
10446
10503
  }
10447
10504
  };
10448
10505
  }
@@ -10456,9 +10513,9 @@ var init_Form = __esm({
10456
10513
  Form = {
10457
10514
  tag: "form",
10458
10515
  attr: {
10459
- action: ({ props: props2 }) => props2.action,
10460
- method: ({ props: props2 }) => props2.method,
10461
- enctype: ({ props: props2 }) => props2.enctype
10516
+ action: ({ props: props5 }) => props5.action,
10517
+ method: ({ props: props5 }) => props5.method,
10518
+ enctype: ({ props: props5 }) => props5.enctype
10462
10519
  }
10463
10520
  };
10464
10521
  }
@@ -10478,24 +10535,24 @@ var init_Timing = __esm({
10478
10535
  transformDuration: import_scratch4.transformDuration
10479
10536
  },
10480
10537
  class: {
10481
- transition: ({ props: props2, deps }) => !(0, import_utils5.isUndefined)(props2.transition) && {
10482
- transition: deps.splitTransition(props2.transition)
10538
+ transition: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transition) && {
10539
+ transition: deps.splitTransition(props5.transition)
10483
10540
  },
10484
- willChange: ({ props: props2 }) => !(0, import_utils5.isUndefined)(props2.willChange) && {
10485
- willChange: props2.willChange
10541
+ willChange: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.willChange) && {
10542
+ willChange: props5.willChange
10486
10543
  },
10487
- transitionDuration: ({ props: props2, deps }) => !(0, import_utils5.isUndefined)(props2.transitionDuration) && {
10488
- transitionDuration: deps.transformDuration(props2.transitionDuration)
10544
+ transitionDuration: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDuration) && {
10545
+ transitionDuration: deps.transformDuration(props5.transitionDuration)
10489
10546
  },
10490
- transitionDelay: ({ props: props2, deps }) => !(0, import_utils5.isUndefined)(props2.transitionDelay) && {
10491
- transitionDelay: deps.transformDuration(props2.transitionDelay)
10547
+ transitionDelay: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDelay) && {
10548
+ transitionDelay: deps.transformDuration(props5.transitionDelay)
10492
10549
  },
10493
- transitionTimingFunction: ({ props: props2, deps }) => !(0, import_utils5.isUndefined)(props2.transitionTimingFunction) && {
10494
- transitionTimingFunction: deps.getTimingFunction(props2.transitionTimingFunction)
10550
+ transitionTimingFunction: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionTimingFunction) && {
10551
+ transitionTimingFunction: deps.getTimingFunction(props5.transitionTimingFunction)
10495
10552
  },
10496
- transitionProperty: ({ props: props2 }) => !(0, import_utils5.isUndefined)(props2.transitionProperty) && {
10497
- transitionProperty: props2.transitionProperty,
10498
- willChange: props2.transitionProperty
10553
+ transitionProperty: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.transitionProperty) && {
10554
+ transitionProperty: props5.transitionProperty,
10555
+ willChange: props5.transitionProperty
10499
10556
  }
10500
10557
  }
10501
10558
  };
@@ -10518,11 +10575,11 @@ var init_style = __esm({
10518
10575
  26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG2.UNIT.default} 26${CONFIG2.UNIT.default}` },
10519
10576
  42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG2.UNIT.default} 42${CONFIG2.UNIT.default}` }
10520
10577
  };
10521
- getComputedBackgroundColor = ({ props: props2 }) => {
10522
- return (0, import_scratch5.getColor)(props2.shapeDirectionColor) || (0, import_scratch5.getColor)(props2.borderColor) || (0, import_scratch5.getColor)(props2.backgroundColor) || (0, import_scratch5.getColor)(props2.background);
10578
+ getComputedBackgroundColor = ({ props: props5 }) => {
10579
+ return (0, import_scratch5.getColor)(props5.shapeDirectionColor) || (0, import_scratch5.getColor)(props5.borderColor) || (0, import_scratch5.getColor)(props5.backgroundColor) || (0, import_scratch5.getColor)(props5.background);
10523
10580
  };
10524
- inheritTransition = ({ props: props2, deps }) => {
10525
- const exec7 = Timing.class.transition({ props: props2, deps });
10581
+ inheritTransition = ({ props: props5, deps }) => {
10582
+ const exec7 = Timing.class.transition({ props: props5, deps });
10526
10583
  return exec7 && exec7.transition;
10527
10584
  };
10528
10585
  SHAPES = {
@@ -10532,16 +10589,16 @@ var init_style = __esm({
10532
10589
  tv: {
10533
10590
  borderRadius: "1.15em/2.5em"
10534
10591
  },
10535
- tooltip: ({ props: props2, deps }) => ({
10536
- position: props2.position || "relative",
10592
+ tooltip: ({ props: props5, deps }) => ({
10593
+ position: props5.position || "relative",
10537
10594
  "&:before": {
10538
10595
  content: '""',
10539
10596
  display: "block",
10540
10597
  width: "0px",
10541
10598
  height: "0px",
10542
10599
  border: ".35em solid",
10543
- borderColor: getComputedBackgroundColor({ props: props2, deps }),
10544
- transition: inheritTransition({ props: props2, deps }),
10600
+ borderColor: getComputedBackgroundColor({ props: props5, deps }),
10601
+ transition: inheritTransition({ props: props5, deps }),
10545
10602
  transitionProperty: "border-color",
10546
10603
  position: "absolute",
10547
10604
  borderRadius: ".15em"
@@ -10577,13 +10634,13 @@ var init_style = __esm({
10577
10634
  }
10578
10635
  }
10579
10636
  },
10580
- tag: ({ props: props2, deps }) => ({
10637
+ tag: ({ props: props5, deps }) => ({
10581
10638
  position: "relative",
10582
10639
  "&:before": {
10583
10640
  content: '""',
10584
10641
  display: "block",
10585
- background: getComputedBackgroundColor({ props: props2, deps }),
10586
- transition: inheritTransition({ props: props2, deps }),
10642
+ background: getComputedBackgroundColor({ props: props5, deps }),
10643
+ transition: inheritTransition({ props: props5, deps }),
10587
10644
  transitionProperty: "background",
10588
10645
  borderRadius: ".25em",
10589
10646
  position: "absolute",
@@ -10624,7 +10681,7 @@ var init_style = __esm({
10624
10681
  }
10625
10682
  }
10626
10683
  },
10627
- hexagon: ({ props: props2, deps }) => ({
10684
+ hexagon: ({ props: props5, deps }) => ({
10628
10685
  position: "relative",
10629
10686
  "&:before, &:after": {
10630
10687
  content: '""',
@@ -10636,8 +10693,8 @@ var init_style = __esm({
10636
10693
  top: "50%",
10637
10694
  transformOrigin: "50% 50%",
10638
10695
  height: "73%",
10639
- background: getComputedBackgroundColor({ props: props2, deps }),
10640
- transition: inheritTransition({ props: props2, deps }),
10696
+ background: getComputedBackgroundColor({ props: props5, deps }),
10697
+ transition: inheritTransition({ props: props5, deps }),
10641
10698
  transitionProperty: "background"
10642
10699
  },
10643
10700
  "&:before": {
@@ -10649,7 +10706,7 @@ var init_style = __esm({
10649
10706
  transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
10650
10707
  }
10651
10708
  }),
10652
- chevron: ({ props: props2, deps }) => ({
10709
+ chevron: ({ props: props5, deps }) => ({
10653
10710
  position: "relative",
10654
10711
  "&:before, &:after": {
10655
10712
  content: '""',
@@ -10659,14 +10716,14 @@ var init_style = __esm({
10659
10716
  aspectRatio: "1/1",
10660
10717
  top: "50%",
10661
10718
  transformOrigin: "50% 50%",
10662
- transition: inheritTransition({ props: props2, deps }),
10719
+ transition: inheritTransition({ props: props5, deps }),
10663
10720
  transitionProperty: "background"
10664
10721
  },
10665
10722
  "&:before": {
10666
- background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props2, deps })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props2, deps })} 25%, transparent 25%)`
10723
+ background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props5, deps })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props5, deps })} 25%, transparent 25%)`
10667
10724
  },
10668
10725
  "&:after": {
10669
- background: getComputedBackgroundColor({ props: props2, deps }),
10726
+ background: getComputedBackgroundColor({ props: props5, deps }),
10670
10727
  borderRadius: ".25em"
10671
10728
  }
10672
10729
  }),
@@ -10725,53 +10782,53 @@ var init_Theme = __esm({
10725
10782
  transformBackgroundImage: import_scratch6.transformBackgroundImage
10726
10783
  },
10727
10784
  class: {
10728
- depth: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.depth) && deps.depth[props2.depth],
10785
+ depth: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.depth) && deps.depth[props5.depth],
10729
10786
  theme: (element) => {
10730
- const { props: props2, deps } = element;
10787
+ const { props: props5, deps } = element;
10731
10788
  const globalTheme = deps.getSystemGlobalTheme(element);
10732
- if (!props2.theme)
10789
+ if (!props5.theme)
10733
10790
  return;
10734
- const hasSubtheme = props2.theme.includes(" ") && !props2.theme.includes("@");
10735
- const globalThemeForced = `@${props2.themeModifier || globalTheme}`;
10791
+ const hasSubtheme = props5.theme.includes(" ") && !props5.theme.includes("@");
10792
+ const globalThemeForced = `@${props5.themeModifier || globalTheme}`;
10736
10793
  if (hasSubtheme) {
10737
- const themeAppliedInVal = props2.theme.split(" ");
10794
+ const themeAppliedInVal = props5.theme.split(" ");
10738
10795
  themeAppliedInVal.splice(1, 0, globalThemeForced);
10739
10796
  return deps.getMediaTheme(themeAppliedInVal);
10740
- } else if (props2.theme.includes("@{globalTheme}"))
10741
- props2.theme.replace("@{globalTheme}", globalThemeForced);
10742
- return deps.getMediaTheme(props2.theme, `@${props2.themeModifier || globalTheme}`);
10797
+ } else if (props5.theme.includes("@{globalTheme}"))
10798
+ props5.theme.replace("@{globalTheme}", globalThemeForced);
10799
+ return deps.getMediaTheme(props5.theme, `@${props5.themeModifier || globalTheme}`);
10743
10800
  },
10744
10801
  color: (element) => {
10745
- const { props: props2, deps } = element;
10802
+ const { props: props5, deps } = element;
10746
10803
  const globalTheme = deps.getSystemGlobalTheme(element);
10747
- if (!props2.color)
10804
+ if (!props5.color)
10748
10805
  return;
10749
10806
  return {
10750
- color: deps.getMediaColor(props2.color, globalTheme)
10807
+ color: deps.getMediaColor(props5.color, globalTheme)
10751
10808
  };
10752
10809
  },
10753
10810
  background: (element) => {
10754
- const { props: props2, deps } = element;
10811
+ const { props: props5, deps } = element;
10755
10812
  const globalTheme = deps.getSystemGlobalTheme(element);
10756
- if (!props2.background)
10813
+ if (!props5.background)
10757
10814
  return;
10758
10815
  return {
10759
- background: deps.getMediaColor(props2.background, globalTheme)
10816
+ background: deps.getMediaColor(props5.background, globalTheme)
10760
10817
  };
10761
10818
  },
10762
10819
  backgroundColor: (element) => {
10763
- const { props: props2, deps } = element;
10820
+ const { props: props5, deps } = element;
10764
10821
  const globalTheme = deps.getSystemGlobalTheme(element);
10765
- if (!props2.backgroundColor)
10822
+ if (!props5.backgroundColor)
10766
10823
  return;
10767
10824
  return {
10768
- backgroundColor: deps.getMediaColor(props2.backgroundColor, globalTheme)
10825
+ backgroundColor: deps.getMediaColor(props5.backgroundColor, globalTheme)
10769
10826
  };
10770
10827
  },
10771
10828
  backgroundImage: (element, s, context) => {
10772
- const { props: props2, deps } = element;
10829
+ const { props: props5, deps } = element;
10773
10830
  const globalTheme = deps.getSystemGlobalTheme(element);
10774
- let val = props2.backgroundImage;
10831
+ let val = props5.backgroundImage;
10775
10832
  if (!val)
10776
10833
  return;
10777
10834
  const file = context.files && context.files[val];
@@ -10781,98 +10838,98 @@ var init_Theme = __esm({
10781
10838
  backgroundImage: deps.transformBackgroundImage(val, globalTheme)
10782
10839
  };
10783
10840
  },
10784
- backgroundSize: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.backgroundSize) ? {
10785
- backgroundSize: props2.backgroundSize
10841
+ backgroundSize: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundSize) ? {
10842
+ backgroundSize: props5.backgroundSize
10786
10843
  } : null,
10787
- backgroundPosition: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.backgroundPosition) ? {
10788
- backgroundPosition: props2.backgroundPosition
10844
+ backgroundPosition: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundPosition) ? {
10845
+ backgroundPosition: props5.backgroundPosition
10789
10846
  } : null,
10790
- backgroundRepeat: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.backgroundRepeat) ? {
10791
- backgroundRepeat: props2.backgroundRepeat
10847
+ backgroundRepeat: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundRepeat) ? {
10848
+ backgroundRepeat: props5.backgroundRepeat
10792
10849
  } : null,
10793
- textStroke: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.textStroke) ? {
10794
- WebkitTextStroke: deps.transformTextStroke(props2.textStroke)
10850
+ textStroke: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.textStroke) ? {
10851
+ WebkitTextStroke: deps.transformTextStroke(props5.textStroke)
10795
10852
  } : null,
10796
- outline: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.outline) && {
10797
- outline: deps.transformBorder(props2.outline)
10853
+ outline: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.outline) && {
10854
+ outline: deps.transformBorder(props5.outline)
10798
10855
  },
10799
- outlineOffset: ({ props: props2, deps }) => deps.transformSizeRatio("outlineOffset", props2),
10800
- border: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.border) && {
10801
- border: deps.transformBorder(props2.border)
10856
+ outlineOffset: ({ props: props5, deps }) => deps.transformSizeRatio("outlineOffset", props5),
10857
+ border: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.border) && {
10858
+ border: deps.transformBorder(props5.border)
10802
10859
  },
10803
10860
  borderColor: (element) => {
10804
- const { props: props2, deps } = element;
10861
+ const { props: props5, deps } = element;
10805
10862
  const globalTheme = deps.getSystemGlobalTheme(element);
10806
- if (!props2.borderColor)
10863
+ if (!props5.borderColor)
10807
10864
  return;
10808
10865
  return {
10809
- borderColor: deps.getMediaColor(props2.borderColor, globalTheme)
10866
+ borderColor: deps.getMediaColor(props5.borderColor, globalTheme)
10810
10867
  };
10811
10868
  },
10812
- borderStyle: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.borderStyle) && {
10813
- borderStyle: props2.borderStyle
10869
+ borderStyle: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.borderStyle) && {
10870
+ borderStyle: props5.borderStyle
10814
10871
  },
10815
- borderLeft: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.borderLeft) && {
10816
- borderLeft: deps.transformBorder(props2.borderLeft)
10872
+ borderLeft: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderLeft) && {
10873
+ borderLeft: deps.transformBorder(props5.borderLeft)
10817
10874
  },
10818
- borderTop: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.borderTop) && {
10819
- borderTop: deps.transformBorder(props2.borderTop)
10875
+ borderTop: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderTop) && {
10876
+ borderTop: deps.transformBorder(props5.borderTop)
10820
10877
  },
10821
- borderRight: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.borderRight) && {
10822
- borderRight: deps.transformBorder(props2.borderRight)
10878
+ borderRight: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderRight) && {
10879
+ borderRight: deps.transformBorder(props5.borderRight)
10823
10880
  },
10824
- borderBottom: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.borderBottom) && {
10825
- borderBottom: deps.transformBorder(props2.borderBottom)
10881
+ borderBottom: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderBottom) && {
10882
+ borderBottom: deps.transformBorder(props5.borderBottom)
10826
10883
  },
10827
10884
  shadow: (element) => {
10828
- const { props: props2, deps } = element;
10885
+ const { props: props5, deps } = element;
10829
10886
  const globalTheme = deps.getSystemGlobalTheme(element);
10830
- if (!props2.backgroundImage)
10887
+ if (!props5.backgroundImage)
10831
10888
  return;
10832
10889
  return {
10833
- boxShadow: deps.transformShadow(props2.shadow, globalTheme)
10890
+ boxShadow: deps.transformShadow(props5.shadow, globalTheme)
10834
10891
  };
10835
10892
  },
10836
10893
  // boxShadow: ({ props, deps }) => isString(props.boxShadow) && ({
10837
10894
  // boxShadow: deps.transformBoxShadow(props.boxShadow)
10838
10895
  // }),
10839
10896
  boxShadow: (element, state, context) => {
10840
- const { props: props2, deps } = element;
10841
- if (!(0, import_utils6.isString)(props2.boxShadow))
10897
+ const { props: props5, deps } = element;
10898
+ if (!(0, import_utils6.isString)(props5.boxShadow))
10842
10899
  return;
10843
- const [val, hasImportant] = props2.boxShadow.split("!importan");
10900
+ const [val, hasImportant] = props5.boxShadow.split("!importan");
10844
10901
  const globalTheme = getSystemGlobalTheme(element);
10845
10902
  const important = hasImportant ? " !important" : "";
10846
10903
  return {
10847
10904
  boxShadow: deps.transformBoxShadow(val.trim(), globalTheme) + important
10848
10905
  };
10849
10906
  },
10850
- textShadow: ({ props: props2, deps, context }) => !(0, import_utils6.isUndefined)(props2.textShadow) && {
10851
- textShadow: deps.transformBoxShadow(props2.textShadow, context.designSystem.globalTheme)
10907
+ textShadow: ({ props: props5, deps, context }) => !(0, import_utils6.isUndefined)(props5.textShadow) && {
10908
+ textShadow: deps.transformBoxShadow(props5.textShadow, context.designSystem.globalTheme)
10852
10909
  },
10853
- backdropFilter: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.backdropFilter) && {
10854
- backdropFilter: props2.backdropFilter
10910
+ backdropFilter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.backdropFilter) && {
10911
+ backdropFilter: props5.backdropFilter
10855
10912
  },
10856
- caretColor: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.caretColor) && {
10857
- caretColor: props2.caretColor
10913
+ caretColor: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.caretColor) && {
10914
+ caretColor: props5.caretColor
10858
10915
  },
10859
- opacity: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.opacity) && {
10860
- opacity: props2.opacity
10916
+ opacity: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.opacity) && {
10917
+ opacity: props5.opacity
10861
10918
  },
10862
- visibility: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.visibility) && {
10863
- visibility: props2.visibility
10919
+ visibility: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.visibility) && {
10920
+ visibility: props5.visibility
10864
10921
  },
10865
- columnRule: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.columnRule) && {
10866
- columnRule: deps.transformBorder(props2.columnRule)
10922
+ columnRule: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.columnRule) && {
10923
+ columnRule: deps.transformBorder(props5.columnRule)
10867
10924
  },
10868
- filter: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.filter) && {
10869
- filter: props2.filter
10925
+ filter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.filter) && {
10926
+ filter: props5.filter
10870
10927
  },
10871
- mixBlendMode: ({ props: props2, deps }) => !(0, import_utils6.isUndefined)(props2.mixBlendMode) && {
10872
- mixBlendMode: props2.mixBlendMode
10928
+ mixBlendMode: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.mixBlendMode) && {
10929
+ mixBlendMode: props5.mixBlendMode
10873
10930
  },
10874
- appearance: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.appearance) && {
10875
- appearance: props2.appearance
10931
+ appearance: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.appearance) && {
10932
+ appearance: props5.appearance
10876
10933
  }
10877
10934
  }
10878
10935
  };
@@ -10887,86 +10944,86 @@ var init_Media = __esm({
10887
10944
  import_utils7 = __toESM(require_cjs());
10888
10945
  init_Theme();
10889
10946
  keySetters = {
10890
- "@": (key, props2, result, element, isSubtree) => applyMediaProps(
10947
+ "@": (key, props5, result, element, isSubtree) => applyMediaProps(
10891
10948
  key,
10892
- props2,
10949
+ props5,
10893
10950
  isSubtree ? result : result && result.media,
10894
10951
  element
10895
10952
  ),
10896
- ":": (key, props2, result, element, isSubtree) => applySelectorProps(
10953
+ ":": (key, props5, result, element, isSubtree) => applySelectorProps(
10897
10954
  key,
10898
- props2,
10955
+ props5,
10899
10956
  isSubtree ? result : result && result.selector,
10900
10957
  element
10901
10958
  ),
10902
- "[": (key, props2, result, element, isSubtree) => applySelectorProps(
10959
+ "[": (key, props5, result, element, isSubtree) => applySelectorProps(
10903
10960
  key,
10904
- props2,
10961
+ props5,
10905
10962
  isSubtree ? result : result && result.selector,
10906
10963
  element
10907
10964
  ),
10908
- "*": (key, props2, result, element, isSubtree) => applySelectorProps(
10965
+ "*": (key, props5, result, element, isSubtree) => applySelectorProps(
10909
10966
  key,
10910
- props2,
10967
+ props5,
10911
10968
  isSubtree ? result : result && result.selector,
10912
10969
  element
10913
10970
  ),
10914
- "+": (key, props2, result, element, isSubtree) => applySelectorProps(
10971
+ "+": (key, props5, result, element, isSubtree) => applySelectorProps(
10915
10972
  key,
10916
- props2,
10973
+ props5,
10917
10974
  isSubtree ? result : result && result.selector,
10918
10975
  element
10919
10976
  ),
10920
- "~": (key, props2, result, element, isSubtree) => applySelectorProps(
10977
+ "~": (key, props5, result, element, isSubtree) => applySelectorProps(
10921
10978
  key,
10922
- props2,
10979
+ props5,
10923
10980
  isSubtree ? result : result && result.selector,
10924
10981
  element
10925
10982
  ),
10926
- "&": (key, props2, result, element, isSubtree) => applyAndProps(
10983
+ "&": (key, props5, result, element, isSubtree) => applyAndProps(
10927
10984
  key,
10928
- props2,
10985
+ props5,
10929
10986
  isSubtree ? result : result && result.selector,
10930
10987
  element
10931
10988
  ),
10932
- ">": (key, props2, result, element, isSubtree) => applyAndProps(
10989
+ ">": (key, props5, result, element, isSubtree) => applyAndProps(
10933
10990
  key,
10934
- props2,
10991
+ props5,
10935
10992
  isSubtree ? result : result && result.selector,
10936
10993
  element
10937
10994
  ),
10938
- $: (key, props2, result, element, isSubtree) => applyCaseProps(
10995
+ $: (key, props5, result, element, isSubtree) => applyCaseProps(
10939
10996
  key,
10940
- props2,
10997
+ props5,
10941
10998
  isSubtree ? result : result && result.case,
10942
10999
  element
10943
11000
  ),
10944
- "-": (key, props2, result, element, isSubtree) => applyVariableProps(
11001
+ "-": (key, props5, result, element, isSubtree) => applyVariableProps(
10945
11002
  key,
10946
- props2,
11003
+ props5,
10947
11004
  isSubtree ? result : result && result.variable,
10948
11005
  element
10949
11006
  ),
10950
- ".": (key, props2, result, element, isSubtree) => applyConditionalCaseProps(
11007
+ ".": (key, props5, result, element, isSubtree) => applyConditionalCaseProps(
10951
11008
  key,
10952
- props2,
11009
+ props5,
10953
11010
  isSubtree ? result : result && result.case,
10954
11011
  element
10955
11012
  ),
10956
- "!": (key, props2, result, element, isSubtree) => applyConditionalFalsyProps(
11013
+ "!": (key, props5, result, element, isSubtree) => applyConditionalFalsyProps(
10957
11014
  key,
10958
- props2,
11015
+ props5,
10959
11016
  isSubtree ? result : result && result.case,
10960
11017
  element
10961
11018
  )
10962
11019
  };
10963
- execClass = (key, props2, result, element) => {
11020
+ execClass = (key, props5, result, element) => {
10964
11021
  const { class: className } = element;
10965
11022
  const classnameExec = className[key];
10966
11023
  if (typeof classnameExec !== "function")
10967
11024
  return;
10968
11025
  let classExec = classnameExec({
10969
- props: props2,
11026
+ props: props5,
10970
11027
  context: element.context,
10971
11028
  state: element.state,
10972
11029
  deps: element.deps
@@ -10978,27 +11035,27 @@ var init_Media = __esm({
10978
11035
  }
10979
11036
  return classExec;
10980
11037
  };
10981
- convertPropsToClass = (props2, result, element) => {
11038
+ convertPropsToClass = (props5, result, element) => {
10982
11039
  const propsClassObj = {};
10983
- for (const key in props2) {
11040
+ for (const key in props5) {
10984
11041
  const setter = keySetters[key.slice(0, 1)];
10985
11042
  if (setter) {
10986
- setter(key, props2[key], propsClassObj, element, true);
11043
+ setter(key, props5[key], propsClassObj, element, true);
10987
11044
  continue;
10988
11045
  } else {
10989
- execClass(key, props2, propsClassObj, element);
11046
+ execClass(key, props5, propsClassObj, element);
10990
11047
  }
10991
11048
  }
10992
11049
  return propsClassObj;
10993
11050
  };
10994
- applyMediaProps = (key, props2, result, element) => {
11051
+ applyMediaProps = (key, props5, result, element) => {
10995
11052
  const { context } = element;
10996
11053
  if (!context.designSystem || !context.designSystem.MEDIA)
10997
11054
  return;
10998
11055
  const globalTheme = getSystemGlobalTheme(element);
10999
11056
  const { MEDIA: MEDIA2 } = context.designSystem;
11000
11057
  const mediaValue = MEDIA2[key.slice(1)];
11001
- const generatedClass = convertPropsToClass(props2, result, element);
11058
+ const generatedClass = convertPropsToClass(props5, result, element);
11002
11059
  const name = key.slice(1);
11003
11060
  const isTheme = ["dark", "light"].includes(name);
11004
11061
  const matchesGlobal = name === globalTheme;
@@ -11012,43 +11069,43 @@ var init_Media = __esm({
11012
11069
  result[mediaKey] = generatedClass;
11013
11070
  return result[mediaKey];
11014
11071
  };
11015
- applyAndProps = (key, props2, result, element) => {
11016
- result[key] = convertPropsToClass(props2, result, element);
11072
+ applyAndProps = (key, props5, result, element) => {
11073
+ result[key] = convertPropsToClass(props5, result, element);
11017
11074
  return result[key];
11018
11075
  };
11019
- applySelectorProps = (key, props2, result, element) => {
11076
+ applySelectorProps = (key, props5, result, element) => {
11020
11077
  const selectorKey = `&${key}`;
11021
- result[selectorKey] = convertPropsToClass(props2, result, element);
11078
+ result[selectorKey] = convertPropsToClass(props5, result, element);
11022
11079
  return result[selectorKey];
11023
11080
  };
11024
- applyCaseProps = (key, props2, result, element) => {
11081
+ applyCaseProps = (key, props5, result, element) => {
11025
11082
  const { CASES } = element.context && element.context.designSystem;
11026
11083
  const caseKey = key.slice(1);
11027
11084
  const isPropTrue = element.props[caseKey];
11028
11085
  if (!CASES[caseKey] && !isPropTrue)
11029
11086
  return;
11030
- return (0, import_utils7.merge)(result, convertPropsToClass(props2, result, element));
11087
+ return (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
11031
11088
  };
11032
- applyVariableProps = (key, props2, result, element) => {
11033
- result[key] = props2;
11089
+ applyVariableProps = (key, props5, result, element) => {
11090
+ result[key] = props5;
11034
11091
  return result;
11035
11092
  };
11036
- applyConditionalCaseProps = (key, props2, result, element) => {
11093
+ applyConditionalCaseProps = (key, props5, result, element) => {
11037
11094
  const caseKey = key.slice(1);
11038
11095
  const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
11039
11096
  if (!isPropTrue)
11040
11097
  return;
11041
- return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props2, result, element));
11098
+ return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
11042
11099
  };
11043
- applyConditionalFalsyProps = (key, props2, result, element) => {
11100
+ applyConditionalFalsyProps = (key, props5, result, element) => {
11044
11101
  const caseKey = key.slice(1);
11045
11102
  const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
11046
11103
  if (!isPropTrue)
11047
- return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props2, result, element));
11104
+ return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
11048
11105
  };
11049
- applyTrueProps = (props2, result, element) => (0, import_utils7.merge)(result, convertPropsToClass(props2, result, element));
11106
+ applyTrueProps = (props5, result, element) => (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
11050
11107
  beforeClassAssign = (element, s) => {
11051
- const { props: props2, class: className, context } = element;
11108
+ const { props: props5, class: className, context } = element;
11052
11109
  const CLASS_NAMES = {
11053
11110
  media: {},
11054
11111
  selector: {},
@@ -11058,11 +11115,11 @@ var init_Media = __esm({
11058
11115
  if (!context)
11059
11116
  return;
11060
11117
  const globalTheme = context.designSystem.globalTheme;
11061
- for (const key in props2) {
11118
+ for (const key in props5) {
11062
11119
  const setter = keySetters[key.slice(0, 1)];
11063
11120
  if (globalTheme) {
11064
- if (key === "theme" && !props2.themeModifier) {
11065
- props2.update({
11121
+ if (key === "theme" && !props5.themeModifier) {
11122
+ props5.update({
11066
11123
  themeModifier: globalTheme
11067
11124
  }, {
11068
11125
  preventListeners: true,
@@ -11073,9 +11130,9 @@ var init_Media = __esm({
11073
11130
  }
11074
11131
  }
11075
11132
  if (setter)
11076
- setter(key, props2[key], CLASS_NAMES, element);
11133
+ setter(key, props5[key], CLASS_NAMES, element);
11077
11134
  else if (key === "true")
11078
- applyTrueProps(props2[key], CLASS_NAMES, element);
11135
+ applyTrueProps(props5[key], CLASS_NAMES, element);
11079
11136
  }
11080
11137
  const parentProps = element.parent && element.parent.props;
11081
11138
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
@@ -11117,15 +11174,15 @@ var init_Iframe = __esm({
11117
11174
  minHeight: "H"
11118
11175
  },
11119
11176
  attr: {
11120
- src: ({ props: props2 }) => props2.src,
11121
- srcdoc: ({ props: props2 }) => props2.srcdoc,
11122
- sandbox: ({ props: props2 }) => props2.sandbox,
11123
- seamless: ({ props: props2 }) => props2.seamless,
11124
- loading: ({ props: props2 }) => props2.loading,
11125
- allowfullscreen: ({ props: props2 }) => props2.allowfullscreen,
11126
- frameborder: ({ props: props2 }) => props2.frameborder,
11127
- allow: ({ props: props2 }) => props2.allow,
11128
- referrerpolicy: ({ props: props2 }) => props2.referrerpolicy
11177
+ src: ({ props: props5 }) => props5.src,
11178
+ srcdoc: ({ props: props5 }) => props5.srcdoc,
11179
+ sandbox: ({ props: props5 }) => props5.sandbox,
11180
+ seamless: ({ props: props5 }) => props5.seamless,
11181
+ loading: ({ props: props5 }) => props5.loading,
11182
+ allowfullscreen: ({ props: props5 }) => props5.allowfullscreen,
11183
+ frameborder: ({ props: props5 }) => props5.frameborder,
11184
+ allow: ({ props: props5 }) => props5.allow,
11185
+ referrerpolicy: ({ props: props5 }) => props5.referrerpolicy
11129
11186
  }
11130
11187
  };
11131
11188
  }
@@ -11138,8 +11195,8 @@ var init_Interaction = __esm({
11138
11195
  "use strict";
11139
11196
  Interaction = {
11140
11197
  class: {
11141
- userSelect: ({ props: props2 }) => props2.userSelect && { userSelect: props2.userSelect },
11142
- pointerEvents: ({ props: props2 }) => props2.pointerEvents && { pointerEvents: props2.pointerEvents },
11198
+ userSelect: ({ props: props5 }) => props5.userSelect && { userSelect: props5.userSelect },
11199
+ pointerEvents: ({ props: props5 }) => props5.pointerEvents && { pointerEvents: props5.pointerEvents },
11143
11200
  cursor: (el, s, ctx) => {
11144
11201
  let val = el.props.cursor;
11145
11202
  if (!val)
@@ -11207,8 +11264,8 @@ var init_InteractiveComponent = __esm({
11207
11264
  }
11208
11265
  },
11209
11266
  attr: {
11210
- placeholder: ({ props: props2 }) => props2.placeholder,
11211
- tabIndex: ({ props: props2 }) => props2.tabIndex
11267
+ placeholder: ({ props: props5 }) => props5.placeholder,
11268
+ tabIndex: ({ props: props5 }) => props5.tabIndex
11212
11269
  }
11213
11270
  };
11214
11271
  FocusableComponent = {
@@ -11225,7 +11282,7 @@ var init_InteractiveComponent = __esm({
11225
11282
  style
11226
11283
  },
11227
11284
  attr: {
11228
- type: ({ props: props2 }) => props2.type
11285
+ type: ({ props: props5 }) => props5.type
11229
11286
  }
11230
11287
  };
11231
11288
  }
@@ -11238,18 +11295,18 @@ var init_Overflow = __esm({
11238
11295
  "use strict";
11239
11296
  Overflow = {
11240
11297
  class: {
11241
- overflow: ({ props: props2, deps }) => !deps.isUndefined(props2.overflow) && {
11242
- overflow: props2.overflow,
11298
+ overflow: ({ props: props5, deps }) => !deps.isUndefined(props5.overflow) && {
11299
+ overflow: props5.overflow,
11243
11300
  scrollBehavior: "smooth"
11244
11301
  },
11245
- overflowX: ({ props: props2, deps }) => !deps.isUndefined(props2.overflowX) && {
11246
- overflowX: props2.overflowX
11302
+ overflowX: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowX) && {
11303
+ overflowX: props5.overflowX
11247
11304
  },
11248
- overflowY: ({ props: props2, deps }) => !deps.isUndefined(props2.overflowY) && {
11249
- overflowY: props2.overflowY
11305
+ overflowY: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowY) && {
11306
+ overflowY: props5.overflowY
11250
11307
  },
11251
- overscrollBehavior: ({ props: props2, deps }) => !deps.isUndefined(props2.overscrollBehavior) && {
11252
- overscrollBehavior: props2.overscrollBehavior
11308
+ overscrollBehavior: ({ props: props5, deps }) => !deps.isUndefined(props5.overscrollBehavior) && {
11309
+ overscrollBehavior: props5.overscrollBehavior
11253
11310
  }
11254
11311
  }
11255
11312
  };
@@ -11367,9 +11424,9 @@ var require_on = __commonJS({
11367
11424
  }
11368
11425
  };
11369
11426
  var applyAnimationFrame = (element, options) => {
11370
- const { props: props2, on: on2, __ref: ref } = element;
11427
+ const { props: props5, on: on2, __ref: ref } = element;
11371
11428
  const { frameListeners } = ref.root.data;
11372
- if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (props2 == null ? void 0 : props2.onFrame))) {
11429
+ if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (props5 == null ? void 0 : props5.onFrame))) {
11373
11430
  const { registerFrameListener } = element.context.utils;
11374
11431
  if (registerFrameListener)
11375
11432
  registerFrameListener(element);
@@ -12097,8 +12154,8 @@ var require_create = __commonJS({
12097
12154
  return dependentState;
12098
12155
  };
12099
12156
  var checkForTypes = (element) => {
12100
- const { state: orig, props: props2, __ref: ref } = element;
12101
- const state = (props2 == null ? void 0 : props2.state) || orig;
12157
+ const { state: orig, props: props5, __ref: ref } = element;
12158
+ const state = (props5 == null ? void 0 : props5.state) || orig;
12102
12159
  if ((0, import_utils25.isFunction)(state)) {
12103
12160
  ref.__state = state;
12104
12161
  return (0, import_utils25.exec)(state, element);
@@ -12208,12 +12265,12 @@ var init_Collection = __esm({
12208
12265
  define: {
12209
12266
  $collection: (param, el, state) => {
12210
12267
  const { __ref: ref } = el;
12211
- const { children, childrenAs, childrenExtends } = el.props || {};
12268
+ const { children, childrenAs, childExtends } = el.props || {};
12212
12269
  const childrenExec = children && (0, import_utils8.exec)(children, el, state);
12213
12270
  if ((0, import_utils8.isArray)(childrenExec)) {
12214
12271
  param = (0, import_utils8.deepCloneWithExtend)(childrenExec);
12215
12272
  if (childrenAs)
12216
- param = param.map((v) => ({ extend: childrenExtends, [childrenAs]: v }));
12273
+ param = param.map((v) => ({ extend: childExtends, [childrenAs]: v }));
12217
12274
  } else if ((0, import_utils8.isObject)(childrenExec)) {
12218
12275
  param = (0, import_utils8.deepCloneWithExtend)(childrenExec);
12219
12276
  param = Object.keys(param).map((v) => {
@@ -12221,7 +12278,7 @@ var init_Collection = __esm({
12221
12278
  return (0, import_utils8.addAdditionalExtend)(v, val);
12222
12279
  });
12223
12280
  if (childrenAs)
12224
- param = param.map((v) => ({ extend: childrenExtends, [childrenAs]: v }));
12281
+ param = param.map((v) => ({ extend: childExtends, [childrenAs]: v }));
12225
12282
  }
12226
12283
  if (!param)
12227
12284
  return;
@@ -12379,21 +12436,21 @@ var init_Position = __esm({
12379
12436
  Position = {
12380
12437
  deps: { getSpacingByKey: import_scratch7.getSpacingByKey },
12381
12438
  class: {
12382
- position: ({ props: props2 }) => props2.position && { position: props2.position },
12383
- inset: ({ props: props2, deps, context }) => {
12384
- const { inset } = props2;
12439
+ position: ({ props: props5 }) => props5.position && { position: props5.position },
12440
+ inset: ({ props: props5, deps, context }) => {
12441
+ const { inset } = props5;
12385
12442
  if (context.utils.isNumber(inset))
12386
12443
  return { inset };
12387
12444
  if (!context.utils.isString(inset))
12388
12445
  return;
12389
12446
  return { inset: inset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k).join(" ") };
12390
12447
  },
12391
- left: ({ props: props2, deps }) => deps.getSpacingByKey(props2.left, "left"),
12392
- top: ({ props: props2, deps }) => deps.getSpacingByKey(props2.top, "top"),
12393
- right: ({ props: props2, deps }) => deps.getSpacingByKey(props2.right, "right"),
12394
- bottom: ({ props: props2, deps }) => deps.getSpacingByKey(props2.bottom, "bottom"),
12395
- verticalInset: ({ props: props2, deps }) => {
12396
- const { verticalInset } = props2;
12448
+ left: ({ props: props5, deps }) => deps.getSpacingByKey(props5.left, "left"),
12449
+ top: ({ props: props5, deps }) => deps.getSpacingByKey(props5.top, "top"),
12450
+ right: ({ props: props5, deps }) => deps.getSpacingByKey(props5.right, "right"),
12451
+ bottom: ({ props: props5, deps }) => deps.getSpacingByKey(props5.bottom, "bottom"),
12452
+ verticalInset: ({ props: props5, deps }) => {
12453
+ const { verticalInset } = props5;
12397
12454
  if (typeof verticalInset !== "string")
12398
12455
  return;
12399
12456
  const vi = verticalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
@@ -12402,8 +12459,8 @@ var init_Position = __esm({
12402
12459
  bottom: vi[1] || vi[0]
12403
12460
  };
12404
12461
  },
12405
- horizontalInset: ({ props: props2, deps }) => {
12406
- const { horizontalInset } = props2;
12462
+ horizontalInset: ({ props: props5, deps }) => {
12463
+ const { horizontalInset } = props5;
12407
12464
  if (typeof horizontalInset !== "string")
12408
12465
  return;
12409
12466
  const vi = horizontalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
@@ -12430,24 +12487,24 @@ var init_Picture = __esm({
12430
12487
  tag: "source",
12431
12488
  attr: {
12432
12489
  media: (element) => {
12433
- const { props: props2, key, context, deps } = element;
12490
+ const { props: props5, key, context, deps } = element;
12434
12491
  const { MEDIA: MEDIA2 } = context.designSystem;
12435
12492
  const globalTheme = deps.getSystemGlobalTheme(element);
12436
- const mediaName = (props2.media || key).slice(1);
12493
+ const mediaName = (props5.media || key).slice(1);
12437
12494
  if (mediaName === globalTheme)
12438
12495
  return "(min-width: 0px)";
12439
12496
  else if (mediaName === "dark" || mediaName === "light")
12440
12497
  return "(max-width: 0px)";
12441
12498
  return MEDIA2[mediaName];
12442
12499
  },
12443
- srcset: ({ props: props2 }) => props2.srcset
12500
+ srcset: ({ props: props5 }) => props5.srcset
12444
12501
  }
12445
12502
  },
12446
- Img: ({ props: props2 }) => ({
12503
+ Img: ({ props: props5 }) => ({
12447
12504
  width: "inherit",
12448
12505
  ignoreChildExtend: true,
12449
12506
  height: "inherit",
12450
- src: props2.src
12507
+ src: props5.src
12451
12508
  })
12452
12509
  };
12453
12510
  }
@@ -12460,7 +12517,7 @@ var init_Pseudo = __esm({
12460
12517
  "use strict";
12461
12518
  Pseudo = {
12462
12519
  class: {
12463
- content: ({ props: props2 }) => props2.content && { content: props2.content }
12520
+ content: ({ props: props5 }) => props5.content && { content: props5.content }
12464
12521
  }
12465
12522
  };
12466
12523
  }
@@ -12478,28 +12535,30 @@ var init_Svg = __esm({
12478
12535
  xmlns: "http://www.w3.org/2000/svg",
12479
12536
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
12480
12537
  },
12481
- html: ({ key, props: props2, context, ...el }) => {
12482
- if (props2.semantic_symbols)
12538
+ html: (el) => {
12539
+ const { props: props5, context } = el;
12540
+ if (props5.semantic_symbols)
12483
12541
  return;
12542
+ if (props5.html)
12543
+ return el.call("exec", props5.html, el);
12484
12544
  const { designSystem, utils: utils2 } = context;
12485
12545
  const SVG = designSystem && designSystem.SVG;
12486
- const useSvgSprite = props2.spriteId || context.designSystem && context.designSystem.useSvgSprite;
12487
- if (props2.html)
12488
- return props2.html;
12489
- if (!useSvgSprite && props2.src)
12490
- return props2.src;
12546
+ const useSvgSprite = props5.spriteId || context.designSystem && context.designSystem.useSvgSprite;
12547
+ const src = el.call("exec", props5.src, el);
12548
+ if (!useSvgSprite && src)
12549
+ return src;
12491
12550
  const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
12492
- const spriteId = props2.spriteId;
12551
+ const spriteId = props5.spriteId;
12493
12552
  if (spriteId)
12494
12553
  return useSVGSymbol(spriteId);
12495
- const symbolId = Symbol.for(props2.src);
12554
+ const symbolId = Symbol.for(src);
12496
12555
  let SVGKey = SVG[symbolId];
12497
12556
  if (SVGKey && SVG[SVGKey])
12498
12557
  return useSVGSymbol(SVGKey);
12499
12558
  SVGKey = SVG[symbolId] = Math.random();
12500
- if (props2.src) {
12559
+ if (src) {
12501
12560
  utils2.init({
12502
- svg: { [SVGKey]: props2.src }
12561
+ svg: { [SVGKey]: src }
12503
12562
  }, {
12504
12563
  document: context.document,
12505
12564
  emotion: context.emotion
@@ -12520,83 +12579,86 @@ var init_Shape = __esm({
12520
12579
  init_style();
12521
12580
  import_scratch8 = __toESM(require_cjs2());
12522
12581
  init_Pseudo();
12523
- transformBorderRadius = (radius, props2, propertyName) => {
12582
+ transformBorderRadius = (radius, props5, propertyName) => {
12524
12583
  if (!(0, import_utils9.isString)(radius))
12525
12584
  return;
12526
12585
  return {
12527
- borderRadius: radius.split(" ").map((v, k) => (0, import_scratch8.getSpacingBasedOnRatio)(props2, propertyName, v)[propertyName]).join(" ")
12586
+ borderRadius: radius.split(" ").map((v, k) => (0, import_scratch8.getSpacingBasedOnRatio)(props5, propertyName, v)[propertyName]).join(" ")
12528
12587
  };
12529
12588
  };
12530
12589
  Shape = {
12531
12590
  extend: Pseudo,
12532
12591
  deps: { exec: import_utils9.exec, getSpacingBasedOnRatio: import_scratch8.getSpacingBasedOnRatio, getMediaColor: import_scratch8.getMediaColor, transformBorderRadius },
12533
12592
  class: {
12534
- shape: ({ props: props2, deps }) => {
12535
- const { shape } = props2;
12536
- return deps.exec(SHAPES[shape], { props: props2, deps });
12593
+ shape: ({ props: props5, deps }) => {
12594
+ const { shape } = props5;
12595
+ return deps.exec(SHAPES[shape], { props: props5, deps });
12537
12596
  },
12538
- shapeDirection: ({ props: props2 }) => {
12539
- const { shape, shapeDirection } = props2;
12597
+ shapeDirection: ({ props: props5 }) => {
12598
+ const { shape, shapeDirection } = props5;
12540
12599
  if (!shape || !shapeDirection)
12541
12600
  return;
12542
12601
  const shapeDir = SHAPES[shape + "Direction"];
12543
12602
  return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
12544
12603
  },
12545
- shapeDirectionColor: ({ props: props2, deps }) => {
12546
- const { background, backgroundColor } = props2;
12604
+ shapeDirectionColor: ({ props: props5, deps }) => {
12605
+ const { background, backgroundColor } = props5;
12547
12606
  const borderColor = {
12548
12607
  borderColor: deps.getMediaColor(background || backgroundColor)
12549
12608
  };
12550
- return props2.shapeDirection ? borderColor : null;
12609
+ return props5.shapeDirection ? borderColor : null;
12551
12610
  },
12552
- round: ({ props: props2, key, deps, ...el }) => deps.transformBorderRadius(props2.round || props2.borderRadius, props2, "round"),
12553
- borderRadius: ({ props: props2, key, deps, ...el }) => deps.transformBorderRadius(props2.borderRadius || props2.round, props2, "borderRadius")
12611
+ round: ({ props: props5, key, deps, ...el }) => deps.transformBorderRadius(props5.round || props5.borderRadius, props5, "round"),
12612
+ borderRadius: ({ props: props5, key, deps, ...el }) => deps.transformBorderRadius(props5.borderRadius || props5.round, props5, "borderRadius")
12554
12613
  }
12555
12614
  };
12556
12615
  }
12557
12616
  });
12558
12617
 
12559
12618
  // ../uikit/Atoms/Text.js
12560
- var import_utils10, import_scratch9, Text, H1, H2, H3, H4, H5, H6, P, Caption, Strong, Underline, Italic, Title, Headline, Subhead, Footnote, B, I, Data;
12619
+ var import_utils10, import_scratch9, props2, Text, H1, H2, H3, H4, H5, H6, P, Caption, Strong, Underline, Italic, Title, Headline, Subhead, Footnote, B, I, Data;
12561
12620
  var init_Text = __esm({
12562
12621
  "../uikit/Atoms/Text.js"() {
12563
12622
  "use strict";
12564
12623
  import_utils10 = __toESM(require_cjs());
12565
12624
  import_scratch9 = __toESM(require_cjs2());
12625
+ props2 = {
12626
+ fontSize: (el) => {
12627
+ const { props: props5, deps } = el;
12628
+ return props5.fontSize ? deps.getFontSizeByKey(props5.fontSize) : null;
12629
+ },
12630
+ fontFamily: ({ props: props5, deps }) => ({
12631
+ fontFamily: deps.getFontFamily(props5.fontFamily) || props5.fontFamily
12632
+ }),
12633
+ fontWeight: ({ props: props5 }) => ({
12634
+ fontWeight: props5.fontWeight,
12635
+ fontVariationSettings: '"wght" ' + props5.fontWeight
12636
+ })
12637
+ };
12566
12638
  Text = {
12567
12639
  deps: { exec: import_utils10.exec, getFontSizeByKey: import_scratch9.getFontSizeByKey, getFontFamily: import_scratch9.getFontFamily },
12568
12640
  text: (el) => {
12569
- const { key, props: props2, state, deps } = el;
12570
- if (props2.text === true)
12571
- return state && state[key] || props2 && props2[key];
12572
- return deps.exec(props2.text, el);
12641
+ const { key, props: props5, state, deps } = el;
12642
+ if (props5.text === true)
12643
+ return state && state[key] || props5 && props5[key];
12644
+ return deps.exec(props5.text, el);
12573
12645
  },
12574
12646
  class: {
12575
- fontSize: (el) => {
12576
- const { props: props2, deps } = el;
12577
- return props2.fontSize ? deps.getFontSizeByKey(props2.fontSize) : null;
12578
- },
12579
- font: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.font) && { font: props2.font },
12580
- fontFamily: ({ props: props2, deps }) => !(0, import_utils10.isUndefined)(props2.fontFamily) && {
12581
- fontFamily: deps.getFontFamily(props2.fontFamily) || props2.fontFamily
12582
- },
12583
- lineHeight: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.lineHeight) && { lineHeight: props2.lineHeight },
12647
+ font: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.font) && { font: props5.font },
12648
+ lineHeight: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.lineHeight) && { lineHeight: props5.lineHeight },
12584
12649
  // lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
12585
- textDecoration: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.textDecoration) && { textDecoration: props2.textDecoration },
12586
- textTransform: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.textTransform) && { textTransform: props2.textTransform },
12587
- wordBreak: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.wordBreak) && { wordBreak: props2.wordBreak },
12588
- whiteSpace: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.whiteSpace) && { whiteSpace: props2.whiteSpace },
12589
- wordWrap: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.wordWrap) && { wordWrap: props2.wordWrap },
12590
- letterSpacing: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.letterSpacing) && { letterSpacing: props2.letterSpacing },
12591
- textOverflow: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.textOverflow) && { textOverflow: props2.textOverflow },
12592
- textAlign: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.textAlign) && { textAlign: props2.textAlign },
12593
- writingMode: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.writingMode) && { writingMode: props2.writingMode },
12594
- textOrientation: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.textOrientation) && { textOrientation: props2.textOrientation },
12595
- textIndent: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.textIndent) && { textIndent: props2.textIndent },
12596
- fontWeight: ({ props: props2 }) => !(0, import_utils10.isUndefined)(props2.fontWeight) && {
12597
- fontWeight: props2.fontWeight,
12598
- fontVariationSettings: '"wght" ' + props2.fontWeight
12599
- }
12650
+ textDecoration: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textDecoration) && { textDecoration: props5.textDecoration },
12651
+ textTransform: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textTransform) && { textTransform: props5.textTransform },
12652
+ wordBreak: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.wordBreak) && { wordBreak: props5.wordBreak },
12653
+ whiteSpace: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.whiteSpace) && { whiteSpace: props5.whiteSpace },
12654
+ wordWrap: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.wordWrap) && { wordWrap: props5.wordWrap },
12655
+ letterSpacing: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.letterSpacing) && { letterSpacing: props5.letterSpacing },
12656
+ textOverflow: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textOverflow) && { textOverflow: props5.textOverflow },
12657
+ textAlign: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textAlign) && { textAlign: props5.textAlign },
12658
+ writingMode: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.writingMode) && { writingMode: props5.writingMode },
12659
+ textOrientation: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textOrientation) && { textOrientation: props5.textOrientation },
12660
+ textIndent: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textIndent) && { textIndent: props5.textIndent },
12661
+ ...props2
12600
12662
  }
12601
12663
  };
12602
12664
  H1 = { tag: "h1" };
@@ -12640,10 +12702,10 @@ var init_Transform = __esm({
12640
12702
  import_utils11 = __toESM(require_cjs());
12641
12703
  Transform = {
12642
12704
  class: {
12643
- zoom: ({ props: props2 }) => !(0, import_utils11.isUndefined)(props2.zoom) && { zoom: props2.zoom },
12644
- transform: ({ props: props2 }) => !(0, import_utils11.isUndefined)(props2.transform) && { transform: props2.transform },
12645
- transformOrigin: ({ props: props2 }) => !(0, import_utils11.isUndefined)(props2.transformOrigin) && { transformOrigin: props2.transformOrigin },
12646
- backfaceVisibility: ({ props: props2 }) => !(0, import_utils11.isUndefined)(props2.backfaceVisibility) && { backfaceVisibility: props2.backfaceVisibility }
12705
+ zoom: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.zoom) && { zoom: props5.zoom },
12706
+ transform: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.transform) && { transform: props5.transform },
12707
+ transformOrigin: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.transformOrigin) && { transformOrigin: props5.transformOrigin },
12708
+ backfaceVisibility: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.backfaceVisibility) && { backfaceVisibility: props5.backfaceVisibility }
12647
12709
  }
12648
12710
  };
12649
12711
  }
@@ -12657,16 +12719,16 @@ var init_XYZ = __esm({
12657
12719
  import_utils12 = __toESM(require_cjs());
12658
12720
  XYZ = {
12659
12721
  class: {
12660
- zIndex: ({ props: props2 }) => !(0, import_utils12.isUndefined)(props2.zIndex) && { zIndex: props2.zIndex },
12661
- perspective: ({ props: props2 }) => !(0, import_utils12.isUndefined)(props2.perspective) && { perspective: props2.perspective },
12662
- perspectiveOrigin: ({ props: props2 }) => !(0, import_utils12.isUndefined)(props2.perspectiveOrigin) && { perspectiveOrigin: props2.perspectiveOrigin }
12722
+ zIndex: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.zIndex) && { zIndex: props5.zIndex },
12723
+ perspective: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.perspective) && { perspective: props5.perspective },
12724
+ perspectiveOrigin: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.perspectiveOrigin) && { perspectiveOrigin: props5.perspectiveOrigin }
12663
12725
  }
12664
12726
  };
12665
12727
  }
12666
12728
  });
12667
12729
 
12668
12730
  // ../uikit/Atoms/Animation.js
12669
- var import_scratch10, import_utils13, applyAnimationProps, Animation;
12731
+ var import_scratch10, import_utils13, applyAnimationProps, props3, Animation;
12670
12732
  var init_Animation = __esm({
12671
12733
  "../uikit/Atoms/Animation.js"() {
12672
12734
  "use strict";
@@ -12682,41 +12744,44 @@ var init_Animation = __esm({
12682
12744
  const record = ANIMATION[animation];
12683
12745
  return keyframes(record);
12684
12746
  };
12747
+ props3 = {
12748
+ animation: (el) => el.props.animation && {
12749
+ animationName: el.deps.applyAnimationProps(el.props.animation, el),
12750
+ animationDuration: el.deps.getTimingByKey(el.props.animationDuration || "A").timing,
12751
+ animationDelay: el.deps.getTimingByKey(el.props.animationDelay || "0s").timing,
12752
+ animationTimingFunction: el.deps.getTimingFunction(el.props.animationTimingFunction || "ease"),
12753
+ animationFillMode: el.props.animationFillMode || "both",
12754
+ animationPlayState: el.props.animationPlayState,
12755
+ animationDirection: el.props.animationDirection
12756
+ },
12757
+ animationName: (el) => el.props.animationName && {
12758
+ animationName: el.deps.applyAnimationProps(el.props.animationName, el)
12759
+ },
12760
+ animationDuration: ({ props: props5, deps }) => props5.animationDuration && {
12761
+ animationDuration: deps.getTimingByKey(props5.animationDuration).timing
12762
+ },
12763
+ animationDelay: ({ props: props5, deps }) => props5.animationDelay && {
12764
+ animationDelay: deps.getTimingByKey(props5.animationDelay).timing
12765
+ },
12766
+ animationTimingFunction: ({ props: props5, deps }) => props5.animationTimingFunction && {
12767
+ animationTimingFunction: deps.getTimingFunction(props5.animationTimingFunction)
12768
+ }
12769
+ };
12685
12770
  Animation = {
12686
12771
  deps: { isObject: import_utils13.isObject, getTimingByKey: import_scratch10.getTimingByKey, getTimingFunction: import_scratch10.getTimingFunction, applyAnimationProps },
12687
12772
  class: {
12688
- animation: (el) => el.props.animation && {
12689
- animationName: el.deps.applyAnimationProps(el.props.animation, el),
12690
- animationDuration: el.deps.getTimingByKey(el.props.animationDuration || "A").timing,
12691
- animationDelay: el.deps.getTimingByKey(el.props.animationDelay || "0s").timing,
12692
- animationTimingFunction: el.deps.getTimingFunction(el.props.animationTimingFunction || "ease"),
12693
- animationFillMode: el.props.animationFillMode || "both",
12694
- animationPlayState: el.props.animationPlayState,
12695
- animationDirection: el.props.animationDirection
12773
+ ...props3,
12774
+ animationFillMode: ({ props: props5 }) => props5.animationFillMode && {
12775
+ animationFillMode: props5.animationFillMode
12696
12776
  },
12697
- animationName: (el) => el.props.animationName && {
12698
- animationName: el.deps.applyAnimationProps(el.props.animationName, el)
12777
+ animationPlayState: ({ props: props5 }) => props5.animationPlayState && {
12778
+ animationPlayState: props5.animationPlayState
12699
12779
  },
12700
- animationDuration: ({ props: props2, deps }) => props2.animationDuration && {
12701
- animationDuration: deps.getTimingByKey(props2.animationDuration).timing
12780
+ animationIterationCount: ({ props: props5 }) => props5.animationIterationCount && {
12781
+ animationIterationCount: props5.animationIterationCount || 1
12702
12782
  },
12703
- animationDelay: ({ props: props2, deps }) => props2.animationDelay && {
12704
- animationDelay: deps.getTimingByKey(props2.animationDelay).timing
12705
- },
12706
- animationTimingFunction: ({ props: props2, deps }) => props2.animationTimingFunction && {
12707
- animationTimingFunction: deps.getTimingFunction(props2.animationTimingFunction)
12708
- },
12709
- animationFillMode: ({ props: props2 }) => props2.animationFillMode && {
12710
- animationFillMode: props2.animationFillMode
12711
- },
12712
- animationPlayState: ({ props: props2 }) => props2.animationPlayState && {
12713
- animationPlayState: props2.animationPlayState
12714
- },
12715
- animationIterationCount: ({ props: props2 }) => props2.animationIterationCount && {
12716
- animationIterationCount: props2.animationIterationCount || 1
12717
- },
12718
- animationDirection: ({ props: props2 }) => props2.animationDirection && {
12719
- animationDirection: props2.animationDirection
12783
+ animationDirection: ({ props: props5 }) => props5.animationDirection && {
12784
+ animationDirection: props5.animationDirection
12720
12785
  }
12721
12786
  }
12722
12787
  };
@@ -12815,41 +12880,40 @@ var import_utils14, PropsCSS, Box, Circle;
12815
12880
  var init_Box = __esm({
12816
12881
  "../uikit/Box/index.js"() {
12817
12882
  "use strict";
12818
- init_Atoms();
12819
12883
  import_utils14 = __toESM(require_cjs());
12820
12884
  PropsCSS = {
12821
12885
  class: {
12822
- style: ({ props: props2 }) => props2 && props2.style
12886
+ style: ({ props: props5 }) => props5 && props5.style
12823
12887
  }
12824
12888
  };
12825
12889
  Box = {
12826
12890
  extend: [
12827
12891
  PropsCSS,
12828
- Shape,
12829
- Position,
12830
- Theme,
12831
- Block,
12832
- Text,
12833
- Overflow,
12834
- Timing,
12835
- Transform,
12836
- Media,
12837
- Interaction,
12838
- XYZ,
12839
- Animation
12892
+ "Shape",
12893
+ "Position",
12894
+ "Theme",
12895
+ "Block",
12896
+ "Text",
12897
+ "Overflow",
12898
+ "Timing",
12899
+ "Transform",
12900
+ "Media",
12901
+ "Interaction",
12902
+ "XYZ",
12903
+ "Animation"
12840
12904
  ],
12841
12905
  deps: { isString: import_utils14.isString, isUndefined: import_utils14.isUndefined },
12842
12906
  attr: {
12843
- id: ({ props: props2, deps }) => deps.isString(props2.id) && props2.id,
12844
- title: ({ props: props2, deps }) => deps.isString(props2.title) && props2.title,
12845
- contentEditable: ({ props: props2 }) => props2.contentEditable || props2.contenteditable,
12846
- dir: ({ props: props2 }) => props2.dir,
12847
- draggable: ({ props: props2 }) => props2.draggable,
12848
- hidden: ({ props: props2 }) => props2.hidden,
12849
- lang: ({ props: props2 }) => props2.lang,
12850
- spellcheck: ({ props: props2 }) => props2.spellcheck,
12851
- tabindex: ({ props: props2 }) => props2.tabindex,
12852
- translate: ({ props: props2 }) => props2.translate
12907
+ id: ({ props: props5, deps }) => deps.isString(props5.id) && props5.id,
12908
+ title: ({ props: props5, deps }) => deps.isString(props5.title) && props5.title,
12909
+ contentEditable: ({ props: props5 }) => props5.contentEditable || props5.contenteditable,
12910
+ dir: ({ props: props5 }) => props5.dir,
12911
+ draggable: ({ props: props5 }) => props5.draggable,
12912
+ hidden: ({ props: props5 }) => props5.hidden,
12913
+ lang: ({ props: props5 }) => props5.lang,
12914
+ spellcheck: ({ props: props5 }) => props5.spellcheck,
12915
+ tabindex: ({ props: props5 }) => props5.tabindex,
12916
+ translate: ({ props: props5 }) => props5.translate
12853
12917
  }
12854
12918
  };
12855
12919
  Circle = {
@@ -12867,23 +12931,23 @@ var init_Icon = __esm({
12867
12931
  "use strict";
12868
12932
  import_utils15 = __toESM(require_cjs());
12869
12933
  inheritFromIsActive = (el) => {
12870
- const { props: props2 } = el;
12871
- const propsActive = props2[".isActive"];
12934
+ const { props: props5 } = el;
12935
+ const propsActive = props5[".isActive"];
12872
12936
  return el.call("exec", propsActive.name || propsActive.icon);
12873
12937
  };
12874
12938
  getIconName = (el, s) => {
12875
- const { key, props: props2, deps } = el;
12876
- let iconName = el.call("exec", props2.name || props2.icon || key, el);
12877
- if ((0, import_utils15.isString)(iconName) && iconName.includes("{{")) {
12878
- iconName = deps.replaceLiteralsWithObjectFields(iconName, s);
12939
+ const { key, props: props5 } = el;
12940
+ let icon = el.call("exec", props5.name || props5.icon || key, el);
12941
+ if ((0, import_utils15.isString)(icon) && icon.includes("{{")) {
12942
+ icon = el.call("replaceLiteralsWithObjectFields", icon, s);
12879
12943
  }
12880
- return deps.isString(iconName) ? iconName : key;
12944
+ return el.call("isString", icon) ? icon : key;
12881
12945
  };
12882
12946
  Icon = {
12883
12947
  extend: "Svg",
12884
12948
  deps: { isString: import_utils15.isString, replaceLiteralsWithObjectFields: import_utils15.replaceLiteralsWithObjectFields },
12885
12949
  props: (el, s, ctx) => {
12886
- const { props: props2, parent, deps } = el;
12950
+ const { props: props5, parent, deps } = el;
12887
12951
  const { ICONS, useIconSprite, verbose } = ctx && ctx.designSystem;
12888
12952
  const { toCamelCase } = ctx && ctx.utils;
12889
12953
  const iconName = getIconName(el, s);
@@ -12893,7 +12957,7 @@ var init_Icon = __esm({
12893
12957
  if (semanticIcon)
12894
12958
  return semanticIcon;
12895
12959
  let activeIconName;
12896
- if (props2.isActive)
12960
+ if (props5.isActive)
12897
12961
  activeIconName = inheritFromIsActive(el);
12898
12962
  const parentProps = parent.props;
12899
12963
  const parentPropsActive = parentProps[".isActive"];
@@ -12920,7 +12984,7 @@ var init_Icon = __esm({
12920
12984
  el.warn("Can't find icon:", iconName, iconInContext);
12921
12985
  }
12922
12986
  const iconFromLibrary = ICONS[iconInContext];
12923
- const directSrc = parent && parent.props && parent.props.src || props2.src;
12987
+ const directSrc = parent && parent.props && parent.props.src || props5.src;
12924
12988
  return {
12925
12989
  width: "A",
12926
12990
  height: "A",
@@ -12936,21 +13000,26 @@ var init_Icon = __esm({
12936
13000
  extend: "Flex",
12937
13001
  props: {
12938
13002
  align: "center center",
12939
- lineHeight: 1
12940
- },
12941
- Icon: {
12942
- props: (el) => ({ icon: el.call("exec", el.parent.props.icon, el.parent) }),
12943
- if: ({ parent, props: props2 }) => {
12944
- return parent.props.icon || parent.props.Icon || props2.name || props2.icon || props2.sfSymbols || parent.props.sfSymbols;
13003
+ lineHeight: 1,
13004
+ ".reversed": {
13005
+ flow: "row-reverse"
13006
+ },
13007
+ ".vertical": {
13008
+ flow: "column"
12945
13009
  }
12946
13010
  },
12947
- text: ({ props: props2 }) => props2.text,
12948
- ".reversed": {
12949
- props: { flow: "row-reverse" }
13011
+ Icon: {
13012
+ if: (el) => {
13013
+ const { parent, props: props5 } = el;
13014
+ return el.call(
13015
+ "exec",
13016
+ parent.props.icon || parent.props.Icon || props5.name || props5.icon || props5.sfSymbols || parent.props.sfSymbols,
13017
+ el
13018
+ );
13019
+ },
13020
+ icon: (el) => el.call("exec", el.parent.props.icon, el.parent)
12950
13021
  },
12951
- ".vertical": {
12952
- props: { flow: "column" }
12953
- }
13022
+ text: ({ props: props5 }) => props5.text
12954
13023
  };
12955
13024
  FileIcon = {
12956
13025
  extend: "Flex",
@@ -13455,16 +13524,16 @@ var init_Link = __esm({
13455
13524
  }
13456
13525
  return href;
13457
13526
  },
13458
- target: ({ props: props2 }) => props2.target,
13459
- "aria-label": ({ props: props2 }) => props2.aria ? props2.aria.label : props2.text,
13460
- draggable: ({ props: props2 }) => props2.draggable
13527
+ target: ({ props: props5 }) => props5.target,
13528
+ "aria-label": ({ props: props5 }) => props5.aria ? props5.aria.label : props5.text,
13529
+ draggable: ({ props: props5 }) => props5.draggable
13461
13530
  }
13462
13531
  };
13463
13532
  RouterLink = {
13464
13533
  on: {
13465
13534
  click: (event, el, s) => {
13466
- const { props: props2, context: ctx } = el;
13467
- const { href: h, scrollToTop, stopPropagation } = props2;
13535
+ const { props: props5, context: ctx } = el;
13536
+ const { href: h, scrollToTop, stopPropagation } = props5;
13468
13537
  const { exec: exec7, isString: isString12, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
13469
13538
  let href = exec7(h, el, s);
13470
13539
  if (isString12(href) && href.includes("{{")) {
@@ -13483,7 +13552,7 @@ var init_Link = __esm({
13483
13552
  scrollToOptions: { behaviour: "instant" },
13484
13553
  scrollToTop: isDefined2(scrollToTop) ? scrollToTop : true,
13485
13554
  ...routerOptions,
13486
- ...props2.routerOptions
13555
+ ...props5.routerOptions
13487
13556
  });
13488
13557
  event.preventDefault();
13489
13558
  } catch (e) {
@@ -13509,23 +13578,23 @@ var init_Video = __esm({
13509
13578
  childExtend: {
13510
13579
  tag: "source",
13511
13580
  attr: {
13512
- src: ({ props: props2 }) => props2.src,
13513
- type: ({ props: props2 }) => props2.type,
13514
- controls: ({ props: props2 }) => props2.controls
13581
+ src: ({ props: props5 }) => props5.src,
13582
+ type: ({ props: props5 }) => props5.type,
13583
+ controls: ({ props: props5 }) => props5.controls
13515
13584
  }
13516
13585
  },
13517
13586
  props: {
13518
13587
  controls: true
13519
13588
  },
13520
13589
  attr: {
13521
- src: ({ props: props2 }) => props2.src,
13522
- playsinline: ({ props: props2 }) => props2.playsinline,
13523
- autoplay: ({ props: props2 }) => props2.autoplay,
13524
- loop: ({ props: props2 }) => props2.loop,
13525
- poster: ({ props: props2 }) => props2.poster,
13526
- muted: ({ props: props2 }) => props2.muted,
13527
- preload: ({ props: props2 }) => props2.preload,
13528
- controls: ({ props: props2 }) => props2.controls
13590
+ src: ({ props: props5 }) => props5.src,
13591
+ playsinline: ({ props: props5 }) => props5.playsinline,
13592
+ autoplay: ({ props: props5 }) => props5.autoplay,
13593
+ loop: ({ props: props5 }) => props5.loop,
13594
+ poster: ({ props: props5 }) => props5.poster,
13595
+ muted: ({ props: props5 }) => props5.muted,
13596
+ preload: ({ props: props5 }) => props5.preload,
13597
+ controls: ({ props: props5 }) => props5.controls
13529
13598
  }
13530
13599
  };
13531
13600
  }
@@ -13581,25 +13650,25 @@ var init_Input = __esm({
13581
13650
  padding: "Z2 B"
13582
13651
  },
13583
13652
  attr: {
13584
- pattern: ({ props: props2 }) => props2.pattern,
13585
- minLength: ({ props: props2 }) => props2.minlength,
13586
- maxLength: ({ props: props2 }) => props2.maxlength,
13587
- name: ({ props: props2 }) => props2.name,
13588
- autocomplete: ({ props: props2 }) => props2.autocomplete,
13589
- placeholder: ({ props: props2 }) => props2.placeholder,
13653
+ pattern: ({ props: props5 }) => props5.pattern,
13654
+ minLength: ({ props: props5 }) => props5.minlength,
13655
+ maxLength: ({ props: props5 }) => props5.maxlength,
13656
+ name: ({ props: props5 }) => props5.name,
13657
+ autocomplete: ({ props: props5 }) => props5.autocomplete,
13658
+ placeholder: ({ props: props5 }) => props5.placeholder,
13590
13659
  value: (el, s) => {
13591
- const { props: props2, state, deps } = el;
13660
+ const { props: props5, state, deps } = el;
13592
13661
  const { isString: isString12, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = deps;
13593
- const val = exec7(props2.value, el);
13662
+ const val = exec7(props5.value, el);
13594
13663
  if (isString12(val) && val.includes("{{")) {
13595
13664
  return replaceLiteralsWithObjectFields3(val, state);
13596
13665
  }
13597
13666
  return val;
13598
13667
  },
13599
- disabled: ({ props: props2 }) => props2.disabled || null,
13600
- readonly: ({ props: props2 }) => props2.readonly,
13601
- required: ({ props: props2 }) => props2.required,
13602
- type: ({ props: props2 }) => props2.type
13668
+ disabled: ({ props: props5 }) => props5.disabled || null,
13669
+ readonly: ({ props: props5 }) => props5.readonly,
13670
+ required: ({ props: props5 }) => props5.required,
13671
+ type: ({ props: props5 }) => props5.type
13603
13672
  }
13604
13673
  };
13605
13674
  }
@@ -13629,9 +13698,9 @@ var init_NumberInput = __esm({
13629
13698
  }
13630
13699
  },
13631
13700
  attr: {
13632
- step: ({ props: props2 }) => props2.step,
13633
- min: ({ props: props2 }) => props2.min,
13634
- max: ({ props: props2 }) => props2.max
13701
+ step: ({ props: props5 }) => props5.step,
13702
+ min: ({ props: props5 }) => props5.min,
13703
+ max: ({ props: props5 }) => props5.max
13635
13704
  }
13636
13705
  };
13637
13706
  }
@@ -13884,14 +13953,14 @@ var init_Select = __esm({
13884
13953
  disabled: ""
13885
13954
  },
13886
13955
  attr: {
13887
- value: ({ props: props2 }) => props2.value,
13888
- selected: ({ props: props2 }) => props2.selected,
13889
- disabled: ({ props: props2 }) => props2.disabled
13956
+ value: ({ props: props5 }) => props5.value,
13957
+ selected: ({ props: props5 }) => props5.selected,
13958
+ disabled: ({ props: props5 }) => props5.disabled
13890
13959
  }
13891
13960
  },
13892
13961
  attr: {
13893
- name: ({ props: props2 }) => props2.name,
13894
- disabled: ({ props: props2 }) => props2.disabled
13962
+ name: ({ props: props5 }) => props5.name,
13963
+ disabled: ({ props: props5 }) => props5.disabled
13895
13964
  }
13896
13965
  };
13897
13966
  }
@@ -13964,20 +14033,12 @@ var init_Field = __esm({
13964
14033
  align: "center flex-start",
13965
14034
  gap: "Y",
13966
14035
  boxSizing: "border-box",
13967
- position: "relative",
13968
- Input: {
13969
- padding: "Z2 B2 Z2 B",
13970
- flex: "1"
13971
- },
13972
- Button: {
13973
- padding: "0",
13974
- background: "transparent",
13975
- margin: "- - - auto",
13976
- fontSize: "Z2"
13977
- }
14036
+ position: "relative"
13978
14037
  },
13979
14038
  Input: {
13980
- placeholder: "Placeholder"
14039
+ placeholder: "Placeholder",
14040
+ padding: "Z2 B2 Z2 B",
14041
+ flex: "1"
13981
14042
  },
13982
14043
  Icon: {
13983
14044
  props: ({ parent }) => ({
@@ -13986,6 +14047,12 @@ var init_Field = __esm({
13986
14047
  margin: "- Z1 - -C",
13987
14048
  position: "relative"
13988
14049
  })
14050
+ },
14051
+ Button: {
14052
+ padding: "0",
14053
+ background: "transparent",
14054
+ margin: "- - - auto",
14055
+ fontSize: "Z2"
13989
14056
  }
13990
14057
  };
13991
14058
  FieldTemplate = {
@@ -14187,7 +14254,7 @@ var init_Button = __esm({
14187
14254
  round: "C2"
14188
14255
  },
14189
14256
  attr: {
14190
- type: ({ props: props2 }) => props2.type
14257
+ type: ({ props: props5 }) => props5.type
14191
14258
  }
14192
14259
  };
14193
14260
  SquareButton = {
@@ -14345,9 +14412,9 @@ var init_ProgressLine = __esm({
14345
14412
  }
14346
14413
  },
14347
14414
  attr: {
14348
- max: ({ props: props2 }) => props2.max,
14349
- progress: ({ props: props2 }) => props2.progress,
14350
- value: ({ props: props2 }) => props2.value
14415
+ max: ({ props: props5 }) => props5.max,
14416
+ progress: ({ props: props5 }) => props5.progress,
14417
+ value: ({ props: props5 }) => props5.value
14351
14418
  }
14352
14419
  };
14353
14420
  ProgressLineWithUnitValue = {
@@ -14399,9 +14466,9 @@ var init_ProgressCircle = __esm({
14399
14466
  }
14400
14467
  },
14401
14468
  attr: {
14402
- max: ({ props: props2 }) => props2.max,
14403
- progress: ({ props: props2 }) => props2.progress,
14404
- value: ({ props: props2 }) => props2.value
14469
+ max: ({ props: props5 }) => props5.max,
14470
+ progress: ({ props: props5 }) => props5.progress,
14471
+ value: ({ props: props5 }) => props5.value
14405
14472
  }
14406
14473
  }
14407
14474
  };
@@ -14458,13 +14525,13 @@ var init_Progress = __esm({
14458
14525
  });
14459
14526
 
14460
14527
  // ../uikit/Range/index.js
14461
- var import_utils17, import_scratch11, props, returnPropertyValue, Range, RangeWithButtons;
14528
+ var import_utils17, import_scratch11, props4, returnPropertyValue, Range, RangeWithButtons;
14462
14529
  var init_Range = __esm({
14463
14530
  "../uikit/Range/index.js"() {
14464
14531
  "use strict";
14465
14532
  import_utils17 = __toESM(require_cjs());
14466
14533
  import_scratch11 = __toESM(require_cjs2());
14467
- props = {
14534
+ props4 = {
14468
14535
  appearance: "none",
14469
14536
  width: "100%",
14470
14537
  height: "2px",
@@ -14529,7 +14596,7 @@ var init_Range = __esm({
14529
14596
  return r + "";
14530
14597
  };
14531
14598
  Range = {
14532
- props,
14599
+ props: props4,
14533
14600
  tag: "input",
14534
14601
  attr: {
14535
14602
  type: "range",
@@ -14540,17 +14607,17 @@ var init_Range = __esm({
14540
14607
  },
14541
14608
  on: {
14542
14609
  input: (ev, el, s) => {
14543
- const props2 = el.props;
14544
- if ((0, import_utils17.isFunction)(props2.onInput)) {
14545
- props2.onInput(ev, el, s);
14610
+ const props5 = el.props;
14611
+ if ((0, import_utils17.isFunction)(props5.onInput)) {
14612
+ props5.onInput(ev, el, s);
14546
14613
  } else {
14547
14614
  s.update({ value: parseFloat(el.node.value) });
14548
14615
  }
14549
14616
  },
14550
14617
  change: (ev, el, s) => {
14551
- const props2 = el.props;
14552
- if ((0, import_utils17.isFunction)(props2.onChange)) {
14553
- props2.onChange(ev, el, s);
14618
+ const props5 = el.props;
14619
+ if ((0, import_utils17.isFunction)(props5.onChange)) {
14620
+ props5.onChange(ev, el, s);
14554
14621
  } else {
14555
14622
  s.update({ value: parseFloat(el.node.value) });
14556
14623
  }
@@ -14679,8 +14746,8 @@ var init_Slider = __esm({
14679
14746
  click: (ev, el, s) => {
14680
14747
  el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
14681
14748
  const input = el.parent.input;
14682
- const props2 = input.props;
14683
- const value2 = (0, import_utils18.isFunction)(props2.value) ? props2.value() : props2.value;
14749
+ const props5 = input.props;
14750
+ const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
14684
14751
  input.node.value = value2;
14685
14752
  }
14686
14753
  }
@@ -14716,8 +14783,8 @@ var init_Slider = __esm({
14716
14783
  click: (ev, el, s) => {
14717
14784
  el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
14718
14785
  const input = el.parent.input;
14719
- const props2 = input.props;
14720
- const value2 = (0, import_utils18.isFunction)(props2.value) ? props2.value() : props2.value;
14786
+ const props5 = input.props;
14787
+ const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
14721
14788
  input.node.value = value2;
14722
14789
  }
14723
14790
  }
@@ -14781,12 +14848,12 @@ var init_Avatar = __esm({
14781
14848
  "use strict";
14782
14849
  Avatar = {
14783
14850
  extend: "Img",
14784
- props: ({ key, props: props2 }) => ({
14851
+ props: ({ key, props: props5 }) => ({
14785
14852
  display: "block",
14786
14853
  avatarType: "adventurer-neutral",
14787
14854
  borderRadius: "100%",
14788
14855
  boxSize: "C+X C+X",
14789
- src: `https://api.dicebear.com/7.x/${props2.avatarType || "initials"}/svg?seed=${props2.key || key || "no-avatar"}`
14856
+ src: `https://api.dicebear.com/7.x/${props5.avatarType || "initials"}/svg?seed=${props5.key || key || "no-avatar"}`
14790
14857
  })
14791
14858
  };
14792
14859
  }
@@ -14836,7 +14903,7 @@ var init_AvatarBundle = __esm({
14836
14903
  }
14837
14904
  },
14838
14905
  childExtend: Avatar,
14839
- $propsCollection: ({ props: props2 }) => props2.options
14906
+ $propsCollection: ({ props: props5 }) => props5.options
14840
14907
  };
14841
14908
  }
14842
14909
  });
@@ -14939,32 +15006,24 @@ var init_Notification = __esm({
14939
15006
  align: "flex-start center"
14940
15007
  },
14941
15008
  IconText: {
14942
- props: {
14943
- icon: "info outline"
14944
- }
15009
+ icon: "info outline"
14945
15010
  },
14946
15011
  Flex: {
14947
- props: {
14948
- flow: "column",
14949
- align: "flex-start",
14950
- gap: "X2"
14951
- },
15012
+ flow: "column",
15013
+ align: "flex-start",
15014
+ gap: "X2",
14952
15015
  Title: {
14953
15016
  tag: "h6",
14954
- props: {
14955
- margin: "0",
14956
- fontWeight: "600",
14957
- lineHeight: "1em",
14958
- text: "Notification"
14959
- }
15017
+ margin: "0",
15018
+ fontWeight: "600",
15019
+ lineHeight: "1em",
15020
+ text: "Notification"
14960
15021
  },
14961
15022
  P: {
14962
- props: {
14963
- ":empty": { hide: true },
14964
- fontSize: "Z",
14965
- margin: "0",
14966
- text: "is not always a distraction"
14967
- }
15023
+ fontSize: "Z",
15024
+ margin: "0",
15025
+ text: "is not always a distraction",
15026
+ ":empty": { hide: true }
14968
15027
  }
14969
15028
  }
14970
15029
  };
@@ -15007,7 +15066,7 @@ var init_Tooltip = __esm({
15007
15066
  },
15008
15067
  attr: { tooltip: true },
15009
15068
  Title: {
15010
- if: ({ parent, props: props2 }) => (0, import_utils19.isDefined)(parent.props.title) || props2.text,
15069
+ if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.title) || props5.text,
15011
15070
  props: ({ parent }) => ({
15012
15071
  width: "fit-content",
15013
15072
  fontWeight: 500,
@@ -15016,7 +15075,7 @@ var init_Tooltip = __esm({
15016
15075
  })
15017
15076
  },
15018
15077
  P: {
15019
- if: ({ parent, props: props2 }) => (0, import_utils19.isDefined)(parent.props.description) || props2.text,
15078
+ if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.description) || props5.text,
15020
15079
  props: ({ parent }) => ({
15021
15080
  width: "fit-content",
15022
15081
  fontSize: "Z2",
@@ -15029,13 +15088,13 @@ var init_Tooltip = __esm({
15029
15088
  };
15030
15089
  TooltipHidden = {
15031
15090
  extend: "Tooltip",
15032
- props: ({ props: props2 }) => ({
15091
+ props: ({ props: props5 }) => ({
15033
15092
  position: "absolute",
15034
15093
  pointerEvents: "none",
15035
15094
  opacity: "0",
15036
15095
  visibility: "hidden",
15037
15096
  transition: "C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",
15038
- ...props2.shapeDirection === "top" ? {
15097
+ ...props5.shapeDirection === "top" ? {
15039
15098
  top: "112%",
15040
15099
  left: "50%",
15041
15100
  transform: "translate3d(-50%,10%,0)",
@@ -15044,7 +15103,7 @@ var init_Tooltip = __esm({
15044
15103
  opacity: 1,
15045
15104
  visibility: "visible"
15046
15105
  }
15047
- } : props2.shapeDirection === "right" ? {
15106
+ } : props5.shapeDirection === "right" ? {
15048
15107
  transform: "translate3d(10%,-50%,0)",
15049
15108
  right: "112%",
15050
15109
  top: "50%",
@@ -15053,7 +15112,7 @@ var init_Tooltip = __esm({
15053
15112
  opacity: 1,
15054
15113
  visibility: "visible"
15055
15114
  }
15056
- } : props2.shapeDirection === "bottom" ? {
15115
+ } : props5.shapeDirection === "bottom" ? {
15057
15116
  transform: "translate3d(-50%,-10%,0)",
15058
15117
  bottom: "112%",
15059
15118
  left: "50%",
@@ -15124,7 +15183,7 @@ var init_Pills = __esm({
15124
15183
  }
15125
15184
  }
15126
15185
  },
15127
- $propsCollection: ({ props: props2, state }) => new Array(props2.qty).fill({})
15186
+ $propsCollection: ({ props: props5, state }) => new Array(props5.qty).fill({})
15128
15187
  };
15129
15188
  }
15130
15189
  });
@@ -15983,7 +16042,7 @@ var init_Dropdown = __esm({
15983
16042
  style: { listStyleType: "none" },
15984
16043
  transition: "B defaultBezier",
15985
16044
  transitionProperty: "transform, opacity, visibility",
15986
- children: ({ props: props2 }) => props2.options || [],
16045
+ children: ({ props: props5 }) => props5.options || [],
15987
16046
  childrenAs: "props",
15988
16047
  ".hidden": {
15989
16048
  transform: "translate3d(0,10%,0)",
@@ -17519,10 +17578,10 @@ var require_cjs7 = __commonJS({
17519
17578
  return o;
17520
17579
  };
17521
17580
  var deepStringify = (obj, stringified = {}) => {
17522
- var _a;
17581
+ var _a, _b;
17523
17582
  if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
17524
- console.warn("Trying to clone element or state at", obj);
17525
- obj = (_a = obj.parse) == null ? void 0 : _a.call(obj);
17583
+ (obj.__element || ((_a = obj.parent) == null ? void 0 : _a.__element)).warn("Trying to clone element or state at", obj);
17584
+ obj = (_b = obj.parse) == null ? void 0 : _b.call(obj);
17526
17585
  }
17527
17586
  for (const prop in obj) {
17528
17587
  const objProp = obj[prop];
@@ -17904,13 +17963,13 @@ var require_cjs7 = __commonJS({
17904
17963
  }
17905
17964
  return true;
17906
17965
  };
17907
- var removeFromObject = (obj, props2) => {
17908
- if (props2 === void 0 || props2 === null)
17966
+ var removeFromObject = (obj, props5) => {
17967
+ if (props5 === void 0 || props5 === null)
17909
17968
  return obj;
17910
- if ((0, import_types.is)(props2)("string", "number")) {
17911
- delete obj[props2];
17912
- } else if ((0, import_types.isArray)(props2)) {
17913
- props2.forEach((prop) => delete obj[prop]);
17969
+ if ((0, import_types.is)(props5)("string", "number")) {
17970
+ delete obj[props5];
17971
+ } else if ((0, import_types.isArray)(props5)) {
17972
+ props5.forEach((prop) => delete obj[prop]);
17914
17973
  } else {
17915
17974
  throw new Error("Invalid input: props must be a string or an array of strings");
17916
17975
  }
@@ -18156,9 +18215,11 @@ var require_cjs7 = __commonJS({
18156
18215
  var cookie_exports = {};
18157
18216
  __export22(cookie_exports, {
18158
18217
  getCookie: () => getCookie,
18218
+ getLocalStorage: () => getLocalStorage,
18159
18219
  isMobile: () => isMobile,
18160
18220
  removeCookie: () => removeCookie,
18161
- setCookie: () => setCookie
18221
+ setCookie: () => setCookie,
18222
+ setLocalStorage: () => setLocalStorage
18162
18223
  });
18163
18224
  module22.exports = __toCommonJS22(cookie_exports);
18164
18225
  var import_types = require_types3();
@@ -18192,6 +18253,27 @@ var require_cjs7 = __commonJS({
18192
18253
  return;
18193
18254
  import_utils32.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
18194
18255
  };
18256
+ function getLocalStorage(key) {
18257
+ let savedJSON;
18258
+ if (window.localStorage) {
18259
+ try {
18260
+ savedJSON = JSON.parse(window.localStorage.getItem(key));
18261
+ } catch (e) {
18262
+ }
18263
+ }
18264
+ if (typeof savedJSON !== "undefined") {
18265
+ return savedJSON;
18266
+ }
18267
+ }
18268
+ function setLocalStorage(key, data) {
18269
+ if (data && window.localStorage) {
18270
+ if (typeof data === "object") {
18271
+ window.localStorage.setItem(key, JSON.stringify(data));
18272
+ } else {
18273
+ window.localStorage.setItem(key, data);
18274
+ }
18275
+ }
18276
+ }
18195
18277
  }
18196
18278
  });
18197
18279
  var require_tags3 = __commonJS2({
@@ -18391,7 +18473,9 @@ var require_cjs7 = __commonJS({
18391
18473
  applyKeyComponentAsExtend: () => applyKeyComponentAsExtend,
18392
18474
  checkIfKeyIsComponent: () => checkIfKeyIsComponent,
18393
18475
  checkIfKeyIsProperty: () => checkIfKeyIsProperty,
18476
+ checkIfSugar: () => checkIfSugar,
18394
18477
  extendizeByKey: () => extendizeByKey,
18478
+ getCapitalCaseKeys: () => getCapitalCaseKeys,
18395
18479
  getChildrenComponentsByKey: () => getChildrenComponentsByKey,
18396
18480
  getExtendsInElement: () => getExtendsInElement,
18397
18481
  hasVariantProp: () => hasVariantProp,
@@ -18425,12 +18509,13 @@ var require_cjs7 = __commonJS({
18425
18509
  return { ...element, extend };
18426
18510
  };
18427
18511
  var checkIfSugar = (element, parent, key) => {
18512
+ var _a;
18428
18513
  const {
18429
18514
  extend,
18430
- props: props2,
18515
+ props: props5,
18431
18516
  childExtend,
18432
18517
  extends: extendProps,
18433
- childrenExtends,
18518
+ childExtends,
18434
18519
  childProps,
18435
18520
  children,
18436
18521
  on: on2,
@@ -18438,16 +18523,18 @@ var require_cjs7 = __commonJS({
18438
18523
  $stateCollection,
18439
18524
  $propsCollection
18440
18525
  } = element;
18441
- const hasComponentAttrs = extend || childExtend || props2 || on2 || $collection || $stateCollection || $propsCollection;
18442
- if (hasComponentAttrs && (childProps || extendProps || children || childrenExtends)) {
18443
- element.error("Sugar component includes params for builtin components");
18526
+ const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
18527
+ if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
18528
+ const logErr = (_a = parent || element) == null ? void 0 : _a.error;
18529
+ if (logErr)
18530
+ logErr("Sugar component includes params for builtin components", { verbose: true });
18444
18531
  }
18445
- return !hasComponentAttrs || childProps || extendProps || children || childrenExtends;
18532
+ return !hasComponentAttrs || childProps || extendProps || children || childExtends;
18446
18533
  };
18447
18534
  var extendizeByKey = (element, parent, key) => {
18448
18535
  const { context } = parent;
18449
- const { tag, extend, childrenExtends } = element;
18450
- const isSugar = checkIfSugar(element);
18536
+ const { tag, extend, childExtends } = element;
18537
+ const isSugar = checkIfSugar(element, parent, key);
18451
18538
  const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent(key.split(".")[1]) ? [key.split(".")[0]] : [key];
18452
18539
  const isExtendKeyComponent = context && context.components[extendFromKey];
18453
18540
  if (element === isExtendKeyComponent)
@@ -18458,8 +18545,8 @@ var require_cjs7 = __commonJS({
18458
18545
  tag,
18459
18546
  props: { ...element }
18460
18547
  });
18461
- if (childrenExtends)
18462
- newElem.childExtend = childrenExtends;
18548
+ if (childExtends)
18549
+ newElem.childExtend = childExtends;
18463
18550
  return newElem;
18464
18551
  } else if (!extend || extend === true) {
18465
18552
  return {
@@ -18488,23 +18575,24 @@ var require_cjs7 = __commonJS({
18488
18575
  const childKey = childElems[i];
18489
18576
  const childElem = element[childKey];
18490
18577
  const newChild = element.props[childKey];
18578
+ const assignChild = (val) => {
18579
+ element[childKey] = val;
18580
+ delete element.props[childKey];
18581
+ };
18491
18582
  if (newChild == null ? void 0 : newChild.ignoreExtend)
18492
18583
  continue;
18493
- if (!childElem)
18494
- element[childKey] = (0, import__.deepCloneWithExtend)(newChild);
18584
+ if (newChild === null)
18585
+ assignChild(null);
18586
+ else if (!childElem)
18587
+ assignChild((0, import__.deepCloneWithExtend)(newChild));
18495
18588
  else {
18496
- const isSugar = checkIfSugar(childElem);
18497
- if (!isSugar)
18589
+ const isSugarChildElem = checkIfSugar(childElem, parent, key);
18590
+ if (isSugarChildElem)
18498
18591
  continue;
18499
- const inheritedChildElem = element[childKey].props;
18500
- if ((0, import__.isObjectLike)(newChild)) {
18501
- (0, import__.overwriteDeep)(inheritedChildElem, newChild);
18502
- } else if ((0, import__.isFunction)(newChild)) {
18503
- element[childKey] = {
18504
- extend: element[childKey],
18505
- props: newChild
18506
- };
18507
- }
18592
+ assignChild({
18593
+ extend: element[childKey],
18594
+ props: newChild
18595
+ });
18508
18596
  }
18509
18597
  }
18510
18598
  };
@@ -18538,8 +18626,8 @@ var require_cjs7 = __commonJS({
18538
18626
  return firstCharKey === ".";
18539
18627
  };
18540
18628
  var hasVariantProp = (element) => {
18541
- const { props: props2 } = element;
18542
- if ((0, import__.isObject)(props2) && (0, import__.isString)(props2.variant))
18629
+ const { props: props5 } = element;
18630
+ if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
18543
18631
  return true;
18544
18632
  };
18545
18633
  var getChildrenComponentsByKey = (key, el) => {
@@ -19296,7 +19384,7 @@ var require_define = __commonJS({
19296
19384
  defaultDefine: () => defaultDefine
19297
19385
  });
19298
19386
  module2.exports = __toCommonJS2(define_exports);
19299
- var import_atoms8 = (init_Atoms(), __toCommonJS(Atoms_exports));
19387
+ var import_atoms7 = (init_Atoms(), __toCommonJS(Atoms_exports));
19300
19388
  var defaultDefine = {
19301
19389
  routes: (param) => param,
19302
19390
  // deps: (param, el) => param || el.parent.deps,
@@ -19313,10 +19401,10 @@ var require_define = __commonJS({
19313
19401
  set2();
19314
19402
  return obj;
19315
19403
  },
19316
- $collection: import_atoms8.Collection.define.$collection,
19317
- $setCollection: import_atoms8.Collection.define.$setCollection,
19318
- $stateCollection: import_atoms8.Collection.define.$stateCollection,
19319
- $propsCollection: import_atoms8.Collection.define.$propsCollection
19404
+ $collection: import_atoms7.Collection.define.$collection,
19405
+ $setCollection: import_atoms7.Collection.define.$setCollection,
19406
+ $stateCollection: import_atoms7.Collection.define.$stateCollection,
19407
+ $propsCollection: import_atoms7.Collection.define.$propsCollection
19320
19408
  };
19321
19409
  }
19322
19410
  });
@@ -19491,14 +19579,14 @@ var require_cache = __commonJS({
19491
19579
  }
19492
19580
  };
19493
19581
  var detectTag = (element) => {
19494
- let { tag, key, props: props2 } = element;
19582
+ let { tag, key, props: props5 } = element;
19495
19583
  tag = (0, import_utils25.exec)(tag, element);
19496
19584
  if (tag === true)
19497
19585
  tag = key;
19498
- if ((0, import_utils25.isObject)(props2) && (0, import_utils25.isString)(props2.tag)) {
19499
- const tagExists = (0, import_utils25.isValidHtmlTag)(props2.tag);
19586
+ if ((0, import_utils25.isObject)(props5) && (0, import_utils25.isString)(props5.tag)) {
19587
+ const tagExists = (0, import_utils25.isValidHtmlTag)(props5.tag);
19500
19588
  if (tagExists)
19501
- return props2.tag;
19589
+ return props5.tag;
19502
19590
  }
19503
19591
  if ((0, import_utils25.isString)(tag)) {
19504
19592
  if ((0, import_utils25.isValidHtmlTag)(tag))
@@ -19685,6 +19773,7 @@ var require_inherit2 = __commonJS({
19685
19773
  return propValue;
19686
19774
  };
19687
19775
  var inheritParentProps = (element, parent) => {
19776
+ var _a;
19688
19777
  let propsStack = [];
19689
19778
  const parentProps = (0, import_utils25.exec)(parent, parent.state).props;
19690
19779
  const matchParent = parent.props && parentProps[element.key];
@@ -19702,7 +19791,7 @@ var require_inherit2 = __commonJS({
19702
19791
  propsStack.push(objectizeStringProperty(matchParent));
19703
19792
  }
19704
19793
  }
19705
- if (matchParentChildProps)
19794
+ if (matchParentChildProps && !((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.ignoreChildProps))
19706
19795
  propsStack.push(matchParentChildProps);
19707
19796
  return propsStack;
19708
19797
  };
@@ -19740,27 +19829,27 @@ var require_create3 = __commonJS({
19740
19829
  var import_ignore = require_ignore2();
19741
19830
  var import_inherit = require_inherit2();
19742
19831
  var createPropsStack = (element, parent) => {
19743
- const { props: props2, __ref: ref } = element;
19832
+ const { props: props5, __ref: ref } = element;
19744
19833
  const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
19745
- if ((0, import_utils25.isObject)(props2))
19746
- propsStack.push(props2);
19747
- else if (props2 === "inherit" && parent.props)
19834
+ if ((0, import_utils25.isObject)(props5))
19835
+ propsStack.push(props5);
19836
+ else if (props5 === "inherit" && parent.props)
19748
19837
  propsStack.push(parent.props);
19749
- else if (props2)
19750
- propsStack.push(props2);
19838
+ else if (props5)
19839
+ propsStack.push(props5);
19751
19840
  if ((0, import_utils25.isArray)(ref.__extend)) {
19752
19841
  ref.__extend.forEach((extend) => {
19753
- if (extend.props && extend.props !== props2)
19842
+ if (extend.props && extend.props !== props5)
19754
19843
  propsStack.push(extend.props);
19755
19844
  });
19756
19845
  }
19757
19846
  ref.__props = propsStack;
19758
19847
  return propsStack;
19759
19848
  };
19760
- var syncProps = (props2, element, opts) => {
19849
+ var syncProps = (props5, element, opts) => {
19761
19850
  element.props = {};
19762
19851
  const mergedProps = {};
19763
- props2.forEach((v) => {
19852
+ props5.forEach((v) => {
19764
19853
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
19765
19854
  return;
19766
19855
  let execProps;
@@ -19806,9 +19895,9 @@ var require_create3 = __commonJS({
19806
19895
  Object.setPrototypeOf(element.props, methods);
19807
19896
  return element;
19808
19897
  };
19809
- function update(props2, options) {
19898
+ function update(props5, options) {
19810
19899
  const element = this.__element;
19811
- element.update({ props: props2 }, options);
19900
+ element.update({ props: props5 }, options);
19812
19901
  }
19813
19902
  }
19814
19903
  });
@@ -19958,6 +20047,8 @@ var require_object2 = __commonJS({
19958
20047
  "lookup",
19959
20048
  "lookdown",
19960
20049
  "lookdownAll",
20050
+ "getRef",
20051
+ "getPath",
19961
20052
  "setNodeStyles",
19962
20053
  "spotByPath",
19963
20054
  "keys",
@@ -20268,8 +20359,8 @@ var require_extend = __commonJS({
20268
20359
  var applyExtend = (element, parent, options = {}) => {
20269
20360
  if ((0, import_utils25.isFunction)(element))
20270
20361
  element = (0, import_utils25.exec)(element, parent);
20271
- const { props: props2, __ref } = element;
20272
- let extend = (props2 == null ? void 0 : props2.extends) || element.extend;
20362
+ const { props: props5, __ref } = element;
20363
+ let extend = (props5 == null ? void 0 : props5.extends) || element.extend;
20273
20364
  const context = element.context || parent.context;
20274
20365
  extend = (0, import_utils26.fallbackStringExtend)(extend, context, options);
20275
20366
  const extendStack = (0, import_utils26.getExtendStack)(extend, context);
@@ -20278,9 +20369,9 @@ var require_extend = __commonJS({
20278
20369
  let childExtendStack = [];
20279
20370
  if (parent) {
20280
20371
  element.parent = parent;
20281
- if (!options.ignoreChildExtend && !(props2 && props2.ignoreChildExtend)) {
20372
+ if (!options.ignoreChildExtend && !(props5 && props5.ignoreChildExtend)) {
20282
20373
  childExtendStack = (0, import_utils26.getExtendStack)(parent.childExtend, context);
20283
- const ignoreChildExtendRecursive = props2 && props2.ignoreChildExtendRecursive;
20374
+ const ignoreChildExtendRecursive = props5 && props5.ignoreChildExtendRecursive;
20284
20375
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
20285
20376
  const canExtendRecursive = element.key !== "__text";
20286
20377
  if (canExtendRecursive) {
@@ -20388,28 +20479,28 @@ var require_component2 = __commonJS({
20388
20479
  let variantElement = element[variant];
20389
20480
  if (!variantElement)
20390
20481
  return;
20391
- const props2 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
20482
+ const props5 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
20392
20483
  if ((0, import_utils25.isString)(variantElement)) {
20393
20484
  variantElement = {
20394
- extend: [{ props: props2 }, variantElement]
20485
+ extend: [{ props: props5 }, variantElement]
20395
20486
  };
20396
20487
  } else if (variantElement.extend) {
20397
- variantElement = (0, import_utils25.addAdditionalExtend)({ props: props2 }, variantElement);
20488
+ variantElement = (0, import_utils25.addAdditionalExtend)({ props: props5 }, variantElement);
20398
20489
  }
20399
20490
  const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
20400
20491
  const { parent, ...rest } = extendedVariant;
20401
20492
  return (0, import_utils25.overwriteDeep)(element, rest);
20402
20493
  };
20403
20494
  var applyVariant = (element) => {
20404
- const { props: props2 } = element;
20495
+ const { props: props5 } = element;
20405
20496
  if (!(0, import_utils25.hasVariantProp)(element))
20406
20497
  return element;
20407
- const { variant } = props2;
20498
+ const { variant } = props5;
20408
20499
  overwriteVariant(element, `.${variant}`);
20409
20500
  const elKeys = Object.keys(element).filter((key) => (0, import_utils25.isVariant)(key));
20410
20501
  elKeys.forEach((variant2) => {
20411
20502
  const slicedVariantElementKey = variant2.slice(1);
20412
- const variantElementProps = props2[slicedVariantElementKey];
20503
+ const variantElementProps = props5[slicedVariantElementKey];
20413
20504
  if (variantElementProps)
20414
20505
  overwriteVariant(element, variant2, variantElementProps);
20415
20506
  });
@@ -20674,26 +20765,28 @@ var require_set = __commonJS({
20674
20765
  const content = (0, import_utils25.setContentKey)(element, options);
20675
20766
  const __contentRef = content && content.__ref;
20676
20767
  const lazyLoad = element.props && element.props.lazyLoad;
20677
- if (!options.preventBeforeUpdateListener && !options.preventListeners) {
20678
- const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
20679
- if (beforeUpdateReturns === false)
20680
- return element;
20681
- }
20682
20768
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
20683
20769
  if (options.preventContentUpdate === true && !hasCollection)
20684
20770
  return;
20685
20771
  if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils25.deepContains)(params, content)) {
20772
+ if (!options.preventBeforeUpdateListener && !options.preventListeners) {
20773
+ const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
20774
+ if (beforeUpdateReturns === false)
20775
+ return element;
20776
+ }
20686
20777
  if (content == null ? void 0 : content.update)
20687
20778
  content.update();
20779
+ if (!options.preventUpdateListener)
20780
+ (0, import_event.triggerEventOn)("update", element, options);
20688
20781
  return;
20689
20782
  }
20690
20783
  if (params) {
20691
- const { childExtend, childProps, props: props2 } = params;
20784
+ const { childExtend, childProps, props: props5 } = params;
20692
20785
  if (!childExtend && element.childExtend)
20693
20786
  params.childExtend = element.childExtend;
20694
20787
  if (!childProps && element.childProps)
20695
20788
  params.childProps = element.childProps;
20696
- if (!(props2 == null ? void 0 : props2.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
20789
+ if (!(props5 == null ? void 0 : props5.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
20697
20790
  params.props.childProps = element.props.childProps;
20698
20791
  }
20699
20792
  if (lazyLoad) {
@@ -20701,8 +20794,6 @@ var require_set = __commonJS({
20701
20794
  } else
20702
20795
  resetElement(params, element, options);
20703
20796
  }
20704
- if (!options.preventUpdateListener)
20705
- (0, import_event.triggerEventOn)("update", element, options);
20706
20797
  return element;
20707
20798
  };
20708
20799
  var set_default = set2;
@@ -21131,6 +21222,8 @@ var require_registry = __commonJS({
21131
21222
  variables: {},
21132
21223
  lookup: {},
21133
21224
  lookdown: {},
21225
+ getRef: {},
21226
+ getPath: {},
21134
21227
  lookdownAll: {},
21135
21228
  setNodeStyles: {},
21136
21229
  spotByPath: {},
@@ -21265,6 +21358,8 @@ var require_methods2 = __commonJS({
21265
21358
  defineSetter: () => defineSetter,
21266
21359
  error: () => error,
21267
21360
  get: () => get,
21361
+ getPath: () => getPath,
21362
+ getRef: () => getRef,
21268
21363
  isMethod: () => isMethod,
21269
21364
  keys: () => keys,
21270
21365
  log: () => log,
@@ -21404,12 +21499,18 @@ var require_methods2 = __commonJS({
21404
21499
  element.update({ props: param }, options);
21405
21500
  return element;
21406
21501
  }
21502
+ function getRef() {
21503
+ return this.__ref;
21504
+ }
21505
+ function getPath() {
21506
+ return this.getRef().path;
21507
+ }
21407
21508
  var defineSetter = (element, key, get2, set2) => Object.defineProperty(element, key, { get: get2, set: set2 });
21408
21509
  function keys() {
21409
21510
  const element = this;
21410
21511
  const keys2 = [];
21411
21512
  for (const param in element) {
21412
- if (import_mixins.registry[param] && !import_mixins.parseFilters.elementKeys.includes(param) || Object.hasOwnProperty.call(element, param)) {
21513
+ if (import_mixins.registry[param] && !import_mixins.parseFilters.elementKeys.includes(param) || !Object.hasOwnProperty.call(element, param)) {
21413
21514
  continue;
21414
21515
  }
21415
21516
  keys2.push(param);
@@ -21434,8 +21535,8 @@ var require_methods2 = __commonJS({
21434
21535
  return;
21435
21536
  obj[v] = JSON.parse(JSON.stringify(val || {}));
21436
21537
  } else if (v === "props") {
21437
- const { __element, update, ...props2 } = element[v];
21438
- obj[v] = props2;
21538
+ const { __element, update, ...props5 } = element[v];
21539
+ obj[v] = props5;
21439
21540
  } else if ((0, import_utils25.isDefined)(val) && Object.hasOwnProperty.call(element, v))
21440
21541
  obj[v] = val;
21441
21542
  });
@@ -21465,9 +21566,9 @@ var require_methods2 = __commonJS({
21465
21566
  } else {
21466
21567
  console.log(ref.path);
21467
21568
  const keys2 = element.keys();
21468
- keys2.forEach((v) => console.log(`%c${v}:
21469
- `, "font-weight: bold", element[v]));
21569
+ keys2.forEach((v) => console.log(`%c${v}:`, "font-weight: bold", element[v]));
21470
21570
  }
21571
+ console.log(element);
21471
21572
  console.groupEnd(element.key);
21472
21573
  return element;
21473
21574
  }
@@ -21553,6 +21654,8 @@ var require_methods2 = __commonJS({
21553
21654
  "lookup",
21554
21655
  "lookdown",
21555
21656
  "lookdownAll",
21657
+ "getRef",
21658
+ "getPath",
21556
21659
  "setNodeStyles",
21557
21660
  "spotByPath",
21558
21661
  "keys",
@@ -21646,15 +21749,15 @@ var require_iterate = __commonJS({
21646
21749
  };
21647
21750
  var throughExecProps = (element) => {
21648
21751
  const { __ref: ref } = element;
21649
- const { props: props2 } = element;
21650
- for (const k in props2) {
21752
+ const { props: props5 } = element;
21753
+ for (const k in props5) {
21651
21754
  const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
21652
21755
  const cachedExecProp = ref.__execProps[k];
21653
21756
  if ((0, import_utils25.isFunction)(cachedExecProp)) {
21654
- props2[k] = (0, import_utils25.exec)(cachedExecProp, element);
21655
- } else if (isDefine && (0, import_utils25.isFunction)(props2[k])) {
21656
- ref.__execProps[k] = props2[k];
21657
- props2[k] = (0, import_utils25.exec)(props2[k], element);
21757
+ props5[k] = (0, import_utils25.exec)(cachedExecProp, element);
21758
+ } else if (isDefine && (0, import_utils25.isFunction)(props5[k])) {
21759
+ ref.__execProps[k] = props5[k];
21760
+ props5[k] = (0, import_utils25.exec)(props5[k], element);
21658
21761
  }
21659
21762
  }
21660
21763
  };
@@ -21783,12 +21886,12 @@ var require_propEvents = __commonJS({
21783
21886
  module2.exports = __toCommonJS2(propEvents_exports);
21784
21887
  var import_utils25 = require_cjs();
21785
21888
  var propagateEventsFromProps = (element) => {
21786
- const { props: props2, on: on2 } = element;
21787
- const eventKeysFromProps = Object.keys(props2).filter((key) => key.startsWith("on"));
21889
+ const { props: props5, on: on2 } = element;
21890
+ const eventKeysFromProps = Object.keys(props5).filter((key) => key.startsWith("on"));
21788
21891
  eventKeysFromProps.forEach((v) => {
21789
21892
  const eventName = (0, import_utils25.lowercaseFirstLetter)(v.split("on")[1]);
21790
21893
  const origEvent = on2[eventName];
21791
- const funcFromProps = props2[v];
21894
+ const funcFromProps = props5[v];
21792
21895
  if ((0, import_utils25.isFunction)(origEvent)) {
21793
21896
  on2[eventName] = (...args) => {
21794
21897
  const originalEventRetunrs = origEvent(...args);
@@ -21992,9 +22095,9 @@ var require_update2 = __commonJS({
21992
22095
  if (ref.__if && !options.preventPropsUpdate) {
21993
22096
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
21994
22097
  const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils25.isFunction)(v));
21995
- const props2 = params.props || hasParentProps || hasFunctionInProps.length;
21996
- if (props2)
21997
- (0, import_props.updateProps)(props2, element, parent);
22098
+ const props5 = params.props || hasParentProps || hasFunctionInProps.length;
22099
+ if (props5)
22100
+ (0, import_props.updateProps)(props5, element, parent);
21998
22101
  }
21999
22102
  if (!options.preventBeforeUpdateListener && !options.preventListeners) {
22000
22103
  const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
@@ -22233,6 +22336,8 @@ var require_set2 = __commonJS({
22233
22336
  lookup: import__.lookup,
22234
22337
  lookdown: import__.lookdown,
22235
22338
  lookdownAll: import__.lookdownAll,
22339
+ getRef: import__.getRef,
22340
+ getPath: import__.getPath,
22236
22341
  setNodeStyles: import__.setNodeStyles,
22237
22342
  spotByPath: import__.spotByPath,
22238
22343
  parse: import__.parse,
@@ -22549,6 +22654,7 @@ var require_create4 = __commonJS({
22549
22654
  if (!element.props)
22550
22655
  element.props = {};
22551
22656
  (0, import_component.applyVariant)(element, parent);
22657
+ addElementIntoParentChildren(element, parent);
22552
22658
  }
22553
22659
  if (element.tag !== "string" && element.tag !== "fragment") {
22554
22660
  (0, import_iterate.throughInitialDefine)(element);
@@ -22577,13 +22683,13 @@ var require_create4 = __commonJS({
22577
22683
  };
22578
22684
  var checkIfMedia = (key) => key.slice(0, 1) === "@";
22579
22685
  var applyMediaProps2 = (element, parent, key) => {
22580
- const { props: props2 } = element;
22581
- if (props2) {
22582
- props2.display = "none";
22583
- if (props2[key])
22584
- props2[key].display = props2.display;
22686
+ const { props: props5 } = element;
22687
+ if (props5) {
22688
+ props5.display = "none";
22689
+ if (props5[key])
22690
+ props5[key].display = props5.display;
22585
22691
  else
22586
- props2[key] = { display: props2.display || "block" };
22692
+ props5[key] = { display: props5.display || "block" };
22587
22693
  return element;
22588
22694
  } else {
22589
22695
  return {
@@ -23857,6 +23963,8 @@ var init_websocket = __esm({
23857
23963
  }
23858
23964
  doClose() {
23859
23965
  if (typeof this.ws !== "undefined") {
23966
+ this.ws.onerror = () => {
23967
+ };
23860
23968
  this.ws.close();
23861
23969
  this.ws = null;
23862
23970
  }
@@ -27759,13 +27867,13 @@ var require_object3 = __commonJS({
27759
27867
  }
27760
27868
  return true;
27761
27869
  };
27762
- var removeFromObject = (obj, props2) => {
27763
- if (props2 === void 0 || props2 === null)
27870
+ var removeFromObject = (obj, props5) => {
27871
+ if (props5 === void 0 || props5 === null)
27764
27872
  return obj;
27765
- if ((0, import_types.is)(props2)("string", "number")) {
27766
- delete obj[props2];
27767
- } else if ((0, import_types.isArray)(props2)) {
27768
- props2.forEach((prop) => delete obj[prop]);
27873
+ if ((0, import_types.is)(props5)("string", "number")) {
27874
+ delete obj[props5];
27875
+ } else if ((0, import_types.isArray)(props5)) {
27876
+ props5.forEach((prop) => delete obj[prop]);
27769
27877
  } else {
27770
27878
  throw new Error("Invalid input: props must be a string or an array of strings");
27771
27879
  }
@@ -28350,11 +28458,11 @@ var init_Utility2 = __esm({
28350
28458
  });
28351
28459
 
28352
28460
  // ../../../node_modules/stylis/src/Tokenizer.js
28353
- function node2(value2, root, parent, type, props2, children, length3) {
28354
- return { value: value2, root, parent, type, props: props2, children, line: line2, column: column2, length: length3, return: "" };
28461
+ function node2(value2, root, parent, type, props5, children, length3) {
28462
+ return { value: value2, root, parent, type, props: props5, children, line: line2, column: column2, length: length3, return: "" };
28355
28463
  }
28356
- function copy2(root, props2) {
28357
- return assign2(node2("", null, null, "", null, null, 0), root, { length: -root.length }, props2);
28464
+ function copy2(root, props5) {
28465
+ return assign2(node2("", null, null, "", null, null, 0), root, { length: -root.length }, props5);
28358
28466
  }
28359
28467
  function char2() {
28360
28468
  return character2;
@@ -28497,7 +28605,7 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
28497
28605
  var ampersand = 1;
28498
28606
  var character3 = 0;
28499
28607
  var type = "";
28500
- var props2 = rules;
28608
+ var props5 = rules;
28501
28609
  var children = rulesets;
28502
28610
  var reference = rule;
28503
28611
  var characters3 = type;
@@ -28551,17 +28659,17 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
28551
28659
  case 59:
28552
28660
  characters3 += ";";
28553
28661
  default:
28554
- append2(reference = ruleset2(characters3, root, parent, index, offset, rules, points, type, props2 = [], children = [], length3), rulesets);
28662
+ append2(reference = ruleset2(characters3, root, parent, index, offset, rules, points, type, props5 = [], children = [], length3), rulesets);
28555
28663
  if (character3 === 123)
28556
28664
  if (offset === 0)
28557
- parse3(characters3, root, reference, reference, props2, rulesets, length3, points, children);
28665
+ parse3(characters3, root, reference, reference, props5, rulesets, length3, points, children);
28558
28666
  else
28559
28667
  switch (atrule === 99 && charat2(characters3, 3) === 110 ? 100 : atrule) {
28560
28668
  case 100:
28561
28669
  case 108:
28562
28670
  case 109:
28563
28671
  case 115:
28564
- parse3(value2, reference, reference, rule && append2(ruleset2(value2, reference, reference, 0, 0, rules, points, type, rules, props2 = [], length3), children), rules, children, length3, points, rule ? props2 : children);
28672
+ parse3(value2, reference, reference, rule && append2(ruleset2(value2, reference, reference, 0, 0, rules, points, type, rules, props5 = [], length3), children), rules, children, length3, points, rule ? props5 : children);
28565
28673
  break;
28566
28674
  default:
28567
28675
  parse3(characters3, reference, reference, reference, [""], children, 0, points, children);
@@ -28597,15 +28705,15 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
28597
28705
  }
28598
28706
  return rulesets;
28599
28707
  }
28600
- function ruleset2(value2, root, parent, index, offset, rules, points, type, props2, children, length3) {
28708
+ function ruleset2(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
28601
28709
  var post = offset - 1;
28602
28710
  var rule = offset === 0 ? rules : [""];
28603
28711
  var size = sizeof2(rule);
28604
28712
  for (var i = 0, j = 0, k = 0; i < index; ++i)
28605
28713
  for (var x = 0, y = substr2(value2, post + 1, post = abs2(j = points[i])), z = value2; x < size; ++x)
28606
28714
  if (z = trim2(j > 0 ? rule[x] + " " + y : replace2(y, /&\f/g, rule[x])))
28607
- props2[k++] = z;
28608
- return node2(value2, root, parent, offset === 0 ? RULESET2 : type, props2, children, length3);
28715
+ props5[k++] = z;
28716
+ return node2(value2, root, parent, offset === 0 ? RULESET2 : type, props5, children, length3);
28609
28717
  }
28610
28718
  function comment2(value2, root, parent) {
28611
28719
  return node2(value2, root, parent, COMMENT2, from2(char2()), substr2(value2, 2, -2), 0);