typeson-registry 8.0.0 → 9.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.
Files changed (80) hide show
  1. package/README.md +5 -0
  2. package/dist/index.d.ts +5 -3
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +99 -36
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist/index.umd.cjs +370 -281
  9. package/dist/index.umd.cjs.map +1 -1
  10. package/dist/index.umd.min.cjs +1 -1
  11. package/dist/index.umd.min.cjs.map +1 -1
  12. package/dist/presets/array-nonindex-keys.umd.cjs +1 -1
  13. package/dist/presets/array-nonindex-keys.umd.cjs.map +1 -1
  14. package/dist/presets/builtin.umd.cjs +1 -1
  15. package/dist/presets/builtin.umd.cjs.map +1 -1
  16. package/dist/presets/postmessage.umd.cjs.map +1 -1
  17. package/dist/presets/socketio.umd.cjs +1 -1
  18. package/dist/presets/socketio.umd.cjs.map +1 -1
  19. package/dist/presets/sparse-undefined.umd.cjs +1 -1
  20. package/dist/presets/sparse-undefined.umd.cjs.map +1 -1
  21. package/dist/presets/special-numbers.umd.cjs +1 -1
  22. package/dist/presets/special-numbers.umd.cjs.map +1 -1
  23. package/dist/presets/structured-cloning-throwing.d.ts.map +1 -1
  24. package/dist/presets/structured-cloning-throwing.umd.cjs +1 -1
  25. package/dist/presets/structured-cloning-throwing.umd.cjs.map +1 -1
  26. package/dist/presets/structured-cloning.d.ts.map +1 -1
  27. package/dist/presets/structured-cloning.umd.cjs +1 -1
  28. package/dist/presets/structured-cloning.umd.cjs.map +1 -1
  29. package/dist/presets/undef.umd.cjs +1 -1
  30. package/dist/presets/undef.umd.cjs.map +1 -1
  31. package/dist/presets/universal.umd.cjs +1 -1
  32. package/dist/presets/universal.umd.cjs.map +1 -1
  33. package/dist/types/bigint-object.d.ts.map +1 -1
  34. package/dist/types/bigint-object.umd.cjs.map +1 -1
  35. package/dist/types/bigint.d.ts.map +1 -1
  36. package/dist/types/bigint.umd.cjs.map +1 -1
  37. package/dist/types/blob.umd.cjs.map +1 -1
  38. package/dist/types/cloneable.umd.cjs.map +1 -1
  39. package/dist/types/cryptokey.umd.cjs +1 -1
  40. package/dist/types/cryptokey.umd.cjs.map +1 -1
  41. package/dist/types/domexception.d.ts +6 -0
  42. package/dist/types/domexception.d.ts.map +1 -0
  43. package/dist/types/domexception.umd.cjs +2 -0
  44. package/dist/types/domexception.umd.cjs.map +1 -0
  45. package/dist/types/dompoint.d.ts +6 -0
  46. package/dist/types/dompoint.d.ts.map +1 -0
  47. package/dist/types/dompoint.umd.cjs +2 -0
  48. package/dist/types/dompoint.umd.cjs.map +1 -0
  49. package/dist/types/domrect.d.ts +6 -0
  50. package/dist/types/domrect.d.ts.map +1 -0
  51. package/dist/types/domrect.umd.cjs +2 -0
  52. package/dist/types/domrect.umd.cjs.map +1 -0
  53. package/dist/types/errors.d.ts.map +1 -1
  54. package/dist/types/errors.umd.cjs.map +1 -1
  55. package/dist/types/file.umd.cjs.map +1 -1
  56. package/dist/types/filelist.umd.cjs.map +1 -1
  57. package/dist/types/imagebitmap.umd.cjs +1 -1
  58. package/dist/types/imagebitmap.umd.cjs.map +1 -1
  59. package/dist/types/infinity.umd.cjs +1 -1
  60. package/dist/types/infinity.umd.cjs.map +1 -1
  61. package/dist/types/nan.umd.cjs +1 -1
  62. package/dist/types/nan.umd.cjs.map +1 -1
  63. package/dist/types/negative-infinity.umd.cjs +1 -1
  64. package/dist/types/negative-infinity.umd.cjs.map +1 -1
  65. package/dist/types/negative-zero.umd.cjs +1 -1
  66. package/dist/types/negative-zero.umd.cjs.map +1 -1
  67. package/dist/types/nonbuiltin-ignore.umd.cjs +1 -1
  68. package/dist/types/nonbuiltin-ignore.umd.cjs.map +1 -1
  69. package/dist/types/resurrectable.umd.cjs.map +1 -1
  70. package/dist/types/undef.umd.cjs +1 -1
  71. package/dist/types/undef.umd.cjs.map +1 -1
  72. package/dist/types/user-object.umd.cjs +1 -1
  73. package/dist/types/user-object.umd.cjs.map +1 -1
  74. package/dist/utils/generateUUID.d.ts.map +1 -1
  75. package/package.json +46 -45
  76. package/polyfills/createObjectURL.js +2 -2
  77. package/polyfills/createObjectURL.umd.cjs +1 -1
  78. package/polyfills/createObjectURL.umd.cjs.map +1 -1
  79. package/utils/generateUUID.js +3 -5
  80. package/utils/stringArrayBuffer.js +1 -1
