@qubit-ltd/common-decorator 3.8.9 → 3.8.11

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.
@@ -13,497 +13,841 @@ import Json from '@qubit-ltd/json';
13
13
 
14
14
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
15
15
 
16
- var check = function (it) {
17
- return it && it.Math === Math && it;
18
- };
19
-
20
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
21
- var globalThis_1 =
22
- // eslint-disable-next-line es/no-global-this -- safe
23
- check(typeof globalThis == 'object' && globalThis) ||
24
- check(typeof window == 'object' && window) ||
25
- // eslint-disable-next-line no-restricted-globals -- safe
26
- check(typeof self == 'object' && self) ||
27
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
28
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
29
- // eslint-disable-next-line no-new-func -- fallback
30
- (function () { return this; })() || Function('return this')();
16
+ var decoratorMetadataV2 = {};
17
+
18
+ var esnext_function_metadata = {};
19
+
20
+ var globalThis_1;
21
+ var hasRequiredGlobalThis;
22
+
23
+ function requireGlobalThis () {
24
+ if (hasRequiredGlobalThis) return globalThis_1;
25
+ hasRequiredGlobalThis = 1;
26
+ var check = function (it) {
27
+ return it && it.Math === Math && it;
28
+ };
29
+
30
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
31
+ globalThis_1 =
32
+ // eslint-disable-next-line es/no-global-this -- safe
33
+ check(typeof globalThis == 'object' && globalThis) ||
34
+ check(typeof window == 'object' && window) ||
35
+ // eslint-disable-next-line no-restricted-globals -- safe
36
+ check(typeof self == 'object' && self) ||
37
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
38
+ check(typeof globalThis_1 == 'object' && globalThis_1) ||
39
+ // eslint-disable-next-line no-new-func -- fallback
40
+ (function () { return this; })() || Function('return this')();
41
+ return globalThis_1;
42
+ }
31
43
 
32
44
  var sharedStore = {exports: {}};
33
45
 
34
- var globalThis$9 = globalThis_1;
46
+ var isPure;
47
+ var hasRequiredIsPure;
35
48
 
36
- // eslint-disable-next-line es/no-object-defineproperty -- safe
37
- var defineProperty$2 = Object.defineProperty;
38
-
39
- var defineGlobalProperty$1 = function (key, value) {
40
- try {
41
- defineProperty$2(globalThis$9, key, { value: value, configurable: true, writable: true });
42
- } catch (error) {
43
- globalThis$9[key] = value;
44
- } return value;
45
- };
49
+ function requireIsPure () {
50
+ if (hasRequiredIsPure) return isPure;
51
+ hasRequiredIsPure = 1;
52
+ isPure = false;
53
+ return isPure;
54
+ }
46
55
 
47
- var globalThis$8 = globalThis_1;
48
- var defineGlobalProperty = defineGlobalProperty$1;
56
+ var defineGlobalProperty;
57
+ var hasRequiredDefineGlobalProperty;
58
+
59
+ function requireDefineGlobalProperty () {
60
+ if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
61
+ hasRequiredDefineGlobalProperty = 1;
62
+ var globalThis = requireGlobalThis();
63
+
64
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
65
+ var defineProperty = Object.defineProperty;
66
+
67
+ defineGlobalProperty = function (key, value) {
68
+ try {
69
+ defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
70
+ } catch (error) {
71
+ globalThis[key] = value;
72
+ } return value;
73
+ };
74
+ return defineGlobalProperty;
75
+ }
49
76
 
50
- var SHARED = '__core-js_shared__';
51
- var store$1 = sharedStore.exports = globalThis$8[SHARED] || defineGlobalProperty(SHARED, {});
77
+ var hasRequiredSharedStore;
78
+
79
+ function requireSharedStore () {
80
+ if (hasRequiredSharedStore) return sharedStore.exports;
81
+ hasRequiredSharedStore = 1;
82
+ var IS_PURE = requireIsPure();
83
+ var globalThis = requireGlobalThis();
84
+ var defineGlobalProperty = requireDefineGlobalProperty();
85
+
86
+ var SHARED = '__core-js_shared__';
87
+ var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
88
+
89
+ (store.versions || (store.versions = [])).push({
90
+ version: '3.40.0',
91
+ mode: IS_PURE ? 'pure' : 'global',
92
+ copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
93
+ license: 'https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE',
94
+ source: 'https://github.com/zloirock/core-js'
95
+ });
96
+ return sharedStore.exports;
97
+ }
52
98
 
53
- (store$1.versions || (store$1.versions = [])).push({
54
- version: '3.39.0',
55
- mode: 'global',
56
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
57
- license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
58
- source: 'https://github.com/zloirock/core-js'
59
- });
99
+ var shared;
100
+ var hasRequiredShared;
60
101
 
61
- var sharedStoreExports = sharedStore.exports;
102
+ function requireShared () {
103
+ if (hasRequiredShared) return shared;
104
+ hasRequiredShared = 1;
105
+ var store = requireSharedStore();
62
106
 
63
- var store = sharedStoreExports;
107
+ shared = function (key, value) {
108
+ return store[key] || (store[key] = value || {});
109
+ };
110
+ return shared;
111
+ }
64
112
 
65
- var shared$1 = function (key, value) {
66
- return store[key] || (store[key] = value || {});
67
- };
113
+ var fails;
114
+ var hasRequiredFails;
115
+
116
+ function requireFails () {
117
+ if (hasRequiredFails) return fails;
118
+ hasRequiredFails = 1;
119
+ fails = function (exec) {
120
+ try {
121
+ return !!exec();
122
+ } catch (error) {
123
+ return true;
124
+ }
125
+ };
126
+ return fails;
127
+ }
68
128
 
69
- var fails$5 = function (exec) {
70
- try {
71
- return !!exec();
72
- } catch (error) {
73
- return true;
74
- }
75
- };
129
+ var functionBindNative;
130
+ var hasRequiredFunctionBindNative;
131
+
132
+ function requireFunctionBindNative () {
133
+ if (hasRequiredFunctionBindNative) return functionBindNative;
134
+ hasRequiredFunctionBindNative = 1;
135
+ var fails = requireFails();
136
+
137
+ functionBindNative = !fails(function () {
138
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
139
+ var test = (function () { /* empty */ }).bind();
140
+ // eslint-disable-next-line no-prototype-builtins -- safe
141
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
142
+ });
143
+ return functionBindNative;
144
+ }
76
145
 
