@plumile/ui 0.1.150 → 0.1.152
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_sidebar/adminSidebar.css.js +2 -0
- package/lib/esm/atomic/atoms/textarea/textarea.css.js +0 -2
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownSubscript.css.js +0 -1
- package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/getTag.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/tags.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 +4 -4
- 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 +19 -19
- 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 +6 -6
- 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 +75 -75
- 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/lib/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js +51 -51
- package/lib/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-4H26LBE5.js.map +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +14 -14
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js.map +1 -1
- package/lib/esm/node_modules/react-shiki/dist/{component-C5lsWZSq.js → component-CYq7SnJ0.js} +8 -9
- package/lib/esm/node_modules/react-shiki/dist/component-CYq7SnJ0.js.map +1 -0
- package/lib/esm/node_modules/react-shiki/dist/index.js +1 -1
- package/lib/esm/node_modules/react-shiki/dist/index.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/package.json +4 -4
- package/lib/esm/node_modules/react-shiki/dist/component-C5lsWZSq.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalThis.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/_internal/globalThis.mjs"],"sourcesContent":["
|
|
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})() || Function(\"return this\")();\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,KAAK,SAAS,aAAa,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isUnsafeProperty.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs"],"sourcesContent":["function isUnsafeProperty(key) {\n
|
|
1
|
+
{"version":3,"file":"isUnsafeProperty.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs"],"sourcesContent":["//#region src/_internal/isUnsafeProperty.ts\n/**\n* Checks if a property key is unsafe to modify directly.\n*\n* This function is used in functions like `merge` to prevent prototype pollution attacks\n* by identifying property keys that could modify the object's prototype chain or constructor.\n*\n* @param key - The property key to check\n* @returns `true` if the property is unsafe to modify directly, `false` otherwise\n* @internal\n*/\nfunction isUnsafeProperty(key) {\n\treturn key === \"__proto__\";\n}\n//#endregion\nexport { isUnsafeProperty };\n"],"x_google_ignoreList":[0],"mappings":";AAWA,SAAS,EAAiB,GAAK;CAC9B,OAAO,MAAQ;AAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSymbols.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"getSymbols.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs"],"sourcesContent":["//#region src/compat/_internal/getSymbols.ts\nfunction getSymbols(object) {\n\treturn Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));\n}\n//#endregion\nexport { getSymbols };\n"],"x_google_ignoreList":[0],"mappings":";AACA,SAAS,EAAW,GAAQ;CAC3B,OAAO,OAAO,sBAAsB,CAAM,EAAE,QAAQ,MAAW,OAAO,UAAU,qBAAqB,KAAK,GAAQ,CAAM,CAAC;AAC1H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTag.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"getTag.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs"],"sourcesContent":["//#region src/compat/_internal/getTag.ts\n/**\n* Gets the `toStringTag` of `value`.\n*\n* @private\n* @param {T} value The value to query.\n* @returns {string} Returns the `Object.prototype.toString.call` result.\n*/\nfunction getTag(value) {\n\tif (value == null) return value === void 0 ? \"[object Undefined]\" : \"[object Null]\";\n\treturn Object.prototype.toString.call(value);\n}\n//#endregion\nexport { getTag };\n"],"x_google_ignoreList":[0],"mappings":";AAQA,SAAS,EAAO,GAAO;CAEtB,OADI,KAAS,OAAa,MAAU,KAAK,IAAI,uBAAuB,kBAC7D,OAAO,UAAU,SAAS,KAAK,CAAK;AAC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isPrototype.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"isPrototype.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs"],"sourcesContent":["//#region src/compat/_internal/isPrototype.ts\nfunction isPrototype(value) {\n\tconst constructor = value?.constructor;\n\treturn value === (typeof constructor === \"function\" ? constructor.prototype : Object.prototype);\n}\n//#endregion\nexport { isPrototype };\n"],"x_google_ignoreList":[0],"mappings":";AACA,SAAS,EAAY,GAAO;CAC3B,IAAM,IAAc,GAAO;CAC3B,OAAO,OAAW,OAAO,KAAgB,aAAa,EAAY,YAAY,OAAO;AACtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"tags.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs"],"sourcesContent":["//#region src/compat/_internal/tags.ts\nconst regexpTag = \"[object RegExp]\";\nconst stringTag = \"[object String]\";\nconst numberTag = \"[object Number]\";\nconst booleanTag = \"[object Boolean]\";\nconst argumentsTag = \"[object Arguments]\";\nconst symbolTag = \"[object Symbol]\";\nconst dateTag = \"[object Date]\";\nconst mapTag = \"[object Map]\";\nconst setTag = \"[object Set]\";\nconst arrayTag = \"[object Array]\";\nconst functionTag = \"[object Function]\";\nconst arrayBufferTag = \"[object ArrayBuffer]\";\nconst objectTag = \"[object Object]\";\nconst errorTag = \"[object Error]\";\nconst dataViewTag = \"[object DataView]\";\nconst uint8ArrayTag = \"[object Uint8Array]\";\nconst uint8ClampedArrayTag = \"[object Uint8ClampedArray]\";\nconst uint16ArrayTag = \"[object Uint16Array]\";\nconst uint32ArrayTag = \"[object Uint32Array]\";\nconst bigUint64ArrayTag = \"[object BigUint64Array]\";\nconst int8ArrayTag = \"[object Int8Array]\";\nconst int16ArrayTag = \"[object Int16Array]\";\nconst int32ArrayTag = \"[object Int32Array]\";\nconst bigInt64ArrayTag = \"[object BigInt64Array]\";\nconst float32ArrayTag = \"[object Float32Array]\";\nconst float64ArrayTag = \"[object Float64Array]\";\n//#endregion\nexport { argumentsTag, arrayBufferTag, arrayTag, bigInt64ArrayTag, bigUint64ArrayTag, booleanTag, dataViewTag, dateTag, errorTag, float32ArrayTag, float64ArrayTag, functionTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag };\n"],"x_google_ignoreList":[0],"mappings":";AACA,IAAM,IAAY,mBACZ,IAAY,mBACZ,IAAY,mBACZ,IAAa,oBACb,IAAe,sBACf,IAAY,mBACZ,IAAU,iBACV,IAAS,gBACT,IAAS,gBACT,IAAW,kBAEX,IAAiB,wBACjB,IAAY,mBAEZ,IAAc,qBACd,IAAgB,uBAChB,IAAuB,8BACvB,IAAiB,wBACjB,IAAiB,wBAEjB,IAAe,sBACf,IAAgB,uBAChB,IAAgB,uBAEhB,IAAkB,yBAClB,IAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoize.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/function/memoize.mjs"],"sourcesContent":["function memoize(func, resolver) {\n
|
|
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 {T} func The function to have its output memoized.\n* @param {Function} [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,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isArray as e } from "../predicate/isArray.js";
|
|
2
2
|
import { getTag as t } from "../_internal/getTag.js";
|
|
3
3
|
import { argumentsTag as n, arrayBufferTag as r, arrayTag as i, booleanTag as a, dataViewTag as o, dateTag as s, float32ArrayTag as c, float64ArrayTag as l, int16ArrayTag as u, int32ArrayTag as d, int8ArrayTag as f, mapTag as p, numberTag as m, objectTag as h, regexpTag as g, setTag as _, stringTag as v, symbolTag as y, uint16ArrayTag as b, uint32ArrayTag as x, uint8ArrayTag as S, uint8ClampedArrayTag as C } from "../_internal/tags.js";
|
|
4
|
-
import {
|
|
4
|
+
import { isPrimitive as w } from "../../predicate/isPrimitive.js";
|
|
5
5
|
import { isTypedArray as T } from "../predicate/isTypedArray.js";
|
|
6
6
|
//#region ../../node_modules/es-toolkit/dist/compat/object/clone.mjs
|
|
7
7
|
function E(n) {
|
|
8
|
-
if (
|
|
8
|
+
if (w(n)) return n;
|
|
9
9
|
let r = t(n);
|
|
10
10
|
if (!D(n)) return {};
|
|
11
|
-
if (
|
|
11
|
+
if (e(n)) {
|
|
12
12
|
let e = Array.from(n);
|
|
13
13
|
return n.length > 0 && typeof n[0] == "string" && Object.hasOwn(n, "index") && (e.index = n.index, e.input = n.input), e;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/clone.mjs"],"sourcesContent":["import { isPrimitive } from
|
|
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 {T} obj - The object to clone.\n* @returns {T} - A shallow clone of the given object.\n*\n* @example\n* // Clone a primitive objs\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":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneDeep.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs"],"sourcesContent":["import { cloneDeepWith } from
|
|
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 {T} obj - The object to clone.\n* @returns {T} - A deep clone of the given object.\n*\n* @example\n* // Clone a primitive values\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 { cloneDeepWith as cloneDeepWith$1, copyProperties } from
|
|
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 {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, 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 { mergeWith } from
|
|
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 {any} object - The target object into which the source object properties will be merged. This object is modified in place.\n* @param {any[]} sources - The source objects whose properties will be merged into the target object.\n* @returns {any} 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,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { isPlainObject as e } from "../predicate/isPlainObject.js";
|
|
2
|
+
import { getSymbols as t } from "../_internal/getSymbols.js";
|
|
3
|
+
import { isBuffer as n } from "../../predicate/isBuffer.js";
|
|
4
|
+
import { isUnsafeProperty as r } from "../../_internal/isUnsafeProperty.js";
|
|
5
|
+
import { isPrimitive as i } from "../../predicate/isPrimitive.js";
|
|
6
|
+
import { cloneDeep as a } from "./cloneDeep.js";
|
|
7
|
+
import { isArguments as o } from "../predicate/isArguments.js";
|
|
8
|
+
import { isObjectLike as s } from "../predicate/isObjectLike.js";
|
|
9
|
+
import { isArrayLikeObject as c } from "../predicate/isArrayLikeObject.js";
|
|
10
|
+
import { isTypedArray as l } from "../predicate/isTypedArray.js";
|
|
11
11
|
import { clone as u } from "../../object/clone.js";
|
|
12
12
|
//#region ../../node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
|
|
13
13
|
function d(e, ...t) {
|
|
@@ -19,31 +19,31 @@ function d(e, ...t) {
|
|
|
19
19
|
return i;
|
|
20
20
|
}
|
|
21
21
|
function f(d, p, m, h) {
|
|
22
|
-
if (
|
|
22
|
+
if (i(d) && (d = Object(d)), typeof p != "object" || !p) return d;
|
|
23
23
|
if (h.has(p)) return u(h.get(p));
|
|
24
24
|
if (h.set(p, d), Array.isArray(p)) {
|
|
25
25
|
p = p.slice();
|
|
26
26
|
for (let e = 0; e < p.length; e++) p[e] = p[e] ?? void 0;
|
|
27
27
|
}
|
|
28
|
-
let g = [...Object.keys(p), ...
|
|
28
|
+
let g = [...Object.keys(p), ...t(p)];
|
|
29
29
|
for (let t = 0; t < g.length; t++) {
|
|
30
|
-
let
|
|
31
|
-
if (
|
|
32
|
-
let u = p[
|
|
33
|
-
if (
|
|
30
|
+
let i = g[t];
|
|
31
|
+
if (r(i)) continue;
|
|
32
|
+
let u = p[i], _ = d[i];
|
|
33
|
+
if (o(u) && (u = { ...u }), o(_) && (_ = { ..._ }), n(u) && (u = a(u)), Array.isArray(u)) if (Array.isArray(_)) {
|
|
34
34
|
let e = [], t = Reflect.ownKeys(_);
|
|
35
35
|
for (let n = 0; n < t.length; n++) {
|
|
36
36
|
let r = t[n];
|
|
37
37
|
e[r] = _[r];
|
|
38
38
|
}
|
|
39
39
|
_ = e;
|
|
40
|
-
} else if (
|
|
40
|
+
} else if (c(_)) {
|
|
41
41
|
let e = [];
|
|
42
42
|
for (let t = 0; t < _.length; t++) e[t] = _[t];
|
|
43
43
|
_ = e;
|
|
44
44
|
} else _ = [];
|
|
45
|
-
let v = m(_, u,
|
|
46
|
-
v === void 0 ? Array.isArray(u) ||
|
|
45
|
+
let v = m(_, u, i, d, p, h);
|
|
46
|
+
v === void 0 ? Array.isArray(u) || s(_) && s(u) && (e(_) || e(u) || l(_) || l(u)) ? d[i] = f(_, u, m, h) : _ == null && e(u) ? d[i] = f({}, u, m, h) : _ == null && l(u) ? d[i] = a(u) : (_ === void 0 || u !== void 0) && (d[i] = u) : d[i] = v;
|
|
47
47
|
}
|
|
48
48
|
return d;
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeWith.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/object/mergeWith.mjs"],"sourcesContent":["import {
|
|
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 {any} object - The target object into which the source object properties will be merged. This object is modified in place.\n* @param {...any} otherArgs - Additional source objects to merge into the target object, including the custom `merge` function.\n* @returns {any} 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,EAAU,SAAS,IACvC,IAAS;CACb,KAAK,IAAI,IAAI,GAAG,IAAI,EAAQ,QAAQ,KAAK;EACxC,IAAM,IAAS,EAAQ;EACvB,IAAS,EAAc,GAAQ,GAAQ,mBAAuB,IAAI,IAAI,CAAC;CACxE;CACA,OAAO;AACR;AACA,SAAS,EAAc,GAAQ,GAAQ,GAAO,GAAO;CAEpD,IADI,EAAY,CAAM,MAAG,IAAS,OAAO,CAAM,IACzB,OAAO,KAAW,aAApC,GAA8C,OAAO;CACzD,IAAI,EAAM,IAAI,CAAM,GAAG,OAAO,EAAM,EAAM,IAAI,CAAM,CAAC;CAErD,IADA,EAAM,IAAI,GAAQ,CAAM,GACpB,MAAM,QAAQ,CAAM,GAAG;EAC1B,IAAS,EAAO,MAAM;EACtB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAO,QAAQ,KAAK,EAAO,KAAK,EAAO,MAAM,KAAK;CACvE;CACA,IAAM,IAAa,CAAC,GAAG,OAAO,KAAK,CAAM,GAAG,GAAG,EAAW,CAAM,CAAC;CACjE,KAAK,IAAI,IAAI,GAAG,IAAI,EAAW,QAAQ,KAAK;EAC3C,IAAM,IAAM,EAAW;EACvB,IAAI,EAAiB,CAAG,GAAG;EAC3B,IAAI,IAAc,EAAO,IACrB,IAAc,EAAO;EAIzB,IAHI,EAAY,CAAW,MAAG,IAAc,EAAE,GAAG,EAAY,IACzD,EAAY,CAAW,MAAG,IAAc,EAAE,GAAG,EAAY,IACzD,EAAS,CAAW,MAAG,IAAc,EAAU,CAAW,IAC1D,MAAM,QAAQ,CAAW,GAAG,IAAI,MAAM,QAAQ,CAAW,GAAG;GAC/D,IAAM,IAAS,CAAC,GACV,IAAa,QAAQ,QAAQ,CAAW;GAC9C,KAAK,IAAI,IAAI,GAAG,IAAI,EAAW,QAAQ,KAAK;IAC3C,IAAM,IAAY,EAAW;IAC7B,EAAO,KAAa,EAAY;GACjC;GACA,IAAc;EACf,OAAO,IAAI,EAAkB,CAAW,GAAG;GAC1C,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
|
|
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 {any} value - The value to test if it is an arguments object.\n* @returns {value is IArguments} `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":["function isArray(value) {\n
|
|
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 {any} value - The value to test if it is an array.\n* @returns {value is any[]} `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
|
|
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 {any} value The value to check.\n* @returns {boolean} 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
|
|
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 {any} value The value to check.\n* @returns {boolean} `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"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isBuffer as e } from "../../predicate/isBuffer.js";
|
|
2
|
+
import { isArrayLike as t } from "./isArrayLike.js";
|
|
3
3
|
import { isArguments as n } from "./isArguments.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { isTypedArray as r } from "./isTypedArray.js";
|
|
5
|
+
import { isPrototype as i } from "../_internal/isPrototype.js";
|
|
6
6
|
//#region ../../node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
|
|
7
7
|
function a(a) {
|
|
8
8
|
if (a == null) return !0;
|
|
9
|
-
if (
|
|
9
|
+
if (t(a)) return typeof a.splice != "function" && typeof a != "string" && !e(a) && !r(a) && !n(a) ? !1 : a.length === 0;
|
|
10
10
|
if (typeof a == "object") {
|
|
11
11
|
if (a instanceof Map || a instanceof Set) return a.size === 0;
|
|
12
12
|
let e = Object.keys(a);
|
|
13
|
-
return
|
|
13
|
+
return i(a) ? e.filter((e) => e !== "constructor").length === 0 : e.length === 0;
|
|
14
14
|
}
|
|
15
15
|
return !0;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEmpty.js","names":[],"sources":["../../../../../../../../../node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs"],"sourcesContent":["import {
|
|
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 {unknown} [value] - The value to check.\n* @returns {boolean} `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\") {\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,UAAU;EAC9B,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":["function isObjectLike(value) {\n
|
|
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 {any} value - The value to test if it is an object-like.\n* @returns {boolean} `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":["function isPlainObject(object) {\n
|
|
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 {any} [object] - The value to check.\n* @returns {boolean} - 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
|
|
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 {any} x The value to check.\n* @returns {boolean} 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":["function noop() { }\n\nexport { noop };\n"],"x_google_ignoreList":[0],"mappings":";
|
|
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 {void} 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
|
|
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 {T} obj - The object to clone.\n* @returns {T} - A shallow clone of the given object.\n*\n* @example\n* // Clone a primitive values\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"}
|