@valaxyjs/devtools 0.23.3 → 0.23.5
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/dist/client/assets/{about-DMHBMV0x.js → about-rjfU4__7.js} +1 -1
- package/dist/client/assets/{categories-BEwiy7pr.js → categories-BBfumNEa.js} +1 -1
- package/dist/client/assets/{en-Crh6PWFl.js → en-BB5iiffm.js} +3 -1
- package/dist/client/assets/{index-BJpUDkpC.js → index-C08qRPwv.js} +519 -318
- package/dist/client/assets/{index-Bu5CF1lM.css → index-CJU8Ji_S.css} +2 -2
- package/dist/client/assets/{index-B3LlV-qy.js → index-Ch6xFAPn.js} +1407 -203
- package/dist/client/assets/{migration-DljaPscN.js → migration-Bm3qOgQn.js} +8 -5
- package/dist/client/assets/{splitpanes.es-DzeLiV6K.js → splitpanes.es-Cne9xE0z.js} +775 -32
- package/dist/client/assets/{tags-BeGrMyT8.js → tags-CCpP7bH0.js} +1 -1
- package/dist/client/assets/{zh-CN-DRUGIcOM.js → zh-CN-C2F6UN5K.js} +3 -1
- package/dist/client/index.html +2 -2
- package/dist/index.mjs +9 -3
- package/package.json +8 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Ch6xFAPn.js","./splitpanes.es-Cne9xE0z.js","./index-DKnSvpEK.css","./migration-Bm3qOgQn.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
true &&(function polyfill() {
|
|
3
3
|
const relList = document.createElement("link").relList;
|
|
4
4
|
if (relList && relList.supports && relList.supports("modulepreload")) {
|
|
@@ -235,7 +235,7 @@ function mergeKeys(...args) {
|
|
|
235
235
|
|
|
236
236
|
// src/object/methods/minifyCSS.ts
|
|
237
237
|
function minifyCSS(css) {
|
|
238
|
-
return css ? css.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":") : css;
|
|
238
|
+
return css ? css.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":").trim() : css;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
// src/object/methods/toCapitalCase.ts
|
|
@@ -248,11 +248,6 @@ function toKebabCase(str) {
|
|
|
248
248
|
return isString$2(str) ? str.replace(/(_)/g, "-").replace(/[A-Z]/g, (c, i) => i === 0 ? c : "-" + c.toLowerCase()).toLowerCase() : str;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
// src/object/methods/toTokenKey.ts
|
|
252
|
-
function toTokenKey(str) {
|
|
253
|
-
return isString$2(str) ? str.replace(/[A-Z]/g, (c, i) => i === 0 ? c : "." + c.toLowerCase()).toLowerCase() : str;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
251
|
/* Injected with object hook! */
|
|
257
252
|
|
|
258
253
|
// src/eventbus/index.ts
|
|
@@ -756,13 +751,9 @@ function definePreset(...presets) {
|
|
|
756
751
|
}
|
|
757
752
|
var ThemeService = EventBus();
|
|
758
753
|
var service_default = ThemeService;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
} else if (isObject$3(value1)) {
|
|
763
|
-
Object.assign(value1, value2);
|
|
764
|
-
}
|
|
765
|
-
}
|
|
754
|
+
var EXPR_REGEX = /{([^}]*)}/g;
|
|
755
|
+
var CALC_REGEX = /(\d+\s+[\+\-\*\/]\s+\d+)/g;
|
|
756
|
+
var VAR_REGEX = /var\([^)]+\)/g;
|
|
766
757
|
function toValue$1(value) {
|
|
767
758
|
return isObject$3(value) && value.hasOwnProperty("$value") && value.hasOwnProperty("$type") ? value.$value : value;
|
|
768
759
|
}
|
|
@@ -782,19 +773,16 @@ function hasOddBraces(str = "") {
|
|
|
782
773
|
}
|
|
783
774
|
function getVariableValue(value, variable = "", prefix = "", excludedKeyRegexes = [], fallback) {
|
|
784
775
|
if (isString$2(value)) {
|
|
785
|
-
const regex = /{([^}]*)}/g;
|
|
786
776
|
const val = value.trim();
|
|
787
777
|
if (hasOddBraces(val)) {
|
|
788
778
|
return void 0;
|
|
789
|
-
} else if (matchRegex(val,
|
|
790
|
-
const _val = val.replaceAll(
|
|
779
|
+
} else if (matchRegex(val, EXPR_REGEX)) {
|
|
780
|
+
const _val = val.replaceAll(EXPR_REGEX, (v) => {
|
|
791
781
|
const path = v.replace(/{|}/g, "");
|
|
792
782
|
const keys = path.split(".").filter((_v) => !excludedKeyRegexes.some((_r) => matchRegex(_v, _r)));
|
|
793
783
|
return `var(${getVariableName(prefix, toKebabCase(keys.join("-")))}${isNotEmpty(fallback) ? `, ${fallback}` : ""})`;
|
|
794
784
|
});
|
|
795
|
-
|
|
796
|
-
const cleanedVarRegex = /var\([^)]+\)/g;
|
|
797
|
-
return matchRegex(_val.replace(cleanedVarRegex, "0"), calculationRegex) ? `calc(${_val})` : _val;
|
|
785
|
+
return matchRegex(_val.replace(VAR_REGEX, "0"), CALC_REGEX) ? `calc(${_val})` : _val;
|
|
798
786
|
}
|
|
799
787
|
return val;
|
|
800
788
|
} else if (isNumber$1(value)) {
|
|
@@ -813,6 +801,70 @@ function getRule(selector, properties) {
|
|
|
813
801
|
}
|
|
814
802
|
return "";
|
|
815
803
|
}
|
|
804
|
+
function evaluateDtExpressions(input, fn) {
|
|
805
|
+
if (input.indexOf("dt(") === -1) return input;
|
|
806
|
+
function fastParseArgs(str, fn2) {
|
|
807
|
+
const args = [];
|
|
808
|
+
let i = 0;
|
|
809
|
+
let current = "";
|
|
810
|
+
let quote = null;
|
|
811
|
+
let depth = 0;
|
|
812
|
+
while (i <= str.length) {
|
|
813
|
+
const c = str[i];
|
|
814
|
+
if ((c === '"' || c === "'" || c === "`") && str[i - 1] !== "\\") {
|
|
815
|
+
quote = quote === c ? null : c;
|
|
816
|
+
}
|
|
817
|
+
if (!quote) {
|
|
818
|
+
if (c === "(") depth++;
|
|
819
|
+
if (c === ")") depth--;
|
|
820
|
+
if ((c === "," || i === str.length) && depth === 0) {
|
|
821
|
+
const arg = current.trim();
|
|
822
|
+
if (arg.startsWith("dt(")) {
|
|
823
|
+
args.push(evaluateDtExpressions(arg, fn2));
|
|
824
|
+
} else {
|
|
825
|
+
args.push(parseArg(arg));
|
|
826
|
+
}
|
|
827
|
+
current = "";
|
|
828
|
+
i++;
|
|
829
|
+
continue;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
if (c !== void 0) current += c;
|
|
833
|
+
i++;
|
|
834
|
+
}
|
|
835
|
+
return args;
|
|
836
|
+
}
|
|
837
|
+
function parseArg(arg) {
|
|
838
|
+
const q = arg[0];
|
|
839
|
+
if ((q === '"' || q === "'" || q === "`") && arg[arg.length - 1] === q) {
|
|
840
|
+
return arg.slice(1, -1);
|
|
841
|
+
}
|
|
842
|
+
const num = Number(arg);
|
|
843
|
+
return isNaN(num) ? arg : num;
|
|
844
|
+
}
|
|
845
|
+
const indices = [];
|
|
846
|
+
const stack = [];
|
|
847
|
+
for (let i = 0; i < input.length; i++) {
|
|
848
|
+
if (input[i] === "d" && input.slice(i, i + 3) === "dt(") {
|
|
849
|
+
stack.push(i);
|
|
850
|
+
i += 2;
|
|
851
|
+
} else if (input[i] === ")" && stack.length > 0) {
|
|
852
|
+
const start = stack.pop();
|
|
853
|
+
if (stack.length === 0) {
|
|
854
|
+
indices.push([start, i]);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
if (!indices.length) return input;
|
|
859
|
+
for (let i = indices.length - 1; i >= 0; i--) {
|
|
860
|
+
const [start, end] = indices[i];
|
|
861
|
+
const inner = input.slice(start + 3, end);
|
|
862
|
+
const args = fastParseArgs(inner, fn);
|
|
863
|
+
const resolved = fn(...args);
|
|
864
|
+
input = input.slice(0, start) + resolved + input.slice(end + 1);
|
|
865
|
+
}
|
|
866
|
+
return input;
|
|
867
|
+
}
|
|
816
868
|
var dt = (...args) => {
|
|
817
869
|
return dtwt(config_default.getTheme(), ...args);
|
|
818
870
|
};
|
|
@@ -820,40 +872,57 @@ var dtwt = (theme = {}, tokenPath, fallback, type) => {
|
|
|
820
872
|
if (tokenPath) {
|
|
821
873
|
const { variable: VARIABLE, options: OPTIONS } = config_default.defaults || {};
|
|
822
874
|
const { prefix, transform } = (theme == null ? void 0 : theme.options) || OPTIONS || {};
|
|
823
|
-
const
|
|
824
|
-
const token = matchRegex(tokenPath, regex) ? tokenPath : `{${tokenPath}}`;
|
|
875
|
+
const token = matchRegex(tokenPath, EXPR_REGEX) ? tokenPath : `{${tokenPath}}`;
|
|
825
876
|
const isStrictTransform = type === "value" || isEmpty(type) && transform === "strict";
|
|
826
877
|
return isStrictTransform ? config_default.getTokenValue(tokenPath) : getVariableValue(token, void 0, prefix, [VARIABLE.excludedKeyRegex], fallback);
|
|
827
878
|
}
|
|
828
879
|
return "";
|
|
829
880
|
};
|
|
881
|
+
|
|
882
|
+
// src/helpers/css.ts
|
|
883
|
+
function css$1(strings, ...exprs) {
|
|
884
|
+
if (strings instanceof Array) {
|
|
885
|
+
const raw = strings.reduce((acc, str, i) => {
|
|
886
|
+
var _a;
|
|
887
|
+
return acc + str + ((_a = resolve$1(exprs[i], { dt })) != null ? _a : "");
|
|
888
|
+
}, "");
|
|
889
|
+
return evaluateDtExpressions(raw, dt);
|
|
890
|
+
}
|
|
891
|
+
return resolve$1(strings, { dt });
|
|
892
|
+
}
|
|
830
893
|
function toVariables_default(theme, options = {}) {
|
|
831
894
|
const VARIABLE = config_default.defaults.variable;
|
|
832
895
|
const { prefix = VARIABLE.prefix, selector = VARIABLE.selector, excludedKeyRegex = VARIABLE.excludedKeyRegex } = options;
|
|
833
|
-
const
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
896
|
+
const tokens = [];
|
|
897
|
+
const variables = [];
|
|
898
|
+
const stack = [{ node: theme, path: prefix }];
|
|
899
|
+
while (stack.length) {
|
|
900
|
+
const { node, path } = stack.pop();
|
|
901
|
+
for (const key in node) {
|
|
902
|
+
const raw = node[key];
|
|
903
|
+
const val = toValue$1(raw);
|
|
904
|
+
const skipNormalize = matchRegex(key, excludedKeyRegex);
|
|
905
|
+
const variablePath = skipNormalize ? toNormalizeVariable(path) : toNormalizeVariable(path, toKebabCase(key));
|
|
906
|
+
if (isObject$3(val)) {
|
|
907
|
+
stack.push({ node: val, path: variablePath });
|
|
908
|
+
} else {
|
|
909
|
+
const varName = getVariableName(variablePath);
|
|
910
|
+
const varValue = getVariableValue(val, variablePath, prefix, [excludedKeyRegex]);
|
|
911
|
+
setProperty(variables, varName, varValue);
|
|
912
|
+
let token = variablePath;
|
|
913
|
+
if (prefix && token.startsWith(prefix + "-")) {
|
|
914
|
+
token = token.slice(prefix.length + 1);
|
|
845
915
|
}
|
|
846
|
-
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
const { variables, tokens } = _toVariables(theme, prefix);
|
|
916
|
+
tokens.push(token.replace(/-/g, "."));
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
const declarations = variables.join("");
|
|
852
921
|
return {
|
|
853
922
|
value: variables,
|
|
854
923
|
tokens,
|
|
855
|
-
declarations
|
|
856
|
-
css: getRule(selector,
|
|
924
|
+
declarations,
|
|
925
|
+
css: getRule(selector, declarations)
|
|
857
926
|
};
|
|
858
927
|
}
|
|
859
928
|
|
|
@@ -1014,8 +1083,8 @@ var themeUtils_default = {
|
|
|
1014
1083
|
const common = this.getCommon({ name, theme, params, set, defaults });
|
|
1015
1084
|
const _props = Object.entries(props).reduce((acc, [k, v]) => acc.push(`${k}="${v}"`) && acc, []).join(" ");
|
|
1016
1085
|
return Object.entries(common || {}).reduce((acc, [key, value]) => {
|
|
1017
|
-
if (value
|
|
1018
|
-
const _css = minifyCSS(value
|
|
1086
|
+
if (isObject$3(value) && Object.hasOwn(value, "css")) {
|
|
1087
|
+
const _css = minifyCSS(value.css);
|
|
1019
1088
|
const id = `${key}-variables`;
|
|
1020
1089
|
acc.push(`<style type="text/css" data-primevue-style-id="${id}" ${_props}>${_css}</style>`);
|
|
1021
1090
|
}
|
|
@@ -1030,57 +1099,7 @@ var themeUtils_default = {
|
|
|
1030
1099
|
return preset_css ? `<style type="text/css" data-primevue-style-id="${name}-variables" ${_props}>${minifyCSS(preset_css)}</style>` : "";
|
|
1031
1100
|
},
|
|
1032
1101
|
createTokens(obj = {}, defaults, parentKey = "", parentPath = "", tokens = {}) {
|
|
1033
|
-
|
|
1034
|
-
const currentKey = matchRegex(key, defaults.variable.excludedKeyRegex) ? parentKey : parentKey ? `${parentKey}.${toTokenKey(key)}` : toTokenKey(key);
|
|
1035
|
-
const currentPath = parentPath ? `${parentPath}.${key}` : key;
|
|
1036
|
-
if (isObject$3(value)) {
|
|
1037
|
-
this.createTokens(value, defaults, currentKey, currentPath, tokens);
|
|
1038
|
-
} else {
|
|
1039
|
-
tokens[currentKey] || (tokens[currentKey] = {
|
|
1040
|
-
paths: [],
|
|
1041
|
-
computed(colorScheme, tokenPathMap = {}) {
|
|
1042
|
-
var _a, _b;
|
|
1043
|
-
if (this.paths.length === 1) {
|
|
1044
|
-
return (_a = this.paths[0]) == null ? void 0 : _a.computed(this.paths[0].scheme, tokenPathMap["binding"]);
|
|
1045
|
-
} else if (colorScheme && colorScheme !== "none") {
|
|
1046
|
-
return (_b = this.paths.find((p) => p.scheme === colorScheme)) == null ? void 0 : _b.computed(colorScheme, tokenPathMap["binding"]);
|
|
1047
|
-
}
|
|
1048
|
-
return this.paths.map((p) => p.computed(p.scheme, tokenPathMap[p.scheme]));
|
|
1049
|
-
}
|
|
1050
|
-
});
|
|
1051
|
-
tokens[currentKey].paths.push({
|
|
1052
|
-
path: currentPath,
|
|
1053
|
-
value,
|
|
1054
|
-
scheme: currentPath.includes("colorScheme.light") ? "light" : currentPath.includes("colorScheme.dark") ? "dark" : "none",
|
|
1055
|
-
computed(colorScheme, tokenPathMap = {}) {
|
|
1056
|
-
const regex = /{([^}]*)}/g;
|
|
1057
|
-
let computedValue = value;
|
|
1058
|
-
tokenPathMap["name"] = this.path;
|
|
1059
|
-
tokenPathMap["binding"] || (tokenPathMap["binding"] = {});
|
|
1060
|
-
if (matchRegex(value, regex)) {
|
|
1061
|
-
const val = value.trim();
|
|
1062
|
-
const _val = val.replaceAll(regex, (v) => {
|
|
1063
|
-
var _a;
|
|
1064
|
-
const path = v.replace(/{|}/g, "");
|
|
1065
|
-
const computed = (_a = tokens[path]) == null ? void 0 : _a.computed(colorScheme, tokenPathMap);
|
|
1066
|
-
return isArray$3(computed) && computed.length === 2 ? `light-dark(${computed[0].value},${computed[1].value})` : computed == null ? void 0 : computed.value;
|
|
1067
|
-
});
|
|
1068
|
-
const calculationRegex = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g;
|
|
1069
|
-
const cleanedVarRegex = /var\([^)]+\)/g;
|
|
1070
|
-
computedValue = matchRegex(_val.replace(cleanedVarRegex, "0"), calculationRegex) ? `calc(${_val})` : _val;
|
|
1071
|
-
}
|
|
1072
|
-
isEmpty(tokenPathMap["binding"]) && delete tokenPathMap["binding"];
|
|
1073
|
-
return {
|
|
1074
|
-
colorScheme,
|
|
1075
|
-
path: this.path,
|
|
1076
|
-
paths: tokenPathMap,
|
|
1077
|
-
value: computedValue.includes("undefined") ? void 0 : computedValue
|
|
1078
|
-
};
|
|
1079
|
-
}
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
});
|
|
1083
|
-
return tokens;
|
|
1102
|
+
return {};
|
|
1084
1103
|
},
|
|
1085
1104
|
getTokenValue(tokens, path, defaults) {
|
|
1086
1105
|
var _a;
|
|
@@ -1546,7 +1565,7 @@ var index = _objectSpread$3(_objectSpread$3({}, e$Q), {}, {
|
|
|
1546
1565
|
/* Injected with object hook! */
|
|
1547
1566
|
|
|
1548
1567
|
/**
|
|
1549
|
-
* @vue/shared v3.5.
|
|
1568
|
+
* @vue/shared v3.5.16
|
|
1550
1569
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1551
1570
|
* @license MIT
|
|
1552
1571
|
**/
|
|
@@ -1794,7 +1813,7 @@ const stringifySymbol = (v, i = "") => {
|
|
|
1794
1813
|
/* Injected with object hook! */
|
|
1795
1814
|
|
|
1796
1815
|
/**
|
|
1797
|
-
* @vue/reactivity v3.5.
|
|
1816
|
+
* @vue/reactivity v3.5.16
|
|
1798
1817
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1799
1818
|
* @license MIT
|
|
1800
1819
|
**/
|
|
@@ -1803,6 +1822,7 @@ class EffectScope {
|
|
|
1803
1822
|
constructor(detached = false) {
|
|
1804
1823
|
this.detached = detached;
|
|
1805
1824
|
this._active = true;
|
|
1825
|
+
this._on = 0;
|
|
1806
1826
|
this.effects = [];
|
|
1807
1827
|
this.cleanups = [];
|
|
1808
1828
|
this._isPaused = false;
|
|
@@ -1865,14 +1885,20 @@ class EffectScope {
|
|
|
1865
1885
|
* @internal
|
|
1866
1886
|
*/
|
|
1867
1887
|
on() {
|
|
1868
|
-
|
|
1888
|
+
if (++this._on === 1) {
|
|
1889
|
+
this.prevScope = activeEffectScope;
|
|
1890
|
+
activeEffectScope = this;
|
|
1891
|
+
}
|
|
1869
1892
|
}
|
|
1870
1893
|
/**
|
|
1871
1894
|
* This should only be called on non-detached scopes
|
|
1872
1895
|
* @internal
|
|
1873
1896
|
*/
|
|
1874
1897
|
off() {
|
|
1875
|
-
|
|
1898
|
+
if (this._on > 0 && --this._on === 0) {
|
|
1899
|
+
activeEffectScope = this.prevScope;
|
|
1900
|
+
this.prevScope = void 0;
|
|
1901
|
+
}
|
|
1876
1902
|
}
|
|
1877
1903
|
stop(fromParent) {
|
|
1878
1904
|
if (this._active) {
|
|
@@ -2102,12 +2128,11 @@ function refreshComputed(computed2) {
|
|
|
2102
2128
|
return;
|
|
2103
2129
|
}
|
|
2104
2130
|
computed2.globalVersion = globalVersion;
|
|
2105
|
-
|
|
2106
|
-
computed2.flags |= 2;
|
|
2107
|
-
if (dep.version > 0 && !computed2.isSSR && computed2.deps && !isDirty(computed2)) {
|
|
2108
|
-
computed2.flags &= -3;
|
|
2131
|
+
if (!computed2.isSSR && computed2.flags & 128 && (!computed2.deps && !computed2._dirty || !isDirty(computed2))) {
|
|
2109
2132
|
return;
|
|
2110
2133
|
}
|
|
2134
|
+
computed2.flags |= 2;
|
|
2135
|
+
const dep = computed2.dep;
|
|
2111
2136
|
const prevSub = activeSub;
|
|
2112
2137
|
const prevShouldTrack = shouldTrack;
|
|
2113
2138
|
activeSub = computed2;
|
|
@@ -2116,6 +2141,7 @@ function refreshComputed(computed2) {
|
|
|
2116
2141
|
prepareDeps(computed2);
|
|
2117
2142
|
const value = computed2.fn(computed2._value);
|
|
2118
2143
|
if (dep.version === 0 || hasChanged(value, computed2._value)) {
|
|
2144
|
+
computed2.flags |= 128;
|
|
2119
2145
|
computed2._value = value;
|
|
2120
2146
|
dep.version++;
|
|
2121
2147
|
}
|
|
@@ -2955,14 +2981,14 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
2955
2981
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
2956
2982
|
return target;
|
|
2957
2983
|
}
|
|
2958
|
-
const existingProxy = proxyMap.get(target);
|
|
2959
|
-
if (existingProxy) {
|
|
2960
|
-
return existingProxy;
|
|
2961
|
-
}
|
|
2962
2984
|
const targetType = getTargetType(target);
|
|
2963
2985
|
if (targetType === 0) {
|
|
2964
2986
|
return target;
|
|
2965
2987
|
}
|
|
2988
|
+
const existingProxy = proxyMap.get(target);
|
|
2989
|
+
if (existingProxy) {
|
|
2990
|
+
return existingProxy;
|
|
2991
|
+
}
|
|
2966
2992
|
const proxy = new Proxy(
|
|
2967
2993
|
target,
|
|
2968
2994
|
targetType === 2 ? collectionHandlers : baseHandlers
|
|
@@ -3284,11 +3310,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
3284
3310
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
3285
3311
|
boundCleanup
|
|
3286
3312
|
];
|
|
3313
|
+
oldValue = newValue;
|
|
3287
3314
|
call ? call(cb, 3, args) : (
|
|
3288
3315
|
// @ts-expect-error
|
|
3289
3316
|
cb(...args)
|
|
3290
3317
|
);
|
|
3291
|
-
oldValue = newValue;
|
|
3292
3318
|
} finally {
|
|
3293
3319
|
activeWatcher = currentWatcher;
|
|
3294
3320
|
}
|
|
@@ -3366,7 +3392,7 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
3366
3392
|
/* Injected with object hook! */
|
|
3367
3393
|
|
|
3368
3394
|
/**
|
|
3369
|
-
* @vue/runtime-core v3.5.
|
|
3395
|
+
* @vue/runtime-core v3.5.16
|
|
3370
3396
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
3371
3397
|
* @license MIT
|
|
3372
3398
|
**/
|
|
@@ -3833,15 +3859,16 @@ const TeleportImpl = {
|
|
|
3833
3859
|
updateCssVars(n2, true);
|
|
3834
3860
|
}
|
|
3835
3861
|
if (isTeleportDeferred(n2.props)) {
|
|
3862
|
+
n2.el.__isMounted = false;
|
|
3836
3863
|
queuePostRenderEffect(() => {
|
|
3837
3864
|
mountToTarget();
|
|
3838
|
-
n2.el.__isMounted
|
|
3865
|
+
delete n2.el.__isMounted;
|
|
3839
3866
|
}, parentSuspense);
|
|
3840
3867
|
} else {
|
|
3841
3868
|
mountToTarget();
|
|
3842
3869
|
}
|
|
3843
3870
|
} else {
|
|
3844
|
-
if (isTeleportDeferred(n2.props) &&
|
|
3871
|
+
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
|
3845
3872
|
queuePostRenderEffect(() => {
|
|
3846
3873
|
TeleportImpl.process(
|
|
3847
3874
|
n1,
|
|
@@ -3855,7 +3882,6 @@ const TeleportImpl = {
|
|
|
3855
3882
|
optimized,
|
|
3856
3883
|
internals
|
|
3857
3884
|
);
|
|
3858
|
-
delete n1.el.__isMounted;
|
|
3859
3885
|
}, parentSuspense);
|
|
3860
3886
|
return;
|
|
3861
3887
|
}
|
|
@@ -4381,6 +4407,9 @@ function getInnerChild$1(vnode) {
|
|
|
4381
4407
|
}
|
|
4382
4408
|
return vnode;
|
|
4383
4409
|
}
|
|
4410
|
+
if (vnode.component) {
|
|
4411
|
+
return vnode.component.subTree;
|
|
4412
|
+
}
|
|
4384
4413
|
const { shapeFlag, children } = vnode;
|
|
4385
4414
|
if (children) {
|
|
4386
4415
|
if (shapeFlag & 16) {
|
|
@@ -4664,14 +4693,16 @@ function renderList(source, renderItem, cache, index) {
|
|
|
4664
4693
|
if (sourceIsArray || isString$1(source)) {
|
|
4665
4694
|
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
|
|
4666
4695
|
let needsWrap = false;
|
|
4696
|
+
let isReadonlySource = false;
|
|
4667
4697
|
if (sourceIsReactiveArray) {
|
|
4668
4698
|
needsWrap = !isShallow(source);
|
|
4699
|
+
isReadonlySource = isReadonly(source);
|
|
4669
4700
|
source = shallowReadArray(source);
|
|
4670
4701
|
}
|
|
4671
4702
|
ret = new Array(source.length);
|
|
4672
4703
|
for (let i = 0, l = source.length; i < l; i++) {
|
|
4673
4704
|
ret[i] = renderItem(
|
|
4674
|
-
needsWrap ? toReactive(source[i]) : source[i],
|
|
4705
|
+
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
|
|
4675
4706
|
i,
|
|
4676
4707
|
void 0,
|
|
4677
4708
|
cached
|
|
@@ -5389,7 +5420,7 @@ function provide(key, value) {
|
|
|
5389
5420
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
5390
5421
|
const instance = currentInstance || currentRenderingInstance;
|
|
5391
5422
|
if (instance || currentApp) {
|
|
5392
|
-
|
|
5423
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
5393
5424
|
if (provides && key in provides) {
|
|
5394
5425
|
return provides[key];
|
|
5395
5426
|
} else if (arguments.length > 1) {
|
|
@@ -5718,7 +5749,7 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
5718
5749
|
};
|
|
5719
5750
|
const assignSlots = (slots, children, optimized) => {
|
|
5720
5751
|
for (const key in children) {
|
|
5721
|
-
if (optimized || key
|
|
5752
|
+
if (optimized || !isInternalKey(key)) {
|
|
5722
5753
|
slots[key] = children[key];
|
|
5723
5754
|
}
|
|
5724
5755
|
}
|
|
@@ -6155,7 +6186,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6155
6186
|
(oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
|
|
6156
6187
|
// which also requires the correct parent container
|
|
6157
6188
|
!isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
|
|
6158
|
-
oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
|
|
6189
|
+
oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
|
|
6159
6190
|
// In other cases, the parent container is not actually used so we
|
|
6160
6191
|
// just pass the block element here to avoid a DOM parentNode call.
|
|
6161
6192
|
fallbackContainer
|
|
@@ -6780,7 +6811,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6780
6811
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
6781
6812
|
} else {
|
|
6782
6813
|
const { leave, delayLeave, afterLeave } = transition;
|
|
6783
|
-
const remove22 = () =>
|
|
6814
|
+
const remove22 = () => {
|
|
6815
|
+
if (vnode.ctx.isUnmounted) {
|
|
6816
|
+
hostRemove(el);
|
|
6817
|
+
} else {
|
|
6818
|
+
hostInsert(el, container, anchor);
|
|
6819
|
+
}
|
|
6820
|
+
};
|
|
6784
6821
|
const performLeave = () => {
|
|
6785
6822
|
leave(el, () => {
|
|
6786
6823
|
remove22();
|
|
@@ -6813,7 +6850,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6813
6850
|
optimized = false;
|
|
6814
6851
|
}
|
|
6815
6852
|
if (ref3 != null) {
|
|
6853
|
+
pauseTracking();
|
|
6816
6854
|
setRef(ref3, null, parentSuspense, vnode, true);
|
|
6855
|
+
resetTracking();
|
|
6817
6856
|
}
|
|
6818
6857
|
if (cacheIndex != null) {
|
|
6819
6858
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
@@ -6914,12 +6953,27 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6914
6953
|
hostRemove(end);
|
|
6915
6954
|
};
|
|
6916
6955
|
const unmountComponent = (instance, parentSuspense, doRemove) => {
|
|
6917
|
-
const {
|
|
6956
|
+
const {
|
|
6957
|
+
bum,
|
|
6958
|
+
scope,
|
|
6959
|
+
job,
|
|
6960
|
+
subTree,
|
|
6961
|
+
um,
|
|
6962
|
+
m,
|
|
6963
|
+
a,
|
|
6964
|
+
parent,
|
|
6965
|
+
slots: { __: slotCacheKeys }
|
|
6966
|
+
} = instance;
|
|
6918
6967
|
invalidateMount(m);
|
|
6919
6968
|
invalidateMount(a);
|
|
6920
6969
|
if (bum) {
|
|
6921
6970
|
invokeArrayFns(bum);
|
|
6922
6971
|
}
|
|
6972
|
+
if (parent && isArray$2(slotCacheKeys)) {
|
|
6973
|
+
slotCacheKeys.forEach((v) => {
|
|
6974
|
+
parent.renderCache[v] = void 0;
|
|
6975
|
+
});
|
|
6976
|
+
}
|
|
6923
6977
|
scope.stop();
|
|
6924
6978
|
if (job) {
|
|
6925
6979
|
job.flags |= 8;
|
|
@@ -7031,6 +7085,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
7031
7085
|
if (c2.type === Text) {
|
|
7032
7086
|
c2.el = c1.el;
|
|
7033
7087
|
}
|
|
7088
|
+
if (c2.type === Comment && !c2.el) {
|
|
7089
|
+
c2.el = c1.el;
|
|
7090
|
+
}
|
|
7034
7091
|
}
|
|
7035
7092
|
}
|
|
7036
7093
|
}
|
|
@@ -8017,7 +8074,7 @@ function setupComponent(instance, isSSR = false, optimized = false) {
|
|
|
8017
8074
|
const { props, children } = instance.vnode;
|
|
8018
8075
|
const isStateful = isStatefulComponent(instance);
|
|
8019
8076
|
initProps(instance, props, isStateful, isSSR);
|
|
8020
|
-
initSlots(instance, children, optimized);
|
|
8077
|
+
initSlots(instance, children, optimized || isSSR);
|
|
8021
8078
|
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
|
|
8022
8079
|
isSSR && setInSSRSetupState(false);
|
|
8023
8080
|
return setupResult;
|
|
@@ -8183,12 +8240,12 @@ function h(type, propsOrChildren, children) {
|
|
|
8183
8240
|
return createVNode(type, propsOrChildren, children);
|
|
8184
8241
|
}
|
|
8185
8242
|
}
|
|
8186
|
-
const version = "3.5.
|
|
8243
|
+
const version = "3.5.16";
|
|
8187
8244
|
|
|
8188
8245
|
/* Injected with object hook! */
|
|
8189
8246
|
|
|
8190
8247
|
/**
|
|
8191
|
-
* @vue/runtime-dom v3.5.
|
|
8248
|
+
* @vue/runtime-dom v3.5.16
|
|
8192
8249
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8193
8250
|
* @license MIT
|
|
8194
8251
|
**/
|
|
@@ -8871,7 +8928,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
8871
8928
|
}
|
|
8872
8929
|
return false;
|
|
8873
8930
|
}
|
|
8874
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate") {
|
|
8931
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
|
|
8875
8932
|
return false;
|
|
8876
8933
|
}
|
|
8877
8934
|
if (key === "form") {
|
|
@@ -9089,164 +9146,8 @@ function normalizeContainer(container) {
|
|
|
9089
9146
|
|
|
9090
9147
|
/* Injected with object hook! */
|
|
9091
9148
|
|
|
9092
|
-
const TYPE_REQUEST = "q";
|
|
9093
|
-
const TYPE_RESPONSE = "s";
|
|
9094
|
-
const DEFAULT_TIMEOUT = 6e4;
|
|
9095
|
-
function defaultSerialize(i) {
|
|
9096
|
-
return i;
|
|
9097
|
-
}
|
|
9098
|
-
const defaultDeserialize = defaultSerialize;
|
|
9099
|
-
const { clearTimeout: clearTimeout$1, setTimeout: setTimeout$1 } = globalThis;
|
|
9100
|
-
const random = Math.random.bind(Math);
|
|
9101
|
-
function createBirpc(functions, options) {
|
|
9102
|
-
const {
|
|
9103
|
-
post,
|
|
9104
|
-
on,
|
|
9105
|
-
off = () => {
|
|
9106
|
-
},
|
|
9107
|
-
eventNames = [],
|
|
9108
|
-
serialize = defaultSerialize,
|
|
9109
|
-
deserialize = defaultDeserialize,
|
|
9110
|
-
resolver,
|
|
9111
|
-
bind = "rpc",
|
|
9112
|
-
timeout = DEFAULT_TIMEOUT
|
|
9113
|
-
} = options;
|
|
9114
|
-
const rpcPromiseMap = /* @__PURE__ */ new Map();
|
|
9115
|
-
let _promise;
|
|
9116
|
-
let closed = false;
|
|
9117
|
-
const rpc = new Proxy({}, {
|
|
9118
|
-
get(_, method) {
|
|
9119
|
-
if (method === "$functions")
|
|
9120
|
-
return functions;
|
|
9121
|
-
if (method === "$close")
|
|
9122
|
-
return close;
|
|
9123
|
-
if (method === "then" && !eventNames.includes("then") && !("then" in functions))
|
|
9124
|
-
return void 0;
|
|
9125
|
-
const sendEvent = (...args) => {
|
|
9126
|
-
post(serialize({ m: method, a: args, t: TYPE_REQUEST }));
|
|
9127
|
-
};
|
|
9128
|
-
if (eventNames.includes(method)) {
|
|
9129
|
-
sendEvent.asEvent = sendEvent;
|
|
9130
|
-
return sendEvent;
|
|
9131
|
-
}
|
|
9132
|
-
const sendCall = async (...args) => {
|
|
9133
|
-
if (closed)
|
|
9134
|
-
throw new Error(`[birpc] rpc is closed, cannot call "${method}"`);
|
|
9135
|
-
if (_promise) {
|
|
9136
|
-
try {
|
|
9137
|
-
await _promise;
|
|
9138
|
-
} finally {
|
|
9139
|
-
_promise = void 0;
|
|
9140
|
-
}
|
|
9141
|
-
}
|
|
9142
|
-
return new Promise((resolve, reject) => {
|
|
9143
|
-
const id = nanoid();
|
|
9144
|
-
let timeoutId;
|
|
9145
|
-
if (timeout >= 0) {
|
|
9146
|
-
timeoutId = setTimeout$1(() => {
|
|
9147
|
-
try {
|
|
9148
|
-
const handleResult = options.onTimeoutError?.(method, args);
|
|
9149
|
-
if (handleResult !== true)
|
|
9150
|
-
throw new Error(`[birpc] timeout on calling "${method}"`);
|
|
9151
|
-
} catch (e) {
|
|
9152
|
-
reject(e);
|
|
9153
|
-
}
|
|
9154
|
-
rpcPromiseMap.delete(id);
|
|
9155
|
-
}, timeout);
|
|
9156
|
-
if (typeof timeoutId === "object")
|
|
9157
|
-
timeoutId = timeoutId.unref?.();
|
|
9158
|
-
}
|
|
9159
|
-
rpcPromiseMap.set(id, { resolve, reject, timeoutId, method });
|
|
9160
|
-
post(serialize({ m: method, a: args, i: id, t: "q" }));
|
|
9161
|
-
});
|
|
9162
|
-
};
|
|
9163
|
-
sendCall.asEvent = sendEvent;
|
|
9164
|
-
return sendCall;
|
|
9165
|
-
}
|
|
9166
|
-
});
|
|
9167
|
-
function close(error) {
|
|
9168
|
-
closed = true;
|
|
9169
|
-
rpcPromiseMap.forEach(({ reject, method }) => {
|
|
9170
|
-
reject(error || new Error(`[birpc] rpc is closed, cannot call "${method}"`));
|
|
9171
|
-
});
|
|
9172
|
-
rpcPromiseMap.clear();
|
|
9173
|
-
off(onMessage);
|
|
9174
|
-
}
|
|
9175
|
-
async function onMessage(data, ...extra) {
|
|
9176
|
-
let msg;
|
|
9177
|
-
try {
|
|
9178
|
-
msg = deserialize(data);
|
|
9179
|
-
} catch (e) {
|
|
9180
|
-
if (options.onGeneralError?.(e) !== true)
|
|
9181
|
-
throw e;
|
|
9182
|
-
return;
|
|
9183
|
-
}
|
|
9184
|
-
if (msg.t === TYPE_REQUEST) {
|
|
9185
|
-
const { m: method, a: args } = msg;
|
|
9186
|
-
let result, error;
|
|
9187
|
-
const fn = resolver ? resolver(method, functions[method]) : functions[method];
|
|
9188
|
-
if (!fn) {
|
|
9189
|
-
error = new Error(`[birpc] function "${method}" not found`);
|
|
9190
|
-
} else {
|
|
9191
|
-
try {
|
|
9192
|
-
result = await fn.apply(bind === "rpc" ? rpc : functions, args);
|
|
9193
|
-
} catch (e) {
|
|
9194
|
-
error = e;
|
|
9195
|
-
}
|
|
9196
|
-
}
|
|
9197
|
-
if (msg.i) {
|
|
9198
|
-
if (error && options.onError)
|
|
9199
|
-
options.onError(error, method, args);
|
|
9200
|
-
if (error && options.onFunctionError) {
|
|
9201
|
-
if (options.onFunctionError(error, method, args) === true)
|
|
9202
|
-
return;
|
|
9203
|
-
}
|
|
9204
|
-
if (!error) {
|
|
9205
|
-
try {
|
|
9206
|
-
post(serialize({ t: TYPE_RESPONSE, i: msg.i, r: result }), ...extra);
|
|
9207
|
-
return;
|
|
9208
|
-
} catch (e) {
|
|
9209
|
-
error = e;
|
|
9210
|
-
if (options.onGeneralError?.(e, method, args) !== true)
|
|
9211
|
-
throw e;
|
|
9212
|
-
}
|
|
9213
|
-
}
|
|
9214
|
-
try {
|
|
9215
|
-
post(serialize({ t: TYPE_RESPONSE, i: msg.i, e: error }), ...extra);
|
|
9216
|
-
} catch (e) {
|
|
9217
|
-
if (options.onGeneralError?.(e, method, args) !== true)
|
|
9218
|
-
throw e;
|
|
9219
|
-
}
|
|
9220
|
-
}
|
|
9221
|
-
} else {
|
|
9222
|
-
const { i: ack, r: result, e: error } = msg;
|
|
9223
|
-
const promise = rpcPromiseMap.get(ack);
|
|
9224
|
-
if (promise) {
|
|
9225
|
-
clearTimeout$1(promise.timeoutId);
|
|
9226
|
-
if (error)
|
|
9227
|
-
promise.reject(error);
|
|
9228
|
-
else
|
|
9229
|
-
promise.resolve(result);
|
|
9230
|
-
}
|
|
9231
|
-
rpcPromiseMap.delete(ack);
|
|
9232
|
-
}
|
|
9233
|
-
}
|
|
9234
|
-
_promise = on(onMessage);
|
|
9235
|
-
return rpc;
|
|
9236
|
-
}
|
|
9237
|
-
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
9238
|
-
function nanoid(size = 21) {
|
|
9239
|
-
let id = "";
|
|
9240
|
-
let i = size;
|
|
9241
|
-
while (i--)
|
|
9242
|
-
id += urlAlphabet[random() * 64 | 0];
|
|
9243
|
-
return id;
|
|
9244
|
-
}
|
|
9245
|
-
|
|
9246
|
-
/* Injected with object hook! */
|
|
9247
|
-
|
|
9248
9149
|
/*!
|
|
9249
|
-
* pinia v3.0.
|
|
9150
|
+
* pinia v3.0.3
|
|
9250
9151
|
* (c) 2025 Eduardo San Martin Morote
|
|
9251
9152
|
* @license MIT
|
|
9252
9153
|
*/
|
|
@@ -9314,7 +9215,130 @@ var FilterMatchMode = {
|
|
|
9314
9215
|
|
|
9315
9216
|
/* Injected with object hook! */
|
|
9316
9217
|
|
|
9317
|
-
var style=
|
|
9218
|
+
var style=css$1`
|
|
9219
|
+
*,
|
|
9220
|
+
::before,
|
|
9221
|
+
::after {
|
|
9222
|
+
box-sizing: border-box;
|
|
9223
|
+
}
|
|
9224
|
+
|
|
9225
|
+
/* Non vue overlay animations */
|
|
9226
|
+
.p-connected-overlay {
|
|
9227
|
+
opacity: 0;
|
|
9228
|
+
transform: scaleY(0.8);
|
|
9229
|
+
transition:
|
|
9230
|
+
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
9231
|
+
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
9232
|
+
}
|
|
9233
|
+
|
|
9234
|
+
.p-connected-overlay-visible {
|
|
9235
|
+
opacity: 1;
|
|
9236
|
+
transform: scaleY(1);
|
|
9237
|
+
}
|
|
9238
|
+
|
|
9239
|
+
.p-connected-overlay-hidden {
|
|
9240
|
+
opacity: 0;
|
|
9241
|
+
transform: scaleY(1);
|
|
9242
|
+
transition: opacity 0.1s linear;
|
|
9243
|
+
}
|
|
9244
|
+
|
|
9245
|
+
/* Vue based overlay animations */
|
|
9246
|
+
.p-connected-overlay-enter-from {
|
|
9247
|
+
opacity: 0;
|
|
9248
|
+
transform: scaleY(0.8);
|
|
9249
|
+
}
|
|
9250
|
+
|
|
9251
|
+
.p-connected-overlay-leave-to {
|
|
9252
|
+
opacity: 0;
|
|
9253
|
+
}
|
|
9254
|
+
|
|
9255
|
+
.p-connected-overlay-enter-active {
|
|
9256
|
+
transition:
|
|
9257
|
+
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
|
|
9258
|
+
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
9259
|
+
}
|
|
9260
|
+
|
|
9261
|
+
.p-connected-overlay-leave-active {
|
|
9262
|
+
transition: opacity 0.1s linear;
|
|
9263
|
+
}
|
|
9264
|
+
|
|
9265
|
+
/* Toggleable Content */
|
|
9266
|
+
.p-toggleable-content-enter-from,
|
|
9267
|
+
.p-toggleable-content-leave-to {
|
|
9268
|
+
max-height: 0;
|
|
9269
|
+
}
|
|
9270
|
+
|
|
9271
|
+
.p-toggleable-content-enter-to,
|
|
9272
|
+
.p-toggleable-content-leave-from {
|
|
9273
|
+
max-height: 1000px;
|
|
9274
|
+
}
|
|
9275
|
+
|
|
9276
|
+
.p-toggleable-content-leave-active {
|
|
9277
|
+
overflow: hidden;
|
|
9278
|
+
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
|
|
9279
|
+
}
|
|
9280
|
+
|
|
9281
|
+
.p-toggleable-content-enter-active {
|
|
9282
|
+
overflow: hidden;
|
|
9283
|
+
transition: max-height 1s ease-in-out;
|
|
9284
|
+
}
|
|
9285
|
+
|
|
9286
|
+
.p-disabled,
|
|
9287
|
+
.p-disabled * {
|
|
9288
|
+
cursor: default;
|
|
9289
|
+
pointer-events: none;
|
|
9290
|
+
user-select: none;
|
|
9291
|
+
}
|
|
9292
|
+
|
|
9293
|
+
.p-disabled,
|
|
9294
|
+
.p-component:disabled {
|
|
9295
|
+
opacity: dt('disabled.opacity');
|
|
9296
|
+
}
|
|
9297
|
+
|
|
9298
|
+
.pi {
|
|
9299
|
+
font-size: dt('icon.size');
|
|
9300
|
+
}
|
|
9301
|
+
|
|
9302
|
+
.p-icon {
|
|
9303
|
+
width: dt('icon.size');
|
|
9304
|
+
height: dt('icon.size');
|
|
9305
|
+
}
|
|
9306
|
+
|
|
9307
|
+
.p-overlay-mask {
|
|
9308
|
+
background: dt('mask.background');
|
|
9309
|
+
color: dt('mask.color');
|
|
9310
|
+
position: fixed;
|
|
9311
|
+
top: 0;
|
|
9312
|
+
left: 0;
|
|
9313
|
+
width: 100%;
|
|
9314
|
+
height: 100%;
|
|
9315
|
+
}
|
|
9316
|
+
|
|
9317
|
+
.p-overlay-mask-enter {
|
|
9318
|
+
animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;
|
|
9319
|
+
}
|
|
9320
|
+
|
|
9321
|
+
.p-overlay-mask-leave {
|
|
9322
|
+
animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;
|
|
9323
|
+
}
|
|
9324
|
+
|
|
9325
|
+
@keyframes p-overlay-mask-enter-animation {
|
|
9326
|
+
from {
|
|
9327
|
+
background: transparent;
|
|
9328
|
+
}
|
|
9329
|
+
to {
|
|
9330
|
+
background: dt('mask.background');
|
|
9331
|
+
}
|
|
9332
|
+
}
|
|
9333
|
+
@keyframes p-overlay-mask-leave-animation {
|
|
9334
|
+
from {
|
|
9335
|
+
background: dt('mask.background');
|
|
9336
|
+
}
|
|
9337
|
+
to {
|
|
9338
|
+
background: transparent;
|
|
9339
|
+
}
|
|
9340
|
+
}
|
|
9341
|
+
`;/* Injected with object hook! */
|
|
9318
9342
|
|
|
9319
9343
|
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
9320
9344
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -9422,6 +9446,7 @@ function useStyle(css) {
|
|
|
9422
9446
|
/* Injected with object hook! */
|
|
9423
9447
|
|
|
9424
9448
|
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
9449
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
9425
9450
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
9426
9451
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9427
9452
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -9433,6 +9458,7 @@ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
9433
9458
|
function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
9434
9459
|
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
|
|
9435
9460
|
function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9461
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9436
9462
|
var css = function css(_ref) {
|
|
9437
9463
|
var dt = _ref.dt;
|
|
9438
9464
|
return "\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n pointer-events: none;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: ".concat(dt('scrollbar.width'), ";\n}\n");
|
|
@@ -9450,9 +9476,7 @@ var BaseStyle = {
|
|
|
9450
9476
|
var transform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (cs) {
|
|
9451
9477
|
return cs;
|
|
9452
9478
|
};
|
|
9453
|
-
var computedStyle = transform(
|
|
9454
|
-
dt: dt
|
|
9455
|
-
}));
|
|
9479
|
+
var computedStyle = transform(css$1(_templateObject || (_templateObject = _taggedTemplateLiteral(["", ""])), style));
|
|
9456
9480
|
return isNotEmpty(computedStyle) ? useStyle(minifyCSS(computedStyle), _objectSpread$1({
|
|
9457
9481
|
name: this.name
|
|
9458
9482
|
}, options)) : {};
|
|
@@ -9467,7 +9491,7 @@ var BaseStyle = {
|
|
|
9467
9491
|
var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
9468
9492
|
return this.load(this.style, options, function () {
|
|
9469
9493
|
var computedStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
9470
|
-
return config_default.transformCSS(options.name || _this.name, "".concat(computedStyle).concat(style));
|
|
9494
|
+
return config_default.transformCSS(options.name || _this.name, "".concat(computedStyle).concat(css$1(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["", ""])), style)));
|
|
9471
9495
|
});
|
|
9472
9496
|
},
|
|
9473
9497
|
getCommonTheme: function getCommonTheme(params) {
|
|
@@ -9492,7 +9516,7 @@ var BaseStyle = {
|
|
|
9492
9516
|
var _css = resolve$1(this.css, {
|
|
9493
9517
|
dt: dt
|
|
9494
9518
|
}) || '';
|
|
9495
|
-
var _style = minifyCSS(""
|
|
9519
|
+
var _style = minifyCSS(css$1(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["", "", ""])), _css, extendedCSS));
|
|
9496
9520
|
var _props = Object.entries(props).reduce(function (acc, _ref2) {
|
|
9497
9521
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
9498
9522
|
k = _ref3[0],
|
|
@@ -9512,9 +9536,9 @@ var BaseStyle = {
|
|
|
9512
9536
|
var css = [config_default.getStyleSheet(this.name, params, props)];
|
|
9513
9537
|
if (this.style) {
|
|
9514
9538
|
var name = this.name === 'base' ? 'global-style' : "".concat(this.name, "-style");
|
|
9515
|
-
var _css = resolve$1(this.style, {
|
|
9539
|
+
var _css = css$1(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["", ""])), resolve$1(this.style, {
|
|
9516
9540
|
dt: dt
|
|
9517
|
-
});
|
|
9541
|
+
}));
|
|
9518
9542
|
var _style = minifyCSS(config_default.transformCSS(name, _css));
|
|
9519
9543
|
var _props = Object.entries(props).reduce(function (acc, _ref4) {
|
|
9520
9544
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
@@ -11774,31 +11798,31 @@ const routes = [
|
|
|
11774
11798
|
{
|
|
11775
11799
|
path: "/",
|
|
11776
11800
|
name: "/",
|
|
11777
|
-
component: () => __vitePreload(() => import('./index-
|
|
11801
|
+
component: () => __vitePreload(() => import('./index-Ch6xFAPn.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
|
|
11778
11802
|
/* no children */
|
|
11779
11803
|
},
|
|
11780
11804
|
{
|
|
11781
11805
|
path: "/about",
|
|
11782
11806
|
name: "/about",
|
|
11783
|
-
component: () => __vitePreload(() => import('./about-
|
|
11807
|
+
component: () => __vitePreload(() => import('./about-rjfU4__7.js'),true ?[]:void 0,import.meta.url)
|
|
11784
11808
|
/* no children */
|
|
11785
11809
|
},
|
|
11786
11810
|
{
|
|
11787
11811
|
path: "/categories",
|
|
11788
11812
|
name: "/categories",
|
|
11789
|
-
component: () => __vitePreload(() => import('./categories-
|
|
11813
|
+
component: () => __vitePreload(() => import('./categories-BBfumNEa.js'),true ?[]:void 0,import.meta.url)
|
|
11790
11814
|
/* no children */
|
|
11791
11815
|
},
|
|
11792
11816
|
{
|
|
11793
11817
|
path: "/migration",
|
|
11794
11818
|
name: "/migration",
|
|
11795
|
-
component: () => __vitePreload(() => import('./migration-
|
|
11819
|
+
component: () => __vitePreload(() => import('./migration-Bm3qOgQn.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
|
|
11796
11820
|
/* no children */
|
|
11797
11821
|
},
|
|
11798
11822
|
{
|
|
11799
11823
|
path: "/tags",
|
|
11800
11824
|
name: "/tags",
|
|
11801
|
-
component: () => __vitePreload(() => import('./tags-
|
|
11825
|
+
component: () => __vitePreload(() => import('./tags-CCpP7bH0.js'),true ?[]:void 0,import.meta.url)
|
|
11802
11826
|
/* no children */
|
|
11803
11827
|
}
|
|
11804
11828
|
];
|
|
@@ -11825,7 +11849,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11825
11849
|
/* Injected with object hook! */
|
|
11826
11850
|
|
|
11827
11851
|
/*!
|
|
11828
|
-
* shared v11.1.
|
|
11852
|
+
* shared v11.1.5
|
|
11829
11853
|
* (c) 2025 kazuya kawaguchi
|
|
11830
11854
|
* Released under the MIT License.
|
|
11831
11855
|
*/
|
|
@@ -11903,7 +11927,7 @@ function deepCopy(src, des) {
|
|
|
11903
11927
|
/* Injected with object hook! */
|
|
11904
11928
|
|
|
11905
11929
|
/*!
|
|
11906
|
-
* message-compiler v11.1.
|
|
11930
|
+
* message-compiler v11.1.5
|
|
11907
11931
|
* (c) 2025 kazuya kawaguchi
|
|
11908
11932
|
* Released under the MIT License.
|
|
11909
11933
|
*/
|
|
@@ -13326,7 +13350,7 @@ function baseCompile$1(source, options = {}) {
|
|
|
13326
13350
|
/* Injected with object hook! */
|
|
13327
13351
|
|
|
13328
13352
|
/*!
|
|
13329
|
-
* core-base v11.1.
|
|
13353
|
+
* core-base v11.1.5
|
|
13330
13354
|
* (c) 2025 kazuya kawaguchi
|
|
13331
13355
|
* Released under the MIT License.
|
|
13332
13356
|
*/
|
|
@@ -14093,7 +14117,7 @@ function resolveValue(obj, path) {
|
|
|
14093
14117
|
}
|
|
14094
14118
|
return last;
|
|
14095
14119
|
}
|
|
14096
|
-
const VERSION$1 = "11.1.
|
|
14120
|
+
const VERSION$1 = "11.1.5";
|
|
14097
14121
|
const NOT_REOSLVED = -1;
|
|
14098
14122
|
const DEFAULT_LOCALE = "en-US";
|
|
14099
14123
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -14784,11 +14808,11 @@ function getMessageContextOptions(context, locale, message, options) {
|
|
|
14784
14808
|
/* Injected with object hook! */
|
|
14785
14809
|
|
|
14786
14810
|
/*!
|
|
14787
|
-
* vue-i18n v11.1.
|
|
14811
|
+
* vue-i18n v11.1.5
|
|
14788
14812
|
* (c) 2025 kazuya kawaguchi
|
|
14789
14813
|
* Released under the MIT License.
|
|
14790
14814
|
*/
|
|
14791
|
-
const VERSION = "11.1.
|
|
14815
|
+
const VERSION = "11.1.5";
|
|
14792
14816
|
function initFeatureFlags() {
|
|
14793
14817
|
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
|
|
14794
14818
|
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
@@ -15095,10 +15119,10 @@ function createComposer(options = {}) {
|
|
|
15095
15119
|
return t(...[arg1, arg2, assign({ resolvedMessage: true }, arg3 || {})]);
|
|
15096
15120
|
}
|
|
15097
15121
|
function d(...args) {
|
|
15098
|
-
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(val));
|
|
15122
|
+
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(val) || isArray(val));
|
|
15099
15123
|
}
|
|
15100
15124
|
function n(...args) {
|
|
15101
|
-
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(val));
|
|
15125
|
+
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(val) || isArray(val));
|
|
15102
15126
|
}
|
|
15103
15127
|
function normalize(values) {
|
|
15104
15128
|
return values.map((val) => isString(val) || isNumber(val) || isBoolean(val) ? createTextNode(String(val)) : val);
|
|
@@ -15398,7 +15422,7 @@ const TranslationImpl = /* @__PURE__ */ defineComponent({
|
|
|
15398
15422
|
__useComponent: true
|
|
15399
15423
|
});
|
|
15400
15424
|
return () => {
|
|
15401
|
-
const keys = Object.keys(slots).filter((key) => key !== "_");
|
|
15425
|
+
const keys = Object.keys(slots).filter((key) => key[0] !== "_");
|
|
15402
15426
|
const options = create();
|
|
15403
15427
|
if (props.locale) {
|
|
15404
15428
|
options.locale = props.locale;
|
|
@@ -16295,18 +16319,33 @@ function useStorage(key, defaults2, storage, options = {}) {
|
|
|
16295
16319
|
{ flush, deep, eventFilter }
|
|
16296
16320
|
);
|
|
16297
16321
|
watch(keyComputed, () => update(), { flush });
|
|
16322
|
+
let firstMounted = false;
|
|
16323
|
+
const onStorageEvent = (ev) => {
|
|
16324
|
+
if (initOnMounted && !firstMounted) {
|
|
16325
|
+
return;
|
|
16326
|
+
}
|
|
16327
|
+
update(ev);
|
|
16328
|
+
};
|
|
16329
|
+
const onStorageCustomEvent = (ev) => {
|
|
16330
|
+
if (initOnMounted && !firstMounted) {
|
|
16331
|
+
return;
|
|
16332
|
+
}
|
|
16333
|
+
updateFromCustomEvent(ev);
|
|
16334
|
+
};
|
|
16298
16335
|
if (window2 && listenToStorageChanges) {
|
|
16336
|
+
if (storage instanceof Storage)
|
|
16337
|
+
useEventListener(window2, "storage", onStorageEvent, { passive: true });
|
|
16338
|
+
else
|
|
16339
|
+
useEventListener(window2, customStorageEventName, onStorageCustomEvent);
|
|
16340
|
+
}
|
|
16341
|
+
if (initOnMounted) {
|
|
16299
16342
|
tryOnMounted(() => {
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
else
|
|
16303
|
-
useEventListener(window2, customStorageEventName, updateFromCustomEvent);
|
|
16304
|
-
if (initOnMounted)
|
|
16305
|
-
update();
|
|
16343
|
+
firstMounted = true;
|
|
16344
|
+
update();
|
|
16306
16345
|
});
|
|
16307
|
-
}
|
|
16308
|
-
if (!initOnMounted)
|
|
16346
|
+
} else {
|
|
16309
16347
|
update();
|
|
16348
|
+
}
|
|
16310
16349
|
function dispatchWriteEvent(oldValue, newValue) {
|
|
16311
16350
|
if (window2) {
|
|
16312
16351
|
const payload = {
|
|
@@ -16692,7 +16731,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
16692
16731
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
16693
16732
|
createBaseVNode("div", { i: "carbon-sun dark:carbon-moon" }, null, -1)
|
|
16694
16733
|
])),
|
|
16695
|
-
_: 1
|
|
16734
|
+
_: 1,
|
|
16735
|
+
__: [1]
|
|
16696
16736
|
}, 8, ["title"]);
|
|
16697
16737
|
};
|
|
16698
16738
|
}
|
|
@@ -16731,7 +16771,7 @@ const i18n = createI18n({
|
|
|
16731
16771
|
messages: {}
|
|
16732
16772
|
});
|
|
16733
16773
|
const localesMap = Object.fromEntries(
|
|
16734
|
-
Object.entries(/* #__PURE__ */ Object.assign({"../locales/en.yml": () => __vitePreload(() => import('./en-
|
|
16774
|
+
Object.entries(/* #__PURE__ */ Object.assign({"../locales/en.yml": () => __vitePreload(() => import('./en-BB5iiffm.js'),true ?[]:void 0,import.meta.url),"../locales/zh-CN.yml": () => __vitePreload(() => import('./zh-CN-C2F6UN5K.js'),true ?[]:void 0,import.meta.url)})).map(([path, loadLocale]) => [path.match(/([\w-]*)\.yml$/)?.[1], loadLocale])
|
|
16735
16775
|
);
|
|
16736
16776
|
const availableLocales = Object.keys(localesMap);
|
|
16737
16777
|
const loadedLanguages = [];
|
|
@@ -16883,7 +16923,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
16883
16923
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
16884
16924
|
createBaseVNode("div", { "i-ri-book-line": "" }, null, -1)
|
|
16885
16925
|
])),
|
|
16886
|
-
_: 1
|
|
16926
|
+
_: 1,
|
|
16927
|
+
__: [0]
|
|
16887
16928
|
})
|
|
16888
16929
|
]);
|
|
16889
16930
|
};
|
|
@@ -16892,6 +16933,162 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
16892
16933
|
|
|
16893
16934
|
/* Injected with object hook! */
|
|
16894
16935
|
|
|
16936
|
+
const TYPE_REQUEST = "q";
|
|
16937
|
+
const TYPE_RESPONSE = "s";
|
|
16938
|
+
const DEFAULT_TIMEOUT = 6e4;
|
|
16939
|
+
function defaultSerialize(i) {
|
|
16940
|
+
return i;
|
|
16941
|
+
}
|
|
16942
|
+
const defaultDeserialize = defaultSerialize;
|
|
16943
|
+
const { clearTimeout: clearTimeout$1, setTimeout: setTimeout$1 } = globalThis;
|
|
16944
|
+
const random = Math.random.bind(Math);
|
|
16945
|
+
function createBirpc(functions, options) {
|
|
16946
|
+
const {
|
|
16947
|
+
post,
|
|
16948
|
+
on,
|
|
16949
|
+
off = () => {
|
|
16950
|
+
},
|
|
16951
|
+
eventNames = [],
|
|
16952
|
+
serialize = defaultSerialize,
|
|
16953
|
+
deserialize = defaultDeserialize,
|
|
16954
|
+
resolver,
|
|
16955
|
+
bind = "rpc",
|
|
16956
|
+
timeout = DEFAULT_TIMEOUT
|
|
16957
|
+
} = options;
|
|
16958
|
+
const rpcPromiseMap = /* @__PURE__ */ new Map();
|
|
16959
|
+
let _promise;
|
|
16960
|
+
let closed = false;
|
|
16961
|
+
const rpc = new Proxy({}, {
|
|
16962
|
+
get(_, method) {
|
|
16963
|
+
if (method === "$functions")
|
|
16964
|
+
return functions;
|
|
16965
|
+
if (method === "$close")
|
|
16966
|
+
return close;
|
|
16967
|
+
if (method === "then" && !eventNames.includes("then") && !("then" in functions))
|
|
16968
|
+
return void 0;
|
|
16969
|
+
const sendEvent = (...args) => {
|
|
16970
|
+
post(serialize({ m: method, a: args, t: TYPE_REQUEST }));
|
|
16971
|
+
};
|
|
16972
|
+
if (eventNames.includes(method)) {
|
|
16973
|
+
sendEvent.asEvent = sendEvent;
|
|
16974
|
+
return sendEvent;
|
|
16975
|
+
}
|
|
16976
|
+
const sendCall = async (...args) => {
|
|
16977
|
+
if (closed)
|
|
16978
|
+
throw new Error(`[birpc] rpc is closed, cannot call "${method}"`);
|
|
16979
|
+
if (_promise) {
|
|
16980
|
+
try {
|
|
16981
|
+
await _promise;
|
|
16982
|
+
} finally {
|
|
16983
|
+
_promise = void 0;
|
|
16984
|
+
}
|
|
16985
|
+
}
|
|
16986
|
+
return new Promise((resolve, reject) => {
|
|
16987
|
+
const id = nanoid();
|
|
16988
|
+
let timeoutId;
|
|
16989
|
+
if (timeout >= 0) {
|
|
16990
|
+
timeoutId = setTimeout$1(() => {
|
|
16991
|
+
try {
|
|
16992
|
+
const handleResult = options.onTimeoutError?.(method, args);
|
|
16993
|
+
if (handleResult !== true)
|
|
16994
|
+
throw new Error(`[birpc] timeout on calling "${method}"`);
|
|
16995
|
+
} catch (e) {
|
|
16996
|
+
reject(e);
|
|
16997
|
+
}
|
|
16998
|
+
rpcPromiseMap.delete(id);
|
|
16999
|
+
}, timeout);
|
|
17000
|
+
if (typeof timeoutId === "object")
|
|
17001
|
+
timeoutId = timeoutId.unref?.();
|
|
17002
|
+
}
|
|
17003
|
+
rpcPromiseMap.set(id, { resolve, reject, timeoutId, method });
|
|
17004
|
+
post(serialize({ m: method, a: args, i: id, t: "q" }));
|
|
17005
|
+
});
|
|
17006
|
+
};
|
|
17007
|
+
sendCall.asEvent = sendEvent;
|
|
17008
|
+
return sendCall;
|
|
17009
|
+
}
|
|
17010
|
+
});
|
|
17011
|
+
function close(error) {
|
|
17012
|
+
closed = true;
|
|
17013
|
+
rpcPromiseMap.forEach(({ reject, method }) => {
|
|
17014
|
+
reject(error || new Error(`[birpc] rpc is closed, cannot call "${method}"`));
|
|
17015
|
+
});
|
|
17016
|
+
rpcPromiseMap.clear();
|
|
17017
|
+
off(onMessage);
|
|
17018
|
+
}
|
|
17019
|
+
async function onMessage(data, ...extra) {
|
|
17020
|
+
let msg;
|
|
17021
|
+
try {
|
|
17022
|
+
msg = deserialize(data);
|
|
17023
|
+
} catch (e) {
|
|
17024
|
+
if (options.onGeneralError?.(e) !== true)
|
|
17025
|
+
throw e;
|
|
17026
|
+
return;
|
|
17027
|
+
}
|
|
17028
|
+
if (msg.t === TYPE_REQUEST) {
|
|
17029
|
+
const { m: method, a: args } = msg;
|
|
17030
|
+
let result, error;
|
|
17031
|
+
const fn = resolver ? resolver(method, functions[method]) : functions[method];
|
|
17032
|
+
if (!fn) {
|
|
17033
|
+
error = new Error(`[birpc] function "${method}" not found`);
|
|
17034
|
+
} else {
|
|
17035
|
+
try {
|
|
17036
|
+
result = await fn.apply(bind === "rpc" ? rpc : functions, args);
|
|
17037
|
+
} catch (e) {
|
|
17038
|
+
error = e;
|
|
17039
|
+
}
|
|
17040
|
+
}
|
|
17041
|
+
if (msg.i) {
|
|
17042
|
+
if (error && options.onError)
|
|
17043
|
+
options.onError(error, method, args);
|
|
17044
|
+
if (error && options.onFunctionError) {
|
|
17045
|
+
if (options.onFunctionError(error, method, args) === true)
|
|
17046
|
+
return;
|
|
17047
|
+
}
|
|
17048
|
+
if (!error) {
|
|
17049
|
+
try {
|
|
17050
|
+
post(serialize({ t: TYPE_RESPONSE, i: msg.i, r: result }), ...extra);
|
|
17051
|
+
return;
|
|
17052
|
+
} catch (e) {
|
|
17053
|
+
error = e;
|
|
17054
|
+
if (options.onGeneralError?.(e, method, args) !== true)
|
|
17055
|
+
throw e;
|
|
17056
|
+
}
|
|
17057
|
+
}
|
|
17058
|
+
try {
|
|
17059
|
+
post(serialize({ t: TYPE_RESPONSE, i: msg.i, e: error }), ...extra);
|
|
17060
|
+
} catch (e) {
|
|
17061
|
+
if (options.onGeneralError?.(e, method, args) !== true)
|
|
17062
|
+
throw e;
|
|
17063
|
+
}
|
|
17064
|
+
}
|
|
17065
|
+
} else {
|
|
17066
|
+
const { i: ack, r: result, e: error } = msg;
|
|
17067
|
+
const promise = rpcPromiseMap.get(ack);
|
|
17068
|
+
if (promise) {
|
|
17069
|
+
clearTimeout$1(promise.timeoutId);
|
|
17070
|
+
if (error)
|
|
17071
|
+
promise.reject(error);
|
|
17072
|
+
else
|
|
17073
|
+
promise.resolve(result);
|
|
17074
|
+
}
|
|
17075
|
+
rpcPromiseMap.delete(ack);
|
|
17076
|
+
}
|
|
17077
|
+
}
|
|
17078
|
+
_promise = on(onMessage);
|
|
17079
|
+
return rpc;
|
|
17080
|
+
}
|
|
17081
|
+
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
17082
|
+
function nanoid(size = 21) {
|
|
17083
|
+
let id = "";
|
|
17084
|
+
let i = size;
|
|
17085
|
+
while (i--)
|
|
17086
|
+
id += urlAlphabet[random() * 64 | 0];
|
|
17087
|
+
return id;
|
|
17088
|
+
}
|
|
17089
|
+
|
|
17090
|
+
/* Injected with object hook! */
|
|
17091
|
+
|
|
16895
17092
|
function createRPCClient(name, hot, functions = {}, options = {}) {
|
|
16896
17093
|
const event = `${name}:rpc`;
|
|
16897
17094
|
const promise = Promise.resolve(hot).then((r) => {
|
|
@@ -16976,7 +17173,7 @@ function getWindowProperty(property) {
|
|
|
16976
17173
|
|
|
16977
17174
|
/* Injected with object hook! */
|
|
16978
17175
|
|
|
16979
|
-
const devtoolsRouter =
|
|
17176
|
+
const devtoolsRouter = shallowRef();
|
|
16980
17177
|
const activePath = ref("");
|
|
16981
17178
|
const frontmatter = ref();
|
|
16982
17179
|
const pageData = ref();
|
|
@@ -16990,15 +17187,19 @@ function initDevtoolsClient() {
|
|
|
16990
17187
|
activePath.value = to.path;
|
|
16991
17188
|
next();
|
|
16992
17189
|
});
|
|
16993
|
-
onMounted(() => {
|
|
16994
|
-
frontmatter.value = getWindowProperty("$frontmatter");
|
|
16995
|
-
pageData.value = getWindowProperty("$pageData");
|
|
16996
|
-
});
|
|
16997
17190
|
devtoolsRouter.value.afterEach?.(async () => {
|
|
16998
17191
|
await nextTick();
|
|
16999
17192
|
frontmatter.value = getWindowProperty("$frontmatter");
|
|
17000
17193
|
pageData.value = getWindowProperty("$pageData");
|
|
17001
17194
|
});
|
|
17195
|
+
frontmatter.value = getWindowProperty("$frontmatter");
|
|
17196
|
+
pageData.value = getWindowProperty("$pageData");
|
|
17197
|
+
activePath.value = devtoolsRouter.value?.currentRoute.value.path || "";
|
|
17198
|
+
clientPageData.value = {
|
|
17199
|
+
frontmatter: frontmatter.value || {},
|
|
17200
|
+
filePath: pageData.value?.filePath || "",
|
|
17201
|
+
routePath: devtoolsRouter.value?.currentRoute.value.path || ""
|
|
17202
|
+
};
|
|
17002
17203
|
}
|
|
17003
17204
|
|
|
17004
17205
|
/* Injected with object hook! */
|
|
@@ -17126,4 +17327,4 @@ app.mount("#app");
|
|
|
17126
17327
|
|
|
17127
17328
|
/* Injected with object hook! */
|
|
17128
17329
|
|
|
17129
|
-
export {
|
|
17330
|
+
export { getSelection as $, createTextVNode as A, BaseStyle as B, contains as C, getScrollableParents as D, EventBus as E, Fragment as F, isClient$1 as G, setAttribute as H, localeComparator as I, getFocusableElements as J, find as K, findSingle as L, getIndex as M, getAttribute as N, relativePosition as O, getOuterWidth as P, absolutePosition as Q, isTouchDevice as R, addStyle as S, Teleport as T, normalizeStyle as U, resolveDynamicComponent as V, Transition as W, vShow as X, withKeys as Y, clearSelection as Z, _export_sfc as _, createElementBlock as a, toHandlers as a0, useI18n as a1, dayjs as a2, clientPageData as a3, toRaw as a4, pageData as a5, activePath as a6, onMounted as a7, rpc as a8, getDefaultExportFromCjs as a9, useId as aA, isElement as aB, useSlots as aC, onBeforeUnmount as aD, provide as aE, inject as aF, getCurrentInstance as aG, h as aH, nextTick as aI, computed as aa, devtoolsRouter as ab, useScroll as ac, postList as ad, isStaticMode as ae, vModelCheckbox as af, vModelText as ag, getKeyValue as ah, isFunction$2 as ai, toCapitalCase as aj, service_default as ak, config_default as al, isString$2 as am, toFlatCase as an, resolve$1 as ao, isObject$3 as ap, isEmpty as aq, PrimeVueService as ar, isArray$3 as as, removeClass as at, getHeight as au, getWidth as av, getOuterHeight as aw, getOffset as ax, addClass as ay, createElement as az, createBaseVNode as b, css$1 as c, renderSlot as d, createCommentVNode as e, equals as f, getAppWindow as g, resolveFieldData as h, isNotEmpty as i, resolveComponent as j, renderList as k, createBlock as l, mergeProps as m, normalizeClass as n, openBlock as o, createSlots as p, withCtx as q, resolveDirective as r, defineComponent as s, toDisplayString$1 as t, useModel as u, ref as v, withDirectives as w, watch as x, createVNode as y, unref as z };
|