@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,114 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { getSymbols as e } from "../compat/_internal/getSymbols.js";
|
|
2
|
+
import { getTag as t } from "../compat/_internal/getTag.js";
|
|
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 "../compat/_internal/tags.js";
|
|
4
|
+
import { isBuffer as w } from "../predicate/isBuffer.js";
|
|
5
|
+
import { isPrimitive as T } from "../predicate/isPrimitive.js";
|
|
6
6
|
import { isTypedArray as E } from "../predicate/isTypedArray.js";
|
|
7
7
|
//#region ../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
8
8
|
function D(e, t) {
|
|
9
9
|
return O(e, void 0, e, /* @__PURE__ */ new Map(), t);
|
|
10
10
|
}
|
|
11
|
-
function O(t, n, r
|
|
12
|
-
let
|
|
13
|
-
if (
|
|
14
|
-
if (e
|
|
15
|
-
if (
|
|
16
|
-
if (Array.isArray(
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
for (let
|
|
20
|
-
return Object.hasOwn(
|
|
11
|
+
function O(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
12
|
+
let a = i?.(e, t, n, r);
|
|
13
|
+
if (a !== void 0) return a;
|
|
14
|
+
if (T(e)) return e;
|
|
15
|
+
if (r.has(e)) return r.get(e);
|
|
16
|
+
if (Array.isArray(e)) {
|
|
17
|
+
let t = Array(e.length);
|
|
18
|
+
r.set(e, t);
|
|
19
|
+
for (let a = 0; a < e.length; a++) t[a] = O(e[a], a, n, r, i);
|
|
20
|
+
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
|
|
21
21
|
}
|
|
22
|
-
if (
|
|
23
|
-
if (
|
|
24
|
-
let
|
|
25
|
-
return
|
|
22
|
+
if (e instanceof Date) return new Date(e.getTime());
|
|
23
|
+
if (e instanceof RegExp) {
|
|
24
|
+
let t = new RegExp(e.source, e.flags);
|
|
25
|
+
return t.lastIndex = e.lastIndex, t;
|
|
26
26
|
}
|
|
27
|
-
if (
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
for (let [
|
|
31
|
-
return
|
|
27
|
+
if (e instanceof Map) {
|
|
28
|
+
let t = /* @__PURE__ */ new Map();
|
|
29
|
+
r.set(e, t);
|
|
30
|
+
for (let [a, o] of e) t.set(a, O(o, a, n, r, i));
|
|
31
|
+
return t;
|
|
32
32
|
}
|
|
33
|
-
if (
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
for (let
|
|
37
|
-
return
|
|
33
|
+
if (e instanceof Set) {
|
|
34
|
+
let t = /* @__PURE__ */ new Set();
|
|
35
|
+
r.set(e, t);
|
|
36
|
+
for (let a of e) t.add(O(a, void 0, n, r, i));
|
|
37
|
+
return t;
|
|
38
38
|
}
|
|
39
|
-
if (
|
|
40
|
-
if (E(
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
for (let
|
|
44
|
-
return
|
|
39
|
+
if (w(e)) return e.subarray();
|
|
40
|
+
if (E(e)) {
|
|
41
|
+
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
42
|
+
r.set(e, t);
|
|
43
|
+
for (let a = 0; a < e.length; a++) t[a] = O(e[a], a, n, r, i);
|
|
44
|
+
return t;
|
|
45
45
|
}
|
|
46
|
-
if (
|
|
47
|
-
if (
|
|
48
|
-
let
|
|
49
|
-
return
|
|
46
|
+
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
47
|
+
if (e instanceof DataView) {
|
|
48
|
+
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
|
|
49
|
+
return r.set(e, t), k(t, e, n, r, i), t;
|
|
50
50
|
}
|
|
51
|
-
if (typeof File < "u" &&
|
|
52
|
-
let
|
|
53
|
-
return
|
|
51
|
+
if (typeof File < "u" && e instanceof File) {
|
|
52
|
+
let t = new File([e], e.name, { type: e.type });
|
|
53
|
+
return r.set(e, t), k(t, e, n, r, i), t;
|
|
54
54
|
}
|
|
55
|
-
if (typeof Blob < "u" &&
|
|
56
|
-
let
|
|
57
|
-
return
|
|
55
|
+
if (typeof Blob < "u" && e instanceof Blob) {
|
|
56
|
+
let t = new Blob([e], { type: e.type });
|
|
57
|
+
return r.set(e, t), k(t, e, n, r, i), t;
|
|
58
58
|
}
|
|
59
|
-
if (
|
|
60
|
-
let
|
|
61
|
-
return
|
|
59
|
+
if (e instanceof Error) {
|
|
60
|
+
let t = structuredClone(e);
|
|
61
|
+
return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, k(t, e, n, r, i), t;
|
|
62
62
|
}
|
|
63
|
-
if (
|
|
64
|
-
let
|
|
65
|
-
return
|
|
63
|
+
if (e instanceof Boolean) {
|
|
64
|
+
let t = new Boolean(e.valueOf());
|
|
65
|
+
return r.set(e, t), k(t, e, n, r, i), t;
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
let
|
|
69
|
-
return
|
|
67
|
+
if (e instanceof Number) {
|
|
68
|
+
let t = new Number(e.valueOf());
|
|
69
|
+
return r.set(e, t), k(t, e, n, r, i), t;
|
|
70
70
|
}
|
|
71
|
-
if (
|
|
72
|
-
let
|
|
73
|
-
return
|
|
71
|
+
if (e instanceof String) {
|
|
72
|
+
let t = new String(e.valueOf());
|
|
73
|
+
return r.set(e, t), k(t, e, n, r, i), t;
|
|
74
74
|
}
|
|
75
|
-
if (typeof
|
|
76
|
-
let
|
|
77
|
-
return
|
|
75
|
+
if (typeof e == "object" && A(e)) {
|
|
76
|
+
let t = Object.create(Object.getPrototypeOf(e));
|
|
77
|
+
return r.set(e, t), k(t, e, n, r, i), t;
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return e;
|
|
80
80
|
}
|
|
81
|
-
function k(
|
|
82
|
-
let o = [...Object.keys(n), ...
|
|
83
|
-
for (let
|
|
84
|
-
let s = o[
|
|
85
|
-
(c == null || c.writable) && (
|
|
81
|
+
function k(t, n, r = t, i, a) {
|
|
82
|
+
let o = [...Object.keys(n), ...e(n)];
|
|
83
|
+
for (let e = 0; e < o.length; e++) {
|
|
84
|
+
let s = o[e], c = Object.getOwnPropertyDescriptor(t, s);
|
|
85
|
+
(c == null || c.writable) && (t[s] = O(n[s], s, r, i, a));
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
function A(e) {
|
|
89
|
-
switch (
|
|
89
|
+
switch (t(e)) {
|
|
90
|
+
case n:
|
|
91
|
+
case i:
|
|
90
92
|
case r:
|
|
93
|
+
case o:
|
|
91
94
|
case a:
|
|
92
|
-
case i:
|
|
93
95
|
case s:
|
|
94
|
-
case o:
|
|
95
96
|
case c:
|
|
96
97
|
case l:
|
|
98
|
+
case f:
|
|
97
99
|
case u:
|
|
98
|
-
case p:
|
|
99
100
|
case d:
|
|
100
|
-
case
|
|
101
|
+
case p:
|
|
101
102
|
case m:
|
|
102
103
|
case h:
|
|
103
104
|
case g:
|
|
104
105
|
case _:
|
|
105
106
|
case v:
|
|
106
107
|
case y:
|
|
107
|
-
case
|
|
108
|
+
case S:
|
|
108
109
|
case C:
|
|
109
|
-
case
|
|
110
|
-
case x:
|
|
111
|
-
case S: return !0;
|
|
110
|
+
case b:
|
|
111
|
+
case x: return !0;
|
|
112
112
|
default: return !1;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloneDeepWith.js","names":[],"sources":["../../../../../../../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs"],"sourcesContent":["import { getSymbols } from '../compat/_internal/getSymbols.mjs';\nimport { getTag } from '../compat/_internal/getTag.mjs';\nimport { uint32ArrayTag, uint16ArrayTag, uint8ClampedArrayTag, uint8ArrayTag, symbolTag, stringTag, setTag, regexpTag, objectTag, numberTag, mapTag, int32ArrayTag, int16ArrayTag, int8ArrayTag, float64ArrayTag, float32ArrayTag, dateTag, booleanTag, dataViewTag, arrayBufferTag, arrayTag, argumentsTag } from '../compat/_internal/tags.mjs';\nimport { isBuffer } from '../predicate/isBuffer.mjs';\nimport { isPrimitive } from '../predicate/isPrimitive.mjs';\nimport { isTypedArray } from '../predicate/isTypedArray.mjs';\n\nfunction cloneDeepWith(obj, cloneValue) {\n return cloneDeepWithImpl(obj, undefined, obj, new Map(), cloneValue);\n}\nfunction cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = new Map(), cloneValue = undefined) {\n const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);\n if (cloned !== undefined) {\n return cloned;\n }\n if (isPrimitive(valueToClone)) {\n return valueToClone;\n }\n if (stack.has(valueToClone)) {\n return stack.get(valueToClone);\n }\n if (Array.isArray(valueToClone)) {\n const result = new Array(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n if (Object.hasOwn(valueToClone, 'index')) {\n result.index = valueToClone.index;\n }\n if (Object.hasOwn(valueToClone, 'input')) {\n result.input = valueToClone.input;\n }\n return result;\n }\n if (valueToClone instanceof Date) {\n return new Date(valueToClone.getTime());\n }\n if (valueToClone instanceof RegExp) {\n const result = new RegExp(valueToClone.source, valueToClone.flags);\n result.lastIndex = valueToClone.lastIndex;\n return result;\n }\n if (valueToClone instanceof Map) {\n const result = new Map();\n stack.set(valueToClone, result);\n for (const [key, value] of valueToClone) {\n result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (valueToClone instanceof Set) {\n const result = new Set();\n stack.set(valueToClone, result);\n for (const value of valueToClone) {\n result.add(cloneDeepWithImpl(value, undefined, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (isBuffer(valueToClone)) {\n return valueToClone.subarray();\n }\n if (isTypedArray(valueToClone)) {\n const result = new (Object.getPrototypeOf(valueToClone).constructor)(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n return result;\n }\n if (valueToClone instanceof ArrayBuffer ||\n (typeof SharedArrayBuffer !== 'undefined' && valueToClone instanceof SharedArrayBuffer)) {\n return valueToClone.slice(0);\n }\n if (valueToClone instanceof DataView) {\n const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof File !== 'undefined' && valueToClone instanceof File) {\n const result = new File([valueToClone], valueToClone.name, {\n type: valueToClone.type,\n });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof Blob !== 'undefined' && valueToClone instanceof Blob) {\n const result = new Blob([valueToClone], { type: valueToClone.type });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Error) {\n const result = structuredClone(valueToClone);\n stack.set(valueToClone, result);\n result.message = valueToClone.message;\n result.name = valueToClone.name;\n result.stack = valueToClone.stack;\n result.cause = valueToClone.cause;\n result.constructor = valueToClone.constructor;\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Boolean) {\n const result = new Boolean(valueToClone.valueOf());\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Number) {\n const result = new Number(valueToClone.valueOf());\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof String) {\n const result = new String(valueToClone.valueOf());\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof valueToClone === 'object' && isCloneableObject(valueToClone)) {\n const result = Object.create(Object.getPrototypeOf(valueToClone));\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n return valueToClone;\n}\nfunction copyProperties(target, source, objectToClone = target, stack, cloneValue) {\n const keys = [...Object.keys(source), ...getSymbols(source)];\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const descriptor = Object.getOwnPropertyDescriptor(target, key);\n if (descriptor == null || descriptor.writable) {\n target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);\n }\n }\n}\nfunction isCloneableObject(object) {\n switch (getTag(object)) {\n case argumentsTag:\n case arrayTag:\n case arrayBufferTag:\n case dataViewTag:\n case booleanTag:\n case dateTag:\n case float32ArrayTag:\n case float64ArrayTag:\n case int8ArrayTag:\n case int16ArrayTag:\n case int32ArrayTag:\n case mapTag:\n case numberTag:\n case objectTag:\n case regexpTag:\n case setTag:\n case stringTag:\n case symbolTag:\n case uint8ArrayTag:\n case uint8ClampedArrayTag:\n case uint16ArrayTag:\n case uint32ArrayTag: {\n return true;\n }\n default: {\n return false;\n }\n }\n}\n\nexport { cloneDeepWith, cloneDeepWithImpl, copyProperties };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAOA,SAAS,EAAc,GAAK,GAAY;CACpC,OAAO,EAAkB,GAAK,KAAA,GAAW,mBAAK,IAAI,IAAI,GAAG,CAAU;AACvE;AACA,SAAS,EAAkB,GAAc,GAAY,GAAe,oBAAQ,IAAI,IAAI,GAAG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L,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,GACD,OAAO;EAEX,SACI,OAAO;CAEf;AACJ"}
|
|
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 };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AM,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 {
|
|
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 {unknown} x - The value to check if it is a Buffer.\n* @returns {boolean} 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":["function isLength(value) {\n
|
|
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 {any} value The value to check.\n* @returns {boolean} 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":["
|
|
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 {unknown} value The value to check.\n* @returns {value is\n* null\n* | undefined\n* | string\n* | number\n* | boolean\n* | symbol\n* | bigint} 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":";AA6BA,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":["
|
|
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 {unknown} x The value to check.\n* @returns {x is\n* Uint8Array\n* | Uint8ClampedArray\n* | Uint16Array\n* | Uint32Array\n* | BigUint64Array\n* | Int8Array\n* | Int16Array\n* | Int32Array\n* | BigInt64Array\n* | Float32Array\n* | Float64Array} 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":";AA2BA,SAAS,EAAa,GAAG;CACxB,OAAO,YAAY,OAAO,CAAC,KAAK,EAAE,aAAa;AAChD"}
|
|
@@ -17,17 +17,17 @@ var f = /* @__PURE__ */ e(l(), 1), p = {}.hasOwnProperty, m = /* @__PURE__ */ ne
|
|
|
17
17
|
"thead",
|
|
18
18
|
"tfoot",
|
|
19
19
|
"tr"
|
|
20
|
-
]), _ = new Set(["td", "th"])
|
|
21
|
-
function
|
|
20
|
+
]), _ = new Set(["td", "th"]);
|
|
21
|
+
function v(e, t) {
|
|
22
22
|
if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
|
|
23
23
|
let n = t.filePath || void 0, r;
|
|
24
24
|
if (t.development) {
|
|
25
25
|
if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
26
|
-
r =
|
|
26
|
+
r = k(n, t.jsxDEV);
|
|
27
27
|
} else {
|
|
28
28
|
if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
|
|
29
29
|
if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
|
|
30
|
-
r =
|
|
30
|
+
r = O(n, t.jsx, t.jsxs);
|
|
31
31
|
}
|
|
32
32
|
let i = {
|
|
33
33
|
Fragment: t.Fragment,
|
|
@@ -43,66 +43,66 @@ function y(e, t) {
|
|
|
43
43
|
schema: t.space === "svg" ? s : o,
|
|
44
44
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
45
45
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
46
|
-
}, a =
|
|
46
|
+
}, a = y(i, e, void 0);
|
|
47
47
|
return a && typeof a != "string" ? a : i.create(e, i.Fragment, { children: a || void 0 }, void 0);
|
|
48
48
|
}
|
|
49
|
+
function y(e, t, n) {
|
|
50
|
+
if (t.type === "element") return b(e, t, n);
|
|
51
|
+
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return x(e, t);
|
|
52
|
+
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return C(e, t, n);
|
|
53
|
+
if (t.type === "mdxjsEsm") return S(e, t);
|
|
54
|
+
if (t.type === "root") return w(e, t, n);
|
|
55
|
+
if (t.type === "text") return T(e, t);
|
|
56
|
+
}
|
|
49
57
|
function b(e, t, n) {
|
|
50
|
-
if (t.type === "element") return x(e, t, n);
|
|
51
|
-
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return S(e, t);
|
|
52
|
-
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return w(e, t, n);
|
|
53
|
-
if (t.type === "mdxjsEsm") return C(e, t);
|
|
54
|
-
if (t.type === "root") return T(e, t, n);
|
|
55
|
-
if (t.type === "text") return E(e, t);
|
|
56
|
-
}
|
|
57
|
-
function x(e, t, n) {
|
|
58
58
|
let i = e.schema, a = i;
|
|
59
59
|
t.tagName.toLowerCase() === "svg" && i.space === "html" && (a = s, e.schema = a), e.ancestors.push(t);
|
|
60
|
-
let o =
|
|
60
|
+
let o = F(e, t.tagName, !1), c = A(e, t), l = M(e, t);
|
|
61
61
|
return g.has(t.tagName) && (l = l.filter(function(e) {
|
|
62
62
|
return typeof e == "string" ? !r(e) : !0;
|
|
63
|
-
})),
|
|
63
|
+
})), E(e, c, o, t), D(c, l), e.ancestors.pop(), e.schema = i, e.create(t, o, c, n);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function x(e, t) {
|
|
66
66
|
if (t.data && t.data.estree && e.evaluater) {
|
|
67
67
|
let n = t.data.estree.body[0];
|
|
68
68
|
return n.type, e.evaluater.evaluateExpression(n.expression);
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
I(e, t.position);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function S(e, t) {
|
|
73
73
|
if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
|
|
74
|
-
|
|
74
|
+
I(e, t.position);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function C(e, t, n) {
|
|
77
77
|
let r = e.schema, i = r;
|
|
78
78
|
t.name === "svg" && r.space === "html" && (i = s, e.schema = i), e.ancestors.push(t);
|
|
79
|
-
let a = t.name === null ? e.Fragment :
|
|
80
|
-
return
|
|
79
|
+
let a = t.name === null ? e.Fragment : F(e, t.name, !0), o = j(e, t), c = M(e, t);
|
|
80
|
+
return E(e, o, a, t), D(o, c), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function w(e, t, n) {
|
|
83
83
|
let r = {};
|
|
84
|
-
return
|
|
84
|
+
return D(r, M(e, t)), e.create(t, e.Fragment, r, n);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function T(e, t) {
|
|
87
87
|
return t.value;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function E(e, t, n, r) {
|
|
90
90
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function D(e, t) {
|
|
93
93
|
if (t.length > 0) {
|
|
94
94
|
let n = t.length > 1 ? t : t[0];
|
|
95
95
|
n && (e.children = n);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function O(e, t, n) {
|
|
99
99
|
return r;
|
|
100
100
|
function r(e, r, i, a) {
|
|
101
101
|
let o = Array.isArray(i.children) ? n : t;
|
|
102
102
|
return a ? o(r, i, a) : o(r, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function k(e, t) {
|
|
106
106
|
return n;
|
|
107
107
|
function n(n, r, i, a) {
|
|
108
108
|
let o = Array.isArray(i.children), s = u(n);
|
|
@@ -113,10 +113,10 @@ function A(e, t) {
|
|
|
113
113
|
}, void 0);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function A(e, t) {
|
|
117
117
|
let n = {}, r, i;
|
|
118
118
|
for (i in t.properties) if (i !== "children" && p.call(t.properties, i)) {
|
|
119
|
-
let a =
|
|
119
|
+
let a = N(e, i, t.properties[i]);
|
|
120
120
|
if (a) {
|
|
121
121
|
let [i, o] = a;
|
|
122
122
|
e.tableCellAlignToStyle && i === "align" && typeof o == "string" && _.has(t.tagName) ? r = o : n[i] = o;
|
|
@@ -128,7 +128,7 @@ function j(e, t) {
|
|
|
128
128
|
}
|
|
129
129
|
return n;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function j(e, t) {
|
|
132
132
|
let n = {};
|
|
133
133
|
for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
|
|
134
134
|
let t = r.data.estree.body[0];
|
|
@@ -137,19 +137,19 @@ function M(e, t) {
|
|
|
137
137
|
i.type;
|
|
138
138
|
let a = i.properties[0];
|
|
139
139
|
a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
|
|
140
|
-
} else
|
|
140
|
+
} else I(e, t.position);
|
|
141
141
|
else {
|
|
142
142
|
let i = r.name, a;
|
|
143
143
|
if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
144
144
|
let t = r.value.data.estree.body[0];
|
|
145
145
|
t.type, a = e.evaluater.evaluateExpression(t.expression);
|
|
146
|
-
} else
|
|
146
|
+
} else I(e, t.position);
|
|
147
147
|
else a = r.value === null ? !0 : r.value;
|
|
148
148
|
n[i] = a;
|
|
149
149
|
}
|
|
150
150
|
return n;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function M(e, t) {
|
|
153
153
|
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : m;
|
|
154
154
|
for (; ++r < t.children.length;) {
|
|
155
155
|
let a = t.children[r], o;
|
|
@@ -160,22 +160,22 @@ function N(e, t) {
|
|
|
160
160
|
o = e + "-" + t, i.set(e, t + 1);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
let s =
|
|
163
|
+
let s = y(e, a, o);
|
|
164
164
|
s !== void 0 && n.push(s);
|
|
165
165
|
}
|
|
166
166
|
return n;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function N(e, n, r) {
|
|
169
169
|
let o = a(e.schema, n);
|
|
170
170
|
if (!(r == null || typeof r == "number" && Number.isNaN(r))) {
|
|
171
171
|
if (Array.isArray(r) && (r = o.commaSeparated ? t(r) : c(r)), o.property === "style") {
|
|
172
|
-
let t = typeof r == "object" ? r :
|
|
173
|
-
return e.stylePropertyNameCase === "css" && (t =
|
|
172
|
+
let t = typeof r == "object" ? r : P(e, String(r));
|
|
173
|
+
return e.stylePropertyNameCase === "css" && (t = L(t)), ["style", t];
|
|
174
174
|
}
|
|
175
175
|
return [e.elementAttributeNameCase === "react" && o.space ? i[o.property] || o.property : o.attribute, r];
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function P(e, t) {
|
|
179
179
|
try {
|
|
180
180
|
return (0, f.default)(t, { reactCompat: !0 });
|
|
181
181
|
} catch (t) {
|
|
@@ -186,10 +186,10 @@ function F(e, t) {
|
|
|
186
186
|
ruleId: "style",
|
|
187
187
|
source: "hast-util-to-jsx-runtime"
|
|
188
188
|
});
|
|
189
|
-
throw r.file = e.filePath || void 0, r.url =
|
|
189
|
+
throw r.file = e.filePath || void 0, r.url = "https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute", r;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function F(e, t, r) {
|
|
193
193
|
let i;
|
|
194
194
|
if (!r) i = {
|
|
195
195
|
type: "Literal",
|
|
@@ -226,30 +226,30 @@ function I(e, t, r) {
|
|
|
226
226
|
return p.call(e.components, t) ? e.components[t] : t;
|
|
227
227
|
}
|
|
228
228
|
if (e.evaluater) return e.evaluater.evaluateExpression(i);
|
|
229
|
-
|
|
229
|
+
I(e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function I(e, t) {
|
|
232
232
|
let n = new d("Cannot handle MDX estrees without `createEvaluater`", {
|
|
233
233
|
ancestors: e.ancestors,
|
|
234
234
|
place: t,
|
|
235
235
|
ruleId: "mdx-estree",
|
|
236
236
|
source: "hast-util-to-jsx-runtime"
|
|
237
237
|
});
|
|
238
|
-
throw n.file = e.filePath || void 0, n.url =
|
|
238
|
+
throw n.file = e.filePath || void 0, n.url = "https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function L(e) {
|
|
241
241
|
let t = {}, n;
|
|
242
|
-
for (n in e) p.call(e, n) && (t[
|
|
242
|
+
for (n in e) p.call(e, n) && (t[R(n)] = e[n]);
|
|
243
243
|
return t;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
let t = e.replace(h,
|
|
245
|
+
function R(e) {
|
|
246
|
+
let t = e.replace(h, z);
|
|
247
247
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function z(e) {
|
|
250
250
|
return "-" + e.toLowerCase();
|
|
251
251
|
}
|
|
252
252
|
//#endregion
|
|
253
|
-
export {
|
|
253
|
+
export { v as toJsxRuntime };
|
|
254
254
|
|
|
255
255
|
//# sourceMappingURL=index.js.map
|