@vonage/vivid 3.27.0 → 3.28.2

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