77
- var fails$4 = fails$5;
146
+ var functionUncurryThis;
147
+ var hasRequiredFunctionUncurryThis;
148
+
149
+ function requireFunctionUncurryThis () {
150
+ if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
151
+ hasRequiredFunctionUncurryThis = 1;
152
+ var NATIVE_BIND = requireFunctionBindNative();
153
+
154
+ var FunctionPrototype = Function.prototype;
155
+ var call = FunctionPrototype.call;
156
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
157
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
158
+
159
+ functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
160
+ return function () {
161
+ return call.apply(fn, arguments);
162
+ };
163
+ };
164
+ return functionUncurryThis;
165
+ }
78
166
 
79
- var functionBindNative = !fails$4(function () {
80
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
81
- var test = (function () { /* empty */ }).bind();
82
- // eslint-disable-next-line no-prototype-builtins -- safe
83
- return typeof test != 'function' || test.hasOwnProperty('prototype');
84
- });
167
+ var isNullOrUndefined;
168
+ var hasRequiredIsNullOrUndefined;
169
+
170
+ function requireIsNullOrUndefined () {
171
+ if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
172
+ hasRequiredIsNullOrUndefined = 1;
173
+ // we can't use just `it == null` since of `document.all` special case
174
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
175
+ isNullOrUndefined = function (it) {
176
+ return it === null || it === undefined;
177
+ };
178
+ return isNullOrUndefined;
179
+ }
85
180
 
86
- var NATIVE_BIND$1 = functionBindNative;
181
+ var requireObjectCoercible;
182
+ var hasRequiredRequireObjectCoercible;
87
183
 
88
- var FunctionPrototype$1 = Function.prototype;
89
- var call$3 = FunctionPrototype$1.call;
90
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$3, call$3);
184
+ function requireRequireObjectCoercible () {
185
+ if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
186
+ hasRequiredRequireObjectCoercible = 1;
187
+ var isNullOrUndefined = requireIsNullOrUndefined();
91
188
 
92
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
93
- return function () {
94
- return call$3.apply(fn, arguments);
95
- };
96
- };
189
+ var $TypeError = TypeError;
97
190
 
98
- // we can't use just `it == null` since of `document.all` special case
99
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
100
- var isNullOrUndefined$2 = function (it) {
101
- return it === null || it === undefined;
102
- };
103
-
104
- var isNullOrUndefined$1 = isNullOrUndefined$2;
191
+ // `RequireObjectCoercible` abstract operation
192
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
193
+ requireObjectCoercible = function (it) {
194
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
195
+ return it;
196
+ };
197
+ return requireObjectCoercible;
198
+ }
105
199
 
106
- var $TypeError$5 = TypeError;
200
+ var toObject;
201
+ var hasRequiredToObject;
107
202
 
108
- // `RequireObjectCoercible` abstract operation
109
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
110
- var requireObjectCoercible$1 = function (it) {
111
- if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
112
- return it;
113
- };
203
+ function requireToObject () {
204
+ if (hasRequiredToObject) return toObject;
205
+ hasRequiredToObject = 1;
206
+ var requireObjectCoercible = requireRequireObjectCoercible();
114
207
 
115
- var requireObjectCoercible = requireObjectCoercible$1;
208
+ var $Object = Object;
116
209
 
117
- var $Object$1 = Object;
210
+ // `ToObject` abstract operation
211
+ // https://tc39.es/ecma262/#sec-toobject
212
+ toObject = function (argument) {
213
+ return $Object(requireObjectCoercible(argument));
214
+ };
215
+ return toObject;
216
+ }
118
217
 
119
- // `ToObject` abstract operation
120
- // https://tc39.es/ecma262/#sec-toobject
121
- var toObject$1 = function (argument) {
122
- return $Object$1(requireObjectCoercible(argument));
123
- };
218
+ var hasOwnProperty_1;
219
+ var hasRequiredHasOwnProperty;
124
220
 
125
- var uncurryThis$2 = functionUncurryThis;
126
- var toObject = toObject$1;
221
+ function requireHasOwnProperty () {
222
+ if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
223
+ hasRequiredHasOwnProperty = 1;
224
+ var uncurryThis = requireFunctionUncurryThis();
225
+ var toObject = requireToObject();
127
226
 
128
- var hasOwnProperty = uncurryThis$2({}.hasOwnProperty);
227
+ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
129
228
 
130
- // `HasOwnProperty` abstract operation
131
- // https://tc39.es/ecma262/#sec-hasownproperty
132
- // eslint-disable-next-line es/no-object-hasown -- safe
133
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
134
- return hasOwnProperty(toObject(it), key);
135
- };
229
+ // `HasOwnProperty` abstract operation
230
+ // https://tc39.es/ecma262/#sec-hasownproperty
231
+ // eslint-disable-next-line es/no-object-hasown -- safe
232
+ hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
233
+ return hasOwnProperty(toObject(it), key);
234
+ };
235
+ return hasOwnProperty_1;
236
+ }
136
237
 
137
- var uncurryThis$1 = functionUncurryThis;
238
+ var uid;
239
+ var hasRequiredUid;
138
240
 
139
- var id = 0;
140
- var postfix = Math.random();
141
- var toString = uncurryThis$1(1.0.toString);
241
+ function requireUid () {
242
+ if (hasRequiredUid) return uid;
243
+ hasRequiredUid = 1;
244
+ var uncurryThis = requireFunctionUncurryThis();
142
245
 
143
- var uid$1 = function (key) {
144
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
145
- };
246
+ var id = 0;
247
+ var postfix = Math.random();
248
+ var toString = uncurryThis(1.0.toString);
146
249
 
147
- var globalThis$7 = globalThis_1;
250
+ uid = function (key) {
251
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
252
+ };
253
+ return uid;
254
+ }
148
255
 
149
- var navigator = globalThis$7.navigator;
150
- var userAgent$1 = navigator && navigator.userAgent;
256
+ var environmentUserAgent;
257
+ var hasRequiredEnvironmentUserAgent;
151
258
 
152
- var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
259
+ function requireEnvironmentUserAgent () {
260
+ if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
261
+ hasRequiredEnvironmentUserAgent = 1;
262
+ var globalThis = requireGlobalThis();
153
263
 
154
- var globalThis$6 = globalThis_1;
155
- var userAgent = environmentUserAgent;
264
+ var navigator = globalThis.navigator;
265
+ var userAgent = navigator && navigator.userAgent;
156
266
 
157
- var process = globalThis$6.process;
158
- var Deno = globalThis$6.Deno;
159
- var versions = process && process.versions || Deno && Deno.version;
160
- var v8 = versions && versions.v8;
161
- var match, version;
267
+ environmentUserAgent = userAgent ? String(userAgent) : '';
268
+ return environmentUserAgent;
269
+ }
162
270
 
