indexeddbshim 15.2.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badges/licenses-badge-dev.svg +1 -1
- package/badges/licenses-badge.svg +1 -1
- package/dist/DOMException.d.ts +2 -2
- package/dist/DOMException.d.ts.map +1 -1
- package/dist/DOMStringList.d.ts.map +1 -1
- package/dist/Event.d.ts +1 -1
- package/dist/Event.d.ts.map +1 -1
- package/dist/IDBCursor.d.ts +1 -1
- package/dist/IDBCursor.d.ts.map +1 -1
- package/dist/IDBDatabase.d.ts.map +1 -1
- package/dist/IDBFactory.d.ts +1 -1
- package/dist/IDBFactory.d.ts.map +1 -1
- package/dist/IDBIndex.d.ts +3 -3
- package/dist/IDBIndex.d.ts.map +1 -1
- package/dist/IDBKeyRange.d.ts +2 -2
- package/dist/IDBKeyRange.d.ts.map +1 -1
- package/dist/IDBObjectStore.d.ts +3 -3
- package/dist/IDBObjectStore.d.ts.map +1 -1
- package/dist/IDBTransaction.d.ts.map +1 -1
- package/dist/Key.d.ts +7 -7
- package/dist/Key.d.ts.map +1 -1
- package/dist/Sca.d.ts +1 -1
- package/dist/Sca.d.ts.map +1 -1
- package/dist/indexeddbshim-Key.js +11 -12
- package/dist/indexeddbshim-Key.js.map +1 -1
- package/dist/indexeddbshim-Key.min.js +2 -2
- package/dist/indexeddbshim-Key.min.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +794 -696
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +301 -489
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +4 -2
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +794 -696
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +301 -489
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +4 -2
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +301 -489
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +4 -2
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/setGlobalVars.d.ts +1 -1
- package/dist/setGlobalVars.d.ts.map +1 -1
- package/dist/unicode-regex.d.ts +2 -2
- package/dist/unicode-regex.d.ts.map +1 -1
- package/dist/util.d.ts +1 -1
- package/dist/util.d.ts.map +1 -1
- package/package.json +27 -27
- package/src/DOMException.js +0 -1
- package/src/DOMStringList.js +0 -1
- package/src/IDBCursor.js +1 -1
- package/src/IDBFactory.js +2 -3
- package/src/IDBIndex.js +1 -2
- package/src/IDBKeyRange.js +1 -0
- package/src/IDBObjectStore.js +0 -1
- package/src/IDBTransaction.js +0 -1
- package/src/Key.js +1 -1
- package/src/setGlobalVars.js +1 -1
- package/src/unicode-regex.js +12 -3
- package/src/util.js +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v16.0.0 - 6/14/2025 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
function _defineProperties(e, r) {
|
|
55
55
|
for (var t = 0; t < r.length; t++) {
|
|
56
56
|
var o = r[t];
|
|
57
|
-
o.enumerable = o.enumerable ||
|
|
57
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey$1(o.key), o);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function _createClass$1(e, r, t) {
|
|
61
61
|
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
62
|
-
writable:
|
|
62
|
+
writable: false
|
|
63
63
|
}), e;
|
|
64
64
|
}
|
|
65
65
|
function _createForOfIteratorHelper(r, e) {
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
s: F,
|
|
74
74
|
n: function () {
|
|
75
75
|
return n >= r.length ? {
|
|
76
|
-
done:
|
|
76
|
+
done: true
|
|
77
77
|
} : {
|
|
78
|
-
done:
|
|
78
|
+
done: false,
|
|
79
79
|
value: r[n++]
|
|
80
80
|
};
|
|
81
81
|
},
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
89
89
|
}
|
|
90
90
|
var o,
|
|
91
|
-
a =
|
|
92
|
-
u =
|
|
91
|
+
a = true,
|
|
92
|
+
u = false;
|
|
93
93
|
return {
|
|
94
94
|
s: function () {
|
|
95
95
|
t = t.call(r);
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
return a = r.done, r;
|
|
100
100
|
},
|
|
101
101
|
e: function (r) {
|
|
102
|
-
u =
|
|
102
|
+
u = true, o = r;
|
|
103
103
|
},
|
|
104
104
|
f: function () {
|
|
105
105
|
try {
|
|
@@ -112,17 +112,17 @@
|
|
|
112
112
|
}
|
|
113
113
|
function _defineAccessor(e, r, n, t) {
|
|
114
114
|
var c = {
|
|
115
|
-
configurable:
|
|
116
|
-
enumerable:
|
|
115
|
+
configurable: true,
|
|
116
|
+
enumerable: true
|
|
117
117
|
};
|
|
118
118
|
return c[e] = t, Object.defineProperty(r, n, c);
|
|
119
119
|
}
|
|
120
120
|
function _defineProperty$1(e, r, t) {
|
|
121
121
|
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
122
122
|
value: t,
|
|
123
|
-
enumerable:
|
|
124
|
-
configurable:
|
|
125
|
-
writable:
|
|
123
|
+
enumerable: true,
|
|
124
|
+
configurable: true,
|
|
125
|
+
writable: true
|
|
126
126
|
}) : e[r] = t, e;
|
|
127
127
|
}
|
|
128
128
|
function _isNativeReflectConstruct() {
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
i,
|
|
145
145
|
u,
|
|
146
146
|
a = [],
|
|
147
|
-
f =
|
|
148
|
-
o =
|
|
147
|
+
f = true,
|
|
148
|
+
o = false;
|
|
149
149
|
try {
|
|
150
150
|
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
151
151
|
} catch (r) {
|
|
152
|
-
o =
|
|
152
|
+
o = true, n = r;
|
|
153
153
|
} finally {
|
|
154
154
|
try {
|
|
155
155
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
function _objectSpread2$1(e) {
|
|
180
180
|
for (var r = 1; r < arguments.length; r++) {
|
|
181
181
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
182
|
-
r % 2 ? ownKeys$1(Object(t),
|
|
182
|
+
r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) {
|
|
183
183
|
_defineProperty$1(e, r, t[r]);
|
|
184
184
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
|
|
185
185
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -187,306 +187,115 @@
|
|
|
187
187
|
}
|
|
188
188
|
return e;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
y = {};
|
|
247
|
-
function Generator() {}
|
|
248
|
-
function GeneratorFunction() {}
|
|
249
|
-
function GeneratorFunctionPrototype() {}
|
|
250
|
-
var p = {};
|
|
251
|
-
define(p, a, function () {
|
|
252
|
-
return this;
|
|
253
|
-
});
|
|
254
|
-
var d = Object.getPrototypeOf,
|
|
255
|
-
v = d && d(d(values([])));
|
|
256
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
257
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
258
|
-
function defineIteratorMethods(t) {
|
|
259
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
260
|
-
define(t, e, function (t) {
|
|
261
|
-
return this._invoke(e, t);
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function AsyncIterator(t, e) {
|
|
266
|
-
function invoke(r, o, i, a) {
|
|
267
|
-
var c = tryCatch(t[r], t, o);
|
|
268
|
-
if ("throw" !== c.type) {
|
|
269
|
-
var u = c.arg,
|
|
270
|
-
h = u.value;
|
|
271
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
272
|
-
invoke("next", t, i, a);
|
|
273
|
-
}, function (t) {
|
|
274
|
-
invoke("throw", t, i, a);
|
|
275
|
-
}) : e.resolve(h).then(function (t) {
|
|
276
|
-
u.value = t, i(u);
|
|
277
|
-
}, function (t) {
|
|
278
|
-
return invoke("throw", t, i, a);
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
a(c.arg);
|
|
282
|
-
}
|
|
283
|
-
var r;
|
|
284
|
-
o(this, "_invoke", {
|
|
285
|
-
value: function (t, n) {
|
|
286
|
-
function callInvokeWithMethodAndArg() {
|
|
287
|
-
return new e(function (e, r) {
|
|
288
|
-
invoke(t, n, e, r);
|
|
289
|
-
});
|
|
190
|
+
function _regenerator() {
|
|
191
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
192
|
+
var e,
|
|
193
|
+
t,
|
|
194
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
195
|
+
n = r.iterator || "@@iterator",
|
|
196
|
+
o = r.toStringTag || "@@toStringTag";
|
|
197
|
+
function i(r, n, o, i) {
|
|
198
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
199
|
+
u = Object.create(c.prototype);
|
|
200
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
201
|
+
var i,
|
|
202
|
+
c,
|
|
203
|
+
u,
|
|
204
|
+
f = 0,
|
|
205
|
+
p = o || [],
|
|
206
|
+
y = false,
|
|
207
|
+
G = {
|
|
208
|
+
p: 0,
|
|
209
|
+
n: 0,
|
|
210
|
+
v: e,
|
|
211
|
+
a: d,
|
|
212
|
+
f: d.bind(e, 4),
|
|
213
|
+
d: function (t, r) {
|
|
214
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
function d(r, n) {
|
|
218
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
219
|
+
var o,
|
|
220
|
+
i = p[t],
|
|
221
|
+
d = G.p,
|
|
222
|
+
l = i[2];
|
|
223
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
224
|
+
}
|
|
225
|
+
if (o || r > 1) return a;
|
|
226
|
+
throw y = true, n;
|
|
227
|
+
}
|
|
228
|
+
return function (o, p, l) {
|
|
229
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
230
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
231
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
232
|
+
try {
|
|
233
|
+
if (f = 2, i) {
|
|
234
|
+
if (c || (o = "next"), t = i[o]) {
|
|
235
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
236
|
+
if (!t.done) return t;
|
|
237
|
+
u = t.value, c < 2 && (c = 0);
|
|
238
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
239
|
+
i = e;
|
|
240
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
241
|
+
} catch (t) {
|
|
242
|
+
i = e, c = 1, u = t;
|
|
243
|
+
} finally {
|
|
244
|
+
f = 1;
|
|
245
|
+
}
|
|
290
246
|
}
|
|
291
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function makeInvokeMethod(e, r, n) {
|
|
296
|
-
var o = h;
|
|
297
|
-
return function (i, a) {
|
|
298
|
-
if (o === f) throw Error("Generator is already running");
|
|
299
|
-
if (o === s) {
|
|
300
|
-
if ("throw" === i) throw a;
|
|
301
247
|
return {
|
|
302
248
|
value: t,
|
|
303
|
-
done:
|
|
249
|
+
done: y
|
|
304
250
|
};
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
var c = n.delegate;
|
|
308
|
-
if (c) {
|
|
309
|
-
var u = maybeInvokeDelegate(c, n);
|
|
310
|
-
if (u) {
|
|
311
|
-
if (u === y) continue;
|
|
312
|
-
return u;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
316
|
-
if (o === h) throw o = s, n.arg;
|
|
317
|
-
n.dispatchException(n.arg);
|
|
318
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
319
|
-
o = f;
|
|
320
|
-
var p = tryCatch(e, r, n);
|
|
321
|
-
if ("normal" === p.type) {
|
|
322
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
323
|
-
return {
|
|
324
|
-
value: p.arg,
|
|
325
|
-
done: n.done
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
329
|
-
}
|
|
330
|
-
};
|
|
251
|
+
};
|
|
252
|
+
}(r, o, i), true), u;
|
|
331
253
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
function
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
346
|
-
}
|
|
347
|
-
function resetTryEntry(t) {
|
|
348
|
-
var e = t.completion || {};
|
|
349
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
350
|
-
}
|
|
351
|
-
function Context(t) {
|
|
352
|
-
this.tryEntries = [{
|
|
353
|
-
tryLoc: "root"
|
|
354
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
355
|
-
}
|
|
356
|
-
function values(e) {
|
|
357
|
-
if (e || "" === e) {
|
|
358
|
-
var r = e[a];
|
|
359
|
-
if (r) return r.call(e);
|
|
360
|
-
if ("function" == typeof e.next) return e;
|
|
361
|
-
if (!isNaN(e.length)) {
|
|
362
|
-
var o = -1,
|
|
363
|
-
i = function next() {
|
|
364
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
365
|
-
return next.value = t, next.done = !0, next;
|
|
366
|
-
};
|
|
367
|
-
return i.next = i;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
371
|
-
}
|
|
372
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
373
|
-
value: GeneratorFunctionPrototype,
|
|
374
|
-
configurable: !0
|
|
375
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
376
|
-
value: GeneratorFunction,
|
|
377
|
-
configurable: !0
|
|
378
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
379
|
-
var e = "function" == typeof t && t.constructor;
|
|
380
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
381
|
-
}, e.mark = function (t) {
|
|
382
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
383
|
-
}, e.awrap = function (t) {
|
|
384
|
-
return {
|
|
385
|
-
__await: t
|
|
386
|
-
};
|
|
387
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
388
|
-
return this;
|
|
389
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
390
|
-
void 0 === i && (i = Promise);
|
|
391
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
392
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
393
|
-
return t.done ? t.value : a.next();
|
|
394
|
-
});
|
|
395
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
254
|
+
var a = {};
|
|
255
|
+
function Generator() {}
|
|
256
|
+
function GeneratorFunction() {}
|
|
257
|
+
function GeneratorFunctionPrototype() {}
|
|
258
|
+
t = Object.getPrototypeOf;
|
|
259
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
260
|
+
return this;
|
|
261
|
+
}), t),
|
|
262
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
263
|
+
function f(e) {
|
|
264
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
265
|
+
}
|
|
266
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
396
267
|
return this;
|
|
397
|
-
}),
|
|
268
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
398
269
|
return "[object Generator]";
|
|
399
|
-
}),
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
return r.reverse(), function next() {
|
|
404
|
-
for (; r.length;) {
|
|
405
|
-
var t = r.pop();
|
|
406
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
407
|
-
}
|
|
408
|
-
return next.done = !0, next;
|
|
270
|
+
}), (_regenerator = function () {
|
|
271
|
+
return {
|
|
272
|
+
w: i,
|
|
273
|
+
m: f
|
|
409
274
|
};
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
431
|
-
if (i.tryLoc <= this.prev) {
|
|
432
|
-
var c = n.call(i, "catchLoc"),
|
|
433
|
-
u = n.call(i, "finallyLoc");
|
|
434
|
-
if (c && u) {
|
|
435
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
436
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
437
|
-
} else if (c) {
|
|
438
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
439
|
-
} else {
|
|
440
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
441
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
abrupt: function (t, e) {
|
|
447
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
448
|
-
var o = this.tryEntries[r];
|
|
449
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
450
|
-
var i = o;
|
|
451
|
-
break;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
455
|
-
var a = i ? i.completion : {};
|
|
456
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
457
|
-
},
|
|
458
|
-
complete: function (t, e) {
|
|
459
|
-
if ("throw" === t.type) throw t.arg;
|
|
460
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
461
|
-
},
|
|
462
|
-
finish: function (t) {
|
|
463
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
464
|
-
var r = this.tryEntries[e];
|
|
465
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
catch: function (t) {
|
|
469
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
470
|
-
var r = this.tryEntries[e];
|
|
471
|
-
if (r.tryLoc === t) {
|
|
472
|
-
var n = r.completion;
|
|
473
|
-
if ("throw" === n.type) {
|
|
474
|
-
var o = n.arg;
|
|
475
|
-
resetTryEntry(r);
|
|
476
|
-
}
|
|
477
|
-
return o;
|
|
478
|
-
}
|
|
275
|
+
})();
|
|
276
|
+
}
|
|
277
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
278
|
+
var i = Object.defineProperty;
|
|
279
|
+
try {
|
|
280
|
+
i({}, "", {});
|
|
281
|
+
} catch (e) {
|
|
282
|
+
i = 0;
|
|
283
|
+
}
|
|
284
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
285
|
+
if (r) i ? i(e, r, {
|
|
286
|
+
value: n,
|
|
287
|
+
enumerable: !t,
|
|
288
|
+
configurable: !t,
|
|
289
|
+
writable: !t
|
|
290
|
+
}) : e[r] = n;else {
|
|
291
|
+
function o(r, n) {
|
|
292
|
+
_regeneratorDefine(e, r, function (e) {
|
|
293
|
+
return this._invoke(r, n, e);
|
|
294
|
+
});
|
|
479
295
|
}
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
delegateYield: function (e, r, n) {
|
|
483
|
-
return this.delegate = {
|
|
484
|
-
iterator: values(e),
|
|
485
|
-
resultName: r,
|
|
486
|
-
nextLoc: n
|
|
487
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
296
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
488
297
|
}
|
|
489
|
-
}, e;
|
|
298
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
490
299
|
}
|
|
491
300
|
function _slicedToArray$1(r, e) {
|
|
492
301
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
@@ -505,7 +314,7 @@
|
|
|
505
314
|
if ("object" != typeof t || !t) return t;
|
|
506
315
|
var e = t[Symbol.toPrimitive];
|
|
507
316
|
if (void 0 !== e) {
|
|
508
|
-
var i = e.call(t, r
|
|
317
|
+
var i = e.call(t, r);
|
|
509
318
|
if ("object" != typeof i) return i;
|
|
510
319
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
511
320
|
}
|
|
@@ -1700,8 +1509,16 @@
|
|
|
1700
1509
|
function getDefaultExportFromCjs(x) {
|
|
1701
1510
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1702
1511
|
}
|
|
1703
|
-
var regex
|
|
1704
|
-
var
|
|
1512
|
+
var regex$1;
|
|
1513
|
+
var hasRequiredRegex;
|
|
1514
|
+
function requireRegex() {
|
|
1515
|
+
if (hasRequiredRegex) return regex$1;
|
|
1516
|
+
hasRequiredRegex = 1;
|
|
1517
|
+
regex$1 = /[\xC0-\xC5\xC7-\xCF\xD1-\xD6\xD9-\xDD\xE0-\xE5\xE7-\xEF\xF1-\xF6\xF9-\xFD\xFF-\u010F\u0112-\u0125\u0128-\u0130\u0134-\u0137\u0139-\u013E\u0143-\u0148\u014C-\u0151\u0154-\u0165\u0168-\u017E\u01A0\u01A1\u01AF\u01B0\u01CD-\u01DC\u01DE-\u01E3\u01E6-\u01F0\u01F4\u01F5\u01F8-\u021B\u021E\u021F\u0226-\u0233\u0344\u0385\u0386\u0388-\u038A\u038C\u038E-\u0390\u03AA-\u03B0\u03CA-\u03CE\u03D3\u03D4\u0400\u0401\u0403\u0407\u040C-\u040E\u0419\u0439\u0450\u0451\u0453\u0457\u045C-\u045E\u0476\u0477\u04C1\u04C2\u04D0-\u04D3\u04D6\u04D7\u04DA-\u04DF\u04E2-\u04E7\u04EA-\u04F5\u04F8\u04F9\u0622-\u0626\u06C0\u06C2\u06D3\u0929\u0931\u0934\u0958-\u095F\u09CB\u09CC\u09DC\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B48\u0B4B\u0B4C\u0B5C\u0B5D\u0B94\u0BCA-\u0BCC\u0C48\u0CC0\u0CC7\u0CC8\u0CCA\u0CCB\u0D4A-\u0D4C\u0DDA\u0DDC-\u0DDE\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u0F73\u0F75\u0F76\u0F78\u0F81\u0F93\u0F9D\u0FA2\u0FA7\u0FAC\u0FB9\u1026\u1B06\u1B08\u1B0A\u1B0C\u1B0E\u1B12\u1B3B\u1B3D\u1B40\u1B41\u1B43\u1E00-\u1E99\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FC1-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEE\u1FF2-\u1FF4\u1FF6-\u1FFC\u212B\u219A\u219B\u21AE\u21CD-\u21CF\u2204\u2209\u220C\u2224\u2226\u2241\u2244\u2247\u2249\u2260\u2262\u226D-\u2271\u2274\u2275\u2278\u2279\u2280\u2281\u2284\u2285\u2288\u2289\u22AC-\u22AF\u22E0-\u22E3\u22EA-\u22ED\u2ADC\u304C\u304E\u3050\u3052\u3054\u3056\u3058\u305A\u305C\u305E\u3060\u3062\u3065\u3067\u3069\u3070\u3071\u3073\u3074\u3076\u3077\u3079\u307A\u307C\u307D\u3094\u309E\u30AC\u30AE\u30B0\u30B2\u30B4\u30B6\u30B8\u30BA\u30BC\u30BE\u30C0\u30C2\u30C5\u30C7\u30C9\u30D0\u30D1\u30D3\u30D4\u30D6\u30D7\u30D9\u30DA\u30DC\u30DD\u30F4\u30F7-\u30FA\u30FE\uAC00-\uD7A3\uFB1D\uFB1F\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4E]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1518
|
+
return regex$1;
|
|
1519
|
+
}
|
|
1520
|
+
var regexExports = requireRegex();
|
|
1521
|
+
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1705
1522
|
|
|
1706
1523
|
/**
|
|
1707
1524
|
* @typedef {number} Integer
|
|
@@ -1796,7 +1613,7 @@
|
|
|
1796
1613
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1797
1614
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1798
1615
|
// ES6 copying of regex with different flags
|
|
1799
|
-
db = db.replaceAll(new RegExp(regex
|
|
1616
|
+
db = db.replaceAll(new RegExp(regex, 'gu'), function (expandable) {
|
|
1800
1617
|
return '^4' + /** @type {Integer} */expandable.codePointAt(0).toString(16).padStart(6, '0');
|
|
1801
1618
|
});
|
|
1802
1619
|
}
|
|
@@ -2614,7 +2431,6 @@
|
|
|
2614
2431
|
// Native DOMException works as expected
|
|
2615
2432
|
useNativeDOMException = true;
|
|
2616
2433
|
}
|
|
2617
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
2618
2434
|
} catch (err) {}
|
|
2619
2435
|
var createDOMException = useNativeDOMException
|
|
2620
2436
|
// eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
|
|
@@ -3370,7 +3186,7 @@
|
|
|
3370
3186
|
key = key.slice(2);
|
|
3371
3187
|
if (inArray) {
|
|
3372
3188
|
// remove the space at the end, and the dash before each character
|
|
3373
|
-
key = key.slice(0, -1).replaceAll(
|
|
3189
|
+
key = key.slice(0, -1).replaceAll(/-((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g, '$1');
|
|
3374
3190
|
}
|
|
3375
3191
|
return key;
|
|
3376
3192
|
}
|
|
@@ -3763,7 +3579,7 @@
|
|
|
3763
3579
|
value: date.getTime()
|
|
3764
3580
|
} : {
|
|
3765
3581
|
type: type,
|
|
3766
|
-
value: new Date(date
|
|
3582
|
+
value: new Date(date)
|
|
3767
3583
|
};
|
|
3768
3584
|
}
|
|
3769
3585
|
return {
|
|
@@ -4596,7 +4412,6 @@
|
|
|
4596
4412
|
if (testObject.test) {
|
|
4597
4413
|
cleanInterface = true;
|
|
4598
4414
|
}
|
|
4599
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
4600
4415
|
} catch (err) {
|
|
4601
4416
|
// Object.defineProperty does not work as intended.
|
|
4602
4417
|
}
|
|
@@ -4727,25 +4542,24 @@
|
|
|
4727
4542
|
}
|
|
4728
4543
|
this.sortList();
|
|
4729
4544
|
}
|
|
4730
|
-
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/
|
|
4545
|
+
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4731
4546
|
var i;
|
|
4732
|
-
return
|
|
4733
|
-
while (1) switch (_context.
|
|
4547
|
+
return _regenerator().w(function (_context) {
|
|
4548
|
+
while (1) switch (_context.n) {
|
|
4734
4549
|
case 0:
|
|
4735
4550
|
i = 0;
|
|
4736
4551
|
case 1:
|
|
4737
4552
|
if (!(i < this._items.length)) {
|
|
4738
|
-
_context.
|
|
4553
|
+
_context.n = 3;
|
|
4739
4554
|
break;
|
|
4740
4555
|
}
|
|
4741
|
-
_context.
|
|
4556
|
+
_context.n = 2;
|
|
4742
4557
|
return this._items[i++];
|
|
4743
|
-
case
|
|
4744
|
-
_context.
|
|
4558
|
+
case 2:
|
|
4559
|
+
_context.n = 1;
|
|
4745
4560
|
break;
|
|
4746
|
-
case
|
|
4747
|
-
|
|
4748
|
-
return _context.stop();
|
|
4561
|
+
case 3:
|
|
4562
|
+
return _context.a(2);
|
|
4749
4563
|
}
|
|
4750
4564
|
}, _callee, this);
|
|
4751
4565
|
}));
|
|
@@ -5475,7 +5289,6 @@
|
|
|
5475
5289
|
}
|
|
5476
5290
|
try {
|
|
5477
5291
|
me.__tx.executeSql('ROLLBACK', [], abort, /** @type {SQLStatementErrorCallback} */abort); // Not working in some circumstances, even in Node
|
|
5478
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
5479
5292
|
} catch (err) {
|
|
5480
5293
|
// Browser errs when transaction has ended and since it most likely already erred here,
|
|
5481
5294
|
// we call to abort
|
|
@@ -5602,7 +5415,7 @@
|
|
|
5602
5415
|
function _objectSpread2(e) {
|
|
5603
5416
|
for (var t = 1; t < arguments.length; t++) {
|
|
5604
5417
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
5605
|
-
t % 2 ? ownKeys(Object(r),
|
|
5418
|
+
t % 2 ? ownKeys(Object(r), true).forEach(function (t) {
|
|
5606
5419
|
_defineProperty(e, t, r[t]);
|
|
5607
5420
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ownKeys(Object(r)).forEach(function (t) {
|
|
5608
5421
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
@@ -5624,18 +5437,18 @@
|
|
|
5624
5437
|
return t && function _defineProperties(e, t) {
|
|
5625
5438
|
for (var r = 0; r < t.length; r++) {
|
|
5626
5439
|
var n = t[r];
|
|
5627
|
-
n.enumerable = n.enumerable ||
|
|
5440
|
+
n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(e, _toPropertyKey(n.key), n);
|
|
5628
5441
|
}
|
|
5629
5442
|
}(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
5630
|
-
writable:
|
|
5443
|
+
writable: false
|
|
5631
5444
|
}), e;
|
|
5632
5445
|
}
|
|
5633
5446
|
function _defineProperty(e, t, r) {
|
|
5634
5447
|
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5635
5448
|
value: r,
|
|
5636
|
-
enumerable:
|
|
5637
|
-
configurable:
|
|
5638
|
-
writable:
|
|
5449
|
+
enumerable: true,
|
|
5450
|
+
configurable: true,
|
|
5451
|
+
writable: true
|
|
5639
5452
|
}) : e[t] = r, e;
|
|
5640
5453
|
}
|
|
5641
5454
|
function _slicedToArray(e, t) {
|
|
@@ -5649,15 +5462,15 @@
|
|
|
5649
5462
|
o,
|
|
5650
5463
|
i,
|
|
5651
5464
|
c = [],
|
|
5652
|
-
s =
|
|
5653
|
-
u =
|
|
5465
|
+
s = true,
|
|
5466
|
+
u = false;
|
|
5654
5467
|
try {
|
|
5655
5468
|
if (o = (r = r.call(e)).next, 0 === t) {
|
|
5656
5469
|
if (Object(r) !== r) return;
|
|
5657
5470
|
s = !1;
|
|
5658
5471
|
} else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
|
|
5659
5472
|
} catch (e) {
|
|
5660
|
-
u =
|
|
5473
|
+
u = true, a = e;
|
|
5661
5474
|
} finally {
|
|
5662
5475
|
try {
|
|
5663
5476
|
if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
@@ -5744,13 +5557,13 @@
|
|
|
5744
5557
|
var t = Object.hasOwn,
|
|
5745
5558
|
r = Object.getPrototypeOf;
|
|
5746
5559
|
function isThenable(e, t) {
|
|
5747
|
-
return isObject(e) && "function" == typeof e.then && (
|
|
5560
|
+
return isObject(e) && "function" == typeof e.then && (true || "function" == typeof e["catch"]);
|
|
5748
5561
|
}
|
|
5749
5562
|
function toStringTag(e) {
|
|
5750
5563
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5751
5564
|
}
|
|
5752
5565
|
function hasConstructorOf(e, n) {
|
|
5753
|
-
if (!e || "object" !== _typeof(e)) return
|
|
5566
|
+
if (!e || "object" !== _typeof(e)) return false;
|
|
5754
5567
|
var a = r(e);
|
|
5755
5568
|
if (!a) return null === n;
|
|
5756
5569
|
var o = t(a, "constructor") && a.constructor;
|
|
@@ -5760,7 +5573,7 @@
|
|
|
5760
5573
|
return !(!e || "Object" !== toStringTag(e)) && (!r(e) || hasConstructorOf(e, Object));
|
|
5761
5574
|
}
|
|
5762
5575
|
function isUserObject(e) {
|
|
5763
|
-
if (!e || "Object" !== toStringTag(e)) return
|
|
5576
|
+
if (!e || "Object" !== toStringTag(e)) return false;
|
|
5764
5577
|
var t = r(e);
|
|
5765
5578
|
return !t || hasConstructorOf(e, Object) || isUserObject(t);
|
|
5766
5579
|
}
|
|
@@ -5824,7 +5637,7 @@
|
|
|
5824
5637
|
key: "stringify",
|
|
5825
5638
|
value: function stringify(e, t, r, n) {
|
|
5826
5639
|
n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), n), {}, {
|
|
5827
|
-
stringification:
|
|
5640
|
+
stringification: true
|
|
5828
5641
|
});
|
|
5829
5642
|
var a = this.encapsulate(e, null, n);
|
|
5830
5643
|
return o(a) ? JSON.stringify(a[0], t, r) : a.then(function (e) {
|
|
@@ -5835,63 +5648,63 @@
|
|
|
5835
5648
|
key: "stringifySync",
|
|
5836
5649
|
value: function stringifySync(e, t, r, n) {
|
|
5837
5650
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5838
|
-
throwOnBadSyncType:
|
|
5651
|
+
throwOnBadSyncType: true
|
|
5839
5652
|
}, n), {}, {
|
|
5840
|
-
sync:
|
|
5653
|
+
sync: true
|
|
5841
5654
|
}));
|
|
5842
5655
|
}
|
|
5843
5656
|
}, {
|
|
5844
5657
|
key: "stringifyAsync",
|
|
5845
5658
|
value: function stringifyAsync(e, t, r, n) {
|
|
5846
5659
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5847
|
-
throwOnBadSyncType:
|
|
5660
|
+
throwOnBadSyncType: true
|
|
5848
5661
|
}, n), {}, {
|
|
5849
|
-
sync:
|
|
5662
|
+
sync: false
|
|
5850
5663
|
}));
|
|
5851
5664
|
}
|
|
5852
5665
|
}, {
|
|
5853
5666
|
key: "parse",
|
|
5854
5667
|
value: function parse(e, t, r) {
|
|
5855
5668
|
return r = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), r), {}, {
|
|
5856
|
-
parse:
|
|
5669
|
+
parse: true
|
|
5857
5670
|
}), this.revive(JSON.parse(e, t), r);
|
|
5858
5671
|
}
|
|
5859
5672
|
}, {
|
|
5860
5673
|
key: "parseSync",
|
|
5861
5674
|
value: function parseSync(e, t, r) {
|
|
5862
5675
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5863
|
-
throwOnBadSyncType:
|
|
5676
|
+
throwOnBadSyncType: true
|
|
5864
5677
|
}, r), {}, {
|
|
5865
|
-
sync:
|
|
5678
|
+
sync: true
|
|
5866
5679
|
}));
|
|
5867
5680
|
}
|
|
5868
5681
|
}, {
|
|
5869
5682
|
key: "parseAsync",
|
|
5870
5683
|
value: function parseAsync(e, t, r) {
|
|
5871
5684
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5872
|
-
throwOnBadSyncType:
|
|
5685
|
+
throwOnBadSyncType: true
|
|
5873
5686
|
}, r), {}, {
|
|
5874
|
-
sync:
|
|
5687
|
+
sync: false
|
|
5875
5688
|
}));
|
|
5876
5689
|
}
|
|
5877
5690
|
}, {
|
|
5878
5691
|
key: "specialTypeNames",
|
|
5879
5692
|
value: function specialTypeNames(e, t) {
|
|
5880
5693
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5881
|
-
return r.returnTypeNames =
|
|
5694
|
+
return r.returnTypeNames = true, this.encapsulate(e, t, r);
|
|
5882
5695
|
}
|
|
5883
5696
|
}, {
|
|
5884
5697
|
key: "rootTypeName",
|
|
5885
5698
|
value: function rootTypeName(e, t) {
|
|
5886
5699
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5887
|
-
return r.iterateNone =
|
|
5700
|
+
return r.iterateNone = true, this.encapsulate(e, t, r);
|
|
5888
5701
|
}
|
|
5889
5702
|
}, {
|
|
5890
5703
|
key: "encapsulate",
|
|
5891
5704
|
value: function encapsulate(t, r, c) {
|
|
5892
5705
|
var s = this,
|
|
5893
5706
|
u = _objectSpread2(_objectSpread2({
|
|
5894
|
-
sync:
|
|
5707
|
+
sync: true
|
|
5895
5708
|
}, this.options), c),
|
|
5896
5709
|
l = u.sync,
|
|
5897
5710
|
f = {},
|
|
@@ -5899,8 +5712,8 @@
|
|
|
5899
5712
|
p = [],
|
|
5900
5713
|
d = [],
|
|
5901
5714
|
v = !("cyclic" in u) || u.cyclic,
|
|
5902
|
-
|
|
5903
|
-
|
|
5715
|
+
b = u.encapsulateObserver,
|
|
5716
|
+
m = function finish(e) {
|
|
5904
5717
|
var t = Object.values(f);
|
|
5905
5718
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5906
5719
|
if (t.length) {
|
|
@@ -5921,7 +5734,7 @@
|
|
|
5921
5734
|
};
|
|
5922
5735
|
} else isObject(e) && a(e, "$types") && (e = {
|
|
5923
5736
|
$: e,
|
|
5924
|
-
$types:
|
|
5737
|
+
$types: true
|
|
5925
5738
|
});
|
|
5926
5739
|
return !u.returnTypeNames && e;
|
|
5927
5740
|
},
|
|
@@ -5930,7 +5743,7 @@
|
|
|
5930
5743
|
return e[1].p;
|
|
5931
5744
|
})), function (n) {
|
|
5932
5745
|
return _await(Promise.all(n.map(_async(function (n) {
|
|
5933
|
-
var a =
|
|
5746
|
+
var a = false,
|
|
5934
5747
|
o = [],
|
|
5935
5748
|
i = _slicedToArray(r.splice(0, 1), 1),
|
|
5936
5749
|
c = _slicedToArray(i[0], 7),
|
|
@@ -5940,7 +5753,7 @@
|
|
|
5940
5753
|
f = c[4],
|
|
5941
5754
|
y = c[5],
|
|
5942
5755
|
p = c[6],
|
|
5943
|
-
d = O(s, n, u, l, o,
|
|
5756
|
+
d = O(s, n, u, l, o, true, p),
|
|
5944
5757
|
v = hasConstructorOf(d, e);
|
|
5945
5758
|
return function _invoke(e, t) {
|
|
5946
5759
|
var r = e();
|
|
@@ -5949,7 +5762,7 @@
|
|
|
5949
5762
|
if (s && v) return _await(d.p, function (e) {
|
|
5950
5763
|
f[y] = e;
|
|
5951
5764
|
var r = h(t, o);
|
|
5952
|
-
return a =
|
|
5765
|
+
return a = true, r;
|
|
5953
5766
|
});
|
|
5954
5767
|
}, function (e) {
|
|
5955
5768
|
return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
|
|
@@ -5970,13 +5783,13 @@
|
|
|
5970
5783
|
});
|
|
5971
5784
|
},
|
|
5972
5785
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5973
|
-
var
|
|
5786
|
+
var m,
|
|
5974
5787
|
h = {},
|
|
5975
5788
|
O = _typeof(r),
|
|
5976
|
-
_ =
|
|
5789
|
+
_ = b ? function (n) {
|
|
5977
5790
|
var a,
|
|
5978
5791
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5979
|
-
|
|
5792
|
+
b(Object.assign(null != n ? n : h, {
|
|
5980
5793
|
keypath: t,
|
|
5981
5794
|
value: r,
|
|
5982
5795
|
cyclic: i,
|
|
@@ -5988,30 +5801,30 @@
|
|
|
5988
5801
|
type: o
|
|
5989
5802
|
}));
|
|
5990
5803
|
} : null;
|
|
5991
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5992
|
-
replaced:
|
|
5993
|
-
}) :
|
|
5804
|
+
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (m = c.replaced ? r : w(t, r, c, l, false, d, _)) !== r && (h = {
|
|
5805
|
+
replaced: m
|
|
5806
|
+
}) : m = r, _ && _(), m;
|
|
5994
5807
|
if (null === r) return _ && _(), r;
|
|
5995
5808
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5996
5809
|
var A = y.indexOf(r);
|
|
5997
5810
|
if (!(A < 0)) return f[t] = "#", _ && _({
|
|
5998
5811
|
cyclicKeypath: p[A]
|
|
5999
5812
|
}), "#" + p[A];
|
|
6000
|
-
|
|
5813
|
+
true === i && (y.push(r), p.push(t));
|
|
6001
5814
|
}
|
|
6002
5815
|
var S,
|
|
6003
5816
|
j,
|
|
6004
5817
|
T = isPlainObject(r),
|
|
6005
5818
|
I = o(r),
|
|
6006
5819
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
6007
|
-
if (N !== r ? (
|
|
5820
|
+
if (N !== r ? (m = N, h = {
|
|
6008
5821
|
replaced: N
|
|
6009
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5822
|
+
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), m = r) : I && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), h = {
|
|
6010
5823
|
clone: S
|
|
6011
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5824
|
+
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ? m = r : (S = {}, c.addLength && (S.length = r.length), h = {
|
|
6012
5825
|
clone: S
|
|
6013
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
6014
|
-
if (!S) return
|
|
5826
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : m;
|
|
5827
|
+
if (!S) return m;
|
|
6015
5828
|
if (c.iterateIn) {
|
|
6016
5829
|
var P = function _loop(n) {
|
|
6017
5830
|
var o = {
|
|
@@ -6025,27 +5838,27 @@
|
|
|
6025
5838
|
};
|
|
6026
5839
|
for (var x in r) P(x);
|
|
6027
5840
|
_ && _({
|
|
6028
|
-
endIterateIn:
|
|
6029
|
-
end:
|
|
5841
|
+
endIterateIn: true,
|
|
5842
|
+
end: true
|
|
6030
5843
|
});
|
|
6031
5844
|
} else n(r).forEach(function (n) {
|
|
6032
5845
|
var a = t + (t ? "." : "") + escapeKeyPathComponent(n);
|
|
6033
5846
|
g(c, {
|
|
6034
|
-
ownKeys:
|
|
5847
|
+
ownKeys: true
|
|
6035
5848
|
}, function () {
|
|
6036
5849
|
var t = _encapsulate(a, r[n], Boolean(i), c, l, d);
|
|
6037
5850
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
6038
5851
|
});
|
|
6039
5852
|
}), _ && _({
|
|
6040
|
-
endIterateOwn:
|
|
6041
|
-
end:
|
|
5853
|
+
endIterateOwn: true,
|
|
5854
|
+
end: true
|
|
6042
5855
|
});
|
|
6043
5856
|
if (c.iterateUnsetNumeric) {
|
|
6044
5857
|
for (var E = r.length, C = function _loop2(n) {
|
|
6045
5858
|
if (!(n in r)) {
|
|
6046
5859
|
var a = "".concat(t).concat(t ? "." : "").concat(n);
|
|
6047
5860
|
g(c, {
|
|
6048
|
-
ownKeys:
|
|
5861
|
+
ownKeys: false
|
|
6049
5862
|
}, function () {
|
|
6050
5863
|
var t = _encapsulate(a, void 0, Boolean(i), c, l, d);
|
|
6051
5864
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
@@ -6053,8 +5866,8 @@
|
|
|
6053
5866
|
}
|
|
6054
5867
|
}, B = 0; B < E; B++) C(B);
|
|
6055
5868
|
_ && _({
|
|
6056
|
-
endIterateUnsetNumeric:
|
|
6057
|
-
end:
|
|
5869
|
+
endIterateUnsetNumeric: true,
|
|
5870
|
+
end: true
|
|
6058
5871
|
});
|
|
6059
5872
|
}
|
|
6060
5873
|
return S;
|
|
@@ -6070,19 +5883,19 @@
|
|
|
6070
5883
|
}
|
|
6071
5884
|
if (Object.assign(r, {
|
|
6072
5885
|
type: p,
|
|
6073
|
-
replaced:
|
|
5886
|
+
replaced: true
|
|
6074
5887
|
}), (l || !y.replaceAsync) && !y.replace) return i && i({
|
|
6075
|
-
typeDetected:
|
|
5888
|
+
typeDetected: true
|
|
6076
5889
|
}), O(e, t, v && "readonly", r, n, o, p);
|
|
6077
5890
|
i && i({
|
|
6078
|
-
replacing:
|
|
5891
|
+
replacing: true
|
|
6079
5892
|
});
|
|
6080
|
-
var
|
|
5893
|
+
var b = void 0;
|
|
6081
5894
|
if (l || !y.replaceAsync) {
|
|
6082
5895
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6083
|
-
|
|
6084
|
-
} else
|
|
6085
|
-
return O(e,
|
|
5896
|
+
b = y.replace(t, r);
|
|
5897
|
+
} else b = y.replaceAsync(t, r);
|
|
5898
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6086
5899
|
}
|
|
6087
5900
|
}
|
|
6088
5901
|
return t;
|
|
@@ -6090,26 +5903,26 @@
|
|
|
6090
5903
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6091
5904
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6092
5905
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6093
|
-
}() : Promise.resolve(h(_, d)).then(
|
|
5906
|
+
}() : Promise.resolve(h(_, d)).then(m);
|
|
6094
5907
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6095
|
-
return u.stringification && l ? [
|
|
5908
|
+
return u.stringification && l ? [m(_)] : l ? m(_) : Promise.resolve(m(_));
|
|
6096
5909
|
}
|
|
6097
5910
|
}, {
|
|
6098
5911
|
key: "encapsulateSync",
|
|
6099
5912
|
value: function encapsulateSync(e, t, r) {
|
|
6100
5913
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6101
|
-
throwOnBadSyncType:
|
|
5914
|
+
throwOnBadSyncType: true
|
|
6102
5915
|
}, r), {}, {
|
|
6103
|
-
sync:
|
|
5916
|
+
sync: true
|
|
6104
5917
|
}));
|
|
6105
5918
|
}
|
|
6106
5919
|
}, {
|
|
6107
5920
|
key: "encapsulateAsync",
|
|
6108
5921
|
value: function encapsulateAsync(e, t, r) {
|
|
6109
5922
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6110
|
-
throwOnBadSyncType:
|
|
5923
|
+
throwOnBadSyncType: true
|
|
6111
5924
|
}, r), {}, {
|
|
6112
|
-
sync:
|
|
5925
|
+
sync: false
|
|
6113
5926
|
}));
|
|
6114
5927
|
}
|
|
6115
5928
|
}, {
|
|
@@ -6117,7 +5930,7 @@
|
|
|
6117
5930
|
value: function revive(t, r) {
|
|
6118
5931
|
var a = this,
|
|
6119
5932
|
i = _objectSpread2(_objectSpread2({
|
|
6120
|
-
sync:
|
|
5933
|
+
sync: true
|
|
6121
5934
|
}, this.options), r),
|
|
6122
5935
|
c = i.sync;
|
|
6123
5936
|
function finishRevival(e) {
|
|
@@ -6127,12 +5940,12 @@
|
|
|
6127
5940
|
}
|
|
6128
5941
|
if (!t || "object" !== _typeof(t) || Array.isArray(t)) return finishRevival(t);
|
|
6129
5942
|
var u = t.$types;
|
|
6130
|
-
if (
|
|
5943
|
+
if (true === u) return finishRevival(t.$);
|
|
6131
5944
|
if (!u || "object" !== _typeof(u) || Array.isArray(u)) return finishRevival(t);
|
|
6132
5945
|
var l = [],
|
|
6133
5946
|
f = {},
|
|
6134
|
-
y =
|
|
6135
|
-
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y =
|
|
5947
|
+
y = true;
|
|
5948
|
+
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y = false);
|
|
6136
5949
|
var p = function executeReviver(e, t) {
|
|
6137
5950
|
var r,
|
|
6138
5951
|
n = _slicedToArray(null !== (r = a.revivers[e]) && void 0 !== r ? r : [], 1)[0];
|
|
@@ -6147,7 +5960,7 @@
|
|
|
6147
5960
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6148
5961
|
}
|
|
6149
5962
|
var v,
|
|
6150
|
-
|
|
5963
|
+
b = function revivePlainObjects() {
|
|
6151
5964
|
var r = [];
|
|
6152
5965
|
if (!u) throw new Error("Found bad `types`");
|
|
6153
5966
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6179,28 +5992,28 @@
|
|
|
6179
5992
|
c === i && (t = c);
|
|
6180
5993
|
}, void 0);
|
|
6181
5994
|
}();
|
|
6182
|
-
return hasConstructorOf(
|
|
5995
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6183
5996
|
return t;
|
|
6184
5997
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6185
5998
|
if (!y || "$types" !== t) {
|
|
6186
5999
|
var f = u[t],
|
|
6187
6000
|
v = o(r);
|
|
6188
6001
|
if (v || isPlainObject(r)) {
|
|
6189
|
-
var
|
|
6002
|
+
var b = v ? new Array(r.length) : {};
|
|
6190
6003
|
for (n(r).forEach(function (n) {
|
|
6191
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
6004
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6192
6005
|
i = function set(e) {
|
|
6193
|
-
return hasConstructorOf(e, s) ?
|
|
6006
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6194
6007
|
};
|
|
6195
6008
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6196
6009
|
return i(e);
|
|
6197
6010
|
})) : i(o);
|
|
6198
|
-
}), r =
|
|
6199
|
-
var
|
|
6200
|
-
h =
|
|
6201
|
-
g =
|
|
6202
|
-
O =
|
|
6203
|
-
w =
|
|
6011
|
+
}), r = b; l.length;) {
|
|
6012
|
+
var m = _slicedToArray(l[0], 4),
|
|
6013
|
+
h = m[0],
|
|
6014
|
+
g = m[1],
|
|
6015
|
+
O = m[2],
|
|
6016
|
+
w = m[3],
|
|
6204
6017
|
_ = getByKeyPath(h, g);
|
|
6205
6018
|
if (void 0 === _) break;
|
|
6206
6019
|
O[w] = _, l.splice(0, 1);
|
|
@@ -6233,18 +6046,18 @@
|
|
|
6233
6046
|
key: "reviveSync",
|
|
6234
6047
|
value: function reviveSync(e, t) {
|
|
6235
6048
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6236
|
-
throwOnBadSyncType:
|
|
6049
|
+
throwOnBadSyncType: true
|
|
6237
6050
|
}, t), {}, {
|
|
6238
|
-
sync:
|
|
6051
|
+
sync: true
|
|
6239
6052
|
}));
|
|
6240
6053
|
}
|
|
6241
6054
|
}, {
|
|
6242
6055
|
key: "reviveAsync",
|
|
6243
6056
|
value: function reviveAsync(e, t) {
|
|
6244
6057
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6245
|
-
throwOnBadSyncType:
|
|
6058
|
+
throwOnBadSyncType: true
|
|
6246
6059
|
}, t), {}, {
|
|
6247
|
-
sync:
|
|
6060
|
+
sync: false
|
|
6248
6061
|
}));
|
|
6249
6062
|
}
|
|
6250
6063
|
}, {
|
|
@@ -6343,19 +6156,20 @@
|
|
|
6343
6156
|
index: r
|
|
6344
6157
|
} : (t.buffers.push(e), {
|
|
6345
6158
|
s: p(e),
|
|
6346
|
-
maxByteLength: e.maxByteLength
|
|
6159
|
+
maxByteLength: e.maxByteLength,
|
|
6160
|
+
resizable: e.resizable
|
|
6347
6161
|
});
|
|
6348
6162
|
},
|
|
6349
6163
|
revive: function revive(e, t) {
|
|
6350
6164
|
if (t.buffers || (t.buffers = []), Object.hasOwn(e, "index")) return t.buffers[e.index];
|
|
6351
|
-
var r = d(e.s, {
|
|
6165
|
+
var r = d(e.s, e.resizable ? {
|
|
6352
6166
|
maxByteLength: e.maxByteLength
|
|
6353
|
-
});
|
|
6167
|
+
} : void 0);
|
|
6354
6168
|
return t.buffers.push(r), r;
|
|
6355
6169
|
}
|
|
6356
6170
|
}
|
|
6357
6171
|
},
|
|
6358
|
-
|
|
6172
|
+
b = {
|
|
6359
6173
|
bigintObject: {
|
|
6360
6174
|
test: function test(e) {
|
|
6361
6175
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6366,7 +6180,7 @@
|
|
|
6366
6180
|
}
|
|
6367
6181
|
}
|
|
6368
6182
|
},
|
|
6369
|
-
|
|
6183
|
+
m = {
|
|
6370
6184
|
bigint: {
|
|
6371
6185
|
test: function test(e) {
|
|
6372
6186
|
return "bigint" == typeof e;
|
|
@@ -6394,7 +6208,7 @@
|
|
|
6394
6208
|
},
|
|
6395
6209
|
replace: function replace(e) {
|
|
6396
6210
|
var t = new XMLHttpRequest();
|
|
6397
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6211
|
+
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e), false), t.send(), 200 !== t.status && 0 !== t.status) throw new Error("Bad Blob access: " + t.status);
|
|
6398
6212
|
return {
|
|
6399
6213
|
type: e.type,
|
|
6400
6214
|
stringContents: t.responseText
|
|
@@ -6429,33 +6243,32 @@
|
|
|
6429
6243
|
},
|
|
6430
6244
|
replaceAsync: function replaceAsync(t) {
|
|
6431
6245
|
return new e(/*#__PURE__*/function () {
|
|
6432
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
6433
|
-
var n;
|
|
6434
|
-
return
|
|
6435
|
-
while (1) switch (_context.
|
|
6246
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e, r) {
|
|
6247
|
+
var n, _t;
|
|
6248
|
+
return _regenerator().w(function (_context) {
|
|
6249
|
+
while (1) switch (_context.n) {
|
|
6436
6250
|
case 0:
|
|
6437
|
-
_context.
|
|
6438
|
-
_context.
|
|
6251
|
+
_context.p = 0;
|
|
6252
|
+
_context.n = 1;
|
|
6439
6253
|
return crypto.subtle.exportKey("jwk", t);
|
|
6440
|
-
case
|
|
6441
|
-
n = _context.
|
|
6442
|
-
_context.
|
|
6254
|
+
case 1:
|
|
6255
|
+
n = _context.v;
|
|
6256
|
+
_context.n = 3;
|
|
6443
6257
|
break;
|
|
6444
|
-
case
|
|
6445
|
-
_context.
|
|
6446
|
-
|
|
6447
|
-
return _context.
|
|
6448
|
-
case
|
|
6258
|
+
case 2:
|
|
6259
|
+
_context.p = 2;
|
|
6260
|
+
_t = _context.v;
|
|
6261
|
+
return _context.a(2, void r(_t));
|
|
6262
|
+
case 3:
|
|
6449
6263
|
e({
|
|
6450
6264
|
jwk: n,
|
|
6451
6265
|
algorithm: t.algorithm,
|
|
6452
6266
|
usages: t.usages
|
|
6453
6267
|
});
|
|
6454
|
-
case
|
|
6455
|
-
|
|
6456
|
-
return _context.stop();
|
|
6268
|
+
case 4:
|
|
6269
|
+
return _context.a(2);
|
|
6457
6270
|
}
|
|
6458
|
-
}, _callee, null, [[0,
|
|
6271
|
+
}, _callee, null, [[0, 2]]);
|
|
6459
6272
|
}));
|
|
6460
6273
|
return function (_x, _x2) {
|
|
6461
6274
|
return _ref.apply(this, arguments);
|
|
@@ -6466,7 +6279,7 @@
|
|
|
6466
6279
|
var t = e.jwk,
|
|
6467
6280
|
r = e.algorithm,
|
|
6468
6281
|
n = e.usages;
|
|
6469
|
-
return crypto.subtle.importKey("jwk", t, r,
|
|
6282
|
+
return crypto.subtle.importKey("jwk", t, r, true, n);
|
|
6470
6283
|
}
|
|
6471
6284
|
}
|
|
6472
6285
|
},
|
|
@@ -6488,6 +6301,7 @@
|
|
|
6488
6301
|
} : (n.buffers.push(e), {
|
|
6489
6302
|
encoded: p(e),
|
|
6490
6303
|
maxByteLength: e.maxByteLength,
|
|
6304
|
+
resizable: e.resizable,
|
|
6491
6305
|
byteOffset: t,
|
|
6492
6306
|
byteLength: r
|
|
6493
6307
|
});
|
|
@@ -6498,11 +6312,12 @@
|
|
|
6498
6312
|
n = e.byteLength,
|
|
6499
6313
|
a = e.encoded,
|
|
6500
6314
|
o = e.index,
|
|
6501
|
-
i = e.maxByteLength
|
|
6502
|
-
|
|
6503
|
-
|
|
6315
|
+
i = e.maxByteLength,
|
|
6316
|
+
c = e.resizable;
|
|
6317
|
+
var s;
|
|
6318
|
+
return "index" in e ? s = t.buffers[o] : (s = d(a, c ? {
|
|
6504
6319
|
maxByteLength: i
|
|
6505
|
-
}), t.buffers.push(
|
|
6320
|
+
} : i), t.buffers.push(s)), new DataView(s, r, n);
|
|
6506
6321
|
}
|
|
6507
6322
|
}
|
|
6508
6323
|
},
|
|
@@ -6718,7 +6533,7 @@
|
|
|
6718
6533
|
},
|
|
6719
6534
|
replace: function replace(e) {
|
|
6720
6535
|
var t = new XMLHttpRequest();
|
|
6721
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6536
|
+
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e), false), t.send(), 200 !== t.status && 0 !== t.status) throw new Error("Bad File access: " + t.status);
|
|
6722
6537
|
return {
|
|
6723
6538
|
type: e.type,
|
|
6724
6539
|
stringContents: t.responseText,
|
|
@@ -6814,31 +6629,31 @@
|
|
|
6814
6629
|
return a.addEventListener("load", function () {
|
|
6815
6630
|
n.drawImage(a, 0, 0);
|
|
6816
6631
|
}), a.src = t.dataURL, new e(/*#__PURE__*/function () {
|
|
6817
|
-
var
|
|
6818
|
-
|
|
6819
|
-
|
|
6632
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e, t) {
|
|
6633
|
+
var _t2, _t3, _t4;
|
|
6634
|
+
return _regenerator().w(function (_context2) {
|
|
6635
|
+
while (1) switch (_context2.n) {
|
|
6820
6636
|
case 0:
|
|
6821
|
-
_context2.
|
|
6822
|
-
|
|
6823
|
-
_context2.
|
|
6637
|
+
_context2.p = 0;
|
|
6638
|
+
_t2 = e;
|
|
6639
|
+
_context2.n = 1;
|
|
6824
6640
|
return createImageBitmap(r);
|
|
6825
|
-
case
|
|
6826
|
-
|
|
6827
|
-
(
|
|
6828
|
-
_context2.
|
|
6641
|
+
case 1:
|
|
6642
|
+
_t3 = _context2.v;
|
|
6643
|
+
_t2(_t3);
|
|
6644
|
+
_context2.n = 3;
|
|
6829
6645
|
break;
|
|
6830
|
-
case
|
|
6831
|
-
_context2.
|
|
6832
|
-
|
|
6833
|
-
t(
|
|
6834
|
-
case
|
|
6835
|
-
|
|
6836
|
-
return _context2.stop();
|
|
6646
|
+
case 2:
|
|
6647
|
+
_context2.p = 2;
|
|
6648
|
+
_t4 = _context2.v;
|
|
6649
|
+
t(_t4);
|
|
6650
|
+
case 3:
|
|
6651
|
+
return _context2.a(2);
|
|
6837
6652
|
}
|
|
6838
|
-
}, _callee2, null, [[0,
|
|
6653
|
+
}, _callee2, null, [[0, 2]]);
|
|
6839
6654
|
}));
|
|
6840
6655
|
return function (_x3, _x4) {
|
|
6841
|
-
return
|
|
6656
|
+
return _ref0.apply(this, arguments);
|
|
6842
6657
|
};
|
|
6843
6658
|
}());
|
|
6844
6659
|
}
|
|
@@ -6926,7 +6741,7 @@
|
|
|
6926
6741
|
}
|
|
6927
6742
|
}
|
|
6928
6743
|
},
|
|
6929
|
-
|
|
6744
|
+
J = {
|
|
6930
6745
|
StringObject: {
|
|
6931
6746
|
test: function test(e) {
|
|
6932
6747
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -6957,7 +6772,7 @@
|
|
|
6957
6772
|
}
|
|
6958
6773
|
}
|
|
6959
6774
|
},
|
|
6960
|
-
|
|
6775
|
+
q = {
|
|
6961
6776
|
regexp: {
|
|
6962
6777
|
test: function test(e) {
|
|
6963
6778
|
return "RegExp" === toStringTag(e);
|
|
@@ -6968,14 +6783,14 @@
|
|
|
6968
6783
|
flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
|
|
6969
6784
|
};
|
|
6970
6785
|
},
|
|
6971
|
-
revive: function revive(
|
|
6972
|
-
var e =
|
|
6973
|
-
t =
|
|
6786
|
+
revive: function revive(_ref10) {
|
|
6787
|
+
var e = _ref10.source,
|
|
6788
|
+
t = _ref10.flags;
|
|
6974
6789
|
return new RegExp(e, t);
|
|
6975
6790
|
}
|
|
6976
6791
|
}
|
|
6977
6792
|
},
|
|
6978
|
-
|
|
6793
|
+
G = {
|
|
6979
6794
|
set: {
|
|
6980
6795
|
test: function test(e) {
|
|
6981
6796
|
return "Set" === toStringTag(e);
|
|
@@ -7013,10 +6828,10 @@
|
|
|
7013
6828
|
test: function test(e) {
|
|
7014
6829
|
return toStringTag(e) === t;
|
|
7015
6830
|
},
|
|
7016
|
-
replace: function replace(
|
|
7017
|
-
var e =
|
|
7018
|
-
t =
|
|
7019
|
-
r =
|
|
6831
|
+
replace: function replace(_ref11, n) {
|
|
6832
|
+
var e = _ref11.buffer,
|
|
6833
|
+
t = _ref11.byteOffset,
|
|
6834
|
+
r = _ref11.length;
|
|
7020
6835
|
n.buffers || (n.buffers = []);
|
|
7021
6836
|
var a = n.buffers.indexOf(e);
|
|
7022
6837
|
return a > -1 ? {
|
|
@@ -7025,6 +6840,7 @@
|
|
|
7025
6840
|
length: r
|
|
7026
6841
|
} : (n.buffers.push(e), {
|
|
7027
6842
|
maxByteLength: e.maxByteLength,
|
|
6843
|
+
resizable: e.resizable,
|
|
7028
6844
|
encoded: p(e),
|
|
7029
6845
|
byteOffset: t,
|
|
7030
6846
|
length: r
|
|
@@ -7036,11 +6852,12 @@
|
|
|
7036
6852
|
a = t.length,
|
|
7037
6853
|
o = t.encoded,
|
|
7038
6854
|
i = t.index,
|
|
7039
|
-
c = t.maxByteLength
|
|
7040
|
-
|
|
7041
|
-
|
|
6855
|
+
c = t.maxByteLength,
|
|
6856
|
+
s = t.resizable;
|
|
6857
|
+
var u;
|
|
6858
|
+
return "index" in t ? u = r.buffers[i] : (u = d(o, s ? {
|
|
7042
6859
|
maxByteLength: c
|
|
7043
|
-
}), r.buffers.push(
|
|
6860
|
+
} : void 0), r.buffers.push(u)), new e(u, n, a);
|
|
7044
6861
|
}
|
|
7045
6862
|
};
|
|
7046
6863
|
}(e);
|
|
@@ -7073,22 +6890,22 @@
|
|
|
7073
6890
|
},
|
|
7074
6891
|
te = [{
|
|
7075
6892
|
arrayNonindexKeys: {
|
|
7076
|
-
testPlainObjects:
|
|
6893
|
+
testPlainObjects: true,
|
|
7077
6894
|
test: function test(e, t) {
|
|
7078
6895
|
return !!Array.isArray(e) && (Object.keys(e).some(function (e) {
|
|
7079
6896
|
return String(Number.parseInt(e)) !== e;
|
|
7080
|
-
}) && (t.iterateIn = "object", t.addLength =
|
|
6897
|
+
}) && (t.iterateIn = "object", t.addLength = true), true);
|
|
7081
6898
|
},
|
|
7082
6899
|
replace: function replace(e, t) {
|
|
7083
|
-
return t.iterateUnsetNumeric =
|
|
6900
|
+
return t.iterateUnsetNumeric = true, e;
|
|
7084
6901
|
},
|
|
7085
6902
|
revive: function revive(e) {
|
|
7086
6903
|
if (Array.isArray(e)) return e;
|
|
7087
6904
|
var t = [];
|
|
7088
|
-
return Object.entries(e).forEach(function (
|
|
7089
|
-
var
|
|
7090
|
-
e =
|
|
7091
|
-
r =
|
|
6905
|
+
return Object.entries(e).forEach(function (_ref12) {
|
|
6906
|
+
var _ref13 = _slicedToArray$1(_ref12, 2),
|
|
6907
|
+
e = _ref13[0],
|
|
6908
|
+
r = _ref13[1];
|
|
7092
6909
|
t[e] = r;
|
|
7093
6910
|
}), t;
|
|
7094
6911
|
}
|
|
@@ -7096,7 +6913,7 @@
|
|
|
7096
6913
|
}, {
|
|
7097
6914
|
sparseUndefined: {
|
|
7098
6915
|
test: function test(e, t) {
|
|
7099
|
-
return void 0 === e &&
|
|
6916
|
+
return void 0 === e && false === t.ownKeys;
|
|
7100
6917
|
},
|
|
7101
6918
|
replace: function replace() {
|
|
7102
6919
|
return 0;
|
|
@@ -7105,13 +6922,13 @@
|
|
|
7105
6922
|
}
|
|
7106
6923
|
}],
|
|
7107
6924
|
re = [K, U, F, $],
|
|
7108
|
-
ce = [ee, Z, te,
|
|
6925
|
+
ce = [ee, Z, te, J, re, A, q, k, B, E, C, h, P, x].concat("function" == typeof Map ? D : [], "function" == typeof Set ? G : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? X : [], "function" == typeof DataView ? _ : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [m, b] : [], "undefined" != typeof DOMException ? S : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? T : [], "undefined" != typeof DOMQuad ? I : [], "undefined" != typeof DOMMatrix ? j : []),
|
|
7109
6926
|
se = ce.concat({
|
|
7110
6927
|
checkDataCloneException: {
|
|
7111
6928
|
test: function test(e) {
|
|
7112
6929
|
var t = {}.toString.call(e).slice(8, -1);
|
|
7113
6930
|
if (["symbol", "function"].includes(_typeof$2(e)) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "Event", "MessageChannel"].includes(t) || e && "object" == _typeof$2(e) && "number" == typeof e.nodeType && "function" == typeof e.insertBefore) throw new DOMException("The object cannot be cloned.", "DataCloneError");
|
|
7114
|
-
return
|
|
6931
|
+
return false;
|
|
7115
6932
|
}
|
|
7116
6933
|
}
|
|
7117
6934
|
});
|
|
@@ -7453,7 +7270,6 @@
|
|
|
7453
7270
|
tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function () {
|
|
7454
7271
|
addIndexEntry(i + 1);
|
|
7455
7272
|
}, /** @type {SQLStatementErrorCallback} */error);
|
|
7456
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
7457
7273
|
} catch (err) {
|
|
7458
7274
|
// Not a valid value to insert into index, so just continue
|
|
7459
7275
|
addIndexEntry(i + 1);
|
|
@@ -7578,7 +7394,6 @@
|
|
|
7578
7394
|
IDBIndex.__updateIndexList = function (store, tx, success, failure) {
|
|
7579
7395
|
/** @type {IndexList} **/
|
|
7580
7396
|
var indexList = {};
|
|
7581
|
-
// eslint-disable-next-line sonarjs/prefer-for-of -- Implement iterability?
|
|
7582
7397
|
for (var i = 0; i < store.indexNames.length; i++) {
|
|
7583
7398
|
var idx = store.__indexes[store.indexNames[i]];
|
|
7584
7399
|
indexList[idx.name] = {
|
|
@@ -8560,7 +8375,6 @@
|
|
|
8560
8375
|
if ('invalid' in indexKey && indexKey.invalid || 'failure' in indexKey && indexKey.failure) {
|
|
8561
8376
|
throw new Error('Go to catch');
|
|
8562
8377
|
}
|
|
8563
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
8564
8378
|
} catch (err) {
|
|
8565
8379
|
resolve(undefined);
|
|
8566
8380
|
return;
|
|
@@ -9894,7 +9708,7 @@
|
|
|
9894
9708
|
*/
|
|
9895
9709
|
function getLatestCachedWebSQLVersion(name) {
|
|
9896
9710
|
return Object.keys(websqlDBCache[name]).map(Number).reduce(function (prev, curr) {
|
|
9897
|
-
return curr
|
|
9711
|
+
return Math.max(curr, prev);
|
|
9898
9712
|
}, 0);
|
|
9899
9713
|
}
|
|
9900
9714
|
|
|
@@ -10176,7 +9990,6 @@
|
|
|
10176
9990
|
if (err) {
|
|
10177
9991
|
try {
|
|
10178
9992
|
systx.executeSql('ROLLBACK', [], cb, cb);
|
|
10179
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
10180
9993
|
} catch (err) {
|
|
10181
9994
|
// Browser may fail with expired transaction above so
|
|
10182
9995
|
// no choice but to manually revert
|
|
@@ -10284,7 +10097,7 @@
|
|
|
10284
10097
|
// eslint-disable-next-line camelcase -- Clear API
|
|
10285
10098
|
req.transaction.on__complete = function () {
|
|
10286
10099
|
var pos = connection.__transactions.indexOf(req.transaction);
|
|
10287
|
-
if (pos
|
|
10100
|
+
if (pos !== -1) {
|
|
10288
10101
|
connection.__transactions.splice(pos, 1);
|
|
10289
10102
|
}
|
|
10290
10103
|
if (/** @type {import('./IDBDatabase.js').IDBDatabaseFull} */req.__result.__closePending) {
|
|
@@ -11718,7 +11531,6 @@
|
|
|
11718
11531
|
Object.getOwnPropertyDescriptor(o, name);
|
|
11719
11532
|
}
|
|
11720
11533
|
Object.defineProperty(IDB, name, desc);
|
|
11721
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
11722
11534
|
} catch (err) {
|
|
11723
11535
|
// With `indexedDB`, PhantomJS fails here and below but
|
|
11724
11536
|
// not above, while Chrome is reverse (and Firefox doesn't
|