@mjhls/mjh-framework 1.0.1005-next12 → 1.0.1005-next12-0002

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 (605) hide show
  1. package/dist/cjs/AD-e1bb7536.js +1 -0
  2. package/dist/cjs/AD.js +1 -32
  3. package/dist/cjs/AD300x250-0bcfcd78.js +1 -0
  4. package/dist/cjs/AD300x250.js +1 -95
  5. package/dist/cjs/AD300x250x600-01659df6.js +1 -0
  6. package/dist/cjs/AD300x250x600.js +1 -112
  7. package/dist/cjs/AD728x90-c92f784d.js +1 -0
  8. package/dist/cjs/AD728x90.js +1 -109
  9. package/dist/cjs/ADFloatingFooter-f0650a0e.js +1 -0
  10. package/dist/cjs/ADFloatingFooter.js +1 -143
  11. package/dist/cjs/ADFooter-b3d98c5f.js +1 -0
  12. package/dist/cjs/ADFooter.js +1 -53
  13. package/dist/cjs/ADGutter-8451a0e7.js +1 -0
  14. package/dist/cjs/ADGutter.js +1 -115
  15. package/dist/cjs/ADInfeed-7019b746.js +1 -0
  16. package/dist/cjs/ADSkyscraper-2db48edc.js +1 -0
  17. package/dist/cjs/ADSkyscraper.js +1 -117
  18. package/dist/cjs/ADSponsoredResources-126ab84c.js +1 -0
  19. package/dist/cjs/ADSponsoredResources.js +1 -114
  20. package/dist/cjs/ADWebcast-26543865.js +1 -0
  21. package/dist/cjs/ADWebcast.js +1 -119
  22. package/dist/cjs/ADWelcome-6261c769.js +1 -0
  23. package/dist/cjs/ADWelcome.js +1 -166
  24. package/dist/cjs/ADlgInfeed-42059b30.js +1 -0
  25. package/dist/cjs/AccordionPanel-b018a969.js +1 -0
  26. package/dist/cjs/AccordionPanel.js +1 -94
  27. package/dist/cjs/AdSlot-8a0b4211.js +1 -0
  28. package/dist/cjs/AdSlot.js +1 -251
  29. package/dist/cjs/AdSlotsProvider-e06c4b39.js +1 -0
  30. package/dist/cjs/AdSlotsProvider.js +1 -183
  31. package/dist/cjs/AlgoliaSearch-05bab51c.js +1 -0
  32. package/dist/cjs/AlgoliaSearch.js +1 -195
  33. package/dist/cjs/AlphabeticList-94ed00ad.js +1 -0
  34. package/dist/cjs/AlphabeticList.js +1 -135
  35. package/dist/cjs/ArticleCarousel-6599cb34.js +1 -0
  36. package/dist/cjs/ArticleCarousel.js +1 -46
  37. package/dist/cjs/ArticleProgramLandingPage-2cc43252.js +1 -0
  38. package/dist/cjs/ArticleProgramLandingPage.js +1 -188
  39. package/dist/cjs/ArticleSeriesLandingPage-4af0758a.js +1 -0
  40. package/dist/cjs/ArticleSeriesLandingPage.js +1 -162
  41. package/dist/cjs/ArticleSeriesListing-476cb622.js +1 -0
  42. package/dist/cjs/ArticleSeriesListing.js +1 -315
  43. package/dist/cjs/Auth.js +1 -3514
  44. package/dist/cjs/AuthWrapper.js +1 -143
  45. package/dist/cjs/AuthorComponent-dd3ac7f5.js +1 -0
  46. package/dist/cjs/Beam.js +1 -350
  47. package/dist/cjs/Breadcrumbs-10474e7d.js +1 -0
  48. package/dist/cjs/Breadcrumbs.js +1 -107
  49. package/dist/cjs/CMEDeck-c7276c4c.js +1 -0
  50. package/dist/cjs/CMEDeck.js +1 -443
  51. package/dist/cjs/Column1-9a0e0262.js +1 -0
  52. package/dist/cjs/Column1.js +1 -39
  53. package/dist/cjs/Column2-47fa24ac.js +1 -0
  54. package/dist/cjs/Column2.js +1 -74
  55. package/dist/cjs/Column3-7407a3a2.js +1 -0
  56. package/dist/cjs/Column3.js +1 -143
  57. package/dist/cjs/ConferenceArticleCard-a48a5eb4.js +1 -0
  58. package/dist/cjs/ConferenceArticleCard.js +1 -93
  59. package/dist/cjs/ConferenceBanner-9fb497af.js +1 -0
  60. package/dist/cjs/ContentCard-0543793a.js +1 -0
  61. package/dist/cjs/ContentCardPaginated.js +1 -417
  62. package/dist/cjs/DeckContent.js +1 -507
  63. package/dist/cjs/DeckQueue.js +1 -403
  64. package/dist/cjs/DeckQueuePaginated.js +1 -348
  65. package/dist/cjs/Dfp-eb398ac3.js +1 -0
  66. package/dist/cjs/DropdownButton-3f21ccbf.js +6 -0
  67. package/dist/cjs/Dvm-4aab0fca.js +1 -0
  68. package/dist/cjs/EventsDeck-7614cec4.js +1 -0
  69. package/dist/cjs/EventsDeck.js +1 -884
  70. package/dist/cjs/ExternalResources-c1d4e253.js +1 -0
  71. package/dist/cjs/ExternalResources.js +1 -222
  72. package/dist/cjs/Feature-4254dfe3.js +1 -0
  73. package/dist/cjs/Feature.js +1 -129
  74. package/dist/cjs/ForbesHero-82c18210.js +1 -0
  75. package/dist/cjs/ForbesHero.js +1 -137
  76. package/dist/cjs/GridContent-6c8dd8e5.js +1 -0
  77. package/dist/cjs/GridContent.js +1 -828
  78. package/dist/cjs/GridContentPaginated.js +1 -704
  79. package/dist/cjs/GridHero-c6784d3f.js +1 -0
  80. package/dist/cjs/GridHero.js +1 -147
  81. package/dist/cjs/GroupDeck-6920bcf7.js +1 -0
  82. package/dist/cjs/GroupDeck.js +1 -314
  83. package/dist/cjs/HamMagazine.js +1 -602
  84. package/dist/cjs/HamburgerNav-02a13006.js +1 -0
  85. package/dist/cjs/Header-268a2cda.js +1 -0
  86. package/dist/cjs/Header.js +1 -39
  87. package/dist/cjs/HealthCareProfessionalModal.js +1 -78
  88. package/dist/cjs/Hero-79a1f7a3.js +1 -0
  89. package/dist/cjs/Hero.js +1 -48
  90. package/dist/cjs/HighlightenVideo-20edba55.js +1 -0
  91. package/dist/cjs/HighlightenVideo.js +1 -69
  92. package/dist/cjs/HorizontalArticleListing-4a44f354.js +1 -0
  93. package/dist/cjs/HorizontalArticleListing.js +1 -169
  94. package/dist/cjs/HorizontalHero-c5a3cb7a.js +1 -0
  95. package/dist/cjs/HorizontalHero.js +1 -111
  96. package/dist/cjs/ImageSlider-d1359f16.js +1 -0
  97. package/dist/cjs/IssueContentDeck-48a04696.js +1 -0
  98. package/dist/cjs/IssueContentDeck.js +1 -241
  99. package/dist/cjs/IssueDeck-41ebd17b.js +1 -0
  100. package/dist/cjs/IssueDeck.js +1 -268
  101. package/dist/cjs/IssueLanding-06765ae0.js +1 -0
  102. package/dist/cjs/IssueLanding.js +1 -176
  103. package/dist/cjs/KMTracker-4e1de793.js +1 -0
  104. package/dist/cjs/KMTracker.js +1 -27
  105. package/dist/cjs/LeftNav-c7283941.js +1 -0
  106. package/dist/cjs/LeftNav.js +1 -154
  107. package/dist/cjs/Magazine-0d15b137.js +1 -0
  108. package/dist/cjs/MasterDeck-0e168ac1.js +1 -0
  109. package/dist/cjs/MasterDeck.js +1 -555
  110. package/dist/cjs/MasterDeckPaginated.js +1 -469
  111. package/dist/cjs/MediaSeriesCard-07b6f758.js +1 -0
  112. package/dist/cjs/MediaSeriesLanding.js +1 -508
  113. package/dist/cjs/MediaSeriesLandingPaginated.js +1 -534
  114. package/dist/cjs/Native-ee78edeb.js +1 -0
  115. package/dist/cjs/NavDvm.js +1 -276
  116. package/dist/cjs/NavFooter-f905aca3.js +1 -0
  117. package/dist/cjs/NavMagazine.js +1 -613
  118. package/dist/cjs/NavNative.js +1 -880
  119. package/dist/cjs/Normal-ad14a1b1.js +1 -0
  120. package/dist/cjs/OncliveHero-5c7454fe.js +1 -0
  121. package/dist/cjs/OncliveHero.js +1 -79
  122. package/dist/cjs/OncliveLargeHero-46e0a793.js +1 -0
  123. package/dist/cjs/OncliveLargeHero.js +1 -241
  124. package/dist/cjs/PageFilter-bdffe62b.js +1 -0
  125. package/dist/cjs/PageFilter.js +1 -72
  126. package/dist/cjs/Pagination-825e4903.js +1 -0
  127. package/dist/cjs/PartnerDetailListing-848c514f.js +1 -0
  128. package/dist/cjs/PartnerDetailListing.js +1 -344
  129. package/dist/cjs/PartnerDetailListingPaginated.js +1 -353
  130. package/dist/cjs/PdfDownload-c99142ff.js +1 -0
  131. package/dist/cjs/PdfDownload.js +1 -28
  132. package/dist/cjs/PixelTracking.js +1 -165
  133. package/dist/cjs/PodcastsLanding.js +1 -236
  134. package/dist/cjs/PopUpModal-c1cbf9b6.js +1 -0
  135. package/dist/cjs/PopUpModal.js +1 -58
  136. package/dist/cjs/PtceDeck.js +1 -149
  137. package/dist/cjs/PubSection-08e834ca.js +1 -0
  138. package/dist/cjs/PubSection.js +1 -120
  139. package/dist/cjs/PubToc-6e2a3f50.js +1 -0
  140. package/dist/cjs/PubToc.js +1 -87
  141. package/dist/cjs/PublicationDeck-e242bd17.js +1 -0
  142. package/dist/cjs/PublicationDeck.js +1 -183
  143. package/dist/cjs/PublicationFeature-0e2014fb.js +1 -0
  144. package/dist/cjs/PublicationLanding-d54d80d4.js +1 -0
  145. package/dist/cjs/PublicationLanding.js +1 -853
  146. package/dist/cjs/Queue-8e0e436f.js +1 -0
  147. package/dist/cjs/QueueDeckExpanded-e420bdec.js +1 -0
  148. package/dist/cjs/QueueDeckExpanded.js +1 -1540
  149. package/dist/cjs/QueueDeckExpandedPaginated.js +1 -1388
  150. package/dist/cjs/RecentNews.js +1 -91
  151. package/dist/cjs/RelatedContent-4ac0ceca.js +1 -0
  152. package/dist/cjs/RelatedContent.js +1 -114
  153. package/dist/cjs/RelatedTopicsDropdown-4736b927.js +1 -0
  154. package/dist/cjs/RelatedTopicsDropdown.js +1 -90
  155. package/dist/cjs/RolesDeck-83cbb45e.js +1 -0
  156. package/dist/cjs/RolesDeck.js +1 -94
  157. package/dist/cjs/Schema-8c138aa8.js +1 -0
  158. package/dist/cjs/Schema.js +1 -103
  159. package/dist/cjs/Search.js +1 -66
  160. package/dist/cjs/Segment.js +1 -452
  161. package/dist/cjs/SeriesListingDeck.js +1 -248
  162. package/dist/cjs/SeriesSlider-720871f8.js +1 -0
  163. package/dist/cjs/SetCookie.js +1 -10
  164. package/dist/cjs/SideFooter-17e666a3.js +1 -0
  165. package/dist/cjs/SideFooter.js +1 -150
  166. package/dist/cjs/SocialIcons-425827d3.js +1 -0
  167. package/dist/cjs/SocialIcons.js +1 -103
  168. package/dist/cjs/SocialNavFooter-8f053a08.js +1 -0
  169. package/dist/cjs/SocialSearchComponent-dea3dbc8.js +1 -0
  170. package/dist/cjs/SocialShare-3d7c8abe.js +1 -0
  171. package/dist/cjs/SocialShare.js +1 -74
  172. package/dist/cjs/TaxonomyCard-e881cb43.js +1 -0
  173. package/dist/cjs/TaxonomyCard.js +1 -257
  174. package/dist/cjs/TaxonomyDescription-9a13ded6.js +1 -0
  175. package/dist/cjs/TaxonomyDescription.js +1 -209
  176. package/dist/cjs/TemplateNormal.js +1 -203
  177. package/dist/cjs/ThumbnailCard-101f04b8.js +1 -0
  178. package/dist/cjs/ThumbnailCard.js +1 -59
  179. package/dist/cjs/Ustream-b7692d0a.js +1 -0
  180. package/dist/cjs/Ustream.js +1 -156
  181. package/dist/cjs/VerticalHero-a61b1a2e.js +1 -0
  182. package/dist/cjs/VerticalHero.js +1 -74
  183. package/dist/cjs/VideoProgramLandingPage-5508836c.js +1 -0
  184. package/dist/cjs/VideoProgramLandingPage.js +1 -264
  185. package/dist/cjs/VideoSeriesCard.js +1 -88
  186. package/dist/cjs/VideoSeriesFilter-9650cf01.js +1 -0
  187. package/dist/cjs/VideoSeriesFilter.js +1 -128
  188. package/dist/cjs/VideoSeriesLandingPage-d1fae653.js +1 -0
  189. package/dist/cjs/VideoSeriesLandingPage.js +1 -178
  190. package/dist/cjs/VideoSeriesListing-91f5aa6d.js +1 -0
  191. package/dist/cjs/VideoSeriesListing.js +1 -422
  192. package/dist/cjs/View.js +1 -2680
  193. package/dist/cjs/YahooHero-2df6a408.js +1 -0
  194. package/dist/cjs/YahooHero.js +1 -126
  195. package/dist/cjs/YoutubeGroup-d8a93da0.js +1 -0
  196. package/dist/cjs/YoutubeGroup.js +1 -371
  197. package/dist/cjs/_commonjsHelpers-0a7b82d9.js +1 -0
  198. package/dist/cjs/beam-aaf6fbe9.js +1 -0
  199. package/dist/cjs/checkSisterSite-d2d62375.js +1 -0
  200. package/dist/cjs/defineProperty-ba7cd53d.js +1 -0
  201. package/dist/cjs/entities-8feddf1d.js +1 -0
  202. package/dist/cjs/extends-5ede7877.js +1 -0
  203. package/dist/cjs/faundadb.js +1 -406
  204. package/dist/cjs/getContentCategory-ee6d9fdf.js +1 -0
  205. package/dist/cjs/getKeywords-5341ea76.js +1 -0
  206. package/dist/cjs/getKeywords.js +1 -46
  207. package/dist/cjs/getPrototypeOf-99b1cfd8.js +1 -0
  208. package/dist/cjs/getPtceActivities.js +1 -89
  209. package/dist/cjs/getQuery-154617ad.js +1 -0
  210. package/dist/cjs/getQuery.js +1 -28
  211. package/dist/cjs/getRelatedArticle-dbed93dc.js +1 -0
  212. package/dist/cjs/getRelatedArticle.js +1 -478
  213. package/dist/cjs/getRootDocGroup.js +1 -62
  214. package/dist/cjs/getSerializers.js +1 -68
  215. package/dist/cjs/getSeriesDetail-e2980903.js +1 -0
  216. package/dist/cjs/getSeriesDetail.js +1 -40
  217. package/dist/cjs/getTargeting-a1ecaa0b.js +1 -0
  218. package/dist/cjs/getTargeting.js +1 -13
  219. package/dist/cjs/index-14c8083b.js +1 -0
  220. package/dist/cjs/index-3291d44c.js +1 -0
  221. package/dist/cjs/index-5cca2099.js +1 -0
  222. package/dist/cjs/index-66647f61.js +1 -0
  223. package/dist/cjs/index.js +1 -643
  224. package/dist/cjs/searchForm-bb5e3dbf.js +1 -0
  225. package/dist/cjs/segment-lib-7a16e514.js +1 -0
  226. package/dist/cjs/setCookie-e72f573d.js +1 -0
  227. package/dist/cjs/slicedToArray-c9e22c6a.js +1 -0
  228. package/dist/cjs/style-inject.es-dcee06b6.js +1 -30
  229. package/dist/cjs/timeDifferenceCalc.js +1 -39
  230. package/dist/cjs/toConsumableArray-7afb7984.js +1 -0
  231. package/dist/cjs/typeof-a861d137.js +1 -0
  232. package/dist/cjs/unsupportedIterableToArray-294d47a8.js +1 -0
  233. package/dist/cjs/urlFor-86a2f4db.js +1 -0
  234. package/dist/cjs/urlFor.js +1 -65
  235. package/dist/cjs/urlForFile-52afb8e9.js +1 -0
  236. package/dist/cjs/ustream-api-05a918f3.js +1 -0
  237. package/dist/esm/AD-8a57f623.js +1 -0
  238. package/dist/esm/AD.js +1 -26
  239. package/dist/esm/AD300x250-10ccde99.js +1 -0
  240. package/dist/esm/AD300x250.js +1 -89
  241. package/dist/esm/AD300x250x600-10e29b3d.js +1 -0
  242. package/dist/esm/AD300x250x600.js +1 -106
  243. package/dist/esm/AD728x90-2b0e930d.js +1 -0
  244. package/dist/esm/AD728x90.js +1 -103
  245. package/dist/esm/ADFloatingFooter-f23caacf.js +1 -0
  246. package/dist/esm/ADFloatingFooter.js +1 -137
  247. package/dist/esm/ADFooter-4c20b5fc.js +1 -0
  248. package/dist/esm/ADFooter.js +1 -47
  249. package/dist/esm/ADGutter-59cf52e3.js +1 -0
  250. package/dist/esm/ADGutter.js +1 -109
  251. package/dist/esm/ADInfeed-8ce85d87.js +1 -0
  252. package/dist/esm/ADSkyscraper-bfd33e46.js +1 -0
  253. package/dist/esm/ADSkyscraper.js +1 -111
  254. package/dist/esm/ADSponsoredResources-0410407c.js +1 -0
  255. package/dist/esm/ADSponsoredResources.js +1 -108
  256. package/dist/esm/ADWebcast-6f27e384.js +1 -0
  257. package/dist/esm/ADWebcast.js +1 -113
  258. package/dist/esm/ADWelcome-421d5621.js +1 -0
  259. package/dist/esm/ADWelcome.js +1 -160
  260. package/dist/esm/ADlgInfeed-19d0f057.js +1 -0
  261. package/dist/esm/AccordionPanel-123022f0.js +1 -0
  262. package/dist/esm/AccordionPanel.js +1 -87
  263. package/dist/esm/AdSlot-16696371.js +1 -0
  264. package/dist/esm/AdSlot.js +1 -244
  265. package/dist/esm/AdSlotsProvider-5ead284e.js +1 -0
  266. package/dist/esm/AdSlotsProvider.js +1 -176
  267. package/dist/esm/AlgoliaSearch-1343b721.js +1 -0
  268. package/dist/esm/AlgoliaSearch.js +1 -188
  269. package/dist/esm/AlphabeticList-f1ca5612.js +1 -0
  270. package/dist/esm/AlphabeticList.js +1 -129
  271. package/dist/esm/ArticleCarousel-ba29666c.js +1 -0
  272. package/dist/esm/ArticleCarousel.js +1 -40
  273. package/dist/esm/ArticleProgramLandingPage-d996da8f.js +1 -0
  274. package/dist/esm/ArticleProgramLandingPage.js +1 -182
  275. package/dist/esm/ArticleSeriesLandingPage-67cda955.js +1 -0
  276. package/dist/esm/ArticleSeriesLandingPage.js +1 -156
  277. package/dist/esm/ArticleSeriesListing-22e8f5a6.js +1 -0
  278. package/dist/esm/ArticleSeriesListing.js +1 -308
  279. package/dist/esm/Auth.js +1 -3494
  280. package/dist/esm/AuthWrapper.js +1 -136
  281. package/dist/esm/AuthorComponent-f3e14fdd.js +1 -0
  282. package/dist/esm/Beam.js +1 -348
  283. package/dist/esm/Breadcrumbs-8838701e.js +1 -0
  284. package/dist/esm/Breadcrumbs.js +1 -100
  285. package/dist/esm/CMEDeck-182d8eb7.js +1 -0
  286. package/dist/esm/CMEDeck.js +1 -437
  287. package/dist/esm/Column1-3304e0a7.js +1 -0
  288. package/dist/esm/Column1.js +1 -29
  289. package/dist/esm/Column2-2d42433b.js +1 -0
  290. package/dist/esm/Column2.js +1 -64
  291. package/dist/esm/Column3-94c8661b.js +1 -0
  292. package/dist/esm/Column3.js +1 -133
  293. package/dist/esm/ConferenceArticleCard-c10c5b7f.js +1 -0
  294. package/dist/esm/ConferenceArticleCard.js +1 -87
  295. package/dist/esm/ConferenceBanner-8a6f3ed9.js +1 -0
  296. package/dist/esm/ContentCard-01c2e43a.js +1 -0
  297. package/dist/esm/ContentCardPaginated.js +1 -406
  298. package/dist/esm/DeckContent.js +1 -497
  299. package/dist/esm/DeckQueue.js +1 -393
  300. package/dist/esm/DeckQueuePaginated.js +1 -337
  301. package/dist/esm/Dfp-c3c626b1.js +1 -0
  302. package/dist/esm/DropdownButton-c4621022.js +6 -0
  303. package/dist/esm/Dvm-138f924d.js +1 -0
  304. package/dist/esm/EventsDeck-e5aad41d.js +1 -0
  305. package/dist/esm/EventsDeck.js +1 -871
  306. package/dist/esm/ExternalResources-e9656681.js +1 -0
  307. package/dist/esm/ExternalResources.js +1 -215
  308. package/dist/esm/Feature-69a30cea.js +1 -0
  309. package/dist/esm/Feature.js +1 -122
  310. package/dist/esm/ForbesHero-0b0a5436.js +1 -0
  311. package/dist/esm/ForbesHero.js +1 -131
  312. package/dist/esm/GridContent-d8df59ae.js +1 -0
  313. package/dist/esm/GridContent.js +1 -818
  314. package/dist/esm/GridContentPaginated.js +1 -693
  315. package/dist/esm/GridHero-0d17636c.js +1 -0
  316. package/dist/esm/GridHero.js +1 -141
  317. package/dist/esm/GroupDeck-4c581822.js +1 -0
  318. package/dist/esm/GroupDeck.js +1 -308
  319. package/dist/esm/HamMagazine.js +1 -590
  320. package/dist/esm/HamburgerNav-5fcf79ae.js +1 -0
  321. package/dist/esm/Header-b0624adc.js +1 -0
  322. package/dist/esm/Header.js +1 -30
  323. package/dist/esm/HealthCareProfessionalModal.js +1 -70
  324. package/dist/esm/Hero-1b663f28.js +1 -0
  325. package/dist/esm/Hero.js +1 -42
  326. package/dist/esm/HighlightenVideo-5c3fd0fd.js +1 -0
  327. package/dist/esm/HighlightenVideo.js +1 -63
  328. package/dist/esm/HorizontalArticleListing-cccace2e.js +1 -0
  329. package/dist/esm/HorizontalArticleListing.js +1 -163
  330. package/dist/esm/HorizontalHero-8633a55c.js +1 -0
  331. package/dist/esm/HorizontalHero.js +1 -105
  332. package/dist/esm/ImageSlider-c354db50.js +1 -0
  333. package/dist/esm/IssueContentDeck-915409a7.js +1 -0
  334. package/dist/esm/IssueContentDeck.js +1 -231
  335. package/dist/esm/IssueDeck-61a4a550.js +1 -0
  336. package/dist/esm/IssueDeck.js +1 -258
  337. package/dist/esm/IssueLanding-a59c91ee.js +1 -0
  338. package/dist/esm/IssueLanding.js +1 -170
  339. package/dist/esm/KMTracker-d9e1c288.js +1 -0
  340. package/dist/esm/KMTracker.js +1 -25
  341. package/dist/esm/LeftNav-a3852fbe.js +1 -0
  342. package/dist/esm/LeftNav.js +1 -145
  343. package/dist/esm/Magazine-7d6e5dcd.js +1 -0
  344. package/dist/esm/MasterDeck-41c7cd70.js +1 -0
  345. package/dist/esm/MasterDeck.js +1 -548
  346. package/dist/esm/MasterDeckPaginated.js +1 -461
  347. package/dist/esm/MediaSeriesCard-cf72ce87.js +1 -0
  348. package/dist/esm/MediaSeriesLanding.js +1 -501
  349. package/dist/esm/MediaSeriesLandingPaginated.js +1 -527
  350. package/dist/esm/Native-bf89940a.js +1 -0
  351. package/dist/esm/NavDvm.js +1 -264
  352. package/dist/esm/NavFooter-83d89acd.js +1 -0
  353. package/dist/esm/NavMagazine.js +1 -601
  354. package/dist/esm/NavNative.js +1 -865
  355. package/dist/esm/Normal-06895213.js +1 -0
  356. package/dist/esm/OncliveHero-19794e52.js +1 -0
  357. package/dist/esm/OncliveHero.js +1 -73
  358. package/dist/esm/OncliveLargeHero-01d4c10f.js +1 -0
  359. package/dist/esm/OncliveLargeHero.js +1 -235
  360. package/dist/esm/PageFilter-81144bcb.js +1 -0
  361. package/dist/esm/PageFilter.js +1 -66
  362. package/dist/esm/Pagination-44c3ff7c.js +1 -0
  363. package/dist/esm/PartnerDetailListing-429d60e1.js +1 -0
  364. package/dist/esm/PartnerDetailListing.js +1 -338
  365. package/dist/esm/PartnerDetailListingPaginated.js +1 -347
  366. package/dist/esm/PdfDownload-eff648d3.js +1 -0
  367. package/dist/esm/PdfDownload.js +1 -22
  368. package/dist/esm/PixelTracking.js +1 -156
  369. package/dist/esm/PodcastsLanding.js +1 -229
  370. package/dist/esm/PopUpModal-a2735a23.js +1 -0
  371. package/dist/esm/PopUpModal.js +1 -51
  372. package/dist/esm/PtceDeck.js +1 -143
  373. package/dist/esm/PubSection-3d940b53.js +1 -0
  374. package/dist/esm/PubSection.js +1 -114
  375. package/dist/esm/PubToc-52a85696.js +1 -0
  376. package/dist/esm/PubToc.js +1 -81
  377. package/dist/esm/PublicationDeck-538d397e.js +1 -0
  378. package/dist/esm/PublicationDeck.js +1 -173
  379. package/dist/esm/PublicationFeature-6deea07c.js +1 -0
  380. package/dist/esm/PublicationLanding-48ebce9b.js +1 -0
  381. package/dist/esm/PublicationLanding.js +1 -843
  382. package/dist/esm/Queue-847df47f.js +1 -0
  383. package/dist/esm/QueueDeckExpanded-fdc60f72.js +1 -0
  384. package/dist/esm/QueueDeckExpanded.js +1 -1534
  385. package/dist/esm/QueueDeckExpandedPaginated.js +1 -1382
  386. package/dist/esm/RecentNews.js +1 -85
  387. package/dist/esm/RelatedContent-f3eaad29.js +1 -0
  388. package/dist/esm/RelatedContent.js +1 -108
  389. package/dist/esm/RelatedTopicsDropdown-0cf5829a.js +1 -0
  390. package/dist/esm/RelatedTopicsDropdown.js +1 -82
  391. package/dist/esm/RolesDeck-6146633e.js +1 -0
  392. package/dist/esm/RolesDeck.js +1 -84
  393. package/dist/esm/Schema-c7f42de0.js +1 -0
  394. package/dist/esm/Schema.js +1 -97
  395. package/dist/esm/Search.js +1 -57
  396. package/dist/esm/Segment.js +1 -450
  397. package/dist/esm/SeriesListingDeck.js +1 -242
  398. package/dist/esm/SeriesSlider-a00cd257.js +1 -0
  399. package/dist/esm/SetCookie.js +1 -8
  400. package/dist/esm/SideFooter-7cd5abc0.js +1 -0
  401. package/dist/esm/SideFooter.js +1 -144
  402. package/dist/esm/SocialIcons-c7861c13.js +1 -0
  403. package/dist/esm/SocialIcons.js +1 -97
  404. package/dist/esm/SocialNavFooter-66c6cf3c.js +1 -0
  405. package/dist/esm/SocialSearchComponent-e74e11f8.js +1 -0
  406. package/dist/esm/SocialShare-9cc43665.js +1 -0
  407. package/dist/esm/SocialShare.js +1 -67
  408. package/dist/esm/TaxonomyCard-507f5c95.js +1 -0
  409. package/dist/esm/TaxonomyCard.js +1 -247
  410. package/dist/esm/TaxonomyDescription-ee6ae52e.js +1 -0
  411. package/dist/esm/TaxonomyDescription.js +1 -202
  412. package/dist/esm/TemplateNormal.js +1 -196
  413. package/dist/esm/ThumbnailCard-b7a3af71.js +1 -0
  414. package/dist/esm/ThumbnailCard.js +1 -52
  415. package/dist/esm/Ustream-29dc2277.js +1 -0
  416. package/dist/esm/Ustream.js +1 -150
  417. package/dist/esm/VerticalHero-ffc93a70.js +1 -0
  418. package/dist/esm/VerticalHero.js +1 -68
  419. package/dist/esm/VideoProgramLandingPage-179db5b2.js +1 -0
  420. package/dist/esm/VideoProgramLandingPage.js +1 -255
  421. package/dist/esm/VideoSeriesCard.js +1 -82
  422. package/dist/esm/VideoSeriesFilter-b6bd4c07.js +1 -0
  423. package/dist/esm/VideoSeriesFilter.js +1 -122
  424. package/dist/esm/VideoSeriesLandingPage-180a2469.js +1 -0
  425. package/dist/esm/VideoSeriesLandingPage.js +1 -172
  426. package/dist/esm/VideoSeriesListing-62650a53.js +1 -0
  427. package/dist/esm/VideoSeriesListing.js +1 -415
  428. package/dist/esm/View.js +1 -2669
  429. package/dist/esm/YahooHero-ddfeb2a5.js +1 -0
  430. package/dist/esm/YahooHero.js +1 -120
  431. package/dist/esm/YoutubeGroup-1dd6f1ba.js +1 -0
  432. package/dist/esm/YoutubeGroup.js +1 -365
  433. package/dist/esm/_commonjsHelpers-57e89916.js +1 -0
  434. package/dist/esm/beam-50a5c4d8.js +1 -0
  435. package/dist/esm/checkSisterSite-20e2bf62.js +1 -0
  436. package/dist/esm/defineProperty-18999f8e.js +1 -0
  437. package/dist/esm/entities-8b138943.js +1 -0
  438. package/dist/esm/extends-e61fd370.js +1 -0
  439. package/dist/esm/faundadb.js +1 -396
  440. package/dist/esm/getContentCategory-f99fdf90.js +1 -0
  441. package/dist/esm/getKeywords-2512775a.js +1 -0
  442. package/dist/esm/getKeywords.js +1 -44
  443. package/dist/esm/getPrototypeOf-a8361cb6.js +1 -0
  444. package/dist/esm/getPtceActivities.js +1 -87
  445. package/dist/esm/getQuery-bfc0390c.js +1 -0
  446. package/dist/esm/getQuery.js +1 -26
  447. package/dist/esm/getRelatedArticle-66a08458.js +1 -0
  448. package/dist/esm/getRelatedArticle.js +1 -476
  449. package/dist/esm/getRootDocGroup.js +1 -60
  450. package/dist/esm/getSerializers.js +1 -62
  451. package/dist/esm/getSeriesDetail-aef9680c.js +1 -0
  452. package/dist/esm/getSeriesDetail.js +1 -38
  453. package/dist/esm/getTargeting-eeb7bb6a.js +1 -0
  454. package/dist/esm/getTargeting.js +1 -7
  455. package/dist/esm/index-00bbf2b1.js +1 -0
  456. package/dist/esm/index-24498aa0.js +1 -0
  457. package/dist/esm/index-541d17f5.js +1 -0
  458. package/dist/esm/index-a96a4f73.js +1 -0
  459. package/dist/esm/index.js +1 -536
  460. package/dist/esm/searchForm-8218e558.js +1 -0
  461. package/dist/esm/segment-lib-3a19dbdd.js +1 -0
  462. package/dist/esm/setCookie-0f2ab6df.js +1 -0
  463. package/dist/esm/slicedToArray-f57adb2c.js +1 -0
  464. package/dist/esm/style-inject.es-1f59c1d0.js +1 -28
  465. package/dist/esm/timeDifferenceCalc.js +1 -37
  466. package/dist/esm/toConsumableArray-2f86a0c1.js +1 -0
  467. package/dist/esm/typeof-92b42de1.js +1 -0
  468. package/dist/esm/unsupportedIterableToArray-b359dd50.js +1 -0
  469. package/dist/esm/urlFor-649884fa.js +1 -0
  470. package/dist/esm/urlFor.js +1 -63
  471. package/dist/esm/urlForFile-3b87fb01.js +1 -0
  472. package/dist/esm/ustream-api-7998d140.js +1 -0
  473. package/package.json +23 -22
  474. package/dist/cjs/ADInfeed-08a6ef56.js +0 -66
  475. package/dist/cjs/ADlgInfeed-f46139b2.js +0 -60
  476. package/dist/cjs/AuthorComponent-17e1c62b.js +0 -96
  477. package/dist/cjs/BlockContent-8b494587.js +0 -916
  478. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  479. package/dist/cjs/Dfp-bcaa7e3f.js +0 -103
  480. package/dist/cjs/ImageSlider-10cd194f.js +0 -1383
  481. package/dist/cjs/MediaSeriesCard-a6e3f32e.js +0 -81
  482. package/dist/cjs/NavFooter-4799de4b.js +0 -71
  483. package/dist/cjs/Pagination-7624a3bd.js +0 -90
  484. package/dist/cjs/PublicationFeature-6f89fb97.js +0 -130
  485. package/dist/cjs/SeriesSlider-08699353.js +0 -332
  486. package/dist/cjs/SocialSearchComponent-59192efd.js +0 -213
  487. package/dist/cjs/Tooltip-7be5df78.js +0 -9229
  488. package/dist/cjs/_commonjsHelpers-06173234.js +0 -25
  489. package/dist/cjs/_is-array-aa52fa1e.js +0 -74
  490. package/dist/cjs/_iter-detect-05795553.js +0 -52
  491. package/dist/cjs/_library-dd23b178.js +0 -5
  492. package/dist/cjs/_object-pie-68c5bcbc.js +0 -16
  493. package/dist/cjs/_object-sap-171b9ea5.js +0 -16
  494. package/dist/cjs/_object-to-array-9bac8737.js +0 -25
  495. package/dist/cjs/asyncToGenerator-df19209d.js +0 -1395
  496. package/dist/cjs/brightcove-react-player-loader.es-5c98aec7.js +0 -2232
  497. package/dist/cjs/checkSisterSite-b29833b2.js +0 -19
  498. package/dist/cjs/core.get-iterator-method-f3c44602.js +0 -584
  499. package/dist/cjs/debounce-529c8d06.js +0 -216
  500. package/dist/cjs/define-property-21887c62.js +0 -20
  501. package/dist/cjs/entities-310b46ee.js +0 -506
  502. package/dist/cjs/eq-bb2843ed.js +0 -79
  503. package/dist/cjs/extends-7df78678.js +0 -86
  504. package/dist/cjs/get-adbb11e3.js +0 -920
  505. package/dist/cjs/getContentCategory-f38a4c00.js +0 -11
  506. package/dist/cjs/getTargeting-5eabd6e2.js +0 -164
  507. package/dist/cjs/iconBase-68959171.js +0 -84
  508. package/dist/cjs/index-187c967e.js +0 -54
  509. package/dist/cjs/index-44481153.js +0 -1664
  510. package/dist/cjs/index-99edf08a.js +0 -1572
  511. package/dist/cjs/index-9d365128.js +0 -613
  512. package/dist/cjs/index-b278e08f.js +0 -10526
  513. package/dist/cjs/index-b5eb3ff8.js +0 -551
  514. package/dist/cjs/index-bd6c9f56.js +0 -211
  515. package/dist/cjs/index.es-f3e47207.js +0 -445
  516. package/dist/cjs/index.esm-44f3e2d0.js +0 -13
  517. package/dist/cjs/index.esm-48e0f0d8.js +0 -19
  518. package/dist/cjs/index.esm-f4cf6943.js +0 -97
  519. package/dist/cjs/index.esm-f93506ac.js +0 -25
  520. package/dist/cjs/inherits-420ee86f.js +0 -185
  521. package/dist/cjs/isSymbol-04666465.js +0 -209
  522. package/dist/cjs/js.cookie-a511c430.js +0 -160
  523. package/dist/cjs/keys-d207942e.js +0 -25
  524. package/dist/cjs/lodash-7fd85bcf.js +0 -17147
  525. package/dist/cjs/main-7b5e57b0.js +0 -898
  526. package/dist/cjs/md5-e1ca5797.js +0 -323
  527. package/dist/cjs/moment-ca3bd9fb.js +0 -5669
  528. package/dist/cjs/react-social-icons-07939b41.js +0 -616
  529. package/dist/cjs/slicedToArray-f6d4eaa8.js +0 -95
  530. package/dist/cjs/smoothscroll-5054361f.js +0 -438
  531. package/dist/cjs/stringify-bbc68047.js +0 -17
  532. package/dist/cjs/toConsumableArray-c9b8a0d0.js +0 -74
  533. package/dist/cjs/toNumber-36d1e7e5.js +0 -69
  534. package/dist/cjs/typeof-ec08d471.js +0 -382
  535. package/dist/cjs/urlForFile-ad96158c.js +0 -24
  536. package/dist/cjs/ustream-api-9ebe112f.js +0 -106
  537. package/dist/cjs/util-f2c1b65b.js +0 -576
  538. package/dist/cjs/visibility-sensor-eb2c5b69.js +0 -597
  539. package/dist/cjs/web.dom.iterable-e34bf324.js +0 -50
  540. package/dist/esm/ADInfeed-36973a76.js +0 -59
  541. package/dist/esm/ADlgInfeed-f6e898d5.js +0 -54
  542. package/dist/esm/AuthorComponent-b0a47123.js +0 -90
  543. package/dist/esm/BlockContent-d05b5b23.js +0 -909
  544. package/dist/esm/ConferenceBanner-9162d0ca.js +0 -18
  545. package/dist/esm/Dfp-e151d2de.js +0 -96
  546. package/dist/esm/ImageSlider-5ae6287a.js +0 -1375
  547. package/dist/esm/MediaSeriesCard-66045ffb.js +0 -75
  548. package/dist/esm/NavFooter-da30eae3.js +0 -65
  549. package/dist/esm/Pagination-1e09918f.js +0 -82
  550. package/dist/esm/PublicationFeature-0379cc20.js +0 -121
  551. package/dist/esm/SeriesSlider-b364d074.js +0 -326
  552. package/dist/esm/SocialSearchComponent-09b55779.js +0 -204
  553. package/dist/esm/Tooltip-af3e4ee9.js +0 -9220
  554. package/dist/esm/_commonjsHelpers-0c4b6f40.js +0 -19
  555. package/dist/esm/_is-array-31d40a83.js +0 -71
  556. package/dist/esm/_iter-detect-72edfd60.js +0 -48
  557. package/dist/esm/_library-528f1934.js +0 -3
  558. package/dist/esm/_object-pie-33c40e79.js +0 -13
  559. package/dist/esm/_object-sap-4201ccf6.js +0 -14
  560. package/dist/esm/_object-to-array-fa0feeff.js +0 -23
  561. package/dist/esm/asyncToGenerator-9c835201.js +0 -1387
  562. package/dist/esm/brightcove-react-player-loader.es-4abff0b1.js +0 -2226
  563. package/dist/esm/checkSisterSite-baa4fb6b.js +0 -17
  564. package/dist/esm/core.get-iterator-method-8c71f470.js +0 -547
  565. package/dist/esm/debounce-9207d8ee.js +0 -214
  566. package/dist/esm/define-property-a8a00786.js +0 -18
  567. package/dist/esm/entities-7cc3bf45.js +0 -503
  568. package/dist/esm/eq-b470f743.js +0 -76
  569. package/dist/esm/extends-7fbbe94e.js +0 -83
  570. package/dist/esm/get-1e515072.js +0 -918
  571. package/dist/esm/getContentCategory-15dcc413.js +0 -9
  572. package/dist/esm/getTargeting-eed01f73.js +0 -161
  573. package/dist/esm/iconBase-602d52fe.js +0 -81
  574. package/dist/esm/index-1819118a.js +0 -1655
  575. package/dist/esm/index-3a7c5bbe.js +0 -10504
  576. package/dist/esm/index-51a80699.js +0 -548
  577. package/dist/esm/index-6c12bdd5.js +0 -605
  578. package/dist/esm/index-c7e2ac95.js +0 -52
  579. package/dist/esm/index-db3bb315.js +0 -207
  580. package/dist/esm/index-fa2ffe86.js +0 -1570
  581. package/dist/esm/index.es-c6222053.js +0 -439
  582. package/dist/esm/index.esm-55f22b35.js +0 -14
  583. package/dist/esm/index.esm-9d701385.js +0 -90
  584. package/dist/esm/index.esm-c6715e80.js +0 -10
  585. package/dist/esm/index.esm-d1125763.js +0 -18
  586. package/dist/esm/inherits-d26c739e.js +0 -179
  587. package/dist/esm/isSymbol-1981418f.js +0 -203
  588. package/dist/esm/js.cookie-6874175c.js +0 -158
  589. package/dist/esm/keys-5e9bd229.js +0 -23
  590. package/dist/esm/lodash-ec8c6b48.js +0 -17145
  591. package/dist/esm/main-43ca42fe.js +0 -886
  592. package/dist/esm/md5-4e42248e.js +0 -321
  593. package/dist/esm/moment-b6f49411.js +0 -5667
  594. package/dist/esm/react-social-icons-3822f1ce.js +0 -609
  595. package/dist/esm/slicedToArray-99bcfd93.js +0 -92
  596. package/dist/esm/smoothscroll-0cd4c7a6.js +0 -436
  597. package/dist/esm/stringify-0c65d837.js +0 -15
  598. package/dist/esm/toConsumableArray-47a5394a.js +0 -71
  599. package/dist/esm/toNumber-2f7a84cd.js +0 -67
  600. package/dist/esm/typeof-d92ed6e0.js +0 -378
  601. package/dist/esm/urlForFile-0fc42ed8.js +0 -22
  602. package/dist/esm/ustream-api-cbba615a.js +0 -104
  603. package/dist/esm/util-7700fc59.js +0 -574
  604. package/dist/esm/visibility-sensor-f40c2564.js +0 -590
  605. package/dist/esm/web.dom.iterable-406140e0.js +0 -48