163
- if (v8) {
164
- match = v8.split('.');
165
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
166
- // but their correct versions are not interesting for us
167
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
271
+ var environmentV8Version;
272
+ var hasRequiredEnvironmentV8Version;
273
+
274
+ function requireEnvironmentV8Version () {
275
+ if (hasRequiredEnvironmentV8Version) return environmentV8Version;
276
+ hasRequiredEnvironmentV8Version = 1;
277
+ var globalThis = requireGlobalThis();
278
+ var userAgent = requireEnvironmentUserAgent();
279
+
280
+ var process = globalThis.process;
281
+ var Deno = globalThis.Deno;
282
+ var versions = process && process.versions || Deno && Deno.version;
283
+ var v8 = versions && versions.v8;
284
+ var match, version;
285
+
286
+ if (v8) {
287
+ match = v8.split('.');
288
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
289
+ // but their correct versions are not interesting for us
290
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
291
+ }
292
+
293
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
294
+ // so check `userAgent` even if `.v8` exists, but 0
295
+ if (!version && userAgent) {
296
+ match = userAgent.match(/Edge\/(\d+)/);
297
+ if (!match || match[1] >= 74) {
298
+ match = userAgent.match(/Chrome\/(\d+)/);
299
+ if (match) version = +match[1];
300
+ }
301
+ }
302
+
303
+ environmentV8Version = version;
304
+ return environmentV8Version;
168
305
  }
169
306
 
170
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
171
- // so check `userAgent` even if `.v8` exists, but 0
172
- if (!version && userAgent) {
173
- match = userAgent.match(/Edge\/(\d+)/);
174
- if (!match || match[1] >= 74) {
175
- match = userAgent.match(/Chrome\/(\d+)/);
176
- if (match) version = +match[1];
177
- }
307
+ var symbolConstructorDetection;
308
+ var hasRequiredSymbolConstructorDetection;
309
+
310
+ function requireSymbolConstructorDetection () {
311
+ if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
312
+ hasRequiredSymbolConstructorDetection = 1;
313
+ /* eslint-disable es/no-symbol -- required for testing */
314
+ var V8_VERSION = requireEnvironmentV8Version();
315
+ var fails = requireFails();
316
+ var globalThis = requireGlobalThis();
317
+
318
+ var $String = globalThis.String;
319
+
320
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
321
+ symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
322
+ var symbol = Symbol('symbol detection');
323
+ // Chrome 38 Symbol has incorrect toString conversion
324
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
325
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
326
+ // of course, fail.
327
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
328
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
329
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
330
+ });
331
+ return symbolConstructorDetection;
178
332
  }
179
333
 
180
- var environmentV8Version = version;
181
-
182
- /* eslint-disable es/no-symbol -- required for testing */
183
- var V8_VERSION = environmentV8Version;
184
- var fails$3 = fails$5;
185
- var globalThis$5 = globalThis_1;
186
-
187
- var $String$2 = globalThis$5.String;
188
-
189
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
190
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$3(function () {
191
- var symbol = Symbol('symbol detection');
192
- // Chrome 38 Symbol has incorrect toString conversion
193
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
194
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
195
- // of course, fail.
196
- return !$String$2(symbol) || !(Object(symbol) instanceof Symbol) ||
197
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
198
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
199
- });
334
+ var useSymbolAsUid;
335
+ var hasRequiredUseSymbolAsUid;
200
336
 
201
- /* eslint-disable es/no-symbol -- required for testing */
202
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
203
-
204
- var useSymbolAsUid = NATIVE_SYMBOL$1 &&
205
- !Symbol.sham &&
206
- typeof Symbol.iterator == 'symbol';
207
-
208
- var globalThis$4 = globalThis_1;
209
- var shared = shared$1;
210
- var hasOwn$1 = hasOwnProperty_1;
211
- var uid = uid$1;
212
- var NATIVE_SYMBOL = symbolConstructorDetection;
213
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
214
-
215
- var Symbol$1 = globalThis$4.Symbol;
216
- var WellKnownSymbolsStore = shared('wks');
217
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
218
-
219
- var wellKnownSymbol$3 = function (name) {
220
- if (!hasOwn$1(WellKnownSymbolsStore, name)) {
221
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$1(Symbol$1, name)
222
- ? Symbol$1[name]
223
- : createWellKnownSymbol('Symbol.' + name);
224
- } return WellKnownSymbolsStore[name];
225
- };
337
+ function requireUseSymbolAsUid () {
338
+ if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
339
+ hasRequiredUseSymbolAsUid = 1;
340
+ /* eslint-disable es/no-symbol -- required for testing */
341
+ var NATIVE_SYMBOL = requireSymbolConstructorDetection();
342
+
343
+ useSymbolAsUid = NATIVE_SYMBOL &&
344
+ !Symbol.sham &&
345
+ typeof Symbol.iterator == 'symbol';
346
+ return useSymbolAsUid;
347
+ }
348
+
349
+ var wellKnownSymbol;
350
+ var hasRequiredWellKnownSymbol;
351
+
352
+ function requireWellKnownSymbol () {
353
+ if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
354
+ hasRequiredWellKnownSymbol = 1;
355
+ var globalThis = requireGlobalThis();
356
+ var shared = requireShared();
357
+ var hasOwn = requireHasOwnProperty();
358
+ var uid = requireUid();
359
+ var NATIVE_SYMBOL = requireSymbolConstructorDetection();
360
+ var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
361
+
362
+ var Symbol = globalThis.Symbol;
363
+ var WellKnownSymbolsStore = shared('wks');
364
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
365
+
366
+ wellKnownSymbol = function (name) {
367
+ if (!hasOwn(WellKnownSymbolsStore, name)) {
368
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
369
+ ? Symbol[name]
370
+ : createWellKnownSymbol('Symbol.' + name);
371
+ } return WellKnownSymbolsStore[name];
372
+ };
373
+ return wellKnownSymbol;
374
+ }
226
375
 
227
376
  var objectDefineProperty = {};
228
377
 
229
- var fails$2 = fails$5;
378
+ var descriptors;
379
+ var hasRequiredDescriptors;
230
380
 
231
- // Detect IE8's incomplete defineProperty implementation
232
- var descriptors = !fails$2(function () {
233
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
234
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
235
- });
381
+ function requireDescriptors () {
382
+ if (hasRequiredDescriptors) return descriptors;
383
+ hasRequiredDescriptors = 1;
384
+ var fails = requireFails();
236
385
 
237
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
238
- var documentAll = typeof document == 'object' && document.all;
386
+ // Detect IE8's incomplete defineProperty implementation
387
+ descriptors = !fails(function () {
388
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
389
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
390
+ });
391
+ return descriptors;
392
+ }
239
393
 
