@opentiny/tiny-robot 0.4.0-alpha.13 → 0.4.0-alpha.15
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 +1 -198
- package/dist/action-group/index.js +1 -1
- package/dist/base-popper/index.js +1 -1
- package/dist/bubble/index.js +1 -1
- package/dist/drag-overlay/index.js +1 -1
- package/dist/dropdown-menu/index.js +6 -6
- package/dist/flow-layout-buttons/index.js +1 -1
- package/dist/history/index.js +1 -1
- package/dist/index.d.ts +1164 -2348
- package/dist/index.js +125 -155
- package/dist/index2.js +934 -188
- package/dist/index3.js +285 -266
- package/dist/index4.js +354 -734
- package/dist/index5.js +681 -358
- package/dist/index6.js +141 -919
- package/dist/mcp-add-form/index.js +1 -1
- package/dist/mcp-server-picker/index.js +1 -1
- package/dist/sender/index.js +1400 -3194
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +2 -2
- package/dist/useSlotRefs.js +3 -3
- package/dist/utils.js +1 -1
- package/package.json +4 -43
- package/LICENSE +0 -22
- package/README_zh.md +0 -198
- package/dist/index7.js +0 -301
- package/dist/index8.js +0 -161
- package/dist/sender-actions/index.js +0 -13
- package/dist/sender-compat/index.js +0 -229
package/dist/index4.js
CHANGED
|
@@ -1,767 +1,387 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
// @__NO_SIDE_EFFECTS__
|
|
6
|
-
function te() {
|
|
7
|
-
const e = /* @__PURE__ */ new Set(), t = (i) => {
|
|
8
|
-
e.delete(i);
|
|
9
|
-
};
|
|
10
|
-
return {
|
|
11
|
-
on: (i) => {
|
|
12
|
-
e.add(i);
|
|
13
|
-
const c = () => t(i);
|
|
14
|
-
return V(c), {
|
|
15
|
-
off: c
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
off: t,
|
|
19
|
-
trigger: (...i) => Promise.all(Array.from(e).map((c) => c(...i))),
|
|
20
|
-
clear: () => {
|
|
21
|
-
e.clear();
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
const j = /* @__PURE__ */ new WeakMap(), Pe = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
26
|
-
var t;
|
|
27
|
-
const o = e[0], n = (t = $()) == null ? void 0 : t.proxy;
|
|
28
|
-
if (n == null && !se())
|
|
29
|
-
throw new Error("injectLocal must be called in setup");
|
|
30
|
-
return n && j.has(n) && o in j.get(n) ? j.get(n)[o] : be(...e);
|
|
31
|
-
}, N = typeof window < "u" && typeof document < "u";
|
|
32
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
33
|
-
const xe = (e) => e != null, We = Object.prototype.toString, Me = (e) => We.call(e) === "[object Object]", x = () => {
|
|
34
|
-
}, _e = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Ie = /* @__PURE__ */ Ae();
|
|
35
|
-
function Ae() {
|
|
36
|
-
var e, t;
|
|
37
|
-
return N && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
38
|
-
}
|
|
39
|
-
function Y(e, t) {
|
|
40
|
-
function o(...n) {
|
|
41
|
-
return new Promise((u, i) => {
|
|
42
|
-
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(u).catch(i);
|
|
43
|
-
});
|
|
1
|
+
class w extends Error {
|
|
2
|
+
constructor(e, r) {
|
|
3
|
+
super(`${e} at position ${r}`), this.position = r;
|
|
44
4
|
}
|
|
45
|
-
return o;
|
|
46
|
-
}
|
|
47
|
-
const Fe = (e) => e();
|
|
48
|
-
function ce(e, t = {}) {
|
|
49
|
-
let o, n, u = x;
|
|
50
|
-
const i = (s) => {
|
|
51
|
-
clearTimeout(s), u(), u = x;
|
|
52
|
-
};
|
|
53
|
-
let c;
|
|
54
|
-
return (s) => {
|
|
55
|
-
const f = w(e), a = w(t.maxWait);
|
|
56
|
-
return o && i(o), f <= 0 || a !== void 0 && a <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((l, d) => {
|
|
57
|
-
u = t.rejectOnCancel ? d : l, c = s, a && !n && (n = setTimeout(() => {
|
|
58
|
-
o && i(o), n = void 0, l(c());
|
|
59
|
-
}, a)), o = setTimeout(() => {
|
|
60
|
-
n && i(n), n = void 0, l(s());
|
|
61
|
-
}, f);
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function ae(...e) {
|
|
66
|
-
let t = 0, o, n = !0, u = x, i, c, r, s, f;
|
|
67
|
-
!le(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: r = !0, leading: s = !0, rejectOnCancel: f = !1 } = e[0] : [c, r = !0, s = !0, f = !1] = e;
|
|
68
|
-
const a = () => {
|
|
69
|
-
o && (clearTimeout(o), o = void 0, u(), u = x);
|
|
70
|
-
};
|
|
71
|
-
return (d) => {
|
|
72
|
-
const m = w(c), p = Date.now() - t, T = () => i = d();
|
|
73
|
-
return a(), m <= 0 ? (t = Date.now(), T()) : (p > m && (s || !n) ? (t = Date.now(), T()) : r && (i = new Promise((v, h) => {
|
|
74
|
-
u = f ? h : v, o = setTimeout(() => {
|
|
75
|
-
t = Date.now(), n = !0, v(T()), a();
|
|
76
|
-
}, Math.max(0, m - p));
|
|
77
|
-
})), !s && !o && (o = setTimeout(() => n = !0, m)), n = !1, i);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function ne(e) {
|
|
81
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
82
|
-
}
|
|
83
|
-
function ke(e, t, o = !1) {
|
|
84
|
-
return t.reduce((n, u) => (u in e && (!o || e[u] !== void 0) && (n[u] = e[u]), n), {});
|
|
85
|
-
}
|
|
86
|
-
function D(e) {
|
|
87
|
-
return Array.isArray(e) ? e : [e];
|
|
88
5
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
function
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
6
|
+
const q = 32, ae = 10, H = 9, P = 13, de = 160, pe = 8192, he = 8202, ge = 8239, we = 8287, me = 12288;
|
|
7
|
+
function Ce(n) {
|
|
8
|
+
return /^[0-9A-Fa-f]$/.test(n);
|
|
9
|
+
}
|
|
10
|
+
function d(n) {
|
|
11
|
+
return n >= "0" && n <= "9";
|
|
12
|
+
}
|
|
13
|
+
function be(n) {
|
|
14
|
+
return n >= " ";
|
|
15
|
+
}
|
|
16
|
+
function O(n) {
|
|
17
|
+
return `,:[]/{}()
|
|
18
|
+
+`.includes(n);
|
|
19
|
+
}
|
|
20
|
+
function L(n) {
|
|
21
|
+
return n >= "a" && n <= "z" || n >= "A" && n <= "Z" || n === "_" || n === "$";
|
|
22
|
+
}
|
|
23
|
+
function F(n) {
|
|
24
|
+
return n >= "a" && n <= "z" || n >= "A" && n <= "Z" || n === "_" || n === "$" || n >= "0" && n <= "9";
|
|
25
|
+
}
|
|
26
|
+
const M = /^(http|https|ftp|mailto|file|data|irc):\/\/$/, R = /^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;
|
|
27
|
+
function Z(n) {
|
|
28
|
+
return `,[]/{}
|
|
29
|
+
+`.includes(n);
|
|
30
|
+
}
|
|
31
|
+
function _(n) {
|
|
32
|
+
return E(n) || Se.test(n);
|
|
33
|
+
}
|
|
34
|
+
const Se = /^[[{\w-]$/;
|
|
35
|
+
function Ne(n) {
|
|
36
|
+
return n === `
|
|
37
|
+
` || n === "\r" || n === " " || n === "\b" || n === "\f";
|
|
38
|
+
}
|
|
39
|
+
function p(n, e) {
|
|
40
|
+
const r = n.charCodeAt(e);
|
|
41
|
+
return r === q || r === ae || r === H || r === P;
|
|
42
|
+
}
|
|
43
|
+
function ke(n, e) {
|
|
44
|
+
const r = n.charCodeAt(e);
|
|
45
|
+
return r === q || r === H || r === P;
|
|
46
|
+
}
|
|
47
|
+
function $e(n, e) {
|
|
48
|
+
const r = n.charCodeAt(e);
|
|
49
|
+
return r === de || r >= pe && r <= he || r === ge || r === we || r === me;
|
|
50
|
+
}
|
|
51
|
+
function E(n) {
|
|
52
|
+
return G(n) || Q(n);
|
|
53
|
+
}
|
|
54
|
+
function G(n) {
|
|
55
|
+
return n === '"' || n === "“" || n === "”";
|
|
56
|
+
}
|
|
57
|
+
function z(n) {
|
|
58
|
+
return n === '"';
|
|
59
|
+
}
|
|
60
|
+
function Q(n) {
|
|
61
|
+
return n === "'" || n === "‘" || n === "’" || n === "`" || n === "´";
|
|
62
|
+
}
|
|
63
|
+
function T(n) {
|
|
64
|
+
return n === "'";
|
|
65
|
+
}
|
|
66
|
+
function S(n, e) {
|
|
67
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
68
|
+
const N = n.lastIndexOf(e);
|
|
69
|
+
return N !== -1 ? n.substring(0, N) + (r ? "" : n.substring(N + 1)) : n;
|
|
70
|
+
}
|
|
71
|
+
function l(n, e) {
|
|
72
|
+
let r = n.length;
|
|
73
|
+
if (!p(n, r - 1))
|
|
74
|
+
return n + e;
|
|
75
|
+
for (; p(n, r - 1); )
|
|
76
|
+
r--;
|
|
77
|
+
return n.substring(0, r) + e + n.substring(r);
|
|
78
|
+
}
|
|
79
|
+
function Ae(n, e, r) {
|
|
80
|
+
return n.substring(0, e) + n.substring(e + r);
|
|
81
|
+
}
|
|
82
|
+
function Oe(n) {
|
|
83
|
+
return /[,\n][ \t\r]*$/.test(n);
|
|
84
|
+
}
|
|
85
|
+
const Ee = {
|
|
86
|
+
"\b": "\\b",
|
|
87
|
+
"\f": "\\f",
|
|
88
|
+
"\n": "\\n",
|
|
89
|
+
"\r": "\\r",
|
|
90
|
+
" ": "\\t"
|
|
91
|
+
}, ye = {
|
|
92
|
+
'"': '"',
|
|
93
|
+
"\\": "\\",
|
|
94
|
+
"/": "/",
|
|
95
|
+
b: "\b",
|
|
96
|
+
f: "\f",
|
|
97
|
+
n: `
|
|
98
|
+
`,
|
|
99
|
+
r: "\r",
|
|
100
|
+
t: " "
|
|
101
|
+
// note that \u is handled separately in parseString()
|
|
102
|
+
};
|
|
103
|
+
function We(n) {
|
|
104
|
+
let e = 0, r = "";
|
|
105
|
+
U(["```", "[```", "{```"]), m() || ce(), U(["```", "```]", "```}"]);
|
|
106
|
+
const y = C(",");
|
|
107
|
+
for (y && t(), _(n[e]) && Oe(r) ? (y || (r = l(r, ",")), re()) : y && (r = S(r, ",")); n[e] === "}" || n[e] === "]"; )
|
|
108
|
+
e++, t();
|
|
109
|
+
if (e >= n.length)
|
|
110
|
+
return r;
|
|
111
|
+
te();
|
|
112
|
+
function m() {
|
|
113
|
+
t();
|
|
114
|
+
const i = ee() || ne() || h() || ie() || se() || j(!1) || ue();
|
|
115
|
+
return t(), i;
|
|
156
116
|
}
|
|
157
|
-
function
|
|
158
|
-
i
|
|
117
|
+
function t() {
|
|
118
|
+
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
119
|
+
const s = e;
|
|
120
|
+
let u = v(i);
|
|
121
|
+
do
|
|
122
|
+
u = X(), u && (u = v(i));
|
|
123
|
+
while (u);
|
|
124
|
+
return e > s;
|
|
159
125
|
}
|
|
160
|
-
function
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
126
|
+
function v(i) {
|
|
127
|
+
const s = i ? p : ke;
|
|
128
|
+
let u = "";
|
|
129
|
+
for (; ; )
|
|
130
|
+
if (s(n, e))
|
|
131
|
+
u += n[e], e++;
|
|
132
|
+
else if ($e(n, e))
|
|
133
|
+
u += " ", e++;
|
|
134
|
+
else
|
|
135
|
+
break;
|
|
136
|
+
return u.length > 0 ? (r += u, !0) : !1;
|
|
164
137
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
function Ue(e, t, o = {}) {
|
|
172
|
-
const {
|
|
173
|
-
debounce: n = 0,
|
|
174
|
-
maxWait: u = void 0,
|
|
175
|
-
...i
|
|
176
|
-
} = o;
|
|
177
|
-
return fe(
|
|
178
|
-
e,
|
|
179
|
-
t,
|
|
180
|
-
{
|
|
181
|
-
...i,
|
|
182
|
-
eventFilter: ce(n, { maxWait: u })
|
|
138
|
+
function X() {
|
|
139
|
+
if (n[e] === "/" && n[e + 1] === "*") {
|
|
140
|
+
for (; e < n.length && !ve(n, e); )
|
|
141
|
+
e++;
|
|
142
|
+
return e += 2, !0;
|
|
183
143
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
t,
|
|
190
|
-
{
|
|
191
|
-
...o,
|
|
192
|
-
immediate: !0
|
|
144
|
+
if (n[e] === "/" && n[e + 1] === "/") {
|
|
145
|
+
for (; e < n.length && n[e] !== `
|
|
146
|
+
`; )
|
|
147
|
+
e++;
|
|
148
|
+
return !0;
|
|
193
149
|
}
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
} = o;
|
|
203
|
-
return fe(
|
|
204
|
-
e,
|
|
205
|
-
t,
|
|
206
|
-
{
|
|
207
|
-
...c,
|
|
208
|
-
eventFilter: ae(n, u, i)
|
|
150
|
+
return !1;
|
|
151
|
+
}
|
|
152
|
+
function U(i) {
|
|
153
|
+
if (Y(i)) {
|
|
154
|
+
if (L(n[e]))
|
|
155
|
+
for (; e < n.length && F(n[e]); )
|
|
156
|
+
e++;
|
|
157
|
+
return t(), !0;
|
|
209
158
|
}
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
const I = N ? window : void 0, He = N ? window.document : void 0;
|
|
213
|
-
function S(e) {
|
|
214
|
-
var t;
|
|
215
|
-
const o = w(e);
|
|
216
|
-
return (t = o == null ? void 0 : o.$el) != null ? t : o;
|
|
217
|
-
}
|
|
218
|
-
function W(...e) {
|
|
219
|
-
const t = [], o = () => {
|
|
220
|
-
t.forEach((r) => r()), t.length = 0;
|
|
221
|
-
}, n = (r, s, f, a) => (r.addEventListener(s, f, a), () => r.removeEventListener(s, f, a)), u = _(() => {
|
|
222
|
-
const r = D(w(e[0])).filter((s) => s != null);
|
|
223
|
-
return r.every((s) => typeof s != "string") ? r : void 0;
|
|
224
|
-
}), i = Ve(
|
|
225
|
-
() => {
|
|
226
|
-
var r, s;
|
|
227
|
-
return [
|
|
228
|
-
(s = (r = u.value) == null ? void 0 : r.map((f) => S(f))) != null ? s : [I].filter((f) => f != null),
|
|
229
|
-
D(w(u.value ? e[1] : e[0])),
|
|
230
|
-
D(Se(u.value ? e[2] : e[1])),
|
|
231
|
-
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
232
|
-
w(u.value ? e[3] : e[2])
|
|
233
|
-
];
|
|
234
|
-
},
|
|
235
|
-
([r, s, f, a]) => {
|
|
236
|
-
if (o(), !(r != null && r.length) || !(s != null && s.length) || !(f != null && f.length))
|
|
237
|
-
return;
|
|
238
|
-
const l = Me(a) ? { ...a } : a;
|
|
239
|
-
t.push(
|
|
240
|
-
...r.flatMap(
|
|
241
|
-
(d) => s.flatMap(
|
|
242
|
-
(m) => f.map((p) => n(d, m, p, l))
|
|
243
|
-
)
|
|
244
|
-
)
|
|
245
|
-
);
|
|
246
|
-
},
|
|
247
|
-
{ flush: "post" }
|
|
248
|
-
), c = () => {
|
|
249
|
-
i(), o();
|
|
250
|
-
};
|
|
251
|
-
return V(o), c;
|
|
252
|
-
}
|
|
253
|
-
let oe = !1;
|
|
254
|
-
function Je(e, t, o = {}) {
|
|
255
|
-
const { window: n = I, ignore: u = [], capture: i = !0, detectIframe: c = !1, controls: r = !1 } = o;
|
|
256
|
-
if (!n)
|
|
257
|
-
return r ? { stop: x, cancel: x, trigger: x } : x;
|
|
258
|
-
if (Ie && !oe) {
|
|
259
|
-
oe = !0;
|
|
260
|
-
const v = { passive: !0 };
|
|
261
|
-
Array.from(n.document.body.children).forEach((h) => h.addEventListener("click", x, v)), n.document.documentElement.addEventListener("click", x, v);
|
|
159
|
+
return !1;
|
|
262
160
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
return y && (v.target === y || v.composedPath().includes(y));
|
|
161
|
+
function Y(i) {
|
|
162
|
+
v(!0);
|
|
163
|
+
for (const s of i) {
|
|
164
|
+
const u = e + s.length;
|
|
165
|
+
if (n.slice(e, u) === s)
|
|
166
|
+
return e = u, !0;
|
|
270
167
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
return
|
|
168
|
+
return !1;
|
|
169
|
+
}
|
|
170
|
+
function C(i) {
|
|
171
|
+
return n[e] === i ? (r += n[e], e++, !0) : !1;
|
|
275
172
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
278
|
-
return O == null || !Array.isArray(O) ? !1 : O.some((E) => E.el === h.target || h.composedPath().includes(E.el));
|
|
173
|
+
function k(i) {
|
|
174
|
+
return n[e] === i ? (e++, !0) : !1;
|
|
279
175
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
176
|
+
function x() {
|
|
177
|
+
return k("\\");
|
|
178
|
+
}
|
|
179
|
+
function V() {
|
|
180
|
+
return t(), n[e] === "." && n[e + 1] === "." && n[e + 2] === "." ? (e += 3, t(), k(","), !0) : !1;
|
|
181
|
+
}
|
|
182
|
+
function ee() {
|
|
183
|
+
if (n[e] === "{") {
|
|
184
|
+
r += "{", e++, t(), k(",") && t();
|
|
185
|
+
let i = !0;
|
|
186
|
+
for (; e < n.length && n[e] !== "}"; ) {
|
|
187
|
+
let s;
|
|
188
|
+
if (i ? (s = !0, i = !1) : (s = C(","), s || (r = l(r, ",")), t()), V(), !(h() || j(!0))) {
|
|
189
|
+
n[e] === "}" || n[e] === "{" || n[e] === "]" || n[e] === "[" || n[e] === void 0 ? r = S(r, ",") : le();
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
t();
|
|
193
|
+
const A = C(":"), a = e >= n.length;
|
|
194
|
+
A || (_(n[e]) || a ? r = l(r, ":") : J()), m() || (A || a ? r += "null" : J());
|
|
286
195
|
}
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
let m = !1;
|
|
291
|
-
const p = [
|
|
292
|
-
W(n, "click", (v) => {
|
|
293
|
-
m || (m = !0, setTimeout(() => {
|
|
294
|
-
m = !1;
|
|
295
|
-
}, 0), d(v));
|
|
296
|
-
}, { passive: !0, capture: i }),
|
|
297
|
-
W(n, "pointerdown", (v) => {
|
|
298
|
-
const h = S(e);
|
|
299
|
-
s = !f(v) && !!(h && !v.composedPath().includes(h));
|
|
300
|
-
}, { passive: !0 }),
|
|
301
|
-
c && W(n, "blur", (v) => {
|
|
302
|
-
setTimeout(() => {
|
|
303
|
-
var h;
|
|
304
|
-
const y = S(e);
|
|
305
|
-
((h = n.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(y != null && y.contains(n.document.activeElement)) && t(v);
|
|
306
|
-
}, 0);
|
|
307
|
-
}, { passive: !0 })
|
|
308
|
-
].filter(Boolean), T = () => p.forEach((v) => v());
|
|
309
|
-
return r ? {
|
|
310
|
-
stop: T,
|
|
311
|
-
cancel: () => {
|
|
312
|
-
s = !1;
|
|
313
|
-
},
|
|
314
|
-
trigger: (v) => {
|
|
315
|
-
s = !0, d(v), s = !1;
|
|
316
|
-
}
|
|
317
|
-
} : T;
|
|
318
|
-
}
|
|
319
|
-
// @__NO_SIDE_EFFECTS__
|
|
320
|
-
function ze() {
|
|
321
|
-
const e = b(!1), t = $();
|
|
322
|
-
return t && ie(() => {
|
|
323
|
-
e.value = !0;
|
|
324
|
-
}, t), e;
|
|
325
|
-
}
|
|
326
|
-
// @__NO_SIDE_EFFECTS__
|
|
327
|
-
function G(e) {
|
|
328
|
-
const t = /* @__PURE__ */ ze();
|
|
329
|
-
return _(() => (t.value, !!e()));
|
|
330
|
-
}
|
|
331
|
-
function X(e, t, o = {}) {
|
|
332
|
-
const { window: n = I, ...u } = o;
|
|
333
|
-
let i;
|
|
334
|
-
const c = /* @__PURE__ */ G(() => n && "MutationObserver" in n), r = () => {
|
|
335
|
-
i && (i.disconnect(), i = void 0);
|
|
336
|
-
}, s = _(() => {
|
|
337
|
-
const d = w(e), m = D(d).map(S).filter(xe);
|
|
338
|
-
return new Set(m);
|
|
339
|
-
}), f = A(
|
|
340
|
-
s,
|
|
341
|
-
(d) => {
|
|
342
|
-
r(), c.value && d.size && (i = new MutationObserver(t), d.forEach((m) => i.observe(m, u)));
|
|
343
|
-
},
|
|
344
|
-
{ immediate: !0, flush: "post" }
|
|
345
|
-
), a = () => i == null ? void 0 : i.takeRecords(), l = () => {
|
|
346
|
-
f(), r();
|
|
347
|
-
};
|
|
348
|
-
return V(l), {
|
|
349
|
-
isSupported: c,
|
|
350
|
-
stop: l,
|
|
351
|
-
takeRecords: a
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
const Ne = Symbol("vueuse-ssr-width");
|
|
355
|
-
// @__NO_SIDE_EFFECTS__
|
|
356
|
-
function Be() {
|
|
357
|
-
const e = se() ? /* @__PURE__ */ Pe(Ne, null) : null;
|
|
358
|
-
return typeof e == "number" ? e : void 0;
|
|
359
|
-
}
|
|
360
|
-
function je(e, t = {}) {
|
|
361
|
-
const { window: o = I, ssrWidth: n = /* @__PURE__ */ Be() } = t, u = /* @__PURE__ */ G(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), i = b(typeof n == "number"), c = b(), r = b(!1), s = (f) => {
|
|
362
|
-
r.value = f.matches;
|
|
363
|
-
};
|
|
364
|
-
return ue(() => {
|
|
365
|
-
if (i.value) {
|
|
366
|
-
i.value = !u.value;
|
|
367
|
-
const f = w(e).split(",");
|
|
368
|
-
r.value = f.some((a) => {
|
|
369
|
-
const l = a.includes("not all"), d = a.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = a.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
370
|
-
let p = !!(d || m);
|
|
371
|
-
return d && p && (p = n >= ne(d[1])), m && p && (p = n <= ne(m[1])), l ? !p : p;
|
|
372
|
-
});
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
u.value && (c.value = o.matchMedia(w(e)), r.value = c.value.matches);
|
|
376
|
-
}), W(c, "change", s, { passive: !0 }), _(() => r.value);
|
|
377
|
-
}
|
|
378
|
-
function Ke(e, t, o = {}) {
|
|
379
|
-
const { window: n = I, initialValue: u, observe: i = !1 } = o, c = b(u), r = _(() => {
|
|
380
|
-
var f;
|
|
381
|
-
return S(t) || ((f = n == null ? void 0 : n.document) == null ? void 0 : f.documentElement);
|
|
382
|
-
});
|
|
383
|
-
function s() {
|
|
384
|
-
var f;
|
|
385
|
-
const a = w(e), l = w(r);
|
|
386
|
-
if (l && n && a) {
|
|
387
|
-
const d = (f = n.getComputedStyle(l).getPropertyValue(a)) == null ? void 0 : f.trim();
|
|
388
|
-
c.value = d || c.value || u;
|
|
196
|
+
return n[e] === "}" ? (r += "}", e++) : r = l(r, "}"), !0;
|
|
389
197
|
}
|
|
198
|
+
return !1;
|
|
390
199
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
[c, r],
|
|
402
|
-
([f, a]) => {
|
|
403
|
-
const l = w(e);
|
|
404
|
-
a != null && a.style && l && (f == null ? a.style.removeProperty(l) : a.style.setProperty(l, f));
|
|
405
|
-
},
|
|
406
|
-
{ immediate: !0 }
|
|
407
|
-
), c;
|
|
408
|
-
}
|
|
409
|
-
function de(e, t, o = {}) {
|
|
410
|
-
const { window: n = I, ...u } = o;
|
|
411
|
-
let i;
|
|
412
|
-
const c = /* @__PURE__ */ G(() => n && "ResizeObserver" in n), r = () => {
|
|
413
|
-
i && (i.disconnect(), i = void 0);
|
|
414
|
-
}, s = _(() => {
|
|
415
|
-
const l = w(e);
|
|
416
|
-
return Array.isArray(l) ? l.map((d) => S(d)) : [S(l)];
|
|
417
|
-
}), f = A(
|
|
418
|
-
s,
|
|
419
|
-
(l) => {
|
|
420
|
-
if (r(), c.value && n) {
|
|
421
|
-
i = new ResizeObserver(t);
|
|
422
|
-
for (const d of l)
|
|
423
|
-
d && i.observe(d, u);
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
{ immediate: !0, flush: "post" }
|
|
427
|
-
), a = () => {
|
|
428
|
-
r(), f();
|
|
429
|
-
};
|
|
430
|
-
return V(a), {
|
|
431
|
-
isSupported: c,
|
|
432
|
-
stop: a
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
function Ze(e, t = {}) {
|
|
436
|
-
const {
|
|
437
|
-
reset: o = !0,
|
|
438
|
-
windowResize: n = !0,
|
|
439
|
-
windowScroll: u = !0,
|
|
440
|
-
immediate: i = !0,
|
|
441
|
-
updateTiming: c = "sync"
|
|
442
|
-
} = t, r = b(0), s = b(0), f = b(0), a = b(0), l = b(0), d = b(0), m = b(0), p = b(0);
|
|
443
|
-
function T() {
|
|
444
|
-
const h = S(e);
|
|
445
|
-
if (!h) {
|
|
446
|
-
o && (r.value = 0, s.value = 0, f.value = 0, a.value = 0, l.value = 0, d.value = 0, m.value = 0, p.value = 0);
|
|
447
|
-
return;
|
|
200
|
+
function ne() {
|
|
201
|
+
if (n[e] === "[") {
|
|
202
|
+
r += "[", e++, t(), k(",") && t();
|
|
203
|
+
let i = !0;
|
|
204
|
+
for (; e < n.length && n[e] !== "]"; )
|
|
205
|
+
if (i ? i = !1 : C(",") || (r = l(r, ",")), V(), !m()) {
|
|
206
|
+
r = S(r, ",");
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
return n[e] === "]" ? (r += "]", e++) : r = l(r, "]"), !0;
|
|
448
210
|
}
|
|
449
|
-
|
|
450
|
-
r.value = y.height, s.value = y.bottom, f.value = y.left, a.value = y.right, l.value = y.top, d.value = y.width, m.value = y.x, p.value = y.y;
|
|
211
|
+
return !1;
|
|
451
212
|
}
|
|
452
|
-
function
|
|
453
|
-
|
|
213
|
+
function re() {
|
|
214
|
+
let i = !0, s = !0;
|
|
215
|
+
for (; s; )
|
|
216
|
+
i ? i = !1 : C(",") || (r = l(r, ",")), s = m();
|
|
217
|
+
s || (r = S(r, ",")), r = `[
|
|
218
|
+
${r}
|
|
219
|
+
]`;
|
|
454
220
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
c
|
|
221
|
+
function h() {
|
|
222
|
+
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, u = n[e] === "\\";
|
|
223
|
+
if (u && (e++, u = !0), E(n[e])) {
|
|
224
|
+
const A = z(n[e]) ? z : T(n[e]) ? T : Q(n[e]) ? Q : G, a = e, b = r.length;
|
|
225
|
+
let o = '"';
|
|
226
|
+
for (e++; ; ) {
|
|
227
|
+
if (e >= n.length) {
|
|
228
|
+
const c = D(e - 1);
|
|
229
|
+
return !i && O(n.charAt(c)) ? (e = a, r = r.substring(0, b), h(!0)) : (o = l(o, '"'), r += o, !0);
|
|
230
|
+
}
|
|
231
|
+
if (e === s)
|
|
232
|
+
return o = l(o, '"'), r += o, !0;
|
|
233
|
+
if (A(n[e])) {
|
|
234
|
+
const c = e, I = o.length;
|
|
235
|
+
if (o += '"', e++, r += o, t(!1), i || e >= n.length || O(n[e]) || E(n[e]) || d(n[e]))
|
|
236
|
+
return B(), !0;
|
|
237
|
+
const f = D(c - 1), K = n.charAt(f);
|
|
238
|
+
if (K === ",")
|
|
239
|
+
return e = a, r = r.substring(0, b), h(!1, f);
|
|
240
|
+
if (O(K))
|
|
241
|
+
return e = a, r = r.substring(0, b), h(!0);
|
|
242
|
+
r = r.substring(0, b), e = c + 1, o = `${o.substring(0, I)}\\${o.substring(I)}`;
|
|
243
|
+
} else if (i && Z(n[e])) {
|
|
244
|
+
if (n[e - 1] === ":" && M.test(n.substring(a + 1, e + 2)))
|
|
245
|
+
for (; e < n.length && R.test(n[e]); )
|
|
246
|
+
o += n[e], e++;
|
|
247
|
+
return o = l(o, '"'), r += o, B(), !0;
|
|
248
|
+
} else if (n[e] === "\\") {
|
|
249
|
+
const c = n.charAt(e + 1);
|
|
250
|
+
if (ye[c] !== void 0)
|
|
251
|
+
o += n.slice(e, e + 2), e += 2;
|
|
252
|
+
else if (c === "u") {
|
|
253
|
+
let f = 2;
|
|
254
|
+
for (; f < 6 && Ce(n[e + f]); )
|
|
255
|
+
f++;
|
|
256
|
+
f === 6 ? (o += n.slice(e, e + 6), e += 6) : e + f >= n.length ? e = n.length : fe();
|
|
257
|
+
} else
|
|
258
|
+
o += c, e += 2;
|
|
259
|
+
} else {
|
|
260
|
+
const c = n.charAt(e);
|
|
261
|
+
c === '"' && n[e - 1] !== "\\" ? (o += `\\${c}`, e++) : Ne(c) ? (o += Ee[c], e++) : (be(c) || oe(c), o += c, e++);
|
|
484
262
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
c.value = m.reduce((p, { inlineSize: T }) => p + T, 0), r.value = m.reduce((p, { blockSize: T }) => p + T, 0);
|
|
488
|
-
} else
|
|
489
|
-
c.value = l.contentRect.width, r.value = l.contentRect.height;
|
|
490
|
-
},
|
|
491
|
-
o
|
|
492
|
-
);
|
|
493
|
-
B(() => {
|
|
494
|
-
const l = S(e);
|
|
495
|
-
l && (c.value = "offsetWidth" in l ? l.offsetWidth : t.width, r.value = "offsetHeight" in l ? l.offsetHeight : t.height);
|
|
496
|
-
});
|
|
497
|
-
const f = A(
|
|
498
|
-
() => S(e),
|
|
499
|
-
(l) => {
|
|
500
|
-
c.value = l ? t.width : 0, r.value = l ? t.height : 0;
|
|
263
|
+
u && x();
|
|
264
|
+
}
|
|
501
265
|
}
|
|
502
|
-
|
|
503
|
-
function a() {
|
|
504
|
-
s(), f();
|
|
266
|
+
return !1;
|
|
505
267
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
var l;
|
|
533
|
-
const d = (l = S(e.input)) != null ? l : t ? t.createElement("input") : void 0;
|
|
534
|
-
return d && (d.type = "file", d.onchange = (m) => {
|
|
535
|
-
const p = m.target;
|
|
536
|
-
o.value = p.files, u(o.value);
|
|
537
|
-
}, d.oncancel = () => {
|
|
538
|
-
c();
|
|
539
|
-
}), d;
|
|
540
|
-
}), s = () => {
|
|
541
|
-
o.value = null, r.value && r.value.value && (r.value.value = "", u(null));
|
|
542
|
-
}, f = (l) => {
|
|
543
|
-
const d = r.value;
|
|
544
|
-
d && (d.multiple = w(l.multiple), d.accept = w(l.accept), d.webkitdirectory = w(l.directory), _e(l, "capture") && (d.capture = w(l.capture)));
|
|
545
|
-
}, a = (l) => {
|
|
546
|
-
const d = r.value;
|
|
547
|
-
if (!d)
|
|
548
|
-
return;
|
|
549
|
-
const m = {
|
|
550
|
-
...$e,
|
|
551
|
-
...e,
|
|
552
|
-
...l
|
|
553
|
-
};
|
|
554
|
-
f(m), w(m.reset) && s(), d.click();
|
|
555
|
-
};
|
|
556
|
-
return ue(() => {
|
|
557
|
-
f(e);
|
|
558
|
-
}), {
|
|
559
|
-
files: Ee(o),
|
|
560
|
-
open: a,
|
|
561
|
-
reset: s,
|
|
562
|
-
onCancel: i,
|
|
563
|
-
onChange: n
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
const re = 1;
|
|
567
|
-
function nt(e, t = {}) {
|
|
568
|
-
const {
|
|
569
|
-
throttle: o = 0,
|
|
570
|
-
idle: n = 200,
|
|
571
|
-
onStop: u = x,
|
|
572
|
-
onScroll: i = x,
|
|
573
|
-
offset: c = {
|
|
574
|
-
left: 0,
|
|
575
|
-
right: 0,
|
|
576
|
-
top: 0,
|
|
577
|
-
bottom: 0
|
|
578
|
-
},
|
|
579
|
-
observe: r = {
|
|
580
|
-
mutation: !1
|
|
581
|
-
},
|
|
582
|
-
eventListenerOptions: s = {
|
|
583
|
-
capture: !1,
|
|
584
|
-
passive: !0
|
|
585
|
-
},
|
|
586
|
-
behavior: f = "auto",
|
|
587
|
-
window: a = I,
|
|
588
|
-
onError: l = (g) => {
|
|
589
|
-
console.error(g);
|
|
268
|
+
function B() {
|
|
269
|
+
let i = !1;
|
|
270
|
+
for (t(); n[e] === "+"; ) {
|
|
271
|
+
i = !0, e++, t(), r = S(r, '"', !0);
|
|
272
|
+
const s = r.length;
|
|
273
|
+
h() ? r = Ae(r, s, 1) : r = l(r, '"');
|
|
274
|
+
}
|
|
275
|
+
return i;
|
|
276
|
+
}
|
|
277
|
+
function ie() {
|
|
278
|
+
const i = e;
|
|
279
|
+
if (n[e] === "-") {
|
|
280
|
+
if (e++, $())
|
|
281
|
+
return W(i), !0;
|
|
282
|
+
if (!d(n[e]))
|
|
283
|
+
return e = i, !1;
|
|
284
|
+
}
|
|
285
|
+
for (; d(n[e]); )
|
|
286
|
+
e++;
|
|
287
|
+
if (n[e] === ".") {
|
|
288
|
+
if (e++, $())
|
|
289
|
+
return W(i), !0;
|
|
290
|
+
if (!d(n[e]))
|
|
291
|
+
return e = i, !1;
|
|
292
|
+
for (; d(n[e]); )
|
|
293
|
+
e++;
|
|
590
294
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
h(g, void 0);
|
|
295
|
+
if (n[e] === "e" || n[e] === "E") {
|
|
296
|
+
if (e++, (n[e] === "-" || n[e] === "+") && e++, $())
|
|
297
|
+
return W(i), !0;
|
|
298
|
+
if (!d(n[e]))
|
|
299
|
+
return e = i, !1;
|
|
300
|
+
for (; d(n[e]); )
|
|
301
|
+
e++;
|
|
599
302
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
h(void 0, g);
|
|
303
|
+
if (!$())
|
|
304
|
+
return e = i, !1;
|
|
305
|
+
if (e > i) {
|
|
306
|
+
const s = n.slice(i, e), u = /^0\d/.test(s);
|
|
307
|
+
return r += u ? `"${s}"` : s, !0;
|
|
606
308
|
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
(L = M instanceof Document ? a.document.body : M) == null || L.scrollTo({
|
|
616
|
-
top: (P = w(k)) != null ? P : v.value,
|
|
617
|
-
left: (R = w(g)) != null ? R : T.value,
|
|
618
|
-
behavior: w(f)
|
|
619
|
-
});
|
|
620
|
-
const F = ((z = M == null ? void 0 : M.document) == null ? void 0 : z.documentElement) || (M == null ? void 0 : M.documentElement) || M;
|
|
621
|
-
T != null && (m.value = F.scrollLeft), v != null && (p.value = F.scrollTop);
|
|
309
|
+
return !1;
|
|
310
|
+
}
|
|
311
|
+
function se() {
|
|
312
|
+
return g("true", "true") || g("false", "false") || g("null", "null") || // repair Python keywords True, False, None
|
|
313
|
+
g("True", "true") || g("False", "false") || g("None", "null");
|
|
314
|
+
}
|
|
315
|
+
function g(i, s) {
|
|
316
|
+
return n.slice(e, e + i.length) === i ? (r += s, e += i.length, !0) : !1;
|
|
622
317
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}), Q = (g) => {
|
|
634
|
-
y.value && (y.value = !1, E.left = !1, E.right = !1, E.top = !1, E.bottom = !1, u(g));
|
|
635
|
-
}, me = /* @__PURE__ */ Re(Q, o + n), H = (g) => {
|
|
636
|
-
var k;
|
|
637
|
-
if (!a)
|
|
638
|
-
return;
|
|
639
|
-
const P = ((k = g == null ? void 0 : g.document) == null ? void 0 : k.documentElement) || (g == null ? void 0 : g.documentElement) || S(g), { display: R, flexDirection: L, direction: z } = getComputedStyle(P), M = z === "rtl" ? -1 : 1, F = P.scrollLeft;
|
|
640
|
-
E.left = F < m.value, E.right = F > m.value;
|
|
641
|
-
const q = Math.abs(F * M) <= (c.left || 0), J = Math.abs(F * M) + P.clientWidth >= P.scrollWidth - (c.right || 0) - re;
|
|
642
|
-
R === "flex" && L === "row-reverse" ? (O.left = J, O.right = q) : (O.left = q, O.right = J), m.value = F;
|
|
643
|
-
let C = P.scrollTop;
|
|
644
|
-
g === a.document && !C && (C = a.document.body.scrollTop), E.top = C < p.value, E.bottom = C > p.value;
|
|
645
|
-
const K = Math.abs(C) <= (c.top || 0), Z = Math.abs(C) + P.clientHeight >= P.scrollHeight - (c.bottom || 0) - re;
|
|
646
|
-
R === "flex" && L === "column-reverse" ? (O.top = Z, O.bottom = K) : (O.top = K, O.bottom = Z), p.value = C;
|
|
647
|
-
}, U = (g) => {
|
|
648
|
-
var k;
|
|
649
|
-
if (!a)
|
|
650
|
-
return;
|
|
651
|
-
const P = (k = g.target.documentElement) != null ? k : g.target;
|
|
652
|
-
H(P), y.value = !0, me(g), i(g);
|
|
653
|
-
};
|
|
654
|
-
return W(
|
|
655
|
-
e,
|
|
656
|
-
"scroll",
|
|
657
|
-
o ? /* @__PURE__ */ Le(U, o, !0, !1) : U,
|
|
658
|
-
s
|
|
659
|
-
), B(() => {
|
|
660
|
-
try {
|
|
661
|
-
const g = w(e);
|
|
662
|
-
if (!g)
|
|
663
|
-
return;
|
|
664
|
-
H(g);
|
|
665
|
-
} catch (g) {
|
|
666
|
-
l(g);
|
|
318
|
+
function j(i) {
|
|
319
|
+
const s = e;
|
|
320
|
+
if (L(n[e])) {
|
|
321
|
+
for (; e < n.length && F(n[e]); )
|
|
322
|
+
e++;
|
|
323
|
+
let u = e;
|
|
324
|
+
for (; p(n, u); )
|
|
325
|
+
u++;
|
|
326
|
+
if (n[u] === "(")
|
|
327
|
+
return e = u + 1, m(), n[e] === ")" && (e++, n[e] === ";" && e++), !0;
|
|
667
328
|
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
(
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
329
|
+
for (; e < n.length && !Z(n[e]) && !E(n[e]) && (!i || n[e] !== ":"); )
|
|
330
|
+
e++;
|
|
331
|
+
if (n[e - 1] === ":" && M.test(n.substring(s, e + 2)))
|
|
332
|
+
for (; e < n.length && R.test(n[e]); )
|
|
333
|
+
e++;
|
|
334
|
+
if (e > s) {
|
|
335
|
+
for (; p(n, e - 1) && e > 0; )
|
|
336
|
+
e--;
|
|
337
|
+
const u = n.slice(s, e);
|
|
338
|
+
return r += u === "undefined" ? "null" : JSON.stringify(u), n[e] === '"' && e++, !0;
|
|
678
339
|
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
"
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
y: v,
|
|
687
|
-
isScrolling: y,
|
|
688
|
-
arrivedState: O,
|
|
689
|
-
directions: E,
|
|
690
|
-
measure() {
|
|
691
|
-
const g = w(e);
|
|
692
|
-
a && g && H(g);
|
|
340
|
+
}
|
|
341
|
+
function ue() {
|
|
342
|
+
if (n[e] === "/") {
|
|
343
|
+
const i = e;
|
|
344
|
+
for (e++; e < n.length && (n[e] !== "/" || n[e - 1] === "\\"); )
|
|
345
|
+
e++;
|
|
346
|
+
return e++, r += JSON.stringify(n.substring(i, e)), !0;
|
|
693
347
|
}
|
|
694
|
-
};
|
|
695
|
-
}
|
|
696
|
-
const ve = {
|
|
697
|
-
x: 0,
|
|
698
|
-
y: 0,
|
|
699
|
-
pointerId: 0,
|
|
700
|
-
pressure: 0,
|
|
701
|
-
tiltX: 0,
|
|
702
|
-
tiltY: 0,
|
|
703
|
-
width: 0,
|
|
704
|
-
height: 0,
|
|
705
|
-
twist: 0,
|
|
706
|
-
pointerType: null
|
|
707
|
-
}, Ge = /* @__PURE__ */ Object.keys(ve);
|
|
708
|
-
function ot(e = {}) {
|
|
709
|
-
const {
|
|
710
|
-
target: t = I
|
|
711
|
-
} = e, o = b(!1), n = b(e.initialValue || {});
|
|
712
|
-
Object.assign(n.value, ve, n.value);
|
|
713
|
-
const u = (i) => {
|
|
714
|
-
o.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(i.pointerType)) && (n.value = ke(i, Ge, !1));
|
|
715
|
-
};
|
|
716
|
-
if (t) {
|
|
717
|
-
const i = { passive: !0 };
|
|
718
|
-
W(t, ["pointerdown", "pointermove", "pointerup"], u, i), W(t, "pointerleave", () => o.value = !1, i);
|
|
719
348
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
function
|
|
727
|
-
|
|
728
|
-
window: t = I,
|
|
729
|
-
initialWidth: o = Number.POSITIVE_INFINITY,
|
|
730
|
-
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
731
|
-
listenOrientation: u = !0,
|
|
732
|
-
includeScrollbar: i = !0,
|
|
733
|
-
type: c = "inner"
|
|
734
|
-
} = e, r = b(o), s = b(n), f = () => {
|
|
735
|
-
if (t)
|
|
736
|
-
if (c === "outer")
|
|
737
|
-
r.value = t.outerWidth, s.value = t.outerHeight;
|
|
738
|
-
else if (c === "visual" && t.visualViewport) {
|
|
739
|
-
const { width: l, height: d, scale: m } = t.visualViewport;
|
|
740
|
-
r.value = Math.round(l * m), s.value = Math.round(d * m);
|
|
741
|
-
} else i ? (r.value = t.innerWidth, s.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, s.value = t.document.documentElement.clientHeight);
|
|
742
|
-
};
|
|
743
|
-
f(), B(f);
|
|
744
|
-
const a = { passive: !0 };
|
|
745
|
-
if (W("resize", f, a), t && c === "visual" && t.visualViewport && W(t.visualViewport, "resize", f, a), u) {
|
|
746
|
-
const l = je("(orientation: portrait)");
|
|
747
|
-
A(l, () => f());
|
|
349
|
+
function D(i) {
|
|
350
|
+
let s = i;
|
|
351
|
+
for (; s > 0 && p(n, s); )
|
|
352
|
+
s--;
|
|
353
|
+
return s;
|
|
354
|
+
}
|
|
355
|
+
function $() {
|
|
356
|
+
return e >= n.length || O(n[e]) || p(n, e);
|
|
748
357
|
}
|
|
749
|
-
|
|
358
|
+
function W(i) {
|
|
359
|
+
r += `${n.slice(i, e)}0`;
|
|
360
|
+
}
|
|
361
|
+
function oe(i) {
|
|
362
|
+
throw new w(`Invalid character ${JSON.stringify(i)}`, e);
|
|
363
|
+
}
|
|
364
|
+
function te() {
|
|
365
|
+
throw new w(`Unexpected character ${JSON.stringify(n[e])}`, e);
|
|
366
|
+
}
|
|
367
|
+
function ce() {
|
|
368
|
+
throw new w("Unexpected end of json string", n.length);
|
|
369
|
+
}
|
|
370
|
+
function le() {
|
|
371
|
+
throw new w("Object key expected", e);
|
|
372
|
+
}
|
|
373
|
+
function J() {
|
|
374
|
+
throw new w("Colon expected", e);
|
|
375
|
+
}
|
|
376
|
+
function fe() {
|
|
377
|
+
const i = n.slice(e, e + 6);
|
|
378
|
+
throw new w(`Invalid unicode character "${i}"`, e);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function ve(n, e) {
|
|
382
|
+
return n[e] === "*" && n[e + 1] === "/";
|
|
750
383
|
}
|
|
751
384
|
export {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
et as c,
|
|
755
|
-
Ze as d,
|
|
756
|
-
tt as e,
|
|
757
|
-
Ue as f,
|
|
758
|
-
W as g,
|
|
759
|
-
je as h,
|
|
760
|
-
nt as i,
|
|
761
|
-
Qe as j,
|
|
762
|
-
de as k,
|
|
763
|
-
Ke as l,
|
|
764
|
-
Je as o,
|
|
765
|
-
ot as u,
|
|
766
|
-
qe as w
|
|
385
|
+
w as JSONRepairError,
|
|
386
|
+
We as jsonrepair
|
|
767
387
|
};
|