@abgov/jsonforms-components 1.14.3 → 1.14.5
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/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import React, { createContext, useContext, useEffect, useMemo, useState, useCallback } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { GoAFormItem, GoAInput, GoATextArea, GoACallout, GoAInputDate, GoAInputDateTime, GoAInputTime, GoADropdown, GoADropdownItem, GoARadioGroup, GoARadioItem, GoACheckbox, GoAGrid, GoAFormStepper, GoAFormStep, GoAPages, GoAButton, GoAModal, GoAButtonGroup, GoAIconButton, GoAFileUploadInput, GoACircularProgress, GoAContainer, GoADetails } from '@abgov/react-components';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { rankWith,
|
|
6
|
-
import {
|
|
5
|
+
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, isDescriptionHidden, getAjv, isVisible, isEnabled, deriveLabelForUISchemaElement, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, withIncreasedRank, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
|
|
6
|
+
import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, useJsonForms, JsonFormsDispatch, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
|
|
7
7
|
import merge from 'lodash/merge';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import isEmpty$1 from 'lodash/isEmpty';
|
|
@@ -12,7 +12,7 @@ import Ajv from 'ajv';
|
|
|
12
12
|
|
|
13
13
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
14
14
|
|
|
15
|
-
var fails$
|
|
15
|
+
var fails$m = function (exec) {
|
|
16
16
|
try {
|
|
17
17
|
return !!exec();
|
|
18
18
|
} catch (error) {
|
|
@@ -20,9 +20,9 @@ var fails$i = function (exec) {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
var fails$
|
|
23
|
+
var fails$l = fails$m;
|
|
24
24
|
|
|
25
|
-
var functionBindNative = !fails$
|
|
25
|
+
var functionBindNative = !fails$l(function () {
|
|
26
26
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
27
27
|
var test = (function () { /* empty */ }).bind();
|
|
28
28
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -32,38 +32,38 @@ var functionBindNative = !fails$h(function () {
|
|
|
32
32
|
var NATIVE_BIND$2 = functionBindNative;
|
|
33
33
|
|
|
34
34
|
var FunctionPrototype$2 = Function.prototype;
|
|
35
|
-
var call$
|
|
36
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
35
|
+
var call$e = FunctionPrototype$2.call;
|
|
36
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
|
|
37
37
|
|
|
38
38
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
39
39
|
return function () {
|
|
40
|
-
return call$
|
|
40
|
+
return call$e.apply(fn, arguments);
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
var uncurryThis$
|
|
44
|
+
var uncurryThis$l = functionUncurryThis;
|
|
45
45
|
|
|
46
|
-
var toString$
|
|
47
|
-
var stringSlice$6 = uncurryThis$
|
|
46
|
+
var toString$b = uncurryThis$l({}.toString);
|
|
47
|
+
var stringSlice$6 = uncurryThis$l(''.slice);
|
|
48
48
|
|
|
49
49
|
var classofRaw$1 = function (it) {
|
|
50
|
-
return stringSlice$6(toString$
|
|
50
|
+
return stringSlice$6(toString$b(it), 8, -1);
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
var uncurryThis$
|
|
54
|
-
var fails$
|
|
55
|
-
var classof$
|
|
53
|
+
var uncurryThis$k = functionUncurryThis;
|
|
54
|
+
var fails$k = fails$m;
|
|
55
|
+
var classof$6 = classofRaw$1;
|
|
56
56
|
|
|
57
57
|
var $Object$4 = Object;
|
|
58
|
-
var split = uncurryThis$
|
|
58
|
+
var split = uncurryThis$k(''.split);
|
|
59
59
|
|
|
60
60
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
61
|
-
var indexedObject = fails$
|
|
61
|
+
var indexedObject = fails$k(function () {
|
|
62
62
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
63
63
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
64
64
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
65
65
|
}) ? function (it) {
|
|
66
|
-
return classof$
|
|
66
|
+
return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
67
67
|
} : $Object$4;
|
|
68
68
|
|
|
69
69
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -74,21 +74,21 @@ var isNullOrUndefined$3 = function (it) {
|
|
|
74
74
|
|
|
75
75
|
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
76
76
|
|
|
77
|
-
var $TypeError$
|
|
77
|
+
var $TypeError$a = TypeError;
|
|
78
78
|
|
|
79
79
|
// `RequireObjectCoercible` abstract operation
|
|
80
80
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
81
|
-
var requireObjectCoercible$
|
|
82
|
-
if (isNullOrUndefined$2(it)) throw new $TypeError$
|
|
81
|
+
var requireObjectCoercible$7 = function (it) {
|
|
82
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
|
|
83
83
|
return it;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// toObject with fallback for non-array-like ES3 strings
|
|
87
87
|
var IndexedObject$1 = indexedObject;
|
|
88
|
-
var requireObjectCoercible$
|
|
88
|
+
var requireObjectCoercible$6 = requireObjectCoercible$7;
|
|
89
89
|
|
|
90
90
|
var toIndexedObject$5 = function (it) {
|
|
91
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
91
|
+
return IndexedObject$1(requireObjectCoercible$6(it));
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
var check = function (it) {
|
|
@@ -96,7 +96,7 @@ var check = function (it) {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
99
|
-
var global$
|
|
99
|
+
var global$g =
|
|
100
100
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
101
101
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
102
102
|
check(typeof window == 'object' && window) ||
|
|
@@ -109,30 +109,30 @@ var global$f =
|
|
|
109
109
|
|
|
110
110
|
var sharedStore = {exports: {}};
|
|
111
111
|
|
|
112
|
-
var global$
|
|
112
|
+
var global$f = global$g;
|
|
113
113
|
|
|
114
114
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
115
|
-
var defineProperty$
|
|
115
|
+
var defineProperty$7 = Object.defineProperty;
|
|
116
116
|
|
|
117
117
|
var defineGlobalProperty$3 = function (key, value) {
|
|
118
118
|
try {
|
|
119
|
-
defineProperty$
|
|
119
|
+
defineProperty$7(global$f, key, { value: value, configurable: true, writable: true });
|
|
120
120
|
} catch (error) {
|
|
121
|
-
global$
|
|
121
|
+
global$f[key] = value;
|
|
122
122
|
} return value;
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
var globalThis$1 = global$
|
|
125
|
+
var globalThis$1 = global$g;
|
|
126
126
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
127
127
|
|
|
128
128
|
var SHARED = '__core-js_shared__';
|
|
129
129
|
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
130
130
|
|
|
131
131
|
(store$3.versions || (store$3.versions = [])).push({
|
|
132
|
-
version: '3.36.
|
|
132
|
+
version: '3.36.1',
|
|
133
133
|
mode: 'global',
|
|
134
134
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
135
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.36.
|
|
135
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
136
136
|
source: 'https://github.com/zloirock/core-js'
|
|
137
137
|
});
|
|
138
138
|
|
|
@@ -142,45 +142,45 @@ var shared$4 = function (key, value) {
|
|
|
142
142
|
return store$2[key] || (store$2[key] = value || {});
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
var requireObjectCoercible$
|
|
145
|
+
var requireObjectCoercible$5 = requireObjectCoercible$7;
|
|
146
146
|
|
|
147
147
|
var $Object$3 = Object;
|
|
148
148
|
|
|
149
149
|
// `ToObject` abstract operation
|
|
150
150
|
// https://tc39.es/ecma262/#sec-toobject
|
|
151
|
-
var toObject$
|
|
152
|
-
return $Object$3(requireObjectCoercible$
|
|
151
|
+
var toObject$6 = function (argument) {
|
|
152
|
+
return $Object$3(requireObjectCoercible$5(argument));
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
var uncurryThis$
|
|
156
|
-
var toObject$
|
|
155
|
+
var uncurryThis$j = functionUncurryThis;
|
|
156
|
+
var toObject$5 = toObject$6;
|
|
157
157
|
|
|
158
|
-
var hasOwnProperty = uncurryThis$
|
|
158
|
+
var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
|
|
159
159
|
|
|
160
160
|
// `HasOwnProperty` abstract operation
|
|
161
161
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
162
162
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
163
163
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
164
|
-
return hasOwnProperty(toObject$
|
|
164
|
+
return hasOwnProperty(toObject$5(it), key);
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
var uncurryThis$
|
|
167
|
+
var uncurryThis$i = functionUncurryThis;
|
|
168
168
|
|
|
169
169
|
var id = 0;
|
|
170
170
|
var postfix = Math.random();
|
|
171
|
-
var toString$
|
|
171
|
+
var toString$a = uncurryThis$i(1.0.toString);
|
|
172
172
|
|
|
173
173
|
var uid$2 = function (key) {
|
|
174
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
174
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
178
178
|
|
|
179
|
-
var global$
|
|
179
|
+
var global$e = global$g;
|
|
180
180
|
var userAgent = engineUserAgent;
|
|
181
181
|
|
|
182
|
-
var process = global$
|
|
183
|
-
var Deno = global$
|
|
182
|
+
var process = global$e.process;
|
|
183
|
+
var Deno = global$e.Deno;
|
|
184
184
|
var versions = process && process.versions || Deno && Deno.version;
|
|
185
185
|
var v8 = versions && versions.v8;
|
|
186
186
|
var match, version;
|
|
@@ -206,44 +206,44 @@ var engineV8Version = version;
|
|
|
206
206
|
|
|
207
207
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
208
208
|
var V8_VERSION = engineV8Version;
|
|
209
|
-
var fails$
|
|
210
|
-
var global$
|
|
209
|
+
var fails$j = fails$m;
|
|
210
|
+
var global$d = global$g;
|
|
211
211
|
|
|
212
|
-
var $String$
|
|
212
|
+
var $String$6 = global$d.String;
|
|
213
213
|
|
|
214
214
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
215
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
215
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$j(function () {
|
|
216
216
|
var symbol = Symbol('symbol detection');
|
|
217
217
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
218
218
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
219
219
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
220
220
|
// of course, fail.
|
|
221
|
-
return !$String$
|
|
221
|
+
return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
222
222
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
223
223
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
224
224
|
});
|
|
225
225
|
|
|
226
226
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
227
|
-
var NATIVE_SYMBOL$
|
|
227
|
+
var NATIVE_SYMBOL$3 = symbolConstructorDetection;
|
|
228
228
|
|
|
229
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
|
229
|
+
var useSymbolAsUid = NATIVE_SYMBOL$3
|
|
230
230
|
&& !Symbol.sham
|
|
231
231
|
&& typeof Symbol.iterator == 'symbol';
|
|
232
232
|
|
|
233
|
-
var global$
|
|
233
|
+
var global$c = global$g;
|
|
234
234
|
var shared$3 = shared$4;
|
|
235
|
-
var hasOwn$
|
|
235
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
236
236
|
var uid$1 = uid$2;
|
|
237
|
-
var NATIVE_SYMBOL$
|
|
237
|
+
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
238
238
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
239
239
|
|
|
240
|
-
var Symbol$1 = global$
|
|
240
|
+
var Symbol$1 = global$c.Symbol;
|
|
241
241
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
242
242
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
243
243
|
|
|
244
244
|
var wellKnownSymbol$c = function (name) {
|
|
245
|
-
if (!hasOwn$
|
|
246
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$
|
|
245
|
+
if (!hasOwn$b(WellKnownSymbolsStore, name)) {
|
|
246
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$2 && hasOwn$b(Symbol$1, name)
|
|
247
247
|
? Symbol$1[name]
|
|
248
248
|
: createWellKnownSymbol('Symbol.' + name);
|
|
249
249
|
} return WellKnownSymbolsStore[name];
|
|
@@ -255,45 +255,45 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
255
255
|
// `IsCallable` abstract operation
|
|
256
256
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
257
257
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
258
|
-
var isCallable$
|
|
258
|
+
var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
259
259
|
return typeof argument == 'function' || argument === documentAll;
|
|
260
260
|
} : function (argument) {
|
|
261
261
|
return typeof argument == 'function';
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
var isCallable$
|
|
264
|
+
var isCallable$k = isCallable$l;
|
|
265
265
|
|
|
266
|
-
var isObject$
|
|
267
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
266
|
+
var isObject$b = function (it) {
|
|
267
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
-
var isObject$
|
|
270
|
+
var isObject$a = isObject$b;
|
|
271
271
|
|
|
272
|
-
var $String$
|
|
273
|
-
var $TypeError$
|
|
272
|
+
var $String$5 = String;
|
|
273
|
+
var $TypeError$9 = TypeError;
|
|
274
274
|
|
|
275
275
|
// `Assert: Type(argument) is Object`
|
|
276
276
|
var anObject$9 = function (argument) {
|
|
277
|
-
if (isObject$
|
|
278
|
-
throw new $TypeError$
|
|
277
|
+
if (isObject$a(argument)) return argument;
|
|
278
|
+
throw new $TypeError$9($String$5(argument) + ' is not an object');
|
|
279
279
|
};
|
|
280
280
|
|
|
281
281
|
var objectDefineProperties = {};
|
|
282
282
|
|
|
283
|
-
var fails$
|
|
283
|
+
var fails$i = fails$m;
|
|
284
284
|
|
|
285
285
|
// Detect IE8's incomplete defineProperty implementation
|
|
286
|
-
var descriptors = !fails$
|
|
286
|
+
var descriptors = !fails$i(function () {
|
|
287
287
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
288
288
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
289
289
|
});
|
|
290
290
|
|
|
291
|
-
var DESCRIPTORS$
|
|
292
|
-
var fails$
|
|
291
|
+
var DESCRIPTORS$c = descriptors;
|
|
292
|
+
var fails$h = fails$m;
|
|
293
293
|
|
|
294
294
|
// V8 ~ Chrome 36-
|
|
295
295
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
296
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
296
|
+
var v8PrototypeDefineBug = DESCRIPTORS$c && fails$h(function () {
|
|
297
297
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
298
298
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
299
299
|
value: 42,
|
|
@@ -303,23 +303,23 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$d(function () {
|
|
|
303
303
|
|
|
304
304
|
var objectDefineProperty = {};
|
|
305
305
|
|
|
306
|
-
var global$
|
|
307
|
-
var isObject$
|
|
306
|
+
var global$b = global$g;
|
|
307
|
+
var isObject$9 = isObject$b;
|
|
308
308
|
|
|
309
|
-
var document$1 = global$
|
|
309
|
+
var document$1 = global$b.document;
|
|
310
310
|
// typeof document.createElement is 'object' in old IE
|
|
311
|
-
var EXISTS$1 = isObject$
|
|
311
|
+
var EXISTS$1 = isObject$9(document$1) && isObject$9(document$1.createElement);
|
|
312
312
|
|
|
313
313
|
var documentCreateElement$2 = function (it) {
|
|
314
314
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
315
315
|
};
|
|
316
316
|
|
|
317
|
-
var DESCRIPTORS$
|
|
318
|
-
var fails$
|
|
317
|
+
var DESCRIPTORS$b = descriptors;
|
|
318
|
+
var fails$g = fails$m;
|
|
319
319
|
var createElement = documentCreateElement$2;
|
|
320
320
|
|
|
321
321
|
// Thanks to IE8 for its funny defineProperty
|
|
322
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
322
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$g(function () {
|
|
323
323
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
324
324
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
325
325
|
get: function () { return 7; }
|
|
@@ -328,60 +328,60 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$c(function () {
|
|
|
328
328
|
|
|
329
329
|
var NATIVE_BIND$1 = functionBindNative;
|
|
330
330
|
|
|
331
|
-
var call$
|
|
331
|
+
var call$d = Function.prototype.call;
|
|
332
332
|
|
|
333
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
|
334
|
-
return call$
|
|
333
|
+
var functionCall = NATIVE_BIND$1 ? call$d.bind(call$d) : function () {
|
|
334
|
+
return call$d.apply(call$d, arguments);
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
var global$
|
|
338
|
-
var isCallable$
|
|
337
|
+
var global$a = global$g;
|
|
338
|
+
var isCallable$j = isCallable$l;
|
|
339
339
|
|
|
340
340
|
var aFunction = function (argument) {
|
|
341
|
-
return isCallable$
|
|
341
|
+
return isCallable$j(argument) ? argument : undefined;
|
|
342
342
|
};
|
|
343
343
|
|
|
344
|
-
var getBuiltIn$
|
|
345
|
-
return arguments.length < 2 ? aFunction(global$
|
|
344
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
345
|
+
return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
var uncurryThis$
|
|
348
|
+
var uncurryThis$h = functionUncurryThis;
|
|
349
349
|
|
|
350
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
350
|
+
var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
|
|
351
351
|
|
|
352
|
-
var getBuiltIn$
|
|
353
|
-
var isCallable$
|
|
354
|
-
var isPrototypeOf$
|
|
352
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
353
|
+
var isCallable$i = isCallable$l;
|
|
354
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
355
355
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
356
356
|
|
|
357
357
|
var $Object$2 = Object;
|
|
358
358
|
|
|
359
|
-
var isSymbol$
|
|
359
|
+
var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
|
|
360
360
|
return typeof it == 'symbol';
|
|
361
361
|
} : function (it) {
|
|
362
|
-
var $Symbol = getBuiltIn$
|
|
363
|
-
return isCallable$
|
|
362
|
+
var $Symbol = getBuiltIn$4('Symbol');
|
|
363
|
+
return isCallable$i($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it));
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
-
var $String$
|
|
366
|
+
var $String$4 = String;
|
|
367
367
|
|
|
368
368
|
var tryToString$1 = function (argument) {
|
|
369
369
|
try {
|
|
370
|
-
return $String$
|
|
370
|
+
return $String$4(argument);
|
|
371
371
|
} catch (error) {
|
|
372
372
|
return 'Object';
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
|
|
376
|
-
var isCallable$
|
|
376
|
+
var isCallable$h = isCallable$l;
|
|
377
377
|
var tryToString = tryToString$1;
|
|
378
378
|
|
|
379
|
-
var $TypeError$
|
|
379
|
+
var $TypeError$8 = TypeError;
|
|
380
380
|
|
|
381
381
|
// `Assert: IsCallable(argument) is true`
|
|
382
382
|
var aCallable$2 = function (argument) {
|
|
383
|
-
if (isCallable$
|
|
384
|
-
throw new $TypeError$
|
|
383
|
+
if (isCallable$h(argument)) return argument;
|
|
384
|
+
throw new $TypeError$8(tryToString(argument) + ' is not a function');
|
|
385
385
|
};
|
|
386
386
|
|
|
387
387
|
var aCallable$1 = aCallable$2;
|
|
@@ -394,65 +394,65 @@ var getMethod$2 = function (V, P) {
|
|
|
394
394
|
return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
|
|
395
395
|
};
|
|
396
396
|
|
|
397
|
-
var call$
|
|
398
|
-
var isCallable$
|
|
399
|
-
var isObject$
|
|
397
|
+
var call$c = functionCall;
|
|
398
|
+
var isCallable$g = isCallable$l;
|
|
399
|
+
var isObject$8 = isObject$b;
|
|
400
400
|
|
|
401
|
-
var $TypeError$
|
|
401
|
+
var $TypeError$7 = TypeError;
|
|
402
402
|
|
|
403
403
|
// `OrdinaryToPrimitive` abstract operation
|
|
404
404
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
405
405
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
406
406
|
var fn, val;
|
|
407
|
-
if (pref === 'string' && isCallable$
|
|
408
|
-
if (isCallable$
|
|
409
|
-
if (pref !== 'string' && isCallable$
|
|
410
|
-
throw new $TypeError$
|
|
407
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
|
|
408
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$8(val = call$c(fn, input))) return val;
|
|
409
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
|
|
410
|
+
throw new $TypeError$7("Can't convert object to primitive value");
|
|
411
411
|
};
|
|
412
412
|
|
|
413
|
-
var call$
|
|
414
|
-
var isObject$
|
|
415
|
-
var isSymbol$
|
|
413
|
+
var call$b = functionCall;
|
|
414
|
+
var isObject$7 = isObject$b;
|
|
415
|
+
var isSymbol$2 = isSymbol$3;
|
|
416
416
|
var getMethod$1 = getMethod$2;
|
|
417
417
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
418
418
|
var wellKnownSymbol$b = wellKnownSymbol$c;
|
|
419
419
|
|
|
420
|
-
var $TypeError$
|
|
420
|
+
var $TypeError$6 = TypeError;
|
|
421
421
|
var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
|
|
422
422
|
|
|
423
423
|
// `ToPrimitive` abstract operation
|
|
424
424
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
425
425
|
var toPrimitive$1 = function (input, pref) {
|
|
426
|
-
if (!isObject$
|
|
426
|
+
if (!isObject$7(input) || isSymbol$2(input)) return input;
|
|
427
427
|
var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
|
|
428
428
|
var result;
|
|
429
429
|
if (exoticToPrim) {
|
|
430
430
|
if (pref === undefined) pref = 'default';
|
|
431
|
-
result = call$
|
|
432
|
-
if (!isObject$
|
|
433
|
-
throw new $TypeError$
|
|
431
|
+
result = call$b(exoticToPrim, input, pref);
|
|
432
|
+
if (!isObject$7(result) || isSymbol$2(result)) return result;
|
|
433
|
+
throw new $TypeError$6("Can't convert object to primitive value");
|
|
434
434
|
}
|
|
435
435
|
if (pref === undefined) pref = 'number';
|
|
436
436
|
return ordinaryToPrimitive(input, pref);
|
|
437
437
|
};
|
|
438
438
|
|
|
439
439
|
var toPrimitive = toPrimitive$1;
|
|
440
|
-
var isSymbol = isSymbol$
|
|
440
|
+
var isSymbol$1 = isSymbol$3;
|
|
441
441
|
|
|
442
442
|
// `ToPropertyKey` abstract operation
|
|
443
443
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
444
444
|
var toPropertyKey$2 = function (argument) {
|
|
445
445
|
var key = toPrimitive(argument, 'string');
|
|
446
|
-
return isSymbol(key) ? key : key + '';
|
|
446
|
+
return isSymbol$1(key) ? key : key + '';
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
-
var DESCRIPTORS$
|
|
449
|
+
var DESCRIPTORS$a = descriptors;
|
|
450
450
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
451
451
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
452
452
|
var anObject$8 = anObject$9;
|
|
453
453
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
454
454
|
|
|
455
|
-
var $TypeError$
|
|
455
|
+
var $TypeError$5 = TypeError;
|
|
456
456
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
457
457
|
var $defineProperty = Object.defineProperty;
|
|
458
458
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -463,7 +463,7 @@ var WRITABLE = 'writable';
|
|
|
463
463
|
|
|
464
464
|
// `Object.defineProperty` method
|
|
465
465
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
466
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
466
|
+
objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
467
467
|
anObject$8(O);
|
|
468
468
|
P = toPropertyKey$1(P);
|
|
469
469
|
anObject$8(Attributes);
|
|
@@ -485,7 +485,7 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
485
485
|
if (IE8_DOM_DEFINE$1) try {
|
|
486
486
|
return $defineProperty(O, P, Attributes);
|
|
487
487
|
} catch (error) { /* empty */ }
|
|
488
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
488
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
|
|
489
489
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
490
490
|
return O;
|
|
491
491
|
};
|
|
@@ -505,13 +505,13 @@ var trunc = mathTrunc;
|
|
|
505
505
|
|
|
506
506
|
// `ToIntegerOrInfinity` abstract operation
|
|
507
507
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
508
|
-
var toIntegerOrInfinity$
|
|
508
|
+
var toIntegerOrInfinity$6 = function (argument) {
|
|
509
509
|
var number = +argument;
|
|
510
510
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
511
511
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
var toIntegerOrInfinity$
|
|
514
|
+
var toIntegerOrInfinity$5 = toIntegerOrInfinity$6;
|
|
515
515
|
|
|
516
516
|
var max$1 = Math.max;
|
|
517
517
|
var min$2 = Math.min;
|
|
@@ -520,18 +520,18 @@ var min$2 = Math.min;
|
|
|
520
520
|
// Let integer be ? ToInteger(index).
|
|
521
521
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
522
522
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
523
|
-
var integer = toIntegerOrInfinity$
|
|
523
|
+
var integer = toIntegerOrInfinity$5(index);
|
|
524
524
|
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
|
525
525
|
};
|
|
526
526
|
|
|
527
|
-
var toIntegerOrInfinity$
|
|
527
|
+
var toIntegerOrInfinity$4 = toIntegerOrInfinity$6;
|
|
528
528
|
|
|
529
529
|
var min$1 = Math.min;
|
|
530
530
|
|
|
531
531
|
// `ToLength` abstract operation
|
|
532
532
|
// https://tc39.es/ecma262/#sec-tolength
|
|
533
533
|
var toLength$2 = function (argument) {
|
|
534
|
-
var len = toIntegerOrInfinity$
|
|
534
|
+
var len = toIntegerOrInfinity$4(argument);
|
|
535
535
|
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
536
536
|
};
|
|
537
537
|
|
|
@@ -539,19 +539,19 @@ var toLength$1 = toLength$2;
|
|
|
539
539
|
|
|
540
540
|
// `LengthOfArrayLike` abstract operation
|
|
541
541
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
542
|
-
var lengthOfArrayLike$
|
|
542
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
543
543
|
return toLength$1(obj.length);
|
|
544
544
|
};
|
|
545
545
|
|
|
546
546
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
547
547
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
548
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
548
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
549
549
|
|
|
550
550
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
551
551
|
var createMethod$1 = function (IS_INCLUDES) {
|
|
552
552
|
return function ($this, el, fromIndex) {
|
|
553
553
|
var O = toIndexedObject$4($this);
|
|
554
|
-
var length = lengthOfArrayLike(O);
|
|
554
|
+
var length = lengthOfArrayLike$2(O);
|
|
555
555
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
556
556
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
557
557
|
var value;
|
|
@@ -579,23 +579,23 @@ var arrayIncludes = {
|
|
|
579
579
|
|
|
580
580
|
var hiddenKeys$4 = {};
|
|
581
581
|
|
|
582
|
-
var uncurryThis$
|
|
583
|
-
var hasOwn$
|
|
582
|
+
var uncurryThis$g = functionUncurryThis;
|
|
583
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
584
584
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
585
585
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
586
586
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
587
587
|
|
|
588
|
-
var push$
|
|
588
|
+
var push$2 = uncurryThis$g([].push);
|
|
589
589
|
|
|
590
590
|
var objectKeysInternal = function (object, names) {
|
|
591
591
|
var O = toIndexedObject$3(object);
|
|
592
592
|
var i = 0;
|
|
593
593
|
var result = [];
|
|
594
594
|
var key;
|
|
595
|
-
for (key in O) !hasOwn$
|
|
595
|
+
for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$2(result, key);
|
|
596
596
|
// Don't enum bug & hidden keys
|
|
597
|
-
while (names.length > i) if (hasOwn$
|
|
598
|
-
~indexOf$1(result, key) || push$
|
|
597
|
+
while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
|
|
598
|
+
~indexOf$1(result, key) || push$2(result, key);
|
|
599
599
|
}
|
|
600
600
|
return result;
|
|
601
601
|
};
|
|
@@ -621,7 +621,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
621
621
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
622
622
|
};
|
|
623
623
|
|
|
624
|
-
var DESCRIPTORS$
|
|
624
|
+
var DESCRIPTORS$9 = descriptors;
|
|
625
625
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
626
626
|
var definePropertyModule$3 = objectDefineProperty;
|
|
627
627
|
var anObject$7 = anObject$9;
|
|
@@ -631,7 +631,7 @@ var objectKeys$1 = objectKeys$2;
|
|
|
631
631
|
// `Object.defineProperties` method
|
|
632
632
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
633
633
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
634
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
634
|
+
objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
635
635
|
anObject$7(O);
|
|
636
636
|
var props = toIndexedObject$2(Properties);
|
|
637
637
|
var keys = objectKeys$1(Properties);
|
|
@@ -642,9 +642,9 @@ objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
642
642
|
return O;
|
|
643
643
|
};
|
|
644
644
|
|
|
645
|
-
var getBuiltIn$
|
|
645
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
646
646
|
|
|
647
|
-
var html$1 = getBuiltIn$
|
|
647
|
+
var html$1 = getBuiltIn$3('document', 'documentElement');
|
|
648
648
|
|
|
649
649
|
var shared$2 = shared$4;
|
|
650
650
|
var uid = uid$2;
|
|
@@ -741,7 +741,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
741
741
|
|
|
742
742
|
var wellKnownSymbol$a = wellKnownSymbol$c;
|
|
743
743
|
var create$2 = objectCreate;
|
|
744
|
-
var defineProperty$
|
|
744
|
+
var defineProperty$6 = objectDefineProperty.f;
|
|
745
745
|
|
|
746
746
|
var UNSCOPABLES = wellKnownSymbol$a('unscopables');
|
|
747
747
|
var ArrayPrototype = Array.prototype;
|
|
@@ -749,27 +749,27 @@ var ArrayPrototype = Array.prototype;
|
|
|
749
749
|
// Array.prototype[@@unscopables]
|
|
750
750
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
751
751
|
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
752
|
-
defineProperty$
|
|
752
|
+
defineProperty$6(ArrayPrototype, UNSCOPABLES, {
|
|
753
753
|
configurable: true,
|
|
754
754
|
value: create$2(null)
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
// add a key to Array.prototype[@@unscopables]
|
|
759
|
-
var addToUnscopables$
|
|
759
|
+
var addToUnscopables$3 = function (key) {
|
|
760
760
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
761
761
|
};
|
|
762
762
|
|
|
763
763
|
var iterators = {};
|
|
764
764
|
|
|
765
|
-
var global$
|
|
766
|
-
var isCallable$
|
|
765
|
+
var global$9 = global$g;
|
|
766
|
+
var isCallable$f = isCallable$l;
|
|
767
767
|
|
|
768
|
-
var WeakMap$1 = global$
|
|
768
|
+
var WeakMap$1 = global$9.WeakMap;
|
|
769
769
|
|
|
770
|
-
var weakMapBasicDetection = isCallable$
|
|
770
|
+
var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
771
771
|
|
|
772
|
-
var createPropertyDescriptor$
|
|
772
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
773
773
|
return {
|
|
774
774
|
enumerable: !(bitmap & 1),
|
|
775
775
|
configurable: !(bitmap & 2),
|
|
@@ -778,29 +778,29 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
778
778
|
};
|
|
779
779
|
};
|
|
780
780
|
|
|
781
|
-
var DESCRIPTORS$
|
|
781
|
+
var DESCRIPTORS$8 = descriptors;
|
|
782
782
|
var definePropertyModule$2 = objectDefineProperty;
|
|
783
|
-
var createPropertyDescriptor$
|
|
783
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
784
784
|
|
|
785
|
-
var createNonEnumerableProperty$
|
|
786
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$
|
|
785
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$8 ? function (object, key, value) {
|
|
786
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$3(1, value));
|
|
787
787
|
} : function (object, key, value) {
|
|
788
788
|
object[key] = value;
|
|
789
789
|
return object;
|
|
790
790
|
};
|
|
791
791
|
|
|
792
792
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
793
|
-
var global$
|
|
794
|
-
var isObject$
|
|
795
|
-
var createNonEnumerableProperty$
|
|
796
|
-
var hasOwn$
|
|
793
|
+
var global$8 = global$g;
|
|
794
|
+
var isObject$6 = isObject$b;
|
|
795
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
796
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
797
797
|
var shared$1 = sharedStore.exports;
|
|
798
798
|
var sharedKey$1 = sharedKey$3;
|
|
799
799
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
800
800
|
|
|
801
801
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
802
|
-
var TypeError$1 = global$
|
|
803
|
-
var WeakMap = global$
|
|
802
|
+
var TypeError$1 = global$8.TypeError;
|
|
803
|
+
var WeakMap = global$8.WeakMap;
|
|
804
804
|
var set, get, has;
|
|
805
805
|
|
|
806
806
|
var enforce = function (it) {
|
|
@@ -810,7 +810,7 @@ var enforce = function (it) {
|
|
|
810
810
|
var getterFor = function (TYPE) {
|
|
811
811
|
return function (it) {
|
|
812
812
|
var state;
|
|
813
|
-
if (!isObject$
|
|
813
|
+
if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
|
|
814
814
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
815
815
|
} return state;
|
|
816
816
|
};
|
|
@@ -839,16 +839,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
839
839
|
var STATE = sharedKey$1('state');
|
|
840
840
|
hiddenKeys$1[STATE] = true;
|
|
841
841
|
set = function (it, metadata) {
|
|
842
|
-
if (hasOwn$
|
|
842
|
+
if (hasOwn$9(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
843
843
|
metadata.facade = it;
|
|
844
|
-
createNonEnumerableProperty$
|
|
844
|
+
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
845
845
|
return metadata;
|
|
846
846
|
};
|
|
847
847
|
get = function (it) {
|
|
848
|
-
return hasOwn$
|
|
848
|
+
return hasOwn$9(it, STATE) ? it[STATE] : {};
|
|
849
849
|
};
|
|
850
850
|
has = function (it) {
|
|
851
|
-
return hasOwn$
|
|
851
|
+
return hasOwn$9(it, STATE);
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
|
|
@@ -866,25 +866,25 @@ var objectPropertyIsEnumerable = {};
|
|
|
866
866
|
|
|
867
867
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
868
868
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
869
|
-
var getOwnPropertyDescriptor$
|
|
869
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
870
870
|
|
|
871
871
|
// Nashorn ~ JDK8 bug
|
|
872
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
872
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
873
873
|
|
|
874
874
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
875
875
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
876
876
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
877
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
877
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
878
878
|
return !!descriptor && descriptor.enumerable;
|
|
879
879
|
} : $propertyIsEnumerable;
|
|
880
880
|
|
|
881
|
-
var DESCRIPTORS$
|
|
882
|
-
var call$
|
|
881
|
+
var DESCRIPTORS$7 = descriptors;
|
|
882
|
+
var call$a = functionCall;
|
|
883
883
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
884
|
-
var createPropertyDescriptor$
|
|
884
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
885
885
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
886
886
|
var toPropertyKey = toPropertyKey$2;
|
|
887
|
-
var hasOwn$
|
|
887
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
888
888
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
889
889
|
|
|
890
890
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -892,28 +892,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
892
892
|
|
|
893
893
|
// `Object.getOwnPropertyDescriptor` method
|
|
894
894
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
895
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
895
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
896
896
|
O = toIndexedObject$1(O);
|
|
897
897
|
P = toPropertyKey(P);
|
|
898
898
|
if (IE8_DOM_DEFINE) try {
|
|
899
899
|
return $getOwnPropertyDescriptor(O, P);
|
|
900
900
|
} catch (error) { /* empty */ }
|
|
901
|
-
if (hasOwn$
|
|
901
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
902
902
|
};
|
|
903
903
|
|
|
904
904
|
var makeBuiltIn$3 = {exports: {}};
|
|
905
905
|
|
|
906
|
-
var DESCRIPTORS$
|
|
907
|
-
var hasOwn$
|
|
906
|
+
var DESCRIPTORS$6 = descriptors;
|
|
907
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
908
908
|
|
|
909
909
|
var FunctionPrototype$1 = Function.prototype;
|
|
910
910
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
911
|
-
var getDescriptor = DESCRIPTORS$
|
|
911
|
+
var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
|
|
912
912
|
|
|
913
|
-
var EXISTS = hasOwn$
|
|
913
|
+
var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
|
|
914
914
|
// additional protection from minified / mangled / dropped function names
|
|
915
915
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
916
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
916
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
917
917
|
|
|
918
918
|
var functionName = {
|
|
919
919
|
EXISTS: EXISTS,
|
|
@@ -921,14 +921,14 @@ var functionName = {
|
|
|
921
921
|
CONFIGURABLE: CONFIGURABLE
|
|
922
922
|
};
|
|
923
923
|
|
|
924
|
-
var uncurryThis$
|
|
925
|
-
var isCallable$
|
|
924
|
+
var uncurryThis$f = functionUncurryThis;
|
|
925
|
+
var isCallable$e = isCallable$l;
|
|
926
926
|
var store = sharedStore.exports;
|
|
927
927
|
|
|
928
|
-
var functionToString = uncurryThis$
|
|
928
|
+
var functionToString = uncurryThis$f(Function.toString);
|
|
929
929
|
|
|
930
930
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
931
|
-
if (!isCallable$
|
|
931
|
+
if (!isCallable$e(store.inspectSource)) {
|
|
932
932
|
store.inspectSource = function (it) {
|
|
933
933
|
return functionToString(it);
|
|
934
934
|
};
|
|
@@ -936,51 +936,51 @@ if (!isCallable$a(store.inspectSource)) {
|
|
|
936
936
|
|
|
937
937
|
var inspectSource$1 = store.inspectSource;
|
|
938
938
|
|
|
939
|
-
var uncurryThis$
|
|
940
|
-
var fails$
|
|
941
|
-
var isCallable$
|
|
942
|
-
var hasOwn$
|
|
943
|
-
var DESCRIPTORS$
|
|
939
|
+
var uncurryThis$e = functionUncurryThis;
|
|
940
|
+
var fails$f = fails$m;
|
|
941
|
+
var isCallable$d = isCallable$l;
|
|
942
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
943
|
+
var DESCRIPTORS$5 = descriptors;
|
|
944
944
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
945
945
|
var inspectSource = inspectSource$1;
|
|
946
946
|
var InternalStateModule$1 = internalState;
|
|
947
947
|
|
|
948
948
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
949
949
|
var getInternalState$2 = InternalStateModule$1.get;
|
|
950
|
-
var $String$
|
|
950
|
+
var $String$3 = String;
|
|
951
951
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
952
|
-
var defineProperty$
|
|
953
|
-
var stringSlice$5 = uncurryThis$
|
|
954
|
-
var replace$
|
|
955
|
-
var join = uncurryThis$
|
|
952
|
+
var defineProperty$5 = Object.defineProperty;
|
|
953
|
+
var stringSlice$5 = uncurryThis$e(''.slice);
|
|
954
|
+
var replace$5 = uncurryThis$e(''.replace);
|
|
955
|
+
var join = uncurryThis$e([].join);
|
|
956
956
|
|
|
957
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
958
|
-
return defineProperty$
|
|
957
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$f(function () {
|
|
958
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
959
959
|
});
|
|
960
960
|
|
|
961
961
|
var TEMPLATE = String(String).split('String');
|
|
962
962
|
|
|
963
963
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
964
|
-
if (stringSlice$5($String$
|
|
965
|
-
name = '[' + replace$
|
|
964
|
+
if (stringSlice$5($String$3(name), 0, 7) === 'Symbol(') {
|
|
965
|
+
name = '[' + replace$5($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
966
966
|
}
|
|
967
967
|
if (options && options.getter) name = 'get ' + name;
|
|
968
968
|
if (options && options.setter) name = 'set ' + name;
|
|
969
|
-
if (!hasOwn$
|
|
970
|
-
if (DESCRIPTORS$
|
|
969
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
970
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
971
971
|
else value.name = name;
|
|
972
972
|
}
|
|
973
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
974
|
-
defineProperty$
|
|
973
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
974
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
975
975
|
}
|
|
976
976
|
try {
|
|
977
|
-
if (options && hasOwn$
|
|
978
|
-
if (DESCRIPTORS$
|
|
977
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
978
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
|
|
979
979
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
980
980
|
} else if (value.prototype) value.prototype = undefined;
|
|
981
981
|
} catch (error) { /* empty */ }
|
|
982
982
|
var state = enforceInternalState(value);
|
|
983
|
-
if (!hasOwn$
|
|
983
|
+
if (!hasOwn$6(state, 'source')) {
|
|
984
984
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
985
985
|
} return value;
|
|
986
986
|
};
|
|
@@ -988,10 +988,10 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
988
988
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
989
989
|
// eslint-disable-next-line no-extend-native -- required
|
|
990
990
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
991
|
-
return isCallable$
|
|
991
|
+
return isCallable$d(this) && getInternalState$2(this).source || inspectSource(this);
|
|
992
992
|
}, 'toString');
|
|
993
993
|
|
|
994
|
-
var isCallable$
|
|
994
|
+
var isCallable$c = isCallable$l;
|
|
995
995
|
var definePropertyModule$1 = objectDefineProperty;
|
|
996
996
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
997
997
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
@@ -1000,7 +1000,7 @@ var defineBuiltIn$5 = function (O, key, value, options) {
|
|
|
1000
1000
|
if (!options) options = {};
|
|
1001
1001
|
var simple = options.enumerable;
|
|
1002
1002
|
var name = options.name !== undefined ? options.name : key;
|
|
1003
|
-
if (isCallable$
|
|
1003
|
+
if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
|
|
1004
1004
|
if (options.global) {
|
|
1005
1005
|
if (simple) O[key] = value;
|
|
1006
1006
|
else defineGlobalProperty$1(key, value);
|
|
@@ -1038,40 +1038,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1038
1038
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1039
1039
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1040
1040
|
|
|
1041
|
-
var getBuiltIn = getBuiltIn$
|
|
1042
|
-
var uncurryThis$
|
|
1041
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1042
|
+
var uncurryThis$d = functionUncurryThis;
|
|
1043
1043
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1044
1044
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1045
1045
|
var anObject$5 = anObject$9;
|
|
1046
1046
|
|
|
1047
|
-
var concat$2 = uncurryThis$
|
|
1047
|
+
var concat$2 = uncurryThis$d([].concat);
|
|
1048
1048
|
|
|
1049
1049
|
// all object keys, includes non-enumerable and symbols
|
|
1050
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1050
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1051
1051
|
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
1052
1052
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1053
1053
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1054
1054
|
};
|
|
1055
1055
|
|
|
1056
|
-
var hasOwn$
|
|
1056
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1057
1057
|
var ownKeys = ownKeys$1;
|
|
1058
1058
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1059
1059
|
var definePropertyModule = objectDefineProperty;
|
|
1060
1060
|
|
|
1061
|
-
var copyConstructorProperties$
|
|
1061
|
+
var copyConstructorProperties$3 = function (target, source, exceptions) {
|
|
1062
1062
|
var keys = ownKeys(source);
|
|
1063
1063
|
var defineProperty = definePropertyModule.f;
|
|
1064
1064
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1065
1065
|
for (var i = 0; i < keys.length; i++) {
|
|
1066
1066
|
var key = keys[i];
|
|
1067
|
-
if (!hasOwn$
|
|
1067
|
+
if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
|
|
1068
1068
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
1072
|
|
|
1073
|
-
var fails$
|
|
1074
|
-
var isCallable$
|
|
1073
|
+
var fails$e = fails$m;
|
|
1074
|
+
var isCallable$b = isCallable$l;
|
|
1075
1075
|
|
|
1076
1076
|
var replacement = /#|\.prototype\./;
|
|
1077
1077
|
|
|
@@ -1079,7 +1079,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
1079
1079
|
var value = data[normalize(feature)];
|
|
1080
1080
|
return value === POLYFILL ? true
|
|
1081
1081
|
: value === NATIVE ? false
|
|
1082
|
-
: isCallable$
|
|
1082
|
+
: isCallable$b(detection) ? fails$e(detection)
|
|
1083
1083
|
: !!detection;
|
|
1084
1084
|
};
|
|
1085
1085
|
|
|
@@ -1093,12 +1093,12 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
1093
1093
|
|
|
1094
1094
|
var isForced_1 = isForced$1;
|
|
1095
1095
|
|
|
1096
|
-
var global$
|
|
1097
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1098
|
-
var createNonEnumerableProperty$
|
|
1096
|
+
var global$7 = global$g;
|
|
1097
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1098
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
1099
1099
|
var defineBuiltIn$4 = defineBuiltIn$5;
|
|
1100
1100
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1101
|
-
var copyConstructorProperties$
|
|
1101
|
+
var copyConstructorProperties$2 = copyConstructorProperties$3;
|
|
1102
1102
|
var isForced = isForced_1;
|
|
1103
1103
|
|
|
1104
1104
|
/*
|
|
@@ -1122,44 +1122,44 @@ var _export = function (options, source) {
|
|
|
1122
1122
|
var STATIC = options.stat;
|
|
1123
1123
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1124
1124
|
if (GLOBAL) {
|
|
1125
|
-
target = global$
|
|
1125
|
+
target = global$7;
|
|
1126
1126
|
} else if (STATIC) {
|
|
1127
|
-
target = global$
|
|
1127
|
+
target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1128
1128
|
} else {
|
|
1129
|
-
target = global$
|
|
1129
|
+
target = global$7[TARGET] && global$7[TARGET].prototype;
|
|
1130
1130
|
}
|
|
1131
1131
|
if (target) for (key in source) {
|
|
1132
1132
|
sourceProperty = source[key];
|
|
1133
1133
|
if (options.dontCallGetSet) {
|
|
1134
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1134
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
1135
1135
|
targetProperty = descriptor && descriptor.value;
|
|
1136
1136
|
} else targetProperty = target[key];
|
|
1137
1137
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1138
1138
|
// contained in target
|
|
1139
1139
|
if (!FORCED && targetProperty !== undefined) {
|
|
1140
1140
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1141
|
-
copyConstructorProperties$
|
|
1141
|
+
copyConstructorProperties$2(sourceProperty, targetProperty);
|
|
1142
1142
|
}
|
|
1143
1143
|
// add a flag to not completely full polyfills
|
|
1144
1144
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1145
|
-
createNonEnumerableProperty$
|
|
1145
|
+
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1146
1146
|
}
|
|
1147
1147
|
defineBuiltIn$4(target, key, sourceProperty, options);
|
|
1148
1148
|
}
|
|
1149
1149
|
};
|
|
1150
1150
|
|
|
1151
|
-
var fails$
|
|
1151
|
+
var fails$d = fails$m;
|
|
1152
1152
|
|
|
1153
|
-
var correctPrototypeGetter = !fails$
|
|
1153
|
+
var correctPrototypeGetter = !fails$d(function () {
|
|
1154
1154
|
function F() { /* empty */ }
|
|
1155
1155
|
F.prototype.constructor = null;
|
|
1156
1156
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1157
1157
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1158
1158
|
});
|
|
1159
1159
|
|
|
1160
|
-
var hasOwn$
|
|
1161
|
-
var isCallable$
|
|
1162
|
-
var toObject$
|
|
1160
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1161
|
+
var isCallable$a = isCallable$l;
|
|
1162
|
+
var toObject$4 = toObject$6;
|
|
1163
1163
|
var sharedKey = sharedKey$3;
|
|
1164
1164
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1165
1165
|
|
|
@@ -1171,17 +1171,17 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1171
1171
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1172
1172
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1173
1173
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1174
|
-
var object = toObject$
|
|
1175
|
-
if (hasOwn$
|
|
1174
|
+
var object = toObject$4(O);
|
|
1175
|
+
if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
|
|
1176
1176
|
var constructor = object.constructor;
|
|
1177
|
-
if (isCallable$
|
|
1177
|
+
if (isCallable$a(constructor) && object instanceof constructor) {
|
|
1178
1178
|
return constructor.prototype;
|
|
1179
1179
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1180
1180
|
};
|
|
1181
1181
|
|
|
1182
|
-
var fails$
|
|
1183
|
-
var isCallable$
|
|
1184
|
-
var isObject$
|
|
1182
|
+
var fails$c = fails$m;
|
|
1183
|
+
var isCallable$9 = isCallable$l;
|
|
1184
|
+
var isObject$5 = isObject$b;
|
|
1185
1185
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1186
1186
|
var defineBuiltIn$3 = defineBuiltIn$5;
|
|
1187
1187
|
var wellKnownSymbol$9 = wellKnownSymbol$c;
|
|
@@ -1204,7 +1204,7 @@ if ([].keys) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1207
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$c(function () {
|
|
1208
1208
|
var test = {};
|
|
1209
1209
|
// FF44- legacy iterators case
|
|
1210
1210
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1214,7 +1214,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1214
1214
|
|
|
1215
1215
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1216
1216
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1217
|
-
if (!isCallable$
|
|
1217
|
+
if (!isCallable$9(IteratorPrototype$2[ITERATOR$2])) {
|
|
1218
1218
|
defineBuiltIn$3(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1219
1219
|
return this;
|
|
1220
1220
|
});
|
|
@@ -1225,22 +1225,22 @@ var iteratorsCore = {
|
|
|
1225
1225
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1226
1226
|
};
|
|
1227
1227
|
|
|
1228
|
-
var defineProperty$
|
|
1229
|
-
var hasOwn$
|
|
1228
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
1229
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1230
1230
|
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1231
1231
|
|
|
1232
1232
|
var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
|
|
1233
1233
|
|
|
1234
1234
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1235
1235
|
if (target && !STATIC) target = target.prototype;
|
|
1236
|
-
if (target && !hasOwn$
|
|
1237
|
-
defineProperty$
|
|
1236
|
+
if (target && !hasOwn$3(target, TO_STRING_TAG$2)) {
|
|
1237
|
+
defineProperty$4(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
1240
|
|
|
1241
1241
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1242
1242
|
var create$1 = objectCreate;
|
|
1243
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1243
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
1244
1244
|
var setToStringTag$2 = setToStringTag$3;
|
|
1245
1245
|
var Iterators$2 = iterators;
|
|
1246
1246
|
|
|
@@ -1248,41 +1248,42 @@ var returnThis$1 = function () { return this; };
|
|
|
1248
1248
|
|
|
1249
1249
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1250
1250
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1251
|
-
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1251
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1252
1252
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1253
1253
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1254
1254
|
return IteratorConstructor;
|
|
1255
1255
|
};
|
|
1256
1256
|
|
|
1257
|
-
var uncurryThis$
|
|
1257
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1258
1258
|
var aCallable = aCallable$2;
|
|
1259
1259
|
|
|
1260
1260
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1261
1261
|
try {
|
|
1262
1262
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1263
|
-
return uncurryThis$
|
|
1263
|
+
return uncurryThis$c(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1264
1264
|
} catch (error) { /* empty */ }
|
|
1265
1265
|
};
|
|
1266
1266
|
|
|
1267
|
-
var isObject$
|
|
1267
|
+
var isObject$4 = isObject$b;
|
|
1268
1268
|
|
|
1269
1269
|
var isPossiblePrototype$1 = function (argument) {
|
|
1270
|
-
return isObject$
|
|
1270
|
+
return isObject$4(argument) || argument === null;
|
|
1271
1271
|
};
|
|
1272
1272
|
|
|
1273
1273
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1274
1274
|
|
|
1275
|
-
var $String$
|
|
1276
|
-
var $TypeError$
|
|
1275
|
+
var $String$2 = String;
|
|
1276
|
+
var $TypeError$4 = TypeError;
|
|
1277
1277
|
|
|
1278
1278
|
var aPossiblePrototype$1 = function (argument) {
|
|
1279
1279
|
if (isPossiblePrototype(argument)) return argument;
|
|
1280
|
-
throw new $TypeError$
|
|
1280
|
+
throw new $TypeError$4("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1281
1281
|
};
|
|
1282
1282
|
|
|
1283
1283
|
/* eslint-disable no-proto -- safe */
|
|
1284
1284
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1285
|
-
var
|
|
1285
|
+
var isObject$3 = isObject$b;
|
|
1286
|
+
var requireObjectCoercible$4 = requireObjectCoercible$7;
|
|
1286
1287
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1287
1288
|
|
|
1288
1289
|
// `Object.setPrototypeOf` method
|
|
@@ -1299,23 +1300,24 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1299
1300
|
CORRECT_SETTER = test instanceof Array;
|
|
1300
1301
|
} catch (error) { /* empty */ }
|
|
1301
1302
|
return function setPrototypeOf(O, proto) {
|
|
1302
|
-
|
|
1303
|
+
requireObjectCoercible$4(O);
|
|
1303
1304
|
aPossiblePrototype(proto);
|
|
1305
|
+
if (!isObject$3(O)) return O;
|
|
1304
1306
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1305
1307
|
else O.__proto__ = proto;
|
|
1306
1308
|
return O;
|
|
1307
1309
|
};
|
|
1308
1310
|
}() : undefined);
|
|
1309
1311
|
|
|
1310
|
-
var $$
|
|
1311
|
-
var call$
|
|
1312
|
+
var $$b = _export;
|
|
1313
|
+
var call$9 = functionCall;
|
|
1312
1314
|
var FunctionName = functionName;
|
|
1313
|
-
var isCallable$
|
|
1315
|
+
var isCallable$8 = isCallable$l;
|
|
1314
1316
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1315
1317
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1316
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
1318
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1317
1319
|
var setToStringTag$1 = setToStringTag$3;
|
|
1318
|
-
var createNonEnumerableProperty$
|
|
1320
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1319
1321
|
var defineBuiltIn$2 = defineBuiltIn$5;
|
|
1320
1322
|
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1321
1323
|
var Iterators$1 = iterators;
|
|
@@ -1363,9 +1365,9 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1363
1365
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1364
1366
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1365
1367
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1366
|
-
if (setPrototypeOf) {
|
|
1367
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1368
|
-
} else if (!isCallable$
|
|
1368
|
+
if (setPrototypeOf$2) {
|
|
1369
|
+
setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype);
|
|
1370
|
+
} else if (!isCallable$8(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1369
1371
|
defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1370
1372
|
}
|
|
1371
1373
|
}
|
|
@@ -1377,10 +1379,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1377
1379
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1378
1380
|
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1379
1381
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1380
|
-
createNonEnumerableProperty$
|
|
1382
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1381
1383
|
} else {
|
|
1382
1384
|
INCORRECT_VALUES_NAME = true;
|
|
1383
|
-
defaultIterator = function values() { return call$
|
|
1385
|
+
defaultIterator = function values() { return call$9(nativeIterator, this); };
|
|
1384
1386
|
}
|
|
1385
1387
|
}
|
|
1386
1388
|
|
|
@@ -1395,7 +1397,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1395
1397
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1396
1398
|
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
1397
1399
|
}
|
|
1398
|
-
} else $$
|
|
1400
|
+
} else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1399
1401
|
}
|
|
1400
1402
|
|
|
1401
1403
|
// define iterator
|
|
@@ -1414,13 +1416,13 @@ var createIterResultObject$1 = function (value, done) {
|
|
|
1414
1416
|
};
|
|
1415
1417
|
|
|
1416
1418
|
var toIndexedObject = toIndexedObject$5;
|
|
1417
|
-
var addToUnscopables$
|
|
1419
|
+
var addToUnscopables$2 = addToUnscopables$3;
|
|
1418
1420
|
var Iterators = iterators;
|
|
1419
1421
|
var InternalStateModule = internalState;
|
|
1420
|
-
var defineProperty$
|
|
1422
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1421
1423
|
var defineIterator = iteratorDefine;
|
|
1422
1424
|
var createIterResultObject = createIterResultObject$1;
|
|
1423
|
-
var DESCRIPTORS$
|
|
1425
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1424
1426
|
|
|
1425
1427
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1426
1428
|
var setInternalState = InternalStateModule.set;
|
|
@@ -1465,13 +1467,13 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1465
1467
|
var values = Iterators.Arguments = Iterators.Array;
|
|
1466
1468
|
|
|
1467
1469
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1468
|
-
addToUnscopables$
|
|
1469
|
-
addToUnscopables$
|
|
1470
|
-
addToUnscopables$
|
|
1470
|
+
addToUnscopables$2('keys');
|
|
1471
|
+
addToUnscopables$2('values');
|
|
1472
|
+
addToUnscopables$2('entries');
|
|
1471
1473
|
|
|
1472
1474
|
// V8 ~ Chrome 45- bug
|
|
1473
|
-
if (DESCRIPTORS$
|
|
1474
|
-
defineProperty$
|
|
1475
|
+
if (DESCRIPTORS$4 && values.name !== 'values') try {
|
|
1476
|
+
defineProperty$3(values, 'name', { value: 'values' });
|
|
1475
1477
|
} catch (error) { /* empty */ }
|
|
1476
1478
|
|
|
1477
1479
|
// iterable DOM collections
|
|
@@ -1518,11 +1520,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1518
1520
|
|
|
1519
1521
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1520
1522
|
|
|
1521
|
-
var global$
|
|
1523
|
+
var global$6 = global$g;
|
|
1522
1524
|
var DOMIterables = domIterables;
|
|
1523
1525
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1524
1526
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1525
|
-
var createNonEnumerableProperty$
|
|
1527
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
1526
1528
|
var setToStringTag = setToStringTag$3;
|
|
1527
1529
|
var wellKnownSymbol$6 = wellKnownSymbol$c;
|
|
1528
1530
|
|
|
@@ -1533,7 +1535,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1533
1535
|
if (CollectionPrototype) {
|
|
1534
1536
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1535
1537
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1536
|
-
createNonEnumerableProperty$
|
|
1538
|
+
createNonEnumerableProperty$4(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1537
1539
|
} catch (error) {
|
|
1538
1540
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1539
1541
|
}
|
|
@@ -1541,7 +1543,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1541
1543
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1542
1544
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1543
1545
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1544
|
-
createNonEnumerableProperty$
|
|
1546
|
+
createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1545
1547
|
} catch (error) {
|
|
1546
1548
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1547
1549
|
}
|
|
@@ -1550,35 +1552,35 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1550
1552
|
};
|
|
1551
1553
|
|
|
1552
1554
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1553
|
-
handlePrototype(global$
|
|
1555
|
+
handlePrototype(global$6[COLLECTION_NAME] && global$6[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1554
1556
|
}
|
|
1555
1557
|
|
|
1556
1558
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1557
1559
|
|
|
1558
|
-
var DESCRIPTORS$
|
|
1559
|
-
var uncurryThis$
|
|
1560
|
-
var call$
|
|
1561
|
-
var fails$
|
|
1560
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1561
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1562
|
+
var call$8 = functionCall;
|
|
1563
|
+
var fails$b = fails$m;
|
|
1562
1564
|
var objectKeys = objectKeys$2;
|
|
1563
1565
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1564
1566
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1565
|
-
var toObject$
|
|
1567
|
+
var toObject$3 = toObject$6;
|
|
1566
1568
|
var IndexedObject = indexedObject;
|
|
1567
1569
|
|
|
1568
1570
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1569
1571
|
var $assign = Object.assign;
|
|
1570
1572
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1571
|
-
var defineProperty$
|
|
1572
|
-
var concat$1 = uncurryThis$
|
|
1573
|
+
var defineProperty$2 = Object.defineProperty;
|
|
1574
|
+
var concat$1 = uncurryThis$b([].concat);
|
|
1573
1575
|
|
|
1574
1576
|
// `Object.assign` method
|
|
1575
1577
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1576
|
-
var objectAssign = !$assign || fails$
|
|
1578
|
+
var objectAssign = !$assign || fails$b(function () {
|
|
1577
1579
|
// should have correct order of operations (Edge bug)
|
|
1578
|
-
if (DESCRIPTORS$
|
|
1580
|
+
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
1579
1581
|
enumerable: true,
|
|
1580
1582
|
get: function () {
|
|
1581
|
-
defineProperty$
|
|
1583
|
+
defineProperty$2(this, 'b', {
|
|
1582
1584
|
value: 3,
|
|
1583
1585
|
enumerable: false
|
|
1584
1586
|
});
|
|
@@ -1594,7 +1596,7 @@ var objectAssign = !$assign || fails$7(function () {
|
|
|
1594
1596
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1595
1597
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1596
1598
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1597
|
-
var T = toObject$
|
|
1599
|
+
var T = toObject$3(target);
|
|
1598
1600
|
var argumentsLength = arguments.length;
|
|
1599
1601
|
var index = 1;
|
|
1600
1602
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -1607,18 +1609,18 @@ var objectAssign = !$assign || fails$7(function () {
|
|
|
1607
1609
|
var key;
|
|
1608
1610
|
while (length > j) {
|
|
1609
1611
|
key = keys[j++];
|
|
1610
|
-
if (!DESCRIPTORS$
|
|
1612
|
+
if (!DESCRIPTORS$3 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1611
1613
|
}
|
|
1612
1614
|
} return T;
|
|
1613
1615
|
} : $assign;
|
|
1614
1616
|
|
|
1615
|
-
var $$
|
|
1617
|
+
var $$a = _export;
|
|
1616
1618
|
var assign = objectAssign;
|
|
1617
1619
|
|
|
1618
1620
|
// `Object.assign` method
|
|
1619
1621
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1620
1622
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1621
|
-
$$
|
|
1623
|
+
$$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1622
1624
|
assign: assign
|
|
1623
1625
|
});
|
|
1624
1626
|
|
|
@@ -1628,6 +1630,26 @@ const FormFieldWrapper = styled.div(_t$7 || (_t$7 = _$7`
|
|
|
1628
1630
|
margin-bottom: var(--goa-space-l);
|
|
1629
1631
|
`));
|
|
1630
1632
|
|
|
1633
|
+
var $$9 = _export;
|
|
1634
|
+
var toObject$2 = toObject$6;
|
|
1635
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1636
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
|
|
1637
|
+
var addToUnscopables$1 = addToUnscopables$3;
|
|
1638
|
+
|
|
1639
|
+
// `Array.prototype.at` method
|
|
1640
|
+
// https://tc39.es/ecma262/#sec-array.prototype.at
|
|
1641
|
+
$$9({ target: 'Array', proto: true }, {
|
|
1642
|
+
at: function at(index) {
|
|
1643
|
+
var O = toObject$2(this);
|
|
1644
|
+
var len = lengthOfArrayLike$1(O);
|
|
1645
|
+
var relativeIndex = toIntegerOrInfinity$3(index);
|
|
1646
|
+
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
1647
|
+
return (k < 0 || k >= len) ? undefined : O[k];
|
|
1648
|
+
}
|
|
1649
|
+
});
|
|
1650
|
+
|
|
1651
|
+
addToUnscopables$1('at');
|
|
1652
|
+
|
|
1631
1653
|
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
1632
1654
|
|
|
1633
1655
|
var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
|
|
@@ -1638,7 +1660,7 @@ test[TO_STRING_TAG$1] = 'z';
|
|
|
1638
1660
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1639
1661
|
|
|
1640
1662
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1641
|
-
var isCallable$
|
|
1663
|
+
var isCallable$7 = isCallable$l;
|
|
1642
1664
|
var classofRaw = classofRaw$1;
|
|
1643
1665
|
var wellKnownSymbol$4 = wellKnownSymbol$c;
|
|
1644
1666
|
|
|
@@ -1656,7 +1678,7 @@ var tryGet = function (it, key) {
|
|
|
1656
1678
|
};
|
|
1657
1679
|
|
|
1658
1680
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1659
|
-
var classof$
|
|
1681
|
+
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1660
1682
|
var O, tag, result;
|
|
1661
1683
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1662
1684
|
// @@toStringTag case
|
|
@@ -1664,24 +1686,24 @@ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1664
1686
|
// builtinTag case
|
|
1665
1687
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1666
1688
|
// ES3 arguments fallback
|
|
1667
|
-
: (result = classofRaw(O)) === 'Object' && isCallable$
|
|
1689
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
|
|
1668
1690
|
};
|
|
1669
1691
|
|
|
1670
|
-
var classof$
|
|
1692
|
+
var classof$4 = classof$5;
|
|
1671
1693
|
|
|
1672
|
-
var $String = String;
|
|
1694
|
+
var $String$1 = String;
|
|
1673
1695
|
|
|
1674
|
-
var toString$
|
|
1675
|
-
if (classof$
|
|
1676
|
-
return $String(argument);
|
|
1696
|
+
var toString$9 = function (argument) {
|
|
1697
|
+
if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1698
|
+
return $String$1(argument);
|
|
1677
1699
|
};
|
|
1678
1700
|
|
|
1679
|
-
var anObject$
|
|
1701
|
+
var anObject$4 = anObject$9;
|
|
1680
1702
|
|
|
1681
1703
|
// `RegExp.prototype.flags` getter implementation
|
|
1682
1704
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1683
1705
|
var regexpFlags$1 = function () {
|
|
1684
|
-
var that = anObject$
|
|
1706
|
+
var that = anObject$4(this);
|
|
1685
1707
|
var result = '';
|
|
1686
1708
|
if (that.hasIndices) result += 'd';
|
|
1687
1709
|
if (that.global) result += 'g';
|
|
@@ -1694,13 +1716,13 @@ var regexpFlags$1 = function () {
|
|
|
1694
1716
|
return result;
|
|
1695
1717
|
};
|
|
1696
1718
|
|
|
1697
|
-
var fails$
|
|
1698
|
-
var global$
|
|
1719
|
+
var fails$a = fails$m;
|
|
1720
|
+
var global$5 = global$g;
|
|
1699
1721
|
|
|
1700
1722
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1701
|
-
var $RegExp$2 = global$
|
|
1723
|
+
var $RegExp$2 = global$5.RegExp;
|
|
1702
1724
|
|
|
1703
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
1725
|
+
var UNSUPPORTED_Y$1 = fails$a(function () {
|
|
1704
1726
|
var re = $RegExp$2('a', 'y');
|
|
1705
1727
|
re.lastIndex = 2;
|
|
1706
1728
|
return re.exec('abcd') !== null;
|
|
@@ -1708,11 +1730,11 @@ var UNSUPPORTED_Y$1 = fails$6(function () {
|
|
|
1708
1730
|
|
|
1709
1731
|
// UC Browser bug
|
|
1710
1732
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1711
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
1733
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$a(function () {
|
|
1712
1734
|
return !$RegExp$2('a', 'y').sticky;
|
|
1713
1735
|
});
|
|
1714
1736
|
|
|
1715
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
1737
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$a(function () {
|
|
1716
1738
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1717
1739
|
var re = $RegExp$2('^r', 'gy');
|
|
1718
1740
|
re.lastIndex = 2;
|
|
@@ -1725,24 +1747,24 @@ var regexpStickyHelpers = {
|
|
|
1725
1747
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1726
1748
|
};
|
|
1727
1749
|
|
|
1728
|
-
var fails$
|
|
1729
|
-
var global$
|
|
1750
|
+
var fails$9 = fails$m;
|
|
1751
|
+
var global$4 = global$g;
|
|
1730
1752
|
|
|
1731
1753
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1732
|
-
var $RegExp$1 = global$
|
|
1754
|
+
var $RegExp$1 = global$4.RegExp;
|
|
1733
1755
|
|
|
1734
|
-
var regexpUnsupportedDotAll = fails$
|
|
1756
|
+
var regexpUnsupportedDotAll = fails$9(function () {
|
|
1735
1757
|
var re = $RegExp$1('.', 's');
|
|
1736
1758
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1737
1759
|
});
|
|
1738
1760
|
|
|
1739
|
-
var fails$
|
|
1740
|
-
var global$
|
|
1761
|
+
var fails$8 = fails$m;
|
|
1762
|
+
var global$3 = global$g;
|
|
1741
1763
|
|
|
1742
1764
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1743
|
-
var $RegExp = global$
|
|
1765
|
+
var $RegExp = global$3.RegExp;
|
|
1744
1766
|
|
|
1745
|
-
var regexpUnsupportedNcg = fails$
|
|
1767
|
+
var regexpUnsupportedNcg = fails$8(function () {
|
|
1746
1768
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1747
1769
|
return re.exec('b').groups.a !== 'b' ||
|
|
1748
1770
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1750,9 +1772,9 @@ var regexpUnsupportedNcg = fails$4(function () {
|
|
|
1750
1772
|
|
|
1751
1773
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1752
1774
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1753
|
-
var call$
|
|
1754
|
-
var uncurryThis$
|
|
1755
|
-
var toString$
|
|
1775
|
+
var call$7 = functionCall;
|
|
1776
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1777
|
+
var toString$8 = toString$9;
|
|
1756
1778
|
var regexpFlags = regexpFlags$1;
|
|
1757
1779
|
var stickyHelpers = regexpStickyHelpers;
|
|
1758
1780
|
var shared = shared$4;
|
|
@@ -1764,16 +1786,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
1764
1786
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1765
1787
|
var nativeExec = RegExp.prototype.exec;
|
|
1766
1788
|
var patchedExec = nativeExec;
|
|
1767
|
-
var charAt$
|
|
1768
|
-
var indexOf = uncurryThis$
|
|
1769
|
-
var replace$
|
|
1770
|
-
var stringSlice$4 = uncurryThis$
|
|
1789
|
+
var charAt$5 = uncurryThis$a(''.charAt);
|
|
1790
|
+
var indexOf = uncurryThis$a(''.indexOf);
|
|
1791
|
+
var replace$4 = uncurryThis$a(''.replace);
|
|
1792
|
+
var stringSlice$4 = uncurryThis$a(''.slice);
|
|
1771
1793
|
|
|
1772
1794
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1773
1795
|
var re1 = /a/;
|
|
1774
1796
|
var re2 = /b*/g;
|
|
1775
|
-
call$
|
|
1776
|
-
call$
|
|
1797
|
+
call$7(nativeExec, re1, 'a');
|
|
1798
|
+
call$7(nativeExec, re2, 'a');
|
|
1777
1799
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1778
1800
|
})();
|
|
1779
1801
|
|
|
@@ -1788,33 +1810,33 @@ if (PATCH) {
|
|
|
1788
1810
|
patchedExec = function exec(string) {
|
|
1789
1811
|
var re = this;
|
|
1790
1812
|
var state = getInternalState(re);
|
|
1791
|
-
var str = toString$
|
|
1813
|
+
var str = toString$8(string);
|
|
1792
1814
|
var raw = state.raw;
|
|
1793
1815
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1794
1816
|
|
|
1795
1817
|
if (raw) {
|
|
1796
1818
|
raw.lastIndex = re.lastIndex;
|
|
1797
|
-
result = call$
|
|
1819
|
+
result = call$7(patchedExec, raw, str);
|
|
1798
1820
|
re.lastIndex = raw.lastIndex;
|
|
1799
1821
|
return result;
|
|
1800
1822
|
}
|
|
1801
1823
|
|
|
1802
1824
|
var groups = state.groups;
|
|
1803
1825
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1804
|
-
var flags = call$
|
|
1826
|
+
var flags = call$7(regexpFlags, re);
|
|
1805
1827
|
var source = re.source;
|
|
1806
1828
|
var charsAdded = 0;
|
|
1807
1829
|
var strCopy = str;
|
|
1808
1830
|
|
|
1809
1831
|
if (sticky) {
|
|
1810
|
-
flags = replace$
|
|
1832
|
+
flags = replace$4(flags, 'y', '');
|
|
1811
1833
|
if (indexOf(flags, 'g') === -1) {
|
|
1812
1834
|
flags += 'g';
|
|
1813
1835
|
}
|
|
1814
1836
|
|
|
1815
1837
|
strCopy = stringSlice$4(str, re.lastIndex);
|
|
1816
1838
|
// Support anchored sticky behavior.
|
|
1817
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$
|
|
1839
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$5(str, re.lastIndex - 1) !== '\n')) {
|
|
1818
1840
|
source = '(?: ' + source + ')';
|
|
1819
1841
|
strCopy = ' ' + strCopy;
|
|
1820
1842
|
charsAdded++;
|
|
@@ -1829,7 +1851,7 @@ if (PATCH) {
|
|
|
1829
1851
|
}
|
|
1830
1852
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1831
1853
|
|
|
1832
|
-
match = call$
|
|
1854
|
+
match = call$7(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1833
1855
|
|
|
1834
1856
|
if (sticky) {
|
|
1835
1857
|
if (match) {
|
|
@@ -1844,7 +1866,7 @@ if (PATCH) {
|
|
|
1844
1866
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1845
1867
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1846
1868
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1847
|
-
call$
|
|
1869
|
+
call$7(nativeReplace, match[0], reCopy, function () {
|
|
1848
1870
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1849
1871
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1850
1872
|
}
|
|
@@ -1865,34 +1887,60 @@ if (PATCH) {
|
|
|
1865
1887
|
|
|
1866
1888
|
var regexpExec$2 = patchedExec;
|
|
1867
1889
|
|
|
1868
|
-
var $$
|
|
1869
|
-
var exec = regexpExec$2;
|
|
1890
|
+
var $$8 = _export;
|
|
1891
|
+
var exec$1 = regexpExec$2;
|
|
1870
1892
|
|
|
1871
1893
|
// `RegExp.prototype.exec` method
|
|
1872
1894
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1873
|
-
$$
|
|
1874
|
-
exec: exec
|
|
1895
|
+
$$8({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1896
|
+
exec: exec$1
|
|
1897
|
+
});
|
|
1898
|
+
|
|
1899
|
+
var $$7 = _export;
|
|
1900
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1901
|
+
var requireObjectCoercible$3 = requireObjectCoercible$7;
|
|
1902
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
|
|
1903
|
+
var toString$7 = toString$9;
|
|
1904
|
+
var fails$7 = fails$m;
|
|
1905
|
+
|
|
1906
|
+
var charAt$4 = uncurryThis$9(''.charAt);
|
|
1907
|
+
|
|
1908
|
+
var FORCED$2 = fails$7(function () {
|
|
1909
|
+
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
1910
|
+
return '𠮷'.at(-2) !== '\uD842';
|
|
1911
|
+
});
|
|
1912
|
+
|
|
1913
|
+
// `String.prototype.at` method
|
|
1914
|
+
// https://tc39.es/ecma262/#sec-string.prototype.at
|
|
1915
|
+
$$7({ target: 'String', proto: true, forced: FORCED$2 }, {
|
|
1916
|
+
at: function at(index) {
|
|
1917
|
+
var S = toString$7(requireObjectCoercible$3(this));
|
|
1918
|
+
var len = S.length;
|
|
1919
|
+
var relativeIndex = toIntegerOrInfinity$2(index);
|
|
1920
|
+
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
1921
|
+
return (k < 0 || k >= len) ? undefined : charAt$4(S, k);
|
|
1922
|
+
}
|
|
1875
1923
|
});
|
|
1876
1924
|
|
|
1877
1925
|
var NATIVE_BIND = functionBindNative;
|
|
1878
1926
|
|
|
1879
1927
|
var FunctionPrototype = Function.prototype;
|
|
1880
|
-
var apply$
|
|
1881
|
-
var call$
|
|
1928
|
+
var apply$3 = FunctionPrototype.apply;
|
|
1929
|
+
var call$6 = FunctionPrototype.call;
|
|
1882
1930
|
|
|
1883
1931
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1884
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$
|
|
1885
|
-
return call$
|
|
1932
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$6.bind(apply$3) : function () {
|
|
1933
|
+
return call$6.apply(apply$3, arguments);
|
|
1886
1934
|
});
|
|
1887
1935
|
|
|
1888
1936
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1889
1937
|
|
|
1890
|
-
var call$
|
|
1938
|
+
var call$5 = functionCall;
|
|
1891
1939
|
var defineBuiltIn$1 = defineBuiltIn$5;
|
|
1892
1940
|
var regexpExec$1 = regexpExec$2;
|
|
1893
|
-
var fails$
|
|
1941
|
+
var fails$6 = fails$m;
|
|
1894
1942
|
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
1895
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1943
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
1896
1944
|
|
|
1897
1945
|
var SPECIES = wellKnownSymbol$3('species');
|
|
1898
1946
|
var RegExpPrototype$2 = RegExp.prototype;
|
|
@@ -1900,14 +1948,14 @@ var RegExpPrototype$2 = RegExp.prototype;
|
|
|
1900
1948
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1901
1949
|
var SYMBOL = wellKnownSymbol$3(KEY);
|
|
1902
1950
|
|
|
1903
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
1951
|
+
var DELEGATES_TO_SYMBOL = !fails$6(function () {
|
|
1904
1952
|
// String methods call symbol-named RegExp methods
|
|
1905
1953
|
var O = {};
|
|
1906
1954
|
O[SYMBOL] = function () { return 7; };
|
|
1907
1955
|
return ''[KEY](O) !== 7;
|
|
1908
1956
|
});
|
|
1909
1957
|
|
|
1910
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
1958
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
|
|
1911
1959
|
// Symbol-named RegExp methods call .exec
|
|
1912
1960
|
var execCalled = false;
|
|
1913
1961
|
var re = /a/;
|
|
@@ -1947,9 +1995,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1947
1995
|
// The native String method already delegates to @@method (this
|
|
1948
1996
|
// polyfilled function), leasing to infinite recursion.
|
|
1949
1997
|
// We avoid it by directly calling the native @@method method.
|
|
1950
|
-
return { done: true, value: call$
|
|
1998
|
+
return { done: true, value: call$5(nativeRegExpMethod, regexp, str, arg2) };
|
|
1951
1999
|
}
|
|
1952
|
-
return { done: true, value: call$
|
|
2000
|
+
return { done: true, value: call$5(nativeMethod, str, regexp, arg2) };
|
|
1953
2001
|
}
|
|
1954
2002
|
return { done: false };
|
|
1955
2003
|
});
|
|
@@ -1958,30 +2006,30 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1958
2006
|
defineBuiltIn$1(RegExpPrototype$2, SYMBOL, methods[1]);
|
|
1959
2007
|
}
|
|
1960
2008
|
|
|
1961
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
2009
|
+
if (SHAM) createNonEnumerableProperty$3(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
1962
2010
|
};
|
|
1963
2011
|
|
|
1964
|
-
var uncurryThis$
|
|
1965
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$
|
|
1966
|
-
var toString$
|
|
1967
|
-
var requireObjectCoercible$2 = requireObjectCoercible$
|
|
2012
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
2013
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$6;
|
|
2014
|
+
var toString$6 = toString$9;
|
|
2015
|
+
var requireObjectCoercible$2 = requireObjectCoercible$7;
|
|
1968
2016
|
|
|
1969
|
-
var charAt$
|
|
1970
|
-
var charCodeAt = uncurryThis$
|
|
1971
|
-
var stringSlice$3 = uncurryThis$
|
|
2017
|
+
var charAt$3 = uncurryThis$8(''.charAt);
|
|
2018
|
+
var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
|
|
2019
|
+
var stringSlice$3 = uncurryThis$8(''.slice);
|
|
1972
2020
|
|
|
1973
2021
|
var createMethod = function (CONVERT_TO_STRING) {
|
|
1974
2022
|
return function ($this, pos) {
|
|
1975
|
-
var S = toString$
|
|
2023
|
+
var S = toString$6(requireObjectCoercible$2($this));
|
|
1976
2024
|
var position = toIntegerOrInfinity$1(pos);
|
|
1977
2025
|
var size = S.length;
|
|
1978
2026
|
var first, second;
|
|
1979
2027
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
1980
|
-
first = charCodeAt(S, position);
|
|
2028
|
+
first = charCodeAt$1(S, position);
|
|
1981
2029
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
1982
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
2030
|
+
|| (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
1983
2031
|
? CONVERT_TO_STRING
|
|
1984
|
-
? charAt$
|
|
2032
|
+
? charAt$3(S, position)
|
|
1985
2033
|
: first
|
|
1986
2034
|
: CONVERT_TO_STRING
|
|
1987
2035
|
? stringSlice$3(S, position, position + 2)
|
|
@@ -1998,21 +2046,21 @@ var stringMultibyte = {
|
|
|
1998
2046
|
charAt: createMethod(true)
|
|
1999
2047
|
};
|
|
2000
2048
|
|
|
2001
|
-
var charAt$
|
|
2049
|
+
var charAt$2 = stringMultibyte.charAt;
|
|
2002
2050
|
|
|
2003
2051
|
// `AdvanceStringIndex` abstract operation
|
|
2004
2052
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
2005
2053
|
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
2006
|
-
return index + (unicode ? charAt$
|
|
2054
|
+
return index + (unicode ? charAt$2(S, index).length : 1);
|
|
2007
2055
|
};
|
|
2008
2056
|
|
|
2009
|
-
var uncurryThis$
|
|
2010
|
-
var toObject = toObject$
|
|
2057
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
2058
|
+
var toObject$1 = toObject$6;
|
|
2011
2059
|
|
|
2012
2060
|
var floor = Math.floor;
|
|
2013
|
-
var charAt = uncurryThis$
|
|
2014
|
-
var replace$
|
|
2015
|
-
var stringSlice$2 = uncurryThis$
|
|
2061
|
+
var charAt$1 = uncurryThis$7(''.charAt);
|
|
2062
|
+
var replace$3 = uncurryThis$7(''.replace);
|
|
2063
|
+
var stringSlice$2 = uncurryThis$7(''.slice);
|
|
2016
2064
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2017
2065
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
2018
2066
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
@@ -2024,12 +2072,12 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2024
2072
|
var m = captures.length;
|
|
2025
2073
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2026
2074
|
if (namedCaptures !== undefined) {
|
|
2027
|
-
namedCaptures = toObject(namedCaptures);
|
|
2075
|
+
namedCaptures = toObject$1(namedCaptures);
|
|
2028
2076
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
2029
2077
|
}
|
|
2030
|
-
return replace$
|
|
2078
|
+
return replace$3(replacement, symbols, function (match, ch) {
|
|
2031
2079
|
var capture;
|
|
2032
|
-
switch (charAt(ch, 0)) {
|
|
2080
|
+
switch (charAt$1(ch, 0)) {
|
|
2033
2081
|
case '$': return '$';
|
|
2034
2082
|
case '&': return matched;
|
|
2035
2083
|
case '`': return stringSlice$2(str, 0, position);
|
|
@@ -2043,7 +2091,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2043
2091
|
if (n > m) {
|
|
2044
2092
|
var f = floor(n / 10);
|
|
2045
2093
|
if (f === 0) return match;
|
|
2046
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
2094
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt$1(ch, 1) : captures[f - 1] + charAt$1(ch, 1);
|
|
2047
2095
|
return match;
|
|
2048
2096
|
}
|
|
2049
2097
|
capture = captures[n - 1];
|
|
@@ -2052,39 +2100,39 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2052
2100
|
});
|
|
2053
2101
|
};
|
|
2054
2102
|
|
|
2055
|
-
var call$
|
|
2056
|
-
var anObject$
|
|
2057
|
-
var isCallable$
|
|
2058
|
-
var classof$
|
|
2103
|
+
var call$4 = functionCall;
|
|
2104
|
+
var anObject$3 = anObject$9;
|
|
2105
|
+
var isCallable$6 = isCallable$l;
|
|
2106
|
+
var classof$3 = classofRaw$1;
|
|
2059
2107
|
var regexpExec = regexpExec$2;
|
|
2060
2108
|
|
|
2061
|
-
var $TypeError$
|
|
2109
|
+
var $TypeError$3 = TypeError;
|
|
2062
2110
|
|
|
2063
2111
|
// `RegExpExec` abstract operation
|
|
2064
2112
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
2065
2113
|
var regexpExecAbstract = function (R, S) {
|
|
2066
2114
|
var exec = R.exec;
|
|
2067
|
-
if (isCallable$
|
|
2068
|
-
var result = call$
|
|
2069
|
-
if (result !== null) anObject$
|
|
2115
|
+
if (isCallable$6(exec)) {
|
|
2116
|
+
var result = call$4(exec, R, S);
|
|
2117
|
+
if (result !== null) anObject$3(result);
|
|
2070
2118
|
return result;
|
|
2071
2119
|
}
|
|
2072
|
-
if (classof$
|
|
2073
|
-
throw new $TypeError$
|
|
2120
|
+
if (classof$3(R) === 'RegExp') return call$4(regexpExec, R, S);
|
|
2121
|
+
throw new $TypeError$3('RegExp#exec called on incompatible receiver');
|
|
2074
2122
|
};
|
|
2075
2123
|
|
|
2076
|
-
var apply = functionApply;
|
|
2077
|
-
var call$
|
|
2078
|
-
var uncurryThis$
|
|
2124
|
+
var apply$2 = functionApply;
|
|
2125
|
+
var call$3 = functionCall;
|
|
2126
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2079
2127
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2080
|
-
var fails$
|
|
2081
|
-
var anObject$
|
|
2082
|
-
var isCallable$
|
|
2128
|
+
var fails$5 = fails$m;
|
|
2129
|
+
var anObject$2 = anObject$9;
|
|
2130
|
+
var isCallable$5 = isCallable$l;
|
|
2083
2131
|
var isNullOrUndefined = isNullOrUndefined$3;
|
|
2084
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$
|
|
2132
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$6;
|
|
2085
2133
|
var toLength = toLength$2;
|
|
2086
|
-
var toString$
|
|
2087
|
-
var requireObjectCoercible$1 = requireObjectCoercible$
|
|
2134
|
+
var toString$5 = toString$9;
|
|
2135
|
+
var requireObjectCoercible$1 = requireObjectCoercible$7;
|
|
2088
2136
|
var advanceStringIndex = advanceStringIndex$1;
|
|
2089
2137
|
var getMethod = getMethod$2;
|
|
2090
2138
|
var getSubstitution = getSubstitution$1;
|
|
@@ -2094,10 +2142,10 @@ var wellKnownSymbol$2 = wellKnownSymbol$c;
|
|
|
2094
2142
|
var REPLACE = wellKnownSymbol$2('replace');
|
|
2095
2143
|
var max = Math.max;
|
|
2096
2144
|
var min = Math.min;
|
|
2097
|
-
var concat = uncurryThis$
|
|
2098
|
-
var push = uncurryThis$
|
|
2099
|
-
var stringIndexOf$1 = uncurryThis$
|
|
2100
|
-
var stringSlice$1 = uncurryThis$
|
|
2145
|
+
var concat = uncurryThis$6([].concat);
|
|
2146
|
+
var push$1 = uncurryThis$6([].push);
|
|
2147
|
+
var stringIndexOf$1 = uncurryThis$6(''.indexOf);
|
|
2148
|
+
var stringSlice$1 = uncurryThis$6(''.slice);
|
|
2101
2149
|
|
|
2102
2150
|
var maybeToString = function (it) {
|
|
2103
2151
|
return it === undefined ? it : String(it);
|
|
@@ -2118,7 +2166,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
2118
2166
|
return false;
|
|
2119
2167
|
})();
|
|
2120
2168
|
|
|
2121
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
2169
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$5(function () {
|
|
2122
2170
|
var re = /./;
|
|
2123
2171
|
re.exec = function () {
|
|
2124
2172
|
var result = [];
|
|
@@ -2140,14 +2188,14 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2140
2188
|
var O = requireObjectCoercible$1(this);
|
|
2141
2189
|
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
2142
2190
|
return replacer
|
|
2143
|
-
? call$
|
|
2144
|
-
: call$
|
|
2191
|
+
? call$3(replacer, searchValue, O, replaceValue)
|
|
2192
|
+
: call$3(nativeReplace, toString$5(O), searchValue, replaceValue);
|
|
2145
2193
|
},
|
|
2146
2194
|
// `RegExp.prototype[@@replace]` method
|
|
2147
2195
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2148
2196
|
function (string, replaceValue) {
|
|
2149
|
-
var rx = anObject$
|
|
2150
|
-
var S = toString$
|
|
2197
|
+
var rx = anObject$2(this);
|
|
2198
|
+
var S = toString$5(string);
|
|
2151
2199
|
|
|
2152
2200
|
if (
|
|
2153
2201
|
typeof replaceValue == 'string' &&
|
|
@@ -2158,8 +2206,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2158
2206
|
if (res.done) return res.value;
|
|
2159
2207
|
}
|
|
2160
2208
|
|
|
2161
|
-
var functionalReplace = isCallable$
|
|
2162
|
-
if (!functionalReplace) replaceValue = toString$
|
|
2209
|
+
var functionalReplace = isCallable$5(replaceValue);
|
|
2210
|
+
if (!functionalReplace) replaceValue = toString$5(replaceValue);
|
|
2163
2211
|
|
|
2164
2212
|
var global = rx.global;
|
|
2165
2213
|
var fullUnicode;
|
|
@@ -2174,10 +2222,10 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2174
2222
|
result = regExpExec(rx, S);
|
|
2175
2223
|
if (result === null) break;
|
|
2176
2224
|
|
|
2177
|
-
push(results, result);
|
|
2225
|
+
push$1(results, result);
|
|
2178
2226
|
if (!global) break;
|
|
2179
2227
|
|
|
2180
|
-
var matchStr = toString$
|
|
2228
|
+
var matchStr = toString$5(result[0]);
|
|
2181
2229
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2182
2230
|
}
|
|
2183
2231
|
|
|
@@ -2186,7 +2234,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2186
2234
|
for (var i = 0; i < results.length; i++) {
|
|
2187
2235
|
result = results[i];
|
|
2188
2236
|
|
|
2189
|
-
var matched = toString$
|
|
2237
|
+
var matched = toString$5(result[0]);
|
|
2190
2238
|
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
2191
2239
|
var captures = [];
|
|
2192
2240
|
var replacement;
|
|
@@ -2195,12 +2243,12 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2195
2243
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2196
2244
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2197
2245
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2198
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
2246
|
+
for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
|
|
2199
2247
|
var namedCaptures = result.groups;
|
|
2200
2248
|
if (functionalReplace) {
|
|
2201
2249
|
var replacerArgs = concat([matched], captures, position, S);
|
|
2202
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
2203
|
-
replacement = toString$
|
|
2250
|
+
if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
|
|
2251
|
+
replacement = toString$5(apply$2(replaceValue, undefined, replacerArgs));
|
|
2204
2252
|
} else {
|
|
2205
2253
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2206
2254
|
}
|
|
@@ -2337,27 +2385,6 @@ const getNonEmptyRequiredCount = (table, step) => {
|
|
|
2337
2385
|
return requiredNonEmptyStatuses.length;
|
|
2338
2386
|
};
|
|
2339
2387
|
|
|
2340
|
-
// Used locally for callout presentation
|
|
2341
|
-
const callout = props => {
|
|
2342
|
-
const componentProps = Object.assign({
|
|
2343
|
-
size: 'medium',
|
|
2344
|
-
type: 'emergency',
|
|
2345
|
-
message: 'unknown'
|
|
2346
|
-
}, props);
|
|
2347
|
-
return jsx(GoACallout, Object.assign({}, componentProps, {
|
|
2348
|
-
children: componentProps.message
|
|
2349
|
-
}));
|
|
2350
|
-
};
|
|
2351
|
-
const CalloutControl = props => {
|
|
2352
|
-
var _a, _b;
|
|
2353
|
-
return callout(((_b = (_a = props === null || props === void 0 ? void 0 : props.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.componentProps) || {});
|
|
2354
|
-
};
|
|
2355
|
-
const GoACalloutControlTester = rankWith(1, uiTypeIs('Callout'));
|
|
2356
|
-
var GoACalloutControl = withJsonFormsRendererProps(CalloutControl);
|
|
2357
|
-
|
|
2358
|
-
const errMalformedDate = (scope, type) => {
|
|
2359
|
-
return `${type}-date for variable '${scope}' has an incorrect format.`;
|
|
2360
|
-
};
|
|
2361
2388
|
const standardizeDate = date => {
|
|
2362
2389
|
try {
|
|
2363
2390
|
const stdDate = new Date(date).toISOString().substring(0, 10);
|
|
@@ -2366,85 +2393,6 @@ const standardizeDate = date => {
|
|
|
2366
2393
|
return undefined;
|
|
2367
2394
|
}
|
|
2368
2395
|
};
|
|
2369
|
-
const isValidDateFormat = date => {
|
|
2370
|
-
const standardized = standardizeDate(date);
|
|
2371
|
-
return standardized !== undefined;
|
|
2372
|
-
};
|
|
2373
|
-
const invalidDateFormat = (scope, type) => {
|
|
2374
|
-
return callout({
|
|
2375
|
-
message: errMalformedDate(scope, type)
|
|
2376
|
-
});
|
|
2377
|
-
};
|
|
2378
|
-
const reformatDateProps = props => {
|
|
2379
|
-
if (props) {
|
|
2380
|
-
if ('min' in props && typeof props.min === 'string') {
|
|
2381
|
-
props['min'] = standardizeDate(props.min);
|
|
2382
|
-
}
|
|
2383
|
-
if ('max' in props && typeof props.max === 'string') {
|
|
2384
|
-
props['max'] = standardizeDate(props.max);
|
|
2385
|
-
}
|
|
2386
|
-
}
|
|
2387
|
-
return props;
|
|
2388
|
-
};
|
|
2389
|
-
const GoADateInput = props => {
|
|
2390
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2391
|
-
const {
|
|
2392
|
-
data,
|
|
2393
|
-
config,
|
|
2394
|
-
id,
|
|
2395
|
-
enabled,
|
|
2396
|
-
uischema,
|
|
2397
|
-
path,
|
|
2398
|
-
handleChange,
|
|
2399
|
-
label
|
|
2400
|
-
} = props;
|
|
2401
|
-
const appliedUiSchemaOptions = Object.assign(Object.assign({}, config), uischema === null || uischema === void 0 ? void 0 : uischema.options);
|
|
2402
|
-
const readOnly = (_c = (_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps) === null || _b === void 0 ? void 0 : _b.readOnly) !== null && _c !== void 0 ? _c : false;
|
|
2403
|
-
const minDate = (_e = (_d = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _d === void 0 ? void 0 : _d.componentProps) === null || _e === void 0 ? void 0 : _e.min;
|
|
2404
|
-
if (minDate && !isValidDateFormat(minDate)) {
|
|
2405
|
-
return invalidDateFormat(uischema.scope, 'Min');
|
|
2406
|
-
}
|
|
2407
|
-
const maxDate = (_g = (_f = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _f === void 0 ? void 0 : _f.componentProps) === null || _g === void 0 ? void 0 : _g.max;
|
|
2408
|
-
if (maxDate && !isValidDateFormat(maxDate)) {
|
|
2409
|
-
return invalidDateFormat(uischema.scope, 'Max');
|
|
2410
|
-
}
|
|
2411
|
-
return jsx(GoAInputDate, Object.assign({
|
|
2412
|
-
error: checkFieldValidity(props).length > 0,
|
|
2413
|
-
width: "100%",
|
|
2414
|
-
name: (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.name) || `${id || label}-input`,
|
|
2415
|
-
value: standardizeDate(data) || '',
|
|
2416
|
-
testId: (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.testId) || `${id}-input`,
|
|
2417
|
-
disabled: !enabled,
|
|
2418
|
-
readonly: readOnly,
|
|
2419
|
-
onChange: (name, value) => {
|
|
2420
|
-
onChangeForDateControl({
|
|
2421
|
-
name,
|
|
2422
|
-
value,
|
|
2423
|
-
controlProps: props
|
|
2424
|
-
});
|
|
2425
|
-
},
|
|
2426
|
-
onKeyPress: (name, value, key) => {
|
|
2427
|
-
onKeyPressForDateControl({
|
|
2428
|
-
name,
|
|
2429
|
-
value,
|
|
2430
|
-
key,
|
|
2431
|
-
controlProps: props
|
|
2432
|
-
});
|
|
2433
|
-
},
|
|
2434
|
-
onBlur: (name, value) => {
|
|
2435
|
-
onBlurForDateControl({
|
|
2436
|
-
name,
|
|
2437
|
-
value,
|
|
2438
|
-
controlProps: props
|
|
2439
|
-
});
|
|
2440
|
-
}
|
|
2441
|
-
}, reformatDateProps((_h = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _h === void 0 ? void 0 : _h.componentProps)));
|
|
2442
|
-
};
|
|
2443
|
-
const GoADateControl = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
|
|
2444
|
-
input: GoADateInput
|
|
2445
|
-
}));
|
|
2446
|
-
const GoADateControlTester = rankWith(4, isDateControl);
|
|
2447
|
-
const GoAInputDateControl = withJsonFormsControlProps(GoADateControl);
|
|
2448
2396
|
|
|
2449
2397
|
/**
|
|
2450
2398
|
* Checks input controls data value to determine is required and has any data.
|
|
@@ -2767,37 +2715,37 @@ const GoAInputBaseControl = props => {
|
|
|
2767
2715
|
};
|
|
2768
2716
|
|
|
2769
2717
|
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
2770
|
-
var defineProperty = objectDefineProperty;
|
|
2718
|
+
var defineProperty$1 = objectDefineProperty;
|
|
2771
2719
|
|
|
2772
2720
|
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
2773
2721
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
2774
2722
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
2775
|
-
return defineProperty.f(target, name, descriptor);
|
|
2723
|
+
return defineProperty$1.f(target, name, descriptor);
|
|
2776
2724
|
};
|
|
2777
2725
|
|
|
2778
|
-
var $$
|
|
2779
|
-
var DESCRIPTORS = descriptors;
|
|
2780
|
-
var global$
|
|
2781
|
-
var uncurryThis$
|
|
2782
|
-
var hasOwn$
|
|
2783
|
-
var isCallable = isCallable$
|
|
2784
|
-
var isPrototypeOf$
|
|
2785
|
-
var toString$
|
|
2726
|
+
var $$6 = _export;
|
|
2727
|
+
var DESCRIPTORS$2 = descriptors;
|
|
2728
|
+
var global$2 = global$g;
|
|
2729
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
2730
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
2731
|
+
var isCallable$4 = isCallable$l;
|
|
2732
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
2733
|
+
var toString$4 = toString$9;
|
|
2786
2734
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
2787
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
2735
|
+
var copyConstructorProperties$1 = copyConstructorProperties$3;
|
|
2788
2736
|
|
|
2789
|
-
var NativeSymbol = global$
|
|
2737
|
+
var NativeSymbol = global$2.Symbol;
|
|
2790
2738
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
2791
2739
|
|
|
2792
|
-
if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
2740
|
+
if (DESCRIPTORS$2 && isCallable$4(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
2793
2741
|
// Safari 12 bug
|
|
2794
2742
|
NativeSymbol().description !== undefined
|
|
2795
2743
|
)) {
|
|
2796
2744
|
var EmptyStringDescriptionStore = {};
|
|
2797
2745
|
// wrap Symbol constructor for correct work with undefined description
|
|
2798
2746
|
var SymbolWrapper = function Symbol() {
|
|
2799
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$
|
|
2800
|
-
var result = isPrototypeOf$
|
|
2747
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$4(arguments[0]);
|
|
2748
|
+
var result = isPrototypeOf$2(SymbolPrototype, this)
|
|
2801
2749
|
? new NativeSymbol(description)
|
|
2802
2750
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
2803
2751
|
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
@@ -2805,29 +2753,29 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
|
|
|
2805
2753
|
return result;
|
|
2806
2754
|
};
|
|
2807
2755
|
|
|
2808
|
-
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
2756
|
+
copyConstructorProperties$1(SymbolWrapper, NativeSymbol);
|
|
2809
2757
|
SymbolWrapper.prototype = SymbolPrototype;
|
|
2810
2758
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
2811
2759
|
|
|
2812
|
-
var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
|
|
2813
|
-
var thisSymbolValue = uncurryThis$
|
|
2814
|
-
var symbolDescriptiveString = uncurryThis$
|
|
2760
|
+
var NATIVE_SYMBOL$1 = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
|
|
2761
|
+
var thisSymbolValue = uncurryThis$5(SymbolPrototype.valueOf);
|
|
2762
|
+
var symbolDescriptiveString = uncurryThis$5(SymbolPrototype.toString);
|
|
2815
2763
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
2816
|
-
var replace = uncurryThis$
|
|
2817
|
-
var stringSlice = uncurryThis$
|
|
2764
|
+
var replace$2 = uncurryThis$5(''.replace);
|
|
2765
|
+
var stringSlice = uncurryThis$5(''.slice);
|
|
2818
2766
|
|
|
2819
2767
|
defineBuiltInAccessor(SymbolPrototype, 'description', {
|
|
2820
2768
|
configurable: true,
|
|
2821
2769
|
get: function description() {
|
|
2822
2770
|
var symbol = thisSymbolValue(this);
|
|
2823
|
-
if (hasOwn$
|
|
2771
|
+
if (hasOwn$2(EmptyStringDescriptionStore, symbol)) return '';
|
|
2824
2772
|
var string = symbolDescriptiveString(symbol);
|
|
2825
|
-
var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
|
|
2773
|
+
var desc = NATIVE_SYMBOL$1 ? stringSlice(string, 7, -1) : replace$2(string, regexp, '$1');
|
|
2826
2774
|
return desc === '' ? undefined : desc;
|
|
2827
2775
|
}
|
|
2828
2776
|
});
|
|
2829
2777
|
|
|
2830
|
-
$$
|
|
2778
|
+
$$6({ global: true, constructor: true, forced: true }, {
|
|
2831
2779
|
Symbol: SymbolWrapper
|
|
2832
2780
|
});
|
|
2833
2781
|
}
|
|
@@ -2936,6 +2884,223 @@ const MultiLineTextControlInput = props => jsx(GoAInputBaseControl, Object.assig
|
|
|
2936
2884
|
const MultiLineTextControlTester = rankWith(3, and(isStringControl, optionIs('multi', true)));
|
|
2937
2885
|
const MultiLineTextControl = withJsonFormsControlProps(MultiLineTextControlInput);
|
|
2938
2886
|
|
|
2887
|
+
// Used locally for callout presentation
|
|
2888
|
+
const callout = props => {
|
|
2889
|
+
const componentProps = Object.assign({
|
|
2890
|
+
size: 'medium',
|
|
2891
|
+
type: 'emergency',
|
|
2892
|
+
message: 'unknown'
|
|
2893
|
+
}, props);
|
|
2894
|
+
return jsx(GoACallout, Object.assign({}, componentProps, {
|
|
2895
|
+
children: componentProps.message
|
|
2896
|
+
}));
|
|
2897
|
+
};
|
|
2898
|
+
const CalloutControl = props => {
|
|
2899
|
+
var _a, _b;
|
|
2900
|
+
return callout(((_b = (_a = props === null || props === void 0 ? void 0 : props.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.componentProps) || {});
|
|
2901
|
+
};
|
|
2902
|
+
const GoACalloutControlTester = rankWith(1, uiTypeIs('Callout'));
|
|
2903
|
+
var GoACalloutControl = withJsonFormsRendererProps(CalloutControl);
|
|
2904
|
+
|
|
2905
|
+
const errMalformedDate = (scope, type) => {
|
|
2906
|
+
return `${type}-date for variable '${scope}' has an incorrect format.`;
|
|
2907
|
+
};
|
|
2908
|
+
const isValidDateFormat = date => {
|
|
2909
|
+
const standardized = standardizeDate(date);
|
|
2910
|
+
return standardized !== undefined;
|
|
2911
|
+
};
|
|
2912
|
+
const invalidDateFormat = (scope, type) => {
|
|
2913
|
+
return callout({
|
|
2914
|
+
message: errMalformedDate(scope, type)
|
|
2915
|
+
});
|
|
2916
|
+
};
|
|
2917
|
+
const reformatDateProps = props => {
|
|
2918
|
+
if (props) {
|
|
2919
|
+
if ('min' in props && typeof props.min === 'string') {
|
|
2920
|
+
props['min'] = standardizeDate(props.min);
|
|
2921
|
+
}
|
|
2922
|
+
if ('max' in props && typeof props.max === 'string') {
|
|
2923
|
+
props['max'] = standardizeDate(props.max);
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
return props;
|
|
2927
|
+
};
|
|
2928
|
+
const GoADateInput = props => {
|
|
2929
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2930
|
+
const {
|
|
2931
|
+
data,
|
|
2932
|
+
config,
|
|
2933
|
+
id,
|
|
2934
|
+
enabled,
|
|
2935
|
+
uischema,
|
|
2936
|
+
path,
|
|
2937
|
+
handleChange,
|
|
2938
|
+
label
|
|
2939
|
+
} = props;
|
|
2940
|
+
const appliedUiSchemaOptions = Object.assign(Object.assign({}, config), uischema === null || uischema === void 0 ? void 0 : uischema.options);
|
|
2941
|
+
const readOnly = (_c = (_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps) === null || _b === void 0 ? void 0 : _b.readOnly) !== null && _c !== void 0 ? _c : false;
|
|
2942
|
+
const minDate = (_e = (_d = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _d === void 0 ? void 0 : _d.componentProps) === null || _e === void 0 ? void 0 : _e.min;
|
|
2943
|
+
if (minDate && !isValidDateFormat(minDate)) {
|
|
2944
|
+
return invalidDateFormat(uischema.scope, 'Min');
|
|
2945
|
+
}
|
|
2946
|
+
const maxDate = (_g = (_f = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _f === void 0 ? void 0 : _f.componentProps) === null || _g === void 0 ? void 0 : _g.max;
|
|
2947
|
+
if (maxDate && !isValidDateFormat(maxDate)) {
|
|
2948
|
+
return invalidDateFormat(uischema.scope, 'Max');
|
|
2949
|
+
}
|
|
2950
|
+
return jsx(GoAInputDate, Object.assign({
|
|
2951
|
+
error: checkFieldValidity(props).length > 0,
|
|
2952
|
+
width: "100%",
|
|
2953
|
+
name: (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.name) || `${id || label}-input`,
|
|
2954
|
+
value: standardizeDate(data) || '',
|
|
2955
|
+
testId: (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.testId) || `${id}-input`,
|
|
2956
|
+
disabled: !enabled,
|
|
2957
|
+
readonly: readOnly,
|
|
2958
|
+
onChange: (name, value) => {
|
|
2959
|
+
onChangeForDateControl({
|
|
2960
|
+
name,
|
|
2961
|
+
value,
|
|
2962
|
+
controlProps: props
|
|
2963
|
+
});
|
|
2964
|
+
},
|
|
2965
|
+
onKeyPress: (name, value, key) => {
|
|
2966
|
+
onKeyPressForDateControl({
|
|
2967
|
+
name,
|
|
2968
|
+
value,
|
|
2969
|
+
key,
|
|
2970
|
+
controlProps: props
|
|
2971
|
+
});
|
|
2972
|
+
},
|
|
2973
|
+
onBlur: (name, value) => {
|
|
2974
|
+
onBlurForDateControl({
|
|
2975
|
+
name,
|
|
2976
|
+
value,
|
|
2977
|
+
controlProps: props
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2980
|
+
}, reformatDateProps((_h = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _h === void 0 ? void 0 : _h.componentProps)));
|
|
2981
|
+
};
|
|
2982
|
+
const GoADateControl = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
|
|
2983
|
+
input: GoADateInput
|
|
2984
|
+
}));
|
|
2985
|
+
const GoADateControlTester = rankWith(4, isDateControl);
|
|
2986
|
+
const GoAInputDateControl = withJsonFormsControlProps(GoADateControl);
|
|
2987
|
+
|
|
2988
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2989
|
+
|
|
2990
|
+
var arraySlice$1 = uncurryThis$4([].slice);
|
|
2991
|
+
|
|
2992
|
+
var classof$2 = classofRaw$1;
|
|
2993
|
+
|
|
2994
|
+
// `IsArray` abstract operation
|
|
2995
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
2996
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2997
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
2998
|
+
return classof$2(argument) === 'Array';
|
|
2999
|
+
};
|
|
3000
|
+
|
|
3001
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
3002
|
+
var isArray$1 = isArray$2;
|
|
3003
|
+
var isCallable$3 = isCallable$l;
|
|
3004
|
+
var classof$1 = classofRaw$1;
|
|
3005
|
+
var toString$3 = toString$9;
|
|
3006
|
+
|
|
3007
|
+
var push = uncurryThis$3([].push);
|
|
3008
|
+
|
|
3009
|
+
var getJsonReplacerFunction = function (replacer) {
|
|
3010
|
+
if (isCallable$3(replacer)) return replacer;
|
|
3011
|
+
if (!isArray$1(replacer)) return;
|
|
3012
|
+
var rawLength = replacer.length;
|
|
3013
|
+
var keys = [];
|
|
3014
|
+
for (var i = 0; i < rawLength; i++) {
|
|
3015
|
+
var element = replacer[i];
|
|
3016
|
+
if (typeof element == 'string') push(keys, element);
|
|
3017
|
+
else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$3(element));
|
|
3018
|
+
}
|
|
3019
|
+
var keysLength = keys.length;
|
|
3020
|
+
var root = true;
|
|
3021
|
+
return function (key, value) {
|
|
3022
|
+
if (root) {
|
|
3023
|
+
root = false;
|
|
3024
|
+
return value;
|
|
3025
|
+
}
|
|
3026
|
+
if (isArray$1(this)) return value;
|
|
3027
|
+
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
3028
|
+
};
|
|
3029
|
+
};
|
|
3030
|
+
|
|
3031
|
+
var $$5 = _export;
|
|
3032
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
3033
|
+
var apply$1 = functionApply;
|
|
3034
|
+
var call$2 = functionCall;
|
|
3035
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
3036
|
+
var fails$4 = fails$m;
|
|
3037
|
+
var isCallable$2 = isCallable$l;
|
|
3038
|
+
var isSymbol = isSymbol$3;
|
|
3039
|
+
var arraySlice = arraySlice$1;
|
|
3040
|
+
var getReplacerFunction = getJsonReplacerFunction;
|
|
3041
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
3042
|
+
|
|
3043
|
+
var $String = String;
|
|
3044
|
+
var $stringify = getBuiltIn$1('JSON', 'stringify');
|
|
3045
|
+
var exec = uncurryThis$2(/./.exec);
|
|
3046
|
+
var charAt = uncurryThis$2(''.charAt);
|
|
3047
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
3048
|
+
var replace$1 = uncurryThis$2(''.replace);
|
|
3049
|
+
var numberToString = uncurryThis$2(1.0.toString);
|
|
3050
|
+
|
|
3051
|
+
var tester = /[\uD800-\uDFFF]/g;
|
|
3052
|
+
var low = /^[\uD800-\uDBFF]$/;
|
|
3053
|
+
var hi = /^[\uDC00-\uDFFF]$/;
|
|
3054
|
+
|
|
3055
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$4(function () {
|
|
3056
|
+
var symbol = getBuiltIn$1('Symbol')('stringify detection');
|
|
3057
|
+
// MS Edge converts symbol values to JSON as {}
|
|
3058
|
+
return $stringify([symbol]) !== '[null]'
|
|
3059
|
+
// WebKit converts symbol values to JSON as null
|
|
3060
|
+
|| $stringify({ a: symbol }) !== '{}'
|
|
3061
|
+
// V8 throws on boxed symbols
|
|
3062
|
+
|| $stringify(Object(symbol)) !== '{}';
|
|
3063
|
+
});
|
|
3064
|
+
|
|
3065
|
+
// https://github.com/tc39/proposal-well-formed-stringify
|
|
3066
|
+
var ILL_FORMED_UNICODE = fails$4(function () {
|
|
3067
|
+
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
3068
|
+
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
3069
|
+
});
|
|
3070
|
+
|
|
3071
|
+
var stringifyWithSymbolsFix = function (it, replacer) {
|
|
3072
|
+
var args = arraySlice(arguments);
|
|
3073
|
+
var $replacer = getReplacerFunction(replacer);
|
|
3074
|
+
if (!isCallable$2($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
3075
|
+
args[1] = function (key, value) {
|
|
3076
|
+
// some old implementations (like WebKit) could pass numbers as keys
|
|
3077
|
+
if (isCallable$2($replacer)) value = call$2($replacer, this, $String(key), value);
|
|
3078
|
+
if (!isSymbol(value)) return value;
|
|
3079
|
+
};
|
|
3080
|
+
return apply$1($stringify, null, args);
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
var fixIllFormed = function (match, offset, string) {
|
|
3084
|
+
var prev = charAt(string, offset - 1);
|
|
3085
|
+
var next = charAt(string, offset + 1);
|
|
3086
|
+
if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
|
|
3087
|
+
return '\\u' + numberToString(charCodeAt(match, 0), 16);
|
|
3088
|
+
} return match;
|
|
3089
|
+
};
|
|
3090
|
+
|
|
3091
|
+
if ($stringify) {
|
|
3092
|
+
// `JSON.stringify` method
|
|
3093
|
+
// https://tc39.es/ecma262/#sec-json.stringify
|
|
3094
|
+
$$5({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
3095
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3096
|
+
stringify: function stringify(it, replacer, space) {
|
|
3097
|
+
var args = arraySlice(arguments);
|
|
3098
|
+
var result = apply$1(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
|
3099
|
+
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
|
|
3100
|
+
}
|
|
3101
|
+
});
|
|
3102
|
+
}
|
|
3103
|
+
|
|
2939
3104
|
const GoANumberInput = props => {
|
|
2940
3105
|
var _a, _b, _c, _d;
|
|
2941
3106
|
// eslint-disable-next-line
|
|
@@ -3181,20 +3346,229 @@ const GoATimeControl = props => jsx(GoAInputBaseControl, Object.assign({}, props
|
|
|
3181
3346
|
const GoATimeControlTester = rankWith(4, isTimeControl);
|
|
3182
3347
|
const GoAInputTimeControl = withJsonFormsControlProps(GoATimeControl);
|
|
3183
3348
|
|
|
3184
|
-
var
|
|
3349
|
+
var defineProperty = objectDefineProperty.f;
|
|
3350
|
+
|
|
3351
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
3352
|
+
key in Target || defineProperty(Target, key, {
|
|
3353
|
+
configurable: true,
|
|
3354
|
+
get: function () { return Source[key]; },
|
|
3355
|
+
set: function (it) { Source[key] = it; }
|
|
3356
|
+
});
|
|
3357
|
+
};
|
|
3358
|
+
|
|
3359
|
+
var isCallable$1 = isCallable$l;
|
|
3360
|
+
var isObject$2 = isObject$b;
|
|
3361
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
3362
|
+
|
|
3363
|
+
// makes subclassing work correct for wrapped built-ins
|
|
3364
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
3365
|
+
var NewTarget, NewTargetPrototype;
|
|
3366
|
+
if (
|
|
3367
|
+
// it can work only with native `setPrototypeOf`
|
|
3368
|
+
setPrototypeOf$1 &&
|
|
3369
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
3370
|
+
isCallable$1(NewTarget = dummy.constructor) &&
|
|
3371
|
+
NewTarget !== Wrapper &&
|
|
3372
|
+
isObject$2(NewTargetPrototype = NewTarget.prototype) &&
|
|
3373
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
3374
|
+
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
3375
|
+
return $this;
|
|
3376
|
+
};
|
|
3377
|
+
|
|
3378
|
+
var toString$2 = toString$9;
|
|
3379
|
+
|
|
3380
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
3381
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$2(argument);
|
|
3382
|
+
};
|
|
3383
|
+
|
|
3384
|
+
var isObject$1 = isObject$b;
|
|
3385
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
3386
|
+
|
|
3387
|
+
// `InstallErrorCause` abstract operation
|
|
3388
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
3389
|
+
var installErrorCause$1 = function (O, options) {
|
|
3390
|
+
if (isObject$1(options) && 'cause' in options) {
|
|
3391
|
+
createNonEnumerableProperty$2(O, 'cause', options.cause);
|
|
3392
|
+
}
|
|
3393
|
+
};
|
|
3394
|
+
|
|
3395
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
3396
|
+
|
|
3397
|
+
var $Error = Error;
|
|
3398
|
+
var replace = uncurryThis$1(''.replace);
|
|
3399
|
+
|
|
3400
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
3401
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
3402
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
3403
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
3404
|
+
|
|
3405
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
3406
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
3407
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
3408
|
+
} return stack;
|
|
3409
|
+
};
|
|
3410
|
+
|
|
3411
|
+
var fails$3 = fails$m;
|
|
3412
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
3413
|
+
|
|
3414
|
+
var errorStackInstallable = !fails$3(function () {
|
|
3415
|
+
var error = new Error('a');
|
|
3416
|
+
if (!('stack' in error)) return true;
|
|
3417
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3418
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
3419
|
+
return error.stack !== 7;
|
|
3420
|
+
});
|
|
3421
|
+
|
|
3422
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
3423
|
+
var clearErrorStack = errorStackClear;
|
|
3424
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
3425
|
+
|
|
3426
|
+
// non-standard V8
|
|
3427
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
3428
|
+
|
|
3429
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
3430
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
3431
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
3432
|
+
else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
3433
|
+
}
|
|
3434
|
+
};
|
|
3435
|
+
|
|
3436
|
+
var getBuiltIn = getBuiltIn$5;
|
|
3437
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
3438
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
3439
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
3440
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
3441
|
+
var copyConstructorProperties = copyConstructorProperties$3;
|
|
3442
|
+
var proxyAccessor = proxyAccessor$1;
|
|
3443
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
3444
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
3445
|
+
var installErrorCause = installErrorCause$1;
|
|
3446
|
+
var installErrorStack = errorStackInstall;
|
|
3447
|
+
var DESCRIPTORS$1 = descriptors;
|
|
3448
|
+
|
|
3449
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
3450
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
3451
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
3452
|
+
var path = FULL_NAME.split('.');
|
|
3453
|
+
var ERROR_NAME = path[path.length - 1];
|
|
3454
|
+
var OriginalError = getBuiltIn.apply(null, path);
|
|
3455
|
+
|
|
3456
|
+
if (!OriginalError) return;
|
|
3457
|
+
|
|
3458
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
3459
|
+
|
|
3460
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
3461
|
+
if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
3462
|
+
|
|
3463
|
+
if (!FORCED) return OriginalError;
|
|
3464
|
+
|
|
3465
|
+
var BaseError = getBuiltIn('Error');
|
|
3466
|
+
|
|
3467
|
+
var WrappedError = wrapper(function (a, b) {
|
|
3468
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
3469
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
3470
|
+
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
3471
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
3472
|
+
if (this && isPrototypeOf$1(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
3473
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
3474
|
+
return result;
|
|
3475
|
+
});
|
|
3476
|
+
|
|
3477
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
3478
|
+
|
|
3479
|
+
if (ERROR_NAME !== 'Error') {
|
|
3480
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
3481
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
3482
|
+
} else if (DESCRIPTORS$1 && STACK_TRACE_LIMIT in OriginalError) {
|
|
3483
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
3484
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
3485
|
+
}
|
|
3486
|
+
|
|
3487
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
3488
|
+
|
|
3489
|
+
try {
|
|
3490
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
3491
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
3492
|
+
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
3493
|
+
}
|
|
3494
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
3495
|
+
} catch (error) { /* empty */ }
|
|
3496
|
+
|
|
3497
|
+
return WrappedError;
|
|
3498
|
+
};
|
|
3499
|
+
|
|
3500
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
3501
|
+
var $$4 = _export;
|
|
3502
|
+
var global$1 = global$g;
|
|
3503
|
+
var apply = functionApply;
|
|
3504
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
3505
|
+
|
|
3506
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
3507
|
+
var WebAssembly = global$1[WEB_ASSEMBLY];
|
|
3508
|
+
|
|
3509
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
3510
|
+
var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
|
|
3511
|
+
|
|
3512
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3513
|
+
var O = {};
|
|
3514
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
|
|
3515
|
+
$$4({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
|
|
3516
|
+
};
|
|
3517
|
+
|
|
3518
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3519
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
3520
|
+
var O = {};
|
|
3521
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
|
|
3522
|
+
$$4({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
|
|
3526
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
3527
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
3528
|
+
return function Error(message) { return apply(init, this, arguments); };
|
|
3529
|
+
});
|
|
3530
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
3531
|
+
return function EvalError(message) { return apply(init, this, arguments); };
|
|
3532
|
+
});
|
|
3533
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
3534
|
+
return function RangeError(message) { return apply(init, this, arguments); };
|
|
3535
|
+
});
|
|
3536
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
3537
|
+
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
3538
|
+
});
|
|
3539
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
3540
|
+
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
3541
|
+
});
|
|
3542
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
3543
|
+
return function TypeError(message) { return apply(init, this, arguments); };
|
|
3544
|
+
});
|
|
3545
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
3546
|
+
return function URIError(message) { return apply(init, this, arguments); };
|
|
3547
|
+
});
|
|
3548
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
3549
|
+
return function CompileError(message) { return apply(init, this, arguments); };
|
|
3550
|
+
});
|
|
3551
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
3552
|
+
return function LinkError(message) { return apply(init, this, arguments); };
|
|
3553
|
+
});
|
|
3554
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
3555
|
+
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
3556
|
+
});
|
|
3557
|
+
|
|
3558
|
+
var $$3 = _export;
|
|
3185
3559
|
var $includes = arrayIncludes.includes;
|
|
3186
|
-
var fails$
|
|
3187
|
-
var addToUnscopables = addToUnscopables$
|
|
3560
|
+
var fails$2 = fails$m;
|
|
3561
|
+
var addToUnscopables = addToUnscopables$3;
|
|
3188
3562
|
|
|
3189
3563
|
// FF99+ bug
|
|
3190
|
-
var BROKEN_ON_SPARSE = fails$
|
|
3564
|
+
var BROKEN_ON_SPARSE = fails$2(function () {
|
|
3191
3565
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
3192
3566
|
return !Array(1).includes();
|
|
3193
3567
|
});
|
|
3194
3568
|
|
|
3195
3569
|
// `Array.prototype.includes` method
|
|
3196
3570
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
3197
|
-
$$
|
|
3571
|
+
$$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
3198
3572
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
3199
3573
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
3200
3574
|
}
|
|
@@ -3203,7 +3577,84 @@ $$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
3203
3577
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3204
3578
|
addToUnscopables('includes');
|
|
3205
3579
|
|
|
3206
|
-
var
|
|
3580
|
+
var DESCRIPTORS = descriptors;
|
|
3581
|
+
var isArray = isArray$2;
|
|
3582
|
+
|
|
3583
|
+
var $TypeError$2 = TypeError;
|
|
3584
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3585
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
3586
|
+
|
|
3587
|
+
// Safari < 13 does not throw an error in this case
|
|
3588
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
3589
|
+
// makes no sense without proper strict mode support
|
|
3590
|
+
if (this !== undefined) return true;
|
|
3591
|
+
try {
|
|
3592
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3593
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
3594
|
+
} catch (error) {
|
|
3595
|
+
return error instanceof TypeError;
|
|
3596
|
+
}
|
|
3597
|
+
}();
|
|
3598
|
+
|
|
3599
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
3600
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
3601
|
+
throw new $TypeError$2('Cannot set read only .length');
|
|
3602
|
+
} return O.length = length;
|
|
3603
|
+
} : function (O, length) {
|
|
3604
|
+
return O.length = length;
|
|
3605
|
+
};
|
|
3606
|
+
|
|
3607
|
+
var $TypeError$1 = TypeError;
|
|
3608
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
3609
|
+
|
|
3610
|
+
var doesNotExceedSafeInteger$1 = function (it) {
|
|
3611
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
|
|
3612
|
+
return it;
|
|
3613
|
+
};
|
|
3614
|
+
|
|
3615
|
+
var $$2 = _export;
|
|
3616
|
+
var toObject = toObject$6;
|
|
3617
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
3618
|
+
var setArrayLength = arraySetLength;
|
|
3619
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
3620
|
+
var fails$1 = fails$m;
|
|
3621
|
+
|
|
3622
|
+
var INCORRECT_TO_LENGTH = fails$1(function () {
|
|
3623
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
3624
|
+
});
|
|
3625
|
+
|
|
3626
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
3627
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
3628
|
+
var properErrorOnNonWritableLength = function () {
|
|
3629
|
+
try {
|
|
3630
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3631
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
3632
|
+
} catch (error) {
|
|
3633
|
+
return error instanceof TypeError;
|
|
3634
|
+
}
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
3638
|
+
|
|
3639
|
+
// `Array.prototype.push` method
|
|
3640
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
3641
|
+
$$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
3642
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3643
|
+
push: function push(item) {
|
|
3644
|
+
var O = toObject(this);
|
|
3645
|
+
var len = lengthOfArrayLike(O);
|
|
3646
|
+
var argCount = arguments.length;
|
|
3647
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
3648
|
+
for (var i = 0; i < argCount; i++) {
|
|
3649
|
+
O[len] = arguments[i];
|
|
3650
|
+
len++;
|
|
3651
|
+
}
|
|
3652
|
+
setArrayLength(O, len);
|
|
3653
|
+
return len;
|
|
3654
|
+
}
|
|
3655
|
+
});
|
|
3656
|
+
|
|
3657
|
+
var isObject = isObject$b;
|
|
3207
3658
|
var classof = classofRaw$1;
|
|
3208
3659
|
var wellKnownSymbol$1 = wellKnownSymbol$c;
|
|
3209
3660
|
|
|
@@ -3242,22 +3693,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
3242
3693
|
} return false;
|
|
3243
3694
|
};
|
|
3244
3695
|
|
|
3245
|
-
var
|
|
3696
|
+
var $$1 = _export;
|
|
3246
3697
|
var uncurryThis = functionUncurryThis;
|
|
3247
3698
|
var notARegExp = notARegexp;
|
|
3248
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
3249
|
-
var toString = toString$
|
|
3699
|
+
var requireObjectCoercible = requireObjectCoercible$7;
|
|
3700
|
+
var toString$1 = toString$9;
|
|
3250
3701
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
3251
3702
|
|
|
3252
3703
|
var stringIndexOf = uncurryThis(''.indexOf);
|
|
3253
3704
|
|
|
3254
3705
|
// `String.prototype.includes` method
|
|
3255
3706
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
3256
|
-
|
|
3707
|
+
$$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
3257
3708
|
includes: function includes(searchString /* , position = 0 */) {
|
|
3258
3709
|
return !!~stringIndexOf(
|
|
3259
|
-
toString(requireObjectCoercible(this)),
|
|
3260
|
-
toString(notARegExp(searchString)),
|
|
3710
|
+
toString$1(requireObjectCoercible(this)),
|
|
3711
|
+
toString$1(notARegExp(searchString)),
|
|
3261
3712
|
arguments.length > 1 ? arguments[1] : undefined
|
|
3262
3713
|
);
|
|
3263
3714
|
}
|
|
@@ -3908,6 +4359,41 @@ const getAllRequiredFields = schema => {
|
|
|
3908
4359
|
return requiredFields;
|
|
3909
4360
|
};
|
|
3910
4361
|
|
|
4362
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
4363
|
+
|
|
4364
|
+
var $ = _export;
|
|
4365
|
+
var call$1 = functionCall;
|
|
4366
|
+
var isCallable = isCallable$l;
|
|
4367
|
+
var anObject$1 = anObject$9;
|
|
4368
|
+
var toString = toString$9;
|
|
4369
|
+
|
|
4370
|
+
var DELEGATES_TO_EXEC = function () {
|
|
4371
|
+
var execCalled = false;
|
|
4372
|
+
var re = /[ac]/;
|
|
4373
|
+
re.exec = function () {
|
|
4374
|
+
execCalled = true;
|
|
4375
|
+
return /./.exec.apply(this, arguments);
|
|
4376
|
+
};
|
|
4377
|
+
return re.test('abc') === true && execCalled;
|
|
4378
|
+
}();
|
|
4379
|
+
|
|
4380
|
+
var nativeTest = /./.test;
|
|
4381
|
+
|
|
4382
|
+
// `RegExp.prototype.test` method
|
|
4383
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
4384
|
+
$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
4385
|
+
test: function (S) {
|
|
4386
|
+
var R = anObject$1(this);
|
|
4387
|
+
var string = toString(S);
|
|
4388
|
+
var exec = R.exec;
|
|
4389
|
+
if (!isCallable(exec)) return call$1(nativeTest, R, string);
|
|
4390
|
+
var result = call$1(exec, R, string);
|
|
4391
|
+
if (result === null) return false;
|
|
4392
|
+
anObject$1(result);
|
|
4393
|
+
return true;
|
|
4394
|
+
}
|
|
4395
|
+
});
|
|
4396
|
+
|
|
3911
4397
|
var call = functionCall;
|
|
3912
4398
|
var hasOwn = hasOwnProperty_1;
|
|
3913
4399
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
@@ -3924,8 +4410,8 @@ var regexpGetFlags = function (R) {
|
|
|
3924
4410
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3925
4411
|
var defineBuiltIn = defineBuiltIn$5;
|
|
3926
4412
|
var anObject = anObject$9;
|
|
3927
|
-
var $toString = toString$
|
|
3928
|
-
var fails = fails$
|
|
4413
|
+
var $toString = toString$9;
|
|
4414
|
+
var fails = fails$m;
|
|
3929
4415
|
var getRegExpFlags = regexpGetFlags;
|
|
3930
4416
|
|
|
3931
4417
|
var TO_STRING = 'toString';
|
|
@@ -4116,6 +4602,7 @@ const mapToVisibleStep = (step, allSteps, visibleSteps) => {
|
|
|
4116
4602
|
return step;
|
|
4117
4603
|
};
|
|
4118
4604
|
|
|
4605
|
+
const summaryLabel = 'Summary';
|
|
4119
4606
|
const FormStepper = props => {
|
|
4120
4607
|
var _a, _b, _c, _d;
|
|
4121
4608
|
const {
|
|
@@ -4134,7 +4621,7 @@ const FormStepper = props => {
|
|
|
4134
4621
|
const submitFormFunction = enumerators.submitFunction.get('submit-form');
|
|
4135
4622
|
const submitForm = submitFormFunction && submitFormFunction();
|
|
4136
4623
|
const categorization = uischema;
|
|
4137
|
-
const
|
|
4624
|
+
const allCategories = JSON.parse(JSON.stringify(categorization));
|
|
4138
4625
|
const [step, setStep] = React.useState(0);
|
|
4139
4626
|
const [isFormValid, setIsFormValid] = React.useState(false);
|
|
4140
4627
|
const [showNextBtn, setShowNextBtn] = React.useState(true);
|
|
@@ -4154,10 +4641,10 @@ const FormStepper = props => {
|
|
|
4154
4641
|
setIsOpen(true);
|
|
4155
4642
|
}
|
|
4156
4643
|
};
|
|
4157
|
-
const
|
|
4644
|
+
const onCloseModal = () => {
|
|
4158
4645
|
setIsOpen(false);
|
|
4159
4646
|
};
|
|
4160
|
-
const
|
|
4647
|
+
const visibleCategoryLabels = useMemo(() => {
|
|
4161
4648
|
return categories.map(c => deriveLabelForUISchemaElement(c, t));
|
|
4162
4649
|
}, [categories, t]);
|
|
4163
4650
|
useEffect(() => {}, [categories.length]);
|
|
@@ -4198,18 +4685,16 @@ const FormStepper = props => {
|
|
|
4198
4685
|
setPage(page);
|
|
4199
4686
|
}
|
|
4200
4687
|
function setTab(page) {
|
|
4201
|
-
const
|
|
4202
|
-
|
|
4203
|
-
|
|
4688
|
+
const categoryLabels = [...allCategories.elements.map(category => category.label), summaryLabel];
|
|
4689
|
+
const visibleLabels = [...visibleCategoryLabels, summaryLabel];
|
|
4690
|
+
const newPage = mapToVisibleStep(page, categoryLabels, visibleLabels);
|
|
4691
|
+
setPage(newPage);
|
|
4204
4692
|
}
|
|
4205
4693
|
function setPage(page) {
|
|
4206
4694
|
setStep(page);
|
|
4207
4695
|
if (page < 1 || page > categories.length + 1) return;
|
|
4208
4696
|
setShowNextBtn(categories.length + 1 !== page);
|
|
4209
4697
|
}
|
|
4210
|
-
const changePage = index => {
|
|
4211
|
-
setPage(index + 1);
|
|
4212
|
-
};
|
|
4213
4698
|
const updateInputStatus = inputStatus => {
|
|
4214
4699
|
inputStatuses[inputStatus.id] = inputStatus;
|
|
4215
4700
|
setInputStatuses(Object.assign({}, inputStatuses));
|
|
@@ -4233,9 +4718,9 @@ const FormStepper = props => {
|
|
|
4233
4718
|
},
|
|
4234
4719
|
children: [categories === null || categories === void 0 ? void 0 : categories.map((_, index) => {
|
|
4235
4720
|
return jsx(GoAFormStep, {
|
|
4236
|
-
text: `${
|
|
4721
|
+
text: `${visibleCategoryLabels[index]}`,
|
|
4237
4722
|
status: stepStatuses[index]
|
|
4238
|
-
}, `${
|
|
4723
|
+
}, `${visibleCategoryLabels[index]}-tab`);
|
|
4239
4724
|
}), jsx(GoAFormStep, {
|
|
4240
4725
|
text: "Review"
|
|
4241
4726
|
})]
|
|
@@ -4268,7 +4753,7 @@ const FormStepper = props => {
|
|
|
4268
4753
|
},
|
|
4269
4754
|
children: RenderStepElements(props)
|
|
4270
4755
|
})
|
|
4271
|
-
}, `${
|
|
4756
|
+
}, `${visibleCategoryLabels[index]}`);
|
|
4272
4757
|
}), jsxs("div", {
|
|
4273
4758
|
"data-testid": "summary_step-content",
|
|
4274
4759
|
children: [jsx("h3", {
|
|
@@ -4276,17 +4761,19 @@ const FormStepper = props => {
|
|
|
4276
4761
|
flex: 1,
|
|
4277
4762
|
marginBottom: '1rem'
|
|
4278
4763
|
},
|
|
4279
|
-
children:
|
|
4764
|
+
children: summaryLabel
|
|
4280
4765
|
}), jsx(ReviewItem, {
|
|
4281
4766
|
children: categories.map((category, index) => {
|
|
4282
4767
|
const categoryLabel = category.label || category.i18n || 'Unknown Category';
|
|
4283
4768
|
const requiredFields = getAllRequiredFields(schema);
|
|
4769
|
+
const testId = `${categoryLabel}-review-link`;
|
|
4284
4770
|
return jsxs(ReviewItemSection, {
|
|
4285
4771
|
children: [jsxs(ReviewItemHeader, {
|
|
4286
4772
|
children: [jsx(ReviewItemTitle, {
|
|
4287
4773
|
children: categoryLabel
|
|
4288
4774
|
}), jsx(Anchor, {
|
|
4289
|
-
onClick: () =>
|
|
4775
|
+
onClick: () => setPage(index + 1),
|
|
4776
|
+
"data-testid": testId,
|
|
4290
4777
|
children: readOnly ? 'View' : 'Edit'
|
|
4291
4778
|
})]
|
|
4292
4779
|
}), jsx(Grid, {
|
|
@@ -4336,13 +4823,14 @@ const FormStepper = props => {
|
|
|
4336
4823
|
alignment: "end",
|
|
4337
4824
|
children: [jsx(GoAButton, {
|
|
4338
4825
|
type: "primary",
|
|
4339
|
-
testId: "submit-
|
|
4340
|
-
onClick:
|
|
4826
|
+
testId: "close-submit-modal",
|
|
4827
|
+
onClick: onCloseModal,
|
|
4341
4828
|
children: "Close"
|
|
4342
4829
|
}), !showNextBtn && jsx(GoAButton, {
|
|
4343
4830
|
type: "primary",
|
|
4344
4831
|
onClick: handleSubmit,
|
|
4345
4832
|
disabled: !isFormValid || !enabled,
|
|
4833
|
+
testId: "submit-form",
|
|
4346
4834
|
children: "Submit"
|
|
4347
4835
|
})]
|
|
4348
4836
|
})
|