240
- // `IsCallable` abstract operation
241
- // https://tc39.es/ecma262/#sec-iscallable
242
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
243
- var isCallable$5 = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
244
- return typeof argument == 'function' || argument === documentAll;
245
- } : function (argument) {
246
- return typeof argument == 'function';
247
- };
394
+ var isCallable;
395
+ var hasRequiredIsCallable;
396
+
397
+ function requireIsCallable () {
398
+ if (hasRequiredIsCallable) return isCallable;
399
+ hasRequiredIsCallable = 1;
400
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
401
+ var documentAll = typeof document == 'object' && document.all;
402
+
403
+ // `IsCallable` abstract operation
404
+ // https://tc39.es/ecma262/#sec-iscallable
405
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
406
+ isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
407
+ return typeof argument == 'function' || argument === documentAll;
408
+ } : function (argument) {
409
+ return typeof argument == 'function';
410
+ };
411
+ return isCallable;
412
+ }
248
413
 
249
- var isCallable$4 = isCallable$5;
414
+ var isObject;
415
+ var hasRequiredIsObject;
250
416
 
251
- var isObject$4 = function (it) {
252
- return typeof it == 'object' ? it !== null : isCallable$4(it);
253
- };
417
+ function requireIsObject () {
418
+ if (hasRequiredIsObject) return isObject;
419
+ hasRequiredIsObject = 1;
420
+ var isCallable = requireIsCallable();
254
421
 
255
- var globalThis$3 = globalThis_1;
256
- var isObject$3 = isObject$4;
422
+ isObject = function (it) {
423
+ return typeof it == 'object' ? it !== null : isCallable(it);
424
+ };
425
+ return isObject;
426
+ }
257
427
 
258
- var document$1 = globalThis$3.document;
259
- // typeof document.createElement is 'object' in old IE
260
- var EXISTS = isObject$3(document$1) && isObject$3(document$1.createElement);
428
+ var documentCreateElement;
429
+ var hasRequiredDocumentCreateElement;
261
430
 
262
- var documentCreateElement = function (it) {
263
- return EXISTS ? document$1.createElement(it) : {};
264
- };
431
+ function requireDocumentCreateElement () {
432
+ if (hasRequiredDocumentCreateElement) return documentCreateElement;
433
+ hasRequiredDocumentCreateElement = 1;
434
+ var globalThis = requireGlobalThis();
435
+ var isObject = requireIsObject();
265
436
 
266
- var DESCRIPTORS$2 = descriptors;
267
- var fails$1 = fails$5;
268
- var createElement = documentCreateElement;
437
+ var document = globalThis.document;
438
+ // typeof document.createElement is 'object' in old IE
439
+ var EXISTS = isObject(document) && isObject(document.createElement);
269
440
 
270
- // Thanks to IE8 for its funny defineProperty
271
- var ie8DomDefine = !DESCRIPTORS$2 && !fails$1(function () {
272
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
273
- return Object.defineProperty(createElement('div'), 'a', {
274
- get: function () { return 7; }
275
- }).a !== 7;
276
- });
441
+ documentCreateElement = function (it) {
442
+ return EXISTS ? document.createElement(it) : {};
443
+ };
444
+ return documentCreateElement;
445
+ }
277
446
 
278
- var DESCRIPTORS$1 = descriptors;
279
- var fails = fails$5;
280
-
281
- // V8 ~ Chrome 36-
282
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
283
- var v8PrototypeDefineBug = DESCRIPTORS$1 && fails(function () {
284
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
285
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
286
- value: 42,
287
- writable: false
288
- }).prototype !== 42;
289
- });
447
+ var ie8DomDefine;
448
+ var hasRequiredIe8DomDefine;
449
+
450
+ function requireIe8DomDefine () {
451
+ if (hasRequiredIe8DomDefine) return ie8DomDefine;
452
+ hasRequiredIe8DomDefine = 1;
453
+ var DESCRIPTORS = requireDescriptors();
454
+ var fails = requireFails();
455
+ var createElement = requireDocumentCreateElement();
456
+
457
+ // Thanks to IE8 for its funny defineProperty
458
+ ie8DomDefine = !DESCRIPTORS && !fails(function () {
459
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
460
+ return Object.defineProperty(createElement('div'), 'a', {
461
+ get: function () { return 7; }
462
+ }).a !== 7;
463
+ });
464
+ return ie8DomDefine;
465
+ }
290
466
 
291
- var isObject$2 = isObject$4;
467
+ var v8PrototypeDefineBug;
468
+ var hasRequiredV8PrototypeDefineBug;
469
+
470
+ function requireV8PrototypeDefineBug () {
471
+ if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
472
+ hasRequiredV8PrototypeDefineBug = 1;
473
+ var DESCRIPTORS = requireDescriptors();
474
+ var fails = requireFails();
475
+
476
+ // V8 ~ Chrome 36-
477
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
478
+ v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
479
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
480
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
481
+ value: 42,
482
+ writable: false
483
+ }).prototype !== 42;
484
+ });
485
+ return v8PrototypeDefineBug;
486
+ }
292
487
 
293
- var $String$1 = String;
294
- var $TypeError$4 = TypeError;
488
+ var anObject;
489
+ var hasRequiredAnObject;
295
490
 
296
- // `Assert: Type(argument) is Object`
297
- var anObject$1 = function (argument) {
298
- if (isObject$2(argument)) return argument;
299
- throw new $TypeError$4($String$1(argument) + ' is not an object');
300
- };
491
+ function requireAnObject () {
492
+ if (hasRequiredAnObject) return anObject;
493
+ hasRequiredAnObject = 1;
494
+ var isObject = requireIsObject();
301
495
 
302
- var NATIVE_BIND = functionBindNative;
496
+ var $String = String;
497
+ var $TypeError = TypeError;
303
498
 
304
- var call$2 = Function.prototype.call;
499
+ // `Assert: Type(argument) is Object`
500
+ anObject = function (argument) {
501
+ if (isObject(argument)) return argument;
502
+ throw new $TypeError($String(argument) + ' is not an object');
503
+ };
504
+ return anObject;
505
+ }
305
506
 
306
- var functionCall = NATIVE_BIND ? call$2.bind(call$2) : function () {
307
- return call$2.apply(call$2, arguments);
308
- };
507
+ var functionCall;
508
+ var hasRequiredFunctionCall;
309
509
 
