@vonage/vivid 3.0.0 → 3.0.1

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 (323) hide show
  1. package/README.md +176 -4
  2. package/accordion/index.js +22 -61
  3. package/accordion-item/index.js +16 -118
  4. package/action-group/index.js +5 -0
  5. package/avatar/index.js +11 -0
  6. package/badge/index.js +9 -53
  7. package/banner/index.js +20 -210
  8. package/breadcrumb/index.js +7 -96
  9. package/breadcrumb-item/index.js +15 -46
  10. package/button/index.js +19 -751
  11. package/calendar/index.js +5 -1520
  12. package/calendar-event/index.js +9 -0
  13. package/card/index.js +10 -133
  14. package/checkbox/index.js +16 -0
  15. package/combobox/index.js +35 -0
  16. package/dialog/index.js +24 -0
  17. package/divider/index.js +6 -0
  18. package/elevation/index.js +4 -30
  19. package/fab/index.js +22 -0
  20. package/focus/index.js +4 -2
  21. package/header/index.js +6 -0
  22. package/icon/index.js +8 -36
  23. package/index.js +76 -26
  24. package/layout/index.js +4 -52
  25. package/lib/accordion/accordion.d.ts +3 -7
  26. package/lib/accordion/accordion.template.d.ts +1 -2
  27. package/lib/accordion/definition.d.ts +1 -0
  28. package/lib/accordion/index.d.ts +1 -2
  29. package/lib/accordion-item/accordion-item.d.ts +2 -6
  30. package/lib/accordion-item/accordion-item.template.d.ts +4 -4
  31. package/lib/accordion-item/definition.d.ts +1 -0
  32. package/lib/accordion-item/index.d.ts +1 -3
  33. package/lib/action-group/action-group.d.ts +10 -0
  34. package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
  35. package/lib/action-group/definition.d.ts +1 -0
  36. package/lib/action-group/index.d.ts +1 -0
  37. package/lib/avatar/avatar.d.ts +15 -0
  38. package/lib/avatar/avatar.template.d.ts +4 -0
  39. package/lib/avatar/definition.d.ts +1 -0
  40. package/lib/avatar/index.d.ts +1 -0
  41. package/lib/badge/badge.d.ts +2 -4
  42. package/lib/badge/definition.d.ts +3 -0
  43. package/lib/badge/index.d.ts +1 -3
  44. package/lib/banner/banner.d.ts +1 -1
  45. package/lib/banner/banner.template.d.ts +0 -2
  46. package/lib/banner/definition.d.ts +1 -0
  47. package/lib/banner/index.d.ts +1 -2
  48. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  49. package/lib/breadcrumb/definition.d.ts +1 -0
  50. package/lib/breadcrumb/index.d.ts +1 -2
  51. package/lib/breadcrumb-item/definition.d.ts +1 -0
  52. package/lib/breadcrumb-item/index.d.ts +1 -3
  53. package/lib/button/button.d.ts +3 -2
  54. package/lib/button/definition.d.ts +1 -0
  55. package/lib/button/index.d.ts +1 -21
  56. package/lib/calendar/calendar.d.ts +3 -1
  57. package/lib/calendar/definition.d.ts +1 -0
  58. package/lib/calendar/index.d.ts +1 -3
  59. package/lib/calendar-event/calendar-event.d.ts +14 -0
  60. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  61. package/lib/calendar-event/definition.d.ts +1 -0
  62. package/lib/calendar-event/index.d.ts +1 -0
  63. package/lib/card/card.d.ts +2 -2
  64. package/lib/card/definition.d.ts +1 -0
  65. package/lib/card/index.d.ts +1 -5
  66. package/lib/checkbox/checkbox.d.ts +5 -0
  67. package/lib/checkbox/checkbox.template.d.ts +4 -0
  68. package/lib/checkbox/definition.d.ts +1 -0
  69. package/lib/checkbox/index.d.ts +1 -0
  70. package/lib/combobox/combobox.d.ts +14 -0
  71. package/lib/combobox/combobox.template.d.ts +4 -0
  72. package/lib/combobox/definition.d.ts +3 -0
  73. package/lib/combobox/index.d.ts +1 -0
  74. package/lib/components.d.ts +44 -16
  75. package/lib/dialog/definition.d.ts +1 -0
  76. package/lib/dialog/dialog.d.ts +23 -0
  77. package/lib/dialog/dialog.template.d.ts +4 -0
  78. package/lib/dialog/index.d.ts +1 -0
  79. package/lib/divider/definition.d.ts +1 -0
  80. package/lib/divider/divider.d.ts +3 -0
  81. package/lib/divider/divider.template.d.ts +4 -0
  82. package/lib/divider/index.d.ts +1 -0
  83. package/lib/elevation/definition.d.ts +1 -0
  84. package/lib/elevation/elevation.d.ts +1 -0
  85. package/lib/elevation/index.d.ts +1 -2
  86. package/lib/enums.d.ts +19 -6
  87. package/lib/fab/definition.d.ts +3 -0
  88. package/lib/fab/fab.d.ts +13 -0
  89. package/lib/fab/fab.template.d.ts +4 -0
  90. package/lib/fab/index.d.ts +1 -0
  91. package/lib/focus/definition.d.ts +3 -0
  92. package/lib/focus/index.d.ts +1 -2
  93. package/lib/{sidenav-item/index.d.ts → header/definition.d.ts} +2 -2
  94. package/lib/header/header.d.ts +5 -0
  95. package/lib/header/header.template.d.ts +4 -0
  96. package/lib/header/index.d.ts +1 -0
  97. package/lib/icon/definition.d.ts +3 -0
  98. package/lib/icon/icon.d.ts +5 -6
  99. package/lib/icon/index.d.ts +1 -2
  100. package/lib/layout/definition.d.ts +3 -0
  101. package/lib/layout/index.d.ts +1 -2
  102. package/lib/layout/layout.d.ts +4 -4
  103. package/lib/listbox/definition.d.ts +3 -0
  104. package/lib/listbox/index.d.ts +1 -0
  105. package/lib/listbox/listbox.d.ts +6 -0
  106. package/lib/listbox/listbox.template.d.ts +4 -0
  107. package/lib/menu/definition.d.ts +11 -0
  108. package/lib/menu/index.d.ts +1 -0
  109. package/lib/menu/menu.d.ts +10 -0
  110. package/lib/menu/menu.template.d.ts +3 -0
  111. package/lib/menu-item/definition.d.ts +3 -0
  112. package/lib/menu-item/index.d.ts +1 -0
  113. package/lib/menu-item/menu-item.d.ts +8 -0
  114. package/lib/menu-item/menu-item.template.d.ts +5 -0
  115. package/lib/nav/definition.d.ts +3 -0
  116. package/lib/nav/index.d.ts +1 -0
  117. package/lib/nav/nav.d.ts +3 -0
  118. package/lib/nav/nav.template.d.ts +4 -0
  119. package/lib/nav-disclosure/definition.d.ts +3 -0
  120. package/lib/nav-disclosure/index.d.ts +1 -0
  121. package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
  122. package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
  123. package/lib/nav-item/definition.d.ts +3 -0
  124. package/lib/nav-item/index.d.ts +1 -0
  125. package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
  126. package/lib/nav-item/nav-item.template.d.ts +4 -0
  127. package/lib/note/definition.d.ts +3 -0
  128. package/lib/note/index.d.ts +1 -0
  129. package/lib/note/note.d.ts +10 -0
  130. package/lib/{text/text.template.d.ts → note/note.template.d.ts} +2 -2
  131. package/lib/number-field/definition.d.ts +4 -0
  132. package/lib/number-field/index.d.ts +1 -0
  133. package/lib/number-field/number-field.d.ts +14 -0
  134. package/lib/number-field/number-field.template.d.ts +4 -0
  135. package/lib/option/definition.d.ts +3 -0
  136. package/lib/option/index.d.ts +1 -0
  137. package/lib/option/option.d.ts +9 -0
  138. package/lib/option/option.template.d.ts +4 -0
  139. package/lib/popup/definition.d.ts +4 -0
  140. package/lib/popup/index.d.ts +1 -4
  141. package/lib/popup/popup.d.ts +8 -4
  142. package/lib/progress/definition.d.ts +3 -0
  143. package/lib/progress/index.d.ts +1 -2
  144. package/lib/progress/progress.d.ts +1 -1
  145. package/lib/progress-ring/definition.d.ts +3 -0
  146. package/lib/progress-ring/index.d.ts +1 -2
  147. package/lib/progress-ring/progress-ring.d.ts +2 -1
  148. package/lib/radio/definition.d.ts +3 -0
  149. package/lib/radio/index.d.ts +1 -0
  150. package/lib/radio/radio.d.ts +4 -0
  151. package/lib/radio/radio.template.d.ts +4 -0
  152. package/lib/radio-group/definition.d.ts +11 -0
  153. package/lib/radio-group/index.d.ts +1 -0
  154. package/lib/radio-group/radio-group.d.ts +4 -0
  155. package/lib/radio-group/radio-group.template.d.ts +4 -0
  156. package/lib/select/definition.d.ts +3 -0
  157. package/lib/select/index.d.ts +1 -0
  158. package/lib/select/select.d.ts +17 -0
  159. package/lib/select/select.template.d.ts +4 -0
  160. package/lib/side-drawer/definition.d.ts +3 -0
  161. package/lib/side-drawer/index.d.ts +1 -2
  162. package/lib/side-drawer/side-drawer.d.ts +3 -2
  163. package/lib/slider/definition.d.ts +3 -0
  164. package/lib/slider/index.d.ts +1 -0
  165. package/lib/slider/slider.d.ts +4 -0
  166. package/lib/slider/slider.template.d.ts +4 -0
  167. package/lib/switch/definition.d.ts +3 -0
  168. package/lib/switch/index.d.ts +1 -0
  169. package/lib/switch/switch.d.ts +7 -0
  170. package/lib/switch/switch.template.d.ts +4 -0
  171. package/lib/tab/definition.d.ts +3 -0
  172. package/lib/tab/index.d.ts +1 -0
  173. package/lib/tab/tab.d.ts +9 -0
  174. package/lib/tab/tab.template.d.ts +3 -0
  175. package/lib/tab-panel/definition.d.ts +3 -0
  176. package/lib/tab-panel/index.d.ts +1 -0
  177. package/lib/tab-panel/tab-panel.d.ts +3 -0
  178. package/lib/tab-panel/tab-panel.template.d.ts +2 -0
  179. package/lib/tabs/definition.d.ts +3 -0
  180. package/lib/tabs/index.d.ts +1 -0
  181. package/lib/tabs/tabs.d.ts +10 -0
  182. package/lib/tabs/tabs.template.d.ts +2 -0
  183. package/lib/text-anchor/definition.d.ts +3 -0
  184. package/lib/text-anchor/index.d.ts +1 -2
  185. package/lib/text-area/definition.d.ts +3 -0
  186. package/lib/text-area/index.d.ts +1 -0
  187. package/lib/text-area/text-area.d.ts +9 -0
  188. package/lib/text-area/text-area.template.d.ts +4 -0
  189. package/lib/text-field/definition.d.ts +3 -0
  190. package/lib/text-field/index.d.ts +1 -0
  191. package/lib/text-field/text-field.d.ts +14 -0
  192. package/lib/text-field/text-field.template.d.ts +4 -0
  193. package/lib/tooltip/definition.d.ts +3 -0
  194. package/lib/tooltip/index.d.ts +1 -3
  195. package/lib/tooltip/tooltip.d.ts +6 -6
  196. package/listbox/index.js +27 -0
  197. package/menu/index.js +30 -0
  198. package/menu-item/index.js +20 -0
  199. package/nav/index.js +4 -0
  200. package/nav-disclosure/index.js +17 -0
  201. package/nav-item/index.js +22 -0
  202. package/note/index.js +15 -0
  203. package/number-field/index.js +459 -0
  204. package/option/index.js +21 -0
  205. package/package.json +29 -18
  206. package/popup/index.js +21 -2062
  207. package/progress/index.js +6 -98
  208. package/progress-ring/index.js +6 -75
  209. package/radio/index.js +12 -0
  210. package/radio-group/index.js +11 -0
  211. package/select/index.js +34 -0
  212. package/shared/affix.js +2 -8
  213. package/shared/anchor.js +10 -2
  214. package/shared/apply-mixins.js +5 -4
  215. package/shared/aria-global.js +2 -86
  216. package/shared/aria.js +9 -0
  217. package/shared/base-progress.js +5 -0
  218. package/shared/breadcrumb-item.js +1 -1
  219. package/shared/button.js +200 -0
  220. package/shared/calendar-event.js +19 -0
  221. package/shared/definition.js +225 -0
  222. package/shared/definition10.js +99 -0
  223. package/shared/definition11.js +48 -0
  224. package/shared/definition12.js +1523 -0
  225. package/shared/definition13.js +111 -0
  226. package/shared/definition14.js +114 -0
  227. package/shared/definition15.js +32 -0
  228. package/shared/definition16.js +172 -0
  229. package/shared/definition17.js +727 -0
  230. package/shared/definition18.js +1842 -0
  231. package/shared/definition19.js +261 -0
  232. package/shared/definition2.js +150 -0
  233. package/shared/definition20.js +221 -0
  234. package/shared/definition21.js +78 -0
  235. package/shared/definition22.js +87 -0
  236. package/shared/definition23.js +58 -0
  237. package/shared/definition24.js +44 -0
  238. package/shared/definition25.js +58 -0
  239. package/shared/definition26.js +348 -0
  240. package/shared/definition27.js +363 -0
  241. package/shared/definition28.js +21 -0
  242. package/shared/definition29.js +75 -0
  243. package/shared/definition3.js +29 -0
  244. package/shared/definition30.js +31 -0
  245. package/shared/definition31.js +49 -0
  246. package/shared/definition32.js +94 -0
  247. package/shared/definition33.js +77 -0
  248. package/shared/definition34.js +45 -0
  249. package/shared/definition35.js +435 -0
  250. package/shared/definition36.js +634 -0
  251. package/shared/definition37.js +86 -0
  252. package/shared/definition38.js +592 -0
  253. package/shared/definition39.js +147 -0
  254. package/shared/definition4.js +19 -0
  255. package/shared/definition40.js +67 -0
  256. package/shared/definition41.js +32 -0
  257. package/shared/definition42.js +440 -0
  258. package/shared/definition43.js +282 -0
  259. package/shared/definition44.js +119 -0
  260. package/shared/definition45.js +77 -0
  261. package/shared/definition5.js +38 -0
  262. package/shared/definition6.js +60 -0
  263. package/shared/definition7.js +45 -0
  264. package/shared/definition8.js +113 -0
  265. package/shared/definition9.js +107 -0
  266. package/shared/design-system/index.d.ts +1 -1
  267. package/shared/dialog-polyfill.esm.js +858 -0
  268. package/shared/direction.js +20 -0
  269. package/shared/dom.js +8 -0
  270. package/shared/enums.js +70 -0
  271. package/shared/es.object.assign.js +2 -3
  272. package/shared/es.regexp.to-string.js +59 -0
  273. package/shared/focus.js +5 -0
  274. package/shared/focus2.js +11 -0
  275. package/shared/form-associated.js +466 -0
  276. package/shared/form-elements.js +127 -0
  277. package/shared/icon.js +538 -567
  278. package/shared/index.js +1664 -83
  279. package/shared/key-codes.js +97 -0
  280. package/shared/listbox.js +995 -0
  281. package/shared/numbers.js +34 -0
  282. package/shared/patterns/affix.d.ts +1 -1
  283. package/shared/patterns/focus.d.ts +3 -0
  284. package/shared/patterns/form-elements/form-elements.d.ts +43 -0
  285. package/shared/patterns/form-elements/index.d.ts +1 -0
  286. package/shared/patterns/index.d.ts +2 -0
  287. package/shared/radio.js +127 -0
  288. package/shared/ref.js +41 -0
  289. package/shared/select.options.js +10 -0
  290. package/shared/start-end.js +50 -0
  291. package/shared/string-trim.js +40 -0
  292. package/shared/strings.js +9 -0
  293. package/shared/text-anchor.js +0 -2
  294. package/shared/text-anchor.template.js +6 -5
  295. package/shared/text-field.js +3 -0
  296. package/shared/text-field2.js +225 -0
  297. package/shared/to-string.js +51 -0
  298. package/side-drawer/index.js +5 -81
  299. package/slider/index.js +17 -0
  300. package/styles/core/all.css +83 -0
  301. package/styles/core/theme.css +11 -0
  302. package/styles/core/typography.css +77 -0
  303. package/styles/tokens/theme-dark.css +228 -0
  304. package/styles/tokens/theme-light.css +228 -0
  305. package/switch/index.js +18 -0
  306. package/tab/index.js +16 -0
  307. package/tab-panel/index.js +4 -0
  308. package/tabs/index.js +24 -0
  309. package/text-anchor/index.js +11 -6
  310. package/text-area/index.js +23 -0
  311. package/text-field/index.js +24 -0
  312. package/tooltip/index.js +18 -55
  313. package/lib/text/index.d.ts +0 -2
  314. package/lib/text/text.d.ts +0 -10
  315. package/shared/index2.js +0 -21
  316. package/shared/object-set-prototype-of.js +0 -1009
  317. package/shared/style-inject.es.js +0 -28
  318. package/shared/web.dom-collections.iterator.js +0 -473
  319. package/sidenav-item/index.js +0 -39
  320. package/styles/fonts/spezia.css +0 -23
  321. package/styles/themes/dark.css +0 -205
  322. package/styles/themes/light.css +0 -205
  323. package/text/index.js +0 -46
