@symbo.ls/scratch 2.11.360 → 2.11.373

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.
@@ -205,32 +205,32 @@ var require_types = __commonJS({
205
205
  __export2(types_exports, {
206
206
  TYPES: () => TYPES,
207
207
  is: () => is,
208
- isArray: () => isArray3,
208
+ isArray: () => isArray,
209
209
  isBoolean: () => isBoolean,
210
210
  isDate: () => isDate,
211
211
  isDefined: () => isDefined2,
212
212
  isFunction: () => isFunction,
213
213
  isNot: () => isNot,
214
214
  isNull: () => isNull,
215
- isNumber: () => isNumber2,
216
- isObject: () => isObject4,
215
+ isNumber: () => isNumber,
216
+ isObject: () => isObject2,
217
217
  isObjectLike: () => isObjectLike2,
218
- isString: () => isString3,
218
+ isString: () => isString2,
219
219
  isUndefined: () => isUndefined
220
220
  });
221
221
  module2.exports = __toCommonJS2(types_exports);
222
222
  var import_node = require_node();
223
- var isObject4 = (arg) => {
223
+ var isObject2 = (arg) => {
224
224
  if (arg === null)
225
225
  return false;
226
226
  return typeof arg === "object" && arg.constructor === Object;
227
227
  };
228
- var isString3 = (arg) => typeof arg === "string";
229
- var isNumber2 = (arg) => typeof arg === "number";
228
+ var isString2 = (arg) => typeof arg === "string";
229
+ var isNumber = (arg) => typeof arg === "number";
230
230
  var isFunction = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray3 = (arg) => Array.isArray(arg);
233
+ var isArray = (arg) => Array.isArray(arg);
234
234
  var isDate = (d) => d instanceof Date;
235
235
  var isObjectLike2 = (arg) => {
236
236
  if (arg === null)
@@ -238,18 +238,18 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject4(arg) || isObjectLike2(arg) || isString3(arg) || isNumber2(arg) || isFunction(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject2(arg) || isObjectLike2(arg) || isString2(arg) || isNumber(arg) || isFunction(arg) || isArray(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
245
245
  };
246
246
  var TYPES = {
247
247
  boolean: isBoolean,
248
- array: isArray3,
249
- object: isObject4,
250
- string: isString3,
248
+ array: isArray,
249
+ object: isObject2,
250
+ string: isString2,
251
251
  date: isDate,
252
- number: isNumber2,
252
+ number: isNumber,
253
253
  null: isNull,
254
254
  function: isFunction,
255
255
  objectLike: isObjectLike2,
@@ -297,6 +297,7 @@ var require_array = __commonJS({
297
297
  createNestedObject: () => createNestedObject,
298
298
  cutArrayAfterValue: () => cutArrayAfterValue,
299
299
  cutArrayBeforeValue: () => cutArrayBeforeValue,
300
+ getFrequencyInArray: () => getFrequencyInArray,
300
301
  joinArrays: () => joinArrays,
301
302
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
302
303
  mergeArray: () => mergeArray,
@@ -311,6 +312,11 @@ var require_array = __commonJS({
311
312
  var arrayContainsOtherArray = (arr1, arr2) => {
312
313
  return arr2.every((val) => arr1.includes(val));
313
314
  };
315
+ var getFrequencyInArray = (arr, value) => {
316
+ return arr.reduce((count, currentValue) => {
317
+ return currentValue === value ? count + 1 : count;
318
+ }, 0);
319
+ };
314
320
  var removeFromArray = (arr, index) => {
315
321
  if ((0, import_types.isString)(index))
316
322
  index = parseInt(index);
@@ -377,7 +383,7 @@ var require_array = __commonJS({
377
383
  newArray.splice(index, 1);
378
384
  return newArray;
379
385
  }
380
- return arr.slice();
386
+ return arr;
381
387
  };
382
388
  var removeValueFromArrayAll = (arr, value) => {
383
389
  return arr.filter((item) => item !== value);
@@ -725,7 +731,7 @@ var require_object = __commonJS({
725
731
  continue;
726
732
  const objProp = obj[prop];
727
733
  if ((0, import_types.isString)(objProp)) {
728
- if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
734
+ if ((objProp.includes("=>") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) {
729
735
  try {
730
736
  const evalProp = import_globals.window.eval(`(${objProp})`);
731
737
  destringified[prop] = evalProp;
@@ -765,11 +771,11 @@ var require_object = __commonJS({
765
771
  }
766
772
  return destringified;
767
773
  };
768
- var stringToObject = (str, verbose) => {
774
+ var stringToObject = (str, opts = { verbose: true }) => {
769
775
  try {
770
776
  return import_globals.window.eval("(" + str + ")");
771
777
  } catch (e) {
772
- if (verbose)
778
+ if (opts.verbose)
773
779
  console.warn(e);
774
780
  }
775
781
  };
@@ -1343,6 +1349,1454 @@ var require_cjs = __commonJS({
1343
1349
  }
1344
1350
  });
1345
1351
 
1352
+ // ../utils/dist/cjs/index.js
1353
+ var require_cjs2 = __commonJS({
1354
+ "../utils/dist/cjs/index.js"(exports, module2) {
1355
+ "use strict";
1356
+ var __create2 = Object.create;
1357
+ var __defProp2 = Object.defineProperty;
1358
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1359
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
1360
+ var __getProtoOf2 = Object.getPrototypeOf;
1361
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1362
+ var __commonJS2 = (cb, mod) => function __require() {
1363
+ return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
1364
+ };
1365
+ var __export2 = (target, all) => {
1366
+ for (var name in all)
1367
+ __defProp2(target, name, { get: all[name], enumerable: true });
1368
+ };
1369
+ var __copyProps2 = (to, from, except, desc) => {
1370
+ if (from && typeof from === "object" || typeof from === "function") {
1371
+ for (let key of __getOwnPropNames2(from))
1372
+ if (!__hasOwnProp2.call(to, key) && key !== except)
1373
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1374
+ }
1375
+ return to;
1376
+ };
1377
+ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
1378
+ // If the importer is in node compatibility mode or this is not an ESM
1379
+ // file that has been converted to a CommonJS file using a Babel-
1380
+ // compatible transform (i.e. "__esModule" has not been set), then set
1381
+ // "default" to the CommonJS "module.exports" for node compatibility.
1382
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
1383
+ mod
1384
+ ));
1385
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1386
+ var require_key2 = __commonJS2({
1387
+ "../../node_modules/@domql/utils/dist/cjs/key.js"(exports2, module22) {
1388
+ "use strict";
1389
+ var __defProp22 = Object.defineProperty;
1390
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1391
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1392
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1393
+ var __export22 = (target, all) => {
1394
+ for (var name in all)
1395
+ __defProp22(target, name, { get: all[name], enumerable: true });
1396
+ };
1397
+ var __copyProps22 = (to, from, except, desc) => {
1398
+ if (from && typeof from === "object" || typeof from === "function") {
1399
+ for (let key of __getOwnPropNames22(from))
1400
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1401
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1402
+ }
1403
+ return to;
1404
+ };
1405
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1406
+ var key_exports = {};
1407
+ __export22(key_exports, {
1408
+ createSnapshotId: () => createSnapshotId,
1409
+ generateKey: () => generateKey
1410
+ });
1411
+ module22.exports = __toCommonJS22(key_exports);
1412
+ var generateKey = /* @__PURE__ */ function() {
1413
+ let index = 0;
1414
+ function newId() {
1415
+ index++;
1416
+ return index;
1417
+ }
1418
+ return newId;
1419
+ }();
1420
+ var createSnapshotId = generateKey;
1421
+ }
1422
+ });
1423
+ var require_env2 = __commonJS2({
1424
+ "../../node_modules/@domql/utils/dist/cjs/env.js"(exports2, module22) {
1425
+ "use strict";
1426
+ var __defProp22 = Object.defineProperty;
1427
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1428
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1429
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1430
+ var __export22 = (target, all) => {
1431
+ for (var name in all)
1432
+ __defProp22(target, name, { get: all[name], enumerable: true });
1433
+ };
1434
+ var __copyProps22 = (to, from, except, desc) => {
1435
+ if (from && typeof from === "object" || typeof from === "function") {
1436
+ for (let key of __getOwnPropNames22(from))
1437
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1438
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1439
+ }
1440
+ return to;
1441
+ };
1442
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1443
+ var env_exports = {};
1444
+ __export22(env_exports, {
1445
+ NODE_ENV: () => NODE_ENV,
1446
+ getNev: () => getNev,
1447
+ isDevelopment: () => isDevelopment,
1448
+ isProduction: () => isProduction,
1449
+ isTest: () => isTest
1450
+ });
1451
+ module22.exports = __toCommonJS22(env_exports);
1452
+ var NODE_ENV = "development";
1453
+ var isProduction = (env = NODE_ENV) => env === "production" || env === "prod" || env !== "development" && env !== "dev" && env !== "test";
1454
+ var isTest = (env = NODE_ENV) => env === "test";
1455
+ var isDevelopment = (env = NODE_ENV) => env === "development" || env === "dev";
1456
+ var getNev = (key, env = NODE_ENV) => env[key];
1457
+ }
1458
+ });
1459
+ var require_globals2 = __commonJS2({
1460
+ "../../node_modules/@domql/utils/dist/cjs/globals.js"(exports2, module22) {
1461
+ "use strict";
1462
+ var __defProp22 = Object.defineProperty;
1463
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1464
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1465
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1466
+ var __export22 = (target, all) => {
1467
+ for (var name in all)
1468
+ __defProp22(target, name, { get: all[name], enumerable: true });
1469
+ };
1470
+ var __copyProps22 = (to, from, except, desc) => {
1471
+ if (from && typeof from === "object" || typeof from === "function") {
1472
+ for (let key of __getOwnPropNames22(from))
1473
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1474
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1475
+ }
1476
+ return to;
1477
+ };
1478
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1479
+ var globals_exports = {};
1480
+ __export22(globals_exports, {
1481
+ document: () => document2,
1482
+ global: () => global,
1483
+ self: () => self,
1484
+ window: () => window
1485
+ });
1486
+ module22.exports = __toCommonJS22(globals_exports);
1487
+ var global = globalThis;
1488
+ var self = globalThis;
1489
+ var window = globalThis;
1490
+ var document2 = window.document;
1491
+ }
1492
+ });
1493
+ var require_node2 = __commonJS2({
1494
+ "../../node_modules/@domql/utils/dist/cjs/node.js"(exports2, module22) {
1495
+ "use strict";
1496
+ var __defProp22 = Object.defineProperty;
1497
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1498
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1499
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1500
+ var __export22 = (target, all) => {
1501
+ for (var name in all)
1502
+ __defProp22(target, name, { get: all[name], enumerable: true });
1503
+ };
1504
+ var __copyProps22 = (to, from, except, desc) => {
1505
+ if (from && typeof from === "object" || typeof from === "function") {
1506
+ for (let key of __getOwnPropNames22(from))
1507
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1508
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1509
+ }
1510
+ return to;
1511
+ };
1512
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1513
+ var node_exports = {};
1514
+ __export22(node_exports, {
1515
+ isHtmlElement: () => isHtmlElement,
1516
+ isNode: () => isNode
1517
+ });
1518
+ module22.exports = __toCommonJS22(node_exports);
1519
+ var import_globals = require_globals2();
1520
+ var isNode = (obj) => {
1521
+ return (typeof Node === "object" ? obj instanceof import_globals.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
1522
+ };
1523
+ var isHtmlElement = (obj) => {
1524
+ return (typeof HTMLElement === "object" ? obj instanceof import_globals.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
1525
+ };
1526
+ }
1527
+ });
1528
+ var require_types2 = __commonJS2({
1529
+ "../../node_modules/@domql/utils/dist/cjs/types.js"(exports2, module22) {
1530
+ "use strict";
1531
+ var __defProp22 = Object.defineProperty;
1532
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1533
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1534
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1535
+ var __export22 = (target, all) => {
1536
+ for (var name in all)
1537
+ __defProp22(target, name, { get: all[name], enumerable: true });
1538
+ };
1539
+ var __copyProps22 = (to, from, except, desc) => {
1540
+ if (from && typeof from === "object" || typeof from === "function") {
1541
+ for (let key of __getOwnPropNames22(from))
1542
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1543
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1544
+ }
1545
+ return to;
1546
+ };
1547
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1548
+ var types_exports = {};
1549
+ __export22(types_exports, {
1550
+ TYPES: () => TYPES,
1551
+ is: () => is,
1552
+ isArray: () => isArray3,
1553
+ isBoolean: () => isBoolean,
1554
+ isDate: () => isDate,
1555
+ isDefined: () => isDefined2,
1556
+ isFunction: () => isFunction,
1557
+ isNot: () => isNot,
1558
+ isNull: () => isNull,
1559
+ isNumber: () => isNumber2,
1560
+ isObject: () => isObject3,
1561
+ isObjectLike: () => isObjectLike2,
1562
+ isString: () => isString2,
1563
+ isUndefined: () => isUndefined
1564
+ });
1565
+ module22.exports = __toCommonJS22(types_exports);
1566
+ var import_node = require_node2();
1567
+ var isObject3 = (arg) => {
1568
+ if (arg === null)
1569
+ return false;
1570
+ return typeof arg === "object" && arg.constructor === Object;
1571
+ };
1572
+ var isString2 = (arg) => typeof arg === "string";
1573
+ var isNumber2 = (arg) => typeof arg === "number";
1574
+ var isFunction = (arg) => typeof arg === "function";
1575
+ var isBoolean = (arg) => arg === true || arg === false;
1576
+ var isNull = (arg) => arg === null;
1577
+ var isArray3 = (arg) => Array.isArray(arg);
1578
+ var isDate = (d) => d instanceof Date;
1579
+ var isObjectLike2 = (arg) => {
1580
+ if (arg === null)
1581
+ return false;
1582
+ return typeof arg === "object";
1583
+ };
1584
+ var isDefined2 = (arg) => {
1585
+ return isObject3(arg) || isObjectLike2(arg) || isString2(arg) || isNumber2(arg) || isFunction(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
1586
+ };
1587
+ var isUndefined = (arg) => {
1588
+ return arg === void 0;
1589
+ };
1590
+ var TYPES = {
1591
+ boolean: isBoolean,
1592
+ array: isArray3,
1593
+ object: isObject3,
1594
+ string: isString2,
1595
+ date: isDate,
1596
+ number: isNumber2,
1597
+ null: isNull,
1598
+ function: isFunction,
1599
+ objectLike: isObjectLike2,
1600
+ node: import_node.isNode,
1601
+ htmlElement: import_node.isHtmlElement,
1602
+ defined: isDefined2
1603
+ };
1604
+ var is = (arg) => {
1605
+ return (...args) => {
1606
+ return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
1607
+ };
1608
+ };
1609
+ var isNot = (arg) => {
1610
+ return (...args) => {
1611
+ return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
1612
+ };
1613
+ };
1614
+ }
1615
+ });
1616
+ var require_array2 = __commonJS2({
1617
+ "../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
1618
+ "use strict";
1619
+ var __defProp22 = Object.defineProperty;
1620
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1621
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1622
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1623
+ var __export22 = (target, all) => {
1624
+ for (var name in all)
1625
+ __defProp22(target, name, { get: all[name], enumerable: true });
1626
+ };
1627
+ var __copyProps22 = (to, from, except, desc) => {
1628
+ if (from && typeof from === "object" || typeof from === "function") {
1629
+ for (let key of __getOwnPropNames22(from))
1630
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1631
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1632
+ }
1633
+ return to;
1634
+ };
1635
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1636
+ var array_exports = {};
1637
+ __export22(array_exports, {
1638
+ arrayContainsOtherArray: () => arrayContainsOtherArray,
1639
+ createNestedObject: () => createNestedObject,
1640
+ cutArrayAfterValue: () => cutArrayAfterValue,
1641
+ cutArrayBeforeValue: () => cutArrayBeforeValue,
1642
+ getFrequencyInArray: () => getFrequencyInArray,
1643
+ joinArrays: () => joinArrays,
1644
+ mergeAndCloneIfArray: () => mergeAndCloneIfArray,
1645
+ mergeArray: () => mergeArray,
1646
+ removeFromArray: () => removeFromArray,
1647
+ removeValueFromArray: () => removeValueFromArray,
1648
+ removeValueFromArrayAll: () => removeValueFromArrayAll,
1649
+ swapItemsInArray: () => swapItemsInArray
1650
+ });
1651
+ module22.exports = __toCommonJS22(array_exports);
1652
+ var import_object = require_object2();
1653
+ var import_types = require_types2();
1654
+ var arrayContainsOtherArray = (arr1, arr2) => {
1655
+ return arr2.every((val) => arr1.includes(val));
1656
+ };
1657
+ var getFrequencyInArray = (arr, value) => {
1658
+ return arr.reduce((count, currentValue) => {
1659
+ return currentValue === value ? count + 1 : count;
1660
+ }, 0);
1661
+ };
1662
+ var removeFromArray = (arr, index) => {
1663
+ if ((0, import_types.isString)(index))
1664
+ index = parseInt(index);
1665
+ if ((0, import_types.isNumber)(index)) {
1666
+ if (index < 0 || index >= arr.length || isNaN(index)) {
1667
+ throw new Error("Invalid index");
1668
+ }
1669
+ arr.splice(index, 1);
1670
+ } else if ((0, import_types.isArray)(index)) {
1671
+ index.forEach((idx) => removeFromArray(arr, idx));
1672
+ } else {
1673
+ throw new Error("Invalid index");
1674
+ }
1675
+ return arr;
1676
+ };
1677
+ var swapItemsInArray = (arr, i, j) => {
1678
+ [arr[i], arr[j]] = [arr[j], arr[i]];
1679
+ };
1680
+ var joinArrays = (...arrays) => {
1681
+ return [].concat(...arrays);
1682
+ };
1683
+ var mergeArray = (arr, excludeFrom = []) => {
1684
+ return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
1685
+ };
1686
+ var mergeAndCloneIfArray = (obj) => {
1687
+ return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
1688
+ };
1689
+ var cutArrayBeforeValue = (arr, value) => {
1690
+ const index = arr.indexOf(value);
1691
+ if (index !== -1) {
1692
+ return arr.slice(0, index);
1693
+ }
1694
+ return arr;
1695
+ };
1696
+ var cutArrayAfterValue = (arr, value) => {
1697
+ if (!(0, import_types.isArray)(arr))
1698
+ return;
1699
+ const index = arr.indexOf(value);
1700
+ if (index !== -1) {
1701
+ return arr.slice(index + 1);
1702
+ }
1703
+ return arr;
1704
+ };
1705
+ var createNestedObject = (arr, lastValue) => {
1706
+ const nestedObject = {};
1707
+ if (arr.length === 0) {
1708
+ return lastValue;
1709
+ }
1710
+ arr.reduce((obj, value, index) => {
1711
+ if (!obj[value]) {
1712
+ obj[value] = {};
1713
+ }
1714
+ if (index === arr.length - 1 && lastValue) {
1715
+ obj[value] = lastValue;
1716
+ }
1717
+ return obj[value];
1718
+ }, nestedObject);
1719
+ return nestedObject;
1720
+ };
1721
+ var removeValueFromArray = (arr, value) => {
1722
+ const index = arr.indexOf(value);
1723
+ if (index > -1) {
1724
+ const newArray = [...arr];
1725
+ newArray.splice(index, 1);
1726
+ return newArray;
1727
+ }
1728
+ return arr;
1729
+ };
1730
+ var removeValueFromArrayAll = (arr, value) => {
1731
+ return arr.filter((item) => item !== value);
1732
+ };
1733
+ }
1734
+ });
1735
+ var require_string2 = __commonJS2({
1736
+ "../../node_modules/@domql/utils/dist/cjs/string.js"(exports2, module22) {
1737
+ "use strict";
1738
+ var __defProp22 = Object.defineProperty;
1739
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1740
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1741
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1742
+ var __export22 = (target, all) => {
1743
+ for (var name in all)
1744
+ __defProp22(target, name, { get: all[name], enumerable: true });
1745
+ };
1746
+ var __copyProps22 = (to, from, except, desc) => {
1747
+ if (from && typeof from === "object" || typeof from === "function") {
1748
+ for (let key of __getOwnPropNames22(from))
1749
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1750
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1751
+ }
1752
+ return to;
1753
+ };
1754
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1755
+ var string_exports = {};
1756
+ __export22(string_exports, {
1757
+ lowercaseFirstLetter: () => lowercaseFirstLetter,
1758
+ replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
1759
+ stringIncludesAny: () => stringIncludesAny,
1760
+ trimStringFromSymbols: () => trimStringFromSymbols
1761
+ });
1762
+ module22.exports = __toCommonJS22(string_exports);
1763
+ var stringIncludesAny = (str, characters) => {
1764
+ for (const char of characters) {
1765
+ if (str.includes(char)) {
1766
+ return true;
1767
+ }
1768
+ }
1769
+ return false;
1770
+ };
1771
+ var trimStringFromSymbols = (str, characters) => {
1772
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
1773
+ return str.replace(pattern, "");
1774
+ };
1775
+ var brackRegex = {
1776
+ 2: /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g,
1777
+ 3: /\{\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}\}/g
1778
+ };
1779
+ var replaceLiteralsWithObjectFields = (str, state, options = {}) => {
1780
+ if (!str.includes(options.bracketsLength === 3 ? "{{{" : "{{"))
1781
+ return str;
1782
+ const reg = brackRegex[options.bracketsLength || 2];
1783
+ return str.replace(reg, (_, parentPath, variable) => {
1784
+ if (parentPath) {
1785
+ const parentLevels = parentPath.match(options.bracketsLength === 3 ? /\.\.\.\//g : /\.\.\//g).length;
1786
+ let parentState = state;
1787
+ for (let i = 0; i < parentLevels; i++) {
1788
+ parentState = parentState.parent;
1789
+ if (!parentState) {
1790
+ return "";
1791
+ }
1792
+ }
1793
+ const value = parentState[variable.trim()];
1794
+ return value !== void 0 ? `${value}` : "";
1795
+ } else {
1796
+ const value = state[variable.trim()];
1797
+ return value !== void 0 ? `${value}` : "";
1798
+ }
1799
+ });
1800
+ };
1801
+ var lowercaseFirstLetter = (inputString) => {
1802
+ return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
1803
+ };
1804
+ }
1805
+ });
1806
+ var require_object2 = __commonJS2({
1807
+ "../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
1808
+ "use strict";
1809
+ var __defProp22 = Object.defineProperty;
1810
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
1811
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
1812
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
1813
+ var __export22 = (target, all) => {
1814
+ for (var name in all)
1815
+ __defProp22(target, name, { get: all[name], enumerable: true });
1816
+ };
1817
+ var __copyProps22 = (to, from, except, desc) => {
1818
+ if (from && typeof from === "object" || typeof from === "function") {
1819
+ for (let key of __getOwnPropNames22(from))
1820
+ if (!__hasOwnProp22.call(to, key) && key !== except)
1821
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
1822
+ }
1823
+ return to;
1824
+ };
1825
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
1826
+ var object_exports = {};
1827
+ __export22(object_exports, {
1828
+ clone: () => clone,
1829
+ deepClone: () => deepClone2,
1830
+ deepCloneExclude: () => deepCloneExclude,
1831
+ deepCloneWithExtend: () => deepCloneWithExtend,
1832
+ deepContains: () => deepContains,
1833
+ deepDestringify: () => deepDestringify,
1834
+ deepDiff: () => deepDiff,
1835
+ deepMerge: () => deepMerge2,
1836
+ deepStringify: () => deepStringify,
1837
+ detachFunctionsFromObject: () => detachFunctionsFromObject,
1838
+ diff: () => diff,
1839
+ diffArrays: () => diffArrays,
1840
+ diffObjects: () => diffObjects,
1841
+ exec: () => exec,
1842
+ flattenRecursive: () => flattenRecursive,
1843
+ hasOwnProperty: () => hasOwnProperty,
1844
+ isEmpty: () => isEmpty,
1845
+ isEmptyObject: () => isEmptyObject,
1846
+ isEqualDeep: () => isEqualDeep,
1847
+ makeObjectWithoutPrototype: () => makeObjectWithoutPrototype,
1848
+ map: () => map,
1849
+ merge: () => merge,
1850
+ mergeArrayExclude: () => mergeArrayExclude,
1851
+ mergeIfExisted: () => mergeIfExisted,
1852
+ objectToString: () => objectToString,
1853
+ overwrite: () => overwrite,
1854
+ overwriteDeep: () => overwriteDeep,
1855
+ overwriteShallow: () => overwriteShallow,
1856
+ removeFromObject: () => removeFromObject,
1857
+ stringToObject: () => stringToObject
1858
+ });
1859
+ module22.exports = __toCommonJS22(object_exports);
1860
+ var import_globals = require_globals2();
1861
+ var import_types = require_types2();
1862
+ var import_array = require_array2();
1863
+ var import_string = require_string2();
1864
+ var exec = (param, element, state, context) => {
1865
+ if ((0, import_types.isFunction)(param)) {
1866
+ return param(
1867
+ element,
1868
+ state || element.state,
1869
+ context || element.context
1870
+ );
1871
+ }
1872
+ return param;
1873
+ };
1874
+ var map = (obj, extention, element) => {
1875
+ for (const e in extention) {
1876
+ obj[e] = exec(extention[e], element);
1877
+ }
1878
+ };
1879
+ var merge = (element, obj, excludeFrom = []) => {
1880
+ for (const e in obj) {
1881
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, e);
1882
+ if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
1883
+ continue;
1884
+ const elementProp = element[e];
1885
+ const objProp = obj[e];
1886
+ if (elementProp === void 0) {
1887
+ element[e] = objProp;
1888
+ }
1889
+ }
1890
+ return element;
1891
+ };
1892
+ var deepMerge2 = (element, extend, excludeFrom = []) => {
1893
+ for (const e in extend) {
1894
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
1895
+ if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
1896
+ continue;
1897
+ const elementProp = element[e];
1898
+ const extendProp = extend[e];
1899
+ if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
1900
+ deepMerge2(elementProp, extendProp, excludeFrom);
1901
+ } else if (elementProp === void 0) {
1902
+ element[e] = extendProp;
1903
+ }
1904
+ }
1905
+ return element;
1906
+ };
1907
+ var clone = (obj, excludeFrom = []) => {
1908
+ const o = {};
1909
+ for (const prop in obj) {
1910
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
1911
+ if (!hasOwnProperty2 || excludeFrom.includes(prop) || prop.startsWith("__"))
1912
+ continue;
1913
+ o[prop] = obj[prop];
1914
+ }
1915
+ return o;
1916
+ };
1917
+ var deepCloneExclude = (obj, excludeFrom = []) => {
1918
+ if ((0, import_types.isArray)(obj)) {
1919
+ return obj.map((x) => deepCloneExclude(x, excludeFrom));
1920
+ }
1921
+ const o = {};
1922
+ for (const k in obj) {
1923
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, k);
1924
+ if (!hasOwnProperty2 || excludeFrom.includes(k) || k.startsWith("__"))
1925
+ continue;
1926
+ let v = obj[k];
1927
+ if (k === "extend" && (0, import_types.isArray)(v)) {
1928
+ v = mergeArrayExclude(v, excludeFrom);
1929
+ }
1930
+ if ((0, import_types.isArray)(v)) {
1931
+ o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
1932
+ } else if ((0, import_types.isObject)(v)) {
1933
+ o[k] = deepCloneExclude(v, excludeFrom);
1934
+ } else
1935
+ o[k] = v;
1936
+ }
1937
+ return o;
1938
+ };
1939
+ var mergeArrayExclude = (arr, excl = []) => {
1940
+ return arr.reduce((acc, curr) => deepMerge2(acc, deepCloneExclude(curr, excl)), {});
1941
+ };
1942
+ var deepClone2 = (obj, excludeFrom = [], cleanUndefined = false) => {
1943
+ const o = (0, import_types.isArray)(obj) ? [] : {};
1944
+ for (const prop in obj) {
1945
+ if (!Object.prototype.hasOwnProperty.call(obj, prop))
1946
+ continue;
1947
+ if (prop === "__proto__")
1948
+ continue;
1949
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
1950
+ continue;
1951
+ let objProp = obj[prop];
1952
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
1953
+ continue;
1954
+ if (prop === "extend" && (0, import_types.isArray)(objProp)) {
1955
+ objProp = (0, import_array.mergeArray)(objProp);
1956
+ }
1957
+ if ((0, import_types.isObjectLike)(objProp)) {
1958
+ o[prop] = deepClone2(objProp, excludeFrom, cleanUndefined);
1959
+ } else
1960
+ o[prop] = objProp;
1961
+ }
1962
+ return o;
1963
+ };
1964
+ var deepCloneWithExtend = (obj, excludeFrom = ["node"], options = {}) => {
1965
+ const o = (0, import_types.isArray)(obj) ? [] : {};
1966
+ for (const prop in obj) {
1967
+ if (!Object.prototype.hasOwnProperty.call(obj, prop))
1968
+ continue;
1969
+ const objProp = obj[prop];
1970
+ if (excludeFrom.includes(prop) || prop.startsWith("__") || options.cleanUndefined && (0, import_types.isUndefined)(objProp) || options.cleanNull && (0, import_types.isNull)(objProp))
1971
+ continue;
1972
+ if ((0, import_types.isObjectLike)(objProp)) {
1973
+ o[prop] = deepCloneWithExtend(objProp, excludeFrom, options);
1974
+ } else
1975
+ o[prop] = objProp;
1976
+ }
1977
+ return o;
1978
+ };
1979
+ var deepStringify = (obj, stringified = {}) => {
1980
+ for (const prop in obj) {
1981
+ const objProp = obj[prop];
1982
+ if ((0, import_types.isFunction)(objProp)) {
1983
+ stringified[prop] = objProp.toString();
1984
+ } else if ((0, import_types.isObject)(objProp)) {
1985
+ stringified[prop] = {};
1986
+ deepStringify(objProp, stringified[prop]);
1987
+ } else if ((0, import_types.isArray)(objProp)) {
1988
+ stringified[prop] = [];
1989
+ objProp.forEach((v, i) => {
1990
+ if ((0, import_types.isObject)(v)) {
1991
+ stringified[prop][i] = {};
1992
+ deepStringify(v, stringified[prop][i]);
1993
+ } else if ((0, import_types.isFunction)(v)) {
1994
+ stringified[prop][i] = v.toString();
1995
+ } else {
1996
+ stringified[prop][i] = v;
1997
+ }
1998
+ });
1999
+ } else {
2000
+ stringified[prop] = objProp;
2001
+ }
2002
+ }
2003
+ return stringified;
2004
+ };
2005
+ var objectToString = (obj, indent = 0) => {
2006
+ const spaces = " ".repeat(indent);
2007
+ let str = "{\n";
2008
+ for (const [key, value] of Object.entries(obj)) {
2009
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
2010
+ const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
2011
+ str += `${spaces} ${stringedKey}: `;
2012
+ if ((0, import_types.isArray)(value)) {
2013
+ str += "[\n";
2014
+ for (const element of value) {
2015
+ if ((0, import_types.isObject)(element) && element !== null) {
2016
+ str += `${spaces} ${objectToString(element, indent + 2)},
2017
+ `;
2018
+ } else if ((0, import_types.isString)(element)) {
2019
+ str += `${spaces} '${element}',
2020
+ `;
2021
+ } else {
2022
+ str += `${spaces} ${element},
2023
+ `;
2024
+ }
2025
+ }
2026
+ str += `${spaces} ]`;
2027
+ } else if ((0, import_types.isObjectLike)(value)) {
2028
+ str += objectToString(value, indent + 1);
2029
+ } else if ((0, import_types.isString)(value)) {
2030
+ str += (0, import_string.stringIncludesAny)(value, ["\n", "'"]) ? `\`${value}\`` : `'${value}'`;
2031
+ } else {
2032
+ str += value;
2033
+ }
2034
+ str += ",\n";
2035
+ }
2036
+ str += `${spaces}}`;
2037
+ return str;
2038
+ };
2039
+ var detachFunctionsFromObject = (obj, detached = {}) => {
2040
+ for (const prop in obj) {
2041
+ const objProp = obj[prop];
2042
+ if ((0, import_types.isFunction)(objProp))
2043
+ continue;
2044
+ else if ((0, import_types.isObject)(objProp)) {
2045
+ detached[prop] = {};
2046
+ deepStringify(objProp, detached[prop]);
2047
+ } else if ((0, import_types.isArray)(objProp)) {
2048
+ detached[prop] = [];
2049
+ objProp.forEach((v, i) => {
2050
+ if ((0, import_types.isFunction)(v))
2051
+ return;
2052
+ if ((0, import_types.isObject)(v)) {
2053
+ detached[prop][i] = {};
2054
+ detachFunctionsFromObject(v, detached[prop][i]);
2055
+ } else {
2056
+ detached[prop][i] = v;
2057
+ }
2058
+ });
2059
+ } else {
2060
+ detached[prop] = objProp;
2061
+ }
2062
+ }
2063
+ return detached;
2064
+ };
2065
+ var deepDestringify = (obj, destringified = {}) => {
2066
+ for (const prop in obj) {
2067
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
2068
+ if (!hasOwnProperty2)
2069
+ continue;
2070
+ const objProp = obj[prop];
2071
+ if ((0, import_types.isString)(objProp)) {
2072
+ if ((objProp.includes("=>") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) {
2073
+ try {
2074
+ const evalProp = import_globals.window.eval(`(${objProp})`);
2075
+ destringified[prop] = evalProp;
2076
+ } catch (e) {
2077
+ if (e)
2078
+ destringified[prop] = objProp;
2079
+ }
2080
+ } else {
2081
+ destringified[prop] = objProp;
2082
+ }
2083
+ } else if ((0, import_types.isArray)(objProp)) {
2084
+ destringified[prop] = [];
2085
+ objProp.forEach((arrProp) => {
2086
+ if ((0, import_types.isString)(arrProp)) {
2087
+ if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
2088
+ try {
2089
+ const evalProp = import_globals.window.eval(`(${arrProp})`);
2090
+ destringified[prop].push(evalProp);
2091
+ } catch (e) {
2092
+ if (e)
2093
+ destringified[prop].push(arrProp);
2094
+ }
2095
+ } else {
2096
+ destringified[prop].push(arrProp);
2097
+ }
2098
+ } else if ((0, import_types.isObject)(arrProp)) {
2099
+ destringified[prop].push(deepDestringify(arrProp));
2100
+ } else {
2101
+ destringified[prop].push(arrProp);
2102
+ }
2103
+ });
2104
+ } else if ((0, import_types.isObject)(objProp)) {
2105
+ destringified[prop] = deepDestringify(objProp, destringified[prop]);
2106
+ } else {
2107
+ destringified[prop] = objProp;
2108
+ }
2109
+ }
2110
+ return destringified;
2111
+ };
2112
+ var stringToObject = (str, opts = { verbose: true }) => {
2113
+ try {
2114
+ return import_globals.window.eval("(" + str + ")");
2115
+ } catch (e) {
2116
+ if (opts.verbose)
2117
+ console.warn(e);
2118
+ }
2119
+ };
2120
+ var diffObjects = (original, objToDiff, cache) => {
2121
+ for (const e in objToDiff) {
2122
+ if (e === "ref")
2123
+ continue;
2124
+ const originalProp = original[e];
2125
+ const objToDiffProp = objToDiff[e];
2126
+ if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
2127
+ cache[e] = {};
2128
+ diff(originalProp, objToDiffProp, cache[e]);
2129
+ } else if (objToDiffProp !== void 0) {
2130
+ cache[e] = objToDiffProp;
2131
+ }
2132
+ }
2133
+ return cache;
2134
+ };
2135
+ var diffArrays = (original, objToDiff, cache) => {
2136
+ if (original.length !== objToDiff.length) {
2137
+ cache = objToDiff;
2138
+ } else {
2139
+ const diffArr = [];
2140
+ for (let i = 0; i < original.length; i++) {
2141
+ const diffObj = diff(original[i], objToDiff[i]);
2142
+ if (Object.keys(diffObj).length > 0) {
2143
+ diffArr.push(diffObj);
2144
+ }
2145
+ }
2146
+ if (diffArr.length > 0) {
2147
+ cache = diffArr;
2148
+ }
2149
+ }
2150
+ return cache;
2151
+ };
2152
+ var diff = (original, objToDiff, cache = {}) => {
2153
+ if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
2154
+ cache = [];
2155
+ diffArrays(original, objToDiff, cache);
2156
+ } else {
2157
+ diffObjects(original, objToDiff, cache);
2158
+ }
2159
+ return cache;
2160
+ };
2161
+ var hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
2162
+ var isEmpty = (o) => Object.keys(o).length === 0;
2163
+ var isEmptyObject = (o) => (0, import_types.isObject)(o) && isEmpty(o);
2164
+ var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
2165
+ var deepDiff = (lhs, rhs) => {
2166
+ if (lhs === rhs)
2167
+ return {};
2168
+ if (!(0, import_types.isObjectLike)(lhs) || !(0, import_types.isObjectLike)(rhs))
2169
+ return rhs;
2170
+ const deletedValues = Object.keys(lhs).reduce((acc, key) => {
2171
+ if (!hasOwnProperty(rhs, key)) {
2172
+ acc[key] = void 0;
2173
+ }
2174
+ return acc;
2175
+ }, makeObjectWithoutPrototype());
2176
+ if ((0, import_types.isDate)(lhs) || (0, import_types.isDate)(rhs)) {
2177
+ if (lhs.valueOf() === rhs.valueOf())
2178
+ return {};
2179
+ return rhs;
2180
+ }
2181
+ return Object.keys(rhs).reduce((acc, key) => {
2182
+ if (!hasOwnProperty(lhs, key)) {
2183
+ acc[key] = rhs[key];
2184
+ return acc;
2185
+ }
2186
+ const difference = diff(lhs[key], rhs[key]);
2187
+ if (isEmptyObject(difference) && !(0, import_types.isDate)(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key]))) {
2188
+ return acc;
2189
+ }
2190
+ acc[key] = difference;
2191
+ return acc;
2192
+ }, deletedValues);
2193
+ };
2194
+ var overwrite = (element, params, excludeFrom = []) => {
2195
+ const { ref } = element;
2196
+ const changes = {};
2197
+ for (const e in params) {
2198
+ if (excludeFrom.includes(e) || e.startsWith("__"))
2199
+ continue;
2200
+ const elementProp = element[e];
2201
+ const paramsProp = params[e];
2202
+ if (paramsProp) {
2203
+ ref.__cache[e] = changes[e] = elementProp;
2204
+ ref[e] = paramsProp;
2205
+ }
2206
+ }
2207
+ return changes;
2208
+ };
2209
+ var overwriteShallow = (obj, params, excludeFrom = []) => {
2210
+ for (const e in params) {
2211
+ if (excludeFrom.includes(e) || e.startsWith("__"))
2212
+ continue;
2213
+ obj[e] = params[e];
2214
+ }
2215
+ return obj;
2216
+ };
2217
+ var overwriteDeep = (obj, params, excludeFrom = []) => {
2218
+ for (const e in params) {
2219
+ if (e === "__proto__")
2220
+ continue;
2221
+ if (excludeFrom.includes(e) || e.startsWith("__"))
2222
+ continue;
2223
+ const objProp = obj[e];
2224
+ const paramsProp = params[e];
2225
+ if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
2226
+ overwriteDeep(objProp, paramsProp);
2227
+ } else if (paramsProp !== void 0) {
2228
+ obj[e] = paramsProp;
2229
+ }
2230
+ }
2231
+ return obj;
2232
+ };
2233
+ var mergeIfExisted = (a, b) => {
2234
+ if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
2235
+ return deepMerge2(a, b);
2236
+ return a || b;
2237
+ };
2238
+ var flattenRecursive = (param, prop, stack = []) => {
2239
+ const objectized = (0, import_array.mergeAndCloneIfArray)(param);
2240
+ stack.push(objectized);
2241
+ const extendOfExtend = objectized[prop];
2242
+ if (extendOfExtend)
2243
+ flattenRecursive(extendOfExtend, prop, stack);
2244
+ delete objectized[prop];
2245
+ return stack;
2246
+ };
2247
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
2248
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
2249
+ return param === element;
2250
+ }
2251
+ if (visited.has(param) || visited.has(element)) {
2252
+ return true;
2253
+ }
2254
+ visited.add(param);
2255
+ visited.add(element);
2256
+ const keysParam = Object.keys(param);
2257
+ const keysElement = Object.keys(element);
2258
+ if (keysParam.length !== keysElement.length) {
2259
+ return false;
2260
+ }
2261
+ for (const key of keysParam) {
2262
+ if (!keysElement.includes(key)) {
2263
+ return false;
2264
+ }
2265
+ const paramProp = param[key];
2266
+ const elementProp = element[key];
2267
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
2268
+ return false;
2269
+ }
2270
+ }
2271
+ return true;
2272
+ };
2273
+ var deepContains = (obj1, obj2) => {
2274
+ if (typeof obj1 !== typeof obj2) {
2275
+ return false;
2276
+ }
2277
+ if ((0, import_types.isObjectLike)(obj1)) {
2278
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
2279
+ if (obj1.length !== obj2.length) {
2280
+ return false;
2281
+ }
2282
+ for (let i = 0; i < obj1.length; i++) {
2283
+ if (!deepContains(obj1[i], obj2[i])) {
2284
+ return false;
2285
+ }
2286
+ }
2287
+ } else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
2288
+ for (const key in obj1) {
2289
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj2, key);
2290
+ if (!hasOwnProperty2 || !deepContains(obj1[key], obj2[key])) {
2291
+ return false;
2292
+ }
2293
+ }
2294
+ }
2295
+ } else {
2296
+ return obj2 === obj1;
2297
+ }
2298
+ return true;
2299
+ };
2300
+ var removeFromObject = (obj, props) => {
2301
+ if (props === void 0 || props === null)
2302
+ return obj;
2303
+ if ((0, import_types.is)(props)("string", "number")) {
2304
+ delete obj[props];
2305
+ } else if ((0, import_types.isArray)(props)) {
2306
+ props.forEach((prop) => delete obj[prop]);
2307
+ } else {
2308
+ throw new Error("Invalid input: props must be a string or an array of strings");
2309
+ }
2310
+ return obj;
2311
+ };
2312
+ }
2313
+ });
2314
+ var require_function2 = __commonJS2({
2315
+ "../../node_modules/@domql/utils/dist/cjs/function.js"(exports2, module22) {
2316
+ "use strict";
2317
+ var __defProp22 = Object.defineProperty;
2318
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
2319
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
2320
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
2321
+ var __export22 = (target, all) => {
2322
+ for (var name in all)
2323
+ __defProp22(target, name, { get: all[name], enumerable: true });
2324
+ };
2325
+ var __copyProps22 = (to, from, except, desc) => {
2326
+ if (from && typeof from === "object" || typeof from === "function") {
2327
+ for (let key of __getOwnPropNames22(from))
2328
+ if (!__hasOwnProp22.call(to, key) && key !== except)
2329
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
2330
+ }
2331
+ return to;
2332
+ };
2333
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
2334
+ var function_exports = {};
2335
+ __export22(function_exports, {
2336
+ debounce: () => debounce,
2337
+ debounceOnContext: () => debounceOnContext,
2338
+ isStringFunction: () => isStringFunction,
2339
+ memoize: () => memoize
2340
+ });
2341
+ module22.exports = __toCommonJS22(function_exports);
2342
+ function debounce(func, wait, immediate) {
2343
+ let timeout;
2344
+ return function() {
2345
+ const context = this;
2346
+ const args = arguments;
2347
+ const later = function() {
2348
+ timeout = null;
2349
+ if (!immediate)
2350
+ func.apply(context, args);
2351
+ };
2352
+ const callNow = immediate && !timeout;
2353
+ clearTimeout(timeout);
2354
+ timeout = setTimeout(later, wait);
2355
+ if (callNow)
2356
+ func.apply(context, args);
2357
+ };
2358
+ }
2359
+ var debounceOnContext = (element, func, timeout = 300) => {
2360
+ let timer;
2361
+ return (...args) => {
2362
+ clearTimeout(timer);
2363
+ timer = setTimeout(() => {
2364
+ func.apply(element, args);
2365
+ }, timeout);
2366
+ };
2367
+ };
2368
+ var memoize = (fn) => {
2369
+ const cache = {};
2370
+ return (...args) => {
2371
+ const n = args[0];
2372
+ if (n in cache) {
2373
+ return cache[n];
2374
+ } else {
2375
+ const result = fn(n);
2376
+ cache[n] = result;
2377
+ return result;
2378
+ }
2379
+ };
2380
+ };
2381
+ var isStringFunction = (inputString) => {
2382
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
2383
+ return functionRegex.test(inputString);
2384
+ };
2385
+ }
2386
+ });
2387
+ var require_log2 = __commonJS2({
2388
+ "../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
2389
+ "use strict";
2390
+ var __defProp22 = Object.defineProperty;
2391
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
2392
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
2393
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
2394
+ var __export22 = (target, all) => {
2395
+ for (var name in all)
2396
+ __defProp22(target, name, { get: all[name], enumerable: true });
2397
+ };
2398
+ var __copyProps22 = (to, from, except, desc) => {
2399
+ if (from && typeof from === "object" || typeof from === "function") {
2400
+ for (let key of __getOwnPropNames22(from))
2401
+ if (!__hasOwnProp22.call(to, key) && key !== except)
2402
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
2403
+ }
2404
+ return to;
2405
+ };
2406
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
2407
+ var log_exports = {};
2408
+ __export22(log_exports, {
2409
+ logGroupIf: () => logGroupIf,
2410
+ logIf: () => logIf
2411
+ });
2412
+ module22.exports = __toCommonJS22(log_exports);
2413
+ var logIf = (bool, ...arg) => {
2414
+ if (bool)
2415
+ arg.map((v) => console.log(v));
2416
+ };
2417
+ var logGroupIf = (bool, key, ...arg) => {
2418
+ if (bool) {
2419
+ console.group(key);
2420
+ arg.map((v) => console.log(v));
2421
+ console.groupEnd(key);
2422
+ }
2423
+ };
2424
+ }
2425
+ });
2426
+ var require_cookie2 = __commonJS2({
2427
+ "../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports2, module22) {
2428
+ "use strict";
2429
+ var __defProp22 = Object.defineProperty;
2430
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
2431
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
2432
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
2433
+ var __export22 = (target, all) => {
2434
+ for (var name in all)
2435
+ __defProp22(target, name, { get: all[name], enumerable: true });
2436
+ };
2437
+ var __copyProps22 = (to, from, except, desc) => {
2438
+ if (from && typeof from === "object" || typeof from === "function") {
2439
+ for (let key of __getOwnPropNames22(from))
2440
+ if (!__hasOwnProp22.call(to, key) && key !== except)
2441
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
2442
+ }
2443
+ return to;
2444
+ };
2445
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
2446
+ var cookie_exports = {};
2447
+ __export22(cookie_exports, {
2448
+ getCookie: () => getCookie,
2449
+ isMobile: () => isMobile,
2450
+ setCookie: () => setCookie
2451
+ });
2452
+ module22.exports = __toCommonJS22(cookie_exports);
2453
+ var import_types = require_types2();
2454
+ var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
2455
+ var setCookie = (cname, cvalue, exdays = 365) => {
2456
+ if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
2457
+ return;
2458
+ const d = /* @__PURE__ */ new Date();
2459
+ d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
2460
+ const expires = `expires=${d.toUTCString()}`;
2461
+ document.cookie = `${cname}=${cvalue};${expires};path=/`;
2462
+ };
2463
+ var getCookie = (cname) => {
2464
+ if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
2465
+ return;
2466
+ const name = `${cname}=`;
2467
+ const decodedCookie = decodeURIComponent(document.cookie);
2468
+ const ca = decodedCookie.split(";");
2469
+ for (let i = 0; i < ca.length; i++) {
2470
+ let c = ca[i];
2471
+ while (c.charAt(0) === " ")
2472
+ c = c.substring(1);
2473
+ if (c.indexOf(name) === 0)
2474
+ return c.substring(name.length, c.length);
2475
+ }
2476
+ return "";
2477
+ };
2478
+ }
2479
+ });
2480
+ var require_tags2 = __commonJS2({
2481
+ "../../node_modules/@domql/utils/dist/cjs/tags.js"(exports2, module22) {
2482
+ "use strict";
2483
+ var __defProp22 = Object.defineProperty;
2484
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
2485
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
2486
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
2487
+ var __export22 = (target, all) => {
2488
+ for (var name in all)
2489
+ __defProp22(target, name, { get: all[name], enumerable: true });
2490
+ };
2491
+ var __copyProps22 = (to, from, except, desc) => {
2492
+ if (from && typeof from === "object" || typeof from === "function") {
2493
+ for (let key of __getOwnPropNames22(from))
2494
+ if (!__hasOwnProp22.call(to, key) && key !== except)
2495
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
2496
+ }
2497
+ return to;
2498
+ };
2499
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
2500
+ var tags_exports = {};
2501
+ __export22(tags_exports, {
2502
+ HTML_TAGS: () => HTML_TAGS,
2503
+ isValidHtmlTag: () => isValidHtmlTag
2504
+ });
2505
+ module22.exports = __toCommonJS22(tags_exports);
2506
+ var HTML_TAGS = {
2507
+ root: [
2508
+ "body",
2509
+ "html"
2510
+ ],
2511
+ head: [
2512
+ "title",
2513
+ "base",
2514
+ "meta",
2515
+ "style"
2516
+ ],
2517
+ body: [
2518
+ "string",
2519
+ "fragment",
2520
+ "a",
2521
+ "abbr",
2522
+ "acronym",
2523
+ "address",
2524
+ "applet",
2525
+ "area",
2526
+ "article",
2527
+ "aside",
2528
+ "audio",
2529
+ "b",
2530
+ "basefont",
2531
+ "bdi",
2532
+ "bdo",
2533
+ "big",
2534
+ "blockquote",
2535
+ "br",
2536
+ "button",
2537
+ "canvas",
2538
+ "caption",
2539
+ "center",
2540
+ "cite",
2541
+ "code",
2542
+ "search",
2543
+ "col",
2544
+ "colgroup",
2545
+ "data",
2546
+ "datalist",
2547
+ "dd",
2548
+ "del",
2549
+ "details",
2550
+ "dfn",
2551
+ "dialog",
2552
+ "dir",
2553
+ "div",
2554
+ "dl",
2555
+ "dt",
2556
+ "em",
2557
+ "embed",
2558
+ "fieldset",
2559
+ "figcaption",
2560
+ "figure",
2561
+ "font",
2562
+ "footer",
2563
+ "form",
2564
+ "frame",
2565
+ "frameset",
2566
+ "h1",
2567
+ "h2",
2568
+ "h3",
2569
+ "h4",
2570
+ "h5",
2571
+ "h6",
2572
+ "head",
2573
+ "header",
2574
+ "hr",
2575
+ "i",
2576
+ "iframe",
2577
+ "img",
2578
+ "input",
2579
+ "ins",
2580
+ "kbd",
2581
+ "label",
2582
+ "legend",
2583
+ "li",
2584
+ "link",
2585
+ "main",
2586
+ "map",
2587
+ "mark",
2588
+ "meter",
2589
+ "nav",
2590
+ "noframes",
2591
+ "noscript",
2592
+ "object",
2593
+ "ol",
2594
+ "optgroup",
2595
+ "option",
2596
+ "output",
2597
+ "p",
2598
+ "param",
2599
+ "picture",
2600
+ "pre",
2601
+ "progress",
2602
+ "hgroup",
2603
+ "q",
2604
+ "rp",
2605
+ "rt",
2606
+ "ruby",
2607
+ "s",
2608
+ "samp",
2609
+ "script",
2610
+ "section",
2611
+ "select",
2612
+ "small",
2613
+ "source",
2614
+ "span",
2615
+ "strike",
2616
+ "strong",
2617
+ "sub",
2618
+ "summary",
2619
+ "sup",
2620
+ "table",
2621
+ "tbody",
2622
+ "td",
2623
+ "template",
2624
+ "hgroup",
2625
+ "textarea",
2626
+ "tfoot",
2627
+ "th",
2628
+ "thead",
2629
+ "time",
2630
+ "tr",
2631
+ "track",
2632
+ "tt",
2633
+ "u",
2634
+ "ul",
2635
+ "var",
2636
+ "video",
2637
+ "wbr",
2638
+ // SVG
2639
+ "svg",
2640
+ "path"
2641
+ ]
2642
+ };
2643
+ var isValidHtmlTag = (arg) => HTML_TAGS.body.includes(arg);
2644
+ }
2645
+ });
2646
+ var require_cjs3 = __commonJS2({
2647
+ "../../node_modules/@domql/utils/dist/cjs/index.js"(exports2, module22) {
2648
+ "use strict";
2649
+ var __defProp22 = Object.defineProperty;
2650
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
2651
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
2652
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
2653
+ var __copyProps22 = (to, from, except, desc) => {
2654
+ if (from && typeof from === "object" || typeof from === "function") {
2655
+ for (let key of __getOwnPropNames22(from))
2656
+ if (!__hasOwnProp22.call(to, key) && key !== except)
2657
+ __defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
2658
+ }
2659
+ return to;
2660
+ };
2661
+ var __reExport = (target, mod, secondTarget) => (__copyProps22(target, mod, "default"), secondTarget && __copyProps22(secondTarget, mod, "default"));
2662
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
2663
+ var utils_exports = {};
2664
+ module22.exports = __toCommonJS22(utils_exports);
2665
+ __reExport(utils_exports, require_key2(), module22.exports);
2666
+ __reExport(utils_exports, require_env2(), module22.exports);
2667
+ __reExport(utils_exports, require_types2(), module22.exports);
2668
+ __reExport(utils_exports, require_object2(), module22.exports);
2669
+ __reExport(utils_exports, require_function2(), module22.exports);
2670
+ __reExport(utils_exports, require_array2(), module22.exports);
2671
+ __reExport(utils_exports, require_node2(), module22.exports);
2672
+ __reExport(utils_exports, require_log2(), module22.exports);
2673
+ __reExport(utils_exports, require_string2(), module22.exports);
2674
+ __reExport(utils_exports, require_globals2(), module22.exports);
2675
+ __reExport(utils_exports, require_cookie2(), module22.exports);
2676
+ __reExport(utils_exports, require_tags2(), module22.exports);
2677
+ }
2678
+ });
2679
+ var src_exports = {};
2680
+ __export2(src_exports, {
2681
+ arrayzeValue: () => arrayzeValue,
2682
+ copyStringToClipboard: () => copyStringToClipboard,
2683
+ fibonacciNumberByIndex: () => fibonacciNumberByIndex,
2684
+ findClosestNumber: () => findClosestNumber,
2685
+ findClosestNumberInFactory: () => findClosestNumberInFactory,
2686
+ formatDate: () => formatDate,
2687
+ loadJavascriptFile: () => loadJavascriptFile,
2688
+ removeChars: () => removeChars,
2689
+ toCamelCase: () => toCamelCase,
2690
+ toDashCase: () => toDashCase2,
2691
+ toDescriptionCase: () => toDescriptionCase,
2692
+ toTitleCase: () => toTitleCase,
2693
+ toggleFullscreen: () => toggleFullscreen
2694
+ });
2695
+ module2.exports = __toCommonJS2(src_exports);
2696
+ var import_utils22 = __toESM2(require_cjs3(), 1);
2697
+ var toggleFullscreen = (el) => {
2698
+ if (!document.fullscreenElement) {
2699
+ el.node.requestFullscreen().catch((err) => {
2700
+ console.warn(`Error attempting to enable fullscreen mode: ${err.message} (${err.name})`);
2701
+ });
2702
+ } else {
2703
+ document.exitFullscreen();
2704
+ }
2705
+ };
2706
+ var import_utils5 = __toESM2(require_cjs3(), 1);
2707
+ var findClosestNumber = (number, arr) => {
2708
+ return ((0, import_utils5.isArray)(arr) ? arr : Object.values(arr)).reduce((prev, curr) => {
2709
+ return Math.abs(curr - number) < Math.abs(prev - number) ? curr : prev;
2710
+ });
2711
+ };
2712
+ var findClosestNumberInFactory = (val, factory) => {
2713
+ val = parseFloat(val);
2714
+ if ((0, import_utils5.isObject)(factory))
2715
+ factory = Object.values(factory);
2716
+ return findClosestNumber(val, factory);
2717
+ };
2718
+ var formatDate = (timestamp) => {
2719
+ if (!timestamp)
2720
+ return "";
2721
+ const d = new Date(timestamp);
2722
+ const ye = new Intl.DateTimeFormat("en", { year: "numeric" }).format(d);
2723
+ const mo = new Intl.DateTimeFormat("en", { month: "short" }).format(d);
2724
+ const da = new Intl.DateTimeFormat("en", { day: "2-digit" }).format(d);
2725
+ return `${da} ${mo}, ${ye}`;
2726
+ };
2727
+ var fibonacciNumberByIndex = function fibonacciNumberByIndex2(n) {
2728
+ const fib = [0, 1];
2729
+ for (let i = 2; i <= n; i++) {
2730
+ fib[i] = fib[i - 1] + fib[i - 2];
2731
+ }
2732
+ return fib[n];
2733
+ };
2734
+ var loadJavascriptFile = (FILE_URL, async = true, doc = document, type = "text/javascript") => {
2735
+ return new Promise((resolve, reject) => {
2736
+ try {
2737
+ const scriptEle = doc.createElement("script");
2738
+ scriptEle.type = type;
2739
+ scriptEle.async = async;
2740
+ scriptEle.src = FILE_URL;
2741
+ scriptEle.addEventListener("load", (ev) => {
2742
+ resolve({
2743
+ status: true
2744
+ });
2745
+ });
2746
+ scriptEle.addEventListener("error", (ev) => {
2747
+ reject({
2748
+ status: false,
2749
+ message: `Failed to load the script ${FILE_URL}`
2750
+ });
2751
+ });
2752
+ doc.body.appendChild(scriptEle);
2753
+ } catch (error) {
2754
+ reject(error);
2755
+ }
2756
+ });
2757
+ };
2758
+ var copyStringToClipboard = (str) => {
2759
+ const el = document.createElement("textarea");
2760
+ el.value = str;
2761
+ el.setAttribute("readonly", "");
2762
+ el.style = { position: "absolute", left: "-9999px" };
2763
+ document.body.appendChild(el);
2764
+ el.select();
2765
+ document.execCommand("copy");
2766
+ document.body.removeChild(el);
2767
+ };
2768
+ var removeChars = (str) => {
2769
+ return str.replace(/[^a-zA-Z0-9_]/g, "");
2770
+ };
2771
+ var toCamelCase = (str) => {
2772
+ return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
2773
+ return index === 0 ? word.toLowerCase() : word.toUpperCase();
2774
+ }).replaceAll(/\s+/g, "");
2775
+ };
2776
+ var toTitleCase = (str) => str && str.replace(
2777
+ /\w\S*/g,
2778
+ (txt) => {
2779
+ return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
2780
+ }
2781
+ );
2782
+ var toDashCase2 = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
2783
+ var toDescriptionCase = (str = "") => {
2784
+ const result = str.replace(/([A-Z])/g, " $1");
2785
+ return result.charAt(0).toUpperCase() + result.slice(1);
2786
+ };
2787
+ var arrayzeValue = (val) => {
2788
+ if ((0, import_utils22.isArray)(val))
2789
+ return val;
2790
+ if ((0, import_utils22.isString)(val))
2791
+ return val.split(" ");
2792
+ if ((0, import_utils22.isObject)(val))
2793
+ return Object.values(val);
2794
+ if ((0, import_utils22.isNumber)(val))
2795
+ return [val];
2796
+ };
2797
+ }
2798
+ });
2799
+
1346
2800
  // src/utils/var.js
