@harbour-enterprises/superdoc 0.9.33 → 0.10.2

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.
Files changed (34) hide show
  1. package/dist/chunks/index-8ZIOYegI.es.js +1676 -0
  2. package/dist/chunks/index-C4-w9MLl.cjs +1 -0
  3. package/dist/chunks/{index--PIRPKWt.cjs → index-ChNh-3hE.cjs} +1 -1
  4. package/dist/chunks/{index-B5GDfEJg.es.js → index-DlBXCtmW.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-B8noCvT1.es.js → super-editor.es-BJjuGvyp.es.js} +453 -465
  6. package/dist/chunks/{super-editor.es-y2QD_ueu.cjs → super-editor.es-BR6yWvHn.cjs} +40 -40
  7. package/dist/chunks/{url-BDmRlERW.es.js → url-B0oWkmAx.es.js} +1 -1
  8. package/dist/chunks/{url-C5DCBLAS.cjs → url-CzUL97Mg.cjs} +1 -1
  9. package/dist/chunks/xml-js-DLnxZypp.es.js +1764 -0
  10. package/dist/chunks/xml-js-zfoNze4t.cjs +10 -0
  11. package/dist/super-editor/chunks/{converter-CdhiEvSA.js → converter-C35FY5VQ.js} +4 -6
  12. package/dist/super-editor/chunks/{docx-zipper-Cb4eXMOp.js → docx-zipper-UI40aP31.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-Czx51mKu.js → editor-CO6h1K8S.js} +302 -312
  14. package/dist/super-editor/chunks/{toolbar-BE-PZVKR.js → toolbar-CM60amWZ.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/super-editor.es.js +6 -6
  20. package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +3 -3
  25. package/dist/superdoc.es.js +6 -6
  26. package/dist/superdoc.umd.js +878 -890
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/index-Bq_aNm9n.es.js +0 -473
  30. package/dist/chunks/index-DrgTIkvI.cjs +0 -1
  31. package/dist/chunks/xml-js-DMX8C2aY.es.js +0 -2965
  32. package/dist/chunks/xml-js-DN6JJ8Mw.cjs +0 -10
  33. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DX0vnkoa.d.ts +0 -3
  34. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DX0vnkoa.d.ts.map +0 -1
@@ -0,0 +1,1764 @@
1
+ import { a as Ot, d as Pt, c as Oe } from "./jszip-DSGi1sNe.es.js";
2
+ import { p as L } from "./vue-BDbTsTMu.es.js";
3
+ var Qe = { exports: {} };
4
+ typeof Object.create == "function" ? Qe.exports = function(e, t) {
5
+ t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
6
+ constructor: {
7
+ value: e,
8
+ enumerable: !1,
9
+ writable: !0,
10
+ configurable: !0
11
+ }
12
+ }));
13
+ } : Qe.exports = function(e, t) {
14
+ if (t) {
15
+ e.super_ = t;
16
+ var n = function() {
17
+ };
18
+ n.prototype = t.prototype, e.prototype = new n(), e.prototype.constructor = e;
19
+ }
20
+ };
21
+ var Et = Qe.exports, ar = { exports: {} }, re = typeof Reflect == "object" ? Reflect : null, dr = re && typeof re.apply == "function" ? re.apply : function(e, t, n) {
22
+ return Function.prototype.apply.call(e, t, n);
23
+ }, ve;
24
+ re && typeof re.ownKeys == "function" ? ve = re.ownKeys : Object.getOwnPropertySymbols ? ve = function(e) {
25
+ return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
26
+ } : ve = function(e) {
27
+ return Object.getOwnPropertyNames(e);
28
+ };
29
+ function jt(r) {
30
+ console && console.warn && console.warn(r);
31
+ }
32
+ var xr = Number.isNaN || function(e) {
33
+ return e !== e;
34
+ };
35
+ function P() {
36
+ P.init.call(this);
37
+ }
38
+ ar.exports = P;
39
+ ar.exports.once = Ft;
40
+ P.EventEmitter = P;
41
+ P.prototype._events = void 0;
42
+ P.prototype._eventsCount = 0;
43
+ P.prototype._maxListeners = void 0;
44
+ var hr = 10;
45
+ function Be(r) {
46
+ if (typeof r != "function")
47
+ throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof r);
48
+ }
49
+ Object.defineProperty(P, "defaultMaxListeners", {
50
+ enumerable: !0,
51
+ get: function() {
52
+ return hr;
53
+ },
54
+ set: function(r) {
55
+ if (typeof r != "number" || r < 0 || xr(r))
56
+ throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + r + ".");
57
+ hr = r;
58
+ }
59
+ });
60
+ P.init = function() {
61
+ (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
62
+ };
63
+ P.prototype.setMaxListeners = function(e) {
64
+ if (typeof e != "number" || e < 0 || xr(e))
65
+ throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
66
+ return this._maxListeners = e, this;
67
+ };
68
+ function Wr(r) {
69
+ return r._maxListeners === void 0 ? P.defaultMaxListeners : r._maxListeners;
70
+ }
71
+ P.prototype.getMaxListeners = function() {
72
+ return Wr(this);
73
+ };
74
+ P.prototype.emit = function(e) {
75
+ for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
76
+ var i = e === "error", c = this._events;
77
+ if (c !== void 0)
78
+ i = i && c.error === void 0;
79
+ else if (!i)
80
+ return !1;
81
+ if (i) {
82
+ var u;
83
+ if (t.length > 0 && (u = t[0]), u instanceof Error)
84
+ throw u;
85
+ var d = new Error("Unhandled error." + (u ? " (" + u.message + ")" : ""));
86
+ throw d.context = u, d;
87
+ }
88
+ var y = c[e];
89
+ if (y === void 0)
90
+ return !1;
91
+ if (typeof y == "function")
92
+ dr(y, this, t);
93
+ else
94
+ for (var m = y.length, w = Jr(y, m), n = 0; n < m; ++n)
95
+ dr(w[n], this, t);
96
+ return !0;
97
+ };
98
+ function zr(r, e, t, n) {
99
+ var i, c, u;
100
+ if (Be(t), c = r._events, c === void 0 ? (c = r._events = /* @__PURE__ */ Object.create(null), r._eventsCount = 0) : (c.newListener !== void 0 && (r.emit(
101
+ "newListener",
102
+ e,
103
+ t.listener ? t.listener : t
104
+ ), c = r._events), u = c[e]), u === void 0)
105
+ u = c[e] = t, ++r._eventsCount;
106
+ else if (typeof u == "function" ? u = c[e] = n ? [t, u] : [u, t] : n ? u.unshift(t) : u.push(t), i = Wr(r), i > 0 && u.length > i && !u.warned) {
107
+ u.warned = !0;
108
+ var d = new Error("Possible EventEmitter memory leak detected. " + u.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
109
+ d.name = "MaxListenersExceededWarning", d.emitter = r, d.type = e, d.count = u.length, jt(d);
110
+ }
111
+ return r;
112
+ }
113
+ P.prototype.addListener = function(e, t) {
114
+ return zr(this, e, t, !1);
115
+ };
116
+ P.prototype.on = P.prototype.addListener;
117
+ P.prototype.prependListener = function(e, t) {
118
+ return zr(this, e, t, !0);
119
+ };
120
+ function $t() {
121
+ if (!this.fired)
122
+ return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
123
+ }
124
+ function Vr(r, e, t) {
125
+ var n = { fired: !1, wrapFn: void 0, target: r, type: e, listener: t }, i = $t.bind(n);
126
+ return i.listener = t, n.wrapFn = i, i;
127
+ }
128
+ P.prototype.once = function(e, t) {
129
+ return Be(t), this.on(e, Vr(this, e, t)), this;
130
+ };
131
+ P.prototype.prependOnceListener = function(e, t) {
132
+ return Be(t), this.prependListener(e, Vr(this, e, t)), this;
133
+ };
134
+ P.prototype.removeListener = function(e, t) {
135
+ var n, i, c, u, d;
136
+ if (Be(t), i = this._events, i === void 0)
137
+ return this;
138
+ if (n = i[e], n === void 0)
139
+ return this;
140
+ if (n === t || n.listener === t)
141
+ --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete i[e], i.removeListener && this.emit("removeListener", e, n.listener || t));
142
+ else if (typeof n != "function") {
143
+ for (c = -1, u = n.length - 1; u >= 0; u--)
144
+ if (n[u] === t || n[u].listener === t) {
145
+ d = n[u].listener, c = u;
146
+ break;
147
+ }
148
+ if (c < 0)
149
+ return this;
150
+ c === 0 ? n.shift() : Bt(n, c), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, d || t);
151
+ }
152
+ return this;
153
+ };
154
+ P.prototype.off = P.prototype.removeListener;
155
+ P.prototype.removeAllListeners = function(e) {
156
+ var t, n, i;
157
+ if (n = this._events, n === void 0)
158
+ return this;
159
+ if (n.removeListener === void 0)
160
+ return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : n[e] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete n[e]), this;
161
+ if (arguments.length === 0) {
162
+ var c = Object.keys(n), u;
163
+ for (i = 0; i < c.length; ++i)
164
+ u = c[i], u !== "removeListener" && this.removeAllListeners(u);
165
+ return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
166
+ }
167
+ if (t = n[e], typeof t == "function")
168
+ this.removeListener(e, t);
169
+ else if (t !== void 0)
170
+ for (i = t.length - 1; i >= 0; i--)
171
+ this.removeListener(e, t[i]);
172
+ return this;
173
+ };
174
+ function qr(r, e, t) {
175
+ var n = r._events;
176
+ if (n === void 0)
177
+ return [];
178
+ var i = n[e];
179
+ return i === void 0 ? [] : typeof i == "function" ? t ? [i.listener || i] : [i] : t ? Tt(i) : Jr(i, i.length);
180
+ }
181
+ P.prototype.listeners = function(e) {
182
+ return qr(this, e, !0);
183
+ };
184
+ P.prototype.rawListeners = function(e) {
185
+ return qr(this, e, !1);
186
+ };
187
+ P.listenerCount = function(r, e) {
188
+ return typeof r.listenerCount == "function" ? r.listenerCount(e) : Hr.call(r, e);
189
+ };
190
+ P.prototype.listenerCount = Hr;
191
+ function Hr(r) {
192
+ var e = this._events;
193
+ if (e !== void 0) {
194
+ var t = e[r];
195
+ if (typeof t == "function")
196
+ return 1;
197
+ if (t !== void 0)
198
+ return t.length;
199
+ }
200
+ return 0;
201
+ }
202
+ P.prototype.eventNames = function() {
203
+ return this._eventsCount > 0 ? ve(this._events) : [];
204
+ };
205
+ function Jr(r, e) {
206
+ for (var t = new Array(e), n = 0; n < e; ++n)
207
+ t[n] = r[n];
208
+ return t;
209
+ }
210
+ function Bt(r, e) {
211
+ for (; e + 1 < r.length; e++)
212
+ r[e] = r[e + 1];
213
+ r.pop();
214
+ }
215
+ function Tt(r) {
216
+ for (var e = new Array(r.length), t = 0; t < e.length; ++t)
217
+ e[t] = r[t].listener || r[t];
218
+ return e;
219
+ }
220
+ function Ft(r, e) {
221
+ return new Promise(function(t, n) {
222
+ function i(u) {
223
+ r.removeListener(e, c), n(u);
224
+ }
225
+ function c() {
226
+ typeof r.removeListener == "function" && r.removeListener("error", i), t([].slice.call(arguments));
227
+ }
228
+ Kr(r, e, c, { once: !0 }), e !== "error" && It(r, i, { once: !0 });
229
+ });
230
+ }
231
+ function It(r, e, t) {
232
+ typeof r.on == "function" && Kr(r, "error", e, t);
233
+ }
234
+ function Kr(r, e, t, n) {
235
+ if (typeof r.on == "function")
236
+ n.once ? r.once(e, t) : r.on(e, t);
237
+ else if (typeof r.addEventListener == "function")
238
+ r.addEventListener(e, function i(c) {
239
+ n.once && r.removeEventListener(e, i), t(c);
240
+ });
241
+ else
242
+ throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof r);
243
+ }
244
+ var Xo = ar.exports;
245
+ const Nt = /* @__PURE__ */ Ot(Pt);
246
+ var Rt = {}, Zr = {}, Yr = function() {
247
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
248
+ return !1;
249
+ if (typeof Symbol.iterator == "symbol")
250
+ return !0;
251
+ var e = {}, t = Symbol("test"), n = Object(t);
252
+ if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
253
+ return !1;
254
+ var i = 42;
255
+ e[t] = i;
256
+ for (var c in e)
257
+ return !1;
258
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
259
+ return !1;
260
+ var u = Object.getOwnPropertySymbols(e);
261
+ if (u.length !== 1 || u[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
262
+ return !1;
263
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
264
+ var d = (
265
+ /** @type {PropertyDescriptor} */
266
+ Object.getOwnPropertyDescriptor(e, t)
267
+ );
268
+ if (d.value !== i || d.enumerable !== !0)
269
+ return !1;
270
+ }
271
+ return !0;
272
+ }, _t = Yr, Te = function() {
273
+ return _t() && !!Symbol.toStringTag;
274
+ }, Qr = Object, Ct = Error, Lt = EvalError, Ut = RangeError, Dt = ReferenceError, Xr = SyntaxError, fe = TypeError, Mt = URIError, kt = Math.abs, Gt = Math.floor, xt = Math.max, Wt = Math.min, zt = Math.pow, Vt = Math.round, qt = Number.isNaN || function(e) {
275
+ return e !== e;
276
+ }, Ht = qt, Jt = function(e) {
277
+ return Ht(e) || e === 0 ? e : e < 0 ? -1 : 1;
278
+ }, Kt = Object.getOwnPropertyDescriptor, me = Kt;
279
+ if (me)
280
+ try {
281
+ me([], "length");
282
+ } catch {
283
+ me = null;
284
+ }
285
+ var oe = me, be = Object.defineProperty || !1;
286
+ if (be)
287
+ try {
288
+ be({}, "a", { value: 1 });
289
+ } catch {
290
+ be = !1;
291
+ }
292
+ var Fe = be, Ce, gr;
293
+ function Zt() {
294
+ if (gr) return Ce;
295
+ gr = 1;
296
+ var r = typeof Symbol < "u" && Symbol, e = Yr;
297
+ return Ce = function() {
298
+ return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
299
+ }, Ce;
300
+ }
301
+ var et = typeof Reflect < "u" && Reflect.getPrototypeOf || null, Le, vr;
302
+ function rt() {
303
+ if (vr) return Le;
304
+ vr = 1;
305
+ var r = Qr;
306
+ return Le = r.getPrototypeOf || null, Le;
307
+ }
308
+ var Ue, mr;
309
+ function Yt() {
310
+ if (mr) return Ue;
311
+ mr = 1;
312
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", i = function(y, m) {
313
+ for (var w = [], $ = 0; $ < y.length; $ += 1)
314
+ w[$] = y[$];
315
+ for (var E = 0; E < m.length; E += 1)
316
+ w[E + y.length] = m[E];
317
+ return w;
318
+ }, c = function(y, m) {
319
+ for (var w = [], $ = m, E = 0; $ < y.length; $ += 1, E += 1)
320
+ w[E] = y[$];
321
+ return w;
322
+ }, u = function(d, y) {
323
+ for (var m = "", w = 0; w < d.length; w += 1)
324
+ m += d[w], w + 1 < d.length && (m += y);
325
+ return m;
326
+ };
327
+ return Ue = function(y) {
328
+ var m = this;
329
+ if (typeof m != "function" || e.apply(m) !== n)
330
+ throw new TypeError(r + m);
331
+ for (var w = c(arguments, 1), $, E = function() {
332
+ if (this instanceof $) {
333
+ var a = m.apply(
334
+ this,
335
+ i(w, arguments)
336
+ );
337
+ return Object(a) === a ? a : this;
338
+ }
339
+ return m.apply(
340
+ y,
341
+ i(w, arguments)
342
+ );
343
+ }, _ = t(0, m.length - w.length), T = [], N = 0; N < _; N++)
344
+ T[N] = "$" + N;
345
+ if ($ = Function("binder", "return function (" + u(T, ",") + "){ return binder.apply(this,arguments); }")(E), m.prototype) {
346
+ var C = function() {
347
+ };
348
+ C.prototype = m.prototype, $.prototype = new C(), C.prototype = null;
349
+ }
350
+ return $;
351
+ }, Ue;
352
+ }
353
+ var De, br;
354
+ function se() {
355
+ if (br) return De;
356
+ br = 1;
357
+ var r = Yt();
358
+ return De = Function.prototype.bind || r, De;
359
+ }
360
+ var Me, Ar;
361
+ function fr() {
362
+ return Ar || (Ar = 1, Me = Function.prototype.call), Me;
363
+ }
364
+ var ke, wr;
365
+ function sr() {
366
+ return wr || (wr = 1, ke = Function.prototype.apply), ke;
367
+ }
368
+ var Qt = typeof Reflect < "u" && Reflect && Reflect.apply, Xt = se(), en = sr(), rn = fr(), tn = Qt, tt = tn || Xt.call(rn, en), nn = se(), on = fe, an = fr(), fn = tt, ur = function(e) {
369
+ if (e.length < 1 || typeof e[0] != "function")
370
+ throw new on("a function is required");
371
+ return fn(nn, an, e);
372
+ }, sn = ur, Sr = oe, nt;
373
+ try {
374
+ nt = /** @type {{ __proto__?: typeof Array.prototype }} */
375
+ [].__proto__ === Array.prototype;
376
+ } catch (r) {
377
+ if (!r || typeof r != "object" || !("code" in r) || r.code !== "ERR_PROTO_ACCESS")
378
+ throw r;
379
+ }
380
+ var Ge = !!nt && Sr && Sr(
381
+ Object.prototype,
382
+ /** @type {keyof typeof Object.prototype} */
383
+ "__proto__"
384
+ ), ot = Object, Or = ot.getPrototypeOf, un = Ge && typeof Ge.get == "function" ? sn([Ge.get]) : typeof Or == "function" ? (
385
+ /** @type {import('./get')} */
386
+ function(e) {
387
+ return Or(e == null ? e : ot(e));
388
+ }
389
+ ) : !1, Pr = et, Er = rt(), jr = un, lr = Pr ? function(e) {
390
+ return Pr(e);
391
+ } : Er ? function(e) {
392
+ if (!e || typeof e != "object" && typeof e != "function")
393
+ throw new TypeError("getProto: not an object");
394
+ return Er(e);
395
+ } : jr ? function(e) {
396
+ return jr(e);
397
+ } : null, xe, $r;
398
+ function it() {
399
+ if ($r) return xe;
400
+ $r = 1;
401
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = se();
402
+ return xe = t.call(r, e), xe;
403
+ }
404
+ var v, ln = Qr, cn = Ct, yn = Lt, pn = Ut, dn = Dt, ne = Xr, te = fe, hn = Mt, gn = kt, vn = Gt, mn = xt, bn = Wt, An = zt, wn = Vt, Sn = Jt, at = Function, We = function(r) {
405
+ try {
406
+ return at('"use strict"; return (' + r + ").constructor;")();
407
+ } catch {
408
+ }
409
+ }, ae = oe, On = Fe, ze = function() {
410
+ throw new te();
411
+ }, Pn = ae ? function() {
412
+ try {
413
+ return arguments.callee, ze;
414
+ } catch {
415
+ try {
416
+ return ae(arguments, "callee").get;
417
+ } catch {
418
+ return ze;
419
+ }
420
+ }
421
+ }() : ze, Y = Zt()(), F = lr, En = rt(), jn = et, ft = sr(), ue = fr(), X = {}, $n = typeof Uint8Array > "u" || !F ? v : F(Uint8Array), V = {
422
+ __proto__: null,
423
+ "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
424
+ "%Array%": Array,
425
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
426
+ "%ArrayIteratorPrototype%": Y && F ? F([][Symbol.iterator]()) : v,
427
+ "%AsyncFromSyncIteratorPrototype%": v,
428
+ "%AsyncFunction%": X,
429
+ "%AsyncGenerator%": X,
430
+ "%AsyncGeneratorFunction%": X,
431
+ "%AsyncIteratorPrototype%": X,
432
+ "%Atomics%": typeof Atomics > "u" ? v : Atomics,
433
+ "%BigInt%": typeof BigInt > "u" ? v : BigInt,
434
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
435
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
436
+ "%Boolean%": Boolean,
437
+ "%DataView%": typeof DataView > "u" ? v : DataView,
438
+ "%Date%": Date,
439
+ "%decodeURI%": decodeURI,
440
+ "%decodeURIComponent%": decodeURIComponent,
441
+ "%encodeURI%": encodeURI,
442
+ "%encodeURIComponent%": encodeURIComponent,
443
+ "%Error%": cn,
444
+ "%eval%": eval,
445
+ // eslint-disable-line no-eval
446
+ "%EvalError%": yn,
447
+ "%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
448
+ "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
449
+ "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
450
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
451
+ "%Function%": at,
452
+ "%GeneratorFunction%": X,
453
+ "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
454
+ "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
455
+ "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
456
+ "%isFinite%": isFinite,
457
+ "%isNaN%": isNaN,
458
+ "%IteratorPrototype%": Y && F ? F(F([][Symbol.iterator]())) : v,
459
+ "%JSON%": typeof JSON == "object" ? JSON : v,
460
+ "%Map%": typeof Map > "u" ? v : Map,
461
+ "%MapIteratorPrototype%": typeof Map > "u" || !Y || !F ? v : F((/* @__PURE__ */ new Map())[Symbol.iterator]()),
462
+ "%Math%": Math,
463
+ "%Number%": Number,
464
+ "%Object%": ln,
465
+ "%Object.getOwnPropertyDescriptor%": ae,
466
+ "%parseFloat%": parseFloat,
467
+ "%parseInt%": parseInt,
468
+ "%Promise%": typeof Promise > "u" ? v : Promise,
469
+ "%Proxy%": typeof Proxy > "u" ? v : Proxy,
470
+ "%RangeError%": pn,
471
+ "%ReferenceError%": dn,
472
+ "%Reflect%": typeof Reflect > "u" ? v : Reflect,
473
+ "%RegExp%": RegExp,
474
+ "%Set%": typeof Set > "u" ? v : Set,
475
+ "%SetIteratorPrototype%": typeof Set > "u" || !Y || !F ? v : F((/* @__PURE__ */ new Set())[Symbol.iterator]()),
476
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
477
+ "%String%": String,
478
+ "%StringIteratorPrototype%": Y && F ? F(""[Symbol.iterator]()) : v,
479
+ "%Symbol%": Y ? Symbol : v,
480
+ "%SyntaxError%": ne,
481
+ "%ThrowTypeError%": Pn,
482
+ "%TypedArray%": $n,
483
+ "%TypeError%": te,
484
+ "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
485
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
486
+ "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
487
+ "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
488
+ "%URIError%": hn,
489
+ "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
490
+ "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
491
+ "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
492
+ "%Function.prototype.call%": ue,
493
+ "%Function.prototype.apply%": ft,
494
+ "%Object.defineProperty%": On,
495
+ "%Object.getPrototypeOf%": En,
496
+ "%Math.abs%": gn,
497
+ "%Math.floor%": vn,
498
+ "%Math.max%": mn,
499
+ "%Math.min%": bn,
500
+ "%Math.pow%": An,
501
+ "%Math.round%": wn,
502
+ "%Math.sign%": Sn,
503
+ "%Reflect.getPrototypeOf%": jn
504
+ };
505
+ if (F)
506
+ try {
507
+ null.error;
508
+ } catch (r) {
509
+ var Bn = F(F(r));
510
+ V["%Error.prototype%"] = Bn;
511
+ }
512
+ var Tn = function r(e) {
513
+ var t;
514
+ if (e === "%AsyncFunction%")
515
+ t = We("async function () {}");
516
+ else if (e === "%GeneratorFunction%")
517
+ t = We("function* () {}");
518
+ else if (e === "%AsyncGeneratorFunction%")
519
+ t = We("async function* () {}");
520
+ else if (e === "%AsyncGenerator%") {
521
+ var n = r("%AsyncGeneratorFunction%");
522
+ n && (t = n.prototype);
523
+ } else if (e === "%AsyncIteratorPrototype%") {
524
+ var i = r("%AsyncGenerator%");
525
+ i && F && (t = F(i.prototype));
526
+ }
527
+ return V[e] = t, t;
528
+ }, Br = {
529
+ __proto__: null,
530
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
531
+ "%ArrayPrototype%": ["Array", "prototype"],
532
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
533
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
534
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
535
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
536
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
537
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
538
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
539
+ "%BooleanPrototype%": ["Boolean", "prototype"],
540
+ "%DataViewPrototype%": ["DataView", "prototype"],
541
+ "%DatePrototype%": ["Date", "prototype"],
542
+ "%ErrorPrototype%": ["Error", "prototype"],
543
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
544
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
545
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
546
+ "%FunctionPrototype%": ["Function", "prototype"],
547
+ "%Generator%": ["GeneratorFunction", "prototype"],
548
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
549
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
550
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
551
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
552
+ "%JSONParse%": ["JSON", "parse"],
553
+ "%JSONStringify%": ["JSON", "stringify"],
554
+ "%MapPrototype%": ["Map", "prototype"],
555
+ "%NumberPrototype%": ["Number", "prototype"],
556
+ "%ObjectPrototype%": ["Object", "prototype"],
557
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
558
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
559
+ "%PromisePrototype%": ["Promise", "prototype"],
560
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
561
+ "%Promise_all%": ["Promise", "all"],
562
+ "%Promise_reject%": ["Promise", "reject"],
563
+ "%Promise_resolve%": ["Promise", "resolve"],
564
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
565
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
566
+ "%RegExpPrototype%": ["RegExp", "prototype"],
567
+ "%SetPrototype%": ["Set", "prototype"],
568
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
569
+ "%StringPrototype%": ["String", "prototype"],
570
+ "%SymbolPrototype%": ["Symbol", "prototype"],
571
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
572
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
573
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
574
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
575
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
576
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
577
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
578
+ "%URIErrorPrototype%": ["URIError", "prototype"],
579
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
580
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
581
+ }, le = se(), Pe = it(), Fn = le.call(ue, Array.prototype.concat), In = le.call(ft, Array.prototype.splice), Tr = le.call(ue, String.prototype.replace), Ee = le.call(ue, String.prototype.slice), Nn = le.call(ue, RegExp.prototype.exec), Rn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, _n = /\\(\\)?/g, Cn = function(e) {
582
+ var t = Ee(e, 0, 1), n = Ee(e, -1);
583
+ if (t === "%" && n !== "%")
584
+ throw new ne("invalid intrinsic syntax, expected closing `%`");
585
+ if (n === "%" && t !== "%")
586
+ throw new ne("invalid intrinsic syntax, expected opening `%`");
587
+ var i = [];
588
+ return Tr(e, Rn, function(c, u, d, y) {
589
+ i[i.length] = d ? Tr(y, _n, "$1") : u || c;
590
+ }), i;
591
+ }, Ln = function(e, t) {
592
+ var n = e, i;
593
+ if (Pe(Br, n) && (i = Br[n], n = "%" + i[0] + "%"), Pe(V, n)) {
594
+ var c = V[n];
595
+ if (c === X && (c = Tn(n)), typeof c > "u" && !t)
596
+ throw new te("intrinsic " + e + " exists, but is not available. Please file an issue!");
597
+ return {
598
+ alias: i,
599
+ name: n,
600
+ value: c
601
+ };
602
+ }
603
+ throw new ne("intrinsic " + e + " does not exist!");
604
+ }, st = function(e, t) {
605
+ if (typeof e != "string" || e.length === 0)
606
+ throw new te("intrinsic name must be a non-empty string");
607
+ if (arguments.length > 1 && typeof t != "boolean")
608
+ throw new te('"allowMissing" argument must be a boolean');
609
+ if (Nn(/^%?[^%]*%?$/, e) === null)
610
+ throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
611
+ var n = Cn(e), i = n.length > 0 ? n[0] : "", c = Ln("%" + i + "%", t), u = c.name, d = c.value, y = !1, m = c.alias;
612
+ m && (i = m[0], In(n, Fn([0, 1], m)));
613
+ for (var w = 1, $ = !0; w < n.length; w += 1) {
614
+ var E = n[w], _ = Ee(E, 0, 1), T = Ee(E, -1);
615
+ if ((_ === '"' || _ === "'" || _ === "`" || T === '"' || T === "'" || T === "`") && _ !== T)
616
+ throw new ne("property names with quotes must have matching quotes");
617
+ if ((E === "constructor" || !$) && (y = !0), i += "." + E, u = "%" + i + "%", Pe(V, u))
618
+ d = V[u];
619
+ else if (d != null) {
620
+ if (!(E in d)) {
621
+ if (!t)
622
+ throw new te("base intrinsic for " + e + " exists, but the property is not available.");
623
+ return;
624
+ }
625
+ if (ae && w + 1 >= n.length) {
626
+ var N = ae(d, E);
627
+ $ = !!N, $ && "get" in N && !("originalValue" in N.get) ? d = N.get : d = d[E];
628
+ } else
629
+ $ = Pe(d, E), d = d[E];
630
+ $ && !y && (V[u] = d);
631
+ }
632
+ }
633
+ return d;
634
+ }, ut = st, lt = ur, Un = lt([ut("%String.prototype.indexOf%")]), ce = function(e, t) {
635
+ var n = (
636
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
637
+ ut(e, !!t)
638
+ );
639
+ return typeof n == "function" && Un(e, ".prototype.") > -1 ? lt(
640
+ /** @type {const} */
641
+ [n]
642
+ ) : n;
643
+ }, Dn = Te(), Mn = ce, Xe = Mn("Object.prototype.toString"), Ie = function(e) {
644
+ return Dn && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : Xe(e) === "[object Arguments]";
645
+ }, ct = function(e) {
646
+ return Ie(e) ? !0 : e !== null && typeof e == "object" && "length" in e && typeof e.length == "number" && e.length >= 0 && Xe(e) !== "[object Array]" && "callee" in e && Xe(e.callee) === "[object Function]";
647
+ }, kn = function() {
648
+ return Ie(arguments);
649
+ }();
650
+ Ie.isLegacyArguments = ct;
651
+ var Gn = kn ? Ie : ct, Fr = ce, xn = Te(), Wn = it(), zn = oe, er;
652
+ if (xn) {
653
+ var Vn = Fr("RegExp.prototype.exec"), Ir = {}, Ve = function() {
654
+ throw Ir;
655
+ }, Nr = {
656
+ toString: Ve,
657
+ valueOf: Ve
658
+ };
659
+ typeof Symbol.toPrimitive == "symbol" && (Nr[Symbol.toPrimitive] = Ve), er = function(e) {
660
+ if (!e || typeof e != "object")
661
+ return !1;
662
+ var t = (
663
+ /** @type {NonNullable<typeof gOPD>} */
664
+ zn(
665
+ /** @type {{ lastIndex?: unknown }} */
666
+ e,
667
+ "lastIndex"
668
+ )
669
+ ), n = t && Wn(t, "value");
670
+ if (!n)
671
+ return !1;
672
+ try {
673
+ Vn(
674
+ e,
675
+ /** @type {string} */
676
+ /** @type {unknown} */
677
+ Nr
678
+ );
679
+ } catch (i) {
680
+ return i === Ir;
681
+ }
682
+ };
683
+ } else {
684
+ var qn = Fr("Object.prototype.toString"), Hn = "[object RegExp]";
685
+ er = function(e) {
686
+ return !e || typeof e != "object" && typeof e != "function" ? !1 : qn(e) === Hn;
687
+ };
688
+ }
689
+ var Jn = er, Kn = ce, Zn = Jn, Yn = Kn("RegExp.prototype.exec"), Qn = fe, Xn = function(e) {
690
+ if (!Zn(e))
691
+ throw new Qn("`regex` must be a RegExp");
692
+ return function(n) {
693
+ return Yn(e, n) !== null;
694
+ };
695
+ }, yt = ce, eo = Xn, ro = eo(/^\s*(?:function)?\*/), pt = Te(), qe = lr, to = yt("Object.prototype.toString"), no = yt("Function.prototype.toString"), oo = function() {
696
+ if (!pt)
697
+ return !1;
698
+ try {
699
+ return Function("return function*() {}")();
700
+ } catch {
701
+ }
702
+ }, He, io = function(e) {
703
+ if (typeof e != "function")
704
+ return !1;
705
+ if (ro(no(e)))
706
+ return !0;
707
+ if (!pt) {
708
+ var t = to(e);
709
+ return t === "[object GeneratorFunction]";
710
+ }
711
+ if (!qe)
712
+ return !1;
713
+ if (typeof He > "u") {
714
+ var n = oo();
715
+ He = n ? (
716
+ /** @type {GeneratorFunctionConstructor} */
717
+ qe(n)
718
+ ) : !1;
719
+ }
720
+ return qe(e) === He;
721
+ }, dt = Function.prototype.toString, ee = typeof Reflect == "object" && Reflect !== null && Reflect.apply, rr, Ae;
722
+ if (typeof ee == "function" && typeof Object.defineProperty == "function")
723
+ try {
724
+ rr = Object.defineProperty({}, "length", {
725
+ get: function() {
726
+ throw Ae;
727
+ }
728
+ }), Ae = {}, ee(function() {
729
+ throw 42;
730
+ }, null, rr);
731
+ } catch (r) {
732
+ r !== Ae && (ee = null);
733
+ }
734
+ else
735
+ ee = null;
736
+ var ao = /^\s*class\b/, tr = function(e) {
737
+ try {
738
+ var t = dt.call(e);
739
+ return ao.test(t);
740
+ } catch {
741
+ return !1;
742
+ }
743
+ }, Je = function(e) {
744
+ try {
745
+ return tr(e) ? !1 : (dt.call(e), !0);
746
+ } catch {
747
+ return !1;
748
+ }
749
+ }, we = Object.prototype.toString, fo = "[object Object]", so = "[object Function]", uo = "[object GeneratorFunction]", lo = "[object HTMLAllCollection]", co = "[object HTML document.all class]", yo = "[object HTMLCollection]", po = typeof Symbol == "function" && !!Symbol.toStringTag, ho = !(0 in [,]), nr = function() {
750
+ return !1;
751
+ };
752
+ if (typeof document == "object") {
753
+ var go = document.all;
754
+ we.call(go) === we.call(document.all) && (nr = function(e) {
755
+ if ((ho || !e) && (typeof e > "u" || typeof e == "object"))
756
+ try {
757
+ var t = we.call(e);
758
+ return (t === lo || t === co || t === yo || t === fo) && e("") == null;
759
+ } catch {
760
+ }
761
+ return !1;
762
+ });
763
+ }
764
+ var vo = ee ? function(e) {
765
+ if (nr(e))
766
+ return !0;
767
+ if (!e || typeof e != "function" && typeof e != "object")
768
+ return !1;
769
+ try {
770
+ ee(e, null, rr);
771
+ } catch (t) {
772
+ if (t !== Ae)
773
+ return !1;
774
+ }
775
+ return !tr(e) && Je(e);
776
+ } : function(e) {
777
+ if (nr(e))
778
+ return !0;
779
+ if (!e || typeof e != "function" && typeof e != "object")
780
+ return !1;
781
+ if (po)
782
+ return Je(e);
783
+ if (tr(e))
784
+ return !1;
785
+ var t = we.call(e);
786
+ return t !== so && t !== uo && !/^\[object HTML/.test(t) ? !1 : Je(e);
787
+ }, mo = vo, bo = Object.prototype.toString, ht = Object.prototype.hasOwnProperty, Ao = function(e, t, n) {
788
+ for (var i = 0, c = e.length; i < c; i++)
789
+ ht.call(e, i) && (n == null ? t(e[i], i, e) : t.call(n, e[i], i, e));
790
+ }, wo = function(e, t, n) {
791
+ for (var i = 0, c = e.length; i < c; i++)
792
+ n == null ? t(e.charAt(i), i, e) : t.call(n, e.charAt(i), i, e);
793
+ }, So = function(e, t, n) {
794
+ for (var i in e)
795
+ ht.call(e, i) && (n == null ? t(e[i], i, e) : t.call(n, e[i], i, e));
796
+ };
797
+ function Oo(r) {
798
+ return bo.call(r) === "[object Array]";
799
+ }
800
+ var Po = function(e, t, n) {
801
+ if (!mo(t))
802
+ throw new TypeError("iterator must be a function");
803
+ var i;
804
+ arguments.length >= 3 && (i = n), Oo(e) ? Ao(e, t, i) : typeof e == "string" ? wo(e, t, i) : So(e, t, i);
805
+ }, Eo = [
806
+ "Float16Array",
807
+ "Float32Array",
808
+ "Float64Array",
809
+ "Int8Array",
810
+ "Int16Array",
811
+ "Int32Array",
812
+ "Uint8Array",
813
+ "Uint8ClampedArray",
814
+ "Uint16Array",
815
+ "Uint32Array",
816
+ "BigInt64Array",
817
+ "BigUint64Array"
818
+ ], Ke = Eo, jo = typeof globalThis > "u" ? Oe : globalThis, $o = function() {
819
+ for (var e = [], t = 0; t < Ke.length; t++)
820
+ typeof jo[Ke[t]] == "function" && (e[e.length] = Ke[t]);
821
+ return e;
822
+ }, gt = { exports: {} }, Rr = Fe, Bo = Xr, Q = fe, _r = oe, To = function(e, t, n) {
823
+ if (!e || typeof e != "object" && typeof e != "function")
824
+ throw new Q("`obj` must be an object or a function`");
825
+ if (typeof t != "string" && typeof t != "symbol")
826
+ throw new Q("`property` must be a string or a symbol`");
827
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
828
+ throw new Q("`nonEnumerable`, if provided, must be a boolean or null");
829
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
830
+ throw new Q("`nonWritable`, if provided, must be a boolean or null");
831
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
832
+ throw new Q("`nonConfigurable`, if provided, must be a boolean or null");
833
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
834
+ throw new Q("`loose`, if provided, must be a boolean");
835
+ var i = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, u = arguments.length > 5 ? arguments[5] : null, d = arguments.length > 6 ? arguments[6] : !1, y = !!_r && _r(e, t);
836
+ if (Rr)
837
+ Rr(e, t, {
838
+ configurable: u === null && y ? y.configurable : !u,
839
+ enumerable: i === null && y ? y.enumerable : !i,
840
+ value: n,
841
+ writable: c === null && y ? y.writable : !c
842
+ });
843
+ else if (d || !i && !c && !u)
844
+ e[t] = n;
845
+ else
846
+ throw new Bo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
847
+ }, or = Fe, vt = function() {
848
+ return !!or;
849
+ };
850
+ vt.hasArrayLengthDefineBug = function() {
851
+ if (!or)
852
+ return null;
853
+ try {
854
+ return or([], "length", { value: 1 }).length !== 1;
855
+ } catch {
856
+ return !0;
857
+ }
858
+ };
859
+ var Fo = vt, Io = st, Cr = To, No = Fo(), Lr = oe, Ur = fe, Ro = Io("%Math.floor%"), _o = function(e, t) {
860
+ if (typeof e != "function")
861
+ throw new Ur("`fn` is not a function");
862
+ if (typeof t != "number" || t < 0 || t > 4294967295 || Ro(t) !== t)
863
+ throw new Ur("`length` must be a positive 32-bit integer");
864
+ var n = arguments.length > 2 && !!arguments[2], i = !0, c = !0;
865
+ if ("length" in e && Lr) {
866
+ var u = Lr(e, "length");
867
+ u && !u.configurable && (i = !1), u && !u.writable && (c = !1);
868
+ }
869
+ return (i || c || !n) && (No ? Cr(
870
+ /** @type {Parameters<define>[0]} */
871
+ e,
872
+ "length",
873
+ t,
874
+ !0,
875
+ !0
876
+ ) : Cr(
877
+ /** @type {Parameters<define>[0]} */
878
+ e,
879
+ "length",
880
+ t
881
+ )), e;
882
+ }, Co = se(), Lo = sr(), Uo = tt, Do = function() {
883
+ return Uo(Co, Lo, arguments);
884
+ };
885
+ (function(r) {
886
+ var e = _o, t = Fe, n = ur, i = Do;
887
+ r.exports = function(u) {
888
+ var d = n(arguments), y = u.length - (arguments.length - 1);
889
+ return e(
890
+ d,
891
+ 1 + (y > 0 ? y : 0),
892
+ !0
893
+ );
894
+ }, t ? t(r.exports, "apply", { value: i }) : r.exports.apply = i;
895
+ })(gt);
896
+ var Mo = gt.exports, je = Po, ko = $o, Dr = Mo, cr = ce, Se = oe, he = lr, Go = cr("Object.prototype.toString"), mt = Te(), Mr = typeof globalThis > "u" ? Oe : globalThis, ir = ko(), yr = cr("String.prototype.slice"), xo = cr("Array.prototype.indexOf", !0) || function(e, t) {
897
+ for (var n = 0; n < e.length; n += 1)
898
+ if (e[n] === t)
899
+ return n;
900
+ return -1;
901
+ }, $e = { __proto__: null };
902
+ mt && Se && he ? je(ir, function(r) {
903
+ var e = new Mr[r]();
904
+ if (Symbol.toStringTag in e && he) {
905
+ var t = he(e), n = Se(t, Symbol.toStringTag);
906
+ if (!n && t) {
907
+ var i = he(t);
908
+ n = Se(i, Symbol.toStringTag);
909
+ }
910
+ $e["$" + r] = Dr(n.get);
911
+ }
912
+ }) : je(ir, function(r) {
913
+ var e = new Mr[r](), t = e.slice || e.set;
914
+ t && ($e[
915
+ /** @type {`$${import('.').TypedArrayName}`} */
916
+ "$" + r
917
+ ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
918
+ // @ts-expect-error TODO FIXME
919
+ Dr(t));
920
+ });
921
+ var Wo = function(e) {
922
+ var t = !1;
923
+ return je(
924
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
925
+ $e,
926
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
927
+ function(n, i) {
928
+ if (!t)
929
+ try {
930
+ "$" + n(e) === i && (t = /** @type {import('.').TypedArrayName} */
931
+ yr(i, 1));
932
+ } catch {
933
+ }
934
+ }
935
+ ), t;
936
+ }, zo = function(e) {
937
+ var t = !1;
938
+ return je(
939
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
940
+ $e,
941
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
942
+ function(n, i) {
943
+ if (!t)
944
+ try {
945
+ n(e), t = /** @type {import('.').TypedArrayName} */
946
+ yr(i, 1);
947
+ } catch {
948
+ }
949
+ }
950
+ ), t;
951
+ }, bt = function(e) {
952
+ if (!e || typeof e != "object")
953
+ return !1;
954
+ if (!mt) {
955
+ var t = yr(Go(e), 8, -1);
956
+ return xo(ir, t) > -1 ? t : t !== "Object" ? !1 : zo(e);
957
+ }
958
+ return Se ? Wo(e) : null;
959
+ }, Vo = bt, qo = function(e) {
960
+ return !!Vo(e);
961
+ };
962
+ (function(r) {
963
+ var e = Gn, t = io, n = bt, i = qo;
964
+ function c(s) {
965
+ return s.call.bind(s);
966
+ }
967
+ var u = typeof BigInt < "u", d = typeof Symbol < "u", y = c(Object.prototype.toString), m = c(Number.prototype.valueOf), w = c(String.prototype.valueOf), $ = c(Boolean.prototype.valueOf);
968
+ if (u)
969
+ var E = c(BigInt.prototype.valueOf);
970
+ if (d)
971
+ var _ = c(Symbol.prototype.valueOf);
972
+ function T(s, St) {
973
+ if (typeof s != "object")
974
+ return !1;
975
+ try {
976
+ return St(s), !0;
977
+ } catch {
978
+ return !1;
979
+ }
980
+ }
981
+ r.isArgumentsObject = e, r.isGeneratorFunction = t, r.isTypedArray = i;
982
+ function N(s) {
983
+ return typeof Promise < "u" && s instanceof Promise || s !== null && typeof s == "object" && typeof s.then == "function" && typeof s.catch == "function";
984
+ }
985
+ r.isPromise = N;
986
+ function C(s) {
987
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(s) : i(s) || f(s);
988
+ }
989
+ r.isArrayBufferView = C;
990
+ function a(s) {
991
+ return n(s) === "Uint8Array";
992
+ }
993
+ r.isUint8Array = a;
994
+ function p(s) {
995
+ return n(s) === "Uint8ClampedArray";
996
+ }
997
+ r.isUint8ClampedArray = p;
998
+ function b(s) {
999
+ return n(s) === "Uint16Array";
1000
+ }
1001
+ r.isUint16Array = b;
1002
+ function I(s) {
1003
+ return n(s) === "Uint32Array";
1004
+ }
1005
+ r.isUint32Array = I;
1006
+ function B(s) {
1007
+ return n(s) === "Int8Array";
1008
+ }
1009
+ r.isInt8Array = B;
1010
+ function Ne(s) {
1011
+ return n(s) === "Int16Array";
1012
+ }
1013
+ r.isInt16Array = Ne;
1014
+ function U(s) {
1015
+ return n(s) === "Int32Array";
1016
+ }
1017
+ r.isInt32Array = U;
1018
+ function x(s) {
1019
+ return n(s) === "Float32Array";
1020
+ }
1021
+ r.isFloat32Array = x;
1022
+ function k(s) {
1023
+ return n(s) === "Float64Array";
1024
+ }
1025
+ r.isFloat64Array = k;
1026
+ function q(s) {
1027
+ return n(s) === "BigInt64Array";
1028
+ }
1029
+ r.isBigInt64Array = q;
1030
+ function W(s) {
1031
+ return n(s) === "BigUint64Array";
1032
+ }
1033
+ r.isBigUint64Array = W;
1034
+ function D(s) {
1035
+ return y(s) === "[object Map]";
1036
+ }
1037
+ D.working = typeof Map < "u" && D(/* @__PURE__ */ new Map());
1038
+ function Re(s) {
1039
+ return typeof Map > "u" ? !1 : D.working ? D(s) : s instanceof Map;
1040
+ }
1041
+ r.isMap = Re;
1042
+ function G(s) {
1043
+ return y(s) === "[object Set]";
1044
+ }
1045
+ G.working = typeof Set < "u" && G(/* @__PURE__ */ new Set());
1046
+ function ie(s) {
1047
+ return typeof Set > "u" ? !1 : G.working ? G(s) : s instanceof Set;
1048
+ }
1049
+ r.isSet = ie;
1050
+ function H(s) {
1051
+ return y(s) === "[object WeakMap]";
1052
+ }
1053
+ H.working = typeof WeakMap < "u" && H(/* @__PURE__ */ new WeakMap());
1054
+ function _e(s) {
1055
+ return typeof WeakMap > "u" ? !1 : H.working ? H(s) : s instanceof WeakMap;
1056
+ }
1057
+ r.isWeakMap = _e;
1058
+ function J(s) {
1059
+ return y(s) === "[object WeakSet]";
1060
+ }
1061
+ J.working = typeof WeakSet < "u" && J(/* @__PURE__ */ new WeakSet());
1062
+ function M(s) {
1063
+ return J(s);
1064
+ }
1065
+ r.isWeakSet = M;
1066
+ function K(s) {
1067
+ return y(s) === "[object ArrayBuffer]";
1068
+ }
1069
+ K.working = typeof ArrayBuffer < "u" && K(new ArrayBuffer());
1070
+ function ye(s) {
1071
+ return typeof ArrayBuffer > "u" ? !1 : K.working ? K(s) : s instanceof ArrayBuffer;
1072
+ }
1073
+ r.isArrayBuffer = ye;
1074
+ function o(s) {
1075
+ return y(s) === "[object DataView]";
1076
+ }
1077
+ o.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && o(new DataView(new ArrayBuffer(1), 0, 1));
1078
+ function f(s) {
1079
+ return typeof DataView > "u" ? !1 : o.working ? o(s) : s instanceof DataView;
1080
+ }
1081
+ r.isDataView = f;
1082
+ var l = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
1083
+ function h(s) {
1084
+ return y(s) === "[object SharedArrayBuffer]";
1085
+ }
1086
+ function S(s) {
1087
+ return typeof l > "u" ? !1 : (typeof h.working > "u" && (h.working = h(new l())), h.working ? h(s) : s instanceof l);
1088
+ }
1089
+ r.isSharedArrayBuffer = S;
1090
+ function O(s) {
1091
+ return y(s) === "[object AsyncFunction]";
1092
+ }
1093
+ r.isAsyncFunction = O;
1094
+ function g(s) {
1095
+ return y(s) === "[object Map Iterator]";
1096
+ }
1097
+ r.isMapIterator = g;
1098
+ function A(s) {
1099
+ return y(s) === "[object Set Iterator]";
1100
+ }
1101
+ r.isSetIterator = A;
1102
+ function j(s) {
1103
+ return y(s) === "[object Generator]";
1104
+ }
1105
+ r.isGeneratorObject = j;
1106
+ function R(s) {
1107
+ return y(s) === "[object WebAssembly.Module]";
1108
+ }
1109
+ r.isWebAssemblyCompiledModule = R;
1110
+ function z(s) {
1111
+ return T(s, m);
1112
+ }
1113
+ r.isNumberObject = z;
1114
+ function pe(s) {
1115
+ return T(s, w);
1116
+ }
1117
+ r.isStringObject = pe;
1118
+ function Z(s) {
1119
+ return T(s, $);
1120
+ }
1121
+ r.isBooleanObject = Z;
1122
+ function de(s) {
1123
+ return u && T(s, E);
1124
+ }
1125
+ r.isBigIntObject = de;
1126
+ function pr(s) {
1127
+ return d && T(s, _);
1128
+ }
1129
+ r.isSymbolObject = pr;
1130
+ function At(s) {
1131
+ return z(s) || pe(s) || Z(s) || de(s) || pr(s);
1132
+ }
1133
+ r.isBoxedPrimitive = At;
1134
+ function wt(s) {
1135
+ return typeof Uint8Array < "u" && (ye(s) || S(s));
1136
+ }
1137
+ r.isAnyArrayBuffer = wt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(s) {
1138
+ Object.defineProperty(r, s, {
1139
+ enumerable: !1,
1140
+ value: function() {
1141
+ throw new Error(s + " is not supported in userland");
1142
+ }
1143
+ });
1144
+ });
1145
+ })(Zr);
1146
+ var Ho = function(e) {
1147
+ return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
1148
+ };
1149
+ (function(r) {
1150
+ var e = Object.getOwnPropertyDescriptors || function(f) {
1151
+ for (var l = Object.keys(f), h = {}, S = 0; S < l.length; S++)
1152
+ h[l[S]] = Object.getOwnPropertyDescriptor(f, l[S]);
1153
+ return h;
1154
+ }, t = /%[sdj%]/g;
1155
+ r.format = function(o) {
1156
+ if (!B(o)) {
1157
+ for (var f = [], l = 0; l < arguments.length; l++)
1158
+ f.push(u(arguments[l]));
1159
+ return f.join(" ");
1160
+ }
1161
+ for (var l = 1, h = arguments, S = h.length, O = String(o).replace(t, function(A) {
1162
+ if (A === "%%") return "%";
1163
+ if (l >= S) return A;
1164
+ switch (A) {
1165
+ case "%s":
1166
+ return String(h[l++]);
1167
+ case "%d":
1168
+ return Number(h[l++]);
1169
+ case "%j":
1170
+ try {
1171
+ return JSON.stringify(h[l++]);
1172
+ } catch {
1173
+ return "[Circular]";
1174
+ }
1175
+ default:
1176
+ return A;
1177
+ }
1178
+ }), g = h[l]; l < S; g = h[++l])
1179
+ p(g) || !k(g) ? O += " " + g : O += " " + u(g);
1180
+ return O;
1181
+ }, r.deprecate = function(o, f) {
1182
+ if (typeof L < "u" && L.noDeprecation === !0)
1183
+ return o;
1184
+ if (typeof L > "u")
1185
+ return function() {
1186
+ return r.deprecate(o, f).apply(this, arguments);
1187
+ };
1188
+ var l = !1;
1189
+ function h() {
1190
+ if (!l) {
1191
+ if (L.throwDeprecation)
1192
+ throw new Error(f);
1193
+ L.traceDeprecation ? console.trace(f) : console.error(f), l = !0;
1194
+ }
1195
+ return o.apply(this, arguments);
1196
+ }
1197
+ return h;
1198
+ };
1199
+ var n = {}, i = /^$/;
1200
+ if (L.env.NODE_DEBUG) {
1201
+ var c = L.env.NODE_DEBUG;
1202
+ c = c.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i = new RegExp("^" + c + "$", "i");
1203
+ }
1204
+ r.debuglog = function(o) {
1205
+ if (o = o.toUpperCase(), !n[o])
1206
+ if (i.test(o)) {
1207
+ var f = L.pid;
1208
+ n[o] = function() {
1209
+ var l = r.format.apply(r, arguments);
1210
+ console.error("%s %d: %s", o, f, l);
1211
+ };
1212
+ } else
1213
+ n[o] = function() {
1214
+ };
1215
+ return n[o];
1216
+ };
1217
+ function u(o, f) {
1218
+ var l = {
1219
+ seen: [],
1220
+ stylize: y
1221
+ };
1222
+ return arguments.length >= 3 && (l.depth = arguments[2]), arguments.length >= 4 && (l.colors = arguments[3]), a(f) ? l.showHidden = f : f && r._extend(l, f), U(l.showHidden) && (l.showHidden = !1), U(l.depth) && (l.depth = 2), U(l.colors) && (l.colors = !1), U(l.customInspect) && (l.customInspect = !0), l.colors && (l.stylize = d), w(l, o, l.depth);
1223
+ }
1224
+ r.inspect = u, u.colors = {
1225
+ bold: [1, 22],
1226
+ italic: [3, 23],
1227
+ underline: [4, 24],
1228
+ inverse: [7, 27],
1229
+ white: [37, 39],
1230
+ grey: [90, 39],
1231
+ black: [30, 39],
1232
+ blue: [34, 39],
1233
+ cyan: [36, 39],
1234
+ green: [32, 39],
1235
+ magenta: [35, 39],
1236
+ red: [31, 39],
1237
+ yellow: [33, 39]
1238
+ }, u.styles = {
1239
+ special: "cyan",
1240
+ number: "yellow",
1241
+ boolean: "yellow",
1242
+ undefined: "grey",
1243
+ null: "bold",
1244
+ string: "green",
1245
+ date: "magenta",
1246
+ // "name": intentionally not styling
1247
+ regexp: "red"
1248
+ };
1249
+ function d(o, f) {
1250
+ var l = u.styles[f];
1251
+ return l ? "\x1B[" + u.colors[l][0] + "m" + o + "\x1B[" + u.colors[l][1] + "m" : o;
1252
+ }
1253
+ function y(o, f) {
1254
+ return o;
1255
+ }
1256
+ function m(o) {
1257
+ var f = {};
1258
+ return o.forEach(function(l, h) {
1259
+ f[l] = !0;
1260
+ }), f;
1261
+ }
1262
+ function w(o, f, l) {
1263
+ if (o.customInspect && f && D(f.inspect) && // Filter out the util module, it's inspect function is special
1264
+ f.inspect !== r.inspect && // Also filter out any prototype objects using the circular check.
1265
+ !(f.constructor && f.constructor.prototype === f)) {
1266
+ var h = f.inspect(l, o);
1267
+ return B(h) || (h = w(o, h, l)), h;
1268
+ }
1269
+ var S = $(o, f);
1270
+ if (S)
1271
+ return S;
1272
+ var O = Object.keys(f), g = m(O);
1273
+ if (o.showHidden && (O = Object.getOwnPropertyNames(f)), W(f) && (O.indexOf("message") >= 0 || O.indexOf("description") >= 0))
1274
+ return E(f);
1275
+ if (O.length === 0) {
1276
+ if (D(f)) {
1277
+ var A = f.name ? ": " + f.name : "";
1278
+ return o.stylize("[Function" + A + "]", "special");
1279
+ }
1280
+ if (x(f))
1281
+ return o.stylize(RegExp.prototype.toString.call(f), "regexp");
1282
+ if (q(f))
1283
+ return o.stylize(Date.prototype.toString.call(f), "date");
1284
+ if (W(f))
1285
+ return E(f);
1286
+ }
1287
+ var j = "", R = !1, z = ["{", "}"];
1288
+ if (C(f) && (R = !0, z = ["[", "]"]), D(f)) {
1289
+ var pe = f.name ? ": " + f.name : "";
1290
+ j = " [Function" + pe + "]";
1291
+ }
1292
+ if (x(f) && (j = " " + RegExp.prototype.toString.call(f)), q(f) && (j = " " + Date.prototype.toUTCString.call(f)), W(f) && (j = " " + E(f)), O.length === 0 && (!R || f.length == 0))
1293
+ return z[0] + j + z[1];
1294
+ if (l < 0)
1295
+ return x(f) ? o.stylize(RegExp.prototype.toString.call(f), "regexp") : o.stylize("[Object]", "special");
1296
+ o.seen.push(f);
1297
+ var Z;
1298
+ return R ? Z = _(o, f, l, g, O) : Z = O.map(function(de) {
1299
+ return T(o, f, l, g, de, R);
1300
+ }), o.seen.pop(), N(Z, j, z);
1301
+ }
1302
+ function $(o, f) {
1303
+ if (U(f))
1304
+ return o.stylize("undefined", "undefined");
1305
+ if (B(f)) {
1306
+ var l = "'" + JSON.stringify(f).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
1307
+ return o.stylize(l, "string");
1308
+ }
1309
+ if (I(f))
1310
+ return o.stylize("" + f, "number");
1311
+ if (a(f))
1312
+ return o.stylize("" + f, "boolean");
1313
+ if (p(f))
1314
+ return o.stylize("null", "null");
1315
+ }
1316
+ function E(o) {
1317
+ return "[" + Error.prototype.toString.call(o) + "]";
1318
+ }
1319
+ function _(o, f, l, h, S) {
1320
+ for (var O = [], g = 0, A = f.length; g < A; ++g)
1321
+ J(f, String(g)) ? O.push(T(
1322
+ o,
1323
+ f,
1324
+ l,
1325
+ h,
1326
+ String(g),
1327
+ !0
1328
+ )) : O.push("");
1329
+ return S.forEach(function(j) {
1330
+ j.match(/^\d+$/) || O.push(T(
1331
+ o,
1332
+ f,
1333
+ l,
1334
+ h,
1335
+ j,
1336
+ !0
1337
+ ));
1338
+ }), O;
1339
+ }
1340
+ function T(o, f, l, h, S, O) {
1341
+ var g, A, j;
1342
+ if (j = Object.getOwnPropertyDescriptor(f, S) || { value: f[S] }, j.get ? j.set ? A = o.stylize("[Getter/Setter]", "special") : A = o.stylize("[Getter]", "special") : j.set && (A = o.stylize("[Setter]", "special")), J(h, S) || (g = "[" + S + "]"), A || (o.seen.indexOf(j.value) < 0 ? (p(l) ? A = w(o, j.value, null) : A = w(o, j.value, l - 1), A.indexOf(`
1343
+ `) > -1 && (O ? A = A.split(`
1344
+ `).map(function(R) {
1345
+ return " " + R;
1346
+ }).join(`
1347
+ `).slice(2) : A = `
1348
+ ` + A.split(`
1349
+ `).map(function(R) {
1350
+ return " " + R;
1351
+ }).join(`
1352
+ `))) : A = o.stylize("[Circular]", "special")), U(g)) {
1353
+ if (O && S.match(/^\d+$/))
1354
+ return A;
1355
+ g = JSON.stringify("" + S), g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (g = g.slice(1, -1), g = o.stylize(g, "name")) : (g = g.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), g = o.stylize(g, "string"));
1356
+ }
1357
+ return g + ": " + A;
1358
+ }
1359
+ function N(o, f, l) {
1360
+ var h = o.reduce(function(S, O) {
1361
+ return O.indexOf(`
1362
+ `) >= 0, S + O.replace(/\u001b\[\d\d?m/g, "").length + 1;
1363
+ }, 0);
1364
+ return h > 60 ? l[0] + (f === "" ? "" : f + `
1365
+ `) + " " + o.join(`,
1366
+ `) + " " + l[1] : l[0] + f + " " + o.join(", ") + " " + l[1];
1367
+ }
1368
+ r.types = Zr;
1369
+ function C(o) {
1370
+ return Array.isArray(o);
1371
+ }
1372
+ r.isArray = C;
1373
+ function a(o) {
1374
+ return typeof o == "boolean";
1375
+ }
1376
+ r.isBoolean = a;
1377
+ function p(o) {
1378
+ return o === null;
1379
+ }
1380
+ r.isNull = p;
1381
+ function b(o) {
1382
+ return o == null;
1383
+ }
1384
+ r.isNullOrUndefined = b;
1385
+ function I(o) {
1386
+ return typeof o == "number";
1387
+ }
1388
+ r.isNumber = I;
1389
+ function B(o) {
1390
+ return typeof o == "string";
1391
+ }
1392
+ r.isString = B;
1393
+ function Ne(o) {
1394
+ return typeof o == "symbol";
1395
+ }
1396
+ r.isSymbol = Ne;
1397
+ function U(o) {
1398
+ return o === void 0;
1399
+ }
1400
+ r.isUndefined = U;
1401
+ function x(o) {
1402
+ return k(o) && G(o) === "[object RegExp]";
1403
+ }
1404
+ r.isRegExp = x, r.types.isRegExp = x;
1405
+ function k(o) {
1406
+ return typeof o == "object" && o !== null;
1407
+ }
1408
+ r.isObject = k;
1409
+ function q(o) {
1410
+ return k(o) && G(o) === "[object Date]";
1411
+ }
1412
+ r.isDate = q, r.types.isDate = q;
1413
+ function W(o) {
1414
+ return k(o) && (G(o) === "[object Error]" || o instanceof Error);
1415
+ }
1416
+ r.isError = W, r.types.isNativeError = W;
1417
+ function D(o) {
1418
+ return typeof o == "function";
1419
+ }
1420
+ r.isFunction = D;
1421
+ function Re(o) {
1422
+ return o === null || typeof o == "boolean" || typeof o == "number" || typeof o == "string" || typeof o == "symbol" || // ES6 symbol
1423
+ typeof o > "u";
1424
+ }
1425
+ r.isPrimitive = Re, r.isBuffer = Ho;
1426
+ function G(o) {
1427
+ return Object.prototype.toString.call(o);
1428
+ }
1429
+ function ie(o) {
1430
+ return o < 10 ? "0" + o.toString(10) : o.toString(10);
1431
+ }
1432
+ var H = [
1433
+ "Jan",
1434
+ "Feb",
1435
+ "Mar",
1436
+ "Apr",
1437
+ "May",
1438
+ "Jun",
1439
+ "Jul",
1440
+ "Aug",
1441
+ "Sep",
1442
+ "Oct",
1443
+ "Nov",
1444
+ "Dec"
1445
+ ];
1446
+ function _e() {
1447
+ var o = /* @__PURE__ */ new Date(), f = [
1448
+ ie(o.getHours()),
1449
+ ie(o.getMinutes()),
1450
+ ie(o.getSeconds())
1451
+ ].join(":");
1452
+ return [o.getDate(), H[o.getMonth()], f].join(" ");
1453
+ }
1454
+ r.log = function() {
1455
+ console.log("%s - %s", _e(), r.format.apply(r, arguments));
1456
+ }, r.inherits = Et, r._extend = function(o, f) {
1457
+ if (!f || !k(f)) return o;
1458
+ for (var l = Object.keys(f), h = l.length; h--; )
1459
+ o[l[h]] = f[l[h]];
1460
+ return o;
1461
+ };
1462
+ function J(o, f) {
1463
+ return Object.prototype.hasOwnProperty.call(o, f);
1464
+ }
1465
+ var M = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
1466
+ r.promisify = function(f) {
1467
+ if (typeof f != "function")
1468
+ throw new TypeError('The "original" argument must be of type Function');
1469
+ if (M && f[M]) {
1470
+ var l = f[M];
1471
+ if (typeof l != "function")
1472
+ throw new TypeError('The "util.promisify.custom" argument must be of type Function');
1473
+ return Object.defineProperty(l, M, {
1474
+ value: l,
1475
+ enumerable: !1,
1476
+ writable: !1,
1477
+ configurable: !0
1478
+ }), l;
1479
+ }
1480
+ function l() {
1481
+ for (var h, S, O = new Promise(function(j, R) {
1482
+ h = j, S = R;
1483
+ }), g = [], A = 0; A < arguments.length; A++)
1484
+ g.push(arguments[A]);
1485
+ g.push(function(j, R) {
1486
+ j ? S(j) : h(R);
1487
+ });
1488
+ try {
1489
+ f.apply(this, g);
1490
+ } catch (j) {
1491
+ S(j);
1492
+ }
1493
+ return O;
1494
+ }
1495
+ return Object.setPrototypeOf(l, Object.getPrototypeOf(f)), M && Object.defineProperty(l, M, {
1496
+ value: l,
1497
+ enumerable: !1,
1498
+ writable: !1,
1499
+ configurable: !0
1500
+ }), Object.defineProperties(
1501
+ l,
1502
+ e(f)
1503
+ );
1504
+ }, r.promisify.custom = M;
1505
+ function K(o, f) {
1506
+ if (!o) {
1507
+ var l = new Error("Promise was rejected with a falsy value");
1508
+ l.reason = o, o = l;
1509
+ }
1510
+ return f(o);
1511
+ }
1512
+ function ye(o) {
1513
+ if (typeof o != "function")
1514
+ throw new TypeError('The "original" argument must be of type Function');
1515
+ function f() {
1516
+ for (var l = [], h = 0; h < arguments.length; h++)
1517
+ l.push(arguments[h]);
1518
+ var S = l.pop();
1519
+ if (typeof S != "function")
1520
+ throw new TypeError("The last argument must be of type Function");
1521
+ var O = this, g = function() {
1522
+ return S.apply(O, arguments);
1523
+ };
1524
+ o.apply(this, l).then(
1525
+ function(A) {
1526
+ L.nextTick(g.bind(null, null, A));
1527
+ },
1528
+ function(A) {
1529
+ L.nextTick(K.bind(null, A, g));
1530
+ }
1531
+ );
1532
+ }
1533
+ return Object.setPrototypeOf(f, Object.getPrototypeOf(o)), Object.defineProperties(
1534
+ f,
1535
+ e(o)
1536
+ ), f;
1537
+ }
1538
+ r.callbackify = ye;
1539
+ })(Rt);
1540
+ var ei = Jo;
1541
+ function Jo(r, e) {
1542
+ if (Ze("noDeprecation"))
1543
+ return r;
1544
+ var t = !1;
1545
+ function n() {
1546
+ if (!t) {
1547
+ if (Ze("throwDeprecation"))
1548
+ throw new Error(e);
1549
+ Ze("traceDeprecation") ? console.trace(e) : console.warn(e), t = !0;
1550
+ }
1551
+ return r.apply(this, arguments);
1552
+ }
1553
+ return n;
1554
+ }
1555
+ function Ze(r) {
1556
+ try {
1557
+ if (!Oe.localStorage) return !1;
1558
+ } catch {
1559
+ return !1;
1560
+ }
1561
+ var e = Oe.localStorage[r];
1562
+ return e == null ? !1 : String(e).toLowerCase() === "true";
1563
+ }
1564
+ var Ye = {}, ge = { exports: {} }, kr;
1565
+ function Ko() {
1566
+ return kr || (kr = 1, function(r, e) {
1567
+ var t = Nt, n = t.Buffer;
1568
+ function i(u, d) {
1569
+ for (var y in u)
1570
+ d[y] = u[y];
1571
+ }
1572
+ n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow ? r.exports = t : (i(t, e), e.Buffer = c);
1573
+ function c(u, d, y) {
1574
+ return n(u, d, y);
1575
+ }
1576
+ i(n, c), c.from = function(u, d, y) {
1577
+ if (typeof u == "number")
1578
+ throw new TypeError("Argument must not be a number");
1579
+ return n(u, d, y);
1580
+ }, c.alloc = function(u, d, y) {
1581
+ if (typeof u != "number")
1582
+ throw new TypeError("Argument must be a number");
1583
+ var m = n(u);
1584
+ return d !== void 0 ? typeof y == "string" ? m.fill(d, y) : m.fill(d) : m.fill(0), m;
1585
+ }, c.allocUnsafe = function(u) {
1586
+ if (typeof u != "number")
1587
+ throw new TypeError("Argument must be a number");
1588
+ return n(u);
1589
+ }, c.allocUnsafeSlow = function(u) {
1590
+ if (typeof u != "number")
1591
+ throw new TypeError("Argument must be a number");
1592
+ return t.SlowBuffer(u);
1593
+ };
1594
+ }(ge, ge.exports)), ge.exports;
1595
+ }
1596
+ var Gr;
1597
+ function ri() {
1598
+ if (Gr) return Ye;
1599
+ Gr = 1;
1600
+ var r = Ko().Buffer, e = r.isEncoding || function(a) {
1601
+ switch (a = "" + a, a && a.toLowerCase()) {
1602
+ case "hex":
1603
+ case "utf8":
1604
+ case "utf-8":
1605
+ case "ascii":
1606
+ case "binary":
1607
+ case "base64":
1608
+ case "ucs2":
1609
+ case "ucs-2":
1610
+ case "utf16le":
1611
+ case "utf-16le":
1612
+ case "raw":
1613
+ return !0;
1614
+ default:
1615
+ return !1;
1616
+ }
1617
+ };
1618
+ function t(a) {
1619
+ if (!a) return "utf8";
1620
+ for (var p; ; )
1621
+ switch (a) {
1622
+ case "utf8":
1623
+ case "utf-8":
1624
+ return "utf8";
1625
+ case "ucs2":
1626
+ case "ucs-2":
1627
+ case "utf16le":
1628
+ case "utf-16le":
1629
+ return "utf16le";
1630
+ case "latin1":
1631
+ case "binary":
1632
+ return "latin1";
1633
+ case "base64":
1634
+ case "ascii":
1635
+ case "hex":
1636
+ return a;
1637
+ default:
1638
+ if (p) return;
1639
+ a = ("" + a).toLowerCase(), p = !0;
1640
+ }
1641
+ }
1642
+ function n(a) {
1643
+ var p = t(a);
1644
+ if (typeof p != "string" && (r.isEncoding === e || !e(a))) throw new Error("Unknown encoding: " + a);
1645
+ return p || a;
1646
+ }
1647
+ Ye.StringDecoder = i;
1648
+ function i(a) {
1649
+ this.encoding = n(a);
1650
+ var p;
1651
+ switch (this.encoding) {
1652
+ case "utf16le":
1653
+ this.text = $, this.end = E, p = 4;
1654
+ break;
1655
+ case "utf8":
1656
+ this.fillLast = y, p = 4;
1657
+ break;
1658
+ case "base64":
1659
+ this.text = _, this.end = T, p = 3;
1660
+ break;
1661
+ default:
1662
+ this.write = N, this.end = C;
1663
+ return;
1664
+ }
1665
+ this.lastNeed = 0, this.lastTotal = 0, this.lastChar = r.allocUnsafe(p);
1666
+ }
1667
+ i.prototype.write = function(a) {
1668
+ if (a.length === 0) return "";
1669
+ var p, b;
1670
+ if (this.lastNeed) {
1671
+ if (p = this.fillLast(a), p === void 0) return "";
1672
+ b = this.lastNeed, this.lastNeed = 0;
1673
+ } else
1674
+ b = 0;
1675
+ return b < a.length ? p ? p + this.text(a, b) : this.text(a, b) : p || "";
1676
+ }, i.prototype.end = w, i.prototype.text = m, i.prototype.fillLast = function(a) {
1677
+ if (this.lastNeed <= a.length)
1678
+ return a.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
1679
+ a.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, a.length), this.lastNeed -= a.length;
1680
+ };
1681
+ function c(a) {
1682
+ return a <= 127 ? 0 : a >> 5 === 6 ? 2 : a >> 4 === 14 ? 3 : a >> 3 === 30 ? 4 : a >> 6 === 2 ? -1 : -2;
1683
+ }
1684
+ function u(a, p, b) {
1685
+ var I = p.length - 1;
1686
+ if (I < b) return 0;
1687
+ var B = c(p[I]);
1688
+ return B >= 0 ? (B > 0 && (a.lastNeed = B - 1), B) : --I < b || B === -2 ? 0 : (B = c(p[I]), B >= 0 ? (B > 0 && (a.lastNeed = B - 2), B) : --I < b || B === -2 ? 0 : (B = c(p[I]), B >= 0 ? (B > 0 && (B === 2 ? B = 0 : a.lastNeed = B - 3), B) : 0));
1689
+ }
1690
+ function d(a, p, b) {
1691
+ if ((p[0] & 192) !== 128)
1692
+ return a.lastNeed = 0, "�";
1693
+ if (a.lastNeed > 1 && p.length > 1) {
1694
+ if ((p[1] & 192) !== 128)
1695
+ return a.lastNeed = 1, "�";
1696
+ if (a.lastNeed > 2 && p.length > 2 && (p[2] & 192) !== 128)
1697
+ return a.lastNeed = 2, "�";
1698
+ }
1699
+ }
1700
+ function y(a) {
1701
+ var p = this.lastTotal - this.lastNeed, b = d(this, a);
1702
+ if (b !== void 0) return b;
1703
+ if (this.lastNeed <= a.length)
1704
+ return a.copy(this.lastChar, p, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
1705
+ a.copy(this.lastChar, p, 0, a.length), this.lastNeed -= a.length;
1706
+ }
1707
+ function m(a, p) {
1708
+ var b = u(this, a, p);
1709
+ if (!this.lastNeed) return a.toString("utf8", p);
1710
+ this.lastTotal = b;
1711
+ var I = a.length - (b - this.lastNeed);
1712
+ return a.copy(this.lastChar, 0, I), a.toString("utf8", p, I);
1713
+ }
1714
+ function w(a) {
1715
+ var p = a && a.length ? this.write(a) : "";
1716
+ return this.lastNeed ? p + "�" : p;
1717
+ }
1718
+ function $(a, p) {
1719
+ if ((a.length - p) % 2 === 0) {
1720
+ var b = a.toString("utf16le", p);
1721
+ if (b) {
1722
+ var I = b.charCodeAt(b.length - 1);
1723
+ if (I >= 55296 && I <= 56319)
1724
+ return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = a[a.length - 2], this.lastChar[1] = a[a.length - 1], b.slice(0, -1);
1725
+ }
1726
+ return b;
1727
+ }
1728
+ return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = a[a.length - 1], a.toString("utf16le", p, a.length - 1);
1729
+ }
1730
+ function E(a) {
1731
+ var p = a && a.length ? this.write(a) : "";
1732
+ if (this.lastNeed) {
1733
+ var b = this.lastTotal - this.lastNeed;
1734
+ return p + this.lastChar.toString("utf16le", 0, b);
1735
+ }
1736
+ return p;
1737
+ }
1738
+ function _(a, p) {
1739
+ var b = (a.length - p) % 3;
1740
+ return b === 0 ? a.toString("base64", p) : (this.lastNeed = 3 - b, this.lastTotal = 3, b === 1 ? this.lastChar[0] = a[a.length - 1] : (this.lastChar[0] = a[a.length - 2], this.lastChar[1] = a[a.length - 1]), a.toString("base64", p, a.length - b));
1741
+ }
1742
+ function T(a) {
1743
+ var p = a && a.length ? this.write(a) : "";
1744
+ return this.lastNeed ? p + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : p;
1745
+ }
1746
+ function N(a) {
1747
+ return a.toString(this.encoding);
1748
+ }
1749
+ function C(a) {
1750
+ return a && a.length ? this.write(a) : "";
1751
+ }
1752
+ return Ye;
1753
+ }
1754
+ export {
1755
+ ri as a,
1756
+ ei as b,
1757
+ ce as c,
1758
+ Xo as e,
1759
+ st as g,
1760
+ Et as i,
1761
+ Nt as r,
1762
+ fe as t,
1763
+ Rt as u
1764
+ };