package/shared/icon.js CHANGED
@@ -1,27 +1,22 @@
1
- import { i as global$e, r as redefine$3, w as wellKnownSymbol$8, A as getBuiltIn$4, a as objectDefineProperty, d as descriptors, B as objectIsPrototypeOf, C as functionUncurryThis, D as functionBindNative, E as aCallable$4, p as iterators, F as classofRaw$1, k as isCallable$5, G as getMethod$2, x as functionCall, b as anObject$5, H as tryToString$3, I as lengthOfArrayLike$1, g as fails$4, J as inspectSource$2, K as engineUserAgent, c as html$1, f as documentCreateElement, j as hasOwnProperty_1, L as objectGetOwnPropertyDescriptor, M as isObject$2, _ as _export, q as objectSetPrototypeOf, n as setToStringTag$1, N as isForced_1, O as engineV8Version, z as internalState, P as requireObjectCoercible$1, y as functionName } from './object-set-prototype-of.js';
2
- import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
1
+ import { c as classofRaw, g as global$8, w as wellKnownSymbol$6, d as getBuiltIn$5, f as objectDefineProperty, i as descriptors, j as objectIsPrototypeOf, k as functionUncurryThis, l as fails$4, m as isCallable$6, p as inspectSource$2, t as tryToString$3, q as anObject$5, s as isNullOrUndefined$2, u as functionBindNative, v as aCallable$6, x as engineUserAgent, y as html$1, z as documentCreateElement, B as hasOwnProperty_1, C as objectGetOwnPropertyDescriptor, D as isForced_1, E as engineV8Version, G as _export, H as defineBuiltIn$3, I as objectSetPrototypeOf, J as setToStringTag$1, K as functionCall, L as internalState, M as isObject$2, N as iterators, P as getMethod$2, Q as lengthOfArrayLike$1, R as functionName, F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
2
+ import { c as classof$3 } from './to-string.js';
3
+ import { w as whitespaces$1, s as stringTrim } from './string-trim.js';
3
4
  import { _ as _curry1, a as _curry2, b as _has } from './_has.js';
4
5
 
5
- var global$d = global$e;
6
+ var classof$2 = classofRaw;
7
+ var global$7 = global$8;
6
8
 
7
- var nativePromiseConstructor = global$d.Promise;
9
+ var engineIsNode = classof$2(global$7.process) == 'process';
8
10
 
9
- var redefine$2 = redefine$3.exports;
10
-
11
- var redefineAll$1 = function (target, src, options) {
12
- for (var key in src) redefine$2(target, key, src[key], options);
13
- return target;
14
- };
15
-
16
- var getBuiltIn$3 = getBuiltIn$4;
11
+ var getBuiltIn$4 = getBuiltIn$5;
17
12
  var definePropertyModule = objectDefineProperty;
18
- var wellKnownSymbol$7 = wellKnownSymbol$8;
13
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
19
14
  var DESCRIPTORS = descriptors;
20
15
 
21
- var SPECIES$2 = wellKnownSymbol$7('species');
16
+ var SPECIES$2 = wellKnownSymbol$5('species');
22
17
 
23
18
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
24
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
19
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
25
20
  var defineProperty = definePropertyModule.f;
26
21
 
27
22
  if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
@@ -32,255 +27,31 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
32
27
  }
