@vingy/vuebugger 0.3.3 → 0.4.0
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/README.md +36 -2
- package/dist/constants.d.ts +2 -0
- package/dist/debug.d.ts +8 -0
- package/dist/devtools.d.ts +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3140 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/registry.d.ts +6 -0
- package/dist/types.d.ts +16 -0
- package/package.json +11 -8
- package/dist/index.d.mts +0 -32
- package/dist/index.mjs +0 -3959
package/dist/index.js
ADDED
|
@@ -0,0 +1,3140 @@
|
|
|
1
|
+
import { effectScope as e, getCurrentInstance as t, getCurrentScope as n, isReadonly as r, onScopeDispose as i, toValue as a, watch as o } from "vue";
|
|
2
|
+
//#region src/registry.ts
|
|
3
|
+
var s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = [], u = (e) => l.forEach((t) => t(e)), d = (e) => (t) => {
|
|
4
|
+
e(t), u(t);
|
|
5
|
+
}, f = d((e) => {
|
|
6
|
+
let { uid: t, groupId: n } = e;
|
|
7
|
+
s.set(t, e);
|
|
8
|
+
let r = c.get(n);
|
|
9
|
+
r ? r.add(t) : c.set(n, new Set([t]));
|
|
10
|
+
}), p = d((e) => {
|
|
11
|
+
let { uid: t, groupId: n } = e;
|
|
12
|
+
s.delete(t);
|
|
13
|
+
let r = c.get(n);
|
|
14
|
+
r?.delete(t), r?.size === 0 && c.delete(n);
|
|
15
|
+
}), m = (e) => {
|
|
16
|
+
l.push(e);
|
|
17
|
+
}, h = () => Math.random().toString(36).slice(2, 9), g = (e) => {
|
|
18
|
+
h = e;
|
|
19
|
+
}, ee = /* @__PURE__ */ new Map(), _ = (r, a, o) => {
|
|
20
|
+
let s = t(), c = s?.type.name || s?.type.__name || "No component", l = {
|
|
21
|
+
groupId: r,
|
|
22
|
+
uid: `${c}/${r}-${h()}`,
|
|
23
|
+
componentName: c,
|
|
24
|
+
componentInstance: s,
|
|
25
|
+
debugState: a
|
|
26
|
+
}, u = n();
|
|
27
|
+
if (u) u.run(() => {
|
|
28
|
+
i(() => p(l)), o(l);
|
|
29
|
+
});
|
|
30
|
+
else {
|
|
31
|
+
let t = ee.get(r);
|
|
32
|
+
t && t.stop();
|
|
33
|
+
let n = e();
|
|
34
|
+
ee.set(r, n), n.run(() => {
|
|
35
|
+
i(() => p(l)), o(l);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}, v = (t, n, r) => ((typeof __ENABLE_VUEBUGGER__ > "u" ? !import.meta.env.DEV : !__ENABLE_VUEBUGGER__) || _(t, n, (t) => {
|
|
39
|
+
if (r?.enable === void 0) o(() => n, (e) => {
|
|
40
|
+
f({
|
|
41
|
+
...t,
|
|
42
|
+
debugState: e
|
|
43
|
+
});
|
|
44
|
+
}, {
|
|
45
|
+
immediate: !0,
|
|
46
|
+
deep: !0
|
|
47
|
+
});
|
|
48
|
+
else {
|
|
49
|
+
let s;
|
|
50
|
+
o(() => a(r.enable), (r) => {
|
|
51
|
+
r ? (s = e(), s.run(() => {
|
|
52
|
+
o(() => n, (e) => {
|
|
53
|
+
f({
|
|
54
|
+
...t,
|
|
55
|
+
debugState: e
|
|
56
|
+
});
|
|
57
|
+
}, {
|
|
58
|
+
immediate: !0,
|
|
59
|
+
deep: !0
|
|
60
|
+
});
|
|
61
|
+
})) : (s?.stop(), s = void 0, p(t));
|
|
62
|
+
}, { immediate: !0 }), i(() => s?.stop());
|
|
63
|
+
}
|
|
64
|
+
}), n), te = Object.create, y = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, b = Object.getOwnPropertyNames, x = Object.getPrototypeOf, re = Object.prototype.hasOwnProperty, S = (e, t) => function() {
|
|
65
|
+
return t || (0, e[b(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
66
|
+
}, C = (e, t, n, r) => {
|
|
67
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = b(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !re.call(e, s) && s !== n && y(e, s, {
|
|
68
|
+
get: ((e) => t[e]).bind(null, s),
|
|
69
|
+
enumerable: !(r = ne(t, s)) || r.enumerable
|
|
70
|
+
});
|
|
71
|
+
return e;
|
|
72
|
+
}, w = (e, t, n) => (n = e == null ? {} : te(x(e)), C(t || !e || !e.__esModule ? y(n, "default", {
|
|
73
|
+
value: e,
|
|
74
|
+
enumerable: !0
|
|
75
|
+
}) : n, e)), T = typeof navigator < "u", E = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {};
|
|
76
|
+
E.chrome !== void 0 && E.chrome.devtools, T && (E.self, E.top), typeof navigator < "u" && navigator.userAgent?.toLowerCase().includes("electron"), typeof window < "u" && window.__NUXT__;
|
|
77
|
+
var D = /* @__PURE__ */ w((/* @__PURE__ */ S({ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js": ((e, t) => {
|
|
78
|
+
t.exports = r;
|
|
79
|
+
function n(e) {
|
|
80
|
+
return e instanceof Buffer ? Buffer.from(e) : new e.constructor(e.buffer.slice(), e.byteOffset, e.length);
|
|
81
|
+
}
|
|
82
|
+
function r(e) {
|
|
83
|
+
if (e ||= {}, e.circles) return i(e);
|
|
84
|
+
let t = /* @__PURE__ */ new Map();
|
|
85
|
+
if (t.set(Date, (e) => new Date(e)), t.set(Map, (e, t) => new Map(a(Array.from(e), t))), t.set(Set, (e, t) => new Set(a(Array.from(e), t))), e.constructorHandlers) for (let n of e.constructorHandlers) t.set(n[0], n[1]);
|
|
86
|
+
let r = null;
|
|
87
|
+
return e.proto ? s : o;
|
|
88
|
+
function a(e, i) {
|
|
89
|
+
let a = Object.keys(e), o = Array(a.length);
|
|
90
|
+
for (let s = 0; s < a.length; s++) {
|
|
91
|
+
let c = a[s], l = e[c];
|
|
92
|
+
typeof l != "object" || !l ? o[c] = l : l.constructor !== Object && (r = t.get(l.constructor)) ? o[c] = r(l, i) : ArrayBuffer.isView(l) ? o[c] = n(l) : o[c] = i(l);
|
|
93
|
+
}
|
|
94
|
+
return o;
|
|
95
|
+
}
|
|
96
|
+
function o(e) {
|
|
97
|
+
if (typeof e != "object" || !e) return e;
|
|
98
|
+
if (Array.isArray(e)) return a(e, o);
|
|
99
|
+
if (e.constructor !== Object && (r = t.get(e.constructor))) return r(e, o);
|
|
100
|
+
let i = {};
|
|
101
|
+
for (let a in e) {
|
|
102
|
+
if (Object.hasOwnProperty.call(e, a) === !1) continue;
|
|
103
|
+
let s = e[a];
|
|
104
|
+
typeof s != "object" || !s ? i[a] = s : s.constructor !== Object && (r = t.get(s.constructor)) ? i[a] = r(s, o) : ArrayBuffer.isView(s) ? i[a] = n(s) : i[a] = o(s);
|
|
105
|
+
}
|
|
106
|
+
return i;
|
|
107
|
+
}
|
|
108
|
+
function s(e) {
|
|
109
|
+
if (typeof e != "object" || !e) return e;
|
|
110
|
+
if (Array.isArray(e)) return a(e, s);
|
|
111
|
+
if (e.constructor !== Object && (r = t.get(e.constructor))) return r(e, s);
|
|
112
|
+
let i = {};
|
|
113
|
+
for (let a in e) {
|
|
114
|
+
let o = e[a];
|
|
115
|
+
typeof o != "object" || !o ? i[a] = o : o.constructor !== Object && (r = t.get(o.constructor)) ? i[a] = r(o, s) : ArrayBuffer.isView(o) ? i[a] = n(o) : i[a] = s(o);
|
|
116
|
+
}
|
|
117
|
+
return i;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function i(e) {
|
|
121
|
+
let t = [], r = [], i = /* @__PURE__ */ new Map();
|
|
122
|
+
if (i.set(Date, (e) => new Date(e)), i.set(Map, (e, t) => new Map(o(Array.from(e), t))), i.set(Set, (e, t) => new Set(o(Array.from(e), t))), e.constructorHandlers) for (let t of e.constructorHandlers) i.set(t[0], t[1]);
|
|
123
|
+
let a = null;
|
|
124
|
+
return e.proto ? c : s;
|
|
125
|
+
function o(e, o) {
|
|
126
|
+
let s = Object.keys(e), c = Array(s.length);
|
|
127
|
+
for (let l = 0; l < s.length; l++) {
|
|
128
|
+
let u = s[l], d = e[u];
|
|
129
|
+
if (typeof d != "object" || !d) c[u] = d;
|
|
130
|
+
else if (d.constructor !== Object && (a = i.get(d.constructor))) c[u] = a(d, o);
|
|
131
|
+
else if (ArrayBuffer.isView(d)) c[u] = n(d);
|
|
132
|
+
else {
|
|
133
|
+
let e = t.indexOf(d);
|
|
134
|
+
e === -1 ? c[u] = o(d) : c[u] = r[e];
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return c;
|
|
138
|
+
}
|
|
139
|
+
function s(e) {
|
|
140
|
+
if (typeof e != "object" || !e) return e;
|
|
141
|
+
if (Array.isArray(e)) return o(e, s);
|
|
142
|
+
if (e.constructor !== Object && (a = i.get(e.constructor))) return a(e, s);
|
|
143
|
+
let c = {};
|
|
144
|
+
t.push(e), r.push(c);
|
|
145
|
+
for (let o in e) {
|
|
146
|
+
if (Object.hasOwnProperty.call(e, o) === !1) continue;
|
|
147
|
+
let l = e[o];
|
|
148
|
+
if (typeof l != "object" || !l) c[o] = l;
|
|
149
|
+
else if (l.constructor !== Object && (a = i.get(l.constructor))) c[o] = a(l, s);
|
|
150
|
+
else if (ArrayBuffer.isView(l)) c[o] = n(l);
|
|
151
|
+
else {
|
|
152
|
+
let e = t.indexOf(l);
|
|
153
|
+
e === -1 ? c[o] = s(l) : c[o] = r[e];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return t.pop(), r.pop(), c;
|
|
157
|
+
}
|
|
158
|
+
function c(e) {
|
|
159
|
+
if (typeof e != "object" || !e) return e;
|
|
160
|
+
if (Array.isArray(e)) return o(e, c);
|
|
161
|
+
if (e.constructor !== Object && (a = i.get(e.constructor))) return a(e, c);
|
|
162
|
+
let s = {};
|
|
163
|
+
t.push(e), r.push(s);
|
|
164
|
+
for (let o in e) {
|
|
165
|
+
let l = e[o];
|
|
166
|
+
if (typeof l != "object" || !l) s[o] = l;
|
|
167
|
+
else if (l.constructor !== Object && (a = i.get(l.constructor))) s[o] = a(l, c);
|
|
168
|
+
else if (ArrayBuffer.isView(l)) s[o] = n(l);
|
|
169
|
+
else {
|
|
170
|
+
let e = t.indexOf(l);
|
|
171
|
+
e === -1 ? s[o] = c(l) : s[o] = r[e];
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return t.pop(), r.pop(), s;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}) }))(), 1), ie = /(?:^|[-_/])(\w)/g;
|
|
178
|
+
function ae(e, t) {
|
|
179
|
+
return t ? t.toUpperCase() : "";
|
|
180
|
+
}
|
|
181
|
+
function oe(e) {
|
|
182
|
+
return e && `${e}`.replace(ie, ae);
|
|
183
|
+
}
|
|
184
|
+
function se(e, t) {
|
|
185
|
+
let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
|
|
186
|
+
n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
|
|
187
|
+
let r = n.lastIndexOf("/"), i = n.substring(r + 1);
|
|
188
|
+
if (t) {
|
|
189
|
+
let e = i.lastIndexOf(t);
|
|
190
|
+
return i.substring(0, e);
|
|
191
|
+
}
|
|
192
|
+
return "";
|
|
193
|
+
}
|
|
194
|
+
var ce = (0, D.default)({ circles: !0 }), le = { trailing: !0 };
|
|
195
|
+
function O(e, t = 25, n = {}) {
|
|
196
|
+
if (n = {
|
|
197
|
+
...le,
|
|
198
|
+
...n
|
|
199
|
+
}, !Number.isFinite(t)) throw TypeError("Expected `wait` to be a finite number");
|
|
200
|
+
let r, i, a = [], o, s, c = (t, r) => (o = ue(e, t, r), o.finally(() => {
|
|
201
|
+
if (o = null, n.trailing && s && !i) {
|
|
202
|
+
let e = c(t, s);
|
|
203
|
+
return s = null, e;
|
|
204
|
+
}
|
|
205
|
+
}), o), l = function(...e) {
|
|
206
|
+
return n.trailing && (s = e), o || new Promise((o) => {
|
|
207
|
+
let l = !i && n.leading;
|
|
208
|
+
clearTimeout(i), i = setTimeout(() => {
|
|
209
|
+
i = null;
|
|
210
|
+
let t = n.leading ? r : c(this, e);
|
|
211
|
+
s = null;
|
|
212
|
+
for (let e of a) e(t);
|
|
213
|
+
a = [];
|
|
214
|
+
}, t), l ? (r = c(this, e), o(r)) : a.push(o);
|
|
215
|
+
});
|
|
216
|
+
}, u = (e) => {
|
|
217
|
+
e && (clearTimeout(e), i = null);
|
|
218
|
+
};
|
|
219
|
+
return l.isPending = () => !!i, l.cancel = () => {
|
|
220
|
+
u(i), a = [], s = null;
|
|
221
|
+
}, l.flush = () => {
|
|
222
|
+
if (u(i), !s || o) return;
|
|
223
|
+
let e = s;
|
|
224
|
+
return s = null, c(this, e);
|
|
225
|
+
}, l;
|
|
226
|
+
}
|
|
227
|
+
async function ue(e, t, n) {
|
|
228
|
+
return await e.apply(t, n);
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region ../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs
|
|
232
|
+
function de(e, t = {}, n) {
|
|
233
|
+
for (let r in e) {
|
|
234
|
+
let i = e[r], a = n ? `${n}:${r}` : r;
|
|
235
|
+
typeof i == "object" && i ? de(i, t, a) : typeof i == "function" && (t[a] = i);
|
|
236
|
+
}
|
|
237
|
+
return t;
|
|
238
|
+
}
|
|
239
|
+
var fe = { run: (e) => e() }, pe = console.createTask === void 0 ? () => fe : console.createTask;
|
|
240
|
+
function me(e, t) {
|
|
241
|
+
let n = pe(t.shift());
|
|
242
|
+
return e.reduce((e, r) => e.then(() => n.run(() => r(...t))), Promise.resolve());
|
|
243
|
+
}
|
|
244
|
+
function he(e, t) {
|
|
245
|
+
let n = pe(t.shift());
|
|
246
|
+
return Promise.all(e.map((e) => n.run(() => e(...t))));
|
|
247
|
+
}
|
|
248
|
+
function ge(e, t) {
|
|
249
|
+
for (let n of [...e]) n(t);
|
|
250
|
+
}
|
|
251
|
+
var _e = class {
|
|
252
|
+
constructor() {
|
|
253
|
+
this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
|
|
254
|
+
}
|
|
255
|
+
hook(e, t, n = {}) {
|
|
256
|
+
if (!e || typeof t != "function") return () => {};
|
|
257
|
+
let r = e, i;
|
|
258
|
+
for (; this._deprecatedHooks[e];) i = this._deprecatedHooks[e], e = i.to;
|
|
259
|
+
if (i && !n.allowDeprecated) {
|
|
260
|
+
let e = i.message;
|
|
261
|
+
e ||= `${r} hook has been deprecated` + (i.to ? `, please use ${i.to}` : ""), this._deprecatedMessages ||= /* @__PURE__ */ new Set(), this._deprecatedMessages.has(e) || (console.warn(e), this._deprecatedMessages.add(e));
|
|
262
|
+
}
|
|
263
|
+
if (!t.name) try {
|
|
264
|
+
Object.defineProperty(t, "name", {
|
|
265
|
+
get: () => "_" + e.replace(/\W+/g, "_") + "_hook_cb",
|
|
266
|
+
configurable: !0
|
|
267
|
+
});
|
|
268
|
+
} catch {}
|
|
269
|
+
return this._hooks[e] = this._hooks[e] || [], this._hooks[e].push(t), () => {
|
|
270
|
+
t &&= (this.removeHook(e, t), void 0);
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
hookOnce(e, t) {
|
|
274
|
+
let n, r = (...e) => (typeof n == "function" && n(), n = void 0, r = void 0, t(...e));
|
|
275
|
+
return n = this.hook(e, r), n;
|
|
276
|
+
}
|
|
277
|
+
removeHook(e, t) {
|
|
278
|
+
if (this._hooks[e]) {
|
|
279
|
+
let n = this._hooks[e].indexOf(t);
|
|
280
|
+
n !== -1 && this._hooks[e].splice(n, 1), this._hooks[e].length === 0 && delete this._hooks[e];
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
deprecateHook(e, t) {
|
|
284
|
+
this._deprecatedHooks[e] = typeof t == "string" ? { to: t } : t;
|
|
285
|
+
let n = this._hooks[e] || [];
|
|
286
|
+
delete this._hooks[e];
|
|
287
|
+
for (let t of n) this.hook(e, t);
|
|
288
|
+
}
|
|
289
|
+
deprecateHooks(e) {
|
|
290
|
+
Object.assign(this._deprecatedHooks, e);
|
|
291
|
+
for (let t in e) this.deprecateHook(t, e[t]);
|
|
292
|
+
}
|
|
293
|
+
addHooks(e) {
|
|
294
|
+
let t = de(e), n = Object.keys(t).map((e) => this.hook(e, t[e]));
|
|
295
|
+
return () => {
|
|
296
|
+
for (let e of n.splice(0, n.length)) e();
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
removeHooks(e) {
|
|
300
|
+
let t = de(e);
|
|
301
|
+
for (let e in t) this.removeHook(e, t[e]);
|
|
302
|
+
}
|
|
303
|
+
removeAllHooks() {
|
|
304
|
+
for (let e in this._hooks) delete this._hooks[e];
|
|
305
|
+
}
|
|
306
|
+
callHook(e, ...t) {
|
|
307
|
+
return t.unshift(e), this.callHookWith(me, e, ...t);
|
|
308
|
+
}
|
|
309
|
+
callHookParallel(e, ...t) {
|
|
310
|
+
return t.unshift(e), this.callHookWith(he, e, ...t);
|
|
311
|
+
}
|
|
312
|
+
callHookWith(e, t, ...n) {
|
|
313
|
+
let r = this._before || this._after ? {
|
|
314
|
+
name: t,
|
|
315
|
+
args: n,
|
|
316
|
+
context: {}
|
|
317
|
+
} : void 0;
|
|
318
|
+
this._before && ge(this._before, r);
|
|
319
|
+
let i = e(t in this._hooks ? [...this._hooks[t]] : [], n);
|
|
320
|
+
return i instanceof Promise ? i.finally(() => {
|
|
321
|
+
this._after && r && ge(this._after, r);
|
|
322
|
+
}) : (this._after && r && ge(this._after, r), i);
|
|
323
|
+
}
|
|
324
|
+
beforeEach(e) {
|
|
325
|
+
return this._before = this._before || [], this._before.push(e), () => {
|
|
326
|
+
if (this._before !== void 0) {
|
|
327
|
+
let t = this._before.indexOf(e);
|
|
328
|
+
t !== -1 && this._before.splice(t, 1);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
afterEach(e) {
|
|
333
|
+
return this._after = this._after || [], this._after.push(e), () => {
|
|
334
|
+
if (this._after !== void 0) {
|
|
335
|
+
let t = this._after.indexOf(e);
|
|
336
|
+
t !== -1 && this._after.splice(t, 1);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
function ve() {
|
|
342
|
+
return new _e();
|
|
343
|
+
}
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region ../../node_modules/.pnpm/@vue+devtools-kit@8.0.6/node_modules/@vue/devtools-kit/dist/index.js
|
|
346
|
+
var ye = Object.getOwnPropertyNames, be = (e, t) => function() {
|
|
347
|
+
return t || (0, e[ye(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
348
|
+
};
|
|
349
|
+
function xe(e) {
|
|
350
|
+
let t = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
|
|
351
|
+
return t === "index" && e.__file?.endsWith("index.vue") ? "" : t;
|
|
352
|
+
}
|
|
353
|
+
function Se(e) {
|
|
354
|
+
let t = e.__file;
|
|
355
|
+
if (t) return oe(se(t, ".vue"));
|
|
356
|
+
}
|
|
357
|
+
function Ce(e, t) {
|
|
358
|
+
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
359
|
+
}
|
|
360
|
+
function we(e) {
|
|
361
|
+
if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__) return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
362
|
+
if (e.root) return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
363
|
+
}
|
|
364
|
+
function Te(e) {
|
|
365
|
+
let t = e.subTree?.type, n = we(e);
|
|
366
|
+
return n ? n?.types?.Fragment === t : !1;
|
|
367
|
+
}
|
|
368
|
+
function k(e) {
|
|
369
|
+
let t = xe(e?.type || {});
|
|
370
|
+
if (t) return t;
|
|
371
|
+
if (e?.root === e) return "Root";
|
|
372
|
+
for (let t in e.parent?.type?.components) if (e.parent.type.components[t] === e?.type) return Ce(e, t);
|
|
373
|
+
for (let t in e.appContext?.components) if (e.appContext.components[t] === e?.type) return Ce(e, t);
|
|
374
|
+
return Se(e?.type || {}) || "Anonymous Component";
|
|
375
|
+
}
|
|
376
|
+
function Ee(e) {
|
|
377
|
+
return `${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ ?? 0}:${e === e?.root ? "root" : e.uid}`;
|
|
378
|
+
}
|
|
379
|
+
function De(e, t) {
|
|
380
|
+
return t ||= `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
|
|
381
|
+
}
|
|
382
|
+
function Oe() {
|
|
383
|
+
let e = {
|
|
384
|
+
top: 0,
|
|
385
|
+
bottom: 0,
|
|
386
|
+
left: 0,
|
|
387
|
+
right: 0,
|
|
388
|
+
get width() {
|
|
389
|
+
return e.right - e.left;
|
|
390
|
+
},
|
|
391
|
+
get height() {
|
|
392
|
+
return e.bottom - e.top;
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
return e;
|
|
396
|
+
}
|
|
397
|
+
var ke;
|
|
398
|
+
function Ae(e) {
|
|
399
|
+
return ke ||= document.createRange(), ke.selectNode(e), ke.getBoundingClientRect();
|
|
400
|
+
}
|
|
401
|
+
function je(e) {
|
|
402
|
+
let t = Oe();
|
|
403
|
+
if (!e.children) return t;
|
|
404
|
+
for (let n = 0, r = e.children.length; n < r; n++) {
|
|
405
|
+
let r = e.children[n], i;
|
|
406
|
+
if (r.component) i = A(r.component);
|
|
407
|
+
else if (r.el) {
|
|
408
|
+
let e = r.el;
|
|
409
|
+
e.nodeType === 1 || e.getBoundingClientRect ? i = e.getBoundingClientRect() : e.nodeType === 3 && e.data.trim() && (i = Ae(e));
|
|
410
|
+
}
|
|
411
|
+
i && Me(t, i);
|
|
412
|
+
}
|
|
413
|
+
return t;
|
|
414
|
+
}
|
|
415
|
+
function Me(e, t) {
|
|
416
|
+
return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
|
|
417
|
+
}
|
|
418
|
+
var Ne = {
|
|
419
|
+
top: 0,
|
|
420
|
+
left: 0,
|
|
421
|
+
right: 0,
|
|
422
|
+
bottom: 0,
|
|
423
|
+
width: 0,
|
|
424
|
+
height: 0
|
|
425
|
+
};
|
|
426
|
+
function A(e) {
|
|
427
|
+
let t = e.subTree.el;
|
|
428
|
+
return typeof window > "u" ? Ne : Te(e) ? je(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? A(e.subTree.component) : Ne;
|
|
429
|
+
}
|
|
430
|
+
function Pe(e) {
|
|
431
|
+
return Te(e) ? Fe(e.subTree) : e.subTree ? [e.subTree.el] : [];
|
|
432
|
+
}
|
|
433
|
+
function Fe(e) {
|
|
434
|
+
if (!e.children) return [];
|
|
435
|
+
let t = [];
|
|
436
|
+
return e.children.forEach((e) => {
|
|
437
|
+
e.component ? t.push(...Pe(e.component)) : e?.el && t.push(e.el);
|
|
438
|
+
}), t;
|
|
439
|
+
}
|
|
440
|
+
var Ie = "__vue-devtools-component-inspector__", Le = "__vue-devtools-component-inspector__card__", Re = "__vue-devtools-component-inspector__name__", ze = "__vue-devtools-component-inspector__indicator__", Be = {
|
|
441
|
+
display: "block",
|
|
442
|
+
zIndex: 2147483640,
|
|
443
|
+
position: "fixed",
|
|
444
|
+
backgroundColor: "#42b88325",
|
|
445
|
+
border: "1px solid #42b88350",
|
|
446
|
+
borderRadius: "5px",
|
|
447
|
+
transition: "all 0.1s ease-in",
|
|
448
|
+
pointerEvents: "none"
|
|
449
|
+
}, Ve = {
|
|
450
|
+
fontFamily: "Arial, Helvetica, sans-serif",
|
|
451
|
+
padding: "5px 8px",
|
|
452
|
+
borderRadius: "4px",
|
|
453
|
+
textAlign: "left",
|
|
454
|
+
position: "absolute",
|
|
455
|
+
left: 0,
|
|
456
|
+
color: "#e9e9e9",
|
|
457
|
+
fontSize: "14px",
|
|
458
|
+
fontWeight: 600,
|
|
459
|
+
lineHeight: "24px",
|
|
460
|
+
backgroundColor: "#42b883",
|
|
461
|
+
boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
|
|
462
|
+
}, He = {
|
|
463
|
+
display: "inline-block",
|
|
464
|
+
fontWeight: 400,
|
|
465
|
+
fontStyle: "normal",
|
|
466
|
+
fontSize: "12px",
|
|
467
|
+
opacity: .7
|
|
468
|
+
};
|
|
469
|
+
function j() {
|
|
470
|
+
return document.getElementById(Ie);
|
|
471
|
+
}
|
|
472
|
+
function Ue() {
|
|
473
|
+
return document.getElementById(Le);
|
|
474
|
+
}
|
|
475
|
+
function We() {
|
|
476
|
+
return document.getElementById(ze);
|
|
477
|
+
}
|
|
478
|
+
function Ge() {
|
|
479
|
+
return document.getElementById(Re);
|
|
480
|
+
}
|
|
481
|
+
function Ke(e) {
|
|
482
|
+
return {
|
|
483
|
+
left: `${Math.round(e.left * 100) / 100}px`,
|
|
484
|
+
top: `${Math.round(e.top * 100) / 100}px`,
|
|
485
|
+
width: `${Math.round(e.width * 100) / 100}px`,
|
|
486
|
+
height: `${Math.round(e.height * 100) / 100}px`
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function qe(e) {
|
|
490
|
+
let t = document.createElement("div");
|
|
491
|
+
t.id = e.elementId ?? Ie, Object.assign(t.style, {
|
|
492
|
+
...Be,
|
|
493
|
+
...Ke(e.bounds),
|
|
494
|
+
...e.style
|
|
495
|
+
});
|
|
496
|
+
let n = document.createElement("span");
|
|
497
|
+
n.id = Le, Object.assign(n.style, {
|
|
498
|
+
...Ve,
|
|
499
|
+
top: e.bounds.top < 35 ? 0 : "-35px"
|
|
500
|
+
});
|
|
501
|
+
let r = document.createElement("span");
|
|
502
|
+
r.id = Re, r.innerHTML = `<${e.name}> `;
|
|
503
|
+
let i = document.createElement("i");
|
|
504
|
+
return i.id = ze, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, He), n.appendChild(r), n.appendChild(i), t.appendChild(n), document.body.appendChild(t), t;
|
|
505
|
+
}
|
|
506
|
+
function Je(e) {
|
|
507
|
+
let t = j(), n = Ue(), r = Ge(), i = We();
|
|
508
|
+
t && (Object.assign(t.style, {
|
|
509
|
+
...Be,
|
|
510
|
+
...Ke(e.bounds)
|
|
511
|
+
}), Object.assign(n.style, { top: e.bounds.top < 35 ? 0 : "-35px" }), r.innerHTML = `<${e.name}> `, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
|
|
512
|
+
}
|
|
513
|
+
function Ye(e) {
|
|
514
|
+
let t = A(e);
|
|
515
|
+
if (!t.width && !t.height) return;
|
|
516
|
+
let n = k(e);
|
|
517
|
+
j() ? Je({
|
|
518
|
+
bounds: t,
|
|
519
|
+
name: n
|
|
520
|
+
}) : qe({
|
|
521
|
+
bounds: t,
|
|
522
|
+
name: n
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
function Xe() {
|
|
526
|
+
let e = j();
|
|
527
|
+
e && (e.style.display = "none");
|
|
528
|
+
}
|
|
529
|
+
var Ze = null;
|
|
530
|
+
function Qe(e) {
|
|
531
|
+
let t = e.target;
|
|
532
|
+
if (t) {
|
|
533
|
+
let e = t.__vueParentComponent;
|
|
534
|
+
if (e && (Ze = e, e.vnode.el)) {
|
|
535
|
+
let t = A(e), n = k(e);
|
|
536
|
+
j() ? Je({
|
|
537
|
+
bounds: t,
|
|
538
|
+
name: n
|
|
539
|
+
}) : qe({
|
|
540
|
+
bounds: t,
|
|
541
|
+
name: n
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
function $e(e, t) {
|
|
547
|
+
e.preventDefault(), e.stopPropagation(), Ze && t(Ee(Ze));
|
|
548
|
+
}
|
|
549
|
+
var et = null;
|
|
550
|
+
function tt() {
|
|
551
|
+
Xe(), window.removeEventListener("mouseover", Qe), window.removeEventListener("click", et, !0), et = null;
|
|
552
|
+
}
|
|
553
|
+
function nt() {
|
|
554
|
+
return window.addEventListener("mouseover", Qe), new Promise((e) => {
|
|
555
|
+
function t(n) {
|
|
556
|
+
n.preventDefault(), n.stopPropagation(), $e(n, (n) => {
|
|
557
|
+
window.removeEventListener("click", t, !0), et = null, window.removeEventListener("mouseover", Qe);
|
|
558
|
+
let r = j();
|
|
559
|
+
r && (r.style.display = "none"), e(JSON.stringify({ id: n }));
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
et = t, window.addEventListener("click", t, !0);
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
function rt(e) {
|
|
566
|
+
let t = De(z.value, e.id);
|
|
567
|
+
if (t) {
|
|
568
|
+
let [n] = Pe(t);
|
|
569
|
+
if (typeof n.scrollIntoView == "function") n.scrollIntoView({ behavior: "smooth" });
|
|
570
|
+
else {
|
|
571
|
+
let e = A(t), n = document.createElement("div"), r = {
|
|
572
|
+
...Ke(e),
|
|
573
|
+
position: "absolute"
|
|
574
|
+
};
|
|
575
|
+
Object.assign(n.style, r), document.body.appendChild(n), n.scrollIntoView({ behavior: "smooth" }), setTimeout(() => {
|
|
576
|
+
document.body.removeChild(n);
|
|
577
|
+
}, 2e3);
|
|
578
|
+
}
|
|
579
|
+
setTimeout(() => {
|
|
580
|
+
let n = A(t);
|
|
581
|
+
if (n.width || n.height) {
|
|
582
|
+
let r = k(t), i = j();
|
|
583
|
+
i ? Je({
|
|
584
|
+
...e,
|
|
585
|
+
name: r,
|
|
586
|
+
bounds: n
|
|
587
|
+
}) : qe({
|
|
588
|
+
...e,
|
|
589
|
+
name: r,
|
|
590
|
+
bounds: n
|
|
591
|
+
}), setTimeout(() => {
|
|
592
|
+
i && (i.style.display = "none");
|
|
593
|
+
}, 1500);
|
|
594
|
+
}
|
|
595
|
+
}, 1200);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
E.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ ??= !0;
|
|
599
|
+
function it(e) {
|
|
600
|
+
let t = 0, n = setInterval(() => {
|
|
601
|
+
E.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= 5e3 && clearInterval(n);
|
|
602
|
+
}, 30);
|
|
603
|
+
}
|
|
604
|
+
function at() {
|
|
605
|
+
let e = E.__VUE_INSPECTOR__, t = e.openInEditor;
|
|
606
|
+
e.openInEditor = async (...n) => {
|
|
607
|
+
e.disable(), t(...n);
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
function ot() {
|
|
611
|
+
return new Promise((e) => {
|
|
612
|
+
function t() {
|
|
613
|
+
at(), e(E.__VUE_INSPECTOR__);
|
|
614
|
+
}
|
|
615
|
+
E.__VUE_INSPECTOR__ ? t() : it(() => {
|
|
616
|
+
t();
|
|
617
|
+
});
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
var M = /* @__PURE__ */ function(e) {
|
|
621
|
+
return e.SKIP = "__v_skip", e.IS_REACTIVE = "__v_isReactive", e.IS_READONLY = "__v_isReadonly", e.IS_SHALLOW = "__v_isShallow", e.RAW = "__v_raw", e;
|
|
622
|
+
}({});
|
|
623
|
+
function st(e) {
|
|
624
|
+
return !!(e && e[M.IS_READONLY]);
|
|
625
|
+
}
|
|
626
|
+
function ct(e) {
|
|
627
|
+
return st(e) ? ct(e[M.RAW]) : !!(e && e[M.IS_REACTIVE]);
|
|
628
|
+
}
|
|
629
|
+
function lt(e) {
|
|
630
|
+
return !!(e && e.__v_isRef === !0);
|
|
631
|
+
}
|
|
632
|
+
function N(e) {
|
|
633
|
+
let t = e && e[M.RAW];
|
|
634
|
+
return t ? N(t) : e;
|
|
635
|
+
}
|
|
636
|
+
var ut = class {
|
|
637
|
+
constructor() {
|
|
638
|
+
this.refEditor = new dt();
|
|
639
|
+
}
|
|
640
|
+
set(e, t, n, r) {
|
|
641
|
+
let i = Array.isArray(t) ? t : t.split(".");
|
|
642
|
+
for (; i.length > 1;) {
|
|
643
|
+
let t = i.shift();
|
|
644
|
+
e = e instanceof Map ? e.get(t) : e instanceof Set ? Array.from(e.values())[t] : e[t], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
|
|
645
|
+
}
|
|
646
|
+
let a = i[0], o = this.refEditor.get(e)[a];
|
|
647
|
+
r ? r(e, a, n) : this.refEditor.isRef(o) ? this.refEditor.set(o, n) : e[a] = n;
|
|
648
|
+
}
|
|
649
|
+
get(e, t) {
|
|
650
|
+
let n = Array.isArray(t) ? t : t.split(".");
|
|
651
|
+
for (let t = 0; t < n.length; t++) if (e = e instanceof Map ? e.get(n[t]) : e[n[t]], this.refEditor.isRef(e) && (e = this.refEditor.get(e)), !e) return;
|
|
652
|
+
return e;
|
|
653
|
+
}
|
|
654
|
+
has(e, t, n = !1) {
|
|
655
|
+
if (e === void 0) return !1;
|
|
656
|
+
let r = Array.isArray(t) ? t.slice() : t.split("."), i = n ? 2 : 1;
|
|
657
|
+
for (; e && r.length > i;) {
|
|
658
|
+
let t = r.shift();
|
|
659
|
+
e = e[t], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
|
|
660
|
+
}
|
|
661
|
+
return e != null && Object.prototype.hasOwnProperty.call(e, r[0]);
|
|
662
|
+
}
|
|
663
|
+
createDefaultSetCallback(e) {
|
|
664
|
+
return (t, n, r) => {
|
|
665
|
+
if ((e.remove || e.newKey) && (Array.isArray(t) ? t.splice(n, 1) : N(t) instanceof Map ? t.delete(n) : N(t) instanceof Set ? t.delete(Array.from(t.values())[n]) : Reflect.deleteProperty(t, n)), !e.remove) {
|
|
666
|
+
let i = t[e.newKey || n];
|
|
667
|
+
this.refEditor.isRef(i) ? this.refEditor.set(i, r) : N(t) instanceof Map ? t.set(e.newKey || n, r) : N(t) instanceof Set ? t.add(r) : t[e.newKey || n] = r;
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
}, dt = class {
|
|
672
|
+
set(e, t) {
|
|
673
|
+
if (lt(e)) e.value = t;
|
|
674
|
+
else {
|
|
675
|
+
if (e instanceof Set && Array.isArray(t)) {
|
|
676
|
+
e.clear(), t.forEach((t) => e.add(t));
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
let n = Object.keys(t);
|
|
680
|
+
if (e instanceof Map) {
|
|
681
|
+
let r = new Set(e.keys());
|
|
682
|
+
n.forEach((n) => {
|
|
683
|
+
e.set(n, Reflect.get(t, n)), r.delete(n);
|
|
684
|
+
}), r.forEach((t) => e.delete(t));
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
let r = new Set(Object.keys(e));
|
|
688
|
+
n.forEach((n) => {
|
|
689
|
+
Reflect.set(e, n, Reflect.get(t, n)), r.delete(n);
|
|
690
|
+
}), r.forEach((t) => Reflect.deleteProperty(e, t));
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
get(e) {
|
|
694
|
+
return lt(e) ? e.value : e;
|
|
695
|
+
}
|
|
696
|
+
isRef(e) {
|
|
697
|
+
return lt(e) || ct(e);
|
|
698
|
+
}
|
|
699
|
+
};
|
|
700
|
+
new ut();
|
|
701
|
+
var ft = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
702
|
+
function pt() {
|
|
703
|
+
if (typeof window > "u" || !T || typeof localStorage > "u" || localStorage === null) return {
|
|
704
|
+
recordingState: !1,
|
|
705
|
+
mouseEventEnabled: !1,
|
|
706
|
+
keyboardEventEnabled: !1,
|
|
707
|
+
componentEventEnabled: !1,
|
|
708
|
+
performanceEventEnabled: !1,
|
|
709
|
+
selected: ""
|
|
710
|
+
};
|
|
711
|
+
let e = localStorage.getItem === void 0 ? null : localStorage.getItem(ft);
|
|
712
|
+
return e ? JSON.parse(e) : {
|
|
713
|
+
recordingState: !1,
|
|
714
|
+
mouseEventEnabled: !1,
|
|
715
|
+
keyboardEventEnabled: !1,
|
|
716
|
+
componentEventEnabled: !1,
|
|
717
|
+
performanceEventEnabled: !1,
|
|
718
|
+
selected: ""
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
E.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS ??= [];
|
|
722
|
+
var mt = new Proxy(E.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, { get(e, t, n) {
|
|
723
|
+
return Reflect.get(e, t, n);
|
|
724
|
+
} });
|
|
725
|
+
function ht(e, t) {
|
|
726
|
+
B.timelineLayersState[t.id] = !1, mt.push({
|
|
727
|
+
...e,
|
|
728
|
+
descriptorId: t.id,
|
|
729
|
+
appRecord: we(t.app)
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
E.__VUE_DEVTOOLS_KIT_INSPECTOR__ ??= [];
|
|
733
|
+
var gt = new Proxy(E.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get(e, t, n) {
|
|
734
|
+
return Reflect.get(e, t, n);
|
|
735
|
+
} }), _t = O(() => {
|
|
736
|
+
W.hooks.callHook(I.SEND_INSPECTOR_TO_CLIENT, yt());
|
|
737
|
+
});
|
|
738
|
+
function vt(e, t) {
|
|
739
|
+
gt.push({
|
|
740
|
+
options: e,
|
|
741
|
+
descriptor: t,
|
|
742
|
+
treeFilterPlaceholder: e.treeFilterPlaceholder ?? "Search tree...",
|
|
743
|
+
stateFilterPlaceholder: e.stateFilterPlaceholder ?? "Search state...",
|
|
744
|
+
treeFilter: "",
|
|
745
|
+
selectedNodeId: "",
|
|
746
|
+
appRecord: we(t.app)
|
|
747
|
+
}), _t();
|
|
748
|
+
}
|
|
749
|
+
function yt() {
|
|
750
|
+
return gt.filter((e) => e.descriptor.app === z.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
|
|
751
|
+
let t = e.descriptor, n = e.options;
|
|
752
|
+
return {
|
|
753
|
+
id: n.id,
|
|
754
|
+
label: n.label,
|
|
755
|
+
logo: t.logo,
|
|
756
|
+
icon: `custom-ic-baseline-${n?.icon?.replace(/_/g, "-")}`,
|
|
757
|
+
packageName: t.packageName,
|
|
758
|
+
homepage: t.homepage,
|
|
759
|
+
pluginId: t.id
|
|
760
|
+
};
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
function bt(e, t) {
|
|
764
|
+
return gt.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
|
|
765
|
+
}
|
|
766
|
+
var P = /* @__PURE__ */ function(e) {
|
|
767
|
+
return e.VISIT_COMPONENT_TREE = "visitComponentTree", e.INSPECT_COMPONENT = "inspectComponent", e.EDIT_COMPONENT_STATE = "editComponentState", e.GET_INSPECTOR_TREE = "getInspectorTree", e.GET_INSPECTOR_STATE = "getInspectorState", e.EDIT_INSPECTOR_STATE = "editInspectorState", e.INSPECT_TIMELINE_EVENT = "inspectTimelineEvent", e.TIMELINE_CLEARED = "timelineCleared", e.SET_PLUGIN_SETTINGS = "setPluginSettings", e;
|
|
768
|
+
}({}), F = /* @__PURE__ */ function(e) {
|
|
769
|
+
return e.ADD_INSPECTOR = "addInspector", e.SEND_INSPECTOR_TREE = "sendInspectorTree", e.SEND_INSPECTOR_STATE = "sendInspectorState", e.CUSTOM_INSPECTOR_SELECT_NODE = "customInspectorSelectNode", e.TIMELINE_LAYER_ADDED = "timelineLayerAdded", e.TIMELINE_EVENT_ADDED = "timelineEventAdded", e.GET_COMPONENT_INSTANCES = "getComponentInstances", e.GET_COMPONENT_BOUNDS = "getComponentBounds", e.GET_COMPONENT_NAME = "getComponentName", e.COMPONENT_HIGHLIGHT = "componentHighlight", e.COMPONENT_UNHIGHLIGHT = "componentUnhighlight", e;
|
|
770
|
+
}({}), I = /* @__PURE__ */ function(e) {
|
|
771
|
+
return e.SEND_INSPECTOR_TREE_TO_CLIENT = "sendInspectorTreeToClient", e.SEND_INSPECTOR_STATE_TO_CLIENT = "sendInspectorStateToClient", e.SEND_TIMELINE_EVENT_TO_CLIENT = "sendTimelineEventToClient", e.SEND_INSPECTOR_TO_CLIENT = "sendInspectorToClient", e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT = "sendActiveAppUpdatedToClient", e.DEVTOOLS_STATE_UPDATED = "devtoolsStateUpdated", e.DEVTOOLS_CONNECTED_UPDATED = "devtoolsConnectedUpdated", e.ROUTER_INFO_UPDATED = "routerInfoUpdated", e;
|
|
772
|
+
}({});
|
|
773
|
+
function xt() {
|
|
774
|
+
let e = ve();
|
|
775
|
+
e.hook(F.ADD_INSPECTOR, ({ inspector: e, plugin: t }) => {
|
|
776
|
+
vt(e, t.descriptor);
|
|
777
|
+
});
|
|
778
|
+
let t = O(async ({ inspectorId: t, plugin: n }) => {
|
|
779
|
+
if (!t || !n?.descriptor?.app || B.highPerfModeEnabled) return;
|
|
780
|
+
let r = bt(t, n.descriptor.app), i = {
|
|
781
|
+
app: n.descriptor.app,
|
|
782
|
+
inspectorId: t,
|
|
783
|
+
filter: r?.treeFilter || "",
|
|
784
|
+
rootNodes: []
|
|
785
|
+
};
|
|
786
|
+
await new Promise((t) => {
|
|
787
|
+
e.callHookWith(async (e) => {
|
|
788
|
+
await Promise.all(e.map((e) => e(i))), t();
|
|
789
|
+
}, P.GET_INSPECTOR_TREE);
|
|
790
|
+
}), e.callHookWith(async (e) => {
|
|
791
|
+
await Promise.all(e.map((e) => e({
|
|
792
|
+
inspectorId: t,
|
|
793
|
+
rootNodes: i.rootNodes
|
|
794
|
+
})));
|
|
795
|
+
}, I.SEND_INSPECTOR_TREE_TO_CLIENT);
|
|
796
|
+
}, 120);
|
|
797
|
+
e.hook(F.SEND_INSPECTOR_TREE, t);
|
|
798
|
+
let n = O(async ({ inspectorId: t, plugin: n }) => {
|
|
799
|
+
if (!t || !n?.descriptor?.app || B.highPerfModeEnabled) return;
|
|
800
|
+
let r = bt(t, n.descriptor.app), i = {
|
|
801
|
+
app: n.descriptor.app,
|
|
802
|
+
inspectorId: t,
|
|
803
|
+
nodeId: r?.selectedNodeId || "",
|
|
804
|
+
state: null
|
|
805
|
+
}, a = { currentTab: `custom-inspector:${t}` };
|
|
806
|
+
i.nodeId && await new Promise((t) => {
|
|
807
|
+
e.callHookWith(async (e) => {
|
|
808
|
+
await Promise.all(e.map((e) => e(i, a))), t();
|
|
809
|
+
}, P.GET_INSPECTOR_STATE);
|
|
810
|
+
}), e.callHookWith(async (e) => {
|
|
811
|
+
await Promise.all(e.map((e) => e({
|
|
812
|
+
inspectorId: t,
|
|
813
|
+
nodeId: i.nodeId,
|
|
814
|
+
state: i.state
|
|
815
|
+
})));
|
|
816
|
+
}, I.SEND_INSPECTOR_STATE_TO_CLIENT);
|
|
817
|
+
}, 120);
|
|
818
|
+
return e.hook(F.SEND_INSPECTOR_STATE, n), e.hook(F.CUSTOM_INSPECTOR_SELECT_NODE, ({ inspectorId: e, nodeId: t, plugin: n }) => {
|
|
819
|
+
let r = bt(e, n.descriptor.app);
|
|
820
|
+
r && (r.selectedNodeId = t);
|
|
821
|
+
}), e.hook(F.TIMELINE_LAYER_ADDED, ({ options: e, plugin: t }) => {
|
|
822
|
+
ht(e, t.descriptor);
|
|
823
|
+
}), e.hook(F.TIMELINE_EVENT_ADDED, ({ options: t, plugin: n }) => {
|
|
824
|
+
B.highPerfModeEnabled || !B.timelineLayersState?.[n.descriptor.id] && ![
|
|
825
|
+
"performance",
|
|
826
|
+
"component-event",
|
|
827
|
+
"keyboard",
|
|
828
|
+
"mouse"
|
|
829
|
+
].includes(t.layerId) || e.callHookWith(async (e) => {
|
|
830
|
+
await Promise.all(e.map((e) => e(t)));
|
|
831
|
+
}, I.SEND_TIMELINE_EVENT_TO_CLIENT);
|
|
832
|
+
}), e.hook(F.GET_COMPONENT_INSTANCES, async ({ app: e }) => {
|
|
833
|
+
let t = e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
834
|
+
if (!t) return null;
|
|
835
|
+
let n = t.id.toString();
|
|
836
|
+
return [...t.instanceMap].filter(([e]) => e.split(":")[0] === n).map(([, e]) => e);
|
|
837
|
+
}), e.hook(F.GET_COMPONENT_BOUNDS, async ({ instance: e }) => A(e)), e.hook(F.GET_COMPONENT_NAME, ({ instance: e }) => k(e)), e.hook(F.COMPONENT_HIGHLIGHT, ({ uid: e }) => {
|
|
838
|
+
let t = z.value.instanceMap.get(e);
|
|
839
|
+
t && Ye(t);
|
|
840
|
+
}), e.hook(F.COMPONENT_UNHIGHLIGHT, () => {
|
|
841
|
+
Xe();
|
|
842
|
+
}), e;
|
|
843
|
+
}
|
|
844
|
+
E.__VUE_DEVTOOLS_KIT_APP_RECORDS__ ??= [], E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ ??= {}, E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ ??= "", E.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ ??= [], E.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ ??= [];
|
|
845
|
+
var L = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
|
|
846
|
+
function St() {
|
|
847
|
+
return {
|
|
848
|
+
connected: !1,
|
|
849
|
+
clientConnected: !1,
|
|
850
|
+
vitePluginDetected: !0,
|
|
851
|
+
appRecords: [],
|
|
852
|
+
activeAppRecordId: "",
|
|
853
|
+
tabs: [],
|
|
854
|
+
commands: [],
|
|
855
|
+
highPerfModeEnabled: !0,
|
|
856
|
+
devtoolsClientDetected: {},
|
|
857
|
+
perfUniqueGroupId: 0,
|
|
858
|
+
timelineLayersState: pt()
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
E[L] ??= St();
|
|
862
|
+
var Ct = O((e) => {
|
|
863
|
+
W.hooks.callHook(I.DEVTOOLS_STATE_UPDATED, { state: e });
|
|
864
|
+
});
|
|
865
|
+
O((e, t) => {
|
|
866
|
+
W.hooks.callHook(I.DEVTOOLS_CONNECTED_UPDATED, {
|
|
867
|
+
state: e,
|
|
868
|
+
oldState: t
|
|
869
|
+
});
|
|
870
|
+
});
|
|
871
|
+
var R = new Proxy(E.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get(e, t, n) {
|
|
872
|
+
return t === "value" ? E.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : E.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t];
|
|
873
|
+
} }), z = new Proxy(E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, { get(e, t, n) {
|
|
874
|
+
return t === "value" ? E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
|
|
875
|
+
} });
|
|
876
|
+
function wt() {
|
|
877
|
+
Ct({
|
|
878
|
+
...E[L],
|
|
879
|
+
appRecords: R.value,
|
|
880
|
+
activeAppRecordId: z.id,
|
|
881
|
+
tabs: E.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
|
|
882
|
+
commands: E.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
function Tt(e) {
|
|
886
|
+
E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, wt();
|
|
887
|
+
}
|
|
888
|
+
function Et(e) {
|
|
889
|
+
E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, wt();
|
|
890
|
+
}
|
|
891
|
+
var B = new Proxy(E[L], {
|
|
892
|
+
get(e, t) {
|
|
893
|
+
return t === "appRecords" ? R : t === "activeAppRecordId" ? z.id : t === "tabs" ? E.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? E.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : E[L][t];
|
|
894
|
+
},
|
|
895
|
+
deleteProperty(e, t) {
|
|
896
|
+
return delete e[t], !0;
|
|
897
|
+
},
|
|
898
|
+
set(e, t, n) {
|
|
899
|
+
return { ...E[L] }, e[t] = n, E[L][t] = n, !0;
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
function Dt(e = {}) {
|
|
903
|
+
let { file: t, host: n, baseUrl: r = window.location.origin, line: i = 0, column: a = 0 } = e;
|
|
904
|
+
if (t) {
|
|
905
|
+
if (n === "chrome-extension") {
|
|
906
|
+
let e = t.replace(/\\/g, "\\\\"), n = window.VUE_DEVTOOLS_CONFIG?.openInEditorHost ?? "/";
|
|
907
|
+
fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then((t) => {
|
|
908
|
+
if (!t.ok) {
|
|
909
|
+
let t = `Opening component ${e} failed`;
|
|
910
|
+
console.log(`%c${t}`, "color:red");
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
} else if (B.vitePluginDetected) {
|
|
914
|
+
let e = E.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__ ?? r;
|
|
915
|
+
E.__VUE_INSPECTOR__.openInEditor(e, t, i, a);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
E.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ ??= [];
|
|
920
|
+
var Ot = new Proxy(E.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get(e, t, n) {
|
|
921
|
+
return Reflect.get(e, t, n);
|
|
922
|
+
} });
|
|
923
|
+
function kt(e) {
|
|
924
|
+
let t = {};
|
|
925
|
+
return Object.keys(e).forEach((n) => {
|
|
926
|
+
t[n] = e[n].defaultValue;
|
|
927
|
+
}), t;
|
|
928
|
+
}
|
|
929
|
+
function At(e) {
|
|
930
|
+
return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
|
|
931
|
+
}
|
|
932
|
+
function jt(e) {
|
|
933
|
+
return (Ot.find((t) => t[0].id === e && !!t[0]?.settings)?.[0] ?? null)?.settings ?? null;
|
|
934
|
+
}
|
|
935
|
+
function Mt(e, t) {
|
|
936
|
+
let n = At(e);
|
|
937
|
+
if (n) {
|
|
938
|
+
let e = localStorage.getItem(n);
|
|
939
|
+
if (e) return JSON.parse(e);
|
|
940
|
+
}
|
|
941
|
+
return kt(e ? (Ot.find((t) => t[0].id === e)?.[0] ?? null)?.settings ?? {} : t);
|
|
942
|
+
}
|
|
943
|
+
function Nt(e, t) {
|
|
944
|
+
let n = At(e);
|
|
945
|
+
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(kt(t)));
|
|
946
|
+
}
|
|
947
|
+
function Pt(e, t, n) {
|
|
948
|
+
let r = At(e), i = localStorage.getItem(r), a = JSON.parse(i || "{}"), o = {
|
|
949
|
+
...a,
|
|
950
|
+
[t]: n
|
|
951
|
+
};
|
|
952
|
+
localStorage.setItem(r, JSON.stringify(o)), W.hooks.callHookWith((r) => {
|
|
953
|
+
r.forEach((r) => r({
|
|
954
|
+
pluginId: e,
|
|
955
|
+
key: t,
|
|
956
|
+
oldValue: a[t],
|
|
957
|
+
newValue: n,
|
|
958
|
+
settings: o
|
|
959
|
+
}));
|
|
960
|
+
}, P.SET_PLUGIN_SETTINGS);
|
|
961
|
+
}
|
|
962
|
+
var V = /* @__PURE__ */ function(e) {
|
|
963
|
+
return e.APP_INIT = "app:init", e.APP_UNMOUNT = "app:unmount", e.COMPONENT_UPDATED = "component:updated", e.COMPONENT_ADDED = "component:added", e.COMPONENT_REMOVED = "component:removed", e.COMPONENT_EMIT = "component:emit", e.PERFORMANCE_START = "perf:start", e.PERFORMANCE_END = "perf:end", e.ADD_ROUTE = "router:add-route", e.REMOVE_ROUTE = "router:remove-route", e.RENDER_TRACKED = "render:tracked", e.RENDER_TRIGGERED = "render:triggered", e.APP_CONNECTED = "app:connected", e.SETUP_DEVTOOLS_PLUGIN = "devtools-plugin:setup", e;
|
|
964
|
+
}({}), H = E.__VUE_DEVTOOLS_HOOK ??= ve(), Ft = {
|
|
965
|
+
on: {
|
|
966
|
+
vueAppInit(e) {
|
|
967
|
+
H.hook(V.APP_INIT, e);
|
|
968
|
+
},
|
|
969
|
+
vueAppUnmount(e) {
|
|
970
|
+
H.hook(V.APP_UNMOUNT, e);
|
|
971
|
+
},
|
|
972
|
+
vueAppConnected(e) {
|
|
973
|
+
H.hook(V.APP_CONNECTED, e);
|
|
974
|
+
},
|
|
975
|
+
componentAdded(e) {
|
|
976
|
+
return H.hook(V.COMPONENT_ADDED, e);
|
|
977
|
+
},
|
|
978
|
+
componentEmit(e) {
|
|
979
|
+
return H.hook(V.COMPONENT_EMIT, e);
|
|
980
|
+
},
|
|
981
|
+
componentUpdated(e) {
|
|
982
|
+
return H.hook(V.COMPONENT_UPDATED, e);
|
|
983
|
+
},
|
|
984
|
+
componentRemoved(e) {
|
|
985
|
+
return H.hook(V.COMPONENT_REMOVED, e);
|
|
986
|
+
},
|
|
987
|
+
setupDevtoolsPlugin(e) {
|
|
988
|
+
H.hook(V.SETUP_DEVTOOLS_PLUGIN, e);
|
|
989
|
+
},
|
|
990
|
+
perfStart(e) {
|
|
991
|
+
return H.hook(V.PERFORMANCE_START, e);
|
|
992
|
+
},
|
|
993
|
+
perfEnd(e) {
|
|
994
|
+
return H.hook(V.PERFORMANCE_END, e);
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
setupDevToolsPlugin(e, t) {
|
|
998
|
+
return H.callHook(V.SETUP_DEVTOOLS_PLUGIN, e, t);
|
|
999
|
+
}
|
|
1000
|
+
}, It = class {
|
|
1001
|
+
constructor({ plugin: e, ctx: t }) {
|
|
1002
|
+
this.hooks = t.hooks, this.plugin = e;
|
|
1003
|
+
}
|
|
1004
|
+
get on() {
|
|
1005
|
+
return {
|
|
1006
|
+
visitComponentTree: (e) => {
|
|
1007
|
+
this.hooks.hook(P.VISIT_COMPONENT_TREE, e);
|
|
1008
|
+
},
|
|
1009
|
+
inspectComponent: (e) => {
|
|
1010
|
+
this.hooks.hook(P.INSPECT_COMPONENT, e);
|
|
1011
|
+
},
|
|
1012
|
+
editComponentState: (e) => {
|
|
1013
|
+
this.hooks.hook(P.EDIT_COMPONENT_STATE, e);
|
|
1014
|
+
},
|
|
1015
|
+
getInspectorTree: (e) => {
|
|
1016
|
+
this.hooks.hook(P.GET_INSPECTOR_TREE, e);
|
|
1017
|
+
},
|
|
1018
|
+
getInspectorState: (e) => {
|
|
1019
|
+
this.hooks.hook(P.GET_INSPECTOR_STATE, e);
|
|
1020
|
+
},
|
|
1021
|
+
editInspectorState: (e) => {
|
|
1022
|
+
this.hooks.hook(P.EDIT_INSPECTOR_STATE, e);
|
|
1023
|
+
},
|
|
1024
|
+
inspectTimelineEvent: (e) => {
|
|
1025
|
+
this.hooks.hook(P.INSPECT_TIMELINE_EVENT, e);
|
|
1026
|
+
},
|
|
1027
|
+
timelineCleared: (e) => {
|
|
1028
|
+
this.hooks.hook(P.TIMELINE_CLEARED, e);
|
|
1029
|
+
},
|
|
1030
|
+
setPluginSettings: (e) => {
|
|
1031
|
+
this.hooks.hook(P.SET_PLUGIN_SETTINGS, e);
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
notifyComponentUpdate(e) {
|
|
1036
|
+
if (B.highPerfModeEnabled) return;
|
|
1037
|
+
let t = yt().find((e) => e.packageName === this.plugin.descriptor.packageName);
|
|
1038
|
+
if (t?.id) {
|
|
1039
|
+
if (e) {
|
|
1040
|
+
let t = [
|
|
1041
|
+
e.appContext.app,
|
|
1042
|
+
e.uid,
|
|
1043
|
+
e.parent?.uid,
|
|
1044
|
+
e
|
|
1045
|
+
];
|
|
1046
|
+
H.callHook(V.COMPONENT_UPDATED, ...t);
|
|
1047
|
+
} else H.callHook(V.COMPONENT_UPDATED);
|
|
1048
|
+
this.hooks.callHook(F.SEND_INSPECTOR_STATE, {
|
|
1049
|
+
inspectorId: t.id,
|
|
1050
|
+
plugin: this.plugin
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
addInspector(e) {
|
|
1055
|
+
this.hooks.callHook(F.ADD_INSPECTOR, {
|
|
1056
|
+
inspector: e,
|
|
1057
|
+
plugin: this.plugin
|
|
1058
|
+
}), this.plugin.descriptor.settings && Nt(e.id, this.plugin.descriptor.settings);
|
|
1059
|
+
}
|
|
1060
|
+
sendInspectorTree(e) {
|
|
1061
|
+
B.highPerfModeEnabled || this.hooks.callHook(F.SEND_INSPECTOR_TREE, {
|
|
1062
|
+
inspectorId: e,
|
|
1063
|
+
plugin: this.plugin
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
sendInspectorState(e) {
|
|
1067
|
+
B.highPerfModeEnabled || this.hooks.callHook(F.SEND_INSPECTOR_STATE, {
|
|
1068
|
+
inspectorId: e,
|
|
1069
|
+
plugin: this.plugin
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
selectInspectorNode(e, t) {
|
|
1073
|
+
this.hooks.callHook(F.CUSTOM_INSPECTOR_SELECT_NODE, {
|
|
1074
|
+
inspectorId: e,
|
|
1075
|
+
nodeId: t,
|
|
1076
|
+
plugin: this.plugin
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
visitComponentTree(e) {
|
|
1080
|
+
return this.hooks.callHook(P.VISIT_COMPONENT_TREE, e);
|
|
1081
|
+
}
|
|
1082
|
+
now() {
|
|
1083
|
+
return B.highPerfModeEnabled ? 0 : Date.now();
|
|
1084
|
+
}
|
|
1085
|
+
addTimelineLayer(e) {
|
|
1086
|
+
this.hooks.callHook(F.TIMELINE_LAYER_ADDED, {
|
|
1087
|
+
options: e,
|
|
1088
|
+
plugin: this.plugin
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
addTimelineEvent(e) {
|
|
1092
|
+
B.highPerfModeEnabled || this.hooks.callHook(F.TIMELINE_EVENT_ADDED, {
|
|
1093
|
+
options: e,
|
|
1094
|
+
plugin: this.plugin
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
getSettings(e) {
|
|
1098
|
+
return Mt(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
|
|
1099
|
+
}
|
|
1100
|
+
getComponentInstances(e) {
|
|
1101
|
+
return this.hooks.callHook(F.GET_COMPONENT_INSTANCES, { app: e });
|
|
1102
|
+
}
|
|
1103
|
+
getComponentBounds(e) {
|
|
1104
|
+
return this.hooks.callHook(F.GET_COMPONENT_BOUNDS, { instance: e });
|
|
1105
|
+
}
|
|
1106
|
+
getComponentName(e) {
|
|
1107
|
+
return this.hooks.callHook(F.GET_COMPONENT_NAME, { instance: e });
|
|
1108
|
+
}
|
|
1109
|
+
highlightElement(e) {
|
|
1110
|
+
let t = e.__VUE_DEVTOOLS_NEXT_UID__;
|
|
1111
|
+
return this.hooks.callHook(F.COMPONENT_HIGHLIGHT, { uid: t });
|
|
1112
|
+
}
|
|
1113
|
+
unhighlightElement() {
|
|
1114
|
+
return this.hooks.callHook(F.COMPONENT_UNHIGHLIGHT);
|
|
1115
|
+
}
|
|
1116
|
+
}, Lt = "__vue_devtool_undefined__", Rt = "__vue_devtool_infinity__", zt = "__vue_devtool_negative_infinity__", Bt = "__vue_devtool_nan__";
|
|
1117
|
+
Object.entries({
|
|
1118
|
+
[Lt]: "undefined",
|
|
1119
|
+
[Bt]: "NaN",
|
|
1120
|
+
[Rt]: "Infinity",
|
|
1121
|
+
[zt]: "-Infinity"
|
|
1122
|
+
}).reduce((e, [t, n]) => (e[n] = t, e), {}), E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ ??= /* @__PURE__ */ new Set();
|
|
1123
|
+
function Vt(e, t) {
|
|
1124
|
+
return Ft.setupDevToolsPlugin(e, t);
|
|
1125
|
+
}
|
|
1126
|
+
function Ht(e, t) {
|
|
1127
|
+
let [n, r] = e;
|
|
1128
|
+
if (n.app !== t) return;
|
|
1129
|
+
let i = new It({
|
|
1130
|
+
plugin: {
|
|
1131
|
+
setupFn: r,
|
|
1132
|
+
descriptor: n
|
|
1133
|
+
},
|
|
1134
|
+
ctx: W
|
|
1135
|
+
});
|
|
1136
|
+
n.packageName === "vuex" && i.on.editInspectorState((e) => {
|
|
1137
|
+
i.sendInspectorState(e.inspectorId);
|
|
1138
|
+
}), r(i);
|
|
1139
|
+
}
|
|
1140
|
+
function Ut(e, t) {
|
|
1141
|
+
E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || B.highPerfModeEnabled && !t?.inspectingComponent || (E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Ot.forEach((t) => {
|
|
1142
|
+
Ht(t, e);
|
|
1143
|
+
}));
|
|
1144
|
+
}
|
|
1145
|
+
var Wt = "__VUE_DEVTOOLS_ROUTER__", U = "__VUE_DEVTOOLS_ROUTER_INFO__";
|
|
1146
|
+
E[U] ??= {
|
|
1147
|
+
currentRoute: null,
|
|
1148
|
+
routes: []
|
|
1149
|
+
}, E[Wt] ??= {}, new Proxy(E[U], { get(e, t) {
|
|
1150
|
+
return E[U][t];
|
|
1151
|
+
} }), new Proxy(E[Wt], { get(e, t) {
|
|
1152
|
+
if (t === "value") return E[Wt];
|
|
1153
|
+
} });
|
|
1154
|
+
function Gt(e) {
|
|
1155
|
+
let t = /* @__PURE__ */ new Map();
|
|
1156
|
+
return (e?.getRoutes() || []).filter((e) => !t.has(e.path) && t.set(e.path, 1));
|
|
1157
|
+
}
|
|
1158
|
+
function Kt(e) {
|
|
1159
|
+
return e.map((e) => {
|
|
1160
|
+
let { path: t, name: n, children: r, meta: i } = e;
|
|
1161
|
+
return r?.length && (r = Kt(r)), {
|
|
1162
|
+
path: t,
|
|
1163
|
+
name: n,
|
|
1164
|
+
children: r,
|
|
1165
|
+
meta: i
|
|
1166
|
+
};
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
function qt(e) {
|
|
1170
|
+
if (e) {
|
|
1171
|
+
let { fullPath: t, hash: n, href: r, path: i, name: a, matched: o, params: s, query: c } = e;
|
|
1172
|
+
return {
|
|
1173
|
+
fullPath: t,
|
|
1174
|
+
hash: n,
|
|
1175
|
+
href: r,
|
|
1176
|
+
path: i,
|
|
1177
|
+
name: a,
|
|
1178
|
+
params: s,
|
|
1179
|
+
query: c,
|
|
1180
|
+
matched: Kt(o)
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
return e;
|
|
1184
|
+
}
|
|
1185
|
+
function Jt(e, t) {
|
|
1186
|
+
function n() {
|
|
1187
|
+
let t = e.app?.config.globalProperties.$router, n = qt(t?.currentRoute.value), r = Kt(Gt(t)), i = console.warn;
|
|
1188
|
+
console.warn = () => {}, E[U] = {
|
|
1189
|
+
currentRoute: n ? ce(n) : {},
|
|
1190
|
+
routes: ce(r)
|
|
1191
|
+
}, E[Wt] = t, console.warn = i;
|
|
1192
|
+
}
|
|
1193
|
+
n(), Ft.on.componentUpdated(O(() => {
|
|
1194
|
+
t.value?.app === e.app && (n(), !B.highPerfModeEnabled && W.hooks.callHook(I.ROUTER_INFO_UPDATED, { state: E[U] }));
|
|
1195
|
+
}, 200));
|
|
1196
|
+
}
|
|
1197
|
+
function Yt(e) {
|
|
1198
|
+
return {
|
|
1199
|
+
async getInspectorTree(t) {
|
|
1200
|
+
let n = {
|
|
1201
|
+
...t,
|
|
1202
|
+
app: z.value.app,
|
|
1203
|
+
rootNodes: []
|
|
1204
|
+
};
|
|
1205
|
+
return await new Promise((t) => {
|
|
1206
|
+
e.callHookWith(async (e) => {
|
|
1207
|
+
await Promise.all(e.map((e) => e(n))), t();
|
|
1208
|
+
}, P.GET_INSPECTOR_TREE);
|
|
1209
|
+
}), n.rootNodes;
|
|
1210
|
+
},
|
|
1211
|
+
async getInspectorState(t) {
|
|
1212
|
+
let n = {
|
|
1213
|
+
...t,
|
|
1214
|
+
app: z.value.app,
|
|
1215
|
+
state: null
|
|
1216
|
+
}, r = { currentTab: `custom-inspector:${t.inspectorId}` };
|
|
1217
|
+
return await new Promise((t) => {
|
|
1218
|
+
e.callHookWith(async (e) => {
|
|
1219
|
+
await Promise.all(e.map((e) => e(n, r))), t();
|
|
1220
|
+
}, P.GET_INSPECTOR_STATE);
|
|
1221
|
+
}), n.state;
|
|
1222
|
+
},
|
|
1223
|
+
editInspectorState(t) {
|
|
1224
|
+
let n = new ut(), r = {
|
|
1225
|
+
...t,
|
|
1226
|
+
app: z.value.app,
|
|
1227
|
+
set: (e, r = t.path, i = t.state.value, a) => {
|
|
1228
|
+
n.set(e, r, i, a || n.createDefaultSetCallback(t.state));
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
e.callHookWith((e) => {
|
|
1232
|
+
e.forEach((e) => e(r));
|
|
1233
|
+
}, P.EDIT_INSPECTOR_STATE);
|
|
1234
|
+
},
|
|
1235
|
+
sendInspectorState(t) {
|
|
1236
|
+
let n = bt(t);
|
|
1237
|
+
e.callHook(F.SEND_INSPECTOR_STATE, {
|
|
1238
|
+
inspectorId: t,
|
|
1239
|
+
plugin: {
|
|
1240
|
+
descriptor: n.descriptor,
|
|
1241
|
+
setupFn: () => ({})
|
|
1242
|
+
}
|
|
1243
|
+
});
|
|
1244
|
+
},
|
|
1245
|
+
inspectComponentInspector() {
|
|
1246
|
+
return nt();
|
|
1247
|
+
},
|
|
1248
|
+
cancelInspectComponentInspector() {
|
|
1249
|
+
return tt();
|
|
1250
|
+
},
|
|
1251
|
+
getComponentRenderCode(e) {
|
|
1252
|
+
let t = De(z.value, e);
|
|
1253
|
+
if (t) return typeof t?.type == "function" ? t.type.toString() : t.render.toString();
|
|
1254
|
+
},
|
|
1255
|
+
scrollToComponent(e) {
|
|
1256
|
+
return rt({ id: e });
|
|
1257
|
+
},
|
|
1258
|
+
openInEditor: Dt,
|
|
1259
|
+
getVueInspector: ot,
|
|
1260
|
+
toggleApp(e, t) {
|
|
1261
|
+
let n = R.value.find((t) => t.id === e);
|
|
1262
|
+
n && (Et(e), Tt(n), Jt(n, z), _t(), Ut(n.app, t));
|
|
1263
|
+
},
|
|
1264
|
+
inspectDOM(e) {
|
|
1265
|
+
let t = De(z.value, e);
|
|
1266
|
+
if (t) {
|
|
1267
|
+
let [e] = Pe(t);
|
|
1268
|
+
e && (E.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = e);
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
updatePluginSettings(e, t, n) {
|
|
1272
|
+
Pt(e, t, n);
|
|
1273
|
+
},
|
|
1274
|
+
getPluginSettings(e) {
|
|
1275
|
+
return {
|
|
1276
|
+
options: jt(e),
|
|
1277
|
+
values: Mt(e)
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
E.__VUE_DEVTOOLS_ENV__ ??= { vitePluginDetected: !1 };
|
|
1283
|
+
var Xt = xt();
|
|
1284
|
+
E.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
|
|
1285
|
+
hooks: Xt,
|
|
1286
|
+
get state() {
|
|
1287
|
+
return {
|
|
1288
|
+
...B,
|
|
1289
|
+
activeAppRecordId: z.id,
|
|
1290
|
+
activeAppRecord: z.value,
|
|
1291
|
+
appRecords: R.value
|
|
1292
|
+
};
|
|
1293
|
+
},
|
|
1294
|
+
api: Yt(Xt)
|
|
1295
|
+
};
|
|
1296
|
+
var W = E.__VUE_DEVTOOLS_KIT_CONTEXT__, Zt = /* @__PURE__ */ be({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js": ((e, t) => {
|
|
1297
|
+
(function(e) {
|
|
1298
|
+
var n = {
|
|
1299
|
+
À: "A",
|
|
1300
|
+
Á: "A",
|
|
1301
|
+
Â: "A",
|
|
1302
|
+
Ã: "A",
|
|
1303
|
+
Ä: "Ae",
|
|
1304
|
+
Å: "A",
|
|
1305
|
+
Æ: "AE",
|
|
1306
|
+
Ç: "C",
|
|
1307
|
+
È: "E",
|
|
1308
|
+
É: "E",
|
|
1309
|
+
Ê: "E",
|
|
1310
|
+
Ë: "E",
|
|
1311
|
+
Ì: "I",
|
|
1312
|
+
Í: "I",
|
|
1313
|
+
Î: "I",
|
|
1314
|
+
Ï: "I",
|
|
1315
|
+
Ð: "D",
|
|
1316
|
+
Ñ: "N",
|
|
1317
|
+
Ò: "O",
|
|
1318
|
+
Ó: "O",
|
|
1319
|
+
Ô: "O",
|
|
1320
|
+
Õ: "O",
|
|
1321
|
+
Ö: "Oe",
|
|
1322
|
+
Ő: "O",
|
|
1323
|
+
Ø: "O",
|
|
1324
|
+
Ù: "U",
|
|
1325
|
+
Ú: "U",
|
|
1326
|
+
Û: "U",
|
|
1327
|
+
Ü: "Ue",
|
|
1328
|
+
Ű: "U",
|
|
1329
|
+
Ý: "Y",
|
|
1330
|
+
Þ: "TH",
|
|
1331
|
+
ß: "ss",
|
|
1332
|
+
à: "a",
|
|
1333
|
+
á: "a",
|
|
1334
|
+
â: "a",
|
|
1335
|
+
ã: "a",
|
|
1336
|
+
ä: "ae",
|
|
1337
|
+
å: "a",
|
|
1338
|
+
æ: "ae",
|
|
1339
|
+
ç: "c",
|
|
1340
|
+
è: "e",
|
|
1341
|
+
é: "e",
|
|
1342
|
+
ê: "e",
|
|
1343
|
+
ë: "e",
|
|
1344
|
+
ì: "i",
|
|
1345
|
+
í: "i",
|
|
1346
|
+
î: "i",
|
|
1347
|
+
ï: "i",
|
|
1348
|
+
ð: "d",
|
|
1349
|
+
ñ: "n",
|
|
1350
|
+
ò: "o",
|
|
1351
|
+
ó: "o",
|
|
1352
|
+
ô: "o",
|
|
1353
|
+
õ: "o",
|
|
1354
|
+
ö: "oe",
|
|
1355
|
+
ő: "o",
|
|
1356
|
+
ø: "o",
|
|
1357
|
+
ù: "u",
|
|
1358
|
+
ú: "u",
|
|
1359
|
+
û: "u",
|
|
1360
|
+
ü: "ue",
|
|
1361
|
+
ű: "u",
|
|
1362
|
+
ý: "y",
|
|
1363
|
+
þ: "th",
|
|
1364
|
+
ÿ: "y",
|
|
1365
|
+
ẞ: "SS",
|
|
1366
|
+
ا: "a",
|
|
1367
|
+
أ: "a",
|
|
1368
|
+
إ: "i",
|
|
1369
|
+
آ: "aa",
|
|
1370
|
+
ؤ: "u",
|
|
1371
|
+
ئ: "e",
|
|
1372
|
+
ء: "a",
|
|
1373
|
+
ب: "b",
|
|
1374
|
+
ت: "t",
|
|
1375
|
+
ث: "th",
|
|
1376
|
+
ج: "j",
|
|
1377
|
+
ح: "h",
|
|
1378
|
+
خ: "kh",
|
|
1379
|
+
د: "d",
|
|
1380
|
+
ذ: "th",
|
|
1381
|
+
ر: "r",
|
|
1382
|
+
ز: "z",
|
|
1383
|
+
س: "s",
|
|
1384
|
+
ش: "sh",
|
|
1385
|
+
ص: "s",
|
|
1386
|
+
ض: "dh",
|
|
1387
|
+
ط: "t",
|
|
1388
|
+
ظ: "z",
|
|
1389
|
+
ع: "a",
|
|
1390
|
+
غ: "gh",
|
|
1391
|
+
ف: "f",
|
|
1392
|
+
ق: "q",
|
|
1393
|
+
ك: "k",
|
|
1394
|
+
ل: "l",
|
|
1395
|
+
م: "m",
|
|
1396
|
+
ن: "n",
|
|
1397
|
+
ه: "h",
|
|
1398
|
+
و: "w",
|
|
1399
|
+
ي: "y",
|
|
1400
|
+
ى: "a",
|
|
1401
|
+
ة: "h",
|
|
1402
|
+
ﻻ: "la",
|
|
1403
|
+
ﻷ: "laa",
|
|
1404
|
+
ﻹ: "lai",
|
|
1405
|
+
ﻵ: "laa",
|
|
1406
|
+
گ: "g",
|
|
1407
|
+
چ: "ch",
|
|
1408
|
+
پ: "p",
|
|
1409
|
+
ژ: "zh",
|
|
1410
|
+
ک: "k",
|
|
1411
|
+
ی: "y",
|
|
1412
|
+
"َ": "a",
|
|
1413
|
+
"ً": "an",
|
|
1414
|
+
"ِ": "e",
|
|
1415
|
+
"ٍ": "en",
|
|
1416
|
+
"ُ": "u",
|
|
1417
|
+
"ٌ": "on",
|
|
1418
|
+
"ْ": "",
|
|
1419
|
+
"٠": "0",
|
|
1420
|
+
"١": "1",
|
|
1421
|
+
"٢": "2",
|
|
1422
|
+
"٣": "3",
|
|
1423
|
+
"٤": "4",
|
|
1424
|
+
"٥": "5",
|
|
1425
|
+
"٦": "6",
|
|
1426
|
+
"٧": "7",
|
|
1427
|
+
"٨": "8",
|
|
1428
|
+
"٩": "9",
|
|
1429
|
+
"۰": "0",
|
|
1430
|
+
"۱": "1",
|
|
1431
|
+
"۲": "2",
|
|
1432
|
+
"۳": "3",
|
|
1433
|
+
"۴": "4",
|
|
1434
|
+
"۵": "5",
|
|
1435
|
+
"۶": "6",
|
|
1436
|
+
"۷": "7",
|
|
1437
|
+
"۸": "8",
|
|
1438
|
+
"۹": "9",
|
|
1439
|
+
က: "k",
|
|
1440
|
+
ခ: "kh",
|
|
1441
|
+
ဂ: "g",
|
|
1442
|
+
ဃ: "ga",
|
|
1443
|
+
င: "ng",
|
|
1444
|
+
စ: "s",
|
|
1445
|
+
ဆ: "sa",
|
|
1446
|
+
ဇ: "z",
|
|
1447
|
+
စျ: "za",
|
|
1448
|
+
ည: "ny",
|
|
1449
|
+
ဋ: "t",
|
|
1450
|
+
ဌ: "ta",
|
|
1451
|
+
ဍ: "d",
|
|
1452
|
+
ဎ: "da",
|
|
1453
|
+
ဏ: "na",
|
|
1454
|
+
တ: "t",
|
|
1455
|
+
ထ: "ta",
|
|
1456
|
+
ဒ: "d",
|
|
1457
|
+
ဓ: "da",
|
|
1458
|
+
န: "n",
|
|
1459
|
+
ပ: "p",
|
|
1460
|
+
ဖ: "pa",
|
|
1461
|
+
ဗ: "b",
|
|
1462
|
+
ဘ: "ba",
|
|
1463
|
+
မ: "m",
|
|
1464
|
+
ယ: "y",
|
|
1465
|
+
ရ: "ya",
|
|
1466
|
+
လ: "l",
|
|
1467
|
+
ဝ: "w",
|
|
1468
|
+
သ: "th",
|
|
1469
|
+
ဟ: "h",
|
|
1470
|
+
ဠ: "la",
|
|
1471
|
+
အ: "a",
|
|
1472
|
+
"ြ": "y",
|
|
1473
|
+
"ျ": "ya",
|
|
1474
|
+
"ွ": "w",
|
|
1475
|
+
"ြွ": "yw",
|
|
1476
|
+
"ျွ": "ywa",
|
|
1477
|
+
"ှ": "h",
|
|
1478
|
+
ဧ: "e",
|
|
1479
|
+
"၏": "-e",
|
|
1480
|
+
ဣ: "i",
|
|
1481
|
+
ဤ: "-i",
|
|
1482
|
+
ဉ: "u",
|
|
1483
|
+
ဦ: "-u",
|
|
1484
|
+
ဩ: "aw",
|
|
1485
|
+
သြော: "aw",
|
|
1486
|
+
ဪ: "aw",
|
|
1487
|
+
"၀": "0",
|
|
1488
|
+
"၁": "1",
|
|
1489
|
+
"၂": "2",
|
|
1490
|
+
"၃": "3",
|
|
1491
|
+
"၄": "4",
|
|
1492
|
+
"၅": "5",
|
|
1493
|
+
"၆": "6",
|
|
1494
|
+
"၇": "7",
|
|
1495
|
+
"၈": "8",
|
|
1496
|
+
"၉": "9",
|
|
1497
|
+
"္": "",
|
|
1498
|
+
"့": "",
|
|
1499
|
+
"း": "",
|
|
1500
|
+
č: "c",
|
|
1501
|
+
ď: "d",
|
|
1502
|
+
ě: "e",
|
|
1503
|
+
ň: "n",
|
|
1504
|
+
ř: "r",
|
|
1505
|
+
š: "s",
|
|
1506
|
+
ť: "t",
|
|
1507
|
+
ů: "u",
|
|
1508
|
+
ž: "z",
|
|
1509
|
+
Č: "C",
|
|
1510
|
+
Ď: "D",
|
|
1511
|
+
Ě: "E",
|
|
1512
|
+
Ň: "N",
|
|
1513
|
+
Ř: "R",
|
|
1514
|
+
Š: "S",
|
|
1515
|
+
Ť: "T",
|
|
1516
|
+
Ů: "U",
|
|
1517
|
+
Ž: "Z",
|
|
1518
|
+
ހ: "h",
|
|
1519
|
+
ށ: "sh",
|
|
1520
|
+
ނ: "n",
|
|
1521
|
+
ރ: "r",
|
|
1522
|
+
ބ: "b",
|
|
1523
|
+
ޅ: "lh",
|
|
1524
|
+
ކ: "k",
|
|
1525
|
+
އ: "a",
|
|
1526
|
+
ވ: "v",
|
|
1527
|
+
މ: "m",
|
|
1528
|
+
ފ: "f",
|
|
1529
|
+
ދ: "dh",
|
|
1530
|
+
ތ: "th",
|
|
1531
|
+
ލ: "l",
|
|
1532
|
+
ގ: "g",
|
|
1533
|
+
ޏ: "gn",
|
|
1534
|
+
ސ: "s",
|
|
1535
|
+
ޑ: "d",
|
|
1536
|
+
ޒ: "z",
|
|
1537
|
+
ޓ: "t",
|
|
1538
|
+
ޔ: "y",
|
|
1539
|
+
ޕ: "p",
|
|
1540
|
+
ޖ: "j",
|
|
1541
|
+
ޗ: "ch",
|
|
1542
|
+
ޘ: "tt",
|
|
1543
|
+
ޙ: "hh",
|
|
1544
|
+
ޚ: "kh",
|
|
1545
|
+
ޛ: "th",
|
|
1546
|
+
ޜ: "z",
|
|
1547
|
+
ޝ: "sh",
|
|
1548
|
+
ޞ: "s",
|
|
1549
|
+
ޟ: "d",
|
|
1550
|
+
ޠ: "t",
|
|
1551
|
+
ޡ: "z",
|
|
1552
|
+
ޢ: "a",
|
|
1553
|
+
ޣ: "gh",
|
|
1554
|
+
ޤ: "q",
|
|
1555
|
+
ޥ: "w",
|
|
1556
|
+
"ަ": "a",
|
|
1557
|
+
"ާ": "aa",
|
|
1558
|
+
"ި": "i",
|
|
1559
|
+
"ީ": "ee",
|
|
1560
|
+
"ު": "u",
|
|
1561
|
+
"ޫ": "oo",
|
|
1562
|
+
"ެ": "e",
|
|
1563
|
+
"ޭ": "ey",
|
|
1564
|
+
"ޮ": "o",
|
|
1565
|
+
"ޯ": "oa",
|
|
1566
|
+
"ް": "",
|
|
1567
|
+
ა: "a",
|
|
1568
|
+
ბ: "b",
|
|
1569
|
+
გ: "g",
|
|
1570
|
+
დ: "d",
|
|
1571
|
+
ე: "e",
|
|
1572
|
+
ვ: "v",
|
|
1573
|
+
ზ: "z",
|
|
1574
|
+
თ: "t",
|
|
1575
|
+
ი: "i",
|
|
1576
|
+
კ: "k",
|
|
1577
|
+
ლ: "l",
|
|
1578
|
+
მ: "m",
|
|
1579
|
+
ნ: "n",
|
|
1580
|
+
ო: "o",
|
|
1581
|
+
პ: "p",
|
|
1582
|
+
ჟ: "zh",
|
|
1583
|
+
რ: "r",
|
|
1584
|
+
ს: "s",
|
|
1585
|
+
ტ: "t",
|
|
1586
|
+
უ: "u",
|
|
1587
|
+
ფ: "p",
|
|
1588
|
+
ქ: "k",
|
|
1589
|
+
ღ: "gh",
|
|
1590
|
+
ყ: "q",
|
|
1591
|
+
შ: "sh",
|
|
1592
|
+
ჩ: "ch",
|
|
1593
|
+
ც: "ts",
|
|
1594
|
+
ძ: "dz",
|
|
1595
|
+
წ: "ts",
|
|
1596
|
+
ჭ: "ch",
|
|
1597
|
+
ხ: "kh",
|
|
1598
|
+
ჯ: "j",
|
|
1599
|
+
ჰ: "h",
|
|
1600
|
+
α: "a",
|
|
1601
|
+
β: "v",
|
|
1602
|
+
γ: "g",
|
|
1603
|
+
δ: "d",
|
|
1604
|
+
ε: "e",
|
|
1605
|
+
ζ: "z",
|
|
1606
|
+
η: "i",
|
|
1607
|
+
θ: "th",
|
|
1608
|
+
ι: "i",
|
|
1609
|
+
κ: "k",
|
|
1610
|
+
λ: "l",
|
|
1611
|
+
μ: "m",
|
|
1612
|
+
ν: "n",
|
|
1613
|
+
ξ: "ks",
|
|
1614
|
+
ο: "o",
|
|
1615
|
+
π: "p",
|
|
1616
|
+
ρ: "r",
|
|
1617
|
+
σ: "s",
|
|
1618
|
+
τ: "t",
|
|
1619
|
+
υ: "y",
|
|
1620
|
+
φ: "f",
|
|
1621
|
+
χ: "x",
|
|
1622
|
+
ψ: "ps",
|
|
1623
|
+
ω: "o",
|
|
1624
|
+
ά: "a",
|
|
1625
|
+
έ: "e",
|
|
1626
|
+
ί: "i",
|
|
1627
|
+
ό: "o",
|
|
1628
|
+
ύ: "y",
|
|
1629
|
+
ή: "i",
|
|
1630
|
+
ώ: "o",
|
|
1631
|
+
ς: "s",
|
|
1632
|
+
ϊ: "i",
|
|
1633
|
+
ΰ: "y",
|
|
1634
|
+
ϋ: "y",
|
|
1635
|
+
ΐ: "i",
|
|
1636
|
+
Α: "A",
|
|
1637
|
+
Β: "B",
|
|
1638
|
+
Γ: "G",
|
|
1639
|
+
Δ: "D",
|
|
1640
|
+
Ε: "E",
|
|
1641
|
+
Ζ: "Z",
|
|
1642
|
+
Η: "I",
|
|
1643
|
+
Θ: "TH",
|
|
1644
|
+
Ι: "I",
|
|
1645
|
+
Κ: "K",
|
|
1646
|
+
Λ: "L",
|
|
1647
|
+
Μ: "M",
|
|
1648
|
+
Ν: "N",
|
|
1649
|
+
Ξ: "KS",
|
|
1650
|
+
Ο: "O",
|
|
1651
|
+
Π: "P",
|
|
1652
|
+
Ρ: "R",
|
|
1653
|
+
Σ: "S",
|
|
1654
|
+
Τ: "T",
|
|
1655
|
+
Υ: "Y",
|
|
1656
|
+
Φ: "F",
|
|
1657
|
+
Χ: "X",
|
|
1658
|
+
Ψ: "PS",
|
|
1659
|
+
Ω: "O",
|
|
1660
|
+
Ά: "A",
|
|
1661
|
+
Έ: "E",
|
|
1662
|
+
Ί: "I",
|
|
1663
|
+
Ό: "O",
|
|
1664
|
+
Ύ: "Y",
|
|
1665
|
+
Ή: "I",
|
|
1666
|
+
Ώ: "O",
|
|
1667
|
+
Ϊ: "I",
|
|
1668
|
+
Ϋ: "Y",
|
|
1669
|
+
ā: "a",
|
|
1670
|
+
ē: "e",
|
|
1671
|
+
ģ: "g",
|
|
1672
|
+
ī: "i",
|
|
1673
|
+
ķ: "k",
|
|
1674
|
+
ļ: "l",
|
|
1675
|
+
ņ: "n",
|
|
1676
|
+
ū: "u",
|
|
1677
|
+
Ā: "A",
|
|
1678
|
+
Ē: "E",
|
|
1679
|
+
Ģ: "G",
|
|
1680
|
+
Ī: "I",
|
|
1681
|
+
Ķ: "k",
|
|
1682
|
+
Ļ: "L",
|
|
1683
|
+
Ņ: "N",
|
|
1684
|
+
Ū: "U",
|
|
1685
|
+
Ќ: "Kj",
|
|
1686
|
+
ќ: "kj",
|
|
1687
|
+
Љ: "Lj",
|
|
1688
|
+
љ: "lj",
|
|
1689
|
+
Њ: "Nj",
|
|
1690
|
+
њ: "nj",
|
|
1691
|
+
Тс: "Ts",
|
|
1692
|
+
тс: "ts",
|
|
1693
|
+
ą: "a",
|
|
1694
|
+
ć: "c",
|
|
1695
|
+
ę: "e",
|
|
1696
|
+
ł: "l",
|
|
1697
|
+
ń: "n",
|
|
1698
|
+
ś: "s",
|
|
1699
|
+
ź: "z",
|
|
1700
|
+
ż: "z",
|
|
1701
|
+
Ą: "A",
|
|
1702
|
+
Ć: "C",
|
|
1703
|
+
Ę: "E",
|
|
1704
|
+
Ł: "L",
|
|
1705
|
+
Ń: "N",
|
|
1706
|
+
Ś: "S",
|
|
1707
|
+
Ź: "Z",
|
|
1708
|
+
Ż: "Z",
|
|
1709
|
+
Є: "Ye",
|
|
1710
|
+
І: "I",
|
|
1711
|
+
Ї: "Yi",
|
|
1712
|
+
Ґ: "G",
|
|
1713
|
+
є: "ye",
|
|
1714
|
+
і: "i",
|
|
1715
|
+
ї: "yi",
|
|
1716
|
+
ґ: "g",
|
|
1717
|
+
ă: "a",
|
|
1718
|
+
Ă: "A",
|
|
1719
|
+
ș: "s",
|
|
1720
|
+
Ș: "S",
|
|
1721
|
+
ț: "t",
|
|
1722
|
+
Ț: "T",
|
|
1723
|
+
ţ: "t",
|
|
1724
|
+
Ţ: "T",
|
|
1725
|
+
а: "a",
|
|
1726
|
+
б: "b",
|
|
1727
|
+
в: "v",
|
|
1728
|
+
г: "g",
|
|
1729
|
+
д: "d",
|
|
1730
|
+
е: "e",
|
|
1731
|
+
ё: "yo",
|
|
1732
|
+
ж: "zh",
|
|
1733
|
+
з: "z",
|
|
1734
|
+
и: "i",
|
|
1735
|
+
й: "i",
|
|
1736
|
+
к: "k",
|
|
1737
|
+
л: "l",
|
|
1738
|
+
м: "m",
|
|
1739
|
+
н: "n",
|
|
1740
|
+
о: "o",
|
|
1741
|
+
п: "p",
|
|
1742
|
+
р: "r",
|
|
1743
|
+
с: "s",
|
|
1744
|
+
т: "t",
|
|
1745
|
+
у: "u",
|
|
1746
|
+
ф: "f",
|
|
1747
|
+
х: "kh",
|
|
1748
|
+
ц: "c",
|
|
1749
|
+
ч: "ch",
|
|
1750
|
+
ш: "sh",
|
|
1751
|
+
щ: "sh",
|
|
1752
|
+
ъ: "",
|
|
1753
|
+
ы: "y",
|
|
1754
|
+
ь: "",
|
|
1755
|
+
э: "e",
|
|
1756
|
+
ю: "yu",
|
|
1757
|
+
я: "ya",
|
|
1758
|
+
А: "A",
|
|
1759
|
+
Б: "B",
|
|
1760
|
+
В: "V",
|
|
1761
|
+
Г: "G",
|
|
1762
|
+
Д: "D",
|
|
1763
|
+
Е: "E",
|
|
1764
|
+
Ё: "Yo",
|
|
1765
|
+
Ж: "Zh",
|
|
1766
|
+
З: "Z",
|
|
1767
|
+
И: "I",
|
|
1768
|
+
Й: "I",
|
|
1769
|
+
К: "K",
|
|
1770
|
+
Л: "L",
|
|
1771
|
+
М: "M",
|
|
1772
|
+
Н: "N",
|
|
1773
|
+
О: "O",
|
|
1774
|
+
П: "P",
|
|
1775
|
+
Р: "R",
|
|
1776
|
+
С: "S",
|
|
1777
|
+
Т: "T",
|
|
1778
|
+
У: "U",
|
|
1779
|
+
Ф: "F",
|
|
1780
|
+
Х: "Kh",
|
|
1781
|
+
Ц: "C",
|
|
1782
|
+
Ч: "Ch",
|
|
1783
|
+
Ш: "Sh",
|
|
1784
|
+
Щ: "Sh",
|
|
1785
|
+
Ъ: "",
|
|
1786
|
+
Ы: "Y",
|
|
1787
|
+
Ь: "",
|
|
1788
|
+
Э: "E",
|
|
1789
|
+
Ю: "Yu",
|
|
1790
|
+
Я: "Ya",
|
|
1791
|
+
ђ: "dj",
|
|
1792
|
+
ј: "j",
|
|
1793
|
+
ћ: "c",
|
|
1794
|
+
џ: "dz",
|
|
1795
|
+
Ђ: "Dj",
|
|
1796
|
+
Ј: "j",
|
|
1797
|
+
Ћ: "C",
|
|
1798
|
+
Џ: "Dz",
|
|
1799
|
+
ľ: "l",
|
|
1800
|
+
ĺ: "l",
|
|
1801
|
+
ŕ: "r",
|
|
1802
|
+
Ľ: "L",
|
|
1803
|
+
Ĺ: "L",
|
|
1804
|
+
Ŕ: "R",
|
|
1805
|
+
ş: "s",
|
|
1806
|
+
Ş: "S",
|
|
1807
|
+
ı: "i",
|
|
1808
|
+
İ: "I",
|
|
1809
|
+
ğ: "g",
|
|
1810
|
+
Ğ: "G",
|
|
1811
|
+
ả: "a",
|
|
1812
|
+
Ả: "A",
|
|
1813
|
+
ẳ: "a",
|
|
1814
|
+
Ẳ: "A",
|
|
1815
|
+
ẩ: "a",
|
|
1816
|
+
Ẩ: "A",
|
|
1817
|
+
đ: "d",
|
|
1818
|
+
Đ: "D",
|
|
1819
|
+
ẹ: "e",
|
|
1820
|
+
Ẹ: "E",
|
|
1821
|
+
ẽ: "e",
|
|
1822
|
+
Ẽ: "E",
|
|
1823
|
+
ẻ: "e",
|
|
1824
|
+
Ẻ: "E",
|
|
1825
|
+
ế: "e",
|
|
1826
|
+
Ế: "E",
|
|
1827
|
+
ề: "e",
|
|
1828
|
+
Ề: "E",
|
|
1829
|
+
ệ: "e",
|
|
1830
|
+
Ệ: "E",
|
|
1831
|
+
ễ: "e",
|
|
1832
|
+
Ễ: "E",
|
|
1833
|
+
ể: "e",
|
|
1834
|
+
Ể: "E",
|
|
1835
|
+
ỏ: "o",
|
|
1836
|
+
ọ: "o",
|
|
1837
|
+
Ọ: "o",
|
|
1838
|
+
ố: "o",
|
|
1839
|
+
Ố: "O",
|
|
1840
|
+
ồ: "o",
|
|
1841
|
+
Ồ: "O",
|
|
1842
|
+
ổ: "o",
|
|
1843
|
+
Ổ: "O",
|
|
1844
|
+
ộ: "o",
|
|
1845
|
+
Ộ: "O",
|
|
1846
|
+
ỗ: "o",
|
|
1847
|
+
Ỗ: "O",
|
|
1848
|
+
ơ: "o",
|
|
1849
|
+
Ơ: "O",
|
|
1850
|
+
ớ: "o",
|
|
1851
|
+
Ớ: "O",
|
|
1852
|
+
ờ: "o",
|
|
1853
|
+
Ờ: "O",
|
|
1854
|
+
ợ: "o",
|
|
1855
|
+
Ợ: "O",
|
|
1856
|
+
ỡ: "o",
|
|
1857
|
+
Ỡ: "O",
|
|
1858
|
+
Ở: "o",
|
|
1859
|
+
ở: "o",
|
|
1860
|
+
ị: "i",
|
|
1861
|
+
Ị: "I",
|
|
1862
|
+
ĩ: "i",
|
|
1863
|
+
Ĩ: "I",
|
|
1864
|
+
ỉ: "i",
|
|
1865
|
+
Ỉ: "i",
|
|
1866
|
+
ủ: "u",
|
|
1867
|
+
Ủ: "U",
|
|
1868
|
+
ụ: "u",
|
|
1869
|
+
Ụ: "U",
|
|
1870
|
+
ũ: "u",
|
|
1871
|
+
Ũ: "U",
|
|
1872
|
+
ư: "u",
|
|
1873
|
+
Ư: "U",
|
|
1874
|
+
ứ: "u",
|
|
1875
|
+
Ứ: "U",
|
|
1876
|
+
ừ: "u",
|
|
1877
|
+
Ừ: "U",
|
|
1878
|
+
ự: "u",
|
|
1879
|
+
Ự: "U",
|
|
1880
|
+
ữ: "u",
|
|
1881
|
+
Ữ: "U",
|
|
1882
|
+
ử: "u",
|
|
1883
|
+
Ử: "ư",
|
|
1884
|
+
ỷ: "y",
|
|
1885
|
+
Ỷ: "y",
|
|
1886
|
+
ỳ: "y",
|
|
1887
|
+
Ỳ: "Y",
|
|
1888
|
+
ỵ: "y",
|
|
1889
|
+
Ỵ: "Y",
|
|
1890
|
+
ỹ: "y",
|
|
1891
|
+
Ỹ: "Y",
|
|
1892
|
+
ạ: "a",
|
|
1893
|
+
Ạ: "A",
|
|
1894
|
+
ấ: "a",
|
|
1895
|
+
Ấ: "A",
|
|
1896
|
+
ầ: "a",
|
|
1897
|
+
Ầ: "A",
|
|
1898
|
+
ậ: "a",
|
|
1899
|
+
Ậ: "A",
|
|
1900
|
+
ẫ: "a",
|
|
1901
|
+
Ẫ: "A",
|
|
1902
|
+
ắ: "a",
|
|
1903
|
+
Ắ: "A",
|
|
1904
|
+
ằ: "a",
|
|
1905
|
+
Ằ: "A",
|
|
1906
|
+
ặ: "a",
|
|
1907
|
+
Ặ: "A",
|
|
1908
|
+
ẵ: "a",
|
|
1909
|
+
Ẵ: "A",
|
|
1910
|
+
"⓪": "0",
|
|
1911
|
+
"①": "1",
|
|
1912
|
+
"②": "2",
|
|
1913
|
+
"③": "3",
|
|
1914
|
+
"④": "4",
|
|
1915
|
+
"⑤": "5",
|
|
1916
|
+
"⑥": "6",
|
|
1917
|
+
"⑦": "7",
|
|
1918
|
+
"⑧": "8",
|
|
1919
|
+
"⑨": "9",
|
|
1920
|
+
"⑩": "10",
|
|
1921
|
+
"⑪": "11",
|
|
1922
|
+
"⑫": "12",
|
|
1923
|
+
"⑬": "13",
|
|
1924
|
+
"⑭": "14",
|
|
1925
|
+
"⑮": "15",
|
|
1926
|
+
"⑯": "16",
|
|
1927
|
+
"⑰": "17",
|
|
1928
|
+
"⑱": "18",
|
|
1929
|
+
"⑲": "18",
|
|
1930
|
+
"⑳": "18",
|
|
1931
|
+
"⓵": "1",
|
|
1932
|
+
"⓶": "2",
|
|
1933
|
+
"⓷": "3",
|
|
1934
|
+
"⓸": "4",
|
|
1935
|
+
"⓹": "5",
|
|
1936
|
+
"⓺": "6",
|
|
1937
|
+
"⓻": "7",
|
|
1938
|
+
"⓼": "8",
|
|
1939
|
+
"⓽": "9",
|
|
1940
|
+
"⓾": "10",
|
|
1941
|
+
"⓿": "0",
|
|
1942
|
+
"⓫": "11",
|
|
1943
|
+
"⓬": "12",
|
|
1944
|
+
"⓭": "13",
|
|
1945
|
+
"⓮": "14",
|
|
1946
|
+
"⓯": "15",
|
|
1947
|
+
"⓰": "16",
|
|
1948
|
+
"⓱": "17",
|
|
1949
|
+
"⓲": "18",
|
|
1950
|
+
"⓳": "19",
|
|
1951
|
+
"⓴": "20",
|
|
1952
|
+
"Ⓐ": "A",
|
|
1953
|
+
"Ⓑ": "B",
|
|
1954
|
+
"Ⓒ": "C",
|
|
1955
|
+
"Ⓓ": "D",
|
|
1956
|
+
"Ⓔ": "E",
|
|
1957
|
+
"Ⓕ": "F",
|
|
1958
|
+
"Ⓖ": "G",
|
|
1959
|
+
"Ⓗ": "H",
|
|
1960
|
+
"Ⓘ": "I",
|
|
1961
|
+
"Ⓙ": "J",
|
|
1962
|
+
"Ⓚ": "K",
|
|
1963
|
+
"Ⓛ": "L",
|
|
1964
|
+
"Ⓜ": "M",
|
|
1965
|
+
"Ⓝ": "N",
|
|
1966
|
+
"Ⓞ": "O",
|
|
1967
|
+
"Ⓟ": "P",
|
|
1968
|
+
"Ⓠ": "Q",
|
|
1969
|
+
"Ⓡ": "R",
|
|
1970
|
+
"Ⓢ": "S",
|
|
1971
|
+
"Ⓣ": "T",
|
|
1972
|
+
"Ⓤ": "U",
|
|
1973
|
+
"Ⓥ": "V",
|
|
1974
|
+
"Ⓦ": "W",
|
|
1975
|
+
"Ⓧ": "X",
|
|
1976
|
+
"Ⓨ": "Y",
|
|
1977
|
+
"Ⓩ": "Z",
|
|
1978
|
+
"ⓐ": "a",
|
|
1979
|
+
"ⓑ": "b",
|
|
1980
|
+
"ⓒ": "c",
|
|
1981
|
+
"ⓓ": "d",
|
|
1982
|
+
"ⓔ": "e",
|
|
1983
|
+
"ⓕ": "f",
|
|
1984
|
+
"ⓖ": "g",
|
|
1985
|
+
"ⓗ": "h",
|
|
1986
|
+
"ⓘ": "i",
|
|
1987
|
+
"ⓙ": "j",
|
|
1988
|
+
"ⓚ": "k",
|
|
1989
|
+
"ⓛ": "l",
|
|
1990
|
+
"ⓜ": "m",
|
|
1991
|
+
"ⓝ": "n",
|
|
1992
|
+
"ⓞ": "o",
|
|
1993
|
+
"ⓟ": "p",
|
|
1994
|
+
"ⓠ": "q",
|
|
1995
|
+
"ⓡ": "r",
|
|
1996
|
+
"ⓢ": "s",
|
|
1997
|
+
"ⓣ": "t",
|
|
1998
|
+
"ⓤ": "u",
|
|
1999
|
+
"ⓦ": "v",
|
|
2000
|
+
"ⓥ": "w",
|
|
2001
|
+
"ⓧ": "x",
|
|
2002
|
+
"ⓨ": "y",
|
|
2003
|
+
"ⓩ": "z",
|
|
2004
|
+
"“": "\"",
|
|
2005
|
+
"”": "\"",
|
|
2006
|
+
"‘": "'",
|
|
2007
|
+
"’": "'",
|
|
2008
|
+
"∂": "d",
|
|
2009
|
+
ƒ: "f",
|
|
2010
|
+
"™": "(TM)",
|
|
2011
|
+
"©": "(C)",
|
|
2012
|
+
œ: "oe",
|
|
2013
|
+
Œ: "OE",
|
|
2014
|
+
"®": "(R)",
|
|
2015
|
+
"†": "+",
|
|
2016
|
+
"℠": "(SM)",
|
|
2017
|
+
"…": "...",
|
|
2018
|
+
"˚": "o",
|
|
2019
|
+
º: "o",
|
|
2020
|
+
ª: "a",
|
|
2021
|
+
"•": "*",
|
|
2022
|
+
"၊": ",",
|
|
2023
|
+
"။": ".",
|
|
2024
|
+
$: "USD",
|
|
2025
|
+
"€": "EUR",
|
|
2026
|
+
"₢": "BRN",
|
|
2027
|
+
"₣": "FRF",
|
|
2028
|
+
"£": "GBP",
|
|
2029
|
+
"₤": "ITL",
|
|
2030
|
+
"₦": "NGN",
|
|
2031
|
+
"₧": "ESP",
|
|
2032
|
+
"₩": "KRW",
|
|
2033
|
+
"₪": "ILS",
|
|
2034
|
+
"₫": "VND",
|
|
2035
|
+
"₭": "LAK",
|
|
2036
|
+
"₮": "MNT",
|
|
2037
|
+
"₯": "GRD",
|
|
2038
|
+
"₱": "ARS",
|
|
2039
|
+
"₲": "PYG",
|
|
2040
|
+
"₳": "ARA",
|
|
2041
|
+
"₴": "UAH",
|
|
2042
|
+
"₵": "GHS",
|
|
2043
|
+
"¢": "cent",
|
|
2044
|
+
"¥": "CNY",
|
|
2045
|
+
元: "CNY",
|
|
2046
|
+
円: "YEN",
|
|
2047
|
+
"﷼": "IRR",
|
|
2048
|
+
"₠": "EWE",
|
|
2049
|
+
"฿": "THB",
|
|
2050
|
+
"₨": "INR",
|
|
2051
|
+
"₹": "INR",
|
|
2052
|
+
"₰": "PF",
|
|
2053
|
+
"₺": "TRY",
|
|
2054
|
+
"؋": "AFN",
|
|
2055
|
+
"₼": "AZN",
|
|
2056
|
+
лв: "BGN",
|
|
2057
|
+
"៛": "KHR",
|
|
2058
|
+
"₡": "CRC",
|
|
2059
|
+
"₸": "KZT",
|
|
2060
|
+
ден: "MKD",
|
|
2061
|
+
zł: "PLN",
|
|
2062
|
+
"₽": "RUB",
|
|
2063
|
+
"₾": "GEL"
|
|
2064
|
+
}, r = ["်", "ް"], i = {
|
|
2065
|
+
"ာ": "a",
|
|
2066
|
+
"ါ": "a",
|
|
2067
|
+
"ေ": "e",
|
|
2068
|
+
"ဲ": "e",
|
|
2069
|
+
"ိ": "i",
|
|
2070
|
+
"ီ": "i",
|
|
2071
|
+
"ို": "o",
|
|
2072
|
+
"ု": "u",
|
|
2073
|
+
"ူ": "u",
|
|
2074
|
+
"ေါင်": "aung",
|
|
2075
|
+
"ော": "aw",
|
|
2076
|
+
"ော်": "aw",
|
|
2077
|
+
"ေါ": "aw",
|
|
2078
|
+
"ေါ်": "aw",
|
|
2079
|
+
"်": "်",
|
|
2080
|
+
က်: "et",
|
|
2081
|
+
"ိုက်": "aik",
|
|
2082
|
+
"ောက်": "auk",
|
|
2083
|
+
င်: "in",
|
|
2084
|
+
"ိုင်": "aing",
|
|
2085
|
+
"ောင်": "aung",
|
|
2086
|
+
စ်: "it",
|
|
2087
|
+
ည်: "i",
|
|
2088
|
+
တ်: "at",
|
|
2089
|
+
"ိတ်": "eik",
|
|
2090
|
+
"ုတ်": "ok",
|
|
2091
|
+
"ွတ်": "ut",
|
|
2092
|
+
"ေတ်": "it",
|
|
2093
|
+
ဒ်: "d",
|
|
2094
|
+
"ိုဒ်": "ok",
|
|
2095
|
+
"ုဒ်": "ait",
|
|
2096
|
+
န်: "an",
|
|
2097
|
+
"ာန်": "an",
|
|
2098
|
+
"ိန်": "ein",
|
|
2099
|
+
"ုန်": "on",
|
|
2100
|
+
"ွန်": "un",
|
|
2101
|
+
ပ်: "at",
|
|
2102
|
+
"ိပ်": "eik",
|
|
2103
|
+
"ုပ်": "ok",
|
|
2104
|
+
"ွပ်": "ut",
|
|
2105
|
+
န်ုပ်: "nub",
|
|
2106
|
+
မ်: "an",
|
|
2107
|
+
"ိမ်": "ein",
|
|
2108
|
+
"ုမ်": "on",
|
|
2109
|
+
"ွမ်": "un",
|
|
2110
|
+
ယ်: "e",
|
|
2111
|
+
"ိုလ်": "ol",
|
|
2112
|
+
ဉ်: "in",
|
|
2113
|
+
"ံ": "an",
|
|
2114
|
+
"ိံ": "ein",
|
|
2115
|
+
"ုံ": "on",
|
|
2116
|
+
"ައް": "ah",
|
|
2117
|
+
"ަށް": "ah"
|
|
2118
|
+
}, a = {
|
|
2119
|
+
en: {},
|
|
2120
|
+
az: {
|
|
2121
|
+
ç: "c",
|
|
2122
|
+
ə: "e",
|
|
2123
|
+
ğ: "g",
|
|
2124
|
+
ı: "i",
|
|
2125
|
+
ö: "o",
|
|
2126
|
+
ş: "s",
|
|
2127
|
+
ü: "u",
|
|
2128
|
+
Ç: "C",
|
|
2129
|
+
Ə: "E",
|
|
2130
|
+
Ğ: "G",
|
|
2131
|
+
İ: "I",
|
|
2132
|
+
Ö: "O",
|
|
2133
|
+
Ş: "S",
|
|
2134
|
+
Ü: "U"
|
|
2135
|
+
},
|
|
2136
|
+
cs: {
|
|
2137
|
+
č: "c",
|
|
2138
|
+
ď: "d",
|
|
2139
|
+
ě: "e",
|
|
2140
|
+
ň: "n",
|
|
2141
|
+
ř: "r",
|
|
2142
|
+
š: "s",
|
|
2143
|
+
ť: "t",
|
|
2144
|
+
ů: "u",
|
|
2145
|
+
ž: "z",
|
|
2146
|
+
Č: "C",
|
|
2147
|
+
Ď: "D",
|
|
2148
|
+
Ě: "E",
|
|
2149
|
+
Ň: "N",
|
|
2150
|
+
Ř: "R",
|
|
2151
|
+
Š: "S",
|
|
2152
|
+
Ť: "T",
|
|
2153
|
+
Ů: "U",
|
|
2154
|
+
Ž: "Z"
|
|
2155
|
+
},
|
|
2156
|
+
fi: {
|
|
2157
|
+
ä: "a",
|
|
2158
|
+
Ä: "A",
|
|
2159
|
+
ö: "o",
|
|
2160
|
+
Ö: "O"
|
|
2161
|
+
},
|
|
2162
|
+
hu: {
|
|
2163
|
+
ä: "a",
|
|
2164
|
+
Ä: "A",
|
|
2165
|
+
ö: "o",
|
|
2166
|
+
Ö: "O",
|
|
2167
|
+
ü: "u",
|
|
2168
|
+
Ü: "U",
|
|
2169
|
+
ű: "u",
|
|
2170
|
+
Ű: "U"
|
|
2171
|
+
},
|
|
2172
|
+
lt: {
|
|
2173
|
+
ą: "a",
|
|
2174
|
+
č: "c",
|
|
2175
|
+
ę: "e",
|
|
2176
|
+
ė: "e",
|
|
2177
|
+
į: "i",
|
|
2178
|
+
š: "s",
|
|
2179
|
+
ų: "u",
|
|
2180
|
+
ū: "u",
|
|
2181
|
+
ž: "z",
|
|
2182
|
+
Ą: "A",
|
|
2183
|
+
Č: "C",
|
|
2184
|
+
Ę: "E",
|
|
2185
|
+
Ė: "E",
|
|
2186
|
+
Į: "I",
|
|
2187
|
+
Š: "S",
|
|
2188
|
+
Ų: "U",
|
|
2189
|
+
Ū: "U"
|
|
2190
|
+
},
|
|
2191
|
+
lv: {
|
|
2192
|
+
ā: "a",
|
|
2193
|
+
č: "c",
|
|
2194
|
+
ē: "e",
|
|
2195
|
+
ģ: "g",
|
|
2196
|
+
ī: "i",
|
|
2197
|
+
ķ: "k",
|
|
2198
|
+
ļ: "l",
|
|
2199
|
+
ņ: "n",
|
|
2200
|
+
š: "s",
|
|
2201
|
+
ū: "u",
|
|
2202
|
+
ž: "z",
|
|
2203
|
+
Ā: "A",
|
|
2204
|
+
Č: "C",
|
|
2205
|
+
Ē: "E",
|
|
2206
|
+
Ģ: "G",
|
|
2207
|
+
Ī: "i",
|
|
2208
|
+
Ķ: "k",
|
|
2209
|
+
Ļ: "L",
|
|
2210
|
+
Ņ: "N",
|
|
2211
|
+
Š: "S",
|
|
2212
|
+
Ū: "u",
|
|
2213
|
+
Ž: "Z"
|
|
2214
|
+
},
|
|
2215
|
+
pl: {
|
|
2216
|
+
ą: "a",
|
|
2217
|
+
ć: "c",
|
|
2218
|
+
ę: "e",
|
|
2219
|
+
ł: "l",
|
|
2220
|
+
ń: "n",
|
|
2221
|
+
ó: "o",
|
|
2222
|
+
ś: "s",
|
|
2223
|
+
ź: "z",
|
|
2224
|
+
ż: "z",
|
|
2225
|
+
Ą: "A",
|
|
2226
|
+
Ć: "C",
|
|
2227
|
+
Ę: "e",
|
|
2228
|
+
Ł: "L",
|
|
2229
|
+
Ń: "N",
|
|
2230
|
+
Ó: "O",
|
|
2231
|
+
Ś: "S",
|
|
2232
|
+
Ź: "Z",
|
|
2233
|
+
Ż: "Z"
|
|
2234
|
+
},
|
|
2235
|
+
sv: {
|
|
2236
|
+
ä: "a",
|
|
2237
|
+
Ä: "A",
|
|
2238
|
+
ö: "o",
|
|
2239
|
+
Ö: "O"
|
|
2240
|
+
},
|
|
2241
|
+
sk: {
|
|
2242
|
+
ä: "a",
|
|
2243
|
+
Ä: "A"
|
|
2244
|
+
},
|
|
2245
|
+
sr: {
|
|
2246
|
+
љ: "lj",
|
|
2247
|
+
њ: "nj",
|
|
2248
|
+
Љ: "Lj",
|
|
2249
|
+
Њ: "Nj",
|
|
2250
|
+
đ: "dj",
|
|
2251
|
+
Đ: "Dj"
|
|
2252
|
+
},
|
|
2253
|
+
tr: {
|
|
2254
|
+
Ü: "U",
|
|
2255
|
+
Ö: "O",
|
|
2256
|
+
ü: "u",
|
|
2257
|
+
ö: "o"
|
|
2258
|
+
}
|
|
2259
|
+
}, o = {
|
|
2260
|
+
ar: {
|
|
2261
|
+
"∆": "delta",
|
|
2262
|
+
"∞": "la-nihaya",
|
|
2263
|
+
"♥": "hob",
|
|
2264
|
+
"&": "wa",
|
|
2265
|
+
"|": "aw",
|
|
2266
|
+
"<": "aqal-men",
|
|
2267
|
+
">": "akbar-men",
|
|
2268
|
+
"∑": "majmou",
|
|
2269
|
+
"¤": "omla"
|
|
2270
|
+
},
|
|
2271
|
+
az: {},
|
|
2272
|
+
ca: {
|
|
2273
|
+
"∆": "delta",
|
|
2274
|
+
"∞": "infinit",
|
|
2275
|
+
"♥": "amor",
|
|
2276
|
+
"&": "i",
|
|
2277
|
+
"|": "o",
|
|
2278
|
+
"<": "menys que",
|
|
2279
|
+
">": "mes que",
|
|
2280
|
+
"∑": "suma dels",
|
|
2281
|
+
"¤": "moneda"
|
|
2282
|
+
},
|
|
2283
|
+
cs: {
|
|
2284
|
+
"∆": "delta",
|
|
2285
|
+
"∞": "nekonecno",
|
|
2286
|
+
"♥": "laska",
|
|
2287
|
+
"&": "a",
|
|
2288
|
+
"|": "nebo",
|
|
2289
|
+
"<": "mensi nez",
|
|
2290
|
+
">": "vetsi nez",
|
|
2291
|
+
"∑": "soucet",
|
|
2292
|
+
"¤": "mena"
|
|
2293
|
+
},
|
|
2294
|
+
de: {
|
|
2295
|
+
"∆": "delta",
|
|
2296
|
+
"∞": "unendlich",
|
|
2297
|
+
"♥": "Liebe",
|
|
2298
|
+
"&": "und",
|
|
2299
|
+
"|": "oder",
|
|
2300
|
+
"<": "kleiner als",
|
|
2301
|
+
">": "groesser als",
|
|
2302
|
+
"∑": "Summe von",
|
|
2303
|
+
"¤": "Waehrung"
|
|
2304
|
+
},
|
|
2305
|
+
dv: {
|
|
2306
|
+
"∆": "delta",
|
|
2307
|
+
"∞": "kolunulaa",
|
|
2308
|
+
"♥": "loabi",
|
|
2309
|
+
"&": "aai",
|
|
2310
|
+
"|": "noonee",
|
|
2311
|
+
"<": "ah vure kuda",
|
|
2312
|
+
">": "ah vure bodu",
|
|
2313
|
+
"∑": "jumula",
|
|
2314
|
+
"¤": "faisaa"
|
|
2315
|
+
},
|
|
2316
|
+
en: {
|
|
2317
|
+
"∆": "delta",
|
|
2318
|
+
"∞": "infinity",
|
|
2319
|
+
"♥": "love",
|
|
2320
|
+
"&": "and",
|
|
2321
|
+
"|": "or",
|
|
2322
|
+
"<": "less than",
|
|
2323
|
+
">": "greater than",
|
|
2324
|
+
"∑": "sum",
|
|
2325
|
+
"¤": "currency"
|
|
2326
|
+
},
|
|
2327
|
+
es: {
|
|
2328
|
+
"∆": "delta",
|
|
2329
|
+
"∞": "infinito",
|
|
2330
|
+
"♥": "amor",
|
|
2331
|
+
"&": "y",
|
|
2332
|
+
"|": "u",
|
|
2333
|
+
"<": "menos que",
|
|
2334
|
+
">": "mas que",
|
|
2335
|
+
"∑": "suma de los",
|
|
2336
|
+
"¤": "moneda"
|
|
2337
|
+
},
|
|
2338
|
+
fa: {
|
|
2339
|
+
"∆": "delta",
|
|
2340
|
+
"∞": "bi-nahayat",
|
|
2341
|
+
"♥": "eshgh",
|
|
2342
|
+
"&": "va",
|
|
2343
|
+
"|": "ya",
|
|
2344
|
+
"<": "kamtar-az",
|
|
2345
|
+
">": "bishtar-az",
|
|
2346
|
+
"∑": "majmooe",
|
|
2347
|
+
"¤": "vahed"
|
|
2348
|
+
},
|
|
2349
|
+
fi: {
|
|
2350
|
+
"∆": "delta",
|
|
2351
|
+
"∞": "aarettomyys",
|
|
2352
|
+
"♥": "rakkaus",
|
|
2353
|
+
"&": "ja",
|
|
2354
|
+
"|": "tai",
|
|
2355
|
+
"<": "pienempi kuin",
|
|
2356
|
+
">": "suurempi kuin",
|
|
2357
|
+
"∑": "summa",
|
|
2358
|
+
"¤": "valuutta"
|
|
2359
|
+
},
|
|
2360
|
+
fr: {
|
|
2361
|
+
"∆": "delta",
|
|
2362
|
+
"∞": "infiniment",
|
|
2363
|
+
"♥": "Amour",
|
|
2364
|
+
"&": "et",
|
|
2365
|
+
"|": "ou",
|
|
2366
|
+
"<": "moins que",
|
|
2367
|
+
">": "superieure a",
|
|
2368
|
+
"∑": "somme des",
|
|
2369
|
+
"¤": "monnaie"
|
|
2370
|
+
},
|
|
2371
|
+
ge: {
|
|
2372
|
+
"∆": "delta",
|
|
2373
|
+
"∞": "usasruloba",
|
|
2374
|
+
"♥": "siqvaruli",
|
|
2375
|
+
"&": "da",
|
|
2376
|
+
"|": "an",
|
|
2377
|
+
"<": "naklebi",
|
|
2378
|
+
">": "meti",
|
|
2379
|
+
"∑": "jami",
|
|
2380
|
+
"¤": "valuta"
|
|
2381
|
+
},
|
|
2382
|
+
gr: {},
|
|
2383
|
+
hu: {
|
|
2384
|
+
"∆": "delta",
|
|
2385
|
+
"∞": "vegtelen",
|
|
2386
|
+
"♥": "szerelem",
|
|
2387
|
+
"&": "es",
|
|
2388
|
+
"|": "vagy",
|
|
2389
|
+
"<": "kisebb mint",
|
|
2390
|
+
">": "nagyobb mint",
|
|
2391
|
+
"∑": "szumma",
|
|
2392
|
+
"¤": "penznem"
|
|
2393
|
+
},
|
|
2394
|
+
it: {
|
|
2395
|
+
"∆": "delta",
|
|
2396
|
+
"∞": "infinito",
|
|
2397
|
+
"♥": "amore",
|
|
2398
|
+
"&": "e",
|
|
2399
|
+
"|": "o",
|
|
2400
|
+
"<": "minore di",
|
|
2401
|
+
">": "maggiore di",
|
|
2402
|
+
"∑": "somma",
|
|
2403
|
+
"¤": "moneta"
|
|
2404
|
+
},
|
|
2405
|
+
lt: {
|
|
2406
|
+
"∆": "delta",
|
|
2407
|
+
"∞": "begalybe",
|
|
2408
|
+
"♥": "meile",
|
|
2409
|
+
"&": "ir",
|
|
2410
|
+
"|": "ar",
|
|
2411
|
+
"<": "maziau nei",
|
|
2412
|
+
">": "daugiau nei",
|
|
2413
|
+
"∑": "suma",
|
|
2414
|
+
"¤": "valiuta"
|
|
2415
|
+
},
|
|
2416
|
+
lv: {
|
|
2417
|
+
"∆": "delta",
|
|
2418
|
+
"∞": "bezgaliba",
|
|
2419
|
+
"♥": "milestiba",
|
|
2420
|
+
"&": "un",
|
|
2421
|
+
"|": "vai",
|
|
2422
|
+
"<": "mazak neka",
|
|
2423
|
+
">": "lielaks neka",
|
|
2424
|
+
"∑": "summa",
|
|
2425
|
+
"¤": "valuta"
|
|
2426
|
+
},
|
|
2427
|
+
my: {
|
|
2428
|
+
"∆": "kwahkhyaet",
|
|
2429
|
+
"∞": "asaonasme",
|
|
2430
|
+
"♥": "akhyait",
|
|
2431
|
+
"&": "nhin",
|
|
2432
|
+
"|": "tho",
|
|
2433
|
+
"<": "ngethaw",
|
|
2434
|
+
">": "kyithaw",
|
|
2435
|
+
"∑": "paungld",
|
|
2436
|
+
"¤": "ngwekye"
|
|
2437
|
+
},
|
|
2438
|
+
mk: {},
|
|
2439
|
+
nl: {
|
|
2440
|
+
"∆": "delta",
|
|
2441
|
+
"∞": "oneindig",
|
|
2442
|
+
"♥": "liefde",
|
|
2443
|
+
"&": "en",
|
|
2444
|
+
"|": "of",
|
|
2445
|
+
"<": "kleiner dan",
|
|
2446
|
+
">": "groter dan",
|
|
2447
|
+
"∑": "som",
|
|
2448
|
+
"¤": "valuta"
|
|
2449
|
+
},
|
|
2450
|
+
pl: {
|
|
2451
|
+
"∆": "delta",
|
|
2452
|
+
"∞": "nieskonczonosc",
|
|
2453
|
+
"♥": "milosc",
|
|
2454
|
+
"&": "i",
|
|
2455
|
+
"|": "lub",
|
|
2456
|
+
"<": "mniejsze niz",
|
|
2457
|
+
">": "wieksze niz",
|
|
2458
|
+
"∑": "suma",
|
|
2459
|
+
"¤": "waluta"
|
|
2460
|
+
},
|
|
2461
|
+
pt: {
|
|
2462
|
+
"∆": "delta",
|
|
2463
|
+
"∞": "infinito",
|
|
2464
|
+
"♥": "amor",
|
|
2465
|
+
"&": "e",
|
|
2466
|
+
"|": "ou",
|
|
2467
|
+
"<": "menor que",
|
|
2468
|
+
">": "maior que",
|
|
2469
|
+
"∑": "soma",
|
|
2470
|
+
"¤": "moeda"
|
|
2471
|
+
},
|
|
2472
|
+
ro: {
|
|
2473
|
+
"∆": "delta",
|
|
2474
|
+
"∞": "infinit",
|
|
2475
|
+
"♥": "dragoste",
|
|
2476
|
+
"&": "si",
|
|
2477
|
+
"|": "sau",
|
|
2478
|
+
"<": "mai mic ca",
|
|
2479
|
+
">": "mai mare ca",
|
|
2480
|
+
"∑": "suma",
|
|
2481
|
+
"¤": "valuta"
|
|
2482
|
+
},
|
|
2483
|
+
ru: {
|
|
2484
|
+
"∆": "delta",
|
|
2485
|
+
"∞": "beskonechno",
|
|
2486
|
+
"♥": "lubov",
|
|
2487
|
+
"&": "i",
|
|
2488
|
+
"|": "ili",
|
|
2489
|
+
"<": "menshe",
|
|
2490
|
+
">": "bolshe",
|
|
2491
|
+
"∑": "summa",
|
|
2492
|
+
"¤": "valjuta"
|
|
2493
|
+
},
|
|
2494
|
+
sk: {
|
|
2495
|
+
"∆": "delta",
|
|
2496
|
+
"∞": "nekonecno",
|
|
2497
|
+
"♥": "laska",
|
|
2498
|
+
"&": "a",
|
|
2499
|
+
"|": "alebo",
|
|
2500
|
+
"<": "menej ako",
|
|
2501
|
+
">": "viac ako",
|
|
2502
|
+
"∑": "sucet",
|
|
2503
|
+
"¤": "mena"
|
|
2504
|
+
},
|
|
2505
|
+
sr: {},
|
|
2506
|
+
tr: {
|
|
2507
|
+
"∆": "delta",
|
|
2508
|
+
"∞": "sonsuzluk",
|
|
2509
|
+
"♥": "ask",
|
|
2510
|
+
"&": "ve",
|
|
2511
|
+
"|": "veya",
|
|
2512
|
+
"<": "kucuktur",
|
|
2513
|
+
">": "buyuktur",
|
|
2514
|
+
"∑": "toplam",
|
|
2515
|
+
"¤": "para birimi"
|
|
2516
|
+
},
|
|
2517
|
+
uk: {
|
|
2518
|
+
"∆": "delta",
|
|
2519
|
+
"∞": "bezkinechnist",
|
|
2520
|
+
"♥": "lubov",
|
|
2521
|
+
"&": "i",
|
|
2522
|
+
"|": "abo",
|
|
2523
|
+
"<": "menshe",
|
|
2524
|
+
">": "bilshe",
|
|
2525
|
+
"∑": "suma",
|
|
2526
|
+
"¤": "valjuta"
|
|
2527
|
+
},
|
|
2528
|
+
vn: {
|
|
2529
|
+
"∆": "delta",
|
|
2530
|
+
"∞": "vo cuc",
|
|
2531
|
+
"♥": "yeu",
|
|
2532
|
+
"&": "va",
|
|
2533
|
+
"|": "hoac",
|
|
2534
|
+
"<": "nho hon",
|
|
2535
|
+
">": "lon hon",
|
|
2536
|
+
"∑": "tong",
|
|
2537
|
+
"¤": "tien te"
|
|
2538
|
+
}
|
|
2539
|
+
}, s = [
|
|
2540
|
+
";",
|
|
2541
|
+
"?",
|
|
2542
|
+
":",
|
|
2543
|
+
"@",
|
|
2544
|
+
"&",
|
|
2545
|
+
"=",
|
|
2546
|
+
"+",
|
|
2547
|
+
"$",
|
|
2548
|
+
",",
|
|
2549
|
+
"/"
|
|
2550
|
+
].join(""), c = [
|
|
2551
|
+
";",
|
|
2552
|
+
"?",
|
|
2553
|
+
":",
|
|
2554
|
+
"@",
|
|
2555
|
+
"&",
|
|
2556
|
+
"=",
|
|
2557
|
+
"+",
|
|
2558
|
+
"$",
|
|
2559
|
+
","
|
|
2560
|
+
].join(""), l = [
|
|
2561
|
+
".",
|
|
2562
|
+
"!",
|
|
2563
|
+
"~",
|
|
2564
|
+
"*",
|
|
2565
|
+
"'",
|
|
2566
|
+
"(",
|
|
2567
|
+
")"
|
|
2568
|
+
].join(""), u = function(e, t) {
|
|
2569
|
+
var u = "-", d = "", m = "", h = !0, g = {}, ee, _, v, te, y, ne, b, x, re, S, C, w, T, E, D = "";
|
|
2570
|
+
if (typeof e != "string") return "";
|
|
2571
|
+
if (typeof t == "string" && (u = t), b = o.en, x = a.en, typeof t == "object") for (C in ee = t.maintainCase || !1, g = t.custom && typeof t.custom == "object" ? t.custom : g, v = +t.truncate > 1 && t.truncate || !1, te = t.uric || !1, y = t.uricNoSlash || !1, ne = t.mark || !1, h = !(t.symbols === !1 || t.lang === !1), u = t.separator || u, te && (D += s), y && (D += c), ne && (D += l), b = t.lang && o[t.lang] && h ? o[t.lang] : h ? o.en : {}, x = t.lang && a[t.lang] ? a[t.lang] : t.lang === !1 || t.lang === !0 ? {} : a.en, t.titleCase && typeof t.titleCase.length == "number" && Array.prototype.toString.call(t.titleCase) ? (t.titleCase.forEach(function(e) {
|
|
2572
|
+
g[e + ""] = e + "";
|
|
2573
|
+
}), _ = !0) : _ = !!t.titleCase, t.custom && typeof t.custom.length == "number" && Array.prototype.toString.call(t.custom) && t.custom.forEach(function(e) {
|
|
2574
|
+
g[e + ""] = e + "";
|
|
2575
|
+
}), Object.keys(g).forEach(function(t) {
|
|
2576
|
+
var n = t.length > 1 ? RegExp("\\b" + f(t) + "\\b", "gi") : new RegExp(f(t), "gi");
|
|
2577
|
+
e = e.replace(n, g[t]);
|
|
2578
|
+
}), g) D += C;
|
|
2579
|
+
for (D += u, D = f(D), e = e.replace(/(^\s+|\s+$)/g, ""), T = !1, E = !1, S = 0, w = e.length; S < w; S++) C = e[S], p(C, g) ? T = !1 : x[C] ? (C = T && x[C].match(/[A-Za-z0-9]/) ? " " + x[C] : x[C], T = !1) : C in n ? (S + 1 < w && r.indexOf(e[S + 1]) >= 0 ? (m += C, C = "") : E === !0 ? (C = i[m] + n[C], m = "") : C = T && n[C].match(/[A-Za-z0-9]/) ? " " + n[C] : n[C], T = !1, E = !1) : C in i ? (m += C, C = "", S === w - 1 && (C = i[m]), E = !0) : b[C] && !(te && s.indexOf(C) !== -1) && !(y && c.indexOf(C) !== -1) ? (C = T || d.substr(-1).match(/[A-Za-z0-9]/) ? u + b[C] : b[C], C += e[S + 1] !== void 0 && e[S + 1].match(/[A-Za-z0-9]/) ? u : "", T = !0) : (E === !0 ? (C = i[m] + C, m = "", E = !1) : T && (/[A-Za-z0-9]/.test(C) || d.substr(-1).match(/A-Za-z0-9]/)) && (C = " " + C), T = !1), d += C.replace(RegExp("[^\\w\\s" + D + "_-]", "g"), u);
|
|
2580
|
+
return _ && (d = d.replace(/(\w)(\S*)/g, function(e, t, n) {
|
|
2581
|
+
var r = t.toUpperCase() + (n === null ? "" : n);
|
|
2582
|
+
return Object.keys(g).indexOf(r.toLowerCase()) < 0 ? r : r.toLowerCase();
|
|
2583
|
+
})), d = d.replace(/\s+/g, u).replace(RegExp("\\" + u + "+", "g"), u).replace(RegExp("(^\\" + u + "+|\\" + u + "+$)", "g"), ""), v && d.length > v && (re = d.charAt(v) === u, d = d.slice(0, v), re || (d = d.slice(0, d.lastIndexOf(u)))), !ee && !_ && (d = d.toLowerCase()), d;
|
|
2584
|
+
}, d = function(e) {
|
|
2585
|
+
return function(t) {
|
|
2586
|
+
return u(t, e);
|
|
2587
|
+
};
|
|
2588
|
+
}, f = function(e) {
|
|
2589
|
+
return e.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
|
|
2590
|
+
}, p = function(e, t) {
|
|
2591
|
+
for (var n in t) if (t[n] === e) return !0;
|
|
2592
|
+
};
|
|
2593
|
+
if (t !== void 0 && t.exports) t.exports = u, t.exports.createSlug = d;
|
|
2594
|
+
else if (typeof define < "u" && define.amd) define([], function() {
|
|
2595
|
+
return u;
|
|
2596
|
+
});
|
|
2597
|
+
else try {
|
|
2598
|
+
if (e.getSlug || e.createSlug) throw "speakingurl: globals exists /(getSlug|createSlug)/";
|
|
2599
|
+
e.getSlug = u, e.createSlug = d;
|
|
2600
|
+
} catch {}
|
|
2601
|
+
})(e);
|
|
2602
|
+
}) });
|
|
2603
|
+
(/* @__PURE__ */ be({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js": ((e, t) => {
|
|
2604
|
+
t.exports = Zt();
|
|
2605
|
+
}) }))(), E.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ ??= {
|
|
2606
|
+
id: 0,
|
|
2607
|
+
appIds: /* @__PURE__ */ new Set()
|
|
2608
|
+
};
|
|
2609
|
+
function Qt(e) {
|
|
2610
|
+
B.highPerfModeEnabled = e ?? !B.highPerfModeEnabled, !e && z.value && Ut(z.value.app);
|
|
2611
|
+
}
|
|
2612
|
+
function $t(e) {
|
|
2613
|
+
B.devtoolsClientDetected = {
|
|
2614
|
+
...B.devtoolsClientDetected,
|
|
2615
|
+
...e
|
|
2616
|
+
}, Qt(!Object.values(B.devtoolsClientDetected).some(Boolean));
|
|
2617
|
+
}
|
|
2618
|
+
E.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ ??= $t;
|
|
2619
|
+
var en = class {
|
|
2620
|
+
constructor() {
|
|
2621
|
+
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
2622
|
+
}
|
|
2623
|
+
set(e, t) {
|
|
2624
|
+
this.keyToValue.set(e, t), this.valueToKey.set(t, e);
|
|
2625
|
+
}
|
|
2626
|
+
getByKey(e) {
|
|
2627
|
+
return this.keyToValue.get(e);
|
|
2628
|
+
}
|
|
2629
|
+
getByValue(e) {
|
|
2630
|
+
return this.valueToKey.get(e);
|
|
2631
|
+
}
|
|
2632
|
+
clear() {
|
|
2633
|
+
this.keyToValue.clear(), this.valueToKey.clear();
|
|
2634
|
+
}
|
|
2635
|
+
}, tn = class {
|
|
2636
|
+
constructor(e) {
|
|
2637
|
+
this.generateIdentifier = e, this.kv = new en();
|
|
2638
|
+
}
|
|
2639
|
+
register(e, t) {
|
|
2640
|
+
this.kv.getByValue(e) || (t ||= this.generateIdentifier(e), this.kv.set(t, e));
|
|
2641
|
+
}
|
|
2642
|
+
clear() {
|
|
2643
|
+
this.kv.clear();
|
|
2644
|
+
}
|
|
2645
|
+
getIdentifier(e) {
|
|
2646
|
+
return this.kv.getByValue(e);
|
|
2647
|
+
}
|
|
2648
|
+
getValue(e) {
|
|
2649
|
+
return this.kv.getByKey(e);
|
|
2650
|
+
}
|
|
2651
|
+
}, nn = class extends tn {
|
|
2652
|
+
constructor() {
|
|
2653
|
+
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
2654
|
+
}
|
|
2655
|
+
register(e, t) {
|
|
2656
|
+
typeof t == "object" ? (t.allowProps && this.classToAllowedProps.set(e, t.allowProps), super.register(e, t.identifier)) : super.register(e, t);
|
|
2657
|
+
}
|
|
2658
|
+
getAllowedProps(e) {
|
|
2659
|
+
return this.classToAllowedProps.get(e);
|
|
2660
|
+
}
|
|
2661
|
+
};
|
|
2662
|
+
function rn(e) {
|
|
2663
|
+
if ("values" in Object) return Object.values(e);
|
|
2664
|
+
let t = [];
|
|
2665
|
+
for (let n in e) e.hasOwnProperty(n) && t.push(e[n]);
|
|
2666
|
+
return t;
|
|
2667
|
+
}
|
|
2668
|
+
function an(e, t) {
|
|
2669
|
+
let n = rn(e);
|
|
2670
|
+
if ("find" in n) return n.find(t);
|
|
2671
|
+
let r = n;
|
|
2672
|
+
for (let e = 0; e < r.length; e++) {
|
|
2673
|
+
let n = r[e];
|
|
2674
|
+
if (t(n)) return n;
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
function G(e, t) {
|
|
2678
|
+
Object.entries(e).forEach(([e, n]) => t(n, e));
|
|
2679
|
+
}
|
|
2680
|
+
function on(e, t) {
|
|
2681
|
+
return e.indexOf(t) !== -1;
|
|
2682
|
+
}
|
|
2683
|
+
function sn(e, t) {
|
|
2684
|
+
for (let n = 0; n < e.length; n++) {
|
|
2685
|
+
let r = e[n];
|
|
2686
|
+
if (t(r)) return r;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
var cn = class {
|
|
2690
|
+
constructor() {
|
|
2691
|
+
this.transfomers = {};
|
|
2692
|
+
}
|
|
2693
|
+
register(e) {
|
|
2694
|
+
this.transfomers[e.name] = e;
|
|
2695
|
+
}
|
|
2696
|
+
findApplicable(e) {
|
|
2697
|
+
return an(this.transfomers, (t) => t.isApplicable(e));
|
|
2698
|
+
}
|
|
2699
|
+
findByName(e) {
|
|
2700
|
+
return this.transfomers[e];
|
|
2701
|
+
}
|
|
2702
|
+
}, ln = (e) => Object.prototype.toString.call(e).slice(8, -1), un = (e) => e === void 0, dn = (e) => e === null, K = (e) => typeof e != "object" || !e || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, fn = (e) => K(e) && Object.keys(e).length === 0, q = (e) => Array.isArray(e), pn = (e) => typeof e == "string", mn = (e) => typeof e == "number" && !isNaN(e), hn = (e) => typeof e == "boolean", gn = (e) => e instanceof RegExp, J = (e) => e instanceof Map, Y = (e) => e instanceof Set, _n = (e) => ln(e) === "Symbol", vn = (e) => e instanceof Date && !isNaN(e.valueOf()), yn = (e) => e instanceof Error, bn = (e) => typeof e == "number" && isNaN(e), xn = (e) => hn(e) || dn(e) || un(e) || mn(e) || pn(e) || _n(e), Sn = (e) => typeof e == "bigint", Cn = (e) => e === Infinity || e === -Infinity, wn = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Tn = (e) => e instanceof URL, En = (e) => e.replace(/\./g, "\\."), Dn = (e) => e.map(String).map(En).join("."), X = (e) => {
|
|
2703
|
+
let t = [], n = "";
|
|
2704
|
+
for (let r = 0; r < e.length; r++) {
|
|
2705
|
+
let i = e.charAt(r);
|
|
2706
|
+
if (i === "\\" && e.charAt(r + 1) === ".") {
|
|
2707
|
+
n += ".", r++;
|
|
2708
|
+
continue;
|
|
2709
|
+
}
|
|
2710
|
+
if (i === ".") {
|
|
2711
|
+
t.push(n), n = "";
|
|
2712
|
+
continue;
|
|
2713
|
+
}
|
|
2714
|
+
n += i;
|
|
2715
|
+
}
|
|
2716
|
+
let r = n;
|
|
2717
|
+
return t.push(r), t;
|
|
2718
|
+
};
|
|
2719
|
+
function Z(e, t, n, r) {
|
|
2720
|
+
return {
|
|
2721
|
+
isApplicable: e,
|
|
2722
|
+
annotation: t,
|
|
2723
|
+
transform: n,
|
|
2724
|
+
untransform: r
|
|
2725
|
+
};
|
|
2726
|
+
}
|
|
2727
|
+
var On = [
|
|
2728
|
+
Z(un, "undefined", () => null, () => void 0),
|
|
2729
|
+
Z(Sn, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
2730
|
+
Z(vn, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
2731
|
+
Z(yn, "Error", (e, t) => {
|
|
2732
|
+
let n = {
|
|
2733
|
+
name: e.name,
|
|
2734
|
+
message: e.message
|
|
2735
|
+
};
|
|
2736
|
+
return t.allowedErrorProps.forEach((t) => {
|
|
2737
|
+
n[t] = e[t];
|
|
2738
|
+
}), n;
|
|
2739
|
+
}, (e, t) => {
|
|
2740
|
+
let n = Error(e.message);
|
|
2741
|
+
return n.name = e.name, n.stack = e.stack, t.allowedErrorProps.forEach((t) => {
|
|
2742
|
+
n[t] = e[t];
|
|
2743
|
+
}), n;
|
|
2744
|
+
}),
|
|
2745
|
+
Z(gn, "regexp", (e) => "" + e, (e) => {
|
|
2746
|
+
let t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
2747
|
+
return new RegExp(t, n);
|
|
2748
|
+
}),
|
|
2749
|
+
Z(Y, "set", (e) => [...e.values()], (e) => new Set(e)),
|
|
2750
|
+
Z(J, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
2751
|
+
Z((e) => bn(e) || Cn(e), "number", (e) => bn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
2752
|
+
Z((e) => e === 0 && 1 / e == -Infinity, "number", () => "-0", Number),
|
|
2753
|
+
Z(Tn, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
2754
|
+
];
|
|
2755
|
+
function kn(e, t, n, r) {
|
|
2756
|
+
return {
|
|
2757
|
+
isApplicable: e,
|
|
2758
|
+
annotation: t,
|
|
2759
|
+
transform: n,
|
|
2760
|
+
untransform: r
|
|
2761
|
+
};
|
|
2762
|
+
}
|
|
2763
|
+
var An = kn((e, t) => _n(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
2764
|
+
let r = n.symbolRegistry.getValue(t[1]);
|
|
2765
|
+
if (!r) throw Error("Trying to deserialize unknown symbol");
|
|
2766
|
+
return r;
|
|
2767
|
+
}), jn = [
|
|
2768
|
+
Int8Array,
|
|
2769
|
+
Uint8Array,
|
|
2770
|
+
Int16Array,
|
|
2771
|
+
Uint16Array,
|
|
2772
|
+
Int32Array,
|
|
2773
|
+
Uint32Array,
|
|
2774
|
+
Float32Array,
|
|
2775
|
+
Float64Array,
|
|
2776
|
+
Uint8ClampedArray
|
|
2777
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), Mn = kn(wn, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
2778
|
+
let n = jn[t[1]];
|
|
2779
|
+
if (!n) throw Error("Trying to deserialize unknown typed array");
|
|
2780
|
+
return new n(e);
|
|
2781
|
+
});
|
|
2782
|
+
function Nn(e, t) {
|
|
2783
|
+
return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
2784
|
+
}
|
|
2785
|
+
var Pn = kn(Nn, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
2786
|
+
let n = t.classRegistry.getAllowedProps(e.constructor);
|
|
2787
|
+
if (!n) return { ...e };
|
|
2788
|
+
let r = {};
|
|
2789
|
+
return n.forEach((t) => {
|
|
2790
|
+
r[t] = e[t];
|
|
2791
|
+
}), r;
|
|
2792
|
+
}, (e, t, n) => {
|
|
2793
|
+
let r = n.classRegistry.getValue(t[1]);
|
|
2794
|
+
if (!r) throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
2795
|
+
return Object.assign(Object.create(r.prototype), e);
|
|
2796
|
+
}), Fn = kn((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
|
|
2797
|
+
let r = n.customTransformerRegistry.findByName(t[1]);
|
|
2798
|
+
if (!r) throw Error("Trying to deserialize unknown custom value");
|
|
2799
|
+
return r.deserialize(e);
|
|
2800
|
+
}), In = [
|
|
2801
|
+
Pn,
|
|
2802
|
+
An,
|
|
2803
|
+
Fn,
|
|
2804
|
+
Mn
|
|
2805
|
+
], Ln = (e, t) => {
|
|
2806
|
+
let n = sn(In, (n) => n.isApplicable(e, t));
|
|
2807
|
+
if (n) return {
|
|
2808
|
+
value: n.transform(e, t),
|
|
2809
|
+
type: n.annotation(e, t)
|
|
2810
|
+
};
|
|
2811
|
+
let r = sn(On, (n) => n.isApplicable(e, t));
|
|
2812
|
+
if (r) return {
|
|
2813
|
+
value: r.transform(e, t),
|
|
2814
|
+
type: r.annotation
|
|
2815
|
+
};
|
|
2816
|
+
}, Rn = {};
|
|
2817
|
+
On.forEach((e) => {
|
|
2818
|
+
Rn[e.annotation] = e;
|
|
2819
|
+
});
|
|
2820
|
+
var zn = (e, t, n) => {
|
|
2821
|
+
if (q(t)) switch (t[0]) {
|
|
2822
|
+
case "symbol": return An.untransform(e, t, n);
|
|
2823
|
+
case "class": return Pn.untransform(e, t, n);
|
|
2824
|
+
case "custom": return Fn.untransform(e, t, n);
|
|
2825
|
+
case "typed-array": return Mn.untransform(e, t, n);
|
|
2826
|
+
default: throw Error("Unknown transformation: " + t);
|
|
2827
|
+
}
|
|
2828
|
+
else {
|
|
2829
|
+
let r = Rn[t];
|
|
2830
|
+
if (!r) throw Error("Unknown transformation: " + t);
|
|
2831
|
+
return r.untransform(e, n);
|
|
2832
|
+
}
|
|
2833
|
+
}, Q = (e, t) => {
|
|
2834
|
+
if (t > e.size) throw Error("index out of bounds");
|
|
2835
|
+
let n = e.keys();
|
|
2836
|
+
for (; t > 0;) n.next(), t--;
|
|
2837
|
+
return n.next().value;
|
|
2838
|
+
};
|
|
2839
|
+
function Bn(e) {
|
|
2840
|
+
if (on(e, "__proto__")) throw Error("__proto__ is not allowed as a property");
|
|
2841
|
+
if (on(e, "prototype")) throw Error("prototype is not allowed as a property");
|
|
2842
|
+
if (on(e, "constructor")) throw Error("constructor is not allowed as a property");
|
|
2843
|
+
}
|
|
2844
|
+
var Vn = (e, t) => {
|
|
2845
|
+
Bn(t);
|
|
2846
|
+
for (let n = 0; n < t.length; n++) {
|
|
2847
|
+
let r = t[n];
|
|
2848
|
+
if (Y(e)) e = Q(e, +r);
|
|
2849
|
+
else if (J(e)) {
|
|
2850
|
+
let i = +r, a = +t[++n] == 0 ? "key" : "value", o = Q(e, i);
|
|
2851
|
+
switch (a) {
|
|
2852
|
+
case "key":
|
|
2853
|
+
e = o;
|
|
2854
|
+
break;
|
|
2855
|
+
case "value":
|
|
2856
|
+
e = e.get(o);
|
|
2857
|
+
break;
|
|
2858
|
+
}
|
|
2859
|
+
} else e = e[r];
|
|
2860
|
+
}
|
|
2861
|
+
return e;
|
|
2862
|
+
}, Hn = (e, t, n) => {
|
|
2863
|
+
if (Bn(t), t.length === 0) return n(e);
|
|
2864
|
+
let r = e;
|
|
2865
|
+
for (let e = 0; e < t.length - 1; e++) {
|
|
2866
|
+
let n = t[e];
|
|
2867
|
+
if (q(r)) {
|
|
2868
|
+
let e = +n;
|
|
2869
|
+
r = r[e];
|
|
2870
|
+
} else if (K(r)) r = r[n];
|
|
2871
|
+
else if (Y(r)) {
|
|
2872
|
+
let e = +n;
|
|
2873
|
+
r = Q(r, e);
|
|
2874
|
+
} else if (J(r)) {
|
|
2875
|
+
if (e === t.length - 2) break;
|
|
2876
|
+
let i = +n, a = +t[++e] == 0 ? "key" : "value", o = Q(r, i);
|
|
2877
|
+
switch (a) {
|
|
2878
|
+
case "key":
|
|
2879
|
+
r = o;
|
|
2880
|
+
break;
|
|
2881
|
+
case "value":
|
|
2882
|
+
r = r.get(o);
|
|
2883
|
+
break;
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
let i = t[t.length - 1];
|
|
2888
|
+
if (q(r) ? r[+i] = n(r[+i]) : K(r) && (r[i] = n(r[i])), Y(r)) {
|
|
2889
|
+
let e = Q(r, +i), t = n(e);
|
|
2890
|
+
e !== t && (r.delete(e), r.add(t));
|
|
2891
|
+
}
|
|
2892
|
+
if (J(r)) {
|
|
2893
|
+
let e = +t[t.length - 2], a = Q(r, e);
|
|
2894
|
+
switch (+i == 0 ? "key" : "value") {
|
|
2895
|
+
case "key": {
|
|
2896
|
+
let e = n(a);
|
|
2897
|
+
r.set(e, r.get(a)), e !== a && r.delete(a);
|
|
2898
|
+
break;
|
|
2899
|
+
}
|
|
2900
|
+
case "value":
|
|
2901
|
+
r.set(a, n(r.get(a)));
|
|
2902
|
+
break;
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
return e;
|
|
2906
|
+
};
|
|
2907
|
+
function Un(e, t, n = []) {
|
|
2908
|
+
if (!e) return;
|
|
2909
|
+
if (!q(e)) {
|
|
2910
|
+
G(e, (e, r) => Un(e, t, [...n, ...X(r)]));
|
|
2911
|
+
return;
|
|
2912
|
+
}
|
|
2913
|
+
let [r, i] = e;
|
|
2914
|
+
i && G(i, (e, r) => {
|
|
2915
|
+
Un(e, t, [...n, ...X(r)]);
|
|
2916
|
+
}), t(r, n);
|
|
2917
|
+
}
|
|
2918
|
+
function Wn(e, t, n) {
|
|
2919
|
+
return Un(t, (t, r) => {
|
|
2920
|
+
e = Hn(e, r, (e) => zn(e, t, n));
|
|
2921
|
+
}), e;
|
|
2922
|
+
}
|
|
2923
|
+
function Gn(e, t) {
|
|
2924
|
+
function n(t, n) {
|
|
2925
|
+
let r = Vn(e, X(n));
|
|
2926
|
+
t.map(X).forEach((t) => {
|
|
2927
|
+
e = Hn(e, t, () => r);
|
|
2928
|
+
});
|
|
2929
|
+
}
|
|
2930
|
+
if (q(t)) {
|
|
2931
|
+
let [r, i] = t;
|
|
2932
|
+
r.forEach((t) => {
|
|
2933
|
+
e = Hn(e, X(t), () => e);
|
|
2934
|
+
}), i && G(i, n);
|
|
2935
|
+
} else G(t, n);
|
|
2936
|
+
return e;
|
|
2937
|
+
}
|
|
2938
|
+
var Kn = (e, t) => K(e) || q(e) || J(e) || Y(e) || Nn(e, t);
|
|
2939
|
+
function qn(e, t, n) {
|
|
2940
|
+
let r = n.get(e);
|
|
2941
|
+
r ? r.push(t) : n.set(e, [t]);
|
|
2942
|
+
}
|
|
2943
|
+
function Jn(e, t) {
|
|
2944
|
+
let n = {}, r;
|
|
2945
|
+
return e.forEach((e) => {
|
|
2946
|
+
if (e.length <= 1) return;
|
|
2947
|
+
t || (e = e.map((e) => e.map(String)).sort((e, t) => e.length - t.length));
|
|
2948
|
+
let [i, ...a] = e;
|
|
2949
|
+
i.length === 0 ? r = a.map(Dn) : n[Dn(i)] = a.map(Dn);
|
|
2950
|
+
}), r ? fn(n) ? [r] : [r, n] : fn(n) ? void 0 : n;
|
|
2951
|
+
}
|
|
2952
|
+
var Yn = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
|
|
2953
|
+
let s = xn(e);
|
|
2954
|
+
if (!s) {
|
|
2955
|
+
qn(e, i, t);
|
|
2956
|
+
let n = o.get(e);
|
|
2957
|
+
if (n) return r ? { transformedValue: null } : n;
|
|
2958
|
+
}
|
|
2959
|
+
if (!Kn(e, n)) {
|
|
2960
|
+
let t = Ln(e, n), r = t ? {
|
|
2961
|
+
transformedValue: t.value,
|
|
2962
|
+
annotations: [t.type]
|
|
2963
|
+
} : { transformedValue: e };
|
|
2964
|
+
return s || o.set(e, r), r;
|
|
2965
|
+
}
|
|
2966
|
+
if (on(a, e)) return { transformedValue: null };
|
|
2967
|
+
let c = Ln(e, n), l = c?.value ?? e, u = q(l) ? [] : {}, d = {};
|
|
2968
|
+
G(l, (s, c) => {
|
|
2969
|
+
if (c === "__proto__" || c === "constructor" || c === "prototype") throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);
|
|
2970
|
+
let l = Yn(s, t, n, r, [...i, c], [...a, e], o);
|
|
2971
|
+
u[c] = l.transformedValue, q(l.annotations) ? d[c] = l.annotations : K(l.annotations) && G(l.annotations, (e, t) => {
|
|
2972
|
+
d[En(c) + "." + t] = e;
|
|
2973
|
+
});
|
|
2974
|
+
});
|
|
2975
|
+
let f = fn(d) ? {
|
|
2976
|
+
transformedValue: u,
|
|
2977
|
+
annotations: c ? [c.type] : void 0
|
|
2978
|
+
} : {
|
|
2979
|
+
transformedValue: u,
|
|
2980
|
+
annotations: c ? [c.type, d] : d
|
|
2981
|
+
};
|
|
2982
|
+
return s || o.set(e, f), f;
|
|
2983
|
+
};
|
|
2984
|
+
function Xn(e) {
|
|
2985
|
+
return Object.prototype.toString.call(e).slice(8, -1);
|
|
2986
|
+
}
|
|
2987
|
+
function Zn(e) {
|
|
2988
|
+
return Xn(e) === "Array";
|
|
2989
|
+
}
|
|
2990
|
+
function Qn(e) {
|
|
2991
|
+
if (Xn(e) !== "Object") return !1;
|
|
2992
|
+
let t = Object.getPrototypeOf(e);
|
|
2993
|
+
return !!t && t.constructor === Object && t === Object.prototype;
|
|
2994
|
+
}
|
|
2995
|
+
function $n(e, t, n, r, i) {
|
|
2996
|
+
let a = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
|
|
2997
|
+
a === "enumerable" && (e[t] = n), i && a === "nonenumerable" && Object.defineProperty(e, t, {
|
|
2998
|
+
value: n,
|
|
2999
|
+
enumerable: !1,
|
|
3000
|
+
writable: !0,
|
|
3001
|
+
configurable: !0
|
|
3002
|
+
});
|
|
3003
|
+
}
|
|
3004
|
+
function er(e, t = {}) {
|
|
3005
|
+
if (Zn(e)) return e.map((e) => er(e, t));
|
|
3006
|
+
if (!Qn(e)) return e;
|
|
3007
|
+
let n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
3008
|
+
return [...n, ...r].reduce((n, r) => {
|
|
3009
|
+
if (Zn(t.props) && !t.props.includes(r)) return n;
|
|
3010
|
+
let i = e[r];
|
|
3011
|
+
return $n(n, r, er(i, t), e, t.nonenumerable), n;
|
|
3012
|
+
}, {});
|
|
3013
|
+
}
|
|
3014
|
+
var $ = class {
|
|
3015
|
+
constructor({ dedupe: e = !1 } = {}) {
|
|
3016
|
+
this.classRegistry = new nn(), this.symbolRegistry = new tn((e) => e.description ?? ""), this.customTransformerRegistry = new cn(), this.allowedErrorProps = [], this.dedupe = e;
|
|
3017
|
+
}
|
|
3018
|
+
serialize(e) {
|
|
3019
|
+
let t = /* @__PURE__ */ new Map(), n = Yn(e, t, this, this.dedupe), r = { json: n.transformedValue };
|
|
3020
|
+
n.annotations && (r.meta = {
|
|
3021
|
+
...r.meta,
|
|
3022
|
+
values: n.annotations
|
|
3023
|
+
});
|
|
3024
|
+
let i = Jn(t, this.dedupe);
|
|
3025
|
+
return i && (r.meta = {
|
|
3026
|
+
...r.meta,
|
|
3027
|
+
referentialEqualities: i
|
|
3028
|
+
}), r;
|
|
3029
|
+
}
|
|
3030
|
+
deserialize(e) {
|
|
3031
|
+
let { json: t, meta: n } = e, r = er(t);
|
|
3032
|
+
return n?.values && (r = Wn(r, n.values, this)), n?.referentialEqualities && (r = Gn(r, n.referentialEqualities)), r;
|
|
3033
|
+
}
|
|
3034
|
+
stringify(e) {
|
|
3035
|
+
return JSON.stringify(this.serialize(e));
|
|
3036
|
+
}
|
|
3037
|
+
parse(e) {
|
|
3038
|
+
return this.deserialize(JSON.parse(e));
|
|
3039
|
+
}
|
|
3040
|
+
registerClass(e, t) {
|
|
3041
|
+
this.classRegistry.register(e, t);
|
|
3042
|
+
}
|
|
3043
|
+
registerSymbol(e, t) {
|
|
3044
|
+
this.symbolRegistry.register(e, t);
|
|
3045
|
+
}
|
|
3046
|
+
registerCustom(e, t) {
|
|
3047
|
+
this.customTransformerRegistry.register({
|
|
3048
|
+
name: t,
|
|
3049
|
+
...e
|
|
3050
|
+
});
|
|
3051
|
+
}
|
|
3052
|
+
allowErrorProps(...e) {
|
|
3053
|
+
this.allowedErrorProps.push(...e);
|
|
3054
|
+
}
|
|
3055
|
+
};
|
|
3056
|
+
$.defaultInstance = new $(), $.serialize = $.defaultInstance.serialize.bind($.defaultInstance), $.deserialize = $.defaultInstance.deserialize.bind($.defaultInstance), $.stringify = $.defaultInstance.stringify.bind($.defaultInstance), $.parse = $.defaultInstance.parse.bind($.defaultInstance), $.registerClass = $.defaultInstance.registerClass.bind($.defaultInstance), $.registerSymbol = $.defaultInstance.registerSymbol.bind($.defaultInstance), $.registerCustom = $.defaultInstance.registerCustom.bind($.defaultInstance), $.allowErrorProps = $.defaultInstance.allowErrorProps.bind($.defaultInstance), $.serialize, $.deserialize, $.stringify, $.parse, $.registerClass, $.registerCustom, $.registerSymbol, $.allowErrorProps, E.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ ??= [], E.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ ??= null, E.__VUE_DEVTOOLS_KIT_RPC_SERVER__ ??= null, E.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null, E.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null, E.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
|
|
3057
|
+
//#endregion
|
|
3058
|
+
//#region src/constants.ts
|
|
3059
|
+
var tr = "vuebugger-inspector", nr = "vuebugger-timeline", rr = (e) => {
|
|
3060
|
+
if (e.inspectorId === "vuebugger-inspector") {
|
|
3061
|
+
let t = e.filter;
|
|
3062
|
+
e.rootNodes = c.entries().filter(([e, n]) => e.includes(t) || n.values().some((e) => e.includes(t))).map(([e, n]) => ({
|
|
3063
|
+
id: e,
|
|
3064
|
+
label: e,
|
|
3065
|
+
children: n.values().filter((e) => e.includes(t)).map((e) => ({
|
|
3066
|
+
id: e,
|
|
3067
|
+
label: e
|
|
3068
|
+
})).toArray()
|
|
3069
|
+
})).toArray();
|
|
3070
|
+
}
|
|
3071
|
+
}, ir = (e) => (t) => {
|
|
3072
|
+
if (t.inspectorId === "vuebugger-inspector") {
|
|
3073
|
+
let n = s.get(t.nodeId), i = c.get(t.nodeId);
|
|
3074
|
+
if (i) {
|
|
3075
|
+
e.unhighlightElement(), t.state = i.values().reduce((e, t) => {
|
|
3076
|
+
let { debugState: n } = s.get(t);
|
|
3077
|
+
return e[t] = Object.entries(n).map(([e, t]) => ({
|
|
3078
|
+
key: e,
|
|
3079
|
+
value: a(t)
|
|
3080
|
+
})), e;
|
|
3081
|
+
}, {});
|
|
3082
|
+
return;
|
|
3083
|
+
}
|
|
3084
|
+
n && (t.state = { [t.nodeId]: Object.entries(n.debugState).map(([e, t]) => ({
|
|
3085
|
+
key: e,
|
|
3086
|
+
value: t,
|
|
3087
|
+
editable: !r(t)
|
|
3088
|
+
})) }, n.componentInstance && e.highlightElement(n.componentInstance));
|
|
3089
|
+
}
|
|
3090
|
+
}, ar = (e) => {
|
|
3091
|
+
let t = s.values().filter((t) => t.componentInstance === e.componentInstance).flatMap((e) => Object.entries(e.debugState).map(([t, n]) => ({
|
|
3092
|
+
type: e.uid,
|
|
3093
|
+
key: t,
|
|
3094
|
+
value: n,
|
|
3095
|
+
editable: !1
|
|
3096
|
+
}))).toArray();
|
|
3097
|
+
e.instanceData.state.push(...t);
|
|
3098
|
+
}, or = (e) => {
|
|
3099
|
+
if (e.inspectorId === "vuebugger-inspector") {
|
|
3100
|
+
let t = e.nodeId, n = s.get(t);
|
|
3101
|
+
if (!n) return;
|
|
3102
|
+
e.set(n.debugState);
|
|
3103
|
+
}
|
|
3104
|
+
};
|
|
3105
|
+
function sr(e) {
|
|
3106
|
+
console.log("🐞 Vuebugger ready to use"), Vt({
|
|
3107
|
+
id: "composables-debugger",
|
|
3108
|
+
label: "Composables",
|
|
3109
|
+
logo: "https://raw.githubusercontent.com/vinpogo/vuebugger/main/logo.png",
|
|
3110
|
+
app: e
|
|
3111
|
+
}, (e) => {
|
|
3112
|
+
e.addInspector({
|
|
3113
|
+
id: tr,
|
|
3114
|
+
label: "Vuebugger",
|
|
3115
|
+
icon: "https://raw.githubusercontent.com/vinpogo/vuebugger/main/logo.png",
|
|
3116
|
+
treeFilterPlaceholder: "Search by composable or component name..."
|
|
3117
|
+
}), e.addTimelineLayer({
|
|
3118
|
+
id: nr,
|
|
3119
|
+
label: "Vuebugger",
|
|
3120
|
+
color: 155
|
|
3121
|
+
}), m((t) => {
|
|
3122
|
+
e.sendInspectorTree(tr), e.sendInspectorState(tr), e.notifyComponentUpdate(t.componentInstance), e.addTimelineEvent({
|
|
3123
|
+
layerId: nr,
|
|
3124
|
+
event: {
|
|
3125
|
+
time: e.now(),
|
|
3126
|
+
data: t,
|
|
3127
|
+
title: `${t.uid} state change`,
|
|
3128
|
+
groupId: t.uid
|
|
3129
|
+
}
|
|
3130
|
+
});
|
|
3131
|
+
}), e.on.getInspectorTree(rr), e.on.getInspectorState(ir(e)), e.on.inspectComponent(ar), e.on.editInspectorState(or);
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
//#endregion
|
|
3135
|
+
//#region src/plugin.ts
|
|
3136
|
+
var cr = { install: (e, t) => {
|
|
3137
|
+
(typeof __ENABLE_VUEBUGGER__ > "u" ? !import.meta.env.DEV : !__ENABLE_VUEBUGGER__) || (t?.uidFn && g(t.uidFn), sr(e));
|
|
3138
|
+
} }, lr = cr;
|
|
3139
|
+
//#endregion
|
|
3140
|
+
export { cr as DebugPlugin, cr as Vuebugger, v as debug, lr as default };
|