310
- var globalThis$2 = globalThis_1;
311
- var isCallable$3 = isCallable$5;
510
+ function requireFunctionCall () {
511
+ if (hasRequiredFunctionCall) return functionCall;
512
+ hasRequiredFunctionCall = 1;
513
+ var NATIVE_BIND = requireFunctionBindNative();
312
514
 
313
- var aFunction = function (argument) {
314
- return isCallable$3(argument) ? argument : undefined;
315
- };
515
+ var call = Function.prototype.call;
516
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
517
+ functionCall = NATIVE_BIND ? call.bind(call) : function () {
518
+ return call.apply(call, arguments);
519
+ };
520
+ return functionCall;
521
+ }
316
522
 
317
- var getBuiltIn$1 = function (namespace, method) {
318
- return arguments.length < 2 ? aFunction(globalThis$2[namespace]) : globalThis$2[namespace] && globalThis$2[namespace][method];
319
- };
523
+ var getBuiltIn;
524
+ var hasRequiredGetBuiltIn;
320
525
 
321
- var uncurryThis = functionUncurryThis;
526
+ function requireGetBuiltIn () {
527
+ if (hasRequiredGetBuiltIn) return getBuiltIn;
528
+ hasRequiredGetBuiltIn = 1;
529
+ var globalThis = requireGlobalThis();
530
+ var isCallable = requireIsCallable();
322
531
 
323
- var objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
532
+ var aFunction = function (argument) {
533
+ return isCallable(argument) ? argument : undefined;
534
+ };
324
535
 
325
- var getBuiltIn = getBuiltIn$1;
326
- var isCallable$2 = isCallable$5;
327
- var isPrototypeOf = objectIsPrototypeOf;
328
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
536
+ getBuiltIn = function (namespace, method) {
537
+ return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
538
+ };
539
+ return getBuiltIn;
540
+ }
329
541
 
330
- var $Object = Object;
542
+ var objectIsPrototypeOf;
543
+ var hasRequiredObjectIsPrototypeOf;
331
544
 
332
- var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
333
- return typeof it == 'symbol';
334
- } : function (it) {
335
- var $Symbol = getBuiltIn('Symbol');
336
- return isCallable$2($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
337
- };
545
+ function requireObjectIsPrototypeOf () {
546
+ if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
547
+ hasRequiredObjectIsPrototypeOf = 1;
548
+ var uncurryThis = requireFunctionUncurryThis();
338
549
 
339
- var $String = String;
550
+ objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
551
+ return objectIsPrototypeOf;
552
+ }
340
553
 
341
- var tryToString$1 = function (argument) {
342
- try {
343
- return $String(argument);
344
- } catch (error) {
345
- return 'Object';
346
- }
347
- };
554
+ var isSymbol;
555
+ var hasRequiredIsSymbol;
556
+
557
+ function requireIsSymbol () {
558
+ if (hasRequiredIsSymbol) return isSymbol;
559
+ hasRequiredIsSymbol = 1;
560
+ var getBuiltIn = requireGetBuiltIn();
561
+ var isCallable = requireIsCallable();
562
+ var isPrototypeOf = requireObjectIsPrototypeOf();
563
+ var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
564
+
565
+ var $Object = Object;
566
+
567
+ isSymbol = USE_SYMBOL_AS_UID ? function (it) {
568
+ return typeof it == 'symbol';
569
+ } : function (it) {
570
+ var $Symbol = getBuiltIn('Symbol');
571
+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
572
+ };
573
+ return isSymbol;
574
+ }
348
575
 
349
- var isCallable$1 = isCallable$5;
350
- var tryToString = tryToString$1;
576
+ var tryToString;
577
+ var hasRequiredTryToString;
578
+
579
+ function requireTryToString () {
580
+ if (hasRequiredTryToString) return tryToString;
581
+ hasRequiredTryToString = 1;
582
+ var $String = String;
583
+
584
+ tryToString = function (argument) {
585
+ try {
586
+ return $String(argument);
587
+ } catch (error) {
588
+ return 'Object';
589
+ }
590
+ };
591
+ return tryToString;
592
+ }
351
593
 
352
- var $TypeError$3 = TypeError;
594
+ var aCallable;
595
+ var hasRequiredACallable;
353
596
 
354
- // `Assert: IsCallable(argument) is true`
355
- var aCallable$1 = function (argument) {
356
- if (isCallable$1(argument)) return argument;
357
- throw new $TypeError$3(tryToString(argument) + ' is not a function');
358
- };
597
+ function requireACallable () {
598
+ if (hasRequiredACallable) return aCallable;
599
+ hasRequiredACallable = 1;
600
+ var isCallable = requireIsCallable();
601
+ var tryToString = requireTryToString();
359
602
 
360
- var aCallable = aCallable$1;
361
- var isNullOrUndefined = isNullOrUndefined$2;
603
+ var $TypeError = TypeError;
362
604
 
363
- // `GetMethod` abstract operation
364
- // https://tc39.es/ecma262/#sec-getmethod
365
- var getMethod$1 = function (V, P) {
366
- var func = V[P];
367
- return isNullOrUndefined(func) ? undefined : aCallable(func);
368
- };
605
+ // `Assert: IsCallable(argument) is true`
606
+ aCallable = function (argument) {
607
+ if (isCallable(argument)) return argument;
608
+ throw new $TypeError(tryToString(argument) + ' is not a function');
609
+ };
610
+ return aCallable;
611
+ }
369
612
 
370
- var call$1 = functionCall;
371
- var isCallable = isCallable$5;
372
- var isObject$1 = isObject$4;
613
+ var getMethod;
614
+ var hasRequiredGetMethod;
615
+
616
+ function requireGetMethod () {
617
+ if (hasRequiredGetMethod) return getMethod;
618
+ hasRequiredGetMethod = 1;
619
+ var aCallable = requireACallable();
620
+ var isNullOrUndefined = requireIsNullOrUndefined();
621
+
622
+ // `GetMethod` abstract operation
623
+ // https://tc39.es/ecma262/#sec-getmethod
624
+ getMethod = function (V, P) {
625
+ var func = V[P];
626
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
627
+ };
628
+ return getMethod;
629
+ }
373
630
 
374
- var $TypeError$2 = TypeError;
631
+ var ordinaryToPrimitive;
632
+ var hasRequiredOrdinaryToPrimitive;
633
+
634
+ function requireOrdinaryToPrimitive () {
635
+ if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
636
+ hasRequiredOrdinaryToPrimitive = 1;
637
+ var call = requireFunctionCall();
638
+ var isCallable = requireIsCallable();
639
+ var isObject = requireIsObject();
640
+
641
+ var $TypeError = TypeError;
642
+
643
+ // `OrdinaryToPrimitive` abstract operation
644
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
645
+ ordinaryToPrimitive = function (input, pref) {
646
+ var fn, val;
647
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
648
+ if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
649
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
650
+ throw new $TypeError("Can't convert object to primitive value");
651
+ };
652
+ return ordinaryToPrimitive;
653
+ }
375
654
 
376
- // `OrdinaryToPrimitive` abstract operation
377
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
378
- var ordinaryToPrimitive$1 = function (input, pref) {
379
- var fn, val;
380
- if (pref === 'string' && isCallable(fn = input.toString) && !isObject$1(val = call$1(fn, input))) return val;
381
- if (isCallable(fn = input.valueOf) && !isObject$1(val = call$1(fn, input))) return val;
382
- if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$1(val = call$1(fn, input))) return val;
383
- throw new $TypeError$2("Can't convert object to primitive value");
384
- };
655
+ var toPrimitive;
656
+ var hasRequiredToPrimitive;
657
+
658
+ function requireToPrimitive () {
659
+ if (hasRequiredToPrimitive) return toPrimitive;
660
+ hasRequiredToPrimitive = 1;
661
+ var call = requireFunctionCall();
662
+ var isObject = requireIsObject();
663
+ var isSymbol = requireIsSymbol();
664
+ var getMethod = requireGetMethod();
665
+ var ordinaryToPrimitive = requireOrdinaryToPrimitive();
666
+ var wellKnownSymbol = requireWellKnownSymbol();
667
+
668
+ var $TypeError = TypeError;
669
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
670
+
671
+ // `ToPrimitive` abstract operation
672
+ // https://tc39.es/ecma262/#sec-toprimitive
673
+ toPrimitive = function (input, pref) {
674
+ if (!isObject(input) || isSymbol(input)) return input;
675
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
676
+ var result;
677
+ if (exoticToPrim) {
678
+ if (pref === undefined) pref = 'default';
679
+ result = call(exoticToPrim, input, pref);
680
+ if (!isObject(result) || isSymbol(result)) return result;
681
+ throw new $TypeError("Can't convert object to primitive value");
682
+ }
683
+ if (pref === undefined) pref = 'number';
684
+ return ordinaryToPrimitive(input, pref);
685
+ };
686
+ return toPrimitive;
687
+ }
385
688
 
