@vonage/vivid 3.0.0-next.8 → 3.0.0-next.80
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/README.md +141 -4
- package/accordion/index.js +2 -4
- package/accordion-item/index.js +26 -20
- package/action-group/index.js +47 -0
- package/avatar/index.js +70 -0
- package/badge/index.js +17 -21
- package/banner/index.js +23 -87
- package/breadcrumb/index.js +21 -18
- package/breadcrumb-item/index.js +19 -12
- package/button/index.js +19 -757
- package/calendar/index.js +67 -25
- package/calendar-event/index.js +115 -0
- package/card/index.js +132 -0
- package/checkbox/index.js +184 -0
- package/dialog/index.js +281 -0
- package/divider/index.js +3 -0
- package/elevation/index.js +3 -31
- package/fab/index.js +105 -0
- package/focus/index.js +18 -3
- package/header/index.js +66 -0
- package/icon/index.js +9 -5
- package/index.js +53 -20
- package/layout/index.js +4 -6
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/accordion-item/index.d.ts +2 -1
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
- package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +5 -5
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +1 -1
- package/lib/banner/banner.template.d.ts +0 -2
- package/lib/banner/index.d.ts +1 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/button/button.d.ts +6 -5
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +3 -1
- package/lib/calendar/index.d.ts +0 -1
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +27 -10
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +11 -6
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +4 -3
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- package/lib/menu/index.d.ts +12 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/index.d.ts +3 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/index.d.ts +2 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/index.d.ts +4 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/index.d.ts +4 -0
- package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/{text → note}/index.d.ts +1 -1
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/number-field/index.d.ts +4 -0
- package/lib/number-field/number-field.d.ts +16 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/popup.d.ts +2 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +2 -1
- package/lib/radio/index.d.ts +3 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +1 -1
- package/lib/side-drawer/side-drawer.d.ts +3 -2
- package/lib/text-anchor/text-anchor.d.ts +1 -1
- package/lib/text-area/index.d.ts +3 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +16 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/menu/index.js +381 -0
- package/menu-item/index.js +19 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +88 -0
- package/nav-item/index.js +45 -0
- package/note/index.js +66 -0
- package/number-field/index.js +529 -0
- package/package.json +51 -7
- package/popup/index.js +23 -2061
- package/progress/index.js +35 -28
- package/progress-ring/index.js +9 -5
- package/radio/index.js +174 -0
- package/shared/anchor.js +10 -2
- package/shared/aria-global.js +2 -86
- package/shared/base-progress.js +5 -0
- package/shared/breadcrumb-item.js +1 -1
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +26 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +7 -6
- package/shared/export.js +995 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +299 -0
- package/shared/icon.js +533 -520
- package/shared/index.js +71 -55
- package/shared/index2.js +110 -13
- package/shared/index3.js +35 -0
- package/shared/index4.js +86 -0
- package/shared/index5.js +2100 -0
- package/shared/index6.js +371 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +90 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements.d.ts +22 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/ref.js +41 -0
- package/shared/regexp-flags.js +21 -0
- package/shared/start-end.js +50 -0
- package/shared/text-anchor.js +2 -11
- package/shared/text-anchor.template.js +5 -2
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +78 -1083
- package/side-drawer/index.js +44 -23
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +9 -12
- package/styles/tokens/theme-dark.css +211 -0
- package/styles/tokens/theme-light.css +211 -0
- package/text-anchor/index.js +9 -1
- package/text-area/index.js +304 -0
- package/text-field/index.js +152 -0
- package/tooltip/index.js +23 -16
- package/lib/text/text.d.ts +0 -10
- package/shared/style-inject.es.js +0 -28
- package/sidenav-item/index.js +0 -38
- package/styles/themes/dark.css +0 -205
- package/styles/themes/light.css +0 -205
- package/text/index.js +0 -45
|
@@ -1,653 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return it && it.Math == Math && it;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
8
|
-
var global$o =
|
|
9
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
10
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
11
|
-
check(typeof window == 'object' && window) ||
|
|
12
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
13
|
-
check(typeof self == 'object' && self) ||
|
|
14
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
15
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
16
|
-
(function () { return this; })() || Function('return this')();
|
|
17
|
-
|
|
18
|
-
var fails$9 = function (exec) {
|
|
19
|
-
try {
|
|
20
|
-
return !!exec();
|
|
21
|
-
} catch (error) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var fails$8 = fails$9;
|
|
27
|
-
|
|
28
|
-
var functionBindNative = !fails$8(function () {
|
|
29
|
-
var test = (function () { /* empty */ }).bind();
|
|
30
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
31
|
-
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
35
|
-
|
|
36
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
37
|
-
var bind = FunctionPrototype$1.bind;
|
|
38
|
-
var call$5 = FunctionPrototype$1.call;
|
|
39
|
-
var uncurryThis$a = NATIVE_BIND$1 && bind.bind(call$5, call$5);
|
|
40
|
-
|
|
41
|
-
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
|
|
42
|
-
return fn && uncurryThis$a(fn);
|
|
43
|
-
} : function (fn) {
|
|
44
|
-
return fn && function () {
|
|
45
|
-
return call$5.apply(fn, arguments);
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
50
|
-
|
|
51
|
-
var toString$1 = uncurryThis$9({}.toString);
|
|
52
|
-
var stringSlice = uncurryThis$9(''.slice);
|
|
53
|
-
|
|
54
|
-
var classofRaw = function (it) {
|
|
55
|
-
return stringSlice(toString$1(it), 8, -1);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var global$n = global$o;
|
|
59
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
60
|
-
var fails$7 = fails$9;
|
|
61
|
-
var classof = classofRaw;
|
|
62
|
-
|
|
63
|
-
var Object$4 = global$n.Object;
|
|
64
|
-
var split = uncurryThis$8(''.split);
|
|
65
|
-
|
|
66
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
67
|
-
var indexedObject = fails$7(function () {
|
|
68
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
69
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
70
|
-
return !Object$4('z').propertyIsEnumerable(0);
|
|
71
|
-
}) ? function (it) {
|
|
72
|
-
return classof(it) == 'String' ? split(it, '') : Object$4(it);
|
|
73
|
-
} : Object$4;
|
|
74
|
-
|
|
75
|
-
var global$m = global$o;
|
|
76
|
-
|
|
77
|
-
var TypeError$7 = global$m.TypeError;
|
|
78
|
-
|
|
79
|
-
// `RequireObjectCoercible` abstract operation
|
|
80
|
-
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
81
|
-
var requireObjectCoercible$2 = function (it) {
|
|
82
|
-
if (it == undefined) throw TypeError$7("Can't call method on " + it);
|
|
83
|
-
return it;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
87
|
-
var IndexedObject = indexedObject;
|
|
88
|
-
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
89
|
-
|
|
90
|
-
var toIndexedObject$5 = function (it) {
|
|
91
|
-
return IndexedObject(requireObjectCoercible$1(it));
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
var shared$3 = {exports: {}};
|
|
95
|
-
|
|
96
|
-
var global$l = global$o;
|
|
97
|
-
|
|
98
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
99
|
-
var defineProperty$2 = Object.defineProperty;
|
|
100
|
-
|
|
101
|
-
var setGlobal$3 = function (key, value) {
|
|
102
|
-
try {
|
|
103
|
-
defineProperty$2(global$l, key, { value: value, configurable: true, writable: true });
|
|
104
|
-
} catch (error) {
|
|
105
|
-
global$l[key] = value;
|
|
106
|
-
} return value;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
var global$k = global$o;
|
|
110
|
-
var setGlobal$2 = setGlobal$3;
|
|
111
|
-
|
|
112
|
-
var SHARED = '__core-js_shared__';
|
|
113
|
-
var store$3 = global$k[SHARED] || setGlobal$2(SHARED, {});
|
|
114
|
-
|
|
115
|
-
var sharedStore = store$3;
|
|
116
|
-
|
|
117
|
-
var store$2 = sharedStore;
|
|
118
|
-
|
|
119
|
-
(shared$3.exports = function (key, value) {
|
|
120
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
121
|
-
})('versions', []).push({
|
|
122
|
-
version: '3.21.1',
|
|
123
|
-
mode: 'global',
|
|
124
|
-
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
125
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
|
126
|
-
source: 'https://github.com/zloirock/core-js'
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
var global$j = global$o;
|
|
130
|
-
var requireObjectCoercible = requireObjectCoercible$2;
|
|
131
|
-
|
|
132
|
-
var Object$3 = global$j.Object;
|
|
133
|
-
|
|
134
|
-
// `ToObject` abstract operation
|
|
135
|
-
// https://tc39.es/ecma262/#sec-toobject
|
|
136
|
-
var toObject$2 = function (argument) {
|
|
137
|
-
return Object$3(requireObjectCoercible(argument));
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
141
|
-
var toObject$1 = toObject$2;
|
|
142
|
-
|
|
143
|
-
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
144
|
-
|
|
145
|
-
// `HasOwnProperty` abstract operation
|
|
146
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
147
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
148
|
-
return hasOwnProperty(toObject$1(it), key);
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
152
|
-
|
|
153
|
-
var id = 0;
|
|
154
|
-
var postfix = Math.random();
|
|
155
|
-
var toString = uncurryThis$6(1.0.toString);
|
|
156
|
-
|
|
157
|
-
var uid$2 = function (key) {
|
|
158
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
// `IsCallable` abstract operation
|
|
162
|
-
// https://tc39.es/ecma262/#sec-iscallable
|
|
163
|
-
var isCallable$d = function (argument) {
|
|
164
|
-
return typeof argument == 'function';
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
var global$i = global$o;
|
|
168
|
-
var isCallable$c = isCallable$d;
|
|
169
|
-
|
|
170
|
-
var aFunction = function (argument) {
|
|
171
|
-
return isCallable$c(argument) ? argument : undefined;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
var getBuiltIn$4 = function (namespace, method) {
|
|
175
|
-
return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
var getBuiltIn$3 = getBuiltIn$4;
|
|
179
|
-
|
|
180
|
-
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
181
|
-
|
|
182
|
-
var global$h = global$o;
|
|
183
|
-
var userAgent = engineUserAgent;
|
|
184
|
-
|
|
185
|
-
var process = global$h.process;
|
|
186
|
-
var Deno = global$h.Deno;
|
|
187
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
188
|
-
var v8 = versions && versions.v8;
|
|
189
|
-
var match, version;
|
|
190
|
-
|
|
191
|
-
if (v8) {
|
|
192
|
-
match = v8.split('.');
|
|
193
|
-
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
194
|
-
// but their correct versions are not interesting for us
|
|
195
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
199
|
-
// so check `userAgent` even if `.v8` exists, but 0
|
|
200
|
-
if (!version && userAgent) {
|
|
201
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
202
|
-
if (!match || match[1] >= 74) {
|
|
203
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
204
|
-
if (match) version = +match[1];
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
var engineV8Version = version;
|
|
209
|
-
|
|
210
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
211
|
-
|
|
212
|
-
var V8_VERSION = engineV8Version;
|
|
213
|
-
var fails$6 = fails$9;
|
|
214
|
-
|
|
215
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
216
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
|
|
217
|
-
var symbol = Symbol();
|
|
218
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
219
|
-
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
220
|
-
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
221
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
222
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
226
|
-
|
|
227
|
-
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
228
|
-
|
|
229
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
230
|
-
&& !Symbol.sham
|
|
231
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
232
|
-
|
|
233
|
-
var global$g = global$o;
|
|
234
|
-
var shared$2 = shared$3.exports;
|
|
235
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
236
|
-
var uid$1 = uid$2;
|
|
237
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
238
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
239
|
-
|
|
240
|
-
var WellKnownSymbolsStore = shared$2('wks');
|
|
241
|
-
var Symbol$1 = global$g.Symbol;
|
|
242
|
-
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
243
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
244
|
-
|
|
245
|
-
var wellKnownSymbol$6 = function (name) {
|
|
246
|
-
if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
247
|
-
var description = 'Symbol.' + name;
|
|
248
|
-
if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
|
|
249
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
250
|
-
} else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
|
|
251
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
252
|
-
} else {
|
|
253
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
254
|
-
}
|
|
255
|
-
} return WellKnownSymbolsStore[name];
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
var isCallable$b = isCallable$d;
|
|
259
|
-
|
|
260
|
-
var isObject$5 = function (it) {
|
|
261
|
-
return typeof it == 'object' ? it !== null : isCallable$b(it);
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
var global$f = global$o;
|
|
265
|
-
var isObject$4 = isObject$5;
|
|
266
|
-
|
|
267
|
-
var String$3 = global$f.String;
|
|
268
|
-
var TypeError$6 = global$f.TypeError;
|
|
269
|
-
|
|
270
|
-
// `Assert: Type(argument) is Object`
|
|
271
|
-
var anObject$5 = function (argument) {
|
|
272
|
-
if (isObject$4(argument)) return argument;
|
|
273
|
-
throw TypeError$6(String$3(argument) + ' is not an object');
|
|
274
|
-
};
|
|
1
|
+
import { d as descriptors, E as v8PrototypeDefineBug, o as objectDefineProperty, j as anObject$2, F as toIndexedObject$2, G as hiddenKeys$1, H as sharedKey$2, I as enumBugKeys$1, p as documentCreateElement$2, w as wellKnownSymbol$4, e as fails$2, q as hasOwnProperty_1, i as isCallable$3, J as toObject$1, y as isObject$1, v as defineBuiltIn$2, K as createPropertyDescriptor$1, _ as _export, L as createNonEnumerableProperty$2, x as functionCall, D as functionName, z as internalState, g as global$1 } from './export.js';
|
|
2
|
+
import { o as objectKeys$1 } from './object-keys.js';
|
|
3
|
+
import { h as html$1, s as setToStringTag$2, i as iterators, o as objectSetPrototypeOf } from './iterators.js';
|
|
275
4
|
|
|
276
5
|
var objectDefineProperties = {};
|
|
277
6
|
|
|
278
|
-
var
|
|
279
|
-
|
|
280
|
-
// Detect IE8's incomplete defineProperty implementation
|
|
281
|
-
var descriptors = !fails$5(function () {
|
|
282
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
283
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
284
|
-
});
|
|
285
|
-
|
|
286
|
-
var DESCRIPTORS$7 = descriptors;
|
|
287
|
-
var fails$4 = fails$9;
|
|
288
|
-
|
|
289
|
-
// V8 ~ Chrome 36-
|
|
290
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
291
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$4(function () {
|
|
292
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
293
|
-
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
294
|
-
value: 42,
|
|
295
|
-
writable: false
|
|
296
|
-
}).prototype != 42;
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
var objectDefineProperty = {};
|
|
300
|
-
|
|
301
|
-
var global$e = global$o;
|
|
302
|
-
var isObject$3 = isObject$5;
|
|
303
|
-
|
|
304
|
-
var document$1 = global$e.document;
|
|
305
|
-
// typeof document.createElement is 'object' in old IE
|
|
306
|
-
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
307
|
-
|
|
308
|
-
var documentCreateElement$2 = function (it) {
|
|
309
|
-
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
var DESCRIPTORS$6 = descriptors;
|
|
313
|
-
var fails$3 = fails$9;
|
|
314
|
-
var createElement = documentCreateElement$2;
|
|
315
|
-
|
|
316
|
-
// Thanks to IE8 for its funny defineProperty
|
|
317
|
-
var ie8DomDefine = !DESCRIPTORS$6 && !fails$3(function () {
|
|
318
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
319
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
320
|
-
get: function () { return 7; }
|
|
321
|
-
}).a != 7;
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
var NATIVE_BIND = functionBindNative;
|
|
325
|
-
|
|
326
|
-
var call$4 = Function.prototype.call;
|
|
327
|
-
|
|
328
|
-
var functionCall = NATIVE_BIND ? call$4.bind(call$4) : function () {
|
|
329
|
-
return call$4.apply(call$4, arguments);
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
333
|
-
|
|
334
|
-
var objectIsPrototypeOf = uncurryThis$5({}.isPrototypeOf);
|
|
335
|
-
|
|
336
|
-
var global$d = global$o;
|
|
337
|
-
var getBuiltIn$2 = getBuiltIn$4;
|
|
338
|
-
var isCallable$a = isCallable$d;
|
|
339
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
340
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
341
|
-
|
|
342
|
-
var Object$2 = global$d.Object;
|
|
343
|
-
|
|
344
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
345
|
-
return typeof it == 'symbol';
|
|
346
|
-
} : function (it) {
|
|
347
|
-
var $Symbol = getBuiltIn$2('Symbol');
|
|
348
|
-
return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, Object$2(it));
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
var global$c = global$o;
|
|
352
|
-
|
|
353
|
-
var String$2 = global$c.String;
|
|
354
|
-
|
|
355
|
-
var tryToString$1 = function (argument) {
|
|
356
|
-
try {
|
|
357
|
-
return String$2(argument);
|
|
358
|
-
} catch (error) {
|
|
359
|
-
return 'Object';
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
var global$b = global$o;
|
|
364
|
-
var isCallable$9 = isCallable$d;
|
|
365
|
-
var tryToString = tryToString$1;
|
|
366
|
-
|
|
367
|
-
var TypeError$5 = global$b.TypeError;
|
|
368
|
-
|
|
369
|
-
// `Assert: IsCallable(argument) is true`
|
|
370
|
-
var aCallable$1 = function (argument) {
|
|
371
|
-
if (isCallable$9(argument)) return argument;
|
|
372
|
-
throw TypeError$5(tryToString(argument) + ' is not a function');
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
var aCallable = aCallable$1;
|
|
376
|
-
|
|
377
|
-
// `GetMethod` abstract operation
|
|
378
|
-
// https://tc39.es/ecma262/#sec-getmethod
|
|
379
|
-
var getMethod$1 = function (V, P) {
|
|
380
|
-
var func = V[P];
|
|
381
|
-
return func == null ? undefined : aCallable(func);
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
var global$a = global$o;
|
|
385
|
-
var call$3 = functionCall;
|
|
386
|
-
var isCallable$8 = isCallable$d;
|
|
387
|
-
var isObject$2 = isObject$5;
|
|
388
|
-
|
|
389
|
-
var TypeError$4 = global$a.TypeError;
|
|
390
|
-
|
|
391
|
-
// `OrdinaryToPrimitive` abstract operation
|
|
392
|
-
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
393
|
-
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
394
|
-
var fn, val;
|
|
395
|
-
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$2(val = call$3(fn, input))) return val;
|
|
396
|
-
if (isCallable$8(fn = input.valueOf) && !isObject$2(val = call$3(fn, input))) return val;
|
|
397
|
-
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$2(val = call$3(fn, input))) return val;
|
|
398
|
-
throw TypeError$4("Can't convert object to primitive value");
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
var global$9 = global$o;
|
|
402
|
-
var call$2 = functionCall;
|
|
403
|
-
var isObject$1 = isObject$5;
|
|
404
|
-
var isSymbol$1 = isSymbol$2;
|
|
405
|
-
var getMethod = getMethod$1;
|
|
406
|
-
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
407
|
-
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
|
408
|
-
|
|
409
|
-
var TypeError$3 = global$9.TypeError;
|
|
410
|
-
var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
|
411
|
-
|
|
412
|
-
// `ToPrimitive` abstract operation
|
|
413
|
-
// https://tc39.es/ecma262/#sec-toprimitive
|
|
414
|
-
var toPrimitive$1 = function (input, pref) {
|
|
415
|
-
if (!isObject$1(input) || isSymbol$1(input)) return input;
|
|
416
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
417
|
-
var result;
|
|
418
|
-
if (exoticToPrim) {
|
|
419
|
-
if (pref === undefined) pref = 'default';
|
|
420
|
-
result = call$2(exoticToPrim, input, pref);
|
|
421
|
-
if (!isObject$1(result) || isSymbol$1(result)) return result;
|
|
422
|
-
throw TypeError$3("Can't convert object to primitive value");
|
|
423
|
-
}
|
|
424
|
-
if (pref === undefined) pref = 'number';
|
|
425
|
-
return ordinaryToPrimitive(input, pref);
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
var toPrimitive = toPrimitive$1;
|
|
429
|
-
var isSymbol = isSymbol$2;
|
|
430
|
-
|
|
431
|
-
// `ToPropertyKey` abstract operation
|
|
432
|
-
// https://tc39.es/ecma262/#sec-topropertykey
|
|
433
|
-
var toPropertyKey$2 = function (argument) {
|
|
434
|
-
var key = toPrimitive(argument, 'string');
|
|
435
|
-
return isSymbol(key) ? key : key + '';
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
var global$8 = global$o;
|
|
439
|
-
var DESCRIPTORS$5 = descriptors;
|
|
440
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
441
|
-
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
442
|
-
var anObject$4 = anObject$5;
|
|
443
|
-
var toPropertyKey$1 = toPropertyKey$2;
|
|
444
|
-
|
|
445
|
-
var TypeError$2 = global$8.TypeError;
|
|
446
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
447
|
-
var $defineProperty = Object.defineProperty;
|
|
448
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
449
|
-
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
450
|
-
var ENUMERABLE = 'enumerable';
|
|
451
|
-
var CONFIGURABLE$1 = 'configurable';
|
|
452
|
-
var WRITABLE = 'writable';
|
|
453
|
-
|
|
454
|
-
// `Object.defineProperty` method
|
|
455
|
-
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
456
|
-
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
457
|
-
anObject$4(O);
|
|
458
|
-
P = toPropertyKey$1(P);
|
|
459
|
-
anObject$4(Attributes);
|
|
460
|
-
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
461
|
-
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
462
|
-
if (current && current[WRITABLE]) {
|
|
463
|
-
O[P] = Attributes.value;
|
|
464
|
-
Attributes = {
|
|
465
|
-
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
466
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
467
|
-
writable: false
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
} return $defineProperty(O, P, Attributes);
|
|
471
|
-
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
472
|
-
anObject$4(O);
|
|
473
|
-
P = toPropertyKey$1(P);
|
|
474
|
-
anObject$4(Attributes);
|
|
475
|
-
if (IE8_DOM_DEFINE$1) try {
|
|
476
|
-
return $defineProperty(O, P, Attributes);
|
|
477
|
-
} catch (error) { /* empty */ }
|
|
478
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$2('Accessors not supported');
|
|
479
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
480
|
-
return O;
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
var ceil = Math.ceil;
|
|
484
|
-
var floor = Math.floor;
|
|
485
|
-
|
|
486
|
-
// `ToIntegerOrInfinity` abstract operation
|
|
487
|
-
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
488
|
-
var toIntegerOrInfinity$2 = function (argument) {
|
|
489
|
-
var number = +argument;
|
|
490
|
-
// eslint-disable-next-line no-self-compare -- safe
|
|
491
|
-
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
495
|
-
|
|
496
|
-
var max = Math.max;
|
|
497
|
-
var min$1 = Math.min;
|
|
498
|
-
|
|
499
|
-
// Helper for a popular repeating case of the spec:
|
|
500
|
-
// Let integer be ? ToInteger(index).
|
|
501
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
502
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
503
|
-
var integer = toIntegerOrInfinity$1(index);
|
|
504
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
508
|
-
|
|
509
|
-
var min = Math.min;
|
|
510
|
-
|
|
511
|
-
// `ToLength` abstract operation
|
|
512
|
-
// https://tc39.es/ecma262/#sec-tolength
|
|
513
|
-
var toLength$1 = function (argument) {
|
|
514
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
var toLength = toLength$1;
|
|
518
|
-
|
|
519
|
-
// `LengthOfArrayLike` abstract operation
|
|
520
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
521
|
-
var lengthOfArrayLike$1 = function (obj) {
|
|
522
|
-
return toLength(obj.length);
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
526
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
527
|
-
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
528
|
-
|
|
529
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
530
|
-
var createMethod = function (IS_INCLUDES) {
|
|
531
|
-
return function ($this, el, fromIndex) {
|
|
532
|
-
var O = toIndexedObject$4($this);
|
|
533
|
-
var length = lengthOfArrayLike(O);
|
|
534
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
535
|
-
var value;
|
|
536
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
537
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
538
|
-
if (IS_INCLUDES && el != el) while (length > index) {
|
|
539
|
-
value = O[index++];
|
|
540
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
541
|
-
if (value != value) return true;
|
|
542
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
543
|
-
} else for (;length > index; index++) {
|
|
544
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
545
|
-
} return !IS_INCLUDES && -1;
|
|
546
|
-
};
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
var arrayIncludes = {
|
|
550
|
-
// `Array.prototype.includes` method
|
|
551
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
552
|
-
includes: createMethod(true),
|
|
553
|
-
// `Array.prototype.indexOf` method
|
|
554
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
555
|
-
indexOf: createMethod(false)
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
var hiddenKeys$4 = {};
|
|
559
|
-
|
|
560
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
561
|
-
var hasOwn$7 = hasOwnProperty_1;
|
|
562
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
563
|
-
var indexOf = arrayIncludes.indexOf;
|
|
564
|
-
var hiddenKeys$3 = hiddenKeys$4;
|
|
565
|
-
|
|
566
|
-
var push = uncurryThis$4([].push);
|
|
567
|
-
|
|
568
|
-
var objectKeysInternal = function (object, names) {
|
|
569
|
-
var O = toIndexedObject$3(object);
|
|
570
|
-
var i = 0;
|
|
571
|
-
var result = [];
|
|
572
|
-
var key;
|
|
573
|
-
for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
|
|
574
|
-
// Don't enum bug & hidden keys
|
|
575
|
-
while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
|
|
576
|
-
~indexOf(result, key) || push(result, key);
|
|
577
|
-
}
|
|
578
|
-
return result;
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
// IE8- don't enum bug keys
|
|
582
|
-
var enumBugKeys$3 = [
|
|
583
|
-
'constructor',
|
|
584
|
-
'hasOwnProperty',
|
|
585
|
-
'isPrototypeOf',
|
|
586
|
-
'propertyIsEnumerable',
|
|
587
|
-
'toLocaleString',
|
|
588
|
-
'toString',
|
|
589
|
-
'valueOf'
|
|
590
|
-
];
|
|
591
|
-
|
|
592
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
593
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
594
|
-
|
|
595
|
-
// `Object.keys` method
|
|
596
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
597
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
598
|
-
var objectKeys$1 = Object.keys || function keys(O) {
|
|
599
|
-
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
var DESCRIPTORS$4 = descriptors;
|
|
7
|
+
var DESCRIPTORS$1 = descriptors;
|
|
603
8
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
604
|
-
var definePropertyModule
|
|
605
|
-
var anObject$
|
|
606
|
-
var toIndexedObject$
|
|
9
|
+
var definePropertyModule = objectDefineProperty;
|
|
10
|
+
var anObject$1 = anObject$2;
|
|
11
|
+
var toIndexedObject$1 = toIndexedObject$2;
|
|
607
12
|
var objectKeys = objectKeys$1;
|
|
608
13
|
|
|
609
14
|
// `Object.defineProperties` method
|
|
610
15
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
611
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
612
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
613
|
-
anObject$
|
|
614
|
-
var props = toIndexedObject$
|
|
16
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
17
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
18
|
+
anObject$1(O);
|
|
19
|
+
var props = toIndexedObject$1(Properties);
|
|
615
20
|
var keys = objectKeys(Properties);
|
|
616
21
|
var length = keys.length;
|
|
617
22
|
var index = 0;
|
|
618
23
|
var key;
|
|
619
|
-
while (length > index) definePropertyModule
|
|
24
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
620
25
|
return O;
|
|
621
26
|
};
|
|
622
27
|
|
|
623
|
-
var getBuiltIn$1 = getBuiltIn$4;
|
|
624
|
-
|
|
625
|
-
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
626
|
-
|
|
627
|
-
var shared$1 = shared$3.exports;
|
|
628
|
-
var uid = uid$2;
|
|
629
|
-
|
|
630
|
-
var keys = shared$1('keys');
|
|
631
|
-
|
|
632
|
-
var sharedKey$3 = function (key) {
|
|
633
|
-
return keys[key] || (keys[key] = uid(key));
|
|
634
|
-
};
|
|
635
|
-
|
|
636
28
|
/* global ActiveXObject -- old IE, WSH */
|
|
637
29
|
|
|
638
|
-
var anObject
|
|
30
|
+
var anObject = anObject$2;
|
|
639
31
|
var definePropertiesModule = objectDefineProperties;
|
|
640
|
-
var enumBugKeys
|
|
641
|
-
var hiddenKeys
|
|
32
|
+
var enumBugKeys = enumBugKeys$1;
|
|
33
|
+
var hiddenKeys = hiddenKeys$1;
|
|
642
34
|
var html = html$1;
|
|
643
35
|
var documentCreateElement$1 = documentCreateElement$2;
|
|
644
|
-
var sharedKey$
|
|
36
|
+
var sharedKey$1 = sharedKey$2;
|
|
645
37
|
|
|
646
38
|
var GT = '>';
|
|
647
39
|
var LT = '<';
|
|
648
40
|
var PROTOTYPE = 'prototype';
|
|
649
41
|
var SCRIPT = 'script';
|
|
650
|
-
var IE_PROTO$1 = sharedKey$
|
|
42
|
+
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
651
43
|
|
|
652
44
|
var EmptyConstructor = function () { /* empty */ };
|
|
653
45
|
|
|
@@ -696,19 +88,20 @@ var NullProtoObject = function () {
|
|
|
696
88
|
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
697
89
|
: NullProtoObjectViaIFrame()
|
|
698
90
|
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
699
|
-
var length = enumBugKeys
|
|
700
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys
|
|
91
|
+
var length = enumBugKeys.length;
|
|
92
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
701
93
|
return NullProtoObject();
|
|
702
94
|
};
|
|
703
95
|
|
|
704
|
-
hiddenKeys
|
|
96
|
+
hiddenKeys[IE_PROTO$1] = true;
|
|
705
97
|
|
|
706
98
|
// `Object.create` method
|
|
707
99
|
// https://tc39.es/ecma262/#sec-object.create
|
|
100
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
708
101
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
709
102
|
var result;
|
|
710
103
|
if (O !== null) {
|
|
711
|
-
EmptyConstructor[PROTOTYPE] = anObject
|
|
104
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
712
105
|
result = new EmptyConstructor();
|
|
713
106
|
EmptyConstructor[PROTOTYPE] = null;
|
|
714
107
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -717,17 +110,17 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
717
110
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
718
111
|
};
|
|
719
112
|
|
|
720
|
-
var wellKnownSymbol$
|
|
113
|
+
var wellKnownSymbol$3 = wellKnownSymbol$4;
|
|
721
114
|
var create$1 = objectCreate;
|
|
722
|
-
var
|
|
115
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
723
116
|
|
|
724
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
117
|
+
var UNSCOPABLES = wellKnownSymbol$3('unscopables');
|
|
725
118
|
var ArrayPrototype = Array.prototype;
|
|
726
119
|
|
|
727
120
|
// Array.prototype[@@unscopables]
|
|
728
121
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
729
122
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
730
|
-
|
|
123
|
+
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
731
124
|
configurable: true,
|
|
732
125
|
value: create$1(null)
|
|
733
126
|
});
|
|
@@ -738,404 +131,52 @@ var addToUnscopables$1 = function (key) {
|
|
|
738
131
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
739
132
|
};
|
|
740
133
|
|
|
741
|
-
var
|
|
742
|
-
|
|
743
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
744
|
-
var isCallable$7 = isCallable$d;
|
|
745
|
-
var store$1 = sharedStore;
|
|
746
|
-
|
|
747
|
-
var functionToString = uncurryThis$3(Function.toString);
|
|
748
|
-
|
|
749
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
750
|
-
if (!isCallable$7(store$1.inspectSource)) {
|
|
751
|
-
store$1.inspectSource = function (it) {
|
|
752
|
-
return functionToString(it);
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
var inspectSource$2 = store$1.inspectSource;
|
|
757
|
-
|
|
758
|
-
var global$7 = global$o;
|
|
759
|
-
var isCallable$6 = isCallable$d;
|
|
760
|
-
var inspectSource$1 = inspectSource$2;
|
|
761
|
-
|
|
762
|
-
var WeakMap$1 = global$7.WeakMap;
|
|
763
|
-
|
|
764
|
-
var nativeWeakMap = isCallable$6(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
|
|
765
|
-
|
|
766
|
-
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
767
|
-
return {
|
|
768
|
-
enumerable: !(bitmap & 1),
|
|
769
|
-
configurable: !(bitmap & 2),
|
|
770
|
-
writable: !(bitmap & 4),
|
|
771
|
-
value: value
|
|
772
|
-
};
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
var DESCRIPTORS$3 = descriptors;
|
|
776
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
777
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
778
|
-
|
|
779
|
-
var createNonEnumerableProperty$5 = DESCRIPTORS$3 ? function (object, key, value) {
|
|
780
|
-
return definePropertyModule$1.f(object, key, createPropertyDescriptor$2(1, value));
|
|
781
|
-
} : function (object, key, value) {
|
|
782
|
-
object[key] = value;
|
|
783
|
-
return object;
|
|
784
|
-
};
|
|
785
|
-
|
|
786
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
787
|
-
var global$6 = global$o;
|
|
788
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
789
|
-
var isObject = isObject$5;
|
|
790
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
791
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
792
|
-
var shared = sharedStore;
|
|
793
|
-
var sharedKey$1 = sharedKey$3;
|
|
794
|
-
var hiddenKeys$1 = hiddenKeys$4;
|
|
795
|
-
|
|
796
|
-
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
797
|
-
var TypeError$1 = global$6.TypeError;
|
|
798
|
-
var WeakMap = global$6.WeakMap;
|
|
799
|
-
var set, get, has;
|
|
800
|
-
|
|
801
|
-
var enforce = function (it) {
|
|
802
|
-
return has(it) ? get(it) : set(it, {});
|
|
803
|
-
};
|
|
804
|
-
|
|
805
|
-
var getterFor = function (TYPE) {
|
|
806
|
-
return function (it) {
|
|
807
|
-
var state;
|
|
808
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
809
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
810
|
-
} return state;
|
|
811
|
-
};
|
|
812
|
-
};
|
|
813
|
-
|
|
814
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
815
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
816
|
-
var wmget = uncurryThis$2(store.get);
|
|
817
|
-
var wmhas = uncurryThis$2(store.has);
|
|
818
|
-
var wmset = uncurryThis$2(store.set);
|
|
819
|
-
set = function (it, metadata) {
|
|
820
|
-
if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
821
|
-
metadata.facade = it;
|
|
822
|
-
wmset(store, it, metadata);
|
|
823
|
-
return metadata;
|
|
824
|
-
};
|
|
825
|
-
get = function (it) {
|
|
826
|
-
return wmget(store, it) || {};
|
|
827
|
-
};
|
|
828
|
-
has = function (it) {
|
|
829
|
-
return wmhas(store, it);
|
|
830
|
-
};
|
|
831
|
-
} else {
|
|
832
|
-
var STATE = sharedKey$1('state');
|
|
833
|
-
hiddenKeys$1[STATE] = true;
|
|
834
|
-
set = function (it, metadata) {
|
|
835
|
-
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
836
|
-
metadata.facade = it;
|
|
837
|
-
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
838
|
-
return metadata;
|
|
839
|
-
};
|
|
840
|
-
get = function (it) {
|
|
841
|
-
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
842
|
-
};
|
|
843
|
-
has = function (it) {
|
|
844
|
-
return hasOwn$6(it, STATE);
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
var internalState = {
|
|
849
|
-
set: set,
|
|
850
|
-
get: get,
|
|
851
|
-
has: has,
|
|
852
|
-
enforce: enforce,
|
|
853
|
-
getterFor: getterFor
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
857
|
-
|
|
858
|
-
var objectPropertyIsEnumerable = {};
|
|
859
|
-
|
|
860
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
861
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
862
|
-
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
863
|
-
|
|
864
|
-
// Nashorn ~ JDK8 bug
|
|
865
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
866
|
-
|
|
867
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
868
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
869
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
870
|
-
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
871
|
-
return !!descriptor && descriptor.enumerable;
|
|
872
|
-
} : $propertyIsEnumerable;
|
|
873
|
-
|
|
874
|
-
var DESCRIPTORS$2 = descriptors;
|
|
875
|
-
var call$1 = functionCall;
|
|
876
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
877
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
878
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
879
|
-
var toPropertyKey = toPropertyKey$2;
|
|
880
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
881
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
882
|
-
|
|
883
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
884
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
885
|
-
|
|
886
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
887
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
888
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$2 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
889
|
-
O = toIndexedObject$1(O);
|
|
890
|
-
P = toPropertyKey(P);
|
|
891
|
-
if (IE8_DOM_DEFINE) try {
|
|
892
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
893
|
-
} catch (error) { /* empty */ }
|
|
894
|
-
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
895
|
-
};
|
|
896
|
-
|
|
897
|
-
var redefine$3 = {exports: {}};
|
|
898
|
-
|
|
899
|
-
var DESCRIPTORS$1 = descriptors;
|
|
900
|
-
var hasOwn$4 = hasOwnProperty_1;
|
|
901
|
-
|
|
902
|
-
var FunctionPrototype = Function.prototype;
|
|
903
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
904
|
-
var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
|
|
905
|
-
|
|
906
|
-
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
907
|
-
// additional protection from minified / mangled / dropped function names
|
|
908
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
909
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
910
|
-
|
|
911
|
-
var functionName = {
|
|
912
|
-
EXISTS: EXISTS,
|
|
913
|
-
PROPER: PROPER,
|
|
914
|
-
CONFIGURABLE: CONFIGURABLE
|
|
915
|
-
};
|
|
916
|
-
|
|
917
|
-
var global$5 = global$o;
|
|
918
|
-
var isCallable$5 = isCallable$d;
|
|
919
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
920
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
921
|
-
var setGlobal$1 = setGlobal$3;
|
|
922
|
-
var inspectSource = inspectSource$2;
|
|
923
|
-
var InternalStateModule$1 = internalState;
|
|
924
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
925
|
-
|
|
926
|
-
var getInternalState$1 = InternalStateModule$1.get;
|
|
927
|
-
var enforceInternalState = InternalStateModule$1.enforce;
|
|
928
|
-
var TEMPLATE = String(String).split('String');
|
|
929
|
-
|
|
930
|
-
(redefine$3.exports = function (O, key, value, options) {
|
|
931
|
-
var unsafe = options ? !!options.unsafe : false;
|
|
932
|
-
var simple = options ? !!options.enumerable : false;
|
|
933
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
934
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
935
|
-
var state;
|
|
936
|
-
if (isCallable$5(value)) {
|
|
937
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
938
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
939
|
-
}
|
|
940
|
-
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
941
|
-
createNonEnumerableProperty$3(value, 'name', name);
|
|
942
|
-
}
|
|
943
|
-
state = enforceInternalState(value);
|
|
944
|
-
if (!state.source) {
|
|
945
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
if (O === global$5) {
|
|
949
|
-
if (simple) O[key] = value;
|
|
950
|
-
else setGlobal$1(key, value);
|
|
951
|
-
return;
|
|
952
|
-
} else if (!unsafe) {
|
|
953
|
-
delete O[key];
|
|
954
|
-
} else if (!noTargetGet && O[key]) {
|
|
955
|
-
simple = true;
|
|
956
|
-
}
|
|
957
|
-
if (simple) O[key] = value;
|
|
958
|
-
else createNonEnumerableProperty$3(O, key, value);
|
|
959
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
960
|
-
})(Function.prototype, 'toString', function toString() {
|
|
961
|
-
return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
|
|
962
|
-
});
|
|
963
|
-
|
|
964
|
-
var objectGetOwnPropertyNames = {};
|
|
965
|
-
|
|
966
|
-
var internalObjectKeys = objectKeysInternal;
|
|
967
|
-
var enumBugKeys = enumBugKeys$3;
|
|
968
|
-
|
|
969
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
970
|
-
|
|
971
|
-
// `Object.getOwnPropertyNames` method
|
|
972
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
973
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
974
|
-
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
975
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
976
|
-
};
|
|
977
|
-
|
|
978
|
-
var objectGetOwnPropertySymbols = {};
|
|
979
|
-
|
|
980
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
981
|
-
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
982
|
-
|
|
983
|
-
var getBuiltIn = getBuiltIn$4;
|
|
984
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
985
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
986
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
987
|
-
var anObject$1 = anObject$5;
|
|
988
|
-
|
|
989
|
-
var concat = uncurryThis$1([].concat);
|
|
990
|
-
|
|
991
|
-
// all object keys, includes non-enumerable and symbols
|
|
992
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
993
|
-
var keys = getOwnPropertyNamesModule.f(anObject$1(it));
|
|
994
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
995
|
-
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
996
|
-
};
|
|
997
|
-
|
|
998
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
999
|
-
var ownKeys = ownKeys$1;
|
|
1000
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1001
|
-
var definePropertyModule = objectDefineProperty;
|
|
1002
|
-
|
|
1003
|
-
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1004
|
-
var keys = ownKeys(source);
|
|
1005
|
-
var defineProperty = definePropertyModule.f;
|
|
1006
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1007
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1008
|
-
var key = keys[i];
|
|
1009
|
-
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
1010
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
|
|
1015
|
-
var fails$2 = fails$9;
|
|
1016
|
-
var isCallable$4 = isCallable$d;
|
|
1017
|
-
|
|
1018
|
-
var replacement = /#|\.prototype\./;
|
|
1019
|
-
|
|
1020
|
-
var isForced$1 = function (feature, detection) {
|
|
1021
|
-
var value = data[normalize(feature)];
|
|
1022
|
-
return value == POLYFILL ? true
|
|
1023
|
-
: value == NATIVE ? false
|
|
1024
|
-
: isCallable$4(detection) ? fails$2(detection)
|
|
1025
|
-
: !!detection;
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
var normalize = isForced$1.normalize = function (string) {
|
|
1029
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
1030
|
-
};
|
|
1031
|
-
|
|
1032
|
-
var data = isForced$1.data = {};
|
|
1033
|
-
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1034
|
-
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
1035
|
-
|
|
1036
|
-
var isForced_1 = isForced$1;
|
|
1037
|
-
|
|
1038
|
-
var global$4 = global$o;
|
|
1039
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1040
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1041
|
-
var redefine$2 = redefine$3.exports;
|
|
1042
|
-
var setGlobal = setGlobal$3;
|
|
1043
|
-
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1044
|
-
var isForced = isForced_1;
|
|
1045
|
-
|
|
1046
|
-
/*
|
|
1047
|
-
options.target - name of the target object
|
|
1048
|
-
options.global - target is the global object
|
|
1049
|
-
options.stat - export as static methods of target
|
|
1050
|
-
options.proto - export as prototype methods of target
|
|
1051
|
-
options.real - real prototype method for the `pure` version
|
|
1052
|
-
options.forced - export even if the native feature is available
|
|
1053
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
1054
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1055
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1056
|
-
options.sham - add a flag to not completely full polyfills
|
|
1057
|
-
options.enumerable - export as enumerable property
|
|
1058
|
-
options.noTargetGet - prevent calling a getter on target
|
|
1059
|
-
options.name - the .name of the function if it does not match the key
|
|
1060
|
-
*/
|
|
1061
|
-
var _export = function (options, source) {
|
|
1062
|
-
var TARGET = options.target;
|
|
1063
|
-
var GLOBAL = options.global;
|
|
1064
|
-
var STATIC = options.stat;
|
|
1065
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1066
|
-
if (GLOBAL) {
|
|
1067
|
-
target = global$4;
|
|
1068
|
-
} else if (STATIC) {
|
|
1069
|
-
target = global$4[TARGET] || setGlobal(TARGET, {});
|
|
1070
|
-
} else {
|
|
1071
|
-
target = (global$4[TARGET] || {}).prototype;
|
|
1072
|
-
}
|
|
1073
|
-
if (target) for (key in source) {
|
|
1074
|
-
sourceProperty = source[key];
|
|
1075
|
-
if (options.noTargetGet) {
|
|
1076
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1077
|
-
targetProperty = descriptor && descriptor.value;
|
|
1078
|
-
} else targetProperty = target[key];
|
|
1079
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1080
|
-
// contained in target
|
|
1081
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
1082
|
-
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1083
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1084
|
-
}
|
|
1085
|
-
// add a flag to not completely full polyfills
|
|
1086
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1087
|
-
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1088
|
-
}
|
|
1089
|
-
// extend global
|
|
1090
|
-
redefine$2(target, key, sourceProperty, options);
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
var fails$1 = fails$9;
|
|
134
|
+
var fails$1 = fails$2;
|
|
1095
135
|
|
|
1096
136
|
var correctPrototypeGetter = !fails$1(function () {
|
|
1097
137
|
function F() { /* empty */ }
|
|
1098
138
|
F.prototype.constructor = null;
|
|
1099
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
139
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
1100
140
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1101
141
|
});
|
|
1102
142
|
|
|
1103
|
-
var
|
|
1104
|
-
var
|
|
1105
|
-
var
|
|
1106
|
-
var
|
|
1107
|
-
var sharedKey = sharedKey$3;
|
|
143
|
+
var hasOwn = hasOwnProperty_1;
|
|
144
|
+
var isCallable$2 = isCallable$3;
|
|
145
|
+
var toObject = toObject$1;
|
|
146
|
+
var sharedKey = sharedKey$2;
|
|
1108
147
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1109
148
|
|
|
1110
149
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1111
|
-
var Object
|
|
1112
|
-
var ObjectPrototype = Object
|
|
150
|
+
var $Object = Object;
|
|
151
|
+
var ObjectPrototype = $Object.prototype;
|
|
1113
152
|
|
|
1114
153
|
// `Object.getPrototypeOf` method
|
|
1115
154
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1116
|
-
|
|
155
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
156
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1117
157
|
var object = toObject(O);
|
|
1118
|
-
if (hasOwn
|
|
158
|
+
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
|
1119
159
|
var constructor = object.constructor;
|
|
1120
|
-
if (isCallable$
|
|
160
|
+
if (isCallable$2(constructor) && object instanceof constructor) {
|
|
1121
161
|
return constructor.prototype;
|
|
1122
|
-
} return object instanceof Object
|
|
162
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1123
163
|
};
|
|
1124
164
|
|
|
1125
|
-
var fails = fails$
|
|
1126
|
-
var isCallable$
|
|
165
|
+
var fails = fails$2;
|
|
166
|
+
var isCallable$1 = isCallable$3;
|
|
167
|
+
var isObject = isObject$1;
|
|
1127
168
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1128
|
-
var
|
|
1129
|
-
var wellKnownSymbol$
|
|
169
|
+
var defineBuiltIn$1 = defineBuiltIn$2;
|
|
170
|
+
var wellKnownSymbol$2 = wellKnownSymbol$4;
|
|
1130
171
|
|
|
1131
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
172
|
+
var ITERATOR$2 = wellKnownSymbol$2('iterator');
|
|
1132
173
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1133
174
|
|
|
1134
175
|
// `%IteratorPrototype%` object
|
|
1135
176
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1136
177
|
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1137
178
|
|
|
1138
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
179
|
+
/* eslint-disable es-x/no-array-prototype-keys -- safe */
|
|
1139
180
|
if ([].keys) {
|
|
1140
181
|
arrayIterator = [].keys();
|
|
1141
182
|
// Safari 8 has buggy iterators w/o `next`
|
|
@@ -1146,7 +187,7 @@ if ([].keys) {
|
|
|
1146
187
|
}
|
|
1147
188
|
}
|
|
1148
189
|
|
|
1149
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2
|
|
190
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
|
|
1150
191
|
var test = {};
|
|
1151
192
|
// FF44- legacy iterators case
|
|
1152
193
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1156,8 +197,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1156
197
|
|
|
1157
198
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1158
199
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1159
|
-
if (!isCallable$
|
|
1160
|
-
|
|
200
|
+
if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
|
|
201
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1161
202
|
return this;
|
|
1162
203
|
});
|
|
1163
204
|
}
|
|
@@ -1167,28 +208,15 @@ var iteratorsCore = {
|
|
|
1167
208
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1168
209
|
};
|
|
1169
210
|
|
|
1170
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
1171
|
-
var hasOwn = hasOwnProperty_1;
|
|
1172
|
-
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
|
1173
|
-
|
|
1174
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
1175
|
-
|
|
1176
|
-
var setToStringTag$2 = function (target, TAG, STATIC) {
|
|
1177
|
-
if (target && !STATIC) target = target.prototype;
|
|
1178
|
-
if (target && !hasOwn(target, TO_STRING_TAG$1)) {
|
|
1179
|
-
defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
1180
|
-
}
|
|
1181
|
-
};
|
|
1182
|
-
|
|
1183
211
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1184
212
|
var create = objectCreate;
|
|
1185
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
213
|
+
var createPropertyDescriptor = createPropertyDescriptor$1;
|
|
1186
214
|
var setToStringTag$1 = setToStringTag$2;
|
|
1187
215
|
var Iterators$2 = iterators;
|
|
1188
216
|
|
|
1189
217
|
var returnThis$1 = function () { return this; };
|
|
1190
218
|
|
|
1191
|
-
var
|
|
219
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1192
220
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1193
221
|
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1194
222
|
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
|
@@ -1196,57 +224,17 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1196
224
|
return IteratorConstructor;
|
|
1197
225
|
};
|
|
1198
226
|
|
|
1199
|
-
var global$2 = global$o;
|
|
1200
|
-
var isCallable$1 = isCallable$d;
|
|
1201
|
-
|
|
1202
|
-
var String$1 = global$2.String;
|
|
1203
|
-
var TypeError = global$2.TypeError;
|
|
1204
|
-
|
|
1205
|
-
var aPossiblePrototype$1 = function (argument) {
|
|
1206
|
-
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
|
1207
|
-
throw TypeError("Can't set " + String$1(argument) + ' as a prototype');
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
/* eslint-disable no-proto -- safe */
|
|
1211
|
-
|
|
1212
|
-
var uncurryThis = functionUncurryThis;
|
|
1213
|
-
var anObject = anObject$5;
|
|
1214
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1215
|
-
|
|
1216
|
-
// `Object.setPrototypeOf` method
|
|
1217
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1218
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1219
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1220
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1221
|
-
var CORRECT_SETTER = false;
|
|
1222
|
-
var test = {};
|
|
1223
|
-
var setter;
|
|
1224
|
-
try {
|
|
1225
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1226
|
-
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1227
|
-
setter(test, []);
|
|
1228
|
-
CORRECT_SETTER = test instanceof Array;
|
|
1229
|
-
} catch (error) { /* empty */ }
|
|
1230
|
-
return function setPrototypeOf(O, proto) {
|
|
1231
|
-
anObject(O);
|
|
1232
|
-
aPossiblePrototype(proto);
|
|
1233
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
1234
|
-
else O.__proto__ = proto;
|
|
1235
|
-
return O;
|
|
1236
|
-
};
|
|
1237
|
-
}() : undefined);
|
|
1238
|
-
|
|
1239
227
|
var $ = _export;
|
|
1240
228
|
var call = functionCall;
|
|
1241
229
|
var FunctionName = functionName;
|
|
1242
|
-
var isCallable = isCallable$
|
|
1243
|
-
var createIteratorConstructor =
|
|
230
|
+
var isCallable = isCallable$3;
|
|
231
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1244
232
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1245
233
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1246
234
|
var setToStringTag = setToStringTag$2;
|
|
1247
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
1248
|
-
var
|
|
1249
|
-
var wellKnownSymbol$1 = wellKnownSymbol$
|
|
235
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
236
|
+
var defineBuiltIn = defineBuiltIn$2;
|
|
237
|
+
var wellKnownSymbol$1 = wellKnownSymbol$4;
|
|
1250
238
|
var Iterators$1 = iterators;
|
|
1251
239
|
var IteratorsCore = iteratorsCore;
|
|
1252
240
|
|
|
@@ -1261,7 +249,7 @@ var ENTRIES = 'entries';
|
|
|
1261
249
|
|
|
1262
250
|
var returnThis = function () { return this; };
|
|
1263
251
|
|
|
1264
|
-
var
|
|
252
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1265
253
|
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1266
254
|
|
|
1267
255
|
var getIterationMethod = function (KIND) {
|
|
@@ -1292,7 +280,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1292
280
|
if (setPrototypeOf) {
|
|
1293
281
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1294
282
|
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1295
|
-
|
|
283
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1296
284
|
}
|
|
1297
285
|
}
|
|
1298
286
|
// Set @@toStringTag to native iterators
|
|
@@ -1319,26 +307,33 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1319
307
|
};
|
|
1320
308
|
if (FORCED) for (KEY in methods) {
|
|
1321
309
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1322
|
-
|
|
310
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1323
311
|
}
|
|
1324
312
|
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1325
313
|
}
|
|
1326
314
|
|
|
1327
315
|
// define iterator
|
|
1328
316
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1329
|
-
|
|
317
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1330
318
|
}
|
|
1331
319
|
Iterators$1[NAME] = defaultIterator;
|
|
1332
320
|
|
|
1333
321
|
return methods;
|
|
1334
322
|
};
|
|
1335
323
|
|
|
1336
|
-
|
|
324
|
+
// `CreateIterResultObject` abstract operation
|
|
325
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
326
|
+
var createIterResultObject$1 = function (value, done) {
|
|
327
|
+
return { value: value, done: done };
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
var toIndexedObject = toIndexedObject$2;
|
|
1337
331
|
var addToUnscopables = addToUnscopables$1;
|
|
1338
332
|
var Iterators = iterators;
|
|
1339
333
|
var InternalStateModule = internalState;
|
|
1340
334
|
var defineProperty = objectDefineProperty.f;
|
|
1341
|
-
var defineIterator =
|
|
335
|
+
var defineIterator = iteratorDefine;
|
|
336
|
+
var createIterResultObject = createIterResultObject$1;
|
|
1342
337
|
var DESCRIPTORS = descriptors;
|
|
1343
338
|
|
|
1344
339
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
@@ -1371,11 +366,11 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1371
366
|
var index = state.index++;
|
|
1372
367
|
if (!target || index >= target.length) {
|
|
1373
368
|
state.target = undefined;
|
|
1374
|
-
return
|
|
369
|
+
return createIterResultObject(undefined, true);
|
|
1375
370
|
}
|
|
1376
|
-
if (kind == 'keys') return
|
|
1377
|
-
if (kind == 'values') return
|
|
1378
|
-
return
|
|
371
|
+
if (kind == 'keys') return createIterResultObject(index, false);
|
|
372
|
+
if (kind == 'values') return createIterResultObject(target[index], false);
|
|
373
|
+
return createIterResultObject([index, target[index]], false);
|
|
1379
374
|
}, 'values');
|
|
1380
375
|
|
|
1381
376
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
@@ -1437,12 +432,12 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1437
432
|
|
|
1438
433
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1439
434
|
|
|
1440
|
-
var global
|
|
435
|
+
var global = global$1;
|
|
1441
436
|
var DOMIterables = domIterables;
|
|
1442
437
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1443
438
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1444
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1445
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
439
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
440
|
+
var wellKnownSymbol = wellKnownSymbol$4;
|
|
1446
441
|
|
|
1447
442
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
1448
443
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
@@ -1471,9 +466,9 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1471
466
|
};
|
|
1472
467
|
|
|
1473
468
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1474
|
-
handlePrototype(global
|
|
469
|
+
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1475
470
|
}
|
|
1476
471
|
|
|
1477
472
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1478
473
|
|
|
1479
|
-
export {
|
|
474
|
+
export { objectCreate as o };
|