@@ -4,358 +4,363 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TypesonNamespace = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- function _iterableToArrayLimit(arr, i) {
8
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
9
- if (null != _i) {
10
- var _s,
11
- _e,
12
- _x,
13
- _r,
14
- _arr = [],
15
- _n = !0,
16
- _d = !1;
7
+ function _iterableToArrayLimit(r, l) {
8
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
9
+ if (null != t) {
10
+ var e,
11
+ n,
12
+ i,
13
+ u,
14
+ a = [],
15
+ f = !0,
16
+ o = !1;
17
17
  try {
18
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
19
- if (Object(_i) !== _i) return;
20
- _n = !1;
21
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
22
- } catch (err) {
23
- _d = !0, _e = err;
18
+ if (i = (t = t.call(r)).next, 0 === l) {
19
+ if (Object(t) !== t) return;
20
+ f = !1;
21
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
22
+ } catch (r) {
23
+ o = !0, n = r;
24
24
  } finally {
25
25
  try {
26
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
26
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
27
27
  } finally {
28
- if (_d) throw _e;
28
+ if (o) throw n;
29
29
  }
30
30
  }
31
- return _arr;
31
+ return a;
32
32
  }
33
33
  }
34
- function ownKeys$1(object, enumerableOnly) {
35
- var keys = Object.keys(object);
34
+ function ownKeys$1(e, r) {
35
+ var t = Object.keys(e);
36
36
  if (Object.getOwnPropertySymbols) {
37
- var symbols = Object.getOwnPropertySymbols(object);
38
- enumerableOnly && (symbols = symbols.filter(function (sym) {
39
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
40
- })), keys.push.apply(keys, symbols);
37
+ var o = Object.getOwnPropertySymbols(e);
38
+ r && (o = o.filter(function (r) {
39
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
40
+ })), t.push.apply(t, o);
41
41
  }
42
- return keys;
42
+ return t;
43
43
  }
44
- function _objectSpread2$1(target) {
45
- for (var i = 1; i < arguments.length; i++) {
46
- var source = null != arguments[i] ? arguments[i] : {};
47
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
48
- _defineProperty$1(target, key, source[key]);
49
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
50
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
44
+ function _objectSpread2$1(e) {
45
+ for (var r = 1; r < arguments.length; r++) {
46
+ var t = null != arguments[r] ? arguments[r] : {};
47
+ r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
48
+ _defineProperty$1(e, r, t[r]);
49
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
50
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
51
51
  });
52
52
  }
53
- return target;
53
+ return e;
54
54
  }
55
55
  function _regeneratorRuntime() {
56
56
  _regeneratorRuntime = function () {
57
- return exports;
57
+ return e;
58
58
  };
59
- var exports = {},
60
- Op = Object.prototype,
61
- hasOwn = Op.hasOwnProperty,
62
- defineProperty = Object.defineProperty || function (obj, key, desc) {
63
- obj[key] = desc.value;
64
- },
65
- $Symbol = "function" == typeof Symbol ? Symbol : {},
66
- iteratorSymbol = $Symbol.iterator || "@@iterator",
67
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
68
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
69
- function define(obj, key, value) {
70
- return Object.defineProperty(obj, key, {
71
- value: value,
59
+ var t,
60
+ e = {},
61
+ r = Object.prototype,
62
+ n = r.hasOwnProperty,
63
+ o = Object.defineProperty || function (t, e, r) {
64
+ t[e] = r.value;
65
+ },
66
+ i = "function" == typeof Symbol ? Symbol : {},
67
+ a = i.iterator || "@@iterator",
68
+ c = i.asyncIterator || "@@asyncIterator",
69
+ u = i.toStringTag || "@@toStringTag";
70
+ function define(t, e, r) {
71
+ return Object.defineProperty(t, e, {
72
+ value: r,
72
73
  enumerable: !0,
73
74
  configurable: !0,
74
75
  writable: !0
75
- }), obj[key];
76
+ }), t[e];
76
77
  }
77
78
  try {
78
79
  define({}, "");
79
- } catch (err) {
80
- define = function (obj, key, value) {
81
- return obj[key] = value;
80
+ } catch (t) {
81
+ define = function (t, e, r) {
82
+ return t[e] = r;
82
83
  };
83
84
  }
84
- function wrap(innerFn, outerFn, self, tryLocsList) {
85
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
86
- generator = Object.create(protoGenerator.prototype),
87
- context = new Context(tryLocsList || []);
88
- return defineProperty(generator, "_invoke", {
89
- value: makeInvokeMethod(innerFn, self, context)
90
- }), generator;
85
+ function wrap(t, e, r, n) {
86
+ var i = e && e.prototype instanceof Generator ? e : Generator,
87
+ a = Object.create(i.prototype),
88
+ c = new Context(n || []);
89
+ return o(a, "_invoke", {
90
+ value: makeInvokeMethod(t, r, c)
91
+ }), a;
91
92
  }
92
- function tryCatch(fn, obj, arg) {
93
+ function tryCatch(t, e, r) {
93
94
  try {
94
95
  return {
95
96
  type: "normal",
96
- arg: fn.call(obj, arg)
97
+ arg: t.call(e, r)
97
98
  };
98
- } catch (err) {
99
+ } catch (t) {
99
100
  return {
100
101
  type: "throw",
101
- arg: err
102
+ arg: t
102
103
  };
103
104
  }
104
105
  }
105
- exports.wrap = wrap;
106
- var ContinueSentinel = {};
106
+ e.wrap = wrap;
107
+ var h = "suspendedStart",
108
+ l = "suspendedYield",
109
+ f = "executing",
110
+ s = "completed",
111
+ y = {};
107
112
  function Generator() {}
108
113
  function GeneratorFunction() {}
109
114
  function GeneratorFunctionPrototype() {}
110
- var IteratorPrototype = {};
111
- define(IteratorPrototype, iteratorSymbol, function () {
115
+ var p = {};
116
+ define(p, a, function () {
112
117
  return this;
113
118
  });
114
- var getProto = Object.getPrototypeOf,
115
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
116
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
117
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
118
- function defineIteratorMethods(prototype) {
119
- ["next", "throw", "return"].forEach(function (method) {
120
- define(prototype, method, function (arg) {
121
- return this._invoke(method, arg);
119
+ var d = Object.getPrototypeOf,
120
+ v = d && d(d(values([])));
121
+ v && v !== r && n.call(v, a) && (p = v);
122
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
123
+ function defineIteratorMethods(t) {
124
+ ["next", "throw", "return"].forEach(function (e) {
125
+ define(t, e, function (t) {
126
+ return this._invoke(e, t);
122
127
  });
123
128
  });
124
129
  }
125
- function AsyncIterator(generator, PromiseImpl) {
126
- function invoke(method, arg, resolve, reject) {
127
- var record = tryCatch(generator[method], generator, arg);
128
- if ("throw" !== record.type) {
129
- var result = record.arg,
130
- value = result.value;
131
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
132
- invoke("next", value, resolve, reject);
133
- }, function (err) {
134
- invoke("throw", err, resolve, reject);
135
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
136
- result.value = unwrapped, resolve(result);
137
- }, function (error) {
138
- return invoke("throw", error, resolve, reject);
130
+ function AsyncIterator(t, e) {
131
+ function invoke(r, o, i, a) {
132
+ var c = tryCatch(t[r], t, o);
133
+ if ("throw" !== c.type) {
134
+ var u = c.arg,
135
+ h = u.value;
136
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
137
+ invoke("next", t, i, a);
138
+ }, function (t) {
139
+ invoke("throw", t, i, a);
140
+ }) : e.resolve(h).then(function (t) {
141
+ u.value = t, i(u);
142
+ }, function (t) {
143
+ return invoke("throw", t, i, a);
139
144
  });
140
145
  }
141
- reject(record.arg);
146
+ a(c.arg);
142
147
  }
143
- var previousPromise;
144
- defineProperty(this, "_invoke", {
145
- value: function (method, arg) {
148
+ var r;
149
+ o(this, "_invoke", {
150
+ value: function (t, n) {
146
151
  function callInvokeWithMethodAndArg() {
147
- return new PromiseImpl(function (resolve, reject) {
148
- invoke(method, arg, resolve, reject);
152
+ return new e(function (e, r) {
153
+ invoke(t, n, e, r);
149
154
  });
150
155
  }
151
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
156
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
152
157
  }
153
158
  });
154
159
  }
155
- function makeInvokeMethod(innerFn, self, context) {
156
- var state = "suspendedStart";
157
- return function (method, arg) {
158
- if ("executing" === state) throw new Error("Generator is already running");
159
- if ("completed" === state) {
160
- if ("throw" === method) throw arg;
160
+ function makeInvokeMethod(e, r, n) {
161
+ var o = h;
162
+ return function (i, a) {
163
+ if (o === f) throw new Error("Generator is already running");
164
+ if (o === s) {
165
+ if ("throw" === i) throw a;
161
166
  return {
162
- value: void 0,
167
+ value: t,
163
168
  done: !0
164
169
  };
165
170
  }
166
- for (context.method = method, context.arg = arg;;) {
167
- var delegate = context.delegate;
168
- if (delegate) {
169
- var delegateResult = maybeInvokeDelegate(delegate, context);
170
- if (delegateResult) {
171
- if (delegateResult === ContinueSentinel) continue;
172
- return delegateResult;
171
+ for (n.method = i, n.arg = a;;) {
172
+ var c = n.delegate;
173
+ if (c) {
174
+ var u = maybeInvokeDelegate(c, n);
175
+ if (u) {
176
+ if (u === y) continue;
177
+ return u;
173
178
  }
174
179
  }
175
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
176
- if ("suspendedStart" === state) throw state = "completed", context.arg;
177
- context.dispatchException(context.arg);
178
- } else "return" === context.method && context.abrupt("return", context.arg);
179
- state = "executing";
180
- var record = tryCatch(innerFn, self, context);
181
- if ("normal" === record.type) {
182
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
180
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
181
+ if (o === h) throw o = s, n.arg;
182
+ n.dispatchException(n.arg);
183
+ } else "return" === n.method && n.abrupt("return", n.arg);
184
+ o = f;
185
+ var p = tryCatch(e, r, n);
186
+ if ("normal" === p.type) {
187
+ if (o = n.done ? s : l, p.arg === y) continue;
183
188
  return {
184
- value: record.arg,
185
- done: context.done
189
+ value: p.arg,
190
+ done: n.done
186
191
  };
187
192
  }
188
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
193
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
189
194
  }
190
195
  };
191
196
  }
192
- function maybeInvokeDelegate(delegate, context) {
193
- var methodName = context.method,
194
- method = delegate.iterator[methodName];
195
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
196
- var record = tryCatch(method, delegate.iterator, context.arg);
197
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
198
- var info = record.arg;
199
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
200
- }
201
- function pushTryEntry(locs) {
202
- var entry = {
203
- tryLoc: locs[0]
197
+ function maybeInvokeDelegate(e, r) {
198
+ var n = r.method,
199
+ o = e.iterator[n];
200
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
201
+ var i = tryCatch(o, e.iterator, r.arg);
202
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
203
+ var a = i.arg;
204
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
205
+ }
206
+ function pushTryEntry(t) {
207
+ var e = {
208
+ tryLoc: t[0]
204
209
  };
205
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
210
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
206
211
  }
207
- function resetTryEntry(entry) {
208
- var record = entry.completion || {};
209
- record.type = "normal", delete record.arg, entry.completion = record;
212
+ function resetTryEntry(t) {
213
+ var e = t.completion || {};
214
+ e.type = "normal", delete e.arg, t.completion = e;
210
215
  }
211
- function Context(tryLocsList) {
216
+ function Context(t) {
212
217
  this.tryEntries = [{
213
218
  tryLoc: "root"
214
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
215
- }
216
- function values(iterable) {
217
- if (iterable || "" === iterable) {
218
- var iteratorMethod = iterable[iteratorSymbol];
219
- if (iteratorMethod) return iteratorMethod.call(iterable);
220
- if ("function" == typeof iterable.next) return iterable;
221
- if (!isNaN(iterable.length)) {
222
- var i = -1,
223
- next = function next() {
224
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
225
- return next.value = undefined, next.done = !0, next;
219
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
220
+ }
221
+ function values(e) {
222
+ if (e || "" === e) {
223
+ var r = e[a];
224
+ if (r) return r.call(e);
225
+ if ("function" == typeof e.next) return e;
226
+ if (!isNaN(e.length)) {
227
+ var o = -1,
228
+ i = function next() {
229
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
230
+ return next.value = t, next.done = !0, next;
226
231
  };
227
- return next.next = next;
232
+ return i.next = i;
228
233
  }
229
234
  }
230
- throw new TypeError(typeof iterable + " is not iterable");
235
+ throw new TypeError(typeof e + " is not iterable");
231
236
  }
232
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
237
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
233
238
  value: GeneratorFunctionPrototype,
234
239
  configurable: !0
235
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
240
+ }), o(GeneratorFunctionPrototype, "constructor", {
236
241
  value: GeneratorFunction,
237
242
  configurable: !0
238
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
239
- var ctor = "function" == typeof genFun && genFun.constructor;
240
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
241
- }, exports.mark = function (genFun) {
242
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
243
- }, exports.awrap = function (arg) {
243
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
244
+ var e = "function" == typeof t && t.constructor;
245
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
246
+ }, e.mark = function (t) {
247
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
248
+ }, e.awrap = function (t) {
244
249
  return {
245
- __await: arg
250
+ __await: t
246
251
  };
247
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
252
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
248
253
  return this;
249
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
250
- void 0 === PromiseImpl && (PromiseImpl = Promise);
251
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
252
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
253
- return result.done ? result.value : iter.next();
254
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
255
+ void 0 === i && (i = Promise);
256
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
257
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
258
+ return t.done ? t.value : a.next();
254
259
  });
255
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
260
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
256
261
  return this;
257
- }), define(Gp, "toString", function () {
262
+ }), define(g, "toString", function () {
258
263
  return "[object Generator]";
259
- }), exports.keys = function (val) {
260
- var object = Object(val),
261
- keys = [];
262
- for (var key in object) keys.push(key);
263
- return keys.reverse(), function next() {
264
- for (; keys.length;) {
265
- var key = keys.pop();
266
- if (key in object) return next.value = key, next.done = !1, next;
264
+ }), e.keys = function (t) {
265
+ var e = Object(t),
266
+ r = [];
267
+ for (var n in e) r.push(n);
268
+ return r.reverse(), function next() {
269
+ for (; r.length;) {
270
+ var t = r.pop();
271
+ if (t in e) return next.value = t, next.done = !1, next;
267
272
  }
268
273
  return next.done = !0, next;
269
274
  };
270
- }, exports.values = values, Context.prototype = {
275
+ }, e.values = values, Context.prototype = {
271
276
  constructor: Context,
272
- reset: function (skipTempReset) {
273
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
277
+ reset: function (e) {
278
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
274
279
  },
275
280
  stop: function () {
276
281
  this.done = !0;
277
- var rootRecord = this.tryEntries[0].completion;
278
- if ("throw" === rootRecord.type) throw rootRecord.arg;
282
+ var t = this.tryEntries[0].completion;
283
+ if ("throw" === t.type) throw t.arg;
279
284
  return this.rval;
280
285
  },
281
- dispatchException: function (exception) {
282
- if (this.done) throw exception;
283
- var context = this;
284
- function handle(loc, caught) {
285
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
286
+ dispatchException: function (e) {
287
+ if (this.done) throw e;
288
+ var r = this;
289
+ function handle(n, o) {
290
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
286
291
  }
287
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
288
- var entry = this.tryEntries[i],
289
- record = entry.completion;
290
- if ("root" === entry.tryLoc) return handle("end");
291
- if (entry.tryLoc <= this.prev) {
292
- var hasCatch = hasOwn.call(entry, "catchLoc"),
293
- hasFinally = hasOwn.call(entry, "finallyLoc");
294
- if (hasCatch && hasFinally) {
295
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
296
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
297
- } else if (hasCatch) {
298
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
292
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
293
+ var i = this.tryEntries[o],
294
+ a = i.completion;
295
+ if ("root" === i.tryLoc) return handle("end");
296
+ if (i.tryLoc <= this.prev) {
297
+ var c = n.call(i, "catchLoc"),
298
+ u = n.call(i, "finallyLoc");
299
+ if (c && u) {
300
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
301
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
302
+ } else if (c) {
303
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
299
304
  } else {
300
- if (!hasFinally) throw new Error("try statement without catch or finally");
301
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
305
+ if (!u) throw new Error("try statement without catch or finally");
306
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
302
307
  }
303
308
  }
304
309
  }
305
310
  },
306
- abrupt: function (type, arg) {
307
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
308
- var entry = this.tryEntries[i];
309
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
310
- var finallyEntry = entry;
311
+ abrupt: function (t, e) {
312
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
313
+ var o = this.tryEntries[r];
314
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
315
+ var i = o;
311
316
  break;
312
317
  }
313
318
  }
314
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
315
- var record = finallyEntry ? finallyEntry.completion : {};
316
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
317
- },
318
- complete: function (record, afterLoc) {
319
- if ("throw" === record.type) throw record.arg;
320
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
321
- },
322
- finish: function (finallyLoc) {
323
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
324
- var entry = this.tryEntries[i];
325
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
319
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
320
+ var a = i ? i.completion : {};
321
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
322
+ },
323
+ complete: function (t, e) {
324
+ if ("throw" === t.type) throw t.arg;
325
+ 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;
326
+ },
327
+ finish: function (t) {
328
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
329
+ var r = this.tryEntries[e];
330
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
326
331
  }
327
332
  },
328
- catch: function (tryLoc) {
329
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
330
- var entry = this.tryEntries[i];
331
- if (entry.tryLoc === tryLoc) {
332
- var record = entry.completion;
333
- if ("throw" === record.type) {
334
- var thrown = record.arg;
335
- resetTryEntry(entry);
333
+ catch: function (t) {
334
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
335
+ var r = this.tryEntries[e];
336
+ if (r.tryLoc === t) {
337
+ var n = r.completion;
338
+ if ("throw" === n.type) {
339
+ var o = n.arg;
340
+ resetTryEntry(r);
336
341
  }
337
- return thrown;
342
+ return o;
338
343
  }
339
344
  }
340
345
  throw new Error("illegal catch attempt");
341
346
  },
342
- delegateYield: function (iterable, resultName, nextLoc) {
347
+ delegateYield: function (e, r, n) {
343
348
  return this.delegate = {
344
- iterator: values(iterable),
345
- resultName: resultName,
346
- nextLoc: nextLoc
347
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
349
+ iterator: values(e),
350
+ resultName: r,
351
+ nextLoc: n
352
+ }, "next" === this.method && (this.arg = t), y;
348
353
  }
349
- }, exports;
354
+ }, e;
350
355
  }
351
- function _typeof$1(obj) {
356
+ function _typeof$1(o) {
352
357
  "@babel/helpers - typeof";
353
358
 
354
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
355
- return typeof obj;
356
- } : function (obj) {
357
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
358
- }, _typeof$1(obj);
359
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
360
+ return typeof o;
361
+ } : function (o) {
362
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
363
+ }, _typeof$1(o);
359
364
  }
360
365
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
361
366
  try {
@@ -1351,8 +1356,6 @@
1351
1356
  }
1352
1357
  };
1353
1358
 
1354
- /* globals BigInt */
1355
-
1356
1359
  /**
1357
1360
  * @type {import('typeson').TypeSpecSet}
1358
1361
  */
@@ -1428,7 +1431,7 @@
1428
1431
 
1429
1432
  var array = new Uint8Array(str.length);
1430
1433
  for (var i = 0; i < str.length; i++) {
1431
- // eslint-disable-next-line max-len -- Long
1434
+ // eslint-disable-next-line @stylistic/max-len -- Long
1432
1435
  // eslint-disable-next-line unicorn/prefer-code-point -- Iterating char. codes
1433
1436
  array[i] = str.charCodeAt(i); // & 0xff;
1434
1437
  }
@@ -1496,8 +1499,6 @@
1496
1499
  }
1497
1500
  };
1498
1501
 
1499
- /* globals performance */
1500
-
1501
1502
  // The `performance` global is optional
1502
1503
 
1503
1504
  /**
@@ -1515,7 +1516,7 @@
1515
1516
  /* c8 ignore next 4 */
1516
1517
  typeof performance !== 'undefined' && typeof performance.now === 'function' ? performance.now() : 0);
1517
1518
 
1518
- // eslint-disable-next-line max-len -- Long
1519
+ // eslint-disable-next-line @stylistic/max-len -- Long
1519
1520
  // eslint-disable-next-line no-use-extend-native/no-use-extend-native -- Need to update plugin
1520
1521
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replaceAll(/[xy]/g, function (c) {
1521
1522
  /* eslint-disable no-bitwise */
@@ -1720,6 +1721,86 @@
1720
1721
  }
1721
1722
  };
1722
1723
 
1724
+ /**
1725
+ * @type {import('typeson').TypeSpecSet}
1726
+ */
1727
+ var domexception = {
1728
+ domexception: {
1729
+ test: function test(x) {
1730
+ return toStringTag(x) === 'DOMException';
1731
+ },
1732
+ replace: function replace(de) {
1733
+ // `code` is based on `name` and readonly, so no
1734
+ // need to keep here
1735
+ return {
1736
+ name: de.name,
1737
+ message: de.message
1738
+ };
1739
+ },
1740
+ revive: function revive(_ref) {
1741
+ var message = _ref.message,
1742
+ name = _ref.name;
1743
+ return new DOMException(message, name);
1744
+ }
1745
+ }
1746
+ };
1747
+
1748
+ /* globals DOMPoint */
1749
+
1750
+ /**
1751
+ * @type {import('typeson').TypeSpecSet}
1752
+ */
1753
+ var dompoint = {
1754
+ dompoint: {
1755
+ test: function test(x) {
1756
+ return toStringTag(x) === 'DOMPoint';
1757
+ },
1758
+ replace: function replace(dp) {
1759
+ return {
1760
+ x: dp.x,
1761
+ y: dp.y,
1762
+ z: dp.z,
1763
+ w: dp.w
1764
+ };
1765
+ },
1766
+ revive: function revive(_ref) {
1767
+ var x = _ref.x,
1768
+ y = _ref.y,
1769
+ z = _ref.z,
1770
+ w = _ref.w;
1771
+ return new DOMPoint(x, y, z, w);
1772
+ }
1773
+ }
1774
+ };
1775
+
1776
+ /* globals DOMRect */
1777
+
1778
+ /**
1779
+ * @type {import('typeson').TypeSpecSet}
1780
+ */
1781
+ var domrect = {
1782
+ domrect: {
1783
+ test: function test(x) {
1784
+ return toStringTag(x) === 'DOMRect';
1785
+ },
1786
+ replace: function replace(dr) {
1787
+ return {
1788
+ x: dr.x,
1789
+ y: dr.y,
1790
+ width: dr.width,
1791
+ height: dr.height
1792
+ };
1793
+ },
1794
+ revive: function revive(_ref) {
1795
+ var x = _ref.x,
1796
+ y = _ref.y,
1797
+ width = _ref.width,
1798
+ height = _ref.height;
1799
+ return new DOMRect(x, y, width, height);
1800
+ }
1801
+ }
1802
+ };
1803
+
1723
1804
  /**
1724
1805
  * @type {import('typeson').TypeSpecSet}
1725
1806
  */
@@ -1788,9 +1869,12 @@
1788
1869
  create$2(AggregateError);
1789
1870
  }
1790
1871
 
1791
- /* c8 ignore next 2 */
1792
- // @ts-ignore Non-standard
1793
- typeof InternalError === 'function' && create$2(InternalError);
1872
+ /* c8 ignore next 5 */
1873
+ // @ts-expect-error Non-standard
1874
+ if (typeof InternalError === 'function') {
1875
+ // @ts-expect-error Non-standard
1876
+ create$2(InternalError);
1877
+ }
1794
1878
 
1795
1879
  /* eslint-disable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/131 */
1796
1880
  /**
@@ -2119,12 +2203,12 @@
2119
2203
  test: function test(x) {
2120
2204
  return x === Number.POSITIVE_INFINITY;
2121
2205
  },
2122
- replace: function replace(n) {
2206
+ replace: function replace() {
2123
2207
  return 'Infinity';
2124
- },
2125
- revive: function revive(s) {
2208
+ } /* n */,
2209
+ revive: function revive() {
2126
2210
  return Number.POSITIVE_INFINITY;
2127
- }
2211
+ } /* s */
2128
2212
  }
2129
2213
  };
2130
2214
 
@@ -2203,12 +2287,12 @@
2203
2287
  test: function test(x) {
2204
2288
  return Number.isNaN(x);
2205
2289
  },
2206
- replace: function replace(n) {
2290
+ replace: function replace() {
2207
2291
  return 'NaN';
2208
- },
2209
- revive: function revive(s) {
2292
+ } /* n */,
2293
+ revive: function revive() {
2210
2294
  return Number.NaN;
2211
- }
2295
+ } /* s */
2212
2296
  }
2213
2297
  };
2214
2298
 
@@ -2220,12 +2304,12 @@
2220
2304
  test: function test(x) {
2221
2305
  return x === Number.NEGATIVE_INFINITY;
2222
2306
  },
2223
- replace: function replace(n) {
2307
+ replace: function replace() {
2224
2308
  return '-Infinity';
2225
- },
2226
- revive: function revive(s) {
2309
+ } /* n */,
2310
+ revive: function revive() {
2227
2311
  return Number.NEGATIVE_INFINITY;
2228
- }
2312
+ } /* s */
2229
2313
  }
2230
2314
  };
2231
2315
 
@@ -2237,13 +2321,13 @@
2237
2321
  test: function test(x) {
2238
2322
  return Object.is(x, -0);
2239
2323
  },
2240
- replace: function replace(n) {
2324
+ replace: function replace() {
2241
2325
  // Just adding 0 here for minimized space; will still revive as -0
2242
2326
  return 0;
2243
- },
2244
- revive: function revive(s) {
2327
+ } /* n */,
2328
+ revive: function revive() {
2245
2329
  return -0;
2246
- }
2330
+ } /* s */
2247
2331
  }
2248
2332
  };
2249
2333
 
@@ -2259,9 +2343,9 @@
2259
2343
  // function objects, however
2260
2344
  'Boolean', 'Number', 'String', 'Error', 'RegExp', 'Math', 'Date', 'Map', 'Set', 'JSON', 'ArrayBuffer', 'SharedArrayBuffer', 'DataView', 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', 'Float32Array', 'Float64Array', 'Promise', 'String Iterator', 'Array Iterator', 'Map Iterator', 'Set Iterator', 'WeakMap', 'WeakSet', 'Atomics', 'Module'].includes(toStringTag(x));
2261
2345
  },
2262
- replace: function replace(rexp) {
2346
+ replace: function replace() {
2263
2347
  // Not in use
2264
- }
2348
+ } /* rexp */
2265
2349
  }
2266
2350
  };
2267
2351
 
@@ -2522,14 +2606,14 @@
2522
2606
  test: function test(x, stateObj) {
2523
2607
  return typeof x === 'undefined' && (stateObj.ownKeys || !('ownKeys' in stateObj));
2524
2608
  },
2525
- replace: function replace(n) {
2609
+ replace: function replace() {
2526
2610
  return 0;
2527
- },
2528
- revive: function revive(s$1) {
2611
+ } /* n */,
2612
+ revive: function revive() {
2529
2613
  // Will add `undefined` (returning `undefined` would instead
2530
2614
  // avoid explicitly setting)
2531
2615
  return new s();
2532
- }
2616
+ } /* s */
2533
2617
  }
2534
2618
  };
2535
2619
 
@@ -2538,7 +2622,7 @@
2538
2622
  */
2539
2623
  var userObject = {
2540
2624
  userObject: {
2541
- test: function test(x, stateObj) {
2625
+ test: function test(x /* , stateObj */) {
2542
2626
  return isUserObject(x);
2543
2627
  },
2544
2628
  replace: function replace(n) {
@@ -2610,12 +2694,12 @@
2610
2694
  test: function test(x, stateObj) {
2611
2695
  return typeof x === 'undefined' && stateObj.ownKeys === false;
2612
2696
  },
2613
- replace: function replace(n) {
2697
+ replace: function replace() {
2614
2698
  return 0;
2615
- },
2616
- revive: function revive(s) {
2699
+ } /* n */,
2700
+ revive: function revive() {
2617
2701
  return undefined;
2618
- } // Will avoid adding anything
2702
+ } /* s */ // Will avoid adding anything
2619
2703
  }
2620
2704
  }];
2621
2705
 
@@ -2709,12 +2793,12 @@
2709
2793
  test: function test(x, stateObj) {
2710
2794
  return typeof x === 'undefined' && stateObj.ownKeys === false;
2711
2795
  },
2712
- replace: function replace(n) {
2796
+ replace: function replace() {
2713
2797
  return 0;
2714
- },
2715
- revive: function revive(s) {
2798
+ } /* n */,
2799
+ revive: function revive() {
2716
2800
  return undefined;
2717
- } // Will avoid adding anything
2801
+ } /* s */ // Will avoid adding anything
2718
2802
  }
2719
2803
  }];
2720
2804
 
@@ -2743,9 +2827,11 @@
2743
2827
  typeof ArrayBuffer === 'function' ? arraybuffer : [], /* c8 ignore next */
2744
2828
  typeof Uint8Array === 'function' ? typedArrays : [], /* c8 ignore next */
2745
2829
  typeof DataView === 'function' ? dataview : [], /* c8 ignore next */
2746
- typeof Intl !== 'undefined' ? intlTypes : [], /* c8 ignore next */
2747
2830
  typeof crypto !== 'undefined' ? cryptokey : [], /* c8 ignore next */
2748
- typeof BigInt !== 'undefined' ? [bigint, bigintObject] : []);
2831
+ typeof BigInt !== 'undefined' ? [bigint, bigintObject] : [], /* c8 ignore next */
2832
+ typeof DOMException !== 'undefined' ? domexception : [], /* c8 ignore next */
2833
+ typeof DOMRect !== 'undefined' ? domrect : [], /* c8 ignore next */
2834
+ typeof DOMPoint !== 'undefined' ? dompoint : []);
2749
2835
 
2750
2836
  /**
2751
2837
  * @type {import('typeson').Preset}
@@ -2843,6 +2929,9 @@
2843
2929
  exports.cryptokey = cryptokey;
2844
2930
  exports.dataview = dataview;
2845
2931
  exports.date = date;
2932
+ exports.domexception = domexception;
2933
+ exports.dompoint = dompoint;
2934
+ exports.domrect = domrect;
2846
2935
  exports.error = error;
2847
2936
  exports.errors = errors;
2848
2937
  exports.escapeKeyPathComponent = escapeKeyPathComponent;