Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@symbo.ls/scratch

Package Overview
Dependencies
Maintainers
5
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbo.ls/scratch - npm Package Compare versions

Comparing version 2.11.204 to 2.11.212

142

dist/cjs/factory.js

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals.window.eval("(" + str + ")");
return import_globals.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge3,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge3(elementProp, extendProp);
deepMerge3(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -69,5 +69,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -109,5 +109,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -148,5 +148,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -185,5 +185,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -223,5 +223,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -311,5 +311,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -411,5 +411,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -472,5 +472,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -499,2 +499,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -562,3 +563,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -653,4 +654,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -710,3 +711,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -721,12 +722,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals3.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -737,33 +738,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals3.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals3.window.eval("(" + str + ")");
return import_globals3.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -890,2 +889,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -906,5 +932,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -931,2 +957,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -936,3 +963,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -966,5 +1010,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -1008,5 +1052,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1065,5 +1109,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1231,5 +1275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs2 = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1236,0 +1280,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -69,5 +69,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -109,5 +109,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -148,5 +148,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -185,5 +185,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -223,5 +223,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -311,5 +311,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -411,5 +411,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -472,5 +472,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -499,2 +499,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -562,3 +563,3 @@ deepMerge: () => deepMerge,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge(elementProp, extendProp);
deepMerge(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -653,4 +654,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -710,3 +711,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -721,12 +722,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals2.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -737,33 +738,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals2.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals2.window.eval("(" + str + ")");
return import_globals2.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -890,2 +889,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -906,5 +932,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -931,2 +957,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -936,3 +963,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -966,5 +1010,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -1008,5 +1052,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1065,5 +1109,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1231,5 +1275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs2 = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1236,0 +1280,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals.window.eval("(" + str + ")");
return import_globals.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals.window.eval("(" + str + ")");
return import_globals.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -33,5 +33,5 @@ "use strict";

// ../../node_modules/@domql/utils/dist/cjs/key.js
// ../../../domql/packages/utils/dist/cjs/key.js
var require_key = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
"use strict";

@@ -73,5 +73,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/env.js
// ../../../domql/packages/utils/dist/cjs/env.js
var require_env = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
"use strict";

@@ -112,5 +112,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/globals.js
// ../../../domql/packages/utils/dist/cjs/globals.js
var require_globals = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
"use strict";

@@ -149,5 +149,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/node.js
// ../../../domql/packages/utils/dist/cjs/node.js
var require_node = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
"use strict";

@@ -187,5 +187,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/types.js
// ../../../domql/packages/utils/dist/cjs/types.js
var require_types = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
"use strict";

@@ -275,5 +275,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/array.js
// ../../../domql/packages/utils/dist/cjs/array.js
var require_array = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
"use strict";

@@ -375,5 +375,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/string.js
// ../../../domql/packages/utils/dist/cjs/string.js
var require_string = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
"use strict";

@@ -436,5 +436,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/object.js
// ../../../domql/packages/utils/dist/cjs/object.js
var require_object = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
"use strict";

@@ -463,2 +463,3 @@ var __defProp2 = Object.defineProperty;

deepCloneExclude: () => deepCloneExclude,
deepContains: () => deepContains,
deepDestringify: () => deepDestringify,

@@ -526,3 +527,3 @@ deepMerge: () => deepMerge2,

if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
deepMerge2(elementProp, extendProp);
deepMerge2(elementProp, extendProp, excludeFrom);
} else if (elementProp === void 0) {

@@ -617,4 +618,4 @@ element[e] = extendProp;

for (const [key, value] of Object.entries(obj)) {
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
const stringedKey = keyAllowdChars ? `'${key}'` : key;
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "/", "!"]);
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
str += `${spaces} ${stringedKey}: `;

@@ -674,3 +675,3 @@ if ((0, import_types.isArray)(value)) {

};
var deepDestringify = (obj, stringified = {}) => {
var deepDestringify = (obj, destringified = {}) => {
for (const prop in obj) {

@@ -685,12 +686,12 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);

const evalProp = import_globals.window.eval(`(${objProp})`);
stringified[prop] = evalProp;
destringified[prop] = evalProp;
} catch (e) {
if (e)
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];
destringified[prop] = [];
objProp.forEach((arrProp) => {

@@ -701,33 +702,31 @@ if ((0, import_types.isString)(arrProp)) {

const evalProp = import_globals.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);
destringified[prop].push(evalProp);
} catch (e) {
if (e)
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
destringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(arrProp);
destringified[prop].push(arrProp);
}
});
} else if ((0, import_types.isObject)(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]);
destringified[prop] = deepDestringify(objProp, destringified[prop]);
} else {
stringified[prop] = objProp;
destringified[prop] = objProp;
}
}
return stringified;
return destringified;
};
var stringToObject = (str) => {
let obj;
var stringToObject = (str, verbose) => {
try {
obj = import_globals.window.eval("(" + str + ")");
return import_globals.window.eval("(" + str + ")");
} catch (e) {
console.warn(e);
if (verbose)
console.warn(e);
}
if (obj)
return obj;
};

@@ -854,2 +853,29 @@ var diffObjects = (original, objToDiff, cache) => {

};
var deepContains = (obj1, obj2) => {
if (typeof obj1 !== typeof obj2) {
return false;
}
if ((0, import_types.isObjectLike)(obj1)) {
if (Array.isArray(obj1) && Array.isArray(obj2)) {
if (obj1.length !== obj2.length) {
return false;
}
for (let i = 0; i < obj1.length; i++) {
if (!deepContains(obj1[i], obj2[i])) {
return false;
}
}
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
for (const key in obj1) {
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
return false;
}
}
}
} else {
return obj2 === obj1;
}
return true;
};
var removeFromObject = (obj, props) => {

@@ -870,5 +896,5 @@ if (props === void 0 || props === null)

// ../../node_modules/@domql/utils/dist/cjs/function.js
// ../../../domql/packages/utils/dist/cjs/function.js
var require_function = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
"use strict";

@@ -895,2 +921,3 @@ var __defProp2 = Object.defineProperty;

debounce: () => debounce,
debounceOnContext: () => debounceOnContext,
isStringFunction: () => isStringFunction,

@@ -900,3 +927,20 @@ memoize: () => memoize

module2.exports = __toCommonJS2(function_exports);
var debounce = (element, func, timeout = 300) => {
function debounce(func, wait, immediate) {
let timeout;
return function() {
const context = this;
const args = arguments;
const later = function() {
timeout = null;
if (!immediate)
func.apply(context, args);
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow)
func.apply(context, args);
};
}
var debounceOnContext = (element, func, timeout = 300) => {
let timer;

@@ -930,5 +974,5 @@ return (...args) => {

// ../../node_modules/@domql/utils/dist/cjs/log.js
// ../../../domql/packages/utils/dist/cjs/log.js
var require_log = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
"use strict";

@@ -972,5 +1016,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/cookie.js
// ../../../domql/packages/utils/dist/cjs/cookie.js
var require_cookie = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
"use strict";

@@ -1029,5 +1073,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/tags.js
// ../../../domql/packages/utils/dist/cjs/tags.js
var require_tags = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
"use strict";

@@ -1195,5 +1239,5 @@ var __defProp2 = Object.defineProperty;

// ../../node_modules/@domql/utils/dist/cjs/index.js
// ../../../domql/packages/utils/dist/cjs/index.js
var require_cjs = __commonJS({
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
"use strict";

@@ -1200,0 +1244,0 @@ var __defProp2 = Object.defineProperty;

@@ -5,3 +5,3 @@ {

"author": "symbo.ls",
"version": "2.11.204",
"version": "2.11.212",
"files": [

@@ -33,3 +33,3 @@ "src",

},
"gitHead": "dab7f6d84335bca5af356b849c51204910670e76"
"gitHead": "12914eac8527ac1df36183098bbf3dfcfaa2e027"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc