@sebgroup/green-react 1.0.0-beta.6 → 1.0.0-beta.7
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 +749 -1608
- package/index.umd.js +719 -1629
- package/lib/form/form.d.ts +2 -1
- package/lib/form/formContext.d.ts +13 -0
- package/lib/form/formItems.d.ts +9 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/form/input/input.d.ts +10 -6
- package/lib/form/radioButton/radioGroup.d.ts +2 -1
- package/lib/form/types.d.ts +13 -27
- package/lib/form/useInput.d.ts +2 -3
- package/lib/form/validateInput.d.ts +9 -0
- package/lib/layout/flexbox/flexbox.d.ts +11 -7
- package/lib/layout/flexbox/types.d.ts +5 -0
- package/package.json +3 -3
package/index.umd.js
CHANGED
|
@@ -182,33 +182,40 @@
|
|
|
182
182
|
alignItems = _a.alignItems,
|
|
183
183
|
alignSelf = _a.alignSelf,
|
|
184
184
|
children = _a.children,
|
|
185
|
-
justifyContent = _a.justifyContent
|
|
185
|
+
justifyContent = _a.justifyContent,
|
|
186
|
+
flexDirection = _a.flexDirection,
|
|
187
|
+
flexWrap = _a.flexWrap,
|
|
188
|
+
className = _a.className,
|
|
189
|
+
props = __rest(_a, ["alignContent", "alignItems", "alignSelf", "children", "justifyContent", "flexDirection", "flexWrap", "className"]);
|
|
186
190
|
|
|
187
191
|
var _b = React.useState(['d-flex']),
|
|
188
192
|
classes = _b[0],
|
|
189
193
|
setClasses = _b[1];
|
|
190
194
|
|
|
191
195
|
var _c = React.useState('d-flex'),
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
flexClassName = _c[0],
|
|
197
|
+
setFlexClassName = _c[1]; // // update className when classes change
|
|
194
198
|
|
|
195
199
|
|
|
196
|
-
React.
|
|
200
|
+
React.useLayoutEffect(function () {
|
|
197
201
|
var newClassName = classes.join(' ');
|
|
198
|
-
if (newClassName !==
|
|
199
|
-
}, [classes,
|
|
202
|
+
if (newClassName !== flexClassName) setFlexClassName(newClassName);
|
|
203
|
+
}, [classes, flexClassName]); // // update classes when props change
|
|
200
204
|
|
|
201
|
-
React.
|
|
205
|
+
React.useLayoutEffect(function () {
|
|
202
206
|
var newClasses = ['d-flex'];
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
+
alignItems && newClasses.push("align-items-".concat(alignItems));
|
|
208
|
+
alignContent && newClasses.push("align-content-".concat(alignContent));
|
|
209
|
+
alignSelf && newClasses.push("align-self-".concat(alignSelf));
|
|
210
|
+
justifyContent && newClasses.push("justify-content-".concat(justifyContent));
|
|
211
|
+
flexDirection && newClasses.push("flex-".concat(flexDirection));
|
|
212
|
+
flexWrap && newClasses.push("flex-".concat(flexWrap));
|
|
213
|
+
className && newClasses.push(className);
|
|
207
214
|
setClasses(newClasses);
|
|
208
|
-
}, [alignContent, alignItems, alignSelf, justifyContent]);
|
|
215
|
+
}, [alignContent, alignItems, alignSelf, justifyContent, flexDirection, flexWrap, className]);
|
|
209
216
|
return jsxRuntime.jsx("div", __assign({
|
|
210
|
-
className:
|
|
211
|
-
}, {
|
|
217
|
+
className: flexClassName
|
|
218
|
+
}, props, {
|
|
212
219
|
children: children
|
|
213
220
|
}), void 0);
|
|
214
221
|
};
|
|
@@ -316,18 +323,229 @@
|
|
|
316
323
|
}, void 0);
|
|
317
324
|
};
|
|
318
325
|
|
|
319
|
-
function
|
|
326
|
+
var validateInputValue = function validateInputValue(target, rules, setError) {
|
|
327
|
+
var errorMessage = validateInputValueErrors(rules, target);
|
|
328
|
+
errorMessage ? setErrorInsert(setError, target.name) : setErrorRemove(setError, target.name);
|
|
329
|
+
return errorMessage;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
var validateInputValueErrors = function validateInputValueErrors(rules, target) {
|
|
333
|
+
var value = target.value,
|
|
334
|
+
type = target.type,
|
|
335
|
+
checked = target.checked;
|
|
336
|
+
|
|
337
|
+
if ((rules === null || rules === void 0 ? void 0 : rules.custom) instanceof Function) {
|
|
338
|
+
return rules === null || rules === void 0 ? void 0 : rules.custom();
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
switch (type) {
|
|
342
|
+
case 'text':
|
|
343
|
+
case 'email':
|
|
344
|
+
case 'number':
|
|
345
|
+
return validateTextInputValues(value, rules);
|
|
346
|
+
|
|
347
|
+
case 'checkbox':
|
|
348
|
+
return validateCheckBoxInput(checked);
|
|
349
|
+
|
|
350
|
+
default:
|
|
351
|
+
return validateTextInputValues(value, rules);
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
var setErrorInsert = function setErrorInsert(setError, name) {
|
|
356
|
+
setError(function (errors) {
|
|
357
|
+
var _a;
|
|
358
|
+
|
|
359
|
+
return __assign(__assign({}, errors), (_a = {}, _a[name] = true, _a));
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
var setErrorRemove = function setErrorRemove(setError, name) {
|
|
364
|
+
setError(function (errors) {
|
|
365
|
+
var newError = __assign({}, errors);
|
|
366
|
+
|
|
367
|
+
delete newError[name];
|
|
368
|
+
return newError;
|
|
369
|
+
});
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
var validateTextInputValues = function validateTextInputValues(value, rules) {
|
|
373
|
+
switch (rules === null || rules === void 0 ? void 0 : rules.type) {
|
|
374
|
+
case 'Required':
|
|
375
|
+
{
|
|
376
|
+
return value === '' || value === undefined || value === null ? 'error' : null;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
default:
|
|
380
|
+
{
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
var validateCheckBoxInput = function validateCheckBoxInput(checked) {
|
|
387
|
+
if (!checked) {
|
|
388
|
+
return 'error';
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return null;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
var FormContext = /*#__PURE__*/React__default["default"].createContext({});
|
|
395
|
+
var useFormContext = function useFormContext() {
|
|
396
|
+
return React__default["default"].useContext(FormContext);
|
|
397
|
+
};
|
|
398
|
+
var FormProvider = function FormProvider(_a) {
|
|
320
399
|
var children = _a.children,
|
|
321
400
|
_b = _a.direction,
|
|
322
401
|
direction = _b === void 0 ? 'vertical' : _b,
|
|
323
402
|
_c = _a.formSize,
|
|
324
403
|
formSize = _c === void 0 ? 'md' : _c;
|
|
325
|
-
|
|
326
|
-
|
|
404
|
+
_a.onSubmit;
|
|
405
|
+
var onFormSubmit = _a.onFormSubmit,
|
|
406
|
+
props = __rest(_a, ["children", "direction", "formSize", "onSubmit", "onFormSubmit"]);
|
|
407
|
+
|
|
408
|
+
var _d = React__default["default"].useState(),
|
|
409
|
+
values = _d[0],
|
|
410
|
+
setValues = _d[1];
|
|
411
|
+
|
|
412
|
+
var _e = React__default["default"].useState(),
|
|
413
|
+
errors = _e[0],
|
|
414
|
+
setErrors = _e[1];
|
|
415
|
+
|
|
416
|
+
var _f = React__default["default"].useState({}),
|
|
417
|
+
fields = _f[0],
|
|
418
|
+
setFields = _f[1];
|
|
419
|
+
|
|
420
|
+
var formSubmit = function formSubmit(event) {
|
|
421
|
+
var hasError = false;
|
|
422
|
+
event.preventDefault();
|
|
423
|
+
Object.keys(fields).forEach(function (key) {
|
|
424
|
+
var errorMessage = validateInputValue({
|
|
425
|
+
name: key,
|
|
426
|
+
value: values === null || values === void 0 ? void 0 : values[key]
|
|
427
|
+
}, fields[key], setErrors);
|
|
428
|
+
hasError = hasError || !!errorMessage;
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
if (!hasError) {
|
|
432
|
+
onFormSubmit && onFormSubmit(values);
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
var resetForm = function resetForm() {
|
|
437
|
+
setValues({});
|
|
438
|
+
setErrors({});
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
return jsxRuntime.jsx(FormContext.Provider, __assign({
|
|
442
|
+
value: {
|
|
443
|
+
setValues: setValues,
|
|
444
|
+
setErrors: setErrors,
|
|
445
|
+
setFields: setFields,
|
|
446
|
+
errors: errors,
|
|
447
|
+
values: values
|
|
448
|
+
}
|
|
327
449
|
}, {
|
|
328
|
-
children:
|
|
450
|
+
children: jsxRuntime.jsx("form", __assign({
|
|
451
|
+
className: [direction, "size-".concat(formSize)].join(' '),
|
|
452
|
+
onSubmit: formSubmit
|
|
453
|
+
}, props, {
|
|
454
|
+
onReset: resetForm
|
|
455
|
+
}, {
|
|
456
|
+
children: children
|
|
457
|
+
}), void 0)
|
|
329
458
|
}), void 0);
|
|
330
|
-
}
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
var Form = function Form(props) {
|
|
462
|
+
return jsxRuntime.jsx(FormProvider, __assign({}, props), void 0);
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
var FormItems = function FormItems(_a) {
|
|
466
|
+
var children = _a.children,
|
|
467
|
+
validate = _a.validate,
|
|
468
|
+
name = _a.name;
|
|
469
|
+
|
|
470
|
+
var _b = useFormContext(),
|
|
471
|
+
setValues = _b.setValues,
|
|
472
|
+
setErrors = _b.setErrors,
|
|
473
|
+
setFields = _b.setFields,
|
|
474
|
+
errors = _b.errors;
|
|
475
|
+
|
|
476
|
+
React__default["default"].useEffect(function () {
|
|
477
|
+
setFields(function (fields) {
|
|
478
|
+
var _a;
|
|
479
|
+
|
|
480
|
+
return __assign(__assign({}, fields), (_a = {}, _a[name] = validate === null || validate === void 0 ? void 0 : validate.rules, _a));
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
var removeValues = function removeValues(values) {
|
|
484
|
+
var newValues = __assign({}, values);
|
|
485
|
+
|
|
486
|
+
delete newValues[name];
|
|
487
|
+
return newValues;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
return function () {
|
|
491
|
+
setFields(function (fields) {
|
|
492
|
+
return removeValues(fields);
|
|
493
|
+
});
|
|
494
|
+
setValues(function (values) {
|
|
495
|
+
return removeValues(values);
|
|
496
|
+
});
|
|
497
|
+
setErrors(function (errors) {
|
|
498
|
+
return removeValues(errors);
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
}, []);
|
|
502
|
+
|
|
503
|
+
var onChange = function onChange(event) {
|
|
504
|
+
var _a = event.target,
|
|
505
|
+
value = _a.value,
|
|
506
|
+
name = _a.name,
|
|
507
|
+
type = _a.type,
|
|
508
|
+
checked = _a.checked;
|
|
509
|
+
|
|
510
|
+
if (type === 'checkbox') {
|
|
511
|
+
if (checked) {
|
|
512
|
+
setValues(function (values) {
|
|
513
|
+
var _a;
|
|
514
|
+
|
|
515
|
+
return __assign(__assign({}, values), (_a = {}, _a[name] = {
|
|
516
|
+
value: value,
|
|
517
|
+
checked: checked
|
|
518
|
+
}, _a));
|
|
519
|
+
});
|
|
520
|
+
} else {
|
|
521
|
+
setValues(function (values) {
|
|
522
|
+
var _a;
|
|
523
|
+
|
|
524
|
+
return __assign(__assign({}, values), (_a = {}, _a[name] = null, _a));
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
} else {
|
|
528
|
+
setValues(function (values) {
|
|
529
|
+
var _a;
|
|
530
|
+
|
|
531
|
+
return __assign(__assign({}, values), (_a = {}, _a[name] = value, _a));
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
validateInputValue({
|
|
536
|
+
value: value,
|
|
537
|
+
name: name,
|
|
538
|
+
type: type,
|
|
539
|
+
checked: checked
|
|
540
|
+
}, validate === null || validate === void 0 ? void 0 : validate.rules, setErrors);
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
return /*#__PURE__*/React__default["default"].cloneElement(children, {
|
|
544
|
+
validator: (errors === null || errors === void 0 ? void 0 : errors[name]) && validate,
|
|
545
|
+
name: name,
|
|
546
|
+
onChange: onChange
|
|
547
|
+
});
|
|
548
|
+
};
|
|
331
549
|
|
|
332
550
|
function Group(_a) {
|
|
333
551
|
var children = _a.children,
|
|
@@ -351,6 +569,174 @@
|
|
|
351
569
|
}), void 0);
|
|
352
570
|
}
|
|
353
571
|
|
|
572
|
+
var useInput = function useInput(props, onChanges, onChangeInput) {
|
|
573
|
+
var id = React.useMemo(function () {
|
|
574
|
+
return props.id || extract.randomId();
|
|
575
|
+
}, [props.id]);
|
|
576
|
+
var ref = React.useRef(null);
|
|
577
|
+
|
|
578
|
+
var _a = React.useState(props.value ? props.value : ''),
|
|
579
|
+
value = _a[0],
|
|
580
|
+
setValue = _a[1];
|
|
581
|
+
|
|
582
|
+
var _b = React.useState(props.checked ? props.checked : false),
|
|
583
|
+
checked = _b[0],
|
|
584
|
+
setChecked = _b[1];
|
|
585
|
+
|
|
586
|
+
React.useEffect(function () {
|
|
587
|
+
if (ref.current && ref.current.form) {
|
|
588
|
+
var resetListener_1 = function resetListener_1() {
|
|
589
|
+
setValue(props.value ? props.value : '');
|
|
590
|
+
setChecked(props.checked ? props.checked : false);
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
var form_1 = ref.current.form;
|
|
594
|
+
form_1.addEventListener('reset', resetListener_1);
|
|
595
|
+
return function () {
|
|
596
|
+
return form_1.removeEventListener('reset', resetListener_1);
|
|
597
|
+
};
|
|
598
|
+
} else {
|
|
599
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
600
|
+
return function () {};
|
|
601
|
+
}
|
|
602
|
+
}, [props]);
|
|
603
|
+
|
|
604
|
+
var onChange = function onChange(event) {
|
|
605
|
+
setValue(event.target.value);
|
|
606
|
+
setChecked(event.currentTarget.checked);
|
|
607
|
+
onChanges && onChanges(event);
|
|
608
|
+
onChangeInput && onChangeInput(event.target.value);
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
return __assign(__assign({}, props), {
|
|
612
|
+
id: id,
|
|
613
|
+
ref: ref,
|
|
614
|
+
value: value,
|
|
615
|
+
checked: checked,
|
|
616
|
+
onChange: onChange
|
|
617
|
+
});
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
var RenderInput = function RenderInput(type, props, onChange, onChangeInput, label, info, validator) {
|
|
621
|
+
var _a = useInput(props, onChange, onChangeInput),
|
|
622
|
+
value = _a.value,
|
|
623
|
+
inputProps = __rest(_a, ["value"]);
|
|
624
|
+
|
|
625
|
+
var propsWithDescription = info ? __assign(__assign({}, inputProps), {
|
|
626
|
+
'aria-describedby': "".concat(inputProps.id, "_info")
|
|
627
|
+
}) : inputProps; // Render naked
|
|
628
|
+
|
|
629
|
+
if (!label && !info) return jsxRuntime.jsx("input", __assign({
|
|
630
|
+
type: type,
|
|
631
|
+
value: value
|
|
632
|
+
}, propsWithDescription), void 0);
|
|
633
|
+
return jsxRuntime.jsxs("div", __assign({
|
|
634
|
+
className: "form-group"
|
|
635
|
+
}, {
|
|
636
|
+
children: [label && jsxRuntime.jsx("label", __assign({
|
|
637
|
+
htmlFor: inputProps.id
|
|
638
|
+
}, {
|
|
639
|
+
children: label
|
|
640
|
+
}), void 0), info && jsxRuntime.jsx("span", __assign({
|
|
641
|
+
className: "form-info",
|
|
642
|
+
id: "".concat(inputProps.id, "_info")
|
|
643
|
+
}, {
|
|
644
|
+
children: info
|
|
645
|
+
}), void 0), jsxRuntime.jsx("input", __assign({
|
|
646
|
+
type: type,
|
|
647
|
+
value: value
|
|
648
|
+
}, propsWithDescription, {
|
|
649
|
+
className: validator && extract.validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator)
|
|
650
|
+
}), void 0), validator && jsxRuntime.jsx("span", __assign({
|
|
651
|
+
className: "form-info"
|
|
652
|
+
}, {
|
|
653
|
+
children: validator.message
|
|
654
|
+
}), void 0)]
|
|
655
|
+
}), void 0);
|
|
656
|
+
};
|
|
657
|
+
var TextInput = function TextInput(_a) {
|
|
658
|
+
var label = _a.label,
|
|
659
|
+
info = _a.info,
|
|
660
|
+
onChange = _a.onChange,
|
|
661
|
+
onChangeInput = _a.onChangeInput,
|
|
662
|
+
validator = _a.validator,
|
|
663
|
+
props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator"]);
|
|
664
|
+
|
|
665
|
+
return RenderInput('text', props, onChange, onChangeInput, label, info, validator);
|
|
666
|
+
};
|
|
667
|
+
var EmailInput = function EmailInput(_a) {
|
|
668
|
+
var label = _a.label,
|
|
669
|
+
info = _a.info,
|
|
670
|
+
onChange = _a.onChange,
|
|
671
|
+
onChangeInput = _a.onChangeInput,
|
|
672
|
+
validator = _a.validator,
|
|
673
|
+
props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator"]);
|
|
674
|
+
|
|
675
|
+
return RenderInput('email', props, onChange, onChangeInput, label, info, validator);
|
|
676
|
+
};
|
|
677
|
+
var NumberInput = function NumberInput(_a) {
|
|
678
|
+
var label = _a.label,
|
|
679
|
+
info = _a.info,
|
|
680
|
+
onChange = _a.onChange,
|
|
681
|
+
onChangeInput = _a.onChangeInput,
|
|
682
|
+
validator = _a.validator,
|
|
683
|
+
props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator"]);
|
|
684
|
+
|
|
685
|
+
return RenderInput('number', props, onChange, onChangeInput, label, info, validator);
|
|
686
|
+
};
|
|
687
|
+
var Checkbox = function Checkbox(_a) {
|
|
688
|
+
var label = _a.label,
|
|
689
|
+
onChange = _a.onChange,
|
|
690
|
+
validator = _a.validator,
|
|
691
|
+
props = __rest(_a, ["label", "onChange", "validator"]);
|
|
692
|
+
|
|
693
|
+
var inputProps = useInput(props, onChange);
|
|
694
|
+
var validatorClassName = extract.validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
|
|
695
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
696
|
+
children: [jsxRuntime.jsxs("label", __assign({
|
|
697
|
+
htmlFor: inputProps.id,
|
|
698
|
+
className: "form-control ".concat(validatorClassName)
|
|
699
|
+
}, {
|
|
700
|
+
children: [label, jsxRuntime.jsx("input", __assign({
|
|
701
|
+
type: "checkbox"
|
|
702
|
+
}, inputProps), void 0), jsxRuntime.jsx("span", {}, void 0), jsxRuntime.jsx("i", {}, void 0)]
|
|
703
|
+
}), void 0), validator && jsxRuntime.jsx("span", __assign({
|
|
704
|
+
className: "form-info"
|
|
705
|
+
}, {
|
|
706
|
+
children: validator.message
|
|
707
|
+
}), void 0)]
|
|
708
|
+
}, void 0);
|
|
709
|
+
};
|
|
710
|
+
var RadioButton = function RadioButton(_a) {
|
|
711
|
+
var label = _a.label,
|
|
712
|
+
validator = _a.validator,
|
|
713
|
+
props = __rest(_a, ["label", "validator"]);
|
|
714
|
+
|
|
715
|
+
var id = useInput(props).id;
|
|
716
|
+
return jsxRuntime.jsxs("label", __assign({
|
|
717
|
+
htmlFor: id,
|
|
718
|
+
className: "form-control"
|
|
719
|
+
}, {
|
|
720
|
+
children: [jsxRuntime.jsx("input", __assign({
|
|
721
|
+
id: id,
|
|
722
|
+
type: "radio"
|
|
723
|
+
}, props, {
|
|
724
|
+
className: validator
|
|
725
|
+
}), void 0), jsxRuntime.jsx("span", {
|
|
726
|
+
children: label
|
|
727
|
+
}, void 0), jsxRuntime.jsx("i", {}, void 0)]
|
|
728
|
+
}), void 0);
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
var Text = function Text(_a) {
|
|
732
|
+
var children = _a.children;
|
|
733
|
+
return jsxRuntime.jsx("span", __assign({
|
|
734
|
+
className: "form-text"
|
|
735
|
+
}, {
|
|
736
|
+
children: children
|
|
737
|
+
}), void 0);
|
|
738
|
+
};
|
|
739
|
+
|
|
354
740
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
355
741
|
|
|
356
742
|
var check = function (it) {
|
|
@@ -358,7 +744,7 @@
|
|
|
358
744
|
};
|
|
359
745
|
|
|
360
746
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
361
|
-
var global$
|
|
747
|
+
var global$o =
|
|
362
748
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
363
749
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
364
750
|
check(typeof window == 'object' && window) ||
|
|
@@ -370,7 +756,7 @@
|
|
|
370
756
|
|
|
371
757
|
var objectGetOwnPropertyDescriptor = {};
|
|
372
758
|
|
|
373
|
-
var fails$
|
|
759
|
+
var fails$7 = function (exec) {
|
|
374
760
|
try {
|
|
375
761
|
return !!exec();
|
|
376
762
|
} catch (error) {
|
|
@@ -378,43 +764,43 @@
|
|
|
378
764
|
}
|
|
379
765
|
};
|
|
380
766
|
|
|
381
|
-
var fails$
|
|
767
|
+
var fails$6 = fails$7;
|
|
382
768
|
|
|
383
769
|
// Detect IE8's incomplete defineProperty implementation
|
|
384
|
-
var descriptors = !fails$
|
|
770
|
+
var descriptors = !fails$6(function () {
|
|
385
771
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
386
772
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
387
773
|
});
|
|
388
774
|
|
|
389
|
-
var fails$
|
|
775
|
+
var fails$5 = fails$7;
|
|
390
776
|
|
|
391
|
-
var functionBindNative = !fails$
|
|
777
|
+
var functionBindNative = !fails$5(function () {
|
|
392
778
|
var test = (function () { /* empty */ }).bind();
|
|
393
779
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
394
780
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
395
781
|
});
|
|
396
782
|
|
|
397
|
-
var NATIVE_BIND$
|
|
783
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
398
784
|
|
|
399
|
-
var call$
|
|
785
|
+
var call$4 = Function.prototype.call;
|
|
400
786
|
|
|
401
|
-
var functionCall = NATIVE_BIND$
|
|
402
|
-
return call$
|
|
787
|
+
var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () {
|
|
788
|
+
return call$4.apply(call$4, arguments);
|
|
403
789
|
};
|
|
404
790
|
|
|
405
791
|
var objectPropertyIsEnumerable = {};
|
|
406
792
|
|
|
407
793
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
408
794
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
409
|
-
var getOwnPropertyDescriptor$
|
|
795
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
410
796
|
|
|
411
797
|
// Nashorn ~ JDK8 bug
|
|
412
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
798
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
413
799
|
|
|
414
800
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
415
801
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
416
802
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
417
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
803
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
418
804
|
return !!descriptor && descriptor.enumerable;
|
|
419
805
|
} : $propertyIsEnumerable;
|
|
420
806
|
|
|
@@ -427,103 +813,103 @@
|
|
|
427
813
|
};
|
|
428
814
|
};
|
|
429
815
|
|
|
430
|
-
var NATIVE_BIND
|
|
816
|
+
var NATIVE_BIND = functionBindNative;
|
|
431
817
|
|
|
432
|
-
var FunctionPrototype$
|
|
433
|
-
var bind
|
|
434
|
-
var call$
|
|
435
|
-
var uncurryThis$
|
|
818
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
819
|
+
var bind = FunctionPrototype$1.bind;
|
|
820
|
+
var call$3 = FunctionPrototype$1.call;
|
|
821
|
+
var uncurryThis$a = NATIVE_BIND && bind.bind(call$3, call$3);
|
|
436
822
|
|
|
437
|
-
var functionUncurryThis = NATIVE_BIND
|
|
438
|
-
return fn && uncurryThis$
|
|
823
|
+
var functionUncurryThis = NATIVE_BIND ? function (fn) {
|
|
824
|
+
return fn && uncurryThis$a(fn);
|
|
439
825
|
} : function (fn) {
|
|
440
826
|
return fn && function () {
|
|
441
|
-
return call$
|
|
827
|
+
return call$3.apply(fn, arguments);
|
|
442
828
|
};
|
|
443
829
|
};
|
|
444
830
|
|
|
445
|
-
var uncurryThis$
|
|
831
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
446
832
|
|
|
447
|
-
var toString$
|
|
448
|
-
var stringSlice$1 = uncurryThis$
|
|
833
|
+
var toString$3 = uncurryThis$9({}.toString);
|
|
834
|
+
var stringSlice$1 = uncurryThis$9(''.slice);
|
|
449
835
|
|
|
450
836
|
var classofRaw$1 = function (it) {
|
|
451
|
-
return stringSlice$1(toString$
|
|
837
|
+
return stringSlice$1(toString$3(it), 8, -1);
|
|
452
838
|
};
|
|
453
839
|
|
|
454
|
-
var global$
|
|
455
|
-
var uncurryThis$
|
|
456
|
-
var fails$
|
|
457
|
-
var classof$
|
|
840
|
+
var global$n = global$o;
|
|
841
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
842
|
+
var fails$4 = fails$7;
|
|
843
|
+
var classof$2 = classofRaw$1;
|
|
458
844
|
|
|
459
|
-
var Object$4 = global$
|
|
460
|
-
var split = uncurryThis$
|
|
845
|
+
var Object$4 = global$n.Object;
|
|
846
|
+
var split = uncurryThis$8(''.split);
|
|
461
847
|
|
|
462
848
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
463
|
-
var indexedObject = fails$
|
|
849
|
+
var indexedObject = fails$4(function () {
|
|
464
850
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
465
851
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
466
852
|
return !Object$4('z').propertyIsEnumerable(0);
|
|
467
853
|
}) ? function (it) {
|
|
468
|
-
return classof$
|
|
854
|
+
return classof$2(it) == 'String' ? split(it, '') : Object$4(it);
|
|
469
855
|
} : Object$4;
|
|
470
856
|
|
|
471
|
-
var global$
|
|
857
|
+
var global$m = global$o;
|
|
472
858
|
|
|
473
|
-
var TypeError$
|
|
859
|
+
var TypeError$7 = global$m.TypeError;
|
|
474
860
|
|
|
475
861
|
// `RequireObjectCoercible` abstract operation
|
|
476
862
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
477
|
-
var requireObjectCoercible$
|
|
478
|
-
if (it == undefined) throw TypeError$
|
|
863
|
+
var requireObjectCoercible$2 = function (it) {
|
|
864
|
+
if (it == undefined) throw TypeError$7("Can't call method on " + it);
|
|
479
865
|
return it;
|
|
480
866
|
};
|
|
481
867
|
|
|
482
868
|
// toObject with fallback for non-array-like ES3 strings
|
|
483
869
|
var IndexedObject = indexedObject;
|
|
484
|
-
var requireObjectCoercible$
|
|
870
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
485
871
|
|
|
486
872
|
var toIndexedObject$3 = function (it) {
|
|
487
|
-
return IndexedObject(requireObjectCoercible$
|
|
873
|
+
return IndexedObject(requireObjectCoercible$1(it));
|
|
488
874
|
};
|
|
489
875
|
|
|
490
876
|
// `IsCallable` abstract operation
|
|
491
877
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
492
|
-
var isCallable$
|
|
878
|
+
var isCallable$b = function (argument) {
|
|
493
879
|
return typeof argument == 'function';
|
|
494
880
|
};
|
|
495
881
|
|
|
496
|
-
var isCallable$
|
|
882
|
+
var isCallable$a = isCallable$b;
|
|
497
883
|
|
|
498
|
-
var isObject$
|
|
499
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
884
|
+
var isObject$5 = function (it) {
|
|
885
|
+
return typeof it == 'object' ? it !== null : isCallable$a(it);
|
|
500
886
|
};
|
|
501
887
|
|
|
502
|
-
var global$
|
|
503
|
-
var isCallable$
|
|
888
|
+
var global$l = global$o;
|
|
889
|
+
var isCallable$9 = isCallable$b;
|
|
504
890
|
|
|
505
891
|
var aFunction = function (argument) {
|
|
506
|
-
return isCallable$
|
|
892
|
+
return isCallable$9(argument) ? argument : undefined;
|
|
507
893
|
};
|
|
508
894
|
|
|
509
|
-
var getBuiltIn$
|
|
510
|
-
return arguments.length < 2 ? aFunction(global$
|
|
895
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
896
|
+
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
511
897
|
};
|
|
512
898
|
|
|
513
|
-
var uncurryThis$
|
|
899
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
514
900
|
|
|
515
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
901
|
+
var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
|
|
516
902
|
|
|
517
|
-
var getBuiltIn$
|
|
903
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
518
904
|
|
|
519
|
-
var engineUserAgent = getBuiltIn$
|
|
905
|
+
var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
|
|
520
906
|
|
|
521
|
-
var global$
|
|
522
|
-
var userAgent
|
|
907
|
+
var global$k = global$o;
|
|
908
|
+
var userAgent = engineUserAgent;
|
|
523
909
|
|
|
524
|
-
var process
|
|
525
|
-
var Deno = global$
|
|
526
|
-
var versions = process
|
|
910
|
+
var process = global$k.process;
|
|
911
|
+
var Deno = global$k.Deno;
|
|
912
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
527
913
|
var v8 = versions && versions.v8;
|
|
528
914
|
var match, version;
|
|
529
915
|
|
|
@@ -536,10 +922,10 @@
|
|
|
536
922
|
|
|
537
923
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
538
924
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
539
|
-
if (!version && userAgent
|
|
540
|
-
match = userAgent
|
|
925
|
+
if (!version && userAgent) {
|
|
926
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
541
927
|
if (!match || match[1] >= 74) {
|
|
542
|
-
match = userAgent
|
|
928
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
543
929
|
if (match) version = +match[1];
|
|
544
930
|
}
|
|
545
931
|
}
|
|
@@ -548,17 +934,17 @@
|
|
|
548
934
|
|
|
549
935
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
550
936
|
|
|
551
|
-
var V8_VERSION
|
|
552
|
-
var fails$
|
|
937
|
+
var V8_VERSION = engineV8Version;
|
|
938
|
+
var fails$3 = fails$7;
|
|
553
939
|
|
|
554
940
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
555
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
941
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$3(function () {
|
|
556
942
|
var symbol = Symbol();
|
|
557
943
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
558
944
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
559
945
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
560
946
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
561
|
-
!Symbol.sham && V8_VERSION
|
|
947
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
562
948
|
});
|
|
563
949
|
|
|
564
950
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
@@ -569,91 +955,91 @@
|
|
|
569
955
|
&& !Symbol.sham
|
|
570
956
|
&& typeof Symbol.iterator == 'symbol';
|
|
571
957
|
|
|
572
|
-
var global$
|
|
573
|
-
var getBuiltIn$
|
|
574
|
-
var isCallable$
|
|
575
|
-
var isPrototypeOf$
|
|
958
|
+
var global$j = global$o;
|
|
959
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
960
|
+
var isCallable$8 = isCallable$b;
|
|
961
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
576
962
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
577
963
|
|
|
578
|
-
var Object$3 = global$
|
|
964
|
+
var Object$3 = global$j.Object;
|
|
579
965
|
|
|
580
966
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
581
967
|
return typeof it == 'symbol';
|
|
582
968
|
} : function (it) {
|
|
583
|
-
var $Symbol = getBuiltIn$
|
|
584
|
-
return isCallable$
|
|
969
|
+
var $Symbol = getBuiltIn$1('Symbol');
|
|
970
|
+
return isCallable$8($Symbol) && isPrototypeOf$1($Symbol.prototype, Object$3(it));
|
|
585
971
|
};
|
|
586
972
|
|
|
587
|
-
var global$
|
|
973
|
+
var global$i = global$o;
|
|
588
974
|
|
|
589
|
-
var String$
|
|
975
|
+
var String$3 = global$i.String;
|
|
590
976
|
|
|
591
|
-
var tryToString$
|
|
977
|
+
var tryToString$1 = function (argument) {
|
|
592
978
|
try {
|
|
593
|
-
return String$
|
|
979
|
+
return String$3(argument);
|
|
594
980
|
} catch (error) {
|
|
595
981
|
return 'Object';
|
|
596
982
|
}
|
|
597
983
|
};
|
|
598
984
|
|
|
599
|
-
var global$
|
|
600
|
-
var isCallable$
|
|
601
|
-
var tryToString
|
|
985
|
+
var global$h = global$o;
|
|
986
|
+
var isCallable$7 = isCallable$b;
|
|
987
|
+
var tryToString = tryToString$1;
|
|
602
988
|
|
|
603
|
-
var TypeError$
|
|
989
|
+
var TypeError$6 = global$h.TypeError;
|
|
604
990
|
|
|
605
991
|
// `Assert: IsCallable(argument) is true`
|
|
606
|
-
var aCallable$
|
|
607
|
-
if (isCallable$
|
|
608
|
-
throw TypeError$
|
|
992
|
+
var aCallable$1 = function (argument) {
|
|
993
|
+
if (isCallable$7(argument)) return argument;
|
|
994
|
+
throw TypeError$6(tryToString(argument) + ' is not a function');
|
|
609
995
|
};
|
|
610
996
|
|
|
611
|
-
var aCallable
|
|
997
|
+
var aCallable = aCallable$1;
|
|
612
998
|
|
|
613
999
|
// `GetMethod` abstract operation
|
|
614
1000
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
615
|
-
var getMethod$
|
|
1001
|
+
var getMethod$1 = function (V, P) {
|
|
616
1002
|
var func = V[P];
|
|
617
|
-
return func == null ? undefined : aCallable
|
|
1003
|
+
return func == null ? undefined : aCallable(func);
|
|
618
1004
|
};
|
|
619
1005
|
|
|
620
|
-
var global$
|
|
621
|
-
var call$
|
|
622
|
-
var isCallable$
|
|
623
|
-
var isObject$
|
|
1006
|
+
var global$g = global$o;
|
|
1007
|
+
var call$2 = functionCall;
|
|
1008
|
+
var isCallable$6 = isCallable$b;
|
|
1009
|
+
var isObject$4 = isObject$5;
|
|
624
1010
|
|
|
625
|
-
var TypeError$
|
|
1011
|
+
var TypeError$5 = global$g.TypeError;
|
|
626
1012
|
|
|
627
1013
|
// `OrdinaryToPrimitive` abstract operation
|
|
628
1014
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
629
1015
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
630
1016
|
var fn, val;
|
|
631
|
-
if (pref === 'string' && isCallable$
|
|
632
|
-
if (isCallable$
|
|
633
|
-
if (pref !== 'string' && isCallable$
|
|
634
|
-
throw TypeError$
|
|
1017
|
+
if (pref === 'string' && isCallable$6(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
|
|
1018
|
+
if (isCallable$6(fn = input.valueOf) && !isObject$4(val = call$2(fn, input))) return val;
|
|
1019
|
+
if (pref !== 'string' && isCallable$6(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
|
|
1020
|
+
throw TypeError$5("Can't convert object to primitive value");
|
|
635
1021
|
};
|
|
636
1022
|
|
|
637
1023
|
var shared$3 = {exports: {}};
|
|
638
1024
|
|
|
639
|
-
var global$
|
|
1025
|
+
var global$f = global$o;
|
|
640
1026
|
|
|
641
1027
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
642
|
-
var defineProperty$
|
|
1028
|
+
var defineProperty$1 = Object.defineProperty;
|
|
643
1029
|
|
|
644
1030
|
var setGlobal$3 = function (key, value) {
|
|
645
1031
|
try {
|
|
646
|
-
defineProperty$
|
|
1032
|
+
defineProperty$1(global$f, key, { value: value, configurable: true, writable: true });
|
|
647
1033
|
} catch (error) {
|
|
648
|
-
global$
|
|
1034
|
+
global$f[key] = value;
|
|
649
1035
|
} return value;
|
|
650
1036
|
};
|
|
651
1037
|
|
|
652
|
-
var global$
|
|
1038
|
+
var global$e = global$o;
|
|
653
1039
|
var setGlobal$2 = setGlobal$3;
|
|
654
1040
|
|
|
655
1041
|
var SHARED = '__core-js_shared__';
|
|
656
|
-
var store$3 = global$
|
|
1042
|
+
var store$3 = global$e[SHARED] || setGlobal$2(SHARED, {});
|
|
657
1043
|
|
|
658
1044
|
var sharedStore = store$3;
|
|
659
1045
|
|
|
@@ -669,21 +1055,21 @@
|
|
|
669
1055
|
source: 'https://github.com/zloirock/core-js'
|
|
670
1056
|
});
|
|
671
1057
|
|
|
672
|
-
var global$
|
|
673
|
-
var requireObjectCoercible
|
|
1058
|
+
var global$d = global$o;
|
|
1059
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
674
1060
|
|
|
675
|
-
var Object$2 = global$
|
|
1061
|
+
var Object$2 = global$d.Object;
|
|
676
1062
|
|
|
677
1063
|
// `ToObject` abstract operation
|
|
678
1064
|
// https://tc39.es/ecma262/#sec-toobject
|
|
679
1065
|
var toObject$1 = function (argument) {
|
|
680
|
-
return Object$2(requireObjectCoercible
|
|
1066
|
+
return Object$2(requireObjectCoercible(argument));
|
|
681
1067
|
};
|
|
682
1068
|
|
|
683
|
-
var uncurryThis$
|
|
1069
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
684
1070
|
var toObject = toObject$1;
|
|
685
1071
|
|
|
686
|
-
var hasOwnProperty = uncurryThis$
|
|
1072
|
+
var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
|
|
687
1073
|
|
|
688
1074
|
// `HasOwnProperty` abstract operation
|
|
689
1075
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -691,33 +1077,33 @@
|
|
|
691
1077
|
return hasOwnProperty(toObject(it), key);
|
|
692
1078
|
};
|
|
693
1079
|
|
|
694
|
-
var uncurryThis$
|
|
1080
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
695
1081
|
|
|
696
1082
|
var id = 0;
|
|
697
1083
|
var postfix = Math.random();
|
|
698
|
-
var toString$
|
|
1084
|
+
var toString$2 = uncurryThis$5(1.0.toString);
|
|
699
1085
|
|
|
700
1086
|
var uid$2 = function (key) {
|
|
701
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
1087
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
|
702
1088
|
};
|
|
703
1089
|
|
|
704
|
-
var global$
|
|
1090
|
+
var global$c = global$o;
|
|
705
1091
|
var shared$2 = shared$3.exports;
|
|
706
|
-
var hasOwn$
|
|
1092
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
707
1093
|
var uid$1 = uid$2;
|
|
708
1094
|
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
709
1095
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
710
1096
|
|
|
711
1097
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
712
|
-
var Symbol$
|
|
713
|
-
var symbolFor = Symbol$
|
|
714
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$
|
|
1098
|
+
var Symbol$1 = global$c.Symbol;
|
|
1099
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
1100
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
715
1101
|
|
|
716
|
-
var wellKnownSymbol$
|
|
717
|
-
if (!hasOwn$
|
|
1102
|
+
var wellKnownSymbol$3 = function (name) {
|
|
1103
|
+
if (!hasOwn$7(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
718
1104
|
var description = 'Symbol.' + name;
|
|
719
|
-
if (NATIVE_SYMBOL$1 && hasOwn$
|
|
720
|
-
WellKnownSymbolsStore[name] = Symbol$
|
|
1105
|
+
if (NATIVE_SYMBOL$1 && hasOwn$7(Symbol$1, name)) {
|
|
1106
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
721
1107
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
722
1108
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
723
1109
|
} else {
|
|
@@ -726,28 +1112,28 @@
|
|
|
726
1112
|
} return WellKnownSymbolsStore[name];
|
|
727
1113
|
};
|
|
728
1114
|
|
|
729
|
-
var global$
|
|
730
|
-
var call$
|
|
731
|
-
var isObject$
|
|
1115
|
+
var global$b = global$o;
|
|
1116
|
+
var call$1 = functionCall;
|
|
1117
|
+
var isObject$3 = isObject$5;
|
|
732
1118
|
var isSymbol$1 = isSymbol$2;
|
|
733
|
-
var getMethod
|
|
1119
|
+
var getMethod = getMethod$1;
|
|
734
1120
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
735
|
-
var wellKnownSymbol$
|
|
1121
|
+
var wellKnownSymbol$2 = wellKnownSymbol$3;
|
|
736
1122
|
|
|
737
|
-
var TypeError$
|
|
738
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
1123
|
+
var TypeError$4 = global$b.TypeError;
|
|
1124
|
+
var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
|
|
739
1125
|
|
|
740
1126
|
// `ToPrimitive` abstract operation
|
|
741
1127
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
742
1128
|
var toPrimitive$1 = function (input, pref) {
|
|
743
|
-
if (!isObject$
|
|
744
|
-
var exoticToPrim = getMethod
|
|
1129
|
+
if (!isObject$3(input) || isSymbol$1(input)) return input;
|
|
1130
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
745
1131
|
var result;
|
|
746
1132
|
if (exoticToPrim) {
|
|
747
1133
|
if (pref === undefined) pref = 'default';
|
|
748
|
-
result = call$
|
|
749
|
-
if (!isObject$
|
|
750
|
-
throw TypeError$
|
|
1134
|
+
result = call$1(exoticToPrim, input, pref);
|
|
1135
|
+
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
1136
|
+
throw TypeError$4("Can't convert object to primitive value");
|
|
751
1137
|
}
|
|
752
1138
|
if (pref === undefined) pref = 'number';
|
|
753
1139
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -763,36 +1149,36 @@
|
|
|
763
1149
|
return isSymbol(key) ? key : key + '';
|
|
764
1150
|
};
|
|
765
1151
|
|
|
766
|
-
var global$
|
|
767
|
-
var isObject$
|
|
1152
|
+
var global$a = global$o;
|
|
1153
|
+
var isObject$2 = isObject$5;
|
|
768
1154
|
|
|
769
|
-
var document
|
|
1155
|
+
var document = global$a.document;
|
|
770
1156
|
// typeof document.createElement is 'object' in old IE
|
|
771
|
-
var EXISTS$1 = isObject$
|
|
1157
|
+
var EXISTS$1 = isObject$2(document) && isObject$2(document.createElement);
|
|
772
1158
|
|
|
773
1159
|
var documentCreateElement = function (it) {
|
|
774
|
-
return EXISTS$1 ? document
|
|
1160
|
+
return EXISTS$1 ? document.createElement(it) : {};
|
|
775
1161
|
};
|
|
776
1162
|
|
|
777
|
-
var DESCRIPTORS$
|
|
778
|
-
var fails$
|
|
779
|
-
var createElement
|
|
1163
|
+
var DESCRIPTORS$6 = descriptors;
|
|
1164
|
+
var fails$2 = fails$7;
|
|
1165
|
+
var createElement = documentCreateElement;
|
|
780
1166
|
|
|
781
1167
|
// Thanks to IE8 for its funny defineProperty
|
|
782
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
1168
|
+
var ie8DomDefine = !DESCRIPTORS$6 && !fails$2(function () {
|
|
783
1169
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
784
|
-
return Object.defineProperty(createElement
|
|
1170
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
785
1171
|
get: function () { return 7; }
|
|
786
1172
|
}).a != 7;
|
|
787
1173
|
});
|
|
788
1174
|
|
|
789
|
-
var DESCRIPTORS$
|
|
790
|
-
var call
|
|
1175
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1176
|
+
var call = functionCall;
|
|
791
1177
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
792
1178
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
793
1179
|
var toIndexedObject$2 = toIndexedObject$3;
|
|
794
1180
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
795
|
-
var hasOwn$
|
|
1181
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
796
1182
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
797
1183
|
|
|
798
1184
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -800,23 +1186,23 @@
|
|
|
800
1186
|
|
|
801
1187
|
// `Object.getOwnPropertyDescriptor` method
|
|
802
1188
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
803
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
1189
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
804
1190
|
O = toIndexedObject$2(O);
|
|
805
1191
|
P = toPropertyKey$1(P);
|
|
806
1192
|
if (IE8_DOM_DEFINE$1) try {
|
|
807
1193
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
808
1194
|
} catch (error) { /* empty */ }
|
|
809
|
-
if (hasOwn$
|
|
1195
|
+
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
810
1196
|
};
|
|
811
1197
|
|
|
812
1198
|
var objectDefineProperty = {};
|
|
813
1199
|
|
|
814
|
-
var DESCRIPTORS$
|
|
815
|
-
var fails$
|
|
1200
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1201
|
+
var fails$1 = fails$7;
|
|
816
1202
|
|
|
817
1203
|
// V8 ~ Chrome 36-
|
|
818
1204
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
819
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
1205
|
+
var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$1(function () {
|
|
820
1206
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
821
1207
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
822
1208
|
value: 42,
|
|
@@ -824,26 +1210,26 @@
|
|
|
824
1210
|
}).prototype != 42;
|
|
825
1211
|
});
|
|
826
1212
|
|
|
827
|
-
var global$
|
|
828
|
-
var isObject$
|
|
1213
|
+
var global$9 = global$o;
|
|
1214
|
+
var isObject$1 = isObject$5;
|
|
829
1215
|
|
|
830
|
-
var String$
|
|
831
|
-
var TypeError$
|
|
1216
|
+
var String$2 = global$9.String;
|
|
1217
|
+
var TypeError$3 = global$9.TypeError;
|
|
832
1218
|
|
|
833
1219
|
// `Assert: Type(argument) is Object`
|
|
834
|
-
var anObject$
|
|
835
|
-
if (isObject$
|
|
836
|
-
throw TypeError$
|
|
1220
|
+
var anObject$2 = function (argument) {
|
|
1221
|
+
if (isObject$1(argument)) return argument;
|
|
1222
|
+
throw TypeError$3(String$2(argument) + ' is not an object');
|
|
837
1223
|
};
|
|
838
1224
|
|
|
839
|
-
var global$
|
|
840
|
-
var DESCRIPTORS$
|
|
1225
|
+
var global$8 = global$o;
|
|
1226
|
+
var DESCRIPTORS$3 = descriptors;
|
|
841
1227
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
842
1228
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
843
|
-
var anObject$
|
|
1229
|
+
var anObject$1 = anObject$2;
|
|
844
1230
|
var toPropertyKey = toPropertyKey$2;
|
|
845
1231
|
|
|
846
|
-
var TypeError$
|
|
1232
|
+
var TypeError$2 = global$8.TypeError;
|
|
847
1233
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
848
1234
|
var $defineProperty = Object.defineProperty;
|
|
849
1235
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -854,10 +1240,10 @@
|
|
|
854
1240
|
|
|
855
1241
|
// `Object.defineProperty` method
|
|
856
1242
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
857
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
858
|
-
anObject$
|
|
1243
|
+
objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
1244
|
+
anObject$1(O);
|
|
859
1245
|
P = toPropertyKey(P);
|
|
860
|
-
anObject$
|
|
1246
|
+
anObject$1(Attributes);
|
|
861
1247
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
862
1248
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
863
1249
|
if (current && current[WRITABLE]) {
|
|
@@ -870,52 +1256,52 @@
|
|
|
870
1256
|
}
|
|
871
1257
|
} return $defineProperty(O, P, Attributes);
|
|
872
1258
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
873
|
-
anObject$
|
|
1259
|
+
anObject$1(O);
|
|
874
1260
|
P = toPropertyKey(P);
|
|
875
|
-
anObject$
|
|
1261
|
+
anObject$1(Attributes);
|
|
876
1262
|
if (IE8_DOM_DEFINE) try {
|
|
877
1263
|
return $defineProperty(O, P, Attributes);
|
|
878
1264
|
} catch (error) { /* empty */ }
|
|
879
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
1265
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$2('Accessors not supported');
|
|
880
1266
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
881
1267
|
return O;
|
|
882
1268
|
};
|
|
883
1269
|
|
|
884
|
-
var DESCRIPTORS$
|
|
885
|
-
var definePropertyModule$
|
|
1270
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1271
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
886
1272
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
887
1273
|
|
|
888
|
-
var createNonEnumerableProperty$3 = DESCRIPTORS$
|
|
889
|
-
return definePropertyModule$
|
|
1274
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$2 ? function (object, key, value) {
|
|
1275
|
+
return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value));
|
|
890
1276
|
} : function (object, key, value) {
|
|
891
1277
|
object[key] = value;
|
|
892
1278
|
return object;
|
|
893
1279
|
};
|
|
894
1280
|
|
|
895
|
-
var redefine$
|
|
1281
|
+
var redefine$1 = {exports: {}};
|
|
896
1282
|
|
|
897
|
-
var uncurryThis$
|
|
898
|
-
var isCallable$
|
|
1283
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1284
|
+
var isCallable$5 = isCallable$b;
|
|
899
1285
|
var store$1 = sharedStore;
|
|
900
1286
|
|
|
901
|
-
var functionToString = uncurryThis$
|
|
1287
|
+
var functionToString = uncurryThis$4(Function.toString);
|
|
902
1288
|
|
|
903
1289
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
904
|
-
if (!isCallable$
|
|
1290
|
+
if (!isCallable$5(store$1.inspectSource)) {
|
|
905
1291
|
store$1.inspectSource = function (it) {
|
|
906
1292
|
return functionToString(it);
|
|
907
1293
|
};
|
|
908
1294
|
}
|
|
909
1295
|
|
|
910
|
-
var inspectSource$
|
|
1296
|
+
var inspectSource$2 = store$1.inspectSource;
|
|
911
1297
|
|
|
912
|
-
var global$
|
|
913
|
-
var isCallable$
|
|
914
|
-
var inspectSource$
|
|
1298
|
+
var global$7 = global$o;
|
|
1299
|
+
var isCallable$4 = isCallable$b;
|
|
1300
|
+
var inspectSource$1 = inspectSource$2;
|
|
915
1301
|
|
|
916
|
-
var WeakMap$1 = global$
|
|
1302
|
+
var WeakMap$1 = global$7.WeakMap;
|
|
917
1303
|
|
|
918
|
-
var nativeWeakMap = isCallable$
|
|
1304
|
+
var nativeWeakMap = isCallable$4(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
|
|
919
1305
|
|
|
920
1306
|
var shared$1 = shared$3.exports;
|
|
921
1307
|
var uid = uid$2;
|
|
@@ -929,40 +1315,40 @@
|
|
|
929
1315
|
var hiddenKeys$3 = {};
|
|
930
1316
|
|
|
931
1317
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
932
|
-
var global$
|
|
933
|
-
var uncurryThis$
|
|
934
|
-
var isObject
|
|
1318
|
+
var global$6 = global$o;
|
|
1319
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1320
|
+
var isObject = isObject$5;
|
|
935
1321
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
936
|
-
var hasOwn$
|
|
1322
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
937
1323
|
var shared = sharedStore;
|
|
938
1324
|
var sharedKey = sharedKey$1;
|
|
939
1325
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
940
1326
|
|
|
941
1327
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
942
|
-
var TypeError$
|
|
943
|
-
var WeakMap = global$
|
|
944
|
-
var set
|
|
1328
|
+
var TypeError$1 = global$6.TypeError;
|
|
1329
|
+
var WeakMap = global$6.WeakMap;
|
|
1330
|
+
var set, get, has;
|
|
945
1331
|
|
|
946
1332
|
var enforce = function (it) {
|
|
947
|
-
return has(it) ? get(it) : set
|
|
1333
|
+
return has(it) ? get(it) : set(it, {});
|
|
948
1334
|
};
|
|
949
1335
|
|
|
950
1336
|
var getterFor = function (TYPE) {
|
|
951
1337
|
return function (it) {
|
|
952
1338
|
var state;
|
|
953
|
-
if (!isObject
|
|
954
|
-
throw TypeError$
|
|
1339
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
1340
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
955
1341
|
} return state;
|
|
956
1342
|
};
|
|
957
1343
|
};
|
|
958
1344
|
|
|
959
1345
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
960
1346
|
var store = shared.state || (shared.state = new WeakMap());
|
|
961
|
-
var wmget = uncurryThis$
|
|
962
|
-
var wmhas = uncurryThis$
|
|
963
|
-
var wmset = uncurryThis$
|
|
964
|
-
set
|
|
965
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
1347
|
+
var wmget = uncurryThis$3(store.get);
|
|
1348
|
+
var wmhas = uncurryThis$3(store.has);
|
|
1349
|
+
var wmset = uncurryThis$3(store.set);
|
|
1350
|
+
set = function (it, metadata) {
|
|
1351
|
+
if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
966
1352
|
metadata.facade = it;
|
|
967
1353
|
wmset(store, it, metadata);
|
|
968
1354
|
return metadata;
|
|
@@ -976,39 +1362,39 @@
|
|
|
976
1362
|
} else {
|
|
977
1363
|
var STATE = sharedKey('state');
|
|
978
1364
|
hiddenKeys$2[STATE] = true;
|
|
979
|
-
set
|
|
980
|
-
if (hasOwn$
|
|
1365
|
+
set = function (it, metadata) {
|
|
1366
|
+
if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
981
1367
|
metadata.facade = it;
|
|
982
1368
|
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
983
1369
|
return metadata;
|
|
984
1370
|
};
|
|
985
1371
|
get = function (it) {
|
|
986
|
-
return hasOwn$
|
|
1372
|
+
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
987
1373
|
};
|
|
988
1374
|
has = function (it) {
|
|
989
|
-
return hasOwn$
|
|
1375
|
+
return hasOwn$5(it, STATE);
|
|
990
1376
|
};
|
|
991
1377
|
}
|
|
992
1378
|
|
|
993
1379
|
var internalState = {
|
|
994
|
-
set: set
|
|
1380
|
+
set: set,
|
|
995
1381
|
get: get,
|
|
996
1382
|
has: has,
|
|
997
1383
|
enforce: enforce,
|
|
998
1384
|
getterFor: getterFor
|
|
999
1385
|
};
|
|
1000
1386
|
|
|
1001
|
-
var DESCRIPTORS$
|
|
1002
|
-
var hasOwn$
|
|
1387
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1388
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1003
1389
|
|
|
1004
|
-
var FunctionPrototype
|
|
1390
|
+
var FunctionPrototype = Function.prototype;
|
|
1005
1391
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1006
|
-
var getDescriptor = DESCRIPTORS$
|
|
1392
|
+
var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
|
|
1007
1393
|
|
|
1008
|
-
var EXISTS = hasOwn$
|
|
1394
|
+
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
1009
1395
|
// additional protection from minified / mangled / dropped function names
|
|
1010
1396
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1011
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
1397
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
1012
1398
|
|
|
1013
1399
|
var functionName = {
|
|
1014
1400
|
EXISTS: EXISTS,
|
|
@@ -1016,30 +1402,30 @@
|
|
|
1016
1402
|
CONFIGURABLE: CONFIGURABLE
|
|
1017
1403
|
};
|
|
1018
1404
|
|
|
1019
|
-
var global$
|
|
1020
|
-
var isCallable$
|
|
1021
|
-
var hasOwn$
|
|
1405
|
+
var global$5 = global$o;
|
|
1406
|
+
var isCallable$3 = isCallable$b;
|
|
1407
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1022
1408
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
1023
1409
|
var setGlobal$1 = setGlobal$3;
|
|
1024
|
-
var inspectSource
|
|
1025
|
-
var InternalStateModule
|
|
1410
|
+
var inspectSource = inspectSource$2;
|
|
1411
|
+
var InternalStateModule = internalState;
|
|
1026
1412
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
1027
1413
|
|
|
1028
|
-
var getInternalState
|
|
1029
|
-
var enforceInternalState = InternalStateModule
|
|
1414
|
+
var getInternalState = InternalStateModule.get;
|
|
1415
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
1030
1416
|
var TEMPLATE = String(String).split('String');
|
|
1031
1417
|
|
|
1032
|
-
(redefine$
|
|
1418
|
+
(redefine$1.exports = function (O, key, value, options) {
|
|
1033
1419
|
var unsafe = options ? !!options.unsafe : false;
|
|
1034
1420
|
var simple = options ? !!options.enumerable : false;
|
|
1035
1421
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
1036
1422
|
var name = options && options.name !== undefined ? options.name : key;
|
|
1037
1423
|
var state;
|
|
1038
|
-
if (isCallable$
|
|
1424
|
+
if (isCallable$3(value)) {
|
|
1039
1425
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
1040
1426
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
1041
1427
|
}
|
|
1042
|
-
if (!hasOwn$
|
|
1428
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
1043
1429
|
createNonEnumerableProperty$1(value, 'name', name);
|
|
1044
1430
|
}
|
|
1045
1431
|
state = enforceInternalState(value);
|
|
@@ -1047,7 +1433,7 @@
|
|
|
1047
1433
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
1048
1434
|
}
|
|
1049
1435
|
}
|
|
1050
|
-
if (O === global$
|
|
1436
|
+
if (O === global$5) {
|
|
1051
1437
|
if (simple) O[key] = value;
|
|
1052
1438
|
else setGlobal$1(key, value);
|
|
1053
1439
|
return;
|
|
@@ -1060,7 +1446,7 @@
|
|
|
1060
1446
|
else createNonEnumerableProperty$1(O, key, value);
|
|
1061
1447
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1062
1448
|
})(Function.prototype, 'toString', function toString() {
|
|
1063
|
-
return isCallable$
|
|
1449
|
+
return isCallable$3(this) && getInternalState(this).source || inspectSource(this);
|
|
1064
1450
|
});
|
|
1065
1451
|
|
|
1066
1452
|
var objectGetOwnPropertyNames = {};
|
|
@@ -1103,19 +1489,19 @@
|
|
|
1103
1489
|
|
|
1104
1490
|
// `LengthOfArrayLike` abstract operation
|
|
1105
1491
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
1106
|
-
var lengthOfArrayLike$
|
|
1492
|
+
var lengthOfArrayLike$1 = function (obj) {
|
|
1107
1493
|
return toLength(obj.length);
|
|
1108
1494
|
};
|
|
1109
1495
|
|
|
1110
1496
|
var toIndexedObject$1 = toIndexedObject$3;
|
|
1111
1497
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
1112
|
-
var lengthOfArrayLike
|
|
1498
|
+
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
1113
1499
|
|
|
1114
1500
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
1115
|
-
var createMethod
|
|
1501
|
+
var createMethod = function (IS_INCLUDES) {
|
|
1116
1502
|
return function ($this, el, fromIndex) {
|
|
1117
1503
|
var O = toIndexedObject$1($this);
|
|
1118
|
-
var length = lengthOfArrayLike
|
|
1504
|
+
var length = lengthOfArrayLike(O);
|
|
1119
1505
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
1120
1506
|
var value;
|
|
1121
1507
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -1134,28 +1520,28 @@
|
|
|
1134
1520
|
var arrayIncludes = {
|
|
1135
1521
|
// `Array.prototype.includes` method
|
|
1136
1522
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1137
|
-
includes: createMethod
|
|
1523
|
+
includes: createMethod(true),
|
|
1138
1524
|
// `Array.prototype.indexOf` method
|
|
1139
1525
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
1140
|
-
indexOf: createMethod
|
|
1526
|
+
indexOf: createMethod(false)
|
|
1141
1527
|
};
|
|
1142
1528
|
|
|
1143
|
-
var uncurryThis$
|
|
1144
|
-
var hasOwn$
|
|
1529
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
1530
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1145
1531
|
var toIndexedObject = toIndexedObject$3;
|
|
1146
1532
|
var indexOf = arrayIncludes.indexOf;
|
|
1147
1533
|
var hiddenKeys$1 = hiddenKeys$3;
|
|
1148
1534
|
|
|
1149
|
-
var push = uncurryThis$
|
|
1535
|
+
var push = uncurryThis$2([].push);
|
|
1150
1536
|
|
|
1151
1537
|
var objectKeysInternal = function (object, names) {
|
|
1152
1538
|
var O = toIndexedObject(object);
|
|
1153
1539
|
var i = 0;
|
|
1154
1540
|
var result = [];
|
|
1155
1541
|
var key;
|
|
1156
|
-
for (key in O) !hasOwn$
|
|
1542
|
+
for (key in O) !hasOwn$2(hiddenKeys$1, key) && hasOwn$2(O, key) && push(result, key);
|
|
1157
1543
|
// Don't enum bug & hidden keys
|
|
1158
|
-
while (names.length > i) if (hasOwn$
|
|
1544
|
+
while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
|
|
1159
1545
|
~indexOf(result, key) || push(result, key);
|
|
1160
1546
|
}
|
|
1161
1547
|
return result;
|
|
@@ -1189,68 +1575,68 @@
|
|
|
1189
1575
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1190
1576
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1191
1577
|
|
|
1192
|
-
var getBuiltIn
|
|
1193
|
-
var uncurryThis$
|
|
1578
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1579
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1194
1580
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1195
1581
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1196
|
-
var anObject
|
|
1582
|
+
var anObject = anObject$2;
|
|
1197
1583
|
|
|
1198
|
-
var concat = uncurryThis$
|
|
1584
|
+
var concat = uncurryThis$1([].concat);
|
|
1199
1585
|
|
|
1200
1586
|
// all object keys, includes non-enumerable and symbols
|
|
1201
|
-
var ownKeys$1 = getBuiltIn
|
|
1202
|
-
var keys = getOwnPropertyNamesModule.f(anObject
|
|
1587
|
+
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1588
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
1203
1589
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1204
1590
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
1205
1591
|
};
|
|
1206
1592
|
|
|
1207
|
-
var hasOwn$
|
|
1593
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1208
1594
|
var ownKeys = ownKeys$1;
|
|
1209
1595
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1210
|
-
var definePropertyModule
|
|
1596
|
+
var definePropertyModule = objectDefineProperty;
|
|
1211
1597
|
|
|
1212
1598
|
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
1213
1599
|
var keys = ownKeys(source);
|
|
1214
|
-
var defineProperty = definePropertyModule
|
|
1600
|
+
var defineProperty = definePropertyModule.f;
|
|
1215
1601
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1216
1602
|
for (var i = 0; i < keys.length; i++) {
|
|
1217
1603
|
var key = keys[i];
|
|
1218
|
-
if (!hasOwn$
|
|
1604
|
+
if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
|
|
1219
1605
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1220
1606
|
}
|
|
1221
1607
|
}
|
|
1222
1608
|
};
|
|
1223
1609
|
|
|
1224
|
-
var fails
|
|
1225
|
-
var isCallable$
|
|
1610
|
+
var fails = fails$7;
|
|
1611
|
+
var isCallable$2 = isCallable$b;
|
|
1226
1612
|
|
|
1227
1613
|
var replacement = /#|\.prototype\./;
|
|
1228
1614
|
|
|
1229
|
-
var isForced$
|
|
1615
|
+
var isForced$1 = function (feature, detection) {
|
|
1230
1616
|
var value = data[normalize(feature)];
|
|
1231
1617
|
return value == POLYFILL ? true
|
|
1232
1618
|
: value == NATIVE ? false
|
|
1233
|
-
: isCallable$
|
|
1619
|
+
: isCallable$2(detection) ? fails(detection)
|
|
1234
1620
|
: !!detection;
|
|
1235
1621
|
};
|
|
1236
1622
|
|
|
1237
|
-
var normalize = isForced$
|
|
1623
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
1238
1624
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
1239
1625
|
};
|
|
1240
1626
|
|
|
1241
|
-
var data = isForced$
|
|
1242
|
-
var NATIVE = isForced$
|
|
1243
|
-
var POLYFILL = isForced$
|
|
1627
|
+
var data = isForced$1.data = {};
|
|
1628
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1629
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
1244
1630
|
|
|
1245
|
-
var isForced_1 = isForced$
|
|
1631
|
+
var isForced_1 = isForced$1;
|
|
1246
1632
|
|
|
1247
|
-
var global$
|
|
1248
|
-
var getOwnPropertyDescriptor
|
|
1633
|
+
var global$4 = global$o;
|
|
1634
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1249
1635
|
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
1250
|
-
var redefine
|
|
1636
|
+
var redefine = redefine$1.exports;
|
|
1251
1637
|
var setGlobal = setGlobal$3;
|
|
1252
1638
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1253
|
-
var isForced
|
|
1639
|
+
var isForced = isForced_1;
|
|
1254
1640
|
|
|
1255
1641
|
/*
|
|
1256
1642
|
options.target - name of the target object
|
|
@@ -1273,19 +1659,19 @@
|
|
|
1273
1659
|
var STATIC = options.stat;
|
|
1274
1660
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1275
1661
|
if (GLOBAL) {
|
|
1276
|
-
target = global$
|
|
1662
|
+
target = global$4;
|
|
1277
1663
|
} else if (STATIC) {
|
|
1278
|
-
target = global$
|
|
1664
|
+
target = global$4[TARGET] || setGlobal(TARGET, {});
|
|
1279
1665
|
} else {
|
|
1280
|
-
target = (global$
|
|
1666
|
+
target = (global$4[TARGET] || {}).prototype;
|
|
1281
1667
|
}
|
|
1282
1668
|
if (target) for (key in source) {
|
|
1283
1669
|
sourceProperty = source[key];
|
|
1284
1670
|
if (options.noTargetGet) {
|
|
1285
|
-
descriptor = getOwnPropertyDescriptor
|
|
1671
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1286
1672
|
targetProperty = descriptor && descriptor.value;
|
|
1287
1673
|
} else targetProperty = target[key];
|
|
1288
|
-
FORCED = isForced
|
|
1674
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1289
1675
|
// contained in target
|
|
1290
1676
|
if (!FORCED && targetProperty !== undefined) {
|
|
1291
1677
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1296,27 +1682,27 @@
|
|
|
1296
1682
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1297
1683
|
}
|
|
1298
1684
|
// extend global
|
|
1299
|
-
redefine
|
|
1685
|
+
redefine(target, key, sourceProperty, options);
|
|
1300
1686
|
}
|
|
1301
1687
|
};
|
|
1302
1688
|
|
|
1303
|
-
var wellKnownSymbol$
|
|
1689
|
+
var wellKnownSymbol$1 = wellKnownSymbol$3;
|
|
1304
1690
|
|
|
1305
|
-
var TO_STRING_TAG$
|
|
1691
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
|
|
1306
1692
|
var test = {};
|
|
1307
1693
|
|
|
1308
|
-
test[TO_STRING_TAG$
|
|
1694
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1309
1695
|
|
|
1310
1696
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1311
1697
|
|
|
1312
|
-
var global$
|
|
1698
|
+
var global$3 = global$o;
|
|
1313
1699
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1314
|
-
var isCallable$
|
|
1700
|
+
var isCallable$1 = isCallable$b;
|
|
1315
1701
|
var classofRaw = classofRaw$1;
|
|
1316
|
-
var wellKnownSymbol
|
|
1702
|
+
var wellKnownSymbol = wellKnownSymbol$3;
|
|
1317
1703
|
|
|
1318
|
-
var TO_STRING_TAG
|
|
1319
|
-
var Object$1 = global$
|
|
1704
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1705
|
+
var Object$1 = global$3.Object;
|
|
1320
1706
|
|
|
1321
1707
|
// ES3 wrong here
|
|
1322
1708
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1329,272 +1715,42 @@
|
|
|
1329
1715
|
};
|
|
1330
1716
|
|
|
1331
1717
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1332
|
-
var classof$
|
|
1718
|
+
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1333
1719
|
var O, tag, result;
|
|
1334
1720
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1335
1721
|
// @@toStringTag case
|
|
1336
|
-
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG
|
|
1722
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1337
1723
|
// builtinTag case
|
|
1338
1724
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1339
1725
|
// ES3 arguments fallback
|
|
1340
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$
|
|
1726
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
|
|
1341
1727
|
};
|
|
1342
1728
|
|
|
1343
|
-
var global$
|
|
1344
|
-
var classof
|
|
1729
|
+
var global$2 = global$o;
|
|
1730
|
+
var classof = classof$1;
|
|
1345
1731
|
|
|
1346
|
-
var String$
|
|
1732
|
+
var String$1 = global$2.String;
|
|
1347
1733
|
|
|
1348
|
-
var toString$
|
|
1349
|
-
if (classof
|
|
1350
|
-
return String$
|
|
1734
|
+
var toString$1 = function (argument) {
|
|
1735
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1736
|
+
return String$1(argument);
|
|
1351
1737
|
};
|
|
1352
1738
|
|
|
1353
|
-
|
|
1354
|
-
var
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
var
|
|
1358
|
-
var
|
|
1359
|
-
var
|
|
1360
|
-
var
|
|
1361
|
-
|
|
1362
|
-
var replace$1 = uncurryThis$6(''.replace);
|
|
1363
|
-
var whitespace = '[' + whitespaces$1 + ']';
|
|
1364
|
-
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
1365
|
-
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
1366
|
-
|
|
1367
|
-
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1368
|
-
var createMethod = function (TYPE) {
|
|
1369
|
-
return function ($this) {
|
|
1370
|
-
var string = toString$2(requireObjectCoercible($this));
|
|
1371
|
-
if (TYPE & 1) string = replace$1(string, ltrim, '');
|
|
1372
|
-
if (TYPE & 2) string = replace$1(string, rtrim, '');
|
|
1373
|
-
return string;
|
|
1374
|
-
};
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
|
-
var stringTrim = {
|
|
1378
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1379
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1380
|
-
start: createMethod(1),
|
|
1381
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1382
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1383
|
-
end: createMethod(2),
|
|
1384
|
-
// `String.prototype.trim` method
|
|
1385
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1386
|
-
trim: createMethod(3)
|
|
1387
|
-
};
|
|
1388
|
-
|
|
1389
|
-
var global$f = global$C;
|
|
1390
|
-
var fails$2 = fails$a;
|
|
1391
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
1392
|
-
var toString$1 = toString$3;
|
|
1393
|
-
var trim = stringTrim.trim;
|
|
1394
|
-
var whitespaces = whitespaces$2;
|
|
1395
|
-
|
|
1396
|
-
var $parseInt$1 = global$f.parseInt;
|
|
1397
|
-
var Symbol$1 = global$f.Symbol;
|
|
1398
|
-
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
1399
|
-
var hex = /^[+-]?0x/i;
|
|
1400
|
-
var exec$1 = uncurryThis$5(hex.exec);
|
|
1401
|
-
var FORCED$1 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
1402
|
-
// MS Edge 18- broken with boxed symbols
|
|
1403
|
-
|| (ITERATOR$3 && !fails$2(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1404
|
-
|
|
1405
|
-
// `parseInt` method
|
|
1406
|
-
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1407
|
-
var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
|
|
1408
|
-
var S = trim(toString$1(string));
|
|
1409
|
-
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
|
1410
|
-
} : $parseInt$1;
|
|
1411
|
-
|
|
1412
|
-
var $$2 = _export;
|
|
1413
|
-
var $parseInt = numberParseInt;
|
|
1414
|
-
|
|
1415
|
-
// `parseInt` method
|
|
1416
|
-
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1417
|
-
$$2({ global: true, forced: parseInt != $parseInt }, {
|
|
1418
|
-
parseInt: $parseInt
|
|
1419
|
-
});
|
|
1420
|
-
|
|
1421
|
-
var useInput = function useInput(props, evaluator, notify) {
|
|
1422
|
-
var id = React.useMemo(function () {
|
|
1423
|
-
return props.id || extract.randomId();
|
|
1424
|
-
}, [props.id]);
|
|
1425
|
-
var ref = React.useRef(null);
|
|
1426
|
-
|
|
1427
|
-
var _a = React.useState(props.value),
|
|
1428
|
-
value = _a[0],
|
|
1429
|
-
setValue = _a[1];
|
|
1430
|
-
|
|
1431
|
-
var _b = React.useState(props.checked),
|
|
1432
|
-
checked = _b[0],
|
|
1433
|
-
setChecked = _b[1];
|
|
1434
|
-
|
|
1435
|
-
React.useEffect(function () {
|
|
1436
|
-
if (ref.current && ref.current.form) {
|
|
1437
|
-
var resetListener_1 = function resetListener_1() {
|
|
1438
|
-
props.value && setValue(props.value);
|
|
1439
|
-
props.checked && setChecked(props.checked);
|
|
1440
|
-
};
|
|
1441
|
-
|
|
1442
|
-
var form_1 = ref.current.form;
|
|
1443
|
-
form_1.addEventListener('reset', resetListener_1);
|
|
1444
|
-
return function () {
|
|
1445
|
-
return form_1.removeEventListener('reset', resetListener_1);
|
|
1446
|
-
};
|
|
1447
|
-
} else {
|
|
1448
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1449
|
-
return function () {};
|
|
1450
|
-
}
|
|
1451
|
-
}, [props]);
|
|
1452
|
-
|
|
1453
|
-
var onChange = function onChange(event) {
|
|
1454
|
-
props.value && setValue(event.target.value);
|
|
1455
|
-
props.checked && setChecked(event.target.checked);
|
|
1456
|
-
if (notify) notify(evaluator(event.target));
|
|
1457
|
-
};
|
|
1458
|
-
|
|
1459
|
-
return __assign(__assign({}, props), {
|
|
1460
|
-
id: id,
|
|
1461
|
-
ref: ref,
|
|
1462
|
-
value: value,
|
|
1463
|
-
checked: checked,
|
|
1464
|
-
onChange: onChange
|
|
1465
|
-
});
|
|
1466
|
-
};
|
|
1467
|
-
|
|
1468
|
-
var RenderInput = function RenderInput(type, props, evaluator, label, info, listener) {
|
|
1469
|
-
var _a = useInput(props, evaluator, listener),
|
|
1470
|
-
value = _a.value,
|
|
1471
|
-
inputProps = __rest(_a, ["value"]);
|
|
1472
|
-
|
|
1473
|
-
var propsWithDescription = info ? __assign(__assign({}, inputProps), {
|
|
1474
|
-
'aria-describedby': "".concat(inputProps.id, "_info")
|
|
1475
|
-
}) : inputProps; // Render naked
|
|
1476
|
-
|
|
1477
|
-
if (!label && !info) return jsxRuntime.jsx("input", __assign({
|
|
1478
|
-
type: type,
|
|
1479
|
-
value: value
|
|
1480
|
-
}, propsWithDescription), void 0);
|
|
1481
|
-
return jsxRuntime.jsxs("div", __assign({
|
|
1482
|
-
className: "form-field"
|
|
1483
|
-
}, {
|
|
1484
|
-
children: [label && jsxRuntime.jsx("label", __assign({
|
|
1485
|
-
htmlFor: inputProps.id
|
|
1486
|
-
}, {
|
|
1487
|
-
children: label
|
|
1488
|
-
}), void 0), info && jsxRuntime.jsx("span", __assign({
|
|
1489
|
-
className: "form-info",
|
|
1490
|
-
id: "{inputProps.id}_info"
|
|
1491
|
-
}, {
|
|
1492
|
-
children: info
|
|
1493
|
-
}), void 0), jsxRuntime.jsx("input", __assign({
|
|
1494
|
-
type: type,
|
|
1495
|
-
value: value
|
|
1496
|
-
}, propsWithDescription), void 0)]
|
|
1497
|
-
}), void 0);
|
|
1498
|
-
};
|
|
1499
|
-
|
|
1500
|
-
var TextInput = function TextInput(_a) {
|
|
1501
|
-
var label = _a.label,
|
|
1502
|
-
info = _a.info,
|
|
1503
|
-
onChangeText = _a.onChangeText,
|
|
1504
|
-
props = __rest(_a, ["label", "info", "onChangeText"]);
|
|
1505
|
-
|
|
1506
|
-
return RenderInput('text', props, function (e) {
|
|
1507
|
-
return e.value;
|
|
1508
|
-
}, label, info, onChangeText);
|
|
1509
|
-
};
|
|
1510
|
-
var EmailInput = function EmailInput(_a) {
|
|
1511
|
-
var label = _a.label,
|
|
1512
|
-
info = _a.info,
|
|
1513
|
-
onChangeText = _a.onChangeText,
|
|
1514
|
-
props = __rest(_a, ["label", "info", "onChangeText"]);
|
|
1515
|
-
|
|
1516
|
-
return RenderInput('email', props, function (e) {
|
|
1517
|
-
return e.value;
|
|
1518
|
-
}, label, info, onChangeText);
|
|
1519
|
-
};
|
|
1520
|
-
var NumberInput = function NumberInput(_a) {
|
|
1521
|
-
var label = _a.label,
|
|
1522
|
-
info = _a.info,
|
|
1523
|
-
onChangeText = _a.onChangeText,
|
|
1524
|
-
props = __rest(_a, ["label", "info", "onChangeText"]);
|
|
1525
|
-
|
|
1526
|
-
return RenderInput('number', props, function (e) {
|
|
1527
|
-
return e.value.length ? parseInt(e.value, 10) : undefined;
|
|
1528
|
-
}, label, info, onChangeText);
|
|
1529
|
-
};
|
|
1530
|
-
var Checkbox = function Checkbox(_a) {
|
|
1531
|
-
var label = _a.label,
|
|
1532
|
-
onChecked = _a.onChecked,
|
|
1533
|
-
props = __rest(_a, ["label", "onChecked"]);
|
|
1534
|
-
|
|
1535
|
-
var inputProps = useInput(props, function (e) {
|
|
1536
|
-
return e.checked;
|
|
1537
|
-
}, onChecked);
|
|
1538
|
-
return jsxRuntime.jsxs("label", __assign({
|
|
1539
|
-
htmlFor: inputProps.id,
|
|
1540
|
-
className: "form-control"
|
|
1541
|
-
}, {
|
|
1542
|
-
children: [label, jsxRuntime.jsx("input", __assign({
|
|
1543
|
-
type: "checkbox"
|
|
1544
|
-
}, inputProps), void 0), jsxRuntime.jsx("span", {}, void 0), jsxRuntime.jsx("i", {}, void 0)]
|
|
1545
|
-
}), void 0);
|
|
1546
|
-
};
|
|
1547
|
-
var RadioButton = function RadioButton(_a) {
|
|
1548
|
-
var label = _a.label,
|
|
1549
|
-
onChangeRadioBtn = _a.onChangeRadioBtn,
|
|
1550
|
-
validator = _a.validator,
|
|
1551
|
-
props = __rest(_a, ["label", "onChangeRadioBtn", "validator"]);
|
|
1552
|
-
|
|
1553
|
-
var inputProps = useInput(props, function (e) {
|
|
1554
|
-
return {
|
|
1555
|
-
value: e.value,
|
|
1556
|
-
checked: e.checked
|
|
1557
|
-
};
|
|
1558
|
-
}, onChangeRadioBtn);
|
|
1559
|
-
return jsxRuntime.jsxs("label", __assign({
|
|
1560
|
-
htmlFor: inputProps.id,
|
|
1561
|
-
className: "form-control"
|
|
1562
|
-
}, {
|
|
1563
|
-
children: [jsxRuntime.jsx("input", __assign({
|
|
1564
|
-
type: "radio",
|
|
1565
|
-
name: "default"
|
|
1566
|
-
}, inputProps, {
|
|
1567
|
-
className: validator
|
|
1568
|
-
}), void 0), jsxRuntime.jsx("span", {
|
|
1569
|
-
children: label
|
|
1570
|
-
}, void 0), jsxRuntime.jsx("i", {}, void 0)]
|
|
1571
|
-
}), void 0);
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
var Text = function Text(_a) {
|
|
1575
|
-
var children = _a.children;
|
|
1576
|
-
return jsxRuntime.jsx("span", __assign({
|
|
1577
|
-
className: "form-text"
|
|
1578
|
-
}, {
|
|
1579
|
-
children: children
|
|
1580
|
-
}), void 0);
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
var $$1 = _export;
|
|
1584
|
-
var DESCRIPTORS$1 = descriptors;
|
|
1585
|
-
var global$e = global$C;
|
|
1586
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
1587
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
1588
|
-
var isCallable$4 = isCallable$f;
|
|
1589
|
-
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1590
|
-
var toString = toString$3;
|
|
1591
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
1739
|
+
var $ = _export;
|
|
1740
|
+
var DESCRIPTORS = descriptors;
|
|
1741
|
+
var global$1 = global$o;
|
|
1742
|
+
var uncurryThis = functionUncurryThis;
|
|
1743
|
+
var hasOwn = hasOwnProperty_1;
|
|
1744
|
+
var isCallable = isCallable$b;
|
|
1745
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1746
|
+
var toString = toString$1;
|
|
1747
|
+
var defineProperty = objectDefineProperty.f;
|
|
1592
1748
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
1593
1749
|
|
|
1594
|
-
var NativeSymbol = global$
|
|
1750
|
+
var NativeSymbol = global$1.Symbol;
|
|
1595
1751
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
1596
1752
|
|
|
1597
|
-
if (DESCRIPTORS
|
|
1753
|
+
if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
1598
1754
|
// Safari 12 bug
|
|
1599
1755
|
NativeSymbol().description !== undefined
|
|
1600
1756
|
)) {
|
|
@@ -1602,7 +1758,7 @@
|
|
|
1602
1758
|
// wrap Symbol constructor for correct work with undefined description
|
|
1603
1759
|
var SymbolWrapper = function Symbol() {
|
|
1604
1760
|
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
|
|
1605
|
-
var result = isPrototypeOf
|
|
1761
|
+
var result = isPrototypeOf(SymbolPrototype, this)
|
|
1606
1762
|
? new NativeSymbol(description)
|
|
1607
1763
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
1608
1764
|
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
@@ -1615,1116 +1771,46 @@
|
|
|
1615
1771
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
1616
1772
|
|
|
1617
1773
|
var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
1618
|
-
var symbolToString = uncurryThis
|
|
1619
|
-
var symbolValueOf = uncurryThis
|
|
1774
|
+
var symbolToString = uncurryThis(SymbolPrototype.toString);
|
|
1775
|
+
var symbolValueOf = uncurryThis(SymbolPrototype.valueOf);
|
|
1620
1776
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
1621
|
-
var replace = uncurryThis
|
|
1622
|
-
var stringSlice = uncurryThis
|
|
1777
|
+
var replace = uncurryThis(''.replace);
|
|
1778
|
+
var stringSlice = uncurryThis(''.slice);
|
|
1623
1779
|
|
|
1624
|
-
defineProperty
|
|
1780
|
+
defineProperty(SymbolPrototype, 'description', {
|
|
1625
1781
|
configurable: true,
|
|
1626
1782
|
get: function description() {
|
|
1627
1783
|
var symbol = symbolValueOf(this);
|
|
1628
1784
|
var string = symbolToString(symbol);
|
|
1629
|
-
if (hasOwn
|
|
1785
|
+
if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
|
|
1630
1786
|
var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
|
|
1631
1787
|
return desc === '' ? undefined : desc;
|
|
1632
1788
|
}
|
|
1633
1789
|
});
|
|
1634
1790
|
|
|
1635
|
-
|
|
1791
|
+
$({ global: true, forced: true }, {
|
|
1636
1792
|
Symbol: SymbolWrapper
|
|
1637
1793
|
});
|
|
1638
1794
|
}
|
|
1639
1795
|
|
|
1640
|
-
var global$d = global$C;
|
|
1641
|
-
|
|
1642
|
-
var nativePromiseConstructor = global$d.Promise;
|
|
1643
|
-
|
|
1644
|
-
var redefine$1 = redefine$3.exports;
|
|
1645
|
-
|
|
1646
|
-
var redefineAll$1 = function (target, src, options) {
|
|
1647
|
-
for (var key in src) redefine$1(target, key, src[key], options);
|
|
1648
|
-
return target;
|
|
1649
|
-
};
|
|
1650
|
-
|
|
1651
|
-
var global$c = global$C;
|
|
1652
|
-
var isCallable$3 = isCallable$f;
|
|
1653
|
-
|
|
1654
|
-
var String$2 = global$c.String;
|
|
1655
|
-
var TypeError$7 = global$c.TypeError;
|
|
1656
|
-
|
|
1657
|
-
var aPossiblePrototype$1 = function (argument) {
|
|
1658
|
-
if (typeof argument == 'object' || isCallable$3(argument)) return argument;
|
|
1659
|
-
throw TypeError$7("Can't set " + String$2(argument) + ' as a prototype');
|
|
1660
|
-
};
|
|
1661
|
-
|
|
1662
|
-
/* eslint-disable no-proto -- safe */
|
|
1663
|
-
|
|
1664
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
1665
|
-
var anObject$5 = anObject$8;
|
|
1666
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1667
|
-
|
|
1668
|
-
// `Object.setPrototypeOf` method
|
|
1669
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1670
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1671
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1672
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1673
|
-
var CORRECT_SETTER = false;
|
|
1674
|
-
var test = {};
|
|
1675
|
-
var setter;
|
|
1676
|
-
try {
|
|
1677
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1678
|
-
setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1679
|
-
setter(test, []);
|
|
1680
|
-
CORRECT_SETTER = test instanceof Array;
|
|
1681
|
-
} catch (error) { /* empty */ }
|
|
1682
|
-
return function setPrototypeOf(O, proto) {
|
|
1683
|
-
anObject$5(O);
|
|
1684
|
-
aPossiblePrototype(proto);
|
|
1685
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
1686
|
-
else O.__proto__ = proto;
|
|
1687
|
-
return O;
|
|
1688
|
-
};
|
|
1689
|
-
}() : undefined);
|
|
1690
|
-
|
|
1691
|
-
var defineProperty = objectDefineProperty.f;
|
|
1692
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
1693
|
-
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1694
|
-
|
|
1695
|
-
var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
|
|
1696
|
-
|
|
1697
|
-
var setToStringTag$1 = function (target, TAG, STATIC) {
|
|
1698
|
-
if (target && !STATIC) target = target.prototype;
|
|
1699
|
-
if (target && !hasOwn$1(target, TO_STRING_TAG)) {
|
|
1700
|
-
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
1701
|
-
}
|
|
1702
|
-
};
|
|
1703
|
-
|
|
1704
|
-
var getBuiltIn$3 = getBuiltIn$7;
|
|
1705
|
-
var definePropertyModule = objectDefineProperty;
|
|
1706
|
-
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1707
|
-
var DESCRIPTORS = descriptors;
|
|
1708
|
-
|
|
1709
|
-
var SPECIES$2 = wellKnownSymbol$5('species');
|
|
1710
|
-
|
|
1711
|
-
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1712
|
-
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
1713
|
-
var defineProperty = definePropertyModule.f;
|
|
1714
|
-
|
|
1715
|
-
if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
|
|
1716
|
-
defineProperty(Constructor, SPECIES$2, {
|
|
1717
|
-
configurable: true,
|
|
1718
|
-
get: function () { return this; }
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
};
|
|
1722
|
-
|
|
1723
|
-
var global$b = global$C;
|
|
1724
|
-
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1725
|
-
|
|
1726
|
-
var TypeError$6 = global$b.TypeError;
|
|
1727
|
-
|
|
1728
|
-
var anInstance$1 = function (it, Prototype) {
|
|
1729
|
-
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1730
|
-
throw TypeError$6('Incorrect invocation');
|
|
1731
|
-
};
|
|
1732
|
-
|
|
1733
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
1734
|
-
var aCallable$3 = aCallable$5;
|
|
1735
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
1736
|
-
|
|
1737
|
-
var bind$4 = uncurryThis$2(uncurryThis$2.bind);
|
|
1738
|
-
|
|
1739
|
-
// optional / simple context binding
|
|
1740
|
-
var functionBindContext = function (fn, that) {
|
|
1741
|
-
aCallable$3(fn);
|
|
1742
|
-
return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
|
|
1743
|
-
return fn.apply(that, arguments);
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
|
|
1747
|
-
var iterators = {};
|
|
1748
|
-
|
|
1749
|
-
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1750
|
-
var Iterators$1 = iterators;
|
|
1751
|
-
|
|
1752
|
-
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
|
1753
|
-
var ArrayPrototype = Array.prototype;
|
|
1754
|
-
|
|
1755
|
-
// check on default Array iterator
|
|
1756
|
-
var isArrayIteratorMethod$1 = function (it) {
|
|
1757
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
1758
|
-
};
|
|
1759
|
-
|
|
1760
|
-
var classof$2 = classof$4;
|
|
1761
|
-
var getMethod$1 = getMethod$3;
|
|
1762
|
-
var Iterators = iterators;
|
|
1763
|
-
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1764
|
-
|
|
1765
|
-
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
1766
|
-
|
|
1767
|
-
var getIteratorMethod$2 = function (it) {
|
|
1768
|
-
if (it != undefined) return getMethod$1(it, ITERATOR$1)
|
|
1769
|
-
|| getMethod$1(it, '@@iterator')
|
|
1770
|
-
|| Iterators[classof$2(it)];
|
|
1771
|
-
};
|
|
1772
|
-
|
|
1773
|
-
var global$a = global$C;
|
|
1774
|
-
var call$4 = functionCall;
|
|
1775
|
-
var aCallable$2 = aCallable$5;
|
|
1776
|
-
var anObject$4 = anObject$8;
|
|
1777
|
-
var tryToString$2 = tryToString$4;
|
|
1778
|
-
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1779
|
-
|
|
1780
|
-
var TypeError$5 = global$a.TypeError;
|
|
1781
|
-
|
|
1782
|
-
var getIterator$1 = function (argument, usingIterator) {
|
|
1783
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1784
|
-
if (aCallable$2(iteratorMethod)) return anObject$4(call$4(iteratorMethod, argument));
|
|
1785
|
-
throw TypeError$5(tryToString$2(argument) + ' is not iterable');
|
|
1786
|
-
};
|
|
1787
|
-
|
|
1788
|
-
var call$3 = functionCall;
|
|
1789
|
-
var anObject$3 = anObject$8;
|
|
1790
|
-
var getMethod = getMethod$3;
|
|
1791
|
-
|
|
1792
|
-
var iteratorClose$1 = function (iterator, kind, value) {
|
|
1793
|
-
var innerResult, innerError;
|
|
1794
|
-
anObject$3(iterator);
|
|
1795
|
-
try {
|
|
1796
|
-
innerResult = getMethod(iterator, 'return');
|
|
1797
|
-
if (!innerResult) {
|
|
1798
|
-
if (kind === 'throw') throw value;
|
|
1799
|
-
return value;
|
|
1800
|
-
}
|
|
1801
|
-
innerResult = call$3(innerResult, iterator);
|
|
1802
|
-
} catch (error) {
|
|
1803
|
-
innerError = true;
|
|
1804
|
-
innerResult = error;
|
|
1805
|
-
}
|
|
1806
|
-
if (kind === 'throw') throw value;
|
|
1807
|
-
if (innerError) throw innerResult;
|
|
1808
|
-
anObject$3(innerResult);
|
|
1809
|
-
return value;
|
|
1810
|
-
};
|
|
1811
|
-
|
|
1812
|
-
var global$9 = global$C;
|
|
1813
|
-
var bind$3 = functionBindContext;
|
|
1814
|
-
var call$2 = functionCall;
|
|
1815
|
-
var anObject$2 = anObject$8;
|
|
1816
|
-
var tryToString$1 = tryToString$4;
|
|
1817
|
-
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1818
|
-
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1819
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1820
|
-
var getIterator = getIterator$1;
|
|
1821
|
-
var getIteratorMethod = getIteratorMethod$2;
|
|
1822
|
-
var iteratorClose = iteratorClose$1;
|
|
1823
|
-
|
|
1824
|
-
var TypeError$4 = global$9.TypeError;
|
|
1825
|
-
|
|
1826
|
-
var Result = function (stopped, result) {
|
|
1827
|
-
this.stopped = stopped;
|
|
1828
|
-
this.result = result;
|
|
1829
|
-
};
|
|
1830
|
-
|
|
1831
|
-
var ResultPrototype = Result.prototype;
|
|
1832
|
-
|
|
1833
|
-
var iterate$1 = function (iterable, unboundFunction, options) {
|
|
1834
|
-
var that = options && options.that;
|
|
1835
|
-
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1836
|
-
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1837
|
-
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1838
|
-
var fn = bind$3(unboundFunction, that);
|
|
1839
|
-
var iterator, iterFn, index, length, result, next, step;
|
|
1840
|
-
|
|
1841
|
-
var stop = function (condition) {
|
|
1842
|
-
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
1843
|
-
return new Result(true, condition);
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
var callFn = function (value) {
|
|
1847
|
-
if (AS_ENTRIES) {
|
|
1848
|
-
anObject$2(value);
|
|
1849
|
-
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1850
|
-
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1851
|
-
};
|
|
1852
|
-
|
|
1853
|
-
if (IS_ITERATOR) {
|
|
1854
|
-
iterator = iterable;
|
|
1855
|
-
} else {
|
|
1856
|
-
iterFn = getIteratorMethod(iterable);
|
|
1857
|
-
if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
|
|
1858
|
-
// optimisation for array iterators
|
|
1859
|
-
if (isArrayIteratorMethod(iterFn)) {
|
|
1860
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1861
|
-
result = callFn(iterable[index]);
|
|
1862
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1863
|
-
} return new Result(false);
|
|
1864
|
-
}
|
|
1865
|
-
iterator = getIterator(iterable, iterFn);
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
next = iterator.next;
|
|
1869
|
-
while (!(step = call$2(next, iterator)).done) {
|
|
1870
|
-
try {
|
|
1871
|
-
result = callFn(step.value);
|
|
1872
|
-
} catch (error) {
|
|
1873
|
-
iteratorClose(iterator, 'throw', error);
|
|
1874
|
-
}
|
|
1875
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1876
|
-
} return new Result(false);
|
|
1877
|
-
};
|
|
1878
|
-
|
|
1879
|
-
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1880
|
-
|
|
1881
|
-
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
1882
|
-
var SAFE_CLOSING = false;
|
|
1883
|
-
|
|
1884
|
-
try {
|
|
1885
|
-
var called = 0;
|
|
1886
|
-
var iteratorWithReturn = {
|
|
1887
|
-
next: function () {
|
|
1888
|
-
return { done: !!called++ };
|
|
1889
|
-
},
|
|
1890
|
-
'return': function () {
|
|
1891
|
-
SAFE_CLOSING = true;
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
iteratorWithReturn[ITERATOR] = function () {
|
|
1895
|
-
return this;
|
|
1896
|
-
};
|
|
1897
|
-
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
1898
|
-
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
1899
|
-
} catch (error) { /* empty */ }
|
|
1900
|
-
|
|
1901
|
-
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
1902
|
-
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
1903
|
-
var ITERATION_SUPPORT = false;
|
|
1904
|
-
try {
|
|
1905
|
-
var object = {};
|
|
1906
|
-
object[ITERATOR] = function () {
|
|
1907
|
-
return {
|
|
1908
|
-
next: function () {
|
|
1909
|
-
return { done: ITERATION_SUPPORT = true };
|
|
1910
|
-
}
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
exec(object);
|
|
1914
|
-
} catch (error) { /* empty */ }
|
|
1915
|
-
return ITERATION_SUPPORT;
|
|
1916
|
-
};
|
|
1917
|
-
|
|
1918
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
1919
|
-
var fails$1 = fails$a;
|
|
1920
|
-
var isCallable$2 = isCallable$f;
|
|
1921
|
-
var classof$1 = classof$4;
|
|
1922
|
-
var getBuiltIn$2 = getBuiltIn$7;
|
|
1923
|
-
var inspectSource$1 = inspectSource$4;
|
|
1924
|
-
|
|
1925
|
-
var noop = function () { /* empty */ };
|
|
1926
|
-
var empty = [];
|
|
1927
|
-
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
1928
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1929
|
-
var exec = uncurryThis$1(constructorRegExp.exec);
|
|
1930
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1931
|
-
|
|
1932
|
-
var isConstructorModern = function isConstructor(argument) {
|
|
1933
|
-
if (!isCallable$2(argument)) return false;
|
|
1934
|
-
try {
|
|
1935
|
-
construct(noop, empty, argument);
|
|
1936
|
-
return true;
|
|
1937
|
-
} catch (error) {
|
|
1938
|
-
return false;
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
|
-
|
|
1942
|
-
var isConstructorLegacy = function isConstructor(argument) {
|
|
1943
|
-
if (!isCallable$2(argument)) return false;
|
|
1944
|
-
switch (classof$1(argument)) {
|
|
1945
|
-
case 'AsyncFunction':
|
|
1946
|
-
case 'GeneratorFunction':
|
|
1947
|
-
case 'AsyncGeneratorFunction': return false;
|
|
1948
|
-
}
|
|
1949
|
-
try {
|
|
1950
|
-
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1951
|
-
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1952
|
-
// (for example, `DOMQuad` and similar in FF41-)
|
|
1953
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
1954
|
-
} catch (error) {
|
|
1955
|
-
return true;
|
|
1956
|
-
}
|
|
1957
|
-
};
|
|
1958
|
-
|
|
1959
|
-
isConstructorLegacy.sham = true;
|
|
1960
|
-
|
|
1961
|
-
// `IsConstructor` abstract operation
|
|
1962
|
-
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1963
|
-
var isConstructor$1 = !construct || fails$1(function () {
|
|
1964
|
-
var called;
|
|
1965
|
-
return isConstructorModern(isConstructorModern.call)
|
|
1966
|
-
|| !isConstructorModern(Object)
|
|
1967
|
-
|| !isConstructorModern(function () { called = true; })
|
|
1968
|
-
|| called;
|
|
1969
|
-
}) ? isConstructorLegacy : isConstructorModern;
|
|
1970
|
-
|
|
1971
|
-
var global$8 = global$C;
|
|
1972
|
-
var isConstructor = isConstructor$1;
|
|
1973
|
-
var tryToString = tryToString$4;
|
|
1974
|
-
|
|
1975
|
-
var TypeError$3 = global$8.TypeError;
|
|
1976
|
-
|
|
1977
|
-
// `Assert: IsConstructor(argument) is true`
|
|
1978
|
-
var aConstructor$1 = function (argument) {
|
|
1979
|
-
if (isConstructor(argument)) return argument;
|
|
1980
|
-
throw TypeError$3(tryToString(argument) + ' is not a constructor');
|
|
1981
|
-
};
|
|
1982
|
-
|
|
1983
|
-
var anObject$1 = anObject$8;
|
|
1984
|
-
var aConstructor = aConstructor$1;
|
|
1985
|
-
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
1986
|
-
|
|
1987
|
-
var SPECIES$1 = wellKnownSymbol$1('species');
|
|
1988
|
-
|
|
1989
|
-
// `SpeciesConstructor` abstract operation
|
|
1990
|
-
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1991
|
-
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
1992
|
-
var C = anObject$1(O).constructor;
|
|
1993
|
-
var S;
|
|
1994
|
-
return C === undefined || (S = anObject$1(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
|
|
1995
|
-
};
|
|
1996
|
-
|
|
1997
|
-
var NATIVE_BIND = functionBindNative;
|
|
1998
|
-
|
|
1999
|
-
var FunctionPrototype = Function.prototype;
|
|
2000
|
-
var apply$1 = FunctionPrototype.apply;
|
|
2001
|
-
var call$1 = FunctionPrototype.call;
|
|
2002
|
-
|
|
2003
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
2004
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
|
|
2005
|
-
return call$1.apply(apply$1, arguments);
|
|
2006
|
-
});
|
|
2007
|
-
|
|
2008
|
-
var getBuiltIn$1 = getBuiltIn$7;
|
|
2009
|
-
|
|
2010
|
-
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
2011
|
-
|
|
2012
|
-
var uncurryThis = functionUncurryThis;
|
|
2013
|
-
|
|
2014
|
-
var arraySlice$1 = uncurryThis([].slice);
|
|
2015
|
-
|
|
2016
|
-
var global$7 = global$C;
|
|
2017
|
-
|
|
2018
|
-
var TypeError$2 = global$7.TypeError;
|
|
2019
|
-
|
|
2020
|
-
var validateArgumentsLength$1 = function (passed, required) {
|
|
2021
|
-
if (passed < required) throw TypeError$2('Not enough arguments');
|
|
2022
|
-
return passed;
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
var userAgent$2 = engineUserAgent;
|
|
2026
|
-
|
|
2027
|
-
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2028
|
-
|
|
2029
|
-
var classof = classofRaw$1;
|
|
2030
|
-
var global$6 = global$C;
|
|
2031
|
-
|
|
2032
|
-
var engineIsNode = classof(global$6.process) == 'process';
|
|
2033
|
-
|
|
2034
|
-
var global$5 = global$C;
|
|
2035
|
-
var apply = functionApply;
|
|
2036
|
-
var bind$2 = functionBindContext;
|
|
2037
|
-
var isCallable$1 = isCallable$f;
|
|
2038
|
-
var hasOwn = hasOwnProperty_1;
|
|
2039
|
-
var fails = fails$a;
|
|
2040
|
-
var html = html$1;
|
|
2041
|
-
var arraySlice = arraySlice$1;
|
|
2042
|
-
var createElement = documentCreateElement;
|
|
2043
|
-
var validateArgumentsLength = validateArgumentsLength$1;
|
|
2044
|
-
var IS_IOS$1 = engineIsIos;
|
|
2045
|
-
var IS_NODE$2 = engineIsNode;
|
|
2046
|
-
|
|
2047
|
-
var set = global$5.setImmediate;
|
|
2048
|
-
var clear = global$5.clearImmediate;
|
|
2049
|
-
var process$2 = global$5.process;
|
|
2050
|
-
var Dispatch = global$5.Dispatch;
|
|
2051
|
-
var Function$1 = global$5.Function;
|
|
2052
|
-
var MessageChannel = global$5.MessageChannel;
|
|
2053
|
-
var String$1 = global$5.String;
|
|
2054
|
-
var counter = 0;
|
|
2055
|
-
var queue$1 = {};
|
|
2056
|
-
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2057
|
-
var location, defer, channel, port;
|
|
2058
|
-
|
|
2059
|
-
try {
|
|
2060
|
-
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2061
|
-
location = global$5.location;
|
|
2062
|
-
} catch (error) { /* empty */ }
|
|
2063
|
-
|
|
2064
|
-
var run = function (id) {
|
|
2065
|
-
if (hasOwn(queue$1, id)) {
|
|
2066
|
-
var fn = queue$1[id];
|
|
2067
|
-
delete queue$1[id];
|
|
2068
|
-
fn();
|
|
2069
|
-
}
|
|
2070
|
-
};
|
|
2071
|
-
|
|
2072
|
-
var runner = function (id) {
|
|
2073
|
-
return function () {
|
|
2074
|
-
run(id);
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
|
-
var listener = function (event) {
|
|
2079
|
-
run(event.data);
|
|
2080
|
-
};
|
|
2081
|
-
|
|
2082
|
-
var post = function (id) {
|
|
2083
|
-
// old engines have not location.origin
|
|
2084
|
-
global$5.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2088
|
-
if (!set || !clear) {
|
|
2089
|
-
set = function setImmediate(handler) {
|
|
2090
|
-
validateArgumentsLength(arguments.length, 1);
|
|
2091
|
-
var fn = isCallable$1(handler) ? handler : Function$1(handler);
|
|
2092
|
-
var args = arraySlice(arguments, 1);
|
|
2093
|
-
queue$1[++counter] = function () {
|
|
2094
|
-
apply(fn, undefined, args);
|
|
2095
|
-
};
|
|
2096
|
-
defer(counter);
|
|
2097
|
-
return counter;
|
|
2098
|
-
};
|
|
2099
|
-
clear = function clearImmediate(id) {
|
|
2100
|
-
delete queue$1[id];
|
|
2101
|
-
};
|
|
2102
|
-
// Node.js 0.8-
|
|
2103
|
-
if (IS_NODE$2) {
|
|
2104
|
-
defer = function (id) {
|
|
2105
|
-
process$2.nextTick(runner(id));
|
|
2106
|
-
};
|
|
2107
|
-
// Sphere (JS game engine) Dispatch API
|
|
2108
|
-
} else if (Dispatch && Dispatch.now) {
|
|
2109
|
-
defer = function (id) {
|
|
2110
|
-
Dispatch.now(runner(id));
|
|
2111
|
-
};
|
|
2112
|
-
// Browsers with MessageChannel, includes WebWorkers
|
|
2113
|
-
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
2114
|
-
} else if (MessageChannel && !IS_IOS$1) {
|
|
2115
|
-
channel = new MessageChannel();
|
|
2116
|
-
port = channel.port2;
|
|
2117
|
-
channel.port1.onmessage = listener;
|
|
2118
|
-
defer = bind$2(port.postMessage, port);
|
|
2119
|
-
// Browsers with postMessage, skip WebWorkers
|
|
2120
|
-
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2121
|
-
} else if (
|
|
2122
|
-
global$5.addEventListener &&
|
|
2123
|
-
isCallable$1(global$5.postMessage) &&
|
|
2124
|
-
!global$5.importScripts &&
|
|
2125
|
-
location && location.protocol !== 'file:' &&
|
|
2126
|
-
!fails(post)
|
|
2127
|
-
) {
|
|
2128
|
-
defer = post;
|
|
2129
|
-
global$5.addEventListener('message', listener, false);
|
|
2130
|
-
// IE8-
|
|
2131
|
-
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2132
|
-
defer = function (id) {
|
|
2133
|
-
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
2134
|
-
html.removeChild(this);
|
|
2135
|
-
run(id);
|
|
2136
|
-
};
|
|
2137
|
-
};
|
|
2138
|
-
// Rest old browsers
|
|
2139
|
-
} else {
|
|
2140
|
-
defer = function (id) {
|
|
2141
|
-
setTimeout(runner(id), 0);
|
|
2142
|
-
};
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
var task$1 = {
|
|
2147
|
-
set: set,
|
|
2148
|
-
clear: clear
|
|
2149
|
-
};
|
|
2150
|
-
|
|
2151
|
-
var userAgent$1 = engineUserAgent;
|
|
2152
|
-
var global$4 = global$C;
|
|
2153
|
-
|
|
2154
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$4.Pebble !== undefined;
|
|
2155
|
-
|
|
2156
|
-
var userAgent = engineUserAgent;
|
|
2157
|
-
|
|
2158
|
-
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2159
|
-
|
|
2160
|
-
var global$3 = global$C;
|
|
2161
|
-
var bind$1 = functionBindContext;
|
|
2162
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2163
|
-
var macrotask = task$1.set;
|
|
2164
|
-
var IS_IOS = engineIsIos;
|
|
2165
|
-
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
2166
|
-
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2167
|
-
var IS_NODE$1 = engineIsNode;
|
|
2168
|
-
|
|
2169
|
-
var MutationObserver = global$3.MutationObserver || global$3.WebKitMutationObserver;
|
|
2170
|
-
var document$1 = global$3.document;
|
|
2171
|
-
var process$1 = global$3.process;
|
|
2172
|
-
var Promise$1 = global$3.Promise;
|
|
2173
|
-
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
2174
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$3, 'queueMicrotask');
|
|
2175
|
-
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
2176
|
-
|
|
2177
|
-
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
2178
|
-
|
|
2179
|
-
// modern engines have queueMicrotask method
|
|
2180
|
-
if (!queueMicrotask) {
|
|
2181
|
-
flush = function () {
|
|
2182
|
-
var parent, fn;
|
|
2183
|
-
if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
|
|
2184
|
-
while (head) {
|
|
2185
|
-
fn = head.fn;
|
|
2186
|
-
head = head.next;
|
|
2187
|
-
try {
|
|
2188
|
-
fn();
|
|
2189
|
-
} catch (error) {
|
|
2190
|
-
if (head) notify$1();
|
|
2191
|
-
else last = undefined;
|
|
2192
|
-
throw error;
|
|
2193
|
-
}
|
|
2194
|
-
} last = undefined;
|
|
2195
|
-
if (parent) parent.enter();
|
|
2196
|
-
};
|
|
2197
|
-
|
|
2198
|
-
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
2199
|
-
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
2200
|
-
if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$1) {
|
|
2201
|
-
toggle = true;
|
|
2202
|
-
node = document$1.createTextNode('');
|
|
2203
|
-
new MutationObserver(flush).observe(node, { characterData: true });
|
|
2204
|
-
notify$1 = function () {
|
|
2205
|
-
node.data = toggle = !toggle;
|
|
2206
|
-
};
|
|
2207
|
-
// environments with maybe non-completely correct, but existent Promise
|
|
2208
|
-
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
|
2209
|
-
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
2210
|
-
promise = Promise$1.resolve(undefined);
|
|
2211
|
-
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
2212
|
-
promise.constructor = Promise$1;
|
|
2213
|
-
then = bind$1(promise.then, promise);
|
|
2214
|
-
notify$1 = function () {
|
|
2215
|
-
then(flush);
|
|
2216
|
-
};
|
|
2217
|
-
// Node.js without promises
|
|
2218
|
-
} else if (IS_NODE$1) {
|
|
2219
|
-
notify$1 = function () {
|
|
2220
|
-
process$1.nextTick(flush);
|
|
2221
|
-
};
|
|
2222
|
-
// for other environments - macrotask based on:
|
|
2223
|
-
// - setImmediate
|
|
2224
|
-
// - MessageChannel
|
|
2225
|
-
// - window.postMessag
|
|
2226
|
-
// - onreadystatechange
|
|
2227
|
-
// - setTimeout
|
|
2228
|
-
} else {
|
|
2229
|
-
// strange IE + webpack dev server bug - use .bind(global)
|
|
2230
|
-
macrotask = bind$1(macrotask, global$3);
|
|
2231
|
-
notify$1 = function () {
|
|
2232
|
-
macrotask(flush);
|
|
2233
|
-
};
|
|
2234
|
-
}
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
|
-
var microtask$1 = queueMicrotask || function (fn) {
|
|
2238
|
-
var task = { fn: fn, next: undefined };
|
|
2239
|
-
if (last) last.next = task;
|
|
2240
|
-
if (!head) {
|
|
2241
|
-
head = task;
|
|
2242
|
-
notify$1();
|
|
2243
|
-
} last = task;
|
|
2244
|
-
};
|
|
2245
|
-
|
|
2246
|
-
var newPromiseCapability$2 = {};
|
|
2247
|
-
|
|
2248
|
-
var aCallable$1 = aCallable$5;
|
|
2249
|
-
|
|
2250
|
-
var PromiseCapability = function (C) {
|
|
2251
|
-
var resolve, reject;
|
|
2252
|
-
this.promise = new C(function ($$resolve, $$reject) {
|
|
2253
|
-
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
2254
|
-
resolve = $$resolve;
|
|
2255
|
-
reject = $$reject;
|
|
2256
|
-
});
|
|
2257
|
-
this.resolve = aCallable$1(resolve);
|
|
2258
|
-
this.reject = aCallable$1(reject);
|
|
2259
|
-
};
|
|
2260
|
-
|
|
2261
|
-
// `NewPromiseCapability` abstract operation
|
|
2262
|
-
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
2263
|
-
newPromiseCapability$2.f = function (C) {
|
|
2264
|
-
return new PromiseCapability(C);
|
|
2265
|
-
};
|
|
2266
|
-
|
|
2267
|
-
var anObject = anObject$8;
|
|
2268
|
-
var isObject$1 = isObject$7;
|
|
2269
|
-
var newPromiseCapability$1 = newPromiseCapability$2;
|
|
2270
|
-
|
|
2271
|
-
var promiseResolve$1 = function (C, x) {
|
|
2272
|
-
anObject(C);
|
|
2273
|
-
if (isObject$1(x) && x.constructor === C) return x;
|
|
2274
|
-
var promiseCapability = newPromiseCapability$1.f(C);
|
|
2275
|
-
var resolve = promiseCapability.resolve;
|
|
2276
|
-
resolve(x);
|
|
2277
|
-
return promiseCapability.promise;
|
|
2278
|
-
};
|
|
2279
|
-
|
|
2280
|
-
var global$2 = global$C;
|
|
2281
|
-
|
|
2282
|
-
var hostReportErrors$1 = function (a, b) {
|
|
2283
|
-
var console = global$2.console;
|
|
2284
|
-
if (console && console.error) {
|
|
2285
|
-
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
2286
|
-
}
|
|
2287
|
-
};
|
|
2288
|
-
|
|
2289
|
-
var perform$1 = function (exec) {
|
|
2290
|
-
try {
|
|
2291
|
-
return { error: false, value: exec() };
|
|
2292
|
-
} catch (error) {
|
|
2293
|
-
return { error: true, value: error };
|
|
2294
|
-
}
|
|
2295
|
-
};
|
|
2296
|
-
|
|
2297
|
-
var Queue$1 = function () {
|
|
2298
|
-
this.head = null;
|
|
2299
|
-
this.tail = null;
|
|
2300
|
-
};
|
|
2301
|
-
|
|
2302
|
-
Queue$1.prototype = {
|
|
2303
|
-
add: function (item) {
|
|
2304
|
-
var entry = { item: item, next: null };
|
|
2305
|
-
if (this.head) this.tail.next = entry;
|
|
2306
|
-
else this.head = entry;
|
|
2307
|
-
this.tail = entry;
|
|
2308
|
-
},
|
|
2309
|
-
get: function () {
|
|
2310
|
-
var entry = this.head;
|
|
2311
|
-
if (entry) {
|
|
2312
|
-
this.head = entry.next;
|
|
2313
|
-
if (this.tail === entry) this.tail = null;
|
|
2314
|
-
return entry.item;
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
};
|
|
2318
|
-
|
|
2319
|
-
var queue = Queue$1;
|
|
2320
|
-
|
|
2321
|
-
var engineIsBrowser = typeof window == 'object';
|
|
2322
|
-
|
|
2323
|
-
var $ = _export;
|
|
2324
|
-
var global$1 = global$C;
|
|
2325
|
-
var getBuiltIn = getBuiltIn$7;
|
|
2326
|
-
var call = functionCall;
|
|
2327
|
-
var NativePromise = nativePromiseConstructor;
|
|
2328
|
-
var redefine = redefine$3.exports;
|
|
2329
|
-
var redefineAll = redefineAll$1;
|
|
2330
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
2331
|
-
var setToStringTag = setToStringTag$1;
|
|
2332
|
-
var setSpecies = setSpecies$1;
|
|
2333
|
-
var aCallable = aCallable$5;
|
|
2334
|
-
var isCallable = isCallable$f;
|
|
2335
|
-
var isObject = isObject$7;
|
|
2336
|
-
var anInstance = anInstance$1;
|
|
2337
|
-
var inspectSource = inspectSource$4;
|
|
2338
|
-
var iterate = iterate$1;
|
|
2339
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
2340
|
-
var speciesConstructor = speciesConstructor$1;
|
|
2341
|
-
var task = task$1.set;
|
|
2342
|
-
var microtask = microtask$1;
|
|
2343
|
-
var promiseResolve = promiseResolve$1;
|
|
2344
|
-
var hostReportErrors = hostReportErrors$1;
|
|
2345
|
-
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2346
|
-
var perform = perform$1;
|
|
2347
|
-
var Queue = queue;
|
|
2348
|
-
var InternalStateModule = internalState;
|
|
2349
|
-
var isForced = isForced_1;
|
|
2350
|
-
var wellKnownSymbol = wellKnownSymbol$a;
|
|
2351
|
-
var IS_BROWSER = engineIsBrowser;
|
|
2352
|
-
var IS_NODE = engineIsNode;
|
|
2353
|
-
var V8_VERSION = engineV8Version;
|
|
2354
|
-
|
|
2355
|
-
var SPECIES = wellKnownSymbol('species');
|
|
2356
|
-
var PROMISE = 'Promise';
|
|
2357
|
-
|
|
2358
|
-
var getInternalState = InternalStateModule.getterFor(PROMISE);
|
|
2359
|
-
var setInternalState = InternalStateModule.set;
|
|
2360
|
-
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
2361
|
-
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
2362
|
-
var PromiseConstructor = NativePromise;
|
|
2363
|
-
var PromisePrototype = NativePromisePrototype;
|
|
2364
|
-
var TypeError$1 = global$1.TypeError;
|
|
2365
|
-
var document = global$1.document;
|
|
2366
|
-
var process = global$1.process;
|
|
2367
|
-
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
2368
|
-
var newGenericPromiseCapability = newPromiseCapability;
|
|
2369
|
-
|
|
2370
|
-
var DISPATCH_EVENT = !!(document && document.createEvent && global$1.dispatchEvent);
|
|
2371
|
-
var NATIVE_REJECTION_EVENT = isCallable(global$1.PromiseRejectionEvent);
|
|
2372
|
-
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2373
|
-
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2374
|
-
var PENDING = 0;
|
|
2375
|
-
var FULFILLED = 1;
|
|
2376
|
-
var REJECTED = 2;
|
|
2377
|
-
var HANDLED = 1;
|
|
2378
|
-
var UNHANDLED = 2;
|
|
2379
|
-
var SUBCLASSING = false;
|
|
2380
|
-
|
|
2381
|
-
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
2382
|
-
|
|
2383
|
-
var FORCED = isForced(PROMISE, function () {
|
|
2384
|
-
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
2385
|
-
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
2386
|
-
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
2387
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
2388
|
-
// We can't detect it synchronously, so just check versions
|
|
2389
|
-
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
2390
|
-
// We can't use @@species feature detection in V8 since it causes
|
|
2391
|
-
// deoptimization and performance degradation
|
|
2392
|
-
// https://github.com/zloirock/core-js/issues/679
|
|
2393
|
-
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
2394
|
-
// Detect correctness of subclassing with @@species support
|
|
2395
|
-
var promise = new PromiseConstructor(function (resolve) { resolve(1); });
|
|
2396
|
-
var FakePromise = function (exec) {
|
|
2397
|
-
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
2398
|
-
};
|
|
2399
|
-
var constructor = promise.constructor = {};
|
|
2400
|
-
constructor[SPECIES] = FakePromise;
|
|
2401
|
-
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
2402
|
-
if (!SUBCLASSING) return true;
|
|
2403
|
-
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
2404
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
2405
|
-
});
|
|
2406
|
-
|
|
2407
|
-
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
2408
|
-
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
2409
|
-
});
|
|
2410
|
-
|
|
2411
|
-
// helpers
|
|
2412
|
-
var isThenable = function (it) {
|
|
2413
|
-
var then;
|
|
2414
|
-
return isObject(it) && isCallable(then = it.then) ? then : false;
|
|
2415
|
-
};
|
|
2416
|
-
|
|
2417
|
-
var callReaction = function (reaction, state) {
|
|
2418
|
-
var value = state.value;
|
|
2419
|
-
var ok = state.state == FULFILLED;
|
|
2420
|
-
var handler = ok ? reaction.ok : reaction.fail;
|
|
2421
|
-
var resolve = reaction.resolve;
|
|
2422
|
-
var reject = reaction.reject;
|
|
2423
|
-
var domain = reaction.domain;
|
|
2424
|
-
var result, then, exited;
|
|
2425
|
-
try {
|
|
2426
|
-
if (handler) {
|
|
2427
|
-
if (!ok) {
|
|
2428
|
-
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
2429
|
-
state.rejection = HANDLED;
|
|
2430
|
-
}
|
|
2431
|
-
if (handler === true) result = value;
|
|
2432
|
-
else {
|
|
2433
|
-
if (domain) domain.enter();
|
|
2434
|
-
result = handler(value); // can throw
|
|
2435
|
-
if (domain) {
|
|
2436
|
-
domain.exit();
|
|
2437
|
-
exited = true;
|
|
2438
|
-
}
|
|
2439
|
-
}
|
|
2440
|
-
if (result === reaction.promise) {
|
|
2441
|
-
reject(TypeError$1('Promise-chain cycle'));
|
|
2442
|
-
} else if (then = isThenable(result)) {
|
|
2443
|
-
call(then, result, resolve, reject);
|
|
2444
|
-
} else resolve(result);
|
|
2445
|
-
} else reject(value);
|
|
2446
|
-
} catch (error) {
|
|
2447
|
-
if (domain && !exited) domain.exit();
|
|
2448
|
-
reject(error);
|
|
2449
|
-
}
|
|
2450
|
-
};
|
|
2451
|
-
|
|
2452
|
-
var notify = function (state, isReject) {
|
|
2453
|
-
if (state.notified) return;
|
|
2454
|
-
state.notified = true;
|
|
2455
|
-
microtask(function () {
|
|
2456
|
-
var reactions = state.reactions;
|
|
2457
|
-
var reaction;
|
|
2458
|
-
while (reaction = reactions.get()) {
|
|
2459
|
-
callReaction(reaction, state);
|
|
2460
|
-
}
|
|
2461
|
-
state.notified = false;
|
|
2462
|
-
if (isReject && !state.rejection) onUnhandled(state);
|
|
2463
|
-
});
|
|
2464
|
-
};
|
|
2465
|
-
|
|
2466
|
-
var dispatchEvent = function (name, promise, reason) {
|
|
2467
|
-
var event, handler;
|
|
2468
|
-
if (DISPATCH_EVENT) {
|
|
2469
|
-
event = document.createEvent('Event');
|
|
2470
|
-
event.promise = promise;
|
|
2471
|
-
event.reason = reason;
|
|
2472
|
-
event.initEvent(name, false, true);
|
|
2473
|
-
global$1.dispatchEvent(event);
|
|
2474
|
-
} else event = { promise: promise, reason: reason };
|
|
2475
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
|
|
2476
|
-
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2477
|
-
};
|
|
2478
|
-
|
|
2479
|
-
var onUnhandled = function (state) {
|
|
2480
|
-
call(task, global$1, function () {
|
|
2481
|
-
var promise = state.facade;
|
|
2482
|
-
var value = state.value;
|
|
2483
|
-
var IS_UNHANDLED = isUnhandled(state);
|
|
2484
|
-
var result;
|
|
2485
|
-
if (IS_UNHANDLED) {
|
|
2486
|
-
result = perform(function () {
|
|
2487
|
-
if (IS_NODE) {
|
|
2488
|
-
process.emit('unhandledRejection', value, promise);
|
|
2489
|
-
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
2490
|
-
});
|
|
2491
|
-
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
2492
|
-
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
2493
|
-
if (result.error) throw result.value;
|
|
2494
|
-
}
|
|
2495
|
-
});
|
|
2496
|
-
};
|
|
2497
|
-
|
|
2498
|
-
var isUnhandled = function (state) {
|
|
2499
|
-
return state.rejection !== HANDLED && !state.parent;
|
|
2500
|
-
};
|
|
2501
|
-
|
|
2502
|
-
var onHandleUnhandled = function (state) {
|
|
2503
|
-
call(task, global$1, function () {
|
|
2504
|
-
var promise = state.facade;
|
|
2505
|
-
if (IS_NODE) {
|
|
2506
|
-
process.emit('rejectionHandled', promise);
|
|
2507
|
-
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
2508
|
-
});
|
|
2509
|
-
};
|
|
2510
|
-
|
|
2511
|
-
var bind = function (fn, state, unwrap) {
|
|
2512
|
-
return function (value) {
|
|
2513
|
-
fn(state, value, unwrap);
|
|
2514
|
-
};
|
|
2515
|
-
};
|
|
2516
|
-
|
|
2517
|
-
var internalReject = function (state, value, unwrap) {
|
|
2518
|
-
if (state.done) return;
|
|
2519
|
-
state.done = true;
|
|
2520
|
-
if (unwrap) state = unwrap;
|
|
2521
|
-
state.value = value;
|
|
2522
|
-
state.state = REJECTED;
|
|
2523
|
-
notify(state, true);
|
|
2524
|
-
};
|
|
2525
|
-
|
|
2526
|
-
var internalResolve = function (state, value, unwrap) {
|
|
2527
|
-
if (state.done) return;
|
|
2528
|
-
state.done = true;
|
|
2529
|
-
if (unwrap) state = unwrap;
|
|
2530
|
-
try {
|
|
2531
|
-
if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
|
|
2532
|
-
var then = isThenable(value);
|
|
2533
|
-
if (then) {
|
|
2534
|
-
microtask(function () {
|
|
2535
|
-
var wrapper = { done: false };
|
|
2536
|
-
try {
|
|
2537
|
-
call(then, value,
|
|
2538
|
-
bind(internalResolve, wrapper, state),
|
|
2539
|
-
bind(internalReject, wrapper, state)
|
|
2540
|
-
);
|
|
2541
|
-
} catch (error) {
|
|
2542
|
-
internalReject(wrapper, error, state);
|
|
2543
|
-
}
|
|
2544
|
-
});
|
|
2545
|
-
} else {
|
|
2546
|
-
state.value = value;
|
|
2547
|
-
state.state = FULFILLED;
|
|
2548
|
-
notify(state, false);
|
|
2549
|
-
}
|
|
2550
|
-
} catch (error) {
|
|
2551
|
-
internalReject({ done: false }, error, state);
|
|
2552
|
-
}
|
|
2553
|
-
};
|
|
2554
|
-
|
|
2555
|
-
// constructor polyfill
|
|
2556
|
-
if (FORCED) {
|
|
2557
|
-
// 25.4.3.1 Promise(executor)
|
|
2558
|
-
PromiseConstructor = function Promise(executor) {
|
|
2559
|
-
anInstance(this, PromisePrototype);
|
|
2560
|
-
aCallable(executor);
|
|
2561
|
-
call(Internal, this);
|
|
2562
|
-
var state = getInternalState(this);
|
|
2563
|
-
try {
|
|
2564
|
-
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
2565
|
-
} catch (error) {
|
|
2566
|
-
internalReject(state, error);
|
|
2567
|
-
}
|
|
2568
|
-
};
|
|
2569
|
-
PromisePrototype = PromiseConstructor.prototype;
|
|
2570
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2571
|
-
Internal = function Promise(executor) {
|
|
2572
|
-
setInternalState(this, {
|
|
2573
|
-
type: PROMISE,
|
|
2574
|
-
done: false,
|
|
2575
|
-
notified: false,
|
|
2576
|
-
parent: false,
|
|
2577
|
-
reactions: new Queue(),
|
|
2578
|
-
rejection: false,
|
|
2579
|
-
state: PENDING,
|
|
2580
|
-
value: undefined
|
|
2581
|
-
});
|
|
2582
|
-
};
|
|
2583
|
-
Internal.prototype = redefineAll(PromisePrototype, {
|
|
2584
|
-
// `Promise.prototype.then` method
|
|
2585
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
2586
|
-
// eslint-disable-next-line unicorn/no-thenable -- safe
|
|
2587
|
-
then: function then(onFulfilled, onRejected) {
|
|
2588
|
-
var state = getInternalPromiseState(this);
|
|
2589
|
-
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
2590
|
-
state.parent = true;
|
|
2591
|
-
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
|
2592
|
-
reaction.fail = isCallable(onRejected) && onRejected;
|
|
2593
|
-
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
2594
|
-
if (state.state == PENDING) state.reactions.add(reaction);
|
|
2595
|
-
else microtask(function () {
|
|
2596
|
-
callReaction(reaction, state);
|
|
2597
|
-
});
|
|
2598
|
-
return reaction.promise;
|
|
2599
|
-
},
|
|
2600
|
-
// `Promise.prototype.catch` method
|
|
2601
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2602
|
-
'catch': function (onRejected) {
|
|
2603
|
-
return this.then(undefined, onRejected);
|
|
2604
|
-
}
|
|
2605
|
-
});
|
|
2606
|
-
OwnPromiseCapability = function () {
|
|
2607
|
-
var promise = new Internal();
|
|
2608
|
-
var state = getInternalState(promise);
|
|
2609
|
-
this.promise = promise;
|
|
2610
|
-
this.resolve = bind(internalResolve, state);
|
|
2611
|
-
this.reject = bind(internalReject, state);
|
|
2612
|
-
};
|
|
2613
|
-
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
2614
|
-
return C === PromiseConstructor || C === PromiseWrapper
|
|
2615
|
-
? new OwnPromiseCapability(C)
|
|
2616
|
-
: newGenericPromiseCapability(C);
|
|
2617
|
-
};
|
|
2618
|
-
|
|
2619
|
-
if (isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
2620
|
-
nativeThen = NativePromisePrototype.then;
|
|
2621
|
-
|
|
2622
|
-
if (!SUBCLASSING) {
|
|
2623
|
-
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
2624
|
-
redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
2625
|
-
var that = this;
|
|
2626
|
-
return new PromiseConstructor(function (resolve, reject) {
|
|
2627
|
-
call(nativeThen, that, resolve, reject);
|
|
2628
|
-
}).then(onFulfilled, onRejected);
|
|
2629
|
-
// https://github.com/zloirock/core-js/issues/640
|
|
2630
|
-
}, { unsafe: true });
|
|
2631
|
-
|
|
2632
|
-
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
2633
|
-
redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
// make `.constructor === Promise` work for native promise-based APIs
|
|
2637
|
-
try {
|
|
2638
|
-
delete NativePromisePrototype.constructor;
|
|
2639
|
-
} catch (error) { /* empty */ }
|
|
2640
|
-
|
|
2641
|
-
// make `instanceof Promise` work for native promise-based APIs
|
|
2642
|
-
if (setPrototypeOf) {
|
|
2643
|
-
setPrototypeOf(NativePromisePrototype, PromisePrototype);
|
|
2644
|
-
}
|
|
2645
|
-
}
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
$({ global: true, wrap: true, forced: FORCED }, {
|
|
2649
|
-
Promise: PromiseConstructor
|
|
2650
|
-
});
|
|
2651
|
-
|
|
2652
|
-
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
2653
|
-
setSpecies(PROMISE);
|
|
2654
|
-
|
|
2655
|
-
PromiseWrapper = getBuiltIn(PROMISE);
|
|
2656
|
-
|
|
2657
|
-
// statics
|
|
2658
|
-
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
2659
|
-
// `Promise.reject` method
|
|
2660
|
-
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2661
|
-
reject: function reject(r) {
|
|
2662
|
-
var capability = newPromiseCapability(this);
|
|
2663
|
-
call(capability.reject, undefined, r);
|
|
2664
|
-
return capability.promise;
|
|
2665
|
-
}
|
|
2666
|
-
});
|
|
2667
|
-
|
|
2668
|
-
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
2669
|
-
// `Promise.resolve` method
|
|
2670
|
-
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2671
|
-
resolve: function resolve(x) {
|
|
2672
|
-
return promiseResolve(this, x);
|
|
2673
|
-
}
|
|
2674
|
-
});
|
|
2675
|
-
|
|
2676
|
-
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
2677
|
-
// `Promise.all` method
|
|
2678
|
-
// https://tc39.es/ecma262/#sec-promise.all
|
|
2679
|
-
all: function all(iterable) {
|
|
2680
|
-
var C = this;
|
|
2681
|
-
var capability = newPromiseCapability(C);
|
|
2682
|
-
var resolve = capability.resolve;
|
|
2683
|
-
var reject = capability.reject;
|
|
2684
|
-
var result = perform(function () {
|
|
2685
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
2686
|
-
var values = [];
|
|
2687
|
-
var counter = 0;
|
|
2688
|
-
var remaining = 1;
|
|
2689
|
-
iterate(iterable, function (promise) {
|
|
2690
|
-
var index = counter++;
|
|
2691
|
-
var alreadyCalled = false;
|
|
2692
|
-
remaining++;
|
|
2693
|
-
call($promiseResolve, C, promise).then(function (value) {
|
|
2694
|
-
if (alreadyCalled) return;
|
|
2695
|
-
alreadyCalled = true;
|
|
2696
|
-
values[index] = value;
|
|
2697
|
-
--remaining || resolve(values);
|
|
2698
|
-
}, reject);
|
|
2699
|
-
});
|
|
2700
|
-
--remaining || resolve(values);
|
|
2701
|
-
});
|
|
2702
|
-
if (result.error) reject(result.value);
|
|
2703
|
-
return capability.promise;
|
|
2704
|
-
},
|
|
2705
|
-
// `Promise.race` method
|
|
2706
|
-
// https://tc39.es/ecma262/#sec-promise.race
|
|
2707
|
-
race: function race(iterable) {
|
|
2708
|
-
var C = this;
|
|
2709
|
-
var capability = newPromiseCapability(C);
|
|
2710
|
-
var reject = capability.reject;
|
|
2711
|
-
var result = perform(function () {
|
|
2712
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
2713
|
-
iterate(iterable, function (promise) {
|
|
2714
|
-
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2715
|
-
});
|
|
2716
|
-
});
|
|
2717
|
-
if (result.error) reject(result.value);
|
|
2718
|
-
return capability.promise;
|
|
2719
|
-
}
|
|
2720
|
-
});
|
|
2721
|
-
|
|
2722
1796
|
var RadioGroup = function RadioGroup(_a) {
|
|
2723
1797
|
var description = _a.description,
|
|
2724
1798
|
title = _a.title,
|
|
2725
1799
|
validator = _a.validator,
|
|
1800
|
+
onChangeRadio = _a.onChangeRadio,
|
|
2726
1801
|
children = _a.children;
|
|
1802
|
+
|
|
1803
|
+
var _b = React__default["default"].useState(),
|
|
1804
|
+
checked = _b[0],
|
|
1805
|
+
setChecked = _b[1];
|
|
1806
|
+
|
|
2727
1807
|
var validatorClassName = extract.validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
|
|
1808
|
+
|
|
1809
|
+
var onChange = function onChange(event) {
|
|
1810
|
+
setChecked(event.target.value);
|
|
1811
|
+
onChangeRadio && onChangeRadio(event.target.value);
|
|
1812
|
+
};
|
|
1813
|
+
|
|
2728
1814
|
return jsxRuntime.jsxs("div", __assign({
|
|
2729
1815
|
className: "form-group"
|
|
2730
1816
|
}, {
|
|
@@ -2737,10 +1823,12 @@
|
|
|
2737
1823
|
className: "form-info"
|
|
2738
1824
|
}, {
|
|
2739
1825
|
children: description
|
|
2740
|
-
}), void 0), React__default["default"].Children.
|
|
2741
|
-
return /*#__PURE__*/React__default["default"].isValidElement(
|
|
2742
|
-
validator: validatorClassName
|
|
2743
|
-
|
|
1826
|
+
}), void 0), React__default["default"].Children.map(children, function (Child) {
|
|
1827
|
+
return /*#__PURE__*/React__default["default"].isValidElement(Child) ? /*#__PURE__*/React__default["default"].cloneElement(Child, {
|
|
1828
|
+
validator: validatorClassName,
|
|
1829
|
+
onChange: onChange,
|
|
1830
|
+
checked: checked === Child.props.value
|
|
1831
|
+
}) : Child;
|
|
2744
1832
|
})]
|
|
2745
1833
|
}), void 0), (validator === null || validator === void 0 ? void 0 : validator.message) && jsxRuntime.jsx("span", __assign({
|
|
2746
1834
|
className: "form-info"
|
|
@@ -2912,6 +2000,7 @@
|
|
|
2912
2000
|
exports.EmailInput = EmailInput;
|
|
2913
2001
|
exports.Flexbox = Flexbox;
|
|
2914
2002
|
exports.Form = Form;
|
|
2003
|
+
exports.FormItems = FormItems;
|
|
2915
2004
|
exports.Group = Group;
|
|
2916
2005
|
exports.Link = Link;
|
|
2917
2006
|
exports.List = List;
|
|
@@ -2920,6 +2009,7 @@
|
|
|
2920
2009
|
exports.NumberInput = NumberInput;
|
|
2921
2010
|
exports.RadioButton = RadioButton;
|
|
2922
2011
|
exports.RadioGroup = RadioGroup;
|
|
2012
|
+
exports.RenderInput = RenderInput;
|
|
2923
2013
|
exports.Text = Text;
|
|
2924
2014
|
exports.TextInput = TextInput;
|
|
2925
2015
|
|