@plumile/ui 0.1.183 → 0.1.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +2 -0
- package/lib/esm/admin/theme/adminDensity.css.js +0 -2
- package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js +1 -0
- package/lib/esm/node_modules/dompurify/dist/purify.es.js +255 -267
- package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/function/memoize.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/clone.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeep.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/merge.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/mergeWith.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArguments.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArray.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/function/noop.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/object/clone.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/object/cloneDeepWith.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isBuffer.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isLength.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isPrimitive.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isTypedArray.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region ../../node_modules/es-toolkit/dist/_internal/globalThis.mjs
|
|
2
2
|
var e = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
|
|
3
3
|
return this;
|
|
4
|
-
})()
|
|
4
|
+
})();
|
|
5
5
|
//#endregion
|
|
6
6
|
export { e as globalThis_ };
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalThis.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/_internal/globalThis.mjs"],"sourcesContent":["//#region src/_internal/globalThis.ts\nconst globalThis_ = typeof globalThis === \"object\" && globalThis || typeof window === \"object\" && window || typeof self === \"object\" && self || typeof global === \"object\" && global || (function() {\n\treturn this;\n})()
|
|
1
|
+
{"version":3,"file":"globalThis.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/_internal/globalThis.mjs"],"sourcesContent":["//#region src/_internal/globalThis.ts\nconst globalThis_ = typeof globalThis === \"object\" && globalThis || typeof window === \"object\" && window || typeof self === \"object\" && self || typeof global === \"object\" && global || (function() {\n\treturn this;\n})();\n//#endregion\nexport { globalThis_ };\n"],"x_google_ignoreList":[0],"mappings":";AACA,IAAM,IAAc,OAAO,cAAe,YAAY,cAAc,OAAO,UAAW,YAAY,UAAU,OAAO,QAAS,YAAY,QAAQ,OAAO,UAAW,YAAY,WAAW,WAAW;CACnM,OAAO;AACR,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoize.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/function/memoize.mjs"],"sourcesContent":["//#region src/compat/function/memoize.ts\n/**\n* Creates a function that memoizes the result of func. If resolver is provided it determines the cache key for\n* storing the result based on the arguments provided to the memoized function. By default, the first argument\n* provided to the memoized function is coerced to a string and used as the cache key. The func is invoked with\n* the this binding of the memoized function.\n*\n* @template T - The type of the original function being memoized\n* @param
|
|
1
|
+
{"version":3,"file":"memoize.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/function/memoize.mjs"],"sourcesContent":["//#region src/compat/function/memoize.ts\n/**\n* Creates a function that memoizes the result of func. If resolver is provided it determines the cache key for\n* storing the result based on the arguments provided to the memoized function. By default, the first argument\n* provided to the memoized function is coerced to a string and used as the cache key. The func is invoked with\n* the this binding of the memoized function.\n*\n* @template T - The type of the original function being memoized\n* @param func The function to have its output memoized.\n* @param [resolver] The function to resolve the cache key.\n* @return {MemoizedFunction<T>} Returns the new memoizing function.\n*/\nfunction memoize(func, resolver) {\n\tif (typeof func !== \"function\" || resolver != null && typeof resolver !== \"function\") throw new TypeError(\"Expected a function\");\n\tconst memoized = function(...args) {\n\t\tconst key = resolver ? resolver.apply(this, args) : args[0];\n\t\tconst cache = memoized.cache;\n\t\tif (cache.has(key)) return cache.get(key);\n\t\tconst result = func.apply(this, args);\n\t\tmemoized.cache = cache.set(key, result) || cache;\n\t\treturn result;\n\t};\n\tmemoized.cache = new (memoize.Cache || Map)();\n\treturn memoized;\n}\nmemoize.Cache = Map;\n//#endregion\nexport { memoize };\n"],"x_google_ignoreList":[0],"mappings":";AAYA,SAAS,EAAQ,GAAM,GAAU;CAChC,IAAI,OAAO,KAAS,cAAc,KAAY,QAAQ,OAAO,KAAa,YAAY,MAAU,UAAU,qBAAqB;CAC/H,IAAM,IAAW,SAAS,GAAG,GAAM;EAClC,IAAM,IAAM,IAAW,EAAS,MAAM,MAAM,CAAI,IAAI,EAAK,IACnD,IAAQ,EAAS;EACvB,IAAI,EAAM,IAAI,CAAG,GAAG,OAAO,EAAM,IAAI,CAAG;EACxC,IAAM,IAAS,EAAK,MAAM,MAAM,CAAI;EAEpC,OADA,EAAS,QAAQ,EAAM,IAAI,GAAK,CAAM,KAAK,GACpC;CACR;CAEA,OADA,EAAS,QAAQ,KAAK,EAAQ,SAAS,KAAK,GACrC;AACR;AACA,EAAQ,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/clone.mjs"],"sourcesContent":["import { isPrimitive } from \"../../predicate/isPrimitive.mjs\";\nimport { getTag } from \"../_internal/getTag.mjs\";\nimport { argumentsTag, arrayBufferTag, arrayTag, booleanTag, dataViewTag, dateTag, float32ArrayTag, float64ArrayTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag } from \"../_internal/tags.mjs\";\nimport { isArray } from \"../predicate/isArray.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/compat/object/clone.ts\n/**\n* Creates a shallow clone of the given object.\n*\n* @template T - The type of the object.\n* @param
|
|
1
|
+
{"version":3,"file":"clone.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/clone.mjs"],"sourcesContent":["import { isPrimitive } from \"../../predicate/isPrimitive.mjs\";\nimport { getTag } from \"../_internal/getTag.mjs\";\nimport { argumentsTag, arrayBufferTag, arrayTag, booleanTag, dataViewTag, dateTag, float32ArrayTag, float64ArrayTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag } from \"../_internal/tags.mjs\";\nimport { isArray } from \"../predicate/isArray.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/compat/object/clone.ts\n/**\n* Creates a shallow clone of the given object.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @returns A shallow clone of the given object.\n*\n* @example\n* // Clone a primitive object\n* const num = 29;\n* const clonedNum = clone(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an array\n* const arr = [1, 2, 3];\n* const clonedArr = clone(arr);\n* console.log(clonedArr); // [1, 2, 3]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an object\n* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n* const clonedObj = clone(obj);\n* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n* console.log(clonedObj === obj); // false\n*/\nfunction clone(obj) {\n\tif (isPrimitive(obj)) return obj;\n\tconst tag = getTag(obj);\n\tif (!isCloneableObject(obj)) return {};\n\tif (isArray(obj)) {\n\t\tconst result = Array.from(obj);\n\t\tif (obj.length > 0 && typeof obj[0] === \"string\" && Object.hasOwn(obj, \"index\")) {\n\t\t\tresult.index = obj.index;\n\t\t\tresult.input = obj.input;\n\t\t}\n\t\treturn result;\n\t}\n\tif (isTypedArray(obj)) {\n\t\tconst typedArray = obj;\n\t\tconst Ctor = typedArray.constructor;\n\t\treturn new Ctor(typedArray.buffer, typedArray.byteOffset, typedArray.length);\n\t}\n\tif (tag === \"[object ArrayBuffer]\") return new ArrayBuffer(obj.byteLength);\n\tif (tag === \"[object DataView]\") {\n\t\tconst dataView = obj;\n\t\tconst buffer = dataView.buffer;\n\t\tconst byteOffset = dataView.byteOffset;\n\t\tconst byteLength = dataView.byteLength;\n\t\tconst clonedBuffer = new ArrayBuffer(byteLength);\n\t\tconst srcView = new Uint8Array(buffer, byteOffset, byteLength);\n\t\tnew Uint8Array(clonedBuffer).set(srcView);\n\t\treturn new DataView(clonedBuffer);\n\t}\n\tif (tag === \"[object Boolean]\" || tag === \"[object Number]\" || tag === \"[object String]\") {\n\t\tconst Ctor = obj.constructor;\n\t\tconst clone = new Ctor(obj.valueOf());\n\t\tif (tag === \"[object String]\") cloneStringObjectProperties(clone, obj);\n\t\telse copyOwnProperties(clone, obj);\n\t\treturn clone;\n\t}\n\tif (tag === \"[object Date]\") return new Date(Number(obj));\n\tif (tag === \"[object RegExp]\") {\n\t\tconst regExp = obj;\n\t\tconst clone = new RegExp(regExp.source, regExp.flags);\n\t\tclone.lastIndex = regExp.lastIndex;\n\t\treturn clone;\n\t}\n\tif (tag === \"[object Symbol]\") return Object(Symbol.prototype.valueOf.call(obj));\n\tif (tag === \"[object Map]\") {\n\t\tconst map = obj;\n\t\tconst result = /* @__PURE__ */ new Map();\n\t\tmap.forEach((obj, key) => {\n\t\t\tresult.set(key, obj);\n\t\t});\n\t\treturn result;\n\t}\n\tif (tag === \"[object Set]\") {\n\t\tconst set = obj;\n\t\tconst result = /* @__PURE__ */ new Set();\n\t\tset.forEach((obj) => {\n\t\t\tresult.add(obj);\n\t\t});\n\t\treturn result;\n\t}\n\tif (tag === \"[object Arguments]\") {\n\t\tconst args = obj;\n\t\tconst result = {};\n\t\tcopyOwnProperties(result, args);\n\t\tresult.length = args.length;\n\t\tresult[Symbol.iterator] = args[Symbol.iterator];\n\t\treturn result;\n\t}\n\tconst result = {};\n\tcopyPrototype(result, obj);\n\tcopyOwnProperties(result, obj);\n\tcopySymbolProperties(result, obj);\n\treturn result;\n}\nfunction isCloneableObject(object) {\n\tswitch (getTag(object)) {\n\t\tcase argumentsTag:\n\t\tcase arrayTag:\n\t\tcase arrayBufferTag:\n\t\tcase dataViewTag:\n\t\tcase booleanTag:\n\t\tcase dateTag:\n\t\tcase float32ArrayTag:\n\t\tcase float64ArrayTag:\n\t\tcase int8ArrayTag:\n\t\tcase int16ArrayTag:\n\t\tcase int32ArrayTag:\n\t\tcase mapTag:\n\t\tcase numberTag:\n\t\tcase objectTag:\n\t\tcase regexpTag:\n\t\tcase setTag:\n\t\tcase stringTag:\n\t\tcase symbolTag:\n\t\tcase uint8ArrayTag:\n\t\tcase uint8ClampedArrayTag:\n\t\tcase uint16ArrayTag:\n\t\tcase uint32ArrayTag: return true;\n\t\tdefault: return false;\n\t}\n}\nfunction copyOwnProperties(target, source) {\n\tfor (const key in source) if (Object.hasOwn(source, key)) target[key] = source[key];\n}\nfunction copySymbolProperties(target, source) {\n\tconst symbols = Object.getOwnPropertySymbols(source);\n\tfor (let i = 0; i < symbols.length; i++) {\n\t\tconst symbol = symbols[i];\n\t\tif (Object.prototype.propertyIsEnumerable.call(source, symbol)) target[symbol] = source[symbol];\n\t}\n}\nfunction cloneStringObjectProperties(target, source) {\n\tconst stringLength = source.valueOf().length;\n\tfor (const key in source) if (Object.hasOwn(source, key) && (Number.isNaN(Number(key)) || Number(key) >= stringLength)) target[key] = source[key];\n}\nfunction copyPrototype(target, source) {\n\tconst proto = Object.getPrototypeOf(source);\n\tif (proto !== null) {\n\t\tif (typeof source.constructor === \"function\") Object.setPrototypeOf(target, proto);\n\t}\n}\n//#endregion\nexport { clone };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAkCA,SAAS,EAAM,GAAK;CACnB,IAAI,EAAY,CAAG,GAAG,OAAO;CAC7B,IAAM,IAAM,EAAO,CAAG;CACtB,IAAI,CAAC,EAAkB,CAAG,GAAG,OAAO,CAAC;CACrC,IAAI,EAAQ,CAAG,GAAG;EACjB,IAAM,IAAS,MAAM,KAAK,CAAG;EAK7B,OAJI,EAAI,SAAS,KAAK,OAAO,EAAI,MAAO,YAAY,OAAO,OAAO,GAAK,OAAO,MAC7E,EAAO,QAAQ,EAAI,OACnB,EAAO,QAAQ,EAAI,QAEb;CACR;CACA,IAAI,EAAa,CAAG,GAAG;EACtB,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AAQ,OAAO,eAAe,CAAM;CAC1C,AAAI,MAAU,QACT,OAAO,EAAO,eAAgB,cAAY,OAAO,eAAe,GAAQ,CAAK;AAEnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneDeep.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs"],"sourcesContent":["import { cloneDeepWith } from \"./cloneDeepWith.mjs\";\n//#region src/compat/object/cloneDeep.ts\n/**\n* Creates a deep clone of the given object.\n*\n* @template T - The type of the object.\n* @param
|
|
1
|
+
{"version":3,"file":"cloneDeep.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs"],"sourcesContent":["import { cloneDeepWith } from \"./cloneDeepWith.mjs\";\n//#region src/compat/object/cloneDeep.ts\n/**\n* Creates a deep clone of the given object.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @returns A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = clone(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an array\n* const arr = [1, 2, 3];\n* const clonedArr = clone(arr);\n* console.log(clonedArr); // [1, 2, 3]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an array with nested objects\n* const arr = [1, { a: 1 }, [1, 2, 3]];\n* const clonedArr = clone(arr);\n* arr[1].a = 2;\n* console.log(arr); // [2, { a: 2 }, [1, 2, 3]]\n* console.log(clonedArr); // [1, { a: 1 }, [1, 2, 3]]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an object\n* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n* const clonedObj = clone(obj);\n* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an object with nested objects\n* const obj = { a: 1, b: { c: 1 } };\n* const clonedObj = clone(obj);\n* obj.b.c = 2;\n* console.log(obj); // { a: 1, b: { c: 2 } }\n* console.log(clonedObj); // { a: 1, b: { c: 1 } }\n* console.log(clonedObj === obj); // false\n*/\nfunction cloneDeep(obj) {\n\treturn cloneDeepWith(obj);\n}\n//#endregion\nexport { cloneDeep };\n"],"x_google_ignoreList":[0],"mappings":";;AAgDA,SAAS,EAAU,GAAK;CACvB,OAAO,EAAc,CAAG;AACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneDeepWith.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs"],"sourcesContent":["import { getTag } from \"../_internal/getTag.mjs\";\nimport { argumentsTag, booleanTag, numberTag, stringTag } from \"../_internal/tags.mjs\";\nimport { cloneDeepWith as cloneDeepWith$1, copyProperties } from \"../../object/cloneDeepWith.mjs\";\n//#region src/compat/object/cloneDeepWith.ts\n/**\n* Creates a deep clone of the given object using a customizer function.\n*\n* @template T - The type of the object.\n* @param
|
|
1
|
+
{"version":3,"file":"cloneDeepWith.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs"],"sourcesContent":["import { getTag } from \"../_internal/getTag.mjs\";\nimport { argumentsTag, booleanTag, numberTag, stringTag } from \"../_internal/tags.mjs\";\nimport { cloneDeepWith as cloneDeepWith$1, copyProperties } from \"../../object/cloneDeepWith.mjs\";\n//#region src/compat/object/cloneDeepWith.ts\n/**\n* Creates a deep clone of the given object using a customizer function.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @param [cloneValue] - A function to customize the cloning process.\n* @returns A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = cloneDeepWith(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an object with a customizer\n* const obj = { a: 1, b: 2 };\n* const clonedObj = cloneDeepWith(obj, (value) => {\n* if (typeof value === 'number') {\n* return value * 2; // Double the number\n* }\n* });\n* console.log(clonedObj); // { a: 2, b: 4 }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an array with a customizer\n* const arr = [1, 2, 3];\n* const clonedArr = cloneDeepWith(arr, (value) => {\n* return value + 1; // Increment each value\n* });\n* console.log(clonedArr); // [2, 3, 4]\n* console.log(clonedArr === arr); // false\n*/\nfunction cloneDeepWith(obj, customizer) {\n\treturn cloneDeepWith$1(obj, (value, key, object, stack) => {\n\t\tconst cloned = customizer?.(value, key, object, stack);\n\t\tif (cloned !== void 0) return cloned;\n\t\tif (typeof obj !== \"object\") return;\n\t\tif (getTag(obj) === \"[object Object]\" && typeof obj.constructor !== \"function\") {\n\t\t\tconst result = {};\n\t\t\tstack.set(obj, result);\n\t\t\tcopyProperties(result, obj, object, stack);\n\t\t\treturn result;\n\t\t}\n\t\tswitch (Object.prototype.toString.call(obj)) {\n\t\t\tcase numberTag:\n\t\t\tcase stringTag:\n\t\t\tcase booleanTag: {\n\t\t\t\tconst result = new obj.constructor(obj?.valueOf());\n\t\t\t\tcopyProperties(result, obj);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase argumentsTag: {\n\t\t\t\tconst result = {};\n\t\t\t\tcopyProperties(result, obj);\n\t\t\t\tresult.length = obj.length;\n\t\t\t\tresult[Symbol.iterator] = obj[Symbol.iterator];\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return;\n\t\t}\n\t});\n}\n//#endregion\nexport { cloneDeepWith };\n"],"x_google_ignoreList":[0],"mappings":";;;;AAuCA,SAAS,EAAc,GAAK,GAAY;CACvC,OAAO,EAAgB,IAAM,GAAO,GAAK,GAAQ,MAAU;EAC1D,IAAM,IAAS,IAAa,GAAO,GAAK,GAAQ,CAAK;EACrD,IAAI,MAAW,KAAK,GAAG,OAAO;EAC1B,WAAO,KAAQ,UACnB;OAAI,EAAO,CAAG,MAAM,qBAAqB,OAAO,EAAI,eAAgB,YAAY;IAC/E,IAAM,IAAS,CAAC;IAGhB,OAFA,EAAM,IAAI,GAAK,CAAM,GACrB,EAAe,GAAQ,GAAK,GAAQ,CAAK,GAClC;GACR;GACA,QAAQ,OAAO,UAAU,SAAS,KAAK,CAAG,GAA1C;IACC,KAAK;IACL,KAAK;IACL,KAAK,GAAY;KAChB,IAAM,IAAS,IAAI,EAAI,YAAY,GAAK,QAAQ,CAAC;KAEjD,OADA,EAAe,GAAQ,CAAG,GACnB;IACR;IACA,KAAK,GAAc;KAClB,IAAM,IAAS,CAAC;KAIhB,OAHA,EAAe,GAAQ,CAAG,GAC1B,EAAO,SAAS,EAAI,QACpB,EAAO,OAAO,YAAY,EAAI,OAAO,WAC9B;IACR;IACA,SAAS;GACV;EAjBA;CAkBD,CAAC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/merge.mjs"],"sourcesContent":["import { noop } from \"../../function/noop.mjs\";\nimport { mergeWith } from \"./mergeWith.mjs\";\n//#region src/compat/object/merge.ts\n/**\n* Merges the properties of one or more source objects into the target object.\n*\n* This function performs a deep merge, recursively merging nested objects and arrays.\n* If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.\n* If a property in the source object is `undefined`, it will not overwrite a defined property in the target object.\n*\n* The function can handle multiple source objects and will merge them all into the target object.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"merge.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/merge.mjs"],"sourcesContent":["import { noop } from \"../../function/noop.mjs\";\nimport { mergeWith } from \"./mergeWith.mjs\";\n//#region src/compat/object/merge.ts\n/**\n* Merges the properties of one or more source objects into the target object.\n*\n* This function performs a deep merge, recursively merging nested objects and arrays.\n* If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.\n* If a property in the source object is `undefined`, it will not overwrite a defined property in the target object.\n*\n* The function can handle multiple source objects and will merge them all into the target object.\n*\n* @param object - The target object into which the source object properties will be merged. This object is modified in place.\n* @param sources - The source objects whose properties will be merged into the target object.\n* @returns The updated target object with properties from the source object(s) merged in.\n*\n* @example\n* const target = { a: 1, b: { x: 1, y: 2 } };\n* const source = { b: { y: 3, z: 4 }, c: 5 };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }\n*\n* @example\n* const target = { a: [1, 2], b: { x: 1 } };\n* const source = { a: [3], b: { y: 2 } };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [3], b: { x: 1, y: 2 } }\n*\n* @example\n* const target = { a: null };\n* const source = { a: [1, 2, 3] };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [1, 2, 3] }\n*/\nfunction merge(object, ...sources) {\n\treturn mergeWith(object, ...sources, noop);\n}\n//#endregion\nexport { merge };\n"],"x_google_ignoreList":[0],"mappings":";;;AAwCA,SAAS,EAAM,GAAQ,GAAG,GAAS;CAClC,OAAO,EAAU,GAAQ,GAAG,GAAS,CAAI;AAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeWith.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/mergeWith.mjs"],"sourcesContent":["import { isPrimitive } from \"../../predicate/isPrimitive.mjs\";\nimport { clone } from \"../../object/clone.mjs\";\nimport { getSymbols } from \"../_internal/getSymbols.mjs\";\nimport { isBuffer } from \"../../predicate/isBuffer.mjs\";\nimport { isUnsafeProperty } from \"../../_internal/isUnsafeProperty.mjs\";\nimport { isPlainObject } from \"../predicate/isPlainObject.mjs\";\nimport { cloneDeep } from \"./cloneDeep.mjs\";\nimport { isArguments } from \"../predicate/isArguments.mjs\";\nimport { isObjectLike } from \"../predicate/isObjectLike.mjs\";\nimport { isArrayLikeObject } from \"../predicate/isArrayLikeObject.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/compat/object/mergeWith.ts\n/**\n* Merges the properties of one or more source objects into the target object using a customizer function.\n*\n* This function performs a deep merge, recursively merging nested objects and arrays.\n* If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.\n* If a property in the source object is `undefined`, it will not overwrite a defined property in the target object.\n*\n* You can provide a custom `merge` function to control how properties are merged. The `merge` function is called for each property that is being merged and receives the following arguments:\n*\n* - `targetValue`: The current value of the property in the target object.\n* - `sourceValue`: The value of the property in the source object.\n* - `key`: The key of the property being merged.\n* - `target`: The target object.\n* - `source`: The source object.\n* - `stack`: A `Map` used to keep track of objects that have already been processed to handle circular references.\n*\n* The `merge` function should return the value to be set in the target object. If it returns `undefined`, a default deep merge will be applied for arrays and objects.\n*\n* The function can handle multiple source objects and will merge them all into the target object.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"mergeWith.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/mergeWith.mjs"],"sourcesContent":["import { isPrimitive } from \"../../predicate/isPrimitive.mjs\";\nimport { clone } from \"../../object/clone.mjs\";\nimport { getSymbols } from \"../_internal/getSymbols.mjs\";\nimport { isBuffer } from \"../../predicate/isBuffer.mjs\";\nimport { isUnsafeProperty } from \"../../_internal/isUnsafeProperty.mjs\";\nimport { isPlainObject } from \"../predicate/isPlainObject.mjs\";\nimport { cloneDeep } from \"./cloneDeep.mjs\";\nimport { isArguments } from \"../predicate/isArguments.mjs\";\nimport { isObjectLike } from \"../predicate/isObjectLike.mjs\";\nimport { isArrayLikeObject } from \"../predicate/isArrayLikeObject.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/compat/object/mergeWith.ts\n/**\n* Merges the properties of one or more source objects into the target object using a customizer function.\n*\n* This function performs a deep merge, recursively merging nested objects and arrays.\n* If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.\n* If a property in the source object is `undefined`, it will not overwrite a defined property in the target object.\n*\n* You can provide a custom `merge` function to control how properties are merged. The `merge` function is called for each property that is being merged and receives the following arguments:\n*\n* - `targetValue`: The current value of the property in the target object.\n* - `sourceValue`: The value of the property in the source object.\n* - `key`: The key of the property being merged.\n* - `target`: The target object.\n* - `source`: The source object.\n* - `stack`: A `Map` used to keep track of objects that have already been processed to handle circular references.\n*\n* The `merge` function should return the value to be set in the target object. If it returns `undefined`, a default deep merge will be applied for arrays and objects.\n*\n* The function can handle multiple source objects and will merge them all into the target object.\n*\n* @param object - The target object into which the source object properties will be merged. This object is modified in place.\n* @param otherArgs - Additional source objects to merge into the target object, including the custom `merge` function.\n* @returns The updated target object with properties from the source object(s) merged in.\n*\n* @example\n* const target = { a: 1, b: 2 };\n* const source = { b: 3, c: 4 };\n*\n* mergeWith(target, source, (targetValue, sourceValue) => {\n* if (typeof targetValue === 'number' && typeof sourceValue === 'number') {\n* return targetValue + sourceValue;\n* }\n* });\n* // Returns { a: 1, b: 5, c: 4 }\n* @example\n* const target = { a: [1], b: [2] };\n* const source = { a: [3], b: [4] };\n*\n* const result = mergeWith(target, source, (objValue, srcValue) => {\n* if (Array.isArray(objValue)) {\n* return objValue.concat(srcValue);\n* }\n* });\n*\n* expect(result).toEqual({ a: [1, 3], b: [2, 4] });\n*/\nfunction mergeWith(object, ...otherArgs) {\n\tconst sources = otherArgs.slice(0, -1);\n\tconst merge = otherArgs[otherArgs.length - 1];\n\tlet result = object;\n\tfor (let i = 0; i < sources.length; i++) {\n\t\tconst source = sources[i];\n\t\tresult = mergeWithDeep(result, source, merge, /* @__PURE__ */ new Map());\n\t}\n\treturn result;\n}\nfunction mergeWithDeep(target, source, merge, stack) {\n\tif (isPrimitive(target)) target = Object(target);\n\tif (source == null || typeof source !== \"object\") return target;\n\tif (stack.has(source)) return clone(stack.get(source));\n\tstack.set(source, target);\n\tif (Array.isArray(source)) {\n\t\tsource = source.slice();\n\t\tfor (let i = 0; i < source.length; i++) source[i] = source[i] ?? void 0;\n\t}\n\tconst sourceKeys = [...Object.keys(source), ...getSymbols(source)];\n\tfor (let i = 0; i < sourceKeys.length; i++) {\n\t\tconst key = sourceKeys[i];\n\t\tif (isUnsafeProperty(key)) continue;\n\t\tlet sourceValue = source[key];\n\t\tlet targetValue = target[key];\n\t\tif (isArguments(sourceValue)) sourceValue = { ...sourceValue };\n\t\tif (isArguments(targetValue)) targetValue = { ...targetValue };\n\t\tif (isBuffer(sourceValue)) sourceValue = cloneDeep(sourceValue);\n\t\tif (Array.isArray(sourceValue)) if (Array.isArray(targetValue)) {\n\t\t\tconst cloned = [];\n\t\t\tconst targetKeys = Reflect.ownKeys(targetValue);\n\t\t\tfor (let i = 0; i < targetKeys.length; i++) {\n\t\t\t\tconst targetKey = targetKeys[i];\n\t\t\t\tcloned[targetKey] = targetValue[targetKey];\n\t\t\t}\n\t\t\ttargetValue = cloned;\n\t\t} else if (isArrayLikeObject(targetValue)) {\n\t\t\tconst cloned = [];\n\t\t\tfor (let i = 0; i < targetValue.length; i++) cloned[i] = targetValue[i];\n\t\t\ttargetValue = cloned;\n\t\t} else targetValue = [];\n\t\tconst merged = merge(targetValue, sourceValue, key, target, source, stack);\n\t\tif (merged !== void 0) target[key] = merged;\n\t\telse if (Array.isArray(sourceValue)) target[key] = mergeWithDeep(targetValue, sourceValue, merge, stack);\n\t\telse if (isObjectLike(targetValue) && isObjectLike(sourceValue) && (isPlainObject(targetValue) || isPlainObject(sourceValue) || isTypedArray(targetValue) || isTypedArray(sourceValue))) target[key] = mergeWithDeep(targetValue, sourceValue, merge, stack);\n\t\telse if (targetValue == null && isPlainObject(sourceValue)) target[key] = mergeWithDeep({}, sourceValue, merge, stack);\n\t\telse if (targetValue == null && isTypedArray(sourceValue)) target[key] = cloneDeep(sourceValue);\n\t\telse if (targetValue === void 0 || sourceValue !== void 0) target[key] = sourceValue;\n\t}\n\treturn target;\n}\n//#endregion\nexport { mergeWith };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AA0DA,SAAS,EAAU,GAAQ,GAAG,GAAW;CACxC,IAAM,IAAU,EAAU,MAAM,GAAG,EAAE,GAC/B,IAAQ,EAAU,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1C,IAAM,IAAS,CAAC;GAChB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAY,QAAQ,KAAK,EAAO,KAAK,EAAY;GACrE,IAAc;EACf,OAAO,IAAc,CAAC;EACtB,IAAM,IAAS,EAAM,GAAa,GAAa,GAAK,GAAQ,GAAQ,CAAK;EACzE,AAAI,MAAW,KAAK,IACX,MAAM,QAAQ,CAAW,KACzB,EAAa,CAAW,KAAK,EAAa,CAAW,MAAM,EAAc,CAAW,KAAK,EAAc,CAAW,KAAK,EAAa,CAAW,KAAK,EAAa,CAAW,KADhJ,EAAO,KAAO,EAAc,GAAa,GAAa,GAAO,CAAK,IAE9F,KAAe,QAAQ,EAAc,CAAW,IAAG,EAAO,KAAO,EAAc,CAAC,GAAG,GAAa,GAAO,CAAK,IAC5G,KAAe,QAAQ,EAAa,CAAW,IAAG,EAAO,KAAO,EAAU,CAAW,KACrF,MAAgB,KAAK,KAAK,MAAgB,KAAK,OAAG,EAAO,KAAO,KALlD,EAAO,KAAO;CAMtC;CACA,OAAO;AACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isArguments.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs"],"sourcesContent":["import { getTag } from \"../_internal/getTag.mjs\";\n//#region src/compat/predicate/isArguments.ts\n/**\n* Checks if the given value is an arguments object.\n*\n* This function tests whether the provided value is an arguments object or not.\n* It returns `true` if the value is an arguments object, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an arguments object.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isArguments.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs"],"sourcesContent":["import { getTag } from \"../_internal/getTag.mjs\";\n//#region src/compat/predicate/isArguments.ts\n/**\n* Checks if the given value is an arguments object.\n*\n* This function tests whether the provided value is an arguments object or not.\n* It returns `true` if the value is an arguments object, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an arguments object.\n*\n* @param value - The value to test if it is an arguments object.\n* @returns `true` if the value is an arguments, `false` otherwise.\n*\n* @example\n* const args = (function() { return arguments; })();\n* const strictArgs = (function() { 'use strict'; return arguments; })();\n* const value = [1, 2, 3];\n*\n* console.log(isArguments(args)); // true\n* console.log(isArguments(strictArgs)); // true\n* console.log(isArguments(value)); // false\n*/\nfunction isArguments(value) {\n\treturn value !== null && typeof value === \"object\" && getTag(value) === \"[object Arguments]\";\n}\n//#endregion\nexport { isArguments };\n"],"x_google_ignoreList":[0],"mappings":";;AAsBA,SAAS,EAAY,GAAO;CAC3B,OAAyB,OAAO,KAAU,cAAnC,KAA+C,EAAO,CAAK,MAAM;AACzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isArray.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArray.mjs"],"sourcesContent":["//#region src/compat/predicate/isArray.ts\n/**\n* Checks if the given value is an array.\n*\n* This function tests whether the provided value is an array or not.\n* It returns `true` if the value is an array, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an array.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isArray.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArray.mjs"],"sourcesContent":["//#region src/compat/predicate/isArray.ts\n/**\n* Checks if the given value is an array.\n*\n* This function tests whether the provided value is an array or not.\n* It returns `true` if the value is an array, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an array.\n*\n* @param value - The value to test if it is an array.\n* @returns `true` if the value is an array, `false` otherwise.\n*\n* @example\n* const value1 = [1, 2, 3];\n* const value2 = 'abc';\n* const value3 = () => {};\n*\n* console.log(isArray(value1)); // true\n* console.log(isArray(value2)); // false\n* console.log(isArray(value3)); // false\n*/\nfunction isArray(value) {\n\treturn Array.isArray(value);\n}\n//#endregion\nexport { isArray };\n"],"x_google_ignoreList":[0],"mappings":";AAqBA,SAAS,EAAQ,GAAO;CACvB,OAAO,MAAM,QAAQ,CAAK;AAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isArrayLike.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs"],"sourcesContent":["import { isLength } from \"../../predicate/isLength.mjs\";\n//#region src/compat/predicate/isArrayLike.ts\n/**\n* Checks if `value` is array-like.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isArrayLike.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs"],"sourcesContent":["import { isLength } from \"../../predicate/isLength.mjs\";\n//#region src/compat/predicate/isArrayLike.ts\n/**\n* Checks if `value` is array-like.\n*\n* @param value The value to check.\n* @returns Returns `true` if `value` is array-like, else `false`.\n*\n* @example\n* isArrayLike([1, 2, 3]); // true\n* isArrayLike('abc'); // true\n* isArrayLike({ 0: 'a', length: 1 }); // true\n* isArrayLike({}); // false\n* isArrayLike(null); // false\n* isArrayLike(undefined); // false\n*/\nfunction isArrayLike(value) {\n\treturn value != null && typeof value !== \"function\" && isLength(value.length);\n}\n//#endregion\nexport { isArrayLike };\n"],"x_google_ignoreList":[0],"mappings":";;AAgBA,SAAS,EAAY,GAAO;CAC3B,OAAO,KAAS,QAAQ,OAAO,KAAU,cAAc,EAAS,EAAM,MAAM;AAC7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isArrayLikeObject.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs"],"sourcesContent":["import { isArrayLike } from \"./isArrayLike.mjs\";\nimport { isObjectLike } from \"./isObjectLike.mjs\";\n//#region src/compat/predicate/isArrayLikeObject.ts\n/**\n* Checks if the given value is a non-primitive, array-like object.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isArrayLikeObject.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs"],"sourcesContent":["import { isArrayLike } from \"./isArrayLike.mjs\";\nimport { isObjectLike } from \"./isObjectLike.mjs\";\n//#region src/compat/predicate/isArrayLikeObject.ts\n/**\n* Checks if the given value is a non-primitive, array-like object.\n*\n* @param value The value to check.\n* @returns `true` if the value is a non-primitive, array-like object, `false` otherwise.\n*\n* @example\n* isArrayLikeObject([1, 2, 3]); // true\n* isArrayLikeObject({ 0: 'a', length: 1 }); // true\n* isArrayLikeObject('abc'); // false\n* isArrayLikeObject(()=>{}); // false\n*/\nfunction isArrayLikeObject(value) {\n\treturn isObjectLike(value) && isArrayLike(value);\n}\n//#endregion\nexport { isArrayLikeObject };\n"],"x_google_ignoreList":[0],"mappings":";;;AAeA,SAAS,EAAkB,GAAO;CACjC,OAAO,EAAa,CAAK,KAAK,EAAY,CAAK;AAChD"}
|
|
@@ -7,7 +7,7 @@ import { isPrototype as i } from "../_internal/isPrototype.js";
|
|
|
7
7
|
function a(a) {
|
|
8
8
|
if (a == null) return !0;
|
|
9
9
|
if (t(a)) return typeof a.splice != "function" && typeof a != "string" && !e(a) && !r(a) && !n(a) ? !1 : a.length === 0;
|
|
10
|
-
if (typeof a == "object") {
|
|
10
|
+
if (typeof a == "object" || typeof a == "function") {
|
|
11
11
|
if (a instanceof Map || a instanceof Set) return a.size === 0;
|
|
12
12
|
let e = Object.keys(a);
|
|
13
13
|
return i(a) ? e.filter((e) => e !== "constructor").length === 0 : e.length === 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEmpty.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs"],"sourcesContent":["import { isBuffer } from \"../../predicate/isBuffer.mjs\";\nimport { isArrayLike } from \"./isArrayLike.mjs\";\nimport { isArguments } from \"./isArguments.mjs\";\nimport { isPrototype } from \"../_internal/isPrototype.mjs\";\nimport { isTypedArray } from \"./isTypedArray.mjs\";\n//#region src/compat/predicate/isEmpty.ts\n/**\n* Checks if a given value is empty.\n*\n* - If the given value is a string, checks if it is an empty string.\n* - If the given value is an array, `Map`, or `Set`, checks if its size is 0.\n* - If the given value is an [array-like object](../predicate/isArrayLike.md), checks if its length is 0.\n* - If the given value is an object, checks if it is an empty object with no properties.\n* - Primitive values (booleans, numbers, or bigints) are considered empty.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isEmpty.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs"],"sourcesContent":["import { isBuffer } from \"../../predicate/isBuffer.mjs\";\nimport { isArrayLike } from \"./isArrayLike.mjs\";\nimport { isArguments } from \"./isArguments.mjs\";\nimport { isPrototype } from \"../_internal/isPrototype.mjs\";\nimport { isTypedArray } from \"./isTypedArray.mjs\";\n//#region src/compat/predicate/isEmpty.ts\n/**\n* Checks if a given value is empty.\n*\n* - If the given value is a string, checks if it is an empty string.\n* - If the given value is an array, `Map`, or `Set`, checks if its size is 0.\n* - If the given value is an [array-like object](../predicate/isArrayLike.md), checks if its length is 0.\n* - If the given value is an object, checks if it is an empty object with no properties.\n* - Primitive values (booleans, numbers, or bigints) are considered empty.\n*\n* @param [value] - The value to check.\n* @returns `true` if the value is empty, `false` otherwise.\n*\n* @example\n* isEmpty(); // true\n* isEmpty(null); // true\n* isEmpty(\"\"); // true\n* isEmpty([]); // true\n* isEmpty({}); // true\n* isEmpty(new Map()); // true\n* isEmpty(new Set()); // true\n* isEmpty(\"hello\"); // false\n* isEmpty([1, 2, 3]); // false\n* isEmpty({ a: 1 }); // false\n* isEmpty(new Map([[\"key\", \"value\"]])); // false\n* isEmpty(new Set([1, 2, 3])); // false\n*/\nfunction isEmpty(value) {\n\tif (value == null) return true;\n\tif (isArrayLike(value)) {\n\t\tif (typeof value.splice !== \"function\" && typeof value !== \"string\" && !isBuffer(value) && !isTypedArray(value) && !isArguments(value)) return false;\n\t\treturn value.length === 0;\n\t}\n\tif (typeof value === \"object\" || typeof value === \"function\") {\n\t\tif (value instanceof Map || value instanceof Set) return value.size === 0;\n\t\tconst keys = Object.keys(value);\n\t\tif (isPrototype(value)) return keys.filter((x) => x !== \"constructor\").length === 0;\n\t\treturn keys.length === 0;\n\t}\n\treturn true;\n}\n//#endregion\nexport { isEmpty };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAgCA,SAAS,EAAQ,GAAO;CACvB,IAAI,KAAS,MAAM,OAAO;CAC1B,IAAI,EAAY,CAAK,GAEpB,OADI,OAAO,EAAM,UAAW,cAAc,OAAO,KAAU,YAAY,CAAC,EAAS,CAAK,KAAK,CAAC,EAAa,CAAK,KAAK,CAAC,EAAY,CAAK,IAAU,KACxI,EAAM,WAAW;CAEzB,IAAI,OAAO,KAAU,YAAY,OAAO,KAAU,YAAY;EAC7D,IAAI,aAAiB,OAAO,aAAiB,KAAK,OAAO,EAAM,SAAS;EACxE,IAAM,IAAO,OAAO,KAAK,CAAK;EAE9B,OADI,EAAY,CAAK,IAAU,EAAK,QAAQ,MAAM,MAAM,aAAa,EAAE,WAAW,IAC3E,EAAK,WAAW;CACxB;CACA,OAAO;AACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isObjectLike.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs"],"sourcesContent":["//#region src/compat/predicate/isObjectLike.ts\n/**\n* Checks if the given value is object-like.\n*\n* A value is object-like if its type is object and it is not null.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an object-like value.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isObjectLike.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs"],"sourcesContent":["//#region src/compat/predicate/isObjectLike.ts\n/**\n* Checks if the given value is object-like.\n*\n* A value is object-like if its type is object and it is not null.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to an object-like value.\n*\n* @param value - The value to test if it is an object-like.\n* @returns `true` if the value is an object-like, `false` otherwise.\n*\n* @example\n* const value1 = { a: 1 };\n* const value2 = [1, 2, 3];\n* const value3 = 'abc';\n* const value4 = () => {};\n* const value5 = null;\n*\n* console.log(isObjectLike(value1)); // true\n* console.log(isObjectLike(value2)); // true\n* console.log(isObjectLike(value3)); // false\n* console.log(isObjectLike(value4)); // false\n* console.log(isObjectLike(value5)); // false\n*/\nfunction isObjectLike(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\n//#endregion\nexport { isObjectLike };\n"],"x_google_ignoreList":[0],"mappings":";AAwBA,SAAS,EAAa,GAAO;CAC5B,OAAO,OAAO,KAAU,cAAY;AACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isPlainObject.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs"],"sourcesContent":["//#region src/compat/predicate/isPlainObject.ts\n/**\n* Checks if a given value is a plain object.\n*\n* A plain object is an object created by the `{}` literal, `new Object()`, or\n* `Object.create(null)`.\n*\n* This function also handles objects with custom\n* `Symbol.toStringTag` properties.\n*\n* `Symbol.toStringTag` is a built-in symbol that a constructor can use to customize the\n* default string description of objects.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isPlainObject.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs"],"sourcesContent":["//#region src/compat/predicate/isPlainObject.ts\n/**\n* Checks if a given value is a plain object.\n*\n* A plain object is an object created by the `{}` literal, `new Object()`, or\n* `Object.create(null)`.\n*\n* This function also handles objects with custom\n* `Symbol.toStringTag` properties.\n*\n* `Symbol.toStringTag` is a built-in symbol that a constructor can use to customize the\n* default string description of objects.\n*\n* @param [object] - The value to check.\n* @returns True if the value is a plain object, otherwise false.\n*\n* @example\n* console.log(isPlainObject({})); // true\n* console.log(isPlainObject([])); // false\n* console.log(isPlainObject(null)); // false\n* console.log(isPlainObject(Object.create(null))); // true\n* console.log(isPlainObject(new Map())); // false\n*/\nfunction isPlainObject(object) {\n\tif (typeof object !== \"object\") return false;\n\tif (object == null) return false;\n\tif (Object.getPrototypeOf(object) === null) return true;\n\tif (Object.prototype.toString.call(object) !== \"[object Object]\") {\n\t\tconst tag = object[Symbol.toStringTag];\n\t\tif (tag == null) return false;\n\t\tif (!Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)?.writable) return false;\n\t\treturn object.toString() === `[object ${tag}]`;\n\t}\n\tlet proto = object;\n\twhile (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);\n\treturn Object.getPrototypeOf(object) === proto;\n}\n//#endregion\nexport { isPlainObject };\n"],"x_google_ignoreList":[0],"mappings":";AAuBA,SAAS,EAAc,GAAQ;CAE9B,IADI,OAAO,KAAW,aAClB,GAAgB,OAAO;CAC3B,IAAI,OAAO,eAAe,CAAM,MAAM,MAAM,OAAO;CACnD,IAAI,OAAO,UAAU,SAAS,KAAK,CAAM,MAAM,mBAAmB;EACjE,IAAM,IAAM,EAAO,OAAO;EAG1B,OAFI,KAAO,QACP,CAAC,OAAO,yBAAyB,GAAQ,OAAO,WAAW,GAAG,WAAiB,KAC5E,EAAO,SAAS,MAAM,WAAW,EAAI;CAC7C;CACA,IAAI,IAAQ;CACZ,OAAO,OAAO,eAAe,CAAK,MAAM,OAAM,IAAQ,OAAO,eAAe,CAAK;CACjF,OAAO,OAAO,eAAe,CAAM,MAAM;AAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTypedArray.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs"],"sourcesContent":["import { isTypedArray as isTypedArray$1 } from \"../../predicate/isTypedArray.mjs\";\n//#region src/compat/predicate/isTypedArray.ts\n/**\n* Checks if a value is a TypedArray.\n* @param
|
|
1
|
+
{"version":3,"file":"isTypedArray.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs"],"sourcesContent":["import { isTypedArray as isTypedArray$1 } from \"../../predicate/isTypedArray.mjs\";\n//#region src/compat/predicate/isTypedArray.ts\n/**\n* Checks if a value is a TypedArray.\n* @param x The value to check.\n* @returns Returns true if `x` is a TypedArray, false otherwise.\n*\n* @example\n* const arr = new Uint8Array([1, 2, 3]);\n* isTypedArray(arr); // true\n*\n* const regularArray = [1, 2, 3];\n* isTypedArray(regularArray); // false\n*\n* const buffer = new ArrayBuffer(16);\n* isTypedArray(buffer); // false\n*/\nfunction isTypedArray(x) {\n\treturn isTypedArray$1(x);\n}\n//#endregion\nexport { isTypedArray };\n"],"x_google_ignoreList":[0],"mappings":";;AAiBA,SAAS,EAAa,GAAG;CACxB,OAAO,EAAe,CAAC;AACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noop.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/function/noop.mjs"],"sourcesContent":["//#region src/function/noop.ts\n/**\n* A no-operation function that does nothing.\n* This can be used as a placeholder or default function.\n*\n* @example\n* noop(); // Does nothing\n*\n* @returns
|
|
1
|
+
{"version":3,"file":"noop.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/function/noop.mjs"],"sourcesContent":["//#region src/function/noop.ts\n/**\n* A no-operation function that does nothing.\n* This can be used as a placeholder or default function.\n*\n* @example\n* noop(); // Does nothing\n*\n* @returns This function does not return anything.\n*/\nfunction noop() {}\n//#endregion\nexport { noop };\n"],"x_google_ignoreList":[0],"mappings":";AAUA,SAAS,IAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/object/clone.mjs"],"sourcesContent":["import { isPrimitive } from \"../predicate/isPrimitive.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/object/clone.ts\n/**\n* Creates a shallow clone of the given object.\n*\n* @template T - The type of the object.\n* @param
|
|
1
|
+
{"version":3,"file":"clone.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/object/clone.mjs"],"sourcesContent":["import { isPrimitive } from \"../predicate/isPrimitive.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/object/clone.ts\n/**\n* Creates a shallow clone of the given object.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @returns A shallow clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = clone(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an array\n* const arr = [1, 2, 3];\n* const clonedArr = clone(arr);\n* console.log(clonedArr); // [1, 2, 3]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an object\n* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n* const clonedObj = clone(obj);\n* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n* console.log(clonedObj === obj); // false\n*/\nfunction clone(obj) {\n\tif (isPrimitive(obj)) return obj;\n\tif (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer !== \"undefined\" && obj instanceof SharedArrayBuffer) return obj.slice(0);\n\tconst prototype = Object.getPrototypeOf(obj);\n\tif (prototype == null) return Object.assign(Object.create(prototype), obj);\n\tconst Constructor = prototype.constructor;\n\tif (obj instanceof Date || obj instanceof Map || obj instanceof Set) return new Constructor(obj);\n\tif (obj instanceof RegExp) {\n\t\tconst newRegExp = new Constructor(obj);\n\t\tnewRegExp.lastIndex = obj.lastIndex;\n\t\treturn newRegExp;\n\t}\n\tif (obj instanceof DataView) return new Constructor(obj.buffer.slice(0));\n\tif (obj instanceof Error) {\n\t\tlet newError;\n\t\tif (obj instanceof AggregateError) newError = new Constructor(obj.errors, obj.message, { cause: obj.cause });\n\t\telse newError = new Constructor(obj.message, { cause: obj.cause });\n\t\tnewError.stack = obj.stack;\n\t\tObject.assign(newError, obj);\n\t\treturn newError;\n\t}\n\tif (typeof File !== \"undefined\" && obj instanceof File) return new Constructor([obj], obj.name, {\n\t\ttype: obj.type,\n\t\tlastModified: obj.lastModified\n\t});\n\tif (typeof obj === \"object\") return Object.assign(Object.create(prototype), obj);\n\treturn obj;\n}\n//#endregion\nexport { clone };\n"],"x_google_ignoreList":[0],"mappings":";;;AA+BA,SAAS,EAAM,GAAK;CACnB,IAAI,EAAY,CAAG,GAAG,OAAO;CAC7B,IAAI,MAAM,QAAQ,CAAG,KAAK,EAAa,CAAG,KAAK,aAAe,eAAe,OAAO,oBAAsB,OAAe,aAAe,mBAAmB,OAAO,EAAI,MAAM,CAAC;CAC7K,IAAM,IAAY,OAAO,eAAe,CAAG;CAC3C,IAAI,KAAa,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,CAAS,GAAG,CAAG;CACzE,IAAM,IAAc,EAAU;CAC9B,IAAI,aAAe,QAAQ,aAAe,OAAO,aAAe,KAAK,OAAO,IAAI,EAAY,CAAG;CAC/F,IAAI,aAAe,QAAQ;EAC1B,IAAM,IAAY,IAAI,EAAY,CAAG;EAErC,OADA,EAAU,YAAY,EAAI,WACnB;CACR;CACA,IAAI,aAAe,UAAU,OAAO,IAAI,EAAY,EAAI,OAAO,MAAM,CAAC,CAAC;CACvE,IAAI,aAAe,OAAO;EACzB,IAAI;EAKJ,OAJA,AACK,IADD,aAAe,iBAA2B,IAAI,EAAY,EAAI,QAAQ,EAAI,SAAS,EAAE,OAAO,EAAI,MAAM,CAAC,IAC3F,IAAI,EAAY,EAAI,SAAS,EAAE,OAAO,EAAI,MAAM,CAAC,GACjE,EAAS,QAAQ,EAAI,OACrB,OAAO,OAAO,GAAU,CAAG,GACpB;CACR;CAMA,OALI,OAAO,OAAS,OAAe,aAAe,OAAa,IAAI,EAAY,CAAC,CAAG,GAAG,EAAI,MAAM;EAC/F,MAAM,EAAI;EACV,cAAc,EAAI;CACnB,CAAC,IACG,OAAO,KAAQ,WAAiB,OAAO,OAAO,OAAO,OAAO,CAAS,GAAG,CAAG,IACxE;AACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneDeepWith.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs"],"sourcesContent":["import { isPrimitive } from \"../predicate/isPrimitive.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\nimport { getSymbols } from \"../compat/_internal/getSymbols.mjs\";\nimport { getTag } from \"../compat/_internal/getTag.mjs\";\nimport { argumentsTag, arrayBufferTag, arrayTag, booleanTag, dataViewTag, dateTag, float32ArrayTag, float64ArrayTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag } from \"../compat/_internal/tags.mjs\";\nimport { isBuffer } from \"../predicate/isBuffer.mjs\";\n//#region src/object/cloneDeepWith.ts\n/**\n* Deeply clones the given object.\n*\n* You can customize the deep cloning process using the `cloneValue` function.\n* The function takes the current value `value`, the property name `key`, and the entire object `obj` as arguments.\n* If the function returns a value, that value is used;\n* if it returns `undefined`, the default cloning method is used.\n*\n* @template T - The type of the object.\n* @param {T} obj - The object to clone.\n* @param {Function} [cloneValue] - A function to customize the cloning process.\n* @returns {T} - A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = cloneDeepWith(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an object with a customizer\n* const obj = { a: 1, b: 2 };\n* const clonedObj = cloneDeepWith(obj, (value) => {\n* if (typeof value === 'number') {\n* return value * 2; // Double the number\n* }\n* });\n* console.log(clonedObj); // { a: 2, b: 4 }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an array with a customizer\n* const arr = [1, 2, 3];\n* const clonedArr = cloneDeepWith(arr, (value) => {\n* return value + 1; // Increment each value\n* });\n* console.log(clonedArr); // [2, 3, 4]\n* console.log(clonedArr === arr); // false\n*/\nfunction cloneDeepWith(obj, cloneValue) {\n\treturn cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), cloneValue);\n}\nfunction cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {\n\tconst cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);\n\tif (cloned !== void 0) return cloned;\n\tif (isPrimitive(valueToClone)) return valueToClone;\n\tif (stack.has(valueToClone)) return stack.get(valueToClone);\n\tif (Array.isArray(valueToClone)) {\n\t\tconst result = new Array(valueToClone.length);\n\t\tstack.set(valueToClone, result);\n\t\tfor (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n\t\tif (Object.hasOwn(valueToClone, \"index\")) result.index = valueToClone.index;\n\t\tif (Object.hasOwn(valueToClone, \"input\")) result.input = valueToClone.input;\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Date) return new Date(valueToClone.getTime());\n\tif (valueToClone instanceof RegExp) {\n\t\tconst result = new RegExp(valueToClone.source, valueToClone.flags);\n\t\tresult.lastIndex = valueToClone.lastIndex;\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Map) {\n\t\tconst result = /* @__PURE__ */ new Map();\n\t\tstack.set(valueToClone, result);\n\t\tfor (const [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Set) {\n\t\tconst result = /* @__PURE__ */ new Set();\n\t\tstack.set(valueToClone, result);\n\t\tfor (const value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));\n\t\treturn result;\n\t}\n\tif (isBuffer(valueToClone)) return valueToClone.subarray();\n\tif (isTypedArray(valueToClone)) {\n\t\tconst result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);\n\t\tstack.set(valueToClone, result);\n\t\tfor (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer !== \"undefined\" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0);\n\tif (valueToClone instanceof DataView) {\n\t\tconst result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof File !== \"undefined\" && valueToClone instanceof File) {\n\t\tconst result = new File([valueToClone], valueToClone.name, { type: valueToClone.type });\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof Blob !== \"undefined\" && valueToClone instanceof Blob) {\n\t\tconst result = new Blob([valueToClone], { type: valueToClone.type });\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Error) {\n\t\tconst result = structuredClone(valueToClone);\n\t\tstack.set(valueToClone, result);\n\t\tresult.message = valueToClone.message;\n\t\tresult.name = valueToClone.name;\n\t\tresult.stack = valueToClone.stack;\n\t\tresult.cause = valueToClone.cause;\n\t\tresult.constructor = valueToClone.constructor;\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Boolean) {\n\t\tconst result = new Boolean(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Number) {\n\t\tconst result = new Number(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof String) {\n\t\tconst result = new String(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof valueToClone === \"object\" && isCloneableObject(valueToClone)) {\n\t\tconst result = Object.create(Object.getPrototypeOf(valueToClone));\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\treturn valueToClone;\n}\nfunction copyProperties(target, source, objectToClone = target, stack, cloneValue) {\n\tconst keys = [...Object.keys(source), ...getSymbols(source)];\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tconst key = keys[i];\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(target, key);\n\t\tif (descriptor == null || descriptor.writable) target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);\n\t}\n}\nfunction isCloneableObject(object) {\n\tswitch (getTag(object)) {\n\t\tcase argumentsTag:\n\t\tcase arrayTag:\n\t\tcase arrayBufferTag:\n\t\tcase dataViewTag:\n\t\tcase booleanTag:\n\t\tcase dateTag:\n\t\tcase float32ArrayTag:\n\t\tcase float64ArrayTag:\n\t\tcase int8ArrayTag:\n\t\tcase int16ArrayTag:\n\t\tcase int32ArrayTag:\n\t\tcase mapTag:\n\t\tcase numberTag:\n\t\tcase objectTag:\n\t\tcase regexpTag:\n\t\tcase setTag:\n\t\tcase stringTag:\n\t\tcase symbolTag:\n\t\tcase uint8ArrayTag:\n\t\tcase uint8ClampedArrayTag:\n\t\tcase uint16ArrayTag:\n\t\tcase uint32ArrayTag: return true;\n\t\tdefault: return false;\n\t}\n}\n//#endregion\nexport { cloneDeepWith, cloneDeepWithImpl, copyProperties };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AA+CA,SAAS,EAAc,GAAK,GAAY;CACvC,OAAO,EAAkB,GAAK,KAAK,GAAG,mBAAqB,IAAI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ACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,GAAgB,OAAO;EAC5B,SAAS,OAAO;CACjB;AACD"}
|
|
1
|
+
{"version":3,"file":"cloneDeepWith.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs"],"sourcesContent":["import { isPrimitive } from \"../predicate/isPrimitive.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\nimport { getSymbols } from \"../compat/_internal/getSymbols.mjs\";\nimport { getTag } from \"../compat/_internal/getTag.mjs\";\nimport { argumentsTag, arrayBufferTag, arrayTag, booleanTag, dataViewTag, dateTag, float32ArrayTag, float64ArrayTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag } from \"../compat/_internal/tags.mjs\";\nimport { isBuffer } from \"../predicate/isBuffer.mjs\";\n//#region src/object/cloneDeepWith.ts\n/**\n* Deeply clones the given object.\n*\n* You can customize the deep cloning process using the `cloneValue` function.\n* The function takes the current value `value`, the property name `key`, and the entire object `obj` as arguments.\n* If the function returns a value, that value is used;\n* if it returns `undefined`, the default cloning method is used.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @param [cloneValue] - A function to customize the cloning process.\n* @returns A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = cloneDeepWith(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an object with a customizer\n* const obj = { a: 1, b: 2 };\n* const clonedObj = cloneDeepWith(obj, (value) => {\n* if (typeof value === 'number') {\n* return value * 2; // Double the number\n* }\n* });\n* console.log(clonedObj); // { a: 2, b: 4 }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an array with a customizer\n* const arr = [1, 2, 3];\n* const clonedArr = cloneDeepWith(arr, (value) => {\n* return value + 1; // Increment each value\n* });\n* console.log(clonedArr); // [2, 3, 4]\n* console.log(clonedArr === arr); // false\n*/\nfunction cloneDeepWith(obj, cloneValue) {\n\treturn cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), cloneValue);\n}\nfunction cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {\n\tconst cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);\n\tif (cloned !== void 0) return cloned;\n\tif (isPrimitive(valueToClone)) return valueToClone;\n\tif (stack.has(valueToClone)) return stack.get(valueToClone);\n\tif (Array.isArray(valueToClone)) {\n\t\tconst result = new Array(valueToClone.length);\n\t\tstack.set(valueToClone, result);\n\t\tfor (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n\t\tif (Object.hasOwn(valueToClone, \"index\")) result.index = valueToClone.index;\n\t\tif (Object.hasOwn(valueToClone, \"input\")) result.input = valueToClone.input;\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Date) return new Date(valueToClone.getTime());\n\tif (valueToClone instanceof RegExp) {\n\t\tconst result = new RegExp(valueToClone.source, valueToClone.flags);\n\t\tresult.lastIndex = valueToClone.lastIndex;\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Map) {\n\t\tconst result = /* @__PURE__ */ new Map();\n\t\tstack.set(valueToClone, result);\n\t\tfor (const [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Set) {\n\t\tconst result = /* @__PURE__ */ new Set();\n\t\tstack.set(valueToClone, result);\n\t\tfor (const value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));\n\t\treturn result;\n\t}\n\tif (isBuffer(valueToClone)) return valueToClone.subarray();\n\tif (isTypedArray(valueToClone)) {\n\t\tconst result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);\n\t\tstack.set(valueToClone, result);\n\t\tfor (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer !== \"undefined\" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0);\n\tif (valueToClone instanceof DataView) {\n\t\tconst result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof File !== \"undefined\" && valueToClone instanceof File) {\n\t\tconst result = new File([valueToClone], valueToClone.name, { type: valueToClone.type });\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof Blob !== \"undefined\" && valueToClone instanceof Blob) {\n\t\tconst result = new Blob([valueToClone], { type: valueToClone.type });\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Error) {\n\t\tconst result = structuredClone(valueToClone);\n\t\tstack.set(valueToClone, result);\n\t\tresult.message = valueToClone.message;\n\t\tresult.name = valueToClone.name;\n\t\tresult.stack = valueToClone.stack;\n\t\tresult.cause = valueToClone.cause;\n\t\tresult.constructor = valueToClone.constructor;\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Boolean) {\n\t\tconst result = new Boolean(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Number) {\n\t\tconst result = new Number(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof String) {\n\t\tconst result = new String(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof valueToClone === \"object\" && isCloneableObject(valueToClone)) {\n\t\tconst result = Object.create(Object.getPrototypeOf(valueToClone));\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\treturn valueToClone;\n}\nfunction copyProperties(target, source, objectToClone = target, stack, cloneValue) {\n\tconst keys = [...Object.keys(source), ...getSymbols(source)];\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tconst key = keys[i];\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(target, key);\n\t\tif (descriptor == null || descriptor.writable) target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);\n\t}\n}\nfunction isCloneableObject(object) {\n\tswitch (getTag(object)) {\n\t\tcase argumentsTag:\n\t\tcase arrayTag:\n\t\tcase arrayBufferTag:\n\t\tcase dataViewTag:\n\t\tcase booleanTag:\n\t\tcase dateTag:\n\t\tcase float32ArrayTag:\n\t\tcase float64ArrayTag:\n\t\tcase int8ArrayTag:\n\t\tcase int16ArrayTag:\n\t\tcase int32ArrayTag:\n\t\tcase mapTag:\n\t\tcase numberTag:\n\t\tcase objectTag:\n\t\tcase regexpTag:\n\t\tcase setTag:\n\t\tcase stringTag:\n\t\tcase symbolTag:\n\t\tcase uint8ArrayTag:\n\t\tcase uint8ClampedArrayTag:\n\t\tcase uint16ArrayTag:\n\t\tcase uint32ArrayTag: return true;\n\t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;EAC9D,CAAI,KAAc,QAAQ,EAAW,cAAU,EAAO,KAAO,EAAkB,EAAO,IAAM,GAAK,GAAe,GAAO,CAAU;CAClI;AACD;AACA,SAAS,EAAkB,GAAQ;CAClC,QAAQ,EAAO,CAAM,GAArB;EACC,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,GAAgB,OAAO;EAC5B,SAAS,OAAO;CACjB;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isBuffer.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isBuffer.mjs"],"sourcesContent":["import { globalThis_ } from \"../_internal/globalThis.mjs\";\n//#region src/predicate/isBuffer.ts\n/**\n* Checks if the given value is a Buffer instance.\n*\n* This function tests whether the provided value is an instance of Buffer.\n* It returns `true` if the value is a Buffer, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isBuffer.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isBuffer.mjs"],"sourcesContent":["import { globalThis_ } from \"../_internal/globalThis.mjs\";\n//#region src/predicate/isBuffer.ts\n/**\n* Checks if the given value is a Buffer instance.\n*\n* This function tests whether the provided value is an instance of Buffer.\n* It returns `true` if the value is a Buffer, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.\n*\n* @param x - The value to check if it is a Buffer.\n* @returns Returns `true` if `x` is a Buffer, else `false`.\n*\n* @example\n* const buffer = Buffer.from(\"test\");\n* console.log(isBuffer(buffer)); // true\n*\n* const notBuffer = \"not a buffer\";\n* console.log(isBuffer(notBuffer)); // false\n*/\nfunction isBuffer(x) {\n\treturn typeof globalThis_.Buffer !== \"undefined\" && globalThis_.Buffer.isBuffer(x);\n}\n//#endregion\nexport { isBuffer };\n"],"x_google_ignoreList":[0],"mappings":";;AAoBA,SAAS,EAAS,GAAG;CACpB,OAAc,EAAY,WAAW,UAAe,EAAY,OAAO,SAAS,CAAC;AAClF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isLength.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isLength.mjs"],"sourcesContent":["//#region src/predicate/isLength.ts\n/**\n* Checks if a given value is a valid length.\n*\n* A valid length is of type `number`, is a non-negative integer, and is less than or equal to\n* JavaScript's maximum safe integer (`Number.MAX_SAFE_INTEGER`).\n* It returns `true` if the value is a valid length, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the\n* argument to a valid length (`number`).\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isLength.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isLength.mjs"],"sourcesContent":["//#region src/predicate/isLength.ts\n/**\n* Checks if a given value is a valid length.\n*\n* A valid length is of type `number`, is a non-negative integer, and is less than or equal to\n* JavaScript's maximum safe integer (`Number.MAX_SAFE_INTEGER`).\n* It returns `true` if the value is a valid length, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the\n* argument to a valid length (`number`).\n*\n* @param value The value to check.\n* @returns Returns `true` if `value` is a valid length, else `false`.\n*\n* @example\n* isLength(0); // true\n* isLength(42); // true\n* isLength(-1); // false\n* isLength(1.5); // false\n* isLength(Number.MAX_SAFE_INTEGER); // true\n* isLength(Number.MAX_SAFE_INTEGER + 1); // false\n*/\nfunction isLength(value) {\n\treturn Number.isSafeInteger(value) && value >= 0;\n}\n//#endregion\nexport { isLength };\n"],"x_google_ignoreList":[0],"mappings":";AAsBA,SAAS,EAAS,GAAO;CACxB,OAAO,OAAO,cAAc,CAAK,KAAK,KAAS;AAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isPrimitive.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs"],"sourcesContent":["//#region src/predicate/isPrimitive.ts\n/**\n* Checks whether a value is a JavaScript primitive.\n* JavaScript primitives include null, undefined, strings, numbers, booleans, symbols, and bigints.\n*\n* @param
|
|
1
|
+
{"version":3,"file":"isPrimitive.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs"],"sourcesContent":["//#region src/predicate/isPrimitive.ts\n/**\n* Checks whether a value is a JavaScript primitive.\n* JavaScript primitives include null, undefined, strings, numbers, booleans, symbols, and bigints.\n*\n* @param value The value to check.\n* @returns Returns true if `value` is a primitive, false otherwise.\n*\n* @example\n* isPrimitive(null); // true\n* isPrimitive(undefined); // true\n* isPrimitive('123'); // true\n* isPrimitive(false); // true\n* isPrimitive(true); // true\n* isPrimitive(Symbol('a')); // true\n* isPrimitive(123n); // true\n* isPrimitive({}); // false\n* isPrimitive(new Date()); // false\n* isPrimitive(new Map()); // false\n* isPrimitive(new Set()); // false\n* isPrimitive([1, 2, 3]); // false\n*/\nfunction isPrimitive(value) {\n\treturn value == null || typeof value !== \"object\" && typeof value !== \"function\";\n}\n//#endregion\nexport { isPrimitive };\n"],"x_google_ignoreList":[0],"mappings":";AAsBA,SAAS,EAAY,GAAO;CAC3B,OAAO,KAAS,QAAQ,OAAO,KAAU,YAAY,OAAO,KAAU;AACvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTypedArray.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs"],"sourcesContent":["//#region src/predicate/isTypedArray.ts\n/**\n* Checks if a value is a TypedArray.\n* @param
|
|
1
|
+
{"version":3,"file":"isTypedArray.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs"],"sourcesContent":["//#region src/predicate/isTypedArray.ts\n/**\n* Checks if a value is a TypedArray.\n* @param x The value to check.\n* @returns Returns true if `x` is a TypedArray, false otherwise.\n*\n* @example\n* const arr = new Uint8Array([1, 2, 3]);\n* isTypedArray(arr); // true\n*\n* const regularArray = [1, 2, 3];\n* isTypedArray(regularArray); // false\n*\n* const buffer = new ArrayBuffer(16);\n* isTypedArray(buffer); // false\n*/\nfunction isTypedArray(x) {\n\treturn ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n//#endregion\nexport { isTypedArray };\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAS,EAAa,GAAG;CACxB,OAAO,YAAY,OAAO,CAAC,KAAK,EAAE,aAAa;AAChD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumile/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.185",
|
|
4
4
|
"description": "Shared React UI primitives and theme for Kronex applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"tslib": "^2.8.1"
|
|
166
166
|
},
|
|
167
167
|
"devDependencies": {
|
|
168
|
-
"@plumile/router": "^0.1.
|
|
168
|
+
"@plumile/router": "^0.1.185",
|
|
169
169
|
"@types/react": "19.2.17",
|
|
170
170
|
"@types/react-dom": "19.2.3",
|
|
171
171
|
"i18next": "26.3.1",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"typescript": "6.0.3"
|
|
177
177
|
},
|
|
178
178
|
"peerDependencies": {
|
|
179
|
-
"@plumile/router": "^0.1.
|
|
179
|
+
"@plumile/router": "^0.1.184",
|
|
180
180
|
"i18next": "^26.3.1",
|
|
181
181
|
"react": "^19.2.7",
|
|
182
182
|
"react-dom": "^19.2.7",
|