vue-layout-gitcode 1.5.26 → 1.5.27
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/{GloabarSearch-DgKB2ILs.js → GloabarSearch-CMO7E9bd.js} +3 -2
- package/{MenuItem-BPFpgB1p.js → MenuItem-CCcjSsUF.js} +1 -1
- package/{ProjectSearch-Coo_2jM9.js → ProjectSearch-DPN4aYBL.js} +1 -1
- package/{SearchHistoryList-DNtA7R3s.js → SearchHistoryList-D6kLiBkc.js} +1 -1
- package/{SearchPrefixTag-yQFUe_Oh.js → SearchPrefixTag-D1ZLoEed.js} +1 -1
- package/{SearchRecommed-D20OteFR.js → SearchRecommed-CYeaUwiA.js} +2 -2
- package/{SearchScopeList-BsIRP5Bt.js → SearchScopeList-cBgSDTnJ.js} +1 -1
- package/{UserSearch-B3DRUxyW.js → UserSearch-DUDNZwjv.js} +1 -1
- package/{index-CQq5LjXV.js → index-BMAZjy98.js} +2 -1
- package/{index-4EPnrxRe.js → index-D39m35CB.js} +277 -1397
- package/{index-_JqpT9vV.js → index-Dr1IWONg.js} +1 -1
- package/index.js +11 -11
- package/{notice-xVv9WnIz.js → notice-jNuYd1LF.js} +1 -1
- package/package.json +1 -1
|
@@ -15,11 +15,15 @@ import { Avatar } from "vue-devui-lal/avatar";
|
|
|
15
15
|
import "vue-devui-lal/avatar/style.css";
|
|
16
16
|
import { Dropdown } from "vue-devui-lal/dropdown";
|
|
17
17
|
import "vue-devui-lal/dropdown/style.css";
|
|
18
|
+
import "lodash/last";
|
|
19
|
+
import cloneDeep from "lodash/cloneDeep";
|
|
18
20
|
import dayjs$1 from "dayjs";
|
|
21
|
+
import isDate$2 from "lodash/isDate";
|
|
19
22
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
20
23
|
import "vue-devui-lal/skeleton/style.css";
|
|
21
24
|
import { Message } from "vue-devui-lal/message";
|
|
22
25
|
import "vue-devui-lal/message/style.css";
|
|
26
|
+
import debounce from "lodash/debounce";
|
|
23
27
|
import { Badge } from "vue-devui-lal/badge";
|
|
24
28
|
import "vue-devui-lal/badge/style.css";
|
|
25
29
|
import "vue-devui-lal/tabs/style.css";
|
|
@@ -270,8 +274,8 @@ if (isBrowser$1) {
|
|
|
270
274
|
return Object.keys(data).length;
|
|
271
275
|
},
|
|
272
276
|
key(index2) {
|
|
273
|
-
const
|
|
274
|
-
return index2 <
|
|
277
|
+
const keys = Object.keys(data);
|
|
278
|
+
return index2 < keys.length ? keys[index2] : null;
|
|
275
279
|
}
|
|
276
280
|
};
|
|
277
281
|
}
|
|
@@ -540,7 +544,7 @@ if (!construct) {
|
|
|
540
544
|
const arrayForEach = unapply(Array.prototype.forEach);
|
|
541
545
|
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
542
546
|
const arrayPop = unapply(Array.prototype.pop);
|
|
543
|
-
const arrayPush
|
|
547
|
+
const arrayPush = unapply(Array.prototype.push);
|
|
544
548
|
const arraySplice = unapply(Array.prototype.splice);
|
|
545
549
|
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
546
550
|
const stringToString = unapply(String.prototype.toString);
|
|
@@ -724,7 +728,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
724
728
|
};
|
|
725
729
|
function createDOMPurify() {
|
|
726
730
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
727
|
-
const DOMPurify = (
|
|
731
|
+
const DOMPurify = (root) => createDOMPurify(root);
|
|
728
732
|
DOMPurify.version = "3.2.5";
|
|
729
733
|
DOMPurify.removed = [];
|
|
730
734
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
@@ -1034,7 +1038,7 @@ function createDOMPurify() {
|
|
|
1034
1038
|
return false;
|
|
1035
1039
|
};
|
|
1036
1040
|
const _forceRemove = function _forceRemove2(node) {
|
|
1037
|
-
arrayPush
|
|
1041
|
+
arrayPush(DOMPurify.removed, {
|
|
1038
1042
|
element: node
|
|
1039
1043
|
});
|
|
1040
1044
|
try {
|
|
@@ -1045,12 +1049,12 @@ function createDOMPurify() {
|
|
|
1045
1049
|
};
|
|
1046
1050
|
const _removeAttribute = function _removeAttribute2(name, element) {
|
|
1047
1051
|
try {
|
|
1048
|
-
arrayPush
|
|
1052
|
+
arrayPush(DOMPurify.removed, {
|
|
1049
1053
|
attribute: element.getAttributeNode(name),
|
|
1050
1054
|
from: element
|
|
1051
1055
|
});
|
|
1052
1056
|
} catch (_) {
|
|
1053
|
-
arrayPush
|
|
1057
|
+
arrayPush(DOMPurify.removed, {
|
|
1054
1058
|
attribute: null,
|
|
1055
1059
|
from: element
|
|
1056
1060
|
});
|
|
@@ -1105,10 +1109,10 @@ function createDOMPurify() {
|
|
|
1105
1109
|
}
|
|
1106
1110
|
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
1107
1111
|
};
|
|
1108
|
-
const _createNodeIterator = function _createNodeIterator2(
|
|
1112
|
+
const _createNodeIterator = function _createNodeIterator2(root) {
|
|
1109
1113
|
return createNodeIterator.call(
|
|
1110
|
-
|
|
1111
|
-
|
|
1114
|
+
root.ownerDocument || root,
|
|
1115
|
+
root,
|
|
1112
1116
|
// eslint-disable-next-line no-bitwise
|
|
1113
1117
|
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
|
|
1114
1118
|
null
|
|
@@ -1187,7 +1191,7 @@ function createDOMPurify() {
|
|
|
1187
1191
|
content = stringReplace(content, expr, " ");
|
|
1188
1192
|
});
|
|
1189
1193
|
if (currentNode.textContent !== content) {
|
|
1190
|
-
arrayPush
|
|
1194
|
+
arrayPush(DOMPurify.removed, {
|
|
1191
1195
|
element: currentNode.cloneNode()
|
|
1192
1196
|
});
|
|
1193
1197
|
currentNode.textContent = content;
|
|
@@ -1447,7 +1451,7 @@ function createDOMPurify() {
|
|
|
1447
1451
|
if (typeof hookFunction !== "function") {
|
|
1448
1452
|
return;
|
|
1449
1453
|
}
|
|
1450
|
-
arrayPush
|
|
1454
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
|
1451
1455
|
};
|
|
1452
1456
|
DOMPurify.removeHook = function(entryPoint, hookFunction) {
|
|
1453
1457
|
if (hookFunction !== void 0) {
|
|
@@ -1608,7 +1612,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1608
1612
|
}
|
|
1609
1613
|
const RE_ARGS$1 = /\{([0-9a-zA-Z]+)\}/g;
|
|
1610
1614
|
function format$2(message, ...args) {
|
|
1611
|
-
if (args.length === 1 && isObject$
|
|
1615
|
+
if (args.length === 1 && isObject$3(args[0])) {
|
|
1612
1616
|
args = args[0];
|
|
1613
1617
|
}
|
|
1614
1618
|
if (!args || !args.hasOwnProperty) {
|
|
@@ -1622,7 +1626,7 @@ const makeSymbol = (name, shareable = false) => !shareable ? Symbol(name) : Symb
|
|
|
1622
1626
|
const generateFormatCacheKey = (locale2, key, source) => friendlyJSONstringify({ l: locale2, k: key, s: source });
|
|
1623
1627
|
const friendlyJSONstringify = (json) => JSON.stringify(json).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027");
|
|
1624
1628
|
const isNumber$1 = (val) => typeof val === "number" && isFinite(val);
|
|
1625
|
-
const isDate$
|
|
1629
|
+
const isDate$1 = (val) => toTypeString(val) === "[object Date]";
|
|
1626
1630
|
const isRegExp$1 = (val) => toTypeString(val) === "[object RegExp]";
|
|
1627
1631
|
const isEmptyObject = (val) => isPlainObject$1(val) && Object.keys(val).length === 0;
|
|
1628
1632
|
const assign$1 = Object.assign;
|
|
@@ -1635,28 +1639,28 @@ const getGlobalThis = () => {
|
|
|
1635
1639
|
function escapeHtml(rawText) {
|
|
1636
1640
|
return rawText.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1637
1641
|
}
|
|
1638
|
-
const hasOwnProperty$
|
|
1642
|
+
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1639
1643
|
function hasOwn(obj, key) {
|
|
1640
|
-
return hasOwnProperty$
|
|
1644
|
+
return hasOwnProperty$1.call(obj, key);
|
|
1641
1645
|
}
|
|
1642
|
-
const isArray$
|
|
1643
|
-
const isFunction$
|
|
1646
|
+
const isArray$1 = Array.isArray;
|
|
1647
|
+
const isFunction$1 = (val) => typeof val === "function";
|
|
1644
1648
|
const isString$2 = (val) => typeof val === "string";
|
|
1645
1649
|
const isBoolean$1 = (val) => typeof val === "boolean";
|
|
1646
|
-
const isObject$
|
|
1650
|
+
const isObject$3 = (val) => val !== null && typeof val === "object";
|
|
1647
1651
|
const isPromise = (val) => {
|
|
1648
|
-
return isObject$
|
|
1652
|
+
return isObject$3(val) && isFunction$1(val.then) && isFunction$1(val.catch);
|
|
1649
1653
|
};
|
|
1650
|
-
const objectToString
|
|
1651
|
-
const toTypeString = (value) => objectToString
|
|
1654
|
+
const objectToString = Object.prototype.toString;
|
|
1655
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
1652
1656
|
const isPlainObject$1 = (val) => {
|
|
1653
|
-
if (!isObject$
|
|
1657
|
+
if (!isObject$3(val))
|
|
1654
1658
|
return false;
|
|
1655
1659
|
const proto2 = Object.getPrototypeOf(val);
|
|
1656
1660
|
return proto2 === null || proto2.constructor === Object;
|
|
1657
1661
|
};
|
|
1658
1662
|
const toDisplayString = (val) => {
|
|
1659
|
-
return val == null ? "" : isArray$
|
|
1663
|
+
return val == null ? "" : isArray$1(val) || isPlainObject$1(val) && val.toString === objectToString ? JSON.stringify(val, null, 2) : String(val);
|
|
1660
1664
|
};
|
|
1661
1665
|
function join$1(items, separator = "") {
|
|
1662
1666
|
return items.reduce((str, item, index2) => index2 === 0 ? str + item : str + separator + item, "");
|
|
@@ -1735,7 +1739,7 @@ function createEmitter() {
|
|
|
1735
1739
|
};
|
|
1736
1740
|
return emitter2;
|
|
1737
1741
|
}
|
|
1738
|
-
const isNotObjectOrIsArray = (val) => !isObject$
|
|
1742
|
+
const isNotObjectOrIsArray = (val) => !isObject$3(val) || isArray$1(val);
|
|
1739
1743
|
function deepCopy(src, des) {
|
|
1740
1744
|
if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) {
|
|
1741
1745
|
throw new Error("Invalid value");
|
|
@@ -1747,7 +1751,7 @@ function deepCopy(src, des) {
|
|
|
1747
1751
|
if (key === "__proto__") {
|
|
1748
1752
|
return;
|
|
1749
1753
|
}
|
|
1750
|
-
if (isObject$
|
|
1754
|
+
if (isObject$3(src2[key]) && !isObject$3(des2[key])) {
|
|
1751
1755
|
des2[key] = Array.isArray(src2[key]) ? [] : create();
|
|
1752
1756
|
}
|
|
1753
1757
|
if (isNotObjectOrIsArray(des2[key]) || isNotObjectOrIsArray(src2[key])) {
|
|
@@ -1772,7 +1776,7 @@ function createLocation(start, end, source) {
|
|
|
1772
1776
|
}
|
|
1773
1777
|
const RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
|
|
1774
1778
|
function format$1(message, ...args) {
|
|
1775
|
-
if (args.length === 1 && isObject$
|
|
1779
|
+
if (args.length === 1 && isObject$2(args[0])) {
|
|
1776
1780
|
args = args[0];
|
|
1777
1781
|
}
|
|
1778
1782
|
if (!args || !args.hasOwnProperty) {
|
|
@@ -1784,7 +1788,7 @@ function format$1(message, ...args) {
|
|
|
1784
1788
|
}
|
|
1785
1789
|
const assign = Object.assign;
|
|
1786
1790
|
const isString$1 = (val) => typeof val === "string";
|
|
1787
|
-
const isObject$
|
|
1791
|
+
const isObject$2 = (val) => val !== null && typeof val === "object";
|
|
1788
1792
|
function join(items, separator = "") {
|
|
1789
1793
|
return items.reduce((str, item, index2) => index2 === 0 ? str + item : str + separator + item, "");
|
|
1790
1794
|
}
|
|
@@ -3616,7 +3620,7 @@ function formatSubPath(path) {
|
|
|
3616
3620
|
return isLiteral(trimmed) ? stripQuotes(trimmed) : "*" + trimmed;
|
|
3617
3621
|
}
|
|
3618
3622
|
function parse$1(path) {
|
|
3619
|
-
const
|
|
3623
|
+
const keys = [];
|
|
3620
3624
|
let index2 = -1;
|
|
3621
3625
|
let mode = 0;
|
|
3622
3626
|
let subPathDepth = 0;
|
|
@@ -3643,7 +3647,7 @@ function parse$1(path) {
|
|
|
3643
3647
|
/* Actions.PUSH */
|
|
3644
3648
|
] = () => {
|
|
3645
3649
|
if (key !== void 0) {
|
|
3646
|
-
|
|
3650
|
+
keys.push(key);
|
|
3647
3651
|
key = void 0;
|
|
3648
3652
|
}
|
|
3649
3653
|
};
|
|
@@ -3722,16 +3726,16 @@ function parse$1(path) {
|
|
|
3722
3726
|
}
|
|
3723
3727
|
}
|
|
3724
3728
|
if (mode === 7) {
|
|
3725
|
-
return
|
|
3729
|
+
return keys;
|
|
3726
3730
|
}
|
|
3727
3731
|
}
|
|
3728
3732
|
}
|
|
3729
3733
|
const cache = /* @__PURE__ */ new Map();
|
|
3730
3734
|
function resolveWithKeyValue(obj, path) {
|
|
3731
|
-
return isObject$
|
|
3735
|
+
return isObject$3(obj) ? obj[path] : null;
|
|
3732
3736
|
}
|
|
3733
3737
|
function resolveValue$1(obj, path) {
|
|
3734
|
-
if (!isObject$
|
|
3738
|
+
if (!isObject$3(obj)) {
|
|
3735
3739
|
return null;
|
|
3736
3740
|
}
|
|
3737
3741
|
let hit = cache.get(path);
|
|
@@ -3752,7 +3756,7 @@ function resolveValue$1(obj, path) {
|
|
|
3752
3756
|
if (val === void 0) {
|
|
3753
3757
|
return null;
|
|
3754
3758
|
}
|
|
3755
|
-
if (isFunction$
|
|
3759
|
+
if (isFunction$1(last)) {
|
|
3756
3760
|
return null;
|
|
3757
3761
|
}
|
|
3758
3762
|
last = val;
|
|
@@ -3787,8 +3791,8 @@ function normalizeNamed(pluralIndex, props) {
|
|
|
3787
3791
|
function createMessageContext(options = {}) {
|
|
3788
3792
|
const locale2 = options.locale;
|
|
3789
3793
|
const pluralIndex = getPluralIndex(options);
|
|
3790
|
-
const pluralRule = isObject$
|
|
3791
|
-
const orgPluralRule = isObject$
|
|
3794
|
+
const pluralRule = isObject$3(options.pluralRules) && isString$2(locale2) && isFunction$1(options.pluralRules[locale2]) ? options.pluralRules[locale2] : pluralDefault;
|
|
3795
|
+
const orgPluralRule = isObject$3(options.pluralRules) && isString$2(locale2) && isFunction$1(options.pluralRules[locale2]) ? pluralDefault : void 0;
|
|
3792
3796
|
const plural = (messages) => {
|
|
3793
3797
|
return messages[pluralRule(pluralIndex, messages.length, orgPluralRule)];
|
|
3794
3798
|
};
|
|
@@ -3798,19 +3802,19 @@ function createMessageContext(options = {}) {
|
|
|
3798
3802
|
isNumber$1(options.pluralIndex) && normalizeNamed(pluralIndex, _named);
|
|
3799
3803
|
const named = (key) => _named[key];
|
|
3800
3804
|
function message(key) {
|
|
3801
|
-
const msg = isFunction$
|
|
3805
|
+
const msg = isFunction$1(options.messages) ? options.messages(key) : isObject$3(options.messages) ? options.messages[key] : false;
|
|
3802
3806
|
return !msg ? options.parent ? options.parent.message(key) : DEFAULT_MESSAGE : msg;
|
|
3803
3807
|
}
|
|
3804
3808
|
const _modifier = (name) => options.modifiers ? options.modifiers[name] : DEFAULT_MODIFIER;
|
|
3805
|
-
const normalize = isPlainObject$1(options.processor) && isFunction$
|
|
3806
|
-
const interpolate = isPlainObject$1(options.processor) && isFunction$
|
|
3809
|
+
const normalize = isPlainObject$1(options.processor) && isFunction$1(options.processor.normalize) ? options.processor.normalize : DEFAULT_NORMALIZE;
|
|
3810
|
+
const interpolate = isPlainObject$1(options.processor) && isFunction$1(options.processor.interpolate) ? options.processor.interpolate : DEFAULT_INTERPOLATE;
|
|
3807
3811
|
const type = isPlainObject$1(options.processor) && isString$2(options.processor.type) ? options.processor.type : DEFAULT_MESSAGE_DATA_TYPE;
|
|
3808
3812
|
const linked = (key, ...args) => {
|
|
3809
3813
|
const [arg1, arg2] = args;
|
|
3810
3814
|
let type2 = "text";
|
|
3811
3815
|
let modifier = "";
|
|
3812
3816
|
if (args.length === 1) {
|
|
3813
|
-
if (isObject$
|
|
3817
|
+
if (isObject$3(arg1)) {
|
|
3814
3818
|
modifier = arg1.modifier || modifier;
|
|
3815
3819
|
type2 = arg1.type || type2;
|
|
3816
3820
|
} else if (isString$2(arg1)) {
|
|
@@ -3827,7 +3831,7 @@ function createMessageContext(options = {}) {
|
|
|
3827
3831
|
const ret = message(key)(ctx);
|
|
3828
3832
|
const msg = (
|
|
3829
3833
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
3830
|
-
type2 === "vnode" && isArray$
|
|
3834
|
+
type2 === "vnode" && isArray$1(ret) && modifier ? ret[0] : ret
|
|
3831
3835
|
);
|
|
3832
3836
|
return modifier ? _modifier(modifier)(msg, type2) : msg;
|
|
3833
3837
|
};
|
|
@@ -3962,7 +3966,7 @@ function resolveLocale(locale2) {
|
|
|
3962
3966
|
if (isString$2(locale2)) {
|
|
3963
3967
|
return locale2;
|
|
3964
3968
|
} else {
|
|
3965
|
-
if (isFunction$
|
|
3969
|
+
if (isFunction$1(locale2)) {
|
|
3966
3970
|
if (locale2.resolvedOnce && _resolveLocale != null) {
|
|
3967
3971
|
return _resolveLocale;
|
|
3968
3972
|
} else if (locale2.constructor.name === "Function") {
|
|
@@ -3982,7 +3986,7 @@ function resolveLocale(locale2) {
|
|
|
3982
3986
|
function fallbackWithSimple(ctx, fallback, start) {
|
|
3983
3987
|
return [.../* @__PURE__ */ new Set([
|
|
3984
3988
|
start,
|
|
3985
|
-
...isArray$
|
|
3989
|
+
...isArray$1(fallback) ? fallback : isObject$3(fallback) ? Object.keys(fallback) : isString$2(fallback) ? [fallback] : [start]
|
|
3986
3990
|
])];
|
|
3987
3991
|
}
|
|
3988
3992
|
function fallbackWithLocaleChain(ctx, fallback, start) {
|
|
@@ -3995,12 +3999,12 @@ function fallbackWithLocaleChain(ctx, fallback, start) {
|
|
|
3995
3999
|
if (!chain) {
|
|
3996
4000
|
chain = [];
|
|
3997
4001
|
let block = [start];
|
|
3998
|
-
while (isArray$
|
|
4002
|
+
while (isArray$1(block)) {
|
|
3999
4003
|
block = appendBlockToChain(chain, block, fallback);
|
|
4000
4004
|
}
|
|
4001
|
-
const defaults2 = isArray$
|
|
4005
|
+
const defaults2 = isArray$1(fallback) || !isPlainObject$1(fallback) ? fallback : fallback["default"] ? fallback["default"] : null;
|
|
4002
4006
|
block = isString$2(defaults2) ? [defaults2] : defaults2;
|
|
4003
|
-
if (isArray$
|
|
4007
|
+
if (isArray$1(block)) {
|
|
4004
4008
|
appendBlockToChain(chain, block, false);
|
|
4005
4009
|
}
|
|
4006
4010
|
context.__localeChainCache.set(startLocale, chain);
|
|
@@ -4035,7 +4039,7 @@ function appendItemToChain(chain, target, blocks) {
|
|
|
4035
4039
|
follow = target[target.length - 1] !== "!";
|
|
4036
4040
|
const locale2 = target.replace(/!/g, "");
|
|
4037
4041
|
chain.push(locale2);
|
|
4038
|
-
if ((isArray$
|
|
4042
|
+
if ((isArray$1(blocks) || isPlainObject$1(blocks)) && blocks[locale2]) {
|
|
4039
4043
|
follow = blocks[locale2];
|
|
4040
4044
|
}
|
|
4041
4045
|
}
|
|
@@ -4050,13 +4054,13 @@ const capitalize = (str) => `${str.charAt(0).toLocaleUpperCase()}${str.substr(1)
|
|
|
4050
4054
|
function getDefaultLinkedModifiers() {
|
|
4051
4055
|
return {
|
|
4052
4056
|
upper: (val, type) => {
|
|
4053
|
-
return type === "text" && isString$2(val) ? val.toUpperCase() : type === "vnode" && isObject$
|
|
4057
|
+
return type === "text" && isString$2(val) ? val.toUpperCase() : type === "vnode" && isObject$3(val) && "__v_isVNode" in val ? val.children.toUpperCase() : val;
|
|
4054
4058
|
},
|
|
4055
4059
|
lower: (val, type) => {
|
|
4056
|
-
return type === "text" && isString$2(val) ? val.toLowerCase() : type === "vnode" && isObject$
|
|
4060
|
+
return type === "text" && isString$2(val) ? val.toLowerCase() : type === "vnode" && isObject$3(val) && "__v_isVNode" in val ? val.children.toLowerCase() : val;
|
|
4057
4061
|
},
|
|
4058
4062
|
capitalize: (val, type) => {
|
|
4059
|
-
return type === "text" && isString$2(val) ? capitalize(val) : type === "vnode" && isObject$
|
|
4063
|
+
return type === "text" && isString$2(val) ? capitalize(val) : type === "vnode" && isObject$3(val) && "__v_isVNode" in val ? capitalize(val.children) : val;
|
|
4060
4064
|
}
|
|
4061
4065
|
};
|
|
4062
4066
|
}
|
|
@@ -4084,36 +4088,36 @@ const setFallbackContext = (context) => {
|
|
|
4084
4088
|
const getFallbackContext = () => _fallbackContext;
|
|
4085
4089
|
let _cid = 0;
|
|
4086
4090
|
function createCoreContext(options = {}) {
|
|
4087
|
-
const onWarn = isFunction$
|
|
4091
|
+
const onWarn = isFunction$1(options.onWarn) ? options.onWarn : warn;
|
|
4088
4092
|
const version = isString$2(options.version) ? options.version : VERSION$3;
|
|
4089
|
-
const locale2 = isString$2(options.locale) || isFunction$
|
|
4090
|
-
const _locale = isFunction$
|
|
4091
|
-
const fallbackLocale = isArray$
|
|
4093
|
+
const locale2 = isString$2(options.locale) || isFunction$1(options.locale) ? options.locale : DEFAULT_LOCALE;
|
|
4094
|
+
const _locale = isFunction$1(locale2) ? DEFAULT_LOCALE : locale2;
|
|
4095
|
+
const fallbackLocale = isArray$1(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || isString$2(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale;
|
|
4092
4096
|
const messages = isPlainObject$1(options.messages) ? options.messages : createResources(_locale);
|
|
4093
4097
|
const datetimeFormats = isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : createResources(_locale);
|
|
4094
4098
|
const numberFormats = isPlainObject$1(options.numberFormats) ? options.numberFormats : createResources(_locale);
|
|
4095
4099
|
const modifiers = assign$1(create(), options.modifiers, getDefaultLinkedModifiers());
|
|
4096
4100
|
const pluralRules = options.pluralRules || create();
|
|
4097
|
-
const missing = isFunction$
|
|
4101
|
+
const missing = isFunction$1(options.missing) ? options.missing : null;
|
|
4098
4102
|
const missingWarn = isBoolean$1(options.missingWarn) || isRegExp$1(options.missingWarn) ? options.missingWarn : true;
|
|
4099
4103
|
const fallbackWarn = isBoolean$1(options.fallbackWarn) || isRegExp$1(options.fallbackWarn) ? options.fallbackWarn : true;
|
|
4100
4104
|
const fallbackFormat = !!options.fallbackFormat;
|
|
4101
4105
|
const unresolving = !!options.unresolving;
|
|
4102
|
-
const postTranslation = isFunction$
|
|
4106
|
+
const postTranslation = isFunction$1(options.postTranslation) ? options.postTranslation : null;
|
|
4103
4107
|
const processor = isPlainObject$1(options.processor) ? options.processor : null;
|
|
4104
4108
|
const warnHtmlMessage = isBoolean$1(options.warnHtmlMessage) ? options.warnHtmlMessage : true;
|
|
4105
4109
|
const escapeParameter = !!options.escapeParameter;
|
|
4106
|
-
const messageCompiler = isFunction$
|
|
4107
|
-
if (process.env.NODE_ENV !== "production" && true && true && isFunction$
|
|
4110
|
+
const messageCompiler = isFunction$1(options.messageCompiler) ? options.messageCompiler : _compiler;
|
|
4111
|
+
if (process.env.NODE_ENV !== "production" && true && true && isFunction$1(options.messageCompiler)) {
|
|
4108
4112
|
warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
4109
4113
|
}
|
|
4110
|
-
const messageResolver = isFunction$
|
|
4111
|
-
const localeFallbacker = isFunction$
|
|
4112
|
-
const fallbackContext = isObject$
|
|
4114
|
+
const messageResolver = isFunction$1(options.messageResolver) ? options.messageResolver : _resolver || resolveWithKeyValue;
|
|
4115
|
+
const localeFallbacker = isFunction$1(options.localeFallbacker) ? options.localeFallbacker : _fallbacker || fallbackWithSimple;
|
|
4116
|
+
const fallbackContext = isObject$3(options.fallbackContext) ? options.fallbackContext : void 0;
|
|
4113
4117
|
const internalOptions = options;
|
|
4114
|
-
const __datetimeFormatters = isObject$
|
|
4115
|
-
const __numberFormatters = isObject$
|
|
4116
|
-
const __meta = isObject$
|
|
4118
|
+
const __datetimeFormatters = isObject$3(internalOptions.__datetimeFormatters) ? internalOptions.__datetimeFormatters : /* @__PURE__ */ new Map();
|
|
4119
|
+
const __numberFormatters = isObject$3(internalOptions.__numberFormatters) ? internalOptions.__numberFormatters : /* @__PURE__ */ new Map();
|
|
4120
|
+
const __meta = isObject$3(internalOptions.__meta) ? internalOptions.__meta : {};
|
|
4117
4121
|
_cid++;
|
|
4118
4122
|
const context = {
|
|
4119
4123
|
version,
|
|
@@ -4356,7 +4360,7 @@ reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-forma
|
|
|
4356
4360
|
}
|
|
4357
4361
|
}
|
|
4358
4362
|
function isMessageAST(val) {
|
|
4359
|
-
return isObject$
|
|
4363
|
+
return isObject$3(val) && resolveType(val) === 0 && (hasOwn(val, "b") || hasOwn(val, "body"));
|
|
4360
4364
|
}
|
|
4361
4365
|
function baseCompile(message, options = {}) {
|
|
4362
4366
|
let detectError = false;
|
|
@@ -4426,7 +4430,7 @@ function compile(message, context) {
|
|
|
4426
4430
|
}
|
|
4427
4431
|
}
|
|
4428
4432
|
const NOOP_MESSAGE_FUNCTION = () => "";
|
|
4429
|
-
const isMessageFunction = (val) => isFunction$
|
|
4433
|
+
const isMessageFunction = (val) => isFunction$1(val);
|
|
4430
4434
|
function translate(context, ...args) {
|
|
4431
4435
|
const { fallbackFormat, postTranslation, unresolving, messageCompiler, fallbackLocale, messages } = context;
|
|
4432
4436
|
const [key, options] = parseTranslateArgs(...args);
|
|
@@ -4484,9 +4488,9 @@ function translate(context, ...args) {
|
|
|
4484
4488
|
return ret;
|
|
4485
4489
|
}
|
|
4486
4490
|
function escapeParams(options) {
|
|
4487
|
-
if (isArray$
|
|
4491
|
+
if (isArray$1(options.list)) {
|
|
4488
4492
|
options.list = options.list.map((item) => isString$2(item) ? escapeHtml(item) : item);
|
|
4489
|
-
} else if (isObject$
|
|
4493
|
+
} else if (isObject$3(options.named)) {
|
|
4490
4494
|
Object.keys(options.named).forEach((key) => {
|
|
4491
4495
|
if (isString$2(options.named[key])) {
|
|
4492
4496
|
options.named[key] = escapeHtml(options.named[key]);
|
|
@@ -4660,7 +4664,7 @@ function parseTranslateArgs(...args) {
|
|
|
4660
4664
|
options.default = arg2;
|
|
4661
4665
|
} else if (isPlainObject$1(arg2) && !isEmptyObject(arg2)) {
|
|
4662
4666
|
options.named = arg2;
|
|
4663
|
-
} else if (isArray$
|
|
4667
|
+
} else if (isArray$1(arg2)) {
|
|
4664
4668
|
options.list = arg2;
|
|
4665
4669
|
}
|
|
4666
4670
|
if (isNumber$1(arg3)) {
|
|
@@ -4864,7 +4868,7 @@ function parseDateTimeArgs(...args) {
|
|
|
4864
4868
|
} catch (e) {
|
|
4865
4869
|
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
4866
4870
|
}
|
|
4867
|
-
} else if (isDate$
|
|
4871
|
+
} else if (isDate$1(arg1)) {
|
|
4868
4872
|
if (isNaN(arg1.getTime())) {
|
|
4869
4873
|
throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);
|
|
4870
4874
|
}
|
|
@@ -5064,7 +5068,7 @@ function isPerformanceSupported() {
|
|
|
5064
5068
|
}
|
|
5065
5069
|
return supported;
|
|
5066
5070
|
}
|
|
5067
|
-
function now
|
|
5071
|
+
function now() {
|
|
5068
5072
|
return isPerformanceSupported() ? perf.now() : Date.now();
|
|
5069
5073
|
}
|
|
5070
5074
|
class ApiProxy {
|
|
@@ -5101,7 +5105,7 @@ class ApiProxy {
|
|
|
5101
5105
|
currentSettings = value;
|
|
5102
5106
|
},
|
|
5103
5107
|
now() {
|
|
5104
|
-
return now
|
|
5108
|
+
return now();
|
|
5105
5109
|
}
|
|
5106
5110
|
};
|
|
5107
5111
|
if (hook) {
|
|
@@ -5320,7 +5324,7 @@ const SetPluralRulesSymbol = makeSymbol("__setPluralRules");
|
|
|
5320
5324
|
const InejctWithOptionSymbol = /* @__PURE__ */ makeSymbol("__injectWithOption");
|
|
5321
5325
|
const DisposeSymbol = /* @__PURE__ */ makeSymbol("__dispose");
|
|
5322
5326
|
function handleFlatJson(obj) {
|
|
5323
|
-
if (!isObject$
|
|
5327
|
+
if (!isObject$3(obj)) {
|
|
5324
5328
|
return obj;
|
|
5325
5329
|
}
|
|
5326
5330
|
for (const key in obj) {
|
|
@@ -5328,7 +5332,7 @@ function handleFlatJson(obj) {
|
|
|
5328
5332
|
continue;
|
|
5329
5333
|
}
|
|
5330
5334
|
if (!key.includes(".")) {
|
|
5331
|
-
if (isObject$
|
|
5335
|
+
if (isObject$3(obj[key])) {
|
|
5332
5336
|
handleFlatJson(obj[key]);
|
|
5333
5337
|
}
|
|
5334
5338
|
} else {
|
|
@@ -5343,7 +5347,7 @@ function handleFlatJson(obj) {
|
|
|
5343
5347
|
if (!(subKeys[i] in currentObj)) {
|
|
5344
5348
|
currentObj[subKeys[i]] = create();
|
|
5345
5349
|
}
|
|
5346
|
-
if (!isObject$
|
|
5350
|
+
if (!isObject$3(currentObj[subKeys[i]])) {
|
|
5347
5351
|
process.env.NODE_ENV !== "production" && warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN, {
|
|
5348
5352
|
key: subKeys[i]
|
|
5349
5353
|
}));
|
|
@@ -5356,7 +5360,7 @@ function handleFlatJson(obj) {
|
|
|
5356
5360
|
currentObj[subKeys[lastIndex]] = obj[key];
|
|
5357
5361
|
delete obj[key];
|
|
5358
5362
|
}
|
|
5359
|
-
if (isObject$
|
|
5363
|
+
if (isObject$3(currentObj[subKeys[lastIndex]])) {
|
|
5360
5364
|
handleFlatJson(currentObj[subKeys[lastIndex]]);
|
|
5361
5365
|
}
|
|
5362
5366
|
}
|
|
@@ -5365,8 +5369,8 @@ function handleFlatJson(obj) {
|
|
|
5365
5369
|
}
|
|
5366
5370
|
function getLocaleMessages(locale2, options) {
|
|
5367
5371
|
const { messages, __i18n, messageResolver, flatJson } = options;
|
|
5368
|
-
const ret = isPlainObject$1(messages) ? messages : isArray$
|
|
5369
|
-
if (isArray$
|
|
5372
|
+
const ret = isPlainObject$1(messages) ? messages : isArray$1(__i18n) ? create() : { [locale2]: create() };
|
|
5373
|
+
if (isArray$1(__i18n)) {
|
|
5370
5374
|
__i18n.forEach((custom) => {
|
|
5371
5375
|
if ("locale" in custom && "resource" in custom) {
|
|
5372
5376
|
const { locale: locale22, resource } = custom;
|
|
@@ -5394,7 +5398,7 @@ function getComponentOptions(instance) {
|
|
|
5394
5398
|
return instance.type;
|
|
5395
5399
|
}
|
|
5396
5400
|
function adjustI18nResources(gl, options, componentOptions) {
|
|
5397
|
-
let messages = isObject$
|
|
5401
|
+
let messages = isObject$3(options.messages) ? options.messages : create();
|
|
5398
5402
|
if ("__i18nGlobal" in componentOptions) {
|
|
5399
5403
|
messages = getLocaleMessages(gl.locale.value, {
|
|
5400
5404
|
messages,
|
|
@@ -5408,7 +5412,7 @@ function adjustI18nResources(gl, options, componentOptions) {
|
|
|
5408
5412
|
});
|
|
5409
5413
|
}
|
|
5410
5414
|
{
|
|
5411
|
-
if (isObject$
|
|
5415
|
+
if (isObject$3(options.datetimeFormats)) {
|
|
5412
5416
|
const locales2 = Object.keys(options.datetimeFormats);
|
|
5413
5417
|
if (locales2.length) {
|
|
5414
5418
|
locales2.forEach((locale2) => {
|
|
@@ -5416,7 +5420,7 @@ function adjustI18nResources(gl, options, componentOptions) {
|
|
|
5416
5420
|
});
|
|
5417
5421
|
}
|
|
5418
5422
|
}
|
|
5419
|
-
if (isObject$
|
|
5423
|
+
if (isObject$3(options.numberFormats)) {
|
|
5420
5424
|
const locales2 = Object.keys(options.numberFormats);
|
|
5421
5425
|
if (locales2.length) {
|
|
5422
5426
|
locales2.forEach((locale2) => {
|
|
@@ -5461,7 +5465,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5461
5465
|
);
|
|
5462
5466
|
const _fallbackLocale = _ref(
|
|
5463
5467
|
// prettier-ignore
|
|
5464
|
-
__root && _inheritLocale ? __root.fallbackLocale.value : isString$2(options.fallbackLocale) || isArray$
|
|
5468
|
+
__root && _inheritLocale ? __root.fallbackLocale.value : isString$2(options.fallbackLocale) || isArray$1(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
|
|
5465
5469
|
);
|
|
5466
5470
|
const _messages = _ref(getLocaleMessages(_locale.value, options));
|
|
5467
5471
|
const _datetimeFormats = _ref(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
|
|
@@ -5470,9 +5474,9 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5470
5474
|
let _fallbackWarn = __root ? __root.fallbackWarn : isBoolean$1(options.fallbackWarn) || isRegExp$1(options.fallbackWarn) ? options.fallbackWarn : true;
|
|
5471
5475
|
let _fallbackRoot = __root ? __root.fallbackRoot : isBoolean$1(options.fallbackRoot) ? options.fallbackRoot : true;
|
|
5472
5476
|
let _fallbackFormat = !!options.fallbackFormat;
|
|
5473
|
-
let _missing = isFunction$
|
|
5474
|
-
let _runtimeMissing = isFunction$
|
|
5475
|
-
let _postTranslation = isFunction$
|
|
5477
|
+
let _missing = isFunction$1(options.missing) ? options.missing : null;
|
|
5478
|
+
let _runtimeMissing = isFunction$1(options.missing) ? defineCoreMissingHandler(options.missing) : null;
|
|
5479
|
+
let _postTranslation = isFunction$1(options.postTranslation) ? options.postTranslation : null;
|
|
5476
5480
|
let _warnHtmlMessage = __root ? __root.warnHtmlMessage : isBoolean$1(options.warnHtmlMessage) ? options.warnHtmlMessage : true;
|
|
5477
5481
|
let _escapeParameter = !!options.escapeParameter;
|
|
5478
5482
|
const _modifiers = __root ? __root.modifiers : isPlainObject$1(options.modifiers) ? options.modifiers : {};
|
|
@@ -5542,7 +5546,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5542
5546
|
const datetimeFormats = /* @__PURE__ */ computed(() => _datetimeFormats.value);
|
|
5543
5547
|
const numberFormats = /* @__PURE__ */ computed(() => _numberFormats.value);
|
|
5544
5548
|
function getPostTranslationHandler() {
|
|
5545
|
-
return isFunction$
|
|
5549
|
+
return isFunction$1(_postTranslation) ? _postTranslation : null;
|
|
5546
5550
|
}
|
|
5547
5551
|
function setPostTranslationHandler(handler) {
|
|
5548
5552
|
_postTranslation = handler;
|
|
@@ -5608,20 +5612,20 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5608
5612
|
}
|
|
5609
5613
|
};
|
|
5610
5614
|
function t2(...args) {
|
|
5611
|
-
return wrapWithDeps((context) => Reflect.apply(translate, null, [context, ...args]), () => parseTranslateArgs(...args), "translate", (
|
|
5615
|
+
return wrapWithDeps((context) => Reflect.apply(translate, null, [context, ...args]), () => parseTranslateArgs(...args), "translate", (root) => Reflect.apply(root.t, root, [...args]), (key) => key, (val) => isString$2(val));
|
|
5612
5616
|
}
|
|
5613
5617
|
function rt(...args) {
|
|
5614
5618
|
const [arg1, arg2, arg3] = args;
|
|
5615
|
-
if (arg3 && !isObject$
|
|
5619
|
+
if (arg3 && !isObject$3(arg3)) {
|
|
5616
5620
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5617
5621
|
}
|
|
5618
5622
|
return t2(...[arg1, arg2, assign$1({ resolvedMessage: true }, arg3 || {})]);
|
|
5619
5623
|
}
|
|
5620
5624
|
function d(...args) {
|
|
5621
|
-
return wrapWithDeps((context) => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), "datetime format", (
|
|
5625
|
+
return wrapWithDeps((context) => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), "datetime format", (root) => Reflect.apply(root.d, root, [...args]), () => MISSING_RESOLVE_VALUE, (val) => isString$2(val));
|
|
5622
5626
|
}
|
|
5623
5627
|
function n(...args) {
|
|
5624
|
-
return wrapWithDeps((context) => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), "number format", (
|
|
5628
|
+
return wrapWithDeps((context) => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), "number format", (root) => Reflect.apply(root.n, root, [...args]), () => MISSING_RESOLVE_VALUE, (val) => isString$2(val));
|
|
5625
5629
|
}
|
|
5626
5630
|
function normalize(values) {
|
|
5627
5631
|
return values.map((val) => isString$2(val) || isNumber$1(val) || isBoolean$1(val) ? createTextNode(String(val)) : val);
|
|
@@ -5648,9 +5652,9 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5648
5652
|
() => parseTranslateArgs(...args),
|
|
5649
5653
|
"translate",
|
|
5650
5654
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5651
|
-
(
|
|
5655
|
+
(root) => root[TranslateVNodeSymbol](...args),
|
|
5652
5656
|
(key) => [createTextNode(key)],
|
|
5653
|
-
(val) => isArray$
|
|
5657
|
+
(val) => isArray$1(val)
|
|
5654
5658
|
);
|
|
5655
5659
|
}
|
|
5656
5660
|
function numberParts(...args) {
|
|
@@ -5659,9 +5663,9 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5659
5663
|
() => parseNumberArgs(...args),
|
|
5660
5664
|
"number format",
|
|
5661
5665
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5662
|
-
(
|
|
5666
|
+
(root) => root[NumberPartsSymbol](...args),
|
|
5663
5667
|
NOOP_RETURN_ARRAY,
|
|
5664
|
-
(val) => isString$2(val) || isArray$
|
|
5668
|
+
(val) => isString$2(val) || isArray$1(val)
|
|
5665
5669
|
);
|
|
5666
5670
|
}
|
|
5667
5671
|
function datetimeParts(...args) {
|
|
@@ -5670,9 +5674,9 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5670
5674
|
() => parseDateTimeArgs(...args),
|
|
5671
5675
|
"datetime format",
|
|
5672
5676
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5673
|
-
(
|
|
5677
|
+
(root) => root[DatetimePartsSymbol](...args),
|
|
5674
5678
|
NOOP_RETURN_ARRAY,
|
|
5675
|
-
(val) => isString$2(val) || isArray$
|
|
5679
|
+
(val) => isString$2(val) || isArray$1(val)
|
|
5676
5680
|
);
|
|
5677
5681
|
}
|
|
5678
5682
|
function setPluralRules(rules) {
|
|
@@ -5688,8 +5692,8 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5688
5692
|
const message = getLocaleMessage(targetLocale);
|
|
5689
5693
|
const resolved = _context.messageResolver(message, key);
|
|
5690
5694
|
return !translateExistCompatible ? isMessageAST(resolved) || isMessageFunction(resolved) || isString$2(resolved) : resolved != null;
|
|
5691
|
-
}, () => [key], "translate exists", (
|
|
5692
|
-
return Reflect.apply(
|
|
5695
|
+
}, () => [key], "translate exists", (root) => {
|
|
5696
|
+
return Reflect.apply(root.te, root, [key, locale22]);
|
|
5693
5697
|
}, NOOP_RETURN_FALSE, (val) => isBoolean$1(val));
|
|
5694
5698
|
}
|
|
5695
5699
|
function resolveMessages(key) {
|
|
@@ -5892,15 +5896,15 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5892
5896
|
}
|
|
5893
5897
|
function convertComposerOptions(options) {
|
|
5894
5898
|
const locale2 = isString$2(options.locale) ? options.locale : DEFAULT_LOCALE;
|
|
5895
|
-
const fallbackLocale = isString$2(options.fallbackLocale) || isArray$
|
|
5896
|
-
const missing = isFunction$
|
|
5899
|
+
const fallbackLocale = isString$2(options.fallbackLocale) || isArray$1(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : locale2;
|
|
5900
|
+
const missing = isFunction$1(options.missing) ? options.missing : void 0;
|
|
5897
5901
|
const missingWarn = isBoolean$1(options.silentTranslationWarn) || isRegExp$1(options.silentTranslationWarn) ? !options.silentTranslationWarn : true;
|
|
5898
5902
|
const fallbackWarn = isBoolean$1(options.silentFallbackWarn) || isRegExp$1(options.silentFallbackWarn) ? !options.silentFallbackWarn : true;
|
|
5899
5903
|
const fallbackRoot = isBoolean$1(options.fallbackRoot) ? options.fallbackRoot : true;
|
|
5900
5904
|
const fallbackFormat = !!options.formatFallbackMessages;
|
|
5901
5905
|
const modifiers = isPlainObject$1(options.modifiers) ? options.modifiers : {};
|
|
5902
5906
|
const pluralizationRules = options.pluralizationRules;
|
|
5903
|
-
const postTranslation = isFunction$
|
|
5907
|
+
const postTranslation = isFunction$1(options.postTranslation) ? options.postTranslation : void 0;
|
|
5904
5908
|
const warnHtmlMessage = isString$2(options.warnHtmlInMessage) ? options.warnHtmlInMessage !== "off" : true;
|
|
5905
5909
|
const escapeParameter = !!options.escapeParameterHtml;
|
|
5906
5910
|
const inheritLocale = isBoolean$1(options.sync) ? options.sync : true;
|
|
@@ -6085,12 +6089,12 @@ function createVueI18n(options = {}, VueI18nLegacy) {
|
|
|
6085
6089
|
const key = arg1;
|
|
6086
6090
|
if (isString$2(arg2)) {
|
|
6087
6091
|
options2.locale = arg2;
|
|
6088
|
-
} else if (isArray$
|
|
6092
|
+
} else if (isArray$1(arg2)) {
|
|
6089
6093
|
list = arg2;
|
|
6090
6094
|
} else if (isPlainObject$1(arg2)) {
|
|
6091
6095
|
named = arg2;
|
|
6092
6096
|
}
|
|
6093
|
-
if (isArray$
|
|
6097
|
+
if (isArray$1(arg3)) {
|
|
6094
6098
|
list = arg3;
|
|
6095
6099
|
} else if (isPlainObject$1(arg3)) {
|
|
6096
6100
|
named = arg3;
|
|
@@ -6118,14 +6122,14 @@ function createVueI18n(options = {}, VueI18nLegacy) {
|
|
|
6118
6122
|
options2.locale = arg2;
|
|
6119
6123
|
} else if (isNumber$1(arg2)) {
|
|
6120
6124
|
options2.plural = arg2;
|
|
6121
|
-
} else if (isArray$
|
|
6125
|
+
} else if (isArray$1(arg2)) {
|
|
6122
6126
|
list = arg2;
|
|
6123
6127
|
} else if (isPlainObject$1(arg2)) {
|
|
6124
6128
|
named = arg2;
|
|
6125
6129
|
}
|
|
6126
6130
|
if (isString$2(arg3)) {
|
|
6127
6131
|
options2.locale = arg3;
|
|
6128
|
-
} else if (isArray$
|
|
6132
|
+
} else if (isArray$1(arg3)) {
|
|
6129
6133
|
list = arg3;
|
|
6130
6134
|
} else if (isPlainObject$1(arg3)) {
|
|
6131
6135
|
named = arg3;
|
|
@@ -6227,8 +6231,8 @@ const baseFormatProps = {
|
|
|
6227
6231
|
type: Object
|
|
6228
6232
|
}
|
|
6229
6233
|
};
|
|
6230
|
-
function getInterpolateArg({ slots },
|
|
6231
|
-
if (
|
|
6234
|
+
function getInterpolateArg({ slots }, keys) {
|
|
6235
|
+
if (keys.length === 1 && keys[0] === "default") {
|
|
6232
6236
|
const ret = slots.default ? slots.default() : [];
|
|
6233
6237
|
return ret.reduce((slot, current) => {
|
|
6234
6238
|
return [
|
|
@@ -6238,7 +6242,7 @@ function getInterpolateArg({ slots }, keys2) {
|
|
|
6238
6242
|
];
|
|
6239
6243
|
}, []);
|
|
6240
6244
|
} else {
|
|
6241
|
-
return
|
|
6245
|
+
return keys.reduce((arg, key) => {
|
|
6242
6246
|
const slot = slots[key];
|
|
6243
6247
|
if (slot) {
|
|
6244
6248
|
arg[key] = slot();
|
|
@@ -6273,7 +6277,7 @@ const TranslationImpl = /* @__PURE__ */ defineComponent({
|
|
|
6273
6277
|
__useComponent: true
|
|
6274
6278
|
});
|
|
6275
6279
|
return () => {
|
|
6276
|
-
const
|
|
6280
|
+
const keys = Object.keys(slots).filter((key) => key !== "_");
|
|
6277
6281
|
const options = create();
|
|
6278
6282
|
if (props.locale) {
|
|
6279
6283
|
options.locale = props.locale;
|
|
@@ -6281,17 +6285,17 @@ const TranslationImpl = /* @__PURE__ */ defineComponent({
|
|
|
6281
6285
|
if (props.plural !== void 0) {
|
|
6282
6286
|
options.plural = isString$2(props.plural) ? +props.plural : props.plural;
|
|
6283
6287
|
}
|
|
6284
|
-
const arg = getInterpolateArg(context,
|
|
6288
|
+
const arg = getInterpolateArg(context, keys);
|
|
6285
6289
|
const children = i18n2[TranslateVNodeSymbol](props.keypath, arg, options);
|
|
6286
6290
|
const assignedAttrs = assign$1(create(), attrs);
|
|
6287
|
-
const tag = isString$2(props.tag) || isObject$
|
|
6291
|
+
const tag = isString$2(props.tag) || isObject$3(props.tag) ? props.tag : getFragmentableTag();
|
|
6288
6292
|
return h(tag, assignedAttrs, children);
|
|
6289
6293
|
};
|
|
6290
6294
|
}
|
|
6291
6295
|
});
|
|
6292
6296
|
const Translation = TranslationImpl;
|
|
6293
6297
|
function isVNode(target) {
|
|
6294
|
-
return isArray$
|
|
6298
|
+
return isArray$1(target) && !isString$2(target[0]);
|
|
6295
6299
|
}
|
|
6296
6300
|
function renderFormatter(props, context, slotKeys, partFormatter) {
|
|
6297
6301
|
const { slots, attrs } = context;
|
|
@@ -6303,7 +6307,7 @@ function renderFormatter(props, context, slotKeys, partFormatter) {
|
|
|
6303
6307
|
}
|
|
6304
6308
|
if (isString$2(props.format)) {
|
|
6305
6309
|
options.key = props.format;
|
|
6306
|
-
} else if (isObject$
|
|
6310
|
+
} else if (isObject$3(props.format)) {
|
|
6307
6311
|
if (isString$2(props.format.key)) {
|
|
6308
6312
|
options.key = props.format.key;
|
|
6309
6313
|
}
|
|
@@ -6313,7 +6317,7 @@ function renderFormatter(props, context, slotKeys, partFormatter) {
|
|
|
6313
6317
|
}
|
|
6314
6318
|
const parts = partFormatter(...[props.value, options, overrides]);
|
|
6315
6319
|
let children = [options.key];
|
|
6316
|
-
if (isArray$
|
|
6320
|
+
if (isArray$1(parts)) {
|
|
6317
6321
|
children = parts.map((part, index2) => {
|
|
6318
6322
|
const slot = slots[part.type];
|
|
6319
6323
|
const node = slot ? slot({ [part.type]: part.value, index: index2, parts }) : [part.value];
|
|
@@ -6326,7 +6330,7 @@ function renderFormatter(props, context, slotKeys, partFormatter) {
|
|
|
6326
6330
|
children = [parts];
|
|
6327
6331
|
}
|
|
6328
6332
|
const assignedAttrs = assign$1(create(), attrs);
|
|
6329
|
-
const tag = isString$2(props.tag) || isObject$
|
|
6333
|
+
const tag = isString$2(props.tag) || isObject$3(props.tag) ? props.tag : getFragmentableTag();
|
|
6330
6334
|
return h(tag, assignedAttrs, children);
|
|
6331
6335
|
};
|
|
6332
6336
|
}
|
|
@@ -6576,8 +6580,8 @@ async function enableDevTools(app, i18n2) {
|
|
|
6576
6580
|
inspectScope(payload, i18n2);
|
|
6577
6581
|
if (payload.nodeId === "global") {
|
|
6578
6582
|
if (!roots.has(payload.app)) {
|
|
6579
|
-
const [
|
|
6580
|
-
roots.set(payload.app,
|
|
6583
|
+
const [root] = await api2.getComponentInstances(payload.app);
|
|
6584
|
+
roots.set(payload.app, root);
|
|
6581
6585
|
}
|
|
6582
6586
|
api2.highlightElement(roots.get(payload.app));
|
|
6583
6587
|
} else {
|
|
@@ -6677,11 +6681,11 @@ function getLocaleMessageValue(messages) {
|
|
|
6677
6681
|
const value = {};
|
|
6678
6682
|
Object.keys(messages).forEach((key) => {
|
|
6679
6683
|
const v = messages[key];
|
|
6680
|
-
if (isFunction$
|
|
6684
|
+
if (isFunction$1(v) && "source" in v) {
|
|
6681
6685
|
value[key] = getMessageFunctionDetails(v);
|
|
6682
6686
|
} else if (isMessageAST(v) && v.loc && v.loc.source) {
|
|
6683
6687
|
value[key] = v.loc.source;
|
|
6684
|
-
} else if (isObject$
|
|
6688
|
+
} else if (isObject$3(v)) {
|
|
6685
6689
|
value[key] = getLocaleMessageValue(v);
|
|
6686
6690
|
} else {
|
|
6687
6691
|
value[key] = v;
|
|
@@ -6848,7 +6852,7 @@ function editScope(payload, i18n2) {
|
|
|
6848
6852
|
const [field] = payload.path;
|
|
6849
6853
|
if (field === "locale" && isString$2(payload.state.value)) {
|
|
6850
6854
|
composer.locale.value = payload.state.value;
|
|
6851
|
-
} else if (field === "fallbackLocale" && (isString$2(payload.state.value) || isArray$
|
|
6855
|
+
} else if (field === "fallbackLocale" && (isString$2(payload.state.value) || isArray$1(payload.state.value) || isObject$3(payload.state.value))) {
|
|
6852
6856
|
composer.fallbackLocale.value = payload.state.value;
|
|
6853
6857
|
} else if (field === "inheritLocale" && isBoolean$1(payload.state.value)) {
|
|
6854
6858
|
composer.inheritLocale = payload.state.value;
|
|
@@ -7152,7 +7156,7 @@ function getGlobalComposer(i18n2) {
|
|
|
7152
7156
|
}
|
|
7153
7157
|
function getComposer(i18n2, target, useComponent = false) {
|
|
7154
7158
|
let composer = null;
|
|
7155
|
-
const
|
|
7159
|
+
const root = target.root;
|
|
7156
7160
|
let current = getParentComponentInstance(target, useComponent);
|
|
7157
7161
|
while (current != null) {
|
|
7158
7162
|
const i18nInternal = i18n2;
|
|
@@ -7172,7 +7176,7 @@ function getComposer(i18n2, target, useComponent = false) {
|
|
|
7172
7176
|
if (composer != null) {
|
|
7173
7177
|
break;
|
|
7174
7178
|
}
|
|
7175
|
-
if (
|
|
7179
|
+
if (root === current) {
|
|
7176
7180
|
break;
|
|
7177
7181
|
}
|
|
7178
7182
|
current = current.parent;
|
|
@@ -7215,7 +7219,7 @@ function setupLifeCycle(i18n2, target, composer) {
|
|
|
7215
7219
|
}, target);
|
|
7216
7220
|
}
|
|
7217
7221
|
}
|
|
7218
|
-
function useI18nForLegacy(instance, scope,
|
|
7222
|
+
function useI18nForLegacy(instance, scope, root, options = {}) {
|
|
7219
7223
|
const isLocalScope = scope === "local";
|
|
7220
7224
|
const _composer = shallowRef(null);
|
|
7221
7225
|
if (isLocalScope && instance.proxy && !(instance.proxy.$options.i18n || instance.proxy.$options.__i18n)) {
|
|
@@ -7224,25 +7228,25 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
|
|
|
7224
7228
|
const _inheritLocale = isBoolean$1(options.inheritLocale) ? options.inheritLocale : !isString$2(options.locale);
|
|
7225
7229
|
const _locale = ref(
|
|
7226
7230
|
// prettier-ignore
|
|
7227
|
-
!isLocalScope || _inheritLocale ?
|
|
7231
|
+
!isLocalScope || _inheritLocale ? root.locale.value : isString$2(options.locale) ? options.locale : DEFAULT_LOCALE
|
|
7228
7232
|
);
|
|
7229
7233
|
const _fallbackLocale = ref(
|
|
7230
7234
|
// prettier-ignore
|
|
7231
|
-
!isLocalScope || _inheritLocale ?
|
|
7235
|
+
!isLocalScope || _inheritLocale ? root.fallbackLocale.value : isString$2(options.fallbackLocale) || isArray$1(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
|
|
7232
7236
|
);
|
|
7233
7237
|
const _messages = ref(getLocaleMessages(_locale.value, options));
|
|
7234
7238
|
const _datetimeFormats = ref(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
|
|
7235
7239
|
const _numberFormats = ref(isPlainObject$1(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
|
|
7236
|
-
const _missingWarn = isLocalScope ?
|
|
7237
|
-
const _fallbackWarn = isLocalScope ?
|
|
7238
|
-
const _fallbackRoot = isLocalScope ?
|
|
7240
|
+
const _missingWarn = isLocalScope ? root.missingWarn : isBoolean$1(options.missingWarn) || isRegExp$1(options.missingWarn) ? options.missingWarn : true;
|
|
7241
|
+
const _fallbackWarn = isLocalScope ? root.fallbackWarn : isBoolean$1(options.fallbackWarn) || isRegExp$1(options.fallbackWarn) ? options.fallbackWarn : true;
|
|
7242
|
+
const _fallbackRoot = isLocalScope ? root.fallbackRoot : isBoolean$1(options.fallbackRoot) ? options.fallbackRoot : true;
|
|
7239
7243
|
const _fallbackFormat = !!options.fallbackFormat;
|
|
7240
|
-
const _missing = isFunction$
|
|
7241
|
-
const _postTranslation = isFunction$
|
|
7242
|
-
const _warnHtmlMessage = isLocalScope ?
|
|
7244
|
+
const _missing = isFunction$1(options.missing) ? options.missing : null;
|
|
7245
|
+
const _postTranslation = isFunction$1(options.postTranslation) ? options.postTranslation : null;
|
|
7246
|
+
const _warnHtmlMessage = isLocalScope ? root.warnHtmlMessage : isBoolean$1(options.warnHtmlMessage) ? options.warnHtmlMessage : true;
|
|
7243
7247
|
const _escapeParameter = !!options.escapeParameter;
|
|
7244
|
-
const _modifiers = isLocalScope ?
|
|
7245
|
-
const _pluralRules = options.pluralRules || isLocalScope &&
|
|
7248
|
+
const _modifiers = isLocalScope ? root.modifiers : isPlainObject$1(options.modifiers) ? options.modifiers : {};
|
|
7249
|
+
const _pluralRules = options.pluralRules || isLocalScope && root.pluralRules;
|
|
7246
7250
|
function trackReactivityValues() {
|
|
7247
7251
|
return [
|
|
7248
7252
|
_locale.value,
|
|
@@ -8379,10 +8383,10 @@ const kindOfTest = (type) => {
|
|
|
8379
8383
|
return (thing) => kindOf(thing) === type;
|
|
8380
8384
|
};
|
|
8381
8385
|
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
8382
|
-
const { isArray
|
|
8386
|
+
const { isArray } = Array;
|
|
8383
8387
|
const isUndefined$1 = typeOfTest("undefined");
|
|
8384
|
-
function isBuffer
|
|
8385
|
-
return val !== null && !isUndefined$1(val) && val.constructor !== null && !isUndefined$1(val.constructor) && isFunction
|
|
8388
|
+
function isBuffer(val) {
|
|
8389
|
+
return val !== null && !isUndefined$1(val) && val.constructor !== null && !isUndefined$1(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
8386
8390
|
}
|
|
8387
8391
|
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
8388
8392
|
function isArrayBufferView(val) {
|
|
@@ -8395,9 +8399,9 @@ function isArrayBufferView(val) {
|
|
|
8395
8399
|
return result2;
|
|
8396
8400
|
}
|
|
8397
8401
|
const isString = typeOfTest("string");
|
|
8398
|
-
const isFunction
|
|
8402
|
+
const isFunction = typeOfTest("function");
|
|
8399
8403
|
const isNumber = typeOfTest("number");
|
|
8400
|
-
const isObject$
|
|
8404
|
+
const isObject$1 = (thing) => thing !== null && typeof thing === "object";
|
|
8401
8405
|
const isBoolean = (thing) => thing === true || thing === false;
|
|
8402
8406
|
const isPlainObject = (val) => {
|
|
8403
8407
|
if (kindOf(val) !== "object") {
|
|
@@ -8406,15 +8410,15 @@ const isPlainObject = (val) => {
|
|
|
8406
8410
|
const prototype2 = getPrototypeOf(val);
|
|
8407
8411
|
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
|
8408
8412
|
};
|
|
8409
|
-
const isDate
|
|
8413
|
+
const isDate = kindOfTest("Date");
|
|
8410
8414
|
const isFile = kindOfTest("File");
|
|
8411
8415
|
const isBlob = kindOfTest("Blob");
|
|
8412
8416
|
const isFileList = kindOfTest("FileList");
|
|
8413
|
-
const isStream = (val) => isObject$
|
|
8417
|
+
const isStream = (val) => isObject$1(val) && isFunction(val.pipe);
|
|
8414
8418
|
const isFormData = (thing) => {
|
|
8415
8419
|
let kind;
|
|
8416
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction
|
|
8417
|
-
kind === "object" && isFunction
|
|
8420
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
8421
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
8418
8422
|
};
|
|
8419
8423
|
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
8420
8424
|
const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
@@ -8428,27 +8432,27 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
8428
8432
|
if (typeof obj !== "object") {
|
|
8429
8433
|
obj = [obj];
|
|
8430
8434
|
}
|
|
8431
|
-
if (isArray
|
|
8435
|
+
if (isArray(obj)) {
|
|
8432
8436
|
for (i = 0, l = obj.length; i < l; i++) {
|
|
8433
8437
|
fn.call(null, obj[i], i, obj);
|
|
8434
8438
|
}
|
|
8435
8439
|
} else {
|
|
8436
|
-
const
|
|
8437
|
-
const len =
|
|
8440
|
+
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
8441
|
+
const len = keys.length;
|
|
8438
8442
|
let key;
|
|
8439
8443
|
for (i = 0; i < len; i++) {
|
|
8440
|
-
key =
|
|
8444
|
+
key = keys[i];
|
|
8441
8445
|
fn.call(null, obj[key], key, obj);
|
|
8442
8446
|
}
|
|
8443
8447
|
}
|
|
8444
8448
|
}
|
|
8445
8449
|
function findKey(obj, key) {
|
|
8446
8450
|
key = key.toLowerCase();
|
|
8447
|
-
const
|
|
8448
|
-
let i =
|
|
8451
|
+
const keys = Object.keys(obj);
|
|
8452
|
+
let i = keys.length;
|
|
8449
8453
|
let _key;
|
|
8450
8454
|
while (i-- > 0) {
|
|
8451
|
-
_key =
|
|
8455
|
+
_key = keys[i];
|
|
8452
8456
|
if (key === _key.toLowerCase()) {
|
|
8453
8457
|
return _key;
|
|
8454
8458
|
}
|
|
@@ -8463,26 +8467,26 @@ const isContextDefined = (context) => !isUndefined$1(context) && context !== _gl
|
|
|
8463
8467
|
function merge() {
|
|
8464
8468
|
const { caseless } = isContextDefined(this) && this || {};
|
|
8465
8469
|
const result2 = {};
|
|
8466
|
-
const
|
|
8470
|
+
const assignValue = (val, key) => {
|
|
8467
8471
|
const targetKey = caseless && findKey(result2, key) || key;
|
|
8468
8472
|
if (isPlainObject(result2[targetKey]) && isPlainObject(val)) {
|
|
8469
8473
|
result2[targetKey] = merge(result2[targetKey], val);
|
|
8470
8474
|
} else if (isPlainObject(val)) {
|
|
8471
8475
|
result2[targetKey] = merge({}, val);
|
|
8472
|
-
} else if (isArray
|
|
8476
|
+
} else if (isArray(val)) {
|
|
8473
8477
|
result2[targetKey] = val.slice();
|
|
8474
8478
|
} else {
|
|
8475
8479
|
result2[targetKey] = val;
|
|
8476
8480
|
}
|
|
8477
8481
|
};
|
|
8478
8482
|
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
8479
|
-
arguments[i] && forEach(arguments[i],
|
|
8483
|
+
arguments[i] && forEach(arguments[i], assignValue);
|
|
8480
8484
|
}
|
|
8481
8485
|
return result2;
|
|
8482
8486
|
}
|
|
8483
8487
|
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
8484
8488
|
forEach(b, (val, key) => {
|
|
8485
|
-
if (thisArg && isFunction
|
|
8489
|
+
if (thisArg && isFunction(val)) {
|
|
8486
8490
|
a[key] = bind(val, thisArg);
|
|
8487
8491
|
} else {
|
|
8488
8492
|
a[key] = val;
|
|
@@ -8536,7 +8540,7 @@ const endsWith = (str, searchString, position) => {
|
|
|
8536
8540
|
};
|
|
8537
8541
|
const toArray = (thing) => {
|
|
8538
8542
|
if (!thing) return null;
|
|
8539
|
-
if (isArray
|
|
8543
|
+
if (isArray(thing)) return thing;
|
|
8540
8544
|
let i = thing.length;
|
|
8541
8545
|
if (!isNumber(i)) return null;
|
|
8542
8546
|
const arr = new Array(i);
|
|
@@ -8545,7 +8549,7 @@ const toArray = (thing) => {
|
|
|
8545
8549
|
}
|
|
8546
8550
|
return arr;
|
|
8547
8551
|
};
|
|
8548
|
-
const isTypedArray
|
|
8552
|
+
const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
|
|
8549
8553
|
return (thing) => {
|
|
8550
8554
|
return TypedArray && thing instanceof TypedArray;
|
|
8551
8555
|
};
|
|
@@ -8576,7 +8580,7 @@ const toCamelCase = (str) => {
|
|
|
8576
8580
|
}
|
|
8577
8581
|
);
|
|
8578
8582
|
};
|
|
8579
|
-
const hasOwnProperty
|
|
8583
|
+
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
8580
8584
|
const isRegExp = kindOfTest("RegExp");
|
|
8581
8585
|
const reduceDescriptors = (obj, reducer) => {
|
|
8582
8586
|
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -8591,11 +8595,11 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
8591
8595
|
};
|
|
8592
8596
|
const freezeMethods = (obj) => {
|
|
8593
8597
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
8594
|
-
if (isFunction
|
|
8598
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
8595
8599
|
return false;
|
|
8596
8600
|
}
|
|
8597
8601
|
const value = obj[name];
|
|
8598
|
-
if (!isFunction
|
|
8602
|
+
if (!isFunction(value)) return;
|
|
8599
8603
|
descriptor.enumerable = false;
|
|
8600
8604
|
if ("writable" in descriptor) {
|
|
8601
8605
|
descriptor.writable = false;
|
|
@@ -8615,7 +8619,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
8615
8619
|
obj[value] = true;
|
|
8616
8620
|
});
|
|
8617
8621
|
};
|
|
8618
|
-
isArray
|
|
8622
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
8619
8623
|
return obj;
|
|
8620
8624
|
};
|
|
8621
8625
|
const noop = () => {
|
|
@@ -8624,18 +8628,18 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
8624
8628
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
8625
8629
|
};
|
|
8626
8630
|
function isSpecCompliantForm(thing) {
|
|
8627
|
-
return !!(thing && isFunction
|
|
8631
|
+
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
8628
8632
|
}
|
|
8629
8633
|
const toJSONObject = (obj) => {
|
|
8630
8634
|
const stack = new Array(10);
|
|
8631
8635
|
const visit = (source, i) => {
|
|
8632
|
-
if (isObject$
|
|
8636
|
+
if (isObject$1(source)) {
|
|
8633
8637
|
if (stack.indexOf(source) >= 0) {
|
|
8634
8638
|
return;
|
|
8635
8639
|
}
|
|
8636
8640
|
if (!("toJSON" in source)) {
|
|
8637
8641
|
stack[i] = source;
|
|
8638
|
-
const target = isArray
|
|
8642
|
+
const target = isArray(source) ? [] : {};
|
|
8639
8643
|
forEach(source, (value, key) => {
|
|
8640
8644
|
const reducedValue = visit(value, i + 1);
|
|
8641
8645
|
!isUndefined$1(reducedValue) && (target[key] = reducedValue);
|
|
@@ -8649,7 +8653,7 @@ const toJSONObject = (obj) => {
|
|
|
8649
8653
|
return visit(obj, 0);
|
|
8650
8654
|
};
|
|
8651
8655
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
8652
|
-
const isThenable = (thing) => thing && (isObject$
|
|
8656
|
+
const isThenable = (thing) => thing && (isObject$1(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
8653
8657
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
8654
8658
|
if (setImmediateSupported) {
|
|
8655
8659
|
return setImmediate;
|
|
@@ -8667,33 +8671,33 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
8667
8671
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
8668
8672
|
})(
|
|
8669
8673
|
typeof setImmediate === "function",
|
|
8670
|
-
isFunction
|
|
8674
|
+
isFunction(_global.postMessage)
|
|
8671
8675
|
);
|
|
8672
8676
|
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
8673
8677
|
const utils$1 = {
|
|
8674
|
-
isArray
|
|
8678
|
+
isArray,
|
|
8675
8679
|
isArrayBuffer,
|
|
8676
|
-
isBuffer
|
|
8680
|
+
isBuffer,
|
|
8677
8681
|
isFormData,
|
|
8678
8682
|
isArrayBufferView,
|
|
8679
8683
|
isString,
|
|
8680
8684
|
isNumber,
|
|
8681
8685
|
isBoolean,
|
|
8682
|
-
isObject: isObject$
|
|
8686
|
+
isObject: isObject$1,
|
|
8683
8687
|
isPlainObject,
|
|
8684
8688
|
isReadableStream,
|
|
8685
8689
|
isRequest,
|
|
8686
8690
|
isResponse,
|
|
8687
8691
|
isHeaders,
|
|
8688
8692
|
isUndefined: isUndefined$1,
|
|
8689
|
-
isDate
|
|
8693
|
+
isDate,
|
|
8690
8694
|
isFile,
|
|
8691
8695
|
isBlob,
|
|
8692
8696
|
isRegExp,
|
|
8693
|
-
isFunction
|
|
8697
|
+
isFunction,
|
|
8694
8698
|
isStream,
|
|
8695
8699
|
isURLSearchParams,
|
|
8696
|
-
isTypedArray
|
|
8700
|
+
isTypedArray,
|
|
8697
8701
|
isFileList,
|
|
8698
8702
|
forEach,
|
|
8699
8703
|
merge,
|
|
@@ -8709,8 +8713,8 @@ const utils$1 = {
|
|
|
8709
8713
|
forEachEntry,
|
|
8710
8714
|
matchAll,
|
|
8711
8715
|
isHTMLForm,
|
|
8712
|
-
hasOwnProperty
|
|
8713
|
-
hasOwnProp: hasOwnProperty
|
|
8716
|
+
hasOwnProperty,
|
|
8717
|
+
hasOwnProp: hasOwnProperty,
|
|
8714
8718
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8715
8719
|
reduceDescriptors,
|
|
8716
8720
|
freezeMethods,
|
|
@@ -9085,12 +9089,12 @@ function parsePropPath(name) {
|
|
|
9085
9089
|
}
|
|
9086
9090
|
function arrayToObject(arr) {
|
|
9087
9091
|
const obj = {};
|
|
9088
|
-
const
|
|
9092
|
+
const keys = Object.keys(arr);
|
|
9089
9093
|
let i;
|
|
9090
|
-
const len =
|
|
9094
|
+
const len = keys.length;
|
|
9091
9095
|
let key;
|
|
9092
9096
|
for (i = 0; i < len; i++) {
|
|
9093
|
-
key =
|
|
9097
|
+
key = keys[i];
|
|
9094
9098
|
obj[key] = arr[key];
|
|
9095
9099
|
}
|
|
9096
9100
|
return obj;
|
|
@@ -9409,11 +9413,11 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
9409
9413
|
return deleted;
|
|
9410
9414
|
}
|
|
9411
9415
|
clear(matcher) {
|
|
9412
|
-
const
|
|
9413
|
-
let i =
|
|
9416
|
+
const keys = Object.keys(this);
|
|
9417
|
+
let i = keys.length;
|
|
9414
9418
|
let deleted = false;
|
|
9415
9419
|
while (i--) {
|
|
9416
|
-
const key =
|
|
9420
|
+
const key = keys[i];
|
|
9417
9421
|
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
9418
9422
|
delete this[key];
|
|
9419
9423
|
deleted = true;
|
|
@@ -10323,10 +10327,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
10323
10327
|
if (typeof options !== "object") {
|
|
10324
10328
|
throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
10325
10329
|
}
|
|
10326
|
-
const
|
|
10327
|
-
let i =
|
|
10330
|
+
const keys = Object.keys(options);
|
|
10331
|
+
let i = keys.length;
|
|
10328
10332
|
while (i-- > 0) {
|
|
10329
|
-
const opt =
|
|
10333
|
+
const opt = keys[i];
|
|
10330
10334
|
const validator2 = schema[opt];
|
|
10331
10335
|
if (validator2) {
|
|
10332
10336
|
const value = options[opt];
|
|
@@ -11446,7 +11450,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
11446
11450
|
});
|
|
11447
11451
|
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
11448
11452
|
function usePopup(className, rootElement) {
|
|
11449
|
-
const
|
|
11453
|
+
const root = rootElement || document.getElementById("app") || (document == null ? void 0 : document.getElementById("__nuxt"));
|
|
11450
11454
|
let cacheClass = "popup-container";
|
|
11451
11455
|
if (className) {
|
|
11452
11456
|
cacheClass = className;
|
|
@@ -11454,7 +11458,7 @@ function usePopup(className, rootElement) {
|
|
|
11454
11458
|
function mount(component, options = {}) {
|
|
11455
11459
|
const el = document.createElement("div");
|
|
11456
11460
|
el.className = cacheClass;
|
|
11457
|
-
|
|
11461
|
+
root.appendChild(el);
|
|
11458
11462
|
const vnode = h(component, Object.assign({
|
|
11459
11463
|
onClose: () => {
|
|
11460
11464
|
unMount();
|
|
@@ -11467,10 +11471,10 @@ function usePopup(className, rootElement) {
|
|
|
11467
11471
|
if (cacheClass.split(" ").length) {
|
|
11468
11472
|
firstClassName = cacheClass.split(" ")[0];
|
|
11469
11473
|
}
|
|
11470
|
-
const el =
|
|
11474
|
+
const el = root.querySelector(`.${firstClassName}`);
|
|
11471
11475
|
if (el) {
|
|
11472
11476
|
render(null, el);
|
|
11473
|
-
|
|
11477
|
+
root.removeChild(el);
|
|
11474
11478
|
}
|
|
11475
11479
|
}
|
|
11476
11480
|
function isMounted() {
|
|
@@ -11478,7 +11482,7 @@ function usePopup(className, rootElement) {
|
|
|
11478
11482
|
if (cacheClass.split(" ").length) {
|
|
11479
11483
|
firstClassName = cacheClass.split(" ")[0];
|
|
11480
11484
|
}
|
|
11481
|
-
const el =
|
|
11485
|
+
const el = root.querySelector(`.${firstClassName}`);
|
|
11482
11486
|
return Boolean(el);
|
|
11483
11487
|
}
|
|
11484
11488
|
function closeModal() {
|
|
@@ -12086,8 +12090,8 @@ if (isBrowser) {
|
|
|
12086
12090
|
return Object.keys(data).length;
|
|
12087
12091
|
},
|
|
12088
12092
|
key(index2) {
|
|
12089
|
-
const
|
|
12090
|
-
return index2 <
|
|
12093
|
+
const keys = Object.keys(data);
|
|
12094
|
+
return index2 < keys.length ? keys[index2] : null;
|
|
12091
12095
|
}
|
|
12092
12096
|
};
|
|
12093
12097
|
}
|
|
@@ -12179,7 +12183,7 @@ function requireCore() {
|
|
|
12179
12183
|
if (hasRequiredCore) return core.exports;
|
|
12180
12184
|
hasRequiredCore = 1;
|
|
12181
12185
|
(function(module, exports) {
|
|
12182
|
-
(function(
|
|
12186
|
+
(function(root, factory) {
|
|
12183
12187
|
{
|
|
12184
12188
|
module.exports = factory();
|
|
12185
12189
|
}
|
|
@@ -12786,7 +12790,7 @@ function requireEncBase64() {
|
|
|
12786
12790
|
if (hasRequiredEncBase64) return encBase64.exports;
|
|
12787
12791
|
hasRequiredEncBase64 = 1;
|
|
12788
12792
|
(function(module, exports) {
|
|
12789
|
-
(function(
|
|
12793
|
+
(function(root, factory) {
|
|
12790
12794
|
{
|
|
12791
12795
|
module.exports = factory(requireCore());
|
|
12792
12796
|
}
|
|
@@ -12893,7 +12897,7 @@ function requireMd5() {
|
|
|
12893
12897
|
if (hasRequiredMd5) return md5.exports;
|
|
12894
12898
|
hasRequiredMd5 = 1;
|
|
12895
12899
|
(function(module, exports) {
|
|
12896
|
-
(function(
|
|
12900
|
+
(function(root, factory) {
|
|
12897
12901
|
{
|
|
12898
12902
|
module.exports = factory(requireCore());
|
|
12899
12903
|
}
|
|
@@ -13072,7 +13076,7 @@ function requireSha1() {
|
|
|
13072
13076
|
if (hasRequiredSha1) return sha1.exports;
|
|
13073
13077
|
hasRequiredSha1 = 1;
|
|
13074
13078
|
(function(module, exports) {
|
|
13075
|
-
(function(
|
|
13079
|
+
(function(root, factory) {
|
|
13076
13080
|
{
|
|
13077
13081
|
module.exports = factory(requireCore());
|
|
13078
13082
|
}
|
|
@@ -13162,7 +13166,7 @@ function requireHmac() {
|
|
|
13162
13166
|
if (hasRequiredHmac) return hmac.exports;
|
|
13163
13167
|
hasRequiredHmac = 1;
|
|
13164
13168
|
(function(module, exports) {
|
|
13165
|
-
(function(
|
|
13169
|
+
(function(root, factory) {
|
|
13166
13170
|
{
|
|
13167
13171
|
module.exports = factory(requireCore());
|
|
13168
13172
|
}
|
|
@@ -13267,7 +13271,7 @@ function requireEvpkdf() {
|
|
|
13267
13271
|
if (hasRequiredEvpkdf) return evpkdf.exports;
|
|
13268
13272
|
hasRequiredEvpkdf = 1;
|
|
13269
13273
|
(function(module, exports) {
|
|
13270
|
-
(function(
|
|
13274
|
+
(function(root, factory, undef) {
|
|
13271
13275
|
{
|
|
13272
13276
|
module.exports = factory(requireCore(), requireSha1(), requireHmac());
|
|
13273
13277
|
}
|
|
@@ -13357,7 +13361,7 @@ function requireCipherCore() {
|
|
|
13357
13361
|
if (hasRequiredCipherCore) return cipherCore.exports;
|
|
13358
13362
|
hasRequiredCipherCore = 1;
|
|
13359
13363
|
(function(module, exports) {
|
|
13360
|
-
(function(
|
|
13364
|
+
(function(root, factory, undef) {
|
|
13361
13365
|
{
|
|
13362
13366
|
module.exports = factory(requireCore(), requireEvpkdf());
|
|
13363
13367
|
}
|
|
@@ -13995,7 +13999,7 @@ function requireCipherCore() {
|
|
|
13995
13999
|
return cipherCore.exports;
|
|
13996
14000
|
}
|
|
13997
14001
|
(function(module, exports) {
|
|
13998
|
-
(function(
|
|
14002
|
+
(function(root, factory, undef) {
|
|
13999
14003
|
{
|
|
14000
14004
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
14001
14005
|
}
|
|
@@ -14144,7 +14148,7 @@ var aesExports = aes.exports;
|
|
|
14144
14148
|
const AES = /* @__PURE__ */ getDefaultExportFromCjs(aesExports);
|
|
14145
14149
|
var padPkcs7 = { exports: {} };
|
|
14146
14150
|
(function(module, exports) {
|
|
14147
|
-
(function(
|
|
14151
|
+
(function(root, factory, undef) {
|
|
14148
14152
|
{
|
|
14149
14153
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
14150
14154
|
}
|
|
@@ -14156,7 +14160,7 @@ var padPkcs7Exports = padPkcs7.exports;
|
|
|
14156
14160
|
const Pkcs7 = /* @__PURE__ */ getDefaultExportFromCjs(padPkcs7Exports);
|
|
14157
14161
|
var encUtf8 = { exports: {} };
|
|
14158
14162
|
(function(module, exports) {
|
|
14159
|
-
(function(
|
|
14163
|
+
(function(root, factory) {
|
|
14160
14164
|
{
|
|
14161
14165
|
module.exports = factory(requireCore());
|
|
14162
14166
|
}
|
|
@@ -14911,982 +14915,6 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
14911
14915
|
};
|
|
14912
14916
|
}
|
|
14913
14917
|
});
|
|
14914
|
-
function listCacheClear$1() {
|
|
14915
|
-
this.__data__ = [];
|
|
14916
|
-
this.size = 0;
|
|
14917
|
-
}
|
|
14918
|
-
var _listCacheClear = listCacheClear$1;
|
|
14919
|
-
function eq$2(value, other) {
|
|
14920
|
-
return value === other || value !== value && other !== other;
|
|
14921
|
-
}
|
|
14922
|
-
var eq_1 = eq$2;
|
|
14923
|
-
var eq$1 = eq_1;
|
|
14924
|
-
function assocIndexOf$4(array, key) {
|
|
14925
|
-
var length = array.length;
|
|
14926
|
-
while (length--) {
|
|
14927
|
-
if (eq$1(array[length][0], key)) {
|
|
14928
|
-
return length;
|
|
14929
|
-
}
|
|
14930
|
-
}
|
|
14931
|
-
return -1;
|
|
14932
|
-
}
|
|
14933
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
14934
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
14935
|
-
var arrayProto = Array.prototype;
|
|
14936
|
-
var splice = arrayProto.splice;
|
|
14937
|
-
function listCacheDelete$1(key) {
|
|
14938
|
-
var data = this.__data__, index2 = assocIndexOf$3(data, key);
|
|
14939
|
-
if (index2 < 0) {
|
|
14940
|
-
return false;
|
|
14941
|
-
}
|
|
14942
|
-
var lastIndex = data.length - 1;
|
|
14943
|
-
if (index2 == lastIndex) {
|
|
14944
|
-
data.pop();
|
|
14945
|
-
} else {
|
|
14946
|
-
splice.call(data, index2, 1);
|
|
14947
|
-
}
|
|
14948
|
-
--this.size;
|
|
14949
|
-
return true;
|
|
14950
|
-
}
|
|
14951
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
14952
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
14953
|
-
function listCacheGet$1(key) {
|
|
14954
|
-
var data = this.__data__, index2 = assocIndexOf$2(data, key);
|
|
14955
|
-
return index2 < 0 ? void 0 : data[index2][1];
|
|
14956
|
-
}
|
|
14957
|
-
var _listCacheGet = listCacheGet$1;
|
|
14958
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
14959
|
-
function listCacheHas$1(key) {
|
|
14960
|
-
return assocIndexOf$1(this.__data__, key) > -1;
|
|
14961
|
-
}
|
|
14962
|
-
var _listCacheHas = listCacheHas$1;
|
|
14963
|
-
var assocIndexOf = _assocIndexOf;
|
|
14964
|
-
function listCacheSet$1(key, value) {
|
|
14965
|
-
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
14966
|
-
if (index2 < 0) {
|
|
14967
|
-
++this.size;
|
|
14968
|
-
data.push([key, value]);
|
|
14969
|
-
} else {
|
|
14970
|
-
data[index2][1] = value;
|
|
14971
|
-
}
|
|
14972
|
-
return this;
|
|
14973
|
-
}
|
|
14974
|
-
var _listCacheSet = listCacheSet$1;
|
|
14975
|
-
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
14976
|
-
function ListCache$4(entries2) {
|
|
14977
|
-
var index2 = -1, length = entries2 == null ? 0 : entries2.length;
|
|
14978
|
-
this.clear();
|
|
14979
|
-
while (++index2 < length) {
|
|
14980
|
-
var entry = entries2[index2];
|
|
14981
|
-
this.set(entry[0], entry[1]);
|
|
14982
|
-
}
|
|
14983
|
-
}
|
|
14984
|
-
ListCache$4.prototype.clear = listCacheClear;
|
|
14985
|
-
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
14986
|
-
ListCache$4.prototype.get = listCacheGet;
|
|
14987
|
-
ListCache$4.prototype.has = listCacheHas;
|
|
14988
|
-
ListCache$4.prototype.set = listCacheSet;
|
|
14989
|
-
var _ListCache = ListCache$4;
|
|
14990
|
-
var ListCache$3 = _ListCache;
|
|
14991
|
-
function stackClear$1() {
|
|
14992
|
-
this.__data__ = new ListCache$3();
|
|
14993
|
-
this.size = 0;
|
|
14994
|
-
}
|
|
14995
|
-
var _stackClear = stackClear$1;
|
|
14996
|
-
function stackDelete$1(key) {
|
|
14997
|
-
var data = this.__data__, result2 = data["delete"](key);
|
|
14998
|
-
this.size = data.size;
|
|
14999
|
-
return result2;
|
|
15000
|
-
}
|
|
15001
|
-
var _stackDelete = stackDelete$1;
|
|
15002
|
-
function stackGet$1(key) {
|
|
15003
|
-
return this.__data__.get(key);
|
|
15004
|
-
}
|
|
15005
|
-
var _stackGet = stackGet$1;
|
|
15006
|
-
function stackHas$1(key) {
|
|
15007
|
-
return this.__data__.has(key);
|
|
15008
|
-
}
|
|
15009
|
-
var _stackHas = stackHas$1;
|
|
15010
|
-
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
15011
|
-
var _freeGlobal = freeGlobal$1;
|
|
15012
|
-
var freeGlobal = _freeGlobal;
|
|
15013
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
15014
|
-
var root$9 = freeGlobal || freeSelf || Function("return this")();
|
|
15015
|
-
var _root = root$9;
|
|
15016
|
-
var root$8 = _root;
|
|
15017
|
-
var Symbol$4 = root$8.Symbol;
|
|
15018
|
-
var _Symbol = Symbol$4;
|
|
15019
|
-
var Symbol$3 = _Symbol;
|
|
15020
|
-
var objectProto$c = Object.prototype;
|
|
15021
|
-
var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
|
|
15022
|
-
var nativeObjectToString$1 = objectProto$c.toString;
|
|
15023
|
-
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
15024
|
-
function getRawTag$1(value) {
|
|
15025
|
-
var isOwn = hasOwnProperty$9.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
15026
|
-
try {
|
|
15027
|
-
value[symToStringTag$1] = void 0;
|
|
15028
|
-
var unmasked = true;
|
|
15029
|
-
} catch (e) {
|
|
15030
|
-
}
|
|
15031
|
-
var result2 = nativeObjectToString$1.call(value);
|
|
15032
|
-
if (unmasked) {
|
|
15033
|
-
if (isOwn) {
|
|
15034
|
-
value[symToStringTag$1] = tag;
|
|
15035
|
-
} else {
|
|
15036
|
-
delete value[symToStringTag$1];
|
|
15037
|
-
}
|
|
15038
|
-
}
|
|
15039
|
-
return result2;
|
|
15040
|
-
}
|
|
15041
|
-
var _getRawTag = getRawTag$1;
|
|
15042
|
-
var objectProto$b = Object.prototype;
|
|
15043
|
-
var nativeObjectToString = objectProto$b.toString;
|
|
15044
|
-
function objectToString$1(value) {
|
|
15045
|
-
return nativeObjectToString.call(value);
|
|
15046
|
-
}
|
|
15047
|
-
var _objectToString = objectToString$1;
|
|
15048
|
-
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
15049
|
-
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
15050
|
-
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
15051
|
-
function baseGetTag$6(value) {
|
|
15052
|
-
if (value == null) {
|
|
15053
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
15054
|
-
}
|
|
15055
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
15056
|
-
}
|
|
15057
|
-
var _baseGetTag = baseGetTag$6;
|
|
15058
|
-
function isObject$8(value) {
|
|
15059
|
-
var type = typeof value;
|
|
15060
|
-
return value != null && (type == "object" || type == "function");
|
|
15061
|
-
}
|
|
15062
|
-
var isObject_1 = isObject$8;
|
|
15063
|
-
var baseGetTag$5 = _baseGetTag, isObject$7 = isObject_1;
|
|
15064
|
-
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
15065
|
-
function isFunction$2(value) {
|
|
15066
|
-
if (!isObject$7(value)) {
|
|
15067
|
-
return false;
|
|
15068
|
-
}
|
|
15069
|
-
var tag = baseGetTag$5(value);
|
|
15070
|
-
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
15071
|
-
}
|
|
15072
|
-
var isFunction_1 = isFunction$2;
|
|
15073
|
-
var root$7 = _root;
|
|
15074
|
-
var coreJsData$1 = root$7["__core-js_shared__"];
|
|
15075
|
-
var _coreJsData = coreJsData$1;
|
|
15076
|
-
var coreJsData = _coreJsData;
|
|
15077
|
-
var maskSrcKey = function() {
|
|
15078
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
15079
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
15080
|
-
}();
|
|
15081
|
-
function isMasked$1(func) {
|
|
15082
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
15083
|
-
}
|
|
15084
|
-
var _isMasked = isMasked$1;
|
|
15085
|
-
var funcProto$1 = Function.prototype;
|
|
15086
|
-
var funcToString$1 = funcProto$1.toString;
|
|
15087
|
-
function toSource$2(func) {
|
|
15088
|
-
if (func != null) {
|
|
15089
|
-
try {
|
|
15090
|
-
return funcToString$1.call(func);
|
|
15091
|
-
} catch (e) {
|
|
15092
|
-
}
|
|
15093
|
-
try {
|
|
15094
|
-
return func + "";
|
|
15095
|
-
} catch (e) {
|
|
15096
|
-
}
|
|
15097
|
-
}
|
|
15098
|
-
return "";
|
|
15099
|
-
}
|
|
15100
|
-
var _toSource = toSource$2;
|
|
15101
|
-
var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$6 = isObject_1, toSource$1 = _toSource;
|
|
15102
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
15103
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
15104
|
-
var funcProto = Function.prototype, objectProto$a = Object.prototype;
|
|
15105
|
-
var funcToString = funcProto.toString;
|
|
15106
|
-
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
15107
|
-
var reIsNative = RegExp(
|
|
15108
|
-
"^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
15109
|
-
);
|
|
15110
|
-
function baseIsNative$1(value) {
|
|
15111
|
-
if (!isObject$6(value) || isMasked(value)) {
|
|
15112
|
-
return false;
|
|
15113
|
-
}
|
|
15114
|
-
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
15115
|
-
return pattern.test(toSource$1(value));
|
|
15116
|
-
}
|
|
15117
|
-
var _baseIsNative = baseIsNative$1;
|
|
15118
|
-
function getValue$1(object, key) {
|
|
15119
|
-
return object == null ? void 0 : object[key];
|
|
15120
|
-
}
|
|
15121
|
-
var _getValue = getValue$1;
|
|
15122
|
-
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
15123
|
-
function getNative$7(object, key) {
|
|
15124
|
-
var value = getValue(object, key);
|
|
15125
|
-
return baseIsNative(value) ? value : void 0;
|
|
15126
|
-
}
|
|
15127
|
-
var _getNative = getNative$7;
|
|
15128
|
-
var getNative$6 = _getNative, root$6 = _root;
|
|
15129
|
-
var Map$4 = getNative$6(root$6, "Map");
|
|
15130
|
-
var _Map = Map$4;
|
|
15131
|
-
var getNative$5 = _getNative;
|
|
15132
|
-
var nativeCreate$4 = getNative$5(Object, "create");
|
|
15133
|
-
var _nativeCreate = nativeCreate$4;
|
|
15134
|
-
var nativeCreate$3 = _nativeCreate;
|
|
15135
|
-
function hashClear$1() {
|
|
15136
|
-
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
15137
|
-
this.size = 0;
|
|
15138
|
-
}
|
|
15139
|
-
var _hashClear = hashClear$1;
|
|
15140
|
-
function hashDelete$1(key) {
|
|
15141
|
-
var result2 = this.has(key) && delete this.__data__[key];
|
|
15142
|
-
this.size -= result2 ? 1 : 0;
|
|
15143
|
-
return result2;
|
|
15144
|
-
}
|
|
15145
|
-
var _hashDelete = hashDelete$1;
|
|
15146
|
-
var nativeCreate$2 = _nativeCreate;
|
|
15147
|
-
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
15148
|
-
var objectProto$9 = Object.prototype;
|
|
15149
|
-
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
15150
|
-
function hashGet$1(key) {
|
|
15151
|
-
var data = this.__data__;
|
|
15152
|
-
if (nativeCreate$2) {
|
|
15153
|
-
var result2 = data[key];
|
|
15154
|
-
return result2 === HASH_UNDEFINED$1 ? void 0 : result2;
|
|
15155
|
-
}
|
|
15156
|
-
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
15157
|
-
}
|
|
15158
|
-
var _hashGet = hashGet$1;
|
|
15159
|
-
var nativeCreate$1 = _nativeCreate;
|
|
15160
|
-
var objectProto$8 = Object.prototype;
|
|
15161
|
-
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
15162
|
-
function hashHas$1(key) {
|
|
15163
|
-
var data = this.__data__;
|
|
15164
|
-
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
15165
|
-
}
|
|
15166
|
-
var _hashHas = hashHas$1;
|
|
15167
|
-
var nativeCreate = _nativeCreate;
|
|
15168
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
15169
|
-
function hashSet$1(key, value) {
|
|
15170
|
-
var data = this.__data__;
|
|
15171
|
-
this.size += this.has(key) ? 0 : 1;
|
|
15172
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
15173
|
-
return this;
|
|
15174
|
-
}
|
|
15175
|
-
var _hashSet = hashSet$1;
|
|
15176
|
-
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
15177
|
-
function Hash$1(entries2) {
|
|
15178
|
-
var index2 = -1, length = entries2 == null ? 0 : entries2.length;
|
|
15179
|
-
this.clear();
|
|
15180
|
-
while (++index2 < length) {
|
|
15181
|
-
var entry = entries2[index2];
|
|
15182
|
-
this.set(entry[0], entry[1]);
|
|
15183
|
-
}
|
|
15184
|
-
}
|
|
15185
|
-
Hash$1.prototype.clear = hashClear;
|
|
15186
|
-
Hash$1.prototype["delete"] = hashDelete;
|
|
15187
|
-
Hash$1.prototype.get = hashGet;
|
|
15188
|
-
Hash$1.prototype.has = hashHas;
|
|
15189
|
-
Hash$1.prototype.set = hashSet;
|
|
15190
|
-
var _Hash = Hash$1;
|
|
15191
|
-
var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
|
|
15192
|
-
function mapCacheClear$1() {
|
|
15193
|
-
this.size = 0;
|
|
15194
|
-
this.__data__ = {
|
|
15195
|
-
"hash": new Hash(),
|
|
15196
|
-
"map": new (Map$3 || ListCache$2)(),
|
|
15197
|
-
"string": new Hash()
|
|
15198
|
-
};
|
|
15199
|
-
}
|
|
15200
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
15201
|
-
function isKeyable$1(value) {
|
|
15202
|
-
var type = typeof value;
|
|
15203
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
15204
|
-
}
|
|
15205
|
-
var _isKeyable = isKeyable$1;
|
|
15206
|
-
var isKeyable = _isKeyable;
|
|
15207
|
-
function getMapData$4(map, key) {
|
|
15208
|
-
var data = map.__data__;
|
|
15209
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
15210
|
-
}
|
|
15211
|
-
var _getMapData = getMapData$4;
|
|
15212
|
-
var getMapData$3 = _getMapData;
|
|
15213
|
-
function mapCacheDelete$1(key) {
|
|
15214
|
-
var result2 = getMapData$3(this, key)["delete"](key);
|
|
15215
|
-
this.size -= result2 ? 1 : 0;
|
|
15216
|
-
return result2;
|
|
15217
|
-
}
|
|
15218
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
15219
|
-
var getMapData$2 = _getMapData;
|
|
15220
|
-
function mapCacheGet$1(key) {
|
|
15221
|
-
return getMapData$2(this, key).get(key);
|
|
15222
|
-
}
|
|
15223
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
15224
|
-
var getMapData$1 = _getMapData;
|
|
15225
|
-
function mapCacheHas$1(key) {
|
|
15226
|
-
return getMapData$1(this, key).has(key);
|
|
15227
|
-
}
|
|
15228
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
15229
|
-
var getMapData = _getMapData;
|
|
15230
|
-
function mapCacheSet$1(key, value) {
|
|
15231
|
-
var data = getMapData(this, key), size = data.size;
|
|
15232
|
-
data.set(key, value);
|
|
15233
|
-
this.size += data.size == size ? 0 : 1;
|
|
15234
|
-
return this;
|
|
15235
|
-
}
|
|
15236
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
15237
|
-
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
15238
|
-
function MapCache$1(entries2) {
|
|
15239
|
-
var index2 = -1, length = entries2 == null ? 0 : entries2.length;
|
|
15240
|
-
this.clear();
|
|
15241
|
-
while (++index2 < length) {
|
|
15242
|
-
var entry = entries2[index2];
|
|
15243
|
-
this.set(entry[0], entry[1]);
|
|
15244
|
-
}
|
|
15245
|
-
}
|
|
15246
|
-
MapCache$1.prototype.clear = mapCacheClear;
|
|
15247
|
-
MapCache$1.prototype["delete"] = mapCacheDelete;
|
|
15248
|
-
MapCache$1.prototype.get = mapCacheGet;
|
|
15249
|
-
MapCache$1.prototype.has = mapCacheHas;
|
|
15250
|
-
MapCache$1.prototype.set = mapCacheSet;
|
|
15251
|
-
var _MapCache = MapCache$1;
|
|
15252
|
-
var ListCache$1 = _ListCache, Map$2 = _Map, MapCache = _MapCache;
|
|
15253
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
15254
|
-
function stackSet$1(key, value) {
|
|
15255
|
-
var data = this.__data__;
|
|
15256
|
-
if (data instanceof ListCache$1) {
|
|
15257
|
-
var pairs = data.__data__;
|
|
15258
|
-
if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
15259
|
-
pairs.push([key, value]);
|
|
15260
|
-
this.size = ++data.size;
|
|
15261
|
-
return this;
|
|
15262
|
-
}
|
|
15263
|
-
data = this.__data__ = new MapCache(pairs);
|
|
15264
|
-
}
|
|
15265
|
-
data.set(key, value);
|
|
15266
|
-
this.size = data.size;
|
|
15267
|
-
return this;
|
|
15268
|
-
}
|
|
15269
|
-
var _stackSet = stackSet$1;
|
|
15270
|
-
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
15271
|
-
function Stack$1(entries2) {
|
|
15272
|
-
var data = this.__data__ = new ListCache(entries2);
|
|
15273
|
-
this.size = data.size;
|
|
15274
|
-
}
|
|
15275
|
-
Stack$1.prototype.clear = stackClear;
|
|
15276
|
-
Stack$1.prototype["delete"] = stackDelete;
|
|
15277
|
-
Stack$1.prototype.get = stackGet;
|
|
15278
|
-
Stack$1.prototype.has = stackHas;
|
|
15279
|
-
Stack$1.prototype.set = stackSet;
|
|
15280
|
-
var _Stack = Stack$1;
|
|
15281
|
-
function arrayEach$1(array, iteratee) {
|
|
15282
|
-
var index2 = -1, length = array == null ? 0 : array.length;
|
|
15283
|
-
while (++index2 < length) {
|
|
15284
|
-
if (iteratee(array[index2], index2, array) === false) {
|
|
15285
|
-
break;
|
|
15286
|
-
}
|
|
15287
|
-
}
|
|
15288
|
-
return array;
|
|
15289
|
-
}
|
|
15290
|
-
var _arrayEach = arrayEach$1;
|
|
15291
|
-
var getNative$4 = _getNative;
|
|
15292
|
-
var defineProperty$1 = function() {
|
|
15293
|
-
try {
|
|
15294
|
-
var func = getNative$4(Object, "defineProperty");
|
|
15295
|
-
func({}, "", {});
|
|
15296
|
-
return func;
|
|
15297
|
-
} catch (e) {
|
|
15298
|
-
}
|
|
15299
|
-
}();
|
|
15300
|
-
var _defineProperty$7 = defineProperty$1;
|
|
15301
|
-
var defineProperty = _defineProperty$7;
|
|
15302
|
-
function baseAssignValue$2(object, key, value) {
|
|
15303
|
-
if (key == "__proto__" && defineProperty) {
|
|
15304
|
-
defineProperty(object, key, {
|
|
15305
|
-
"configurable": true,
|
|
15306
|
-
"enumerable": true,
|
|
15307
|
-
"value": value,
|
|
15308
|
-
"writable": true
|
|
15309
|
-
});
|
|
15310
|
-
} else {
|
|
15311
|
-
object[key] = value;
|
|
15312
|
-
}
|
|
15313
|
-
}
|
|
15314
|
-
var _baseAssignValue = baseAssignValue$2;
|
|
15315
|
-
var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
|
15316
|
-
var objectProto$7 = Object.prototype;
|
|
15317
|
-
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
15318
|
-
function assignValue$2(object, key, value) {
|
|
15319
|
-
var objValue = object[key];
|
|
15320
|
-
if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
15321
|
-
baseAssignValue$1(object, key, value);
|
|
15322
|
-
}
|
|
15323
|
-
}
|
|
15324
|
-
var _assignValue = assignValue$2;
|
|
15325
|
-
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
15326
|
-
function copyObject$4(source, props, object, customizer) {
|
|
15327
|
-
var isNew = !object;
|
|
15328
|
-
object || (object = {});
|
|
15329
|
-
var index2 = -1, length = props.length;
|
|
15330
|
-
while (++index2 < length) {
|
|
15331
|
-
var key = props[index2];
|
|
15332
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
15333
|
-
if (newValue === void 0) {
|
|
15334
|
-
newValue = source[key];
|
|
15335
|
-
}
|
|
15336
|
-
if (isNew) {
|
|
15337
|
-
baseAssignValue(object, key, newValue);
|
|
15338
|
-
} else {
|
|
15339
|
-
assignValue$1(object, key, newValue);
|
|
15340
|
-
}
|
|
15341
|
-
}
|
|
15342
|
-
return object;
|
|
15343
|
-
}
|
|
15344
|
-
var _copyObject = copyObject$4;
|
|
15345
|
-
function baseTimes$1(n, iteratee) {
|
|
15346
|
-
var index2 = -1, result2 = Array(n);
|
|
15347
|
-
while (++index2 < n) {
|
|
15348
|
-
result2[index2] = iteratee(index2);
|
|
15349
|
-
}
|
|
15350
|
-
return result2;
|
|
15351
|
-
}
|
|
15352
|
-
var _baseTimes = baseTimes$1;
|
|
15353
|
-
function isObjectLike$7(value) {
|
|
15354
|
-
return value != null && typeof value == "object";
|
|
15355
|
-
}
|
|
15356
|
-
var isObjectLike_1 = isObjectLike$7;
|
|
15357
|
-
var baseGetTag$4 = _baseGetTag, isObjectLike$6 = isObjectLike_1;
|
|
15358
|
-
var argsTag$2 = "[object Arguments]";
|
|
15359
|
-
function baseIsArguments$1(value) {
|
|
15360
|
-
return isObjectLike$6(value) && baseGetTag$4(value) == argsTag$2;
|
|
15361
|
-
}
|
|
15362
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
15363
|
-
var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
15364
|
-
var objectProto$6 = Object.prototype;
|
|
15365
|
-
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
15366
|
-
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
15367
|
-
var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
|
|
15368
|
-
return arguments;
|
|
15369
|
-
}()) ? baseIsArguments : function(value) {
|
|
15370
|
-
return isObjectLike$5(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
15371
|
-
};
|
|
15372
|
-
var isArguments_1 = isArguments$1;
|
|
15373
|
-
var isArray$3 = Array.isArray;
|
|
15374
|
-
var isArray_1 = isArray$3;
|
|
15375
|
-
var isBuffer$2 = { exports: {} };
|
|
15376
|
-
function stubFalse() {
|
|
15377
|
-
return false;
|
|
15378
|
-
}
|
|
15379
|
-
var stubFalse_1 = stubFalse;
|
|
15380
|
-
isBuffer$2.exports;
|
|
15381
|
-
(function(module, exports) {
|
|
15382
|
-
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
15383
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
15384
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
15385
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
15386
|
-
var Buffer2 = moduleExports ? root2.Buffer : void 0;
|
|
15387
|
-
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
15388
|
-
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
15389
|
-
module.exports = isBuffer2;
|
|
15390
|
-
})(isBuffer$2, isBuffer$2.exports);
|
|
15391
|
-
var isBufferExports = isBuffer$2.exports;
|
|
15392
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
15393
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
15394
|
-
function isIndex$1(value, length) {
|
|
15395
|
-
var type = typeof value;
|
|
15396
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
15397
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
15398
|
-
}
|
|
15399
|
-
var _isIndex = isIndex$1;
|
|
15400
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
15401
|
-
function isLength$2(value) {
|
|
15402
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
15403
|
-
}
|
|
15404
|
-
var isLength_1 = isLength$2;
|
|
15405
|
-
var baseGetTag$3 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$4 = isObjectLike_1;
|
|
15406
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
15407
|
-
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
15408
|
-
var typedArrayTags = {};
|
|
15409
|
-
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
15410
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
15411
|
-
function baseIsTypedArray$1(value) {
|
|
15412
|
-
return isObjectLike$4(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$3(value)];
|
|
15413
|
-
}
|
|
15414
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
15415
|
-
function baseUnary$4(func) {
|
|
15416
|
-
return function(value) {
|
|
15417
|
-
return func(value);
|
|
15418
|
-
};
|
|
15419
|
-
}
|
|
15420
|
-
var _baseUnary = baseUnary$4;
|
|
15421
|
-
var _nodeUtil = { exports: {} };
|
|
15422
|
-
_nodeUtil.exports;
|
|
15423
|
-
(function(module, exports) {
|
|
15424
|
-
var freeGlobal2 = _freeGlobal;
|
|
15425
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
15426
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
15427
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
15428
|
-
var freeProcess = moduleExports && freeGlobal2.process;
|
|
15429
|
-
var nodeUtil2 = function() {
|
|
15430
|
-
try {
|
|
15431
|
-
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
15432
|
-
if (types) {
|
|
15433
|
-
return types;
|
|
15434
|
-
}
|
|
15435
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
15436
|
-
} catch (e) {
|
|
15437
|
-
}
|
|
15438
|
-
}();
|
|
15439
|
-
module.exports = nodeUtil2;
|
|
15440
|
-
})(_nodeUtil, _nodeUtil.exports);
|
|
15441
|
-
var _nodeUtilExports = _nodeUtil.exports;
|
|
15442
|
-
var baseIsTypedArray = _baseIsTypedArray, baseUnary$3 = _baseUnary, nodeUtil$3 = _nodeUtilExports;
|
|
15443
|
-
var nodeIsTypedArray = nodeUtil$3 && nodeUtil$3.isTypedArray;
|
|
15444
|
-
var isTypedArray$1 = nodeIsTypedArray ? baseUnary$3(nodeIsTypedArray) : baseIsTypedArray;
|
|
15445
|
-
var isTypedArray_1 = isTypedArray$1;
|
|
15446
|
-
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$2 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
|
|
15447
|
-
var objectProto$5 = Object.prototype;
|
|
15448
|
-
var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
|
|
15449
|
-
function arrayLikeKeys$2(value, inherited) {
|
|
15450
|
-
var isArr = isArray$2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String) : [], length = result2.length;
|
|
15451
|
-
for (var key in value) {
|
|
15452
|
-
if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
15453
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
15454
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
15455
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
15456
|
-
isIndex(key, length)))) {
|
|
15457
|
-
result2.push(key);
|
|
15458
|
-
}
|
|
15459
|
-
}
|
|
15460
|
-
return result2;
|
|
15461
|
-
}
|
|
15462
|
-
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
15463
|
-
var objectProto$4 = Object.prototype;
|
|
15464
|
-
function isPrototype$3(value) {
|
|
15465
|
-
var Ctor = value && value.constructor, proto2 = typeof Ctor == "function" && Ctor.prototype || objectProto$4;
|
|
15466
|
-
return value === proto2;
|
|
15467
|
-
}
|
|
15468
|
-
var _isPrototype = isPrototype$3;
|
|
15469
|
-
function overArg$2(func, transform2) {
|
|
15470
|
-
return function(arg) {
|
|
15471
|
-
return func(transform2(arg));
|
|
15472
|
-
};
|
|
15473
|
-
}
|
|
15474
|
-
var _overArg = overArg$2;
|
|
15475
|
-
var overArg$1 = _overArg;
|
|
15476
|
-
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
15477
|
-
var _nativeKeys = nativeKeys$1;
|
|
15478
|
-
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
15479
|
-
var objectProto$3 = Object.prototype;
|
|
15480
|
-
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
15481
|
-
function baseKeys$1(object) {
|
|
15482
|
-
if (!isPrototype$2(object)) {
|
|
15483
|
-
return nativeKeys(object);
|
|
15484
|
-
}
|
|
15485
|
-
var result2 = [];
|
|
15486
|
-
for (var key in Object(object)) {
|
|
15487
|
-
if (hasOwnProperty$2.call(object, key) && key != "constructor") {
|
|
15488
|
-
result2.push(key);
|
|
15489
|
-
}
|
|
15490
|
-
}
|
|
15491
|
-
return result2;
|
|
15492
|
-
}
|
|
15493
|
-
var _baseKeys = baseKeys$1;
|
|
15494
|
-
var isFunction = isFunction_1, isLength = isLength_1;
|
|
15495
|
-
function isArrayLike$2(value) {
|
|
15496
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
15497
|
-
}
|
|
15498
|
-
var isArrayLike_1 = isArrayLike$2;
|
|
15499
|
-
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
|
|
15500
|
-
function keys$3(object) {
|
|
15501
|
-
return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
15502
|
-
}
|
|
15503
|
-
var keys_1 = keys$3;
|
|
15504
|
-
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
15505
|
-
function baseAssign$1(object, source) {
|
|
15506
|
-
return object && copyObject$3(source, keys$2(source), object);
|
|
15507
|
-
}
|
|
15508
|
-
var _baseAssign = baseAssign$1;
|
|
15509
|
-
function nativeKeysIn$1(object) {
|
|
15510
|
-
var result2 = [];
|
|
15511
|
-
if (object != null) {
|
|
15512
|
-
for (var key in Object(object)) {
|
|
15513
|
-
result2.push(key);
|
|
15514
|
-
}
|
|
15515
|
-
}
|
|
15516
|
-
return result2;
|
|
15517
|
-
}
|
|
15518
|
-
var _nativeKeysIn = nativeKeysIn$1;
|
|
15519
|
-
var isObject$5 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
15520
|
-
var objectProto$2 = Object.prototype;
|
|
15521
|
-
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
15522
|
-
function baseKeysIn$1(object) {
|
|
15523
|
-
if (!isObject$5(object)) {
|
|
15524
|
-
return nativeKeysIn(object);
|
|
15525
|
-
}
|
|
15526
|
-
var isProto = isPrototype$1(object), result2 = [];
|
|
15527
|
-
for (var key in object) {
|
|
15528
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) {
|
|
15529
|
-
result2.push(key);
|
|
15530
|
-
}
|
|
15531
|
-
}
|
|
15532
|
-
return result2;
|
|
15533
|
-
}
|
|
15534
|
-
var _baseKeysIn = baseKeysIn$1;
|
|
15535
|
-
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
15536
|
-
function keysIn$3(object) {
|
|
15537
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
15538
|
-
}
|
|
15539
|
-
var keysIn_1 = keysIn$3;
|
|
15540
|
-
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
15541
|
-
function baseAssignIn$1(object, source) {
|
|
15542
|
-
return object && copyObject$2(source, keysIn$2(source), object);
|
|
15543
|
-
}
|
|
15544
|
-
var _baseAssignIn = baseAssignIn$1;
|
|
15545
|
-
var _cloneBuffer = { exports: {} };
|
|
15546
|
-
_cloneBuffer.exports;
|
|
15547
|
-
(function(module, exports) {
|
|
15548
|
-
var root2 = _root;
|
|
15549
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
15550
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
15551
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
15552
|
-
var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
15553
|
-
function cloneBuffer2(buffer, isDeep) {
|
|
15554
|
-
if (isDeep) {
|
|
15555
|
-
return buffer.slice();
|
|
15556
|
-
}
|
|
15557
|
-
var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
15558
|
-
buffer.copy(result2);
|
|
15559
|
-
return result2;
|
|
15560
|
-
}
|
|
15561
|
-
module.exports = cloneBuffer2;
|
|
15562
|
-
})(_cloneBuffer, _cloneBuffer.exports);
|
|
15563
|
-
var _cloneBufferExports = _cloneBuffer.exports;
|
|
15564
|
-
function copyArray$1(source, array) {
|
|
15565
|
-
var index2 = -1, length = source.length;
|
|
15566
|
-
array || (array = Array(length));
|
|
15567
|
-
while (++index2 < length) {
|
|
15568
|
-
array[index2] = source[index2];
|
|
15569
|
-
}
|
|
15570
|
-
return array;
|
|
15571
|
-
}
|
|
15572
|
-
var _copyArray = copyArray$1;
|
|
15573
|
-
function arrayFilter$1(array, predicate) {
|
|
15574
|
-
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
|
15575
|
-
while (++index2 < length) {
|
|
15576
|
-
var value = array[index2];
|
|
15577
|
-
if (predicate(value, index2, array)) {
|
|
15578
|
-
result2[resIndex++] = value;
|
|
15579
|
-
}
|
|
15580
|
-
}
|
|
15581
|
-
return result2;
|
|
15582
|
-
}
|
|
15583
|
-
var _arrayFilter = arrayFilter$1;
|
|
15584
|
-
function stubArray$2() {
|
|
15585
|
-
return [];
|
|
15586
|
-
}
|
|
15587
|
-
var stubArray_1 = stubArray$2;
|
|
15588
|
-
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
15589
|
-
var objectProto$1 = Object.prototype;
|
|
15590
|
-
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
15591
|
-
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
15592
|
-
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
15593
|
-
if (object == null) {
|
|
15594
|
-
return [];
|
|
15595
|
-
}
|
|
15596
|
-
object = Object(object);
|
|
15597
|
-
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
15598
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
15599
|
-
});
|
|
15600
|
-
};
|
|
15601
|
-
var _getSymbols = getSymbols$3;
|
|
15602
|
-
var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
|
|
15603
|
-
function copySymbols$1(source, object) {
|
|
15604
|
-
return copyObject$1(source, getSymbols$2(source), object);
|
|
15605
|
-
}
|
|
15606
|
-
var _copySymbols = copySymbols$1;
|
|
15607
|
-
function arrayPush$2(array, values) {
|
|
15608
|
-
var index2 = -1, length = values.length, offset = array.length;
|
|
15609
|
-
while (++index2 < length) {
|
|
15610
|
-
array[offset + index2] = values[index2];
|
|
15611
|
-
}
|
|
15612
|
-
return array;
|
|
15613
|
-
}
|
|
15614
|
-
var _arrayPush = arrayPush$2;
|
|
15615
|
-
var overArg = _overArg;
|
|
15616
|
-
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
15617
|
-
var _getPrototype = getPrototype$2;
|
|
15618
|
-
var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
|
|
15619
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
15620
|
-
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
15621
|
-
var result2 = [];
|
|
15622
|
-
while (object) {
|
|
15623
|
-
arrayPush$1(result2, getSymbols$1(object));
|
|
15624
|
-
object = getPrototype$1(object);
|
|
15625
|
-
}
|
|
15626
|
-
return result2;
|
|
15627
|
-
};
|
|
15628
|
-
var _getSymbolsIn = getSymbolsIn$2;
|
|
15629
|
-
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
15630
|
-
function copySymbolsIn$1(source, object) {
|
|
15631
|
-
return copyObject(source, getSymbolsIn$1(source), object);
|
|
15632
|
-
}
|
|
15633
|
-
var _copySymbolsIn = copySymbolsIn$1;
|
|
15634
|
-
var arrayPush = _arrayPush, isArray$1 = isArray_1;
|
|
15635
|
-
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
15636
|
-
var result2 = keysFunc(object);
|
|
15637
|
-
return isArray$1(object) ? result2 : arrayPush(result2, symbolsFunc(object));
|
|
15638
|
-
}
|
|
15639
|
-
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
15640
|
-
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
|
|
15641
|
-
function getAllKeys$1(object) {
|
|
15642
|
-
return baseGetAllKeys$1(object, keys$1, getSymbols);
|
|
15643
|
-
}
|
|
15644
|
-
var _getAllKeys = getAllKeys$1;
|
|
15645
|
-
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
15646
|
-
function getAllKeysIn$1(object) {
|
|
15647
|
-
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
15648
|
-
}
|
|
15649
|
-
var _getAllKeysIn = getAllKeysIn$1;
|
|
15650
|
-
var getNative$3 = _getNative, root$5 = _root;
|
|
15651
|
-
var DataView$2 = getNative$3(root$5, "DataView");
|
|
15652
|
-
var _DataView = DataView$2;
|
|
15653
|
-
var getNative$2 = _getNative, root$4 = _root;
|
|
15654
|
-
var Promise$2 = getNative$2(root$4, "Promise");
|
|
15655
|
-
var _Promise = Promise$2;
|
|
15656
|
-
var getNative$1 = _getNative, root$3 = _root;
|
|
15657
|
-
var Set$2 = getNative$1(root$3, "Set");
|
|
15658
|
-
var _Set = Set$2;
|
|
15659
|
-
var getNative = _getNative, root$2 = _root;
|
|
15660
|
-
var WeakMap$1 = getNative(root$2, "WeakMap");
|
|
15661
|
-
var _WeakMap = WeakMap$1;
|
|
15662
|
-
var DataView$1 = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap = _WeakMap, baseGetTag$2 = _baseGetTag, toSource = _toSource;
|
|
15663
|
-
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
15664
|
-
var dataViewTag$2 = "[object DataView]";
|
|
15665
|
-
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap);
|
|
15666
|
-
var getTag$3 = baseGetTag$2;
|
|
15667
|
-
if (DataView$1 && getTag$3(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 || Map$1 && getTag$3(new Map$1()) != mapTag$3 || Promise$1 && getTag$3(Promise$1.resolve()) != promiseTag || Set$1 && getTag$3(new Set$1()) != setTag$3 || WeakMap && getTag$3(new WeakMap()) != weakMapTag$1) {
|
|
15668
|
-
getTag$3 = function(value) {
|
|
15669
|
-
var result2 = baseGetTag$2(value), Ctor = result2 == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
15670
|
-
if (ctorString) {
|
|
15671
|
-
switch (ctorString) {
|
|
15672
|
-
case dataViewCtorString:
|
|
15673
|
-
return dataViewTag$2;
|
|
15674
|
-
case mapCtorString:
|
|
15675
|
-
return mapTag$3;
|
|
15676
|
-
case promiseCtorString:
|
|
15677
|
-
return promiseTag;
|
|
15678
|
-
case setCtorString:
|
|
15679
|
-
return setTag$3;
|
|
15680
|
-
case weakMapCtorString:
|
|
15681
|
-
return weakMapTag$1;
|
|
15682
|
-
}
|
|
15683
|
-
}
|
|
15684
|
-
return result2;
|
|
15685
|
-
};
|
|
15686
|
-
}
|
|
15687
|
-
var _getTag = getTag$3;
|
|
15688
|
-
var objectProto = Object.prototype;
|
|
15689
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
15690
|
-
function initCloneArray$1(array) {
|
|
15691
|
-
var length = array.length, result2 = new array.constructor(length);
|
|
15692
|
-
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
15693
|
-
result2.index = array.index;
|
|
15694
|
-
result2.input = array.input;
|
|
15695
|
-
}
|
|
15696
|
-
return result2;
|
|
15697
|
-
}
|
|
15698
|
-
var _initCloneArray = initCloneArray$1;
|
|
15699
|
-
var root$1 = _root;
|
|
15700
|
-
var Uint8Array$2 = root$1.Uint8Array;
|
|
15701
|
-
var _Uint8Array = Uint8Array$2;
|
|
15702
|
-
var Uint8Array$1 = _Uint8Array;
|
|
15703
|
-
function cloneArrayBuffer$3(arrayBuffer) {
|
|
15704
|
-
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
15705
|
-
new Uint8Array$1(result2).set(new Uint8Array$1(arrayBuffer));
|
|
15706
|
-
return result2;
|
|
15707
|
-
}
|
|
15708
|
-
var _cloneArrayBuffer = cloneArrayBuffer$3;
|
|
15709
|
-
var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
|
15710
|
-
function cloneDataView$1(dataView, isDeep) {
|
|
15711
|
-
var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
|
15712
|
-
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
15713
|
-
}
|
|
15714
|
-
var _cloneDataView = cloneDataView$1;
|
|
15715
|
-
var reFlags = /\w*$/;
|
|
15716
|
-
function cloneRegExp$1(regexp) {
|
|
15717
|
-
var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
15718
|
-
result2.lastIndex = regexp.lastIndex;
|
|
15719
|
-
return result2;
|
|
15720
|
-
}
|
|
15721
|
-
var _cloneRegExp = cloneRegExp$1;
|
|
15722
|
-
var Symbol$1 = _Symbol;
|
|
15723
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
15724
|
-
function cloneSymbol$1(symbol) {
|
|
15725
|
-
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
15726
|
-
}
|
|
15727
|
-
var _cloneSymbol = cloneSymbol$1;
|
|
15728
|
-
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
15729
|
-
function cloneTypedArray$1(typedArray, isDeep) {
|
|
15730
|
-
var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
|
15731
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
15732
|
-
}
|
|
15733
|
-
var _cloneTypedArray = cloneTypedArray$1;
|
|
15734
|
-
var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
|
15735
|
-
var boolTag$1 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$2 = "[object Symbol]";
|
|
15736
|
-
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
15737
|
-
function initCloneByTag$1(object, tag, isDeep) {
|
|
15738
|
-
var Ctor = object.constructor;
|
|
15739
|
-
switch (tag) {
|
|
15740
|
-
case arrayBufferTag$1:
|
|
15741
|
-
return cloneArrayBuffer(object);
|
|
15742
|
-
case boolTag$1:
|
|
15743
|
-
case dateTag$2:
|
|
15744
|
-
return new Ctor(+object);
|
|
15745
|
-
case dataViewTag$1:
|
|
15746
|
-
return cloneDataView(object, isDeep);
|
|
15747
|
-
case float32Tag$1:
|
|
15748
|
-
case float64Tag$1:
|
|
15749
|
-
case int8Tag$1:
|
|
15750
|
-
case int16Tag$1:
|
|
15751
|
-
case int32Tag$1:
|
|
15752
|
-
case uint8Tag$1:
|
|
15753
|
-
case uint8ClampedTag$1:
|
|
15754
|
-
case uint16Tag$1:
|
|
15755
|
-
case uint32Tag$1:
|
|
15756
|
-
return cloneTypedArray(object, isDeep);
|
|
15757
|
-
case mapTag$2:
|
|
15758
|
-
return new Ctor();
|
|
15759
|
-
case numberTag$1:
|
|
15760
|
-
case stringTag$1:
|
|
15761
|
-
return new Ctor(object);
|
|
15762
|
-
case regexpTag$1:
|
|
15763
|
-
return cloneRegExp(object);
|
|
15764
|
-
case setTag$2:
|
|
15765
|
-
return new Ctor();
|
|
15766
|
-
case symbolTag$2:
|
|
15767
|
-
return cloneSymbol(object);
|
|
15768
|
-
}
|
|
15769
|
-
}
|
|
15770
|
-
var _initCloneByTag = initCloneByTag$1;
|
|
15771
|
-
var isObject$4 = isObject_1;
|
|
15772
|
-
var objectCreate = Object.create;
|
|
15773
|
-
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
15774
|
-
function object() {
|
|
15775
|
-
}
|
|
15776
|
-
return function(proto2) {
|
|
15777
|
-
if (!isObject$4(proto2)) {
|
|
15778
|
-
return {};
|
|
15779
|
-
}
|
|
15780
|
-
if (objectCreate) {
|
|
15781
|
-
return objectCreate(proto2);
|
|
15782
|
-
}
|
|
15783
|
-
object.prototype = proto2;
|
|
15784
|
-
var result2 = new object();
|
|
15785
|
-
object.prototype = void 0;
|
|
15786
|
-
return result2;
|
|
15787
|
-
};
|
|
15788
|
-
}();
|
|
15789
|
-
var _baseCreate = baseCreate$1;
|
|
15790
|
-
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
|
15791
|
-
function initCloneObject$1(object) {
|
|
15792
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
15793
|
-
}
|
|
15794
|
-
var _initCloneObject = initCloneObject$1;
|
|
15795
|
-
var getTag$2 = _getTag, isObjectLike$3 = isObjectLike_1;
|
|
15796
|
-
var mapTag$1 = "[object Map]";
|
|
15797
|
-
function baseIsMap$1(value) {
|
|
15798
|
-
return isObjectLike$3(value) && getTag$2(value) == mapTag$1;
|
|
15799
|
-
}
|
|
15800
|
-
var _baseIsMap = baseIsMap$1;
|
|
15801
|
-
var baseIsMap = _baseIsMap, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
|
|
15802
|
-
var nodeIsMap = nodeUtil$2 && nodeUtil$2.isMap;
|
|
15803
|
-
var isMap$1 = nodeIsMap ? baseUnary$2(nodeIsMap) : baseIsMap;
|
|
15804
|
-
var isMap_1 = isMap$1;
|
|
15805
|
-
var getTag$1 = _getTag, isObjectLike$2 = isObjectLike_1;
|
|
15806
|
-
var setTag$1 = "[object Set]";
|
|
15807
|
-
function baseIsSet$1(value) {
|
|
15808
|
-
return isObjectLike$2(value) && getTag$1(value) == setTag$1;
|
|
15809
|
-
}
|
|
15810
|
-
var _baseIsSet = baseIsSet$1;
|
|
15811
|
-
var baseIsSet = _baseIsSet, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
|
|
15812
|
-
var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
|
|
15813
|
-
var isSet$1 = nodeIsSet ? baseUnary$1(nodeIsSet) : baseIsSet;
|
|
15814
|
-
var isSet_1 = isSet$1;
|
|
15815
|
-
var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBufferExports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBufferExports, isMap = isMap_1, isObject$3 = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
|
15816
|
-
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
15817
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag$1 = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
15818
|
-
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
15819
|
-
var cloneableTags = {};
|
|
15820
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
15821
|
-
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
15822
|
-
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
15823
|
-
var result2, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
15824
|
-
if (customizer) {
|
|
15825
|
-
result2 = object ? customizer(value, key, object, stack) : customizer(value);
|
|
15826
|
-
}
|
|
15827
|
-
if (result2 !== void 0) {
|
|
15828
|
-
return result2;
|
|
15829
|
-
}
|
|
15830
|
-
if (!isObject$3(value)) {
|
|
15831
|
-
return value;
|
|
15832
|
-
}
|
|
15833
|
-
var isArr = isArray(value);
|
|
15834
|
-
if (isArr) {
|
|
15835
|
-
result2 = initCloneArray(value);
|
|
15836
|
-
if (!isDeep) {
|
|
15837
|
-
return copyArray(value, result2);
|
|
15838
|
-
}
|
|
15839
|
-
} else {
|
|
15840
|
-
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
15841
|
-
if (isBuffer(value)) {
|
|
15842
|
-
return cloneBuffer(value, isDeep);
|
|
15843
|
-
}
|
|
15844
|
-
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
15845
|
-
result2 = isFlat || isFunc ? {} : initCloneObject(value);
|
|
15846
|
-
if (!isDeep) {
|
|
15847
|
-
return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value));
|
|
15848
|
-
}
|
|
15849
|
-
} else {
|
|
15850
|
-
if (!cloneableTags[tag]) {
|
|
15851
|
-
return object ? value : {};
|
|
15852
|
-
}
|
|
15853
|
-
result2 = initCloneByTag(value, tag, isDeep);
|
|
15854
|
-
}
|
|
15855
|
-
}
|
|
15856
|
-
stack || (stack = new Stack());
|
|
15857
|
-
var stacked = stack.get(value);
|
|
15858
|
-
if (stacked) {
|
|
15859
|
-
return stacked;
|
|
15860
|
-
}
|
|
15861
|
-
stack.set(value, result2);
|
|
15862
|
-
if (isSet(value)) {
|
|
15863
|
-
value.forEach(function(subValue) {
|
|
15864
|
-
result2.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
15865
|
-
});
|
|
15866
|
-
} else if (isMap(value)) {
|
|
15867
|
-
value.forEach(function(subValue, key2) {
|
|
15868
|
-
result2.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
15869
|
-
});
|
|
15870
|
-
}
|
|
15871
|
-
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
15872
|
-
var props = isArr ? void 0 : keysFunc(value);
|
|
15873
|
-
arrayEach(props || value, function(subValue, key2) {
|
|
15874
|
-
if (props) {
|
|
15875
|
-
key2 = subValue;
|
|
15876
|
-
subValue = value[key2];
|
|
15877
|
-
}
|
|
15878
|
-
assignValue(result2, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
15879
|
-
});
|
|
15880
|
-
return result2;
|
|
15881
|
-
}
|
|
15882
|
-
var _baseClone = baseClone$1;
|
|
15883
|
-
var baseClone = _baseClone;
|
|
15884
|
-
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
15885
|
-
function cloneDeep(value) {
|
|
15886
|
-
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
15887
|
-
}
|
|
15888
|
-
var cloneDeep_1 = cloneDeep;
|
|
15889
|
-
const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
|
|
15890
14918
|
const FIRST_NAMESPACE_KEY = "parent_org_path";
|
|
15891
14919
|
const useBreadcrumb = () => {
|
|
15892
14920
|
const router2 = useRouter();
|
|
@@ -15908,7 +14936,7 @@ const useBreadcrumb = () => {
|
|
|
15908
14936
|
path: ""
|
|
15909
14937
|
}
|
|
15910
14938
|
];
|
|
15911
|
-
const params = cloneDeep
|
|
14939
|
+
const params = cloneDeep((_i = (_h = router2.currentRoute) == null ? void 0 : _h.value) == null ? void 0 : _i.params);
|
|
15912
14940
|
if (isSubOrg) {
|
|
15913
14941
|
params.namespace = params[FIRST_NAMESPACE_KEY];
|
|
15914
14942
|
delete params[FIRST_NAMESPACE_KEY];
|
|
@@ -16637,17 +15665,6 @@ var utc$1 = { exports: {} };
|
|
|
16637
15665
|
})(utc$1);
|
|
16638
15666
|
var utcExports = utc$1.exports;
|
|
16639
15667
|
const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
|
|
16640
|
-
var baseGetTag$1 = _baseGetTag, isObjectLike$1 = isObjectLike_1;
|
|
16641
|
-
var dateTag = "[object Date]";
|
|
16642
|
-
function baseIsDate$1(value) {
|
|
16643
|
-
return isObjectLike$1(value) && baseGetTag$1(value) == dateTag;
|
|
16644
|
-
}
|
|
16645
|
-
var _baseIsDate = baseIsDate$1;
|
|
16646
|
-
var baseIsDate = _baseIsDate, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
16647
|
-
var nodeIsDate = nodeUtil && nodeUtil.isDate;
|
|
16648
|
-
var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
|
|
16649
|
-
var isDate_1 = isDate;
|
|
16650
|
-
const isDate$1 = /* @__PURE__ */ getDefaultExportFromCjs(isDate_1);
|
|
16651
15668
|
dayjs$1.locale(locale);
|
|
16652
15669
|
dayjs$1.extend(relativeTime);
|
|
16653
15670
|
dayjs$1.extend(tz);
|
|
@@ -16656,7 +15673,7 @@ dayjs$1.tz.setDefault("Asia/Shanghai");
|
|
|
16656
15673
|
const useTimeFormat = () => {
|
|
16657
15674
|
const formatTimeFromNow = (time) => {
|
|
16658
15675
|
if (!time) return "-";
|
|
16659
|
-
const targetDate = isDate$
|
|
15676
|
+
const targetDate = isDate$2(time) ? time : new Date(time);
|
|
16660
15677
|
return formatTimeDifference(targetDate);
|
|
16661
15678
|
};
|
|
16662
15679
|
const formatTime = (time, format2) => {
|
|
@@ -17409,142 +16426,6 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
17409
16426
|
}
|
|
17410
16427
|
});
|
|
17411
16428
|
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17412
|
-
var root = _root;
|
|
17413
|
-
var now$1 = function() {
|
|
17414
|
-
return root.Date.now();
|
|
17415
|
-
};
|
|
17416
|
-
var now_1 = now$1;
|
|
17417
|
-
var reWhitespace = /\s/;
|
|
17418
|
-
function trimmedEndIndex$1(string) {
|
|
17419
|
-
var index2 = string.length;
|
|
17420
|
-
while (index2-- && reWhitespace.test(string.charAt(index2))) {
|
|
17421
|
-
}
|
|
17422
|
-
return index2;
|
|
17423
|
-
}
|
|
17424
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
17425
|
-
var trimmedEndIndex = _trimmedEndIndex;
|
|
17426
|
-
var reTrimStart = /^\s+/;
|
|
17427
|
-
function baseTrim$1(string) {
|
|
17428
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
17429
|
-
}
|
|
17430
|
-
var _baseTrim = baseTrim$1;
|
|
17431
|
-
var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
|
|
17432
|
-
var symbolTag = "[object Symbol]";
|
|
17433
|
-
function isSymbol$1(value) {
|
|
17434
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
17435
|
-
}
|
|
17436
|
-
var isSymbol_1 = isSymbol$1;
|
|
17437
|
-
var baseTrim = _baseTrim, isObject$2 = isObject_1, isSymbol = isSymbol_1;
|
|
17438
|
-
var NAN = 0 / 0;
|
|
17439
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
17440
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
17441
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
17442
|
-
var freeParseInt = parseInt;
|
|
17443
|
-
function toNumber$1(value) {
|
|
17444
|
-
if (typeof value == "number") {
|
|
17445
|
-
return value;
|
|
17446
|
-
}
|
|
17447
|
-
if (isSymbol(value)) {
|
|
17448
|
-
return NAN;
|
|
17449
|
-
}
|
|
17450
|
-
if (isObject$2(value)) {
|
|
17451
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
17452
|
-
value = isObject$2(other) ? other + "" : other;
|
|
17453
|
-
}
|
|
17454
|
-
if (typeof value != "string") {
|
|
17455
|
-
return value === 0 ? value : +value;
|
|
17456
|
-
}
|
|
17457
|
-
value = baseTrim(value);
|
|
17458
|
-
var isBinary = reIsBinary.test(value);
|
|
17459
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
17460
|
-
}
|
|
17461
|
-
var toNumber_1 = toNumber$1;
|
|
17462
|
-
var isObject$1 = isObject_1, now = now_1, toNumber = toNumber_1;
|
|
17463
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
17464
|
-
var nativeMax = Math.max, nativeMin = Math.min;
|
|
17465
|
-
function debounce(func, wait, options) {
|
|
17466
|
-
var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
17467
|
-
if (typeof func != "function") {
|
|
17468
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
17469
|
-
}
|
|
17470
|
-
wait = toNumber(wait) || 0;
|
|
17471
|
-
if (isObject$1(options)) {
|
|
17472
|
-
leading = !!options.leading;
|
|
17473
|
-
maxing = "maxWait" in options;
|
|
17474
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
17475
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
17476
|
-
}
|
|
17477
|
-
function invokeFunc(time) {
|
|
17478
|
-
var args = lastArgs, thisArg = lastThis;
|
|
17479
|
-
lastArgs = lastThis = void 0;
|
|
17480
|
-
lastInvokeTime = time;
|
|
17481
|
-
result2 = func.apply(thisArg, args);
|
|
17482
|
-
return result2;
|
|
17483
|
-
}
|
|
17484
|
-
function leadingEdge(time) {
|
|
17485
|
-
lastInvokeTime = time;
|
|
17486
|
-
timerId = setTimeout(timerExpired, wait);
|
|
17487
|
-
return leading ? invokeFunc(time) : result2;
|
|
17488
|
-
}
|
|
17489
|
-
function remainingWait(time) {
|
|
17490
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
17491
|
-
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
17492
|
-
}
|
|
17493
|
-
function shouldInvoke(time) {
|
|
17494
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
17495
|
-
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
17496
|
-
}
|
|
17497
|
-
function timerExpired() {
|
|
17498
|
-
var time = now();
|
|
17499
|
-
if (shouldInvoke(time)) {
|
|
17500
|
-
return trailingEdge(time);
|
|
17501
|
-
}
|
|
17502
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
17503
|
-
}
|
|
17504
|
-
function trailingEdge(time) {
|
|
17505
|
-
timerId = void 0;
|
|
17506
|
-
if (trailing && lastArgs) {
|
|
17507
|
-
return invokeFunc(time);
|
|
17508
|
-
}
|
|
17509
|
-
lastArgs = lastThis = void 0;
|
|
17510
|
-
return result2;
|
|
17511
|
-
}
|
|
17512
|
-
function cancel() {
|
|
17513
|
-
if (timerId !== void 0) {
|
|
17514
|
-
clearTimeout(timerId);
|
|
17515
|
-
}
|
|
17516
|
-
lastInvokeTime = 0;
|
|
17517
|
-
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
17518
|
-
}
|
|
17519
|
-
function flush() {
|
|
17520
|
-
return timerId === void 0 ? result2 : trailingEdge(now());
|
|
17521
|
-
}
|
|
17522
|
-
function debounced() {
|
|
17523
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
|
17524
|
-
lastArgs = arguments;
|
|
17525
|
-
lastThis = this;
|
|
17526
|
-
lastCallTime = time;
|
|
17527
|
-
if (isInvoking) {
|
|
17528
|
-
if (timerId === void 0) {
|
|
17529
|
-
return leadingEdge(lastCallTime);
|
|
17530
|
-
}
|
|
17531
|
-
if (maxing) {
|
|
17532
|
-
clearTimeout(timerId);
|
|
17533
|
-
timerId = setTimeout(timerExpired, wait);
|
|
17534
|
-
return invokeFunc(lastCallTime);
|
|
17535
|
-
}
|
|
17536
|
-
}
|
|
17537
|
-
if (timerId === void 0) {
|
|
17538
|
-
timerId = setTimeout(timerExpired, wait);
|
|
17539
|
-
}
|
|
17540
|
-
return result2;
|
|
17541
|
-
}
|
|
17542
|
-
debounced.cancel = cancel;
|
|
17543
|
-
debounced.flush = flush;
|
|
17544
|
-
return debounced;
|
|
17545
|
-
}
|
|
17546
|
-
var debounce_1 = debounce;
|
|
17547
|
-
const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1);
|
|
17548
16429
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
17549
16430
|
...{
|
|
17550
16431
|
name: "Notice"
|
|
@@ -17567,10 +16448,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17567
16448
|
};
|
|
17568
16449
|
onMounted(() => {
|
|
17569
16450
|
getCounts();
|
|
17570
|
-
addEventListener("updateNotice", debounce
|
|
16451
|
+
addEventListener("updateNotice", debounce(() => {
|
|
17571
16452
|
getCounts();
|
|
17572
16453
|
}, 500));
|
|
17573
|
-
addEventListener("updateNoticeCount", debounce
|
|
16454
|
+
addEventListener("updateNoticeCount", debounce(() => {
|
|
17574
16455
|
getCounts();
|
|
17575
16456
|
}, 500));
|
|
17576
16457
|
});
|
|
@@ -18192,13 +17073,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18192
17073
|
var _a;
|
|
18193
17074
|
const layoutConfig2 = useLayoutConfig();
|
|
18194
17075
|
const { t: $t } = i18n.global;
|
|
18195
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
18196
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
18197
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
18198
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
18199
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
18200
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
18201
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17076
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DPN4aYBL.js"));
|
|
17077
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-DUDNZwjv.js"));
|
|
17078
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CMO7E9bd.js"));
|
|
17079
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-D6kLiBkc.js"));
|
|
17080
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-cBgSDTnJ.js"));
|
|
17081
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-D1ZLoEed.js"));
|
|
17082
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CYeaUwiA.js"));
|
|
18202
17083
|
const props = __props;
|
|
18203
17084
|
const repoInfo = inject("repoInfo");
|
|
18204
17085
|
const orgInfo = inject("orgInfo");
|
|
@@ -18808,7 +17689,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18808
17689
|
}
|
|
18809
17690
|
});
|
|
18810
17691
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18811
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17692
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-jNuYd1LF.js"));
|
|
18812
17693
|
function clearNotice() {
|
|
18813
17694
|
if (localStorage$2.getItem("validator_email")) {
|
|
18814
17695
|
localStorage$2.removeItem("validator_email");
|
|
@@ -20868,7 +19749,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20868
19749
|
const layoutConfig2 = useLayoutConfig();
|
|
20869
19750
|
const { t: t2 } = i18n.global;
|
|
20870
19751
|
const route = useRoute();
|
|
20871
|
-
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-
|
|
19752
|
+
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-CCcjSsUF.js"));
|
|
20872
19753
|
const ProjectMenuListV22 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuListV2$1));
|
|
20873
19754
|
const ProjectMenuList2 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuList$1));
|
|
20874
19755
|
const props = __props;
|
|
@@ -23060,9 +21941,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23060
21941
|
}
|
|
23061
21942
|
}
|
|
23062
21943
|
};
|
|
23063
|
-
const toValidator = async (instance,
|
|
21944
|
+
const toValidator = async (instance, keys) => {
|
|
23064
21945
|
try {
|
|
23065
|
-
(
|
|
21946
|
+
(keys == null ? void 0 : keys.length) ? await instance.validateFields(keys) : await instance.validate();
|
|
23066
21947
|
return {};
|
|
23067
21948
|
} catch (e) {
|
|
23068
21949
|
return e;
|
|
@@ -23070,8 +21951,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23070
21951
|
};
|
|
23071
21952
|
const ValidateForm = async () => {
|
|
23072
21953
|
const res = await toValidator(FormRef.value);
|
|
23073
|
-
const
|
|
23074
|
-
if (
|
|
21954
|
+
const keys = Object.keys(res);
|
|
21955
|
+
if (keys == null ? void 0 : keys.length) {
|
|
23075
21956
|
return {
|
|
23076
21957
|
type: "fail",
|
|
23077
21958
|
errors: res,
|
|
@@ -23085,8 +21966,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23085
21966
|
};
|
|
23086
21967
|
}
|
|
23087
21968
|
};
|
|
23088
|
-
const ValidateFormKeys = async (
|
|
23089
|
-
const res = await toValidator(FormRef.value,
|
|
21969
|
+
const ValidateFormKeys = async (keys) => {
|
|
21970
|
+
const res = await toValidator(FormRef.value, keys);
|
|
23090
21971
|
const keyList = Object.keys(res);
|
|
23091
21972
|
if (keyList == null ? void 0 : keyList.length) {
|
|
23092
21973
|
return {
|
|
@@ -23163,10 +22044,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23163
22044
|
(_a = FormRef.value) == null ? void 0 : _a.resetFields();
|
|
23164
22045
|
}
|
|
23165
22046
|
};
|
|
23166
|
-
const ClearFormFields = (
|
|
22047
|
+
const ClearFormFields = (keys) => {
|
|
23167
22048
|
var _a;
|
|
23168
22049
|
if (FormRef.value) {
|
|
23169
|
-
(_a = FormRef.value) == null ? void 0 : _a.clearValidate(
|
|
22050
|
+
(_a = FormRef.value) == null ? void 0 : _a.clearValidate(keys);
|
|
23170
22051
|
}
|
|
23171
22052
|
};
|
|
23172
22053
|
const autocompleteCalc = (autoComplete) => {
|
|
@@ -24512,14 +23393,14 @@ function _arrayLikeToArray$3(arr, len) {
|
|
|
24512
23393
|
return arr2;
|
|
24513
23394
|
}
|
|
24514
23395
|
function ownKeys$6(object, enumerableOnly) {
|
|
24515
|
-
var
|
|
23396
|
+
var keys = Object.keys(object);
|
|
24516
23397
|
if (Object.getOwnPropertySymbols) {
|
|
24517
23398
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
24518
23399
|
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
24519
23400
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
24520
|
-
})),
|
|
23401
|
+
})), keys.push.apply(keys, symbols);
|
|
24521
23402
|
}
|
|
24522
|
-
return
|
|
23403
|
+
return keys;
|
|
24523
23404
|
}
|
|
24524
23405
|
function _objectSpread$6(target) {
|
|
24525
23406
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -24636,14 +23517,14 @@ function formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry,
|
|
|
24636
23517
|
}
|
|
24637
23518
|
}
|
|
24638
23519
|
function ownKeys$5(object, enumerableOnly) {
|
|
24639
|
-
var
|
|
23520
|
+
var keys = Object.keys(object);
|
|
24640
23521
|
if (Object.getOwnPropertySymbols) {
|
|
24641
23522
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
24642
23523
|
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
24643
23524
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
24644
|
-
})),
|
|
23525
|
+
})), keys.push.apply(keys, symbols);
|
|
24645
23526
|
}
|
|
24646
|
-
return
|
|
23527
|
+
return keys;
|
|
24647
23528
|
}
|
|
24648
23529
|
function _objectSpread$5(target) {
|
|
24649
23530
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -25391,14 +24272,14 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
25391
24272
|
};
|
|
25392
24273
|
}
|
|
25393
24274
|
function ownKeys$4(object, enumerableOnly) {
|
|
25394
|
-
var
|
|
24275
|
+
var keys = Object.keys(object);
|
|
25395
24276
|
if (Object.getOwnPropertySymbols) {
|
|
25396
24277
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
25397
24278
|
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
25398
24279
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25399
|
-
})),
|
|
24280
|
+
})), keys.push.apply(keys, symbols);
|
|
25400
24281
|
}
|
|
25401
|
-
return
|
|
24282
|
+
return keys;
|
|
25402
24283
|
}
|
|
25403
24284
|
function _objectSpread$4(target) {
|
|
25404
24285
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -25425,14 +24306,14 @@ function parsePhoneNumberWithError(text2, options, metadata2) {
|
|
|
25425
24306
|
}), metadata2);
|
|
25426
24307
|
}
|
|
25427
24308
|
function ownKeys$3(object, enumerableOnly) {
|
|
25428
|
-
var
|
|
24309
|
+
var keys = Object.keys(object);
|
|
25429
24310
|
if (Object.getOwnPropertySymbols) {
|
|
25430
24311
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
25431
24312
|
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
25432
24313
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25433
|
-
})),
|
|
24314
|
+
})), keys.push.apply(keys, symbols);
|
|
25434
24315
|
}
|
|
25435
|
-
return
|
|
24316
|
+
return keys;
|
|
25436
24317
|
}
|
|
25437
24318
|
function _objectSpread$3(target) {
|
|
25438
24319
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -25537,14 +24418,14 @@ function normalizeArguments(args) {
|
|
|
25537
24418
|
};
|
|
25538
24419
|
}
|
|
25539
24420
|
function ownKeys$2(object, enumerableOnly) {
|
|
25540
|
-
var
|
|
24421
|
+
var keys = Object.keys(object);
|
|
25541
24422
|
if (Object.getOwnPropertySymbols) {
|
|
25542
24423
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
25543
24424
|
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
25544
24425
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25545
|
-
})),
|
|
24426
|
+
})), keys.push.apply(keys, symbols);
|
|
25546
24427
|
}
|
|
25547
|
-
return
|
|
24428
|
+
return keys;
|
|
25548
24429
|
}
|
|
25549
24430
|
function _objectSpread$2(target) {
|
|
25550
24431
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -25581,14 +24462,14 @@ function parsePhoneNumber(text2, options, metadata2) {
|
|
|
25581
24462
|
}
|
|
25582
24463
|
}
|
|
25583
24464
|
function ownKeys$1(object, enumerableOnly) {
|
|
25584
|
-
var
|
|
24465
|
+
var keys = Object.keys(object);
|
|
25585
24466
|
if (Object.getOwnPropertySymbols) {
|
|
25586
24467
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
25587
24468
|
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
25588
24469
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25589
|
-
})),
|
|
24470
|
+
})), keys.push.apply(keys, symbols);
|
|
25590
24471
|
}
|
|
25591
|
-
return
|
|
24472
|
+
return keys;
|
|
25592
24473
|
}
|
|
25593
24474
|
function _objectSpread$1(target) {
|
|
25594
24475
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -25618,14 +24499,14 @@ function isValidPhoneNumber$1() {
|
|
|
25618
24499
|
return phoneNumber && phoneNumber.isValid() || false;
|
|
25619
24500
|
}
|
|
25620
24501
|
function ownKeys(object, enumerableOnly) {
|
|
25621
|
-
var
|
|
24502
|
+
var keys = Object.keys(object);
|
|
25622
24503
|
if (Object.getOwnPropertySymbols) {
|
|
25623
24504
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
25624
24505
|
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
25625
24506
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25626
|
-
})),
|
|
24507
|
+
})), keys.push.apply(keys, symbols);
|
|
25627
24508
|
}
|
|
25628
|
-
return
|
|
24509
|
+
return keys;
|
|
25629
24510
|
}
|
|
25630
24511
|
function _objectSpread(target) {
|
|
25631
24512
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -26126,7 +25007,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26126
25007
|
}
|
|
26127
25008
|
});
|
|
26128
25009
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
26129
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25010
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Dr1IWONg.js"));
|
|
26130
25011
|
const useSlidCaptcha = () => {
|
|
26131
25012
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
26132
25013
|
const open = (config) => {
|
|
@@ -27040,12 +25921,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
27040
25921
|
}
|
|
27041
25922
|
nextTick(() => {
|
|
27042
25923
|
var _a, _b;
|
|
27043
|
-
const
|
|
25924
|
+
const keys = Object.keys(formErrors);
|
|
27044
25925
|
const currentForm = FormConfig.value.dict;
|
|
27045
25926
|
if (currentForm == null ? void 0 : currentForm.length) {
|
|
27046
|
-
const obj = currentForm.find((item) =>
|
|
25927
|
+
const obj = currentForm.find((item) => keys.includes(item.key) && formErrors[item.key]);
|
|
27047
25928
|
if (FormRef.value) {
|
|
27048
|
-
const filterKeys =
|
|
25929
|
+
const filterKeys = keys.filter((k) => k !== (obj == null ? void 0 : obj.key) && formErrors[k]);
|
|
27049
25930
|
if (filterKeys.length) {
|
|
27050
25931
|
(_a = FormRef.value) == null ? void 0 : _a.ClearFormFields(filterKeys);
|
|
27051
25932
|
} else {
|
|
@@ -27061,12 +25942,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
27061
25942
|
};
|
|
27062
25943
|
const errorMsg = computed(() => {
|
|
27063
25944
|
var _a;
|
|
27064
|
-
const
|
|
25945
|
+
const keys = Object.keys(formErrors);
|
|
27065
25946
|
const currentForm = FormConfig.value.dict;
|
|
27066
25947
|
if (currentForm == null ? void 0 : currentForm.length) {
|
|
27067
|
-
const obj = currentForm.find((item) =>
|
|
25948
|
+
const obj = currentForm.find((item) => keys.includes(item.key) && formErrors[item.key]);
|
|
27068
25949
|
if (FormRef.value) {
|
|
27069
|
-
const filterKeys =
|
|
25950
|
+
const filterKeys = keys.filter((key) => key !== (obj == null ? void 0 : obj.key) && formErrors[key]);
|
|
27070
25951
|
filterKeys.length && ((_a = FormRef.value) == null ? void 0 : _a.ClearFormFields(filterKeys));
|
|
27071
25952
|
hackMsgError((obj == null ? void 0 : obj.key) === "verificationcode" || (obj == null ? void 0 : obj.key) === "code");
|
|
27072
25953
|
}
|
|
@@ -27840,22 +26721,21 @@ const index = {
|
|
|
27840
26721
|
}
|
|
27841
26722
|
};
|
|
27842
26723
|
export {
|
|
27843
|
-
|
|
27844
|
-
|
|
27845
|
-
|
|
27846
|
-
|
|
26724
|
+
getLocaleLang as A,
|
|
26725
|
+
isHttps as B,
|
|
26726
|
+
emitEvent as C,
|
|
26727
|
+
ToolsFloat as D,
|
|
27847
26728
|
EVENT_NAME as E,
|
|
27848
|
-
|
|
26729
|
+
_sfc_main as F,
|
|
27849
26730
|
GIcon as G,
|
|
27850
|
-
|
|
27851
|
-
|
|
27852
|
-
|
|
27853
|
-
|
|
26731
|
+
GitCodeAside as H,
|
|
26732
|
+
GitCodeHeader as I,
|
|
26733
|
+
useLogin as J,
|
|
26734
|
+
setLayoutConfig as K,
|
|
27854
26735
|
LANG_KEY as L,
|
|
27855
|
-
|
|
27856
|
-
|
|
27857
|
-
|
|
27858
|
-
index as P,
|
|
26736
|
+
GitCodeLayoutEmitter as M,
|
|
26737
|
+
setTheme as N,
|
|
26738
|
+
index as O,
|
|
27859
26739
|
REPO_MODULE as R,
|
|
27860
26740
|
SceneValue as S,
|
|
27861
26741
|
TOPIC_TYPE as T,
|
|
@@ -27863,27 +26743,27 @@ export {
|
|
|
27863
26743
|
i18n as a,
|
|
27864
26744
|
REPO_EVENT as b,
|
|
27865
26745
|
REPO_TYPE as c,
|
|
27866
|
-
|
|
26746
|
+
useRequestReport as d,
|
|
27867
26747
|
extractRepoInfoWithURL as e,
|
|
27868
|
-
|
|
27869
|
-
|
|
26748
|
+
useTimeFormat as f,
|
|
26749
|
+
LANG_ZH as g,
|
|
27870
26750
|
headRequest as h,
|
|
27871
26751
|
isPhone as i,
|
|
27872
|
-
|
|
27873
|
-
|
|
26752
|
+
usePageResize as j,
|
|
26753
|
+
isGstarRepo as k,
|
|
27874
26754
|
localStorage$2 as l,
|
|
27875
|
-
|
|
27876
|
-
|
|
27877
|
-
|
|
27878
|
-
|
|
27879
|
-
|
|
26755
|
+
_sfc_main$A as m,
|
|
26756
|
+
isIncubationRepo as n,
|
|
26757
|
+
highlightWords as o,
|
|
26758
|
+
transWebUrl as p,
|
|
26759
|
+
_frEventTrack as q,
|
|
27880
26760
|
reqCatch as r,
|
|
27881
26761
|
setLoginTriggerSource as s,
|
|
27882
26762
|
transferNumber as t,
|
|
27883
26763
|
useModel as u,
|
|
27884
26764
|
vElementExposure as v,
|
|
27885
|
-
|
|
27886
|
-
|
|
27887
|
-
|
|
27888
|
-
|
|
26765
|
+
useLayoutConfig as w,
|
|
26766
|
+
currentTheme as x,
|
|
26767
|
+
ThemeType as y,
|
|
26768
|
+
LANG_EN as z
|
|
27889
26769
|
};
|