33
28
  };
34
29
 
35
- var global$c = global$e;
36
30
  var isPrototypeOf$1 = objectIsPrototypeOf;
37
31
 
38
- var TypeError$6 = global$c.TypeError;
32
+ var $TypeError$5 = TypeError;
39
33
 
40
34
  var anInstance$1 = function (it, Prototype) {
41
35
  if (isPrototypeOf$1(Prototype, it)) return it;
42
- throw TypeError$6('Incorrect invocation');
43
- };
44
-
45
- var uncurryThis$3 = functionUncurryThis;
46
- var aCallable$3 = aCallable$4;
47
- var NATIVE_BIND$1 = functionBindNative;
48
-
49
- var bind$4 = uncurryThis$3(uncurryThis$3.bind);
50
-
51
- // optional / simple context binding
52
- var functionBindContext = function (fn, that) {
53
- aCallable$3(fn);
54
- return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
55
- return fn.apply(that, arguments);
56
- };
57
- };
58
-
59
- var wellKnownSymbol$6 = wellKnownSymbol$8;
60
- var Iterators$1 = iterators;
61
-
62
- var ITERATOR$2 = wellKnownSymbol$6('iterator');
63
- var ArrayPrototype = Array.prototype;
64
-
65
- // check on default Array iterator
66
- var isArrayIteratorMethod$1 = function (it) {
67
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
68
- };
69
-
70
- var wellKnownSymbol$5 = wellKnownSymbol$8;
71
-
72
- var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
73
- var test = {};
74
-
75
- test[TO_STRING_TAG$1] = 'z';
76
-
77
- var toStringTagSupport = String(test) === '[object z]';
78
-
79
- var global$b = global$e;
80
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
81
- var isCallable$4 = isCallable$5;
82
- var classofRaw = classofRaw$1;
83
- var wellKnownSymbol$4 = wellKnownSymbol$8;
84
-
85
- var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
86
- var Object$1 = global$b.Object;
87
-
88
- // ES3 wrong here
89
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
90
-
91
- // fallback for IE11 Script Access Denied error
92
- var tryGet = function (it, key) {
93
- try {
94
- return it[key];
95
- } catch (error) { /* empty */ }
96
- };
97
-
98
- // getting tag from ES6+ `Object.prototype.toString`
99
- var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
100
- var O, tag, result;
101
- return it === undefined ? 'Undefined' : it === null ? 'Null'
102
- // @@toStringTag case
103
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
104
- // builtinTag case
105
- : CORRECT_ARGUMENTS ? classofRaw(O)
106
- // ES3 arguments fallback
107
- : (result = classofRaw(O)) == 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
108
- };
109
-
110
- var classof$3 = classof$4;
111
- var getMethod$1 = getMethod$2;
112
- var Iterators = iterators;
113
- var wellKnownSymbol$3 = wellKnownSymbol$8;
114
-
115
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
116
-
117
- var getIteratorMethod$2 = function (it) {
118
- if (it != undefined) return getMethod$1(it, ITERATOR$1)
119
- || getMethod$1(it, '@@iterator')
120
- || Iterators[classof$3(it)];
121
- };
122
-
123
- var global$a = global$e;
124
- var call$4 = functionCall;
125
- var aCallable$2 = aCallable$4;
126
- var anObject$4 = anObject$5;
127
- var tryToString$2 = tryToString$3;
128
- var getIteratorMethod$1 = getIteratorMethod$2;
129
-
130
- var TypeError$5 = global$a.TypeError;
131
-
132
- var getIterator$1 = function (argument, usingIterator) {
133
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
134
- if (aCallable$2(iteratorMethod)) return anObject$4(call$4(iteratorMethod, argument));
135
- throw TypeError$5(tryToString$2(argument) + ' is not iterable');
136
- };
137
-
138
- var call$3 = functionCall;
139
- var anObject$3 = anObject$5;
140
- var getMethod = getMethod$2;
141
-
142
- var iteratorClose$1 = function (iterator, kind, value) {
143
- var innerResult, innerError;
144
- anObject$3(iterator);
145
- try {
146
- innerResult = getMethod(iterator, 'return');
147
- if (!innerResult) {
148
- if (kind === 'throw') throw value;
149
- return value;
150
- }
151
- innerResult = call$3(innerResult, iterator);
152
- } catch (error) {
153
- innerError = true;
154
- innerResult = error;
155
- }
156
- if (kind === 'throw') throw value;
157
- if (innerError) throw innerResult;
158
- anObject$3(innerResult);
159
- return value;
160
- };
161
-
162
- var global$9 = global$e;
163
- var bind$3 = functionBindContext;
164
- var call$2 = functionCall;
165
- var anObject$2 = anObject$5;
166
- var tryToString$1 = tryToString$3;
167
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
168
- var lengthOfArrayLike = lengthOfArrayLike$1;
169
- var isPrototypeOf = objectIsPrototypeOf;
170
- var getIterator = getIterator$1;
171
- var getIteratorMethod = getIteratorMethod$2;
172
- var iteratorClose = iteratorClose$1;
173
-
174
- var TypeError$4 = global$9.TypeError;
175
-
176
- var Result = function (stopped, result) {
177
- this.stopped = stopped;
178
- this.result = result;
179
- };
180
-
181
- var ResultPrototype = Result.prototype;
182
-
183
- var iterate$1 = function (iterable, unboundFunction, options) {
184
- var that = options && options.that;
185
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
186
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
187
- var INTERRUPTED = !!(options && options.INTERRUPTED);
188
- var fn = bind$3(unboundFunction, that);
189
- var iterator, iterFn, index, length, result, next, step;
190
-
191
- var stop = function (condition) {
192
- if (iterator) iteratorClose(iterator, 'normal', condition);
193
- return new Result(true, condition);
194
- };
195
-
196
- var callFn = function (value) {
197
- if (AS_ENTRIES) {
198
- anObject$2(value);
199
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
200
- } return INTERRUPTED ? fn(value, stop) : fn(value);
201
- };
202
-
203
- if (IS_ITERATOR) {
204
- iterator = iterable;
205
- } else {
206
- iterFn = getIteratorMethod(iterable);
207
- if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
208
- // optimisation for array iterators
209
- if (isArrayIteratorMethod(iterFn)) {
210
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
211
- result = callFn(iterable[index]);
212
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
213
- } return new Result(false);
214
- }
215
- iterator = getIterator(iterable, iterFn);
216
- }
217
-
218
- next = iterator.next;
219
- while (!(step = call$2(next, iterator)).done) {
220
- try {
221
- result = callFn(step.value);
222
- } catch (error) {
223
- iteratorClose(iterator, 'throw', error);
224
- }
225
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
226
- } return new Result(false);
227
- };
228
-
229
- var wellKnownSymbol$2 = wellKnownSymbol$8;
230
-
231
- var ITERATOR = wellKnownSymbol$2('iterator');
232
- var SAFE_CLOSING = false;
233
-
234
- try {
235
- var called = 0;
236
- var iteratorWithReturn = {
237
- next: function () {
238
- return { done: !!called++ };
239
- },
240
- 'return': function () {
241
- SAFE_CLOSING = true;
242
- }
243
- };
244
- iteratorWithReturn[ITERATOR] = function () {
245
- return this;
246
- };
247
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
248
- Array.from(iteratorWithReturn, function () { throw 2; });
249
- } catch (error) { /* empty */ }
250
-
251
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
252
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
253
- var ITERATION_SUPPORT = false;
254
- try {
255
- var object = {};
256
- object[ITERATOR] = function () {
257
- return {
258
- next: function () {
259
- return { done: ITERATION_SUPPORT = true };
260
- }
261
- };
262
- };
263
- exec(object);
264
- } catch (error) { /* empty */ }
265
- return ITERATION_SUPPORT;
36
+ throw $TypeError$5('Incorrect invocation');
266
37
  };
267
38
 
268
39
  var uncurryThis$2 = functionUncurryThis;
269
40
  var fails$3 = fails$4;
270
- var isCallable$3 = isCallable$5;
271
- var classof$2 = classof$4;
272
- var getBuiltIn$2 = getBuiltIn$4;
41
+ var isCallable$5 = isCallable$6;
42
+ var classof$1 = classof$3;
43
+ var getBuiltIn$3 = getBuiltIn$5;
273
44
  var inspectSource$1 = inspectSource$2;
274
45
 
275
46
  var noop = function () { /* empty */ };
276
47
  var empty = [];
277
- var construct = getBuiltIn$2('Reflect', 'construct');
48
+ var construct = getBuiltIn$3('Reflect', 'construct');
278
49
  var constructorRegExp = /^\s*(?:class|function)\b/;
