hermium 0.1.2 → 0.1.4
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/bin/hermium.mjs +184 -145
- package/dist/server/index.mjs +65 -65
- package/dist/web-server/__23tanstack-start-plugin-adapters-Cwee5PKy.mjs +6 -0
- package/dist/web-server/_chunks/ssr-renderer.mjs +22 -0
- package/dist/web-server/_libs/babel__runtime.mjs +237 -0
- package/dist/web-server/_libs/bail.mjs +8 -0
- package/dist/web-server/_libs/base-ui__react.mjs +9554 -0
- package/dist/web-server/_libs/base-ui__utils.mjs +1101 -0
- package/dist/web-server/_libs/ccount.mjs +16 -0
- package/dist/web-server/_libs/character-entities-legacy.mjs +111 -0
- package/dist/web-server/_libs/character-entities.mjs +2130 -0
- package/dist/web-server/_libs/character-reference-invalid.mjs +33 -0
- package/dist/web-server/_libs/class-variance-authority.mjs +44 -0
- package/dist/web-server/_libs/clsx.mjs +16 -0
- package/dist/web-server/_libs/comma-separated-tokens.mjs +31 -0
- package/dist/web-server/_libs/cookie-es.mjs +44 -0
- package/dist/web-server/_libs/croner.mjs +1 -0
- package/dist/web-server/_libs/crossws.mjs +1 -0
- package/dist/web-server/_libs/decode-named-character-reference+[...].mjs +8 -0
- package/dist/web-server/_libs/devlop.mjs +8 -0
- package/dist/web-server/_libs/escape-string-regexp.mjs +9 -0
- package/dist/web-server/_libs/estree-util-is-identifier-name.mjs +11 -0
- package/dist/web-server/_libs/extend.mjs +97 -0
- package/dist/web-server/_libs/fault.mjs +1 -0
- package/dist/web-server/_libs/floating-ui__core.mjs +663 -0
- package/dist/web-server/_libs/floating-ui__dom.mjs +624 -0
- package/dist/web-server/_libs/floating-ui__react-dom.mjs +279 -0
- package/dist/web-server/_libs/floating-ui__utils.mjs +322 -0
- package/dist/web-server/_libs/format.mjs +1 -0
- package/dist/web-server/_libs/h3.mjs +408 -0
- package/dist/web-server/_libs/hast-util-parse-selector.mjs +39 -0
- package/dist/web-server/_libs/hast-util-to-jsx-runtime.mjs +388 -0
- package/dist/web-server/_libs/hast-util-whitespace.mjs +10 -0
- package/dist/web-server/_libs/hastscript.mjs +200 -0
- package/dist/web-server/_libs/highlight.js.mjs +1 -0
- package/dist/web-server/_libs/hookable.mjs +1 -0
- package/dist/web-server/_libs/html-url-attributes.mjs +26 -0
- package/dist/web-server/_libs/inline-style-parser.mjs +142 -0
- package/dist/web-server/_libs/is-alphabetical.mjs +7 -0
- package/dist/web-server/_libs/is-alphanumerical.mjs +8 -0
- package/dist/web-server/_libs/is-decimal.mjs +7 -0
- package/dist/web-server/_libs/is-hexadecimal.mjs +7 -0
- package/dist/web-server/_libs/is-plain-obj.mjs +10 -0
- package/dist/web-server/_libs/isbot.mjs +21 -0
- package/dist/web-server/_libs/longest-streak.mjs +25 -0
- package/dist/web-server/_libs/lowlight.mjs +1 -0
- package/dist/web-server/_libs/markdown-table.mjs +142 -0
- package/dist/web-server/_libs/mdast-util-find-and-replace.mjs +109 -0
- package/dist/web-server/_libs/mdast-util-from-markdown.mjs +717 -0
- package/dist/web-server/_libs/mdast-util-gfm-autolink-literal+[...].mjs +156 -0
- package/dist/web-server/_libs/mdast-util-gfm-footnote.mjs +117 -0
- package/dist/web-server/_libs/mdast-util-gfm-strikethrough.mjs +54 -0
- package/dist/web-server/_libs/mdast-util-gfm-table.mjs +157 -0
- package/dist/web-server/_libs/mdast-util-gfm-task-list-item.mjs +77 -0
- package/dist/web-server/_libs/mdast-util-gfm.mjs +29 -0
- package/dist/web-server/_libs/mdast-util-phrasing.mjs +30 -0
- package/dist/web-server/_libs/mdast-util-to-hast.mjs +710 -0
- package/dist/web-server/_libs/mdast-util-to-markdown.mjs +798 -0
- package/dist/web-server/_libs/mdast-util-to-string.mjs +38 -0
- package/dist/web-server/_libs/micromark-core-commonmark.mjs +2259 -0
- package/dist/web-server/_libs/micromark-extension-gfm-autolink-literal+[...].mjs +344 -0
- package/dist/web-server/_libs/micromark-extension-gfm-footnote+[...].mjs +279 -0
- package/dist/web-server/_libs/micromark-extension-gfm-strikethrough+[...].mjs +98 -0
- package/dist/web-server/_libs/micromark-extension-gfm-table.mjs +491 -0
- package/dist/web-server/_libs/micromark-extension-gfm-tagfilter+[...].mjs +1 -0
- package/dist/web-server/_libs/micromark-extension-gfm-task-list-item+[...].mjs +77 -0
- package/dist/web-server/_libs/micromark-extension-gfm.mjs +18 -0
- package/dist/web-server/_libs/micromark-factory-destination.mjs +94 -0
- package/dist/web-server/_libs/micromark-factory-label.mjs +63 -0
- package/dist/web-server/_libs/micromark-factory-space.mjs +24 -0
- package/dist/web-server/_libs/micromark-factory-title.mjs +65 -0
- package/dist/web-server/_libs/micromark-factory-whitespace.mjs +22 -0
- package/dist/web-server/_libs/micromark-util-character.mjs +44 -0
- package/dist/web-server/_libs/micromark-util-chunked.mjs +36 -0
- package/dist/web-server/_libs/micromark-util-classify-character+[...].mjs +12 -0
- package/dist/web-server/_libs/micromark-util-combine-extensions+[...].mjs +41 -0
- package/dist/web-server/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +19 -0
- package/dist/web-server/_libs/micromark-util-decode-string.mjs +21 -0
- package/dist/web-server/_libs/micromark-util-encode.mjs +1 -0
- package/dist/web-server/_libs/micromark-util-html-tag-name.mjs +69 -0
- package/dist/web-server/_libs/micromark-util-normalize-identifier+[...].mjs +6 -0
- package/dist/web-server/_libs/micromark-util-resolve-all.mjs +15 -0
- package/dist/web-server/_libs/micromark-util-sanitize-uri.mjs +41 -0
- package/dist/web-server/_libs/micromark-util-subtokenize.mjs +346 -0
- package/dist/web-server/_libs/micromark.mjs +906 -0
- package/dist/web-server/_libs/ocache.mjs +1 -0
- package/dist/web-server/_libs/ohash.mjs +1 -0
- package/dist/web-server/_libs/parse-entities.mjs +245 -0
- package/dist/web-server/_libs/property-information.mjs +1210 -0
- package/dist/web-server/_libs/react-dom.mjs +10779 -0
- package/dist/web-server/_libs/react-markdown.mjs +147 -0
- package/dist/web-server/_libs/react-syntax-highlighter.mjs +941 -0
- package/dist/web-server/_libs/react.mjs +513 -0
- package/dist/web-server/_libs/refractor.mjs +2425 -0
- package/dist/web-server/_libs/remark-gfm.mjs +20 -0
- package/dist/web-server/_libs/remark-parse.mjs +19 -0
- package/dist/web-server/_libs/remark-rehype.mjs +21 -0
- package/dist/web-server/_libs/reselect.mjs +1 -0
- package/dist/web-server/_libs/rou3.mjs +8 -0
- package/dist/web-server/_libs/seroval-plugins.mjs +58 -0
- package/dist/web-server/_libs/seroval.mjs +1775 -0
- package/dist/web-server/_libs/space-separated-tokens.mjs +11 -0
- package/dist/web-server/_libs/srvx.mjs +781 -0
- package/dist/web-server/_libs/style-to-js.mjs +72 -0
- package/dist/web-server/_libs/style-to-object.mjs +38 -0
- package/dist/web-server/_libs/tabler__icons-react.mjs +224 -0
- package/dist/web-server/_libs/tanstack__history.mjs +204 -0
- package/dist/web-server/_libs/tanstack__query-core.mjs +2552 -0
- package/dist/web-server/_libs/tanstack__react-query.mjs +190 -0
- package/dist/web-server/_libs/tanstack__react-router.mjs +1120 -0
- package/dist/web-server/_libs/tanstack__react-store.mjs +2 -0
- package/dist/web-server/_libs/tanstack__router-core.mjs +4288 -0
- package/dist/web-server/_libs/tanstack__store.mjs +1 -0
- package/dist/web-server/_libs/trim-lines.mjs +41 -0
- package/dist/web-server/_libs/trough.mjs +85 -0
- package/dist/web-server/_libs/ufo.mjs +54 -0
- package/dist/web-server/_libs/unctx.mjs +1 -0
- package/dist/web-server/_libs/ungap__structured-clone.mjs +224 -0
- package/dist/web-server/_libs/unified.mjs +661 -0
- package/dist/web-server/_libs/unist-util-is.mjs +100 -0
- package/dist/web-server/_libs/unist-util-position.mjs +27 -0
- package/dist/web-server/_libs/unist-util-stringify-position.mjs +27 -0
- package/dist/web-server/_libs/unist-util-visit-parents.mjs +83 -0
- package/dist/web-server/_libs/unist-util-visit.mjs +24 -0
- package/dist/web-server/_libs/unstorage.mjs +1 -0
- package/dist/web-server/_libs/use-sync-external-store.mjs +139 -0
- package/dist/web-server/_libs/vfile-message.mjs +138 -0
- package/dist/web-server/_libs/vfile.mjs +467 -0
- package/dist/web-server/_libs/zod.mjs +3915 -0
- package/dist/web-server/_libs/zustand.mjs +343 -0
- package/dist/web-server/_libs/zwitch.mjs +1 -0
- package/dist/web-server/_ssr/index-BLK6uN4p.mjs +612 -0
- package/dist/web-server/_ssr/index-BkkxTg0a.mjs +1855 -0
- package/dist/web-server/_ssr/index-Bp9a_nTf.mjs +66 -0
- package/dist/web-server/_ssr/index-C8t8AZQG.mjs +513 -0
- package/dist/web-server/_ssr/index-DSIu0x-q.mjs +449 -0
- package/dist/web-server/_ssr/index-DqFrn6kj.mjs +278 -0
- package/dist/web-server/_ssr/index-EKE8NFy_.mjs +189 -0
- package/dist/web-server/_ssr/index-JzLhPyir.mjs +213 -0
- package/dist/web-server/_ssr/index-wTy_4MhH.mjs +369 -0
- package/dist/web-server/_ssr/index.mjs +1558 -0
- package/dist/web-server/_ssr/input-BQFduUUo.mjs +20 -0
- package/dist/web-server/_ssr/router-59cN5lqo.mjs +1998 -0
- package/dist/web-server/_ssr/start-HYkvq4Ni.mjs +4 -0
- package/dist/web-server/_ssr/switch-Bim4kX8N.mjs +33 -0
- package/dist/web-server/_ssr/syntax-highlighter-5vezNTce.mjs +62 -0
- package/dist/web-server/_ssr/textarea-CK0ROhfF.mjs +18 -0
- package/dist/web-server/_tanstack-start-manifest_v-DLw6M7p4.mjs +4 -0
- package/dist/web-server/index.mjs +611 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const characterReferenceInvalid = {
|
|
2
|
+
0: "�",
|
|
3
|
+
128: "€",
|
|
4
|
+
130: "‚",
|
|
5
|
+
131: "ƒ",
|
|
6
|
+
132: "„",
|
|
7
|
+
133: "…",
|
|
8
|
+
134: "†",
|
|
9
|
+
135: "‡",
|
|
10
|
+
136: "ˆ",
|
|
11
|
+
137: "‰",
|
|
12
|
+
138: "Š",
|
|
13
|
+
139: "‹",
|
|
14
|
+
140: "Œ",
|
|
15
|
+
142: "Ž",
|
|
16
|
+
145: "‘",
|
|
17
|
+
146: "’",
|
|
18
|
+
147: "“",
|
|
19
|
+
148: "”",
|
|
20
|
+
149: "•",
|
|
21
|
+
150: "–",
|
|
22
|
+
151: "—",
|
|
23
|
+
152: "˜",
|
|
24
|
+
153: "™",
|
|
25
|
+
154: "š",
|
|
26
|
+
155: "›",
|
|
27
|
+
156: "œ",
|
|
28
|
+
158: "ž",
|
|
29
|
+
159: "Ÿ"
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
characterReferenceInvalid as c
|
|
33
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { c as clsx } from "./clsx.mjs";
|
|
2
|
+
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
3
|
+
const cx = clsx;
|
|
4
|
+
const cva = (base, config) => (props) => {
|
|
5
|
+
var _config_compoundVariants;
|
|
6
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
7
|
+
const { variants, defaultVariants } = config;
|
|
8
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
9
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
10
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
11
|
+
if (variantProp === null) return null;
|
|
12
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
13
|
+
return variants[variant][variantKey];
|
|
14
|
+
});
|
|
15
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
16
|
+
let [key, value] = param;
|
|
17
|
+
if (value === void 0) {
|
|
18
|
+
return acc;
|
|
19
|
+
}
|
|
20
|
+
acc[key] = value;
|
|
21
|
+
return acc;
|
|
22
|
+
}, {});
|
|
23
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
24
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
25
|
+
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
26
|
+
let [key, value] = param2;
|
|
27
|
+
return Array.isArray(value) ? value.includes({
|
|
28
|
+
...defaultVariants,
|
|
29
|
+
...propsWithoutUndefined
|
|
30
|
+
}[key]) : {
|
|
31
|
+
...defaultVariants,
|
|
32
|
+
...propsWithoutUndefined
|
|
33
|
+
}[key] === value;
|
|
34
|
+
}) ? [
|
|
35
|
+
...acc,
|
|
36
|
+
cvClass,
|
|
37
|
+
cvClassName
|
|
38
|
+
] : acc;
|
|
39
|
+
}, []);
|
|
40
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
cva as c
|
|
44
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
var t, f, n = "";
|
|
3
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
4
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
5
|
+
var o = e.length;
|
|
6
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
7
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
8
|
+
return n;
|
|
9
|
+
}
|
|
10
|
+
function clsx() {
|
|
11
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
clsx as c
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function parse(value) {
|
|
2
|
+
const tokens = [];
|
|
3
|
+
const input = String(value || "");
|
|
4
|
+
let index = input.indexOf(",");
|
|
5
|
+
let start = 0;
|
|
6
|
+
let end = false;
|
|
7
|
+
while (!end) {
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
index = input.length;
|
|
10
|
+
end = true;
|
|
11
|
+
}
|
|
12
|
+
const token = input.slice(start, index).trim();
|
|
13
|
+
if (token || !end) {
|
|
14
|
+
tokens.push(token);
|
|
15
|
+
}
|
|
16
|
+
start = index + 1;
|
|
17
|
+
index = input.indexOf(",", start);
|
|
18
|
+
}
|
|
19
|
+
return tokens;
|
|
20
|
+
}
|
|
21
|
+
function stringify(values, options) {
|
|
22
|
+
const settings = {};
|
|
23
|
+
const input = values[values.length - 1] === "" ? [...values, ""] : values;
|
|
24
|
+
return input.join(
|
|
25
|
+
(settings.padRight ? " " : "") + "," + (settings.padLeft === false ? "" : " ")
|
|
26
|
+
).trim();
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
parse as p,
|
|
30
|
+
stringify as s
|
|
31
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function splitSetCookieString(cookiesString) {
|
|
2
|
+
if (Array.isArray(cookiesString)) return cookiesString.flatMap((c) => splitSetCookieString(c));
|
|
3
|
+
if (typeof cookiesString !== "string") return [];
|
|
4
|
+
const cookiesStrings = [];
|
|
5
|
+
let pos = 0;
|
|
6
|
+
let start;
|
|
7
|
+
let ch;
|
|
8
|
+
let lastComma;
|
|
9
|
+
let nextStart;
|
|
10
|
+
let cookiesSeparatorFound;
|
|
11
|
+
const skipWhitespace = () => {
|
|
12
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) pos += 1;
|
|
13
|
+
return pos < cookiesString.length;
|
|
14
|
+
};
|
|
15
|
+
const notSpecialChar = () => {
|
|
16
|
+
ch = cookiesString.charAt(pos);
|
|
17
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
18
|
+
};
|
|
19
|
+
while (pos < cookiesString.length) {
|
|
20
|
+
start = pos;
|
|
21
|
+
cookiesSeparatorFound = false;
|
|
22
|
+
while (skipWhitespace()) {
|
|
23
|
+
ch = cookiesString.charAt(pos);
|
|
24
|
+
if (ch === ",") {
|
|
25
|
+
lastComma = pos;
|
|
26
|
+
pos += 1;
|
|
27
|
+
skipWhitespace();
|
|
28
|
+
nextStart = pos;
|
|
29
|
+
while (pos < cookiesString.length && notSpecialChar()) pos += 1;
|
|
30
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
31
|
+
cookiesSeparatorFound = true;
|
|
32
|
+
pos = nextStart;
|
|
33
|
+
cookiesStrings.push(cookiesString.slice(start, lastComma));
|
|
34
|
+
start = pos;
|
|
35
|
+
} else pos = lastComma + 1;
|
|
36
|
+
} else pos += 1;
|
|
37
|
+
}
|
|
38
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) cookiesStrings.push(cookiesString.slice(start));
|
|
39
|
+
}
|
|
40
|
+
return cookiesStrings;
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
splitSetCookieString as s
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { c as characterEntities } from "./character-entities.mjs";
|
|
2
|
+
const own = {}.hasOwnProperty;
|
|
3
|
+
function decodeNamedCharacterReference(value) {
|
|
4
|
+
return own.call(characterEntities, value) ? characterEntities[value] : false;
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
decodeNamedCharacterReference as d
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const nameRe = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u;
|
|
2
|
+
const nameReJsx = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u;
|
|
3
|
+
const emptyOptions = {};
|
|
4
|
+
function name(name2, options) {
|
|
5
|
+
const settings = emptyOptions;
|
|
6
|
+
const re = settings.jsx ? nameReJsx : nameRe;
|
|
7
|
+
return re.test(name2);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
name as n
|
|
11
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./react.mjs";
|
|
2
|
+
var extend$1;
|
|
3
|
+
var hasRequiredExtend;
|
|
4
|
+
function requireExtend() {
|
|
5
|
+
if (hasRequiredExtend) return extend$1;
|
|
6
|
+
hasRequiredExtend = 1;
|
|
7
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
|
8
|
+
var toStr = Object.prototype.toString;
|
|
9
|
+
var defineProperty = Object.defineProperty;
|
|
10
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var isArray = function isArray2(arr) {
|
|
12
|
+
if (typeof Array.isArray === "function") {
|
|
13
|
+
return Array.isArray(arr);
|
|
14
|
+
}
|
|
15
|
+
return toStr.call(arr) === "[object Array]";
|
|
16
|
+
};
|
|
17
|
+
var isPlainObject = function isPlainObject2(obj) {
|
|
18
|
+
if (!obj || toStr.call(obj) !== "[object Object]") {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
var hasOwnConstructor = hasOwn.call(obj, "constructor");
|
|
22
|
+
var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, "isPrototypeOf");
|
|
23
|
+
if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
var key;
|
|
27
|
+
for (key in obj) {
|
|
28
|
+
}
|
|
29
|
+
return typeof key === "undefined" || hasOwn.call(obj, key);
|
|
30
|
+
};
|
|
31
|
+
var setProperty = function setProperty2(target, options) {
|
|
32
|
+
if (defineProperty && options.name === "__proto__") {
|
|
33
|
+
defineProperty(target, options.name, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
value: options.newValue,
|
|
37
|
+
writable: true
|
|
38
|
+
});
|
|
39
|
+
} else {
|
|
40
|
+
target[options.name] = options.newValue;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var getProperty = function getProperty2(obj, name) {
|
|
44
|
+
if (name === "__proto__") {
|
|
45
|
+
if (!hasOwn.call(obj, name)) {
|
|
46
|
+
return void 0;
|
|
47
|
+
} else if (gOPD) {
|
|
48
|
+
return gOPD(obj, name).value;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return obj[name];
|
|
52
|
+
};
|
|
53
|
+
extend$1 = function extend2() {
|
|
54
|
+
var options, name, src, copy, copyIsArray, clone;
|
|
55
|
+
var target = arguments[0];
|
|
56
|
+
var i = 1;
|
|
57
|
+
var length = arguments.length;
|
|
58
|
+
var deep = false;
|
|
59
|
+
if (typeof target === "boolean") {
|
|
60
|
+
deep = target;
|
|
61
|
+
target = arguments[1] || {};
|
|
62
|
+
i = 2;
|
|
63
|
+
}
|
|
64
|
+
if (target == null || typeof target !== "object" && typeof target !== "function") {
|
|
65
|
+
target = {};
|
|
66
|
+
}
|
|
67
|
+
for (; i < length; ++i) {
|
|
68
|
+
options = arguments[i];
|
|
69
|
+
if (options != null) {
|
|
70
|
+
for (name in options) {
|
|
71
|
+
src = getProperty(target, name);
|
|
72
|
+
copy = getProperty(options, name);
|
|
73
|
+
if (target !== copy) {
|
|
74
|
+
if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
|
|
75
|
+
if (copyIsArray) {
|
|
76
|
+
copyIsArray = false;
|
|
77
|
+
clone = src && isArray(src) ? src : [];
|
|
78
|
+
} else {
|
|
79
|
+
clone = src && isPlainObject(src) ? src : {};
|
|
80
|
+
}
|
|
81
|
+
setProperty(target, { name, newValue: extend2(deep, clone, copy) });
|
|
82
|
+
} else if (typeof copy !== "undefined") {
|
|
83
|
+
setProperty(target, { name, newValue: copy });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return target;
|
|
90
|
+
};
|
|
91
|
+
return extend$1;
|
|
92
|
+
}
|
|
93
|
+
var extendExports = requireExtend();
|
|
94
|
+
const extend = /* @__PURE__ */ getDefaultExportFromCjs(extendExports);
|
|
95
|
+
export {
|
|
96
|
+
extend as e
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|