386
- var call = functionCall;
387
- var isObject = isObject$4;
388
- var isSymbol$1 = isSymbol$2;
389
- var getMethod = getMethod$1;
390
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
391
- var wellKnownSymbol$2 = wellKnownSymbol$3;
392
-
393
- var $TypeError$1 = TypeError;
394
- var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
395
-
396
- // `ToPrimitive` abstract operation
397
- // https://tc39.es/ecma262/#sec-toprimitive
398
- var toPrimitive$1 = function (input, pref) {
399
- if (!isObject(input) || isSymbol$1(input)) return input;
400
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
401
- var result;
402
- if (exoticToPrim) {
403
- if (pref === undefined) pref = 'default';
404
- result = call(exoticToPrim, input, pref);
405
- if (!isObject(result) || isSymbol$1(result)) return result;
406
- throw new $TypeError$1("Can't convert object to primitive value");
407
- }
408
- if (pref === undefined) pref = 'number';
409
- return ordinaryToPrimitive(input, pref);
410
- };
689
+ var toPropertyKey;
690
+ var hasRequiredToPropertyKey;
691
+
692
+ function requireToPropertyKey () {
693
+ if (hasRequiredToPropertyKey) return toPropertyKey;
694
+ hasRequiredToPropertyKey = 1;
695
+ var toPrimitive = requireToPrimitive();
696
+ var isSymbol = requireIsSymbol();
697
+
698
+ // `ToPropertyKey` abstract operation
699
+ // https://tc39.es/ecma262/#sec-topropertykey
700
+ toPropertyKey = function (argument) {
701
+ var key = toPrimitive(argument, 'string');
702
+ return isSymbol(key) ? key : key + '';
703
+ };
704
+ return toPropertyKey;
705
+ }
411
706
 
412
- var toPrimitive = toPrimitive$1;
413
- var isSymbol = isSymbol$2;
707
+ var hasRequiredObjectDefineProperty;
708
+
709
+ function requireObjectDefineProperty () {
710
+ if (hasRequiredObjectDefineProperty) return objectDefineProperty;
711
+ hasRequiredObjectDefineProperty = 1;
712
+ var DESCRIPTORS = requireDescriptors();
713
+ var IE8_DOM_DEFINE = requireIe8DomDefine();
714
+ var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
715
+ var anObject = requireAnObject();
716
+ var toPropertyKey = requireToPropertyKey();
717
+
718
+ var $TypeError = TypeError;
719
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
720
+ var $defineProperty = Object.defineProperty;
721
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
722
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
723
+ var ENUMERABLE = 'enumerable';
724
+ var CONFIGURABLE = 'configurable';
725
+ var WRITABLE = 'writable';
726
+
727
+ // `Object.defineProperty` method
728
+ // https://tc39.es/ecma262/#sec-object.defineproperty
729
+ objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
730
+ anObject(O);
731
+ P = toPropertyKey(P);
732
+ anObject(Attributes);
733
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
734
+ var current = $getOwnPropertyDescriptor(O, P);
735
+ if (current && current[WRITABLE]) {
736
+ O[P] = Attributes.value;
737
+ Attributes = {
738
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
739
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
740
+ writable: false
741
+ };
742
+ }
743
+ } return $defineProperty(O, P, Attributes);
744
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
745
+ anObject(O);
746
+ P = toPropertyKey(P);
747
+ anObject(Attributes);
748
+ if (IE8_DOM_DEFINE) try {
749
+ return $defineProperty(O, P, Attributes);
750
+ } catch (error) { /* empty */ }
751
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
752
+ if ('value' in Attributes) O[P] = Attributes.value;
753
+ return O;
754
+ };
755
+ return objectDefineProperty;
756
+ }
414
757
 