1347
2801
  var var_exports = {};
1348
2802
  __export(var_exports, {
@@ -1352,7 +2806,7 @@ __export(var_exports, {
1352
2806
  setVariables: () => setVariables
1353
2807
  });
1354
2808
  module.exports = __toCommonJS(var_exports);
1355
- var import_utils6 = __toESM(require_cjs(), 1);
2809
+ var import_utils4 = __toESM(require_cjs(), 1);
1356
2810
 
1357
2811
  // src/factory.js
1358
2812
  var import_utils = __toESM(require_cjs(), 1);
@@ -1570,13 +3024,8 @@ var getActiveConfig = (def) => {
1570
3024
  };
1571
3025
 
1572
3026
  // src/utils/sequence.js
1573
- var import_utils4 = __toESM(require_cjs(), 1);
1574
-
1575
- // ../utils/src/index.js
1576
- var import_utils3 = __toESM(require_cjs());
1577
-
1578
- // ../utils/src/scaling.js
1579
- var import_utils2 = __toESM(require_cjs());
3027
+ var import_utils2 = __toESM(require_cjs(), 1);
3028
+ var import_utils3 = __toESM(require_cjs2(), 1);
1580
3029
 
1581
3030
  // src/utils/unit.js
1582
3031
  var isScalingUnit = (unit) => {
@@ -1600,7 +3049,7 @@ var getSubratio = (base, ratio) => {
1600
3049
  var setVariables = (result, key) => {
1601
3050
  const CONFIG2 = getActiveConfig();
1602
3051
  const { CSS_VARS: CSS_VARS2 } = CONFIG2;
1603
- if ((0, import_utils6.isObjectLike)(result.value)) {
3052
+ if ((0, import_utils4.isObjectLike)(result.value)) {
1604
3053
  } else {
1605
3054
  CSS_VARS2[result.var] = result.value;
1606
3055
  }