indexeddbshim 19.0.1 → 19.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /*! indexeddbshim - v19.0.1 - 9/3/2026 */
1
+ /*! indexeddbshim - v19.0.2 - 9/9/2026 */
2
2
 
3
3
  'use strict';
4
4
 
@@ -2271,6 +2271,7 @@ Object.defineProperty(IDBVersionChangeEvent, Symbol.hasInstance, {
2271
2271
  */
2272
2272
  function createNativeDOMException(name, message) {
2273
2273
  // @ts-expect-error It's ok
2274
+ // eslint-disable-next-line new-cap -- Ok
2274
2275
  return new DOMException.prototype.constructor(message, name || 'DOMException');
2275
2276
  }
2276
2277
 
@@ -6218,8 +6219,8 @@ class Typeson {
6218
6219
  {
6219
6220
  sync: l
6220
6221
  } = c,
6221
- y = {},
6222
6222
  u = {},
6223
+ y = {},
6223
6224
  p = [],
6224
6225
  f = [],
6225
6226
  d = [],
@@ -6229,17 +6230,17 @@ class Typeson {
6229
6230
  encapsulateError: b
6230
6231
  } = c,
6231
6232
  finish = e => {
6232
- const t = Object.values(y);
6233
+ const t = Object.values(u);
6233
6234
  if (c.iterateNone) return t.length ? t[0] : getJSONType(e);
6234
6235
  if (c.returnTypeNames) return !!t.length && [...new Set(t)];
6235
- const r = Object.keys(u).length > 0,
6236
+ const r = Object.keys(y).length > 0,
6236
6237
  o = isObject(e) && (n(e, "$types") || n(e, "$symbolKeys"));
6237
- return r || t.length ? (!o && e && isPlainObject(e) ? t.length && (e.$types = y) : e = {
6238
+ return r || t.length ? (!o && e && isPlainObject(e) ? t.length && (e.$types = u) : e = {
6238
6239
  $: e,
6239
6240
  $types: {
6240
- $: y
6241
+ $: u
6241
6242
  }
6242
- }, r && (e.$symbolKeys = u)) : o && (e = {
6243
+ }, r && (e.$symbolKeys = y)) : o && (e = {
6243
6244
  $: e,
6244
6245
  $types: true
6245
6246
  }), e;
@@ -6249,10 +6250,10 @@ class Typeson {
6249
6250
  return await Promise.all(r.map(async function (r) {
6250
6251
  const n = [],
6251
6252
  [o] = t.splice(0, 1),
6252
- [a,, s, i, c, l, y] = o,
6253
- u = _encapsulate(a, r, s, i, n, true, y),
6254
- p = hasConstructorOf(u, TypesonPromise);
6255
- return a && p ? (setOwnEnumerable(c, l, await u.p), checkPromises(e, n)) : (a ? setOwnEnumerable(c, l, u) : e = p ? u.p : u, checkPromises(e, n));
6253
+ [a,, s, i, c, l, u] = o,
6254
+ y = _encapsulate(a, r, s, i, n, true, u),
6255
+ p = hasConstructorOf(y, TypesonPromise);
6256
+ return a && p ? (setOwnEnumerable(c, l, await y.p), checkPromises(e, n)) : (a ? setOwnEnumerable(c, l, y) : e = p ? y.p : y, checkPromises(e, n));
6256
6257
  })), e;
6257
6258
  },
6258
6259
  _adaptBuiltinStateObjectProperties = (e, t, r) => {
@@ -6313,7 +6314,7 @@ class Typeson {
6313
6314
  if (null === t) return w && w(), t;
6314
6315
  if (a && t && "object" == typeof t && !i.iterateIn && !i.iterateUnsetNumeric) {
6315
6316
  const r = p.indexOf(t);
6316
- if (-1 !== r) return y[e] = "#", w && w({
6317
+ if (-1 !== r) return u[e] = "#", w && w({
6317
6318
  cyclicKeypath: f[r]
6318
6319
  }), "#" + f[r];
6319
6320
  true === a && (p.push(t), f.push(e));
@@ -6377,11 +6378,11 @@ class Typeson {
6377
6378
  if (c.throwOnUnregisteredSymbol) throw new TypeError("Cannot serialize a Symbol-keyed property whose Symbol has no portable identity (not global, not well-known, and not in the `symbols` option): " + String(r));
6378
6379
  return;
6379
6380
  }
6380
- const o = u[e] ??= [],
6381
- y = {
6381
+ const o = y[e] ??= [],
6382
+ u = {
6382
6383
  key: n
6383
6384
  };
6384
- o.push(y);
6385
+ o.push(u);
6385
6386
  const p = o.length - 1,
6386
6387
  f = `$symbolKeys.${escapeKeyPathComponent(e)}.${String(p)}.value`,
6387
6388
  d = {
@@ -6392,7 +6393,7 @@ class Typeson {
6392
6393
  }, () => {
6393
6394
  const e = getEncapsulatedValue(f, d, "value"),
6394
6395
  t = e && e.value;
6395
- hasConstructorOf(t, TypesonPromise) ? l.push([f, t, Boolean(a), i, y, "value", i.type]) : e && (void 0 !== t || "substitute" in e) && setOwnEnumerable(y, "value", t);
6396
+ 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);
6396
6397
  });
6397
6398
  }), w && w({
6398
6399
  endIterateSymbols: true,
@@ -6427,8 +6428,8 @@ class Typeson {
6427
6428
  type: i
6428
6429
  } = o;
6429
6430
  if (Object.hasOwn(this.revivers, i)) {
6430
- const t = y[e];
6431
- y[e] = t ? [i].concat(t) : i;
6431
+ const t = u[e];
6432
+ u[e] = t ? [i].concat(t) : i;
6432
6433
  }
6433
6434
  if (Object.assign(r, {
6434
6435
  type: i,
@@ -6487,16 +6488,16 @@ class Typeson {
6487
6488
  let c = e.$types;
6488
6489
  if (true === c) return finishRevival(e.$);
6489
6490
  const l = e.$symbolKeys;
6490
- let y = void 0 !== l;
6491
+ let u = void 0 !== l;
6491
6492
  if (!c || "object" != typeof c || Array.isArray(c)) {
6492
6493
  if (!l) return finishRevival(e);
6493
6494
  c = {};
6494
6495
  }
6495
- const u = [],
6496
+ const y = [],
6496
6497
  p = Object.create(null),
6497
6498
  f = {};
6498
6499
  let d = true;
6499
- c.$ && isPlainObject(c.$) && (e = e.$, c = c.$, d = false, y = false, void 0 !== l && isObject(e) && !n(e, "$symbolKeys") && (e.$symbolKeys = l, y = true));
6500
+ c.$ && isPlainObject(c.$) && (e = e.$, c = c.$, d = false, u = false, void 0 !== l && isObject(e) && !n(e, "$symbolKeys") && (e.$symbolKeys = l, u = true));
6500
6501
  const executeReviver = (e, t) => {
6501
6502
  const [r] = this.revivers[e] ?? [];
6502
6503
  if (!r) throw new Error("Unregistered type: " + e);
@@ -6511,7 +6512,7 @@ class Typeson {
6511
6512
  }
6512
6513
  const reHomeSymbolKeys = e => {
6513
6514
  if (!isObject(e)) return;
6514
- const t = y ? e.$symbolKeys : l;
6515
+ const t = u ? e.$symbolKeys : l;
6515
6516
  t && (Object.entries(t).forEach(([t, r]) => {
6516
6517
  const o = getByKeyPath(e, t);
6517
6518
  isObject(o) && r.forEach(e => {
@@ -6535,7 +6536,7 @@ class Typeson {
6535
6536
  value: r
6536
6537
  }) : o[t] = r;
6537
6538
  });
6538
- }), y && delete e.$symbolKeys);
6539
+ }), u && delete e.$symbolKeys);
6539
6540
  },
6540
6541
  h = (() => {
6541
6542
  if (!c) throw new Error("Found bad `types`");
@@ -6570,7 +6571,7 @@ class Typeson {
6570
6571
  let b;
6571
6572
  return hasConstructorOf(h, TypesonPromise) ? b = h.then(() => e) : (b = function _revive(e, t, a, s, l) {
6572
6573
  if (d && "$types" === e) return;
6573
- const y = m.length,
6574
+ const u = m.length,
6574
6575
  f = n(c, e) ? c[e] : void 0,
6575
6576
  h = o(t);
6576
6577
  if (h || isPlainObject(t)) {
@@ -6579,12 +6580,12 @@ class Typeson {
6579
6580
  const n = _revive(e + (e ? "." : "") + escapeKeyPathComponent(r), t[r], a ?? o, o, r),
6580
6581
  set = e => (hasConstructorOf(e, Undefined) ? setOwnEnumerable(o, r, void 0) : void 0 !== e && setOwnEnumerable(o, r, e), e);
6581
6582
  hasConstructorOf(n, TypesonPromise) ? m.push(n.then(e => set(e))) : set(n);
6582
- }), t = o; u.length;) {
6583
- const [[e, t, r, o]] = u,
6583
+ }), t = o; y.length;) {
6584
+ const [[e, t, r, o]] = y,
6584
6585
  a = n(p, t),
6585
6586
  s = a ? p[t] : getByKeyPath(e, t);
6586
6587
  if (!a && void 0 === s) break;
6587
- setOwnEnumerable(r, o, s), u.shift();
6588
+ setOwnEnumerable(r, o, s), y.shift();
6588
6589
  }
6589
6590
  }
6590
6591
  if (!f) return p[e] = t, t;
@@ -6592,7 +6593,7 @@ class Typeson {
6592
6593
  const e = t.slice(1),
6593
6594
  r = n(p, e),
6594
6595
  o = r ? p[e] : getByKeyPath(a, e);
6595
- return r || void 0 !== o || u.push([a, e, s, l]), o;
6596
+ return r || void 0 !== o || y.push([a, e, s, l]), o;
6596
6597
  }
6597
6598
  const applyType = t => {
6598
6599
  const r = [].concat(f).reduce(function reducer(e, t) {
@@ -6602,7 +6603,7 @@ class Typeson {
6602
6603
  }, t);
6603
6604
  return hasConstructorOf(r, TypesonPromise) ? r.then(t => (p[e] = t, t)) : (p[e] = r, r);
6604
6605
  };
6605
- return !i && m.length > y ? TypesonPromise.all(m.slice(y)).then(() => applyType(t)) : applyType(t);
6606
+ return !i && m.length > u ? TypesonPromise.all(m.slice(u)).then(() => applyType(t)) : applyType(t);
6606
6607
  }("", e, null), m.length && (b = TypesonPromise.resolve(b).then(e => TypesonPromise.all([e, ...m])).then(([e]) => e))), l && (isThenable(b) ? b = b.then(e => (reHomeSymbolKeys(e), e)) : reHomeSymbolKeys(b)), isThenable(b) ? i && a.throwOnBadSyncType ? (() => {
6607
6608
  throw new TypeError("Sync method requested but async result obtained");
6608
6609
  })() : hasConstructorOf(b, TypesonPromise) ? b.p.then(checkUndefined) : b : !i && a.throwOnBadSyncType ? (() => {
@@ -6676,8 +6677,8 @@ class Typeson {
6676
6677
  class Undefined {}
6677
6678
  Undefined.__typeson__type__ = "TypesonUndefined";
6678
6679
  const i = ["null", "boolean", "number", "string", "array", "object"];
6679
- for (var c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", l = new Uint8Array(256), y = 0; y < 64; y++) l[c.codePointAt(y)] = y;
6680
- var u = function encode(e, t, r) {
6680
+ for (var c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", l = new Uint8Array(256), u = 0; u < 64; u++) l[c.codePointAt(u)] = u;
6681
+ var y = function encode(e, t, r) {
6681
6682
  null == r && (r = e.byteLength);
6682
6683
  for (var n = new Uint8Array(e, 0, r), o = n.length, a = "", s = 0; s < o; s += 3) a += c[n[s] >> 2], a += c[(3 & n[s]) << 4 | n[s + 1] >> 4], a += c[(15 & n[s + 1]) << 2 | n[s + 2] >> 6], a += c[63 & n[s + 2]];
6683
6684
  return o % 3 == 2 ? a = a.slice(0, -1) + "=" : o % 3 == 1 && (a = a.slice(0, -2) + "=="), a;
@@ -6692,8 +6693,8 @@ var u = function encode(e, t, r) {
6692
6693
  i = .75 * e.length,
6693
6694
  c = 0;
6694
6695
  "=" === e[e.length - 1] && (i--, "=" === e[e.length - 2] && i--);
6695
- for (var y = new ArrayBuffer(i, t), u = new Uint8Array(y), p = 0; p < r; p += 4) n = l[e.codePointAt(p)], o = l[e.codePointAt(p + 1)], a = l[e.codePointAt(p + 2)], s = l[e.codePointAt(p + 3)], u[c++] = n << 2 | o >> 4, u[c++] = (15 & o) << 4 | a >> 2, u[c++] = (3 & a) << 6 | 63 & s;
6696
- return y;
6696
+ for (var u = new ArrayBuffer(i, t), y = new Uint8Array(u), p = 0; p < r; p += 4) n = l[e.codePointAt(p)], o = l[e.codePointAt(p + 1)], a = l[e.codePointAt(p + 2)], s = l[e.codePointAt(p + 3)], y[c++] = n << 2 | o >> 4, y[c++] = (15 & o) << 4 | a >> 2, y[c++] = (3 & a) << 6 | 63 & s;
6697
+ return u;
6697
6698
  };
6698
6699
  const f = {
6699
6700
  arraybuffer: {
@@ -6704,7 +6705,7 @@ const f = {
6704
6705
  return -1 !== r ? {
6705
6706
  index: r
6706
6707
  } : (t.buffers.push(e), {
6707
- s: u(e),
6708
+ s: y(e),
6708
6709
  maxByteLength: e.maxByteLength,
6709
6710
  resizable: e.resizable
6710
6711
  });
@@ -6739,12 +6740,12 @@ const f = {
6739
6740
  i.push(r), c += r;
6740
6741
  }
6741
6742
  const l = new ArrayBuffer(c);
6742
- let y = 0;
6743
+ let u = 0;
6743
6744
  for (let t = 0; t < s; t++) {
6744
- const r = new Uint8Array(l, y, i[t]);
6745
+ const r = new Uint8Array(l, u, i[t]);
6745
6746
  e.copyTo(r, {
6746
6747
  planeIndex: t
6747
- }), y += i[t];
6748
+ }), u += i[t];
6748
6749
  }
6749
6750
  return {
6750
6751
  format: t,
@@ -6868,7 +6869,7 @@ const w = {
6868
6869
  byteOffset: t,
6869
6870
  byteLength: r
6870
6871
  } : (n.buffers.push(e), {
6871
- encoded: u(e),
6872
+ encoded: y(e),
6872
6873
  maxByteLength: e.maxByteLength,
6873
6874
  resizable: e.resizable,
6874
6875
  byteOffset: t,
@@ -6984,9 +6985,9 @@ const E = {
6984
6985
  }) => new DOMQuad(e, t, r, n)
6985
6986
  }
6986
6987
  },
6987
- x = {};
6988
+ N = {};
6988
6989
  function create$3(e) {
6989
- x[e.name.toLowerCase()] = {
6990
+ N[e.name.toLowerCase()] = {
6990
6991
  test: t => toStringTag(t) === e.name,
6991
6992
  replace: e => ({
6992
6993
  x: e.x,
@@ -7003,7 +7004,7 @@ function create$3(e) {
7003
7004
  };
7004
7005
  }
7005
7006
  "undefined" != typeof DOMRect && create$3(DOMRect), "undefined" != typeof DOMRectReadOnly && create$3(DOMRectReadOnly);
7006
- const j = {
7007
+ const x = {
7007
7008
  encodedaudiochunk: {
7008
7009
  test: e => "EncodedAudioChunk" === toStringTag(e),
7009
7010
  replace(e) {
@@ -7036,7 +7037,7 @@ const j = {
7036
7037
  }
7037
7038
  }
7038
7039
  },
7039
- B = {
7040
+ j = {
7040
7041
  encodedvideochunk: {
7041
7042
  test: e => "EncodedVideoChunk" === toStringTag(e),
7042
7043
  replace(e) {
@@ -7069,7 +7070,7 @@ const j = {
7069
7070
  }
7070
7071
  }
7071
7072
  },
7072
- N = {
7073
+ B = {
7073
7074
  error: {
7074
7075
  test: e => "Error" === toStringTag(e),
7075
7076
  replace: ({
@@ -7187,7 +7188,7 @@ const I = {
7187
7188
  }
7188
7189
  }
7189
7190
  },
7190
- _ = {
7191
+ k = {
7191
7192
  imagebitmap: {
7192
7193
  test: e => "ImageBitmap" === toStringTag(e) || e && e.dataset && "ImageBitmap" === e.dataset.toStringTag,
7193
7194
  replace(e) {
@@ -7222,7 +7223,7 @@ const I = {
7222
7223
  }
7223
7224
  }
7224
7225
  },
7225
- k = {
7226
+ M = {
7226
7227
  imagedata: {
7227
7228
  test: e => "ImageData" === toStringTag(e),
7228
7229
  replace(e) {
@@ -7253,42 +7254,42 @@ const I = {
7253
7254
  }
7254
7255
  }
7255
7256
  },
7256
- M = {
7257
+ D = {
7257
7258
  infinity: {
7258
7259
  test: e => e === 1 / 0,
7259
7260
  replace: () => "Infinity",
7260
7261
  revive: () => 1 / 0
7261
7262
  }
7262
7263
  },
7263
- L = {
7264
+ F = {
7264
7265
  map: {
7265
7266
  test: e => "Map" === toStringTag(e),
7266
7267
  replace: e => e.entries().toArray(),
7267
7268
  revive: e => new Map(e)
7268
7269
  }
7269
7270
  },
7270
- F = {
7271
+ K = {
7271
7272
  nan: {
7272
7273
  test: e => Number.isNaN(e),
7273
7274
  replace: () => "NaN",
7274
7275
  revive: () => NaN
7275
7276
  }
7276
7277
  },
7277
- K = {
7278
+ $ = {
7278
7279
  negativeInfinity: {
7279
7280
  test: e => e === -1 / 0,
7280
7281
  replace: () => "-Infinity",
7281
7282
  revive: () => -1 / 0
7282
7283
  }
7283
7284
  },
7284
- $ = {
7285
+ q = {
7285
7286
  negativeZero: {
7286
7287
  test: e => Object.is(e, -0),
7287
7288
  replace: () => 0,
7288
7289
  revive: () => -0
7289
7290
  }
7290
7291
  },
7291
- W = {
7292
+ z = {
7292
7293
  StringObject: {
7293
7294
  test: e => "String" === toStringTag(e) && "object" == typeof e,
7294
7295
  replace: String,
@@ -7308,29 +7309,42 @@ const I = {
7308
7309
  revive: e => new Number("NaN" === e ? NaN : "Infinity" === e ? 1 / 0 : "-Infinity" === e ? -1 / 0 : "-0" === e ? -0 : e)
7309
7310
  }
7310
7311
  },
7311
- V = {
7312
+ J = {
7312
7313
  quotaexceedederror: {
7313
7314
  test: e => "QuotaExceededError" === toStringTag(e),
7314
7315
  replace: ({
7315
7316
  message: e,
7316
7317
  quota: t,
7317
- requested: r
7318
+ requested: r,
7319
+ cause: n,
7320
+ stack: o,
7321
+ fileName: a,
7322
+ lineNumber: s,
7323
+ columnNumber: i
7318
7324
  }) => ({
7319
7325
  message: e,
7320
7326
  quota: t,
7321
- requested: r
7327
+ requested: r,
7328
+ cause: n,
7329
+ stack: o,
7330
+ fileName: a,
7331
+ lineNumber: s,
7332
+ columnNumber: i
7322
7333
  }),
7323
- revive({
7324
- message: e,
7325
- quota: t,
7326
- requested: r
7327
- }) {
7328
- const n = {};
7329
- return null != t && (n.quota = t), null != r && (n.requested = r), new QuotaExceededError(e, n);
7334
+ revive(e) {
7335
+ const {
7336
+ message: t,
7337
+ quota: r,
7338
+ requested: n
7339
+ } = e,
7340
+ o = {};
7341
+ null != r && (o.quota = r), null != n && (o.requested = n);
7342
+ const a = new QuotaExceededError(t, o);
7343
+ return a.cause = e.cause, a.stack = e.stack, a.fileName = e.fileName, a.lineNumber = e.lineNumber, a.columnNumber = e.columnNumber, a;
7330
7344
  }
7331
7345
  }
7332
7346
  },
7333
- J = {
7347
+ H = {
7334
7348
  regexp: {
7335
7349
  test: e => "RegExp" === toStringTag(e),
7336
7350
  replace: e => ({
@@ -7343,26 +7357,26 @@ const I = {
7343
7357
  }) => new RegExp(e, t)
7344
7358
  }
7345
7359
  },
7346
- G = {
7360
+ X = {
7347
7361
  set: {
7348
7362
  test: e => "Set" === toStringTag(e),
7349
7363
  replace: e => e.values().toArray(),
7350
7364
  revive: e => new Set(e)
7351
7365
  }
7352
7366
  },
7353
- Y = {};
7367
+ Z = {};
7354
7368
  "function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, ...("function" == typeof BigInt64Array ? [BigInt64Array, BigUint64Array] : []), ...("function" == typeof Float16Array ? [Float16Array] : [])].forEach(e => function create$1(e) {
7355
7369
  const t = e.name;
7356
- Y[t.toLowerCase()] = {
7370
+ Z[t.toLowerCase()] = {
7357
7371
  test: e => toStringTag(e) === t,
7358
7372
  replace: e => (0 === e.byteOffset && e.byteLength === e.buffer.byteLength ? e : e.slice(0)).buffer,
7359
7373
  revive: t => "ArrayBuffer" === toStringTag(t) ? new e(t) : t
7360
7374
  };
7361
7375
  }(e));
7362
- const Z = {};
7376
+ const ee = {};
7363
7377
  "function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, ...("function" == typeof BigInt64Array ? [BigInt64Array, BigUint64Array] : []), ...("function" == typeof Float16Array ? [Float16Array] : [])].forEach(e => function create(e) {
7364
7378
  const t = e.name;
7365
- Z[t.toLowerCase()] = {
7379
+ ee[t.toLowerCase()] = {
7366
7380
  test: e => toStringTag(e) === t,
7367
7381
  replace({
7368
7382
  buffer: e,
@@ -7378,7 +7392,7 @@ const Z = {};
7378
7392
  } : (n.buffers.push(e), {
7379
7393
  maxByteLength: e.maxByteLength,
7380
7394
  resizable: e.resizable,
7381
- encoded: u(e),
7395
+ encoded: y(e),
7382
7396
  byteOffset: t,
7383
7397
  length: r
7384
7398
  });
@@ -7400,14 +7414,14 @@ const Z = {};
7400
7414
  }
7401
7415
  };
7402
7416
  }(e));
7403
- const ee = {
7417
+ const te = {
7404
7418
  undef: {
7405
7419
  test: (e, t) => void 0 === e && (t.ownKeys || !("ownKeys" in t)),
7406
7420
  replace: () => 0,
7407
7421
  revive: () => new Undefined()
7408
7422
  }
7409
7423
  },
7410
- te = {
7424
+ re = {
7411
7425
  userObject: {
7412
7426
  test: e => isUserObject(e),
7413
7427
  replace: e => ({
@@ -7416,7 +7430,7 @@ const ee = {
7416
7430
  revive: e => e
7417
7431
  }
7418
7432
  },
7419
- re = {
7433
+ ne = {
7420
7434
  videoframe: {
7421
7435
  test: e => "VideoFrame" === toStringTag(e),
7422
7436
  replaceAsync: e => new TypesonPromise(async (t, r) => {
@@ -7430,10 +7444,10 @@ const ee = {
7430
7444
  visibleRect: i,
7431
7445
  displayWidth: c,
7432
7446
  displayHeight: l,
7433
- colorSpace: y
7447
+ colorSpace: u
7434
7448
  } = e,
7435
- u = new ArrayBuffer(e.allocationSize());
7436
- await e.copyTo(u), t({
7449
+ y = new ArrayBuffer(e.allocationSize());
7450
+ await e.copyTo(y), t({
7437
7451
  format: r,
7438
7452
  codedWidth: n,
7439
7453
  codedHeight: o,
@@ -7448,12 +7462,12 @@ const ee = {
7448
7462
  displayWidth: c,
7449
7463
  displayHeight: l,
7450
7464
  colorSpace: {
7451
- primaries: y.primaries,
7452
- transfer: y.transfer,
7453
- matrix: y.matrix,
7454
- fullRange: y.fullRange
7465
+ primaries: u.primaries,
7466
+ transfer: u.transfer,
7467
+ matrix: u.matrix,
7468
+ fullRange: u.fullRange
7455
7469
  },
7456
- data: u
7470
+ data: y
7457
7471
  });
7458
7472
  } catch (e) {
7459
7473
  r(e);
@@ -7471,7 +7485,7 @@ const ee = {
7471
7485
  colorSpace: c,
7472
7486
  data: l
7473
7487
  }) {
7474
- const y = {
7488
+ const u = {
7475
7489
  format: e,
7476
7490
  codedWidth: t,
7477
7491
  codedHeight: r,
@@ -7481,30 +7495,44 @@ const ee = {
7481
7495
  displayHeight: i,
7482
7496
  colorSpace: c
7483
7497
  };
7484
- return null != o && (y.duration = o), new VideoFrame(new Uint8Array(l), y);
7498
+ return null != o && (u.duration = o), new VideoFrame(new Uint8Array(l), u);
7485
7499
  }
7486
7500
  }
7487
7501
  },
7488
- ne = {
7502
+ oe = {
7489
7503
  webtransporterror: {
7490
7504
  test: e => "WebTransportError" === toStringTag(e),
7491
7505
  replace: ({
7492
7506
  message: e,
7493
- streamErrorCode: t
7507
+ streamErrorCode: t,
7508
+ cause: r,
7509
+ stack: n,
7510
+ fileName: o,
7511
+ lineNumber: a,
7512
+ columnNumber: s
7494
7513
  }) => ({
7495
7514
  message: e,
7496
- streamErrorCode: t
7515
+ streamErrorCode: t,
7516
+ cause: r,
7517
+ stack: n,
7518
+ fileName: o,
7519
+ lineNumber: a,
7520
+ columnNumber: s
7497
7521
  }),
7498
- revive: ({
7499
- message: e,
7500
- streamErrorCode: t
7501
- }) => new WebTransportError({
7502
- message: e,
7503
- streamErrorCode: t
7504
- })
7522
+ revive(e) {
7523
+ const {
7524
+ message: t,
7525
+ streamErrorCode: r
7526
+ } = e,
7527
+ n = new WebTransportError({
7528
+ message: t,
7529
+ streamErrorCode: r
7530
+ });
7531
+ return n.cause = e.cause, n.stack = e.stack, n.fileName = e.fileName, n.lineNumber = e.lineNumber, n.columnNumber = e.columnNumber, n;
7532
+ }
7505
7533
  }
7506
7534
  },
7507
- oe = [{
7535
+ ae = [{
7508
7536
  arrayNonindexKeys: {
7509
7537
  testPlainObjects: true,
7510
7538
  test: (e, t) => !!Array.isArray(e) && (Object.keys(e).some(e => String(Number(e)) !== e) && (t.iterateIn = "object", t.addLength = true), true),
@@ -7524,9 +7552,9 @@ const ee = {
7524
7552
  revive() {}
7525
7553
  }
7526
7554
  }],
7527
- ae = [F, M, K, $],
7528
- ye = [te, ee, oe, W, ae, A, J, k, _, I, U, b, N, C].concat("function" == typeof Map ? L : [], "function" == typeof Set ? G : [], "function" == typeof ArrayBuffer ? f : [], "function" == typeof Uint8Array ? Z : [], "function" == typeof DataView ? O : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [h, m] : [], "undefined" != typeof DOMException ? T : [], "undefined" != typeof QuotaExceededError ? V : [], "undefined" != typeof WebTransportError ? ne : [], "undefined" != typeof DOMRect ? x : [], "undefined" != typeof DOMPoint ? P : [], "undefined" != typeof DOMQuad ? E : [], "undefined" != typeof DOMMatrix ? S : [], "undefined" != typeof AudioData ? d : [], "undefined" != typeof EncodedAudioChunk ? j : [], "undefined" != typeof EncodedVideoChunk ? B : [], "undefined" != typeof VideoFrame ? re : []);
7529
- const ue = ye.concat({
7555
+ se = [K, D, $, q],
7556
+ ye = [re, te, ae, z, se, A, H, M, k, I, U, b, B, C].concat("function" == typeof Map ? F : [], "function" == typeof Set ? X : [], "function" == typeof ArrayBuffer ? f : [], "function" == typeof Uint8Array ? ee : [], "function" == typeof DataView ? O : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [h, m] : [], "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 ? d : [], "undefined" != typeof EncodedAudioChunk ? x : [], "undefined" != typeof EncodedVideoChunk ? j : [], "undefined" != typeof VideoFrame ? ne : []);
7557
+ const pe = ye.concat({
7530
7558
  checkDataCloneException: {
7531
7559
  test(e) {
7532
7560
  const t = {}.toString.call(e).slice(8, -1);
@@ -7543,7 +7571,7 @@ const ue = ye.concat({
7543
7571
  }
7544
7572
  }
7545
7573
  }),
7546
- pe = ue.concat({
7574
+ fe = pe.concat({
7547
7575
  checkSharedArrayBufferException: {
7548
7576
  test(e) {
7549
7577
  if ("SharedArrayBuffer" === {}.toString.call(e).slice(8, -1)) throw new DOMException("The object cannot be cloned.", "DataCloneError");
@@ -7557,7 +7585,7 @@ const ue = ye.concat({
7557
7585
  // Although typeson-registry already has a FileList type in its structured cloning presets,
7558
7586
  // we need to override it so it works with our tests
7559
7587
 
7560
- const specSet = pe.flatMap(preset => Array.isArray(preset) ? preset : [preset]).find(preset => preset && !Array.isArray(preset) && 'filelist' in preset);
7588
+ const specSet = fe.flatMap(preset => Array.isArray(preset) ? preset : [preset]).find(preset => preset && !Array.isArray(preset) && 'filelist' in preset);
7561
7589
  const origFileList = specSet && !Array.isArray(specSet) && 'filelist' in specSet ? specSet.filelist : undefined;
7562
7590
  const origTest = origFileList && typeof origFileList === 'object' && 'test' in origFileList && typeof origFileList.test === 'function' ? origFileList.test : undefined;
7563
7591
  const origRevive = origFileList && typeof origFileList === 'object' && 'revive' in origFileList && typeof origFileList.revive === 'function' ? origFileList.revive : undefined;
@@ -7586,7 +7614,7 @@ const customFileList = origFileList ? {
7586
7614
  return typeof origRevive === 'function' ? origRevive(x, state) : undefined;
7587
7615
  }
7588
7616
  } : undefined;
7589
- let typeson = new Typeson().register([pe, customFileList ? {
7617
+ let typeson = new Typeson().register([fe, customFileList ? {
7590
7618
  filelist: customFileList
7591
7619
  } : {}]);
7592
7620
 
@@ -7597,7 +7625,7 @@ let typeson = new Typeson().register([pe, customFileList ? {
7597
7625
  */
7598
7626
  function register(func) {
7599
7627
  // eslint-disable-next-line unicorn/no-top-level-assignment-in-function -- Should be one-time cache
7600
- typeson = new Typeson().register(func(pe));
7628
+ typeson = new Typeson().register(func(fe));
7601
7629
  }
7602
7630
 
7603
7631
  /**