415
- // `ToPropertyKey` abstract operation
416
- // https://tc39.es/ecma262/#sec-topropertykey
417
- var toPropertyKey$1 = function (argument) {
418
- var key = toPrimitive(argument, 'string');
419
- return isSymbol(key) ? key : key + '';
420
- };
758
+ var hasRequiredEsnext_function_metadata;
759
+
760
+ function requireEsnext_function_metadata () {
761
+ if (hasRequiredEsnext_function_metadata) return esnext_function_metadata;
762
+ hasRequiredEsnext_function_metadata = 1;
763
+ var wellKnownSymbol = requireWellKnownSymbol();
764
+ var defineProperty = requireObjectDefineProperty().f;
765
+
766
+ var METADATA = wellKnownSymbol('metadata');
767
+ var FunctionPrototype = Function.prototype;
768
+
769
+ // Function.prototype[@@metadata]
770
+ // https://github.com/tc39/proposal-decorator-metadata
771
+ if (FunctionPrototype[METADATA] === undefined) {
772
+ defineProperty(FunctionPrototype, METADATA, {
773
+ value: null
774
+ });
775
+ }
776
+ return esnext_function_metadata;
777
+ }
421
778
 
422
- var DESCRIPTORS = descriptors;
423
- var IE8_DOM_DEFINE = ie8DomDefine;
424
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
425
- var anObject = anObject$1;
426
- var toPropertyKey = toPropertyKey$1;
427
-
428
- var $TypeError = TypeError;
429
- // eslint-disable-next-line es/no-object-defineproperty -- safe
430
- var $defineProperty = Object.defineProperty;
431
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
432
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
433
- var ENUMERABLE = 'enumerable';
434
- var CONFIGURABLE = 'configurable';
435
- var WRITABLE = 'writable';
436
-
437
- // `Object.defineProperty` method
438
- // https://tc39.es/ecma262/#sec-object.defineproperty
439
- objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
440
- anObject(O);
441
- P = toPropertyKey(P);
442
- anObject(Attributes);
443
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
444
- var current = $getOwnPropertyDescriptor(O, P);
445
- if (current && current[WRITABLE]) {
446
- O[P] = Attributes.value;
447
- Attributes = {
448
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
449
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
450
- writable: false
451
- };
452
- }
453
- } return $defineProperty(O, P, Attributes);
454
- } : $defineProperty : function defineProperty(O, P, Attributes) {
455
- anObject(O);
456
- P = toPropertyKey(P);
457
- anObject(Attributes);
458
- if (IE8_DOM_DEFINE) try {
459
- return $defineProperty(O, P, Attributes);
460
- } catch (error) { /* empty */ }
461
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
462
- if ('value' in Attributes) O[P] = Attributes.value;
463
- return O;
464
- };
779
+ var esnext_symbol_metadata = {};
465
780
 
466
- var wellKnownSymbol$1 = wellKnownSymbol$3;
467
- var defineProperty$1 = objectDefineProperty.f;
781
+ var path;
782
+ var hasRequiredPath;
468
783
 
469
- var METADATA = wellKnownSymbol$1('metadata');
470
- var FunctionPrototype = Function.prototype;
784
+ function requirePath () {
785
+ if (hasRequiredPath) return path;
786
+ hasRequiredPath = 1;
787
+ var globalThis = requireGlobalThis();
471
788
 
472
- // Function.prototype[@@metadata]
473
- // https://github.com/tc39/proposal-decorator-metadata
474
- if (FunctionPrototype[METADATA] === undefined) {
475
- defineProperty$1(FunctionPrototype, METADATA, {
476
- value: null
477
- });
789
+ path = globalThis;
790
+ return path;
478
791
  }
479
792
 
480
- var globalThis$1 = globalThis_1;
793
+ var wellKnownSymbolWrapped = {};
481
794
 
482
- var path$1 = globalThis$1;
795
+ var hasRequiredWellKnownSymbolWrapped;
483
796
 
484
- var wellKnownSymbolWrapped = {};
797
+ function requireWellKnownSymbolWrapped () {
798
+ if (hasRequiredWellKnownSymbolWrapped) return wellKnownSymbolWrapped;
799
+ hasRequiredWellKnownSymbolWrapped = 1;
800
+ var wellKnownSymbol = requireWellKnownSymbol();
485
801
 
486
- var wellKnownSymbol = wellKnownSymbol$3;
802
+ wellKnownSymbolWrapped.f = wellKnownSymbol;
803
+ return wellKnownSymbolWrapped;
804
+ }
487
805
 
488
- wellKnownSymbolWrapped.f = wellKnownSymbol;
806
+ var wellKnownSymbolDefine;
807
+ var hasRequiredWellKnownSymbolDefine;
808
+
809
+ function requireWellKnownSymbolDefine () {
810
+ if (hasRequiredWellKnownSymbolDefine) return wellKnownSymbolDefine;
811
+ hasRequiredWellKnownSymbolDefine = 1;
812
+ var path = requirePath();
813
+ var hasOwn = requireHasOwnProperty();
814
+ var wrappedWellKnownSymbolModule = requireWellKnownSymbolWrapped();
815
+ var defineProperty = requireObjectDefineProperty().f;
816
+
817
+ wellKnownSymbolDefine = function (NAME) {
818
+ var Symbol = path.Symbol || (path.Symbol = {});
819
+ if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
820
+ value: wrappedWellKnownSymbolModule.f(NAME)
821
+ });
822
+ };
823
+ return wellKnownSymbolDefine;
824
+ }
489
825
 
490
- var path = path$1;
491
- var hasOwn = hasOwnProperty_1;
492
- var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;
493
- var defineProperty = objectDefineProperty.f;
826
+ var hasRequiredEsnext_symbol_metadata;
494
827
 
495
- var wellKnownSymbolDefine = function (NAME) {
496
- var Symbol = path.Symbol || (path.Symbol = {});
497
- if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
498
- value: wrappedWellKnownSymbolModule.f(NAME)
499
- });
500
- };
828
+ function requireEsnext_symbol_metadata () {
829
+ if (hasRequiredEsnext_symbol_metadata) return esnext_symbol_metadata;
830
+ hasRequiredEsnext_symbol_metadata = 1;
831
+ var defineWellKnownSymbol = requireWellKnownSymbolDefine();
832
+
833
+ // `Symbol.metadata` well-known symbol
834
+ // https://github.com/tc39/proposal-decorators
835
+ defineWellKnownSymbol('metadata');
836
+ return esnext_symbol_metadata;
837
+ }
501
838
 
502
- var defineWellKnownSymbol = wellKnownSymbolDefine;
839
+ var hasRequiredDecoratorMetadataV2;
840
+
841
+ function requireDecoratorMetadataV2 () {
842
+ if (hasRequiredDecoratorMetadataV2) return decoratorMetadataV2;
843
+ hasRequiredDecoratorMetadataV2 = 1;
844
+ // https://github.com/tc39/proposal-decorator-metadata
845
+ requireEsnext_function_metadata();
846
+ requireEsnext_symbol_metadata();
847
+ return decoratorMetadataV2;
848
+ }
503
849
 