279
50
  var exec = uncurryThis$2(constructorRegExp.exec);
280
51
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
281
52
 
282
53
  var isConstructorModern = function isConstructor(argument) {
283
- if (!isCallable$3(argument)) return false;
54
+ if (!isCallable$5(argument)) return false;
284
55
  try {
285
56
  construct(noop, empty, argument);
286
57
  return true;
@@ -290,8 +61,8 @@ var isConstructorModern = function isConstructor(argument) {
290
61
  };
291
62
 
292
63
  var isConstructorLegacy = function isConstructor(argument) {
293
- if (!isCallable$3(argument)) return false;
294
- switch (classof$2(argument)) {
64
+ if (!isCallable$5(argument)) return false;
65
+ switch (classof$1(argument)) {
295
66
  case 'AsyncFunction':
296
67
  case 'GeneratorFunction':
297
68
  case 'AsyncGeneratorFunction': return false;
@@ -318,53 +89,65 @@ var isConstructor$1 = !construct || fails$3(function () {
318
89
  || called;
319
90
  }) ? isConstructorLegacy : isConstructorModern;
320
91
 
321
- var global$8 = global$e;
322
92
  var isConstructor = isConstructor$1;
323
- var tryToString = tryToString$3;
93
+ var tryToString$2 = tryToString$3;
324
94
 
325
- var TypeError$3 = global$8.TypeError;
95
+ var $TypeError$4 = TypeError;
326
96
 
327
97
  // `Assert: IsConstructor(argument) is true`
328
98
  var aConstructor$1 = function (argument) {
329
99
  if (isConstructor(argument)) return argument;
330
- throw TypeError$3(tryToString(argument) + ' is not a constructor');
100
+ throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
331
101
  };
332
102
 
333
- var anObject$1 = anObject$5;
103
+ var anObject$4 = anObject$5;
334
104
  var aConstructor = aConstructor$1;
335
- var wellKnownSymbol$1 = wellKnownSymbol$8;
105
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
106
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
336
107
 
337
- var SPECIES$1 = wellKnownSymbol$1('species');
108
+ var SPECIES$1 = wellKnownSymbol$4('species');
338
109
 
339
110
  // `SpeciesConstructor` abstract operation
340
111
  // https://tc39.es/ecma262/#sec-speciesconstructor
341
112
  var speciesConstructor$2 = function (O, defaultConstructor) {
342
- var C = anObject$1(O).constructor;
113
+ var C = anObject$4(O).constructor;
343
114
  var S;
344
- return C === undefined || (S = anObject$1(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
115
+ return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
345
116
  };
346
117
 
347
- var NATIVE_BIND = functionBindNative;
118
+ var NATIVE_BIND$1 = functionBindNative;
348
119
 
349
120
  var FunctionPrototype = Function.prototype;
350
121
  var apply$1 = FunctionPrototype.apply;
351
- var call$1 = FunctionPrototype.call;
122
+ var call$7 = FunctionPrototype.call;
352
123
 
353
124
  // eslint-disable-next-line es/no-reflect -- safe
354
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
355
- return call$1.apply(apply$1, arguments);
125
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
126
+ return call$7.apply(apply$1, arguments);
356
127
  });
357
128
 
358
129
  var uncurryThis$1 = functionUncurryThis;
130
+ var aCallable$5 = aCallable$6;
131
+ var NATIVE_BIND = functionBindNative;
132
+
133
+ var bind$4 = uncurryThis$1(uncurryThis$1.bind);
359
134
 
360
- var arraySlice$1 = uncurryThis$1([].slice);
135
+ // optional / simple context binding
136
+ var functionBindContext = function (fn, that) {
137
+ aCallable$5(fn);
138
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
139
+ return fn.apply(that, arguments);
140
+ };
141
+ };
361
142
 
362
- var global$7 = global$e;
143
+ var uncurryThis = functionUncurryThis;
363
144
 
364
- var TypeError$2 = global$7.TypeError;
145
+ var arraySlice$1 = uncurryThis([].slice);
146
+
147
+ var $TypeError$3 = TypeError;
365
148
 
366
149
  var validateArgumentsLength$1 = function (passed, required) {
367
- if (passed < required) throw TypeError$2('Not enough arguments');
150
+ if (passed < required) throw $TypeError$3('Not enough arguments');
368
151
  return passed;
369
152
  };
370
153
 
@@ -372,15 +155,10 @@ var userAgent$2 = engineUserAgent;
372
155
 
373
156
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
374
157
 
375
- var classof$1 = classofRaw$1;
376
- var global$6 = global$e;
377
-
378
- var engineIsNode = classof$1(global$6.process) == 'process';
379
-
380
- var global$5 = global$e;
158
+ var global$6 = global$8;
381
159
  var apply = functionApply;
382
- var bind$2 = functionBindContext;
383
- var isCallable$2 = isCallable$5;
160
+ var bind$3 = functionBindContext;
161
+ var isCallable$4 = isCallable$6;
384
162
  var hasOwn = hasOwnProperty_1;
385
163
  var fails$2 = fails$4;
386
164
  var html = html$1;
@@ -388,23 +166,23 @@ var arraySlice = arraySlice$1;
388
166
  var createElement = documentCreateElement;
389
167
  var validateArgumentsLength = validateArgumentsLength$1;
390
168
  var IS_IOS$1 = engineIsIos;
391
- var IS_NODE$2 = engineIsNode;
392
-
393
- var set = global$5.setImmediate;
394
- var clear = global$5.clearImmediate;
395
- var process$2 = global$5.process;
396
- var Dispatch = global$5.Dispatch;
397
- var Function$1 = global$5.Function;
398
- var MessageChannel = global$5.MessageChannel;
399
- var String$2 = global$5.String;
169
+ var IS_NODE$3 = engineIsNode;
170
+
171
+ var set = global$6.setImmediate;
172
+ var clear = global$6.clearImmediate;
173
+ var process$2 = global$6.process;
174
+ var Dispatch = global$6.Dispatch;
175
+ var Function$1 = global$6.Function;
176
+ var MessageChannel = global$6.MessageChannel;
177
+ var String$1 = global$6.String;
400
178
  var counter = 0;
401
179
  var queue$1 = {};
402
180
  var ONREADYSTATECHANGE = 'onreadystatechange';
403
- var location, defer, channel, port;
181
+ var $location, defer, channel, port;
404
182
 
405
183
  try {
406
184
  // Deno throws a ReferenceError on `location` access without `--location` flag
407
- location = global$5.location;
185
+ $location = global$6.location;
408
186
  } catch (error) { /* empty */ }
409
187
 
410
188
  var run = function (id) {
@@ -427,14 +205,14 @@ var listener = function (event) {
427
205
 
428
206
  var post = function (id) {
429
207
  // old engines have not location.origin
430
- global$5.postMessage(String$2(id), location.protocol + '//' + location.host);
208
+ global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
431
209
  };
432
210
 
433
211
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
434
212
  if (!set || !clear) {
435
213
  set = function setImmediate(handler) {
436
214
  validateArgumentsLength(arguments.length, 1);
437
- var fn = isCallable$2(handler) ? handler : Function$1(handler);
215
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
438
216
  var args = arraySlice(arguments, 1);
439
217
  queue$1[++counter] = function () {
440
218
  apply(fn, undefined, args);
@@ -446,7 +224,7 @@ if (!set || !clear) {
446
224
  delete queue$1[id];
447
225
  };
448
226
  // Node.js 0.8-
449
- if (IS_NODE$2) {
227
+ if (IS_NODE$3) {
450
228
  defer = function (id) {
451
229
  process$2.nextTick(runner(id));
452
230
  };
@@ -461,18 +239,18 @@ if (!set || !clear) {
461
239
  channel = new MessageChannel();
462
240
  port = channel.port2;
463
241
  channel.port1.onmessage = listener;
464
- defer = bind$2(port.postMessage, port);
242
+ defer = bind$3(port.postMessage, port);
465
243
  // Browsers with postMessage, skip WebWorkers
466
244
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
467
245
  } else if (
468
- global$5.addEventListener &&
469
- isCallable$2(global$5.postMessage) &&
470
- !global$5.importScripts &&
471
- location && location.protocol !== 'file:' &&
246
+ global$6.addEventListener &&
247
+ isCallable$4(global$6.postMessage) &&
248
+ !global$6.importScripts &&
249
+ $location && $location.protocol !== 'file:' &&
472
250
  !fails$2(post)
473
251
  ) {
474
252
  defer = post;
475
- global$5.addEventListener('message', listener, false);
253
+ global$6.addEventListener('message', listener, false);
476
254
  // IE8-
477
255
  } else if (ONREADYSTATECHANGE in createElement('script')) {
478
256
  defer = function (id) {
@@ -495,29 +273,29 @@ var task$1 = {
495
273
  };
496
274
 
497
275
  var userAgent$1 = engineUserAgent;
498
- var global$4 = global$e;
276
+ var global$5 = global$8;
499
277
 
500
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$4.Pebble !== undefined;
278
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$5.Pebble !== undefined;
501
279
 
502
280
  var userAgent = engineUserAgent;
503
281
 
504
282
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
505
283
 
506
- var global$3 = global$e;
507
- var bind$1 = functionBindContext;
284
+ var global$4 = global$8;
285
+ var bind$2 = functionBindContext;
508
286
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
509
287
  var macrotask = task$1.set;
510
288
  var IS_IOS = engineIsIos;
511
289
  var IS_IOS_PEBBLE = engineIsIosPebble;
512
290
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
513
- var IS_NODE$1 = engineIsNode;
291
+ var IS_NODE$2 = engineIsNode;
514
292
 
515
- var MutationObserver = global$3.MutationObserver || global$3.WebKitMutationObserver;
516
- var document$1 = global$3.document;
517
- var process$1 = global$3.process;
518
- var Promise$1 = global$3.Promise;
293
+ var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
294
+ var document$2 = global$4.document;
295
+ var process$1 = global$4.process;
296
+ var Promise$1 = global$4.Promise;
519
297
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
520
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$3, 'queueMicrotask');
298
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$4, 'queueMicrotask');
521
299
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
522
300
 
523
301
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -526,7 +304,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
526
304
  if (!queueMicrotask) {
527
305
  flush = function () {
528
306
  var parent, fn;
529
- if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
307
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
530
308
  while (head) {
531
309
  fn = head.fn;
532
310
  head = head.next;
@@ -543,9 +321,9 @@ if (!queueMicrotask) {
543
321
 
544
322
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
545
323
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
546
- if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$1) {
324
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
547
325
  toggle = true;
548
- node = document$1.createTextNode('');
326
+ node = document$2.createTextNode('');
549
327
  new MutationObserver(flush).observe(node, { characterData: true });
550
328
  notify$1 = function () {
551
329
  node.data = toggle = !toggle;
@@ -556,24 +334,24 @@ if (!queueMicrotask) {
556
334
  promise = Promise$1.resolve(undefined);
557
335
  // workaround of WebKit ~ iOS Safari 10.1 bug
558
336
  promise.constructor = Promise$1;
559
- then = bind$1(promise.then, promise);
337
+ then = bind$2(promise.then, promise);
560
338
  notify$1 = function () {
561
339
  then(flush);
562
340
  };
563
341
  // Node.js without promises
564
- } else if (IS_NODE$1) {
342
+ } else if (IS_NODE$2) {
565
343
  notify$1 = function () {
566
344
  process$1.nextTick(flush);
567
345
  };
568
346
  // for other environments - macrotask based on:
569
347
  // - setImmediate
570
348
  // - MessageChannel
571
- // - window.postMessag
349
+ // - window.postMessage
572
350
  // - onreadystatechange
573
351
  // - setTimeout
574
352
  } else {
575
353
  // strange IE + webpack dev server bug - use .bind(global)
576
- macrotask = bind$1(macrotask, global$3);
354
+ macrotask = bind$2(macrotask, global$4);
577
355
  notify$1 = function () {
578
356
  macrotask(flush);
579
357
  };
@@ -589,50 +367,16 @@ var microtask$1 = queueMicrotask || function (fn) {
589
367
  } last = task;
590
368
  };
591
369
 
592
- var newPromiseCapability$2 = {};
593
-
594
- var aCallable$1 = aCallable$4;
595
-
596
- var PromiseCapability = function (C) {
597
- var resolve, reject;
598
- this.promise = new C(function ($$resolve, $$reject) {
599
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
600
- resolve = $$resolve;
601
- reject = $$reject;
602
- });
603
- this.resolve = aCallable$1(resolve);
604
- this.reject = aCallable$1(reject);
605
- };
606
-
607
- // `NewPromiseCapability` abstract operation
608
- // https://tc39.es/ecma262/#sec-newpromisecapability
609
- newPromiseCapability$2.f = function (C) {
610
- return new PromiseCapability(C);
611
- };
612
-
613
- var anObject = anObject$5;
614
- var isObject$1 = isObject$2;
615
- var newPromiseCapability$1 = newPromiseCapability$2;
616
-
617
- var promiseResolve$2 = function (C, x) {
618
- anObject(C);
619
- if (isObject$1(x) && x.constructor === C) return x;
620
- var promiseCapability = newPromiseCapability$1.f(C);
621
- var resolve = promiseCapability.resolve;
622
- resolve(x);
623
- return promiseCapability.promise;
624
- };
625
-
626
- var global$2 = global$e;
370
+ var global$3 = global$8;
627
371
 
628
372
  var hostReportErrors$1 = function (a, b) {
629
- var console = global$2.console;
373
+ var console = global$3.console;
630
374
  if (console && console.error) {
631
375
  arguments.length == 1 ? console.error(a) : console.error(a, b);
632
376
  }
633
377
  };
634
378
 
635
- var perform$1 = function (exec) {
379
+ var perform$3 = function (exec) {
636
380
  try {
637
381
  return { error: false, value: exec() };
638
382
  } catch (error) {
@@ -664,57 +408,128 @@ Queue$1.prototype = {
664
408
 
665
409
  var queue = Queue$1;
666
410
 
667
- var engineIsBrowser = typeof window == 'object';
411
+ var global$2 = global$8;
668
412
 
669
- var $$2 = _export;
670
- var global$1 = global$e;
671
- var getBuiltIn$1 = getBuiltIn$4;
672
- var call = functionCall;
673
- var NativePromise$1 = nativePromiseConstructor;
674
- var redefine$1 = redefine$3.exports;
675
- var redefineAll = redefineAll$1;
413
+ var promiseNativeConstructor = global$2.Promise;
414
+
415
+ /* global Deno -- Deno case */
416
+
417
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
418
+
419
+ var IS_DENO$1 = engineIsDeno;
420
+ var IS_NODE$1 = engineIsNode;
421
+
422
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
423
+ && typeof window == 'object'
424
+ && typeof document == 'object';
425
+
426
+ var global$1 = global$8;
427
+ var NativePromiseConstructor$4 = promiseNativeConstructor;
428
+ var isCallable$3 = isCallable$6;
429
+ var isForced = isForced_1;
430
+ var inspectSource = inspectSource$2;
431
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
432
+ var IS_BROWSER = engineIsBrowser;
433
+ var IS_DENO = engineIsDeno;
434
+ var V8_VERSION = engineV8Version;
435
+
436
+ NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
437
+ var SPECIES = wellKnownSymbol$3('species');
438
+ var SUBCLASSING = false;
439
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$1.PromiseRejectionEvent);
440
+
441
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
442
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$4);
443
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$4);
444
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
445
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
446
+ // We can't detect it synchronously, so just check versions
447
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
448
+ // We can't use @@species feature detection in V8 since it causes
449
+ // deoptimization and performance degradation
450
+ // https://github.com/zloirock/core-js/issues/679
451
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
452
+ // Detect correctness of subclassing with @@species support
453
+ var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
454
+ var FakePromise = function (exec) {
455
+ exec(function () { /* empty */ }, function () { /* empty */ });
456
+ };
457
+ var constructor = promise.constructor = {};
458
+ constructor[SPECIES] = FakePromise;
459
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
460
+ if (!SUBCLASSING) return true;
461
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
462
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
463
+ });
464
+
465
+ var promiseConstructorDetection = {
466
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
467
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
468
+ SUBCLASSING: SUBCLASSING
469
+ };
470
+
471
+ var newPromiseCapability$2 = {};
472
+
473
+ var aCallable$4 = aCallable$6;
474
+
475
+ var $TypeError$2 = TypeError;
476
+
477
+ var PromiseCapability = function (C) {
478
+ var resolve, reject;
479
+ this.promise = new C(function ($$resolve, $$reject) {
480
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
481
+ resolve = $$resolve;
482
+ reject = $$reject;
483
+ });
484
+ this.resolve = aCallable$4(resolve);
485
+ this.reject = aCallable$4(reject);
486
+ };
487
+
488
+ // `NewPromiseCapability` abstract operation
489
+ // https://tc39.es/ecma262/#sec-newpromisecapability
490
+ newPromiseCapability$2.f = function (C) {
491
+ return new PromiseCapability(C);
492
+ };
493
+
494
+ var $$7 = _export;
495
+ var IS_NODE = engineIsNode;
496
+ var global = global$8;
497
+ var call$6 = functionCall;
498
+ var defineBuiltIn$2 = defineBuiltIn$3;
676
499
  var setPrototypeOf = objectSetPrototypeOf;
677
500
  var setToStringTag = setToStringTag$1;
678
501
  var setSpecies = setSpecies$1;
679
- var aCallable = aCallable$4;
680
- var isCallable$1 = isCallable$5;
681
- var isObject = isObject$2;
502
+ var aCallable$3 = aCallable$6;
503
+ var isCallable$2 = isCallable$6;
504
+ var isObject$1 = isObject$2;
682
505
  var anInstance = anInstance$1;
683
- var inspectSource = inspectSource$2;
684
- var iterate = iterate$1;
685
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
686
506
  var speciesConstructor$1 = speciesConstructor$2;
687
507
  var task = task$1.set;
688
508
  var microtask = microtask$1;
689
- var promiseResolve$1 = promiseResolve$2;
690
509
  var hostReportErrors = hostReportErrors$1;
691
- var newPromiseCapabilityModule = newPromiseCapability$2;
692
- var perform = perform$1;
510
+ var perform$2 = perform$3;
693
511
  var Queue = queue;
694
512
  var InternalStateModule = internalState;
695
- var isForced = isForced_1;
696
- var wellKnownSymbol = wellKnownSymbol$8;
697
- var IS_BROWSER = engineIsBrowser;
698
- var IS_NODE = engineIsNode;
699
- var V8_VERSION = engineV8Version;
513
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
514
+ var PromiseConstructorDetection = promiseConstructorDetection;
515
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
700
516
 
701
- var SPECIES = wellKnownSymbol('species');
702
517
  var PROMISE = 'Promise';
703
-
704
- var getInternalState = InternalStateModule.getterFor(PROMISE);
705
- var setInternalState = InternalStateModule.set;
518
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
519
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
520
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
706
521
  var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
707
- var NativePromisePrototype = NativePromise$1 && NativePromise$1.prototype;
708
- var PromiseConstructor = NativePromise$1;
709
- var PromisePrototype = NativePromisePrototype;
710
- var TypeError$1 = global$1.TypeError;
711
- var document = global$1.document;
712
- var process = global$1.process;
713
- var newPromiseCapability = newPromiseCapabilityModule.f;
714
- var newGenericPromiseCapability = newPromiseCapability;
715
-
716
- var DISPATCH_EVENT = !!(document && document.createEvent && global$1.dispatchEvent);
717
- var NATIVE_REJECTION_EVENT = isCallable$1(global$1.PromiseRejectionEvent);
522
+ var setInternalState = InternalStateModule.set;
523
+ var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
524
+ var PromiseConstructor = NativePromiseConstructor$3;
525
+ var PromisePrototype = NativePromisePrototype$2;
526
+ var TypeError$1 = global.TypeError;
527
+ var document$1 = global.document;
528
+ var process = global.process;
529
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
530
+ var newGenericPromiseCapability = newPromiseCapability$1;
531
+
532
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global.dispatchEvent);
718
533
  var UNHANDLED_REJECTION = 'unhandledrejection';
719
534
  var REJECTION_HANDLED = 'rejectionhandled';
720
535
  var PENDING = 0;
@@ -722,42 +537,13 @@ var FULFILLED = 1;
722
537
  var REJECTED = 2;
723
538
  var HANDLED = 1;
724
539
  var UNHANDLED = 2;
725
- var SUBCLASSING = false;
726
540
 
727
541
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
728
542
 
729
- var FORCED = isForced(PROMISE, function () {
730
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
731
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
732
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
733
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
734
- // We can't detect it synchronously, so just check versions
735
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
736
- // We can't use @@species feature detection in V8 since it causes
737
- // deoptimization and performance degradation
738
- // https://github.com/zloirock/core-js/issues/679
739
- if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
740
- // Detect correctness of subclassing with @@species support
741
- var promise = new PromiseConstructor(function (resolve) { resolve(1); });
742
- var FakePromise = function (exec) {
743
- exec(function () { /* empty */ }, function () { /* empty */ });
744
- };
745
- var constructor = promise.constructor = {};
746
- constructor[SPECIES] = FakePromise;
747
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
748
- if (!SUBCLASSING) return true;
749
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
750
- return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
751
- });
752
-
753
- var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
754
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
755
- });
756
-
757
543
  // helpers
758
544
  var isThenable = function (it) {
759
545
  var then;
760
- return isObject(it) && isCallable$1(then = it.then) ? then : false;
546
+ return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
761
547
  };
762
548
 
763
549
  var callReaction = function (reaction, state) {
@@ -786,7 +572,7 @@ var callReaction = function (reaction, state) {
786
572
  if (result === reaction.promise) {
787
573
  reject(TypeError$1('Promise-chain cycle'));
788
574
  } else if (then = isThenable(result)) {
789
- call(then, result, resolve, reject);
575
+ call$6(then, result, resolve, reject);
790
576
  } else resolve(result);
791
577
  } else reject(value);
792
578
  } catch (error) {
@@ -812,24 +598,24 @@ var notify = function (state, isReject) {
812
598
  var dispatchEvent = function (name, promise, reason) {
813
599
  var event, handler;
814
600
  if (DISPATCH_EVENT) {
815
- event = document.createEvent('Event');
601
+ event = document$1.createEvent('Event');
816
602
  event.promise = promise;
817
603
  event.reason = reason;
818
604
  event.initEvent(name, false, true);
819
- global$1.dispatchEvent(event);
605
+ global.dispatchEvent(event);
820
606
  } else event = { promise: promise, reason: reason };
821
- if (!NATIVE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
607
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
822
608
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
823
609
  };
824
610
 
825
611
  var onUnhandled = function (state) {
826
- call(task, global$1, function () {
612
+ call$6(task, global, function () {
827
613
  var promise = state.facade;
828
614
  var value = state.value;
829
615
  var IS_UNHANDLED = isUnhandled(state);
830
616
  var result;
831
617
  if (IS_UNHANDLED) {
832
- result = perform(function () {
618
+ result = perform$2(function () {
833
619
  if (IS_NODE) {
834
620
  process.emit('unhandledRejection', value, promise);
835
621
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
@@ -846,7 +632,7 @@ var isUnhandled = function (state) {
846
632
  };
847
633
 
848
634
  var onHandleUnhandled = function (state) {
849
- call(task, global$1, function () {
635
+ call$6(task, global, function () {
850
636
  var promise = state.facade;
851
637
  if (IS_NODE) {
852
638
  process.emit('rejectionHandled', promise);
@@ -854,7 +640,7 @@ var onHandleUnhandled = function (state) {
854
640
  });
855
641
  };
856
642
 
857
- var bind = function (fn, state, unwrap) {
643
+ var bind$1 = function (fn, state, unwrap) {
858
644
  return function (value) {
859
645
  fn(state, value, unwrap);
860
646
  };
@@ -880,9 +666,9 @@ var internalResolve = function (state, value, unwrap) {
880
666
  microtask(function () {
881
667
  var wrapper = { done: false };
882
668
  try {
883
- call(then, value,
884
- bind(internalResolve, wrapper, state),
885
- bind(internalReject, wrapper, state)
669
+ call$6(then, value,
670
+ bind$1(internalResolve, wrapper, state),
671
+ bind$1(internalReject, wrapper, state)
886
672
  );
887
673
  } catch (error) {
888
674
  internalReject(wrapper, error, state);
@@ -899,20 +685,22 @@ var internalResolve = function (state, value, unwrap) {
899
685
  };
900
686
 
901
687
  // constructor polyfill
902
- if (FORCED) {
688
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
903
689
  // 25.4.3.1 Promise(executor)
904
690
  PromiseConstructor = function Promise(executor) {
905
691
  anInstance(this, PromisePrototype);
906
- aCallable(executor);
907
- call(Internal, this);
908
- var state = getInternalState(this);
692
+ aCallable$3(executor);
693
+ call$6(Internal, this);
694
+ var state = getInternalPromiseState(this);
909
695
  try {
910
- executor(bind(internalResolve, state), bind(internalReject, state));
696
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
911
697
  } catch (error) {
912
698
  internalReject(state, error);
913
699
  }
914
700
  };
701
+
915
702
  PromisePrototype = PromiseConstructor.prototype;
703
+
916
704
  // eslint-disable-next-line no-unused-vars -- required for `.length`
917
705
  Internal = function Promise(executor) {
918
706
  setInternalState(this, {
@@ -926,117 +714,275 @@ if (FORCED) {
926
714
  value: undefined
927
715
  });
928
716
  };
929
- Internal.prototype = redefineAll(PromisePrototype, {
930
- // `Promise.prototype.then` method
931
- // https://tc39.es/ecma262/#sec-promise.prototype.then
932
- // eslint-disable-next-line unicorn/no-thenable -- safe
933
- then: function then(onFulfilled, onRejected) {
934
- var state = getInternalPromiseState(this);
935
- var reaction = newPromiseCapability(speciesConstructor$1(this, PromiseConstructor));
936
- state.parent = true;
937
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
938
- reaction.fail = isCallable$1(onRejected) && onRejected;
939
- reaction.domain = IS_NODE ? process.domain : undefined;
940
- if (state.state == PENDING) state.reactions.add(reaction);
941
- else microtask(function () {
942
- callReaction(reaction, state);
943
- });
944
- return reaction.promise;
945
- },
946
- // `Promise.prototype.catch` method
947
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
948
- 'catch': function (onRejected) {
949
- return this.then(undefined, onRejected);
950
- }
717
+
718
+ // `Promise.prototype.then` method
719
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
720
+ Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
721
+ var state = getInternalPromiseState(this);
722
+ var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
723
+ state.parent = true;
724
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
725
+ reaction.fail = isCallable$2(onRejected) && onRejected;
726
+ reaction.domain = IS_NODE ? process.domain : undefined;
727
+ if (state.state == PENDING) state.reactions.add(reaction);
728
+ else microtask(function () {
729
+ callReaction(reaction, state);
730
+ });
731
+ return reaction.promise;
951
732
  });
733
+
952
734
  OwnPromiseCapability = function () {
953
735
  var promise = new Internal();
954
- var state = getInternalState(promise);
736
+ var state = getInternalPromiseState(promise);
955
737
  this.promise = promise;
956
- this.resolve = bind(internalResolve, state);
957
- this.reject = bind(internalReject, state);
738
+ this.resolve = bind$1(internalResolve, state);
739
+ this.reject = bind$1(internalReject, state);
958
740
  };
959
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
741
+
742
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
960
743
  return C === PromiseConstructor || C === PromiseWrapper
961
744
  ? new OwnPromiseCapability(C)
962
745
  : newGenericPromiseCapability(C);
963
746
  };
964
747
 
965
- if (isCallable$1(NativePromise$1) && NativePromisePrototype !== Object.prototype) {
966
- nativeThen = NativePromisePrototype.then;
748
+ if (isCallable$2(NativePromiseConstructor$3) && NativePromisePrototype$2 !== Object.prototype) {
749
+ nativeThen = NativePromisePrototype$2.then;
967
750
 
968
- if (!SUBCLASSING) {
751
+ if (!NATIVE_PROMISE_SUBCLASSING) {
969
752
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
970
- redefine$1(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
753
+ defineBuiltIn$2(NativePromisePrototype$2, 'then', function then(onFulfilled, onRejected) {
971
754
  var that = this;
972
755
  return new PromiseConstructor(function (resolve, reject) {
973
- call(nativeThen, that, resolve, reject);
756
+ call$6(nativeThen, that, resolve, reject);
974
757
  }).then(onFulfilled, onRejected);
975
758
  // https://github.com/zloirock/core-js/issues/640
976
759
  }, { unsafe: true });
977
-
978
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
979
- redefine$1(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
980
760
  }
981
761
 
982
762
  // make `.constructor === Promise` work for native promise-based APIs
983
763
  try {
984
- delete NativePromisePrototype.constructor;
764
+ delete NativePromisePrototype$2.constructor;
985
765
  } catch (error) { /* empty */ }
986
766
 
987
767
  // make `instanceof Promise` work for native promise-based APIs
988
768
  if (setPrototypeOf) {
989
- setPrototypeOf(NativePromisePrototype, PromisePrototype);
769
+ setPrototypeOf(NativePromisePrototype$2, PromisePrototype);
990
770
  }
991
771
  }
992
772
  }
993
773
 
994
- $$2({ global: true, wrap: true, forced: FORCED }, {
774
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
995
775
  Promise: PromiseConstructor
996
776
  });
997
777
 
998
778
  setToStringTag(PromiseConstructor, PROMISE, false);
999
779
  setSpecies(PROMISE);
1000
780
 
1001
- PromiseWrapper = getBuiltIn$1(PROMISE);
781
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
782
+ var Iterators$1 = iterators;
1002
783
 
1003
- // statics
1004
- $$2({ target: PROMISE, stat: true, forced: FORCED }, {
1005
- // `Promise.reject` method
1006
- // https://tc39.es/ecma262/#sec-promise.reject
1007
- reject: function reject(r) {
1008
- var capability = newPromiseCapability(this);
1009
- call(capability.reject, undefined, r);
1010
- return capability.promise;
784
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
785
+ var ArrayPrototype = Array.prototype;
786
+
787
+ // check on default Array iterator
788
+ var isArrayIteratorMethod$1 = function (it) {
789
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
790
+ };
791
+
792
+ var classof = classof$3;
793
+ var getMethod$1 = getMethod$2;
794
+ var isNullOrUndefined = isNullOrUndefined$2;
795
+ var Iterators = iterators;
796
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
797
+
798
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
799
+
800
+ var getIteratorMethod$2 = function (it) {
801
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
802
+ || getMethod$1(it, '@@iterator')
803
+ || Iterators[classof(it)];
804
+ };
805
+
806
+ var call$5 = functionCall;
807
+ var aCallable$2 = aCallable$6;
808
+ var anObject$3 = anObject$5;
809
+ var tryToString$1 = tryToString$3;
810
+ var getIteratorMethod$1 = getIteratorMethod$2;
811
+
812
+ var $TypeError$1 = TypeError;
813
+
814
+ var getIterator$1 = function (argument, usingIterator) {
815
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
816
+ if (aCallable$2(iteratorMethod)) return anObject$3(call$5(iteratorMethod, argument));
817
+ throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
818
+ };
819
+
820
+ var call$4 = functionCall;
821
+ var anObject$2 = anObject$5;
822
+ var getMethod = getMethod$2;
823
+
824
+ var iteratorClose$1 = function (iterator, kind, value) {
825
+ var innerResult, innerError;
826
+ anObject$2(iterator);
827
+ try {
828
+ innerResult = getMethod(iterator, 'return');
829
+ if (!innerResult) {
830
+ if (kind === 'throw') throw value;
831
+ return value;
832
+ }
833
+ innerResult = call$4(innerResult, iterator);
834
+ } catch (error) {
835
+ innerError = true;
836
+ innerResult = error;
1011
837
  }
1012
- });
838
+ if (kind === 'throw') throw value;
839
+ if (innerError) throw innerResult;
840
+ anObject$2(innerResult);
841
+ return value;
842
+ };
1013
843
 
1014
- $$2({ target: PROMISE, stat: true, forced: FORCED }, {
1015
- // `Promise.resolve` method
1016
- // https://tc39.es/ecma262/#sec-promise.resolve
1017
- resolve: function resolve(x) {
1018
- return promiseResolve$1(this, x);
844
+ var bind = functionBindContext;
845
+ var call$3 = functionCall;
846
+ var anObject$1 = anObject$5;
847
+ var tryToString = tryToString$3;
848
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
849
+ var lengthOfArrayLike = lengthOfArrayLike$1;
850
+ var isPrototypeOf = objectIsPrototypeOf;
851
+ var getIterator = getIterator$1;
852
+ var getIteratorMethod = getIteratorMethod$2;
853
+ var iteratorClose = iteratorClose$1;
854
+
855
+ var $TypeError = TypeError;
856
+
857
+ var Result = function (stopped, result) {
858
+ this.stopped = stopped;
859
+ this.result = result;
860
+ };
861
+
862
+ var ResultPrototype = Result.prototype;
863
+
864
+ var iterate$2 = function (iterable, unboundFunction, options) {
865
+ var that = options && options.that;
866
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
867
+ var IS_RECORD = !!(options && options.IS_RECORD);
868
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
869
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
870
+ var fn = bind(unboundFunction, that);
871
+ var iterator, iterFn, index, length, result, next, step;
872
+
873
+ var stop = function (condition) {
874
+ if (iterator) iteratorClose(iterator, 'normal', condition);
875
+ return new Result(true, condition);
876
+ };
877
+
878
+ var callFn = function (value) {
879
+ if (AS_ENTRIES) {
880
+ anObject$1(value);
881
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
882
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
883
+ };
884
+
885
+ if (IS_RECORD) {
886
+ iterator = iterable.iterator;
887
+ } else if (IS_ITERATOR) {
888
+ iterator = iterable;
889
+ } else {
890
+ iterFn = getIteratorMethod(iterable);
891
+ if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
892
+ // optimisation for array iterators
893
+ if (isArrayIteratorMethod(iterFn)) {
894
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
895
+ result = callFn(iterable[index]);
896
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
897
+ } return new Result(false);
898
+ }
899
+ iterator = getIterator(iterable, iterFn);
1019
900
  }
901
+
902
+ next = IS_RECORD ? iterable.next : iterator.next;
903
+ while (!(step = call$3(next, iterator)).done) {
904
+ try {
905
+ result = callFn(step.value);
906
+ } catch (error) {
907
+ iteratorClose(iterator, 'throw', error);
908
+ }
909
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
910
+ } return new Result(false);
911
+ };
912
+
913
+ var wellKnownSymbol = wellKnownSymbol$6;
914
+
915
+ var ITERATOR = wellKnownSymbol('iterator');
916
+ var SAFE_CLOSING = false;
917
+
918
+ try {
919
+ var called = 0;
920
+ var iteratorWithReturn = {
921
+ next: function () {
922
+ return { done: !!called++ };
923
+ },
924
+ 'return': function () {
925
+ SAFE_CLOSING = true;
926
+ }
927
+ };
928
+ iteratorWithReturn[ITERATOR] = function () {
929
+ return this;
930
+ };
931
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
932
+ Array.from(iteratorWithReturn, function () { throw 2; });
933
+ } catch (error) { /* empty */ }
934
+
935
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
936
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
937
+ var ITERATION_SUPPORT = false;
938
+ try {
939
+ var object = {};
940
+ object[ITERATOR] = function () {
941
+ return {
942
+ next: function () {
943
+ return { done: ITERATION_SUPPORT = true };
944
+ }
945
+ };
946
+ };
947
+ exec(object);
948
+ } catch (error) { /* empty */ }
949
+ return ITERATION_SUPPORT;
950
+ };
951
+
952
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
953
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
954
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
955
+
956
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
957
+ NativePromiseConstructor$2.all(iterable).then(undefined, function () { /* empty */ });
1020
958
  });
1021
959
 
1022
- $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1023
- // `Promise.all` method
1024
- // https://tc39.es/ecma262/#sec-promise.all
960
+ var $$6 = _export;
961
+ var call$2 = functionCall;
962
+ var aCallable$1 = aCallable$6;
963
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
964
+ var perform$1 = perform$3;
965
+ var iterate$1 = iterate$2;
966
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
967
+
968
+ // `Promise.all` method
969
+ // https://tc39.es/ecma262/#sec-promise.all
970
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
1025
971
  all: function all(iterable) {
1026
972
  var C = this;
1027
- var capability = newPromiseCapability(C);
973
+ var capability = newPromiseCapabilityModule$2.f(C);
1028
974
  var resolve = capability.resolve;
1029
975
  var reject = capability.reject;
1030
- var result = perform(function () {
1031
- var $promiseResolve = aCallable(C.resolve);
976
+ var result = perform$1(function () {
977
+ var $promiseResolve = aCallable$1(C.resolve);
1032
978
  var values = [];
1033
979
  var counter = 0;
1034
980
  var remaining = 1;
1035
- iterate(iterable, function (promise) {
981
+ iterate$1(iterable, function (promise) {
1036
982
  var index = counter++;
1037
983
  var alreadyCalled = false;
1038
984
  remaining++;
1039
- call($promiseResolve, C, promise).then(function (value) {
985
+ call$2($promiseResolve, C, promise).then(function (value) {
1040
986
  if (alreadyCalled) return;
1041
987
  alreadyCalled = true;
1042
988
  values[index] = value;
@@ -1047,17 +993,53 @@ $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1047
993
  });
1048
994
  if (result.error) reject(result.value);
1049
995
  return capability.promise;
1050
- },
1051
- // `Promise.race` method
1052
- // https://tc39.es/ecma262/#sec-promise.race
996
+ }
997
+ });
998
+
999
+ var $$5 = _export;
1000
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
1001
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
1002
+ var getBuiltIn$2 = getBuiltIn$5;
1003
+ var isCallable$1 = isCallable$6;
1004
+ var defineBuiltIn$1 = defineBuiltIn$3;
1005
+
1006
+ var NativePromisePrototype$1 = NativePromiseConstructor$1 && NativePromiseConstructor$1.prototype;
1007
+
1008
+ // `Promise.prototype.catch` method
1009
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
1010
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
1011
+ 'catch': function (onRejected) {
1012
+ return this.then(undefined, onRejected);
1013
+ }
1014
+ });
1015
+
1016
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
1017
+ if (isCallable$1(NativePromiseConstructor$1)) {
1018
+ var method$1 = getBuiltIn$2('Promise').prototype['catch'];
1019
+ if (NativePromisePrototype$1['catch'] !== method$1) {
1020
+ defineBuiltIn$1(NativePromisePrototype$1, 'catch', method$1, { unsafe: true });
1021
+ }
1022
+ }
1023
+
1024
+ var $$4 = _export;
1025
+ var call$1 = functionCall;
1026
+ var aCallable = aCallable$6;
1027
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
1028
+ var perform = perform$3;
1029
+ var iterate = iterate$2;
1030
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
1031
+
1032
+ // `Promise.race` method
1033
+ // https://tc39.es/ecma262/#sec-promise.race
1034
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
1053
1035
  race: function race(iterable) {
1054
1036
  var C = this;
1055
- var capability = newPromiseCapability(C);
1037
+ var capability = newPromiseCapabilityModule$1.f(C);
1056
1038
  var reject = capability.reject;
1057
1039
  var result = perform(function () {
1058
1040
  var $promiseResolve = aCallable(C.resolve);
1059
1041
  iterate(iterable, function (promise) {
1060
- call($promiseResolve, C, promise).then(capability.resolve, reject);
1042
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
1061
1043
  });
1062
1044
  });
1063
1045
  if (result.error) reject(result.value);
@@ -1065,55 +1047,52 @@ $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1065
1047
  }
1066
1048
  });
1067
1049
 
1068
- var global = global$e;
1069
- var classof = classof$4;
1050
+ var $$3 = _export;
1051
+ var call = functionCall;
1052
+ var newPromiseCapabilityModule = newPromiseCapability$2;
1053
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
1054
+
1055
+ // `Promise.reject` method
1056
+ // https://tc39.es/ecma262/#sec-promise.reject
1057
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
1058
+ reject: function reject(r) {
1059
+ var capability = newPromiseCapabilityModule.f(this);
1060
+ call(capability.reject, undefined, r);
1061
+ return capability.promise;
1062
+ }
1063
+ });
1070
1064
 
1071
- var String$1 = global.String;
1065
+ var anObject = anObject$5;
1066
+ var isObject = isObject$2;
1067
+ var newPromiseCapability = newPromiseCapability$2;
1072
1068
 
1073
- var toString$1 = function (argument) {
1074
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1075
- return String$1(argument);
1069
+ var promiseResolve$2 = function (C, x) {
1070
+ anObject(C);
1071
+ if (isObject(x) && x.constructor === C) return x;
1072
+ var promiseCapability = newPromiseCapability.f(C);
1073
+ var resolve = promiseCapability.resolve;
1074
+ resolve(x);
1075
+ return promiseCapability.promise;
1076
1076
  };
1077
1077
 
1078
- // a string of all valid unicode whitespaces
1079
- var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1080
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1078
+ var $$2 = _export;
1079
+ var getBuiltIn$1 = getBuiltIn$5;
1080
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
1081
+ var promiseResolve$1 = promiseResolve$2;
1081
1082
 
1082
- var uncurryThis = functionUncurryThis;
1083
- var requireObjectCoercible = requireObjectCoercible$1;
1084
- var toString = toString$1;
1085
- var whitespaces$1 = whitespaces$2;
1086
-
1087
- var replace = uncurryThis(''.replace);
1088
- var whitespace = '[' + whitespaces$1 + ']';
1089
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
1090
- var rtrim = RegExp(whitespace + whitespace + '*$');
1091
-
1092
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1093
- var createMethod = function (TYPE) {
1094
- return function ($this) {
1095
- var string = toString(requireObjectCoercible($this));
1096
- if (TYPE & 1) string = replace(string, ltrim, '');
1097
- if (TYPE & 2) string = replace(string, rtrim, '');
1098
- return string;
1099
- };
1100
- };
1083
+ getBuiltIn$1('Promise');
1101
1084
 
1102
- var stringTrim = {
1103
- // `String.prototype.{ trimLeft, trimStart }` methods
1104
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1105
- start: createMethod(1),
1106
- // `String.prototype.{ trimRight, trimEnd }` methods
1107
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
1108
- end: createMethod(2),
1109
- // `String.prototype.trim` method
1110
- // https://tc39.es/ecma262/#sec-string.prototype.trim
1111
- trim: createMethod(3)
1112
- };
1085
+ // `Promise.resolve` method
1086
+ // https://tc39.es/ecma262/#sec-promise.resolve
1087
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
1088
+ resolve: function resolve(x) {
1089
+ return promiseResolve$1(this, x);
1090
+ }
1091
+ });
1113
1092
 
1114
1093
  var PROPER_FUNCTION_NAME = functionName.PROPER;
1115
1094
  var fails$1 = fails$4;
1116
- var whitespaces = whitespaces$2;
1095
+ var whitespaces = whitespaces$1;
1117
1096
 
1118
1097
  var non = '\u200B\u0085\u180E';
1119
1098
 
@@ -1140,18 +1119,20 @@ $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1140
1119
  });
1141
1120
 
1142
1121
  var $ = _export;
1143
- var NativePromise = nativePromiseConstructor;
1122
+ var NativePromiseConstructor = promiseNativeConstructor;
1144
1123
  var fails = fails$4;
1145
- var getBuiltIn = getBuiltIn$4;
1146
- var isCallable = isCallable$5;
1124
+ var getBuiltIn = getBuiltIn$5;
1125
+ var isCallable = isCallable$6;
1147
1126
  var speciesConstructor = speciesConstructor$2;
1148
1127
  var promiseResolve = promiseResolve$2;
1149
- var redefine = redefine$3.exports;
1128
+ var defineBuiltIn = defineBuiltIn$3;
1129
+
1130
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
1150
1131
 
1151
1132
  // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
1152
- var NON_GENERIC = !!NativePromise && fails(function () {
1133
+ var NON_GENERIC = !!NativePromiseConstructor && fails(function () {
1153
1134
  // eslint-disable-next-line unicorn/no-thenable -- required for testing
1154
- NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1135
+ NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1155
1136
  });
1156
1137
 
1157
1138
  // `Promise.prototype.finally` method
@@ -1172,10 +1153,10 @@ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
1172
1153
  });
1173
1154
 
1174
1155
  // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
1175
- if (isCallable(NativePromise)) {
1156
+ if (isCallable(NativePromiseConstructor)) {
1176
1157
  var method = getBuiltIn('Promise').prototype['finally'];
1177
- if (NativePromise.prototype['finally'] !== method) {
1178
- redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
1158
+ if (NativePromisePrototype['finally'] !== method) {
1159
+ defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
1179
1160
  }
1180
1161
  }
1181
1162
 
@@ -1332,12 +1313,10 @@ const PLACEHOLDER_ICON = `<svg width="80%" height="80%" viewBox="0 0 64 64">
1332
1313
  </svg>`;
1333
1314
 
1334
1315
  const BASE_URL = 'https://icon.resources.vonage.com';
1335
- const ICON_SET_VERSION = '4.0.27';
1316
+ const ICON_SET_VERSION = '4.0.30';
1336
1317
  const PLACEHOLDER_DELAY = 500;
1337
1318
  const PLACEHOLDER_TIMEOUT = 2000;
1338
-
1339
1319
  const baseUrlTemplate = (resource, version) => [BASE_URL, `v${version}`, resource].join('/');
1340
-
1341
1320
  const assertIsValidResponse = ({
1342
1321
  ok,
1343
1322
  headers
@@ -1346,43 +1325,35 @@ const assertIsValidResponse = ({
1346
1325
  throw new Error('Something went wrong');
1347
1326
  }
1348
1327
  };
1349
-
1350
1328
  const extractSvg = response => {
1351
1329
  assertIsValidResponse(response);
1352
1330
  return response.text();
1353
1331
  };
1354
-
1355
1332
  const loadSvg = iconId => fetch(baseUrlTemplate([iconId, 'svg'].join('.'), ICON_SET_VERSION)).then(extractSvg);
1356
-
1357
1333
  const resolveIcon = memoizeWith$1(identity$1, (iconId = '') => iconId.trim() ? loadSvg(iconId) : Promise.resolve(''));
1358
1334
  class Icon extends FoundationElement {
1359
- async typeChanged() {
1360
- this.svg = undefined;
1335
+ async nameChanged() {
1336
+ this._svg = undefined;
1361
1337
  let timeout = setTimeout(() => {
1362
- this.svg = PLACEHOLDER_ICON;
1338
+ this._svg = PLACEHOLDER_ICON;
1363
1339
  timeout = setTimeout(() => {
1364
- if (this.svg === PLACEHOLDER_ICON) {
1365
- this.svg = undefined;
1340
+ if (this._svg === PLACEHOLDER_ICON) {
1341
+ this._svg = undefined;
1366
1342
  }
1367
1343
  }, PLACEHOLDER_TIMEOUT);
1368
1344
  }, PLACEHOLDER_DELAY);
1369
- await resolveIcon(this.type).then(svg => {
1370
- this.svg = svg;
1345
+ await resolveIcon(this.name).then(svg => {
1346
+ this._svg = svg;
1371
1347
  }).catch(() => {
1372
- this.svg = undefined;
1348
+ this._svg = undefined;
1373
1349
  }).finally(() => {
1374
1350
  clearTimeout(timeout);
1375
1351
  });
1376
1352
  }
1377
-
1378
1353
  }
1379
-
1380
1354
  __decorate([attr, __metadata("design:type", String)], Icon.prototype, "connotation", void 0);
1355
+ __decorate([attr, __metadata("design:type", Number)], Icon.prototype, "size", void 0);
1356
+ __decorate([observable, __metadata("design:type", String)], Icon.prototype, "_svg", void 0);
1357
+ __decorate([attr, __metadata("design:type", String)], Icon.prototype, "name", void 0);
1381
1358
 
1382
- __decorate([attr, __metadata("design:type", String)], Icon.prototype, "size", void 0);
1383
-
1384
- __decorate([observable, __metadata("design:type", String)], Icon.prototype, "svg", void 0);
1385
-
1386
- __decorate([attr, __metadata("design:type", String)], Icon.prototype, "type", void 0);
1387
-
1388
- export { Icon as I, functionApply as f, speciesConstructor$2 as s, toString$1 as t };
1359
+ export { Icon as I };