@vonage/vivid 3.0.0-next.11 → 3.0.0-next.110

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.
Files changed (209) hide show
  1. package/README.md +165 -4
  2. package/accordion/index.js +5 -14
  3. package/accordion-item/index.js +34 -41
  4. package/action-group/index.js +37 -0
  5. package/avatar/index.js +61 -0
  6. package/badge/index.js +23 -35
  7. package/banner/index.js +20 -115
  8. package/breadcrumb/index.js +22 -19
  9. package/breadcrumb-item/index.js +28 -25
  10. package/button/index.js +29 -690
  11. package/calendar/index.js +70 -69
  12. package/calendar-event/index.js +109 -0
  13. package/card/index.js +112 -0
  14. package/checkbox/index.js +178 -0
  15. package/custom-elements.json +3941 -0
  16. package/dialog/index.js +214 -0
  17. package/divider/index.js +27 -0
  18. package/elevation/index.js +10 -16
  19. package/fab/index.js +98 -0
  20. package/focus/index.js +18 -3
  21. package/header/index.js +63 -0
  22. package/icon/index.js +9 -12
  23. package/index.js +68 -22
  24. package/layout/index.js +6 -16
  25. package/lib/accordion-item/accordion-item.d.ts +2 -2
  26. package/lib/accordion-item/index.d.ts +0 -1
  27. package/lib/action-group/action-group.d.ts +10 -0
  28. package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
  29. package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
  30. package/lib/avatar/avatar.d.ts +15 -0
  31. package/lib/avatar/avatar.template.d.ts +4 -0
  32. package/lib/avatar/index.d.ts +2 -0
  33. package/lib/badge/badge.d.ts +3 -5
  34. package/lib/badge/index.d.ts +1 -2
  35. package/lib/banner/banner.d.ts +1 -1
  36. package/lib/banner/banner.template.d.ts +0 -2
  37. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  38. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  39. package/lib/breadcrumb-item/index.d.ts +0 -1
  40. package/lib/button/button.d.ts +4 -3
  41. package/lib/button/index.d.ts +1 -21
  42. package/lib/calendar/calendar.d.ts +3 -1
  43. package/lib/calendar/index.d.ts +0 -1
  44. package/lib/calendar-event/calendar-event.d.ts +14 -0
  45. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  46. package/lib/calendar-event/index.d.ts +2 -0
  47. package/lib/card/card.d.ts +10 -0
  48. package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
  49. package/lib/{text → card}/index.d.ts +1 -1
  50. package/lib/checkbox/checkbox.d.ts +5 -0
  51. package/lib/checkbox/checkbox.template.d.ts +4 -0
  52. package/lib/checkbox/index.d.ts +2 -0
  53. package/lib/components.d.ts +32 -10
  54. package/lib/dialog/dialog.d.ts +20 -0
  55. package/lib/dialog/dialog.template.d.ts +4 -0
  56. package/lib/dialog/index.d.ts +2 -0
  57. package/lib/divider/divider.d.ts +3 -0
  58. package/lib/divider/divider.template.d.ts +4 -0
  59. package/lib/divider/index.d.ts +2 -0
  60. package/lib/elevation/elevation.d.ts +1 -0
  61. package/lib/elevation/index.d.ts +1 -1
  62. package/lib/enums.d.ts +19 -6
  63. package/lib/fab/fab.d.ts +13 -0
  64. package/lib/fab/fab.template.d.ts +4 -0
  65. package/lib/fab/index.d.ts +2 -0
  66. package/lib/focus/index.d.ts +1 -1
  67. package/lib/header/header.d.ts +5 -0
  68. package/lib/header/header.template.d.ts +4 -0
  69. package/lib/header/index.d.ts +2 -0
  70. package/lib/icon/icon.d.ts +5 -6
  71. package/lib/layout/index.d.ts +1 -1
  72. package/lib/layout/layout.d.ts +4 -4
  73. package/lib/listbox/index.d.ts +1 -0
  74. package/lib/listbox/listbox.d.ts +9 -0
  75. package/lib/listbox/listbox.template.d.ts +4 -0
  76. package/lib/menu/index.d.ts +10 -0
  77. package/lib/menu/menu.d.ts +10 -0
  78. package/lib/menu/menu.template.d.ts +3 -0
  79. package/lib/menu-item/index.d.ts +2 -0
  80. package/lib/menu-item/menu-item.d.ts +7 -0
  81. package/lib/menu-item/menu-item.template.d.ts +5 -0
  82. package/lib/nav/index.d.ts +2 -0
  83. package/lib/nav/nav.d.ts +3 -0
  84. package/lib/nav/nav.template.d.ts +4 -0
  85. package/lib/nav-disclosure/index.d.ts +2 -0
  86. package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
  87. package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
  88. package/lib/nav-item/index.d.ts +2 -0
  89. package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
  90. package/lib/nav-item/nav-item.template.d.ts +4 -0
  91. package/lib/note/index.d.ts +2 -0
  92. package/lib/note/note.d.ts +10 -0
  93. package/lib/note/note.template.d.ts +4 -0
  94. package/lib/number-field/index.d.ts +2 -0
  95. package/lib/number-field/number-field.d.ts +14 -0
  96. package/lib/number-field/number-field.template.d.ts +4 -0
  97. package/lib/option/index.d.ts +2 -0
  98. package/lib/option/option.d.ts +9 -0
  99. package/lib/option/option.template.d.ts +4 -0
  100. package/lib/popup/index.d.ts +1 -3
  101. package/lib/popup/popup.d.ts +3 -2
  102. package/lib/progress/progress.d.ts +1 -1
  103. package/lib/progress-ring/progress-ring.d.ts +2 -1
  104. package/lib/radio/index.d.ts +2 -0
  105. package/lib/radio/radio.d.ts +4 -0
  106. package/lib/radio/radio.template.d.ts +4 -0
  107. package/lib/radio-group/index.d.ts +10 -0
  108. package/lib/radio-group/radio-group.d.ts +4 -0
  109. package/lib/radio-group/radio-group.template.d.ts +4 -0
  110. package/lib/side-drawer/index.d.ts +1 -1
  111. package/lib/side-drawer/side-drawer.d.ts +3 -2
  112. package/lib/slider/index.d.ts +2 -0
  113. package/lib/slider/slider.d.ts +4 -0
  114. package/lib/slider/slider.template.d.ts +4 -0
  115. package/lib/switch/index.d.ts +2 -0
  116. package/lib/switch/switch.d.ts +7 -0
  117. package/lib/switch/switch.template.d.ts +4 -0
  118. package/lib/text-anchor/text-anchor.d.ts +1 -1
  119. package/lib/text-area/index.d.ts +2 -0
  120. package/lib/text-area/text-area.d.ts +9 -0
  121. package/lib/text-area/text-area.template.d.ts +4 -0
  122. package/lib/text-field/index.d.ts +2 -0
  123. package/lib/text-field/text-field.d.ts +14 -0
  124. package/lib/text-field/text-field.template.d.ts +4 -0
  125. package/lib/tooltip/index.d.ts +0 -1
  126. package/lib/tooltip/tooltip.d.ts +7 -7
  127. package/listbox/index.js +1086 -0
  128. package/menu/index.js +357 -0
  129. package/menu-item/index.js +90 -0
  130. package/nav/index.js +17 -0
  131. package/nav-disclosure/index.js +80 -0
  132. package/nav-item/index.js +44 -0
  133. package/note/index.js +59 -0
  134. package/number-field/index.js +460 -0
  135. package/option/index.js +75 -0
  136. package/package.json +62 -10
  137. package/popup/index.js +35 -2036
  138. package/progress/index.js +33 -38
  139. package/progress-ring/index.js +13 -13
  140. package/radio/index.js +52 -0
  141. package/radio-group/index.js +435 -0
  142. package/shared/affix.js +2 -8
  143. package/shared/anchor.js +11 -3
  144. package/shared/apply-mixins.js +5 -4
  145. package/shared/aria-global.js +2 -86
  146. package/shared/aria.js +9 -0
  147. package/shared/base-progress.js +6 -1
  148. package/shared/breadcrumb-item.js +2 -2
  149. package/shared/button.js +23 -0
  150. package/shared/button2.js +200 -0
  151. package/shared/calendar-event.js +19 -0
  152. package/shared/design-system/index.d.ts +1 -1
  153. package/shared/dialog-polyfill.esm.js +858 -0
  154. package/shared/direction.js +20 -0
  155. package/shared/divider.js +55 -0
  156. package/shared/dom.js +8 -0
  157. package/shared/elevation.js +10 -0
  158. package/shared/enums.js +70 -0
  159. package/shared/es.object.assign.js +2 -59
  160. package/shared/es.promise.resolve.js +944 -0
  161. package/shared/es.regexp.to-string.js +58 -0
  162. package/shared/focus.js +11 -0
  163. package/shared/focus2.js +5 -0
  164. package/shared/form-associated.js +466 -0
  165. package/shared/form-elements.js +343 -0
  166. package/shared/icon.js +32 -1153
  167. package/shared/index.js +3780 -83
  168. package/shared/index2.js +7 -19
  169. package/shared/key-codes.js +97 -0
  170. package/shared/listbox-option.js +201 -0
  171. package/shared/menu-item.js +277 -0
  172. package/shared/numbers.js +25 -0
  173. package/shared/patterns/focus.d.ts +3 -0
  174. package/shared/patterns/form-elements/form-elements.d.ts +31 -0
  175. package/shared/patterns/form-elements/index.d.ts +1 -0
  176. package/shared/patterns/index.d.ts +2 -0
  177. package/shared/popup.js +1484 -0
  178. package/shared/radio.js +127 -0
  179. package/shared/ref.js +41 -0
  180. package/shared/slotted.js +1 -1
  181. package/shared/start-end.js +50 -0
  182. package/shared/string-trim.js +39 -0
  183. package/shared/text-anchor.js +2 -13
  184. package/shared/text-anchor.template.js +6 -5
  185. package/shared/utils/index.d.ts +1 -0
  186. package/side-drawer/index.js +38 -34
  187. package/slider/index.js +596 -0
  188. package/styles/core/all.css +86 -0
  189. package/styles/core/theme.css +11 -0
  190. package/styles/core/typography.css +80 -0
  191. package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
  192. package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
  193. package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
  194. package/styles/fonts/spezia.css +9 -12
  195. package/styles/tokens/theme-dark.css +230 -0
  196. package/styles/tokens/theme-light.css +230 -0
  197. package/switch/index.js +153 -0
  198. package/text-anchor/index.js +8 -3
  199. package/text-area/index.js +288 -0
  200. package/text-field/index.js +129 -0
  201. package/tooltip/index.js +59 -43
  202. package/vivid.api.json +2979 -0
  203. package/lib/text/text.d.ts +0 -10
  204. package/shared/style-inject.es.js +0 -28
  205. package/shared/web.dom-collections.iterator.js +0 -1479
  206. package/sidenav-item/index.js +0 -38
  207. package/styles/themes/dark.css +0 -205
  208. package/styles/themes/light.css +0 -205
  209. package/text/index.js +0 -45