504
- // `Symbol.metadata` well-known symbol
505
- // https://github.com/tc39/proposal-decorators
506
- defineWellKnownSymbol('metadata');
850
+ requireDecoratorMetadataV2();
507
851
 
508
852
  ////////////////////////////////////////////////////////////////////////////////
509
853
  //
@@ -761,7 +1105,7 @@ var DefaultToJsonOptions = /*#__PURE__*/_createClass(function DefaultToJsonOptio
761
1105
  });
762
1106
 
763
1107
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
764
- function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1108
+ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
765
1109
 
766
1110
  /**
767
1111
  * The map storing the default values of options of different aspects.
@@ -1176,10 +1520,10 @@ function enumNormalizer(EnumClass) {
1176
1520
  * @author Haixing Hu
1177
1521
  */
1178
1522
  function defaultNormalizer(value) {
1179
- var _context, _context2, _context2$path;
1523
+ var _context, _context$path;
1180
1524
  var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1181
- (_context = context) !== null && _context !== void 0 ? _context : context = {};
1182
- (_context2$path = (_context2 = context).path) !== null && _context2$path !== void 0 ? _context2$path : _context2.path = '';
1525
+ context !== null && context !== void 0 ? context : context = {};
1526
+ (_context$path = (_context = context).path) !== null && _context$path !== void 0 ? _context$path : _context.path = '';
1183
1527
  var info = typeInfo(value);
1184
1528
  switch (info.category) {
1185
1529
  case 'string':
@@ -1264,7 +1608,7 @@ function getDefaultInstance(Class) {
1264
1608
  return obj;
1265
1609
  }
1266
1610
 
1267
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1611
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
1268
1612
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
1269
1613
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1270
1614
 
@@ -1478,11 +1822,10 @@ function getFieldMetadata(metadata, field, key) {
1478
1822
  * @author Haixing Hu
1479
1823
  */
1480
1824
  function getFieldElementType(Class, field) {
1481
- var _path, _options;
1482
1825
  var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
1483
1826
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1484
- (_path = path) !== null && _path !== void 0 ? _path : path = ".".concat(field);
1485
- (_options = options) !== null && _options !== void 0 ? _options : options = {};
1827
+ path !== null && path !== void 0 ? path : path = ".".concat(field);
1828
+ options !== null && options !== void 0 ? options : options = {};
1486
1829
  // try to find the annotated element type information
1487
1830
  var metadata = classMetadataCache.get(Class);
1488
1831
  var annotatedElementType = getFieldMetadata(metadata, field, KEY_FIELD_ELEMENT_TYPE);
@@ -1547,11 +1890,10 @@ function getFieldElementType(Class, field) {
1547
1890
  * @author Haixing Hu
1548
1891
  */
1549
1892
  function getFieldType(Class, field) {
1550
- var _path, _options;
1551
1893
  var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
1552
1894
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1553
- (_path = path) !== null && _path !== void 0 ? _path : path = ".".concat(field);
1554
- (_options = options) !== null && _options !== void 0 ? _options : options = {};
1895
+ path !== null && path !== void 0 ? path : path = ".".concat(field);
1896
+ options !== null && options !== void 0 ? options : options = {};
1555
1897
  // try to find the annotated type information
1556
1898
  var metadata = classMetadataCache.get(Class);
1557
1899
  var annotatedType = getFieldMetadata(metadata, field, KEY_FIELD_TYPE);
@@ -1642,7 +1984,7 @@ function ofValueImpl(Class, value) {
1642
1984
  }
1643
1985
 
1644
1986
  function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1645
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1987
+ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1646
1988
  var Impl = {
1647
1989
  /**
1648
1990
  * Gets the names of all fields of the default instance of target class.
@@ -2912,9 +3254,9 @@ function hasOwnPrototypeFunction(Class, name) {
2912
3254
  * @private
2913
3255
  */
2914
3256
  function normalizeFieldImpl(Class, obj, field, options) {
2915
- var _options, _options2, _options2$path;
2916
- (_options = options) !== null && _options !== void 0 ? _options : options = {};
2917
- (_options2$path = (_options2 = options).path) !== null && _options2$path !== void 0 ? _options2$path : _options2.path = '';
3257
+ var _options, _options$path;
3258
+ options !== null && options !== void 0 ? options : options = {};
3259
+ (_options$path = (_options = options).path) !== null && _options$path !== void 0 ? _options$path : _options.path = '';
2918
3260
  if (!Object.prototype.hasOwnProperty.call(obj, field)) {
2919
3261
  // the field does not exist
2920
3262
  return false;
@@ -3764,7 +4106,7 @@ function isValidPageSource(page, options) {
3764
4106
  }
3765
4107
 
3766
4108
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3767
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4109
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3768
4110
 
3769
4111
  /**
3770
4112
  * Creates a Page object from the specified data.
@@ -3902,7 +4244,7 @@ function parseJsonStringImpl(Class, json, options) {
3902
4244
  }
3903
4245
 
3904
4246
  function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3905
- function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4247
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3906
4248
 
3907
4249
  /**
3908
4250
  * Gets the object to be serialized by `JSON.stringify()`.
@@ -3964,6 +4306,9 @@ function toJsonImpl(obj, key, options) {
3964
4306
  var opt = DefaultOptions.merge('toJSON', options);
3965
4307
  // normalize the object if necessary
3966
4308
  if (opt.normalize) {
4309
+ // must clone the object before normalizing it, otherwise the original
4310
+ // object will be modified.
4311
+ obj = clone(obj, CLONE_OPTIONS);
3967
4312
  obj = defaultNormalizer(obj);
3968
4313
  }
3969
4314
  var cloneOptions = _objectSpread$2(_objectSpread$2({}, CLONE_OPTIONS), {}, {
@@ -4076,7 +4421,7 @@ function hasOwnClassField(Class, field) {
4076
4421
  }
4077
4422
 
4078
4423
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4079
- function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4424
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4080
4425
 
4081
4426
  /**
4082
4427
  * This decorator is used to add common methods to a domain model class.
@@ -6642,7 +6987,7 @@ function normalize(value) {
6642
6987
  }
6643
6988
 
6644
6989
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6645
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6990
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6646
6991
 
6647
6992
  /**
6648
6993
  * Converts an object to the object to be serialized by `JSON.stringify()`.