@symbo.ls/create 2.11.441 → 2.11.444
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.
- package/dist/cjs/bundle/index.js +275 -1771
- package/package.json +3 -3
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -598,6 +598,7 @@ var require_object = __commonJS({
|
|
|
598
598
|
deepDiff: () => deepDiff,
|
|
599
599
|
deepMerge: () => deepMerge7,
|
|
600
600
|
deepStringify: () => deepStringify,
|
|
601
|
+
deepStringifyWithMaxDepth: () => deepStringifyWithMaxDepth,
|
|
601
602
|
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
602
603
|
detectInfiniteLoop: () => detectInfiniteLoop,
|
|
603
604
|
diff: () => diff,
|
|
@@ -748,6 +749,11 @@ var require_object = __commonJS({
|
|
|
748
749
|
return o;
|
|
749
750
|
};
|
|
750
751
|
var deepStringify = (obj, stringified = {}) => {
|
|
752
|
+
var _a;
|
|
753
|
+
if (obj.node || obj.__ref || obj.parent || obj.__element || obj.parse) {
|
|
754
|
+
console.warn("Trying to clone element or state at", obj);
|
|
755
|
+
obj = (_a = obj.parse) == null ? void 0 : _a.call(obj);
|
|
756
|
+
}
|
|
751
757
|
for (const prop in obj) {
|
|
752
758
|
const objProp = obj[prop];
|
|
753
759
|
if ((0, import_types.isFunction)(objProp)) {
|
|
@@ -773,6 +779,39 @@ var require_object = __commonJS({
|
|
|
773
779
|
}
|
|
774
780
|
return stringified;
|
|
775
781
|
};
|
|
782
|
+
var MAX_DEPTH = 100;
|
|
783
|
+
var deepStringifyWithMaxDepth = (obj, stringified = {}, depth2 = 0, path = "") => {
|
|
784
|
+
if (depth2 > MAX_DEPTH) {
|
|
785
|
+
console.warn(`Maximum depth exceeded at path: ${path}. Possible circular reference.`);
|
|
786
|
+
return "[MAX_DEPTH_EXCEEDED]";
|
|
787
|
+
}
|
|
788
|
+
for (const prop in obj) {
|
|
789
|
+
const currentPath = path ? `${path}.${prop}` : prop;
|
|
790
|
+
const objProp = obj[prop];
|
|
791
|
+
if ((0, import_types.isFunction)(objProp)) {
|
|
792
|
+
stringified[prop] = objProp.toString();
|
|
793
|
+
} else if ((0, import_types.isObject)(objProp)) {
|
|
794
|
+
stringified[prop] = {};
|
|
795
|
+
deepStringifyWithMaxDepth(objProp, stringified[prop], depth2 + 1, currentPath);
|
|
796
|
+
} else if ((0, import_types.isArray)(objProp)) {
|
|
797
|
+
stringified[prop] = [];
|
|
798
|
+
objProp.forEach((v, i) => {
|
|
799
|
+
const itemPath = `${currentPath}[${i}]`;
|
|
800
|
+
if ((0, import_types.isObject)(v)) {
|
|
801
|
+
stringified[prop][i] = {};
|
|
802
|
+
deepStringifyWithMaxDepth(v, stringified[prop][i], depth2 + 1, itemPath);
|
|
803
|
+
} else if ((0, import_types.isFunction)(v)) {
|
|
804
|
+
stringified[prop][i] = v.toString();
|
|
805
|
+
} else {
|
|
806
|
+
stringified[prop][i] = v;
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
} else {
|
|
810
|
+
stringified[prop] = objProp;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return stringified;
|
|
814
|
+
};
|
|
776
815
|
var objectToString = (obj = {}, indent = 0) => {
|
|
777
816
|
const spaces = " ".repeat(indent);
|
|
778
817
|
let str = "{\n";
|
|
@@ -1320,6 +1359,7 @@ var require_cookie = __commonJS({
|
|
|
1320
1359
|
__export2(cookie_exports, {
|
|
1321
1360
|
getCookie: () => getCookie,
|
|
1322
1361
|
isMobile: () => isMobile,
|
|
1362
|
+
removeCookie: () => removeCookie,
|
|
1323
1363
|
setCookie: () => setCookie
|
|
1324
1364
|
});
|
|
1325
1365
|
module2.exports = __toCommonJS2(cookie_exports);
|
|
@@ -1349,6 +1389,11 @@ var require_cookie = __commonJS({
|
|
|
1349
1389
|
}
|
|
1350
1390
|
return "";
|
|
1351
1391
|
};
|
|
1392
|
+
var removeCookie = (cname) => {
|
|
1393
|
+
if ((0, import_types.isUndefined)(import_utils32.document) || (0, import_types.isUndefined)(import_utils32.document.cookie))
|
|
1394
|
+
return;
|
|
1395
|
+
import_utils32.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
1396
|
+
};
|
|
1352
1397
|
}
|
|
1353
1398
|
});
|
|
1354
1399
|
|
|
@@ -1756,7 +1801,7 @@ var require_cjs2 = __commonJS({
|
|
|
1756
1801
|
mod
|
|
1757
1802
|
));
|
|
1758
1803
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
1759
|
-
var
|
|
1804
|
+
var require_cjs16 = __commonJS2({
|
|
1760
1805
|
"../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
|
|
1761
1806
|
"use strict";
|
|
1762
1807
|
var __defProp22 = Object.defineProperty;
|
|
@@ -1790,7 +1835,7 @@ var require_cjs2 = __commonJS({
|
|
|
1790
1835
|
var document4 = window32.document;
|
|
1791
1836
|
}
|
|
1792
1837
|
});
|
|
1793
|
-
var
|
|
1838
|
+
var require_key3 = __commonJS2({
|
|
1794
1839
|
"../../../domql/packages/utils/dist/cjs/key.js"(exports2, module22) {
|
|
1795
1840
|
"use strict";
|
|
1796
1841
|
var __defProp22 = Object.defineProperty;
|
|
@@ -1827,7 +1872,7 @@ var require_cjs2 = __commonJS({
|
|
|
1827
1872
|
var createSnapshotId = generateKey;
|
|
1828
1873
|
}
|
|
1829
1874
|
});
|
|
1830
|
-
var
|
|
1875
|
+
var require_env3 = __commonJS2({
|
|
1831
1876
|
"../../../domql/packages/utils/dist/cjs/env.js"(exports2, module22) {
|
|
1832
1877
|
"use strict";
|
|
1833
1878
|
var __defProp22 = Object.defineProperty;
|
|
@@ -1863,7 +1908,7 @@ var require_cjs2 = __commonJS({
|
|
|
1863
1908
|
var getNev = (key, env = NODE_ENV) => env[key];
|
|
1864
1909
|
}
|
|
1865
1910
|
});
|
|
1866
|
-
var
|
|
1911
|
+
var require_globals3 = __commonJS2({
|
|
1867
1912
|
"../../../domql/packages/utils/dist/cjs/globals.js"(exports2, module22) {
|
|
1868
1913
|
"use strict";
|
|
1869
1914
|
var __defProp22 = Object.defineProperty;
|
|
@@ -1897,7 +1942,7 @@ var require_cjs2 = __commonJS({
|
|
|
1897
1942
|
var document4 = window32.document;
|
|
1898
1943
|
}
|
|
1899
1944
|
});
|
|
1900
|
-
var
|
|
1945
|
+
var require_node4 = __commonJS2({
|
|
1901
1946
|
"../../../domql/packages/utils/dist/cjs/node.js"(exports2, module22) {
|
|
1902
1947
|
"use strict";
|
|
1903
1948
|
var __defProp22 = Object.defineProperty;
|
|
@@ -1924,7 +1969,7 @@ var require_cjs2 = __commonJS({
|
|
|
1924
1969
|
isNode: () => isNode
|
|
1925
1970
|
});
|
|
1926
1971
|
module22.exports = __toCommonJS22(node_exports);
|
|
1927
|
-
var import_globals3 =
|
|
1972
|
+
var import_globals3 = require_globals3();
|
|
1928
1973
|
var isNode = (obj) => {
|
|
1929
1974
|
return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
1930
1975
|
};
|
|
@@ -1936,7 +1981,7 @@ var require_cjs2 = __commonJS({
|
|
|
1936
1981
|
};
|
|
1937
1982
|
}
|
|
1938
1983
|
});
|
|
1939
|
-
var
|
|
1984
|
+
var require_types3 = __commonJS2({
|
|
1940
1985
|
"../../../domql/packages/utils/dist/cjs/types.js"(exports2, module22) {
|
|
1941
1986
|
"use strict";
|
|
1942
1987
|
var __defProp22 = Object.defineProperty;
|
|
@@ -1974,7 +2019,7 @@ var require_cjs2 = __commonJS({
|
|
|
1974
2019
|
isUndefined: () => isUndefined22
|
|
1975
2020
|
});
|
|
1976
2021
|
module22.exports = __toCommonJS22(types_exports);
|
|
1977
|
-
var import_node =
|
|
2022
|
+
var import_node = require_node4();
|
|
1978
2023
|
var isObject72 = (arg) => {
|
|
1979
2024
|
if (arg === null)
|
|
1980
2025
|
return false;
|
|
@@ -2024,7 +2069,7 @@ var require_cjs2 = __commonJS({
|
|
|
2024
2069
|
};
|
|
2025
2070
|
}
|
|
2026
2071
|
});
|
|
2027
|
-
var
|
|
2072
|
+
var require_array3 = __commonJS2({
|
|
2028
2073
|
"../../../domql/packages/utils/dist/cjs/array.js"(exports2, module22) {
|
|
2029
2074
|
"use strict";
|
|
2030
2075
|
var __defProp22 = Object.defineProperty;
|
|
@@ -2062,8 +2107,8 @@ var require_cjs2 = __commonJS({
|
|
|
2062
2107
|
swapItemsInArray: () => swapItemsInArray
|
|
2063
2108
|
});
|
|
2064
2109
|
module22.exports = __toCommonJS22(array_exports);
|
|
2065
|
-
var import_object =
|
|
2066
|
-
var import_types =
|
|
2110
|
+
var import_object = require_object4();
|
|
2111
|
+
var import_types = require_types3();
|
|
2067
2112
|
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
2068
2113
|
return arr2.every((val) => arr1.includes(val));
|
|
2069
2114
|
};
|
|
@@ -2161,7 +2206,7 @@ var require_cjs2 = __commonJS({
|
|
|
2161
2206
|
};
|
|
2162
2207
|
}
|
|
2163
2208
|
});
|
|
2164
|
-
var
|
|
2209
|
+
var require_string3 = __commonJS2({
|
|
2165
2210
|
"../../../domql/packages/utils/dist/cjs/string.js"(exports2, module22) {
|
|
2166
2211
|
"use strict";
|
|
2167
2212
|
var __defProp22 = Object.defineProperty;
|
|
@@ -2309,7 +2354,7 @@ var require_cjs2 = __commonJS({
|
|
|
2309
2354
|
};
|
|
2310
2355
|
}
|
|
2311
2356
|
});
|
|
2312
|
-
var
|
|
2357
|
+
var require_object4 = __commonJS2({
|
|
2313
2358
|
"../../../domql/packages/utils/dist/cjs/object.js"(exports2, module22) {
|
|
2314
2359
|
"use strict";
|
|
2315
2360
|
var __defProp22 = Object.defineProperty;
|
|
@@ -2367,11 +2412,11 @@ var require_cjs2 = __commonJS({
|
|
|
2367
2412
|
stringToObject: () => stringToObject
|
|
2368
2413
|
});
|
|
2369
2414
|
module22.exports = __toCommonJS22(object_exports);
|
|
2370
|
-
var import_globals3 =
|
|
2371
|
-
var import_types =
|
|
2372
|
-
var import_array =
|
|
2373
|
-
var import_string =
|
|
2374
|
-
var import_node =
|
|
2415
|
+
var import_globals3 = require_globals3();
|
|
2416
|
+
var import_types = require_types3();
|
|
2417
|
+
var import_array = require_array3();
|
|
2418
|
+
var import_string = require_string3();
|
|
2419
|
+
var import_node = require_node4();
|
|
2375
2420
|
var ENV22 = "development";
|
|
2376
2421
|
var exec6 = (param, element, state, context) => {
|
|
2377
2422
|
if ((0, import_types.isFunction)(param)) {
|
|
@@ -2910,7 +2955,7 @@ var require_cjs2 = __commonJS({
|
|
|
2910
2955
|
};
|
|
2911
2956
|
}
|
|
2912
2957
|
});
|
|
2913
|
-
var
|
|
2958
|
+
var require_function3 = __commonJS2({
|
|
2914
2959
|
"../../../domql/packages/utils/dist/cjs/function.js"(exports2, module22) {
|
|
2915
2960
|
"use strict";
|
|
2916
2961
|
var __defProp22 = Object.defineProperty;
|
|
@@ -2995,7 +3040,7 @@ var require_cjs2 = __commonJS({
|
|
|
2995
3040
|
}
|
|
2996
3041
|
}
|
|
2997
3042
|
});
|
|
2998
|
-
var
|
|
3043
|
+
var require_log3 = __commonJS2({
|
|
2999
3044
|
"../../../domql/packages/utils/dist/cjs/log.js"(exports2, module22) {
|
|
3000
3045
|
"use strict";
|
|
3001
3046
|
var __defProp22 = Object.defineProperty;
|
|
@@ -3034,7 +3079,7 @@ var require_cjs2 = __commonJS({
|
|
|
3034
3079
|
};
|
|
3035
3080
|
}
|
|
3036
3081
|
});
|
|
3037
|
-
var
|
|
3082
|
+
var require_cookie3 = __commonJS2({
|
|
3038
3083
|
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports2, module22) {
|
|
3039
3084
|
"use strict";
|
|
3040
3085
|
var __defProp22 = Object.defineProperty;
|
|
@@ -3061,7 +3106,7 @@ var require_cjs2 = __commonJS({
|
|
|
3061
3106
|
setCookie: () => setCookie
|
|
3062
3107
|
});
|
|
3063
3108
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
3064
|
-
var import_types =
|
|
3109
|
+
var import_types = require_types3();
|
|
3065
3110
|
var import_utils272 = require_cjs22();
|
|
3066
3111
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
3067
3112
|
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
@@ -3089,7 +3134,7 @@ var require_cjs2 = __commonJS({
|
|
|
3089
3134
|
};
|
|
3090
3135
|
}
|
|
3091
3136
|
});
|
|
3092
|
-
var
|
|
3137
|
+
var require_tags3 = __commonJS2({
|
|
3093
3138
|
"../../../domql/packages/utils/dist/cjs/tags.js"(exports2, module22) {
|
|
3094
3139
|
"use strict";
|
|
3095
3140
|
var __defProp22 = Object.defineProperty;
|
|
@@ -3438,18 +3483,18 @@ var require_cjs2 = __commonJS({
|
|
|
3438
3483
|
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
3439
3484
|
var utils_exports2 = {};
|
|
3440
3485
|
module22.exports = __toCommonJS22(utils_exports2);
|
|
3441
|
-
__reExport2(utils_exports2,
|
|
3442
|
-
__reExport2(utils_exports2,
|
|
3443
|
-
__reExport2(utils_exports2,
|
|
3444
|
-
__reExport2(utils_exports2,
|
|
3445
|
-
__reExport2(utils_exports2,
|
|
3446
|
-
__reExport2(utils_exports2,
|
|
3447
|
-
__reExport2(utils_exports2,
|
|
3448
|
-
__reExport2(utils_exports2,
|
|
3449
|
-
__reExport2(utils_exports2,
|
|
3450
|
-
__reExport2(utils_exports2,
|
|
3451
|
-
__reExport2(utils_exports2,
|
|
3452
|
-
__reExport2(utils_exports2,
|
|
3486
|
+
__reExport2(utils_exports2, require_key3(), module22.exports);
|
|
3487
|
+
__reExport2(utils_exports2, require_env3(), module22.exports);
|
|
3488
|
+
__reExport2(utils_exports2, require_types3(), module22.exports);
|
|
3489
|
+
__reExport2(utils_exports2, require_object4(), module22.exports);
|
|
3490
|
+
__reExport2(utils_exports2, require_function3(), module22.exports);
|
|
3491
|
+
__reExport2(utils_exports2, require_array3(), module22.exports);
|
|
3492
|
+
__reExport2(utils_exports2, require_node4(), module22.exports);
|
|
3493
|
+
__reExport2(utils_exports2, require_log3(), module22.exports);
|
|
3494
|
+
__reExport2(utils_exports2, require_string3(), module22.exports);
|
|
3495
|
+
__reExport2(utils_exports2, require_globals3(), module22.exports);
|
|
3496
|
+
__reExport2(utils_exports2, require_cookie3(), module22.exports);
|
|
3497
|
+
__reExport2(utils_exports2, require_tags3(), module22.exports);
|
|
3453
3498
|
__reExport2(utils_exports2, require_component3(), module22.exports);
|
|
3454
3499
|
}
|
|
3455
3500
|
});
|
|
@@ -5534,7 +5579,7 @@ var require_cjs2 = __commonJS({
|
|
|
5534
5579
|
var isScalingUnit = (unit) => {
|
|
5535
5580
|
return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
|
|
5536
5581
|
};
|
|
5537
|
-
var import_globals2 = __toESM2(
|
|
5582
|
+
var import_globals2 = __toESM2(require_cjs16(), 1);
|
|
5538
5583
|
var import_utils32 = __toESM2(require_cjs22(), 1);
|
|
5539
5584
|
var ENV3 = "development";
|
|
5540
5585
|
var colorStringToRgbaArray = (color) => {
|
|
@@ -6991,7 +7036,7 @@ var require_cjs2 = __commonJS({
|
|
|
6991
7036
|
lineHeight: TYPOGRAPHY22.lineHeight
|
|
6992
7037
|
});
|
|
6993
7038
|
};
|
|
6994
|
-
var import_globals22 = __toESM2(
|
|
7039
|
+
var import_globals22 = __toESM2(require_cjs16(), 1);
|
|
6995
7040
|
var DEF_OPTIONS = {
|
|
6996
7041
|
document: import_globals22.document
|
|
6997
7042
|
};
|
|
@@ -7196,7 +7241,7 @@ var require_cjs2 = __commonJS({
|
|
|
7196
7241
|
return {
|
|
7197
7242
|
backgroundImage: getMediaColor3(backgroundImage, globalTheme || CONFIG22.globalTheme)
|
|
7198
7243
|
};
|
|
7199
|
-
} else if (v.includes("/") || v.
|
|
7244
|
+
} else if (v.includes("/") || v.startsWith("http") || v.includes("."))
|
|
7200
7245
|
return `url(${v})`;
|
|
7201
7246
|
return v;
|
|
7202
7247
|
}).join(" ");
|
|
@@ -7400,7 +7445,7 @@ var require_cjs3 = __commonJS({
|
|
|
7400
7445
|
mod
|
|
7401
7446
|
));
|
|
7402
7447
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7403
|
-
var
|
|
7448
|
+
var require_key3 = __commonJS2({
|
|
7404
7449
|
"../../../domql/packages/utils/dist/cjs/key.js"(exports2, module22) {
|
|
7405
7450
|
"use strict";
|
|
7406
7451
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7437,7 +7482,7 @@ var require_cjs3 = __commonJS({
|
|
|
7437
7482
|
var createSnapshotId = generateKey;
|
|
7438
7483
|
}
|
|
7439
7484
|
});
|
|
7440
|
-
var
|
|
7485
|
+
var require_env3 = __commonJS2({
|
|
7441
7486
|
"../../../domql/packages/utils/dist/cjs/env.js"(exports2, module22) {
|
|
7442
7487
|
"use strict";
|
|
7443
7488
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7473,7 +7518,7 @@ var require_cjs3 = __commonJS({
|
|
|
7473
7518
|
var getNev = (key, env = NODE_ENV) => env[key];
|
|
7474
7519
|
}
|
|
7475
7520
|
});
|
|
7476
|
-
var
|
|
7521
|
+
var require_globals3 = __commonJS2({
|
|
7477
7522
|
"../../../domql/packages/utils/dist/cjs/globals.js"(exports2, module22) {
|
|
7478
7523
|
"use strict";
|
|
7479
7524
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7507,7 +7552,7 @@ var require_cjs3 = __commonJS({
|
|
|
7507
7552
|
var document2 = window22.document;
|
|
7508
7553
|
}
|
|
7509
7554
|
});
|
|
7510
|
-
var
|
|
7555
|
+
var require_node4 = __commonJS2({
|
|
7511
7556
|
"../../../domql/packages/utils/dist/cjs/node.js"(exports2, module22) {
|
|
7512
7557
|
"use strict";
|
|
7513
7558
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7534,7 +7579,7 @@ var require_cjs3 = __commonJS({
|
|
|
7534
7579
|
isNode: () => isNode
|
|
7535
7580
|
});
|
|
7536
7581
|
module22.exports = __toCommonJS22(node_exports);
|
|
7537
|
-
var import_globals2 =
|
|
7582
|
+
var import_globals2 = require_globals3();
|
|
7538
7583
|
var isNode = (obj) => {
|
|
7539
7584
|
return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
7540
7585
|
};
|
|
@@ -7546,7 +7591,7 @@ var require_cjs3 = __commonJS({
|
|
|
7546
7591
|
};
|
|
7547
7592
|
}
|
|
7548
7593
|
});
|
|
7549
|
-
var
|
|
7594
|
+
var require_types3 = __commonJS2({
|
|
7550
7595
|
"../../../domql/packages/utils/dist/cjs/types.js"(exports2, module22) {
|
|
7551
7596
|
"use strict";
|
|
7552
7597
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7584,7 +7629,7 @@ var require_cjs3 = __commonJS({
|
|
|
7584
7629
|
isUndefined: () => isUndefined11
|
|
7585
7630
|
});
|
|
7586
7631
|
module22.exports = __toCommonJS22(types_exports);
|
|
7587
|
-
var import_node =
|
|
7632
|
+
var import_node = require_node4();
|
|
7588
7633
|
var isObject32 = (arg) => {
|
|
7589
7634
|
if (arg === null)
|
|
7590
7635
|
return false;
|
|
@@ -7634,7 +7679,7 @@ var require_cjs3 = __commonJS({
|
|
|
7634
7679
|
};
|
|
7635
7680
|
}
|
|
7636
7681
|
});
|
|
7637
|
-
var
|
|
7682
|
+
var require_array3 = __commonJS2({
|
|
7638
7683
|
"../../../domql/packages/utils/dist/cjs/array.js"(exports2, module22) {
|
|
7639
7684
|
"use strict";
|
|
7640
7685
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7672,8 +7717,8 @@ var require_cjs3 = __commonJS({
|
|
|
7672
7717
|
swapItemsInArray: () => swapItemsInArray
|
|
7673
7718
|
});
|
|
7674
7719
|
module22.exports = __toCommonJS22(array_exports);
|
|
7675
|
-
var import_object =
|
|
7676
|
-
var import_types =
|
|
7720
|
+
var import_object = require_object4();
|
|
7721
|
+
var import_types = require_types3();
|
|
7677
7722
|
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
7678
7723
|
return arr2.every((val) => arr1.includes(val));
|
|
7679
7724
|
};
|
|
@@ -7771,7 +7816,7 @@ var require_cjs3 = __commonJS({
|
|
|
7771
7816
|
};
|
|
7772
7817
|
}
|
|
7773
7818
|
});
|
|
7774
|
-
var
|
|
7819
|
+
var require_string3 = __commonJS2({
|
|
7775
7820
|
"../../../domql/packages/utils/dist/cjs/string.js"(exports2, module22) {
|
|
7776
7821
|
"use strict";
|
|
7777
7822
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7919,7 +7964,7 @@ var require_cjs3 = __commonJS({
|
|
|
7919
7964
|
};
|
|
7920
7965
|
}
|
|
7921
7966
|
});
|
|
7922
|
-
var
|
|
7967
|
+
var require_object4 = __commonJS2({
|
|
7923
7968
|
"../../../domql/packages/utils/dist/cjs/object.js"(exports2, module22) {
|
|
7924
7969
|
"use strict";
|
|
7925
7970
|
var __defProp22 = Object.defineProperty;
|
|
@@ -7977,11 +8022,11 @@ var require_cjs3 = __commonJS({
|
|
|
7977
8022
|
stringToObject: () => stringToObject
|
|
7978
8023
|
});
|
|
7979
8024
|
module22.exports = __toCommonJS22(object_exports);
|
|
7980
|
-
var import_globals2 =
|
|
7981
|
-
var import_types =
|
|
7982
|
-
var import_array =
|
|
7983
|
-
var import_string =
|
|
7984
|
-
var import_node =
|
|
8025
|
+
var import_globals2 = require_globals3();
|
|
8026
|
+
var import_types = require_types3();
|
|
8027
|
+
var import_array = require_array3();
|
|
8028
|
+
var import_string = require_string3();
|
|
8029
|
+
var import_node = require_node4();
|
|
7985
8030
|
var ENV3 = "development";
|
|
7986
8031
|
var exec6 = (param, element, state, context) => {
|
|
7987
8032
|
if ((0, import_types.isFunction)(param)) {
|
|
@@ -8520,7 +8565,7 @@ var require_cjs3 = __commonJS({
|
|
|
8520
8565
|
};
|
|
8521
8566
|
}
|
|
8522
8567
|
});
|
|
8523
|
-
var
|
|
8568
|
+
var require_function3 = __commonJS2({
|
|
8524
8569
|
"../../../domql/packages/utils/dist/cjs/function.js"(exports2, module22) {
|
|
8525
8570
|
"use strict";
|
|
8526
8571
|
var __defProp22 = Object.defineProperty;
|
|
@@ -8605,7 +8650,7 @@ var require_cjs3 = __commonJS({
|
|
|
8605
8650
|
}
|
|
8606
8651
|
}
|
|
8607
8652
|
});
|
|
8608
|
-
var
|
|
8653
|
+
var require_log3 = __commonJS2({
|
|
8609
8654
|
"../../../domql/packages/utils/dist/cjs/log.js"(exports2, module22) {
|
|
8610
8655
|
"use strict";
|
|
8611
8656
|
var __defProp22 = Object.defineProperty;
|
|
@@ -8644,7 +8689,7 @@ var require_cjs3 = __commonJS({
|
|
|
8644
8689
|
};
|
|
8645
8690
|
}
|
|
8646
8691
|
});
|
|
8647
|
-
var
|
|
8692
|
+
var require_cookie3 = __commonJS2({
|
|
8648
8693
|
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports2, module22) {
|
|
8649
8694
|
"use strict";
|
|
8650
8695
|
var __defProp22 = Object.defineProperty;
|
|
@@ -8671,8 +8716,8 @@ var require_cjs3 = __commonJS({
|
|
|
8671
8716
|
setCookie: () => setCookie
|
|
8672
8717
|
});
|
|
8673
8718
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
8674
|
-
var import_types =
|
|
8675
|
-
var import_utils33 =
|
|
8719
|
+
var import_types = require_types3();
|
|
8720
|
+
var import_utils33 = require_cjs16();
|
|
8676
8721
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
8677
8722
|
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
8678
8723
|
if ((0, import_types.isUndefined)(import_utils33.document) || (0, import_types.isUndefined)(import_utils33.document.cookie))
|
|
@@ -8699,7 +8744,7 @@ var require_cjs3 = __commonJS({
|
|
|
8699
8744
|
};
|
|
8700
8745
|
}
|
|
8701
8746
|
});
|
|
8702
|
-
var
|
|
8747
|
+
var require_tags3 = __commonJS2({
|
|
8703
8748
|
"../../../domql/packages/utils/dist/cjs/tags.js"(exports2, module22) {
|
|
8704
8749
|
"use strict";
|
|
8705
8750
|
var __defProp22 = Object.defineProperty;
|
|
@@ -8899,7 +8944,7 @@ var require_cjs3 = __commonJS({
|
|
|
8899
8944
|
isVariant: () => isVariant
|
|
8900
8945
|
});
|
|
8901
8946
|
module22.exports = __toCommonJS22(component_exports);
|
|
8902
|
-
var import__ =
|
|
8947
|
+
var import__ = require_cjs16();
|
|
8903
8948
|
var ENV3 = "development";
|
|
8904
8949
|
var checkIfKeyIsComponent2 = (key) => {
|
|
8905
8950
|
const isFirstKeyString = (0, import__.isString)(key);
|
|
@@ -9029,7 +9074,7 @@ var require_cjs3 = __commonJS({
|
|
|
9029
9074
|
};
|
|
9030
9075
|
}
|
|
9031
9076
|
});
|
|
9032
|
-
var
|
|
9077
|
+
var require_cjs16 = __commonJS2({
|
|
9033
9078
|
"../../../domql/packages/utils/dist/cjs/index.js"(exports2, module22) {
|
|
9034
9079
|
"use strict";
|
|
9035
9080
|
var __defProp22 = Object.defineProperty;
|
|
@@ -9048,18 +9093,18 @@ var require_cjs3 = __commonJS({
|
|
|
9048
9093
|
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
9049
9094
|
var utils_exports = {};
|
|
9050
9095
|
module22.exports = __toCommonJS22(utils_exports);
|
|
9051
|
-
__reExport2(utils_exports,
|
|
9052
|
-
__reExport2(utils_exports,
|
|
9053
|
-
__reExport2(utils_exports,
|
|
9054
|
-
__reExport2(utils_exports,
|
|
9055
|
-
__reExport2(utils_exports,
|
|
9056
|
-
__reExport2(utils_exports,
|
|
9057
|
-
__reExport2(utils_exports,
|
|
9058
|
-
__reExport2(utils_exports,
|
|
9059
|
-
__reExport2(utils_exports,
|
|
9060
|
-
__reExport2(utils_exports,
|
|
9061
|
-
__reExport2(utils_exports,
|
|
9062
|
-
__reExport2(utils_exports,
|
|
9096
|
+
__reExport2(utils_exports, require_key3(), module22.exports);
|
|
9097
|
+
__reExport2(utils_exports, require_env3(), module22.exports);
|
|
9098
|
+
__reExport2(utils_exports, require_types3(), module22.exports);
|
|
9099
|
+
__reExport2(utils_exports, require_object4(), module22.exports);
|
|
9100
|
+
__reExport2(utils_exports, require_function3(), module22.exports);
|
|
9101
|
+
__reExport2(utils_exports, require_array3(), module22.exports);
|
|
9102
|
+
__reExport2(utils_exports, require_node4(), module22.exports);
|
|
9103
|
+
__reExport2(utils_exports, require_log3(), module22.exports);
|
|
9104
|
+
__reExport2(utils_exports, require_string3(), module22.exports);
|
|
9105
|
+
__reExport2(utils_exports, require_globals3(), module22.exports);
|
|
9106
|
+
__reExport2(utils_exports, require_cookie3(), module22.exports);
|
|
9107
|
+
__reExport2(utils_exports, require_tags3(), module22.exports);
|
|
9063
9108
|
__reExport2(utils_exports, require_component3(), module22.exports);
|
|
9064
9109
|
}
|
|
9065
9110
|
});
|
|
@@ -9087,7 +9132,7 @@ var require_cjs3 = __commonJS({
|
|
|
9087
9132
|
toggleFullscreen: () => toggleFullscreen
|
|
9088
9133
|
});
|
|
9089
9134
|
module2.exports = __toCommonJS2(src_exports2);
|
|
9090
|
-
var import_utils210 = __toESM2(
|
|
9135
|
+
var import_utils210 = __toESM2(require_cjs16(), 1);
|
|
9091
9136
|
var toggleFullscreen = async (el) => {
|
|
9092
9137
|
if (!document.fullscreenElement) {
|
|
9093
9138
|
try {
|
|
@@ -9099,7 +9144,7 @@ var require_cjs3 = __commonJS({
|
|
|
9099
9144
|
await document.exitFullscreen();
|
|
9100
9145
|
}
|
|
9101
9146
|
};
|
|
9102
|
-
var import_utils32 = __toESM2(
|
|
9147
|
+
var import_utils32 = __toESM2(require_cjs16(), 1);
|
|
9103
9148
|
var findClosestNumber = (number, arr) => {
|
|
9104
9149
|
return ((0, import_utils32.isArray)(arr) ? arr : Object.values(arr)).reduce((prev3, curr) => {
|
|
9105
9150
|
return Math.abs(curr - number) < Math.abs(prev3 - number) ? curr : prev3;
|
|
@@ -9765,6 +9810,9 @@ var require_ignore = __commonJS({
|
|
|
9765
9810
|
"quietUpdate",
|
|
9766
9811
|
"applyReplace",
|
|
9767
9812
|
"applyFunction",
|
|
9813
|
+
"keys",
|
|
9814
|
+
"values",
|
|
9815
|
+
"ref",
|
|
9768
9816
|
"rootUpdate",
|
|
9769
9817
|
"parentUpdate",
|
|
9770
9818
|
"parent",
|
|
@@ -9806,6 +9854,7 @@ var require_methods = __commonJS({
|
|
|
9806
9854
|
applyReplace: () => applyReplace,
|
|
9807
9855
|
clean: () => clean,
|
|
9808
9856
|
destroy: () => destroy,
|
|
9857
|
+
keys: () => keys,
|
|
9809
9858
|
parentUpdate: () => parentUpdate,
|
|
9810
9859
|
parse: () => parse4,
|
|
9811
9860
|
quietReplace: () => quietReplace,
|
|
@@ -9815,7 +9864,8 @@ var require_methods = __commonJS({
|
|
|
9815
9864
|
reset: () => reset,
|
|
9816
9865
|
rootUpdate: () => rootUpdate,
|
|
9817
9866
|
set: () => set3,
|
|
9818
|
-
toggle: () => toggle
|
|
9867
|
+
toggle: () => toggle,
|
|
9868
|
+
values: () => values
|
|
9819
9869
|
});
|
|
9820
9870
|
module2.exports = __toCommonJS2(methods_exports);
|
|
9821
9871
|
var import_utils32 = require_cjs();
|
|
@@ -9960,6 +10010,14 @@ var require_methods = __commonJS({
|
|
|
9960
10010
|
const state = this;
|
|
9961
10011
|
return state.replace(obj, { preventUpdate: true, ...options });
|
|
9962
10012
|
};
|
|
10013
|
+
var keys = function(obj, options = {}) {
|
|
10014
|
+
const state = this;
|
|
10015
|
+
return Object.keys(state);
|
|
10016
|
+
};
|
|
10017
|
+
var values = function(obj, options = {}) {
|
|
10018
|
+
const state = this;
|
|
10019
|
+
return Object.values(state);
|
|
10020
|
+
};
|
|
9963
10021
|
}
|
|
9964
10022
|
});
|
|
9965
10023
|
|
|
@@ -10081,7 +10139,7 @@ var require_inherit = __commonJS({
|
|
|
10081
10139
|
var isState2 = function(state) {
|
|
10082
10140
|
if (!(0, import_utils32.isObjectLike)(state))
|
|
10083
10141
|
return false;
|
|
10084
|
-
return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.replace && state.quietUpdate && state.quietReplace && state.add && state.apply && state.applyReplace && state.applyFunction && state.__element && state.__children;
|
|
10142
|
+
return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.keys && state.values && state.toggle && state.replace && state.quietUpdate && state.quietReplace && state.add && state.apply && state.applyReplace && state.applyFunction && state.__element && state.__children;
|
|
10085
10143
|
};
|
|
10086
10144
|
var createNestedObjectByKeyPath = (path, value2) => {
|
|
10087
10145
|
if (!path) {
|
|
@@ -10368,6 +10426,8 @@ var require_create = __commonJS({
|
|
|
10368
10426
|
quietReplace: import_methods.quietReplace.bind(state),
|
|
10369
10427
|
reset: import_methods.reset.bind(state),
|
|
10370
10428
|
parent: element.parent.state || state,
|
|
10429
|
+
keys: import_methods.keys.bind(state),
|
|
10430
|
+
values: import_methods.values.bind(state),
|
|
10371
10431
|
__element: element,
|
|
10372
10432
|
__children: {},
|
|
10373
10433
|
root: ref.root ? ref.root.state : state
|
|
@@ -11380,7 +11440,7 @@ var require_text = __commonJS({
|
|
|
11380
11440
|
default: () => text_default
|
|
11381
11441
|
});
|
|
11382
11442
|
module2.exports = __toCommonJS2(text_exports);
|
|
11383
|
-
var import__ =
|
|
11443
|
+
var import__ = require_cjs13();
|
|
11384
11444
|
var import_utils32 = require_cjs();
|
|
11385
11445
|
var text_default = (param, element, node3) => {
|
|
11386
11446
|
let prop = (0, import_utils32.exec)(param, element);
|
|
@@ -12932,6 +12992,7 @@ var require_applyParam = __commonJS({
|
|
|
12932
12992
|
var applyParam = (param, element, options) => {
|
|
12933
12993
|
const { node: node3, context, __ref: ref } = element;
|
|
12934
12994
|
const prop = element[param];
|
|
12995
|
+
const { onlyUpdate } = options;
|
|
12935
12996
|
const DOMQLProperty = import_mixins.registry[param];
|
|
12936
12997
|
const DOMQLPropertyFromContext = context && context.registry && context.registry[param];
|
|
12937
12998
|
const isGlobalTransformer = DOMQLPropertyFromContext || DOMQLProperty;
|
|
@@ -12939,7 +13000,8 @@ var require_applyParam = __commonJS({
|
|
|
12939
13000
|
const hasContextDefine = context && context.define && context.define[param];
|
|
12940
13001
|
if (!ref.__if)
|
|
12941
13002
|
return;
|
|
12942
|
-
|
|
13003
|
+
const hasOnlyUpdate = onlyUpdate ? onlyUpdate === param || element.lookup(onlyUpdate) : true;
|
|
13004
|
+
if (isGlobalTransformer && !hasContextDefine && hasOnlyUpdate) {
|
|
12943
13005
|
if ((0, import_utils32.isFunction)(isGlobalTransformer)) {
|
|
12944
13006
|
isGlobalTransformer(prop, element, node3, options);
|
|
12945
13007
|
return;
|
|
@@ -13097,13 +13159,15 @@ var require_node2 = __commonJS({
|
|
|
13097
13159
|
}
|
|
13098
13160
|
});
|
|
13099
13161
|
|
|
13100
|
-
// ../../../domql/
|
|
13101
|
-
var
|
|
13102
|
-
"../../../domql/
|
|
13162
|
+
// ../../../domql/packages/element/dist/cjs/update.js
|
|
13163
|
+
var require_update2 = __commonJS({
|
|
13164
|
+
"../../../domql/packages/element/dist/cjs/update.js"(exports, module2) {
|
|
13103
13165
|
"use strict";
|
|
13166
|
+
var __create2 = Object.create;
|
|
13104
13167
|
var __defProp2 = Object.defineProperty;
|
|
13105
13168
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13106
13169
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13170
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
13107
13171
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13108
13172
|
var __export2 = (target, all) => {
|
|
13109
13173
|
for (var name in all)
|
|
@@ -13117,1650 +13181,81 @@ var require_key2 = __commonJS({
|
|
|
13117
13181
|
}
|
|
13118
13182
|
return to;
|
|
13119
13183
|
};
|
|
13184
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
13185
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
13186
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
13187
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
13188
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
13189
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
13190
|
+
mod
|
|
13191
|
+
));
|
|
13120
13192
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
13121
|
-
var
|
|
13122
|
-
__export2(
|
|
13123
|
-
|
|
13124
|
-
generateKey: () => generateKey
|
|
13193
|
+
var update_exports = {};
|
|
13194
|
+
__export2(update_exports, {
|
|
13195
|
+
default: () => update_default
|
|
13125
13196
|
});
|
|
13126
|
-
module2.exports = __toCommonJS2(
|
|
13127
|
-
var
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
var
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
var require_env2 = __commonJS({
|
|
13141
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
|
|
13142
|
-
"use strict";
|
|
13143
|
-
var __defProp2 = Object.defineProperty;
|
|
13144
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13145
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13146
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13147
|
-
var __export2 = (target, all) => {
|
|
13148
|
-
for (var name in all)
|
|
13149
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13150
|
-
};
|
|
13151
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
13152
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
13153
|
-
for (let key of __getOwnPropNames2(from3))
|
|
13154
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
13155
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
13156
|
-
}
|
|
13157
|
-
return to;
|
|
13197
|
+
module2.exports = __toCommonJS2(update_exports);
|
|
13198
|
+
var import_utils32 = require_cjs();
|
|
13199
|
+
var import_event = require_cjs6();
|
|
13200
|
+
var import_methods = require_methods2();
|
|
13201
|
+
var import_props = require_props();
|
|
13202
|
+
var import_state2 = require_cjs8();
|
|
13203
|
+
var import_create = __toESM2(require_create4(), 1);
|
|
13204
|
+
var import_iterate = require_iterate();
|
|
13205
|
+
var import_mixins = require_mixins();
|
|
13206
|
+
var import_applyParam = require_applyParam();
|
|
13207
|
+
var import_options3 = __toESM2(require_options(), 1);
|
|
13208
|
+
var import_utils210 = require_utils();
|
|
13209
|
+
var snapshot = {
|
|
13210
|
+
snapshotId: import_utils32.createSnapshotId
|
|
13158
13211
|
};
|
|
13159
|
-
var
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
isTest: () => isTest2
|
|
13167
|
-
});
|
|
13168
|
-
module2.exports = __toCommonJS2(env_exports);
|
|
13169
|
-
var NODE_ENV = "development";
|
|
13170
|
-
var isProduction3 = (env = NODE_ENV) => env === "production" || env === "prod" || env !== "development" && env !== "dev" && env !== "test";
|
|
13171
|
-
var isTest2 = (env = NODE_ENV) => env === "test";
|
|
13172
|
-
var isDevelopment4 = (env = NODE_ENV) => env === "development" || env === "dev";
|
|
13173
|
-
var getNev = (key, env = NODE_ENV) => env[key];
|
|
13174
|
-
}
|
|
13175
|
-
});
|
|
13176
|
-
|
|
13177
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/globals.js
|
|
13178
|
-
var require_globals2 = __commonJS({
|
|
13179
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
|
|
13180
|
-
"use strict";
|
|
13181
|
-
var __defProp2 = Object.defineProperty;
|
|
13182
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13183
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13184
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13185
|
-
var __export2 = (target, all) => {
|
|
13186
|
-
for (var name in all)
|
|
13187
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13212
|
+
var UPDATE_DEFAULT_OPTIONS = {
|
|
13213
|
+
stackChanges: false,
|
|
13214
|
+
cleanExec: true,
|
|
13215
|
+
preventRecursive: false,
|
|
13216
|
+
currentSnapshot: false,
|
|
13217
|
+
calleeElement: false,
|
|
13218
|
+
excludes: import_utils210.METHODS_EXL
|
|
13188
13219
|
};
|
|
13189
|
-
var
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13220
|
+
var update = function(params = {}, opts) {
|
|
13221
|
+
const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
|
|
13222
|
+
const options = (0, import_utils210.deepClone)((0, import_utils32.isObject)(opts) ? (0, import_utils210.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, ["calleeElement"]);
|
|
13223
|
+
options.calleeElement = calleeElementCache;
|
|
13224
|
+
const element = this;
|
|
13225
|
+
const { parent, node: node3, key } = element;
|
|
13226
|
+
const { excludes, preventInheritAtCurrentState } = options;
|
|
13227
|
+
let ref = element.__ref;
|
|
13228
|
+
if (!ref)
|
|
13229
|
+
ref = element.__ref = {};
|
|
13230
|
+
const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
|
|
13231
|
+
if (snapshotHasUpdated)
|
|
13232
|
+
return;
|
|
13233
|
+
if (!options.preventListeners)
|
|
13234
|
+
(0, import_event.triggerEventOnUpdate)("startUpdate", params, element, options);
|
|
13235
|
+
if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
|
|
13236
|
+
return;
|
|
13237
|
+
if (!excludes)
|
|
13238
|
+
(0, import_utils32.merge)(options, UPDATE_DEFAULT_OPTIONS);
|
|
13239
|
+
if ((0, import_utils32.isString)(params) || (0, import_utils32.isNumber)(params)) {
|
|
13240
|
+
params = { text: params };
|
|
13194
13241
|
}
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
var self2 = globalThis;
|
|
13208
|
-
var window5 = globalThis;
|
|
13209
|
-
var document2 = window5.document;
|
|
13210
|
-
}
|
|
13211
|
-
});
|
|
13212
|
-
|
|
13213
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/node.js
|
|
13214
|
-
var require_node3 = __commonJS({
|
|
13215
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
|
|
13216
|
-
"use strict";
|
|
13217
|
-
var __defProp2 = Object.defineProperty;
|
|
13218
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13219
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13220
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13221
|
-
var __export2 = (target, all) => {
|
|
13222
|
-
for (var name in all)
|
|
13223
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13224
|
-
};
|
|
13225
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
13226
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
13227
|
-
for (let key of __getOwnPropNames2(from3))
|
|
13228
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
13229
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
13242
|
+
const inheritState = inheritStateUpdates(element, options);
|
|
13243
|
+
if (inheritState === false)
|
|
13244
|
+
return;
|
|
13245
|
+
const ifFails = checkIfOnUpdate(element, parent, options);
|
|
13246
|
+
if (ifFails)
|
|
13247
|
+
return;
|
|
13248
|
+
if (ref.__if && !options.preventPropsUpdate) {
|
|
13249
|
+
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
13250
|
+
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils32.isFunction)(v));
|
|
13251
|
+
const props2 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
13252
|
+
if (props2)
|
|
13253
|
+
(0, import_props.updateProps)(props2, element, parent);
|
|
13230
13254
|
}
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
__export2(node_exports, {
|
|
13236
|
-
isHtmlElement: () => isHtmlElement,
|
|
13237
|
-
isNode: () => isNode
|
|
13238
|
-
});
|
|
13239
|
-
module2.exports = __toCommonJS2(node_exports);
|
|
13240
|
-
var import_globals2 = require_globals2();
|
|
13241
|
-
var isNode = (obj) => {
|
|
13242
|
-
return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
13243
|
-
};
|
|
13244
|
-
var isHtmlElement = (obj) => {
|
|
13245
|
-
return (typeof HTMLElement === "object" ? obj instanceof import_globals2.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
|
|
13246
|
-
};
|
|
13247
|
-
}
|
|
13248
|
-
});
|
|
13249
|
-
|
|
13250
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/types.js
|
|
13251
|
-
var require_types2 = __commonJS({
|
|
13252
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
|
|
13253
|
-
"use strict";
|
|
13254
|
-
var __defProp2 = Object.defineProperty;
|
|
13255
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13256
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13257
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13258
|
-
var __export2 = (target, all) => {
|
|
13259
|
-
for (var name in all)
|
|
13260
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13261
|
-
};
|
|
13262
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
13263
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
13264
|
-
for (let key of __getOwnPropNames2(from3))
|
|
13265
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
13266
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
13267
|
-
}
|
|
13268
|
-
return to;
|
|
13269
|
-
};
|
|
13270
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
13271
|
-
var types_exports = {};
|
|
13272
|
-
__export2(types_exports, {
|
|
13273
|
-
TYPES: () => TYPES,
|
|
13274
|
-
is: () => is,
|
|
13275
|
-
isArray: () => isArray5,
|
|
13276
|
-
isBoolean: () => isBoolean2,
|
|
13277
|
-
isDate: () => isDate,
|
|
13278
|
-
isDefined: () => isDefined2,
|
|
13279
|
-
isFunction: () => isFunction4,
|
|
13280
|
-
isNot: () => isNot2,
|
|
13281
|
-
isNull: () => isNull,
|
|
13282
|
-
isNumber: () => isNumber2,
|
|
13283
|
-
isObject: () => isObject10,
|
|
13284
|
-
isObjectLike: () => isObjectLike3,
|
|
13285
|
-
isString: () => isString13,
|
|
13286
|
-
isUndefined: () => isUndefined11
|
|
13287
|
-
});
|
|
13288
|
-
module2.exports = __toCommonJS2(types_exports);
|
|
13289
|
-
var import_node = require_node3();
|
|
13290
|
-
var isObject10 = (arg) => {
|
|
13291
|
-
if (arg === null)
|
|
13292
|
-
return false;
|
|
13293
|
-
return typeof arg === "object" && arg.constructor === Object;
|
|
13294
|
-
};
|
|
13295
|
-
var isString13 = (arg) => typeof arg === "string";
|
|
13296
|
-
var isNumber2 = (arg) => typeof arg === "number";
|
|
13297
|
-
var isFunction4 = (arg) => typeof arg === "function";
|
|
13298
|
-
var isBoolean2 = (arg) => arg === true || arg === false;
|
|
13299
|
-
var isNull = (arg) => arg === null;
|
|
13300
|
-
var isArray5 = (arg) => Array.isArray(arg);
|
|
13301
|
-
var isDate = (d) => d instanceof Date;
|
|
13302
|
-
var isObjectLike3 = (arg) => {
|
|
13303
|
-
if (arg === null)
|
|
13304
|
-
return false;
|
|
13305
|
-
return typeof arg === "object";
|
|
13306
|
-
};
|
|
13307
|
-
var isDefined2 = (arg) => {
|
|
13308
|
-
return isObject10(arg) || isObjectLike3(arg) || isString13(arg) || isNumber2(arg) || isFunction4(arg) || isArray5(arg) || isObjectLike3(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
|
|
13309
|
-
};
|
|
13310
|
-
var isUndefined11 = (arg) => {
|
|
13311
|
-
return arg === void 0;
|
|
13312
|
-
};
|
|
13313
|
-
var TYPES = {
|
|
13314
|
-
boolean: isBoolean2,
|
|
13315
|
-
array: isArray5,
|
|
13316
|
-
object: isObject10,
|
|
13317
|
-
string: isString13,
|
|
13318
|
-
date: isDate,
|
|
13319
|
-
number: isNumber2,
|
|
13320
|
-
null: isNull,
|
|
13321
|
-
function: isFunction4,
|
|
13322
|
-
objectLike: isObjectLike3,
|
|
13323
|
-
node: import_node.isNode,
|
|
13324
|
-
htmlElement: import_node.isHtmlElement,
|
|
13325
|
-
defined: isDefined2
|
|
13326
|
-
};
|
|
13327
|
-
var is = (arg) => {
|
|
13328
|
-
return (...args) => {
|
|
13329
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
|
|
13330
|
-
};
|
|
13331
|
-
};
|
|
13332
|
-
var isNot2 = (arg) => {
|
|
13333
|
-
return (...args) => {
|
|
13334
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
|
|
13335
|
-
};
|
|
13336
|
-
};
|
|
13337
|
-
}
|
|
13338
|
-
});
|
|
13339
|
-
|
|
13340
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/array.js
|
|
13341
|
-
var require_array2 = __commonJS({
|
|
13342
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
|
|
13343
|
-
"use strict";
|
|
13344
|
-
var __defProp2 = Object.defineProperty;
|
|
13345
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13346
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13347
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13348
|
-
var __export2 = (target, all) => {
|
|
13349
|
-
for (var name in all)
|
|
13350
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13351
|
-
};
|
|
13352
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
13353
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
13354
|
-
for (let key of __getOwnPropNames2(from3))
|
|
13355
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
13356
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
13357
|
-
}
|
|
13358
|
-
return to;
|
|
13359
|
-
};
|
|
13360
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
13361
|
-
var array_exports = {};
|
|
13362
|
-
__export2(array_exports, {
|
|
13363
|
-
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
13364
|
-
createNestedObject: () => createNestedObject,
|
|
13365
|
-
cutArrayAfterValue: () => cutArrayAfterValue,
|
|
13366
|
-
cutArrayBeforeValue: () => cutArrayBeforeValue,
|
|
13367
|
-
getFrequencyInArray: () => getFrequencyInArray,
|
|
13368
|
-
joinArrays: () => joinArrays,
|
|
13369
|
-
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
13370
|
-
mergeArray: () => mergeArray,
|
|
13371
|
-
removeFromArray: () => removeFromArray,
|
|
13372
|
-
removeValueFromArray: () => removeValueFromArray,
|
|
13373
|
-
removeValueFromArrayAll: () => removeValueFromArrayAll,
|
|
13374
|
-
swapItemsInArray: () => swapItemsInArray
|
|
13375
|
-
});
|
|
13376
|
-
module2.exports = __toCommonJS2(array_exports);
|
|
13377
|
-
var import_object = require_object3();
|
|
13378
|
-
var import_types = require_types2();
|
|
13379
|
-
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
13380
|
-
return arr2.every((val) => arr1.includes(val));
|
|
13381
|
-
};
|
|
13382
|
-
var getFrequencyInArray = (arr, value2) => {
|
|
13383
|
-
return arr.reduce((count, currentValue) => {
|
|
13384
|
-
return currentValue === value2 ? count + 1 : count;
|
|
13385
|
-
}, 0);
|
|
13386
|
-
};
|
|
13387
|
-
var removeFromArray = (arr, index) => {
|
|
13388
|
-
if ((0, import_types.isString)(index))
|
|
13389
|
-
index = parseInt(index);
|
|
13390
|
-
if ((0, import_types.isNumber)(index)) {
|
|
13391
|
-
if (index < 0 || index >= arr.length || isNaN(index)) {
|
|
13392
|
-
throw new Error("Invalid index");
|
|
13393
|
-
}
|
|
13394
|
-
arr.splice(index, 1);
|
|
13395
|
-
} else if ((0, import_types.isArray)(index)) {
|
|
13396
|
-
index.forEach((idx) => removeFromArray(arr, idx));
|
|
13397
|
-
} else {
|
|
13398
|
-
throw new Error("Invalid index");
|
|
13399
|
-
}
|
|
13400
|
-
return arr;
|
|
13401
|
-
};
|
|
13402
|
-
var swapItemsInArray = (arr, i, j) => {
|
|
13403
|
-
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
13404
|
-
};
|
|
13405
|
-
var joinArrays = (...arrays) => {
|
|
13406
|
-
return [].concat(...arrays);
|
|
13407
|
-
};
|
|
13408
|
-
var mergeArray = (arr, excludeFrom = []) => {
|
|
13409
|
-
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
13410
|
-
};
|
|
13411
|
-
var mergeAndCloneIfArray = (obj) => {
|
|
13412
|
-
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
13413
|
-
};
|
|
13414
|
-
var cutArrayBeforeValue = (arr, value2) => {
|
|
13415
|
-
const index = arr.indexOf(value2);
|
|
13416
|
-
if (index !== -1) {
|
|
13417
|
-
return arr.slice(0, index);
|
|
13418
|
-
}
|
|
13419
|
-
return arr;
|
|
13420
|
-
};
|
|
13421
|
-
var cutArrayAfterValue = (arr, value2) => {
|
|
13422
|
-
if (!(0, import_types.isArray)(arr))
|
|
13423
|
-
return;
|
|
13424
|
-
const index = arr.indexOf(value2);
|
|
13425
|
-
if (index !== -1) {
|
|
13426
|
-
return arr.slice(index + 1);
|
|
13427
|
-
}
|
|
13428
|
-
return arr;
|
|
13429
|
-
};
|
|
13430
|
-
var createNestedObject = (arr, lastValue) => {
|
|
13431
|
-
const nestedObject = {};
|
|
13432
|
-
if (arr.length === 0) {
|
|
13433
|
-
return lastValue;
|
|
13434
|
-
}
|
|
13435
|
-
arr.reduce((obj, value2, index) => {
|
|
13436
|
-
if (!obj[value2]) {
|
|
13437
|
-
obj[value2] = {};
|
|
13438
|
-
}
|
|
13439
|
-
if (index === arr.length - 1 && lastValue) {
|
|
13440
|
-
obj[value2] = lastValue;
|
|
13441
|
-
}
|
|
13442
|
-
return obj[value2];
|
|
13443
|
-
}, nestedObject);
|
|
13444
|
-
return nestedObject;
|
|
13445
|
-
};
|
|
13446
|
-
var removeValueFromArray = (arr, value2) => {
|
|
13447
|
-
const index = arr.indexOf(value2);
|
|
13448
|
-
if (index > -1) {
|
|
13449
|
-
const newArray = [...arr];
|
|
13450
|
-
newArray.splice(index, 1);
|
|
13451
|
-
return newArray;
|
|
13452
|
-
}
|
|
13453
|
-
return arr;
|
|
13454
|
-
};
|
|
13455
|
-
var removeValueFromArrayAll = (arr, value2) => {
|
|
13456
|
-
return arr.filter((item) => item !== value2);
|
|
13457
|
-
};
|
|
13458
|
-
}
|
|
13459
|
-
});
|
|
13460
|
-
|
|
13461
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/string.js
|
|
13462
|
-
var require_string2 = __commonJS({
|
|
13463
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
|
|
13464
|
-
"use strict";
|
|
13465
|
-
var __defProp2 = Object.defineProperty;
|
|
13466
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13467
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13468
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13469
|
-
var __export2 = (target, all) => {
|
|
13470
|
-
for (var name in all)
|
|
13471
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13472
|
-
};
|
|
13473
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
13474
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
13475
|
-
for (let key of __getOwnPropNames2(from3))
|
|
13476
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
13477
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
13478
|
-
}
|
|
13479
|
-
return to;
|
|
13480
|
-
};
|
|
13481
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
13482
|
-
var string_exports = {};
|
|
13483
|
-
__export2(string_exports, {
|
|
13484
|
-
lowercaseFirstLetter: () => lowercaseFirstLetter,
|
|
13485
|
-
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields3,
|
|
13486
|
-
stringIncludesAny: () => stringIncludesAny,
|
|
13487
|
-
trimStringFromSymbols: () => trimStringFromSymbols
|
|
13488
|
-
});
|
|
13489
|
-
module2.exports = __toCommonJS2(string_exports);
|
|
13490
|
-
var stringIncludesAny = (str, characters3) => {
|
|
13491
|
-
for (const char3 of characters3) {
|
|
13492
|
-
if (str.includes(char3)) {
|
|
13493
|
-
return true;
|
|
13494
|
-
}
|
|
13495
|
-
}
|
|
13496
|
-
return false;
|
|
13497
|
-
};
|
|
13498
|
-
var trimStringFromSymbols = (str, characters3) => {
|
|
13499
|
-
const pattern = new RegExp(`[${characters3.join("\\")}]`, "g");
|
|
13500
|
-
return str.replace(pattern, "");
|
|
13501
|
-
};
|
|
13502
|
-
var brackRegex = {
|
|
13503
|
-
2: /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g,
|
|
13504
|
-
3: /\{\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}\}/g
|
|
13505
|
-
};
|
|
13506
|
-
var replaceLiteralsWithObjectFields3 = (str, state, options = {}) => {
|
|
13507
|
-
if (!str.includes(options.bracketsLength === 3 ? "{{{" : "{{"))
|
|
13508
|
-
return str;
|
|
13509
|
-
const reg = brackRegex[options.bracketsLength || 2];
|
|
13510
|
-
return str.replace(reg, (_, parentPath, variable) => {
|
|
13511
|
-
if (parentPath) {
|
|
13512
|
-
const parentLevels = parentPath.match(options.bracketsLength === 3 ? /\.\.\.\//g : /\.\.\//g).length;
|
|
13513
|
-
let parentState = state;
|
|
13514
|
-
for (let i = 0; i < parentLevels; i++) {
|
|
13515
|
-
parentState = parentState.parent;
|
|
13516
|
-
if (!parentState) {
|
|
13517
|
-
return "";
|
|
13518
|
-
}
|
|
13519
|
-
}
|
|
13520
|
-
const value2 = parentState[variable.trim()];
|
|
13521
|
-
return value2 !== void 0 ? `${value2}` : "";
|
|
13522
|
-
} else {
|
|
13523
|
-
const value2 = state[variable.trim()];
|
|
13524
|
-
return value2 !== void 0 ? `${value2}` : "";
|
|
13525
|
-
}
|
|
13526
|
-
});
|
|
13527
|
-
};
|
|
13528
|
-
var lowercaseFirstLetter = (inputString) => {
|
|
13529
|
-
return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
|
|
13530
|
-
};
|
|
13531
|
-
}
|
|
13532
|
-
});
|
|
13533
|
-
|
|
13534
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/object.js
|
|
13535
|
-
var require_object3 = __commonJS({
|
|
13536
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
|
|
13537
|
-
"use strict";
|
|
13538
|
-
var __defProp2 = Object.defineProperty;
|
|
13539
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13540
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13541
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13542
|
-
var __export2 = (target, all) => {
|
|
13543
|
-
for (var name in all)
|
|
13544
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13545
|
-
};
|
|
13546
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
13547
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
13548
|
-
for (let key of __getOwnPropNames2(from3))
|
|
13549
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
13550
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
13551
|
-
}
|
|
13552
|
-
return to;
|
|
13553
|
-
};
|
|
13554
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
13555
|
-
var object_exports = {};
|
|
13556
|
-
__export2(object_exports, {
|
|
13557
|
-
clone: () => clone,
|
|
13558
|
-
deepClone: () => deepClone3,
|
|
13559
|
-
deepCloneExclude: () => deepCloneExclude,
|
|
13560
|
-
deepCloneWithExtend: () => deepCloneWithExtend3,
|
|
13561
|
-
deepContains: () => deepContains,
|
|
13562
|
-
deepDestringify: () => deepDestringify,
|
|
13563
|
-
deepDiff: () => deepDiff,
|
|
13564
|
-
deepMerge: () => deepMerge7,
|
|
13565
|
-
deepStringify: () => deepStringify,
|
|
13566
|
-
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
13567
|
-
diff: () => diff,
|
|
13568
|
-
diffArrays: () => diffArrays,
|
|
13569
|
-
diffObjects: () => diffObjects,
|
|
13570
|
-
exec: () => exec6,
|
|
13571
|
-
flattenRecursive: () => flattenRecursive,
|
|
13572
|
-
hasOwnProperty: () => hasOwnProperty,
|
|
13573
|
-
isEmpty: () => isEmpty,
|
|
13574
|
-
isEmptyObject: () => isEmptyObject,
|
|
13575
|
-
isEqualDeep: () => isEqualDeep2,
|
|
13576
|
-
makeObjectWithoutPrototype: () => makeObjectWithoutPrototype,
|
|
13577
|
-
map: () => map,
|
|
13578
|
-
merge: () => merge6,
|
|
13579
|
-
mergeArrayExclude: () => mergeArrayExclude,
|
|
13580
|
-
mergeIfExisted: () => mergeIfExisted,
|
|
13581
|
-
objectToString: () => objectToString,
|
|
13582
|
-
overwrite: () => overwrite,
|
|
13583
|
-
overwriteDeep: () => overwriteDeep2,
|
|
13584
|
-
overwriteShallow: () => overwriteShallow3,
|
|
13585
|
-
removeFromObject: () => removeFromObject,
|
|
13586
|
-
stringToObject: () => stringToObject
|
|
13587
|
-
});
|
|
13588
|
-
module2.exports = __toCommonJS2(object_exports);
|
|
13589
|
-
var import_globals2 = require_globals2();
|
|
13590
|
-
var import_types = require_types2();
|
|
13591
|
-
var import_array = require_array2();
|
|
13592
|
-
var import_string = require_string2();
|
|
13593
|
-
var exec6 = (param, element, state, context) => {
|
|
13594
|
-
if ((0, import_types.isFunction)(param)) {
|
|
13595
|
-
return param(
|
|
13596
|
-
element,
|
|
13597
|
-
state || element.state,
|
|
13598
|
-
context || element.context
|
|
13599
|
-
);
|
|
13600
|
-
}
|
|
13601
|
-
return param;
|
|
13602
|
-
};
|
|
13603
|
-
var map = (obj, extention, element) => {
|
|
13604
|
-
for (const e in extention) {
|
|
13605
|
-
obj[e] = exec6(extention[e], element);
|
|
13606
|
-
}
|
|
13607
|
-
};
|
|
13608
|
-
var merge6 = (element, obj, excludeFrom = []) => {
|
|
13609
|
-
for (const e in obj) {
|
|
13610
|
-
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, e);
|
|
13611
|
-
if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
|
|
13612
|
-
continue;
|
|
13613
|
-
const elementProp = element[e];
|
|
13614
|
-
const objProp = obj[e];
|
|
13615
|
-
if (elementProp === void 0) {
|
|
13616
|
-
element[e] = objProp;
|
|
13617
|
-
}
|
|
13618
|
-
}
|
|
13619
|
-
return element;
|
|
13620
|
-
};
|
|
13621
|
-
var deepMerge7 = (element, extend, excludeFrom = []) => {
|
|
13622
|
-
for (const e in extend) {
|
|
13623
|
-
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
|
|
13624
|
-
if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
|
|
13625
|
-
continue;
|
|
13626
|
-
const elementProp = element[e];
|
|
13627
|
-
const extendProp = extend[e];
|
|
13628
|
-
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
13629
|
-
deepMerge7(elementProp, extendProp, excludeFrom);
|
|
13630
|
-
} else if (elementProp === void 0) {
|
|
13631
|
-
element[e] = extendProp;
|
|
13632
|
-
}
|
|
13633
|
-
}
|
|
13634
|
-
return element;
|
|
13635
|
-
};
|
|
13636
|
-
var clone = (obj, excludeFrom = []) => {
|
|
13637
|
-
const o = {};
|
|
13638
|
-
for (const prop in obj) {
|
|
13639
|
-
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13640
|
-
if (!hasOwnProperty2 || excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
13641
|
-
continue;
|
|
13642
|
-
o[prop] = obj[prop];
|
|
13643
|
-
}
|
|
13644
|
-
return o;
|
|
13645
|
-
};
|
|
13646
|
-
var deepCloneExclude = (obj, excludeFrom = []) => {
|
|
13647
|
-
if ((0, import_types.isArray)(obj)) {
|
|
13648
|
-
return obj.map((x) => deepCloneExclude(x, excludeFrom));
|
|
13649
|
-
}
|
|
13650
|
-
const o = {};
|
|
13651
|
-
for (const k in obj) {
|
|
13652
|
-
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, k);
|
|
13653
|
-
if (!hasOwnProperty2 || excludeFrom.includes(k) || k.startsWith("__"))
|
|
13654
|
-
continue;
|
|
13655
|
-
let v = obj[k];
|
|
13656
|
-
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
13657
|
-
v = mergeArrayExclude(v, excludeFrom);
|
|
13658
|
-
}
|
|
13659
|
-
if ((0, import_types.isArray)(v)) {
|
|
13660
|
-
o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
|
|
13661
|
-
} else if ((0, import_types.isObject)(v)) {
|
|
13662
|
-
o[k] = deepCloneExclude(v, excludeFrom);
|
|
13663
|
-
} else
|
|
13664
|
-
o[k] = v;
|
|
13665
|
-
}
|
|
13666
|
-
return o;
|
|
13667
|
-
};
|
|
13668
|
-
var mergeArrayExclude = (arr, excl = []) => {
|
|
13669
|
-
return arr.reduce((acc, curr) => deepMerge7(acc, deepCloneExclude(curr, excl)), {});
|
|
13670
|
-
};
|
|
13671
|
-
var deepClone3 = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
13672
|
-
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
13673
|
-
for (const prop in obj) {
|
|
13674
|
-
if (!Object.prototype.hasOwnProperty.call(obj, prop))
|
|
13675
|
-
continue;
|
|
13676
|
-
if (prop === "__proto__")
|
|
13677
|
-
continue;
|
|
13678
|
-
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
13679
|
-
continue;
|
|
13680
|
-
let objProp = obj[prop];
|
|
13681
|
-
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
13682
|
-
continue;
|
|
13683
|
-
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
13684
|
-
objProp = (0, import_array.mergeArray)(objProp);
|
|
13685
|
-
}
|
|
13686
|
-
if ((0, import_types.isObjectLike)(objProp)) {
|
|
13687
|
-
o[prop] = deepClone3(objProp, excludeFrom, cleanUndefined);
|
|
13688
|
-
} else
|
|
13689
|
-
o[prop] = objProp;
|
|
13690
|
-
}
|
|
13691
|
-
return o;
|
|
13692
|
-
};
|
|
13693
|
-
var deepCloneWithExtend3 = (obj, excludeFrom = ["node"], options = {}) => {
|
|
13694
|
-
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
13695
|
-
for (const prop in obj) {
|
|
13696
|
-
if (!Object.prototype.hasOwnProperty.call(obj, prop))
|
|
13697
|
-
continue;
|
|
13698
|
-
const objProp = obj[prop];
|
|
13699
|
-
if (excludeFrom.includes(prop) || prop.startsWith("__") || options.cleanUndefined && (0, import_types.isUndefined)(objProp) || options.cleanNull && (0, import_types.isNull)(objProp))
|
|
13700
|
-
continue;
|
|
13701
|
-
if ((0, import_types.isObjectLike)(objProp)) {
|
|
13702
|
-
o[prop] = deepCloneWithExtend3(objProp, excludeFrom, options);
|
|
13703
|
-
} else
|
|
13704
|
-
o[prop] = objProp;
|
|
13705
|
-
}
|
|
13706
|
-
return o;
|
|
13707
|
-
};
|
|
13708
|
-
var deepStringify = (obj, stringified = {}) => {
|
|
13709
|
-
for (const prop in obj) {
|
|
13710
|
-
const objProp = obj[prop];
|
|
13711
|
-
if ((0, import_types.isFunction)(objProp)) {
|
|
13712
|
-
stringified[prop] = objProp.toString();
|
|
13713
|
-
} else if ((0, import_types.isObject)(objProp)) {
|
|
13714
|
-
stringified[prop] = {};
|
|
13715
|
-
deepStringify(objProp, stringified[prop]);
|
|
13716
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
13717
|
-
stringified[prop] = [];
|
|
13718
|
-
objProp.forEach((v, i) => {
|
|
13719
|
-
if ((0, import_types.isObject)(v)) {
|
|
13720
|
-
stringified[prop][i] = {};
|
|
13721
|
-
deepStringify(v, stringified[prop][i]);
|
|
13722
|
-
} else if ((0, import_types.isFunction)(v)) {
|
|
13723
|
-
stringified[prop][i] = v.toString();
|
|
13724
|
-
} else {
|
|
13725
|
-
stringified[prop][i] = v;
|
|
13726
|
-
}
|
|
13727
|
-
});
|
|
13728
|
-
} else {
|
|
13729
|
-
stringified[prop] = objProp;
|
|
13730
|
-
}
|
|
13731
|
-
}
|
|
13732
|
-
return stringified;
|
|
13733
|
-
};
|
|
13734
|
-
var objectToString = (obj, indent = 0) => {
|
|
13735
|
-
const spaces = " ".repeat(indent);
|
|
13736
|
-
let str = "{\n";
|
|
13737
|
-
for (const [key, value2] of Object.entries(obj)) {
|
|
13738
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
|
|
13739
|
-
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
13740
|
-
str += `${spaces} ${stringedKey}: `;
|
|
13741
|
-
if ((0, import_types.isArray)(value2)) {
|
|
13742
|
-
str += "[\n";
|
|
13743
|
-
for (const element of value2) {
|
|
13744
|
-
if ((0, import_types.isObject)(element) && element !== null) {
|
|
13745
|
-
str += `${spaces} ${objectToString(element, indent + 2)},
|
|
13746
|
-
`;
|
|
13747
|
-
} else if ((0, import_types.isString)(element)) {
|
|
13748
|
-
str += `${spaces} '${element}',
|
|
13749
|
-
`;
|
|
13750
|
-
} else {
|
|
13751
|
-
str += `${spaces} ${element},
|
|
13752
|
-
`;
|
|
13753
|
-
}
|
|
13754
|
-
}
|
|
13755
|
-
str += `${spaces} ]`;
|
|
13756
|
-
} else if ((0, import_types.isObjectLike)(value2)) {
|
|
13757
|
-
str += objectToString(value2, indent + 1);
|
|
13758
|
-
} else if ((0, import_types.isString)(value2)) {
|
|
13759
|
-
str += (0, import_string.stringIncludesAny)(value2, ["\n", "'"]) ? `\`${value2}\`` : `'${value2}'`;
|
|
13760
|
-
} else {
|
|
13761
|
-
str += value2;
|
|
13762
|
-
}
|
|
13763
|
-
str += ",\n";
|
|
13764
|
-
}
|
|
13765
|
-
str += `${spaces}}`;
|
|
13766
|
-
return str;
|
|
13767
|
-
};
|
|
13768
|
-
var detachFunctionsFromObject = (obj, detached = {}) => {
|
|
13769
|
-
for (const prop in obj) {
|
|
13770
|
-
const objProp = obj[prop];
|
|
13771
|
-
if ((0, import_types.isFunction)(objProp))
|
|
13772
|
-
continue;
|
|
13773
|
-
else if ((0, import_types.isObject)(objProp)) {
|
|
13774
|
-
detached[prop] = {};
|
|
13775
|
-
deepStringify(objProp, detached[prop]);
|
|
13776
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
13777
|
-
detached[prop] = [];
|
|
13778
|
-
objProp.forEach((v, i) => {
|
|
13779
|
-
if ((0, import_types.isFunction)(v))
|
|
13780
|
-
return;
|
|
13781
|
-
if ((0, import_types.isObject)(v)) {
|
|
13782
|
-
detached[prop][i] = {};
|
|
13783
|
-
detachFunctionsFromObject(v, detached[prop][i]);
|
|
13784
|
-
} else {
|
|
13785
|
-
detached[prop][i] = v;
|
|
13786
|
-
}
|
|
13787
|
-
});
|
|
13788
|
-
} else {
|
|
13789
|
-
detached[prop] = objProp;
|
|
13790
|
-
}
|
|
13791
|
-
}
|
|
13792
|
-
return detached;
|
|
13793
|
-
};
|
|
13794
|
-
var deepDestringify = (obj, destringified = {}) => {
|
|
13795
|
-
for (const prop in obj) {
|
|
13796
|
-
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13797
|
-
if (!hasOwnProperty2)
|
|
13798
|
-
continue;
|
|
13799
|
-
const objProp = obj[prop];
|
|
13800
|
-
if ((0, import_types.isString)(objProp)) {
|
|
13801
|
-
if ((objProp.includes("=>") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) {
|
|
13802
|
-
try {
|
|
13803
|
-
const evalProp = import_globals2.window.eval(`(${objProp})`);
|
|
13804
|
-
destringified[prop] = evalProp;
|
|
13805
|
-
} catch (e) {
|
|
13806
|
-
if (e)
|
|
13807
|
-
destringified[prop] = objProp;
|
|
13808
|
-
}
|
|
13809
|
-
} else {
|
|
13810
|
-
destringified[prop] = objProp;
|
|
13811
|
-
}
|
|
13812
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
13813
|
-
destringified[prop] = [];
|
|
13814
|
-
objProp.forEach((arrProp) => {
|
|
13815
|
-
if ((0, import_types.isString)(arrProp)) {
|
|
13816
|
-
if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
|
|
13817
|
-
try {
|
|
13818
|
-
const evalProp = import_globals2.window.eval(`(${arrProp})`);
|
|
13819
|
-
destringified[prop].push(evalProp);
|
|
13820
|
-
} catch (e) {
|
|
13821
|
-
if (e)
|
|
13822
|
-
destringified[prop].push(arrProp);
|
|
13823
|
-
}
|
|
13824
|
-
} else {
|
|
13825
|
-
destringified[prop].push(arrProp);
|
|
13826
|
-
}
|
|
13827
|
-
} else if ((0, import_types.isObject)(arrProp)) {
|
|
13828
|
-
destringified[prop].push(deepDestringify(arrProp));
|
|
13829
|
-
} else {
|
|
13830
|
-
destringified[prop].push(arrProp);
|
|
13831
|
-
}
|
|
13832
|
-
});
|
|
13833
|
-
} else if ((0, import_types.isObject)(objProp)) {
|
|
13834
|
-
destringified[prop] = deepDestringify(objProp, destringified[prop]);
|
|
13835
|
-
} else {
|
|
13836
|
-
destringified[prop] = objProp;
|
|
13837
|
-
}
|
|
13838
|
-
}
|
|
13839
|
-
return destringified;
|
|
13840
|
-
};
|
|
13841
|
-
var stringToObject = (str, opts = { verbose: true }) => {
|
|
13842
|
-
try {
|
|
13843
|
-
return import_globals2.window.eval("(" + str + ")");
|
|
13844
|
-
} catch (e) {
|
|
13845
|
-
if (opts.verbose)
|
|
13846
|
-
console.warn(e);
|
|
13847
|
-
}
|
|
13848
|
-
};
|
|
13849
|
-
var diffObjects = (original, objToDiff, cache2) => {
|
|
13850
|
-
for (const e in objToDiff) {
|
|
13851
|
-
if (e === "ref")
|
|
13852
|
-
continue;
|
|
13853
|
-
const originalProp = original[e];
|
|
13854
|
-
const objToDiffProp = objToDiff[e];
|
|
13855
|
-
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
13856
|
-
cache2[e] = {};
|
|
13857
|
-
diff(originalProp, objToDiffProp, cache2[e]);
|
|
13858
|
-
} else if (objToDiffProp !== void 0) {
|
|
13859
|
-
cache2[e] = objToDiffProp;
|
|
13860
|
-
}
|
|
13861
|
-
}
|
|
13862
|
-
return cache2;
|
|
13863
|
-
};
|
|
13864
|
-
var diffArrays = (original, objToDiff, cache2) => {
|
|
13865
|
-
if (original.length !== objToDiff.length) {
|
|
13866
|
-
cache2 = objToDiff;
|
|
13867
|
-
} else {
|
|
13868
|
-
const diffArr = [];
|
|
13869
|
-
for (let i = 0; i < original.length; i++) {
|
|
13870
|
-
const diffObj = diff(original[i], objToDiff[i]);
|
|
13871
|
-
if (Object.keys(diffObj).length > 0) {
|
|
13872
|
-
diffArr.push(diffObj);
|
|
13873
|
-
}
|
|
13874
|
-
}
|
|
13875
|
-
if (diffArr.length > 0) {
|
|
13876
|
-
cache2 = diffArr;
|
|
13877
|
-
}
|
|
13878
|
-
}
|
|
13879
|
-
return cache2;
|
|
13880
|
-
};
|
|
13881
|
-
var diff = (original, objToDiff, cache2 = {}) => {
|
|
13882
|
-
if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
|
|
13883
|
-
cache2 = [];
|
|
13884
|
-
diffArrays(original, objToDiff, cache2);
|
|
13885
|
-
} else {
|
|
13886
|
-
diffObjects(original, objToDiff, cache2);
|
|
13887
|
-
}
|
|
13888
|
-
return cache2;
|
|
13889
|
-
};
|
|
13890
|
-
var hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
|
|
13891
|
-
var isEmpty = (o) => Object.keys(o).length === 0;
|
|
13892
|
-
var isEmptyObject = (o) => (0, import_types.isObject)(o) && isEmpty(o);
|
|
13893
|
-
var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
|
|
13894
|
-
var deepDiff = (lhs, rhs) => {
|
|
13895
|
-
if (lhs === rhs)
|
|
13896
|
-
return {};
|
|
13897
|
-
if (!(0, import_types.isObjectLike)(lhs) || !(0, import_types.isObjectLike)(rhs))
|
|
13898
|
-
return rhs;
|
|
13899
|
-
const deletedValues = Object.keys(lhs).reduce((acc, key) => {
|
|
13900
|
-
if (!hasOwnProperty(rhs, key)) {
|
|
13901
|
-
acc[key] = void 0;
|
|
13902
|
-
}
|
|
13903
|
-
return acc;
|
|
13904
|
-
}, makeObjectWithoutPrototype());
|
|
13905
|
-
if ((0, import_types.isDate)(lhs) || (0, import_types.isDate)(rhs)) {
|
|
13906
|
-
if (lhs.valueOf() === rhs.valueOf())
|
|
13907
|
-
return {};
|
|
13908
|
-
return rhs;
|
|
13909
|
-
}
|
|
13910
|
-
return Object.keys(rhs).reduce((acc, key) => {
|
|
13911
|
-
if (!hasOwnProperty(lhs, key)) {
|
|
13912
|
-
acc[key] = rhs[key];
|
|
13913
|
-
return acc;
|
|
13914
|
-
}
|
|
13915
|
-
const difference = diff(lhs[key], rhs[key]);
|
|
13916
|
-
if (isEmptyObject(difference) && !(0, import_types.isDate)(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key]))) {
|
|
13917
|
-
return acc;
|
|
13918
|
-
}
|
|
13919
|
-
acc[key] = difference;
|
|
13920
|
-
return acc;
|
|
13921
|
-
}, deletedValues);
|
|
13922
|
-
};
|
|
13923
|
-
var overwrite = (element, params, excludeFrom = []) => {
|
|
13924
|
-
const { ref } = element;
|
|
13925
|
-
const changes = {};
|
|
13926
|
-
for (const e in params) {
|
|
13927
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
13928
|
-
continue;
|
|
13929
|
-
const elementProp = element[e];
|
|
13930
|
-
const paramsProp = params[e];
|
|
13931
|
-
if (paramsProp) {
|
|
13932
|
-
ref.__cache[e] = changes[e] = elementProp;
|
|
13933
|
-
ref[e] = paramsProp;
|
|
13934
|
-
}
|
|
13935
|
-
}
|
|
13936
|
-
return changes;
|
|
13937
|
-
};
|
|
13938
|
-
var overwriteShallow3 = (obj, params, excludeFrom = []) => {
|
|
13939
|
-
for (const e in params) {
|
|
13940
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
13941
|
-
continue;
|
|
13942
|
-
obj[e] = params[e];
|
|
13943
|
-
}
|
|
13944
|
-
return obj;
|
|
13945
|
-
};
|
|
13946
|
-
var overwriteDeep2 = (obj, params, excludeFrom = []) => {
|
|
13947
|
-
for (const e in params) {
|
|
13948
|
-
if (e === "__proto__")
|
|
13949
|
-
continue;
|
|
13950
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
13951
|
-
continue;
|
|
13952
|
-
const objProp = obj[e];
|
|
13953
|
-
const paramsProp = params[e];
|
|
13954
|
-
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
13955
|
-
overwriteDeep2(objProp, paramsProp);
|
|
13956
|
-
} else if (paramsProp !== void 0) {
|
|
13957
|
-
obj[e] = paramsProp;
|
|
13958
|
-
}
|
|
13959
|
-
}
|
|
13960
|
-
return obj;
|
|
13961
|
-
};
|
|
13962
|
-
var mergeIfExisted = (a, b) => {
|
|
13963
|
-
if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
|
|
13964
|
-
return deepMerge7(a, b);
|
|
13965
|
-
return a || b;
|
|
13966
|
-
};
|
|
13967
|
-
var flattenRecursive = (param, prop, stack = []) => {
|
|
13968
|
-
const objectized = (0, import_array.mergeAndCloneIfArray)(param);
|
|
13969
|
-
stack.push(objectized);
|
|
13970
|
-
const extendOfExtend = objectized[prop];
|
|
13971
|
-
if (extendOfExtend)
|
|
13972
|
-
flattenRecursive(extendOfExtend, prop, stack);
|
|
13973
|
-
delete objectized[prop];
|
|
13974
|
-
return stack;
|
|
13975
|
-
};
|
|
13976
|
-
var isEqualDeep2 = (param, element, visited = /* @__PURE__ */ new Set()) => {
|
|
13977
|
-
if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
|
|
13978
|
-
return param === element;
|
|
13979
|
-
}
|
|
13980
|
-
if (visited.has(param) || visited.has(element)) {
|
|
13981
|
-
return true;
|
|
13982
|
-
}
|
|
13983
|
-
visited.add(param);
|
|
13984
|
-
visited.add(element);
|
|
13985
|
-
const keysParam = Object.keys(param);
|
|
13986
|
-
const keysElement = Object.keys(element);
|
|
13987
|
-
if (keysParam.length !== keysElement.length) {
|
|
13988
|
-
return false;
|
|
13989
|
-
}
|
|
13990
|
-
for (const key of keysParam) {
|
|
13991
|
-
if (!keysElement.includes(key)) {
|
|
13992
|
-
return false;
|
|
13993
|
-
}
|
|
13994
|
-
const paramProp = param[key];
|
|
13995
|
-
const elementProp = element[key];
|
|
13996
|
-
if (!isEqualDeep2(paramProp, elementProp, visited)) {
|
|
13997
|
-
return false;
|
|
13998
|
-
}
|
|
13999
|
-
}
|
|
14000
|
-
return true;
|
|
14001
|
-
};
|
|
14002
|
-
var deepContains = (obj1, obj2) => {
|
|
14003
|
-
if (typeof obj1 !== typeof obj2) {
|
|
14004
|
-
return false;
|
|
14005
|
-
}
|
|
14006
|
-
if ((0, import_types.isObjectLike)(obj1)) {
|
|
14007
|
-
if (Array.isArray(obj1) && Array.isArray(obj2)) {
|
|
14008
|
-
if (obj1.length !== obj2.length) {
|
|
14009
|
-
return false;
|
|
14010
|
-
}
|
|
14011
|
-
for (let i = 0; i < obj1.length; i++) {
|
|
14012
|
-
if (!deepContains(obj1[i], obj2[i])) {
|
|
14013
|
-
return false;
|
|
14014
|
-
}
|
|
14015
|
-
}
|
|
14016
|
-
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
|
|
14017
|
-
for (const key in obj1) {
|
|
14018
|
-
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj2, key);
|
|
14019
|
-
if (!hasOwnProperty2 || !deepContains(obj1[key], obj2[key])) {
|
|
14020
|
-
return false;
|
|
14021
|
-
}
|
|
14022
|
-
}
|
|
14023
|
-
}
|
|
14024
|
-
} else {
|
|
14025
|
-
return obj2 === obj1;
|
|
14026
|
-
}
|
|
14027
|
-
return true;
|
|
14028
|
-
};
|
|
14029
|
-
var removeFromObject = (obj, props2) => {
|
|
14030
|
-
if (props2 === void 0 || props2 === null)
|
|
14031
|
-
return obj;
|
|
14032
|
-
if ((0, import_types.is)(props2)("string", "number")) {
|
|
14033
|
-
delete obj[props2];
|
|
14034
|
-
} else if ((0, import_types.isArray)(props2)) {
|
|
14035
|
-
props2.forEach((prop) => delete obj[prop]);
|
|
14036
|
-
} else {
|
|
14037
|
-
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
14038
|
-
}
|
|
14039
|
-
return obj;
|
|
14040
|
-
};
|
|
14041
|
-
}
|
|
14042
|
-
});
|
|
14043
|
-
|
|
14044
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/function.js
|
|
14045
|
-
var require_function2 = __commonJS({
|
|
14046
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
|
|
14047
|
-
"use strict";
|
|
14048
|
-
var __defProp2 = Object.defineProperty;
|
|
14049
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14050
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14051
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14052
|
-
var __export2 = (target, all) => {
|
|
14053
|
-
for (var name in all)
|
|
14054
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14055
|
-
};
|
|
14056
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14057
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14058
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14059
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14060
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14061
|
-
}
|
|
14062
|
-
return to;
|
|
14063
|
-
};
|
|
14064
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14065
|
-
var function_exports = {};
|
|
14066
|
-
__export2(function_exports, {
|
|
14067
|
-
debounce: () => debounce,
|
|
14068
|
-
debounceOnContext: () => debounceOnContext,
|
|
14069
|
-
isStringFunction: () => isStringFunction,
|
|
14070
|
-
memoize: () => memoize3
|
|
14071
|
-
});
|
|
14072
|
-
module2.exports = __toCommonJS2(function_exports);
|
|
14073
|
-
function debounce(func, wait, immediate) {
|
|
14074
|
-
let timeout;
|
|
14075
|
-
return function() {
|
|
14076
|
-
const context = this;
|
|
14077
|
-
const args = arguments;
|
|
14078
|
-
const later = function() {
|
|
14079
|
-
timeout = null;
|
|
14080
|
-
if (!immediate)
|
|
14081
|
-
func.apply(context, args);
|
|
14082
|
-
};
|
|
14083
|
-
const callNow = immediate && !timeout;
|
|
14084
|
-
clearTimeout(timeout);
|
|
14085
|
-
timeout = setTimeout(later, wait);
|
|
14086
|
-
if (callNow)
|
|
14087
|
-
func.apply(context, args);
|
|
14088
|
-
};
|
|
14089
|
-
}
|
|
14090
|
-
var debounceOnContext = (element, func, timeout = 300) => {
|
|
14091
|
-
let timer;
|
|
14092
|
-
return (...args) => {
|
|
14093
|
-
clearTimeout(timer);
|
|
14094
|
-
timer = setTimeout(() => {
|
|
14095
|
-
func.apply(element, args);
|
|
14096
|
-
}, timeout);
|
|
14097
|
-
};
|
|
14098
|
-
};
|
|
14099
|
-
var memoize3 = (fn) => {
|
|
14100
|
-
const cache2 = {};
|
|
14101
|
-
return (...args) => {
|
|
14102
|
-
const n = args[0];
|
|
14103
|
-
if (n in cache2) {
|
|
14104
|
-
return cache2[n];
|
|
14105
|
-
} else {
|
|
14106
|
-
const result = fn(n);
|
|
14107
|
-
cache2[n] = result;
|
|
14108
|
-
return result;
|
|
14109
|
-
}
|
|
14110
|
-
};
|
|
14111
|
-
};
|
|
14112
|
-
var isStringFunction = (inputString) => {
|
|
14113
|
-
const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
|
|
14114
|
-
return functionRegex.test(inputString);
|
|
14115
|
-
};
|
|
14116
|
-
}
|
|
14117
|
-
});
|
|
14118
|
-
|
|
14119
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/log.js
|
|
14120
|
-
var require_log2 = __commonJS({
|
|
14121
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
|
|
14122
|
-
"use strict";
|
|
14123
|
-
var __defProp2 = Object.defineProperty;
|
|
14124
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14125
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14126
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14127
|
-
var __export2 = (target, all) => {
|
|
14128
|
-
for (var name in all)
|
|
14129
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14130
|
-
};
|
|
14131
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14132
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14133
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14134
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14135
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14136
|
-
}
|
|
14137
|
-
return to;
|
|
14138
|
-
};
|
|
14139
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14140
|
-
var log_exports = {};
|
|
14141
|
-
__export2(log_exports, {
|
|
14142
|
-
logGroupIf: () => logGroupIf,
|
|
14143
|
-
logIf: () => logIf
|
|
14144
|
-
});
|
|
14145
|
-
module2.exports = __toCommonJS2(log_exports);
|
|
14146
|
-
var logIf = (bool, ...arg) => {
|
|
14147
|
-
if (bool)
|
|
14148
|
-
arg.map((v) => console.log(v));
|
|
14149
|
-
};
|
|
14150
|
-
var logGroupIf = (bool, key, ...arg) => {
|
|
14151
|
-
if (bool) {
|
|
14152
|
-
console.group(key);
|
|
14153
|
-
arg.map((v) => console.log(v));
|
|
14154
|
-
console.groupEnd(key);
|
|
14155
|
-
}
|
|
14156
|
-
};
|
|
14157
|
-
}
|
|
14158
|
-
});
|
|
14159
|
-
|
|
14160
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/cookie.js
|
|
14161
|
-
var require_cookie2 = __commonJS({
|
|
14162
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
14163
|
-
"use strict";
|
|
14164
|
-
var __defProp2 = Object.defineProperty;
|
|
14165
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14166
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14167
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14168
|
-
var __export2 = (target, all) => {
|
|
14169
|
-
for (var name in all)
|
|
14170
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14171
|
-
};
|
|
14172
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14173
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14174
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14175
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14176
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14177
|
-
}
|
|
14178
|
-
return to;
|
|
14179
|
-
};
|
|
14180
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14181
|
-
var cookie_exports = {};
|
|
14182
|
-
__export2(cookie_exports, {
|
|
14183
|
-
getCookie: () => getCookie,
|
|
14184
|
-
isMobile: () => isMobile,
|
|
14185
|
-
setCookie: () => setCookie
|
|
14186
|
-
});
|
|
14187
|
-
module2.exports = __toCommonJS2(cookie_exports);
|
|
14188
|
-
var import_types = require_types2();
|
|
14189
|
-
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
14190
|
-
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
14191
|
-
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
14192
|
-
return;
|
|
14193
|
-
const d = /* @__PURE__ */ new Date();
|
|
14194
|
-
d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
|
|
14195
|
-
const expires = `expires=${d.toUTCString()}`;
|
|
14196
|
-
document.cookie = `${cname}=${cvalue};${expires};path=/`;
|
|
14197
|
-
};
|
|
14198
|
-
var getCookie = (cname) => {
|
|
14199
|
-
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
14200
|
-
return;
|
|
14201
|
-
const name = `${cname}=`;
|
|
14202
|
-
const decodedCookie = decodeURIComponent(document.cookie);
|
|
14203
|
-
const ca = decodedCookie.split(";");
|
|
14204
|
-
for (let i = 0; i < ca.length; i++) {
|
|
14205
|
-
let c = ca[i];
|
|
14206
|
-
while (c.charAt(0) === " ")
|
|
14207
|
-
c = c.substring(1);
|
|
14208
|
-
if (c.indexOf(name) === 0)
|
|
14209
|
-
return c.substring(name.length, c.length);
|
|
14210
|
-
}
|
|
14211
|
-
return "";
|
|
14212
|
-
};
|
|
14213
|
-
}
|
|
14214
|
-
});
|
|
14215
|
-
|
|
14216
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/tags.js
|
|
14217
|
-
var require_tags2 = __commonJS({
|
|
14218
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
|
|
14219
|
-
"use strict";
|
|
14220
|
-
var __defProp2 = Object.defineProperty;
|
|
14221
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14222
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14223
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14224
|
-
var __export2 = (target, all) => {
|
|
14225
|
-
for (var name in all)
|
|
14226
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14227
|
-
};
|
|
14228
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14229
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14230
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14231
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14232
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14233
|
-
}
|
|
14234
|
-
return to;
|
|
14235
|
-
};
|
|
14236
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14237
|
-
var tags_exports = {};
|
|
14238
|
-
__export2(tags_exports, {
|
|
14239
|
-
HTML_TAGS: () => HTML_TAGS,
|
|
14240
|
-
isValidHtmlTag: () => isValidHtmlTag
|
|
14241
|
-
});
|
|
14242
|
-
module2.exports = __toCommonJS2(tags_exports);
|
|
14243
|
-
var HTML_TAGS = {
|
|
14244
|
-
root: [
|
|
14245
|
-
"body",
|
|
14246
|
-
"html"
|
|
14247
|
-
],
|
|
14248
|
-
head: [
|
|
14249
|
-
"title",
|
|
14250
|
-
"base",
|
|
14251
|
-
"meta",
|
|
14252
|
-
"style"
|
|
14253
|
-
],
|
|
14254
|
-
body: [
|
|
14255
|
-
"string",
|
|
14256
|
-
"fragment",
|
|
14257
|
-
"a",
|
|
14258
|
-
"abbr",
|
|
14259
|
-
"acronym",
|
|
14260
|
-
"address",
|
|
14261
|
-
"applet",
|
|
14262
|
-
"area",
|
|
14263
|
-
"article",
|
|
14264
|
-
"aside",
|
|
14265
|
-
"audio",
|
|
14266
|
-
"b",
|
|
14267
|
-
"basefont",
|
|
14268
|
-
"bdi",
|
|
14269
|
-
"bdo",
|
|
14270
|
-
"big",
|
|
14271
|
-
"blockquote",
|
|
14272
|
-
"br",
|
|
14273
|
-
"button",
|
|
14274
|
-
"canvas",
|
|
14275
|
-
"caption",
|
|
14276
|
-
"center",
|
|
14277
|
-
"cite",
|
|
14278
|
-
"code",
|
|
14279
|
-
"search",
|
|
14280
|
-
"col",
|
|
14281
|
-
"colgroup",
|
|
14282
|
-
"data",
|
|
14283
|
-
"datalist",
|
|
14284
|
-
"dd",
|
|
14285
|
-
"del",
|
|
14286
|
-
"details",
|
|
14287
|
-
"dfn",
|
|
14288
|
-
"dialog",
|
|
14289
|
-
"dir",
|
|
14290
|
-
"div",
|
|
14291
|
-
"dl",
|
|
14292
|
-
"dt",
|
|
14293
|
-
"em",
|
|
14294
|
-
"embed",
|
|
14295
|
-
"fieldset",
|
|
14296
|
-
"figcaption",
|
|
14297
|
-
"figure",
|
|
14298
|
-
"font",
|
|
14299
|
-
"footer",
|
|
14300
|
-
"form",
|
|
14301
|
-
"frame",
|
|
14302
|
-
"frameset",
|
|
14303
|
-
"h1",
|
|
14304
|
-
"h2",
|
|
14305
|
-
"h3",
|
|
14306
|
-
"h4",
|
|
14307
|
-
"h5",
|
|
14308
|
-
"h6",
|
|
14309
|
-
"head",
|
|
14310
|
-
"header",
|
|
14311
|
-
"hr",
|
|
14312
|
-
"i",
|
|
14313
|
-
"iframe",
|
|
14314
|
-
"img",
|
|
14315
|
-
"input",
|
|
14316
|
-
"ins",
|
|
14317
|
-
"kbd",
|
|
14318
|
-
"label",
|
|
14319
|
-
"legend",
|
|
14320
|
-
"li",
|
|
14321
|
-
"link",
|
|
14322
|
-
"main",
|
|
14323
|
-
"map",
|
|
14324
|
-
"mark",
|
|
14325
|
-
"meter",
|
|
14326
|
-
"nav",
|
|
14327
|
-
"noframes",
|
|
14328
|
-
"noscript",
|
|
14329
|
-
"object",
|
|
14330
|
-
"ol",
|
|
14331
|
-
"optgroup",
|
|
14332
|
-
"option",
|
|
14333
|
-
"output",
|
|
14334
|
-
"p",
|
|
14335
|
-
"param",
|
|
14336
|
-
"picture",
|
|
14337
|
-
"pre",
|
|
14338
|
-
"progress",
|
|
14339
|
-
"hgroup",
|
|
14340
|
-
"q",
|
|
14341
|
-
"rp",
|
|
14342
|
-
"rt",
|
|
14343
|
-
"ruby",
|
|
14344
|
-
"s",
|
|
14345
|
-
"samp",
|
|
14346
|
-
"script",
|
|
14347
|
-
"section",
|
|
14348
|
-
"select",
|
|
14349
|
-
"small",
|
|
14350
|
-
"source",
|
|
14351
|
-
"span",
|
|
14352
|
-
"strike",
|
|
14353
|
-
"strong",
|
|
14354
|
-
"sub",
|
|
14355
|
-
"summary",
|
|
14356
|
-
"sup",
|
|
14357
|
-
"table",
|
|
14358
|
-
"tbody",
|
|
14359
|
-
"td",
|
|
14360
|
-
"template",
|
|
14361
|
-
"hgroup",
|
|
14362
|
-
"textarea",
|
|
14363
|
-
"tfoot",
|
|
14364
|
-
"th",
|
|
14365
|
-
"thead",
|
|
14366
|
-
"time",
|
|
14367
|
-
"tr",
|
|
14368
|
-
"track",
|
|
14369
|
-
"tt",
|
|
14370
|
-
"u",
|
|
14371
|
-
"ul",
|
|
14372
|
-
"var",
|
|
14373
|
-
"video",
|
|
14374
|
-
"wbr",
|
|
14375
|
-
// SVG
|
|
14376
|
-
"svg",
|
|
14377
|
-
"path"
|
|
14378
|
-
]
|
|
14379
|
-
};
|
|
14380
|
-
var isValidHtmlTag = (arg) => HTML_TAGS.body.includes(arg);
|
|
14381
|
-
}
|
|
14382
|
-
});
|
|
14383
|
-
|
|
14384
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/index.js
|
|
14385
|
-
var require_cjs13 = __commonJS({
|
|
14386
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
|
|
14387
|
-
"use strict";
|
|
14388
|
-
var __defProp2 = Object.defineProperty;
|
|
14389
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14390
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14391
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14392
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14393
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14394
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14395
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14396
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14397
|
-
}
|
|
14398
|
-
return to;
|
|
14399
|
-
};
|
|
14400
|
-
var __reExport2 = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
|
|
14401
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14402
|
-
var utils_exports = {};
|
|
14403
|
-
module2.exports = __toCommonJS2(utils_exports);
|
|
14404
|
-
__reExport2(utils_exports, require_key2(), module2.exports);
|
|
14405
|
-
__reExport2(utils_exports, require_env2(), module2.exports);
|
|
14406
|
-
__reExport2(utils_exports, require_types2(), module2.exports);
|
|
14407
|
-
__reExport2(utils_exports, require_object3(), module2.exports);
|
|
14408
|
-
__reExport2(utils_exports, require_function2(), module2.exports);
|
|
14409
|
-
__reExport2(utils_exports, require_array2(), module2.exports);
|
|
14410
|
-
__reExport2(utils_exports, require_node3(), module2.exports);
|
|
14411
|
-
__reExport2(utils_exports, require_log2(), module2.exports);
|
|
14412
|
-
__reExport2(utils_exports, require_string2(), module2.exports);
|
|
14413
|
-
__reExport2(utils_exports, require_globals2(), module2.exports);
|
|
14414
|
-
__reExport2(utils_exports, require_cookie2(), module2.exports);
|
|
14415
|
-
__reExport2(utils_exports, require_tags2(), module2.exports);
|
|
14416
|
-
}
|
|
14417
|
-
});
|
|
14418
|
-
|
|
14419
|
-
// ../../../domql/node_modules/@domql/registry/dist/cjs/methods.js
|
|
14420
|
-
var require_methods3 = __commonJS({
|
|
14421
|
-
"../../../domql/node_modules/@domql/registry/dist/cjs/methods.js"(exports, module2) {
|
|
14422
|
-
"use strict";
|
|
14423
|
-
var __defProp2 = Object.defineProperty;
|
|
14424
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14425
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14426
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14427
|
-
var __export2 = (target, all) => {
|
|
14428
|
-
for (var name in all)
|
|
14429
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14430
|
-
};
|
|
14431
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14432
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14433
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14434
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14435
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14436
|
-
}
|
|
14437
|
-
return to;
|
|
14438
|
-
};
|
|
14439
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14440
|
-
var methods_exports = {};
|
|
14441
|
-
__export2(methods_exports, {
|
|
14442
|
-
DEFAULT_METHODS: () => DEFAULT_METHODS
|
|
14443
|
-
});
|
|
14444
|
-
module2.exports = __toCommonJS2(methods_exports);
|
|
14445
|
-
var import_utils32 = require_cjs13();
|
|
14446
|
-
var DEFAULT_METHODS = {
|
|
14447
|
-
key: {},
|
|
14448
|
-
tag: {},
|
|
14449
|
-
if: {},
|
|
14450
|
-
define: {},
|
|
14451
|
-
attr: {},
|
|
14452
|
-
style: {},
|
|
14453
|
-
content: {},
|
|
14454
|
-
class: {},
|
|
14455
|
-
props: {},
|
|
14456
|
-
state: {},
|
|
14457
|
-
method: {},
|
|
14458
|
-
transform: {},
|
|
14459
|
-
on: {},
|
|
14460
|
-
ref: {},
|
|
14461
|
-
extend: {},
|
|
14462
|
-
childExtend: {},
|
|
14463
|
-
text: (element, state) => {
|
|
14464
|
-
element.ref.text = {
|
|
14465
|
-
tag: "text",
|
|
14466
|
-
text: (0, import_utils32.exec)(element.text, element, state)
|
|
14467
|
-
};
|
|
14468
|
-
},
|
|
14469
|
-
innerHTML: {},
|
|
14470
|
-
set: {},
|
|
14471
|
-
update: {},
|
|
14472
|
-
remove: {}
|
|
14473
|
-
};
|
|
14474
|
-
}
|
|
14475
|
-
});
|
|
14476
|
-
|
|
14477
|
-
// ../../../domql/node_modules/@domql/registry/dist/cjs/tags.js
|
|
14478
|
-
var require_tags3 = __commonJS({
|
|
14479
|
-
"../../../domql/node_modules/@domql/registry/dist/cjs/tags.js"(exports, module2) {
|
|
14480
|
-
"use strict";
|
|
14481
|
-
var __defProp2 = Object.defineProperty;
|
|
14482
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14483
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14484
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14485
|
-
var __export2 = (target, all) => {
|
|
14486
|
-
for (var name in all)
|
|
14487
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14488
|
-
};
|
|
14489
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14490
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14491
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14492
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14493
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14494
|
-
}
|
|
14495
|
-
return to;
|
|
14496
|
-
};
|
|
14497
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14498
|
-
var tags_exports = {};
|
|
14499
|
-
__export2(tags_exports, {
|
|
14500
|
-
TAGS: () => TAGS
|
|
14501
|
-
});
|
|
14502
|
-
module2.exports = __toCommonJS2(tags_exports);
|
|
14503
|
-
var TAGS = {
|
|
14504
|
-
root: [
|
|
14505
|
-
"body",
|
|
14506
|
-
"html"
|
|
14507
|
-
],
|
|
14508
|
-
head: [
|
|
14509
|
-
"title",
|
|
14510
|
-
"base",
|
|
14511
|
-
"meta",
|
|
14512
|
-
"style"
|
|
14513
|
-
],
|
|
14514
|
-
body: [
|
|
14515
|
-
"html",
|
|
14516
|
-
"body",
|
|
14517
|
-
"string",
|
|
14518
|
-
"fragment",
|
|
14519
|
-
"a",
|
|
14520
|
-
"abbr",
|
|
14521
|
-
"acronym",
|
|
14522
|
-
"address",
|
|
14523
|
-
"applet",
|
|
14524
|
-
"area",
|
|
14525
|
-
"article",
|
|
14526
|
-
"aside",
|
|
14527
|
-
"audio",
|
|
14528
|
-
"b",
|
|
14529
|
-
"basefont",
|
|
14530
|
-
"bdi",
|
|
14531
|
-
"bdo",
|
|
14532
|
-
"big",
|
|
14533
|
-
"blockquote",
|
|
14534
|
-
"br",
|
|
14535
|
-
"button",
|
|
14536
|
-
"canvas",
|
|
14537
|
-
"caption",
|
|
14538
|
-
"center",
|
|
14539
|
-
"cite",
|
|
14540
|
-
"code",
|
|
14541
|
-
"col",
|
|
14542
|
-
"colgroup",
|
|
14543
|
-
"data",
|
|
14544
|
-
"datalist",
|
|
14545
|
-
"dd",
|
|
14546
|
-
"del",
|
|
14547
|
-
"details",
|
|
14548
|
-
"dfn",
|
|
14549
|
-
"dialog",
|
|
14550
|
-
"dir",
|
|
14551
|
-
"div",
|
|
14552
|
-
"dl",
|
|
14553
|
-
"dt",
|
|
14554
|
-
"em",
|
|
14555
|
-
"embed",
|
|
14556
|
-
"fieldset",
|
|
14557
|
-
"figcaption",
|
|
14558
|
-
"figure",
|
|
14559
|
-
"font",
|
|
14560
|
-
"footer",
|
|
14561
|
-
"form",
|
|
14562
|
-
"frame",
|
|
14563
|
-
"frameset",
|
|
14564
|
-
"h1",
|
|
14565
|
-
"h2",
|
|
14566
|
-
"h3",
|
|
14567
|
-
"h4",
|
|
14568
|
-
"h5",
|
|
14569
|
-
"h6",
|
|
14570
|
-
"head",
|
|
14571
|
-
"header",
|
|
14572
|
-
"hr",
|
|
14573
|
-
"i",
|
|
14574
|
-
"iframe",
|
|
14575
|
-
"img",
|
|
14576
|
-
"input",
|
|
14577
|
-
"ins",
|
|
14578
|
-
"kbd",
|
|
14579
|
-
"label",
|
|
14580
|
-
"legend",
|
|
14581
|
-
"li",
|
|
14582
|
-
"link",
|
|
14583
|
-
"main",
|
|
14584
|
-
"map",
|
|
14585
|
-
"mark",
|
|
14586
|
-
"meter",
|
|
14587
|
-
"nav",
|
|
14588
|
-
"noframes",
|
|
14589
|
-
"noscript",
|
|
14590
|
-
"object",
|
|
14591
|
-
"ol",
|
|
14592
|
-
"optgroup",
|
|
14593
|
-
"option",
|
|
14594
|
-
"output",
|
|
14595
|
-
"p",
|
|
14596
|
-
"param",
|
|
14597
|
-
"picture",
|
|
14598
|
-
"pre",
|
|
14599
|
-
"progress",
|
|
14600
|
-
"q",
|
|
14601
|
-
"rp",
|
|
14602
|
-
"rt",
|
|
14603
|
-
"ruby",
|
|
14604
|
-
"s",
|
|
14605
|
-
"samp",
|
|
14606
|
-
"script",
|
|
14607
|
-
"section",
|
|
14608
|
-
"select",
|
|
14609
|
-
"small",
|
|
14610
|
-
"source",
|
|
14611
|
-
"span",
|
|
14612
|
-
"strike",
|
|
14613
|
-
"strong",
|
|
14614
|
-
"sub",
|
|
14615
|
-
"summary",
|
|
14616
|
-
"sup",
|
|
14617
|
-
"table",
|
|
14618
|
-
"tbody",
|
|
14619
|
-
"td",
|
|
14620
|
-
"template",
|
|
14621
|
-
"textarea",
|
|
14622
|
-
"tfoot",
|
|
14623
|
-
"th",
|
|
14624
|
-
"thead",
|
|
14625
|
-
"time",
|
|
14626
|
-
"tr",
|
|
14627
|
-
"track",
|
|
14628
|
-
"tt",
|
|
14629
|
-
"u",
|
|
14630
|
-
"ul",
|
|
14631
|
-
"var",
|
|
14632
|
-
"video",
|
|
14633
|
-
"wbr",
|
|
14634
|
-
// SVG
|
|
14635
|
-
"svg",
|
|
14636
|
-
"path"
|
|
14637
|
-
]
|
|
14638
|
-
};
|
|
14639
|
-
}
|
|
14640
|
-
});
|
|
14641
|
-
|
|
14642
|
-
// ../../../domql/node_modules/@domql/registry/dist/cjs/index.js
|
|
14643
|
-
var require_cjs14 = __commonJS({
|
|
14644
|
-
"../../../domql/node_modules/@domql/registry/dist/cjs/index.js"(exports, module2) {
|
|
14645
|
-
"use strict";
|
|
14646
|
-
var __defProp2 = Object.defineProperty;
|
|
14647
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14648
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14649
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14650
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14651
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14652
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14653
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14654
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14655
|
-
}
|
|
14656
|
-
return to;
|
|
14657
|
-
};
|
|
14658
|
-
var __reExport2 = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
|
|
14659
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14660
|
-
var registry_exports = {};
|
|
14661
|
-
module2.exports = __toCommonJS2(registry_exports);
|
|
14662
|
-
__reExport2(registry_exports, require_methods3(), module2.exports);
|
|
14663
|
-
__reExport2(registry_exports, require_tags3(), module2.exports);
|
|
14664
|
-
}
|
|
14665
|
-
});
|
|
14666
|
-
|
|
14667
|
-
// ../../../domql/packages/element/dist/cjs/update.js
|
|
14668
|
-
var require_update2 = __commonJS({
|
|
14669
|
-
"../../../domql/packages/element/dist/cjs/update.js"(exports, module2) {
|
|
14670
|
-
"use strict";
|
|
14671
|
-
var __create2 = Object.create;
|
|
14672
|
-
var __defProp2 = Object.defineProperty;
|
|
14673
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
14674
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
14675
|
-
var __getProtoOf2 = Object.getPrototypeOf;
|
|
14676
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14677
|
-
var __export2 = (target, all) => {
|
|
14678
|
-
for (var name in all)
|
|
14679
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14680
|
-
};
|
|
14681
|
-
var __copyProps2 = (to, from3, except, desc) => {
|
|
14682
|
-
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
|
|
14683
|
-
for (let key of __getOwnPropNames2(from3))
|
|
14684
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14685
|
-
__defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
|
|
14686
|
-
}
|
|
14687
|
-
return to;
|
|
14688
|
-
};
|
|
14689
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
14690
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
14691
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
14692
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
14693
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
14694
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
14695
|
-
mod
|
|
14696
|
-
));
|
|
14697
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14698
|
-
var update_exports = {};
|
|
14699
|
-
__export2(update_exports, {
|
|
14700
|
-
default: () => update_default
|
|
14701
|
-
});
|
|
14702
|
-
module2.exports = __toCommonJS2(update_exports);
|
|
14703
|
-
var import_utils32 = require_cjs();
|
|
14704
|
-
var import_event = require_cjs6();
|
|
14705
|
-
var import_methods = require_methods2();
|
|
14706
|
-
var import_props = require_props();
|
|
14707
|
-
var import_state2 = require_cjs8();
|
|
14708
|
-
var import_create = __toESM2(require_create4(), 1);
|
|
14709
|
-
var import_iterate = require_iterate();
|
|
14710
|
-
var import_mixins = require_mixins();
|
|
14711
|
-
var import_applyParam = require_applyParam();
|
|
14712
|
-
var import_options3 = __toESM2(require_options(), 1);
|
|
14713
|
-
var import_utils210 = require_utils();
|
|
14714
|
-
var snapshot = {
|
|
14715
|
-
snapshotId: import_utils32.createSnapshotId
|
|
14716
|
-
};
|
|
14717
|
-
var UPDATE_DEFAULT_OPTIONS = {
|
|
14718
|
-
stackChanges: false,
|
|
14719
|
-
cleanExec: true,
|
|
14720
|
-
preventRecursive: false,
|
|
14721
|
-
currentSnapshot: false,
|
|
14722
|
-
calleeElement: false,
|
|
14723
|
-
excludes: import_utils210.METHODS_EXL
|
|
14724
|
-
};
|
|
14725
|
-
var update = function(params = {}, opts) {
|
|
14726
|
-
const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
|
|
14727
|
-
const options = (0, import_utils210.deepClone)((0, import_utils32.isObject)(opts) ? (0, import_utils210.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, ["calleeElement"]);
|
|
14728
|
-
options.calleeElement = calleeElementCache;
|
|
14729
|
-
const element = this;
|
|
14730
|
-
const { parent, node: node3, key } = element;
|
|
14731
|
-
const { excludes, preventInheritAtCurrentState } = options;
|
|
14732
|
-
let ref = element.__ref;
|
|
14733
|
-
if (!ref)
|
|
14734
|
-
ref = element.__ref = {};
|
|
14735
|
-
const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
|
|
14736
|
-
if (snapshotHasUpdated)
|
|
14737
|
-
return;
|
|
14738
|
-
if (!options.preventListeners)
|
|
14739
|
-
(0, import_event.triggerEventOnUpdate)("startUpdate", params, element, options);
|
|
14740
|
-
if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
|
|
14741
|
-
return;
|
|
14742
|
-
if (!excludes)
|
|
14743
|
-
(0, import_utils32.merge)(options, UPDATE_DEFAULT_OPTIONS);
|
|
14744
|
-
if ((0, import_utils32.isString)(params) || (0, import_utils32.isNumber)(params)) {
|
|
14745
|
-
params = { text: params };
|
|
14746
|
-
}
|
|
14747
|
-
const inheritState = inheritStateUpdates(element, options);
|
|
14748
|
-
if (inheritState === false)
|
|
14749
|
-
return;
|
|
14750
|
-
const ifFails = checkIfOnUpdate(element, parent, options);
|
|
14751
|
-
if (ifFails)
|
|
14752
|
-
return;
|
|
14753
|
-
if (ref.__if && !options.preventPropsUpdate) {
|
|
14754
|
-
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
14755
|
-
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils32.isFunction)(v));
|
|
14756
|
-
const props2 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
14757
|
-
if (props2)
|
|
14758
|
-
(0, import_props.updateProps)(props2, element, parent);
|
|
14759
|
-
}
|
|
14760
|
-
if (!options.preventBeforeUpdateListener && !options.preventListeners) {
|
|
14761
|
-
const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
|
|
14762
|
-
if (beforeUpdateReturns === false)
|
|
14763
|
-
return element;
|
|
13255
|
+
if (!options.preventBeforeUpdateListener && !options.preventListeners) {
|
|
13256
|
+
const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
|
|
13257
|
+
if (beforeUpdateReturns === false)
|
|
13258
|
+
return element;
|
|
14764
13259
|
}
|
|
14765
13260
|
const overwriteChanges = (0, import_utils32.overwriteDeep)(element, params, import_utils210.METHODS_EXL);
|
|
14766
13261
|
const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
|
|
@@ -14778,7 +13273,6 @@ var require_update2 = __commonJS({
|
|
|
14778
13273
|
return;
|
|
14779
13274
|
}
|
|
14780
13275
|
const {
|
|
14781
|
-
onlyUpdate,
|
|
14782
13276
|
preventUpdate,
|
|
14783
13277
|
preventDefineUpdate,
|
|
14784
13278
|
preventContentUpdate,
|
|
@@ -14803,11 +13297,10 @@ var require_update2 = __commonJS({
|
|
|
14803
13297
|
}
|
|
14804
13298
|
if (!Object.hasOwnProperty.call(element, param))
|
|
14805
13299
|
continue;
|
|
14806
|
-
const hasOnlyUpdateFalsy = onlyUpdate && (onlyUpdate !== param || !element.lookup(onlyUpdate));
|
|
14807
13300
|
const isInPreventUpdate = (0, import_utils32.isArray)(preventUpdate) && preventUpdate.includes(param);
|
|
14808
13301
|
const isInPreventDefineUpdate = (0, import_utils32.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
|
|
14809
13302
|
const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
|
|
14810
|
-
if ((0, import_utils32.isUndefined)(prop) ||
|
|
13303
|
+
if ((0, import_utils32.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils32.isObject)(import_mixins.registry[param]) || (0, import_utils32.isVariant)(param))
|
|
14811
13304
|
continue;
|
|
14812
13305
|
if (preventStateUpdate === "once")
|
|
14813
13306
|
options.preventStateUpdate = false;
|
|
@@ -15048,7 +13541,7 @@ var require_create4 = __commonJS({
|
|
|
15048
13541
|
module2.exports = __toCommonJS2(create_exports);
|
|
15049
13542
|
var import_node = __toESM2(require_node2(), 1);
|
|
15050
13543
|
var import_tree = require_tree();
|
|
15051
|
-
var
|
|
13544
|
+
var import_utils32 = require_cjs();
|
|
15052
13545
|
var import_event = require_cjs6();
|
|
15053
13546
|
var import_render = require_cjs12();
|
|
15054
13547
|
var import_state2 = require_cjs8();
|
|
@@ -15059,7 +13552,6 @@ var require_create4 = __commonJS({
|
|
|
15059
13552
|
var import_set = require_set2();
|
|
15060
13553
|
var import_classList = require_classList();
|
|
15061
13554
|
var import_iterate = require_iterate();
|
|
15062
|
-
var import_utils32 = require_cjs();
|
|
15063
13555
|
var import_options3 = __toESM2(require_options(), 1);
|
|
15064
13556
|
var import_component = require_component2();
|
|
15065
13557
|
var ENV3 = "development";
|
|
@@ -15223,7 +13715,7 @@ var require_create4 = __commonJS({
|
|
|
15223
13715
|
var applyValueAsText = (element, parent, key) => {
|
|
15224
13716
|
const extendTag = element.extend && element.extend.tag;
|
|
15225
13717
|
const childExtendTag = parent.childExtend && parent.childExtend.tag;
|
|
15226
|
-
const isKeyValidHTMLTag =
|
|
13718
|
+
const isKeyValidHTMLTag = import_utils32.HTML_TAGS.body.indexOf(key) > -1 && key;
|
|
15227
13719
|
return {
|
|
15228
13720
|
text: element,
|
|
15229
13721
|
tag: extendTag || childExtendTag || isKeyValidHTMLTag || "string"
|
|
@@ -15390,7 +13882,7 @@ var require_define = __commonJS({
|
|
|
15390
13882
|
});
|
|
15391
13883
|
|
|
15392
13884
|
// ../../../domql/packages/element/dist/cjs/index.js
|
|
15393
|
-
var
|
|
13885
|
+
var require_cjs13 = __commonJS({
|
|
15394
13886
|
"../../../domql/packages/element/dist/cjs/index.js"(exports, module2) {
|
|
15395
13887
|
"use strict";
|
|
15396
13888
|
var __create2 = Object.create;
|
|
@@ -15440,7 +13932,7 @@ var require_cjs15 = __commonJS({
|
|
|
15440
13932
|
});
|
|
15441
13933
|
|
|
15442
13934
|
// ../../../domql/packages/domql/dist/cjs/index.js
|
|
15443
|
-
var
|
|
13935
|
+
var require_cjs14 = __commonJS({
|
|
15444
13936
|
"../../../domql/packages/domql/dist/cjs/index.js"(exports, module2) {
|
|
15445
13937
|
"use strict";
|
|
15446
13938
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15465,7 +13957,7 @@ var require_cjs16 = __commonJS({
|
|
|
15465
13957
|
default: () => domql_default
|
|
15466
13958
|
});
|
|
15467
13959
|
module2.exports = __toCommonJS2(domql_exports);
|
|
15468
|
-
var import_element =
|
|
13960
|
+
var import_element = require_cjs13();
|
|
15469
13961
|
var create2 = (element, parent, key, options) => {
|
|
15470
13962
|
return (0, import_element.create)(element, parent, key, options);
|
|
15471
13963
|
};
|
|
@@ -15477,7 +13969,7 @@ var require_cjs16 = __commonJS({
|
|
|
15477
13969
|
});
|
|
15478
13970
|
|
|
15479
13971
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/key.js
|
|
15480
|
-
var
|
|
13972
|
+
var require_key2 = __commonJS({
|
|
15481
13973
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
|
|
15482
13974
|
"use strict";
|
|
15483
13975
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15516,7 +14008,7 @@ var require_key3 = __commonJS({
|
|
|
15516
14008
|
});
|
|
15517
14009
|
|
|
15518
14010
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/env.js
|
|
15519
|
-
var
|
|
14011
|
+
var require_env2 = __commonJS({
|
|
15520
14012
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
|
|
15521
14013
|
"use strict";
|
|
15522
14014
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15554,7 +14046,7 @@ var require_env3 = __commonJS({
|
|
|
15554
14046
|
});
|
|
15555
14047
|
|
|
15556
14048
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/globals.js
|
|
15557
|
-
var
|
|
14049
|
+
var require_globals2 = __commonJS({
|
|
15558
14050
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
|
|
15559
14051
|
"use strict";
|
|
15560
14052
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15590,7 +14082,7 @@ var require_globals3 = __commonJS({
|
|
|
15590
14082
|
});
|
|
15591
14083
|
|
|
15592
14084
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/node.js
|
|
15593
|
-
var
|
|
14085
|
+
var require_node3 = __commonJS({
|
|
15594
14086
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
|
|
15595
14087
|
"use strict";
|
|
15596
14088
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15616,7 +14108,7 @@ var require_node4 = __commonJS({
|
|
|
15616
14108
|
isNode: () => isNode
|
|
15617
14109
|
});
|
|
15618
14110
|
module2.exports = __toCommonJS2(node_exports);
|
|
15619
|
-
var import_globals2 =
|
|
14111
|
+
var import_globals2 = require_globals2();
|
|
15620
14112
|
var isNode = (obj) => {
|
|
15621
14113
|
return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
15622
14114
|
};
|
|
@@ -15627,7 +14119,7 @@ var require_node4 = __commonJS({
|
|
|
15627
14119
|
});
|
|
15628
14120
|
|
|
15629
14121
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/types.js
|
|
15630
|
-
var
|
|
14122
|
+
var require_types2 = __commonJS({
|
|
15631
14123
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
|
|
15632
14124
|
"use strict";
|
|
15633
14125
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15665,7 +14157,7 @@ var require_types3 = __commonJS({
|
|
|
15665
14157
|
isUndefined: () => isUndefined11
|
|
15666
14158
|
});
|
|
15667
14159
|
module2.exports = __toCommonJS2(types_exports);
|
|
15668
|
-
var import_node =
|
|
14160
|
+
var import_node = require_node3();
|
|
15669
14161
|
var isObject10 = (arg) => {
|
|
15670
14162
|
if (arg === null)
|
|
15671
14163
|
return false;
|
|
@@ -15717,7 +14209,7 @@ var require_types3 = __commonJS({
|
|
|
15717
14209
|
});
|
|
15718
14210
|
|
|
15719
14211
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/array.js
|
|
15720
|
-
var
|
|
14212
|
+
var require_array2 = __commonJS({
|
|
15721
14213
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
|
|
15722
14214
|
"use strict";
|
|
15723
14215
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15753,8 +14245,8 @@ var require_array3 = __commonJS({
|
|
|
15753
14245
|
swapItemsInArray: () => swapItemsInArray
|
|
15754
14246
|
});
|
|
15755
14247
|
module2.exports = __toCommonJS2(array_exports);
|
|
15756
|
-
var import_object =
|
|
15757
|
-
var import_types =
|
|
14248
|
+
var import_object = require_object3();
|
|
14249
|
+
var import_types = require_types2();
|
|
15758
14250
|
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
15759
14251
|
return arr2.every((val) => arr1.includes(val));
|
|
15760
14252
|
};
|
|
@@ -15838,7 +14330,7 @@ var require_array3 = __commonJS({
|
|
|
15838
14330
|
});
|
|
15839
14331
|
|
|
15840
14332
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/string.js
|
|
15841
|
-
var
|
|
14333
|
+
var require_string2 = __commonJS({
|
|
15842
14334
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
|
|
15843
14335
|
"use strict";
|
|
15844
14336
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15911,7 +14403,7 @@ var require_string3 = __commonJS({
|
|
|
15911
14403
|
});
|
|
15912
14404
|
|
|
15913
14405
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/object.js
|
|
15914
|
-
var
|
|
14406
|
+
var require_object3 = __commonJS({
|
|
15915
14407
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
|
|
15916
14408
|
"use strict";
|
|
15917
14409
|
var __defProp2 = Object.defineProperty;
|
|
@@ -15965,10 +14457,10 @@ var require_object4 = __commonJS({
|
|
|
15965
14457
|
stringToObject: () => stringToObject
|
|
15966
14458
|
});
|
|
15967
14459
|
module2.exports = __toCommonJS2(object_exports);
|
|
15968
|
-
var import_globals2 =
|
|
15969
|
-
var import_types =
|
|
15970
|
-
var import_array =
|
|
15971
|
-
var import_string =
|
|
14460
|
+
var import_globals2 = require_globals2();
|
|
14461
|
+
var import_types = require_types2();
|
|
14462
|
+
var import_array = require_array2();
|
|
14463
|
+
var import_string = require_string2();
|
|
15972
14464
|
var exec6 = (param, element, state, context) => {
|
|
15973
14465
|
if ((0, import_types.isFunction)(param)) {
|
|
15974
14466
|
return param(
|
|
@@ -16421,7 +14913,7 @@ var require_object4 = __commonJS({
|
|
|
16421
14913
|
});
|
|
16422
14914
|
|
|
16423
14915
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/function.js
|
|
16424
|
-
var
|
|
14916
|
+
var require_function2 = __commonJS({
|
|
16425
14917
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
|
|
16426
14918
|
"use strict";
|
|
16427
14919
|
var __defProp2 = Object.defineProperty;
|
|
@@ -16496,7 +14988,7 @@ var require_function3 = __commonJS({
|
|
|
16496
14988
|
});
|
|
16497
14989
|
|
|
16498
14990
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/log.js
|
|
16499
|
-
var
|
|
14991
|
+
var require_log2 = __commonJS({
|
|
16500
14992
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
|
|
16501
14993
|
"use strict";
|
|
16502
14994
|
var __defProp2 = Object.defineProperty;
|
|
@@ -16537,7 +15029,7 @@ var require_log3 = __commonJS({
|
|
|
16537
15029
|
});
|
|
16538
15030
|
|
|
16539
15031
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/cookie.js
|
|
16540
|
-
var
|
|
15032
|
+
var require_cookie2 = __commonJS({
|
|
16541
15033
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
16542
15034
|
"use strict";
|
|
16543
15035
|
var __defProp2 = Object.defineProperty;
|
|
@@ -16564,7 +15056,7 @@ var require_cookie3 = __commonJS({
|
|
|
16564
15056
|
setCookie: () => setCookie
|
|
16565
15057
|
});
|
|
16566
15058
|
module2.exports = __toCommonJS2(cookie_exports);
|
|
16567
|
-
var import_types =
|
|
15059
|
+
var import_types = require_types2();
|
|
16568
15060
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
16569
15061
|
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
16570
15062
|
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
@@ -16593,7 +15085,7 @@ var require_cookie3 = __commonJS({
|
|
|
16593
15085
|
});
|
|
16594
15086
|
|
|
16595
15087
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/tags.js
|
|
16596
|
-
var
|
|
15088
|
+
var require_tags2 = __commonJS({
|
|
16597
15089
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
|
|
16598
15090
|
"use strict";
|
|
16599
15091
|
var __defProp2 = Object.defineProperty;
|
|
@@ -16761,7 +15253,7 @@ var require_tags4 = __commonJS({
|
|
|
16761
15253
|
});
|
|
16762
15254
|
|
|
16763
15255
|
// ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/index.js
|
|
16764
|
-
var
|
|
15256
|
+
var require_cjs15 = __commonJS({
|
|
16765
15257
|
"../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
|
|
16766
15258
|
"use strict";
|
|
16767
15259
|
var __defProp2 = Object.defineProperty;
|
|
@@ -16780,18 +15272,18 @@ var require_cjs17 = __commonJS({
|
|
|
16780
15272
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
16781
15273
|
var utils_exports = {};
|
|
16782
15274
|
module2.exports = __toCommonJS2(utils_exports);
|
|
16783
|
-
__reExport2(utils_exports,
|
|
16784
|
-
__reExport2(utils_exports,
|
|
16785
|
-
__reExport2(utils_exports,
|
|
16786
|
-
__reExport2(utils_exports,
|
|
16787
|
-
__reExport2(utils_exports,
|
|
16788
|
-
__reExport2(utils_exports,
|
|
16789
|
-
__reExport2(utils_exports,
|
|
16790
|
-
__reExport2(utils_exports,
|
|
16791
|
-
__reExport2(utils_exports,
|
|
16792
|
-
__reExport2(utils_exports,
|
|
16793
|
-
__reExport2(utils_exports,
|
|
16794
|
-
__reExport2(utils_exports,
|
|
15275
|
+
__reExport2(utils_exports, require_key2(), module2.exports);
|
|
15276
|
+
__reExport2(utils_exports, require_env2(), module2.exports);
|
|
15277
|
+
__reExport2(utils_exports, require_types2(), module2.exports);
|
|
15278
|
+
__reExport2(utils_exports, require_object3(), module2.exports);
|
|
15279
|
+
__reExport2(utils_exports, require_function2(), module2.exports);
|
|
15280
|
+
__reExport2(utils_exports, require_array2(), module2.exports);
|
|
15281
|
+
__reExport2(utils_exports, require_node3(), module2.exports);
|
|
15282
|
+
__reExport2(utils_exports, require_log2(), module2.exports);
|
|
15283
|
+
__reExport2(utils_exports, require_string2(), module2.exports);
|
|
15284
|
+
__reExport2(utils_exports, require_globals2(), module2.exports);
|
|
15285
|
+
__reExport2(utils_exports, require_cookie2(), module2.exports);
|
|
15286
|
+
__reExport2(utils_exports, require_tags2(), module2.exports);
|
|
16795
15287
|
}
|
|
16796
15288
|
});
|
|
16797
15289
|
|
|
@@ -19158,13 +17650,17 @@ var Theme = {
|
|
|
19158
17650
|
backgroundColor: deps.getMediaColor(props2.backgroundColor, globalTheme)
|
|
19159
17651
|
};
|
|
19160
17652
|
},
|
|
19161
|
-
backgroundImage: (element) => {
|
|
17653
|
+
backgroundImage: (element, s, context) => {
|
|
19162
17654
|
const { props: props2, deps } = element;
|
|
19163
17655
|
const globalTheme = deps.getSystemGlobalTheme(element);
|
|
19164
|
-
|
|
17656
|
+
let val = props2.backgroundImage;
|
|
17657
|
+
if (!val)
|
|
19165
17658
|
return;
|
|
17659
|
+
const file = context.files && context.files[val];
|
|
17660
|
+
if (file && file.content)
|
|
17661
|
+
val = file.content.src;
|
|
19166
17662
|
return {
|
|
19167
|
-
backgroundImage: deps.transformBackgroundImage(
|
|
17663
|
+
backgroundImage: deps.transformBackgroundImage(val, globalTheme)
|
|
19168
17664
|
};
|
|
19169
17665
|
},
|
|
19170
17666
|
backgroundSize: ({ props: props2 }) => !(0, import_utils6.isUndefined)(props2.backgroundSize) ? {
|
|
@@ -19511,7 +18007,15 @@ var Interaction = {
|
|
|
19511
18007
|
class: {
|
|
19512
18008
|
userSelect: ({ props: props2 }) => props2.userSelect && { userSelect: props2.userSelect },
|
|
19513
18009
|
pointerEvents: ({ props: props2 }) => props2.pointerEvents && { pointerEvents: props2.pointerEvents },
|
|
19514
|
-
cursor: (
|
|
18010
|
+
cursor: (el, s, ctx) => {
|
|
18011
|
+
let val = el.props.cursor;
|
|
18012
|
+
if (!val)
|
|
18013
|
+
return;
|
|
18014
|
+
const file = ctx.files && ctx.files[val];
|
|
18015
|
+
if (file && file.content)
|
|
18016
|
+
val = `url(${file.content.src})`;
|
|
18017
|
+
return { cursor: val };
|
|
18018
|
+
}
|
|
19515
18019
|
}
|
|
19516
18020
|
};
|
|
19517
18021
|
|
|
@@ -27134,7 +25638,7 @@ var CREATE_OPTIONS = {
|
|
|
27134
25638
|
var options_default = CREATE_OPTIONS;
|
|
27135
25639
|
|
|
27136
25640
|
// src/createDomql.js
|
|
27137
|
-
var import_domql = __toESM(
|
|
25641
|
+
var import_domql = __toESM(require_cjs14(), 1);
|
|
27138
25642
|
var import_utils30 = __toESM(require_cjs(), 1);
|
|
27139
25643
|
|
|
27140
25644
|
// src/prepare.js
|
|
@@ -27144,7 +25648,7 @@ var import_utils29 = __toESM(require_cjs(), 1);
|
|
|
27144
25648
|
var import_utils27 = __toESM(require_cjs());
|
|
27145
25649
|
|
|
27146
25650
|
// ../../../domql/node_modules/@domql/classlist/index.js
|
|
27147
|
-
var import_utils25 = __toESM(
|
|
25651
|
+
var import_utils25 = __toESM(require_cjs15());
|
|
27148
25652
|
var classify = (obj, element) => {
|
|
27149
25653
|
let className = "";
|
|
27150
25654
|
for (const item in obj) {
|