package/shared/index.js CHANGED
@@ -1,3 +1,3673 @@
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ var fails$d = function (exec) {
4
+ try {
5
+ return !!exec();
6
+ } catch (error) {
7
+ return true;
8
+ }
9
+ };
10
+
11
+ var fails$c = fails$d;
12
+
13
+ var functionBindNative = !fails$c(function () {
14
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
15
+ var test = (function () { /* empty */ }).bind();
16
+ // eslint-disable-next-line no-prototype-builtins -- safe
17
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
18
+ });
19
+
20
+ var NATIVE_BIND$2 = functionBindNative;
21
+
22
+ var FunctionPrototype$1 = Function.prototype;
23
+ var call$a = FunctionPrototype$1.call;
24
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$1.bind.bind(call$a, call$a);
25
+
26
+ var functionUncurryThisRaw = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
27
+ return function () {
28
+ return call$a.apply(fn, arguments);
29
+ };
30
+ };
31
+
32
+ var uncurryThisRaw$1 = functionUncurryThisRaw;
33
+
34
+ var toString$4 = uncurryThisRaw$1({}.toString);
35
+ var stringSlice$3 = uncurryThisRaw$1(''.slice);
36
+
37
+ var classofRaw$2 = function (it) {
38
+ return stringSlice$3(toString$4(it), 8, -1);
39
+ };
40
+
41
+ var classofRaw$1 = classofRaw$2;
42
+ var uncurryThisRaw = functionUncurryThisRaw;
43
+
44
+ var functionUncurryThis = function (fn) {
45
+ // Nashorn bug:
46
+ // https://github.com/zloirock/core-js/issues/1128
47
+ // https://github.com/zloirock/core-js/issues/1130
48
+ if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
49
+ };
50
+
51
+ var uncurryThis$e = functionUncurryThis;
52
+ var fails$b = fails$d;
53
+ var classof$5 = classofRaw$2;
54
+
55
+ var $Object$4 = Object;
56
+ var split$3 = uncurryThis$e(''.split);
57
+
58
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
59
+ var indexedObject = fails$b(function () {
60
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
61
+ // eslint-disable-next-line no-prototype-builtins -- safe
62
+ return !$Object$4('z').propertyIsEnumerable(0);
63
+ }) ? function (it) {
64
+ return classof$5(it) == 'String' ? split$3(it, '') : $Object$4(it);
65
+ } : $Object$4;
66
+
67
+ // we can't use just `it == null` since of `document.all` special case
68
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
69
+ var isNullOrUndefined$3 = function (it) {
70
+ return it === null || it === undefined;
71
+ };
72
+
73
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
74
+
75
+ var $TypeError$9 = TypeError;
76
+
77
+ // `RequireObjectCoercible` abstract operation
78
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
79
+ var requireObjectCoercible$3 = function (it) {
80
+ if (isNullOrUndefined$2(it)) throw $TypeError$9("Can't call method on " + it);
81
+ return it;
82
+ };
83
+
84
+ // toObject with fallback for non-array-like ES3 strings
85
+ var IndexedObject$1 = indexedObject;
86
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
87
+
88
+ var toIndexedObject$5 = function (it) {
89
+ return IndexedObject$1(requireObjectCoercible$2(it));
90
+ };
91
+
92
+ var check = function (it) {
93
+ return it && it.Math == Math && it;
94
+ };
95
+
96
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
97
+ var global$d =
98
+ // eslint-disable-next-line es/no-global-this -- safe
99
+ check(typeof globalThis == 'object' && globalThis) ||
100
+ check(typeof window == 'object' && window) ||
101
+ // eslint-disable-next-line no-restricted-globals -- safe
102
+ check(typeof self == 'object' && self) ||
103
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
104
+ // eslint-disable-next-line no-new-func -- fallback
105
+ (function () { return this; })() || Function('return this')();
106
+
107
+ var shared$3 = {exports: {}};
108
+
109
+ var isPure = false;
110
+
111
+ var global$c = global$d;
112
+
113
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
114
+ var defineProperty$6 = Object.defineProperty;
115
+
116
+ var defineGlobalProperty$3 = function (key, value) {
117
+ try {
118
+ defineProperty$6(global$c, key, { value: value, configurable: true, writable: true });
119
+ } catch (error) {
120
+ global$c[key] = value;
121
+ } return value;
122
+ };
123
+
124
+ var global$b = global$d;
125
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
126
+
127
+ var SHARED = '__core-js_shared__';
128
+ var store$3 = global$b[SHARED] || defineGlobalProperty$2(SHARED, {});
129
+
130
+ var sharedStore = store$3;
131
+
132
+ var store$2 = sharedStore;
133
+
134
+ (shared$3.exports = function (key, value) {
135
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
136
+ })('versions', []).push({
137
+ version: '3.26.0',
138
+ mode: 'global',
139
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
140
+ license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE',
141
+ source: 'https://github.com/zloirock/core-js'
142
+ });
143
+
144
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
145
+
146
+ var $Object$3 = Object;
147
+
148
+ // `ToObject` abstract operation
149
+ // https://tc39.es/ecma262/#sec-toobject
150
+ var toObject$4 = function (argument) {
151
+ return $Object$3(requireObjectCoercible$1(argument));
152
+ };
153
+
154
+ var uncurryThis$d = functionUncurryThis;
155
+ var toObject$3 = toObject$4;
156
+
157
+ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
158
+
159
+ // `HasOwnProperty` abstract operation
160
+ // https://tc39.es/ecma262/#sec-hasownproperty
161
+ // eslint-disable-next-line es/no-object-hasown -- safe
162
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
163
+ return hasOwnProperty(toObject$3(it), key);
164
+ };
165
+
166
+ var uncurryThis$c = functionUncurryThis;
167
+
168
+ var id = 0;
169
+ var postfix = Math.random();
170
+ var toString$3 = uncurryThis$c(1.0.toString);
171
+
172
+ var uid$2 = function (key) {
173
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
174
+ };
175
+
176
+ var documentAll$2 = typeof document == 'object' && document.all;
177
+
178
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
179
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
180
+
181
+ var documentAll_1 = {
182
+ all: documentAll$2,
183
+ IS_HTMLDDA: IS_HTMLDDA
184
+ };
185
+
186
+ var $documentAll$1 = documentAll_1;
187
+
188
+ var documentAll$1 = $documentAll$1.all;
189
+
190
+ // `IsCallable` abstract operation
191
+ // https://tc39.es/ecma262/#sec-iscallable
192
+ var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
193
+ return typeof argument == 'function' || argument === documentAll$1;
194
+ } : function (argument) {
195
+ return typeof argument == 'function';
196
+ };
197
+
198
+ var global$a = global$d;
199
+ var isCallable$g = isCallable$h;
200
+
201
+ var aFunction = function (argument) {
202
+ return isCallable$g(argument) ? argument : undefined;
203
+ };
204
+
205
+ var getBuiltIn$5 = function (namespace, method) {
206
+ return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
207
+ };
208
+
209
+ var getBuiltIn$4 = getBuiltIn$5;
210
+
211
+ var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
212
+
213
+ var global$9 = global$d;
214
+ var userAgent = engineUserAgent;
215
+
216
+ var process = global$9.process;
217
+ var Deno = global$9.Deno;
218
+ var versions = process && process.versions || Deno && Deno.version;
219
+ var v8 = versions && versions.v8;
220
+ var match, version;
221
+
222
+ if (v8) {
223
+ match = v8.split('.');
224
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
225
+ // but their correct versions are not interesting for us
226
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
227
+ }
228
+
229
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
230
+ // so check `userAgent` even if `.v8` exists, but 0
231
+ if (!version && userAgent) {
232
+ match = userAgent.match(/Edge\/(\d+)/);
233
+ if (!match || match[1] >= 74) {
234
+ match = userAgent.match(/Chrome\/(\d+)/);
235
+ if (match) version = +match[1];
236
+ }
237
+ }
238
+
239
+ var engineV8Version = version;
240
+
241
+ /* eslint-disable es/no-symbol -- required for testing */
242
+
243
+ var V8_VERSION = engineV8Version;
244
+ var fails$a = fails$d;
245
+
246
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
247
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
248
+ var symbol = Symbol();
249
+ // Chrome 38 Symbol has incorrect toString conversion
250
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
251
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
252
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
253
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
254
+ });
255
+
256
+ /* eslint-disable es/no-symbol -- required for testing */
257
+
258
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
259
+
260
+ var useSymbolAsUid = NATIVE_SYMBOL$1
261
+ && !Symbol.sham
262
+ && typeof Symbol.iterator == 'symbol';
263
+
264
+ var global$8 = global$d;
265
+ var shared$2 = shared$3.exports;
266
+ var hasOwn$a = hasOwnProperty_1;
267
+ var uid$1 = uid$2;
268
+ var NATIVE_SYMBOL = symbolConstructorDetection;
269
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
270
+
271
+ var WellKnownSymbolsStore = shared$2('wks');
272
+ var Symbol$1 = global$8.Symbol;
273
+ var symbolFor = Symbol$1 && Symbol$1['for'];
274
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
275
+
276
+ var wellKnownSymbol$c = function (name) {
277
+ if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
278
+ var description = 'Symbol.' + name;
279
+ if (NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)) {
280
+ WellKnownSymbolsStore[name] = Symbol$1[name];
281
+ } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
282
+ WellKnownSymbolsStore[name] = symbolFor(description);
283
+ } else {
284
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
285
+ }
286
+ } return WellKnownSymbolsStore[name];
287
+ };
288
+
289
+ var isCallable$f = isCallable$h;
290
+ var $documentAll = documentAll_1;
291
+
292
+ var documentAll = $documentAll.all;
293
+
294
+ var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
295
+ return typeof it == 'object' ? it !== null : isCallable$f(it) || it === documentAll;
296
+ } : function (it) {
297
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
298
+ };
299
+
300
+ var isObject$7 = isObject$8;
301
+
302
+ var $String$3 = String;
303
+ var $TypeError$8 = TypeError;
304
+
305
+ // `Assert: Type(argument) is Object`
306
+ var anObject$9 = function (argument) {
307
+ if (isObject$7(argument)) return argument;
308
+ throw $TypeError$8($String$3(argument) + ' is not an object');
309
+ };
310
+
311
+ var objectDefineProperties = {};
312
+
313
+ var fails$9 = fails$d;
314
+
315
+ // Detect IE8's incomplete defineProperty implementation
316
+ var descriptors = !fails$9(function () {
317
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
318
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
319
+ });
320
+
321
+ var DESCRIPTORS$b = descriptors;
322
+ var fails$8 = fails$d;
323
+
324
+ // V8 ~ Chrome 36-
325
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
326
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$8(function () {
327
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
328
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
329
+ value: 42,
330
+ writable: false
331
+ }).prototype != 42;
332
+ });
333
+
334
+ var objectDefineProperty = {};
335
+
336
+ var global$7 = global$d;
337
+ var isObject$6 = isObject$8;
338
+
339
+ var document$1 = global$7.document;
340
+ // typeof document.createElement is 'object' in old IE
341
+ var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
342
+
343
+ var documentCreateElement$2 = function (it) {
344
+ return EXISTS$1 ? document$1.createElement(it) : {};
345
+ };
346
+
347
+ var DESCRIPTORS$a = descriptors;
348
+ var fails$7 = fails$d;
349
+ var createElement = documentCreateElement$2;
350
+
351
+ // Thanks to IE8 for its funny defineProperty
352
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$7(function () {
353
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
354
+ return Object.defineProperty(createElement('div'), 'a', {
355
+ get: function () { return 7; }
356
+ }).a != 7;
357
+ });
358
+
359
+ var NATIVE_BIND$1 = functionBindNative;
360
+
361
+ var call$9 = Function.prototype.call;
362
+
363
+ var functionCall = NATIVE_BIND$1 ? call$9.bind(call$9) : function () {
364
+ return call$9.apply(call$9, arguments);
365
+ };
366
+
367
+ var uncurryThis$b = functionUncurryThis;
368
+
369
+ var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
370
+
371
+ var getBuiltIn$3 = getBuiltIn$5;
372
+ var isCallable$e = isCallable$h;
373
+ var isPrototypeOf$1 = objectIsPrototypeOf;
374
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
375
+
376
+ var $Object$2 = Object;
377
+
378
+ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
379
+ return typeof it == 'symbol';
380
+ } : function (it) {
381
+ var $Symbol = getBuiltIn$3('Symbol');
382
+ return isCallable$e($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
383
+ };
384
+
385
+ var $String$2 = String;
386
+
387
+ var tryToString$2 = function (argument) {
388
+ try {
389
+ return $String$2(argument);
390
+ } catch (error) {
391
+ return 'Object';
392
+ }
393
+ };
394
+
395
+ var isCallable$d = isCallable$h;
396
+ var tryToString$1 = tryToString$2;
397
+
398
+ var $TypeError$7 = TypeError;
399
+
400
+ // `Assert: IsCallable(argument) is true`
401
+ var aCallable$3 = function (argument) {
402
+ if (isCallable$d(argument)) return argument;
403
+ throw $TypeError$7(tryToString$1(argument) + ' is not a function');
404
+ };
405
+
406
+ var aCallable$2 = aCallable$3;
407
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
408
+
409
+ // `GetMethod` abstract operation
410
+ // https://tc39.es/ecma262/#sec-getmethod
411
+ var getMethod$3 = function (V, P) {
412
+ var func = V[P];
413
+ return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
414
+ };
415
+
416
+ var call$8 = functionCall;
417
+ var isCallable$c = isCallable$h;
418
+ var isObject$5 = isObject$8;
419
+
420
+ var $TypeError$6 = TypeError;
421
+
422
+ // `OrdinaryToPrimitive` abstract operation
423
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
424
+ var ordinaryToPrimitive$1 = function (input, pref) {
425
+ var fn, val;
426
+ if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$8(fn, input))) return val;
427
+ if (isCallable$c(fn = input.valueOf) && !isObject$5(val = call$8(fn, input))) return val;
428
+ if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$8(fn, input))) return val;
429
+ throw $TypeError$6("Can't convert object to primitive value");
430
+ };
431
+
432
+ var call$7 = functionCall;
433
+ var isObject$4 = isObject$8;
434
+ var isSymbol$1 = isSymbol$2;
435
+ var getMethod$2 = getMethod$3;
436
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
437
+ var wellKnownSymbol$b = wellKnownSymbol$c;
438
+
439
+ var $TypeError$5 = TypeError;
440
+ var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
441
+
442
+ // `ToPrimitive` abstract operation
443
+ // https://tc39.es/ecma262/#sec-toprimitive
444
+ var toPrimitive$1 = function (input, pref) {
445
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
446
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
447
+ var result;
448
+ if (exoticToPrim) {
449
+ if (pref === undefined) pref = 'default';
450
+ result = call$7(exoticToPrim, input, pref);
451
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
452
+ throw $TypeError$5("Can't convert object to primitive value");
453
+ }
454
+ if (pref === undefined) pref = 'number';
455
+ return ordinaryToPrimitive(input, pref);
456
+ };
457
+
458
+ var toPrimitive = toPrimitive$1;
459
+ var isSymbol = isSymbol$2;
460
+
461
+ // `ToPropertyKey` abstract operation
462
+ // https://tc39.es/ecma262/#sec-topropertykey
463
+ var toPropertyKey$3 = function (argument) {
464
+ var key = toPrimitive(argument, 'string');
465
+ return isSymbol(key) ? key : key + '';
466
+ };
467
+
468
+ var DESCRIPTORS$9 = descriptors;
469
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
470
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
471
+ var anObject$8 = anObject$9;
472
+ var toPropertyKey$2 = toPropertyKey$3;
473
+
474
+ var $TypeError$4 = TypeError;
475
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
476
+ var $defineProperty = Object.defineProperty;
477
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
478
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
479
+ var ENUMERABLE = 'enumerable';
480
+ var CONFIGURABLE$1 = 'configurable';
481
+ var WRITABLE = 'writable';
482
+
483
+ // `Object.defineProperty` method
484
+ // https://tc39.es/ecma262/#sec-object.defineproperty
485
+ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
486
+ anObject$8(O);
487
+ P = toPropertyKey$2(P);
488
+ anObject$8(Attributes);
489
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
490
+ var current = $getOwnPropertyDescriptor$1(O, P);
491
+ if (current && current[WRITABLE]) {
492
+ O[P] = Attributes.value;
493
+ Attributes = {
494
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
495
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
496
+ writable: false
497
+ };
498
+ }
499
+ } return $defineProperty(O, P, Attributes);
500
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
501
+ anObject$8(O);
502
+ P = toPropertyKey$2(P);
503
+ anObject$8(Attributes);
504
+ if (IE8_DOM_DEFINE$1) try {
505
+ return $defineProperty(O, P, Attributes);
506
+ } catch (error) { /* empty */ }
507
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$4('Accessors not supported');
508
+ if ('value' in Attributes) O[P] = Attributes.value;
509
+ return O;
510
+ };
511
+
512
+ var ceil = Math.ceil;
513
+ var floor$3 = Math.floor;
514
+
515
+ // `Math.trunc` method
516
+ // https://tc39.es/ecma262/#sec-math.trunc
517
+ // eslint-disable-next-line es/no-math-trunc -- safe
518
+ var mathTrunc = Math.trunc || function trunc(x) {
519
+ var n = +x;
520
+ return (n > 0 ? floor$3 : ceil)(n);
521
+ };
522
+
523
+ var trunc = mathTrunc;
524
+
525
+ // `ToIntegerOrInfinity` abstract operation
526
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
527
+ var toIntegerOrInfinity$3 = function (argument) {
528
+ var number = +argument;
529
+ // eslint-disable-next-line no-self-compare -- NaN check
530
+ return number !== number || number === 0 ? 0 : trunc(number);
531
+ };
532
+
533
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
534
+
535
+ var max$1 = Math.max;
536
+ var min$1 = Math.min;
537
+
538
+ // Helper for a popular repeating case of the spec:
539
+ // Let integer be ? ToInteger(index).
540
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
541
+ var toAbsoluteIndex$2 = function (index, length) {
542
+ var integer = toIntegerOrInfinity$2(index);
543
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
544
+ };
545
+
546
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
547
+
548
+ var min = Math.min;
549
+
550
+ // `ToLength` abstract operation
551
+ // https://tc39.es/ecma262/#sec-tolength
552
+ var toLength$1 = function (argument) {
553
+ return argument > 0 ? min(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
554
+ };
555
+
556
+ var toLength = toLength$1;
557
+
558
+ // `LengthOfArrayLike` abstract operation
559
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
560
+ var lengthOfArrayLike$3 = function (obj) {
561
+ return toLength(obj.length);
562
+ };
563
+
564
+ var toIndexedObject$4 = toIndexedObject$5;
565
+ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
566
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
567
+
568
+ // `Array.prototype.{ indexOf, includes }` methods implementation
569
+ var createMethod$1 = function (IS_INCLUDES) {
570
+ return function ($this, el, fromIndex) {
571
+ var O = toIndexedObject$4($this);
572
+ var length = lengthOfArrayLike$2(O);
573
+ var index = toAbsoluteIndex$1(fromIndex, length);
574
+ var value;
575
+ // Array#includes uses SameValueZero equality algorithm
576
+ // eslint-disable-next-line no-self-compare -- NaN check
577
+ if (IS_INCLUDES && el != el) while (length > index) {
578
+ value = O[index++];
579
+ // eslint-disable-next-line no-self-compare -- NaN check
580
+ if (value != value) return true;
581
+ // Array#indexOf ignores holes, Array#includes - not
582
+ } else for (;length > index; index++) {
583
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
584
+ } return !IS_INCLUDES && -1;
585
+ };
586
+ };
587
+
588
+ var arrayIncludes = {
589
+ // `Array.prototype.includes` method
590
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
591
+ includes: createMethod$1(true),
592
+ // `Array.prototype.indexOf` method
593
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
594
+ indexOf: createMethod$1(false)
595
+ };
596
+
597
+ var hiddenKeys$4 = {};
598
+
599
+ var uncurryThis$a = functionUncurryThis;
600
+ var hasOwn$9 = hasOwnProperty_1;
601
+ var toIndexedObject$3 = toIndexedObject$5;
602
+ var indexOf = arrayIncludes.indexOf;
603
+ var hiddenKeys$3 = hiddenKeys$4;
604
+
605
+ var push$3 = uncurryThis$a([].push);
606
+
607
+ var objectKeysInternal = function (object, names) {
608
+ var O = toIndexedObject$3(object);
609
+ var i = 0;
610
+ var result = [];
611
+ var key;
612
+ for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$3(result, key);
613
+ // Don't enum bug & hidden keys
614
+ while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
615
+ ~indexOf(result, key) || push$3(result, key);
616
+ }
617
+ return result;
618
+ };
619
+
620
+ // IE8- don't enum bug keys
621
+ var enumBugKeys$3 = [
622
+ 'constructor',
623
+ 'hasOwnProperty',
624
+ 'isPrototypeOf',
625
+ 'propertyIsEnumerable',
626
+ 'toLocaleString',
627
+ 'toString',
628
+ 'valueOf'
629
+ ];
630
+
631
+ var internalObjectKeys$1 = objectKeysInternal;
632
+ var enumBugKeys$2 = enumBugKeys$3;
633
+
634
+ // `Object.keys` method
635
+ // https://tc39.es/ecma262/#sec-object.keys
636
+ // eslint-disable-next-line es/no-object-keys -- safe
637
+ var objectKeys$2 = Object.keys || function keys(O) {
638
+ return internalObjectKeys$1(O, enumBugKeys$2);
639
+ };
640
+
641
+ var DESCRIPTORS$8 = descriptors;
642
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
643
+ var definePropertyModule$4 = objectDefineProperty;
644
+ var anObject$7 = anObject$9;
645
+ var toIndexedObject$2 = toIndexedObject$5;
646
+ var objectKeys$1 = objectKeys$2;
647
+
648
+ // `Object.defineProperties` method
649
+ // https://tc39.es/ecma262/#sec-object.defineproperties
650
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
651
+ objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
652
+ anObject$7(O);
653
+ var props = toIndexedObject$2(Properties);
654
+ var keys = objectKeys$1(Properties);
655
+ var length = keys.length;
656
+ var index = 0;
657
+ var key;
658
+ while (length > index) definePropertyModule$4.f(O, key = keys[index++], props[key]);
659
+ return O;
660
+ };
661
+
662
+ var getBuiltIn$2 = getBuiltIn$5;
663
+
664
+ var html$2 = getBuiltIn$2('document', 'documentElement');
665
+
666
+ var shared$1 = shared$3.exports;
667
+ var uid = uid$2;
668
+
669
+ var keys = shared$1('keys');
670
+
671
+ var sharedKey$3 = function (key) {
672
+ return keys[key] || (keys[key] = uid(key));
673
+ };
674
+
675
+ /* global ActiveXObject -- old IE, WSH */
676
+
677
+ var anObject$6 = anObject$9;
678
+ var definePropertiesModule = objectDefineProperties;
679
+ var enumBugKeys$1 = enumBugKeys$3;
680
+ var hiddenKeys$2 = hiddenKeys$4;
681
+ var html$1 = html$2;
682
+ var documentCreateElement$1 = documentCreateElement$2;
683
+ var sharedKey$2 = sharedKey$3;
684
+
685
+ var GT = '>';
686
+ var LT = '<';
687
+ var PROTOTYPE = 'prototype';
688
+ var SCRIPT = 'script';
689
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
690
+
691
+ var EmptyConstructor = function () { /* empty */ };
692
+
693
+ var scriptTag = function (content) {
694
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
695
+ };
696
+
697
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
698
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
699
+ activeXDocument.write(scriptTag(''));
700
+ activeXDocument.close();
701
+ var temp = activeXDocument.parentWindow.Object;
702
+ activeXDocument = null; // avoid memory leak
703
+ return temp;
704
+ };
705
+
706
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
707
+ var NullProtoObjectViaIFrame = function () {
708
+ // Thrash, waste and sodomy: IE GC bug
709
+ var iframe = documentCreateElement$1('iframe');
710
+ var JS = 'java' + SCRIPT + ':';
711
+ var iframeDocument;
712
+ iframe.style.display = 'none';
713
+ html$1.appendChild(iframe);
714
+ // https://github.com/zloirock/core-js/issues/475
715
+ iframe.src = String(JS);
716
+ iframeDocument = iframe.contentWindow.document;
717
+ iframeDocument.open();
718
+ iframeDocument.write(scriptTag('document.F=Object'));
719
+ iframeDocument.close();
720
+ return iframeDocument.F;
721
+ };
722
+
723
+ // Check for document.domain and active x support
724
+ // No need to use active x approach when document.domain is not set
725
+ // see https://github.com/es-shims/es5-shim/issues/150
726
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
727
+ // avoid IE GC bug
728
+ var activeXDocument;
729
+ var NullProtoObject = function () {
730
+ try {
731
+ activeXDocument = new ActiveXObject('htmlfile');
732
+ } catch (error) { /* ignore */ }
733
+ NullProtoObject = typeof document != 'undefined'
734
+ ? document.domain && activeXDocument
735
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
736
+ : NullProtoObjectViaIFrame()
737
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
738
+ var length = enumBugKeys$1.length;
739
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
740
+ return NullProtoObject();
741
+ };
742
+
743
+ hiddenKeys$2[IE_PROTO$1] = true;
744
+
745
+ // `Object.create` method
746
+ // https://tc39.es/ecma262/#sec-object.create
747
+ // eslint-disable-next-line es/no-object-create -- safe
748
+ var objectCreate = Object.create || function create(O, Properties) {
749
+ var result;
750
+ if (O !== null) {
751
+ EmptyConstructor[PROTOTYPE] = anObject$6(O);
752
+ result = new EmptyConstructor();
753
+ EmptyConstructor[PROTOTYPE] = null;
754
+ // add "__proto__" for Object.getPrototypeOf polyfill
755
+ result[IE_PROTO$1] = O;
756
+ } else result = NullProtoObject();
757
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
758
+ };
759
+
760
+ var wellKnownSymbol$a = wellKnownSymbol$c;
761
+ var create$3 = objectCreate;
762
+ var defineProperty$5 = objectDefineProperty.f;
763
+
764
+ var UNSCOPABLES = wellKnownSymbol$a('unscopables');
765
+ var ArrayPrototype$1 = Array.prototype;
766
+
767
+ // Array.prototype[@@unscopables]
768
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
769
+ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
770
+ defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
771
+ configurable: true,
772
+ value: create$3(null)
773
+ });
774
+ }
775
+
776
+ // add a key to Array.prototype[@@unscopables]
777
+ var addToUnscopables$1 = function (key) {
778
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
779
+ };
780
+
781
+ var iterators = {};
782
+
783
+ var global$6 = global$d;
784
+ var isCallable$b = isCallable$h;
785
+
786
+ var WeakMap$2 = global$6.WeakMap;
787
+
788
+ var weakMapBasicDetection = isCallable$b(WeakMap$2) && /native code/.test(String(WeakMap$2));
789
+
790
+ var createPropertyDescriptor$5 = function (bitmap, value) {
791
+ return {
792
+ enumerable: !(bitmap & 1),
793
+ configurable: !(bitmap & 2),
794
+ writable: !(bitmap & 4),
795
+ value: value
796
+ };
797
+ };
798
+
799
+ var DESCRIPTORS$7 = descriptors;
800
+ var definePropertyModule$3 = objectDefineProperty;
801
+ var createPropertyDescriptor$4 = createPropertyDescriptor$5;
802
+
803
+ var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value) {
804
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$4(1, value));
805
+ } : function (object, key, value) {
806
+ object[key] = value;
807
+ return object;
808
+ };
809
+
810
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
811
+ var global$5 = global$d;
812
+ var isObject$3 = isObject$8;
813
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
814
+ var hasOwn$8 = hasOwnProperty_1;
815
+ var shared = sharedStore;
816
+ var sharedKey$1 = sharedKey$3;
817
+ var hiddenKeys$1 = hiddenKeys$4;
818
+
819
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
820
+ var TypeError$3 = global$5.TypeError;
821
+ var WeakMap$1 = global$5.WeakMap;
822
+ var set, get, has;
823
+
824
+ var enforce = function (it) {
825
+ return has(it) ? get(it) : set(it, {});
826
+ };
827
+
828
+ var getterFor = function (TYPE) {
829
+ return function (it) {
830
+ var state;
831
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
832
+ throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
833
+ } return state;
834
+ };
835
+ };
836
+
837
+ if (NATIVE_WEAK_MAP || shared.state) {
838
+ var store$1 = shared.state || (shared.state = new WeakMap$1());
839
+ /* eslint-disable no-self-assign -- prototype methods protection */
840
+ store$1.get = store$1.get;
841
+ store$1.has = store$1.has;
842
+ store$1.set = store$1.set;
843
+ /* eslint-enable no-self-assign -- prototype methods protection */
844
+ set = function (it, metadata) {
845
+ if (store$1.has(it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
846
+ metadata.facade = it;
847
+ store$1.set(it, metadata);
848
+ return metadata;
849
+ };
850
+ get = function (it) {
851
+ return store$1.get(it) || {};
852
+ };
853
+ has = function (it) {
854
+ return store$1.has(it);
855
+ };
856
+ } else {
857
+ var STATE = sharedKey$1('state');
858
+ hiddenKeys$1[STATE] = true;
859
+ set = function (it, metadata) {
860
+ if (hasOwn$8(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
861
+ metadata.facade = it;
862
+ createNonEnumerableProperty$3(it, STATE, metadata);
863
+ return metadata;
864
+ };
865
+ get = function (it) {
866
+ return hasOwn$8(it, STATE) ? it[STATE] : {};
867
+ };
868
+ has = function (it) {
869
+ return hasOwn$8(it, STATE);
870
+ };
871
+ }
872
+
873
+ var internalState = {
874
+ set: set,
875
+ get: get,
876
+ has: has,
877
+ enforce: enforce,
878
+ getterFor: getterFor
879
+ };
880
+
881
+ var objectGetOwnPropertyDescriptor = {};
882
+
883
+ var objectPropertyIsEnumerable = {};
884
+
885
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
886
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
887
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
888
+
889
+ // Nashorn ~ JDK8 bug
890
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
891
+
892
+ // `Object.prototype.propertyIsEnumerable` method implementation
893
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
894
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
895
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
896
+ return !!descriptor && descriptor.enumerable;
897
+ } : $propertyIsEnumerable;
898
+
899
+ var DESCRIPTORS$6 = descriptors;
900
+ var call$6 = functionCall;
901
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
902
+ var createPropertyDescriptor$3 = createPropertyDescriptor$5;
903
+ var toIndexedObject$1 = toIndexedObject$5;
904
+ var toPropertyKey$1 = toPropertyKey$3;
905
+ var hasOwn$7 = hasOwnProperty_1;
906
+ var IE8_DOM_DEFINE = ie8DomDefine;
907
+
908
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
909
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
910
+
911
+ // `Object.getOwnPropertyDescriptor` method
912
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
913
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
914
+ O = toIndexedObject$1(O);
915
+ P = toPropertyKey$1(P);
916
+ if (IE8_DOM_DEFINE) try {
917
+ return $getOwnPropertyDescriptor(O, P);
918
+ } catch (error) { /* empty */ }
919
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$3(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
920
+ };
921
+
922
+ var makeBuiltIn$3 = {exports: {}};
923
+
924
+ var DESCRIPTORS$5 = descriptors;
925
+ var hasOwn$6 = hasOwnProperty_1;
926
+
927
+ var FunctionPrototype = Function.prototype;
928
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
929
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
930
+
931
+ var EXISTS = hasOwn$6(FunctionPrototype, 'name');
932
+ // additional protection from minified / mangled / dropped function names
933
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
934
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
935
+
936
+ var functionName = {
937
+ EXISTS: EXISTS,
938
+ PROPER: PROPER,
939
+ CONFIGURABLE: CONFIGURABLE
940
+ };
941
+
942
+ var uncurryThis$9 = functionUncurryThis;
943
+ var isCallable$a = isCallable$h;
944
+ var store = sharedStore;
945
+
946
+ var functionToString = uncurryThis$9(Function.toString);
947
+
948
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
949
+ if (!isCallable$a(store.inspectSource)) {
950
+ store.inspectSource = function (it) {
951
+ return functionToString(it);
952
+ };
953
+ }
954
+
955
+ var inspectSource$2 = store.inspectSource;
956
+
957
+ var fails$6 = fails$d;
958
+ var isCallable$9 = isCallable$h;
959
+ var hasOwn$5 = hasOwnProperty_1;
960
+ var DESCRIPTORS$4 = descriptors;
961
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
962
+ var inspectSource$1 = inspectSource$2;
963
+ var InternalStateModule$4 = internalState;
964
+
965
+ var enforceInternalState = InternalStateModule$4.enforce;
966
+ var getInternalState$2 = InternalStateModule$4.get;
967
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
968
+ var defineProperty$4 = Object.defineProperty;
969
+
970
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$6(function () {
971
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
972
+ });
973
+
974
+ var TEMPLATE = String(String).split('String');
975
+
976
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
977
+ if (String(name).slice(0, 7) === 'Symbol(') {
978
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
979
+ }
980
+ if (options && options.getter) name = 'get ' + name;
981
+ if (options && options.setter) name = 'set ' + name;
982
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
983
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
984
+ else value.name = name;
985
+ }
986
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
987
+ defineProperty$4(value, 'length', { value: options.arity });
988
+ }
989
+ try {
990
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
991
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
992
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
993
+ } else if (value.prototype) value.prototype = undefined;
994
+ } catch (error) { /* empty */ }
995
+ var state = enforceInternalState(value);
996
+ if (!hasOwn$5(state, 'source')) {
997
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
998
+ } return value;
999
+ };
1000
+
1001
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1002
+ // eslint-disable-next-line no-extend-native -- required
1003
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
1004
+ return isCallable$9(this) && getInternalState$2(this).source || inspectSource$1(this);
1005
+ }, 'toString');
1006
+
1007
+ var isCallable$8 = isCallable$h;
1008
+ var definePropertyModule$2 = objectDefineProperty;
1009
+ var makeBuiltIn$1 = makeBuiltIn$3.exports;
1010
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
1011
+
1012
+ var defineBuiltIn$6 = function (O, key, value, options) {
1013
+ if (!options) options = {};
1014
+ var simple = options.enumerable;
1015
+ var name = options.name !== undefined ? options.name : key;
1016
+ if (isCallable$8(value)) makeBuiltIn$1(value, name, options);
1017
+ if (options.global) {
1018
+ if (simple) O[key] = value;
1019
+ else defineGlobalProperty$1(key, value);
1020
+ } else {
1021
+ try {
1022
+ if (!options.unsafe) delete O[key];
1023
+ else if (O[key]) simple = true;
1024
+ } catch (error) { /* empty */ }
1025
+ if (simple) O[key] = value;
1026
+ else definePropertyModule$2.f(O, key, {
1027
+ value: value,
1028
+ enumerable: false,
1029
+ configurable: !options.nonConfigurable,
1030
+ writable: !options.nonWritable
1031
+ });
1032
+ } return O;
1033
+ };
1034
+
1035
+ var objectGetOwnPropertyNames = {};
1036
+
1037
+ var internalObjectKeys = objectKeysInternal;
1038
+ var enumBugKeys = enumBugKeys$3;
1039
+
1040
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1041
+
1042
+ // `Object.getOwnPropertyNames` method
1043
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1044
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1045
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1046
+ return internalObjectKeys(O, hiddenKeys);
1047
+ };
1048
+
1049
+ var objectGetOwnPropertySymbols = {};
1050
+
1051
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1052
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1053
+
1054
+ var getBuiltIn$1 = getBuiltIn$5;
1055
+ var uncurryThis$8 = functionUncurryThis;
1056
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1057
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1058
+ var anObject$5 = anObject$9;
1059
+
1060
+ var concat$1 = uncurryThis$8([].concat);
1061
+
1062
+ // all object keys, includes non-enumerable and symbols
1063
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
1064
+ var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1065
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1066
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1067
+ };
1068
+
1069
+ var hasOwn$4 = hasOwnProperty_1;
1070
+ var ownKeys = ownKeys$1;
1071
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1072
+ var definePropertyModule$1 = objectDefineProperty;
1073
+
1074
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1075
+ var keys = ownKeys(source);
1076
+ var defineProperty = definePropertyModule$1.f;
1077
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1078
+ for (var i = 0; i < keys.length; i++) {
1079
+ var key = keys[i];
1080
+ if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
1081
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1082
+ }
1083
+ }
1084
+ };
1085
+
1086
+ var fails$5 = fails$d;
1087
+ var isCallable$7 = isCallable$h;
1088
+
1089
+ var replacement = /#|\.prototype\./;
1090
+
1091
+ var isForced$1 = function (feature, detection) {
1092
+ var value = data[normalize(feature)];
1093
+ return value == POLYFILL ? true
1094
+ : value == NATIVE ? false
1095
+ : isCallable$7(detection) ? fails$5(detection)
1096
+ : !!detection;
1097
+ };
1098
+
1099
+ var normalize = isForced$1.normalize = function (string) {
1100
+ return String(string).replace(replacement, '.').toLowerCase();
1101
+ };
1102
+
1103
+ var data = isForced$1.data = {};
1104
+ var NATIVE = isForced$1.NATIVE = 'N';
1105
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1106
+
1107
+ var isForced_1 = isForced$1;
1108
+
1109
+ var global$4 = global$d;
1110
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1111
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1112
+ var defineBuiltIn$5 = defineBuiltIn$6;
1113
+ var defineGlobalProperty = defineGlobalProperty$3;
1114
+ var copyConstructorProperties = copyConstructorProperties$1;
1115
+ var isForced = isForced_1;
1116
+
1117
+ /*
1118
+ options.target - name of the target object
1119
+ options.global - target is the global object
1120
+ options.stat - export as static methods of target
1121
+ options.proto - export as prototype methods of target
1122
+ options.real - real prototype method for the `pure` version
1123
+ options.forced - export even if the native feature is available
1124
+ options.bind - bind methods to the target, required for the `pure` version
1125
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1126
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1127
+ options.sham - add a flag to not completely full polyfills
1128
+ options.enumerable - export as enumerable property
1129
+ options.dontCallGetSet - prevent calling a getter on target
1130
+ options.name - the .name of the function if it does not match the key
1131
+ */
1132
+ var _export = function (options, source) {
1133
+ var TARGET = options.target;
1134
+ var GLOBAL = options.global;
1135
+ var STATIC = options.stat;
1136
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1137
+ if (GLOBAL) {
1138
+ target = global$4;
1139
+ } else if (STATIC) {
1140
+ target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
1141
+ } else {
1142
+ target = (global$4[TARGET] || {}).prototype;
1143
+ }
1144
+ if (target) for (key in source) {
1145
+ sourceProperty = source[key];
1146
+ if (options.dontCallGetSet) {
1147
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1148
+ targetProperty = descriptor && descriptor.value;
1149
+ } else targetProperty = target[key];
1150
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1151
+ // contained in target
1152
+ if (!FORCED && targetProperty !== undefined) {
1153
+ if (typeof sourceProperty == typeof targetProperty) continue;
1154
+ copyConstructorProperties(sourceProperty, targetProperty);
1155
+ }
1156
+ // add a flag to not completely full polyfills
1157
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1158
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1159
+ }
1160
+ defineBuiltIn$5(target, key, sourceProperty, options);
1161
+ }
1162
+ };
1163
+
1164
+ var fails$4 = fails$d;
1165
+
1166
+ var correctPrototypeGetter = !fails$4(function () {
1167
+ function F() { /* empty */ }
1168
+ F.prototype.constructor = null;
1169
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1170
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1171
+ });
1172
+
1173
+ var hasOwn$3 = hasOwnProperty_1;
1174
+ var isCallable$6 = isCallable$h;
1175
+ var toObject$2 = toObject$4;
1176
+ var sharedKey = sharedKey$3;
1177
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1178
+
1179
+ var IE_PROTO = sharedKey('IE_PROTO');
1180
+ var $Object$1 = Object;
1181
+ var ObjectPrototype = $Object$1.prototype;
1182
+
1183
+ // `Object.getPrototypeOf` method
1184
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1185
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1186
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1187
+ var object = toObject$2(O);
1188
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
1189
+ var constructor = object.constructor;
1190
+ if (isCallable$6(constructor) && object instanceof constructor) {
1191
+ return constructor.prototype;
1192
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1193
+ };
1194
+
1195
+ var fails$3 = fails$d;
1196
+ var isCallable$5 = isCallable$h;
1197
+ var isObject$2 = isObject$8;
1198
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1199
+ var defineBuiltIn$4 = defineBuiltIn$6;
1200
+ var wellKnownSymbol$9 = wellKnownSymbol$c;
1201
+
1202
+ var ITERATOR$6 = wellKnownSymbol$9('iterator');
1203
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1204
+
1205
+ // `%IteratorPrototype%` object
1206
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1207
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1208
+
1209
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1210
+ if ([].keys) {
1211
+ arrayIterator = [].keys();
1212
+ // Safari 8 has buggy iterators w/o `next`
1213
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1214
+ else {
1215
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1216
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1217
+ }
1218
+ }
1219
+
1220
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$3(function () {
1221
+ var test = {};
1222
+ // FF44- legacy iterators case
1223
+ return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
1224
+ });
1225
+
1226
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1227
+
1228
+ // `%IteratorPrototype%[@@iterator]()` method
1229
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1230
+ if (!isCallable$5(IteratorPrototype$2[ITERATOR$6])) {
1231
+ defineBuiltIn$4(IteratorPrototype$2, ITERATOR$6, function () {
1232
+ return this;
1233
+ });
1234
+ }
1235
+
1236
+ var iteratorsCore = {
1237
+ IteratorPrototype: IteratorPrototype$2,
1238
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1239
+ };
1240
+
1241
+ var defineProperty$3 = objectDefineProperty.f;
1242
+ var hasOwn$2 = hasOwnProperty_1;
1243
+ var wellKnownSymbol$8 = wellKnownSymbol$c;
1244
+
1245
+ var TO_STRING_TAG$3 = wellKnownSymbol$8('toStringTag');
1246
+
1247
+ var setToStringTag$4 = function (target, TAG, STATIC) {
1248
+ if (target && !STATIC) target = target.prototype;
1249
+ if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1250
+ defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1251
+ }
1252
+ };
1253
+
1254
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1255
+ var create$2 = objectCreate;
1256
+ var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1257
+ var setToStringTag$3 = setToStringTag$4;
1258
+ var Iterators$4 = iterators;
1259
+
1260
+ var returnThis$1 = function () { return this; };
1261
+
1262
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1263
+ var TO_STRING_TAG = NAME + ' Iterator';
1264
+ IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
1265
+ setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1266
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1267
+ return IteratorConstructor;
1268
+ };
1269
+
1270
+ var isCallable$4 = isCallable$h;
1271
+
1272
+ var $String$1 = String;
1273
+ var $TypeError$3 = TypeError;
1274
+
1275
+ var aPossiblePrototype$1 = function (argument) {
1276
+ if (typeof argument == 'object' || isCallable$4(argument)) return argument;
1277
+ throw $TypeError$3("Can't set " + $String$1(argument) + ' as a prototype');
1278
+ };
1279
+
1280
+ /* eslint-disable no-proto -- safe */
1281
+
1282
+ var uncurryThis$7 = functionUncurryThis;
1283
+ var anObject$4 = anObject$9;
1284
+ var aPossiblePrototype = aPossiblePrototype$1;
1285
+
1286
+ // `Object.setPrototypeOf` method
1287
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1288
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1289
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1290
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1291
+ var CORRECT_SETTER = false;
1292
+ var test = {};
1293
+ var setter;
1294
+ try {
1295
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1296
+ setter = uncurryThis$7(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1297
+ setter(test, []);
1298
+ CORRECT_SETTER = test instanceof Array;
1299
+ } catch (error) { /* empty */ }
1300
+ return function setPrototypeOf(O, proto) {
1301
+ anObject$4(O);
1302
+ aPossiblePrototype(proto);
1303
+ if (CORRECT_SETTER) setter(O, proto);
1304
+ else O.__proto__ = proto;
1305
+ return O;
1306
+ };
1307
+ }() : undefined);
1308
+
1309
+ var $$2 = _export;
1310
+ var call$5 = functionCall;
1311
+ var FunctionName = functionName;
1312
+ var isCallable$3 = isCallable$h;
1313
+ var createIteratorConstructor$1 = iteratorCreateConstructor;
1314
+ var getPrototypeOf = objectGetPrototypeOf;
1315
+ var setPrototypeOf = objectSetPrototypeOf;
1316
+ var setToStringTag$2 = setToStringTag$4;
1317
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1318
+ var defineBuiltIn$3 = defineBuiltIn$6;
1319
+ var wellKnownSymbol$7 = wellKnownSymbol$c;
1320
+ var Iterators$3 = iterators;
1321
+ var IteratorsCore = iteratorsCore;
1322
+
1323
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1324
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1325
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1326
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1327
+ var ITERATOR$5 = wellKnownSymbol$7('iterator');
1328
+ var KEYS = 'keys';
1329
+ var VALUES = 'values';
1330
+ var ENTRIES = 'entries';
1331
+
1332
+ var returnThis = function () { return this; };
1333
+
1334
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1335
+ createIteratorConstructor$1(IteratorConstructor, NAME, next);
1336
+
1337
+ var getIterationMethod = function (KIND) {
1338
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1339
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1340
+ switch (KIND) {
1341
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1342
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1343
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1344
+ } return function () { return new IteratorConstructor(this); };
1345
+ };
1346
+
1347
+ var TO_STRING_TAG = NAME + ' Iterator';
1348
+ var INCORRECT_VALUES_NAME = false;
1349
+ var IterablePrototype = Iterable.prototype;
1350
+ var nativeIterator = IterablePrototype[ITERATOR$5]
1351
+ || IterablePrototype['@@iterator']
1352
+ || DEFAULT && IterablePrototype[DEFAULT];
1353
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1354
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1355
+ var CurrentIteratorPrototype, methods, KEY;
1356
+
1357
+ // fix native
1358
+ if (anyNativeIterator) {
1359
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1360
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1361
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1362
+ if (setPrototypeOf) {
1363
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1364
+ } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$5])) {
1365
+ defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$5, returnThis);
1366
+ }
1367
+ }
1368
+ // Set @@toStringTag to native iterators
1369
+ setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1370
+ }
1371
+ }
1372
+
1373
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1374
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1375
+ if (CONFIGURABLE_FUNCTION_NAME) {
1376
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1377
+ } else {
1378
+ INCORRECT_VALUES_NAME = true;
1379
+ defaultIterator = function values() { return call$5(nativeIterator, this); };
1380
+ }
1381
+ }
1382
+
1383
+ // export additional methods
1384
+ if (DEFAULT) {
1385
+ methods = {
1386
+ values: getIterationMethod(VALUES),
1387
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1388
+ entries: getIterationMethod(ENTRIES)
1389
+ };
1390
+ if (FORCED) for (KEY in methods) {
1391
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1392
+ defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1393
+ }
1394
+ } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1395
+ }
1396
+
1397
+ // define iterator
1398
+ if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
1399
+ defineBuiltIn$3(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
1400
+ }
1401
+ Iterators$3[NAME] = defaultIterator;
1402
+
1403
+ return methods;
1404
+ };
1405
+
1406
+ // `CreateIterResultObject` abstract operation
1407
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1408
+ var createIterResultObject$2 = function (value, done) {
1409
+ return { value: value, done: done };
1410
+ };
1411
+
1412
+ var toIndexedObject = toIndexedObject$5;
1413
+ var addToUnscopables = addToUnscopables$1;
1414
+ var Iterators$2 = iterators;
1415
+ var InternalStateModule$3 = internalState;
1416
+ var defineProperty$2 = objectDefineProperty.f;
1417
+ var defineIterator$1 = iteratorDefine;
1418
+ var createIterResultObject$1 = createIterResultObject$2;
1419
+ var DESCRIPTORS$3 = descriptors;
1420
+
1421
+ var ARRAY_ITERATOR = 'Array Iterator';
1422
+ var setInternalState$3 = InternalStateModule$3.set;
1423
+ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
1424
+
1425
+ // `Array.prototype.entries` method
1426
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1427
+ // `Array.prototype.keys` method
1428
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1429
+ // `Array.prototype.values` method
1430
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1431
+ // `Array.prototype[@@iterator]` method
1432
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1433
+ // `CreateArrayIterator` internal method
1434
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1435
+ var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
1436
+ setInternalState$3(this, {
1437
+ type: ARRAY_ITERATOR,
1438
+ target: toIndexedObject(iterated), // target
1439
+ index: 0, // next index
1440
+ kind: kind // kind
1441
+ });
1442
+ // `%ArrayIteratorPrototype%.next` method
1443
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1444
+ }, function () {
1445
+ var state = getInternalState$1(this);
1446
+ var target = state.target;
1447
+ var kind = state.kind;
1448
+ var index = state.index++;
1449
+ if (!target || index >= target.length) {
1450
+ state.target = undefined;
1451
+ return createIterResultObject$1(undefined, true);
1452
+ }
1453
+ if (kind == 'keys') return createIterResultObject$1(index, false);
1454
+ if (kind == 'values') return createIterResultObject$1(target[index], false);
1455
+ return createIterResultObject$1([index, target[index]], false);
1456
+ }, 'values');
1457
+
1458
+ // argumentsList[@@iterator] is %ArrayProto_values%
1459
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1460
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1461
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1462
+
1463
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1464
+ addToUnscopables('keys');
1465
+ addToUnscopables('values');
1466
+ addToUnscopables('entries');
1467
+
1468
+ // V8 ~ Chrome 45- bug
1469
+ if (DESCRIPTORS$3 && values.name !== 'values') try {
1470
+ defineProperty$2(values, 'name', { value: 'values' });
1471
+ } catch (error) { /* empty */ }
1472
+
1473
+ // iterable DOM collections
1474
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1475
+ var domIterables = {
1476
+ CSSRuleList: 0,
1477
+ CSSStyleDeclaration: 0,
1478
+ CSSValueList: 0,
1479
+ ClientRectList: 0,
1480
+ DOMRectList: 0,
1481
+ DOMStringList: 0,
1482
+ DOMTokenList: 1,
1483
+ DataTransferItemList: 0,
1484
+ FileList: 0,
1485
+ HTMLAllCollection: 0,
1486
+ HTMLCollection: 0,
1487
+ HTMLFormElement: 0,
1488
+ HTMLSelectElement: 0,
1489
+ MediaList: 0,
1490
+ MimeTypeArray: 0,
1491
+ NamedNodeMap: 0,
1492
+ NodeList: 1,
1493
+ PaintRequestList: 0,
1494
+ Plugin: 0,
1495
+ PluginArray: 0,
1496
+ SVGLengthList: 0,
1497
+ SVGNumberList: 0,
1498
+ SVGPathSegList: 0,
1499
+ SVGPointList: 0,
1500
+ SVGStringList: 0,
1501
+ SVGTransformList: 0,
1502
+ SourceBufferList: 0,
1503
+ StyleSheetList: 0,
1504
+ TextTrackCueList: 0,
1505
+ TextTrackList: 0,
1506
+ TouchList: 0
1507
+ };
1508
+
1509
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1510
+ var documentCreateElement = documentCreateElement$2;
1511
+
1512
+ var classList = documentCreateElement('span').classList;
1513
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1514
+
1515
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1516
+
1517
+ var global$3 = global$d;
1518
+ var DOMIterables = domIterables;
1519
+ var DOMTokenListPrototype = domTokenListPrototype;
1520
+ var ArrayIteratorMethods = es_array_iterator;
1521
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
1522
+ var wellKnownSymbol$6 = wellKnownSymbol$c;
1523
+
1524
+ var ITERATOR$4 = wellKnownSymbol$6('iterator');
1525
+ var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
1526
+ var ArrayValues = ArrayIteratorMethods.values;
1527
+
1528
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1529
+ if (CollectionPrototype) {
1530
+ // some Chrome versions have non-configurable methods on DOMTokenList
1531
+ if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
1532
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
1533
+ } catch (error) {
1534
+ CollectionPrototype[ITERATOR$4] = ArrayValues;
1535
+ }
1536
+ if (!CollectionPrototype[TO_STRING_TAG$2]) {
1537
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1538
+ }
1539
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1540
+ // some Chrome versions have non-configurable methods on DOMTokenList
1541
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1542
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1543
+ } catch (error) {
1544
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1545
+ }
1546
+ }
1547
+ }
1548
+ };
1549
+
1550
+ for (var COLLECTION_NAME in DOMIterables) {
1551
+ handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype, COLLECTION_NAME);
1552
+ }
1553
+
1554
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1555
+
1556
+ var wellKnownSymbol$5 = wellKnownSymbol$c;
1557
+
1558
+ var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
1559
+ var test = {};
1560
+
1561
+ test[TO_STRING_TAG$1] = 'z';
1562
+
1563
+ var toStringTagSupport = String(test) === '[object z]';
1564
+
1565
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1566
+ var isCallable$2 = isCallable$h;
1567
+ var classofRaw = classofRaw$2;
1568
+ var wellKnownSymbol$4 = wellKnownSymbol$c;
1569
+
1570
+ var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1571
+ var $Object = Object;
1572
+
1573
+ // ES3 wrong here
1574
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1575
+
1576
+ // fallback for IE11 Script Access Denied error
1577
+ var tryGet = function (it, key) {
1578
+ try {
1579
+ return it[key];
1580
+ } catch (error) { /* empty */ }
1581
+ };
1582
+
1583
+ // getting tag from ES6+ `Object.prototype.toString`
1584
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1585
+ var O, tag, result;
1586
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1587
+ // @@toStringTag case
1588
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1589
+ // builtinTag case
1590
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1591
+ // ES3 arguments fallback
1592
+ : (result = classofRaw(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1593
+ };
1594
+
1595
+ var classof$3 = classof$4;
1596
+
1597
+ var $String = String;
1598
+
1599
+ var toString$2 = function (argument) {
1600
+ if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1601
+ return $String(argument);
1602
+ };
1603
+
1604
+ var uncurryThis$6 = functionUncurryThis;
1605
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
1606
+ var toString$1 = toString$2;
1607
+ var requireObjectCoercible = requireObjectCoercible$3;
1608
+
1609
+ var charAt$3 = uncurryThis$6(''.charAt);
1610
+ var charCodeAt$1 = uncurryThis$6(''.charCodeAt);
1611
+ var stringSlice$2 = uncurryThis$6(''.slice);
1612
+
1613
+ var createMethod = function (CONVERT_TO_STRING) {
1614
+ return function ($this, pos) {
1615
+ var S = toString$1(requireObjectCoercible($this));
1616
+ var position = toIntegerOrInfinity(pos);
1617
+ var size = S.length;
1618
+ var first, second;
1619
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1620
+ first = charCodeAt$1(S, position);
1621
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1622
+ || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
1623
+ ? CONVERT_TO_STRING
1624
+ ? charAt$3(S, position)
1625
+ : first
1626
+ : CONVERT_TO_STRING
1627
+ ? stringSlice$2(S, position, position + 2)
1628
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1629
+ };
1630
+ };
1631
+
1632
+ var stringMultibyte = {
1633
+ // `String.prototype.codePointAt` method
1634
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1635
+ codeAt: createMethod(false),
1636
+ // `String.prototype.at` method
1637
+ // https://github.com/mathiasbynens/String.prototype.at
1638
+ charAt: createMethod(true)
1639
+ };
1640
+
1641
+ var charAt$2 = stringMultibyte.charAt;
1642
+ var toString = toString$2;
1643
+ var InternalStateModule$2 = internalState;
1644
+ var defineIterator = iteratorDefine;
1645
+ var createIterResultObject = createIterResultObject$2;
1646
+
1647
+ var STRING_ITERATOR = 'String Iterator';
1648
+ var setInternalState$2 = InternalStateModule$2.set;
1649
+ var getInternalState = InternalStateModule$2.getterFor(STRING_ITERATOR);
1650
+
1651
+ // `String.prototype[@@iterator]` method
1652
+ // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
1653
+ defineIterator(String, 'String', function (iterated) {
1654
+ setInternalState$2(this, {
1655
+ type: STRING_ITERATOR,
1656
+ string: toString(iterated),
1657
+ index: 0
1658
+ });
1659
+ // `%StringIteratorPrototype%.next` method
1660
+ // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
1661
+ }, function next() {
1662
+ var state = getInternalState(this);
1663
+ var string = state.string;
1664
+ var index = state.index;
1665
+ var point;
1666
+ if (index >= string.length) return createIterResultObject(undefined, true);
1667
+ point = charAt$2(string, index);
1668
+ state.index += point.length;
1669
+ return createIterResultObject(point, false);
1670
+ });
1671
+
1672
+ var fails$2 = fails$d;
1673
+ var wellKnownSymbol$3 = wellKnownSymbol$c;
1674
+ var IS_PURE = isPure;
1675
+
1676
+ var ITERATOR$3 = wellKnownSymbol$3('iterator');
1677
+
1678
+ var urlConstructorDetection = !fails$2(function () {
1679
+ // eslint-disable-next-line unicorn/relative-url-style -- required for testing
1680
+ var url = new URL('b?a=1&b=2&c=3', 'http://a');
1681
+ var searchParams = url.searchParams;
1682
+ var result = '';
1683
+ url.pathname = 'c%20d';
1684
+ searchParams.forEach(function (value, key) {
1685
+ searchParams['delete']('b');
1686
+ result += key + value;
1687
+ });
1688
+ return (IS_PURE && !url.toJSON)
1689
+ || !searchParams.sort
1690
+ || url.href !== 'http://a/c%20d?a=1&c=3'
1691
+ || searchParams.get('c') !== '3'
1692
+ || String(new URLSearchParams('?a=1')) !== 'a=1'
1693
+ || !searchParams[ITERATOR$3]
1694
+ // throws in Edge
1695
+ || new URL('https://a@b').username !== 'a'
1696
+ || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
1697
+ // not punycoded in Edge
1698
+ || new URL('http://тест').host !== 'xn--e1aybc'
1699
+ // not escaped in Chrome 62-
1700
+ || new URL('http://a#б').hash !== '#%D0%B1'
1701
+ // fails in Chrome 66-
1702
+ || result !== 'a1c3'
1703
+ // throws in Safari
1704
+ || new URL('http://x', undefined).host !== 'x';
1705
+ });
1706
+
1707
+ var uncurryThis$5 = functionUncurryThis;
1708
+ var aCallable$1 = aCallable$3;
1709
+ var NATIVE_BIND = functionBindNative;
1710
+
1711
+ var bind$3 = uncurryThis$5(uncurryThis$5.bind);
1712
+
1713
+ // optional / simple context binding
1714
+ var functionBindContext = function (fn, that) {
1715
+ aCallable$1(fn);
1716
+ return that === undefined ? fn : NATIVE_BIND ? bind$3(fn, that) : function (/* ...args */) {
1717
+ return fn.apply(that, arguments);
1718
+ };
1719
+ };
1720
+
1721
+ var makeBuiltIn = makeBuiltIn$3.exports;
1722
+ var defineProperty$1 = objectDefineProperty;
1723
+
1724
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1725
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1726
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1727
+ return defineProperty$1.f(target, name, descriptor);
1728
+ };
1729
+
1730
+ var isPrototypeOf = objectIsPrototypeOf;
1731
+
1732
+ var $TypeError$2 = TypeError;
1733
+
1734
+ var anInstance$2 = function (it, Prototype) {
1735
+ if (isPrototypeOf(Prototype, it)) return it;
1736
+ throw $TypeError$2('Incorrect invocation');
1737
+ };
1738
+
1739
+ var DESCRIPTORS$2 = descriptors;
1740
+ var uncurryThis$4 = functionUncurryThis;
1741
+ var call$4 = functionCall;
1742
+ var fails$1 = fails$d;
1743
+ var objectKeys = objectKeys$2;
1744
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1745
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1746
+ var toObject$1 = toObject$4;
1747
+ var IndexedObject = indexedObject;
1748
+
1749
+ // eslint-disable-next-line es/no-object-assign -- safe
1750
+ var $assign = Object.assign;
1751
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1752
+ var defineProperty = Object.defineProperty;
1753
+ var concat = uncurryThis$4([].concat);
1754
+
1755
+ // `Object.assign` method
1756
+ // https://tc39.es/ecma262/#sec-object.assign
1757
+ var objectAssign = !$assign || fails$1(function () {
1758
+ // should have correct order of operations (Edge bug)
1759
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1760
+ enumerable: true,
1761
+ get: function () {
1762
+ defineProperty(this, 'b', {
1763
+ value: 3,
1764
+ enumerable: false
1765
+ });
1766
+ }
1767
+ }), { b: 2 })).b !== 1) return true;
1768
+ // should work with symbols and should have deterministic property order (V8 bug)
1769
+ var A = {};
1770
+ var B = {};
1771
+ // eslint-disable-next-line es/no-symbol -- safe
1772
+ var symbol = Symbol();
1773
+ var alphabet = 'abcdefghijklmnopqrst';
1774
+ A[symbol] = 7;
1775
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1776
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1777
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1778
+ var T = toObject$1(target);
1779
+ var argumentsLength = arguments.length;
1780
+ var index = 1;
1781
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1782
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1783
+ while (argumentsLength > index) {
1784
+ var S = IndexedObject(arguments[index++]);
1785
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1786
+ var length = keys.length;
1787
+ var j = 0;
1788
+ var key;
1789
+ while (length > j) {
1790
+ key = keys[j++];
1791
+ if (!DESCRIPTORS$2 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
1792
+ }
1793
+ } return T;
1794
+ } : $assign;
1795
+
1796
+ var call$3 = functionCall;
1797
+ var anObject$3 = anObject$9;
1798
+ var getMethod$1 = getMethod$3;
1799
+
1800
+ var iteratorClose$1 = function (iterator, kind, value) {
1801
+ var innerResult, innerError;
1802
+ anObject$3(iterator);
1803
+ try {
1804
+ innerResult = getMethod$1(iterator, 'return');
1805
+ if (!innerResult) {
1806
+ if (kind === 'throw') throw value;
1807
+ return value;
1808
+ }
1809
+ innerResult = call$3(innerResult, iterator);
1810
+ } catch (error) {
1811
+ innerError = true;
1812
+ innerResult = error;
1813
+ }
1814
+ if (kind === 'throw') throw value;
1815
+ if (innerError) throw innerResult;
1816
+ anObject$3(innerResult);
1817
+ return value;
1818
+ };
1819
+
1820
+ var anObject$2 = anObject$9;
1821
+ var iteratorClose = iteratorClose$1;
1822
+
1823
+ // call something on iterator step with safe closing on error
1824
+ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
1825
+ try {
1826
+ return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
1827
+ } catch (error) {
1828
+ iteratorClose(iterator, 'throw', error);
1829
+ }
1830
+ };
1831
+
1832
+ var wellKnownSymbol$2 = wellKnownSymbol$c;
1833
+ var Iterators$1 = iterators;
1834
+
1835
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
1836
+ var ArrayPrototype = Array.prototype;
1837
+
1838
+ // check on default Array iterator
1839
+ var isArrayIteratorMethod$1 = function (it) {
1840
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1841
+ };
1842
+
1843
+ var uncurryThis$3 = functionUncurryThis;
1844
+ var fails = fails$d;
1845
+ var isCallable$1 = isCallable$h;
1846
+ var classof$2 = classof$4;
1847
+ var getBuiltIn = getBuiltIn$5;
1848
+ var inspectSource = inspectSource$2;
1849
+
1850
+ var noop = function () { /* empty */ };
1851
+ var empty = [];
1852
+ var construct = getBuiltIn('Reflect', 'construct');
1853
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1854
+ var exec$2 = uncurryThis$3(constructorRegExp.exec);
1855
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1856
+
1857
+ var isConstructorModern = function isConstructor(argument) {
1858
+ if (!isCallable$1(argument)) return false;
1859
+ try {
1860
+ construct(noop, empty, argument);
1861
+ return true;
1862
+ } catch (error) {
1863
+ return false;
1864
+ }
1865
+ };
1866
+
1867
+ var isConstructorLegacy = function isConstructor(argument) {
1868
+ if (!isCallable$1(argument)) return false;
1869
+ switch (classof$2(argument)) {
1870
+ case 'AsyncFunction':
1871
+ case 'GeneratorFunction':
1872
+ case 'AsyncGeneratorFunction': return false;
1873
+ }
1874
+ try {
1875
+ // we can't check .prototype since constructors produced by .bind haven't it
1876
+ // `Function#toString` throws on some built-it function in some legacy engines
1877
+ // (for example, `DOMQuad` and similar in FF41-)
1878
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
1879
+ } catch (error) {
1880
+ return true;
1881
+ }
1882
+ };
1883
+
1884
+ isConstructorLegacy.sham = true;
1885
+
1886
+ // `IsConstructor` abstract operation
1887
+ // https://tc39.es/ecma262/#sec-isconstructor
1888
+ var isConstructor$1 = !construct || fails(function () {
1889
+ var called;
1890
+ return isConstructorModern(isConstructorModern.call)
1891
+ || !isConstructorModern(Object)
1892
+ || !isConstructorModern(function () { called = true; })
1893
+ || called;
1894
+ }) ? isConstructorLegacy : isConstructorModern;
1895
+
1896
+ var toPropertyKey = toPropertyKey$3;
1897
+ var definePropertyModule = objectDefineProperty;
1898
+ var createPropertyDescriptor$1 = createPropertyDescriptor$5;
1899
+
1900
+ var createProperty$2 = function (object, key, value) {
1901
+ var propertyKey = toPropertyKey(key);
1902
+ if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor$1(0, value));
1903
+ else object[propertyKey] = value;
1904
+ };
1905
+
1906
+ var classof$1 = classof$4;
1907
+ var getMethod = getMethod$3;
1908
+ var isNullOrUndefined = isNullOrUndefined$3;
1909
+ var Iterators = iterators;
1910
+ var wellKnownSymbol$1 = wellKnownSymbol$c;
1911
+
1912
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
1913
+
1914
+ var getIteratorMethod$3 = function (it) {
1915
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
1916
+ || getMethod(it, '@@iterator')
1917
+ || Iterators[classof$1(it)];
1918
+ };
1919
+
1920
+ var call$2 = functionCall;
1921
+ var aCallable = aCallable$3;
1922
+ var anObject$1 = anObject$9;
1923
+ var tryToString = tryToString$2;
1924
+ var getIteratorMethod$2 = getIteratorMethod$3;
1925
+
1926
+ var $TypeError$1 = TypeError;
1927
+
1928
+ var getIterator$2 = function (argument, usingIterator) {
1929
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
1930
+ if (aCallable(iteratorMethod)) return anObject$1(call$2(iteratorMethod, argument));
1931
+ throw $TypeError$1(tryToString(argument) + ' is not iterable');
1932
+ };
1933
+
1934
+ var bind$2 = functionBindContext;
1935
+ var call$1 = functionCall;
1936
+ var toObject = toObject$4;
1937
+ var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
1938
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1939
+ var isConstructor = isConstructor$1;
1940
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1941
+ var createProperty$1 = createProperty$2;
1942
+ var getIterator$1 = getIterator$2;
1943
+ var getIteratorMethod$1 = getIteratorMethod$3;
1944
+
1945
+ var $Array$1 = Array;
1946
+
1947
+ // `Array.from` method implementation
1948
+ // https://tc39.es/ecma262/#sec-array.from
1949
+ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
1950
+ var O = toObject(arrayLike);
1951
+ var IS_CONSTRUCTOR = isConstructor(this);
1952
+ var argumentsLength = arguments.length;
1953
+ var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
1954
+ var mapping = mapfn !== undefined;
1955
+ if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
1956
+ var iteratorMethod = getIteratorMethod$1(O);
1957
+ var index = 0;
1958
+ var length, result, step, iterator, next, value;
1959
+ // if the target is not iterable or it's an array with the default iterator - use a simple case
1960
+ if (iteratorMethod && !(this === $Array$1 && isArrayIteratorMethod(iteratorMethod))) {
1961
+ iterator = getIterator$1(O, iteratorMethod);
1962
+ next = iterator.next;
1963
+ result = IS_CONSTRUCTOR ? new this() : [];
1964
+ for (;!(step = call$1(next, iterator)).done; index++) {
1965
+ value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
1966
+ createProperty$1(result, index, value);
1967
+ }
1968
+ } else {
1969
+ length = lengthOfArrayLike$1(O);
1970
+ result = IS_CONSTRUCTOR ? new this(length) : $Array$1(length);
1971
+ for (;length > index; index++) {
1972
+ value = mapping ? mapfn(O[index], index) : O[index];
1973
+ createProperty$1(result, index, value);
1974
+ }
1975
+ }
1976
+ result.length = index;
1977
+ return result;
1978
+ };
1979
+
1980
+ var toAbsoluteIndex = toAbsoluteIndex$2;
1981
+ var lengthOfArrayLike = lengthOfArrayLike$3;
1982
+ var createProperty = createProperty$2;
1983
+
1984
+ var $Array = Array;
1985
+ var max = Math.max;
1986
+
1987
+ var arraySliceSimple = function (O, start, end) {
1988
+ var length = lengthOfArrayLike(O);
1989
+ var k = toAbsoluteIndex(start, length);
1990
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
1991
+ var result = $Array(max(fin - k, 0));
1992
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
1993
+ result.length = n;
1994
+ return result;
1995
+ };
1996
+
1997
+ // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
1998
+ var uncurryThis$2 = functionUncurryThis;
1999
+
2000
+ var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
2001
+ var base = 36;
2002
+ var tMin = 1;
2003
+ var tMax = 26;
2004
+ var skew = 38;
2005
+ var damp = 700;
2006
+ var initialBias = 72;
2007
+ var initialN = 128; // 0x80
2008
+ var delimiter = '-'; // '\x2D'
2009
+ var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
2010
+ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
2011
+ var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
2012
+ var baseMinusTMin = base - tMin;
2013
+
2014
+ var $RangeError = RangeError;
2015
+ var exec$1 = uncurryThis$2(regexSeparators.exec);
2016
+ var floor$2 = Math.floor;
2017
+ var fromCharCode = String.fromCharCode;
2018
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
2019
+ var join$2 = uncurryThis$2([].join);
2020
+ var push$2 = uncurryThis$2([].push);
2021
+ var replace$2 = uncurryThis$2(''.replace);
2022
+ var split$2 = uncurryThis$2(''.split);
2023
+ var toLowerCase$1 = uncurryThis$2(''.toLowerCase);
2024
+
2025
+ /**
2026
+ * Creates an array containing the numeric code points of each Unicode
2027
+ * character in the string. While JavaScript uses UCS-2 internally,
2028
+ * this function will convert a pair of surrogate halves (each of which
2029
+ * UCS-2 exposes as separate characters) into a single code point,
2030
+ * matching UTF-16.
2031
+ */
2032
+ var ucs2decode = function (string) {
2033
+ var output = [];
2034
+ var counter = 0;
2035
+ var length = string.length;
2036
+ while (counter < length) {
2037
+ var value = charCodeAt(string, counter++);
2038
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
2039
+ // It's a high surrogate, and there is a next character.
2040
+ var extra = charCodeAt(string, counter++);
2041
+ if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
2042
+ push$2(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
2043
+ } else {
2044
+ // It's an unmatched surrogate; only append this code unit, in case the
2045
+ // next code unit is the high surrogate of a surrogate pair.
2046
+ push$2(output, value);
2047
+ counter--;
2048
+ }
2049
+ } else {
2050
+ push$2(output, value);
2051
+ }
2052
+ }
2053
+ return output;
2054
+ };
2055
+
2056
+ /**
2057
+ * Converts a digit/integer into a basic code point.
2058
+ */
2059
+ var digitToBasic = function (digit) {
2060
+ // 0..25 map to ASCII a..z or A..Z
2061
+ // 26..35 map to ASCII 0..9
2062
+ return digit + 22 + 75 * (digit < 26);
2063
+ };
2064
+
2065
+ /**
2066
+ * Bias adaptation function as per section 3.4 of RFC 3492.
2067
+ * https://tools.ietf.org/html/rfc3492#section-3.4
2068
+ */
2069
+ var adapt = function (delta, numPoints, firstTime) {
2070
+ var k = 0;
2071
+ delta = firstTime ? floor$2(delta / damp) : delta >> 1;
2072
+ delta += floor$2(delta / numPoints);
2073
+ while (delta > baseMinusTMin * tMax >> 1) {
2074
+ delta = floor$2(delta / baseMinusTMin);
2075
+ k += base;
2076
+ }
2077
+ return floor$2(k + (baseMinusTMin + 1) * delta / (delta + skew));
2078
+ };
2079
+
2080
+ /**
2081
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
2082
+ * Punycode string of ASCII-only symbols.
2083
+ */
2084
+ var encode = function (input) {
2085
+ var output = [];
2086
+
2087
+ // Convert the input in UCS-2 to an array of Unicode code points.
2088
+ input = ucs2decode(input);
2089
+
2090
+ // Cache the length.
2091
+ var inputLength = input.length;
2092
+
2093
+ // Initialize the state.
2094
+ var n = initialN;
2095
+ var delta = 0;
2096
+ var bias = initialBias;
2097
+ var i, currentValue;
2098
+
2099
+ // Handle the basic code points.
2100
+ for (i = 0; i < input.length; i++) {
2101
+ currentValue = input[i];
2102
+ if (currentValue < 0x80) {
2103
+ push$2(output, fromCharCode(currentValue));
2104
+ }
2105
+ }
2106
+
2107
+ var basicLength = output.length; // number of basic code points.
2108
+ var handledCPCount = basicLength; // number of code points that have been handled;
2109
+
2110
+ // Finish the basic string with a delimiter unless it's empty.
2111
+ if (basicLength) {
2112
+ push$2(output, delimiter);
2113
+ }
2114
+
2115
+ // Main encoding loop:
2116
+ while (handledCPCount < inputLength) {
2117
+ // All non-basic code points < n have been handled already. Find the next larger one:
2118
+ var m = maxInt;
2119
+ for (i = 0; i < input.length; i++) {
2120
+ currentValue = input[i];
2121
+ if (currentValue >= n && currentValue < m) {
2122
+ m = currentValue;
2123
+ }
2124
+ }
2125
+
2126
+ // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
2127
+ var handledCPCountPlusOne = handledCPCount + 1;
2128
+ if (m - n > floor$2((maxInt - delta) / handledCPCountPlusOne)) {
2129
+ throw $RangeError(OVERFLOW_ERROR);
2130
+ }
2131
+
2132
+ delta += (m - n) * handledCPCountPlusOne;
2133
+ n = m;
2134
+
2135
+ for (i = 0; i < input.length; i++) {
2136
+ currentValue = input[i];
2137
+ if (currentValue < n && ++delta > maxInt) {
2138
+ throw $RangeError(OVERFLOW_ERROR);
2139
+ }
2140
+ if (currentValue == n) {
2141
+ // Represent delta as a generalized variable-length integer.
2142
+ var q = delta;
2143
+ var k = base;
2144
+ while (true) {
2145
+ var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
2146
+ if (q < t) break;
2147
+ var qMinusT = q - t;
2148
+ var baseMinusT = base - t;
2149
+ push$2(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
2150
+ q = floor$2(qMinusT / baseMinusT);
2151
+ k += base;
2152
+ }
2153
+
2154
+ push$2(output, fromCharCode(digitToBasic(q)));
2155
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
2156
+ delta = 0;
2157
+ handledCPCount++;
2158
+ }
2159
+ }
2160
+
2161
+ delta++;
2162
+ n++;
2163
+ }
2164
+ return join$2(output, '');
2165
+ };
2166
+
2167
+ var stringPunycodeToAscii = function (input) {
2168
+ var encoded = [];
2169
+ var labels = split$2(replace$2(toLowerCase$1(input), regexSeparators, '\u002E'), '.');
2170
+ var i, label;
2171
+ for (i = 0; i < labels.length; i++) {
2172
+ label = labels[i];
2173
+ push$2(encoded, exec$1(regexNonASCII, label) ? 'xn--' + encode(label) : label);
2174
+ }
2175
+ return join$2(encoded, '.');
2176
+ };
2177
+
2178
+ var $TypeError = TypeError;
2179
+
2180
+ var validateArgumentsLength$2 = function (passed, required) {
2181
+ if (passed < required) throw $TypeError('Not enough arguments');
2182
+ return passed;
2183
+ };
2184
+
2185
+ var defineBuiltIn$2 = defineBuiltIn$6;
2186
+
2187
+ var defineBuiltIns$1 = function (target, src, options) {
2188
+ for (var key in src) defineBuiltIn$2(target, key, src[key], options);
2189
+ return target;
2190
+ };
2191
+
2192
+ var arraySlice$1 = arraySliceSimple;
2193
+
2194
+ var floor$1 = Math.floor;
2195
+
2196
+ var mergeSort = function (array, comparefn) {
2197
+ var length = array.length;
2198
+ var middle = floor$1(length / 2);
2199
+ return length < 8 ? insertionSort(array, comparefn) : merge(
2200
+ array,
2201
+ mergeSort(arraySlice$1(array, 0, middle), comparefn),
2202
+ mergeSort(arraySlice$1(array, middle), comparefn),
2203
+ comparefn
2204
+ );
2205
+ };
2206
+
2207
+ var insertionSort = function (array, comparefn) {
2208
+ var length = array.length;
2209
+ var i = 1;
2210
+ var element, j;
2211
+
2212
+ while (i < length) {
2213
+ j = i;
2214
+ element = array[i];
2215
+ while (j && comparefn(array[j - 1], element) > 0) {
2216
+ array[j] = array[--j];
2217
+ }
2218
+ if (j !== i++) array[j] = element;
2219
+ } return array;
2220
+ };
2221
+
2222
+ var merge = function (array, left, right, comparefn) {
2223
+ var llength = left.length;
2224
+ var rlength = right.length;
2225
+ var lindex = 0;
2226
+ var rindex = 0;
2227
+
2228
+ while (lindex < llength || rindex < rlength) {
2229
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
2230
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
2231
+ : lindex < llength ? left[lindex++] : right[rindex++];
2232
+ } return array;
2233
+ };
2234
+
2235
+ var arraySort$1 = mergeSort;
2236
+
2237
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2238
+
2239
+ var $$1 = _export;
2240
+ var global$2 = global$d;
2241
+ var call = functionCall;
2242
+ var uncurryThis$1 = functionUncurryThis;
2243
+ var DESCRIPTORS$1 = descriptors;
2244
+ var USE_NATIVE_URL$1 = urlConstructorDetection;
2245
+ var defineBuiltIn$1 = defineBuiltIn$6;
2246
+ var defineBuiltIns = defineBuiltIns$1;
2247
+ var setToStringTag$1 = setToStringTag$4;
2248
+ var createIteratorConstructor = iteratorCreateConstructor;
2249
+ var InternalStateModule$1 = internalState;
2250
+ var anInstance$1 = anInstance$2;
2251
+ var isCallable = isCallable$h;
2252
+ var hasOwn$1 = hasOwnProperty_1;
2253
+ var bind$1 = functionBindContext;
2254
+ var classof = classof$4;
2255
+ var anObject = anObject$9;
2256
+ var isObject$1 = isObject$8;
2257
+ var $toString$1 = toString$2;
2258
+ var create$1 = objectCreate;
2259
+ var createPropertyDescriptor = createPropertyDescriptor$5;
2260
+ var getIterator = getIterator$2;
2261
+ var getIteratorMethod = getIteratorMethod$3;
2262
+ var validateArgumentsLength$1 = validateArgumentsLength$2;
2263
+ var wellKnownSymbol = wellKnownSymbol$c;
2264
+ var arraySort = arraySort$1;
2265
+
2266
+ var ITERATOR = wellKnownSymbol('iterator');
2267
+ var URL_SEARCH_PARAMS = 'URLSearchParams';
2268
+ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
2269
+ var setInternalState$1 = InternalStateModule$1.set;
2270
+ var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
2271
+ var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
2272
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2273
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2274
+
2275
+ // Avoid NodeJS experimental warning
2276
+ var safeGetBuiltIn = function (name) {
2277
+ if (!DESCRIPTORS$1) return global$2[name];
2278
+ var descriptor = getOwnPropertyDescriptor(global$2, name);
2279
+ return descriptor && descriptor.value;
2280
+ };
2281
+
2282
+ var nativeFetch = safeGetBuiltIn('fetch');
2283
+ var NativeRequest = safeGetBuiltIn('Request');
2284
+ var Headers = safeGetBuiltIn('Headers');
2285
+ var RequestPrototype = NativeRequest && NativeRequest.prototype;
2286
+ var HeadersPrototype = Headers && Headers.prototype;
2287
+ var RegExp = global$2.RegExp;
2288
+ var TypeError$2 = global$2.TypeError;
2289
+ var decodeURIComponent = global$2.decodeURIComponent;
2290
+ var encodeURIComponent$1 = global$2.encodeURIComponent;
2291
+ var charAt$1 = uncurryThis$1(''.charAt);
2292
+ var join$1 = uncurryThis$1([].join);
2293
+ var push$1 = uncurryThis$1([].push);
2294
+ var replace$1 = uncurryThis$1(''.replace);
2295
+ var shift$1 = uncurryThis$1([].shift);
2296
+ var splice = uncurryThis$1([].splice);
2297
+ var split$1 = uncurryThis$1(''.split);
2298
+ var stringSlice$1 = uncurryThis$1(''.slice);
2299
+
2300
+ var plus = /\+/g;
2301
+ var sequences = Array(4);
2302
+
2303
+ var percentSequence = function (bytes) {
2304
+ return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
2305
+ };
2306
+
2307
+ var percentDecode = function (sequence) {
2308
+ try {
2309
+ return decodeURIComponent(sequence);
2310
+ } catch (error) {
2311
+ return sequence;
2312
+ }
2313
+ };
2314
+
2315
+ var deserialize = function (it) {
2316
+ var result = replace$1(it, plus, ' ');
2317
+ var bytes = 4;
2318
+ try {
2319
+ return decodeURIComponent(result);
2320
+ } catch (error) {
2321
+ while (bytes) {
2322
+ result = replace$1(result, percentSequence(bytes--), percentDecode);
2323
+ }
2324
+ return result;
2325
+ }
2326
+ };
2327
+
2328
+ var find = /[!'()~]|%20/g;
2329
+
2330
+ var replacements = {
2331
+ '!': '%21',
2332
+ "'": '%27',
2333
+ '(': '%28',
2334
+ ')': '%29',
2335
+ '~': '%7E',
2336
+ '%20': '+'
2337
+ };
2338
+
2339
+ var replacer = function (match) {
2340
+ return replacements[match];
2341
+ };
2342
+
2343
+ var serialize = function (it) {
2344
+ return replace$1(encodeURIComponent$1(it), find, replacer);
2345
+ };
2346
+
2347
+ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
2348
+ setInternalState$1(this, {
2349
+ type: URL_SEARCH_PARAMS_ITERATOR,
2350
+ iterator: getIterator(getInternalParamsState(params).entries),
2351
+ kind: kind
2352
+ });
2353
+ }, 'Iterator', function next() {
2354
+ var state = getInternalIteratorState(this);
2355
+ var kind = state.kind;
2356
+ var step = state.iterator.next();
2357
+ var entry = step.value;
2358
+ if (!step.done) {
2359
+ step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
2360
+ } return step;
2361
+ }, true);
2362
+
2363
+ var URLSearchParamsState = function (init) {
2364
+ this.entries = [];
2365
+ this.url = null;
2366
+
2367
+ if (init !== undefined) {
2368
+ if (isObject$1(init)) this.parseObject(init);
2369
+ else this.parseQuery(typeof init == 'string' ? charAt$1(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
2370
+ }
2371
+ };
2372
+
2373
+ URLSearchParamsState.prototype = {
2374
+ type: URL_SEARCH_PARAMS,
2375
+ bindURL: function (url) {
2376
+ this.url = url;
2377
+ this.update();
2378
+ },
2379
+ parseObject: function (object) {
2380
+ var iteratorMethod = getIteratorMethod(object);
2381
+ var iterator, next, step, entryIterator, entryNext, first, second;
2382
+
2383
+ if (iteratorMethod) {
2384
+ iterator = getIterator(object, iteratorMethod);
2385
+ next = iterator.next;
2386
+ while (!(step = call(next, iterator)).done) {
2387
+ entryIterator = getIterator(anObject(step.value));
2388
+ entryNext = entryIterator.next;
2389
+ if (
2390
+ (first = call(entryNext, entryIterator)).done ||
2391
+ (second = call(entryNext, entryIterator)).done ||
2392
+ !call(entryNext, entryIterator).done
2393
+ ) throw TypeError$2('Expected sequence with length 2');
2394
+ push$1(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
2395
+ }
2396
+ } else for (var key in object) if (hasOwn$1(object, key)) {
2397
+ push$1(this.entries, { key: key, value: $toString$1(object[key]) });
2398
+ }
2399
+ },
2400
+ parseQuery: function (query) {
2401
+ if (query) {
2402
+ var attributes = split$1(query, '&');
2403
+ var index = 0;
2404
+ var attribute, entry;
2405
+ while (index < attributes.length) {
2406
+ attribute = attributes[index++];
2407
+ if (attribute.length) {
2408
+ entry = split$1(attribute, '=');
2409
+ push$1(this.entries, {
2410
+ key: deserialize(shift$1(entry)),
2411
+ value: deserialize(join$1(entry, '='))
2412
+ });
2413
+ }
2414
+ }
2415
+ }
2416
+ },
2417
+ serialize: function () {
2418
+ var entries = this.entries;
2419
+ var result = [];
2420
+ var index = 0;
2421
+ var entry;
2422
+ while (index < entries.length) {
2423
+ entry = entries[index++];
2424
+ push$1(result, serialize(entry.key) + '=' + serialize(entry.value));
2425
+ } return join$1(result, '&');
2426
+ },
2427
+ update: function () {
2428
+ this.entries.length = 0;
2429
+ this.parseQuery(this.url.query);
2430
+ },
2431
+ updateURL: function () {
2432
+ if (this.url) this.url.update();
2433
+ }
2434
+ };
2435
+
2436
+ // `URLSearchParams` constructor
2437
+ // https://url.spec.whatwg.org/#interface-urlsearchparams
2438
+ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
2439
+ anInstance$1(this, URLSearchParamsPrototype);
2440
+ var init = arguments.length > 0 ? arguments[0] : undefined;
2441
+ setInternalState$1(this, new URLSearchParamsState(init));
2442
+ };
2443
+
2444
+ var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
2445
+
2446
+ defineBuiltIns(URLSearchParamsPrototype, {
2447
+ // `URLSearchParams.prototype.append` method
2448
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-append
2449
+ append: function append(name, value) {
2450
+ validateArgumentsLength$1(arguments.length, 2);
2451
+ var state = getInternalParamsState(this);
2452
+ push$1(state.entries, { key: $toString$1(name), value: $toString$1(value) });
2453
+ state.updateURL();
2454
+ },
2455
+ // `URLSearchParams.prototype.delete` method
2456
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
2457
+ 'delete': function (name) {
2458
+ validateArgumentsLength$1(arguments.length, 1);
2459
+ var state = getInternalParamsState(this);
2460
+ var entries = state.entries;
2461
+ var key = $toString$1(name);
2462
+ var index = 0;
2463
+ while (index < entries.length) {
2464
+ if (entries[index].key === key) splice(entries, index, 1);
2465
+ else index++;
2466
+ }
2467
+ state.updateURL();
2468
+ },
2469
+ // `URLSearchParams.prototype.get` method
2470
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-get
2471
+ get: function get(name) {
2472
+ validateArgumentsLength$1(arguments.length, 1);
2473
+ var entries = getInternalParamsState(this).entries;
2474
+ var key = $toString$1(name);
2475
+ var index = 0;
2476
+ for (; index < entries.length; index++) {
2477
+ if (entries[index].key === key) return entries[index].value;
2478
+ }
2479
+ return null;
2480
+ },
2481
+ // `URLSearchParams.prototype.getAll` method
2482
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
2483
+ getAll: function getAll(name) {
2484
+ validateArgumentsLength$1(arguments.length, 1);
2485
+ var entries = getInternalParamsState(this).entries;
2486
+ var key = $toString$1(name);
2487
+ var result = [];
2488
+ var index = 0;
2489
+ for (; index < entries.length; index++) {
2490
+ if (entries[index].key === key) push$1(result, entries[index].value);
2491
+ }
2492
+ return result;
2493
+ },
2494
+ // `URLSearchParams.prototype.has` method
2495
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-has
2496
+ has: function has(name) {
2497
+ validateArgumentsLength$1(arguments.length, 1);
2498
+ var entries = getInternalParamsState(this).entries;
2499
+ var key = $toString$1(name);
2500
+ var index = 0;
2501
+ while (index < entries.length) {
2502
+ if (entries[index++].key === key) return true;
2503
+ }
2504
+ return false;
2505
+ },
2506
+ // `URLSearchParams.prototype.set` method
2507
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-set
2508
+ set: function set(name, value) {
2509
+ validateArgumentsLength$1(arguments.length, 1);
2510
+ var state = getInternalParamsState(this);
2511
+ var entries = state.entries;
2512
+ var found = false;
2513
+ var key = $toString$1(name);
2514
+ var val = $toString$1(value);
2515
+ var index = 0;
2516
+ var entry;
2517
+ for (; index < entries.length; index++) {
2518
+ entry = entries[index];
2519
+ if (entry.key === key) {
2520
+ if (found) splice(entries, index--, 1);
2521
+ else {
2522
+ found = true;
2523
+ entry.value = val;
2524
+ }
2525
+ }
2526
+ }
2527
+ if (!found) push$1(entries, { key: key, value: val });
2528
+ state.updateURL();
2529
+ },
2530
+ // `URLSearchParams.prototype.sort` method
2531
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
2532
+ sort: function sort() {
2533
+ var state = getInternalParamsState(this);
2534
+ arraySort(state.entries, function (a, b) {
2535
+ return a.key > b.key ? 1 : -1;
2536
+ });
2537
+ state.updateURL();
2538
+ },
2539
+ // `URLSearchParams.prototype.forEach` method
2540
+ forEach: function forEach(callback /* , thisArg */) {
2541
+ var entries = getInternalParamsState(this).entries;
2542
+ var boundFunction = bind$1(callback, arguments.length > 1 ? arguments[1] : undefined);
2543
+ var index = 0;
2544
+ var entry;
2545
+ while (index < entries.length) {
2546
+ entry = entries[index++];
2547
+ boundFunction(entry.value, entry.key, this);
2548
+ }
2549
+ },
2550
+ // `URLSearchParams.prototype.keys` method
2551
+ keys: function keys() {
2552
+ return new URLSearchParamsIterator(this, 'keys');
2553
+ },
2554
+ // `URLSearchParams.prototype.values` method
2555
+ values: function values() {
2556
+ return new URLSearchParamsIterator(this, 'values');
2557
+ },
2558
+ // `URLSearchParams.prototype.entries` method
2559
+ entries: function entries() {
2560
+ return new URLSearchParamsIterator(this, 'entries');
2561
+ }
2562
+ }, { enumerable: true });
2563
+
2564
+ // `URLSearchParams.prototype[@@iterator]` method
2565
+ defineBuiltIn$1(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
2566
+
2567
+ // `URLSearchParams.prototype.toString` method
2568
+ // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
2569
+ defineBuiltIn$1(URLSearchParamsPrototype, 'toString', function toString() {
2570
+ return getInternalParamsState(this).serialize();
2571
+ }, { enumerable: true });
2572
+
2573
+ setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
2574
+
2575
+ $$1({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
2576
+ URLSearchParams: URLSearchParamsConstructor
2577
+ });
2578
+
2579
+ // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
2580
+ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
2581
+ var headersHas = uncurryThis$1(HeadersPrototype.has);
2582
+ var headersSet = uncurryThis$1(HeadersPrototype.set);
2583
+
2584
+ var wrapRequestOptions = function (init) {
2585
+ if (isObject$1(init)) {
2586
+ var body = init.body;
2587
+ var headers;
2588
+ if (classof(body) === URL_SEARCH_PARAMS) {
2589
+ headers = init.headers ? new Headers(init.headers) : new Headers();
2590
+ if (!headersHas(headers, 'content-type')) {
2591
+ headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
2592
+ }
2593
+ return create$1(init, {
2594
+ body: createPropertyDescriptor(0, $toString$1(body)),
2595
+ headers: createPropertyDescriptor(0, headers)
2596
+ });
2597
+ }
2598
+ } return init;
2599
+ };
2600
+
2601
+ if (isCallable(nativeFetch)) {
2602
+ $$1({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
2603
+ fetch: function fetch(input /* , init */) {
2604
+ return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2605
+ }
2606
+ });
2607
+ }
2608
+
2609
+ if (isCallable(NativeRequest)) {
2610
+ var RequestConstructor = function Request(input /* , init */) {
2611
+ anInstance$1(this, RequestPrototype);
2612
+ return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2613
+ };
2614
+
2615
+ RequestPrototype.constructor = RequestConstructor;
2616
+ RequestConstructor.prototype = RequestPrototype;
2617
+
2618
+ $$1({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
2619
+ Request: RequestConstructor
2620
+ });
2621
+ }
2622
+ }
2623
+
2624
+ var web_urlSearchParams_constructor = {
2625
+ URLSearchParams: URLSearchParamsConstructor,
2626
+ getState: getInternalParamsState
2627
+ };
2628
+
2629
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2630
+
2631
+ var $ = _export;
2632
+ var DESCRIPTORS = descriptors;
2633
+ var USE_NATIVE_URL = urlConstructorDetection;
2634
+ var global$1 = global$d;
2635
+ var bind = functionBindContext;
2636
+ var uncurryThis = functionUncurryThis;
2637
+ var defineBuiltIn = defineBuiltIn$6;
2638
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
2639
+ var anInstance = anInstance$2;
2640
+ var hasOwn = hasOwnProperty_1;
2641
+ var assign = objectAssign;
2642
+ var arrayFrom = arrayFrom$1;
2643
+ var arraySlice = arraySliceSimple;
2644
+ var codeAt = stringMultibyte.codeAt;
2645
+ var toASCII = stringPunycodeToAscii;
2646
+ var $toString = toString$2;
2647
+ var setToStringTag = setToStringTag$4;
2648
+ var validateArgumentsLength = validateArgumentsLength$2;
2649
+ var URLSearchParamsModule = web_urlSearchParams_constructor;
2650
+ var InternalStateModule = internalState;
2651
+
2652
+ var setInternalState = InternalStateModule.set;
2653
+ var getInternalURLState = InternalStateModule.getterFor('URL');
2654
+ var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
2655
+ var getInternalSearchParamsState = URLSearchParamsModule.getState;
2656
+
2657
+ var NativeURL = global$1.URL;
2658
+ var TypeError$1 = global$1.TypeError;
2659
+ var parseInt$1 = global$1.parseInt;
2660
+ var floor = Math.floor;
2661
+ var pow = Math.pow;
2662
+ var charAt = uncurryThis(''.charAt);
2663
+ var exec = uncurryThis(/./.exec);
2664
+ var join = uncurryThis([].join);
2665
+ var numberToString = uncurryThis(1.0.toString);
2666
+ var pop = uncurryThis([].pop);
2667
+ var push = uncurryThis([].push);
2668
+ var replace = uncurryThis(''.replace);
2669
+ var shift = uncurryThis([].shift);
2670
+ var split = uncurryThis(''.split);
2671
+ var stringSlice = uncurryThis(''.slice);
2672
+ var toLowerCase = uncurryThis(''.toLowerCase);
2673
+ var unshift = uncurryThis([].unshift);
2674
+
2675
+ var INVALID_AUTHORITY = 'Invalid authority';
2676
+ var INVALID_SCHEME = 'Invalid scheme';
2677
+ var INVALID_HOST = 'Invalid host';
2678
+ var INVALID_PORT = 'Invalid port';
2679
+
2680
+ var ALPHA = /[a-z]/i;
2681
+ // eslint-disable-next-line regexp/no-obscure-range -- safe
2682
+ var ALPHANUMERIC = /[\d+-.a-z]/i;
2683
+ var DIGIT = /\d/;
2684
+ var HEX_START = /^0x/i;
2685
+ var OCT = /^[0-7]+$/;
2686
+ var DEC = /^\d+$/;
2687
+ var HEX = /^[\da-f]+$/i;
2688
+ /* eslint-disable regexp/no-control-character -- safe */
2689
+ var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
2690
+ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
2691
+ var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g;
2692
+ var TAB_AND_NEW_LINE = /[\t\n\r]/g;
2693
+ /* eslint-enable regexp/no-control-character -- safe */
2694
+ var EOF;
2695
+
2696
+ // https://url.spec.whatwg.org/#ipv4-number-parser
2697
+ var parseIPv4 = function (input) {
2698
+ var parts = split(input, '.');
2699
+ var partsLength, numbers, index, part, radix, number, ipv4;
2700
+ if (parts.length && parts[parts.length - 1] == '') {
2701
+ parts.length--;
2702
+ }
2703
+ partsLength = parts.length;
2704
+ if (partsLength > 4) return input;
2705
+ numbers = [];
2706
+ for (index = 0; index < partsLength; index++) {
2707
+ part = parts[index];
2708
+ if (part == '') return input;
2709
+ radix = 10;
2710
+ if (part.length > 1 && charAt(part, 0) == '0') {
2711
+ radix = exec(HEX_START, part) ? 16 : 8;
2712
+ part = stringSlice(part, radix == 8 ? 1 : 2);
2713
+ }
2714
+ if (part === '') {
2715
+ number = 0;
2716
+ } else {
2717
+ if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part)) return input;
2718
+ number = parseInt$1(part, radix);
2719
+ }
2720
+ push(numbers, number);
2721
+ }
2722
+ for (index = 0; index < partsLength; index++) {
2723
+ number = numbers[index];
2724
+ if (index == partsLength - 1) {
2725
+ if (number >= pow(256, 5 - partsLength)) return null;
2726
+ } else if (number > 255) return null;
2727
+ }
2728
+ ipv4 = pop(numbers);
2729
+ for (index = 0; index < numbers.length; index++) {
2730
+ ipv4 += numbers[index] * pow(256, 3 - index);
2731
+ }
2732
+ return ipv4;
2733
+ };
2734
+
2735
+ // https://url.spec.whatwg.org/#concept-ipv6-parser
2736
+ // eslint-disable-next-line max-statements -- TODO
2737
+ var parseIPv6 = function (input) {
2738
+ var address = [0, 0, 0, 0, 0, 0, 0, 0];
2739
+ var pieceIndex = 0;
2740
+ var compress = null;
2741
+ var pointer = 0;
2742
+ var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
2743
+
2744
+ var chr = function () {
2745
+ return charAt(input, pointer);
2746
+ };
2747
+
2748
+ if (chr() == ':') {
2749
+ if (charAt(input, 1) != ':') return;
2750
+ pointer += 2;
2751
+ pieceIndex++;
2752
+ compress = pieceIndex;
2753
+ }
2754
+ while (chr()) {
2755
+ if (pieceIndex == 8) return;
2756
+ if (chr() == ':') {
2757
+ if (compress !== null) return;
2758
+ pointer++;
2759
+ pieceIndex++;
2760
+ compress = pieceIndex;
2761
+ continue;
2762
+ }
2763
+ value = length = 0;
2764
+ while (length < 4 && exec(HEX, chr())) {
2765
+ value = value * 16 + parseInt$1(chr(), 16);
2766
+ pointer++;
2767
+ length++;
2768
+ }
2769
+ if (chr() == '.') {
2770
+ if (length == 0) return;
2771
+ pointer -= length;
2772
+ if (pieceIndex > 6) return;
2773
+ numbersSeen = 0;
2774
+ while (chr()) {
2775
+ ipv4Piece = null;
2776
+ if (numbersSeen > 0) {
2777
+ if (chr() == '.' && numbersSeen < 4) pointer++;
2778
+ else return;
2779
+ }
2780
+ if (!exec(DIGIT, chr())) return;
2781
+ while (exec(DIGIT, chr())) {
2782
+ number = parseInt$1(chr(), 10);
2783
+ if (ipv4Piece === null) ipv4Piece = number;
2784
+ else if (ipv4Piece == 0) return;
2785
+ else ipv4Piece = ipv4Piece * 10 + number;
2786
+ if (ipv4Piece > 255) return;
2787
+ pointer++;
2788
+ }
2789
+ address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
2790
+ numbersSeen++;
2791
+ if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
2792
+ }
2793
+ if (numbersSeen != 4) return;
2794
+ break;
2795
+ } else if (chr() == ':') {
2796
+ pointer++;
2797
+ if (!chr()) return;
2798
+ } else if (chr()) return;
2799
+ address[pieceIndex++] = value;
2800
+ }
2801
+ if (compress !== null) {
2802
+ swaps = pieceIndex - compress;
2803
+ pieceIndex = 7;
2804
+ while (pieceIndex != 0 && swaps > 0) {
2805
+ swap = address[pieceIndex];
2806
+ address[pieceIndex--] = address[compress + swaps - 1];
2807
+ address[compress + --swaps] = swap;
2808
+ }
2809
+ } else if (pieceIndex != 8) return;
2810
+ return address;
2811
+ };
2812
+
2813
+ var findLongestZeroSequence = function (ipv6) {
2814
+ var maxIndex = null;
2815
+ var maxLength = 1;
2816
+ var currStart = null;
2817
+ var currLength = 0;
2818
+ var index = 0;
2819
+ for (; index < 8; index++) {
2820
+ if (ipv6[index] !== 0) {
2821
+ if (currLength > maxLength) {
2822
+ maxIndex = currStart;
2823
+ maxLength = currLength;
2824
+ }
2825
+ currStart = null;
2826
+ currLength = 0;
2827
+ } else {
2828
+ if (currStart === null) currStart = index;
2829
+ ++currLength;
2830
+ }
2831
+ }
2832
+ if (currLength > maxLength) {
2833
+ maxIndex = currStart;
2834
+ maxLength = currLength;
2835
+ }
2836
+ return maxIndex;
2837
+ };
2838
+
2839
+ // https://url.spec.whatwg.org/#host-serializing
2840
+ var serializeHost = function (host) {
2841
+ var result, index, compress, ignore0;
2842
+ // ipv4
2843
+ if (typeof host == 'number') {
2844
+ result = [];
2845
+ for (index = 0; index < 4; index++) {
2846
+ unshift(result, host % 256);
2847
+ host = floor(host / 256);
2848
+ } return join(result, '.');
2849
+ // ipv6
2850
+ } else if (typeof host == 'object') {
2851
+ result = '';
2852
+ compress = findLongestZeroSequence(host);
2853
+ for (index = 0; index < 8; index++) {
2854
+ if (ignore0 && host[index] === 0) continue;
2855
+ if (ignore0) ignore0 = false;
2856
+ if (compress === index) {
2857
+ result += index ? ':' : '::';
2858
+ ignore0 = true;
2859
+ } else {
2860
+ result += numberToString(host[index], 16);
2861
+ if (index < 7) result += ':';
2862
+ }
2863
+ }
2864
+ return '[' + result + ']';
2865
+ } return host;
2866
+ };
2867
+
2868
+ var C0ControlPercentEncodeSet = {};
2869
+ var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
2870
+ ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
2871
+ });
2872
+ var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
2873
+ '#': 1, '?': 1, '{': 1, '}': 1
2874
+ });
2875
+ var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
2876
+ '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
2877
+ });
2878
+
2879
+ var percentEncode = function (chr, set) {
2880
+ var code = codeAt(chr, 0);
2881
+ return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
2882
+ };
2883
+
2884
+ // https://url.spec.whatwg.org/#special-scheme
2885
+ var specialSchemes = {
2886
+ ftp: 21,
2887
+ file: null,
2888
+ http: 80,
2889
+ https: 443,
2890
+ ws: 80,
2891
+ wss: 443
2892
+ };
2893
+
2894
+ // https://url.spec.whatwg.org/#windows-drive-letter
2895
+ var isWindowsDriveLetter = function (string, normalized) {
2896
+ var second;
2897
+ return string.length == 2 && exec(ALPHA, charAt(string, 0))
2898
+ && ((second = charAt(string, 1)) == ':' || (!normalized && second == '|'));
2899
+ };
2900
+
2901
+ // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
2902
+ var startsWithWindowsDriveLetter = function (string) {
2903
+ var third;
2904
+ return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
2905
+ string.length == 2 ||
2906
+ ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
2907
+ );
2908
+ };
2909
+
2910
+ // https://url.spec.whatwg.org/#single-dot-path-segment
2911
+ var isSingleDot = function (segment) {
2912
+ return segment === '.' || toLowerCase(segment) === '%2e';
2913
+ };
2914
+
2915
+ // https://url.spec.whatwg.org/#double-dot-path-segment
2916
+ var isDoubleDot = function (segment) {
2917
+ segment = toLowerCase(segment);
2918
+ return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
2919
+ };
2920
+
2921
+ // States:
2922
+ var SCHEME_START = {};
2923
+ var SCHEME = {};
2924
+ var NO_SCHEME = {};
2925
+ var SPECIAL_RELATIVE_OR_AUTHORITY = {};
2926
+ var PATH_OR_AUTHORITY = {};
2927
+ var RELATIVE = {};
2928
+ var RELATIVE_SLASH = {};
2929
+ var SPECIAL_AUTHORITY_SLASHES = {};
2930
+ var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
2931
+ var AUTHORITY = {};
2932
+ var HOST = {};
2933
+ var HOSTNAME = {};
2934
+ var PORT = {};
2935
+ var FILE = {};
2936
+ var FILE_SLASH = {};
2937
+ var FILE_HOST = {};
2938
+ var PATH_START = {};
2939
+ var PATH = {};
2940
+ var CANNOT_BE_A_BASE_URL_PATH = {};
2941
+ var QUERY = {};
2942
+ var FRAGMENT = {};
2943
+
2944
+ var URLState = function (url, isBase, base) {
2945
+ var urlString = $toString(url);
2946
+ var baseState, failure, searchParams;
2947
+ if (isBase) {
2948
+ failure = this.parse(urlString);
2949
+ if (failure) throw TypeError$1(failure);
2950
+ this.searchParams = null;
2951
+ } else {
2952
+ if (base !== undefined) baseState = new URLState(base, true);
2953
+ failure = this.parse(urlString, null, baseState);
2954
+ if (failure) throw TypeError$1(failure);
2955
+ searchParams = getInternalSearchParamsState(new URLSearchParams$1());
2956
+ searchParams.bindURL(this);
2957
+ this.searchParams = searchParams;
2958
+ }
2959
+ };
2960
+
2961
+ URLState.prototype = {
2962
+ type: 'URL',
2963
+ // https://url.spec.whatwg.org/#url-parsing
2964
+ // eslint-disable-next-line max-statements -- TODO
2965
+ parse: function (input, stateOverride, base) {
2966
+ var url = this;
2967
+ var state = stateOverride || SCHEME_START;
2968
+ var pointer = 0;
2969
+ var buffer = '';
2970
+ var seenAt = false;
2971
+ var seenBracket = false;
2972
+ var seenPasswordToken = false;
2973
+ var codePoints, chr, bufferCodePoints, failure;
2974
+
2975
+ input = $toString(input);
2976
+
2977
+ if (!stateOverride) {
2978
+ url.scheme = '';
2979
+ url.username = '';
2980
+ url.password = '';
2981
+ url.host = null;
2982
+ url.port = null;
2983
+ url.path = [];
2984
+ url.query = null;
2985
+ url.fragment = null;
2986
+ url.cannotBeABaseURL = false;
2987
+ input = replace(input, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
2988
+ }
2989
+
2990
+ input = replace(input, TAB_AND_NEW_LINE, '');
2991
+
2992
+ codePoints = arrayFrom(input);
2993
+
2994
+ while (pointer <= codePoints.length) {
2995
+ chr = codePoints[pointer];
2996
+ switch (state) {
2997
+ case SCHEME_START:
2998
+ if (chr && exec(ALPHA, chr)) {
2999
+ buffer += toLowerCase(chr);
3000
+ state = SCHEME;
3001
+ } else if (!stateOverride) {
3002
+ state = NO_SCHEME;
3003
+ continue;
3004
+ } else return INVALID_SCHEME;
3005
+ break;
3006
+
3007
+ case SCHEME:
3008
+ if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) {
3009
+ buffer += toLowerCase(chr);
3010
+ } else if (chr == ':') {
3011
+ if (stateOverride && (
3012
+ (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
3013
+ (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
3014
+ (url.scheme == 'file' && !url.host)
3015
+ )) return;
3016
+ url.scheme = buffer;
3017
+ if (stateOverride) {
3018
+ if (url.isSpecial() && specialSchemes[url.scheme] == url.port) url.port = null;
3019
+ return;
3020
+ }
3021
+ buffer = '';
3022
+ if (url.scheme == 'file') {
3023
+ state = FILE;
3024
+ } else if (url.isSpecial() && base && base.scheme == url.scheme) {
3025
+ state = SPECIAL_RELATIVE_OR_AUTHORITY;
3026
+ } else if (url.isSpecial()) {
3027
+ state = SPECIAL_AUTHORITY_SLASHES;
3028
+ } else if (codePoints[pointer + 1] == '/') {
3029
+ state = PATH_OR_AUTHORITY;
3030
+ pointer++;
3031
+ } else {
3032
+ url.cannotBeABaseURL = true;
3033
+ push(url.path, '');
3034
+ state = CANNOT_BE_A_BASE_URL_PATH;
3035
+ }
3036
+ } else if (!stateOverride) {
3037
+ buffer = '';
3038
+ state = NO_SCHEME;
3039
+ pointer = 0;
3040
+ continue;
3041
+ } else return INVALID_SCHEME;
3042
+ break;
3043
+
3044
+ case NO_SCHEME:
3045
+ if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME;
3046
+ if (base.cannotBeABaseURL && chr == '#') {
3047
+ url.scheme = base.scheme;
3048
+ url.path = arraySlice(base.path);
3049
+ url.query = base.query;
3050
+ url.fragment = '';
3051
+ url.cannotBeABaseURL = true;
3052
+ state = FRAGMENT;
3053
+ break;
3054
+ }
3055
+ state = base.scheme == 'file' ? FILE : RELATIVE;
3056
+ continue;
3057
+
3058
+ case SPECIAL_RELATIVE_OR_AUTHORITY:
3059
+ if (chr == '/' && codePoints[pointer + 1] == '/') {
3060
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3061
+ pointer++;
3062
+ } else {
3063
+ state = RELATIVE;
3064
+ continue;
3065
+ } break;
3066
+
3067
+ case PATH_OR_AUTHORITY:
3068
+ if (chr == '/') {
3069
+ state = AUTHORITY;
3070
+ break;
3071
+ } else {
3072
+ state = PATH;
3073
+ continue;
3074
+ }
3075
+
3076
+ case RELATIVE:
3077
+ url.scheme = base.scheme;
3078
+ if (chr == EOF) {
3079
+ url.username = base.username;
3080
+ url.password = base.password;
3081
+ url.host = base.host;
3082
+ url.port = base.port;
3083
+ url.path = arraySlice(base.path);
3084
+ url.query = base.query;
3085
+ } else if (chr == '/' || (chr == '\\' && url.isSpecial())) {
3086
+ state = RELATIVE_SLASH;
3087
+ } else if (chr == '?') {
3088
+ url.username = base.username;
3089
+ url.password = base.password;
3090
+ url.host = base.host;
3091
+ url.port = base.port;
3092
+ url.path = arraySlice(base.path);
3093
+ url.query = '';
3094
+ state = QUERY;
3095
+ } else if (chr == '#') {
3096
+ url.username = base.username;
3097
+ url.password = base.password;
3098
+ url.host = base.host;
3099
+ url.port = base.port;
3100
+ url.path = arraySlice(base.path);
3101
+ url.query = base.query;
3102
+ url.fragment = '';
3103
+ state = FRAGMENT;
3104
+ } else {
3105
+ url.username = base.username;
3106
+ url.password = base.password;
3107
+ url.host = base.host;
3108
+ url.port = base.port;
3109
+ url.path = arraySlice(base.path);
3110
+ url.path.length--;
3111
+ state = PATH;
3112
+ continue;
3113
+ } break;
3114
+
3115
+ case RELATIVE_SLASH:
3116
+ if (url.isSpecial() && (chr == '/' || chr == '\\')) {
3117
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3118
+ } else if (chr == '/') {
3119
+ state = AUTHORITY;
3120
+ } else {
3121
+ url.username = base.username;
3122
+ url.password = base.password;
3123
+ url.host = base.host;
3124
+ url.port = base.port;
3125
+ state = PATH;
3126
+ continue;
3127
+ } break;
3128
+
3129
+ case SPECIAL_AUTHORITY_SLASHES:
3130
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3131
+ if (chr != '/' || charAt(buffer, pointer + 1) != '/') continue;
3132
+ pointer++;
3133
+ break;
3134
+
3135
+ case SPECIAL_AUTHORITY_IGNORE_SLASHES:
3136
+ if (chr != '/' && chr != '\\') {
3137
+ state = AUTHORITY;
3138
+ continue;
3139
+ } break;
3140
+
3141
+ case AUTHORITY:
3142
+ if (chr == '@') {
3143
+ if (seenAt) buffer = '%40' + buffer;
3144
+ seenAt = true;
3145
+ bufferCodePoints = arrayFrom(buffer);
3146
+ for (var i = 0; i < bufferCodePoints.length; i++) {
3147
+ var codePoint = bufferCodePoints[i];
3148
+ if (codePoint == ':' && !seenPasswordToken) {
3149
+ seenPasswordToken = true;
3150
+ continue;
3151
+ }
3152
+ var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
3153
+ if (seenPasswordToken) url.password += encodedCodePoints;
3154
+ else url.username += encodedCodePoints;
3155
+ }
3156
+ buffer = '';
3157
+ } else if (
3158
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
3159
+ (chr == '\\' && url.isSpecial())
3160
+ ) {
3161
+ if (seenAt && buffer == '') return INVALID_AUTHORITY;
3162
+ pointer -= arrayFrom(buffer).length + 1;
3163
+ buffer = '';
3164
+ state = HOST;
3165
+ } else buffer += chr;
3166
+ break;
3167
+
3168
+ case HOST:
3169
+ case HOSTNAME:
3170
+ if (stateOverride && url.scheme == 'file') {
3171
+ state = FILE_HOST;
3172
+ continue;
3173
+ } else if (chr == ':' && !seenBracket) {
3174
+ if (buffer == '') return INVALID_HOST;
3175
+ failure = url.parseHost(buffer);
3176
+ if (failure) return failure;
3177
+ buffer = '';
3178
+ state = PORT;
3179
+ if (stateOverride == HOSTNAME) return;
3180
+ } else if (
3181
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
3182
+ (chr == '\\' && url.isSpecial())
3183
+ ) {
3184
+ if (url.isSpecial() && buffer == '') return INVALID_HOST;
3185
+ if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null)) return;
3186
+ failure = url.parseHost(buffer);
3187
+ if (failure) return failure;
3188
+ buffer = '';
3189
+ state = PATH_START;
3190
+ if (stateOverride) return;
3191
+ continue;
3192
+ } else {
3193
+ if (chr == '[') seenBracket = true;
3194
+ else if (chr == ']') seenBracket = false;
3195
+ buffer += chr;
3196
+ } break;
3197
+
3198
+ case PORT:
3199
+ if (exec(DIGIT, chr)) {
3200
+ buffer += chr;
3201
+ } else if (
3202
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
3203
+ (chr == '\\' && url.isSpecial()) ||
3204
+ stateOverride
3205
+ ) {
3206
+ if (buffer != '') {
3207
+ var port = parseInt$1(buffer, 10);
3208
+ if (port > 0xFFFF) return INVALID_PORT;
3209
+ url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
3210
+ buffer = '';
3211
+ }
3212
+ if (stateOverride) return;
3213
+ state = PATH_START;
3214
+ continue;
3215
+ } else return INVALID_PORT;
3216
+ break;
3217
+
3218
+ case FILE:
3219
+ url.scheme = 'file';
3220
+ if (chr == '/' || chr == '\\') state = FILE_SLASH;
3221
+ else if (base && base.scheme == 'file') {
3222
+ if (chr == EOF) {
3223
+ url.host = base.host;
3224
+ url.path = arraySlice(base.path);
3225
+ url.query = base.query;
3226
+ } else if (chr == '?') {
3227
+ url.host = base.host;
3228
+ url.path = arraySlice(base.path);
3229
+ url.query = '';
3230
+ state = QUERY;
3231
+ } else if (chr == '#') {
3232
+ url.host = base.host;
3233
+ url.path = arraySlice(base.path);
3234
+ url.query = base.query;
3235
+ url.fragment = '';
3236
+ state = FRAGMENT;
3237
+ } else {
3238
+ if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3239
+ url.host = base.host;
3240
+ url.path = arraySlice(base.path);
3241
+ url.shortenPath();
3242
+ }
3243
+ state = PATH;
3244
+ continue;
3245
+ }
3246
+ } else {
3247
+ state = PATH;
3248
+ continue;
3249
+ } break;
3250
+
3251
+ case FILE_SLASH:
3252
+ if (chr == '/' || chr == '\\') {
3253
+ state = FILE_HOST;
3254
+ break;
3255
+ }
3256
+ if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3257
+ if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
3258
+ else url.host = base.host;
3259
+ }
3260
+ state = PATH;
3261
+ continue;
3262
+
3263
+ case FILE_HOST:
3264
+ if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
3265
+ if (!stateOverride && isWindowsDriveLetter(buffer)) {
3266
+ state = PATH;
3267
+ } else if (buffer == '') {
3268
+ url.host = '';
3269
+ if (stateOverride) return;
3270
+ state = PATH_START;
3271
+ } else {
3272
+ failure = url.parseHost(buffer);
3273
+ if (failure) return failure;
3274
+ if (url.host == 'localhost') url.host = '';
3275
+ if (stateOverride) return;
3276
+ buffer = '';
3277
+ state = PATH_START;
3278
+ } continue;
3279
+ } else buffer += chr;
3280
+ break;
3281
+
3282
+ case PATH_START:
3283
+ if (url.isSpecial()) {
3284
+ state = PATH;
3285
+ if (chr != '/' && chr != '\\') continue;
3286
+ } else if (!stateOverride && chr == '?') {
3287
+ url.query = '';
3288
+ state = QUERY;
3289
+ } else if (!stateOverride && chr == '#') {
3290
+ url.fragment = '';
3291
+ state = FRAGMENT;
3292
+ } else if (chr != EOF) {
3293
+ state = PATH;
3294
+ if (chr != '/') continue;
3295
+ } break;
3296
+
3297
+ case PATH:
3298
+ if (
3299
+ chr == EOF || chr == '/' ||
3300
+ (chr == '\\' && url.isSpecial()) ||
3301
+ (!stateOverride && (chr == '?' || chr == '#'))
3302
+ ) {
3303
+ if (isDoubleDot(buffer)) {
3304
+ url.shortenPath();
3305
+ if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
3306
+ push(url.path, '');
3307
+ }
3308
+ } else if (isSingleDot(buffer)) {
3309
+ if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
3310
+ push(url.path, '');
3311
+ }
3312
+ } else {
3313
+ if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
3314
+ if (url.host) url.host = '';
3315
+ buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
3316
+ }
3317
+ push(url.path, buffer);
3318
+ }
3319
+ buffer = '';
3320
+ if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
3321
+ while (url.path.length > 1 && url.path[0] === '') {
3322
+ shift(url.path);
3323
+ }
3324
+ }
3325
+ if (chr == '?') {
3326
+ url.query = '';
3327
+ state = QUERY;
3328
+ } else if (chr == '#') {
3329
+ url.fragment = '';
3330
+ state = FRAGMENT;
3331
+ }
3332
+ } else {
3333
+ buffer += percentEncode(chr, pathPercentEncodeSet);
3334
+ } break;
3335
+
3336
+ case CANNOT_BE_A_BASE_URL_PATH:
3337
+ if (chr == '?') {
3338
+ url.query = '';
3339
+ state = QUERY;
3340
+ } else if (chr == '#') {
3341
+ url.fragment = '';
3342
+ state = FRAGMENT;
3343
+ } else if (chr != EOF) {
3344
+ url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
3345
+ } break;
3346
+
3347
+ case QUERY:
3348
+ if (!stateOverride && chr == '#') {
3349
+ url.fragment = '';
3350
+ state = FRAGMENT;
3351
+ } else if (chr != EOF) {
3352
+ if (chr == "'" && url.isSpecial()) url.query += '%27';
3353
+ else if (chr == '#') url.query += '%23';
3354
+ else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
3355
+ } break;
3356
+
3357
+ case FRAGMENT:
3358
+ if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
3359
+ break;
3360
+ }
3361
+
3362
+ pointer++;
3363
+ }
3364
+ },
3365
+ // https://url.spec.whatwg.org/#host-parsing
3366
+ parseHost: function (input) {
3367
+ var result, codePoints, index;
3368
+ if (charAt(input, 0) == '[') {
3369
+ if (charAt(input, input.length - 1) != ']') return INVALID_HOST;
3370
+ result = parseIPv6(stringSlice(input, 1, -1));
3371
+ if (!result) return INVALID_HOST;
3372
+ this.host = result;
3373
+ // opaque host
3374
+ } else if (!this.isSpecial()) {
3375
+ if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
3376
+ result = '';
3377
+ codePoints = arrayFrom(input);
3378
+ for (index = 0; index < codePoints.length; index++) {
3379
+ result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
3380
+ }
3381
+ this.host = result;
3382
+ } else {
3383
+ input = toASCII(input);
3384
+ if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
3385
+ result = parseIPv4(input);
3386
+ if (result === null) return INVALID_HOST;
3387
+ this.host = result;
3388
+ }
3389
+ },
3390
+ // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
3391
+ cannotHaveUsernamePasswordPort: function () {
3392
+ return !this.host || this.cannotBeABaseURL || this.scheme == 'file';
3393
+ },
3394
+ // https://url.spec.whatwg.org/#include-credentials
3395
+ includesCredentials: function () {
3396
+ return this.username != '' || this.password != '';
3397
+ },
3398
+ // https://url.spec.whatwg.org/#is-special
3399
+ isSpecial: function () {
3400
+ return hasOwn(specialSchemes, this.scheme);
3401
+ },
3402
+ // https://url.spec.whatwg.org/#shorten-a-urls-path
3403
+ shortenPath: function () {
3404
+ var path = this.path;
3405
+ var pathSize = path.length;
3406
+ if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
3407
+ path.length--;
3408
+ }
3409
+ },
3410
+ // https://url.spec.whatwg.org/#concept-url-serializer
3411
+ serialize: function () {
3412
+ var url = this;
3413
+ var scheme = url.scheme;
3414
+ var username = url.username;
3415
+ var password = url.password;
3416
+ var host = url.host;
3417
+ var port = url.port;
3418
+ var path = url.path;
3419
+ var query = url.query;
3420
+ var fragment = url.fragment;
3421
+ var output = scheme + ':';
3422
+ if (host !== null) {
3423
+ output += '//';
3424
+ if (url.includesCredentials()) {
3425
+ output += username + (password ? ':' + password : '') + '@';
3426
+ }
3427
+ output += serializeHost(host);
3428
+ if (port !== null) output += ':' + port;
3429
+ } else if (scheme == 'file') output += '//';
3430
+ output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3431
+ if (query !== null) output += '?' + query;
3432
+ if (fragment !== null) output += '#' + fragment;
3433
+ return output;
3434
+ },
3435
+ // https://url.spec.whatwg.org/#dom-url-href
3436
+ setHref: function (href) {
3437
+ var failure = this.parse(href);
3438
+ if (failure) throw TypeError$1(failure);
3439
+ this.searchParams.update();
3440
+ },
3441
+ // https://url.spec.whatwg.org/#dom-url-origin
3442
+ getOrigin: function () {
3443
+ var scheme = this.scheme;
3444
+ var port = this.port;
3445
+ if (scheme == 'blob') try {
3446
+ return new URLConstructor(scheme.path[0]).origin;
3447
+ } catch (error) {
3448
+ return 'null';
3449
+ }
3450
+ if (scheme == 'file' || !this.isSpecial()) return 'null';
3451
+ return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
3452
+ },
3453
+ // https://url.spec.whatwg.org/#dom-url-protocol
3454
+ getProtocol: function () {
3455
+ return this.scheme + ':';
3456
+ },
3457
+ setProtocol: function (protocol) {
3458
+ this.parse($toString(protocol) + ':', SCHEME_START);
3459
+ },
3460
+ // https://url.spec.whatwg.org/#dom-url-username
3461
+ getUsername: function () {
3462
+ return this.username;
3463
+ },
3464
+ setUsername: function (username) {
3465
+ var codePoints = arrayFrom($toString(username));
3466
+ if (this.cannotHaveUsernamePasswordPort()) return;
3467
+ this.username = '';
3468
+ for (var i = 0; i < codePoints.length; i++) {
3469
+ this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3470
+ }
3471
+ },
3472
+ // https://url.spec.whatwg.org/#dom-url-password
3473
+ getPassword: function () {
3474
+ return this.password;
3475
+ },
3476
+ setPassword: function (password) {
3477
+ var codePoints = arrayFrom($toString(password));
3478
+ if (this.cannotHaveUsernamePasswordPort()) return;
3479
+ this.password = '';
3480
+ for (var i = 0; i < codePoints.length; i++) {
3481
+ this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3482
+ }
3483
+ },
3484
+ // https://url.spec.whatwg.org/#dom-url-host
3485
+ getHost: function () {
3486
+ var host = this.host;
3487
+ var port = this.port;
3488
+ return host === null ? ''
3489
+ : port === null ? serializeHost(host)
3490
+ : serializeHost(host) + ':' + port;
3491
+ },
3492
+ setHost: function (host) {
3493
+ if (this.cannotBeABaseURL) return;
3494
+ this.parse(host, HOST);
3495
+ },
3496
+ // https://url.spec.whatwg.org/#dom-url-hostname
3497
+ getHostname: function () {
3498
+ var host = this.host;
3499
+ return host === null ? '' : serializeHost(host);
3500
+ },
3501
+ setHostname: function (hostname) {
3502
+ if (this.cannotBeABaseURL) return;
3503
+ this.parse(hostname, HOSTNAME);
3504
+ },
3505
+ // https://url.spec.whatwg.org/#dom-url-port
3506
+ getPort: function () {
3507
+ var port = this.port;
3508
+ return port === null ? '' : $toString(port);
3509
+ },
3510
+ setPort: function (port) {
3511
+ if (this.cannotHaveUsernamePasswordPort()) return;
3512
+ port = $toString(port);
3513
+ if (port == '') this.port = null;
3514
+ else this.parse(port, PORT);
3515
+ },
3516
+ // https://url.spec.whatwg.org/#dom-url-pathname
3517
+ getPathname: function () {
3518
+ var path = this.path;
3519
+ return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3520
+ },
3521
+ setPathname: function (pathname) {
3522
+ if (this.cannotBeABaseURL) return;
3523
+ this.path = [];
3524
+ this.parse(pathname, PATH_START);
3525
+ },
3526
+ // https://url.spec.whatwg.org/#dom-url-search
3527
+ getSearch: function () {
3528
+ var query = this.query;
3529
+ return query ? '?' + query : '';
3530
+ },
3531
+ setSearch: function (search) {
3532
+ search = $toString(search);
3533
+ if (search == '') {
3534
+ this.query = null;
3535
+ } else {
3536
+ if ('?' == charAt(search, 0)) search = stringSlice(search, 1);
3537
+ this.query = '';
3538
+ this.parse(search, QUERY);
3539
+ }
3540
+ this.searchParams.update();
3541
+ },
3542
+ // https://url.spec.whatwg.org/#dom-url-searchparams
3543
+ getSearchParams: function () {
3544
+ return this.searchParams.facade;
3545
+ },
3546
+ // https://url.spec.whatwg.org/#dom-url-hash
3547
+ getHash: function () {
3548
+ var fragment = this.fragment;
3549
+ return fragment ? '#' + fragment : '';
3550
+ },
3551
+ setHash: function (hash) {
3552
+ hash = $toString(hash);
3553
+ if (hash == '') {
3554
+ this.fragment = null;
3555
+ return;
3556
+ }
3557
+ if ('#' == charAt(hash, 0)) hash = stringSlice(hash, 1);
3558
+ this.fragment = '';
3559
+ this.parse(hash, FRAGMENT);
3560
+ },
3561
+ update: function () {
3562
+ this.query = this.searchParams.serialize() || null;
3563
+ }
3564
+ };
3565
+
3566
+ // `URL` constructor
3567
+ // https://url.spec.whatwg.org/#url-class
3568
+ var URLConstructor = function URL(url /* , base */) {
3569
+ var that = anInstance(this, URLPrototype);
3570
+ var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
3571
+ var state = setInternalState(that, new URLState(url, false, base));
3572
+ if (!DESCRIPTORS) {
3573
+ that.href = state.serialize();
3574
+ that.origin = state.getOrigin();
3575
+ that.protocol = state.getProtocol();
3576
+ that.username = state.getUsername();
3577
+ that.password = state.getPassword();
3578
+ that.host = state.getHost();
3579
+ that.hostname = state.getHostname();
3580
+ that.port = state.getPort();
3581
+ that.pathname = state.getPathname();
3582
+ that.search = state.getSearch();
3583
+ that.searchParams = state.getSearchParams();
3584
+ that.hash = state.getHash();
3585
+ }
3586
+ };
3587
+
3588
+ var URLPrototype = URLConstructor.prototype;
3589
+
3590
+ var accessorDescriptor = function (getter, setter) {
3591
+ return {
3592
+ get: function () {
3593
+ return getInternalURLState(this)[getter]();
3594
+ },
3595
+ set: setter && function (value) {
3596
+ return getInternalURLState(this)[setter](value);
3597
+ },
3598
+ configurable: true,
3599
+ enumerable: true
3600
+ };
3601
+ };
3602
+
3603
+ if (DESCRIPTORS) {
3604
+ // `URL.prototype.href` accessors pair
3605
+ // https://url.spec.whatwg.org/#dom-url-href
3606
+ defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
3607
+ // `URL.prototype.origin` getter
3608
+ // https://url.spec.whatwg.org/#dom-url-origin
3609
+ defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
3610
+ // `URL.prototype.protocol` accessors pair
3611
+ // https://url.spec.whatwg.org/#dom-url-protocol
3612
+ defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
3613
+ // `URL.prototype.username` accessors pair
3614
+ // https://url.spec.whatwg.org/#dom-url-username
3615
+ defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
3616
+ // `URL.prototype.password` accessors pair
3617
+ // https://url.spec.whatwg.org/#dom-url-password
3618
+ defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
3619
+ // `URL.prototype.host` accessors pair
3620
+ // https://url.spec.whatwg.org/#dom-url-host
3621
+ defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
3622
+ // `URL.prototype.hostname` accessors pair
3623
+ // https://url.spec.whatwg.org/#dom-url-hostname
3624
+ defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
3625
+ // `URL.prototype.port` accessors pair
3626
+ // https://url.spec.whatwg.org/#dom-url-port
3627
+ defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
3628
+ // `URL.prototype.pathname` accessors pair
3629
+ // https://url.spec.whatwg.org/#dom-url-pathname
3630
+ defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
3631
+ // `URL.prototype.search` accessors pair
3632
+ // https://url.spec.whatwg.org/#dom-url-search
3633
+ defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
3634
+ // `URL.prototype.searchParams` getter
3635
+ // https://url.spec.whatwg.org/#dom-url-searchparams
3636
+ defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
3637
+ // `URL.prototype.hash` accessors pair
3638
+ // https://url.spec.whatwg.org/#dom-url-hash
3639
+ defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
3640
+ }
3641
+
3642
+ // `URL.prototype.toJSON` method
3643
+ // https://url.spec.whatwg.org/#dom-url-tojson
3644
+ defineBuiltIn(URLPrototype, 'toJSON', function toJSON() {
3645
+ return getInternalURLState(this).serialize();
3646
+ }, { enumerable: true });
3647
+
3648
+ // `URL.prototype.toString` method
3649
+ // https://url.spec.whatwg.org/#URL-stringification-behavior
3650
+ defineBuiltIn(URLPrototype, 'toString', function toString() {
3651
+ return getInternalURLState(this).serialize();
3652
+ }, { enumerable: true });
3653
+
3654
+ if (NativeURL) {
3655
+ var nativeCreateObjectURL = NativeURL.createObjectURL;
3656
+ var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
3657
+ // `URL.createObjectURL` method
3658
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
3659
+ if (nativeCreateObjectURL) defineBuiltIn(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
3660
+ // `URL.revokeObjectURL` method
3661
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
3662
+ if (nativeRevokeObjectURL) defineBuiltIn(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
3663
+ }
3664
+
3665
+ setToStringTag(URLConstructor, 'URL');
3666
+
3667
+ $({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
3668
+ URL: URLConstructor
3669
+ });
3670
+
1
3671
  /**
2
3672
  * A reference to globalThis, with support
3
3673
  * for browsers that don't yet support the spec.
@@ -67,6 +3737,27 @@ if (FAST.getById === void 0) {
67
3737
  * @internal
68
3738
  */
69
3739
  const emptyArray = Object.freeze([]);
3740
+ /**
3741
+ * Creates a function capable of locating metadata associated with a type.
3742
+ * @returns A metadata locator function.
3743
+ * @internal
3744
+ */
3745
+ function createMetadataLocator() {
3746
+ const metadataLookup = new WeakMap();
3747
+ return function (target) {
3748
+ let metadata = metadataLookup.get(target);
3749
+ if (metadata === void 0) {
3750
+ let currentTarget = Reflect.getPrototypeOf(target);
3751
+ while (metadata === void 0 && currentTarget !== null) {
3752
+ metadata = metadataLookup.get(currentTarget);
3753
+ currentTarget = Reflect.getPrototypeOf(currentTarget);
3754
+ }
3755
+ metadata = metadata === void 0 ? [] : metadata.slice(0);
3756
+ metadataLookup.set(target, metadata);
3757
+ }
3758
+ return metadata;
3759
+ };
3760
+ }
70
3761
 
71
3762
  const updateQueue = $global.FAST.getById(1 /* updateQueue */, () => {
72
3763
  const tasks = [];
@@ -275,30 +3966,6 @@ const DOM = Object.freeze({
275
3966
  },
276
3967
  });
277
3968
 
278
- function spilloverSubscribe(subscriber) {
279
- const spillover = this.spillover;
280
- const index = spillover.indexOf(subscriber);
281
- if (index === -1) {
282
- spillover.push(subscriber);
283
- }
284
- }
285
- function spilloverUnsubscribe(subscriber) {
286
- const spillover = this.spillover;
287
- const index = spillover.indexOf(subscriber);
288
- if (index !== -1) {
289
- spillover.splice(index, 1);
290
- }
291
- }
292
- function spilloverNotifySubscribers(args) {
293
- const spillover = this.spillover;
294
- const source = this.source;
295
- for (let i = 0, ii = spillover.length; i < ii; ++i) {
296
- spillover[i].handleChange(source, args);
297
- }
298
- }
299
- function spilloverHas(subscriber) {
300
- return this.spillover.indexOf(subscriber) !== -1;
301
- }
302
3969
  /**
303
3970
  * An implementation of {@link Notifier} that efficiently keeps track of
304
3971
  * subscribers interested in a specific change notification on an
@@ -328,42 +3995,58 @@ class SubscriberSet {
328
3995
  * @param subscriber - The subscriber to test for inclusion in this set.
329
3996
  */
330
3997
  has(subscriber) {
331
- return this.sub1 === subscriber || this.sub2 === subscriber;
3998
+ return this.spillover === void 0
3999
+ ? this.sub1 === subscriber || this.sub2 === subscriber
4000
+ : this.spillover.indexOf(subscriber) !== -1;
332
4001
  }
333
4002
  /**
334
4003
  * Subscribes to notification of changes in an object's state.
335
4004
  * @param subscriber - The object that is subscribing for change notification.
336
4005
  */
337
4006
  subscribe(subscriber) {
338
- if (this.has(subscriber)) {
339
- return;
340
- }
341
- if (this.sub1 === void 0) {
342
- this.sub1 = subscriber;
343
- return;
4007
+ const spillover = this.spillover;
4008
+ if (spillover === void 0) {
4009
+ if (this.has(subscriber)) {
4010
+ return;
4011
+ }
4012
+ if (this.sub1 === void 0) {
4013
+ this.sub1 = subscriber;
4014
+ return;
4015
+ }
4016
+ if (this.sub2 === void 0) {
4017
+ this.sub2 = subscriber;
4018
+ return;
4019
+ }
4020
+ this.spillover = [this.sub1, this.sub2, subscriber];
4021
+ this.sub1 = void 0;
4022
+ this.sub2 = void 0;
344
4023
  }
345
- if (this.sub2 === void 0) {
346
- this.sub2 = subscriber;
347
- return;
4024
+ else {
4025
+ const index = spillover.indexOf(subscriber);
4026
+ if (index === -1) {
4027
+ spillover.push(subscriber);
4028
+ }
348
4029
  }
349
- this.spillover = [this.sub1, this.sub2, subscriber];
350
- this.subscribe = spilloverSubscribe;
351
- this.unsubscribe = spilloverUnsubscribe;
352
- this.notify = spilloverNotifySubscribers;
353
- this.has = spilloverHas;
354
- this.sub1 = void 0;
355
- this.sub2 = void 0;
356
4030
  }
357
4031
  /**
358
4032
  * Unsubscribes from notification of changes in an object's state.
359
4033
  * @param subscriber - The object that is unsubscribing from change notification.
360
4034
  */
361
4035
  unsubscribe(subscriber) {
362
- if (this.sub1 === subscriber) {
363
- this.sub1 = void 0;
4036
+ const spillover = this.spillover;
4037
+ if (spillover === void 0) {
4038
+ if (this.sub1 === subscriber) {
4039
+ this.sub1 = void 0;
4040
+ }
4041
+ else if (this.sub2 === subscriber) {
4042
+ this.sub2 = void 0;
4043
+ }
364
4044
  }
365
- else if (this.sub2 === subscriber) {
366
- this.sub2 = void 0;
4045
+ else {
4046
+ const index = spillover.indexOf(subscriber);
4047
+ if (index !== -1) {
4048
+ spillover.splice(index, 1);
4049
+ }
367
4050
  }
368
4051
  }
369
4052
  /**
@@ -371,14 +4054,22 @@ class SubscriberSet {
371
4054
  * @param args - Data passed along to subscribers during notification.
372
4055
  */
373
4056
  notify(args) {
374
- const sub1 = this.sub1;
375
- const sub2 = this.sub2;
4057
+ const spillover = this.spillover;
376
4058
  const source = this.source;
377
- if (sub1 !== void 0) {
378
- sub1.handleChange(source, args);
4059
+ if (spillover === void 0) {
4060
+ const sub1 = this.sub1;
4061
+ const sub2 = this.sub2;
4062
+ if (sub1 !== void 0) {
4063
+ sub1.handleChange(source, args);
4064
+ }
4065
+ if (sub2 !== void 0) {
4066
+ sub2.handleChange(source, args);
4067
+ }
379
4068
  }
380
- if (sub2 !== void 0) {
381
- sub2.handleChange(source, args);
4069
+ else {
4070
+ for (let i = 0, ii = spillover.length; i < ii; ++i) {
4071
+ spillover[i].handleChange(source, args);
4072
+ }
382
4073
  }
383
4074
  }
384
4075
  }
@@ -424,7 +4115,8 @@ class PropertyChangeNotifier {
424
4115
  subscribers.subscribe(subscriber);
425
4116
  }
426
4117
  else {
427
- this.sourceSubscribers = (_a = this.sourceSubscribers) !== null && _a !== void 0 ? _a : new SubscriberSet(this.source);
4118
+ this.sourceSubscribers =
4119
+ (_a = this.sourceSubscribers) !== null && _a !== void 0 ? _a : new SubscriberSet(this.source);
428
4120
  this.sourceSubscribers.subscribe(subscriber);
429
4121
  }
430
4122
  }
@@ -454,7 +4146,6 @@ class PropertyChangeNotifier {
454
4146
  const Observable = FAST.getById(2 /* observable */, () => {
455
4147
  const volatileRegex = /(:|&&|\|\||if)/;
456
4148
  const notifierLookup = new WeakMap();
457
- const accessorLookup = new WeakMap();
458
4149
  const queueUpdate = DOM.queueUpdate;
459
4150
  let watcher = void 0;
460
4151
  let createArrayObserver = (array) => {
@@ -472,24 +4163,7 @@ const Observable = FAST.getById(2 /* observable */, () => {
472
4163
  }
473
4164
  return found;
474
4165
  }
475
- function getAccessors(target) {
476
- let accessors = accessorLookup.get(target);
477
- if (accessors === void 0) {
478
- let currentTarget = Reflect.getPrototypeOf(target);
479
- while (accessors === void 0 && currentTarget !== null) {
480
- accessors = accessorLookup.get(currentTarget);
481
- currentTarget = Reflect.getPrototypeOf(currentTarget);
482
- }
483
- if (accessors === void 0) {
484
- accessors = [];
485
- }
486
- else {
487
- accessors = accessors.slice(0);
488
- }
489
- accessorLookup.set(target, accessors);
490
- }
491
- return accessors;
492
- }
4166
+ const getAccessors = createMetadataLocator();
493
4167
  class DefaultObservableAccessor {
494
4168
  constructor(name) {
495
4169
  this.name = name;
@@ -568,6 +4242,7 @@ const Observable = FAST.getById(2 /* observable */, () => {
568
4242
  watcher = void 0;
569
4243
  /* eslint-disable-next-line */
570
4244
  prevValue = prev.propertySource[prev.propertyName];
4245
+ /* eslint-disable-next-line @typescript-eslint/no-this-alias */
571
4246
  watcher = this;
572
4247
  if (propertySource === prevValue) {
573
4248
  this.needsRefresh = true;
@@ -707,6 +4382,21 @@ const Observable = FAST.getById(2 /* observable */, () => {
707
4382
  function observable(target, nameOrAccessor) {
708
4383
  Observable.defineProperty(target, nameOrAccessor);
709
4384
  }
4385
+ /**
4386
+ * Decorator: Marks a property getter as having volatile observable dependencies.
4387
+ * @param target - The target that the property is defined on.
4388
+ * @param name - The property name.
4389
+ * @param name - The existing descriptor.
4390
+ * @public
4391
+ */
4392
+ function volatile(target, name, descriptor) {
4393
+ return Object.assign({}, descriptor, {
4394
+ get: function () {
4395
+ Observable.trackVolatile();
4396
+ return descriptor.get.apply(this);
4397
+ },
4398
+ });
4399
+ }
710
4400
  const contextEvent = FAST.getById(3 /* contextEvent */, () => {
711
4401
  let current = null;
712
4402
  return {
@@ -1128,6 +4818,7 @@ class CompilationContext {
1128
4818
  this.targetIndex = -1;
1129
4819
  }
1130
4820
  release() {
4821
+ /* eslint-disable-next-line @typescript-eslint/no-this-alias */
1131
4822
  sharedContext = this;
1132
4823
  }
1133
4824
  static borrow(directives) {
@@ -1340,8 +5031,10 @@ class HTMLView {
1340
5031
  node.parentNode.insertBefore(this.fragment, node);
1341
5032
  }
1342
5033
  else {
1343
- const parentNode = node.parentNode;
1344
5034
  const end = this.lastChild;
5035
+ if (node.previousSibling === end)
5036
+ return;
5037
+ const parentNode = node.parentNode;
1345
5038
  let current = this.firstChild;
1346
5039
  let next;
1347
5040
  while (current !== end) {
@@ -1606,8 +5299,6 @@ function html(strings, ...values) {
1606
5299
  class ElementStyles {
1607
5300
  constructor() {
1608
5301
  this.targets = new WeakSet();
1609
- /** @internal */
1610
- this.behaviors = null;
1611
5302
  }
1612
5303
  /** @internal */
1613
5304
  addStylesTo(target) {
@@ -1749,6 +5440,16 @@ class StyleElementStyles extends ElementStyles {
1749
5440
  }
1750
5441
  }
1751
5442
 
5443
+ /**
5444
+ * Metadata used to configure a custom attribute's behavior.
5445
+ * @public
5446
+ */
5447
+ const AttributeConfiguration = Object.freeze({
5448
+ /**
5449
+ * Locates all attribute configurations associated with a type.
5450
+ */
5451
+ locate: createMetadataLocator(),
5452
+ });
1752
5453
  /**
1753
5454
  * A {@link ValueConverter} that converts to and from `boolean` values.
1754
5455
  * @remarks
@@ -1889,7 +5590,7 @@ class AttributeDefinition {
1889
5590
  */
1890
5591
  static collect(Owner, ...attributeLists) {
1891
5592
  const attributes = [];
1892
- attributeLists.push(Owner.attributes);
5593
+ attributeLists.push(AttributeConfiguration.locate(Owner));
1893
5594
  for (let i = 0, ii = attributeLists.length; i < ii; ++i) {
1894
5595
  const list = attributeLists[i];
1895
5596
  if (list === void 0) {
@@ -1919,9 +5620,7 @@ function attr(configOrTarget, prop) {
1919
5620
  // - @attr({...opts})
1920
5621
  config.property = $prop;
1921
5622
  }
1922
- const attributes = $target.constructor.attributes ||
1923
- ($target.constructor.attributes = []);
1924
- attributes.push(config);
5623
+ AttributeConfiguration.locate($target.constructor).push(config);
1925
5624
  }
1926
5625
  if (arguments.length > 1) {
1927
5626
  // Non invocation:
@@ -4990,9 +8689,7 @@ class ElementDefinitionEntry {
4990
8689
  }
4991
8690
  /* eslint-enable @typescript-eslint/no-non-null-assertion */
4992
8691
 
4993
- function provideVividDesignSystem(element) {
4994
- return DesignSystem.getOrCreate(element).withPrefix('vwc');
4995
- }
4996
- const designSystem = provideVividDesignSystem();
8692
+ const getPrefix = url => new URL(url).searchParams.get('prefix') || 'vwc';
8693
+ const designSystem = DesignSystem.getOrCreate();
4997
8694
 
4998
- export { AttachedBehaviorHTMLDirective as A, DOM as D, FoundationElement as F, HTMLDirective as H, Observable as O, SubscriberSet as S, __decorate as _, attr as a, __metadata as b, __classPrivateFieldGet as c, designSystem as d, emptyArray as e, HTMLView as f, __classPrivateFieldSet as g, html as h, nullableNumberConverter as n, observable as o, provideVividDesignSystem as p };
8695
+ export { emptyArray as $, isForced_1 as A, inspectSource$2 as B, engineV8Version as C, aCallable$3 as D, _export as E, FoundationElement as F, defineBuiltIn$6 as G, objectSetPrototypeOf as H, setToStringTag$4 as I, functionCall as J, anInstance$2 as K, internalState as L, isObject$8 as M, isArrayIteratorMethod$1 as N, lengthOfArrayLike$3 as O, objectIsPrototypeOf as P, getIterator$2 as Q, getIteratorMethod$3 as R, iteratorClose$1 as S, AttributeConfiguration as T, functionName as U, observable as V, requireObjectCoercible$3 as W, toString$2 as X, __classPrivateFieldGet as Y, Observable as Z, __decorate as _, attr as a, AttachedBehaviorHTMLDirective as a0, booleanConverter as a1, DOM as a2, SubscriberSet as a3, HTMLDirective as a4, HTMLView as a5, nullableNumberConverter as a6, objectAssign as a7, copyConstructorProperties$1 as a8, __classPrivateFieldSet as a9, volatile as aa, __metadata as b, classofRaw$2 as c, designSystem as d, global$d as e, getBuiltIn$5 as f, getPrefix as g, html as h, descriptors as i, isConstructor$1 as j, anObject$9 as k, isNullOrUndefined$3 as l, functionBindNative as m, functionUncurryThis as n, objectDefineProperty as o, engineUserAgent as p, functionBindContext as q, isCallable$h as r, fails$d as s, tryToString$2 as t, html$2 as u, documentCreateElement$2 as v, wellKnownSymbol$c as w, validateArgumentsLength$2 as x, hasOwnProperty_1 as y, objectGetOwnPropertyDescriptor as z };