@harbour-enterprises/superdoc 0.9.42 → 0.9.43

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