indexeddbshim 19.0.2 → 19.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -6
- package/badges/coverage-badge.svg +1 -1
- package/badges/licenses-badge-dev.svg +1 -1
- package/badges/licenses-badge.svg +1 -1
- package/badges/tests-badge.svg +1 -1
- package/dist/IDBTransaction.d.ts +15 -0
- package/dist/IDBTransaction.d.ts.map +1 -1
- package/dist/indexeddbshim-Key.js +2 -2
- package/dist/indexeddbshim-Key.js.map +1 -1
- package/dist/indexeddbshim-Key.min.js +1 -1
- package/dist/indexeddbshim-Key.min.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +123 -73
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +123 -74
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +3 -3
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +121 -72
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +123 -74
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +3 -3
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +123 -74
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +3 -3
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
- package/dist/setGlobalVars.d.ts.map +1 -1
- package/dist/unicode-regex.d.ts +1 -1
- package/dist/unicode-regex.d.ts.map +1 -1
- package/dist/util.d.ts +0 -6
- package/dist/util.d.ts.map +1 -1
- package/package.json +100 -95
- package/src/CFG.js +1 -1
- package/src/IDBTransaction.js +76 -18
- package/src/node-UnicodeIdentifiers.js +2 -1
- package/src/setGlobalVars.js +2 -1
- package/src/unicode-regex.js +1 -16
- package/src/util.js +1 -11
- package/licenseInfo.json +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v19.0.
|
|
1
|
+
/*! indexeddbshim - v19.0.4 - 9/17/2026 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1819,7 +1819,7 @@
|
|
|
1819
1819
|
'UnicodeIDStart',
|
|
1820
1820
|
// In the non-Unicode builds, defaults to /[$0-9A-Z_a-z]/
|
|
1821
1821
|
'UnicodeIDContinue',
|
|
1822
|
-
// Used by
|
|
1822
|
+
// Used by Sca.js for optional restructuring of typeson-registry
|
|
1823
1823
|
// Structured Cloning Algorithm; should only be needed for ensuring data
|
|
1824
1824
|
// created in 3.* versions of IndexedDBShim continue to work; see the
|
|
1825
1825
|
// library `typeson-registry-sca-reverter` to get a function to do this
|
|
@@ -1941,19 +1941,7 @@
|
|
|
1941
1941
|
|
|
1942
1942
|
// @ts-nocheck
|
|
1943
1943
|
|
|
1944
|
-
|
|
1945
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1946
|
-
}
|
|
1947
|
-
var regex$1;
|
|
1948
|
-
var hasRequiredRegex;
|
|
1949
|
-
function requireRegex() {
|
|
1950
|
-
if (hasRequiredRegex) return regex$1;
|
|
1951
|
-
hasRequiredRegex = 1;
|
|
1952
|
-
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]|\uD801[\uDDC9\uDDE4]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C\uDF83\uDF85\uDF8E\uDF91\uDFC5\uDFC7\uDFC8]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD818[\uDD21-\uDD28]|\uD81B[\uDD68-\uDD6A]|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1953
|
-
return regex$1;
|
|
1954
|
-
}
|
|
1955
|
-
var regexExports = requireRegex();
|
|
1956
|
-
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1944
|
+
var regex = /[\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]|\uD801[\uDDC9\uDDE4]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C\uDF83\uDF85\uDF8E\uDF91\uDFC5\uDFC7\uDFC8]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD818[\uDD21-\uDD28]|\uD81B[\uDD68-\uDD6A]|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1957
1945
|
|
|
1958
1946
|
/**
|
|
1959
1947
|
* @typedef {number} Integer
|
|
@@ -5395,6 +5383,7 @@
|
|
|
5395
5383
|
* __requestsFinished: boolean,
|
|
5396
5384
|
* __transFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5397
5385
|
* __callTransFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5386
|
+
* __usesStandardDriver: () => boolean,
|
|
5398
5387
|
* __transactionEndCallback: (() => void)|undefined,
|
|
5399
5388
|
* __transactionFinished: boolean,
|
|
5400
5389
|
* __completed: boolean,
|
|
@@ -5534,6 +5523,27 @@
|
|
|
5534
5523
|
cb(Boolean(err));
|
|
5535
5524
|
};
|
|
5536
5525
|
|
|
5526
|
+
/**
|
|
5527
|
+
* A standard (3-argument) `transaction()`/`readTransaction()` implementation
|
|
5528
|
+
* (browser WebSQL, `cordova-plugin-sqlite-2`, etc.) never invokes the
|
|
5529
|
+
* non-standard 4th callback that installs the real `__transFinishedCb`,
|
|
5530
|
+
* and finalizes its own underlying SQL transaction synchronously, as soon
|
|
5531
|
+
* as it sees no further `executeSql` call already in flight or queued --
|
|
5532
|
+
* with no way for it to know a JS-level continuation (e.g. an
|
|
5533
|
+
* `await`-deferred follow-up request) is still coming. Detected via
|
|
5534
|
+
* arity, checking whichever of the two methods this transaction's own
|
|
5535
|
+
* mode actually uses.
|
|
5536
|
+
* @this {IDBTransactionFull}
|
|
5537
|
+
* @returns {boolean}
|
|
5538
|
+
*/
|
|
5539
|
+
IDBTransaction.prototype.__usesStandardDriver = function () {
|
|
5540
|
+
var me = this;
|
|
5541
|
+
var dbConn = me.db && me.db.__db;
|
|
5542
|
+
var dbMethodName = me.mode === 'readonly' ? 'readTransaction' : 'transaction';
|
|
5543
|
+
var supportsNonstandardTransCb = Boolean(dbConn && typeof dbConn[dbMethodName] === 'function' && dbConn[dbMethodName].length >= 4);
|
|
5544
|
+
return !supportsNonstandardTransCb;
|
|
5545
|
+
};
|
|
5546
|
+
|
|
5537
5547
|
/**
|
|
5538
5548
|
* In Node, the real (SQL-commit-capable) `__transFinishedCb` is only
|
|
5539
5549
|
* installed once the underlying WebSQL driver's own SQL-queue-idle check
|
|
@@ -5568,17 +5578,11 @@
|
|
|
5568
5578
|
return;
|
|
5569
5579
|
}
|
|
5570
5580
|
if (me.__transFinishedCb === IDBTransaction.prototype.__transFinishedCb) {
|
|
5571
|
-
//
|
|
5572
|
-
//
|
|
5573
|
-
//
|
|
5574
|
-
//
|
|
5575
|
-
|
|
5576
|
-
// actually uses -- see `__executeRequests`) and, if it's not supported,
|
|
5577
|
-
// just call the default (the driver auto-commits on its own).
|
|
5578
|
-
var dbConn = me.db && me.db.__db;
|
|
5579
|
-
var dbMethodName = me.mode === 'readonly' ? 'readTransaction' : 'transaction';
|
|
5580
|
-
var supportsNonstandardTransCb = Boolean(dbConn && typeof dbConn[dbMethodName] === 'function' && dbConn[dbMethodName].length >= 4);
|
|
5581
|
-
if (!supportsNonstandardTransCb) {
|
|
5581
|
+
// Waiting here for the non-standard 4th callback to install the real
|
|
5582
|
+
// `__transFinishedCb` would defer forever on a standard driver, which
|
|
5583
|
+
// never invokes it -- call the default instead (the driver auto-commits
|
|
5584
|
+
// on its own).
|
|
5585
|
+
if (me.__usesStandardDriver()) {
|
|
5582
5586
|
me.__transFinishedCbFired = true;
|
|
5583
5587
|
me.__transFinishedCb(err, cb);
|
|
5584
5588
|
return;
|
|
@@ -5617,10 +5621,52 @@
|
|
|
5617
5621
|
// `readTransaction` is optimized, at least in `node-websql`
|
|
5618
5622
|
function executeRequests(tx) {
|
|
5619
5623
|
me.__tx = tx;
|
|
5624
|
+
var isStandardDriver = me.__usesStandardDriver();
|
|
5620
5625
|
/** @type {RequestInfo} */
|
|
5621
5626
|
var q,
|
|
5622
5627
|
i = -1;
|
|
5623
5628
|
|
|
5629
|
+
/**
|
|
5630
|
+
* A continuation that must still be able to observe the
|
|
5631
|
+
* transaction as safe to extend (e.g., re-checking whether an
|
|
5632
|
+
* `await`-based follow-up request has arrived yet, or giving a
|
|
5633
|
+
* same-tick microtask scheduled from a handler a chance to run
|
|
5634
|
+
* first) can normally just be deferred via `queueMicrotask`.
|
|
5635
|
+
* That alone isn't safe on a standard (3-argument) driver,
|
|
5636
|
+
* though: it finalizes its own underlying SQL transaction
|
|
5637
|
+
* synchronously, as soon as it sees no further `executeSql`
|
|
5638
|
+
* call already in flight or queued, and a microtask hop by
|
|
5639
|
+
* itself never issues one -- so the driver already considers
|
|
5640
|
+
* the transaction done by the time the deferred continuation
|
|
5641
|
+
* runs, silently dropping whatever it tries to do next. Issuing
|
|
5642
|
+
* a harmless `SELECT 1` instead keeps the driver's own queue
|
|
5643
|
+
* non-empty across that same gap, at the cost of a real SQL
|
|
5644
|
+
* round trip; Node's driver doesn't need this since its real
|
|
5645
|
+
* commit/rollback is already deferred separately, via
|
|
5646
|
+
* `nonstandardTransCb`.
|
|
5647
|
+
* @param {() => void} cb
|
|
5648
|
+
* @returns {void}
|
|
5649
|
+
*/
|
|
5650
|
+
function keepAliveAndWait(cb) {
|
|
5651
|
+
if (!isStandardDriver) {
|
|
5652
|
+
queueMicrotask(cb);
|
|
5653
|
+
return;
|
|
5654
|
+
}
|
|
5655
|
+
try {
|
|
5656
|
+
tx.executeSql('SELECT 1', [], function () {
|
|
5657
|
+
cb();
|
|
5658
|
+
}, function () {
|
|
5659
|
+
cb();
|
|
5660
|
+
return false; // Don't roll back the transaction over a keep-alive no-op
|
|
5661
|
+
});
|
|
5662
|
+
} catch (err) {
|
|
5663
|
+
// The driver has already finalized the transaction (or otherwise
|
|
5664
|
+
// rejected the call) -- nothing left to hold open, so fall back
|
|
5665
|
+
// to a plain microtask hop for the continuation itself.
|
|
5666
|
+
queueMicrotask(cb);
|
|
5667
|
+
}
|
|
5668
|
+
}
|
|
5669
|
+
|
|
5624
5670
|
/**
|
|
5625
5671
|
* @typedef {unknown} IDBRequestResult
|
|
5626
5672
|
*/
|
|
@@ -5814,9 +5860,9 @@
|
|
|
5814
5860
|
* from a microtask -- so if the JS-level queue is merely found
|
|
5815
5861
|
* empty here, that doesn't yet mean no more work is coming, only
|
|
5816
5862
|
* that none has been queued *yet*. Re-check across a small, bounded
|
|
5817
|
-
* number of further
|
|
5818
|
-
* chain like `await store.put(...); await store.get(...)`
|
|
5819
|
-
* up) before finally concluding the transaction is genuinely done.
|
|
5863
|
+
* number of further turns (see `keepAliveAndWait`, letting a typical
|
|
5864
|
+
* `await` chain like `await store.put(...); await store.get(...)`
|
|
5865
|
+
* catch up) before finally concluding the transaction is genuinely done.
|
|
5820
5866
|
* Applies to `readonly` transactions too, not just `readwrite`/
|
|
5821
5867
|
* `versionchange`: a `readonly` transaction's `complete` event
|
|
5822
5868
|
* can otherwise fire synchronously, immediately after its last
|
|
@@ -5846,7 +5892,7 @@
|
|
|
5846
5892
|
}
|
|
5847
5893
|
return;
|
|
5848
5894
|
}
|
|
5849
|
-
|
|
5895
|
+
keepAliveAndWait(function () {
|
|
5850
5896
|
checkQueueEntry(attemptsLeft - 1);
|
|
5851
5897
|
});
|
|
5852
5898
|
}
|
|
@@ -5901,7 +5947,7 @@
|
|
|
5901
5947
|
checkQueueEntry(10);
|
|
5902
5948
|
return;
|
|
5903
5949
|
}
|
|
5904
|
-
|
|
5950
|
+
keepAliveAndWait(function () {
|
|
5905
5951
|
if (me.__errored || me.__requestsFinished) {
|
|
5906
5952
|
return;
|
|
5907
5953
|
}
|
|
@@ -6695,8 +6741,8 @@
|
|
|
6695
6741
|
y = {},
|
|
6696
6742
|
p = [],
|
|
6697
6743
|
f = [],
|
|
6698
|
-
|
|
6699
|
-
|
|
6744
|
+
m = [],
|
|
6745
|
+
d = !("cyclic" in c) || c.cyclic,
|
|
6700
6746
|
h = c.encapsulateObserver,
|
|
6701
6747
|
b = c.encapsulateError,
|
|
6702
6748
|
finish = function finish(e) {
|
|
@@ -6780,19 +6826,19 @@
|
|
|
6780
6826
|
e[t] = n[r];
|
|
6781
6827
|
});
|
|
6782
6828
|
},
|
|
6783
|
-
_encapsulate2 = function _encapsulate(e, t, a, i, l,
|
|
6829
|
+
_encapsulate2 = function _encapsulate(e, t, a, i, l, m, d) {
|
|
6784
6830
|
var g,
|
|
6785
6831
|
v = {};
|
|
6786
6832
|
var w = h ? function (r) {
|
|
6787
6833
|
var _ref4;
|
|
6788
|
-
var n = (_ref4 =
|
|
6834
|
+
var n = (_ref4 = d !== null && d !== void 0 ? d : i.type) !== null && _ref4 !== void 0 ? _ref4 : getJSONType(t);
|
|
6789
6835
|
h(Object.assign(r !== null && r !== void 0 ? r : v, {
|
|
6790
6836
|
keypath: e,
|
|
6791
6837
|
value: t,
|
|
6792
6838
|
cyclic: a,
|
|
6793
6839
|
stateObj: i,
|
|
6794
6840
|
promisesData: l,
|
|
6795
|
-
resolvingTypesonPromise:
|
|
6841
|
+
resolvingTypesonPromise: m,
|
|
6796
6842
|
awaitingTypesonPromise: hasConstructorOf(t, TypesonPromise)
|
|
6797
6843
|
}, {
|
|
6798
6844
|
type: n
|
|
@@ -6801,12 +6847,12 @@
|
|
|
6801
6847
|
getEncapsulatedValue = function getEncapsulatedValue(e, t, r) {
|
|
6802
6848
|
try {
|
|
6803
6849
|
return {
|
|
6804
|
-
value: _encapsulate2(e, t[r], Boolean(a), i, l,
|
|
6850
|
+
value: _encapsulate2(e, t[r], Boolean(a), i, l, m)
|
|
6805
6851
|
};
|
|
6806
6852
|
} catch (n) {
|
|
6807
6853
|
var _ref5;
|
|
6808
6854
|
if (!b) throw n;
|
|
6809
|
-
var _o2 = (_ref5 =
|
|
6855
|
+
var _o2 = (_ref5 = d !== null && d !== void 0 ? d : i.type) !== null && _ref5 !== void 0 ? _ref5 : getJSONType(t),
|
|
6810
6856
|
_a = b({
|
|
6811
6857
|
keypath: e,
|
|
6812
6858
|
error: n,
|
|
@@ -6824,7 +6870,7 @@
|
|
|
6824
6870
|
throw n;
|
|
6825
6871
|
}
|
|
6826
6872
|
};
|
|
6827
|
-
if (["string", "boolean", "number", "undefined"].includes(_typeof(t))) return void 0 === t || t === 1 / 0 || 0 === t || t === -1 / 0 || Number.isNaN(t) ? (g = i.replaced ? t : replace(e, t, i, l, false,
|
|
6873
|
+
if (["string", "boolean", "number", "undefined"].includes(_typeof(t))) return void 0 === t || t === 1 / 0 || 0 === t || t === -1 / 0 || Number.isNaN(t) ? (g = i.replaced ? t : replace(e, t, i, l, false, m, w), g !== t && (v = {
|
|
6828
6874
|
replaced: g
|
|
6829
6875
|
})) : g = t, w && w(), g;
|
|
6830
6876
|
if (null === t) return w && w(), t;
|
|
@@ -6909,13 +6955,13 @@
|
|
|
6909
6955
|
o.push(u);
|
|
6910
6956
|
var p = o.length - 1,
|
|
6911
6957
|
f = "$symbolKeys.".concat(escapeKeyPathComponent(e), ".").concat(String(p), ".value"),
|
|
6912
|
-
|
|
6958
|
+
m = {
|
|
6913
6959
|
value: t[r]
|
|
6914
6960
|
};
|
|
6915
6961
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6916
6962
|
ownKeys: true
|
|
6917
6963
|
}, function () {
|
|
6918
|
-
var e = getEncapsulatedValue(f,
|
|
6964
|
+
var e = getEncapsulatedValue(f, m, "value"),
|
|
6919
6965
|
t = e && e.value;
|
|
6920
6966
|
hasConstructorOf(t, TypesonPromise) ? l.push([f, t, Boolean(a), i, u, "value", i.type]) : e && (void 0 !== t || "substitute" in e) && setOwnEnumerable(u, "value", t);
|
|
6921
6967
|
});
|
|
@@ -6931,7 +6977,7 @@
|
|
|
6931
6977
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6932
6978
|
ownKeys: false
|
|
6933
6979
|
}, function () {
|
|
6934
|
-
var e = _encapsulate2(r, void 0, Boolean(a), i, l,
|
|
6980
|
+
var e = _encapsulate2(r, void 0, Boolean(a), i, l, m);
|
|
6935
6981
|
hasConstructorOf(e, TypesonPromise) ? l.push([r, e, Boolean(a), i, S, _n, i.type]) : void 0 !== e && setOwnEnumerable(S, _n, e);
|
|
6936
6982
|
});
|
|
6937
6983
|
};
|
|
@@ -6961,7 +7007,7 @@
|
|
|
6961
7007
|
replaced: true
|
|
6962
7008
|
}), (l || !_o3.replaceAsync) && !_o3.replace) return s && s({
|
|
6963
7009
|
typeDetected: true
|
|
6964
|
-
}), _encapsulate2(e, t,
|
|
7010
|
+
}), _encapsulate2(e, t, d && "readonly", r, n, a, _i2);
|
|
6965
7011
|
var _c = void 0;
|
|
6966
7012
|
if (s && s({
|
|
6967
7013
|
replacing: true
|
|
@@ -6969,15 +7015,15 @@
|
|
|
6969
7015
|
if (void 0 === _o3.replace) throw new TypeError("Missing replacer");
|
|
6970
7016
|
_c = _o3.replace(t, r);
|
|
6971
7017
|
} else _c = _o3.replaceAsync(t, r);
|
|
6972
|
-
return _encapsulate2(e, _c,
|
|
7018
|
+
return _encapsulate2(e, _c, d && "readonly", r, n, a, _i2);
|
|
6973
7019
|
}
|
|
6974
7020
|
}
|
|
6975
7021
|
return t;
|
|
6976
7022
|
},
|
|
6977
|
-
g = _encapsulate2("", e,
|
|
6978
|
-
if (
|
|
7023
|
+
g = _encapsulate2("", e, d, t !== null && t !== void 0 ? t : {}, m);
|
|
7024
|
+
if (m.length) return l && c.throwOnBadSyncType ? function () {
|
|
6979
7025
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6980
|
-
}() : Promise.resolve(_checkPromises(g,
|
|
7026
|
+
}() : Promise.resolve(_checkPromises(g, m)).then(finish);
|
|
6981
7027
|
if (!l && c.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6982
7028
|
return l && c.stringification ? [finish(g)] : l ? finish(g) : Promise.resolve(finish(g));
|
|
6983
7029
|
}
|
|
@@ -7024,8 +7070,8 @@
|
|
|
7024
7070
|
var y = [],
|
|
7025
7071
|
p = Object.create(null),
|
|
7026
7072
|
f = {};
|
|
7027
|
-
var
|
|
7028
|
-
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$,
|
|
7073
|
+
var m = true;
|
|
7074
|
+
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$, m = false, u = false, void 0 !== l && isObject(e) && !n(e, "$symbolKeys") && (e.$symbolKeys = l, u = true));
|
|
7029
7075
|
var executeReviver = function executeReviver(e, t) {
|
|
7030
7076
|
var _this4$revivers$e;
|
|
7031
7077
|
var _ref6 = (_this4$revivers$e = _this4.revivers[e]) !== null && _this4$revivers$e !== void 0 ? _this4$revivers$e : [],
|
|
@@ -7037,7 +7083,7 @@
|
|
|
7037
7083
|
if (r.revive) return r.revive(t, f);
|
|
7038
7084
|
throw new Error("Missing reviver");
|
|
7039
7085
|
},
|
|
7040
|
-
|
|
7086
|
+
d = [];
|
|
7041
7087
|
function checkUndefined(e) {
|
|
7042
7088
|
return hasConstructorOf(e, Undefined) ? void 0 : e;
|
|
7043
7089
|
}
|
|
@@ -7113,8 +7159,8 @@
|
|
|
7113
7159
|
return hasConstructorOf(h, TypesonPromise) ? b = h.then(function () {
|
|
7114
7160
|
return e;
|
|
7115
7161
|
}) : (b = function _revive(e, t, a, s, l) {
|
|
7116
|
-
if (
|
|
7117
|
-
var u =
|
|
7162
|
+
if (m && "$types" === e) return;
|
|
7163
|
+
var u = d.length,
|
|
7118
7164
|
f = n(c, e) ? c[e] : void 0,
|
|
7119
7165
|
h = o(t);
|
|
7120
7166
|
if (h || isPlainObject(t)) {
|
|
@@ -7124,7 +7170,7 @@
|
|
|
7124
7170
|
set = function set(e) {
|
|
7125
7171
|
return hasConstructorOf(e, Undefined) ? setOwnEnumerable(_o4, r, void 0) : void 0 !== e && setOwnEnumerable(_o4, r, e), e;
|
|
7126
7172
|
};
|
|
7127
|
-
hasConstructorOf(n, TypesonPromise) ?
|
|
7173
|
+
hasConstructorOf(n, TypesonPromise) ? d.push(n.then(function (e) {
|
|
7128
7174
|
return set(e);
|
|
7129
7175
|
})) : set(n);
|
|
7130
7176
|
}), t = _o4; y.length;) {
|
|
@@ -7158,11 +7204,11 @@
|
|
|
7158
7204
|
return p[e] = t, t;
|
|
7159
7205
|
}) : (p[e] = r, r);
|
|
7160
7206
|
};
|
|
7161
|
-
return !i &&
|
|
7207
|
+
return !i && d.length > u ? TypesonPromise.all(d.slice(u)).then(function () {
|
|
7162
7208
|
return applyType(t);
|
|
7163
7209
|
}) : applyType(t);
|
|
7164
|
-
}("", e, null),
|
|
7165
|
-
return TypesonPromise.all([e].concat(
|
|
7210
|
+
}("", e, null), d.length && (b = TypesonPromise.resolve(b).then(function (e) {
|
|
7211
|
+
return TypesonPromise.all([e].concat(d));
|
|
7166
7212
|
}).then(function (_ref13) {
|
|
7167
7213
|
var _ref14 = _slicedToArray(_ref13, 1),
|
|
7168
7214
|
e = _ref14[0];
|
|
@@ -7307,7 +7353,7 @@
|
|
|
7307
7353
|
}
|
|
7308
7354
|
}
|
|
7309
7355
|
},
|
|
7310
|
-
|
|
7356
|
+
m = {
|
|
7311
7357
|
audiodata: {
|
|
7312
7358
|
test: function test(e) {
|
|
7313
7359
|
return "AudioData" === toStringTag(e);
|
|
@@ -7362,7 +7408,7 @@
|
|
|
7362
7408
|
}
|
|
7363
7409
|
}
|
|
7364
7410
|
},
|
|
7365
|
-
|
|
7411
|
+
d = {
|
|
7366
7412
|
bigintObject: {
|
|
7367
7413
|
test: function test(e) {
|
|
7368
7414
|
return "object" == _typeof(e) && hasConstructorOf(e, BigInt);
|
|
@@ -7719,7 +7765,7 @@
|
|
|
7719
7765
|
}
|
|
7720
7766
|
}
|
|
7721
7767
|
},
|
|
7722
|
-
|
|
7768
|
+
I = {
|
|
7723
7769
|
error: {
|
|
7724
7770
|
test: function test(e) {
|
|
7725
7771
|
return "Error" === toStringTag(e);
|
|
@@ -7748,9 +7794,9 @@
|
|
|
7748
7794
|
}
|
|
7749
7795
|
}
|
|
7750
7796
|
},
|
|
7751
|
-
|
|
7797
|
+
B = {};
|
|
7752
7798
|
function create$2(e) {
|
|
7753
|
-
|
|
7799
|
+
B[e.name.toLowerCase()] = {
|
|
7754
7800
|
test: function test(t) {
|
|
7755
7801
|
return hasConstructorOf(t, e);
|
|
7756
7802
|
},
|
|
@@ -7783,7 +7829,7 @@
|
|
|
7783
7829
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
7784
7830
|
return create$2(e);
|
|
7785
7831
|
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
7786
|
-
var
|
|
7832
|
+
var C = {
|
|
7787
7833
|
file: {
|
|
7788
7834
|
test: function test(e) {
|
|
7789
7835
|
return "File" === toStringTag(e);
|
|
@@ -7826,7 +7872,7 @@
|
|
|
7826
7872
|
}
|
|
7827
7873
|
},
|
|
7828
7874
|
U = {
|
|
7829
|
-
file:
|
|
7875
|
+
file: C.file,
|
|
7830
7876
|
filelist: {
|
|
7831
7877
|
test: function test(e) {
|
|
7832
7878
|
return "FileList" === toStringTag(e);
|
|
@@ -7861,7 +7907,7 @@
|
|
|
7861
7907
|
k = {
|
|
7862
7908
|
imagebitmap: {
|
|
7863
7909
|
test: function test(e) {
|
|
7864
|
-
return "ImageBitmap" === toStringTag(e)
|
|
7910
|
+
return "ImageBitmap" === toStringTag(e);
|
|
7865
7911
|
},
|
|
7866
7912
|
replace: function replace(e) {
|
|
7867
7913
|
var t = document.createElement("canvas");
|
|
@@ -7876,7 +7922,9 @@
|
|
|
7876
7922
|
r = t.getContext("2d"),
|
|
7877
7923
|
n = document.createElement("img");
|
|
7878
7924
|
return n.addEventListener("load", function () {
|
|
7879
|
-
|
|
7925
|
+
try {
|
|
7926
|
+
r.drawImage(n, 0, 0);
|
|
7927
|
+
} catch (_unused) {}
|
|
7880
7928
|
}), n.src = e.dataURL, "undefined" == typeof OffscreenCanvas ? t : t.transferToImageBitmap();
|
|
7881
7929
|
},
|
|
7882
7930
|
reviveAsync: function reviveAsync(e) {
|
|
@@ -7915,7 +7963,7 @@
|
|
|
7915
7963
|
}
|
|
7916
7964
|
}
|
|
7917
7965
|
},
|
|
7918
|
-
|
|
7966
|
+
R = {
|
|
7919
7967
|
imagedata: {
|
|
7920
7968
|
test: function test(e) {
|
|
7921
7969
|
return "ImageData" === toStringTag(e);
|
|
@@ -7946,7 +7994,7 @@
|
|
|
7946
7994
|
}
|
|
7947
7995
|
}
|
|
7948
7996
|
},
|
|
7949
|
-
|
|
7997
|
+
M = {
|
|
7950
7998
|
infinity: {
|
|
7951
7999
|
test: function test(e) {
|
|
7952
8000
|
return e === 1 / 0;
|
|
@@ -7959,7 +8007,7 @@
|
|
|
7959
8007
|
}
|
|
7960
8008
|
}
|
|
7961
8009
|
},
|
|
7962
|
-
|
|
8010
|
+
L = {
|
|
7963
8011
|
map: {
|
|
7964
8012
|
test: function test(e) {
|
|
7965
8013
|
return "Map" === toStringTag(e);
|
|
@@ -7998,7 +8046,7 @@
|
|
|
7998
8046
|
}
|
|
7999
8047
|
}
|
|
8000
8048
|
},
|
|
8001
|
-
|
|
8049
|
+
W = {
|
|
8002
8050
|
negativeZero: {
|
|
8003
8051
|
test: function test(e) {
|
|
8004
8052
|
return Object.is(e, -0);
|
|
@@ -8344,18 +8392,18 @@
|
|
|
8344
8392
|
revive: function revive() {}
|
|
8345
8393
|
}
|
|
8346
8394
|
}],
|
|
8347
|
-
se = [K,
|
|
8348
|
-
ye = [re, te, ae, z, se, A, H,
|
|
8395
|
+
se = [K, M, $, W],
|
|
8396
|
+
ye = [re, te, ae, z, se, A, H, R, k, C, U, b, I, B].concat("function" == typeof Map ? L : [], "function" == typeof Set ? X : [], "function" == typeof ArrayBuffer ? f : [], "function" == typeof Uint8Array ? ee : [], "function" == typeof DataView ? O : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [h, d] : [], "undefined" != typeof DOMException ? T : [], "undefined" != typeof QuotaExceededError ? J : [], "undefined" != typeof WebTransportError ? oe : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? P : [], "undefined" != typeof DOMQuad ? E : [], "undefined" != typeof DOMMatrix ? S : [], "undefined" != typeof AudioData ? m : [], "undefined" != typeof EncodedAudioChunk ? x : [], "undefined" != typeof EncodedVideoChunk ? j : [], "undefined" != typeof VideoFrame ? ne : []);
|
|
8349
8397
|
var pe = ye.concat({
|
|
8350
8398
|
checkDataCloneException: {
|
|
8351
8399
|
test: function test(e) {
|
|
8352
8400
|
var t = {}.toString.call(e).slice(8, -1);
|
|
8353
|
-
if (["symbol", "function"].includes(_typeof(e)) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "Event", "MessageChannel", "MessagePort"].includes(t) || e && e.constructor && ["MessageChannel", "MessagePort"].includes(e.constructor.name) || ["ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array"].includes(t) && function isBufferDetached(e) {
|
|
8401
|
+
if (["symbol", "function"].includes(_typeof(e)) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "WeakRef", "FinalizationRegistry", "Generator", "AsyncGenerator", "String Iterator", "Array Iterator", "Map Iterator", "Set Iterator", "RegExp String Iterator", "Intl.Collator", "Intl.DateTimeFormat", "Intl.DisplayNames", "Intl.DurationFormat", "Intl.ListFormat", "Intl.Locale", "Intl.NumberFormat", "Intl.PluralRules", "Intl.RelativeTimeFormat", "Intl.Segmenter", "Event", "MessageChannel", "MessagePort", "ReadableStream", "WritableStream", "TransformStream", "OffscreenCanvas"].includes(t) || e && e.constructor && ["MessageChannel", "MessagePort"].includes(e.constructor.name) || ["ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array"].includes(t) && function isBufferDetached(e) {
|
|
8354
8402
|
if ("boolean" == typeof e.detached) return e.detached;
|
|
8355
8403
|
if (0 !== e.byteLength) return false;
|
|
8356
8404
|
try {
|
|
8357
8405
|
return new Uint8Array(e), !1;
|
|
8358
|
-
} catch (
|
|
8406
|
+
} catch (_unused2) {
|
|
8359
8407
|
return true;
|
|
8360
8408
|
}
|
|
8361
8409
|
}(e) || e && "object" == _typeof(e) && "number" == typeof e.nodeType && "function" == typeof e.insertBefore) throw new DOMException("The object cannot be cloned.", "DataCloneError");
|
|
@@ -13902,10 +13950,11 @@
|
|
|
13902
13950
|
setNonIDBGlobals();
|
|
13903
13951
|
}
|
|
13904
13952
|
}
|
|
13905
|
-
/*
|
|
13953
|
+
/* c8 ignore start -- TS guard */
|
|
13906
13954
|
if (!IDB.shimIndexedDB) {
|
|
13907
13955
|
return;
|
|
13908
13956
|
}
|
|
13957
|
+
/* c8 ignore stop -- TS guard */
|
|
13909
13958
|
IDB.shimIndexedDB.__setConnectionQueueOrigin();
|
|
13910
13959
|
}
|
|
13911
13960
|
};
|