@@ -1,1387 +0,0 @@
1
- import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { s as core_getIteratorMethod, d as _ctx, k as _toLength, t as _anObject, h as _wks, q as _aFunction, l as _global, G as _cof, H as _domCreate, I as _html, b as _isObject, n as _hide, a as _core, e as _descriptors, g as _objectDp, p as _classof, _ as _export, o as _setToStringTag } from './core.get-iterator-method-8c71f470.js';
3
- import { _ as _library } from './_library-528f1934.js';
4
- import { a as _isArrayIter, b as _iterCall, _ as _iterDetect } from './_iter-detect-72edfd60.js';
5
- import './web.dom.iterable-406140e0.js';
6
-
7
- var runtime = createCommonjsModule(function (module) {
8
- /**
9
- * Copyright (c) 2014-present, Facebook, Inc.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
-
15
- !(function(global) {
16
-
17
- var Op = Object.prototype;
18
- var hasOwn = Op.hasOwnProperty;
19
- var undefined$1; // More compressible than void 0.
20
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
21
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
22
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
23
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
24
- var runtime = global.regeneratorRuntime;
25
- if (runtime) {
26
- {
27
- // If regeneratorRuntime is defined globally and we're in a module,
28
- // make the exports object identical to regeneratorRuntime.
29
- module.exports = runtime;
30
- }
31
- // Don't bother evaluating the rest of this file if the runtime was
32
- // already defined globally.
33
- return;
34
- }
35
-
36
- // Define the runtime globally (as expected by generated code) as either
37
- // module.exports (if we're in a module) or a new, empty object.
38
- runtime = global.regeneratorRuntime = module.exports ;
39
-
40
- function wrap(innerFn, outerFn, self, tryLocsList) {
41
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
42
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
43
- var generator = Object.create(protoGenerator.prototype);
44
- var context = new Context(tryLocsList || []);
45
-
46
- // The ._invoke method unifies the implementations of the .next,
47
- // .throw, and .return methods.
48
- generator._invoke = makeInvokeMethod(innerFn, self, context);
49
-
50
- return generator;
51
- }
52
- runtime.wrap = wrap;
53
-
54
- // Try/catch helper to minimize deoptimizations. Returns a completion
55
- // record like context.tryEntries[i].completion. This interface could
56
- // have been (and was previously) designed to take a closure to be
57
- // invoked without arguments, but in all the cases we care about we
58
- // already have an existing method we want to call, so there's no need
59
- // to create a new function object. We can even get away with assuming
60
- // the method takes exactly one argument, since that happens to be true
61
- // in every case, so we don't have to touch the arguments object. The
62
- // only additional allocation required is the completion record, which
63
- // has a stable shape and so hopefully should be cheap to allocate.
64
- function tryCatch(fn, obj, arg) {
65
- try {
66
- return { type: "normal", arg: fn.call(obj, arg) };
67
- } catch (err) {
68
- return { type: "throw", arg: err };
69
- }
70
- }
71
-
72
- var GenStateSuspendedStart = "suspendedStart";
73
- var GenStateSuspendedYield = "suspendedYield";
74
- var GenStateExecuting = "executing";
75
- var GenStateCompleted = "completed";
76
-
77
- // Returning this object from the innerFn has the same effect as
78
- // breaking out of the dispatch switch statement.
79
- var ContinueSentinel = {};
80
-
81
- // Dummy constructor functions that we use as the .constructor and
82
- // .constructor.prototype properties for functions that return Generator
83
- // objects. For full spec compliance, you may wish to configure your
84
- // minifier not to mangle the names of these two functions.
85
- function Generator() {}
86
- function GeneratorFunction() {}
87
- function GeneratorFunctionPrototype() {}
88
-
89
- // This is a polyfill for %IteratorPrototype% for environments that
90
- // don't natively support it.
91
- var IteratorPrototype = {};
92
- IteratorPrototype[iteratorSymbol] = function () {
93
- return this;
94
- };
95
-
96
- var getProto = Object.getPrototypeOf;
97
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
98
- if (NativeIteratorPrototype &&
99
- NativeIteratorPrototype !== Op &&
100
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
101
- // This environment has a native %IteratorPrototype%; use it instead
102
- // of the polyfill.
103
- IteratorPrototype = NativeIteratorPrototype;
104
- }
105
-
106
- var Gp = GeneratorFunctionPrototype.prototype =
107
- Generator.prototype = Object.create(IteratorPrototype);
108
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
109
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
110
- GeneratorFunctionPrototype[toStringTagSymbol] =
111
- GeneratorFunction.displayName = "GeneratorFunction";
112
-
113
- // Helper for defining the .next, .throw, and .return methods of the
114
- // Iterator interface in terms of a single ._invoke method.
115
- function defineIteratorMethods(prototype) {
116
- ["next", "throw", "return"].forEach(function(method) {
117
- prototype[method] = function(arg) {
118
- return this._invoke(method, arg);
119
- };
120
- });
121
- }
122
-
123
- runtime.isGeneratorFunction = function(genFun) {
124
- var ctor = typeof genFun === "function" && genFun.constructor;
125
- return ctor
126
- ? ctor === GeneratorFunction ||
127
- // For the native GeneratorFunction constructor, the best we can
128
- // do is to check its .name property.
129
- (ctor.displayName || ctor.name) === "GeneratorFunction"
130
- : false;
131
- };
132
-
133
- runtime.mark = function(genFun) {
134
- if (Object.setPrototypeOf) {
135
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
136
- } else {
137
- genFun.__proto__ = GeneratorFunctionPrototype;
138
- if (!(toStringTagSymbol in genFun)) {
139
- genFun[toStringTagSymbol] = "GeneratorFunction";
140
- }
141
- }
142
- genFun.prototype = Object.create(Gp);
143
- return genFun;
144
- };
145
-
146
- // Within the body of any async function, `await x` is transformed to
147
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
148
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
149
- // meant to be awaited.
150
- runtime.awrap = function(arg) {
151
- return { __await: arg };
152
- };
153
-
154
- function AsyncIterator(generator) {
155
- function invoke(method, arg, resolve, reject) {
156
- var record = tryCatch(generator[method], generator, arg);
157
- if (record.type === "throw") {
158
- reject(record.arg);
159
- } else {
160
- var result = record.arg;
161
- var value = result.value;
162
- if (value &&
163
- typeof value === "object" &&
164
- hasOwn.call(value, "__await")) {
165
- return Promise.resolve(value.__await).then(function(value) {
166
- invoke("next", value, resolve, reject);
167
- }, function(err) {
168
- invoke("throw", err, resolve, reject);
169
- });
170
- }
171
-
172
- return Promise.resolve(value).then(function(unwrapped) {
173
- // When a yielded Promise is resolved, its final value becomes
174
- // the .value of the Promise<{value,done}> result for the
175
- // current iteration. If the Promise is rejected, however, the
176
- // result for this iteration will be rejected with the same
177
- // reason. Note that rejections of yielded Promises are not
178
- // thrown back into the generator function, as is the case
179
- // when an awaited Promise is rejected. This difference in
180
- // behavior between yield and await is important, because it
181
- // allows the consumer to decide what to do with the yielded
182
- // rejection (swallow it and continue, manually .throw it back
183
- // into the generator, abandon iteration, whatever). With
184
- // await, by contrast, there is no opportunity to examine the
185
- // rejection reason outside the generator function, so the
186
- // only option is to throw it from the await expression, and
187
- // let the generator function handle the exception.
188
- result.value = unwrapped;
189
- resolve(result);
190
- }, reject);
191
- }
192
- }
193
-
194
- var previousPromise;
195
-
196
- function enqueue(method, arg) {
197
- function callInvokeWithMethodAndArg() {
198
- return new Promise(function(resolve, reject) {
199
- invoke(method, arg, resolve, reject);
200
- });
201
- }
202
-
203
- return previousPromise =
204
- // If enqueue has been called before, then we want to wait until
205
- // all previous Promises have been resolved before calling invoke,
206
- // so that results are always delivered in the correct order. If
207
- // enqueue has not been called before, then it is important to
208
- // call invoke immediately, without waiting on a callback to fire,
209
- // so that the async generator function has the opportunity to do
210
- // any necessary setup in a predictable way. This predictability
211
- // is why the Promise constructor synchronously invokes its
212
- // executor callback, and why async functions synchronously
213
- // execute code before the first await. Since we implement simple
214
- // async functions in terms of async generators, it is especially
215
- // important to get this right, even though it requires care.
216
- previousPromise ? previousPromise.then(
217
- callInvokeWithMethodAndArg,
218
- // Avoid propagating failures to Promises returned by later
219
- // invocations of the iterator.
220
- callInvokeWithMethodAndArg
221
- ) : callInvokeWithMethodAndArg();
222
- }
223
-
224
- // Define the unified helper method that is used to implement .next,
225
- // .throw, and .return (see defineIteratorMethods).
226
- this._invoke = enqueue;
227
- }
228
-
229
- defineIteratorMethods(AsyncIterator.prototype);
230
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
231
- return this;
232
- };
233
- runtime.AsyncIterator = AsyncIterator;
234
-
235
- // Note that simple async functions are implemented on top of
236
- // AsyncIterator objects; they just return a Promise for the value of
237
- // the final result produced by the iterator.
238
- runtime.async = function(innerFn, outerFn, self, tryLocsList) {
239
- var iter = new AsyncIterator(
240
- wrap(innerFn, outerFn, self, tryLocsList)
241
- );
242
-
243
- return runtime.isGeneratorFunction(outerFn)
244
- ? iter // If outerFn is a generator, return the full iterator.
245
- : iter.next().then(function(result) {
246
- return result.done ? result.value : iter.next();
247
- });
248
- };
249
-
250
- function makeInvokeMethod(innerFn, self, context) {
251
- var state = GenStateSuspendedStart;
252
-
253
- return function invoke(method, arg) {
254
- if (state === GenStateExecuting) {
255
- throw new Error("Generator is already running");
256
- }
257
-
258
- if (state === GenStateCompleted) {
259
- if (method === "throw") {
260
- throw arg;
261
- }
262
-
263
- // Be forgiving, per 25.3.3.3.3 of the spec:
264
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
265
- return doneResult();
266
- }
267
-
268
- context.method = method;
269
- context.arg = arg;
270
-
271
- while (true) {
272
- var delegate = context.delegate;
273
- if (delegate) {
274
- var delegateResult = maybeInvokeDelegate(delegate, context);
275
- if (delegateResult) {
276
- if (delegateResult === ContinueSentinel) continue;
277
- return delegateResult;
278
- }
279
- }
280
-
281
- if (context.method === "next") {
282
- // Setting context._sent for legacy support of Babel's
283
- // function.sent implementation.
284
- context.sent = context._sent = context.arg;
285
-
286
- } else if (context.method === "throw") {
287
- if (state === GenStateSuspendedStart) {
288
- state = GenStateCompleted;
289
- throw context.arg;
290
- }
291
-
292
- context.dispatchException(context.arg);
293
-
294
- } else if (context.method === "return") {
295
- context.abrupt("return", context.arg);
296
- }
297
-
298
- state = GenStateExecuting;
299
-
300
- var record = tryCatch(innerFn, self, context);
301
- if (record.type === "normal") {
302
- // If an exception is thrown from innerFn, we leave state ===
303
- // GenStateExecuting and loop back for another invocation.
304
- state = context.done
305
- ? GenStateCompleted
306
- : GenStateSuspendedYield;
307
-
308
- if (record.arg === ContinueSentinel) {
309
- continue;
310
- }
311
-
312
- return {
313
- value: record.arg,
314
- done: context.done
315
- };
316
-
317
- } else if (record.type === "throw") {
318
- state = GenStateCompleted;
319
- // Dispatch the exception by looping back around to the
320
- // context.dispatchException(context.arg) call above.
321
- context.method = "throw";
322
- context.arg = record.arg;
323
- }
324
- }
325
- };
326
- }
327
-
328
- // Call delegate.iterator[context.method](context.arg) and handle the
329
- // result, either by returning a { value, done } result from the
330
- // delegate iterator, or by modifying context.method and context.arg,
331
- // setting context.delegate to null, and returning the ContinueSentinel.
332
- function maybeInvokeDelegate(delegate, context) {
333
- var method = delegate.iterator[context.method];
334
- if (method === undefined$1) {
335
- // A .throw or .return when the delegate iterator has no .throw
336
- // method always terminates the yield* loop.
337
- context.delegate = null;
338
-
339
- if (context.method === "throw") {
340
- if (delegate.iterator.return) {
341
- // If the delegate iterator has a return method, give it a
342
- // chance to clean up.
343
- context.method = "return";
344
- context.arg = undefined$1;
345
- maybeInvokeDelegate(delegate, context);
346
-
347
- if (context.method === "throw") {
348
- // If maybeInvokeDelegate(context) changed context.method from
349
- // "return" to "throw", let that override the TypeError below.
350
- return ContinueSentinel;
351
- }
352
- }
353
-
354
- context.method = "throw";
355
- context.arg = new TypeError(
356
- "The iterator does not provide a 'throw' method");
357
- }
358
-
359
- return ContinueSentinel;
360
- }
361
-
362
- var record = tryCatch(method, delegate.iterator, context.arg);
363
-
364
- if (record.type === "throw") {
365
- context.method = "throw";
366
- context.arg = record.arg;
367
- context.delegate = null;
368
- return ContinueSentinel;
369
- }
370
-
371
- var info = record.arg;
372
-
373
- if (! info) {
374
- context.method = "throw";
375
- context.arg = new TypeError("iterator result is not an object");
376
- context.delegate = null;
377
- return ContinueSentinel;
378
- }
379
-
380
- if (info.done) {
381
- // Assign the result of the finished delegate to the temporary
382
- // variable specified by delegate.resultName (see delegateYield).
383
- context[delegate.resultName] = info.value;
384
-
385
- // Resume execution at the desired location (see delegateYield).
386
- context.next = delegate.nextLoc;
387
-
388
- // If context.method was "throw" but the delegate handled the
389
- // exception, let the outer generator proceed normally. If
390
- // context.method was "next", forget context.arg since it has been
391
- // "consumed" by the delegate iterator. If context.method was
392
- // "return", allow the original .return call to continue in the
393
- // outer generator.
394
- if (context.method !== "return") {
395
- context.method = "next";
396
- context.arg = undefined$1;
397
- }
398
-
399
- } else {
400
- // Re-yield the result returned by the delegate method.
401
- return info;
402
- }
403
-
404
- // The delegate iterator is finished, so forget it and continue with
405
- // the outer generator.
406
- context.delegate = null;
407
- return ContinueSentinel;
408
- }
409
-
410
- // Define Generator.prototype.{next,throw,return} in terms of the
411
- // unified ._invoke helper method.
412
- defineIteratorMethods(Gp);
413
-
414
- Gp[toStringTagSymbol] = "Generator";
415
-
416
- // A Generator should always return itself as the iterator object when the
417
- // @@iterator function is called on it. Some browsers' implementations of the
418
- // iterator prototype chain incorrectly implement this, causing the Generator
419
- // object to not be returned from this call. This ensures that doesn't happen.
420
- // See https://github.com/facebook/regenerator/issues/274 for more details.
421
- Gp[iteratorSymbol] = function() {
422
- return this;
423
- };
424
-
425
- Gp.toString = function() {
426
- return "[object Generator]";
427
- };
428
-
429
- function pushTryEntry(locs) {
430
- var entry = { tryLoc: locs[0] };
431
-
432
- if (1 in locs) {
433
- entry.catchLoc = locs[1];
434
- }
435
-
436
- if (2 in locs) {
437
- entry.finallyLoc = locs[2];
438
- entry.afterLoc = locs[3];
439
- }
440
-
441
- this.tryEntries.push(entry);
442
- }
443
-
444
- function resetTryEntry(entry) {
445
- var record = entry.completion || {};
446
- record.type = "normal";
447
- delete record.arg;
448
- entry.completion = record;
449
- }
450
-
451
- function Context(tryLocsList) {
452
- // The root entry object (effectively a try statement without a catch
453
- // or a finally block) gives us a place to store values thrown from
454
- // locations where there is no enclosing try statement.
455
- this.tryEntries = [{ tryLoc: "root" }];
456
- tryLocsList.forEach(pushTryEntry, this);
457
- this.reset(true);
458
- }
459
-
460
- runtime.keys = function(object) {
461
- var keys = [];
462
- for (var key in object) {
463
- keys.push(key);
464
- }
465
- keys.reverse();
466
-
467
- // Rather than returning an object with a next method, we keep
468
- // things simple and return the next function itself.
469
- return function next() {
470
- while (keys.length) {
471
- var key = keys.pop();
472
- if (key in object) {
473
- next.value = key;
474
- next.done = false;
475
- return next;
476
- }
477
- }
478
-
479
- // To avoid creating an additional object, we just hang the .value
480
- // and .done properties off the next function object itself. This
481
- // also ensures that the minifier will not anonymize the function.
482
- next.done = true;
483
- return next;
484
- };
485
- };
486
-
487
- function values(iterable) {
488
- if (iterable) {
489
- var iteratorMethod = iterable[iteratorSymbol];
490
- if (iteratorMethod) {
491
- return iteratorMethod.call(iterable);
492
- }
493
-
494
- if (typeof iterable.next === "function") {
495
- return iterable;
496
- }
497
-
498
- if (!isNaN(iterable.length)) {
499
- var i = -1, next = function next() {
500
- while (++i < iterable.length) {
501
- if (hasOwn.call(iterable, i)) {
502
- next.value = iterable[i];
503
- next.done = false;
504
- return next;
505
- }
506
- }
507
-
508
- next.value = undefined$1;
509
- next.done = true;
510
-
511
- return next;
512
- };
513
-
514
- return next.next = next;
515
- }
516
- }
517
-
518
- // Return an iterator with no values.
519
- return { next: doneResult };
520
- }
521
- runtime.values = values;
522
-
523
- function doneResult() {
524
- return { value: undefined$1, done: true };
525
- }
526
-
527
- Context.prototype = {
528
- constructor: Context,
529
-
530
- reset: function(skipTempReset) {
531
- this.prev = 0;
532
- this.next = 0;
533
- // Resetting context._sent for legacy support of Babel's
534
- // function.sent implementation.
535
- this.sent = this._sent = undefined$1;
536
- this.done = false;
537
- this.delegate = null;
538
-
539
- this.method = "next";
540
- this.arg = undefined$1;
541
-
542
- this.tryEntries.forEach(resetTryEntry);
543
-
544
- if (!skipTempReset) {
545
- for (var name in this) {
546
- // Not sure about the optimal order of these conditions:
547
- if (name.charAt(0) === "t" &&
548
- hasOwn.call(this, name) &&
549
- !isNaN(+name.slice(1))) {
550
- this[name] = undefined$1;
551
- }
552
- }
553
- }
554
- },
555
-
556
- stop: function() {
557
- this.done = true;
558
-
559
- var rootEntry = this.tryEntries[0];
560
- var rootRecord = rootEntry.completion;
561
- if (rootRecord.type === "throw") {
562
- throw rootRecord.arg;
563
- }
564
-
565
- return this.rval;
566
- },
567
-
568
- dispatchException: function(exception) {
569
- if (this.done) {
570
- throw exception;
571
- }
572
-
573
- var context = this;
574
- function handle(loc, caught) {
575
- record.type = "throw";
576
- record.arg = exception;
577
- context.next = loc;
578
-
579
- if (caught) {
580
- // If the dispatched exception was caught by a catch block,
581
- // then let that catch block handle the exception normally.
582
- context.method = "next";
583
- context.arg = undefined$1;
584
- }
585
-
586
- return !! caught;
587
- }
588
-
589
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
590
- var entry = this.tryEntries[i];
591
- var record = entry.completion;
592
-
593
- if (entry.tryLoc === "root") {
594
- // Exception thrown outside of any try block that could handle
595
- // it, so set the completion value of the entire function to
596
- // throw the exception.
597
- return handle("end");
598
- }
599
-
600
- if (entry.tryLoc <= this.prev) {
601
- var hasCatch = hasOwn.call(entry, "catchLoc");
602
- var hasFinally = hasOwn.call(entry, "finallyLoc");
603
-
604
- if (hasCatch && hasFinally) {
605
- if (this.prev < entry.catchLoc) {
606
- return handle(entry.catchLoc, true);
607
- } else if (this.prev < entry.finallyLoc) {
608
- return handle(entry.finallyLoc);
609
- }
610
-
611
- } else if (hasCatch) {
612
- if (this.prev < entry.catchLoc) {
613
- return handle(entry.catchLoc, true);
614
- }
615
-
616
- } else if (hasFinally) {
617
- if (this.prev < entry.finallyLoc) {
618
- return handle(entry.finallyLoc);
619
- }
620
-
621
- } else {
622
- throw new Error("try statement without catch or finally");
623
- }
624
- }
625
- }
626
- },
627
-
628
- abrupt: function(type, arg) {
629
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
630
- var entry = this.tryEntries[i];
631
- if (entry.tryLoc <= this.prev &&
632
- hasOwn.call(entry, "finallyLoc") &&
633
- this.prev < entry.finallyLoc) {
634
- var finallyEntry = entry;
635
- break;
636
- }
637
- }
638
-
639
- if (finallyEntry &&
640
- (type === "break" ||
641
- type === "continue") &&
642
- finallyEntry.tryLoc <= arg &&
643
- arg <= finallyEntry.finallyLoc) {
644
- // Ignore the finally entry if control is not jumping to a
645
- // location outside the try/catch block.
646
- finallyEntry = null;
647
- }
648
-
649
- var record = finallyEntry ? finallyEntry.completion : {};
650
- record.type = type;
651
- record.arg = arg;
652
-
653
- if (finallyEntry) {
654
- this.method = "next";
655
- this.next = finallyEntry.finallyLoc;
656
- return ContinueSentinel;
657
- }
658
-
659
- return this.complete(record);
660
- },
661
-
662
- complete: function(record, afterLoc) {
663
- if (record.type === "throw") {
664
- throw record.arg;
665
- }
666
-
667
- if (record.type === "break" ||
668
- record.type === "continue") {
669
- this.next = record.arg;
670
- } else if (record.type === "return") {
671
- this.rval = this.arg = record.arg;
672
- this.method = "return";
673
- this.next = "end";
674
- } else if (record.type === "normal" && afterLoc) {
675
- this.next = afterLoc;
676
- }
677
-
678
- return ContinueSentinel;
679
- },
680
-
681
- finish: function(finallyLoc) {
682
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
683
- var entry = this.tryEntries[i];
684
- if (entry.finallyLoc === finallyLoc) {
685
- this.complete(entry.completion, entry.afterLoc);
686
- resetTryEntry(entry);
687
- return ContinueSentinel;
688
- }
689
- }
690
- },
691
-
692
- "catch": function(tryLoc) {
693
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
694
- var entry = this.tryEntries[i];
695
- if (entry.tryLoc === tryLoc) {
696
- var record = entry.completion;
697
- if (record.type === "throw") {
698
- var thrown = record.arg;
699
- resetTryEntry(entry);
700
- }
701
- return thrown;
702
- }
703
- }
704
-
705
- // The context.catch method must only be called with a location
706
- // argument that corresponds to a known catch block.
707
- throw new Error("illegal catch attempt");
708
- },
709
-
710
- delegateYield: function(iterable, resultName, nextLoc) {
711
- this.delegate = {
712
- iterator: values(iterable),
713
- resultName: resultName,
714
- nextLoc: nextLoc
715
- };
716
-
717
- if (this.method === "next") {
718
- // Deliberately forget the last sent value so that we don't
719
- // accidentally pass it on to the delegate.
720
- this.arg = undefined$1;
721
- }
722
-
723
- return ContinueSentinel;
724
- }
725
- };
726
- })(
727
- // In sloppy mode, unbound `this` refers to the global object, fallback to
728
- // Function constructor if we're in global strict mode. That is sadly a form
729
- // of indirect eval which violates Content Security Policy.
730
- (function() { return this })() || Function("return this")()
731
- );
732
- });
733
-
734
- /**
735
- * Copyright (c) 2014-present, Facebook, Inc.
736
- *
737
- * This source code is licensed under the MIT license found in the
738
- * LICENSE file in the root directory of this source tree.
739
- */
740
-
741
- // This method of obtaining a reference to the global object needs to be
742
- // kept identical to the way it is obtained in runtime.js
743
- var g = (function() { return this })() || Function("return this")();
744
-
745
- // Use `getOwnPropertyNames` because not all browsers support calling
746
- // `hasOwnProperty` on the global `self` object in a worker. See #183.
747
- var hadRuntime = g.regeneratorRuntime &&
748
- Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
749
-
750
- // Save the old regeneratorRuntime in case it needs to be restored later.
751
- var oldRuntime = hadRuntime && g.regeneratorRuntime;
752
-
753
- // Force reevalutation of runtime.js.
754
- g.regeneratorRuntime = undefined;
755
-
756
- var runtimeModule = runtime;
757
-
758
- if (hadRuntime) {
759
- // Restore the original runtime.
760
- g.regeneratorRuntime = oldRuntime;
761
- } else {
762
- // Remove the global property added by runtime.js.
763
- try {
764
- delete g.regeneratorRuntime;
765
- } catch(e) {
766
- g.regeneratorRuntime = undefined;
767
- }
768
- }
769
-
770
- var regenerator = runtimeModule;
771
-
772
- var _anInstance = function (it, Constructor, name, forbiddenField) {
773
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
774
- throw TypeError(name + ': incorrect invocation!');
775
- } return it;
776
- };
777
-
778
- var _forOf = createCommonjsModule(function (module) {
779
- var BREAK = {};
780
- var RETURN = {};
781
- var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
782
- var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
783
- var f = _ctx(fn, that, entries ? 2 : 1);
784
- var index = 0;
785
- var length, step, iterator, result;
786
- if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
787
- // fast case for arrays with default iterator
788
- if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
789
- result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
790
- if (result === BREAK || result === RETURN) return result;
791
- } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
792
- result = _iterCall(iterator, f, step.value, entries);
793
- if (result === BREAK || result === RETURN) return result;
794
- }
795
- };
796
- exports.BREAK = BREAK;
797
- exports.RETURN = RETURN;
798
- });
799
-
800
- // 7.3.20 SpeciesConstructor(O, defaultConstructor)
801
-
802
-
803
- var SPECIES = _wks('species');
804
- var _speciesConstructor = function (O, D) {
805
- var C = _anObject(O).constructor;
806
- var S;
807
- return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
808
- };
809
-
810
- // fast apply, http://jsperf.lnkit.com/fast-apply/5
811
- var _invoke = function (fn, args, that) {
812
- var un = that === undefined;
813
- switch (args.length) {
814
- case 0: return un ? fn()
815
- : fn.call(that);
816
- case 1: return un ? fn(args[0])
817
- : fn.call(that, args[0]);
818
- case 2: return un ? fn(args[0], args[1])
819
- : fn.call(that, args[0], args[1]);
820
- case 3: return un ? fn(args[0], args[1], args[2])
821
- : fn.call(that, args[0], args[1], args[2]);
822
- case 4: return un ? fn(args[0], args[1], args[2], args[3])
823
- : fn.call(that, args[0], args[1], args[2], args[3]);
824
- } return fn.apply(that, args);
825
- };
826
-
827
- var process = _global.process;
828
- var setTask = _global.setImmediate;
829
- var clearTask = _global.clearImmediate;
830
- var MessageChannel = _global.MessageChannel;
831
- var Dispatch = _global.Dispatch;
832
- var counter = 0;
833
- var queue = {};
834
- var ONREADYSTATECHANGE = 'onreadystatechange';
835
- var defer, channel, port;
836
- var run = function () {
837
- var id = +this;
838
- // eslint-disable-next-line no-prototype-builtins
839
- if (queue.hasOwnProperty(id)) {
840
- var fn = queue[id];
841
- delete queue[id];
842
- fn();
843
- }
844
- };
845
- var listener = function (event) {
846
- run.call(event.data);
847
- };
848
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
849
- if (!setTask || !clearTask) {
850
- setTask = function setImmediate(fn) {
851
- var args = [];
852
- var i = 1;
853
- while (arguments.length > i) args.push(arguments[i++]);
854
- queue[++counter] = function () {
855
- // eslint-disable-next-line no-new-func
856
- _invoke(typeof fn == 'function' ? fn : Function(fn), args);
857
- };
858
- defer(counter);
859
- return counter;
860
- };
861
- clearTask = function clearImmediate(id) {
862
- delete queue[id];
863
- };
864
- // Node.js 0.8-
865
- if (_cof(process) == 'process') {
866
- defer = function (id) {
867
- process.nextTick(_ctx(run, id, 1));
868
- };
869
- // Sphere (JS game engine) Dispatch API
870
- } else if (Dispatch && Dispatch.now) {
871
- defer = function (id) {
872
- Dispatch.now(_ctx(run, id, 1));
873
- };
874
- // Browsers with MessageChannel, includes WebWorkers
875
- } else if (MessageChannel) {
876
- channel = new MessageChannel();
877
- port = channel.port2;
878
- channel.port1.onmessage = listener;
879
- defer = _ctx(port.postMessage, port, 1);
880
- // Browsers with postMessage, skip WebWorkers
881
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
882
- } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) {
883
- defer = function (id) {
884
- _global.postMessage(id + '', '*');
885
- };
886
- _global.addEventListener('message', listener, false);
887
- // IE8-
888
- } else if (ONREADYSTATECHANGE in _domCreate('script')) {
889
- defer = function (id) {
890
- _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () {
891
- _html.removeChild(this);
892
- run.call(id);
893
- };
894
- };
895
- // Rest old browsers
896
- } else {
897
- defer = function (id) {
898
- setTimeout(_ctx(run, id, 1), 0);
899
- };
900
- }
901
- }
902
- var _task = {
903
- set: setTask,
904
- clear: clearTask
905
- };
906
-
907
- var macrotask = _task.set;
908
- var Observer = _global.MutationObserver || _global.WebKitMutationObserver;
909
- var process$1 = _global.process;
910
- var Promise$1 = _global.Promise;
911
- var isNode = _cof(process$1) == 'process';
912
-
913
- var _microtask = function () {
914
- var head, last, notify;
915
-
916
- var flush = function () {
917
- var parent, fn;
918
- if (isNode && (parent = process$1.domain)) parent.exit();
919
- while (head) {
920
- fn = head.fn;
921
- head = head.next;
922
- try {
923
- fn();
924
- } catch (e) {
925
- if (head) notify();
926
- else last = undefined;
927
- throw e;
928
- }
929
- } last = undefined;
930
- if (parent) parent.enter();
931
- };
932
-
933
- // Node.js
934
- if (isNode) {
935
- notify = function () {
936
- process$1.nextTick(flush);
937
- };
938
- // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
939
- } else if (Observer && !(_global.navigator && _global.navigator.standalone)) {
940
- var toggle = true;
941
- var node = document.createTextNode('');
942
- new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
943
- notify = function () {
944
- node.data = toggle = !toggle;
945
- };
946
- // environments with maybe non-completely correct, but existent Promise
947
- } else if (Promise$1 && Promise$1.resolve) {
948
- // Promise.resolve without an argument throws an error in LG WebOS 2
949
- var promise = Promise$1.resolve(undefined);
950
- notify = function () {
951
- promise.then(flush);
952
- };
953
- // for other environments - macrotask based on:
954
- // - setImmediate
955
- // - MessageChannel
956
- // - window.postMessag
957
- // - onreadystatechange
958
- // - setTimeout
959
- } else {
960
- notify = function () {
961
- // strange IE + webpack dev server bug - use .call(global)
962
- macrotask.call(_global, flush);
963
- };
964
- }
965
-
966
- return function (fn) {
967
- var task = { fn: fn, next: undefined };
968
- if (last) last.next = task;
969
- if (!head) {
970
- head = task;
971
- notify();
972
- } last = task;
973
- };
974
- };
975
-
976
- // 25.4.1.5 NewPromiseCapability(C)
977
-
978
-
979
- function PromiseCapability(C) {
980
- var resolve, reject;
981
- this.promise = new C(function ($$resolve, $$reject) {
982
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
983
- resolve = $$resolve;
984
- reject = $$reject;
985
- });
986
- this.resolve = _aFunction(resolve);
987
- this.reject = _aFunction(reject);
988
- }
989
-
990
- var f = function (C) {
991
- return new PromiseCapability(C);
992
- };
993
-
994
- var _newPromiseCapability = {
995
- f: f
996
- };
997
-
998
- var _perform = function (exec) {
999
- try {
1000
- return { e: false, v: exec() };
1001
- } catch (e) {
1002
- return { e: true, v: e };
1003
- }
1004
- };
1005
-
1006
- var navigator = _global.navigator;
1007
-
1008
- var _userAgent = navigator && navigator.userAgent || '';
1009
-
1010
- var _promiseResolve = function (C, x) {
1011
- _anObject(C);
1012
- if (_isObject(x) && x.constructor === C) return x;
1013
- var promiseCapability = _newPromiseCapability.f(C);
1014
- var resolve = promiseCapability.resolve;
1015
- resolve(x);
1016
- return promiseCapability.promise;
1017
- };
1018
-
1019
- var _redefineAll = function (target, src, safe) {
1020
- for (var key in src) {
1021
- if (safe && target[key]) target[key] = src[key];
1022
- else _hide(target, key, src[key]);
1023
- } return target;
1024
- };
1025
-
1026
- var SPECIES$1 = _wks('species');
1027
-
1028
- var _setSpecies = function (KEY) {
1029
- var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
1030
- if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, {
1031
- configurable: true,
1032
- get: function () { return this; }
1033
- });
1034
- };
1035
-
1036
- var task = _task.set;
1037
- var microtask = _microtask();
1038
-
1039
-
1040
-
1041
-
1042
- var PROMISE = 'Promise';
1043
- var TypeError$1 = _global.TypeError;
1044
- var process$2 = _global.process;
1045
- var versions = process$2 && process$2.versions;
1046
- var v8 = versions && versions.v8 || '';
1047
- var $Promise = _global[PROMISE];
1048
- var isNode$1 = _classof(process$2) == 'process';
1049
- var empty = function () { /* empty */ };
1050
- var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
1051
- var newPromiseCapability = newGenericPromiseCapability = _newPromiseCapability.f;
1052
-
1053
- var USE_NATIVE = !!function () {
1054
- try {
1055
- // correct subclassing with @@species support
1056
- var promise = $Promise.resolve(1);
1057
- var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) {
1058
- exec(empty, empty);
1059
- };
1060
- // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1061
- return (isNode$1 || typeof PromiseRejectionEvent == 'function')
1062
- && promise.then(empty) instanceof FakePromise
1063
- // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1064
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1065
- // we can't detect it synchronously, so just check versions
1066
- && v8.indexOf('6.6') !== 0
1067
- && _userAgent.indexOf('Chrome/66') === -1;
1068
- } catch (e) { /* empty */ }
1069
- }();
1070
-
1071
- // helpers
1072
- var isThenable = function (it) {
1073
- var then;
1074
- return _isObject(it) && typeof (then = it.then) == 'function' ? then : false;
1075
- };
1076
- var notify = function (promise, isReject) {
1077
- if (promise._n) return;
1078
- promise._n = true;
1079
- var chain = promise._c;
1080
- microtask(function () {
1081
- var value = promise._v;
1082
- var ok = promise._s == 1;
1083
- var i = 0;
1084
- var run = function (reaction) {
1085
- var handler = ok ? reaction.ok : reaction.fail;
1086
- var resolve = reaction.resolve;
1087
- var reject = reaction.reject;
1088
- var domain = reaction.domain;
1089
- var result, then, exited;
1090
- try {
1091
- if (handler) {
1092
- if (!ok) {
1093
- if (promise._h == 2) onHandleUnhandled(promise);
1094
- promise._h = 1;
1095
- }
1096
- if (handler === true) result = value;
1097
- else {
1098
- if (domain) domain.enter();
1099
- result = handler(value); // may throw
1100
- if (domain) {
1101
- domain.exit();
1102
- exited = true;
1103
- }
1104
- }
1105
- if (result === reaction.promise) {
1106
- reject(TypeError$1('Promise-chain cycle'));
1107
- } else if (then = isThenable(result)) {
1108
- then.call(result, resolve, reject);
1109
- } else resolve(result);
1110
- } else reject(value);
1111
- } catch (e) {
1112
- if (domain && !exited) domain.exit();
1113
- reject(e);
1114
- }
1115
- };
1116
- while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
1117
- promise._c = [];
1118
- promise._n = false;
1119
- if (isReject && !promise._h) onUnhandled(promise);
1120
- });
1121
- };
1122
- var onUnhandled = function (promise) {
1123
- task.call(_global, function () {
1124
- var value = promise._v;
1125
- var unhandled = isUnhandled(promise);
1126
- var result, handler, console;
1127
- if (unhandled) {
1128
- result = _perform(function () {
1129
- if (isNode$1) {
1130
- process$2.emit('unhandledRejection', value, promise);
1131
- } else if (handler = _global.onunhandledrejection) {
1132
- handler({ promise: promise, reason: value });
1133
- } else if ((console = _global.console) && console.error) {
1134
- console.error('Unhandled promise rejection', value);
1135
- }
1136
- });
1137
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1138
- promise._h = isNode$1 || isUnhandled(promise) ? 2 : 1;
1139
- } promise._a = undefined;
1140
- if (unhandled && result.e) throw result.v;
1141
- });
1142
- };
1143
- var isUnhandled = function (promise) {
1144
- return promise._h !== 1 && (promise._a || promise._c).length === 0;
1145
- };
1146
- var onHandleUnhandled = function (promise) {
1147
- task.call(_global, function () {
1148
- var handler;
1149
- if (isNode$1) {
1150
- process$2.emit('rejectionHandled', promise);
1151
- } else if (handler = _global.onrejectionhandled) {
1152
- handler({ promise: promise, reason: promise._v });
1153
- }
1154
- });
1155
- };
1156
- var $reject = function (value) {
1157
- var promise = this;
1158
- if (promise._d) return;
1159
- promise._d = true;
1160
- promise = promise._w || promise; // unwrap
1161
- promise._v = value;
1162
- promise._s = 2;
1163
- if (!promise._a) promise._a = promise._c.slice();
1164
- notify(promise, true);
1165
- };
1166
- var $resolve = function (value) {
1167
- var promise = this;
1168
- var then;
1169
- if (promise._d) return;
1170
- promise._d = true;
1171
- promise = promise._w || promise; // unwrap
1172
- try {
1173
- if (promise === value) throw TypeError$1("Promise can't be resolved itself");
1174
- if (then = isThenable(value)) {
1175
- microtask(function () {
1176
- var wrapper = { _w: promise, _d: false }; // wrap
1177
- try {
1178
- then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1));
1179
- } catch (e) {
1180
- $reject.call(wrapper, e);
1181
- }
1182
- });
1183
- } else {
1184
- promise._v = value;
1185
- promise._s = 1;
1186
- notify(promise, false);
1187
- }
1188
- } catch (e) {
1189
- $reject.call({ _w: promise, _d: false }, e); // wrap
1190
- }
1191
- };
1192
-
1193
- // constructor polyfill
1194
- if (!USE_NATIVE) {
1195
- // 25.4.3.1 Promise(executor)
1196
- $Promise = function Promise(executor) {
1197
- _anInstance(this, $Promise, PROMISE, '_h');
1198
- _aFunction(executor);
1199
- Internal.call(this);
1200
- try {
1201
- executor(_ctx($resolve, this, 1), _ctx($reject, this, 1));
1202
- } catch (err) {
1203
- $reject.call(this, err);
1204
- }
1205
- };
1206
- // eslint-disable-next-line no-unused-vars
1207
- Internal = function Promise(executor) {
1208
- this._c = []; // <- awaiting reactions
1209
- this._a = undefined; // <- checked in isUnhandled reactions
1210
- this._s = 0; // <- state
1211
- this._d = false; // <- done
1212
- this._v = undefined; // <- value
1213
- this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
1214
- this._n = false; // <- notify
1215
- };
1216
- Internal.prototype = _redefineAll($Promise.prototype, {
1217
- // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
1218
- then: function then(onFulfilled, onRejected) {
1219
- var reaction = newPromiseCapability(_speciesConstructor(this, $Promise));
1220
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
1221
- reaction.fail = typeof onRejected == 'function' && onRejected;
1222
- reaction.domain = isNode$1 ? process$2.domain : undefined;
1223
- this._c.push(reaction);
1224
- if (this._a) this._a.push(reaction);
1225
- if (this._s) notify(this, false);
1226
- return reaction.promise;
1227
- },
1228
- // 25.4.5.1 Promise.prototype.catch(onRejected)
1229
- 'catch': function (onRejected) {
1230
- return this.then(undefined, onRejected);
1231
- }
1232
- });
1233
- OwnPromiseCapability = function () {
1234
- var promise = new Internal();
1235
- this.promise = promise;
1236
- this.resolve = _ctx($resolve, promise, 1);
1237
- this.reject = _ctx($reject, promise, 1);
1238
- };
1239
- _newPromiseCapability.f = newPromiseCapability = function (C) {
1240
- return C === $Promise || C === Wrapper
1241
- ? new OwnPromiseCapability(C)
1242
- : newGenericPromiseCapability(C);
1243
- };
1244
- }
1245
-
1246
- _export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise });
1247
- _setToStringTag($Promise, PROMISE);
1248
- _setSpecies(PROMISE);
1249
- Wrapper = _core[PROMISE];
1250
-
1251
- // statics
1252
- _export(_export.S + _export.F * !USE_NATIVE, PROMISE, {
1253
- // 25.4.4.5 Promise.reject(r)
1254
- reject: function reject(r) {
1255
- var capability = newPromiseCapability(this);
1256
- var $$reject = capability.reject;
1257
- $$reject(r);
1258
- return capability.promise;
1259
- }
1260
- });
1261
- _export(_export.S + _export.F * (_library ), PROMISE, {
1262
- // 25.4.4.6 Promise.resolve(x)
1263
- resolve: function resolve(x) {
1264
- return _promiseResolve( this === Wrapper ? $Promise : this, x);
1265
- }
1266
- });
1267
- _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) {
1268
- $Promise.all(iter)['catch'](empty);
1269
- })), PROMISE, {
1270
- // 25.4.4.1 Promise.all(iterable)
1271
- all: function all(iterable) {
1272
- var C = this;
1273
- var capability = newPromiseCapability(C);
1274
- var resolve = capability.resolve;
1275
- var reject = capability.reject;
1276
- var result = _perform(function () {
1277
- var values = [];
1278
- var index = 0;
1279
- var remaining = 1;
1280
- _forOf(iterable, false, function (promise) {
1281
- var $index = index++;
1282
- var alreadyCalled = false;
1283
- values.push(undefined);
1284
- remaining++;
1285
- C.resolve(promise).then(function (value) {
1286
- if (alreadyCalled) return;
1287
- alreadyCalled = true;
1288
- values[$index] = value;
1289
- --remaining || resolve(values);
1290
- }, reject);
1291
- });
1292
- --remaining || resolve(values);
1293
- });
1294
- if (result.e) reject(result.v);
1295
- return capability.promise;
1296
- },
1297
- // 25.4.4.4 Promise.race(iterable)
1298
- race: function race(iterable) {
1299
- var C = this;
1300
- var capability = newPromiseCapability(C);
1301
- var reject = capability.reject;
1302
- var result = _perform(function () {
1303
- _forOf(iterable, false, function (promise) {
1304
- C.resolve(promise).then(capability.resolve, reject);
1305
- });
1306
- });
1307
- if (result.e) reject(result.v);
1308
- return capability.promise;
1309
- }
1310
- });
1311
-
1312
- _export(_export.P + _export.R, 'Promise', { 'finally': function (onFinally) {
1313
- var C = _speciesConstructor(this, _core.Promise || _global.Promise);
1314
- var isFunction = typeof onFinally == 'function';
1315
- return this.then(
1316
- isFunction ? function (x) {
1317
- return _promiseResolve(C, onFinally()).then(function () { return x; });
1318
- } : onFinally,
1319
- isFunction ? function (e) {
1320
- return _promiseResolve(C, onFinally()).then(function () { throw e; });
1321
- } : onFinally
1322
- );
1323
- } });
1324
-
1325
- // https://github.com/tc39/proposal-promise-try
1326
-
1327
-
1328
-
1329
-
1330
- _export(_export.S, 'Promise', { 'try': function (callbackfn) {
1331
- var promiseCapability = _newPromiseCapability.f(this);
1332
- var result = _perform(callbackfn);
1333
- (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
1334
- return promiseCapability.promise;
1335
- } });
1336
-
1337
- var promise = _core.Promise;
1338
-
1339
- var promise$1 = createCommonjsModule(function (module) {
1340
- module.exports = { "default": promise, __esModule: true };
1341
- });
1342
-
1343
- var _Promise = unwrapExports(promise$1);
1344
-
1345
- var asyncToGenerator = createCommonjsModule(function (module, exports) {
1346
-
1347
- exports.__esModule = true;
1348
-
1349
-
1350
-
1351
- var _promise2 = _interopRequireDefault(promise$1);
1352
-
1353
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1354
-
1355
- exports.default = function (fn) {
1356
- return function () {
1357
- var gen = fn.apply(this, arguments);
1358
- return new _promise2.default(function (resolve, reject) {
1359
- function step(key, arg) {
1360
- try {
1361
- var info = gen[key](arg);
1362
- var value = info.value;
1363
- } catch (error) {
1364
- reject(error);
1365
- return;
1366
- }
1367
-
1368
- if (info.done) {
1369
- resolve(value);
1370
- } else {
1371
- return _promise2.default.resolve(value).then(function (value) {
1372
- step("next", value);
1373
- }, function (err) {
1374
- step("throw", err);
1375
- });
1376
- }
1377
- }
1378
-
1379
- return step("next");
1380
- });
1381
- };
1382
- };
1383
- });
1384
-
1385
- var _asyncToGenerator = unwrapExports(asyncToGenerator);
1386
-
1387
- export { _asyncToGenerator as _, _Promise as a, _anInstance as b, _forOf as c, _redefineAll as d, _setSpecies as e, regenerator as r };