koishi-plugin-wordle-game 2.0.6 → 2.0.8
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.
|
@@ -235,7 +235,7 @@ const Gl = "1.1.2"
|
|
|
235
235
|
// }
|
|
236
236
|
// })
|
|
237
237
|
// }
|
|
238
|
-
var Hl =""
|
|
238
|
+
var Hl = ""
|
|
239
239
|
|
|
240
240
|
class Ul {
|
|
241
241
|
constructor(e) {
|
|
@@ -328,7 +328,7 @@ function cl(n) {
|
|
|
328
328
|
// }
|
|
329
329
|
// const gt = Ql()
|
|
330
330
|
// const he = Fl();
|
|
331
|
-
|
|
331
|
+
const Kl = function(isHardMode) {
|
|
332
332
|
const n = {
|
|
333
333
|
boardState: new Array(Ne).fill(!1).map(() => new Array(ce).fill(!1).map(() => "")),
|
|
334
334
|
rowIndex: 0,
|
|
@@ -339,30 +339,13 @@ export function Kl(isHardMode) {
|
|
|
339
339
|
hardMode: isHardMode,
|
|
340
340
|
dailyConsumedQuota: 0
|
|
341
341
|
};
|
|
342
|
-
|
|
343
|
-
// updateSolution: function (t) {
|
|
344
|
-
// this.update(l => ze(Me({}, l), {
|
|
345
|
-
// boardState: new Array(Ne).fill(!1).map(() => new Array(ce).fill(!1).map(() => "")),
|
|
346
|
-
// rowIndex: 0,
|
|
347
|
-
// solution: t,
|
|
348
|
-
// gameStatus: le.IN_PROGRESS,
|
|
349
|
-
// lastPlayedTs: null
|
|
350
|
-
// }))
|
|
351
|
-
// }
|
|
352
|
-
// });
|
|
353
|
-
return n
|
|
354
|
-
// he && (
|
|
355
|
-
// e = ze(Me({}, e), {
|
|
356
|
-
// commit: ()=>{}
|
|
357
|
-
// }),
|
|
358
|
-
// gt !== void 0 && e.update(t=>ze(Me({}, t), {
|
|
359
|
-
// hardMode: gt != null ? gt : !1
|
|
360
|
-
// }))),
|
|
361
|
-
|
|
342
|
+
return n;
|
|
362
343
|
}
|
|
363
344
|
|
|
364
|
-
|
|
365
|
-
|
|
345
|
+
module.exports.Kl = Kl;
|
|
346
|
+
|
|
347
|
+
const ae = Kl()
|
|
348
|
+
const Vl = {
|
|
366
349
|
keepShadow: !0,
|
|
367
350
|
correctThreshold: .5,
|
|
368
351
|
presentThreshold: 1,
|
|
@@ -1880,7 +1863,7 @@ function $s(n, e, t) {
|
|
|
1880
1863
|
return Math.sqrt(l) / 1024
|
|
1881
1864
|
}
|
|
1882
1865
|
|
|
1883
|
-
|
|
1866
|
+
module.exports.Ot = function (n, e, t, Ct) {
|
|
1884
1867
|
const l = je(Ct)
|
|
1885
1868
|
// console.log(l)
|
|
1886
1869
|
const s = [...(t == null ? void 0 : t.shadows) || n.medians.map(() => ({
|
|
@@ -3236,32 +3219,32 @@ const Vs = "modulepreload"
|
|
|
3236
3219
|
// // console.error(`Can not initialize firebase logger with ${o}`)
|
|
3237
3220
|
// }
|
|
3238
3221
|
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3222
|
+
// class s {
|
|
3223
|
+
// constructor(i) {
|
|
3224
|
+
// this.firebaseAnalytics = i,
|
|
3225
|
+
// // et.subscribe(u=>{
|
|
3226
|
+
// // this.updateCollectionPolicy(u)
|
|
3227
|
+
// // }
|
|
3228
|
+
// // ),
|
|
3229
|
+
// this.updateCollectionPolicy(je(et))
|
|
3230
|
+
// }
|
|
3231
|
+
//
|
|
3232
|
+
// updateCollectionPolicy(i) {
|
|
3233
|
+
// l.then(u => {
|
|
3234
|
+
// this.firebaseAnalytics && u.setAnalyticsCollectionEnabled(this.firebaseAnalytics, i)
|
|
3235
|
+
// }
|
|
3236
|
+
// )
|
|
3237
|
+
// }
|
|
3238
|
+
//
|
|
3239
|
+
// logEvent(i) {
|
|
3240
|
+
// !this.firebaseAnalytics || !je(et) || l.then(u => {
|
|
3241
|
+
// u.logEvent(this.firebaseAnalytics, i.name, i.params)
|
|
3242
|
+
// }
|
|
3243
|
+
// )
|
|
3244
|
+
// }
|
|
3245
|
+
// }
|
|
3246
|
+
//
|
|
3247
|
+
// return new s(e)
|
|
3265
3248
|
// }
|
|
3266
3249
|
//
|
|
3267
3250
|
// const Oe = Zs()
|
|
@@ -7,40 +7,53 @@
|
|
|
7
7
|
// // 获取全局对象
|
|
8
8
|
// const window = dom.window;
|
|
9
9
|
// const document = window.document;
|
|
10
|
-
function R() {
|
|
11
|
-
|
|
10
|
+
function R() {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const be = e => e;
|
|
14
|
+
|
|
12
15
|
function ke(e, t) {
|
|
13
16
|
for (const n in t)
|
|
14
17
|
e[n] = t[n];
|
|
15
18
|
return e
|
|
16
19
|
}
|
|
20
|
+
|
|
17
21
|
function at(e) {
|
|
18
22
|
return e && typeof e == "object" && typeof e.then == "function"
|
|
19
23
|
}
|
|
24
|
+
|
|
20
25
|
function He(e) {
|
|
21
26
|
return e()
|
|
22
27
|
}
|
|
28
|
+
|
|
23
29
|
function Ge() {
|
|
24
30
|
return Object.create(null)
|
|
25
31
|
}
|
|
32
|
+
|
|
26
33
|
function j(e) {
|
|
27
34
|
e.forEach(He)
|
|
28
35
|
}
|
|
36
|
+
|
|
29
37
|
function F(e) {
|
|
30
38
|
return typeof e == "function"
|
|
31
39
|
}
|
|
40
|
+
|
|
32
41
|
function ct(e, t) {
|
|
33
42
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function"
|
|
34
43
|
}
|
|
44
|
+
|
|
35
45
|
let re;
|
|
46
|
+
|
|
36
47
|
function Rt(e, t) {
|
|
37
48
|
return re || (re = document.createElement("a")),
|
|
38
49
|
re.href = t,
|
|
39
50
|
e === re.href
|
|
40
51
|
}
|
|
52
|
+
|
|
41
53
|
function lt(e) {
|
|
42
54
|
return Object.keys(e).length === 0
|
|
43
55
|
}
|
|
56
|
+
|
|
44
57
|
function Oe(e, ...t) {
|
|
45
58
|
if (e == null)
|
|
46
59
|
return R;
|
|
@@ -49,22 +62,27 @@ function Oe(e, ...t) {
|
|
|
49
62
|
// return n.unsubscribe ? ()=>n.unsubscribe() : n
|
|
50
63
|
// return n
|
|
51
64
|
}
|
|
65
|
+
|
|
52
66
|
function $t(e) {
|
|
53
67
|
return e
|
|
54
68
|
|
|
55
69
|
}
|
|
70
|
+
|
|
56
71
|
function Ct(e, t, n) {
|
|
57
72
|
e.$$.on_destroy.push(Oe(t, n))
|
|
58
73
|
}
|
|
74
|
+
|
|
59
75
|
function qt(e, t, n, o) {
|
|
60
76
|
if (e) {
|
|
61
77
|
const l = Ze(e, t, n, o);
|
|
62
78
|
return e[0](l)
|
|
63
79
|
}
|
|
64
80
|
}
|
|
81
|
+
|
|
65
82
|
function Ze(e, t, n, o) {
|
|
66
83
|
return e[1] && o ? ke(n.ctx.slice(), e[1](o(t))) : n.ctx
|
|
67
84
|
}
|
|
85
|
+
|
|
68
86
|
function zt(e, t, n, o) {
|
|
69
87
|
if (e[2] && o) {
|
|
70
88
|
const l = e[2](o(n));
|
|
@@ -81,12 +99,14 @@ function zt(e, t, n, o) {
|
|
|
81
99
|
}
|
|
82
100
|
return t.dirty
|
|
83
101
|
}
|
|
102
|
+
|
|
84
103
|
function Pt(e, t, n, o, l, b) {
|
|
85
104
|
if (l) {
|
|
86
105
|
const u = Ze(t, n, o, b);
|
|
87
106
|
e.p(u, l)
|
|
88
107
|
}
|
|
89
108
|
}
|
|
109
|
+
|
|
90
110
|
function jt(e) {
|
|
91
111
|
if (e.ctx.length > 32) {
|
|
92
112
|
const t = []
|
|
@@ -97,27 +117,31 @@ function jt(e) {
|
|
|
97
117
|
}
|
|
98
118
|
return -1
|
|
99
119
|
}
|
|
120
|
+
|
|
100
121
|
function Bt(e, t, n) {
|
|
101
122
|
return e.set(n),
|
|
102
123
|
t
|
|
103
124
|
}
|
|
125
|
+
|
|
104
126
|
const Xe = typeof window != "undefined";
|
|
105
|
-
let Se = Xe ? ()=>window.performance.now() : ()=>Date.now()
|
|
106
|
-
, Ae = Xe ? e=>requestAnimationFrame(e) : R;
|
|
127
|
+
let Se = Xe ? () => window.performance.now() : () => Date.now()
|
|
128
|
+
, Ae = Xe ? e => requestAnimationFrame(e) : R;
|
|
107
129
|
const I = new Set;
|
|
130
|
+
|
|
108
131
|
function Ke(e) {
|
|
109
|
-
I.forEach(t=>{
|
|
132
|
+
I.forEach(t => {
|
|
110
133
|
t.c(e) || (I.delete(t),
|
|
111
134
|
t.f())
|
|
112
135
|
}
|
|
113
136
|
),
|
|
114
137
|
I.size !== 0 && Ae(Ke)
|
|
115
138
|
}
|
|
139
|
+
|
|
116
140
|
function Te(e) {
|
|
117
141
|
let t;
|
|
118
142
|
return I.size === 0 && Ae(Ke),
|
|
119
143
|
{
|
|
120
|
-
promise: new Promise(n=>{
|
|
144
|
+
promise: new Promise(n => {
|
|
121
145
|
I.add(t = {
|
|
122
146
|
c: e,
|
|
123
147
|
f: n
|
|
@@ -129,91 +153,115 @@ function Te(e) {
|
|
|
129
153
|
}
|
|
130
154
|
}
|
|
131
155
|
}
|
|
156
|
+
|
|
132
157
|
function ut(e, t) {
|
|
133
158
|
e.appendChild(t)
|
|
134
159
|
}
|
|
160
|
+
|
|
135
161
|
function Je(e) {
|
|
136
162
|
if (!e)
|
|
137
163
|
return document;
|
|
138
164
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
139
165
|
return t && t.host ? t : e.ownerDocument
|
|
140
166
|
}
|
|
167
|
+
|
|
141
168
|
function ft(e) {
|
|
142
169
|
const t = wt("style");
|
|
143
170
|
return bt(Je(e), t),
|
|
144
171
|
t.sheet
|
|
145
172
|
}
|
|
173
|
+
|
|
146
174
|
function bt(e, t) {
|
|
147
175
|
ut(e.head || e, t)
|
|
148
176
|
}
|
|
177
|
+
|
|
149
178
|
function Ut(e, t, n) {
|
|
150
179
|
e.insertBefore(t, n || null)
|
|
151
180
|
}
|
|
181
|
+
|
|
152
182
|
function dt(e) {
|
|
153
183
|
e.parentNode.removeChild(e)
|
|
154
184
|
}
|
|
185
|
+
|
|
155
186
|
function Lt(e, t) {
|
|
156
187
|
for (let n = 0; n < e.length; n += 1)
|
|
157
188
|
e[n] && e[n].d(t)
|
|
158
189
|
}
|
|
190
|
+
|
|
159
191
|
function wt(e) {
|
|
160
192
|
return document.createElement(e)
|
|
161
193
|
}
|
|
194
|
+
|
|
162
195
|
function Dt(e) {
|
|
163
196
|
return document.createElementNS("http://www.w3.org/2000/svg", e)
|
|
164
197
|
}
|
|
198
|
+
|
|
165
199
|
function Qe(e) {
|
|
166
200
|
return document.createTextNode(e)
|
|
167
201
|
}
|
|
202
|
+
|
|
168
203
|
function It() {
|
|
169
204
|
return Qe(" ")
|
|
170
205
|
}
|
|
206
|
+
|
|
171
207
|
function Vt() {
|
|
172
208
|
return Qe("")
|
|
173
209
|
}
|
|
210
|
+
|
|
174
211
|
function Ft(e, t, n, o) {
|
|
175
212
|
return e.addEventListener(t, n, o),
|
|
176
|
-
()=>e.removeEventListener(t, n, o)
|
|
213
|
+
() => e.removeEventListener(t, n, o)
|
|
177
214
|
}
|
|
215
|
+
|
|
178
216
|
function Gt(e) {
|
|
179
|
-
return function(t) {
|
|
217
|
+
return function (t) {
|
|
180
218
|
return t.preventDefault(),
|
|
181
219
|
e.call(this, t)
|
|
182
220
|
}
|
|
183
221
|
}
|
|
222
|
+
|
|
184
223
|
function Wt(e, t, n) {
|
|
185
224
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n)
|
|
186
225
|
}
|
|
226
|
+
|
|
187
227
|
function ht(e) {
|
|
188
228
|
return Array.from(e.childNodes)
|
|
189
229
|
}
|
|
230
|
+
|
|
190
231
|
function Yt(e, t) {
|
|
191
232
|
t = "" + t,
|
|
192
233
|
e.wholeText !== t && (e.data = t)
|
|
193
234
|
}
|
|
235
|
+
|
|
194
236
|
function Ht(e, t) {
|
|
195
237
|
e.value = t == null ? "" : t
|
|
196
238
|
}
|
|
239
|
+
|
|
197
240
|
function Zt(e, t, n, o) {
|
|
198
241
|
n === null ? e.style.removeProperty(t) : e.style.setProperty(t, n, o ? "important" : "")
|
|
199
242
|
}
|
|
243
|
+
|
|
200
244
|
function Xt(e, t, n) {
|
|
201
245
|
e.classList[n ? "add" : "remove"](t)
|
|
202
246
|
}
|
|
203
|
-
|
|
247
|
+
|
|
248
|
+
function et(e, t, n = !1) {
|
|
204
249
|
const o = document.createEvent("CustomEvent");
|
|
205
250
|
return o.initCustomEvent(e, n, !1, t),
|
|
206
251
|
o
|
|
207
252
|
}
|
|
253
|
+
|
|
208
254
|
const ce = new Map;
|
|
209
255
|
let le = 0;
|
|
256
|
+
|
|
210
257
|
function pt(e) {
|
|
211
258
|
let t = 5381
|
|
212
259
|
, n = e.length;
|
|
213
|
-
for (; n--;
|
|
260
|
+
for (; n--;)
|
|
214
261
|
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
215
262
|
return t >>> 0
|
|
216
263
|
}
|
|
264
|
+
|
|
217
265
|
function mt(e, t) {
|
|
218
266
|
const n = {
|
|
219
267
|
stylesheet: ft(t),
|
|
@@ -222,7 +270,8 @@ function mt(e, t) {
|
|
|
222
270
|
return ce.set(e, n),
|
|
223
271
|
n
|
|
224
272
|
}
|
|
225
|
-
|
|
273
|
+
|
|
274
|
+
function ue(e, t, n, o, l, b, u, d = 0) {
|
|
226
275
|
const w = 16.666 / o;
|
|
227
276
|
let f = `{
|
|
228
277
|
`;
|
|
@@ -243,20 +292,22 @@ function ue(e, t, n, o, l, b, u, d=0) {
|
|
|
243
292
|
le += 1,
|
|
244
293
|
h
|
|
245
294
|
}
|
|
295
|
+
|
|
246
296
|
function fe(e, t) {
|
|
247
297
|
const n = (e.style.animation || "").split(", ")
|
|
248
|
-
, o = n.filter(t ? b=>b.indexOf(t) < 0 : b=>b.indexOf("__svelte") === -1)
|
|
298
|
+
, o = n.filter(t ? b => b.indexOf(t) < 0 : b => b.indexOf("__svelte") === -1)
|
|
249
299
|
, l = n.length - o.length;
|
|
250
300
|
l && (e.style.animation = o.join(", "),
|
|
251
301
|
le -= l,
|
|
252
302
|
le || gt())
|
|
253
303
|
}
|
|
304
|
+
|
|
254
305
|
function gt() {
|
|
255
|
-
Ae(()=>{
|
|
256
|
-
le || (ce.forEach(e=>{
|
|
306
|
+
Ae(() => {
|
|
307
|
+
le || (ce.forEach(e => {
|
|
257
308
|
const {stylesheet: t} = e;
|
|
258
309
|
let n = t.cssRules.length;
|
|
259
|
-
for (; n--;
|
|
310
|
+
for (; n--;)
|
|
260
311
|
t.deleteRule(n);
|
|
261
312
|
e.rules = {}
|
|
262
313
|
}
|
|
@@ -265,57 +316,69 @@ function gt() {
|
|
|
265
316
|
}
|
|
266
317
|
)
|
|
267
318
|
}
|
|
319
|
+
|
|
268
320
|
let X;
|
|
321
|
+
|
|
269
322
|
function z(e) {
|
|
270
323
|
X = e
|
|
271
324
|
}
|
|
325
|
+
|
|
272
326
|
function Me() {
|
|
273
327
|
if (!X)
|
|
274
328
|
throw new Error("Function called outside component initialization");
|
|
275
329
|
return X
|
|
276
330
|
}
|
|
331
|
+
|
|
277
332
|
function Kt(e) {
|
|
278
333
|
Me().$$.on_mount.push(e)
|
|
279
334
|
}
|
|
335
|
+
|
|
280
336
|
function Jt() {
|
|
281
337
|
const e = Me();
|
|
282
|
-
return (t,n)=>{
|
|
338
|
+
return (t, n) => {
|
|
283
339
|
const o = e.$$.callbacks[t];
|
|
284
340
|
if (o) {
|
|
285
341
|
const l = et(t, n);
|
|
286
|
-
o.slice().forEach(b=>{
|
|
342
|
+
o.slice().forEach(b => {
|
|
287
343
|
b.call(e, l)
|
|
288
344
|
}
|
|
289
345
|
)
|
|
290
346
|
}
|
|
291
347
|
}
|
|
292
348
|
}
|
|
349
|
+
|
|
293
350
|
function Qt(e, t) {
|
|
294
351
|
const n = e.$$.callbacks[t.type];
|
|
295
|
-
n && n.slice().forEach(o=>o.call(this, t))
|
|
352
|
+
n && n.slice().forEach(o => o.call(this, t))
|
|
296
353
|
}
|
|
354
|
+
|
|
297
355
|
const Z = []
|
|
298
356
|
, We = []
|
|
299
357
|
, se = []
|
|
300
358
|
, xe = []
|
|
301
359
|
, _t = Promise.resolve();
|
|
302
360
|
let Ee = !1;
|
|
361
|
+
|
|
303
362
|
function yt() {
|
|
304
363
|
Ee || (Ee = !0,
|
|
305
364
|
_t.then(Ne))
|
|
306
365
|
}
|
|
366
|
+
|
|
307
367
|
function V(e) {
|
|
308
368
|
se.push(e)
|
|
309
369
|
}
|
|
370
|
+
|
|
310
371
|
function ei(e) {
|
|
311
372
|
xe.push(e)
|
|
312
373
|
}
|
|
374
|
+
|
|
313
375
|
const ve = new Set;
|
|
314
376
|
let oe = 0;
|
|
377
|
+
|
|
315
378
|
function Ne() {
|
|
316
379
|
const e = X;
|
|
317
380
|
do {
|
|
318
|
-
for (; oe < Z.length;
|
|
381
|
+
for (; oe < Z.length;) {
|
|
319
382
|
const t = Z[oe];
|
|
320
383
|
oe++,
|
|
321
384
|
z(t),
|
|
@@ -323,7 +386,7 @@ function Ne() {
|
|
|
323
386
|
}
|
|
324
387
|
for (z(null),
|
|
325
388
|
Z.length = 0,
|
|
326
|
-
oe = 0; We.length;
|
|
389
|
+
oe = 0; We.length;)
|
|
327
390
|
We.pop()();
|
|
328
391
|
for (let t = 0; t < se.length; t += 1) {
|
|
329
392
|
const n = se[t];
|
|
@@ -332,12 +395,13 @@ function Ne() {
|
|
|
332
395
|
}
|
|
333
396
|
se.length = 0
|
|
334
397
|
} while (Z.length);
|
|
335
|
-
for (; xe.length;
|
|
398
|
+
for (; xe.length;)
|
|
336
399
|
xe.pop()();
|
|
337
400
|
Ee = !1,
|
|
338
401
|
ve.clear(),
|
|
339
402
|
z(e)
|
|
340
403
|
}
|
|
404
|
+
|
|
341
405
|
function vt(e) {
|
|
342
406
|
if (e.fragment !== null) {
|
|
343
407
|
e.update(),
|
|
@@ -348,20 +412,25 @@ function vt(e) {
|
|
|
348
412
|
e.after_update.forEach(V)
|
|
349
413
|
}
|
|
350
414
|
}
|
|
415
|
+
|
|
351
416
|
let H;
|
|
417
|
+
|
|
352
418
|
function Re() {
|
|
353
419
|
return H || (H = Promise.resolve(),
|
|
354
|
-
H.then(()=>{
|
|
420
|
+
H.then(() => {
|
|
355
421
|
H = null
|
|
356
422
|
}
|
|
357
423
|
)),
|
|
358
424
|
H
|
|
359
425
|
}
|
|
426
|
+
|
|
360
427
|
function B(e, t, n) {
|
|
361
428
|
e.dispatchEvent(et(`${t ? "intro" : "outro"}${n}`))
|
|
362
429
|
}
|
|
430
|
+
|
|
363
431
|
const ae = new Set;
|
|
364
432
|
let q;
|
|
433
|
+
|
|
365
434
|
function kt() {
|
|
366
435
|
q = {
|
|
367
436
|
r: 0,
|
|
@@ -369,20 +438,23 @@ function kt() {
|
|
|
369
438
|
p: q
|
|
370
439
|
}
|
|
371
440
|
}
|
|
441
|
+
|
|
372
442
|
function xt() {
|
|
373
443
|
q.r || j(q.c),
|
|
374
444
|
q = q.p
|
|
375
445
|
}
|
|
446
|
+
|
|
376
447
|
function $e(e, t) {
|
|
377
448
|
e && e.i && (ae.delete(e),
|
|
378
449
|
e.i(t))
|
|
379
450
|
}
|
|
451
|
+
|
|
380
452
|
function tt(e, t, n, o) {
|
|
381
453
|
if (e && e.o) {
|
|
382
454
|
if (ae.has(e))
|
|
383
455
|
return;
|
|
384
456
|
ae.add(e),
|
|
385
|
-
q.c.push(()=>{
|
|
457
|
+
q.c.push(() => {
|
|
386
458
|
ae.delete(e),
|
|
387
459
|
o && (n && e.d(1),
|
|
388
460
|
o())
|
|
@@ -391,24 +463,28 @@ function tt(e, t, n, o) {
|
|
|
391
463
|
e.o(t)
|
|
392
464
|
}
|
|
393
465
|
}
|
|
466
|
+
|
|
394
467
|
const Ce = {
|
|
395
468
|
duration: 0
|
|
396
469
|
};
|
|
470
|
+
|
|
397
471
|
function ti(e, t, n) {
|
|
398
472
|
let o = t(e, n), l = !1, b, u, d = 0;
|
|
473
|
+
|
|
399
474
|
function w() {
|
|
400
475
|
b && fe(e, b)
|
|
401
476
|
}
|
|
477
|
+
|
|
402
478
|
function f() {
|
|
403
|
-
const {delay: h=0, duration: i=300, easing: a=be, tick: r=R, css: s} = o || Ce;
|
|
479
|
+
const {delay: h = 0, duration: i = 300, easing: a = be, tick: r = R, css: s} = o || Ce;
|
|
404
480
|
s && (b = ue(e, 0, 1, i, h, a, s, d++)),
|
|
405
481
|
r(0, 1);
|
|
406
482
|
const c = Se() + h
|
|
407
483
|
, E = c + i;
|
|
408
484
|
u && u.abort(),
|
|
409
485
|
l = !0,
|
|
410
|
-
V(()=>B(e, !0, "start")),
|
|
411
|
-
u = Te(A=>{
|
|
486
|
+
V(() => B(e, !0, "start")),
|
|
487
|
+
u = Te(A => {
|
|
412
488
|
if (l) {
|
|
413
489
|
if (A >= E)
|
|
414
490
|
return r(1, 0),
|
|
@@ -424,6 +500,7 @@ function ti(e, t, n) {
|
|
|
424
500
|
}
|
|
425
501
|
)
|
|
426
502
|
}
|
|
503
|
+
|
|
427
504
|
let g = !1;
|
|
428
505
|
return {
|
|
429
506
|
start() {
|
|
@@ -441,17 +518,19 @@ function ti(e, t, n) {
|
|
|
441
518
|
}
|
|
442
519
|
}
|
|
443
520
|
}
|
|
521
|
+
|
|
444
522
|
function ii(e, t, n) {
|
|
445
523
|
let o = t(e, n), l = !0, b;
|
|
446
524
|
const u = q;
|
|
447
525
|
u.r += 1;
|
|
526
|
+
|
|
448
527
|
function d() {
|
|
449
|
-
const {delay: w=0, duration: f=300, easing: g=be, tick: h=R, css: i} = o || Ce;
|
|
528
|
+
const {delay: w = 0, duration: f = 300, easing: g = be, tick: h = R, css: i} = o || Ce;
|
|
450
529
|
i && (b = ue(e, 1, 0, f, w, g, i));
|
|
451
530
|
const a = Se() + w
|
|
452
531
|
, r = a + f;
|
|
453
|
-
V(()=>B(e, !1, "start")),
|
|
454
|
-
Te(s=>{
|
|
532
|
+
V(() => B(e, !1, "start")),
|
|
533
|
+
Te(s => {
|
|
455
534
|
if (l) {
|
|
456
535
|
if (s >= r)
|
|
457
536
|
return h(0, 1),
|
|
@@ -467,7 +546,8 @@ function ii(e, t, n) {
|
|
|
467
546
|
}
|
|
468
547
|
)
|
|
469
548
|
}
|
|
470
|
-
|
|
549
|
+
|
|
550
|
+
return F(o) ? Re().then(() => {
|
|
471
551
|
o = o(),
|
|
472
552
|
d()
|
|
473
553
|
}
|
|
@@ -480,15 +560,18 @@ function ii(e, t, n) {
|
|
|
480
560
|
}
|
|
481
561
|
}
|
|
482
562
|
}
|
|
563
|
+
|
|
483
564
|
function ni(e, t, n, o) {
|
|
484
565
|
let l = t(e, n)
|
|
485
566
|
, b = o ? 0 : 1
|
|
486
567
|
, u = null
|
|
487
568
|
, d = null
|
|
488
569
|
, w = null;
|
|
570
|
+
|
|
489
571
|
function f() {
|
|
490
572
|
w && fe(e, w)
|
|
491
573
|
}
|
|
574
|
+
|
|
492
575
|
function g(i, a) {
|
|
493
576
|
const r = i.b - b;
|
|
494
577
|
return a *= Math.abs(r),
|
|
@@ -502,8 +585,9 @@ function ni(e, t, n, o) {
|
|
|
502
585
|
group: i.group
|
|
503
586
|
}
|
|
504
587
|
}
|
|
588
|
+
|
|
505
589
|
function h(i) {
|
|
506
|
-
const {delay: a=0, duration: r=300, easing: s=be, tick: c=R, css: E} = l || Ce
|
|
590
|
+
const {delay: a = 0, duration: r = 300, easing: s = be, tick: c = R, css: E} = l || Ce
|
|
507
591
|
, A = {
|
|
508
592
|
start: Se() + a,
|
|
509
593
|
b: i
|
|
@@ -514,8 +598,8 @@ function ni(e, t, n, o) {
|
|
|
514
598
|
w = ue(e, b, i, r, a, s, E)),
|
|
515
599
|
i && c(0, 1),
|
|
516
600
|
u = g(A, r),
|
|
517
|
-
V(()=>B(e, i, "start")),
|
|
518
|
-
Te(p=>{
|
|
601
|
+
V(() => B(e, i, "start")),
|
|
602
|
+
Te(p => {
|
|
519
603
|
if (d && p > d.start && (u = g(d, r),
|
|
520
604
|
d = null,
|
|
521
605
|
B(e, u.b, "start"),
|
|
@@ -537,9 +621,10 @@ function ni(e, t, n, o) {
|
|
|
537
621
|
}
|
|
538
622
|
))
|
|
539
623
|
}
|
|
624
|
+
|
|
540
625
|
return {
|
|
541
626
|
run(i) {
|
|
542
|
-
F(l) ? Re().then(()=>{
|
|
627
|
+
F(l) ? Re().then(() => {
|
|
543
628
|
l = l(),
|
|
544
629
|
h(i)
|
|
545
630
|
}
|
|
@@ -551,8 +636,10 @@ function ni(e, t, n, o) {
|
|
|
551
636
|
}
|
|
552
637
|
}
|
|
553
638
|
}
|
|
639
|
+
|
|
554
640
|
function ri(e, t) {
|
|
555
641
|
const n = t.token = {};
|
|
642
|
+
|
|
556
643
|
function o(l, b, u, d) {
|
|
557
644
|
if (t.token !== n)
|
|
558
645
|
return;
|
|
@@ -562,9 +649,9 @@ function ri(e, t) {
|
|
|
562
649
|
w[u] = d);
|
|
563
650
|
const f = l && (t.current = l)(w);
|
|
564
651
|
let g = !1;
|
|
565
|
-
t.block && (t.blocks ? t.blocks.forEach((h,i)=>{
|
|
652
|
+
t.block && (t.blocks ? t.blocks.forEach((h, i) => {
|
|
566
653
|
i !== b && h && (kt(),
|
|
567
|
-
tt(h, 1, 1, ()=>{
|
|
654
|
+
tt(h, 1, 1, () => {
|
|
568
655
|
t.blocks[i] === h && (t.blocks[i] = null)
|
|
569
656
|
}
|
|
570
657
|
),
|
|
@@ -579,14 +666,15 @@ function ri(e, t) {
|
|
|
579
666
|
t.blocks && (t.blocks[b] = f),
|
|
580
667
|
g && Ne()
|
|
581
668
|
}
|
|
669
|
+
|
|
582
670
|
if (at(e)) {
|
|
583
671
|
const l = Me();
|
|
584
|
-
if (e.then(b=>{
|
|
672
|
+
if (e.then(b => {
|
|
585
673
|
z(l),
|
|
586
674
|
o(t.then, 1, t.value, b),
|
|
587
675
|
z(null)
|
|
588
676
|
}
|
|
589
|
-
, b=>{
|
|
677
|
+
, b => {
|
|
590
678
|
if (z(l),
|
|
591
679
|
o(t.catch, 2, t.error, b),
|
|
592
680
|
z(null),
|
|
@@ -604,6 +692,7 @@ function ri(e, t) {
|
|
|
604
692
|
t.resolved = e
|
|
605
693
|
}
|
|
606
694
|
}
|
|
695
|
+
|
|
607
696
|
function oi(e, t, n) {
|
|
608
697
|
const o = t.slice()
|
|
609
698
|
, {resolved: l} = e;
|
|
@@ -611,23 +700,25 @@ function oi(e, t, n) {
|
|
|
611
700
|
e.current === e.catch && (o[e.error] = l),
|
|
612
701
|
e.block.p(o, n)
|
|
613
702
|
}
|
|
703
|
+
|
|
614
704
|
function si(e, t) {
|
|
615
|
-
tt(e, 1, 1, ()=>{
|
|
705
|
+
tt(e, 1, 1, () => {
|
|
616
706
|
t.delete(e.key)
|
|
617
707
|
}
|
|
618
708
|
)
|
|
619
709
|
}
|
|
710
|
+
|
|
620
711
|
function ai(e, t, n, o, l, b, u, d, w, f, g, h) {
|
|
621
712
|
let i = e.length
|
|
622
713
|
, a = b.length
|
|
623
714
|
, r = i;
|
|
624
715
|
const s = {};
|
|
625
|
-
for (; r--;
|
|
716
|
+
for (; r--;)
|
|
626
717
|
s[e[r].key] = r;
|
|
627
718
|
const c = []
|
|
628
719
|
, E = new Map
|
|
629
720
|
, A = new Map;
|
|
630
|
-
for (r = a; r--;
|
|
721
|
+
for (r = a; r--;) {
|
|
631
722
|
const k = h(l, b, r)
|
|
632
723
|
, M = n(k);
|
|
633
724
|
let N = u.get(M);
|
|
@@ -638,6 +729,7 @@ function ai(e, t, n, o, l, b, u, d, w, f, g, h) {
|
|
|
638
729
|
}
|
|
639
730
|
const p = new Set
|
|
640
731
|
, m = new Set;
|
|
732
|
+
|
|
641
733
|
function T(k) {
|
|
642
734
|
$e(k, 1),
|
|
643
735
|
k.m(d, g),
|
|
@@ -645,7 +737,8 @@ function ai(e, t, n, o, l, b, u, d, w, f, g, h) {
|
|
|
645
737
|
g = k.first,
|
|
646
738
|
a--
|
|
647
739
|
}
|
|
648
|
-
|
|
740
|
+
|
|
741
|
+
for (; i && a;) {
|
|
649
742
|
const k = c[a - 1]
|
|
650
743
|
, M = e[i - 1]
|
|
651
744
|
, N = k.key
|
|
@@ -657,26 +750,29 @@ function ai(e, t, n, o, l, b, u, d, w, f, g, h) {
|
|
|
657
750
|
i--) : (w(M, u),
|
|
658
751
|
i--)
|
|
659
752
|
}
|
|
660
|
-
for (; i--;
|
|
753
|
+
for (; i--;) {
|
|
661
754
|
const k = e[i];
|
|
662
755
|
E.has(k.key) || w(k, u)
|
|
663
756
|
}
|
|
664
|
-
for (; a;
|
|
757
|
+
for (; a;)
|
|
665
758
|
T(c[a - 1]);
|
|
666
759
|
return c
|
|
667
760
|
}
|
|
761
|
+
|
|
668
762
|
function ci(e, t, n) {
|
|
669
763
|
const o = e.$$.props[t];
|
|
670
764
|
o !== void 0 && (e.$$.bound[o] = n,
|
|
671
765
|
n(e.$$.ctx[o]))
|
|
672
766
|
}
|
|
767
|
+
|
|
673
768
|
function li(e) {
|
|
674
769
|
e && e.c()
|
|
675
770
|
}
|
|
771
|
+
|
|
676
772
|
function Et(e, t, n, o) {
|
|
677
773
|
const {fragment: l, on_mount: b, on_destroy: u, after_update: d} = e.$$;
|
|
678
774
|
l && l.m(t, n),
|
|
679
|
-
o || V(()=>{
|
|
775
|
+
o || V(() => {
|
|
680
776
|
const w = b.map(He).filter(F);
|
|
681
777
|
u ? u.push(...w) : j(w),
|
|
682
778
|
e.$$.on_mount = []
|
|
@@ -684,6 +780,7 @@ function Et(e, t, n, o) {
|
|
|
684
780
|
),
|
|
685
781
|
d.forEach(V)
|
|
686
782
|
}
|
|
783
|
+
|
|
687
784
|
function Ot(e, t) {
|
|
688
785
|
const n = e.$$;
|
|
689
786
|
n.fragment !== null && (j(n.on_destroy),
|
|
@@ -691,13 +788,15 @@ function Ot(e, t) {
|
|
|
691
788
|
n.on_destroy = n.fragment = null,
|
|
692
789
|
n.ctx = [])
|
|
693
790
|
}
|
|
791
|
+
|
|
694
792
|
function St(e, t) {
|
|
695
793
|
e.$$.dirty[0] === -1 && (Z.push(e),
|
|
696
794
|
yt(),
|
|
697
795
|
e.$$.dirty.fill(0)),
|
|
698
796
|
e.$$.dirty[t / 31 | 0] |= 1 << t % 31
|
|
699
797
|
}
|
|
700
|
-
|
|
798
|
+
|
|
799
|
+
function ui(e, t, n, o, l, b, u, d = [-1]) {
|
|
701
800
|
const w = X;
|
|
702
801
|
z(e);
|
|
703
802
|
const f = e.$$ = {
|
|
@@ -717,11 +816,11 @@ function ui(e, t, n, o, l, b, u, d=[-1]) {
|
|
|
717
816
|
dirty: d,
|
|
718
817
|
skip_bound: !1,
|
|
719
818
|
root: t.target
|
|
720
|
-
|
|
819
|
+
// || w.$$.root
|
|
721
820
|
};
|
|
722
821
|
u && u(f.root);
|
|
723
822
|
let g = !1;
|
|
724
|
-
if (f.ctx = n ? n(e, t.props || {}, (h,i
|
|
823
|
+
if (f.ctx = n ? n(e, t.props || {}, (h, i, ...a) => {
|
|
725
824
|
const r = a.length ? a[0] : i;
|
|
726
825
|
return f.ctx && l(f.ctx[h], f.ctx[h] = r) && (!f.skip_bound && f.bound[h] && f.bound[h](r),
|
|
727
826
|
g && St(e, h)),
|
|
@@ -745,32 +844,38 @@ function ui(e, t, n, o, l, b, u, d=[-1]) {
|
|
|
745
844
|
}
|
|
746
845
|
z(w)
|
|
747
846
|
}
|
|
847
|
+
|
|
748
848
|
class fi {
|
|
749
849
|
$destroy() {
|
|
750
850
|
Ot(this, 1),
|
|
751
851
|
this.$destroy = R
|
|
752
852
|
}
|
|
853
|
+
|
|
753
854
|
$on(t, n) {
|
|
754
855
|
const o = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
755
856
|
return o.push(n),
|
|
756
|
-
()=>{
|
|
857
|
+
() => {
|
|
757
858
|
const l = o.indexOf(n);
|
|
758
859
|
l !== -1 && o.splice(l, 1)
|
|
759
860
|
}
|
|
760
861
|
}
|
|
862
|
+
|
|
761
863
|
$set(t) {
|
|
762
864
|
this.$$set && !lt(t) && (this.$$.skip_bound = !0,
|
|
763
865
|
this.$$set(t),
|
|
764
866
|
this.$$.skip_bound = !1)
|
|
765
867
|
}
|
|
766
868
|
}
|
|
869
|
+
|
|
767
870
|
function it(e) {
|
|
768
871
|
const t = e - 1;
|
|
769
872
|
return t * t * t + 1
|
|
770
873
|
}
|
|
874
|
+
|
|
771
875
|
function bi(e) {
|
|
772
876
|
return Math.sin(e * Math.PI / 2)
|
|
773
877
|
}
|
|
878
|
+
|
|
774
879
|
/*! *****************************************************************************
|
|
775
880
|
Copyright (c) Microsoft Corporation.
|
|
776
881
|
|
|
@@ -794,16 +899,18 @@ function At(e, t) {
|
|
|
794
899
|
t.indexOf(o[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[l]) && (n[o[l]] = e[o[l]]);
|
|
795
900
|
return n
|
|
796
901
|
}
|
|
797
|
-
|
|
902
|
+
|
|
903
|
+
function di(e, {delay: t = 0, duration: n = 400, easing: o = be} = {}) {
|
|
798
904
|
const l = +getComputedStyle(e).opacity;
|
|
799
905
|
return {
|
|
800
906
|
delay: t,
|
|
801
907
|
duration: n,
|
|
802
908
|
easing: o,
|
|
803
|
-
css: b
|
|
909
|
+
css: b => `opacity: ${b * l}`
|
|
804
910
|
}
|
|
805
911
|
}
|
|
806
|
-
|
|
912
|
+
|
|
913
|
+
function wi(e, {delay: t = 0, duration: n = 400, easing: o = it, x: l = 0, y: b = 0, opacity: u = 0} = {}) {
|
|
807
914
|
const d = getComputedStyle(e)
|
|
808
915
|
, w = +d.opacity
|
|
809
916
|
, f = d.transform === "none" ? "" : d.transform
|
|
@@ -812,18 +919,20 @@ function wi(e, {delay: t=0, duration: n=400, easing: o=it, x: l=0, y: b=0, opaci
|
|
|
812
919
|
delay: t,
|
|
813
920
|
duration: n,
|
|
814
921
|
easing: o,
|
|
815
|
-
css: (h,i)
|
|
922
|
+
css: (h, i) => `
|
|
816
923
|
transform: ${f} translate(${(1 - h) * l}px, ${(1 - h) * b}px);
|
|
817
924
|
opacity: ${w - g * i}`
|
|
818
925
|
}
|
|
819
926
|
}
|
|
927
|
+
|
|
820
928
|
function hi(e) {
|
|
821
929
|
var {fallback: t} = e
|
|
822
930
|
, n = At(e, ["fallback"]);
|
|
823
931
|
const o = new Map
|
|
824
932
|
, l = new Map;
|
|
933
|
+
|
|
825
934
|
function b(d, w, f) {
|
|
826
|
-
const {delay: g=0, duration: h=k=>Math.sqrt(k) * 30, easing: i=it} = ke(ke({}, n), f)
|
|
935
|
+
const {delay: g = 0, duration: h = k => Math.sqrt(k) * 30, easing: i = it} = ke(ke({}, n), f)
|
|
827
936
|
, a = w.getBoundingClientRect()
|
|
828
937
|
, r = d.left - a.left
|
|
829
938
|
, s = d.top - a.top
|
|
@@ -837,18 +946,19 @@ function hi(e) {
|
|
|
837
946
|
delay: g,
|
|
838
947
|
duration: F(h) ? h(A) : h,
|
|
839
948
|
easing: i,
|
|
840
|
-
css: (k,M)
|
|
949
|
+
css: (k, M) => `
|
|
841
950
|
opacity: ${k * T};
|
|
842
951
|
transform-origin: top left;
|
|
843
952
|
transform: ${m} translate(${M * r}px,${M * s}px) scale(${k + (1 - k) * c}, ${k + (1 - k) * E});
|
|
844
953
|
`
|
|
845
954
|
}
|
|
846
955
|
}
|
|
956
|
+
|
|
847
957
|
function u(d, w, f) {
|
|
848
|
-
return (g,h)=>(d.set(h.key, {
|
|
958
|
+
return (g, h) => (d.set(h.key, {
|
|
849
959
|
rect: g.getBoundingClientRect()
|
|
850
960
|
}),
|
|
851
|
-
()=>{
|
|
961
|
+
() => {
|
|
852
962
|
if (w.has(h.key)) {
|
|
853
963
|
const {rect: i} = w.get(h.key);
|
|
854
964
|
return w.delete(h.key),
|
|
@@ -859,17 +969,22 @@ function hi(e) {
|
|
|
859
969
|
}
|
|
860
970
|
)
|
|
861
971
|
}
|
|
972
|
+
|
|
862
973
|
return [u(l, o, !1), u(o, l, !0)]
|
|
863
974
|
}
|
|
975
|
+
|
|
864
976
|
const D = [];
|
|
977
|
+
|
|
865
978
|
function Tt(e, t) {
|
|
866
979
|
return {
|
|
867
980
|
// subscribe: Mt(e, t).subscribe
|
|
868
981
|
}
|
|
869
982
|
}
|
|
870
|
-
|
|
983
|
+
|
|
984
|
+
function Mt(e, t = R) {
|
|
871
985
|
let n;
|
|
872
986
|
const o = new Set;
|
|
987
|
+
|
|
873
988
|
function l(d) {
|
|
874
989
|
if (ct(e, d) && (e = d,
|
|
875
990
|
n)) {
|
|
@@ -884,54 +999,58 @@ function Mt(e, t=R) {
|
|
|
884
999
|
}
|
|
885
1000
|
}
|
|
886
1001
|
}
|
|
1002
|
+
|
|
887
1003
|
function b(d) {
|
|
888
1004
|
l(d(e))
|
|
889
1005
|
}
|
|
890
|
-
|
|
1006
|
+
|
|
1007
|
+
function u(d, w = R) {
|
|
891
1008
|
const f = [d, w];
|
|
892
1009
|
return o.add(f),
|
|
893
1010
|
o.size === 1 && (n = t(l) || R),
|
|
894
1011
|
d(e),
|
|
895
|
-
()=>{
|
|
1012
|
+
() => {
|
|
896
1013
|
o.delete(f),
|
|
897
1014
|
o.size === 0 && (n(),
|
|
898
1015
|
n = null)
|
|
899
1016
|
}
|
|
900
1017
|
}
|
|
1018
|
+
|
|
901
1019
|
return {
|
|
902
1020
|
set: l,
|
|
903
1021
|
update: b,
|
|
904
1022
|
subscribe: u
|
|
905
1023
|
}
|
|
906
1024
|
}
|
|
907
|
-
|
|
1025
|
+
|
|
1026
|
+
const pi = function (e, t, n) {
|
|
908
1027
|
const o = !Array.isArray(e)
|
|
909
1028
|
, l = o ? [e] : e
|
|
910
1029
|
, b = t.length < 2;
|
|
911
|
-
return Tt(n, u=>{
|
|
1030
|
+
return Tt(n, u => {
|
|
912
1031
|
let d = !1;
|
|
913
1032
|
const w = [];
|
|
914
1033
|
let f = 0
|
|
915
1034
|
, g = R;
|
|
916
|
-
const h = ()=>{
|
|
1035
|
+
const h = () => {
|
|
917
1036
|
if (f)
|
|
918
1037
|
return;
|
|
919
1038
|
g();
|
|
920
1039
|
const a = t(o ? w[0] : w, u);
|
|
921
1040
|
b ? u(a) : g = F(a) ? a : R
|
|
922
1041
|
}
|
|
923
|
-
, i = l.map((a,r)=>Oe(a, s=>{
|
|
1042
|
+
, i = l.map((a, r) => Oe(a, s => {
|
|
924
1043
|
w[r] = s,
|
|
925
1044
|
f &= ~(1 << r),
|
|
926
1045
|
d && h()
|
|
927
1046
|
}
|
|
928
|
-
, ()=>{
|
|
1047
|
+
, () => {
|
|
929
1048
|
f |= 1 << r
|
|
930
1049
|
}
|
|
931
1050
|
));
|
|
932
1051
|
return d = !0,
|
|
933
1052
|
h(),
|
|
934
|
-
function() {
|
|
1053
|
+
function () {
|
|
935
1054
|
j(i),
|
|
936
1055
|
g()
|
|
937
1056
|
}
|
|
@@ -942,8 +1061,8 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
942
1061
|
, Ye = {
|
|
943
1062
|
exports: {}
|
|
944
1063
|
};
|
|
945
|
-
(function(e, t) {
|
|
946
|
-
(function(n, o) {
|
|
1064
|
+
(function (e, t) {
|
|
1065
|
+
(function (n, o) {
|
|
947
1066
|
var l = "1.0.2"
|
|
948
1067
|
, b = ""
|
|
949
1068
|
, u = "?"
|
|
@@ -984,36 +1103,36 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
984
1103
|
, Be = "Xiaomi"
|
|
985
1104
|
, ge = "Zebra"
|
|
986
1105
|
, Ue = "Facebook"
|
|
987
|
-
, rt = function(_, x) {
|
|
1106
|
+
, rt = function (_, x) {
|
|
988
1107
|
var y = {};
|
|
989
1108
|
for (var S in _)
|
|
990
1109
|
x[S] && x[S].length % 2 === 0 ? y[S] = x[S].concat(_[S]) : y[S] = _[S];
|
|
991
1110
|
return y
|
|
992
1111
|
}
|
|
993
|
-
, te = function(_) {
|
|
1112
|
+
, te = function (_) {
|
|
994
1113
|
for (var x = {}, y = 0; y < _.length; y++)
|
|
995
1114
|
x[_[y].toUpperCase()] = _[y];
|
|
996
1115
|
return x
|
|
997
1116
|
}
|
|
998
|
-
, Le = function(_, x) {
|
|
1117
|
+
, Le = function (_, x) {
|
|
999
1118
|
return typeof _ === g ? G(x).indexOf(G(_)) !== -1 : !1
|
|
1000
1119
|
}
|
|
1001
|
-
, G = function(_) {
|
|
1120
|
+
, G = function (_) {
|
|
1002
1121
|
return _.toLowerCase()
|
|
1003
1122
|
}
|
|
1004
|
-
, ot = function(_) {
|
|
1123
|
+
, ot = function (_) {
|
|
1005
1124
|
return typeof _ === g ? _.replace(/[^\d\.]/g, b).split(".")[0] : o
|
|
1006
1125
|
}
|
|
1007
|
-
, _e = function(_, x) {
|
|
1126
|
+
, _e = function (_, x) {
|
|
1008
1127
|
if (typeof _ === g)
|
|
1009
1128
|
return _ = _.replace(/^\s\s*/, b).replace(/\s\s*$/, b),
|
|
1010
1129
|
typeof x === w ? _ : _.substring(0, N)
|
|
1011
1130
|
}
|
|
1012
|
-
, W = function(_, x) {
|
|
1013
|
-
for (var y = 0, S, v, ne, O, Y, C; y < x.length && !Y;
|
|
1131
|
+
, W = function (_, x) {
|
|
1132
|
+
for (var y = 0, S, v, ne, O, Y, C; y < x.length && !Y;) {
|
|
1014
1133
|
var Ve = x[y]
|
|
1015
1134
|
, Fe = x[y + 1];
|
|
1016
|
-
for (S = v = 0; S < Ve.length && !Y;
|
|
1135
|
+
for (S = v = 0; S < Ve.length && !Y;)
|
|
1017
1136
|
if (Y = Ve[S++].exec(_),
|
|
1018
1137
|
Y)
|
|
1019
1138
|
for (ne = 0; ne < Fe.length; ne++)
|
|
@@ -1023,7 +1142,7 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1023
1142
|
y += 2
|
|
1024
1143
|
}
|
|
1025
1144
|
}
|
|
1026
|
-
, ye = function(_, x) {
|
|
1145
|
+
, ye = function (_, x) {
|
|
1027
1146
|
for (var y in x)
|
|
1028
1147
|
if (typeof x[y] === f && x[y].length > 0) {
|
|
1029
1148
|
for (var S = 0; S < x[y].length; S++)
|
|
@@ -1063,14 +1182,14 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1063
1182
|
engine: [[/windows.+ edge\/([\w\.]+)/i], [c, [a, nt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [c, [a, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i], [a, c], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [c, a]],
|
|
1064
1183
|
os: [[/microsoft (windows) (vista|xp)/i], [a, c], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [a, [c, ye, De]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[a, "Windows"], [c, ye, De]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /cfnetwork\/.+darwin/i], [[c, /_/g, "."], [a, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[a, "Mac OS"], [c, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86)/i], [c, a], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [a, c], [/\(bb(10);/i], [c, [a, ze]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [c, [a, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [c, [a, J + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [c, [a, "webOS"]], [/crkey\/([\d\.]+)/i], [c, [a, K + "cast"]], [/(cros) [\w]+ ([\w\.]+\w)/i], [[a, "Chromium OS"], c], [/(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [a, c], [/(sunos) ?([\w\.\d]*)/i], [[a, "Solaris"], c], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i, /(unix) ?([\w\.]*)/i], [a, c]]
|
|
1065
1184
|
}
|
|
1066
|
-
, $ = function(_, x) {
|
|
1185
|
+
, $ = function (_, x) {
|
|
1067
1186
|
if (typeof _ === f && (x = _,
|
|
1068
1187
|
_ = o),
|
|
1069
1188
|
!(this instanceof $))
|
|
1070
|
-
return new $(_,x).getResult();
|
|
1189
|
+
return new $(_, x).getResult();
|
|
1071
1190
|
var y = _ || (typeof n !== w && n.navigator && n.navigator.userAgent ? n.navigator.userAgent : b)
|
|
1072
1191
|
, S = x ? rt(Ie, x) : Ie;
|
|
1073
|
-
return this.getBrowser = function() {
|
|
1192
|
+
return this.getBrowser = function () {
|
|
1074
1193
|
var v = {};
|
|
1075
1194
|
return v[a] = o,
|
|
1076
1195
|
v[c] = o,
|
|
@@ -1079,14 +1198,14 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1079
1198
|
v
|
|
1080
1199
|
}
|
|
1081
1200
|
,
|
|
1082
|
-
this.getCPU = function() {
|
|
1201
|
+
this.getCPU = function () {
|
|
1083
1202
|
var v = {};
|
|
1084
1203
|
return v[E] = o,
|
|
1085
1204
|
W.call(v, y, S.cpu),
|
|
1086
1205
|
v
|
|
1087
1206
|
}
|
|
1088
1207
|
,
|
|
1089
|
-
this.getDevice = function() {
|
|
1208
|
+
this.getDevice = function () {
|
|
1090
1209
|
var v = {};
|
|
1091
1210
|
return v[s] = o,
|
|
1092
1211
|
v[i] = o,
|
|
@@ -1095,7 +1214,7 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1095
1214
|
v
|
|
1096
1215
|
}
|
|
1097
1216
|
,
|
|
1098
|
-
this.getEngine = function() {
|
|
1217
|
+
this.getEngine = function () {
|
|
1099
1218
|
var v = {};
|
|
1100
1219
|
return v[a] = o,
|
|
1101
1220
|
v[c] = o,
|
|
@@ -1103,7 +1222,7 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1103
1222
|
v
|
|
1104
1223
|
}
|
|
1105
1224
|
,
|
|
1106
|
-
this.getOS = function() {
|
|
1225
|
+
this.getOS = function () {
|
|
1107
1226
|
var v = {};
|
|
1108
1227
|
return v[a] = o,
|
|
1109
1228
|
v[c] = o,
|
|
@@ -1111,7 +1230,7 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1111
1230
|
v
|
|
1112
1231
|
}
|
|
1113
1232
|
,
|
|
1114
|
-
this.getResult = function() {
|
|
1233
|
+
this.getResult = function () {
|
|
1115
1234
|
return {
|
|
1116
1235
|
ua: this.getUA(),
|
|
1117
1236
|
browser: this.getBrowser(),
|
|
@@ -1122,11 +1241,11 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1122
1241
|
}
|
|
1123
1242
|
}
|
|
1124
1243
|
,
|
|
1125
|
-
this.getUA = function() {
|
|
1244
|
+
this.getUA = function () {
|
|
1126
1245
|
return y
|
|
1127
1246
|
}
|
|
1128
1247
|
,
|
|
1129
|
-
this.setUA = function(v) {
|
|
1248
|
+
this.setUA = function (v) {
|
|
1130
1249
|
return y = typeof v === g && v.length > N ? _e(v, N) : v,
|
|
1131
1250
|
this
|
|
1132
1251
|
}
|
|
@@ -1145,11 +1264,11 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1145
1264
|
if (L && !L.ua) {
|
|
1146
1265
|
var ie = new $;
|
|
1147
1266
|
L.ua = ie.getResult(),
|
|
1148
|
-
L.ua.get = function() {
|
|
1267
|
+
L.ua.get = function () {
|
|
1149
1268
|
return ie.getUA()
|
|
1150
1269
|
}
|
|
1151
1270
|
,
|
|
1152
|
-
L.ua.set = function(_) {
|
|
1271
|
+
L.ua.set = function (_) {
|
|
1153
1272
|
ie.setUA(_);
|
|
1154
1273
|
var x = ie.getResult();
|
|
1155
1274
|
for (var y in x)
|
|
@@ -1160,4 +1279,61 @@ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1160
1279
|
)(typeof window == "object" ? window : Nt)
|
|
1161
1280
|
}
|
|
1162
1281
|
)(Ye, Ye.exports);
|
|
1163
|
-
|
|
1282
|
+
exports.$ = Ye;
|
|
1283
|
+
exports.A = Ht;
|
|
1284
|
+
exports.B = Gt;
|
|
1285
|
+
exports.C = Dt;
|
|
1286
|
+
exports.D = Lt;
|
|
1287
|
+
exports.E = Qe;
|
|
1288
|
+
exports.F = Yt;
|
|
1289
|
+
exports.G = li;
|
|
1290
|
+
exports.H = Et;
|
|
1291
|
+
exports.I = ei;
|
|
1292
|
+
exports.J = Ot;
|
|
1293
|
+
exports.K = ci;
|
|
1294
|
+
exports.L = Qt;
|
|
1295
|
+
exports.M = ti;
|
|
1296
|
+
exports.N = ii;
|
|
1297
|
+
exports.O = hi;
|
|
1298
|
+
exports.P = Bt;
|
|
1299
|
+
exports.Q = Pt;
|
|
1300
|
+
exports.R = jt;
|
|
1301
|
+
exports.S = fi;
|
|
1302
|
+
exports.T = zt;
|
|
1303
|
+
exports.U = wi;
|
|
1304
|
+
exports.V = di;
|
|
1305
|
+
exports.W = qt;
|
|
1306
|
+
exports.X = Kt;
|
|
1307
|
+
exports.Y = Rt;
|
|
1308
|
+
exports.Z = Tt;
|
|
1309
|
+
exports._ = Zt;
|
|
1310
|
+
exports.a = It;
|
|
1311
|
+
exports.a0 = ai;
|
|
1312
|
+
exports.a1 = si;
|
|
1313
|
+
exports.a2 = ri;
|
|
1314
|
+
exports.a3 = oi;
|
|
1315
|
+
exports.b = Wt;
|
|
1316
|
+
exports.c = Ut;
|
|
1317
|
+
exports.d = ut;
|
|
1318
|
+
exports.e = wt;
|
|
1319
|
+
exports.f = dt;
|
|
1320
|
+
exports.g = $t;
|
|
1321
|
+
exports.h = pi;
|
|
1322
|
+
exports.i = ui;
|
|
1323
|
+
exports.j = Vt;
|
|
1324
|
+
exports.k = kt;
|
|
1325
|
+
exports.l = Ft;
|
|
1326
|
+
exports.m = xt;
|
|
1327
|
+
exports.n = R;
|
|
1328
|
+
exports.o = $e;
|
|
1329
|
+
exports.p = Ct;
|
|
1330
|
+
exports.q = Jt;
|
|
1331
|
+
exports.r = j;
|
|
1332
|
+
exports.s = ct;
|
|
1333
|
+
exports.t = tt;
|
|
1334
|
+
exports.u = bi;
|
|
1335
|
+
exports.v = We;
|
|
1336
|
+
exports.w = Mt;
|
|
1337
|
+
exports.x = Xt;
|
|
1338
|
+
exports.y = V;
|
|
1339
|
+
exports.z = ni;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-wordle-game",
|
|
3
3
|
"description": "欢迎来到 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](https://handle.antfu.me/) | [词影](https://cy.surprising.studio/) |... 猜单词|猜成语|猜数字|猜数学方程式|... 的小游戏,包含多种词库、多种主题、多种游戏设置和排行榜系统。",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.8",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|