@alma/widgets 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/raw/widgets.js +712 -392
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +712 -392
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +713 -393
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +1170 -798
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +7 -13
- package/CHANGELOG.md +0 -256
- package/dist/types/Widgets/EligibilityModal/ModalContainer.test.d.ts +0 -1
- package/dist/types/Widgets/EligibilityModal/modal.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/Basics.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/Credit.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/CustomTransitionDelay.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/HideWidget.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/IneligibleOptions.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/LanguageCheck.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/LaunchModal.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/SuggestedPaymentPlan.test.d.ts +0 -1
- package/dist/types/Widgets/PaymentPlans/__tests__/WithoutPlans.test.d.ts +0 -1
package/dist/raw/widgets.umd.js
CHANGED
|
@@ -3,40 +3,44 @@
|
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = global || self, factory(global.Alma = {}));
|
|
5
5
|
}(this, (function (exports) {
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
var fails = function (exec) {
|
|
7
|
+
try {
|
|
8
|
+
return !!exec();
|
|
9
|
+
} catch (error) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
14
|
+
var functionBindNative = !fails(function () {
|
|
15
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
16
|
+
var test = function () {
|
|
17
|
+
/* empty */
|
|
18
|
+
}.bind(); // eslint-disable-next-line no-prototype-builtins -- safe
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
return function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
|
|
21
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
var FunctionPrototype = Function.prototype;
|
|
25
|
+
var bind = FunctionPrototype.bind;
|
|
26
|
+
var call = FunctionPrototype.call;
|
|
27
|
+
var uncurryThis = functionBindNative && bind.bind(call, call);
|
|
28
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
29
|
+
return fn && uncurryThis(fn);
|
|
30
|
+
} : function (fn) {
|
|
31
|
+
return fn && function () {
|
|
32
|
+
return call.apply(fn, arguments);
|
|
30
33
|
};
|
|
31
34
|
};
|
|
32
35
|
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
//
|
|
39
|
-
|
|
36
|
+
var ceil = Math.ceil;
|
|
37
|
+
var floor = Math.floor; // `ToIntegerOrInfinity` abstract operation
|
|
38
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
39
|
+
|
|
40
|
+
var toIntegerOrInfinity = function (argument) {
|
|
41
|
+
var number = +argument; // eslint-disable-next-line no-self-compare -- safe
|
|
42
|
+
|
|
43
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
|
40
44
|
};
|
|
41
45
|
|
|
42
46
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -64,21 +68,241 @@
|
|
|
64
68
|
}; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
65
69
|
|
|
66
70
|
|
|
67
|
-
var global_1 = // eslint-disable-next-line no-
|
|
68
|
-
check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) ||
|
|
71
|
+
var global_1 = // eslint-disable-next-line es-x/no-global-this -- safe
|
|
72
|
+
check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
73
|
+
check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
69
74
|
function () {
|
|
70
75
|
return this;
|
|
71
76
|
}() || Function('return this')();
|
|
72
77
|
|
|
73
|
-
var
|
|
78
|
+
var defineProperty = Object.defineProperty;
|
|
79
|
+
|
|
80
|
+
var setGlobal = function (key, value) {
|
|
74
81
|
try {
|
|
75
|
-
|
|
82
|
+
defineProperty(global_1, key, {
|
|
83
|
+
value: value,
|
|
84
|
+
configurable: true,
|
|
85
|
+
writable: true
|
|
86
|
+
});
|
|
76
87
|
} catch (error) {
|
|
77
|
-
|
|
88
|
+
global_1[key] = value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return value;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
var SHARED = '__core-js_shared__';
|
|
95
|
+
var store = global_1[SHARED] || setGlobal(SHARED, {});
|
|
96
|
+
var sharedStore = store;
|
|
97
|
+
|
|
98
|
+
var shared = createCommonjsModule(function (module) {
|
|
99
|
+
(module.exports = function (key, value) {
|
|
100
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
101
|
+
})('versions', []).push({
|
|
102
|
+
version: '3.22.1',
|
|
103
|
+
mode: 'global',
|
|
104
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
105
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE',
|
|
106
|
+
source: 'https://github.com/zloirock/core-js'
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
var TypeError$1 = global_1.TypeError; // `RequireObjectCoercible` abstract operation
|
|
111
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
112
|
+
|
|
113
|
+
var requireObjectCoercible = function (it) {
|
|
114
|
+
if (it == undefined) throw TypeError$1("Can't call method on " + it);
|
|
115
|
+
return it;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var Object$1 = global_1.Object; // `ToObject` abstract operation
|
|
119
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
120
|
+
|
|
121
|
+
var toObject = function (argument) {
|
|
122
|
+
return Object$1(requireObjectCoercible(argument));
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation
|
|
126
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
127
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
128
|
+
|
|
129
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
130
|
+
return hasOwnProperty(toObject(it), key);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
var id = 0;
|
|
134
|
+
var postfix = Math.random();
|
|
135
|
+
var toString = functionUncurryThis(1.0.toString);
|
|
136
|
+
|
|
137
|
+
var uid = function (key) {
|
|
138
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
// `IsCallable` abstract operation
|
|
142
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
143
|
+
var isCallable = function (argument) {
|
|
144
|
+
return typeof argument == 'function';
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
var aFunction = function (argument) {
|
|
148
|
+
return isCallable(argument) ? argument : undefined;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
var getBuiltIn = function (namespace, method) {
|
|
152
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
156
|
+
|
|
157
|
+
var process = global_1.process;
|
|
158
|
+
var Deno = global_1.Deno;
|
|
159
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
160
|
+
var v8 = versions && versions.v8;
|
|
161
|
+
var match, version;
|
|
162
|
+
|
|
163
|
+
if (v8) {
|
|
164
|
+
match = v8.split('.'); // in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
165
|
+
// but their correct versions are not interesting for us
|
|
166
|
+
|
|
167
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
168
|
+
} // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
169
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
if (!version && engineUserAgent) {
|
|
173
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
174
|
+
|
|
175
|
+
if (!match || match[1] >= 74) {
|
|
176
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
177
|
+
if (match) version = +match[1];
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
var engineV8Version = version;
|
|
182
|
+
|
|
183
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
184
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
185
|
+
|
|
186
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
187
|
+
var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion
|
|
188
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
189
|
+
|
|
190
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
191
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
195
|
+
|
|
196
|
+
var useSymbolAsUid = nativeSymbol && !Symbol.sham && typeof Symbol.iterator == 'symbol';
|
|
197
|
+
|
|
198
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
199
|
+
var Symbol$1 = global_1.Symbol;
|
|
200
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
201
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
202
|
+
|
|
203
|
+
var wellKnownSymbol = function (name) {
|
|
204
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
205
|
+
var description = 'Symbol.' + name;
|
|
206
|
+
|
|
207
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
208
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
209
|
+
} else if (useSymbolAsUid && symbolFor) {
|
|
210
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
211
|
+
} else {
|
|
212
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
213
|
+
}
|
|
78
214
|
}
|
|
215
|
+
|
|
216
|
+
return WellKnownSymbolsStore[name];
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
220
|
+
var test = {};
|
|
221
|
+
test[TO_STRING_TAG] = 'z';
|
|
222
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
223
|
+
|
|
224
|
+
var toString$1 = functionUncurryThis({}.toString);
|
|
225
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
226
|
+
|
|
227
|
+
var classofRaw = function (it) {
|
|
228
|
+
return stringSlice(toString$1(it), 8, -1);
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
232
|
+
var Object$2 = global_1.Object; // ES3 wrong here
|
|
233
|
+
|
|
234
|
+
var CORRECT_ARGUMENTS = classofRaw(function () {
|
|
235
|
+
return arguments;
|
|
236
|
+
}()) == 'Arguments'; // fallback for IE11 Script Access Denied error
|
|
237
|
+
|
|
238
|
+
var tryGet = function (it, key) {
|
|
239
|
+
try {
|
|
240
|
+
return it[key];
|
|
241
|
+
} catch (error) {
|
|
242
|
+
/* empty */
|
|
243
|
+
}
|
|
244
|
+
}; // getting tag from ES6+ `Object.prototype.toString`
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
248
|
+
var O, tag, result;
|
|
249
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case
|
|
250
|
+
: typeof (tag = tryGet(O = Object$2(it), TO_STRING_TAG$1)) == 'string' ? tag // builtinTag case
|
|
251
|
+
: CORRECT_ARGUMENTS ? classofRaw(O) // ES3 arguments fallback
|
|
252
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
var String$1 = global_1.String;
|
|
256
|
+
|
|
257
|
+
var toString_1 = function (argument) {
|
|
258
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
259
|
+
return String$1(argument);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
var charAt = functionUncurryThis(''.charAt);
|
|
263
|
+
var charCodeAt = functionUncurryThis(''.charCodeAt);
|
|
264
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
|
265
|
+
|
|
266
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
267
|
+
return function ($this, pos) {
|
|
268
|
+
var S = toString_1(requireObjectCoercible($this));
|
|
269
|
+
var position = toIntegerOrInfinity(pos);
|
|
270
|
+
var size = S.length;
|
|
271
|
+
var first, second;
|
|
272
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
273
|
+
first = charCodeAt(S, position);
|
|
274
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice$1(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
var stringMultibyte = {
|
|
279
|
+
// `String.prototype.codePointAt` method
|
|
280
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
281
|
+
codeAt: createMethod(false),
|
|
282
|
+
// `String.prototype.at` method
|
|
283
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
284
|
+
charAt: createMethod(true)
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
var functionToString = functionUncurryThis(Function.toString); // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
288
|
+
|
|
289
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
|
290
|
+
sharedStore.inspectSource = function (it) {
|
|
291
|
+
return functionToString(it);
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
var inspectSource = sharedStore.inspectSource;
|
|
296
|
+
|
|
297
|
+
var WeakMap$1 = global_1.WeakMap;
|
|
298
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
299
|
+
|
|
300
|
+
var isObject = function (it) {
|
|
301
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
79
302
|
};
|
|
80
303
|
|
|
81
304
|
var descriptors = !fails(function () {
|
|
305
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
82
306
|
return Object.defineProperty({}, 1, {
|
|
83
307
|
get: function () {
|
|
84
308
|
return 7;
|
|
@@ -86,10 +310,6 @@
|
|
|
86
310
|
})[1] != 7;
|
|
87
311
|
});
|
|
88
312
|
|
|
89
|
-
var isObject = function (it) {
|
|
90
|
-
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
91
|
-
};
|
|
92
|
-
|
|
93
313
|
var document$1 = global_1.document; // typeof document.createElement is 'object' in old IE
|
|
94
314
|
|
|
95
315
|
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
|
@@ -99,6 +319,7 @@
|
|
|
99
319
|
};
|
|
100
320
|
|
|
101
321
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
322
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
102
323
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
103
324
|
get: function () {
|
|
104
325
|
return 7;
|
|
@@ -106,40 +327,142 @@
|
|
|
106
327
|
}).a != 7;
|
|
107
328
|
});
|
|
108
329
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
330
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
331
|
+
|
|
332
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
333
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
334
|
+
return Object.defineProperty(function () {
|
|
335
|
+
/* empty */
|
|
336
|
+
}, 'prototype', {
|
|
337
|
+
value: 42,
|
|
338
|
+
writable: false
|
|
339
|
+
}).prototype != 42;
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
var String$2 = global_1.String;
|
|
343
|
+
var TypeError$2 = global_1.TypeError; // `Assert: Type(argument) is Object`
|
|
344
|
+
|
|
345
|
+
var anObject = function (argument) {
|
|
346
|
+
if (isObject(argument)) return argument;
|
|
347
|
+
throw TypeError$2(String$2(argument) + ' is not an object');
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
var call$1 = Function.prototype.call;
|
|
351
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
|
352
|
+
return call$1.apply(call$1, arguments);
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
356
|
+
|
|
357
|
+
var Object$3 = global_1.Object;
|
|
358
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
|
359
|
+
return typeof it == 'symbol';
|
|
360
|
+
} : function (it) {
|
|
361
|
+
var $Symbol = getBuiltIn('Symbol');
|
|
362
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
var String$3 = global_1.String;
|
|
366
|
+
|
|
367
|
+
var tryToString = function (argument) {
|
|
368
|
+
try {
|
|
369
|
+
return String$3(argument);
|
|
370
|
+
} catch (error) {
|
|
371
|
+
return 'Object';
|
|
112
372
|
}
|
|
373
|
+
};
|
|
113
374
|
|
|
114
|
-
|
|
375
|
+
var TypeError$3 = global_1.TypeError; // `Assert: IsCallable(argument) is true`
|
|
376
|
+
|
|
377
|
+
var aCallable = function (argument) {
|
|
378
|
+
if (isCallable(argument)) return argument;
|
|
379
|
+
throw TypeError$3(tryToString(argument) + ' is not a function');
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
383
|
+
|
|
384
|
+
var getMethod = function (V, P) {
|
|
385
|
+
var func = V[P];
|
|
386
|
+
return func == null ? undefined : aCallable(func);
|
|
115
387
|
};
|
|
116
388
|
|
|
117
|
-
//
|
|
118
|
-
//
|
|
119
|
-
// and the second argument - flag - preferred type is a string
|
|
389
|
+
var TypeError$4 = global_1.TypeError; // `OrdinaryToPrimitive` abstract operation
|
|
390
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
120
391
|
|
|
121
|
-
var
|
|
122
|
-
if (!isObject(input)) return input;
|
|
392
|
+
var ordinaryToPrimitive = function (input, pref) {
|
|
123
393
|
var fn, val;
|
|
124
|
-
if (
|
|
125
|
-
if (
|
|
126
|
-
if (
|
|
127
|
-
throw TypeError("Can't convert object to primitive value");
|
|
394
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
395
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
396
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
397
|
+
throw TypeError$4("Can't convert object to primitive value");
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
var TypeError$5 = global_1.TypeError;
|
|
401
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); // `ToPrimitive` abstract operation
|
|
402
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
403
|
+
|
|
404
|
+
var toPrimitive = function (input, pref) {
|
|
405
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
|
406
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
407
|
+
var result;
|
|
408
|
+
|
|
409
|
+
if (exoticToPrim) {
|
|
410
|
+
if (pref === undefined) pref = 'default';
|
|
411
|
+
result = functionCall(exoticToPrim, input, pref);
|
|
412
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
|
413
|
+
throw TypeError$5("Can't convert object to primitive value");
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (pref === undefined) pref = 'number';
|
|
417
|
+
return ordinaryToPrimitive(input, pref);
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
421
|
+
|
|
422
|
+
var toPropertyKey = function (argument) {
|
|
423
|
+
var key = toPrimitive(argument, 'string');
|
|
424
|
+
return isSymbol(key) ? key : key + '';
|
|
128
425
|
};
|
|
129
426
|
|
|
130
|
-
var
|
|
131
|
-
|
|
427
|
+
var TypeError$6 = global_1.TypeError; // eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
428
|
+
|
|
429
|
+
var $defineProperty = Object.defineProperty; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
430
|
+
|
|
431
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
432
|
+
var ENUMERABLE = 'enumerable';
|
|
433
|
+
var CONFIGURABLE = 'configurable';
|
|
434
|
+
var WRITABLE = 'writable'; // `Object.defineProperty` method
|
|
435
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
436
|
+
|
|
437
|
+
var f = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
|
438
|
+
anObject(O);
|
|
439
|
+
P = toPropertyKey(P);
|
|
440
|
+
anObject(Attributes);
|
|
441
|
+
|
|
442
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
443
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
444
|
+
|
|
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
|
+
}
|
|
132
454
|
|
|
133
|
-
|
|
455
|
+
return $defineProperty(O, P, Attributes);
|
|
456
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
134
457
|
anObject(O);
|
|
135
|
-
P =
|
|
458
|
+
P = toPropertyKey(P);
|
|
136
459
|
anObject(Attributes);
|
|
137
460
|
if (ie8DomDefine) try {
|
|
138
|
-
return
|
|
461
|
+
return $defineProperty(O, P, Attributes);
|
|
139
462
|
} catch (error) {
|
|
140
463
|
/* empty */
|
|
141
464
|
}
|
|
142
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
465
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$6('Accessors not supported');
|
|
143
466
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
144
467
|
return O;
|
|
145
468
|
};
|
|
@@ -163,56 +486,6 @@
|
|
|
163
486
|
return object;
|
|
164
487
|
};
|
|
165
488
|
|
|
166
|
-
var setGlobal = function (key, value) {
|
|
167
|
-
try {
|
|
168
|
-
createNonEnumerableProperty(global_1, key, value);
|
|
169
|
-
} catch (error) {
|
|
170
|
-
global_1[key] = value;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return value;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
var SHARED = '__core-js_shared__';
|
|
177
|
-
var store = global_1[SHARED] || setGlobal(SHARED, {});
|
|
178
|
-
var sharedStore = store;
|
|
179
|
-
|
|
180
|
-
var functionToString = Function.toString; // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
|
181
|
-
|
|
182
|
-
if (typeof sharedStore.inspectSource != 'function') {
|
|
183
|
-
sharedStore.inspectSource = function (it) {
|
|
184
|
-
return functionToString.call(it);
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
var inspectSource = sharedStore.inspectSource;
|
|
189
|
-
|
|
190
|
-
var WeakMap$1 = global_1.WeakMap;
|
|
191
|
-
var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
|
|
192
|
-
|
|
193
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
194
|
-
|
|
195
|
-
var has = function (it, key) {
|
|
196
|
-
return hasOwnProperty.call(it, key);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
var shared = createCommonjsModule(function (module) {
|
|
200
|
-
(module.exports = function (key, value) {
|
|
201
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
202
|
-
})('versions', []).push({
|
|
203
|
-
version: '3.8.1',
|
|
204
|
-
mode: 'global',
|
|
205
|
-
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
var id = 0;
|
|
210
|
-
var postfix = Math.random();
|
|
211
|
-
|
|
212
|
-
var uid = function (key) {
|
|
213
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
214
|
-
};
|
|
215
|
-
|
|
216
489
|
var keys = shared('keys');
|
|
217
490
|
|
|
218
491
|
var sharedKey = function (key) {
|
|
@@ -221,11 +494,13 @@
|
|
|
221
494
|
|
|
222
495
|
var hiddenKeys = {};
|
|
223
496
|
|
|
497
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
498
|
+
var TypeError$7 = global_1.TypeError;
|
|
224
499
|
var WeakMap$2 = global_1.WeakMap;
|
|
225
|
-
var set, get, has
|
|
500
|
+
var set, get, has;
|
|
226
501
|
|
|
227
502
|
var enforce = function (it) {
|
|
228
|
-
return has
|
|
503
|
+
return has(it) ? get(it) : set(it, {});
|
|
229
504
|
};
|
|
230
505
|
|
|
231
506
|
var getterFor = function (TYPE) {
|
|
@@ -233,113 +508,128 @@
|
|
|
233
508
|
var state;
|
|
234
509
|
|
|
235
510
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
236
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
511
|
+
throw TypeError$7('Incompatible receiver, ' + TYPE + ' required');
|
|
237
512
|
}
|
|
238
513
|
|
|
239
514
|
return state;
|
|
240
515
|
};
|
|
241
516
|
};
|
|
242
517
|
|
|
243
|
-
if (nativeWeakMap) {
|
|
518
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
244
519
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
245
|
-
var wmget = store$1.get;
|
|
246
|
-
var wmhas = store$1.has;
|
|
247
|
-
var wmset = store$1.set;
|
|
520
|
+
var wmget = functionUncurryThis(store$1.get);
|
|
521
|
+
var wmhas = functionUncurryThis(store$1.has);
|
|
522
|
+
var wmset = functionUncurryThis(store$1.set);
|
|
248
523
|
|
|
249
524
|
set = function (it, metadata) {
|
|
525
|
+
if (wmhas(store$1, it)) throw new TypeError$7(OBJECT_ALREADY_INITIALIZED);
|
|
250
526
|
metadata.facade = it;
|
|
251
|
-
wmset
|
|
527
|
+
wmset(store$1, it, metadata);
|
|
252
528
|
return metadata;
|
|
253
529
|
};
|
|
254
530
|
|
|
255
531
|
get = function (it) {
|
|
256
|
-
return wmget
|
|
532
|
+
return wmget(store$1, it) || {};
|
|
257
533
|
};
|
|
258
534
|
|
|
259
|
-
has
|
|
260
|
-
return wmhas
|
|
535
|
+
has = function (it) {
|
|
536
|
+
return wmhas(store$1, it);
|
|
261
537
|
};
|
|
262
538
|
} else {
|
|
263
539
|
var STATE = sharedKey('state');
|
|
264
540
|
hiddenKeys[STATE] = true;
|
|
265
541
|
|
|
266
542
|
set = function (it, metadata) {
|
|
543
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$7(OBJECT_ALREADY_INITIALIZED);
|
|
267
544
|
metadata.facade = it;
|
|
268
545
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
269
546
|
return metadata;
|
|
270
547
|
};
|
|
271
548
|
|
|
272
549
|
get = function (it) {
|
|
273
|
-
return
|
|
550
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
|
274
551
|
};
|
|
275
552
|
|
|
276
|
-
has
|
|
277
|
-
return
|
|
553
|
+
has = function (it) {
|
|
554
|
+
return hasOwnProperty_1(it, STATE);
|
|
278
555
|
};
|
|
279
556
|
}
|
|
280
557
|
|
|
281
558
|
var internalState = {
|
|
282
559
|
set: set,
|
|
283
560
|
get: get,
|
|
284
|
-
has: has
|
|
561
|
+
has: has,
|
|
285
562
|
enforce: enforce,
|
|
286
563
|
getterFor: getterFor
|
|
287
564
|
};
|
|
288
565
|
|
|
289
|
-
var
|
|
566
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
567
|
+
|
|
290
568
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug
|
|
291
569
|
|
|
292
|
-
var NASHORN_BUG = getOwnPropertyDescriptor &&
|
|
570
|
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({
|
|
293
571
|
1: 2
|
|
294
572
|
}, 1); // `Object.prototype.propertyIsEnumerable` method implementation
|
|
295
|
-
// https://tc39.
|
|
573
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
296
574
|
|
|
297
575
|
var f$1 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
298
576
|
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
299
577
|
return !!descriptor && descriptor.enumerable;
|
|
300
|
-
} :
|
|
578
|
+
} : $propertyIsEnumerable;
|
|
301
579
|
var objectPropertyIsEnumerable = {
|
|
302
580
|
f: f$1
|
|
303
581
|
};
|
|
304
582
|
|
|
305
|
-
var
|
|
306
|
-
|
|
307
|
-
var classofRaw = function (it) {
|
|
308
|
-
return toString.call(it).slice(8, -1);
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
var split = ''.split; // fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
583
|
+
var Object$4 = global_1.Object;
|
|
584
|
+
var split = functionUncurryThis(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
312
585
|
|
|
313
586
|
var indexedObject = fails(function () {
|
|
314
587
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
315
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
316
|
-
return !Object('z').propertyIsEnumerable(0);
|
|
588
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
589
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
|
317
590
|
}) ? function (it) {
|
|
318
|
-
return classofRaw(it) == 'String' ? split
|
|
319
|
-
} : Object;
|
|
591
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
|
592
|
+
} : Object$4;
|
|
320
593
|
|
|
321
594
|
var toIndexedObject = function (it) {
|
|
322
595
|
return indexedObject(requireObjectCoercible(it));
|
|
323
596
|
};
|
|
324
597
|
|
|
325
|
-
var
|
|
326
|
-
// https://tc39.
|
|
598
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method
|
|
599
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
327
600
|
|
|
328
|
-
var f$2 = descriptors ?
|
|
601
|
+
var f$2 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
329
602
|
O = toIndexedObject(O);
|
|
330
|
-
P =
|
|
603
|
+
P = toPropertyKey(P);
|
|
331
604
|
if (ie8DomDefine) try {
|
|
332
|
-
return
|
|
605
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
333
606
|
} catch (error) {
|
|
334
607
|
/* empty */
|
|
335
608
|
}
|
|
336
|
-
if (
|
|
609
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
|
337
610
|
};
|
|
338
611
|
var objectGetOwnPropertyDescriptor = {
|
|
339
612
|
f: f$2
|
|
340
613
|
};
|
|
341
614
|
|
|
615
|
+
var FunctionPrototype$1 = Function.prototype; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
616
|
+
|
|
617
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
618
|
+
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name'); // additional protection from minified / mangled / dropped function names
|
|
619
|
+
|
|
620
|
+
var PROPER = EXISTS$1 && function something() {
|
|
621
|
+
/* empty */
|
|
622
|
+
}.name === 'something';
|
|
623
|
+
|
|
624
|
+
var CONFIGURABLE$1 = EXISTS$1 && (!descriptors || descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable);
|
|
625
|
+
var functionName = {
|
|
626
|
+
EXISTS: EXISTS$1,
|
|
627
|
+
PROPER: PROPER,
|
|
628
|
+
CONFIGURABLE: CONFIGURABLE$1
|
|
629
|
+
};
|
|
630
|
+
|
|
342
631
|
var redefine = createCommonjsModule(function (module) {
|
|
632
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
343
633
|
var getInternalState = internalState.get;
|
|
344
634
|
var enforceInternalState = internalState.enforce;
|
|
345
635
|
var TEMPLATE = String(String).split('String');
|
|
@@ -347,17 +637,22 @@
|
|
|
347
637
|
var unsafe = options ? !!options.unsafe : false;
|
|
348
638
|
var simple = options ? !!options.enumerable : false;
|
|
349
639
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
640
|
+
var name = options && options.name !== undefined ? options.name : key;
|
|
350
641
|
var state;
|
|
351
642
|
|
|
352
|
-
if (
|
|
353
|
-
if (
|
|
354
|
-
|
|
643
|
+
if (isCallable(value)) {
|
|
644
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
645
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (!hasOwnProperty_1(value, 'name') || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
|
|
649
|
+
createNonEnumerableProperty(value, 'name', name);
|
|
355
650
|
}
|
|
356
651
|
|
|
357
652
|
state = enforceInternalState(value);
|
|
358
653
|
|
|
359
654
|
if (!state.source) {
|
|
360
|
-
state.source = TEMPLATE.join(typeof
|
|
655
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
361
656
|
}
|
|
362
657
|
}
|
|
363
658
|
|
|
@@ -372,47 +667,43 @@
|
|
|
372
667
|
|
|
373
668
|
if (simple) O[key] = value;else createNonEnumerableProperty(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
374
669
|
})(Function.prototype, 'toString', function toString() {
|
|
375
|
-
return
|
|
670
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
376
671
|
});
|
|
377
672
|
});
|
|
378
673
|
|
|
379
|
-
var
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
};
|
|
674
|
+
var max = Math.max;
|
|
675
|
+
var min = Math.min; // Helper for a popular repeating case of the spec:
|
|
676
|
+
// Let integer be ? ToInteger(index).
|
|
677
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
384
678
|
|
|
385
|
-
var
|
|
386
|
-
|
|
679
|
+
var toAbsoluteIndex = function (index, length) {
|
|
680
|
+
var integer = toIntegerOrInfinity(index);
|
|
681
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
387
682
|
};
|
|
388
683
|
|
|
389
|
-
var min = Math.min; // `ToLength` abstract operation
|
|
390
|
-
// https://tc39.
|
|
684
|
+
var min$1 = Math.min; // `ToLength` abstract operation
|
|
685
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
391
686
|
|
|
392
687
|
var toLength = function (argument) {
|
|
393
|
-
return argument > 0 ? min(
|
|
688
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
394
689
|
};
|
|
395
690
|
|
|
396
|
-
|
|
397
|
-
var min$1 = Math.min; // Helper for a popular repeating case of the spec:
|
|
398
|
-
// Let integer be ? ToInteger(index).
|
|
399
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
691
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
400
692
|
|
|
401
|
-
var
|
|
402
|
-
|
|
403
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
693
|
+
var lengthOfArrayLike = function (obj) {
|
|
694
|
+
return toLength(obj.length);
|
|
404
695
|
};
|
|
405
696
|
|
|
406
697
|
var createMethod$1 = function (IS_INCLUDES) {
|
|
407
698
|
return function ($this, el, fromIndex) {
|
|
408
699
|
var O = toIndexedObject($this);
|
|
409
|
-
var length =
|
|
700
|
+
var length = lengthOfArrayLike(O);
|
|
410
701
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
411
702
|
var value; // Array#includes uses SameValueZero equality algorithm
|
|
412
|
-
// eslint-disable-next-line no-self-compare
|
|
703
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
413
704
|
|
|
414
705
|
if (IS_INCLUDES && el != el) while (length > index) {
|
|
415
|
-
value = O[index++]; // eslint-disable-next-line no-self-compare
|
|
706
|
+
value = O[index++]; // eslint-disable-next-line no-self-compare -- NaN check
|
|
416
707
|
|
|
417
708
|
if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not
|
|
418
709
|
} else for (; length > index; index++) {
|
|
@@ -424,14 +715,15 @@
|
|
|
424
715
|
|
|
425
716
|
var arrayIncludes = {
|
|
426
717
|
// `Array.prototype.includes` method
|
|
427
|
-
// https://tc39.
|
|
718
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
428
719
|
includes: createMethod$1(true),
|
|
429
720
|
// `Array.prototype.indexOf` method
|
|
430
|
-
// https://tc39.
|
|
721
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
431
722
|
indexOf: createMethod$1(false)
|
|
432
723
|
};
|
|
433
724
|
|
|
434
725
|
var indexOf = arrayIncludes.indexOf;
|
|
726
|
+
var push = functionUncurryThis([].push);
|
|
435
727
|
|
|
436
728
|
var objectKeysInternal = function (object, names) {
|
|
437
729
|
var O = toIndexedObject(object);
|
|
@@ -439,11 +731,11 @@
|
|
|
439
731
|
var result = [];
|
|
440
732
|
var key;
|
|
441
733
|
|
|
442
|
-
for (key in O) !
|
|
734
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys, key) && hasOwnProperty_1(O, key) && push(result, key); // Don't enum bug & hidden keys
|
|
443
735
|
|
|
444
736
|
|
|
445
|
-
while (names.length > i) if (
|
|
446
|
-
~indexOf(result, key) ||
|
|
737
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
|
738
|
+
~indexOf(result, key) || push(result, key);
|
|
447
739
|
}
|
|
448
740
|
|
|
449
741
|
return result;
|
|
@@ -453,7 +745,8 @@
|
|
|
453
745
|
var enumBugKeys = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'];
|
|
454
746
|
|
|
455
747
|
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method
|
|
456
|
-
// https://tc39.
|
|
748
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
749
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
457
750
|
|
|
458
751
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
459
752
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
@@ -463,25 +756,31 @@
|
|
|
463
756
|
f: f$3
|
|
464
757
|
};
|
|
465
758
|
|
|
759
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
466
760
|
var f$4 = Object.getOwnPropertySymbols;
|
|
467
761
|
var objectGetOwnPropertySymbols = {
|
|
468
762
|
f: f$4
|
|
469
763
|
};
|
|
470
764
|
|
|
765
|
+
var concat = functionUncurryThis([].concat); // all object keys, includes non-enumerable and symbols
|
|
766
|
+
|
|
471
767
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
472
768
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
|
473
769
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
474
|
-
return getOwnPropertySymbols ?
|
|
770
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
475
771
|
};
|
|
476
772
|
|
|
477
|
-
var copyConstructorProperties = function (target, source) {
|
|
773
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
|
478
774
|
var keys = ownKeys(source);
|
|
479
775
|
var defineProperty = objectDefineProperty.f;
|
|
480
776
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
481
777
|
|
|
482
778
|
for (var i = 0; i < keys.length; i++) {
|
|
483
779
|
var key = keys[i];
|
|
484
|
-
|
|
780
|
+
|
|
781
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
|
782
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
783
|
+
}
|
|
485
784
|
}
|
|
486
785
|
};
|
|
487
786
|
|
|
@@ -489,7 +788,7 @@
|
|
|
489
788
|
|
|
490
789
|
var isForced = function (feature, detection) {
|
|
491
790
|
var value = data[normalize(feature)];
|
|
492
|
-
return value == POLYFILL ? true : value == NATIVE ? false :
|
|
791
|
+
return value == POLYFILL ? true : value == NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
|
|
493
792
|
};
|
|
494
793
|
|
|
495
794
|
var normalize = isForced.normalize = function (string) {
|
|
@@ -515,6 +814,7 @@
|
|
|
515
814
|
options.sham - add a flag to not completely full polyfills
|
|
516
815
|
options.enumerable - export as enumerable property
|
|
517
816
|
options.noTargetGet - prevent calling a getter on target
|
|
817
|
+
options.name - the .name of the function if it does not match the key
|
|
518
818
|
*/
|
|
519
819
|
|
|
520
820
|
var _export = function (options, source) {
|
|
@@ -542,7 +842,7 @@
|
|
|
542
842
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target
|
|
543
843
|
|
|
544
844
|
if (!FORCED && targetProperty !== undefined) {
|
|
545
|
-
if (typeof sourceProperty
|
|
845
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
546
846
|
copyConstructorProperties(sourceProperty, targetProperty);
|
|
547
847
|
} // add a flag to not completely full polyfills
|
|
548
848
|
|
|
@@ -556,116 +856,41 @@
|
|
|
556
856
|
}
|
|
557
857
|
};
|
|
558
858
|
|
|
559
|
-
// https://tc39.
|
|
560
|
-
|
|
561
|
-
var toObject = function (argument) {
|
|
562
|
-
return Object(requireObjectCoercible(argument));
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
var correctPrototypeGetter = !fails(function () {
|
|
566
|
-
function F() {
|
|
567
|
-
/* empty */
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
F.prototype.constructor = null;
|
|
571
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
575
|
-
var ObjectPrototype = Object.prototype; // `Object.getPrototypeOf` method
|
|
576
|
-
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
|
|
577
|
-
|
|
578
|
-
var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
|
|
579
|
-
O = toObject(O);
|
|
580
|
-
if (has(O, IE_PROTO)) return O[IE_PROTO];
|
|
581
|
-
|
|
582
|
-
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
|
583
|
-
return O.constructor.prototype;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
return O instanceof Object ? ObjectPrototype : null;
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
590
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
591
|
-
// eslint-disable-next-line no-undef
|
|
592
|
-
return !String(Symbol());
|
|
593
|
-
});
|
|
594
|
-
|
|
595
|
-
var useSymbolAsUid = nativeSymbol // eslint-disable-next-line no-undef
|
|
596
|
-
&& !Symbol.sham // eslint-disable-next-line no-undef
|
|
597
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
598
|
-
|
|
599
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
600
|
-
var Symbol$1 = global_1.Symbol;
|
|
601
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
602
|
-
|
|
603
|
-
var wellKnownSymbol = function (name) {
|
|
604
|
-
if (!has(WellKnownSymbolsStore, name)) {
|
|
605
|
-
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
return WellKnownSymbolsStore[name];
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
612
|
-
var BUGGY_SAFARI_ITERATORS = false;
|
|
613
|
-
|
|
614
|
-
var returnThis = function () {
|
|
615
|
-
return this;
|
|
616
|
-
}; // `%IteratorPrototype%` object
|
|
617
|
-
// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
621
|
-
|
|
622
|
-
if ([].keys) {
|
|
623
|
-
arrayIterator = [].keys(); // Safari 8 has buggy iterators w/o `next`
|
|
624
|
-
|
|
625
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;else {
|
|
626
|
-
PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
|
|
627
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
if (IteratorPrototype == undefined) IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
|
632
|
-
|
|
633
|
-
if ( !has(IteratorPrototype, ITERATOR)) {
|
|
634
|
-
createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
var iteratorsCore = {
|
|
638
|
-
IteratorPrototype: IteratorPrototype,
|
|
639
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
// https://tc39.github.io/ecma262/#sec-object.keys
|
|
859
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
860
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
643
861
|
|
|
644
862
|
var objectKeys = Object.keys || function keys(O) {
|
|
645
863
|
return objectKeysInternal(O, enumBugKeys);
|
|
646
864
|
};
|
|
647
865
|
|
|
648
|
-
// https://tc39.
|
|
866
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
867
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
649
868
|
|
|
650
|
-
var
|
|
869
|
+
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
651
870
|
anObject(O);
|
|
871
|
+
var props = toIndexedObject(Properties);
|
|
652
872
|
var keys = objectKeys(Properties);
|
|
653
873
|
var length = keys.length;
|
|
654
874
|
var index = 0;
|
|
655
875
|
var key;
|
|
656
876
|
|
|
657
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++],
|
|
877
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
|
658
878
|
|
|
659
879
|
return O;
|
|
660
880
|
};
|
|
881
|
+
var objectDefineProperties = {
|
|
882
|
+
f: f$5
|
|
883
|
+
};
|
|
661
884
|
|
|
662
885
|
var html = getBuiltIn('document', 'documentElement');
|
|
663
886
|
|
|
887
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
888
|
+
|
|
664
889
|
var GT = '>';
|
|
665
890
|
var LT = '<';
|
|
666
891
|
var PROTOTYPE = 'prototype';
|
|
667
892
|
var SCRIPT = 'script';
|
|
668
|
-
var IE_PROTO
|
|
893
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
669
894
|
|
|
670
895
|
var EmptyConstructor = function () {
|
|
671
896
|
/* empty */
|
|
@@ -711,43 +936,109 @@
|
|
|
711
936
|
|
|
712
937
|
var NullProtoObject = function () {
|
|
713
938
|
try {
|
|
714
|
-
|
|
715
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
939
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
716
940
|
} catch (error) {
|
|
717
941
|
/* ignore */
|
|
718
942
|
}
|
|
719
943
|
|
|
720
|
-
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument)
|
|
944
|
+
NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
945
|
+
: NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
946
|
+
|
|
721
947
|
var length = enumBugKeys.length;
|
|
722
948
|
|
|
723
949
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
724
950
|
|
|
725
|
-
return NullProtoObject();
|
|
726
|
-
};
|
|
951
|
+
return NullProtoObject();
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
hiddenKeys[IE_PROTO] = true; // `Object.create` method
|
|
955
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
956
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
957
|
+
|
|
958
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
959
|
+
var result;
|
|
960
|
+
|
|
961
|
+
if (O !== null) {
|
|
962
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
963
|
+
result = new EmptyConstructor();
|
|
964
|
+
EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill
|
|
965
|
+
|
|
966
|
+
result[IE_PROTO] = O;
|
|
967
|
+
} else result = NullProtoObject();
|
|
968
|
+
|
|
969
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
var correctPrototypeGetter = !fails(function () {
|
|
973
|
+
function F() {
|
|
974
|
+
/* empty */
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
F.prototype.constructor = null; // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
978
|
+
|
|
979
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
980
|
+
});
|
|
981
|
+
|
|
982
|
+
var IE_PROTO$1 = sharedKey('IE_PROTO');
|
|
983
|
+
var Object$5 = global_1.Object;
|
|
984
|
+
var ObjectPrototype = Object$5.prototype; // `Object.getPrototypeOf` method
|
|
985
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
986
|
+
|
|
987
|
+
var objectGetPrototypeOf = correctPrototypeGetter ? Object$5.getPrototypeOf : function (O) {
|
|
988
|
+
var object = toObject(O);
|
|
989
|
+
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
990
|
+
var constructor = object.constructor;
|
|
991
|
+
|
|
992
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
993
|
+
return constructor.prototype;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
return object instanceof Object$5 ? ObjectPrototype : null;
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1000
|
+
var BUGGY_SAFARI_ITERATORS = false; // `%IteratorPrototype%` object
|
|
1001
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1002
|
+
|
|
1003
|
+
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1004
|
+
/* eslint-disable es-x/no-array-prototype-keys -- safe */
|
|
1005
|
+
|
|
1006
|
+
if ([].keys) {
|
|
1007
|
+
arrayIterator = [].keys(); // Safari 8 has buggy iterators w/o `next`
|
|
727
1008
|
|
|
728
|
-
|
|
729
|
-
|
|
1009
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;else {
|
|
1010
|
+
PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
|
|
1011
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
730
1014
|
|
|
731
|
-
var
|
|
732
|
-
var
|
|
1015
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
|
|
1016
|
+
var test = {}; // FF44- legacy iterators case
|
|
733
1017
|
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
1018
|
+
return IteratorPrototype[ITERATOR].call(test) !== test;
|
|
1019
|
+
});
|
|
1020
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; // `%IteratorPrototype%[@@iterator]()` method
|
|
1021
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
738
1022
|
|
|
739
|
-
|
|
740
|
-
|
|
1023
|
+
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
1024
|
+
redefine(IteratorPrototype, ITERATOR, function () {
|
|
1025
|
+
return this;
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
741
1028
|
|
|
742
|
-
|
|
1029
|
+
var iteratorsCore = {
|
|
1030
|
+
IteratorPrototype: IteratorPrototype,
|
|
1031
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
743
1032
|
};
|
|
744
1033
|
|
|
745
|
-
var defineProperty = objectDefineProperty.f;
|
|
746
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1034
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1035
|
+
var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
1036
|
+
|
|
1037
|
+
var setToStringTag = function (target, TAG, STATIC) {
|
|
1038
|
+
if (target && !STATIC) target = target.prototype;
|
|
747
1039
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
defineProperty(it, TO_STRING_TAG, {
|
|
1040
|
+
if (target && !hasOwnProperty_1(target, TO_STRING_TAG$2)) {
|
|
1041
|
+
defineProperty$1(target, TO_STRING_TAG$2, {
|
|
751
1042
|
configurable: true,
|
|
752
1043
|
value: TAG
|
|
753
1044
|
});
|
|
@@ -758,32 +1049,33 @@
|
|
|
758
1049
|
|
|
759
1050
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
760
1051
|
|
|
761
|
-
var returnThis
|
|
1052
|
+
var returnThis = function () {
|
|
762
1053
|
return this;
|
|
763
1054
|
};
|
|
764
1055
|
|
|
765
|
-
var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
|
|
1056
|
+
var createIteratorConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
766
1057
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
767
1058
|
IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, {
|
|
768
|
-
next: createPropertyDescriptor(
|
|
1059
|
+
next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)
|
|
769
1060
|
});
|
|
770
1061
|
setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
|
|
771
|
-
iterators[TO_STRING_TAG] = returnThis
|
|
1062
|
+
iterators[TO_STRING_TAG] = returnThis;
|
|
772
1063
|
return IteratorConstructor;
|
|
773
1064
|
};
|
|
774
1065
|
|
|
775
|
-
var
|
|
776
|
-
|
|
777
|
-
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
|
778
|
-
}
|
|
1066
|
+
var String$4 = global_1.String;
|
|
1067
|
+
var TypeError$8 = global_1.TypeError;
|
|
779
1068
|
|
|
780
|
-
|
|
1069
|
+
var aPossiblePrototype = function (argument) {
|
|
1070
|
+
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
1071
|
+
throw TypeError$8("Can't set " + String$4(argument) + ' as a prototype');
|
|
781
1072
|
};
|
|
782
1073
|
|
|
783
|
-
|
|
1074
|
+
/* eslint-disable no-proto -- safe */
|
|
1075
|
+
// `Object.setPrototypeOf` method
|
|
1076
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
784
1077
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
785
|
-
|
|
786
|
-
/* eslint-disable no-proto */
|
|
1078
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
787
1079
|
|
|
788
1080
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
789
1081
|
var CORRECT_SETTER = false;
|
|
@@ -791,8 +1083,9 @@
|
|
|
791
1083
|
var setter;
|
|
792
1084
|
|
|
793
1085
|
try {
|
|
794
|
-
|
|
795
|
-
setter.
|
|
1086
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
1087
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1088
|
+
setter(test, []);
|
|
796
1089
|
CORRECT_SETTER = test instanceof Array;
|
|
797
1090
|
} catch (error) {
|
|
798
1091
|
/* empty */
|
|
@@ -801,11 +1094,13 @@
|
|
|
801
1094
|
return function setPrototypeOf(O, proto) {
|
|
802
1095
|
anObject(O);
|
|
803
1096
|
aPossiblePrototype(proto);
|
|
804
|
-
if (CORRECT_SETTER) setter
|
|
1097
|
+
if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
|
|
805
1098
|
return O;
|
|
806
1099
|
};
|
|
807
1100
|
}() : undefined);
|
|
808
1101
|
|
|
1102
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
1103
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
809
1104
|
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
810
1105
|
var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
811
1106
|
var ITERATOR$1 = wellKnownSymbol('iterator');
|
|
@@ -813,7 +1108,7 @@
|
|
|
813
1108
|
var VALUES = 'values';
|
|
814
1109
|
var ENTRIES = 'entries';
|
|
815
1110
|
|
|
816
|
-
var returnThis$
|
|
1111
|
+
var returnThis$1 = function () {
|
|
817
1112
|
return this;
|
|
818
1113
|
};
|
|
819
1114
|
|
|
@@ -857,35 +1152,33 @@
|
|
|
857
1152
|
if (anyNativeIterator) {
|
|
858
1153
|
CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
859
1154
|
|
|
860
|
-
if (
|
|
1155
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
861
1156
|
if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
|
|
862
1157
|
if (objectSetPrototypeOf) {
|
|
863
1158
|
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
|
|
864
|
-
} else if (
|
|
865
|
-
|
|
1159
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1160
|
+
redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
|
|
866
1161
|
}
|
|
867
1162
|
} // Set @@toStringTag to native iterators
|
|
868
1163
|
|
|
869
1164
|
|
|
870
1165
|
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
871
1166
|
}
|
|
872
|
-
} // fix Array
|
|
1167
|
+
} // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
873
1168
|
|
|
874
1169
|
|
|
875
|
-
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
};
|
|
881
|
-
} // define iterator
|
|
882
|
-
|
|
1170
|
+
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1171
|
+
if ( CONFIGURABLE_FUNCTION_NAME) {
|
|
1172
|
+
createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
|
|
1173
|
+
} else {
|
|
1174
|
+
INCORRECT_VALUES_NAME = true;
|
|
883
1175
|
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
1176
|
+
defaultIterator = function values() {
|
|
1177
|
+
return functionCall(nativeIterator, this);
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
} // export additional methods
|
|
887
1181
|
|
|
888
|
-
iterators[NAME] = defaultIterator; // export additional methods
|
|
889
1182
|
|
|
890
1183
|
if (DEFAULT) {
|
|
891
1184
|
methods = {
|
|
@@ -902,24 +1195,32 @@
|
|
|
902
1195
|
proto: true,
|
|
903
1196
|
forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME
|
|
904
1197
|
}, methods);
|
|
1198
|
+
} // define iterator
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1202
|
+
redefine(IterablePrototype, ITERATOR$1, defaultIterator, {
|
|
1203
|
+
name: DEFAULT
|
|
1204
|
+
});
|
|
905
1205
|
}
|
|
906
1206
|
|
|
1207
|
+
iterators[NAME] = defaultIterator;
|
|
907
1208
|
return methods;
|
|
908
1209
|
};
|
|
909
1210
|
|
|
910
|
-
var charAt = stringMultibyte.charAt;
|
|
1211
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
911
1212
|
var STRING_ITERATOR = 'String Iterator';
|
|
912
1213
|
var setInternalState = internalState.set;
|
|
913
1214
|
var getInternalState = internalState.getterFor(STRING_ITERATOR); // `String.prototype[@@iterator]` method
|
|
914
|
-
// https://tc39.
|
|
1215
|
+
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
|
915
1216
|
|
|
916
1217
|
defineIterator(String, 'String', function (iterated) {
|
|
917
1218
|
setInternalState(this, {
|
|
918
1219
|
type: STRING_ITERATOR,
|
|
919
|
-
string:
|
|
1220
|
+
string: toString_1(iterated),
|
|
920
1221
|
index: 0
|
|
921
1222
|
}); // `%StringIteratorPrototype%.next` method
|
|
922
|
-
// https://tc39.
|
|
1223
|
+
// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
|
|
923
1224
|
}, function next() {
|
|
924
1225
|
var state = getInternalState(this);
|
|
925
1226
|
var string = state.string;
|
|
@@ -929,7 +1230,7 @@
|
|
|
929
1230
|
value: undefined,
|
|
930
1231
|
done: true
|
|
931
1232
|
};
|
|
932
|
-
point = charAt(string, index);
|
|
1233
|
+
point = charAt$1(string, index);
|
|
933
1234
|
state.index += point.length;
|
|
934
1235
|
return {
|
|
935
1236
|
value: point,
|
|
@@ -937,61 +1238,46 @@
|
|
|
937
1238
|
};
|
|
938
1239
|
});
|
|
939
1240
|
|
|
940
|
-
var
|
|
941
|
-
if (typeof it != 'function') {
|
|
942
|
-
throw TypeError(String(it) + ' is not a function');
|
|
943
|
-
}
|
|
1241
|
+
var bind$1 = functionUncurryThis(functionUncurryThis.bind); // optional / simple context binding
|
|
944
1242
|
|
|
945
|
-
|
|
1243
|
+
var functionBindContext = function (fn, that) {
|
|
1244
|
+
aCallable(fn);
|
|
1245
|
+
return that === undefined ? fn : functionBindNative ? bind$1(fn, that) : function
|
|
1246
|
+
/* ...args */
|
|
1247
|
+
() {
|
|
1248
|
+
return fn.apply(that, arguments);
|
|
1249
|
+
};
|
|
946
1250
|
};
|
|
947
1251
|
|
|
948
|
-
var
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
switch (length) {
|
|
953
|
-
case 0:
|
|
954
|
-
return function () {
|
|
955
|
-
return fn.call(that);
|
|
956
|
-
};
|
|
1252
|
+
var iteratorClose = function (iterator, kind, value) {
|
|
1253
|
+
var innerResult, innerError;
|
|
1254
|
+
anObject(iterator);
|
|
957
1255
|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
return fn.call(that, a);
|
|
961
|
-
};
|
|
1256
|
+
try {
|
|
1257
|
+
innerResult = getMethod(iterator, 'return');
|
|
962
1258
|
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1259
|
+
if (!innerResult) {
|
|
1260
|
+
if (kind === 'throw') throw value;
|
|
1261
|
+
return value;
|
|
1262
|
+
}
|
|
967
1263
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1264
|
+
innerResult = functionCall(innerResult, iterator);
|
|
1265
|
+
} catch (error) {
|
|
1266
|
+
innerError = true;
|
|
1267
|
+
innerResult = error;
|
|
972
1268
|
}
|
|
973
1269
|
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
};
|
|
979
|
-
};
|
|
980
|
-
|
|
981
|
-
var iteratorClose = function (iterator) {
|
|
982
|
-
var returnMethod = iterator['return'];
|
|
983
|
-
|
|
984
|
-
if (returnMethod !== undefined) {
|
|
985
|
-
return anObject(returnMethod.call(iterator)).value;
|
|
986
|
-
}
|
|
1270
|
+
if (kind === 'throw') throw value;
|
|
1271
|
+
if (innerError) throw innerResult;
|
|
1272
|
+
anObject(innerResult);
|
|
1273
|
+
return value;
|
|
987
1274
|
};
|
|
988
1275
|
|
|
989
1276
|
var callWithSafeIterationClosing = function (iterator, fn, value, ENTRIES) {
|
|
990
1277
|
try {
|
|
991
|
-
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
1278
|
+
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
992
1279
|
} catch (error) {
|
|
993
|
-
iteratorClose(iterator);
|
|
994
|
-
throw error;
|
|
1280
|
+
iteratorClose(iterator, 'throw', error);
|
|
995
1281
|
}
|
|
996
1282
|
};
|
|
997
1283
|
|
|
@@ -1002,73 +1288,104 @@
|
|
|
1002
1288
|
return it !== undefined && (iterators.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
1003
1289
|
};
|
|
1004
1290
|
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1007
|
-
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));else object[propertyKey] = value;
|
|
1291
|
+
var noop = function () {
|
|
1292
|
+
/* empty */
|
|
1008
1293
|
};
|
|
1009
1294
|
|
|
1010
|
-
var
|
|
1011
|
-
var
|
|
1012
|
-
|
|
1013
|
-
var
|
|
1295
|
+
var empty = [];
|
|
1296
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
|
1297
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1298
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
|
1299
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1014
1300
|
|
|
1015
|
-
var
|
|
1301
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
1302
|
+
if (!isCallable(argument)) return false;
|
|
1016
1303
|
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1304
|
+
try {
|
|
1305
|
+
construct(noop, empty, argument);
|
|
1306
|
+
return true;
|
|
1307
|
+
} catch (error) {
|
|
1308
|
+
return false;
|
|
1309
|
+
}
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
|
1313
|
+
if (!isCallable(argument)) return false;
|
|
1314
|
+
|
|
1315
|
+
switch (classof(argument)) {
|
|
1316
|
+
case 'AsyncFunction':
|
|
1317
|
+
case 'GeneratorFunction':
|
|
1318
|
+
case 'AsyncGeneratorFunction':
|
|
1319
|
+
return false;
|
|
1320
|
+
}
|
|
1020
1321
|
|
|
1021
|
-
var tryGet = function (it, key) {
|
|
1022
1322
|
try {
|
|
1023
|
-
|
|
1323
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1324
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1325
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
|
1326
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
1024
1327
|
} catch (error) {
|
|
1025
|
-
|
|
1328
|
+
return true;
|
|
1026
1329
|
}
|
|
1027
|
-
};
|
|
1330
|
+
};
|
|
1028
1331
|
|
|
1332
|
+
isConstructorLegacy.sham = true; // `IsConstructor` abstract operation
|
|
1333
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1029
1334
|
|
|
1030
|
-
var
|
|
1031
|
-
var
|
|
1032
|
-
return
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1335
|
+
var isConstructor = !construct || fails(function () {
|
|
1336
|
+
var called;
|
|
1337
|
+
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () {
|
|
1338
|
+
called = true;
|
|
1339
|
+
}) || called;
|
|
1340
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
1341
|
+
|
|
1342
|
+
var createProperty = function (object, key, value) {
|
|
1343
|
+
var propertyKey = toPropertyKey(key);
|
|
1344
|
+
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));else object[propertyKey] = value;
|
|
1036
1345
|
};
|
|
1037
1346
|
|
|
1038
1347
|
var ITERATOR$3 = wellKnownSymbol('iterator');
|
|
1039
1348
|
|
|
1040
1349
|
var getIteratorMethod = function (it) {
|
|
1041
|
-
if (it != undefined) return it
|
|
1350
|
+
if (it != undefined) return getMethod(it, ITERATOR$3) || getMethod(it, '@@iterator') || iterators[classof(it)];
|
|
1042
1351
|
};
|
|
1043
1352
|
|
|
1044
|
-
|
|
1353
|
+
var TypeError$9 = global_1.TypeError;
|
|
1354
|
+
|
|
1355
|
+
var getIterator = function (argument, usingIterator) {
|
|
1356
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
1357
|
+
if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
|
|
1358
|
+
throw TypeError$9(tryToString(argument) + ' is not iterable');
|
|
1359
|
+
};
|
|
1045
1360
|
|
|
1361
|
+
var Array$1 = global_1.Array; // `Array.from` method implementation
|
|
1362
|
+
// https://tc39.es/ecma262/#sec-array.from
|
|
1046
1363
|
|
|
1047
1364
|
var arrayFrom = function from(arrayLike
|
|
1048
1365
|
/* , mapfn = undefined, thisArg = undefined */
|
|
1049
1366
|
) {
|
|
1050
1367
|
var O = toObject(arrayLike);
|
|
1051
|
-
var
|
|
1368
|
+
var IS_CONSTRUCTOR = isConstructor(this);
|
|
1052
1369
|
var argumentsLength = arguments.length;
|
|
1053
1370
|
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
1054
1371
|
var mapping = mapfn !== undefined;
|
|
1372
|
+
if (mapping) mapfn = functionBindContext(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
|
|
1055
1373
|
var iteratorMethod = getIteratorMethod(O);
|
|
1056
1374
|
var index = 0;
|
|
1057
|
-
var length, result, step, iterator, next, value;
|
|
1058
|
-
if (mapping) mapfn = functionBindContext(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2); // if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
1375
|
+
var length, result, step, iterator, next, value; // if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
1059
1376
|
|
|
1060
|
-
if (iteratorMethod
|
|
1061
|
-
iterator =
|
|
1377
|
+
if (iteratorMethod && !(this == Array$1 && isArrayIteratorMethod(iteratorMethod))) {
|
|
1378
|
+
iterator = getIterator(O, iteratorMethod);
|
|
1062
1379
|
next = iterator.next;
|
|
1063
|
-
result = new
|
|
1380
|
+
result = IS_CONSTRUCTOR ? new this() : [];
|
|
1064
1381
|
|
|
1065
|
-
for (; !(step = next
|
|
1382
|
+
for (; !(step = functionCall(next, iterator)).done; index++) {
|
|
1066
1383
|
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
|
1067
1384
|
createProperty(result, index, value);
|
|
1068
1385
|
}
|
|
1069
1386
|
} else {
|
|
1070
|
-
length =
|
|
1071
|
-
result = new
|
|
1387
|
+
length = lengthOfArrayLike(O);
|
|
1388
|
+
result = IS_CONSTRUCTOR ? new this(length) : Array$1(length);
|
|
1072
1389
|
|
|
1073
1390
|
for (; length > index; index++) {
|
|
1074
1391
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
@@ -1098,7 +1415,7 @@
|
|
|
1098
1415
|
|
|
1099
1416
|
iteratorWithReturn[ITERATOR$4] = function () {
|
|
1100
1417
|
return this;
|
|
1101
|
-
}; // eslint-disable-next-line no-throw-literal
|
|
1418
|
+
}; // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
|
|
1102
1419
|
|
|
1103
1420
|
|
|
1104
1421
|
Array.from(iteratorWithReturn, function () {
|
|
@@ -1134,9 +1451,10 @@
|
|
|
1134
1451
|
};
|
|
1135
1452
|
|
|
1136
1453
|
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
|
1454
|
+
// eslint-disable-next-line es-x/no-array-from -- required for testing
|
|
1137
1455
|
Array.from(iterable);
|
|
1138
1456
|
}); // `Array.from` method
|
|
1139
|
-
// https://tc39.
|
|
1457
|
+
// https://tc39.es/ecma262/#sec-array.from
|
|
1140
1458
|
|
|
1141
1459
|
_export({
|
|
1142
1460
|
target: 'Array',
|
|
@@ -2090,7 +2408,7 @@
|
|
|
2090
2408
|
c = b ? Symbol.for("react.element") : 60103,
|
|
2091
2409
|
d = b ? Symbol.for("react.portal") : 60106,
|
|
2092
2410
|
e = b ? Symbol.for("react.fragment") : 60107,
|
|
2093
|
-
f$
|
|
2411
|
+
f$6 = b ? Symbol.for("react.strict_mode") : 60108,
|
|
2094
2412
|
g = b ? Symbol.for("react.profiler") : 60114,
|
|
2095
2413
|
h = b ? Symbol.for("react.provider") : 60109,
|
|
2096
2414
|
k = b ? Symbol.for("react.context") : 60110,
|
|
@@ -2117,7 +2435,7 @@
|
|
|
2117
2435
|
case m:
|
|
2118
2436
|
case e:
|
|
2119
2437
|
case g:
|
|
2120
|
-
case f$
|
|
2438
|
+
case f$6:
|
|
2121
2439
|
case p:
|
|
2122
2440
|
return a;
|
|
2123
2441
|
|
|
@@ -2157,7 +2475,7 @@
|
|
|
2157
2475
|
var Memo = r;
|
|
2158
2476
|
var Portal = d;
|
|
2159
2477
|
var Profiler = g;
|
|
2160
|
-
var StrictMode = f$
|
|
2478
|
+
var StrictMode = f$6;
|
|
2161
2479
|
var Suspense = p;
|
|
2162
2480
|
|
|
2163
2481
|
var isAsyncMode = function (a) {
|
|
@@ -2203,222 +2521,72 @@
|
|
|
2203
2521
|
};
|
|
2204
2522
|
|
|
2205
2523
|
var isStrictMode = function (a) {
|
|
2206
|
-
return z(a) === f$
|
|
2207
|
-
};
|
|
2208
|
-
|
|
2209
|
-
var isSuspense = function (a) {
|
|
2210
|
-
return z(a) === p;
|
|
2211
|
-
};
|
|
2212
|
-
|
|
2213
|
-
var isValidElementType = function (a) {
|
|
2214
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f$5 || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
2215
|
-
};
|
|
2216
|
-
|
|
2217
|
-
var typeOf = z;
|
|
2218
|
-
var reactIs_production_min = {
|
|
2219
|
-
AsyncMode: AsyncMode,
|
|
2220
|
-
ConcurrentMode: ConcurrentMode,
|
|
2221
|
-
ContextConsumer: ContextConsumer,
|
|
2222
|
-
ContextProvider: ContextProvider,
|
|
2223
|
-
Element: Element,
|
|
2224
|
-
ForwardRef: ForwardRef,
|
|
2225
|
-
Fragment: Fragment,
|
|
2226
|
-
Lazy: Lazy,
|
|
2227
|
-
Memo: Memo,
|
|
2228
|
-
Portal: Portal,
|
|
2229
|
-
Profiler: Profiler,
|
|
2230
|
-
StrictMode: StrictMode,
|
|
2231
|
-
Suspense: Suspense,
|
|
2232
|
-
isAsyncMode: isAsyncMode,
|
|
2233
|
-
isConcurrentMode: isConcurrentMode,
|
|
2234
|
-
isContextConsumer: isContextConsumer,
|
|
2235
|
-
isContextProvider: isContextProvider,
|
|
2236
|
-
isElement: isElement,
|
|
2237
|
-
isForwardRef: isForwardRef,
|
|
2238
|
-
isFragment: isFragment,
|
|
2239
|
-
isLazy: isLazy,
|
|
2240
|
-
isMemo: isMemo,
|
|
2241
|
-
isPortal: isPortal,
|
|
2242
|
-
isProfiler: isProfiler,
|
|
2243
|
-
isStrictMode: isStrictMode,
|
|
2244
|
-
isSuspense: isSuspense,
|
|
2245
|
-
isValidElementType: isValidElementType,
|
|
2246
|
-
typeOf: typeOf
|
|
2247
|
-
};
|
|
2248
|
-
|
|
2249
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
2250
|
-
});
|
|
2251
|
-
|
|
2252
|
-
var reactIs = createCommonjsModule(function (module) {
|
|
2253
|
-
|
|
2254
|
-
{
|
|
2255
|
-
module.exports = reactIs_production_min;
|
|
2256
|
-
}
|
|
2257
|
-
});
|
|
2258
|
-
|
|
2259
|
-
/**
|
|
2260
|
-
* Cannot do Math.log(x) / Math.log(10) bc if IEEE floating point issue
|
|
2261
|
-
* @param x number
|
|
2262
|
-
*/
|
|
2263
|
-
function invariant(condition, message, Err) {
|
|
2264
|
-
if (Err === void 0) {
|
|
2265
|
-
Err = Error;
|
|
2266
|
-
}
|
|
2267
|
-
|
|
2268
|
-
if (!condition) {
|
|
2269
|
-
throw new Err(message);
|
|
2270
|
-
}
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
/*! *****************************************************************************
|
|
2274
|
-
Copyright (c) Microsoft Corporation.
|
|
2275
|
-
|
|
2276
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
2277
|
-
purpose with or without fee is hereby granted.
|
|
2278
|
-
|
|
2279
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2280
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2281
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2282
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2283
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2284
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2285
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2286
|
-
***************************************************************************** */
|
|
2287
|
-
|
|
2288
|
-
/* global Reflect, Promise */
|
|
2289
|
-
var extendStatics$1 = function (d, b) {
|
|
2290
|
-
extendStatics$1 = Object.setPrototypeOf || {
|
|
2291
|
-
__proto__: []
|
|
2292
|
-
} instanceof Array && function (d, b) {
|
|
2293
|
-
d.__proto__ = b;
|
|
2294
|
-
} || function (d, b) {
|
|
2295
|
-
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
2296
|
-
};
|
|
2297
|
-
|
|
2298
|
-
return extendStatics$1(d, b);
|
|
2299
|
-
};
|
|
2300
|
-
|
|
2301
|
-
function __extends$1(d, b) {
|
|
2302
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2303
|
-
extendStatics$1(d, b);
|
|
2304
|
-
|
|
2305
|
-
function __() {
|
|
2306
|
-
this.constructor = d;
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2310
|
-
}
|
|
2311
|
-
var __assign$1 = function () {
|
|
2312
|
-
__assign$1 = Object.assign || function __assign(t) {
|
|
2313
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2314
|
-
s = arguments[i];
|
|
2315
|
-
|
|
2316
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
return t;
|
|
2320
|
-
};
|
|
2321
|
-
|
|
2322
|
-
return __assign$1.apply(this, arguments);
|
|
2323
|
-
};
|
|
2324
|
-
function __spreadArray$1(to, from, pack) {
|
|
2325
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2326
|
-
if (ar || !(i in from)) {
|
|
2327
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2328
|
-
ar[i] = from[i];
|
|
2329
|
-
}
|
|
2330
|
-
}
|
|
2331
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
/*! *****************************************************************************
|
|
2335
|
-
Copyright (c) Microsoft Corporation.
|
|
2336
|
-
|
|
2337
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
2338
|
-
purpose with or without fee is hereby granted.
|
|
2339
|
-
|
|
2340
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2341
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2342
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2343
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2344
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2345
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2346
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2347
|
-
***************************************************************************** */
|
|
2348
|
-
|
|
2349
|
-
/* global Reflect, Promise */
|
|
2350
|
-
var extendStatics$2 = function (d, b) {
|
|
2351
|
-
extendStatics$2 = Object.setPrototypeOf || {
|
|
2352
|
-
__proto__: []
|
|
2353
|
-
} instanceof Array && function (d, b) {
|
|
2354
|
-
d.__proto__ = b;
|
|
2355
|
-
} || function (d, b) {
|
|
2356
|
-
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
2357
|
-
};
|
|
2358
|
-
|
|
2359
|
-
return extendStatics$2(d, b);
|
|
2524
|
+
return z(a) === f$6;
|
|
2360
2525
|
};
|
|
2361
2526
|
|
|
2362
|
-
function
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
function __() {
|
|
2367
|
-
this.constructor = d;
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2371
|
-
}
|
|
2372
|
-
var __assign$2 = function () {
|
|
2373
|
-
__assign$2 = Object.assign || function __assign(t) {
|
|
2374
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2375
|
-
s = arguments[i];
|
|
2376
|
-
|
|
2377
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
2378
|
-
}
|
|
2527
|
+
var isSuspense = function (a) {
|
|
2528
|
+
return z(a) === p;
|
|
2529
|
+
};
|
|
2379
2530
|
|
|
2380
|
-
|
|
2381
|
-
|
|
2531
|
+
var isValidElementType = function (a) {
|
|
2532
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f$6 || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
2533
|
+
};
|
|
2382
2534
|
|
|
2383
|
-
|
|
2535
|
+
var typeOf = z;
|
|
2536
|
+
var reactIs_production_min = {
|
|
2537
|
+
AsyncMode: AsyncMode,
|
|
2538
|
+
ConcurrentMode: ConcurrentMode,
|
|
2539
|
+
ContextConsumer: ContextConsumer,
|
|
2540
|
+
ContextProvider: ContextProvider,
|
|
2541
|
+
Element: Element,
|
|
2542
|
+
ForwardRef: ForwardRef,
|
|
2543
|
+
Fragment: Fragment,
|
|
2544
|
+
Lazy: Lazy,
|
|
2545
|
+
Memo: Memo,
|
|
2546
|
+
Portal: Portal,
|
|
2547
|
+
Profiler: Profiler,
|
|
2548
|
+
StrictMode: StrictMode,
|
|
2549
|
+
Suspense: Suspense,
|
|
2550
|
+
isAsyncMode: isAsyncMode,
|
|
2551
|
+
isConcurrentMode: isConcurrentMode,
|
|
2552
|
+
isContextConsumer: isContextConsumer,
|
|
2553
|
+
isContextProvider: isContextProvider,
|
|
2554
|
+
isElement: isElement,
|
|
2555
|
+
isForwardRef: isForwardRef,
|
|
2556
|
+
isFragment: isFragment,
|
|
2557
|
+
isLazy: isLazy,
|
|
2558
|
+
isMemo: isMemo,
|
|
2559
|
+
isPortal: isPortal,
|
|
2560
|
+
isProfiler: isProfiler,
|
|
2561
|
+
isStrictMode: isStrictMode,
|
|
2562
|
+
isSuspense: isSuspense,
|
|
2563
|
+
isValidElementType: isValidElementType,
|
|
2564
|
+
typeOf: typeOf
|
|
2384
2565
|
};
|
|
2385
|
-
function __spreadArray$2(to, from, pack) {
|
|
2386
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2387
|
-
if (ar || !(i in from)) {
|
|
2388
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2389
|
-
ar[i] = from[i];
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2392
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2393
|
-
}
|
|
2394
2566
|
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
2399
|
-
purpose with or without fee is hereby granted.
|
|
2400
|
-
|
|
2401
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2402
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2403
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2404
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2405
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2406
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2407
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2408
|
-
***************************************************************************** */
|
|
2409
|
-
var __assign$3 = function () {
|
|
2410
|
-
__assign$3 = Object.assign || function __assign(t) {
|
|
2411
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2412
|
-
s = arguments[i];
|
|
2567
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
2568
|
+
});
|
|
2413
2569
|
|
|
2414
|
-
|
|
2415
|
-
}
|
|
2570
|
+
var reactIs = createCommonjsModule(function (module) {
|
|
2416
2571
|
|
|
2417
|
-
|
|
2418
|
-
|
|
2572
|
+
{
|
|
2573
|
+
module.exports = reactIs_production_min;
|
|
2574
|
+
}
|
|
2575
|
+
});
|
|
2419
2576
|
|
|
2420
|
-
|
|
2421
|
-
|
|
2577
|
+
/**
|
|
2578
|
+
* Cannot do Math.log(x) / Math.log(10) bc if IEEE floating point issue
|
|
2579
|
+
* @param x number
|
|
2580
|
+
*/
|
|
2581
|
+
function invariant(condition, message, Err) {
|
|
2582
|
+
if (Err === void 0) {
|
|
2583
|
+
Err = Error;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
if (!condition) {
|
|
2587
|
+
throw new Err(message);
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2422
2590
|
|
|
2423
2591
|
var ErrorKind;
|
|
2424
2592
|
|
|
@@ -2767,34 +2935,6 @@
|
|
|
2767
2935
|
return result;
|
|
2768
2936
|
}
|
|
2769
2937
|
|
|
2770
|
-
/*! *****************************************************************************
|
|
2771
|
-
Copyright (c) Microsoft Corporation.
|
|
2772
|
-
|
|
2773
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
2774
|
-
purpose with or without fee is hereby granted.
|
|
2775
|
-
|
|
2776
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2777
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2778
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2779
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2780
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2781
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2782
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2783
|
-
***************************************************************************** */
|
|
2784
|
-
var __assign$4 = function () {
|
|
2785
|
-
__assign$4 = Object.assign || function __assign(t) {
|
|
2786
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2787
|
-
s = arguments[i];
|
|
2788
|
-
|
|
2789
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
return t;
|
|
2793
|
-
};
|
|
2794
|
-
|
|
2795
|
-
return __assign$4.apply(this, arguments);
|
|
2796
|
-
};
|
|
2797
|
-
|
|
2798
2938
|
// @generated from regex-gen.ts
|
|
2799
2939
|
var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2800
2940
|
|
|
@@ -2862,15 +3002,15 @@
|
|
|
2862
3002
|
result.maximumSignificantDigits = g1.length;
|
|
2863
3003
|
} // @@@+ case
|
|
2864
3004
|
else if (g2 === '+') {
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
3005
|
+
result.minimumSignificantDigits = g1.length;
|
|
3006
|
+
} // .### case
|
|
3007
|
+
else if (g1[0] === '#') {
|
|
3008
|
+
result.maximumSignificantDigits = g1.length;
|
|
3009
|
+
} // .@@## or .@@@ case
|
|
3010
|
+
else {
|
|
3011
|
+
result.minimumSignificantDigits = g1.length;
|
|
3012
|
+
result.maximumSignificantDigits = g1.length + (typeof g2 === 'string' ? g2.length : 0);
|
|
3013
|
+
}
|
|
2874
3014
|
|
|
2875
3015
|
return '';
|
|
2876
3016
|
});
|
|
@@ -3027,18 +3167,18 @@
|
|
|
3027
3167
|
continue;
|
|
3028
3168
|
|
|
3029
3169
|
case 'scientific':
|
|
3030
|
-
result = __assign
|
|
3170
|
+
result = __assign(__assign(__assign({}, result), {
|
|
3031
3171
|
notation: 'scientific'
|
|
3032
3172
|
}), token.options.reduce(function (all, opt) {
|
|
3033
|
-
return __assign
|
|
3173
|
+
return __assign(__assign({}, all), parseNotationOptions(opt));
|
|
3034
3174
|
}, {}));
|
|
3035
3175
|
continue;
|
|
3036
3176
|
|
|
3037
3177
|
case 'engineering':
|
|
3038
|
-
result = __assign
|
|
3178
|
+
result = __assign(__assign(__assign({}, result), {
|
|
3039
3179
|
notation: 'engineering'
|
|
3040
3180
|
}), token.options.reduce(function (all, opt) {
|
|
3041
|
-
return __assign
|
|
3181
|
+
return __assign(__assign({}, all), parseNotationOptions(opt));
|
|
3042
3182
|
}, {}));
|
|
3043
3183
|
continue;
|
|
3044
3184
|
|
|
@@ -3110,26 +3250,26 @@
|
|
|
3110
3250
|
result.minimumFractionDigits = g1.length;
|
|
3111
3251
|
} // .### case
|
|
3112
3252
|
else if (g3 && g3[0] === '#') {
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3253
|
+
result.maximumFractionDigits = g3.length;
|
|
3254
|
+
} // .00## case
|
|
3255
|
+
else if (g4 && g5) {
|
|
3256
|
+
result.minimumFractionDigits = g4.length;
|
|
3257
|
+
result.maximumFractionDigits = g4.length + g5.length;
|
|
3258
|
+
} else {
|
|
3259
|
+
result.minimumFractionDigits = g1.length;
|
|
3260
|
+
result.maximumFractionDigits = g1.length;
|
|
3261
|
+
}
|
|
3122
3262
|
|
|
3123
3263
|
return '';
|
|
3124
3264
|
});
|
|
3125
3265
|
var opt = token.options[0]; // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
3126
3266
|
|
|
3127
3267
|
if (opt === 'w') {
|
|
3128
|
-
result = __assign
|
|
3268
|
+
result = __assign(__assign({}, result), {
|
|
3129
3269
|
trailingZeroDisplay: 'stripIfInteger'
|
|
3130
3270
|
});
|
|
3131
3271
|
} else if (opt) {
|
|
3132
|
-
result = __assign
|
|
3272
|
+
result = __assign(__assign({}, result), parseSignificantPrecision(opt));
|
|
3133
3273
|
}
|
|
3134
3274
|
|
|
3135
3275
|
continue;
|
|
@@ -3137,20 +3277,20 @@
|
|
|
3137
3277
|
|
|
3138
3278
|
|
|
3139
3279
|
if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {
|
|
3140
|
-
result = __assign
|
|
3280
|
+
result = __assign(__assign({}, result), parseSignificantPrecision(token.stem));
|
|
3141
3281
|
continue;
|
|
3142
3282
|
}
|
|
3143
3283
|
|
|
3144
3284
|
var signOpts = parseSign(token.stem);
|
|
3145
3285
|
|
|
3146
3286
|
if (signOpts) {
|
|
3147
|
-
result = __assign
|
|
3287
|
+
result = __assign(__assign({}, result), signOpts);
|
|
3148
3288
|
}
|
|
3149
3289
|
|
|
3150
3290
|
var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token.stem);
|
|
3151
3291
|
|
|
3152
3292
|
if (conciseScientificAndEngineeringOpts) {
|
|
3153
|
-
result = __assign
|
|
3293
|
+
result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts);
|
|
3154
3294
|
}
|
|
3155
3295
|
}
|
|
3156
3296
|
|
|
@@ -3158,8 +3298,8 @@
|
|
|
3158
3298
|
}
|
|
3159
3299
|
|
|
3160
3300
|
var _a;
|
|
3161
|
-
var SPACE_SEPARATOR_START_REGEX = new RegExp("^"
|
|
3162
|
-
var SPACE_SEPARATOR_END_REGEX = new RegExp(SPACE_SEPARATOR_REGEX.source
|
|
3301
|
+
var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
|
|
3302
|
+
var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
|
|
3163
3303
|
|
|
3164
3304
|
function createLocation(start, end) {
|
|
3165
3305
|
return {
|
|
@@ -3343,14 +3483,14 @@
|
|
|
3343
3483
|
if (char === 123
|
|
3344
3484
|
/* `{` */
|
|
3345
3485
|
) {
|
|
3346
|
-
|
|
3486
|
+
var result = this.parseArgument(nestingLevel, expectingCloseTag);
|
|
3347
3487
|
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3488
|
+
if (result.err) {
|
|
3489
|
+
return result;
|
|
3490
|
+
}
|
|
3351
3491
|
|
|
3352
|
-
|
|
3353
|
-
|
|
3492
|
+
elements.push(result.val);
|
|
3493
|
+
} else if (char === 125
|
|
3354
3494
|
/* `}` */
|
|
3355
3495
|
&& nestingLevel > 0) {
|
|
3356
3496
|
break;
|
|
@@ -3367,12 +3507,12 @@
|
|
|
3367
3507
|
/* `<` */
|
|
3368
3508
|
&& !this.ignoreTag && this.peek() === 47 // char code for '/'
|
|
3369
3509
|
) {
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3510
|
+
if (expectingCloseTag) {
|
|
3511
|
+
break;
|
|
3512
|
+
} else {
|
|
3513
|
+
return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
|
|
3514
|
+
}
|
|
3515
|
+
} else if (char === 60
|
|
3376
3516
|
/* `<` */
|
|
3377
3517
|
&& !this.ignoreTag && _isAlpha(this.peek() || 0)) {
|
|
3378
3518
|
var result = this.parseTag(nestingLevel, parentArgType);
|
|
@@ -3430,7 +3570,7 @@
|
|
|
3430
3570
|
return {
|
|
3431
3571
|
val: {
|
|
3432
3572
|
type: TYPE.literal,
|
|
3433
|
-
value: "<"
|
|
3573
|
+
value: "<".concat(tagName, "/>"),
|
|
3434
3574
|
location: createLocation(startPosition, this.clonePosition())
|
|
3435
3575
|
},
|
|
3436
3576
|
err: null
|
|
@@ -3559,8 +3699,8 @@
|
|
|
3559
3699
|
if (this.isEOF() || this.char() !== 39
|
|
3560
3700
|
/* `'` */
|
|
3561
3701
|
) {
|
|
3562
|
-
|
|
3563
|
-
|
|
3702
|
+
return null;
|
|
3703
|
+
} // Parse escaped char following the apostrophe, or early return if there is no escaped char.
|
|
3564
3704
|
// Check if is valid escaped character
|
|
3565
3705
|
|
|
3566
3706
|
|
|
@@ -3604,18 +3744,18 @@
|
|
|
3604
3744
|
if (ch === 39
|
|
3605
3745
|
/* `'` */
|
|
3606
3746
|
) {
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3747
|
+
if (this.peek() === 39
|
|
3748
|
+
/* `'` */
|
|
3749
|
+
) {
|
|
3750
|
+
codePoints.push(39); // Bump one more time because we need to skip 2 characters.
|
|
3611
3751
|
|
|
3612
|
-
|
|
3613
|
-
} else {
|
|
3614
|
-
// Optional closing apostrophe.
|
|
3615
|
-
this.bump();
|
|
3616
|
-
break;
|
|
3617
|
-
}
|
|
3752
|
+
this.bump();
|
|
3618
3753
|
} else {
|
|
3754
|
+
// Optional closing apostrophe.
|
|
3755
|
+
this.bump();
|
|
3756
|
+
break;
|
|
3757
|
+
}
|
|
3758
|
+
} else {
|
|
3619
3759
|
codePoints.push(ch);
|
|
3620
3760
|
}
|
|
3621
3761
|
|
|
@@ -3661,9 +3801,9 @@
|
|
|
3661
3801
|
if (this.char() === 125
|
|
3662
3802
|
/* `}` */
|
|
3663
3803
|
) {
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3804
|
+
this.bump();
|
|
3805
|
+
return this.error(ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
|
|
3806
|
+
} // argument name
|
|
3667
3807
|
|
|
3668
3808
|
|
|
3669
3809
|
var value = this.parseIdentifierIfPossible().value;
|
|
@@ -3859,7 +3999,7 @@
|
|
|
3859
3999
|
this.bumpSpace();
|
|
3860
4000
|
|
|
3861
4001
|
if (!this.bumpIf(',')) {
|
|
3862
|
-
return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, __assign
|
|
4002
|
+
return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, __assign({}, typeEndPosition_1)));
|
|
3863
4003
|
}
|
|
3864
4004
|
|
|
3865
4005
|
this.bumpSpace(); // Parse offset:
|
|
@@ -3942,8 +4082,8 @@
|
|
|
3942
4082
|
if (this.isEOF() || this.char() !== 125
|
|
3943
4083
|
/* `}` */
|
|
3944
4084
|
) {
|
|
3945
|
-
|
|
3946
|
-
|
|
4085
|
+
return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
|
|
4086
|
+
}
|
|
3947
4087
|
|
|
3948
4088
|
this.bump(); // `}`
|
|
3949
4089
|
|
|
@@ -4155,10 +4295,10 @@
|
|
|
4155
4295
|
&& ch <= 57
|
|
4156
4296
|
/* `9` */
|
|
4157
4297
|
) {
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4298
|
+
hasDigits = true;
|
|
4299
|
+
decimal = decimal * 10 + (ch - 48);
|
|
4300
|
+
this.bump();
|
|
4301
|
+
} else {
|
|
4162
4302
|
break;
|
|
4163
4303
|
}
|
|
4164
4304
|
}
|
|
@@ -4213,7 +4353,7 @@
|
|
|
4213
4353
|
var code = codePointAt(this.message, offset);
|
|
4214
4354
|
|
|
4215
4355
|
if (code === undefined) {
|
|
4216
|
-
throw Error("Offset "
|
|
4356
|
+
throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
|
|
4217
4357
|
}
|
|
4218
4358
|
|
|
4219
4359
|
return code;
|
|
@@ -4242,10 +4382,10 @@
|
|
|
4242
4382
|
if (code === 10
|
|
4243
4383
|
/* '\n' */
|
|
4244
4384
|
) {
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4385
|
+
this.position.line += 1;
|
|
4386
|
+
this.position.column = 1;
|
|
4387
|
+
this.position.offset += 1;
|
|
4388
|
+
} else {
|
|
4249
4389
|
this.position.column += 1; // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
4250
4390
|
|
|
4251
4391
|
this.position.offset += code < 0x10000 ? 1 : 2;
|
|
@@ -4296,7 +4436,7 @@
|
|
|
4296
4436
|
|
|
4297
4437
|
Parser.prototype.bumpTo = function (targetOffset) {
|
|
4298
4438
|
if (this.offset() > targetOffset) {
|
|
4299
|
-
throw Error("targetOffset "
|
|
4439
|
+
throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
4300
4440
|
}
|
|
4301
4441
|
|
|
4302
4442
|
targetOffset = Math.min(targetOffset, this.message.length);
|
|
@@ -4309,7 +4449,7 @@
|
|
|
4309
4449
|
}
|
|
4310
4450
|
|
|
4311
4451
|
if (offset > targetOffset) {
|
|
4312
|
-
throw Error("targetOffset "
|
|
4452
|
+
throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
|
|
4313
4453
|
}
|
|
4314
4454
|
|
|
4315
4455
|
this.bump();
|
|
@@ -4421,7 +4561,7 @@
|
|
|
4421
4561
|
opts = {};
|
|
4422
4562
|
}
|
|
4423
4563
|
|
|
4424
|
-
opts = __assign
|
|
4564
|
+
opts = __assign({
|
|
4425
4565
|
shouldParseSkeletons: true,
|
|
4426
4566
|
requiresOtherClause: true
|
|
4427
4567
|
}, opts);
|
|
@@ -4551,7 +4691,7 @@
|
|
|
4551
4691
|
var FormatError =
|
|
4552
4692
|
/** @class */
|
|
4553
4693
|
function (_super) {
|
|
4554
|
-
__extends
|
|
4694
|
+
__extends(FormatError, _super);
|
|
4555
4695
|
|
|
4556
4696
|
function FormatError(msg, code, originalMessage) {
|
|
4557
4697
|
var _this = _super.call(this, msg) || this;
|
|
@@ -4562,7 +4702,7 @@
|
|
|
4562
4702
|
}
|
|
4563
4703
|
|
|
4564
4704
|
FormatError.prototype.toString = function () {
|
|
4565
|
-
return "[formatjs Error: "
|
|
4705
|
+
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
4566
4706
|
};
|
|
4567
4707
|
|
|
4568
4708
|
return FormatError;
|
|
@@ -4571,10 +4711,10 @@
|
|
|
4571
4711
|
var InvalidValueError =
|
|
4572
4712
|
/** @class */
|
|
4573
4713
|
function (_super) {
|
|
4574
|
-
__extends
|
|
4714
|
+
__extends(InvalidValueError, _super);
|
|
4575
4715
|
|
|
4576
4716
|
function InvalidValueError(variableId, value, options, originalMessage) {
|
|
4577
|
-
return _super.call(this, "Invalid values for \""
|
|
4717
|
+
return _super.call(this, "Invalid values for \"".concat(variableId, "\": \"").concat(value, "\". Options are \"").concat(Object.keys(options).join('", "'), "\""), ErrorCode.INVALID_VALUE, originalMessage) || this;
|
|
4578
4718
|
}
|
|
4579
4719
|
|
|
4580
4720
|
return InvalidValueError;
|
|
@@ -4583,10 +4723,10 @@
|
|
|
4583
4723
|
var InvalidValueTypeError =
|
|
4584
4724
|
/** @class */
|
|
4585
4725
|
function (_super) {
|
|
4586
|
-
__extends
|
|
4726
|
+
__extends(InvalidValueTypeError, _super);
|
|
4587
4727
|
|
|
4588
4728
|
function InvalidValueTypeError(value, type, originalMessage) {
|
|
4589
|
-
return _super.call(this, "Value for \""
|
|
4729
|
+
return _super.call(this, "Value for \"".concat(value, "\" must be of type ").concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
|
|
4590
4730
|
}
|
|
4591
4731
|
|
|
4592
4732
|
return InvalidValueTypeError;
|
|
@@ -4595,10 +4735,10 @@
|
|
|
4595
4735
|
var MissingValueError =
|
|
4596
4736
|
/** @class */
|
|
4597
4737
|
function (_super) {
|
|
4598
|
-
__extends
|
|
4738
|
+
__extends(MissingValueError, _super);
|
|
4599
4739
|
|
|
4600
4740
|
function MissingValueError(variableId, originalMessage) {
|
|
4601
|
-
return _super.call(this, "The intl string context variable \""
|
|
4741
|
+
return _super.call(this, "The intl string context variable \"".concat(variableId, "\" was not provided to the string \"").concat(originalMessage, "\""), ErrorCode.MISSING_VALUE, originalMessage) || this;
|
|
4602
4742
|
}
|
|
4603
4743
|
|
|
4604
4744
|
return MissingValueError;
|
|
@@ -4702,7 +4842,7 @@
|
|
|
4702
4842
|
}
|
|
4703
4843
|
|
|
4704
4844
|
if (isTimeElement(el)) {
|
|
4705
|
-
var style = typeof el.style === 'string' ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions :
|
|
4845
|
+
var style = typeof el.style === 'string' ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : formats.time.medium;
|
|
4706
4846
|
result.push({
|
|
4707
4847
|
type: PART_TYPE.literal,
|
|
4708
4848
|
value: formatters.getDateTimeFormat(locales, style).format(value)
|
|
@@ -4762,7 +4902,7 @@
|
|
|
4762
4902
|
}
|
|
4763
4903
|
|
|
4764
4904
|
if (isPluralElement(el)) {
|
|
4765
|
-
var opt = el.options["="
|
|
4905
|
+
var opt = el.options["=".concat(value)];
|
|
4766
4906
|
|
|
4767
4907
|
if (!opt) {
|
|
4768
4908
|
if (!Intl.PluralRules) {
|
|
@@ -4798,8 +4938,8 @@
|
|
|
4798
4938
|
return c1;
|
|
4799
4939
|
}
|
|
4800
4940
|
|
|
4801
|
-
return __assign
|
|
4802
|
-
all[k] = __assign
|
|
4941
|
+
return __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function (all, k) {
|
|
4942
|
+
all[k] = __assign(__assign({}, c1[k]), c2[k] || {});
|
|
4803
4943
|
return all;
|
|
4804
4944
|
}, {}));
|
|
4805
4945
|
}
|
|
@@ -4812,7 +4952,7 @@
|
|
|
4812
4952
|
return Object.keys(defaultConfig).reduce(function (all, k) {
|
|
4813
4953
|
all[k] = mergeConfig(defaultConfig[k], configs[k]);
|
|
4814
4954
|
return all;
|
|
4815
|
-
}, __assign
|
|
4955
|
+
}, __assign({}, defaultConfig));
|
|
4816
4956
|
}
|
|
4817
4957
|
|
|
4818
4958
|
function createFastMemoizeCache(store) {
|
|
@@ -4849,7 +4989,7 @@
|
|
|
4849
4989
|
args[_i] = arguments[_i];
|
|
4850
4990
|
}
|
|
4851
4991
|
|
|
4852
|
-
return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray
|
|
4992
|
+
return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
4853
4993
|
}, {
|
|
4854
4994
|
cache: createFastMemoizeCache(cache.number),
|
|
4855
4995
|
strategy: strategies.variadic
|
|
@@ -4863,7 +5003,7 @@
|
|
|
4863
5003
|
args[_i] = arguments[_i];
|
|
4864
5004
|
}
|
|
4865
5005
|
|
|
4866
|
-
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray
|
|
5006
|
+
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
4867
5007
|
}, {
|
|
4868
5008
|
cache: createFastMemoizeCache(cache.dateTime),
|
|
4869
5009
|
strategy: strategies.variadic
|
|
@@ -4877,7 +5017,7 @@
|
|
|
4877
5017
|
args[_i] = arguments[_i];
|
|
4878
5018
|
}
|
|
4879
5019
|
|
|
4880
|
-
return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray
|
|
5020
|
+
return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
4881
5021
|
}, {
|
|
4882
5022
|
cache: createFastMemoizeCache(cache.pluralRules),
|
|
4883
5023
|
strategy: strategies.variadic
|
|
@@ -5058,11 +5198,13 @@
|
|
|
5058
5198
|
var IntlError =
|
|
5059
5199
|
/** @class */
|
|
5060
5200
|
function (_super) {
|
|
5061
|
-
__extends
|
|
5201
|
+
__extends(IntlError, _super);
|
|
5062
5202
|
|
|
5063
5203
|
function IntlError(code, message, exception) {
|
|
5064
|
-
var _this =
|
|
5204
|
+
var _this = this;
|
|
5065
5205
|
|
|
5206
|
+
var err = exception ? exception instanceof Error ? exception : new Error(String(exception)) : undefined;
|
|
5207
|
+
_this = _super.call(this, "[@formatjs/intl Error ".concat(code, "] ").concat(message, " \n").concat(err ? "\n".concat(err.message, "\n").concat(err.stack) : '')) || this;
|
|
5066
5208
|
_this.code = code; // @ts-ignore just so we don't need to declare dep on @types/node
|
|
5067
5209
|
|
|
5068
5210
|
if (typeof Error.captureStackTrace === 'function') {
|
|
@@ -5079,7 +5221,7 @@
|
|
|
5079
5221
|
var UnsupportedFormatterError =
|
|
5080
5222
|
/** @class */
|
|
5081
5223
|
function (_super) {
|
|
5082
|
-
__extends
|
|
5224
|
+
__extends(UnsupportedFormatterError, _super);
|
|
5083
5225
|
|
|
5084
5226
|
function UnsupportedFormatterError(message, exception) {
|
|
5085
5227
|
return _super.call(this, IntlErrorCode.UNSUPPORTED_FORMATTER, message, exception) || this;
|
|
@@ -5091,7 +5233,7 @@
|
|
|
5091
5233
|
var InvalidConfigError =
|
|
5092
5234
|
/** @class */
|
|
5093
5235
|
function (_super) {
|
|
5094
|
-
__extends
|
|
5236
|
+
__extends(InvalidConfigError, _super);
|
|
5095
5237
|
|
|
5096
5238
|
function InvalidConfigError(message, exception) {
|
|
5097
5239
|
return _super.call(this, IntlErrorCode.INVALID_CONFIG, message, exception) || this;
|
|
@@ -5103,7 +5245,7 @@
|
|
|
5103
5245
|
var MissingDataError =
|
|
5104
5246
|
/** @class */
|
|
5105
5247
|
function (_super) {
|
|
5106
|
-
__extends
|
|
5248
|
+
__extends(MissingDataError, _super);
|
|
5107
5249
|
|
|
5108
5250
|
function MissingDataError(message, exception) {
|
|
5109
5251
|
return _super.call(this, IntlErrorCode.MISSING_DATA, message, exception) || this;
|
|
@@ -5112,28 +5254,40 @@
|
|
|
5112
5254
|
return MissingDataError;
|
|
5113
5255
|
}(IntlError);
|
|
5114
5256
|
|
|
5257
|
+
var IntlFormatError =
|
|
5258
|
+
/** @class */
|
|
5259
|
+
function (_super) {
|
|
5260
|
+
__extends(IntlFormatError, _super);
|
|
5261
|
+
|
|
5262
|
+
function IntlFormatError(message, locale, exception) {
|
|
5263
|
+
return _super.call(this, IntlErrorCode.FORMAT_ERROR, "".concat(message, " \nLocale: ").concat(locale, "\n"), exception) || this;
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
return IntlFormatError;
|
|
5267
|
+
}(IntlError);
|
|
5268
|
+
|
|
5115
5269
|
var MessageFormatError =
|
|
5116
5270
|
/** @class */
|
|
5117
5271
|
function (_super) {
|
|
5118
|
-
__extends
|
|
5272
|
+
__extends(MessageFormatError, _super);
|
|
5119
5273
|
|
|
5120
5274
|
function MessageFormatError(message, locale, descriptor, exception) {
|
|
5121
|
-
var _this = _super.call(this,
|
|
5275
|
+
var _this = _super.call(this, "".concat(message, " \nMessageID: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.id, "\nDefault Message: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage, "\nDescription: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.description, " \n"), locale, exception) || this;
|
|
5122
5276
|
|
|
5123
5277
|
_this.descriptor = descriptor;
|
|
5124
5278
|
return _this;
|
|
5125
5279
|
}
|
|
5126
5280
|
|
|
5127
5281
|
return MessageFormatError;
|
|
5128
|
-
}(
|
|
5282
|
+
}(IntlFormatError);
|
|
5129
5283
|
|
|
5130
5284
|
var MissingTranslationError =
|
|
5131
5285
|
/** @class */
|
|
5132
5286
|
function (_super) {
|
|
5133
|
-
__extends
|
|
5287
|
+
__extends(MissingTranslationError, _super);
|
|
5134
5288
|
|
|
5135
5289
|
function MissingTranslationError(descriptor, locale) {
|
|
5136
|
-
var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, "Missing message: \""
|
|
5290
|
+
var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, "Missing message: \"".concat(descriptor.id, "\" for locale \"").concat(locale, "\", using ").concat(descriptor.defaultMessage ? 'default message' : 'id', " as fallback.")) || this;
|
|
5137
5291
|
|
|
5138
5292
|
_this.descriptor = descriptor;
|
|
5139
5293
|
return _this;
|
|
@@ -5142,12 +5296,12 @@
|
|
|
5142
5296
|
return MissingTranslationError;
|
|
5143
5297
|
}(IntlError);
|
|
5144
5298
|
|
|
5145
|
-
function filterProps(props,
|
|
5299
|
+
function filterProps(props, allowlist, defaults) {
|
|
5146
5300
|
if (defaults === void 0) {
|
|
5147
5301
|
defaults = {};
|
|
5148
5302
|
}
|
|
5149
5303
|
|
|
5150
|
-
return
|
|
5304
|
+
return allowlist.reduce(function (filtered, name) {
|
|
5151
5305
|
if (name in props) {
|
|
5152
5306
|
filtered[name] = props[name];
|
|
5153
5307
|
} else if (name in defaults) {
|
|
@@ -5161,13 +5315,18 @@
|
|
|
5161
5315
|
var defaultErrorHandler = function (error) {
|
|
5162
5316
|
};
|
|
5163
5317
|
|
|
5318
|
+
var defaultWarnHandler = function (warning) {
|
|
5319
|
+
};
|
|
5320
|
+
|
|
5164
5321
|
var DEFAULT_INTL_CONFIG = {
|
|
5165
5322
|
formats: {},
|
|
5166
5323
|
messages: {},
|
|
5167
5324
|
timeZone: undefined,
|
|
5168
5325
|
defaultLocale: 'en',
|
|
5169
5326
|
defaultFormats: {},
|
|
5170
|
-
|
|
5327
|
+
fallbackOnEmptyString: true,
|
|
5328
|
+
onError: defaultErrorHandler,
|
|
5329
|
+
onWarn: defaultWarnHandler
|
|
5171
5330
|
};
|
|
5172
5331
|
function createIntlCache() {
|
|
5173
5332
|
return {
|
|
@@ -5218,7 +5377,7 @@
|
|
|
5218
5377
|
args[_i] = arguments[_i];
|
|
5219
5378
|
}
|
|
5220
5379
|
|
|
5221
|
-
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray
|
|
5380
|
+
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
5222
5381
|
}, {
|
|
5223
5382
|
cache: createFastMemoizeCache$1(cache.dateTime),
|
|
5224
5383
|
strategy: strategies.variadic
|
|
@@ -5232,7 +5391,7 @@
|
|
|
5232
5391
|
args[_i] = arguments[_i];
|
|
5233
5392
|
}
|
|
5234
5393
|
|
|
5235
|
-
return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray
|
|
5394
|
+
return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
5236
5395
|
}, {
|
|
5237
5396
|
cache: createFastMemoizeCache$1(cache.number),
|
|
5238
5397
|
strategy: strategies.variadic
|
|
@@ -5246,7 +5405,7 @@
|
|
|
5246
5405
|
args[_i] = arguments[_i];
|
|
5247
5406
|
}
|
|
5248
5407
|
|
|
5249
|
-
return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray
|
|
5408
|
+
return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
5250
5409
|
}, {
|
|
5251
5410
|
cache: createFastMemoizeCache$1(cache.pluralRules),
|
|
5252
5411
|
strategy: strategies.variadic
|
|
@@ -5255,7 +5414,7 @@
|
|
|
5255
5414
|
getDateTimeFormat: getDateTimeFormat,
|
|
5256
5415
|
getNumberFormat: getNumberFormat,
|
|
5257
5416
|
getMessageFormat: memoize(function (message, locales, overrideFormats, opts) {
|
|
5258
|
-
return new IntlMessageFormat(message, locales, overrideFormats, __assign
|
|
5417
|
+
return new IntlMessageFormat(message, locales, overrideFormats, __assign({
|
|
5259
5418
|
formatters: {
|
|
5260
5419
|
getNumberFormat: getNumberFormat,
|
|
5261
5420
|
getDateTimeFormat: getDateTimeFormat,
|
|
@@ -5273,7 +5432,7 @@
|
|
|
5273
5432
|
args[_i] = arguments[_i];
|
|
5274
5433
|
}
|
|
5275
5434
|
|
|
5276
|
-
return new (RelativeTimeFormat.bind.apply(RelativeTimeFormat, __spreadArray
|
|
5435
|
+
return new (RelativeTimeFormat.bind.apply(RelativeTimeFormat, __spreadArray([void 0], args, false)))();
|
|
5277
5436
|
}, {
|
|
5278
5437
|
cache: createFastMemoizeCache$1(cache.relativeTime),
|
|
5279
5438
|
strategy: strategies.variadic
|
|
@@ -5286,7 +5445,7 @@
|
|
|
5286
5445
|
args[_i] = arguments[_i];
|
|
5287
5446
|
}
|
|
5288
5447
|
|
|
5289
|
-
return new (ListFormat.bind.apply(ListFormat, __spreadArray
|
|
5448
|
+
return new (ListFormat.bind.apply(ListFormat, __spreadArray([void 0], args, false)))();
|
|
5290
5449
|
}, {
|
|
5291
5450
|
cache: createFastMemoizeCache$1(cache.list),
|
|
5292
5451
|
strategy: strategies.variadic
|
|
@@ -5298,7 +5457,7 @@
|
|
|
5298
5457
|
args[_i] = arguments[_i];
|
|
5299
5458
|
}
|
|
5300
5459
|
|
|
5301
|
-
return new (DisplayNames.bind.apply(DisplayNames, __spreadArray
|
|
5460
|
+
return new (DisplayNames.bind.apply(DisplayNames, __spreadArray([void 0], args, false)))();
|
|
5302
5461
|
}, {
|
|
5303
5462
|
cache: createFastMemoizeCache$1(cache.displayNames),
|
|
5304
5463
|
strategy: strategies.variadic
|
|
@@ -5317,12 +5476,12 @@
|
|
|
5317
5476
|
return format;
|
|
5318
5477
|
}
|
|
5319
5478
|
|
|
5320
|
-
onError(new UnsupportedFormatterError("No "
|
|
5479
|
+
onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
|
|
5321
5480
|
}
|
|
5322
5481
|
|
|
5323
5482
|
function setTimeZoneInOptions(opts, timeZone) {
|
|
5324
5483
|
return Object.keys(opts).reduce(function (all, k) {
|
|
5325
|
-
all[k] = __assign
|
|
5484
|
+
all[k] = __assign({
|
|
5326
5485
|
timeZone: timeZone
|
|
5327
5486
|
}, opts[k]);
|
|
5328
5487
|
return all;
|
|
@@ -5330,9 +5489,9 @@
|
|
|
5330
5489
|
}
|
|
5331
5490
|
|
|
5332
5491
|
function deepMergeOptions(opts1, opts2) {
|
|
5333
|
-
var keys = Object.keys(__assign
|
|
5492
|
+
var keys = Object.keys(__assign(__assign({}, opts1), opts2));
|
|
5334
5493
|
return keys.reduce(function (all, k) {
|
|
5335
|
-
all[k] = __assign
|
|
5494
|
+
all[k] = __assign(__assign({}, opts1[k] || {}), opts2[k] || {});
|
|
5336
5495
|
return all;
|
|
5337
5496
|
}, {});
|
|
5338
5497
|
}
|
|
@@ -5343,7 +5502,7 @@
|
|
|
5343
5502
|
}
|
|
5344
5503
|
|
|
5345
5504
|
var mfFormats = IntlMessageFormat.formats;
|
|
5346
|
-
return __assign
|
|
5505
|
+
return __assign(__assign(__assign({}, mfFormats), f1), {
|
|
5347
5506
|
date: deepMergeOptions(setTimeZoneInOptions(mfFormats.date, timeZone), setTimeZoneInOptions(f1.date || {}, timeZone)),
|
|
5348
5507
|
time: deepMergeOptions(setTimeZoneInOptions(mfFormats.time, timeZone), setTimeZoneInOptions(f1.time || {}, timeZone))
|
|
5349
5508
|
});
|
|
@@ -5355,6 +5514,7 @@
|
|
|
5355
5514
|
messages = _a.messages,
|
|
5356
5515
|
defaultLocale = _a.defaultLocale,
|
|
5357
5516
|
defaultFormats = _a.defaultFormats,
|
|
5517
|
+
fallbackOnEmptyString = _a.fallbackOnEmptyString,
|
|
5358
5518
|
onError = _a.onError,
|
|
5359
5519
|
timeZone = _a.timeZone,
|
|
5360
5520
|
defaultRichTextElements = _a.defaultRichTextElements;
|
|
@@ -5384,11 +5544,15 @@
|
|
|
5384
5544
|
return message.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
5385
5545
|
}
|
|
5386
5546
|
|
|
5387
|
-
values = __assign
|
|
5547
|
+
values = __assign(__assign({}, defaultRichTextElements), values || {});
|
|
5388
5548
|
formats = deepMergeFormatsAndSetTimeZone(formats, timeZone);
|
|
5389
5549
|
defaultFormats = deepMergeFormatsAndSetTimeZone(defaultFormats, timeZone);
|
|
5390
5550
|
|
|
5391
5551
|
if (!message) {
|
|
5552
|
+
if (fallbackOnEmptyString === false && message === '') {
|
|
5553
|
+
return message;
|
|
5554
|
+
}
|
|
5555
|
+
|
|
5392
5556
|
if (!defaultMessage || locale && locale.toLowerCase() !== defaultLocale.toLowerCase()) {
|
|
5393
5557
|
// This prevents warnings from littering the console in development
|
|
5394
5558
|
// when no `messages` are passed into the <IntlProvider> for the
|
|
@@ -5401,7 +5565,7 @@
|
|
|
5401
5565
|
var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);
|
|
5402
5566
|
return formatter.format(values);
|
|
5403
5567
|
} catch (e) {
|
|
5404
|
-
onError(new MessageFormatError("Error formatting default message for: \""
|
|
5568
|
+
onError(new MessageFormatError("Error formatting default message for: \"".concat(id, "\", rendering default message verbatim"), locale, messageDescriptor, e));
|
|
5405
5569
|
return typeof defaultMessage === 'string' ? defaultMessage : id;
|
|
5406
5570
|
}
|
|
5407
5571
|
}
|
|
@@ -5411,12 +5575,12 @@
|
|
|
5411
5575
|
|
|
5412
5576
|
|
|
5413
5577
|
try {
|
|
5414
|
-
var formatter = state.getMessageFormat(message, locale, formats, __assign
|
|
5578
|
+
var formatter = state.getMessageFormat(message, locale, formats, __assign({
|
|
5415
5579
|
formatters: state
|
|
5416
5580
|
}, opts || {}));
|
|
5417
5581
|
return formatter.format(values);
|
|
5418
5582
|
} catch (e) {
|
|
5419
|
-
onError(new MessageFormatError("Error formatting message: \""
|
|
5583
|
+
onError(new MessageFormatError("Error formatting message: \"".concat(id, "\", using ").concat(defaultMessage ? 'default message' : 'id', " as fallback."), locale, messageDescriptor, e));
|
|
5420
5584
|
}
|
|
5421
5585
|
|
|
5422
5586
|
if (defaultMessage) {
|
|
@@ -5424,7 +5588,7 @@
|
|
|
5424
5588
|
var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);
|
|
5425
5589
|
return formatter.format(values);
|
|
5426
5590
|
} catch (e) {
|
|
5427
|
-
onError(new MessageFormatError("Error formatting the default message for: \""
|
|
5591
|
+
onError(new MessageFormatError("Error formatting the default message for: \"".concat(id, "\", rendering message verbatim"), locale, messageDescriptor, e));
|
|
5428
5592
|
}
|
|
5429
5593
|
}
|
|
5430
5594
|
|
|
@@ -5453,16 +5617,15 @@
|
|
|
5453
5617
|
|
|
5454
5618
|
var format = options.format;
|
|
5455
5619
|
|
|
5456
|
-
var defaults = __assign
|
|
5620
|
+
var defaults = __assign(__assign({}, timeZone && {
|
|
5457
5621
|
timeZone: timeZone
|
|
5458
5622
|
}), format && getNamedFormat(formats, type, format, onError));
|
|
5459
5623
|
|
|
5460
|
-
var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS,
|
|
5461
|
-
defaults);
|
|
5624
|
+
var filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, defaults);
|
|
5462
5625
|
|
|
5463
5626
|
if (type === 'time' && !filteredOptions.hour && !filteredOptions.minute && !filteredOptions.second && !filteredOptions.timeStyle && !filteredOptions.dateStyle) {
|
|
5464
5627
|
// Add default formatting options if hour, minute, or second isn't defined.
|
|
5465
|
-
filteredOptions = __assign
|
|
5628
|
+
filteredOptions = __assign(__assign({}, filteredOptions), {
|
|
5466
5629
|
hour: 'numeric',
|
|
5467
5630
|
minute: 'numeric'
|
|
5468
5631
|
});
|
|
@@ -5600,7 +5763,7 @@
|
|
|
5600
5763
|
var now = Date.now();
|
|
5601
5764
|
|
|
5602
5765
|
function generateToken(i) {
|
|
5603
|
-
return now
|
|
5766
|
+
return "".concat(now, "_").concat(i, "_").concat(now);
|
|
5604
5767
|
}
|
|
5605
5768
|
|
|
5606
5769
|
function formatList(opts, getListFormat, values, options) {
|
|
@@ -5651,7 +5814,7 @@
|
|
|
5651
5814
|
return String(v);
|
|
5652
5815
|
});
|
|
5653
5816
|
return getListFormat(locale, filteredOptions).formatToParts(serializedValues).map(function (part) {
|
|
5654
|
-
return part.type === 'literal' ? part : __assign
|
|
5817
|
+
return part.type === 'literal' ? part : __assign(__assign({}, part), {
|
|
5655
5818
|
value: richValues_1[part.value] || part.value
|
|
5656
5819
|
});
|
|
5657
5820
|
});
|
|
@@ -5681,7 +5844,7 @@
|
|
|
5681
5844
|
try {
|
|
5682
5845
|
return getPluralRules(locale, filteredOptions).select(value);
|
|
5683
5846
|
} catch (e) {
|
|
5684
|
-
onError(new
|
|
5847
|
+
onError(new IntlFormatError('Error formatting plural.', locale, e));
|
|
5685
5848
|
}
|
|
5686
5849
|
|
|
5687
5850
|
return 'other';
|
|
@@ -5722,7 +5885,7 @@
|
|
|
5722
5885
|
try {
|
|
5723
5886
|
return getFormatter$1(config, getRelativeTimeFormat, options).format(value, unit);
|
|
5724
5887
|
} catch (e) {
|
|
5725
|
-
config.onError(new
|
|
5888
|
+
config.onError(new IntlFormatError('Error formatting relative time.', config.locale, e));
|
|
5726
5889
|
}
|
|
5727
5890
|
|
|
5728
5891
|
return String(value);
|
|
@@ -5777,8 +5940,8 @@
|
|
|
5777
5940
|
}
|
|
5778
5941
|
|
|
5779
5942
|
function verifyConfigMessages(config) {
|
|
5780
|
-
if (config.defaultRichTextElements && messagesContainString(config.messages || {})) {
|
|
5781
|
-
|
|
5943
|
+
if (config.onWarn && config.defaultRichTextElements && messagesContainString(config.messages || {})) {
|
|
5944
|
+
config.onWarn("[@formatjs/intl] \"defaultRichTextElements\" was specified but \"message\" was not pre-compiled. \nPlease consider using \"@formatjs/cli\" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution");
|
|
5782
5945
|
}
|
|
5783
5946
|
}
|
|
5784
5947
|
/**
|
|
@@ -5791,7 +5954,7 @@
|
|
|
5791
5954
|
function createIntl(config, cache) {
|
|
5792
5955
|
var formatters = createFormatters(cache);
|
|
5793
5956
|
|
|
5794
|
-
var resolvedConfig = __assign
|
|
5957
|
+
var resolvedConfig = __assign(__assign({}, DEFAULT_INTL_CONFIG), config);
|
|
5795
5958
|
|
|
5796
5959
|
var locale = resolvedConfig.locale,
|
|
5797
5960
|
defaultLocale = resolvedConfig.defaultLocale,
|
|
@@ -5799,7 +5962,7 @@
|
|
|
5799
5962
|
|
|
5800
5963
|
if (!locale) {
|
|
5801
5964
|
if (onError) {
|
|
5802
|
-
onError(new InvalidConfigError("\"locale\" was not configured, using \""
|
|
5965
|
+
onError(new InvalidConfigError("\"locale\" was not configured, using \"".concat(defaultLocale, "\" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details")));
|
|
5803
5966
|
} // Since there's no registered locale data for `locale`, this will
|
|
5804
5967
|
// fallback to the `defaultLocale` to make sure things can render.
|
|
5805
5968
|
// The `messages` are overridden to the `defaultProps` empty object
|
|
@@ -5809,13 +5972,13 @@
|
|
|
5809
5972
|
|
|
5810
5973
|
resolvedConfig.locale = resolvedConfig.defaultLocale || 'en';
|
|
5811
5974
|
} else if (!Intl.NumberFormat.supportedLocalesOf(locale).length && onError) {
|
|
5812
|
-
onError(new MissingDataError("Missing locale data for locale: \""
|
|
5975
|
+
onError(new MissingDataError("Missing locale data for locale: \"".concat(locale, "\" in Intl.NumberFormat. Using default locale: \"").concat(defaultLocale, "\" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details")));
|
|
5813
5976
|
} else if (!Intl.DateTimeFormat.supportedLocalesOf(locale).length && onError) {
|
|
5814
|
-
onError(new MissingDataError("Missing locale data for locale: \""
|
|
5977
|
+
onError(new MissingDataError("Missing locale data for locale: \"".concat(locale, "\" in Intl.DateTimeFormat. Using default locale: \"").concat(defaultLocale, "\" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details")));
|
|
5815
5978
|
}
|
|
5816
5979
|
|
|
5817
5980
|
verifyConfigMessages(resolvedConfig);
|
|
5818
|
-
return __assign
|
|
5981
|
+
return __assign(__assign({}, resolvedConfig), {
|
|
5819
5982
|
formatters: formatters,
|
|
5820
5983
|
formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat),
|
|
5821
5984
|
formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat),
|
|
@@ -5827,6 +5990,7 @@
|
|
|
5827
5990
|
formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat),
|
|
5828
5991
|
formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules),
|
|
5829
5992
|
formatMessage: formatMessage.bind(null, resolvedConfig, formatters),
|
|
5993
|
+
$t: formatMessage.bind(null, resolvedConfig, formatters),
|
|
5830
5994
|
formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat),
|
|
5831
5995
|
formatListToParts: formatListToParts.bind(null, resolvedConfig, formatters.getListFormat),
|
|
5832
5996
|
formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames)
|
|
@@ -5945,12 +6109,14 @@
|
|
|
5945
6109
|
return {
|
|
5946
6110
|
locale: config.locale,
|
|
5947
6111
|
timeZone: config.timeZone,
|
|
6112
|
+
fallbackOnEmptyString: config.fallbackOnEmptyString,
|
|
5948
6113
|
formats: config.formats,
|
|
5949
6114
|
textComponent: config.textComponent,
|
|
5950
6115
|
messages: config.messages,
|
|
5951
6116
|
defaultLocale: config.defaultLocale,
|
|
5952
6117
|
defaultFormats: config.defaultFormats,
|
|
5953
6118
|
onError: config.onError,
|
|
6119
|
+
onWarn: config.onWarn,
|
|
5954
6120
|
wrapRichTextChunksInFragment: config.wrapRichTextChunksInFragment,
|
|
5955
6121
|
defaultRichTextElements: config.defaultRichTextElements
|
|
5956
6122
|
};
|
|
@@ -5976,7 +6142,7 @@
|
|
|
5976
6142
|
}
|
|
5977
6143
|
|
|
5978
6144
|
var values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
5979
|
-
var chunks = formatMessage.apply(void 0, __spreadArray([config, formatters, descriptor, values], rest));
|
|
6145
|
+
var chunks = formatMessage.apply(void 0, __spreadArray([config, formatters, descriptor, values], rest, false));
|
|
5980
6146
|
|
|
5981
6147
|
if (Array.isArray(chunks)) {
|
|
5982
6148
|
return react.Children.toArray(chunks);
|
|
@@ -6003,6 +6169,7 @@
|
|
|
6003
6169
|
formatMessage: formatMessage$1.bind(null, {
|
|
6004
6170
|
locale: coreIntl.locale,
|
|
6005
6171
|
timeZone: coreIntl.timeZone,
|
|
6172
|
+
fallbackOnEmptyString: coreIntl.fallbackOnEmptyString,
|
|
6006
6173
|
formats: coreIntl.formats,
|
|
6007
6174
|
defaultLocale: coreIntl.defaultLocale,
|
|
6008
6175
|
defaultFormats: coreIntl.defaultFormats,
|
|
@@ -14150,7 +14317,7 @@
|
|
|
14150
14317
|
return tk(a, b, c, !1, d);
|
|
14151
14318
|
};
|
|
14152
14319
|
|
|
14153
|
-
var version = "17.0.2";
|
|
14320
|
+
var version$1 = "17.0.2";
|
|
14154
14321
|
var reactDom_production_min = {
|
|
14155
14322
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
14156
14323
|
createPortal: createPortal,
|
|
@@ -14162,7 +14329,7 @@
|
|
|
14162
14329
|
unstable_batchedUpdates: unstable_batchedUpdates,
|
|
14163
14330
|
unstable_createPortal: unstable_createPortal,
|
|
14164
14331
|
unstable_renderSubtreeIntoContainer: unstable_renderSubtreeIntoContainer,
|
|
14165
|
-
version: version
|
|
14332
|
+
version: version$1
|
|
14166
14333
|
};
|
|
14167
14334
|
|
|
14168
14335
|
/** @license React v0.20.2
|
|
@@ -14377,7 +14544,7 @@
|
|
|
14377
14544
|
|
|
14378
14545
|
var classnames = createCommonjsModule(function (module) {
|
|
14379
14546
|
/*!
|
|
14380
|
-
Copyright (c)
|
|
14547
|
+
Copyright (c) 2018 Jed Watson.
|
|
14381
14548
|
Licensed under the MIT License (MIT), see
|
|
14382
14549
|
http://jedwatson.github.io/classnames
|
|
14383
14550
|
*/
|
|
@@ -14397,17 +14564,23 @@
|
|
|
14397
14564
|
|
|
14398
14565
|
if (argType === 'string' || argType === 'number') {
|
|
14399
14566
|
classes.push(arg);
|
|
14400
|
-
} else if (Array.isArray(arg)
|
|
14401
|
-
|
|
14567
|
+
} else if (Array.isArray(arg)) {
|
|
14568
|
+
if (arg.length) {
|
|
14569
|
+
var inner = classNames.apply(null, arg);
|
|
14402
14570
|
|
|
14403
|
-
|
|
14404
|
-
|
|
14571
|
+
if (inner) {
|
|
14572
|
+
classes.push(inner);
|
|
14573
|
+
}
|
|
14405
14574
|
}
|
|
14406
14575
|
} else if (argType === 'object') {
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14576
|
+
if (arg.toString === Object.prototype.toString) {
|
|
14577
|
+
for (var key in arg) {
|
|
14578
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
14579
|
+
classes.push(key);
|
|
14580
|
+
}
|
|
14410
14581
|
}
|
|
14582
|
+
} else {
|
|
14583
|
+
classes.push(arg.toString());
|
|
14411
14584
|
}
|
|
14412
14585
|
}
|
|
14413
14586
|
}
|
|
@@ -14438,6 +14611,185 @@
|
|
|
14438
14611
|
}));
|
|
14439
14612
|
};
|
|
14440
14613
|
|
|
14614
|
+
/** @license React v16.13.1
|
|
14615
|
+
* react-is.production.min.js
|
|
14616
|
+
*
|
|
14617
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14618
|
+
*
|
|
14619
|
+
* This source code is licensed under the MIT license found in the
|
|
14620
|
+
* LICENSE file in the root directory of this source tree.
|
|
14621
|
+
*/
|
|
14622
|
+
|
|
14623
|
+
var b$2 = "function" === typeof Symbol && Symbol.for,
|
|
14624
|
+
c$1 = b$2 ? Symbol.for("react.element") : 60103,
|
|
14625
|
+
d$1 = b$2 ? Symbol.for("react.portal") : 60106,
|
|
14626
|
+
e$1 = b$2 ? Symbol.for("react.fragment") : 60107,
|
|
14627
|
+
f$7 = b$2 ? Symbol.for("react.strict_mode") : 60108,
|
|
14628
|
+
g$1 = b$2 ? Symbol.for("react.profiler") : 60114,
|
|
14629
|
+
h$1 = b$2 ? Symbol.for("react.provider") : 60109,
|
|
14630
|
+
k$1 = b$2 ? Symbol.for("react.context") : 60110,
|
|
14631
|
+
l$1 = b$2 ? Symbol.for("react.async_mode") : 60111,
|
|
14632
|
+
m$1 = b$2 ? Symbol.for("react.concurrent_mode") : 60111,
|
|
14633
|
+
n$1 = b$2 ? Symbol.for("react.forward_ref") : 60112,
|
|
14634
|
+
p$1 = b$2 ? Symbol.for("react.suspense") : 60113,
|
|
14635
|
+
q$1 = b$2 ? Symbol.for("react.suspense_list") : 60120,
|
|
14636
|
+
r$1 = b$2 ? Symbol.for("react.memo") : 60115,
|
|
14637
|
+
t$1 = b$2 ? Symbol.for("react.lazy") : 60116,
|
|
14638
|
+
v$1 = b$2 ? Symbol.for("react.block") : 60121,
|
|
14639
|
+
w$1 = b$2 ? Symbol.for("react.fundamental") : 60117,
|
|
14640
|
+
x$1 = b$2 ? Symbol.for("react.responder") : 60118,
|
|
14641
|
+
y$2 = b$2 ? Symbol.for("react.scope") : 60119;
|
|
14642
|
+
|
|
14643
|
+
function z$1(a) {
|
|
14644
|
+
if ("object" === typeof a && null !== a) {
|
|
14645
|
+
var u = a.$$typeof;
|
|
14646
|
+
|
|
14647
|
+
switch (u) {
|
|
14648
|
+
case c$1:
|
|
14649
|
+
switch (a = a.type, a) {
|
|
14650
|
+
case l$1:
|
|
14651
|
+
case m$1:
|
|
14652
|
+
case e$1:
|
|
14653
|
+
case g$1:
|
|
14654
|
+
case f$7:
|
|
14655
|
+
case p$1:
|
|
14656
|
+
return a;
|
|
14657
|
+
|
|
14658
|
+
default:
|
|
14659
|
+
switch (a = a && a.$$typeof, a) {
|
|
14660
|
+
case k$1:
|
|
14661
|
+
case n$1:
|
|
14662
|
+
case t$1:
|
|
14663
|
+
case r$1:
|
|
14664
|
+
case h$1:
|
|
14665
|
+
return a;
|
|
14666
|
+
|
|
14667
|
+
default:
|
|
14668
|
+
return u;
|
|
14669
|
+
}
|
|
14670
|
+
|
|
14671
|
+
}
|
|
14672
|
+
|
|
14673
|
+
case d$1:
|
|
14674
|
+
return u;
|
|
14675
|
+
}
|
|
14676
|
+
}
|
|
14677
|
+
}
|
|
14678
|
+
|
|
14679
|
+
function A$1(a) {
|
|
14680
|
+
return z$1(a) === m$1;
|
|
14681
|
+
}
|
|
14682
|
+
|
|
14683
|
+
var AsyncMode$1 = l$1;
|
|
14684
|
+
var ConcurrentMode$1 = m$1;
|
|
14685
|
+
var ContextConsumer$1 = k$1;
|
|
14686
|
+
var ContextProvider$1 = h$1;
|
|
14687
|
+
var Element$1 = c$1;
|
|
14688
|
+
var ForwardRef$1 = n$1;
|
|
14689
|
+
var Fragment$1 = e$1;
|
|
14690
|
+
var Lazy$1 = t$1;
|
|
14691
|
+
var Memo$1 = r$1;
|
|
14692
|
+
var Portal$1 = d$1;
|
|
14693
|
+
var Profiler$1 = g$1;
|
|
14694
|
+
var StrictMode$1 = f$7;
|
|
14695
|
+
var Suspense$1 = p$1;
|
|
14696
|
+
|
|
14697
|
+
var isAsyncMode$1 = function (a) {
|
|
14698
|
+
return A$1(a) || z$1(a) === l$1;
|
|
14699
|
+
};
|
|
14700
|
+
|
|
14701
|
+
var isConcurrentMode$1 = A$1;
|
|
14702
|
+
|
|
14703
|
+
var isContextConsumer$1 = function (a) {
|
|
14704
|
+
return z$1(a) === k$1;
|
|
14705
|
+
};
|
|
14706
|
+
|
|
14707
|
+
var isContextProvider$1 = function (a) {
|
|
14708
|
+
return z$1(a) === h$1;
|
|
14709
|
+
};
|
|
14710
|
+
|
|
14711
|
+
var isElement$1 = function (a) {
|
|
14712
|
+
return "object" === typeof a && null !== a && a.$$typeof === c$1;
|
|
14713
|
+
};
|
|
14714
|
+
|
|
14715
|
+
var isForwardRef$1 = function (a) {
|
|
14716
|
+
return z$1(a) === n$1;
|
|
14717
|
+
};
|
|
14718
|
+
|
|
14719
|
+
var isFragment$1 = function (a) {
|
|
14720
|
+
return z$1(a) === e$1;
|
|
14721
|
+
};
|
|
14722
|
+
|
|
14723
|
+
var isLazy$1 = function (a) {
|
|
14724
|
+
return z$1(a) === t$1;
|
|
14725
|
+
};
|
|
14726
|
+
|
|
14727
|
+
var isMemo$1 = function (a) {
|
|
14728
|
+
return z$1(a) === r$1;
|
|
14729
|
+
};
|
|
14730
|
+
|
|
14731
|
+
var isPortal$1 = function (a) {
|
|
14732
|
+
return z$1(a) === d$1;
|
|
14733
|
+
};
|
|
14734
|
+
|
|
14735
|
+
var isProfiler$1 = function (a) {
|
|
14736
|
+
return z$1(a) === g$1;
|
|
14737
|
+
};
|
|
14738
|
+
|
|
14739
|
+
var isStrictMode$1 = function (a) {
|
|
14740
|
+
return z$1(a) === f$7;
|
|
14741
|
+
};
|
|
14742
|
+
|
|
14743
|
+
var isSuspense$1 = function (a) {
|
|
14744
|
+
return z$1(a) === p$1;
|
|
14745
|
+
};
|
|
14746
|
+
|
|
14747
|
+
var isValidElementType$1 = function (a) {
|
|
14748
|
+
return "string" === typeof a || "function" === typeof a || a === e$1 || a === m$1 || a === g$1 || a === f$7 || a === p$1 || a === q$1 || "object" === typeof a && null !== a && (a.$$typeof === t$1 || a.$$typeof === r$1 || a.$$typeof === h$1 || a.$$typeof === k$1 || a.$$typeof === n$1 || a.$$typeof === w$1 || a.$$typeof === x$1 || a.$$typeof === y$2 || a.$$typeof === v$1);
|
|
14749
|
+
};
|
|
14750
|
+
|
|
14751
|
+
var typeOf$1 = z$1;
|
|
14752
|
+
var reactIs_production_min$1 = {
|
|
14753
|
+
AsyncMode: AsyncMode$1,
|
|
14754
|
+
ConcurrentMode: ConcurrentMode$1,
|
|
14755
|
+
ContextConsumer: ContextConsumer$1,
|
|
14756
|
+
ContextProvider: ContextProvider$1,
|
|
14757
|
+
Element: Element$1,
|
|
14758
|
+
ForwardRef: ForwardRef$1,
|
|
14759
|
+
Fragment: Fragment$1,
|
|
14760
|
+
Lazy: Lazy$1,
|
|
14761
|
+
Memo: Memo$1,
|
|
14762
|
+
Portal: Portal$1,
|
|
14763
|
+
Profiler: Profiler$1,
|
|
14764
|
+
StrictMode: StrictMode$1,
|
|
14765
|
+
Suspense: Suspense$1,
|
|
14766
|
+
isAsyncMode: isAsyncMode$1,
|
|
14767
|
+
isConcurrentMode: isConcurrentMode$1,
|
|
14768
|
+
isContextConsumer: isContextConsumer$1,
|
|
14769
|
+
isContextProvider: isContextProvider$1,
|
|
14770
|
+
isElement: isElement$1,
|
|
14771
|
+
isForwardRef: isForwardRef$1,
|
|
14772
|
+
isFragment: isFragment$1,
|
|
14773
|
+
isLazy: isLazy$1,
|
|
14774
|
+
isMemo: isMemo$1,
|
|
14775
|
+
isPortal: isPortal$1,
|
|
14776
|
+
isProfiler: isProfiler$1,
|
|
14777
|
+
isStrictMode: isStrictMode$1,
|
|
14778
|
+
isSuspense: isSuspense$1,
|
|
14779
|
+
isValidElementType: isValidElementType$1,
|
|
14780
|
+
typeOf: typeOf$1
|
|
14781
|
+
};
|
|
14782
|
+
|
|
14783
|
+
var reactIs_development$1 = createCommonjsModule(function (module, exports) {
|
|
14784
|
+
});
|
|
14785
|
+
|
|
14786
|
+
var reactIs$1 = createCommonjsModule(function (module) {
|
|
14787
|
+
|
|
14788
|
+
{
|
|
14789
|
+
module.exports = reactIs_production_min$1;
|
|
14790
|
+
}
|
|
14791
|
+
});
|
|
14792
|
+
|
|
14441
14793
|
/**
|
|
14442
14794
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
14443
14795
|
*
|
|
@@ -14448,8 +14800,6 @@
|
|
|
14448
14800
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
14449
14801
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
14450
14802
|
|
|
14451
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
14452
|
-
|
|
14453
14803
|
function emptyFunction() {}
|
|
14454
14804
|
|
|
14455
14805
|
function emptyFunctionWithReset() {}
|
|
@@ -14476,6 +14826,7 @@
|
|
|
14476
14826
|
|
|
14477
14827
|
var ReactPropTypes = {
|
|
14478
14828
|
array: shim,
|
|
14829
|
+
bigint: shim,
|
|
14479
14830
|
bool: shim,
|
|
14480
14831
|
func: shim,
|
|
14481
14832
|
number: shim,
|
|
@@ -14553,9 +14904,12 @@
|
|
|
14553
14904
|
|
|
14554
14905
|
function visible(element) {
|
|
14555
14906
|
var parentElement = element;
|
|
14907
|
+
var rootNode = element.getRootNode && element.getRootNode();
|
|
14556
14908
|
|
|
14557
14909
|
while (parentElement) {
|
|
14558
|
-
if (parentElement === document.body) break;
|
|
14910
|
+
if (parentElement === document.body) break; // if we are not hidden yet, skip to checking outside the Web Component
|
|
14911
|
+
|
|
14912
|
+
if (rootNode && parentElement === rootNode) parentElement = rootNode.host.parentNode;
|
|
14559
14913
|
if (hidesContents(parentElement)) return false;
|
|
14560
14914
|
parentElement = parentElement.parentNode;
|
|
14561
14915
|
}
|
|
@@ -14577,7 +14931,10 @@
|
|
|
14577
14931
|
}
|
|
14578
14932
|
|
|
14579
14933
|
function findTabbableDescendants(element) {
|
|
14580
|
-
|
|
14934
|
+
var descendants = [].slice.call(element.querySelectorAll("*"), 0).reduce(function (finished, el) {
|
|
14935
|
+
return finished.concat(!el.shadowRoot ? [el] : findTabbableDescendants(el.shadowRoot));
|
|
14936
|
+
}, []);
|
|
14937
|
+
return descendants.filter(tabbable);
|
|
14581
14938
|
}
|
|
14582
14939
|
|
|
14583
14940
|
module.exports = exports["default"];
|
|
@@ -14620,7 +14977,6 @@
|
|
|
14620
14977
|
|
|
14621
14978
|
|
|
14622
14979
|
function log() {
|
|
14623
|
-
return;
|
|
14624
14980
|
}
|
|
14625
14981
|
/* eslint-enable no-console */
|
|
14626
14982
|
|
|
@@ -14723,6 +15079,11 @@
|
|
|
14723
15079
|
};
|
|
14724
15080
|
}
|
|
14725
15081
|
|
|
15082
|
+
function getActiveElement() {
|
|
15083
|
+
var el = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
|
|
15084
|
+
return el.activeElement.shadowRoot ? getActiveElement(el.activeElement.shadowRoot) : el.activeElement;
|
|
15085
|
+
}
|
|
15086
|
+
|
|
14726
15087
|
function scopeTab(node, event) {
|
|
14727
15088
|
var tabbable = (0, _tabbable2.default)(node);
|
|
14728
15089
|
|
|
@@ -14735,19 +15096,20 @@
|
|
|
14735
15096
|
var target = void 0;
|
|
14736
15097
|
var shiftKey = event.shiftKey;
|
|
14737
15098
|
var head = tabbable[0];
|
|
14738
|
-
var tail = tabbable[tabbable.length - 1];
|
|
15099
|
+
var tail = tabbable[tabbable.length - 1];
|
|
15100
|
+
var activeElement = getActiveElement(); // proceed with default browser behavior on tab.
|
|
14739
15101
|
// Focus on last element on shift + tab.
|
|
14740
15102
|
|
|
14741
|
-
if (node ===
|
|
15103
|
+
if (node === activeElement) {
|
|
14742
15104
|
if (!shiftKey) return;
|
|
14743
15105
|
target = tail;
|
|
14744
15106
|
}
|
|
14745
15107
|
|
|
14746
|
-
if (tail ===
|
|
15108
|
+
if (tail === activeElement && !shiftKey) {
|
|
14747
15109
|
target = head;
|
|
14748
15110
|
}
|
|
14749
15111
|
|
|
14750
|
-
if (head ===
|
|
15112
|
+
if (head === activeElement && shiftKey) {
|
|
14751
15113
|
target = tail;
|
|
14752
15114
|
}
|
|
14753
15115
|
|
|
@@ -14773,7 +15135,7 @@
|
|
|
14773
15135
|
// the focus
|
|
14774
15136
|
|
|
14775
15137
|
if (!isSafariDesktop) return;
|
|
14776
|
-
var x = tabbable.indexOf(
|
|
15138
|
+
var x = tabbable.indexOf(activeElement);
|
|
14777
15139
|
|
|
14778
15140
|
if (x > -1) {
|
|
14779
15141
|
x += shiftKey ? -1 : 1;
|
|
@@ -14904,7 +15266,6 @@
|
|
|
14904
15266
|
|
|
14905
15267
|
|
|
14906
15268
|
function log() {
|
|
14907
|
-
return;
|
|
14908
15269
|
}
|
|
14909
15270
|
/* eslint-enable no-console */
|
|
14910
15271
|
|
|
@@ -15035,7 +15396,6 @@
|
|
|
15035
15396
|
|
|
15036
15397
|
|
|
15037
15398
|
function log() {
|
|
15038
|
-
return;
|
|
15039
15399
|
}
|
|
15040
15400
|
/* eslint-enable no-console */
|
|
15041
15401
|
|
|
@@ -16378,6 +16738,8 @@
|
|
|
16378
16738
|
}));
|
|
16379
16739
|
}
|
|
16380
16740
|
|
|
16741
|
+
var _excluded = ["children", "isOpen", "onClose", "className", "contentClassName", "scrollable"];
|
|
16742
|
+
|
|
16381
16743
|
var ControlledModal = function ControlledModal(_ref) {
|
|
16382
16744
|
var _cx;
|
|
16383
16745
|
|
|
@@ -16388,7 +16750,7 @@
|
|
|
16388
16750
|
contentClassName = _ref.contentClassName,
|
|
16389
16751
|
_ref$scrollable = _ref.scrollable,
|
|
16390
16752
|
scrollable = _ref$scrollable === void 0 ? false : _ref$scrollable,
|
|
16391
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
16753
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16392
16754
|
|
|
16393
16755
|
Modal.setAppElement('body');
|
|
16394
16756
|
return /*#__PURE__*/react.createElement(Modal, Object.assign({
|
|
@@ -17667,10 +18029,10 @@
|
|
|
17667
18029
|
/**
|
|
17668
18030
|
* @name isSameDay
|
|
17669
18031
|
* @category Day Helpers
|
|
17670
|
-
* @summary Are the given dates in the same day?
|
|
18032
|
+
* @summary Are the given dates in the same day (and year and month)?
|
|
17671
18033
|
*
|
|
17672
18034
|
* @description
|
|
17673
|
-
* Are the given dates in the same day?
|
|
18035
|
+
* Are the given dates in the same day (and year and month)?
|
|
17674
18036
|
*
|
|
17675
18037
|
* ### v2.0.0 breaking changes:
|
|
17676
18038
|
*
|
|
@@ -17678,13 +18040,23 @@
|
|
|
17678
18040
|
*
|
|
17679
18041
|
* @param {Date|Number} dateLeft - the first date to check
|
|
17680
18042
|
* @param {Date|Number} dateRight - the second date to check
|
|
17681
|
-
* @returns {Boolean} the dates are in the same day
|
|
18043
|
+
* @returns {Boolean} the dates are in the same day (and year and month)
|
|
17682
18044
|
* @throws {TypeError} 2 arguments required
|
|
17683
18045
|
*
|
|
17684
18046
|
* @example
|
|
17685
18047
|
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
|
|
17686
18048
|
* var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
|
|
17687
18049
|
* //=> true
|
|
18050
|
+
*
|
|
18051
|
+
* @example
|
|
18052
|
+
* // Are 4 September and 4 October in the same day?
|
|
18053
|
+
* var result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
|
|
18054
|
+
* //=> false
|
|
18055
|
+
*
|
|
18056
|
+
* @example
|
|
18057
|
+
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
|
|
18058
|
+
* var result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
|
|
18059
|
+
* //=> false
|
|
17688
18060
|
*/
|
|
17689
18061
|
|
|
17690
18062
|
function isSameDay(dirtyDateLeft, dirtyDateRight) {
|