@mjhls/mjh-framework 1.0.843 → 1.0.844-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +13 -13
  4. package/dist/cjs/AD300x250x600.js +13 -13
  5. package/dist/cjs/AD728x90.js +14 -14
  6. package/dist/cjs/ADFloatingFooter.js +12 -12
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +12 -12
  9. package/dist/cjs/{ADInfeed-6810812f.js → ADInfeed-9b50464b.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +12 -12
  11. package/dist/cjs/ADSponsoredResources.js +12 -12
  12. package/dist/cjs/ADWebcast.js +12 -12
  13. package/dist/cjs/ADWelcome.js +12 -12
  14. package/dist/cjs/{ADlgInfeed-12b1f200.js → ADlgInfeed-65e48ce7.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +6 -6
  16. package/dist/cjs/AdSlot.js +14 -14
  17. package/dist/cjs/AdSlotsProvider.js +10 -10
  18. package/dist/cjs/AlgoliaSearch.js +48 -76
  19. package/dist/cjs/AlphabeticList.js +8 -8
  20. package/dist/cjs/ArticleCarousel.js +10 -10
  21. package/dist/cjs/ArticleProgramLandingPage.js +27 -28
  22. package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
  23. package/dist/cjs/ArticleSeriesListing.js +18 -18
  24. package/dist/cjs/AuthWrapper.js +242 -283
  25. package/dist/cjs/{AuthorComponent-0c464248.js → AuthorComponent-bb831b74.js} +1 -1
  26. package/dist/cjs/Beam.js +7 -7
  27. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  28. package/dist/cjs/Breadcrumbs.js +5 -5
  29. package/dist/cjs/CMEDeck.js +14 -14
  30. package/dist/cjs/Column2.js +8 -8
  31. package/dist/cjs/Column3.js +16 -16
  32. package/dist/cjs/ConferenceArticleCard.js +17 -17
  33. package/dist/cjs/DeckContent.js +31 -31
  34. package/dist/cjs/DeckQueue.js +19 -19
  35. package/dist/cjs/{Dfp-ac0c1cc6.js → Dfp-26baccf1.js} +7 -7
  36. package/dist/cjs/EventsDeck.js +33 -33
  37. package/dist/cjs/ExternalResources.js +26 -27
  38. package/dist/cjs/Feature.js +3 -3
  39. package/dist/cjs/ForbesHero.js +8 -8
  40. package/dist/cjs/GridContent.js +28 -28
  41. package/dist/cjs/GridHero.js +8 -8
  42. package/dist/cjs/GroupDeck.js +8 -8
  43. package/dist/cjs/HamMagazine.js +25 -25
  44. package/dist/cjs/Hero.js +1 -1
  45. package/dist/cjs/HighlightenVideo.js +1 -1
  46. package/dist/cjs/HorizontalArticleListing.js +25 -26
  47. package/dist/cjs/HorizontalHero.js +3 -3
  48. package/dist/cjs/IssueContentDeck.js +8 -8
  49. package/dist/cjs/IssueDeck.js +10 -10
  50. package/dist/cjs/IssueLanding.js +59 -60
  51. package/dist/cjs/KMTracker.js +15 -15
  52. package/dist/cjs/LeftNav.js +12 -12
  53. package/dist/cjs/MasterDeck.js +32 -32
  54. package/dist/cjs/MediaSeriesLanding.js +209 -209
  55. package/dist/cjs/NavDvm.js +7 -7
  56. package/dist/cjs/NavMagazine.js +24 -24
  57. package/dist/cjs/NavNative.js +21 -21
  58. package/dist/cjs/OncliveHero.js +3 -2
  59. package/dist/cjs/OncliveLargeHero.js +8 -8
  60. package/dist/cjs/PageFilter.js +5 -5
  61. package/dist/cjs/PartnerDetailListing.js +31 -32
  62. package/dist/cjs/PdfDownload.js +1 -1
  63. package/dist/cjs/PopUpModal.js +5 -5
  64. package/dist/cjs/PubSection.js +20 -20
  65. package/dist/cjs/PubToc.js +7 -7
  66. package/dist/cjs/PublicationDeck.js +2 -2
  67. package/dist/cjs/PublicationLanding.js +36 -36
  68. package/dist/cjs/QueueDeckExpanded.js +22 -22
  69. package/dist/cjs/RecentNews.js +1 -1
  70. package/dist/cjs/RelatedContent.js +30 -30
  71. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  72. package/dist/cjs/Search.js +5 -5
  73. package/dist/cjs/Segment.js +6 -6
  74. package/dist/cjs/SeriesListingDeck.js +15 -15
  75. package/dist/cjs/{SeriesSlider-dad08884.js → SeriesSlider-8bbc989f.js} +11 -11
  76. package/dist/cjs/SideFooter.js +10 -10
  77. package/dist/cjs/{SocialSearchComponent-ad15dd61.js → SocialSearchComponent-cea213aa.js} +7 -7
  78. package/dist/cjs/TaxonomyCard.js +4 -4
  79. package/dist/cjs/TaxonomyDescription.js +25 -26
  80. package/dist/cjs/TemplateNormal.js +18 -18
  81. package/dist/cjs/ThumbnailCard.js +1 -1
  82. package/dist/cjs/Ustream.js +12 -12
  83. package/dist/cjs/VerticalHero.js +2 -2
  84. package/dist/cjs/VideoProgramLandingPage.js +27 -28
  85. package/dist/cjs/VideoSeriesCard.js +9 -9
  86. package/dist/cjs/VideoSeriesFilter.js +7 -7
  87. package/dist/cjs/VideoSeriesLandingPage.js +25 -25
  88. package/dist/cjs/VideoSeriesListing.js +18 -18
  89. package/dist/cjs/View.js +62 -64
  90. package/dist/cjs/YahooHero.js +8 -8
  91. package/dist/cjs/YoutubeGroup.js +18 -18
  92. package/dist/cjs/{_is-array-39ff55dd.js → _is-array-754e012d.js} +1 -1
  93. package/dist/cjs/{_iter-detect-ef35661e.js → _iter-detect-60b2f026.js} +2 -2
  94. package/dist/cjs/{_object-sap-b231f928.js → _object-sap-5e74ba08.js} +1 -1
  95. package/dist/cjs/{_object-to-array-c3aeb51d.js → _object-to-array-5762f850.js} +1 -1
  96. package/dist/cjs/{_to-object-7a3ce269.js → _to-object-329a650b.js} +2 -2
  97. package/dist/cjs/{asyncToGenerator-8ae2191c.js → asyncToGenerator-140e5f89.js} +5 -5
  98. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  99. package/dist/cjs/{core.get-iterator-method-6cd7682d.js → core.get-iterator-method-f62321d4.js} +2 -2
  100. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  101. package/dist/cjs/{define-property-fc002cec.js → define-property-f4d12f4e.js} +1 -1
  102. package/dist/cjs/{defineProperty-03c4c82e.js → defineProperty-55548b25.js} +1 -1
  103. package/dist/cjs/{es6.string.iterator-ab94a594.js → es6.string.iterator-cc0bbaa4.js} +1 -1
  104. package/dist/cjs/{extends-acc1318d.js → extends-0a918631.js} +1 -1
  105. package/dist/cjs/faundadb.js +327 -10
  106. package/dist/cjs/getQuery.js +2 -2
  107. package/dist/cjs/getRelatedArticle.js +27 -444
  108. package/dist/cjs/getRootDocGroup.js +6 -6
  109. package/dist/cjs/getSerializers.js +25 -26
  110. package/dist/cjs/{getTargeting-98ab97f7.js → getTargeting-021d644c.js} +12 -12
  111. package/dist/cjs/getTargeting.js +7 -7
  112. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  113. package/dist/cjs/{index-52c2d039.js → index-a8b50ae3.js} +1141 -544
  114. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  115. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  116. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  117. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  118. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  119. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  120. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  121. package/dist/cjs/index.js +42 -50
  122. package/dist/cjs/{inherits-bfdb22af.js → inherits-9953db94.js} +8 -8
  123. package/dist/cjs/{keys-62e097ca.js → keys-a586b7a0.js} +2 -2
  124. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  125. package/dist/cjs/main-02daeefe.js +862 -0
  126. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  127. package/dist/cjs/{slicedToArray-41819145.js → slicedToArray-8f385299.js} +4 -4
  128. package/dist/cjs/{stringify-7ccc8524.js → stringify-7c5aff47.js} +1 -1
  129. package/dist/cjs/timeDifferenceCalc.js +1 -1
  130. package/dist/cjs/{toConsumableArray-4fdb72e2.js → toConsumableArray-9a3476fe.js} +4 -4
  131. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  132. package/dist/cjs/{typeof-e83d4a26.js → typeof-725500bc.js} +4 -4
  133. package/dist/cjs/urlFor.js +1 -1
  134. package/dist/cjs/{ustream-api-c30d203c.js → ustream-api-d092dc31.js} +4 -4
  135. package/dist/cjs/{web.dom.iterable-68e3aaf2.js → web.dom.iterable-a0e279c1.js} +2 -2
  136. package/dist/esm/AD.js +1 -1
  137. package/dist/esm/AD300x250.js +13 -13
  138. package/dist/esm/AD300x250x600.js +13 -13
  139. package/dist/esm/AD728x90.js +14 -14
  140. package/dist/esm/ADFloatingFooter.js +12 -12
  141. package/dist/esm/ADFooter.js +5 -5
  142. package/dist/esm/ADGutter.js +12 -12
  143. package/dist/esm/{ADInfeed-9e41b90e.js → ADInfeed-99535410.js} +1 -1
  144. package/dist/esm/ADSkyscraper.js +12 -12
  145. package/dist/esm/ADSponsoredResources.js +12 -12
  146. package/dist/esm/ADWebcast.js +12 -12
  147. package/dist/esm/ADWelcome.js +12 -12
  148. package/dist/esm/{ADlgInfeed-519eade4.js → ADlgInfeed-0d359144.js} +1 -1
  149. package/dist/esm/AccordionPanel.js +6 -6
  150. package/dist/esm/AdSlot.js +14 -14
  151. package/dist/esm/AdSlotsProvider.js +10 -10
  152. package/dist/esm/AlgoliaSearch.js +47 -75
  153. package/dist/esm/AlphabeticList.js +8 -8
  154. package/dist/esm/ArticleCarousel.js +10 -10
  155. package/dist/esm/ArticleProgramLandingPage.js +26 -27
  156. package/dist/esm/ArticleSeriesLandingPage.js +24 -24
  157. package/dist/esm/ArticleSeriesListing.js +18 -18
  158. package/dist/esm/AuthWrapper.js +242 -283
  159. package/dist/esm/{AuthorComponent-5cab1f6b.js → AuthorComponent-34b16174.js} +1 -1
  160. package/dist/esm/Beam.js +7 -7
  161. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  162. package/dist/esm/Breadcrumbs.js +5 -5
  163. package/dist/esm/CMEDeck.js +14 -14
  164. package/dist/esm/Column2.js +8 -8
  165. package/dist/esm/Column3.js +16 -16
  166. package/dist/esm/ConferenceArticleCard.js +17 -17
  167. package/dist/esm/DeckContent.js +31 -31
  168. package/dist/esm/DeckQueue.js +19 -19
  169. package/dist/esm/{Dfp-4b94fbd4.js → Dfp-b7236041.js} +7 -7
  170. package/dist/esm/EventsDeck.js +33 -33
  171. package/dist/esm/ExternalResources.js +26 -27
  172. package/dist/esm/Feature.js +3 -3
  173. package/dist/esm/ForbesHero.js +8 -8
  174. package/dist/esm/GridContent.js +28 -28
  175. package/dist/esm/GridHero.js +8 -8
  176. package/dist/esm/GroupDeck.js +8 -8
  177. package/dist/esm/HamMagazine.js +25 -25
  178. package/dist/esm/Hero.js +1 -1
  179. package/dist/esm/HighlightenVideo.js +1 -1
  180. package/dist/esm/HorizontalArticleListing.js +25 -26
  181. package/dist/esm/HorizontalHero.js +3 -3
  182. package/dist/esm/IssueContentDeck.js +8 -8
  183. package/dist/esm/IssueDeck.js +10 -10
  184. package/dist/esm/IssueLanding.js +59 -60
  185. package/dist/esm/KMTracker.js +15 -15
  186. package/dist/esm/LeftNav.js +12 -12
  187. package/dist/esm/MasterDeck.js +32 -32
  188. package/dist/esm/MediaSeriesLanding.js +365 -365
  189. package/dist/esm/NavDvm.js +7 -7
  190. package/dist/esm/NavMagazine.js +24 -24
  191. package/dist/esm/NavNative.js +21 -21
  192. package/dist/esm/OncliveHero.js +3 -2
  193. package/dist/esm/OncliveLargeHero.js +8 -8
  194. package/dist/esm/PageFilter.js +5 -5
  195. package/dist/esm/PartnerDetailListing.js +30 -31
  196. package/dist/esm/PdfDownload.js +1 -1
  197. package/dist/esm/PopUpModal.js +5 -5
  198. package/dist/esm/PubSection.js +20 -20
  199. package/dist/esm/PubToc.js +7 -7
  200. package/dist/esm/PublicationDeck.js +2 -2
  201. package/dist/esm/PublicationLanding.js +36 -36
  202. package/dist/esm/QueueDeckExpanded.js +22 -22
  203. package/dist/esm/RecentNews.js +1 -1
  204. package/dist/esm/RelatedContent.js +30 -30
  205. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  206. package/dist/esm/Search.js +5 -5
  207. package/dist/esm/Segment.js +6 -6
  208. package/dist/esm/SeriesListingDeck.js +12 -12
  209. package/dist/esm/{SeriesSlider-5ba2e521.js → SeriesSlider-a866bb21.js} +11 -11
  210. package/dist/esm/SideFooter.js +10 -10
  211. package/dist/esm/{SocialSearchComponent-9cc36413.js → SocialSearchComponent-03c3e869.js} +7 -7
  212. package/dist/esm/TaxonomyCard.js +4 -4
  213. package/dist/esm/TaxonomyDescription.js +25 -26
  214. package/dist/esm/TemplateNormal.js +18 -18
  215. package/dist/esm/ThumbnailCard.js +1 -1
  216. package/dist/esm/Ustream.js +12 -12
  217. package/dist/esm/VerticalHero.js +2 -2
  218. package/dist/esm/VideoProgramLandingPage.js +26 -27
  219. package/dist/esm/VideoSeriesCard.js +8 -8
  220. package/dist/esm/VideoSeriesFilter.js +7 -7
  221. package/dist/esm/VideoSeriesLandingPage.js +24 -24
  222. package/dist/esm/VideoSeriesListing.js +18 -18
  223. package/dist/esm/View.js +38 -40
  224. package/dist/esm/YahooHero.js +8 -8
  225. package/dist/esm/YoutubeGroup.js +18 -18
  226. package/dist/esm/{_is-array-328b85b7.js → _is-array-58e95429.js} +1 -1
  227. package/dist/esm/{_iter-detect-0fa1c752.js → _iter-detect-5d49a330.js} +2 -2
  228. package/dist/esm/{_object-sap-1b84e2bf.js → _object-sap-964b6feb.js} +1 -1
  229. package/dist/esm/{_object-to-array-c8f72bf1.js → _object-to-array-7e804fce.js} +1 -1
  230. package/dist/esm/{_to-object-cedb5b78.js → _to-object-a4107da3.js} +2 -2
  231. package/dist/esm/{asyncToGenerator-e1a2f43a.js → asyncToGenerator-fc1c2e29.js} +5 -5
  232. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  233. package/dist/esm/{core.get-iterator-method-227107e6.js → core.get-iterator-method-e1de7503.js} +2 -2
  234. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  235. package/dist/esm/{define-property-2f35af22.js → define-property-8af5f002.js} +1 -1
  236. package/dist/esm/{defineProperty-eb9699c0.js → defineProperty-94fd8bfc.js} +1 -1
  237. package/dist/esm/{es6.string.iterator-1577cb76.js → es6.string.iterator-c990c18c.js} +1 -1
  238. package/dist/esm/{extends-be71a29a.js → extends-6f2fcc99.js} +1 -1
  239. package/dist/esm/faundadb.js +325 -8
  240. package/dist/esm/getQuery.js +2 -2
  241. package/dist/esm/getRelatedArticle.js +27 -444
  242. package/dist/esm/getRootDocGroup.js +6 -6
  243. package/dist/esm/getSerializers.js +25 -26
  244. package/dist/esm/{getTargeting-93bb872d.js → getTargeting-82e86707.js} +11 -11
  245. package/dist/esm/getTargeting.js +7 -7
  246. package/dist/esm/{index-4f60bd57.js → index-1ecf523d.js} +1131 -534
  247. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  248. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  249. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  250. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  251. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  252. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  253. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  254. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  255. package/dist/esm/index.js +41 -48
  256. package/dist/esm/{inherits-2cf82c38.js → inherits-cf8dde54.js} +5 -5
  257. package/dist/esm/{keys-526daf0a.js → keys-8eda7a5c.js} +2 -2
  258. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  259. package/dist/esm/main-e4a934b2.js +851 -0
  260. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  261. package/dist/esm/{slicedToArray-f0edf3d6.js → slicedToArray-641f241f.js} +4 -4
  262. package/dist/esm/{stringify-d1b9276a.js → stringify-4330ccdc.js} +1 -1
  263. package/dist/esm/timeDifferenceCalc.js +1 -1
  264. package/dist/esm/{toConsumableArray-81605212.js → toConsumableArray-43aa614d.js} +4 -4
  265. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  266. package/dist/esm/{typeof-ad2c7a21.js → typeof-6435ba1c.js} +4 -4
  267. package/dist/esm/urlFor.js +1 -1
  268. package/dist/esm/{ustream-api-cf90f7e6.js → ustream-api-9a50644d.js} +4 -4
  269. package/dist/esm/{web.dom.iterable-ace8ed30.js → web.dom.iterable-4439f05a.js} +2 -2
  270. package/package.json +114 -110
  271. package/dist/cjs/Auth.js +0 -3648
  272. package/dist/cjs/index-bd6c9f56.js +0 -211
  273. package/dist/cjs/main-bc7d4bf8.js +0 -972
  274. package/dist/cjs/md5-e1ca5797.js +0 -323
  275. package/dist/cjs/util-f2c1b65b.js +0 -576
  276. package/dist/esm/Auth.js +0 -3632
  277. package/dist/esm/index-db3bb315.js +0 -207
  278. package/dist/esm/main-ae902629.js +0 -961
  279. package/dist/esm/md5-4e42248e.js +0 -321
  280. package/dist/esm/util-7700fc59.js +0 -574
@@ -1,35 +1,34 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { _ as _export, a as _core } from './_to-object-cedb5b78.js';
3
- import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-81605212.js';
4
- import { _ as _extends, b as _extends$1 } from './extends-be71a29a.js';
5
- import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-2cf82c38.js';
6
- import { _ as _typeof$1 } from './typeof-ad2c7a21.js';
2
+ import { _ as _export, a as _core } from './_to-object-a4107da3.js';
3
+ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
4
+ import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
5
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits$2 } from './inherits-cf8dde54.js';
6
+ import { _ as _typeof } from './typeof-6435ba1c.js';
7
7
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
8
8
  import { l as lib_3 } from './index-41a678ea.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import Row$1 from 'react-bootstrap/Row';
11
11
  import Col$1 from 'react-bootstrap/Col';
12
- import { m as moment } from './moment-b6f49411.js';
12
+ import { m as moment } from './moment-e2f9b20c.js';
13
13
  import Router, { useRouter } from 'next/router';
14
14
  import urlFor from './urlFor.js';
15
15
  import { L as LazyLoad } from './index-5f7e79e7.js';
16
- import { d as main_18, b as main_42, m as main_43 } from './main-ae902629.js';
16
+ import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
17
17
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
18
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-f0edf3d6.js';
18
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
19
19
  import Segment from './Segment.js';
20
20
  import Beam from './Beam.js';
21
21
  import DFPAdSlot from './AdSlot.js';
22
22
  import Button$1 from 'react-bootstrap/Button';
23
- import { B as BlockContent } from './BlockContent-ea93e8f7.js';
23
+ import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
24
24
  import { g as getYoutubeId } from './index-c7e2ac95.js';
25
25
  import GroupDeck from './GroupDeck.js';
26
26
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
27
- import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
28
- import { u as util } from './util-7700fc59.js';
29
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-e761d404.js';
27
+ import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
28
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
30
29
  import Head from 'next/head';
31
30
  import SocialShare from './SocialShare.js';
32
- import { _ as _objectToArray } from './_object-to-array-c8f72bf1.js';
31
+ import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
33
32
  import Pagination$1 from 'react-bootstrap/Pagination';
34
33
  import Figure$1$1 from 'react-bootstrap/Figure';
35
34
 
@@ -97,18 +96,21 @@ var Slideshow = function Slideshow(_ref) {
97
96
  );
98
97
  };
99
98
 
100
- // do not edit .js files directly - edit src/index.jst
101
-
102
-
99
+ var isArray = Array.isArray;
100
+ var keyList = Object.keys;
101
+ var hasProp = Object.prototype.hasOwnProperty;
103
102
 
104
103
  var fastDeepEqual = function equal(a, b) {
105
104
  if (a === b) return true;
106
105
 
107
106
  if (a && b && typeof a == 'object' && typeof b == 'object') {
108
- if (a.constructor !== b.constructor) return false;
107
+ var arrA = isArray(a)
108
+ , arrB = isArray(b)
109
+ , i
110
+ , length
111
+ , key;
109
112
 
110
- var length, i, keys;
111
- if (Array.isArray(a)) {
113
+ if (arrA && arrB) {
112
114
  length = a.length;
113
115
  if (length != b.length) return false;
114
116
  for (i = length; i-- !== 0;)
@@ -116,29 +118,35 @@ var fastDeepEqual = function equal(a, b) {
116
118
  return true;
117
119
  }
118
120
 
121
+ if (arrA != arrB) return false;
119
122
 
123
+ var dateA = a instanceof Date
124
+ , dateB = b instanceof Date;
125
+ if (dateA != dateB) return false;
126
+ if (dateA && dateB) return a.getTime() == b.getTime();
120
127
 
121
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
122
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
123
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
128
+ var regexpA = a instanceof RegExp
129
+ , regexpB = b instanceof RegExp;
130
+ if (regexpA != regexpB) return false;
131
+ if (regexpA && regexpB) return a.toString() == b.toString();
124
132
 
125
- keys = Object.keys(a);
133
+ var keys = keyList(a);
126
134
  length = keys.length;
127
- if (length !== Object.keys(b).length) return false;
135
+
136
+ if (length !== keyList(b).length)
137
+ return false;
128
138
 
129
139
  for (i = length; i-- !== 0;)
130
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
140
+ if (!hasProp.call(b, keys[i])) return false;
131
141
 
132
142
  for (i = length; i-- !== 0;) {
133
- var key = keys[i];
134
-
143
+ key = keys[i];
135
144
  if (!equal(a[key], b[key])) return false;
136
145
  }
137
146
 
138
147
  return true;
139
148
  }
140
149
 
141
- // true if both NaN, false otherwise
142
150
  return a!==a && b!==b;
143
151
  };
144
152
 
@@ -901,6 +909,579 @@ var tty = {
901
909
  WriteStream: WriteStream
902
910
  };
903
911
 
912
+ var inherits;
913
+ if (typeof Object.create === 'function'){
914
+ inherits = function inherits(ctor, superCtor) {
915
+ // implementation from standard node.js 'util' module
916
+ ctor.super_ = superCtor;
917
+ ctor.prototype = Object.create(superCtor.prototype, {
918
+ constructor: {
919
+ value: ctor,
920
+ enumerable: false,
921
+ writable: true,
922
+ configurable: true
923
+ }
924
+ });
925
+ };
926
+ } else {
927
+ inherits = function inherits(ctor, superCtor) {
928
+ ctor.super_ = superCtor;
929
+ var TempCtor = function () {};
930
+ TempCtor.prototype = superCtor.prototype;
931
+ ctor.prototype = new TempCtor();
932
+ ctor.prototype.constructor = ctor;
933
+ };
934
+ }
935
+ var inherits$1 = inherits;
936
+
937
+ // Copyright Joyent, Inc. and other Node contributors.
938
+ var formatRegExp = /%[sdj%]/g;
939
+ function format(f) {
940
+ if (!isString(f)) {
941
+ var objects = [];
942
+ for (var i = 0; i < arguments.length; i++) {
943
+ objects.push(inspect(arguments[i]));
944
+ }
945
+ return objects.join(' ');
946
+ }
947
+
948
+ var i = 1;
949
+ var args = arguments;
950
+ var len = args.length;
951
+ var str = String(f).replace(formatRegExp, function(x) {
952
+ if (x === '%%') return '%';
953
+ if (i >= len) return x;
954
+ switch (x) {
955
+ case '%s': return String(args[i++]);
956
+ case '%d': return Number(args[i++]);
957
+ case '%j':
958
+ try {
959
+ return JSON.stringify(args[i++]);
960
+ } catch (_) {
961
+ return '[Circular]';
962
+ }
963
+ default:
964
+ return x;
965
+ }
966
+ });
967
+ for (var x = args[i]; i < len; x = args[++i]) {
968
+ if (isNull(x) || !isObject(x)) {
969
+ str += ' ' + x;
970
+ } else {
971
+ str += ' ' + inspect(x);
972
+ }
973
+ }
974
+ return str;
975
+ }
976
+
977
+ // Mark that a method should not be used.
978
+ // Returns a modified function which warns once by default.
979
+ // If --no-deprecation is set, then it is a no-op.
980
+ function deprecate(fn, msg) {
981
+ // Allow for deprecating things in the process of starting up.
982
+ if (isUndefined(global.process)) {
983
+ return function() {
984
+ return deprecate(fn, msg).apply(this, arguments);
985
+ };
986
+ }
987
+
988
+ var warned = false;
989
+ function deprecated() {
990
+ if (!warned) {
991
+ {
992
+ console.error(msg);
993
+ }
994
+ warned = true;
995
+ }
996
+ return fn.apply(this, arguments);
997
+ }
998
+
999
+ return deprecated;
1000
+ }
1001
+
1002
+ var debugs = {};
1003
+ var debugEnviron;
1004
+ function debuglog(set) {
1005
+ if (isUndefined(debugEnviron))
1006
+ debugEnviron = '';
1007
+ set = set.toUpperCase();
1008
+ if (!debugs[set]) {
1009
+ if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
1010
+ var pid = 0;
1011
+ debugs[set] = function() {
1012
+ var msg = format.apply(null, arguments);
1013
+ console.error('%s %d: %s', set, pid, msg);
1014
+ };
1015
+ } else {
1016
+ debugs[set] = function() {};
1017
+ }
1018
+ }
1019
+ return debugs[set];
1020
+ }
1021
+
1022
+ /**
1023
+ * Echos the value of a value. Trys to print the value out
1024
+ * in the best way possible given the different types.
1025
+ *
1026
+ * @param {Object} obj The object to print out.
1027
+ * @param {Object} opts Optional options object that alters the output.
1028
+ */
1029
+ /* legacy: obj, showHidden, depth, colors*/
1030
+ function inspect(obj, opts) {
1031
+ // default options
1032
+ var ctx = {
1033
+ seen: [],
1034
+ stylize: stylizeNoColor
1035
+ };
1036
+ // legacy...
1037
+ if (arguments.length >= 3) ctx.depth = arguments[2];
1038
+ if (arguments.length >= 4) ctx.colors = arguments[3];
1039
+ if (isBoolean(opts)) {
1040
+ // legacy...
1041
+ ctx.showHidden = opts;
1042
+ } else if (opts) {
1043
+ // got an "options" object
1044
+ _extend(ctx, opts);
1045
+ }
1046
+ // set default options
1047
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
1048
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
1049
+ if (isUndefined(ctx.colors)) ctx.colors = false;
1050
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
1051
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
1052
+ return formatValue(ctx, obj, ctx.depth);
1053
+ }
1054
+
1055
+ // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
1056
+ inspect.colors = {
1057
+ 'bold' : [1, 22],
1058
+ 'italic' : [3, 23],
1059
+ 'underline' : [4, 24],
1060
+ 'inverse' : [7, 27],
1061
+ 'white' : [37, 39],
1062
+ 'grey' : [90, 39],
1063
+ 'black' : [30, 39],
1064
+ 'blue' : [34, 39],
1065
+ 'cyan' : [36, 39],
1066
+ 'green' : [32, 39],
1067
+ 'magenta' : [35, 39],
1068
+ 'red' : [31, 39],
1069
+ 'yellow' : [33, 39]
1070
+ };
1071
+
1072
+ // Don't use 'blue' not visible on cmd.exe
1073
+ inspect.styles = {
1074
+ 'special': 'cyan',
1075
+ 'number': 'yellow',
1076
+ 'boolean': 'yellow',
1077
+ 'undefined': 'grey',
1078
+ 'null': 'bold',
1079
+ 'string': 'green',
1080
+ 'date': 'magenta',
1081
+ // "name": intentionally not styling
1082
+ 'regexp': 'red'
1083
+ };
1084
+
1085
+
1086
+ function stylizeWithColor(str, styleType) {
1087
+ var style = inspect.styles[styleType];
1088
+
1089
+ if (style) {
1090
+ return '\u001b[' + inspect.colors[style][0] + 'm' + str +
1091
+ '\u001b[' + inspect.colors[style][1] + 'm';
1092
+ } else {
1093
+ return str;
1094
+ }
1095
+ }
1096
+
1097
+
1098
+ function stylizeNoColor(str, styleType) {
1099
+ return str;
1100
+ }
1101
+
1102
+
1103
+ function arrayToHash(array) {
1104
+ var hash = {};
1105
+
1106
+ array.forEach(function(val, idx) {
1107
+ hash[val] = true;
1108
+ });
1109
+
1110
+ return hash;
1111
+ }
1112
+
1113
+
1114
+ function formatValue(ctx, value, recurseTimes) {
1115
+ // Provide a hook for user-specified inspect functions.
1116
+ // Check that value is an object with an inspect function on it
1117
+ if (ctx.customInspect &&
1118
+ value &&
1119
+ isFunction(value.inspect) &&
1120
+ // Filter out the util module, it's inspect function is special
1121
+ value.inspect !== inspect &&
1122
+ // Also filter out any prototype objects using the circular check.
1123
+ !(value.constructor && value.constructor.prototype === value)) {
1124
+ var ret = value.inspect(recurseTimes, ctx);
1125
+ if (!isString(ret)) {
1126
+ ret = formatValue(ctx, ret, recurseTimes);
1127
+ }
1128
+ return ret;
1129
+ }
1130
+
1131
+ // Primitive types cannot have properties
1132
+ var primitive = formatPrimitive(ctx, value);
1133
+ if (primitive) {
1134
+ return primitive;
1135
+ }
1136
+
1137
+ // Look up the keys of the object.
1138
+ var keys = Object.keys(value);
1139
+ var visibleKeys = arrayToHash(keys);
1140
+
1141
+ if (ctx.showHidden) {
1142
+ keys = Object.getOwnPropertyNames(value);
1143
+ }
1144
+
1145
+ // IE doesn't make error fields non-enumerable
1146
+ // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
1147
+ if (isError(value)
1148
+ && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
1149
+ return formatError(value);
1150
+ }
1151
+
1152
+ // Some type of object without properties can be shortcutted.
1153
+ if (keys.length === 0) {
1154
+ if (isFunction(value)) {
1155
+ var name = value.name ? ': ' + value.name : '';
1156
+ return ctx.stylize('[Function' + name + ']', 'special');
1157
+ }
1158
+ if (isRegExp(value)) {
1159
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
1160
+ }
1161
+ if (isDate(value)) {
1162
+ return ctx.stylize(Date.prototype.toString.call(value), 'date');
1163
+ }
1164
+ if (isError(value)) {
1165
+ return formatError(value);
1166
+ }
1167
+ }
1168
+
1169
+ var base = '', array = false, braces = ['{', '}'];
1170
+
1171
+ // Make Array say that they are Array
1172
+ if (isArray$1(value)) {
1173
+ array = true;
1174
+ braces = ['[', ']'];
1175
+ }
1176
+
1177
+ // Make functions say that they are functions
1178
+ if (isFunction(value)) {
1179
+ var n = value.name ? ': ' + value.name : '';
1180
+ base = ' [Function' + n + ']';
1181
+ }
1182
+
1183
+ // Make RegExps say that they are RegExps
1184
+ if (isRegExp(value)) {
1185
+ base = ' ' + RegExp.prototype.toString.call(value);
1186
+ }
1187
+
1188
+ // Make dates with properties first say the date
1189
+ if (isDate(value)) {
1190
+ base = ' ' + Date.prototype.toUTCString.call(value);
1191
+ }
1192
+
1193
+ // Make error with message first say the error
1194
+ if (isError(value)) {
1195
+ base = ' ' + formatError(value);
1196
+ }
1197
+
1198
+ if (keys.length === 0 && (!array || value.length == 0)) {
1199
+ return braces[0] + base + braces[1];
1200
+ }
1201
+
1202
+ if (recurseTimes < 0) {
1203
+ if (isRegExp(value)) {
1204
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
1205
+ } else {
1206
+ return ctx.stylize('[Object]', 'special');
1207
+ }
1208
+ }
1209
+
1210
+ ctx.seen.push(value);
1211
+
1212
+ var output;
1213
+ if (array) {
1214
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
1215
+ } else {
1216
+ output = keys.map(function(key) {
1217
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
1218
+ });
1219
+ }
1220
+
1221
+ ctx.seen.pop();
1222
+
1223
+ return reduceToSingleString(output, base, braces);
1224
+ }
1225
+
1226
+
1227
+ function formatPrimitive(ctx, value) {
1228
+ if (isUndefined(value))
1229
+ return ctx.stylize('undefined', 'undefined');
1230
+ if (isString(value)) {
1231
+ var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
1232
+ .replace(/'/g, "\\'")
1233
+ .replace(/\\"/g, '"') + '\'';
1234
+ return ctx.stylize(simple, 'string');
1235
+ }
1236
+ if (isNumber(value))
1237
+ return ctx.stylize('' + value, 'number');
1238
+ if (isBoolean(value))
1239
+ return ctx.stylize('' + value, 'boolean');
1240
+ // For some reason typeof null is "object", so special case here.
1241
+ if (isNull(value))
1242
+ return ctx.stylize('null', 'null');
1243
+ }
1244
+
1245
+
1246
+ function formatError(value) {
1247
+ return '[' + Error.prototype.toString.call(value) + ']';
1248
+ }
1249
+
1250
+
1251
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
1252
+ var output = [];
1253
+ for (var i = 0, l = value.length; i < l; ++i) {
1254
+ if (hasOwnProperty(value, String(i))) {
1255
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
1256
+ String(i), true));
1257
+ } else {
1258
+ output.push('');
1259
+ }
1260
+ }
1261
+ keys.forEach(function(key) {
1262
+ if (!key.match(/^\d+$/)) {
1263
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
1264
+ key, true));
1265
+ }
1266
+ });
1267
+ return output;
1268
+ }
1269
+
1270
+
1271
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
1272
+ var name, str, desc;
1273
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
1274
+ if (desc.get) {
1275
+ if (desc.set) {
1276
+ str = ctx.stylize('[Getter/Setter]', 'special');
1277
+ } else {
1278
+ str = ctx.stylize('[Getter]', 'special');
1279
+ }
1280
+ } else {
1281
+ if (desc.set) {
1282
+ str = ctx.stylize('[Setter]', 'special');
1283
+ }
1284
+ }
1285
+ if (!hasOwnProperty(visibleKeys, key)) {
1286
+ name = '[' + key + ']';
1287
+ }
1288
+ if (!str) {
1289
+ if (ctx.seen.indexOf(desc.value) < 0) {
1290
+ if (isNull(recurseTimes)) {
1291
+ str = formatValue(ctx, desc.value, null);
1292
+ } else {
1293
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
1294
+ }
1295
+ if (str.indexOf('\n') > -1) {
1296
+ if (array) {
1297
+ str = str.split('\n').map(function(line) {
1298
+ return ' ' + line;
1299
+ }).join('\n').substr(2);
1300
+ } else {
1301
+ str = '\n' + str.split('\n').map(function(line) {
1302
+ return ' ' + line;
1303
+ }).join('\n');
1304
+ }
1305
+ }
1306
+ } else {
1307
+ str = ctx.stylize('[Circular]', 'special');
1308
+ }
1309
+ }
1310
+ if (isUndefined(name)) {
1311
+ if (array && key.match(/^\d+$/)) {
1312
+ return str;
1313
+ }
1314
+ name = JSON.stringify('' + key);
1315
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
1316
+ name = name.substr(1, name.length - 2);
1317
+ name = ctx.stylize(name, 'name');
1318
+ } else {
1319
+ name = name.replace(/'/g, "\\'")
1320
+ .replace(/\\"/g, '"')
1321
+ .replace(/(^"|"$)/g, "'");
1322
+ name = ctx.stylize(name, 'string');
1323
+ }
1324
+ }
1325
+
1326
+ return name + ': ' + str;
1327
+ }
1328
+
1329
+
1330
+ function reduceToSingleString(output, base, braces) {
1331
+ var length = output.reduce(function(prev, cur) {
1332
+ if (cur.indexOf('\n') >= 0) ;
1333
+ return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
1334
+ }, 0);
1335
+
1336
+ if (length > 60) {
1337
+ return braces[0] +
1338
+ (base === '' ? '' : base + '\n ') +
1339
+ ' ' +
1340
+ output.join(',\n ') +
1341
+ ' ' +
1342
+ braces[1];
1343
+ }
1344
+
1345
+ return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
1346
+ }
1347
+
1348
+
1349
+ // NOTE: These type checking functions intentionally don't use `instanceof`
1350
+ // because it is fragile and can be easily faked with `Object.create()`.
1351
+ function isArray$1(ar) {
1352
+ return Array.isArray(ar);
1353
+ }
1354
+
1355
+ function isBoolean(arg) {
1356
+ return typeof arg === 'boolean';
1357
+ }
1358
+
1359
+ function isNull(arg) {
1360
+ return arg === null;
1361
+ }
1362
+
1363
+ function isNullOrUndefined(arg) {
1364
+ return arg == null;
1365
+ }
1366
+
1367
+ function isNumber(arg) {
1368
+ return typeof arg === 'number';
1369
+ }
1370
+
1371
+ function isString(arg) {
1372
+ return typeof arg === 'string';
1373
+ }
1374
+
1375
+ function isSymbol(arg) {
1376
+ return typeof arg === 'symbol';
1377
+ }
1378
+
1379
+ function isUndefined(arg) {
1380
+ return arg === void 0;
1381
+ }
1382
+
1383
+ function isRegExp(re) {
1384
+ return isObject(re) && objectToString(re) === '[object RegExp]';
1385
+ }
1386
+
1387
+ function isObject(arg) {
1388
+ return typeof arg === 'object' && arg !== null;
1389
+ }
1390
+
1391
+ function isDate(d) {
1392
+ return isObject(d) && objectToString(d) === '[object Date]';
1393
+ }
1394
+
1395
+ function isError(e) {
1396
+ return isObject(e) &&
1397
+ (objectToString(e) === '[object Error]' || e instanceof Error);
1398
+ }
1399
+
1400
+ function isFunction(arg) {
1401
+ return typeof arg === 'function';
1402
+ }
1403
+
1404
+ function isPrimitive(arg) {
1405
+ return arg === null ||
1406
+ typeof arg === 'boolean' ||
1407
+ typeof arg === 'number' ||
1408
+ typeof arg === 'string' ||
1409
+ typeof arg === 'symbol' || // ES6 symbol
1410
+ typeof arg === 'undefined';
1411
+ }
1412
+
1413
+ function isBuffer(maybeBuf) {
1414
+ return Buffer.isBuffer(maybeBuf);
1415
+ }
1416
+
1417
+ function objectToString(o) {
1418
+ return Object.prototype.toString.call(o);
1419
+ }
1420
+
1421
+
1422
+ function pad(n) {
1423
+ return n < 10 ? '0' + n.toString(10) : n.toString(10);
1424
+ }
1425
+
1426
+
1427
+ var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
1428
+ 'Oct', 'Nov', 'Dec'];
1429
+
1430
+ // 26 Feb 16:19:34
1431
+ function timestamp() {
1432
+ var d = new Date();
1433
+ var time = [pad(d.getHours()),
1434
+ pad(d.getMinutes()),
1435
+ pad(d.getSeconds())].join(':');
1436
+ return [d.getDate(), months[d.getMonth()], time].join(' ');
1437
+ }
1438
+
1439
+
1440
+ // log is just a thin wrapper to console.log that prepends a timestamp
1441
+ function log() {
1442
+ console.log('%s - %s', timestamp(), format.apply(null, arguments));
1443
+ }
1444
+
1445
+ function _extend(origin, add) {
1446
+ // Don't do anything if add isn't an object
1447
+ if (!add || !isObject(add)) return origin;
1448
+
1449
+ var keys = Object.keys(add);
1450
+ var i = keys.length;
1451
+ while (i--) {
1452
+ origin[keys[i]] = add[keys[i]];
1453
+ }
1454
+ return origin;
1455
+ }
1456
+ function hasOwnProperty(obj, prop) {
1457
+ return Object.prototype.hasOwnProperty.call(obj, prop);
1458
+ }
1459
+
1460
+ var util = {
1461
+ inherits: inherits$1,
1462
+ _extend: _extend,
1463
+ log: log,
1464
+ isBuffer: isBuffer,
1465
+ isPrimitive: isPrimitive,
1466
+ isFunction: isFunction,
1467
+ isError: isError,
1468
+ isDate: isDate,
1469
+ isObject: isObject,
1470
+ isRegExp: isRegExp,
1471
+ isUndefined: isUndefined,
1472
+ isSymbol: isSymbol,
1473
+ isString: isString,
1474
+ isNumber: isNumber,
1475
+ isNullOrUndefined: isNullOrUndefined,
1476
+ isNull: isNull,
1477
+ isBoolean: isBoolean,
1478
+ isArray: isArray$1,
1479
+ inspect: inspect,
1480
+ deprecate: deprecate,
1481
+ format: format,
1482
+ debuglog: debuglog
1483
+ };
1484
+
904
1485
  var require$$2 = {};
905
1486
 
906
1487
  var node = createCommonjsModule(function (module, exports) {
@@ -1561,239 +2142,199 @@ module.exports = exports['default'];
1561
2142
 
1562
2143
  var youTubePlayer = unwrapExports(dist);
1563
2144
 
1564
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1565
-
1566
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1567
-
1568
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1569
-
1570
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
2145
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1571
2146
 
1572
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1573
-
1574
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1575
-
1576
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
1577
-
1578
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1579
-
1580
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2147
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
1581
2148
 
1582
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1583
-
1584
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
2149
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1585
2150
 
1586
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2151
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1587
2152
 
1588
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2153
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
1589
2154
 
1590
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1591
- /**
1592
- * Check whether a `props` change should result in the video being updated.
1593
- *
1594
- * @param {Object} prevProps
1595
- * @param {Object} props
2155
+ /**
2156
+ * Check whether a `props` change should result in the video being updated.
2157
+ *
2158
+ * @param {Object} prevProps
2159
+ * @param {Object} props
1596
2160
  */
1597
-
1598
2161
  function shouldUpdateVideo(prevProps, props) {
1599
2162
  // A changing video should always trigger an update
1600
2163
  if (prevProps.videoId !== props.videoId) {
1601
2164
  return true;
1602
- } // Otherwise, a change in the start/end time playerVars also requires a player
1603
- // update.
1604
-
2165
+ }
1605
2166
 
2167
+ // Otherwise, a change in the start/end time playerVars also requires a player
2168
+ // update.
1606
2169
  var prevVars = prevProps.opts.playerVars || {};
1607
2170
  var vars = props.opts.playerVars || {};
2171
+
1608
2172
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1609
2173
  }
1610
- /**
1611
- * Neutralize API options that only require a video update, leaving only options
1612
- * that require a player reset. The results can then be compared to see if a
1613
- * player reset is necessary.
1614
- *
1615
- * @param {Object} opts
1616
- */
1617
-
1618
2174
 
2175
+ /**
2176
+ * Neutralise API options that only require a video update, leaving only options
2177
+ * that require a player reset. The results can then be compared to see if a
2178
+ * player reset is necessary.
2179
+ *
2180
+ * @param {Object} opts
2181
+ */
1619
2182
  function filterResetOptions(opts) {
1620
- return _objectSpread(_objectSpread({}, opts), {}, {
1621
- playerVars: _objectSpread({
2183
+ return _extends({}, opts, {
2184
+ playerVars: _extends({}, opts.playerVars, {
1622
2185
  autoplay: 0,
1623
2186
  start: 0,
1624
2187
  end: 0
1625
- }, opts.playerVars)
2188
+ })
1626
2189
  });
1627
2190
  }
1628
- /**
1629
- * Check whether a `props` change should result in the player being reset.
1630
- * The player is reset when the `props.opts` change, except if the only change
1631
- * is in the `start` and `end` playerVars, because a video update can deal with
1632
- * those.
1633
- *
1634
- * @param {Object} prevProps
1635
- * @param {Object} props
1636
- */
1637
-
1638
2191
 
2192
+ /**
2193
+ * Check whether a `props` change should result in the player being reset.
2194
+ * The player is reset when the `props.opts` change, except if the only change
2195
+ * is in the `start` and `end` playerVars, because a video update can deal with
2196
+ * those.
2197
+ *
2198
+ * @param {Object} prevProps
2199
+ * @param {Object} props
2200
+ */
1639
2201
  function shouldResetPlayer(prevProps, props) {
1640
2202
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1641
2203
  }
1642
- /**
1643
- * Check whether a props change should result in an id or className update.
1644
- *
1645
- * @param {Object} prevProps
1646
- * @param {Object} props
1647
- */
1648
-
1649
2204
 
2205
+ /**
2206
+ * Check whether a props change should result in an id or className update.
2207
+ *
2208
+ * @param {Object} prevProps
2209
+ * @param {Object} props
2210
+ */
1650
2211
  function shouldUpdatePlayer(prevProps, props) {
1651
2212
  return prevProps.id !== props.id || prevProps.className !== props.className;
1652
2213
  }
1653
2214
 
1654
- var YouTube = /*#__PURE__*/function (_React$Component) {
2215
+ var YouTube = function (_React$Component) {
1655
2216
  _inherits(YouTube, _React$Component);
1656
2217
 
1657
- var _super = _createSuper(YouTube);
1658
-
1659
- /**
1660
- * Expose PlayerState constants for convenience. These constants can also be
1661
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1662
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1663
- */
1664
2218
  function YouTube(props) {
1665
- var _this;
1666
-
1667
2219
  _classCallCheck(this, YouTube);
1668
2220
 
1669
- _this = _super.call(this, props);
2221
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1670
2222
 
1671
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
2223
+ _this.onPlayerReady = function (event) {
1672
2224
  return _this.props.onReady(event);
1673
- });
2225
+ };
1674
2226
 
1675
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
2227
+ _this.onPlayerError = function (event) {
1676
2228
  return _this.props.onError(event);
1677
- });
2229
+ };
1678
2230
 
1679
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
2231
+ _this.onPlayerStateChange = function (event) {
1680
2232
  _this.props.onStateChange(event);
1681
-
1682
2233
  switch (event.data) {
2234
+
1683
2235
  case YouTube.PlayerState.ENDED:
1684
2236
  _this.props.onEnd(event);
1685
-
1686
2237
  break;
1687
2238
 
1688
2239
  case YouTube.PlayerState.PLAYING:
1689
2240
  _this.props.onPlay(event);
1690
-
1691
2241
  break;
1692
2242
 
1693
2243
  case YouTube.PlayerState.PAUSED:
1694
2244
  _this.props.onPause(event);
1695
-
1696
2245
  break;
1697
2246
  }
1698
- });
2247
+ };
1699
2248
 
1700
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
2249
+ _this.onPlayerPlaybackRateChange = function (event) {
1701
2250
  return _this.props.onPlaybackRateChange(event);
1702
- });
2251
+ };
1703
2252
 
1704
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
2253
+ _this.onPlayerPlaybackQualityChange = function (event) {
1705
2254
  return _this.props.onPlaybackQualityChange(event);
1706
- });
2255
+ };
1707
2256
 
1708
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
2257
+ _this.createPlayer = function () {
1709
2258
  // do not attempt to create a player server-side, it won't work
1710
- if (typeof document === 'undefined') return; // create player
1711
-
1712
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
2259
+ if (typeof document === 'undefined') return;
2260
+ // create player
2261
+ var playerOpts = _extends({}, _this.props.opts, {
1713
2262
  // preload the `videoId` video if one is already given
1714
2263
  videoId: _this.props.videoId
1715
2264
  });
1716
-
1717
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1718
-
2265
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
2266
+ // attach event handlers
1719
2267
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1720
-
1721
2268
  _this.internalPlayer.on('error', _this.onPlayerError);
1722
-
1723
2269
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1724
-
1725
2270
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1726
-
1727
2271
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1728
- });
2272
+ };
1729
2273
 
1730
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
2274
+ _this.resetPlayer = function () {
1731
2275
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1732
- });
2276
+ };
1733
2277
 
1734
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
2278
+ _this.updatePlayer = function () {
1735
2279
  _this.internalPlayer.getIframe().then(function (iframe) {
1736
2280
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1737
2281
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1738
2282
  });
1739
- });
1740
-
1741
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1742
- return _this.internalPlayer;
1743
- });
2283
+ };
1744
2284
 
1745
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
2285
+ _this.updateVideo = function () {
1746
2286
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1747
2287
  _this.internalPlayer.stopVideo();
1748
-
1749
2288
  return;
1750
- } // set queueing options
1751
-
2289
+ }
1752
2290
 
2291
+ // set queueing options
1753
2292
  var autoplay = false;
1754
2293
  var opts = {
1755
2294
  videoId: _this.props.videoId
1756
2295
  };
1757
-
1758
2296
  if ('playerVars' in _this.props.opts) {
1759
2297
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1760
-
1761
2298
  if ('start' in _this.props.opts.playerVars) {
1762
2299
  opts.startSeconds = _this.props.opts.playerVars.start;
1763
2300
  }
1764
-
1765
2301
  if ('end' in _this.props.opts.playerVars) {
1766
2302
  opts.endSeconds = _this.props.opts.playerVars.end;
1767
2303
  }
1768
- } // if autoplay is enabled loadVideoById
1769
-
2304
+ }
1770
2305
 
2306
+ // if autoplay is enabled loadVideoById
1771
2307
  if (autoplay) {
1772
2308
  _this.internalPlayer.loadVideoById(opts);
1773
-
1774
2309
  return;
1775
- } // default behaviour just cues the video
1776
-
1777
-
2310
+ }
2311
+ // default behaviour just cues the video
1778
2312
  _this.internalPlayer.cueVideoById(opts);
1779
- });
2313
+ };
1780
2314
 
1781
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
2315
+ _this.refContainer = function (container) {
1782
2316
  _this.container = container;
1783
- });
2317
+ };
1784
2318
 
1785
2319
  _this.container = null;
1786
2320
  _this.internalPlayer = null;
1787
2321
  return _this;
1788
2322
  }
1789
2323
 
2324
+ /**
2325
+ * Expose PlayerState constants for convenience. These constants can also be
2326
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
2327
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
2328
+ */
2329
+
2330
+
1790
2331
  _createClass(YouTube, [{
1791
- key: "componentDidMount",
2332
+ key: 'componentDidMount',
1792
2333
  value: function componentDidMount() {
1793
2334
  this.createPlayer();
1794
2335
  }
1795
2336
  }, {
1796
- key: "componentDidUpdate",
2337
+ key: 'componentDidUpdate',
1797
2338
  value: function componentDidUpdate(prevProps) {
1798
2339
  if (shouldUpdatePlayer(prevProps, this.props)) {
1799
2340
  this.updatePlayer();
@@ -1808,58 +2349,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1808
2349
  }
1809
2350
  }
1810
2351
  }, {
1811
- key: "componentWillUnmount",
2352
+ key: 'componentWillUnmount',
1812
2353
  value: function componentWillUnmount() {
1813
- /**
1814
- * Note: The `youtube-player` package that is used promisifies all YouTube
1815
- * Player API calls, which introduces a delay of a tick before it actually
1816
- * gets destroyed. Since React attempts to remove the element instantly
1817
- * this method isn't quick enough to reset the container element.
2354
+ /**
2355
+ * Note: The `youtube-player` package that is used promisifies all Youtube
2356
+ * Player API calls, which introduces a delay of a tick before it actually
2357
+ * gets destroyed. Since React attempts to remove the element instantly
2358
+ * this method isn't quick enough to reset the container element.
1818
2359
  */
1819
2360
  this.internalPlayer.destroy();
1820
2361
  }
1821
- /**
1822
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1823
- *
1824
- * @param {Object} event
1825
- * @param {Object} target - player object
2362
+
2363
+ /**
2364
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
2365
+ *
2366
+ * @param {Object} event
2367
+ * @param {Object} target - player object
2368
+ */
2369
+
2370
+
2371
+ /**
2372
+ * https://developers.google.com/youtube/iframe_api_reference#onError
2373
+ *
2374
+ * @param {Object} event
2375
+ * @param {Integer} data - error type
2376
+ * @param {Object} target - player object
2377
+ */
2378
+
2379
+
2380
+ /**
2381
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
2382
+ *
2383
+ * @param {Object} event
2384
+ * @param {Integer} data - status change type
2385
+ * @param {Object} target - actual YT player
2386
+ */
2387
+
2388
+
2389
+ /**
2390
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
2391
+ *
2392
+ * @param {Object} event
2393
+ * @param {Float} data - playback rate
2394
+ * @param {Object} target - actual YT player
2395
+ */
2396
+
2397
+
2398
+ /**
2399
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
2400
+ *
2401
+ * @param {Object} event
2402
+ * @param {String} data - playback quality
2403
+ * @param {Object} target - actual YT player
2404
+ */
2405
+
2406
+
2407
+ /**
2408
+ * Initialize the Youtube Player API on the container and attach event handlers
2409
+ */
2410
+
2411
+
2412
+ /**
2413
+ * Shorthand for destroying and then re-creating the Youtube Player
2414
+ */
2415
+
2416
+
2417
+ /**
2418
+ * Method to update the id and class of the Youtube Player iframe.
2419
+ * React should update this automatically but since the Youtube Player API
2420
+ * replaced the DIV that is mounted by React we need to do this manually.
2421
+ */
2422
+
2423
+
2424
+ /**
2425
+ * Call Youtube Player API methods to update the currently playing video.
2426
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
2427
+ * Youtube Player API methods to update the video.
1826
2428
  */
1827
2429
 
1828
2430
  }, {
1829
- key: "render",
2431
+ key: 'render',
1830
2432
  value: function render() {
1831
- return /*#__PURE__*/React__default.createElement("div", {
1832
- className: this.props.containerClassName
1833
- }, /*#__PURE__*/React__default.createElement("div", {
1834
- id: this.props.id,
1835
- className: this.props.className,
1836
- ref: this.refContainer
1837
- }));
2433
+ return React__default.createElement(
2434
+ 'div',
2435
+ { className: this.props.containerClassName },
2436
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
2437
+ );
1838
2438
  }
1839
2439
  }]);
1840
2440
 
1841
2441
  return YouTube;
1842
- }(React__default.Component);
1843
-
1844
- _defineProperty(YouTube, "PlayerState", {
1845
- UNSTARTED: -1,
1846
- ENDED: 0,
1847
- PLAYING: 1,
1848
- PAUSED: 2,
1849
- BUFFERING: 3,
1850
- CUED: 5
1851
- });
2442
+ }(React__default.Component);
1852
2443
 
1853
2444
  YouTube.propTypes = {
1854
2445
  videoId: PropTypes.string,
2446
+
1855
2447
  // custom ID for player element
1856
2448
  id: PropTypes.string,
2449
+
1857
2450
  // custom class name for player element
1858
2451
  className: PropTypes.string,
1859
2452
  // custom class name for player container element
1860
2453
  containerClassName: PropTypes.string,
2454
+
1861
2455
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1862
2456
  opts: PropTypes.objectOf(PropTypes.any),
2457
+
1863
2458
  // event subscriptions
1864
2459
  onReady: PropTypes.func,
1865
2460
  onError: PropTypes.func,
@@ -1871,7 +2466,6 @@ YouTube.propTypes = {
1871
2466
  onPlaybackQualityChange: PropTypes.func
1872
2467
  };
1873
2468
  YouTube.defaultProps = {
1874
- videoId: null,
1875
2469
  id: null,
1876
2470
  className: null,
1877
2471
  opts: {},
@@ -1885,6 +2479,14 @@ YouTube.defaultProps = {
1885
2479
  onPlaybackRateChange: function onPlaybackRateChange() {},
1886
2480
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1887
2481
  };
2482
+ YouTube.PlayerState = {
2483
+ UNSTARTED: -1,
2484
+ ENDED: 0,
2485
+ PLAYING: 1,
2486
+ PAUSED: 2,
2487
+ BUFFERING: 3,
2488
+ CUED: 5
2489
+ };
1888
2490
 
1889
2491
  var YouTubePlayer = function YouTubePlayer(_ref) {
1890
2492
  var url = _ref.url,
@@ -1923,8 +2525,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1923
2525
  var duration = player.getDuration();
1924
2526
  var queue = Math.floor(duration / 10);
1925
2527
  var segment = Math.floor(current / queue);
1926
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
1927
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
2528
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
2529
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
1928
2530
  };
1929
2531
 
1930
2532
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1934,8 +2536,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1934
2536
  var segment = Math.floor(current / queue);
1935
2537
 
1936
2538
  if (!queueProgress.includes(segment)) {
1937
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
1938
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
2539
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
2540
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
1939
2541
  queueProgress.push(segment);
1940
2542
  }
1941
2543
  };
@@ -1948,8 +2550,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1948
2550
  var queue = Math.floor(duration / 10);
1949
2551
  var segment = Math.floor(current / queue);
1950
2552
 
1951
- Beam.report_beam_video('Play', main_18, duration, current, segment);
1952
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
2553
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
2554
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
1953
2555
 
1954
2556
  if (!playReported) {
1955
2557
  setPlayReported(true);
@@ -1968,8 +2570,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1968
2570
  var queue = Math.floor(duration / 10);
1969
2571
  var segment = Math.floor(current / queue);
1970
2572
 
1971
- Beam.report_beam_video('End', main_18, duration, current, segment);
1972
- Segment.report_video_event('Video End', main_18, duration, current, segment);
2573
+ Beam.report_beam_video('End', main_16, duration, current, segment);
2574
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
1973
2575
  setEndReported(true);
1974
2576
  clearInterval(intervalID);
1975
2577
  }
@@ -1982,8 +2584,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1982
2584
  var queue = Math.floor(duration / 10);
1983
2585
  var segment = Math.floor(current / queue);
1984
2586
 
1985
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
1986
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
2587
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
2588
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
1987
2589
  };
1988
2590
 
1989
2591
  return React__default.createElement(
@@ -2151,7 +2753,7 @@ var Media = function Media(_ref) {
2151
2753
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2152
2754
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2153
2755
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2154
- React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2756
+ React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2155
2757
  )
2156
2758
  ),
2157
2759
  caption && React__default.createElement(
@@ -2164,7 +2766,7 @@ var Media = function Media(_ref) {
2164
2766
  } else if (caption && caption !== '') {
2165
2767
  return React__default.createElement(
2166
2768
  'a',
2167
- _extends({}, uploadDoc.downloadMedia ? {
2769
+ _extends$1({}, uploadDoc.downloadMedia ? {
2168
2770
  href: uploadDoc.asset.url + '?dl='
2169
2771
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2170
2772
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2219,8 +2821,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2219
2821
  var duration = player.duration;
2220
2822
  var queue = Math.floor(duration / 10);
2221
2823
  var segment = Math.floor(current / queue);
2222
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
2223
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
2824
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
2825
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
2224
2826
  };
2225
2827
 
2226
2828
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2229,8 +2831,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2229
2831
  var queue = Math.floor(duration / 10);
2230
2832
  var segment = Math.floor(current / queue);
2231
2833
  if (!queueProgress.includes(segment)) {
2232
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
2233
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
2834
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
2835
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
2234
2836
  queueProgress.push(segment);
2235
2837
  }
2236
2838
  };
@@ -2242,8 +2844,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2242
2844
  var duration = player.duration;
2243
2845
  var queue = Math.floor(duration / 10);
2244
2846
  var segment = Math.floor(current / queue);
2245
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
2246
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
2847
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
2848
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
2247
2849
 
2248
2850
  if (!playReported) {
2249
2851
  event.persist();
@@ -2263,8 +2865,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2263
2865
  var queue = Math.floor(duration / 10);
2264
2866
  var segment = Math.floor(current / queue);
2265
2867
 
2266
- Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
2267
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
2868
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
2869
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
2268
2870
  setEndReported(true);
2269
2871
  clearInterval(intervalID);
2270
2872
  }
@@ -2276,8 +2878,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2276
2878
  var duration = player.duration - current;
2277
2879
  var queue = Math.floor(duration / 10);
2278
2880
  var segment = Math.floor(current / queue);
2279
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
2280
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
2881
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
2882
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
2281
2883
  };
2282
2884
 
2283
2885
  return React__default.createElement(
@@ -2338,7 +2940,7 @@ var Video = function Video(_ref) {
2338
2940
  var onVideoSuccess = function onVideoSuccess(success) {
2339
2941
  //console.log('success:', success.ref)
2340
2942
  var player = success.ref;
2341
- if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2943
+ if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2342
2944
  player.ima3.settings.debug = true;
2343
2945
  if (targeting.content_placement && targeting.document_url) {
2344
2946
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2366,8 +2968,8 @@ var Video = function Video(_ref) {
2366
2968
  player.pause();
2367
2969
  }
2368
2970
 
2369
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2370
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2971
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2972
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2371
2973
  });
2372
2974
 
2373
2975
  // play
@@ -2376,8 +2978,8 @@ var Video = function Video(_ref) {
2376
2978
  var current = player.currentTime();
2377
2979
  var queue = Math.floor(duration / 10);
2378
2980
  var segment = Math.floor(current / queue);
2379
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2380
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2981
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2982
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2381
2983
  });
2382
2984
 
2383
2985
  // pause
@@ -2386,8 +2988,8 @@ var Video = function Video(_ref) {
2386
2988
  var current = player.currentTime();
2387
2989
  var queue = Math.floor(duration / 10);
2388
2990
  var segment = Math.floor(current / queue);
2389
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2390
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2991
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2992
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2391
2993
  });
2392
2994
 
2393
2995
  // end
@@ -2396,8 +2998,8 @@ var Video = function Video(_ref) {
2396
2998
  var current = player.currentTime();
2397
2999
  var queue = Math.floor(duration / 10);
2398
3000
  var segment = Math.floor(current / queue);
2399
- Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2400
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
3001
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
3002
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2401
3003
  autoplayNextVideo(evt);
2402
3004
  });
2403
3005
 
@@ -2408,8 +3010,8 @@ var Video = function Video(_ref) {
2408
3010
  var queue = Math.floor(duration / 10);
2409
3011
  var segment = Math.floor(current / queue);
2410
3012
  if (!queueProgress.includes(segment)) {
2411
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2412
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
3013
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
3014
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2413
3015
  queueProgress.push(segment);
2414
3016
  }
2415
3017
  });
@@ -2420,8 +3022,8 @@ var Video = function Video(_ref) {
2420
3022
  var id = player.ads.ad.id;
2421
3023
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2422
3024
 
2423
- Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
2424
- Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
3025
+ Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
3026
+ Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2425
3027
  });
2426
3028
 
2427
3029
  // ad ended
@@ -2429,8 +3031,8 @@ var Video = function Video(_ref) {
2429
3031
  var duration = player.ads.ad.duration;
2430
3032
  var id = player.ads.ad.id;
2431
3033
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2432
- Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
2433
- Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
3034
+ Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
3035
+ Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2434
3036
  });
2435
3037
  };
2436
3038
 
@@ -2860,17 +3462,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2860
3462
 
2861
3463
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2862
3464
 
2863
- function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
3465
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2864
3466
 
2865
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3467
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2866
3468
 
2867
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2868
-
2869
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2870
-
2871
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2872
-
2873
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
3469
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
2874
3470
 
2875
3471
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2876
3472
 
@@ -3000,12 +3596,12 @@ function getSDK(url, sdkGlobal) {
3000
3596
 
3001
3597
  function getConfig(props$1, defaultProps, showWarning) {
3002
3598
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
3003
-
3004
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
3005
- _step;
3599
+ var _iteratorNormalCompletion = true;
3600
+ var _didIteratorError = false;
3601
+ var _iteratorError = undefined;
3006
3602
 
3007
3603
  try {
3008
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3604
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3009
3605
  var p = _step.value;
3010
3606
 
3011
3607
  if (props$1[p]) {
@@ -3020,9 +3616,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3020
3616
  }
3021
3617
  }
3022
3618
  } catch (err) {
3023
- _iterator.e(err);
3619
+ _didIteratorError = true;
3620
+ _iteratorError = err;
3024
3621
  } finally {
3025
- _iterator.f();
3622
+ try {
3623
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3624
+ _iterator["return"]();
3625
+ }
3626
+ } finally {
3627
+ if (_didIteratorError) {
3628
+ throw _iteratorError;
3629
+ }
3630
+ }
3026
3631
  }
3027
3632
 
3028
3633
  return config;
@@ -3169,16 +3774,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3169
3774
 
3170
3775
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3171
3776
 
3172
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3173
-
3174
3777
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3175
3778
 
3176
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3177
-
3178
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3179
-
3180
3779
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3181
3780
 
3781
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3782
+
3182
3783
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3183
3784
 
3184
3785
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3187,12 +3788,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3187
3788
 
3188
3789
  var SEEK_ON_PLAY_EXPIRY = 5000;
3189
3790
 
3190
- var Player = /*#__PURE__*/function (_Component) {
3791
+ var Player =
3792
+ /*#__PURE__*/
3793
+ function (_Component) {
3191
3794
  _inherits(Player, _Component);
3192
3795
 
3193
- var _super = _createSuper(Player);
3194
-
3195
3796
  function Player() {
3797
+ var _getPrototypeOf2;
3798
+
3196
3799
  var _this;
3197
3800
 
3198
3801
  _classCallCheck(this, Player);
@@ -3201,7 +3804,7 @@ var Player = /*#__PURE__*/function (_Component) {
3201
3804
  _args[_key] = arguments[_key];
3202
3805
  }
3203
3806
 
3204
- _this = _super.call.apply(_super, [this].concat(_args));
3807
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3205
3808
 
3206
3809
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3207
3810
 
@@ -3526,7 +4129,7 @@ var Player = /*#__PURE__*/function (_Component) {
3526
4129
  return null;
3527
4130
  }
3528
4131
 
3529
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
4132
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3530
4133
  ref: this.ref,
3531
4134
  onReady: this.handleReady,
3532
4135
  onPlay: this.handlePlay,
@@ -3587,16 +4190,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3587
4190
 
3588
4191
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3589
4192
 
3590
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3591
-
3592
4193
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3593
4194
 
3594
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3595
-
3596
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3597
-
3598
4195
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3599
4196
 
4197
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4198
+
3600
4199
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3601
4200
 
3602
4201
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3608,12 +4207,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3608
4207
  function createSinglePlayer(activePlayer) {
3609
4208
  var _class, _temp;
3610
4209
 
3611
- return _temp = _class = /*#__PURE__*/function (_Component) {
4210
+ return _temp = _class =
4211
+ /*#__PURE__*/
4212
+ function (_Component) {
3612
4213
  _inherits(SinglePlayer, _Component);
3613
4214
 
3614
- var _super = _createSuper(SinglePlayer);
3615
-
3616
4215
  function SinglePlayer() {
4216
+ var _getPrototypeOf2;
4217
+
3617
4218
  var _this;
3618
4219
 
3619
4220
  _classCallCheck(this, SinglePlayer);
@@ -3622,7 +4223,7 @@ function createSinglePlayer(activePlayer) {
3622
4223
  args[_key] = arguments[_key];
3623
4224
  }
3624
4225
 
3625
- _this = _super.call.apply(_super, [this].concat(args));
4226
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3626
4227
 
3627
4228
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3628
4229
 
@@ -3690,12 +4291,12 @@ function createSinglePlayer(activePlayer) {
3690
4291
  height = _this$props.height,
3691
4292
  Wrapper = _this$props.wrapper;
3692
4293
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3693
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
4294
+ return _react["default"].createElement(Wrapper, _extends({
3694
4295
  style: _objectSpread({}, style, {
3695
4296
  width: width,
3696
4297
  height: height
3697
4298
  })
3698
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
4299
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3699
4300
  ref: this.ref,
3700
4301
  activePlayer: activePlayer,
3701
4302
  config: this.config
@@ -3741,31 +4342,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3741
4342
 
3742
4343
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3743
4344
 
3744
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3745
-
3746
4345
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3747
4346
 
3748
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3749
-
3750
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3751
-
3752
4347
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3753
4348
 
4349
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4350
+
3754
4351
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3755
4352
 
3756
4353
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3757
4354
 
3758
4355
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3759
4356
 
3760
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3761
-
3762
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3763
-
3764
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4357
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3765
4358
 
3766
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
4359
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3767
4360
 
3768
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
4361
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
3769
4362
 
3770
4363
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3771
4364
 
@@ -3790,12 +4383,14 @@ function parsePlaylist(url) {
3790
4383
  return {};
3791
4384
  }
3792
4385
 
3793
- var YouTube = /*#__PURE__*/function (_Component) {
4386
+ var YouTube =
4387
+ /*#__PURE__*/
4388
+ function (_Component) {
3794
4389
  _inherits(YouTube, _Component);
3795
4390
 
3796
- var _super = _createSuper(YouTube);
3797
-
3798
4391
  function YouTube() {
4392
+ var _getPrototypeOf2;
4393
+
3799
4394
  var _this;
3800
4395
 
3801
4396
  _classCallCheck(this, YouTube);
@@ -3804,7 +4399,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3804
4399
  args[_key] = arguments[_key];
3805
4400
  }
3806
4401
 
3807
- _this = _super.call.apply(_super, [this].concat(args));
4402
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3808
4403
 
3809
4404
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3810
4405
 
@@ -3992,9 +4587,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
3992
4587
  height: '100%',
3993
4588
  display: display
3994
4589
  };
3995
- return /*#__PURE__*/_react["default"].createElement("div", {
4590
+ return _react["default"].createElement("div", {
3996
4591
  style: style
3997
- }, /*#__PURE__*/_react["default"].createElement("div", {
4592
+ }, _react["default"].createElement("div", {
3998
4593
  ref: this.ref
3999
4594
  }));
4000
4595
  }
@@ -4050,16 +4645,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4050
4645
 
4051
4646
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4052
4647
 
4053
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4054
-
4055
4648
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4056
4649
 
4057
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4058
-
4059
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4060
-
4061
4650
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4062
4651
 
4652
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4653
+
4063
4654
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4064
4655
 
4065
4656
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4068,14 +4659,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4068
4659
 
4069
4660
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4070
4661
  var SDK_GLOBAL = 'SC';
4071
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4662
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4072
4663
 
4073
- var SoundCloud = /*#__PURE__*/function (_Component) {
4664
+ var SoundCloud =
4665
+ /*#__PURE__*/
4666
+ function (_Component) {
4074
4667
  _inherits(SoundCloud, _Component);
4075
4668
 
4076
- var _super = _createSuper(SoundCloud);
4077
-
4078
4669
  function SoundCloud() {
4670
+ var _getPrototypeOf2;
4671
+
4079
4672
  var _this;
4080
4673
 
4081
4674
  _classCallCheck(this, SoundCloud);
@@ -4084,7 +4677,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4084
4677
  args[_key] = arguments[_key];
4085
4678
  }
4086
4679
 
4087
- _this = _super.call.apply(_super, [this].concat(args));
4680
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4088
4681
 
4089
4682
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4090
4683
 
@@ -4205,7 +4798,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4205
4798
  height: '100%',
4206
4799
  display: display
4207
4800
  };
4208
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4801
+ return _react["default"].createElement("iframe", {
4209
4802
  ref: this.ref,
4210
4803
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4211
4804
  style: style,
@@ -4267,16 +4860,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4267
4860
 
4268
4861
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4269
4862
 
4270
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4271
-
4272
4863
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4273
4864
 
4274
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4275
-
4276
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4277
-
4278
4865
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4279
4866
 
4867
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4868
+
4280
4869
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4281
4870
 
4282
4871
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4288,12 +4877,14 @@ var SDK_GLOBAL = 'Vimeo';
4288
4877
  var MATCH_URL = /vimeo\.com\/.+/;
4289
4878
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4290
4879
 
4291
- var Vimeo = /*#__PURE__*/function (_Component) {
4880
+ var Vimeo =
4881
+ /*#__PURE__*/
4882
+ function (_Component) {
4292
4883
  _inherits(Vimeo, _Component);
4293
4884
 
4294
- var _super = _createSuper(Vimeo);
4295
-
4296
4885
  function Vimeo() {
4886
+ var _getPrototypeOf2;
4887
+
4297
4888
  var _this;
4298
4889
 
4299
4890
  _classCallCheck(this, Vimeo);
@@ -4302,7 +4893,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4302
4893
  args[_key] = arguments[_key];
4303
4894
  }
4304
4895
 
4305
- _this = _super.call.apply(_super, [this].concat(args));
4896
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4306
4897
 
4307
4898
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4308
4899
 
@@ -4459,7 +5050,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4459
5050
  overflow: 'hidden',
4460
5051
  display: display
4461
5052
  };
4462
- return /*#__PURE__*/_react["default"].createElement("div", {
5053
+ return _react["default"].createElement("div", {
4463
5054
  key: this.props.url,
4464
5055
  ref: this.ref,
4465
5056
  style: style
@@ -4519,16 +5110,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4519
5110
 
4520
5111
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4521
5112
 
4522
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4523
-
4524
5113
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4525
5114
 
4526
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4527
-
4528
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4529
-
4530
5115
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4531
5116
 
5117
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5118
+
4532
5119
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4533
5120
 
4534
5121
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4541,12 +5128,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4541
5128
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4542
5129
  var PLAYER_ID_PREFIX = 'facebook-player-';
4543
5130
 
4544
- var Facebook = /*#__PURE__*/function (_Component) {
5131
+ var Facebook =
5132
+ /*#__PURE__*/
5133
+ function (_Component) {
4545
5134
  _inherits(Facebook, _Component);
4546
5135
 
4547
- var _super = _createSuper(Facebook);
4548
-
4549
5136
  function Facebook() {
5137
+ var _getPrototypeOf2;
5138
+
4550
5139
  var _this;
4551
5140
 
4552
5141
  _classCallCheck(this, Facebook);
@@ -4555,7 +5144,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4555
5144
  args[_key] = arguments[_key];
4556
5145
  }
4557
5146
 
4558
- _this = _super.call.apply(_super, [this].concat(args));
5147
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4559
5148
 
4560
5149
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4561
5150
 
@@ -4671,7 +5260,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4671
5260
  width: '100%',
4672
5261
  height: '100%'
4673
5262
  };
4674
- return /*#__PURE__*/_react["default"].createElement("div", {
5263
+ return _react["default"].createElement("div", {
4675
5264
  style: style,
4676
5265
  id: this.playerID,
4677
5266
  className: "fb-video",
@@ -4731,16 +5320,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4731
5320
 
4732
5321
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4733
5322
 
4734
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4735
-
4736
5323
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4737
5324
 
4738
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4739
-
4740
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4741
-
4742
5325
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4743
5326
 
5327
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5328
+
4744
5329
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4745
5330
 
4746
5331
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4751,12 +5336,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4751
5336
  var SDK_GLOBAL = 'playerjs';
4752
5337
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4753
5338
 
4754
- var Streamable = /*#__PURE__*/function (_Component) {
5339
+ var Streamable =
5340
+ /*#__PURE__*/
5341
+ function (_Component) {
4755
5342
  _inherits(Streamable, _Component);
4756
5343
 
4757
- var _super = _createSuper(Streamable);
4758
-
4759
5344
  function Streamable() {
5345
+ var _getPrototypeOf2;
5346
+
4760
5347
  var _this;
4761
5348
 
4762
5349
  _classCallCheck(this, Streamable);
@@ -4765,7 +5352,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4765
5352
  args[_key] = arguments[_key];
4766
5353
  }
4767
5354
 
4768
- _this = _super.call.apply(_super, [this].concat(args));
5355
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4769
5356
 
4770
5357
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4771
5358
 
@@ -4885,7 +5472,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4885
5472
  width: '100%',
4886
5473
  height: '100%'
4887
5474
  };
4888
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5475
+ return _react["default"].createElement("iframe", {
4889
5476
  ref: this.ref,
4890
5477
  src: "https://streamable.com/o/".concat(id),
4891
5478
  frameBorder: "0",
@@ -4946,16 +5533,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4946
5533
 
4947
5534
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4948
5535
 
4949
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4950
-
4951
5536
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4952
5537
 
4953
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4954
-
4955
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4956
-
4957
5538
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4958
5539
 
5540
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5541
+
4959
5542
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4960
5543
 
4961
5544
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4966,48 +5549,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4966
5549
  var SDK_GLOBAL = 'Wistia';
4967
5550
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4968
5551
 
4969
- var Wistia = /*#__PURE__*/function (_Component) {
5552
+ var Wistia =
5553
+ /*#__PURE__*/
5554
+ function (_Component) {
4970
5555
  _inherits(Wistia, _Component);
4971
5556
 
4972
- var _super = _createSuper(Wistia);
4973
-
4974
5557
  function Wistia() {
5558
+ var _getPrototypeOf2;
5559
+
4975
5560
  var _this;
4976
5561
 
4977
5562
  _classCallCheck(this, Wistia);
4978
5563
 
4979
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4980
- _args[_key] = arguments[_key];
5564
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5565
+ args[_key] = arguments[_key];
4981
5566
  }
4982
5567
 
4983
- _this = _super.call.apply(_super, [this].concat(_args));
5568
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4984
5569
 
4985
5570
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4986
5571
 
4987
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4988
- var _this$props;
4989
-
4990
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4991
- });
4992
-
4993
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4994
- var _this$props2;
4995
-
4996
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4997
- });
4998
-
4999
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
5000
- var _this$props3;
5001
-
5002
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
5003
- });
5004
-
5005
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
5006
- var _this$props4;
5007
-
5008
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
5009
- });
5010
-
5011
5572
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
5012
5573
  _this.callPlayer('mute');
5013
5574
  });
@@ -5029,13 +5590,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5029
5590
  value: function load(url) {
5030
5591
  var _this2 = this;
5031
5592
 
5032
- var _this$props5 = this.props,
5033
- playing = _this$props5.playing,
5034
- muted = _this$props5.muted,
5035
- controls = _this$props5.controls,
5036
- _onReady = _this$props5.onReady,
5037
- config = _this$props5.config,
5038
- onError = _this$props5.onError;
5593
+ var _this$props = this.props,
5594
+ playing = _this$props.playing,
5595
+ muted = _this$props.muted,
5596
+ controls = _this$props.controls,
5597
+ _onReady = _this$props.onReady,
5598
+ onPlay = _this$props.onPlay,
5599
+ onPause = _this$props.onPause,
5600
+ onSeek = _this$props.onSeek,
5601
+ onEnded = _this$props.onEnded,
5602
+ config = _this$props.config,
5603
+ onError = _this$props.onError;
5039
5604
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5040
5605
  window._wq = window._wq || [];
5041
5606
 
@@ -5052,28 +5617,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5052
5617
 
5053
5618
  _this2.unbind();
5054
5619
 
5055
- _this2.player.bind('play', _this2.onPlay);
5620
+ _this2.player.bind('play', onPlay);
5056
5621
 
5057
- _this2.player.bind('pause', _this2.onPause);
5622
+ _this2.player.bind('pause', onPause);
5058
5623
 
5059
- _this2.player.bind('seek', _this2.onSeek);
5624
+ _this2.player.bind('seek', onSeek);
5060
5625
 
5061
- _this2.player.bind('end', _this2.onEnded);
5626
+ _this2.player.bind('end', onEnded);
5062
5627
 
5063
5628
  _onReady();
5064
5629
  }
5065
5630
  });
5066
5631
  }, onError);
5067
5632
  }
5068
- }, {
5069
- key: "unbind",
5070
- value: function unbind() {
5071
- this.player.unbind('play', this.onPlay);
5072
- this.player.unbind('pause', this.onPause);
5073
- this.player.unbind('seek', this.onSeek);
5074
- this.player.unbind('end', this.onEnded);
5075
- } // Proxy methods to prevent listener leaks
5076
-
5077
5633
  }, {
5078
5634
  key: "play",
5079
5635
  value: function play() {
@@ -5084,6 +5640,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5084
5640
  value: function pause() {
5085
5641
  this.callPlayer('pause');
5086
5642
  }
5643
+ }, {
5644
+ key: "unbind",
5645
+ value: function unbind() {
5646
+ var _this$props2 = this.props,
5647
+ onPlay = _this$props2.onPlay,
5648
+ onPause = _this$props2.onPause,
5649
+ onSeek = _this$props2.onSeek,
5650
+ onEnded = _this$props2.onEnded;
5651
+ this.player.unbind('play', onPlay);
5652
+ this.player.unbind('pause', onPause);
5653
+ this.player.unbind('seek', onSeek);
5654
+ this.player.unbind('end', onEnded);
5655
+ }
5087
5656
  }, {
5088
5657
  key: "stop",
5089
5658
  value: function stop() {
@@ -5129,7 +5698,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5129
5698
  width: '100%',
5130
5699
  height: '100%'
5131
5700
  };
5132
- return /*#__PURE__*/_react["default"].createElement("div", {
5701
+ return _react["default"].createElement("div", {
5133
5702
  key: id,
5134
5703
  className: className,
5135
5704
  style: style
@@ -5189,16 +5758,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5189
5758
 
5190
5759
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5191
5760
 
5192
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5193
-
5194
5761
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5195
5762
 
5196
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5197
-
5198
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5199
-
5200
5763
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5201
5764
 
5765
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5766
+
5202
5767
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5203
5768
 
5204
5769
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5211,12 +5776,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5211
5776
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5212
5777
  var PLAYER_ID_PREFIX = 'twitch-player-';
5213
5778
 
5214
- var Twitch = /*#__PURE__*/function (_Component) {
5779
+ var Twitch =
5780
+ /*#__PURE__*/
5781
+ function (_Component) {
5215
5782
  _inherits(Twitch, _Component);
5216
5783
 
5217
- var _super = _createSuper(Twitch);
5218
-
5219
5784
  function Twitch() {
5785
+ var _getPrototypeOf2;
5786
+
5220
5787
  var _this;
5221
5788
 
5222
5789
  _classCallCheck(this, Twitch);
@@ -5225,7 +5792,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5225
5792
  args[_key] = arguments[_key];
5226
5793
  }
5227
5794
 
5228
- _this = _super.call.apply(_super, [this].concat(args));
5795
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5229
5796
 
5230
5797
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5231
5798
 
@@ -5346,7 +5913,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5346
5913
  width: '100%',
5347
5914
  height: '100%'
5348
5915
  };
5349
- return /*#__PURE__*/_react["default"].createElement("div", {
5916
+ return _react["default"].createElement("div", {
5350
5917
  style: style,
5351
5918
  id: this.playerID
5352
5919
  });
@@ -5399,15 +5966,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5399
5966
 
5400
5967
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5401
5968
 
5402
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5403
-
5404
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5405
-
5406
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5969
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5407
5970
 
5408
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5971
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5409
5972
 
5410
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
5973
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
5411
5974
 
5412
5975
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5413
5976
 
@@ -5417,16 +5980,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5417
5980
 
5418
5981
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5419
5982
 
5420
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5421
-
5422
5983
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5423
5984
 
5424
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5425
-
5426
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5427
-
5428
5985
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5429
5986
 
5987
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5988
+
5430
5989
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5431
5990
 
5432
5991
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5438,12 +5997,14 @@ var SDK_GLOBAL = 'DM';
5438
5997
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5439
5998
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5440
5999
 
5441
- var DailyMotion = /*#__PURE__*/function (_Component) {
6000
+ var DailyMotion =
6001
+ /*#__PURE__*/
6002
+ function (_Component) {
5442
6003
  _inherits(DailyMotion, _Component);
5443
6004
 
5444
- var _super = _createSuper(DailyMotion);
5445
-
5446
6005
  function DailyMotion() {
6006
+ var _getPrototypeOf2;
6007
+
5447
6008
  var _this;
5448
6009
 
5449
6010
  _classCallCheck(this, DailyMotion);
@@ -5452,7 +6013,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5452
6013
  args[_key] = arguments[_key];
5453
6014
  }
5454
6015
 
5455
- _this = _super.call.apply(_super, [this].concat(args));
6016
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5456
6017
 
5457
6018
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5458
6019
 
@@ -5581,9 +6142,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5581
6142
  height: '100%',
5582
6143
  display: display
5583
6144
  };
5584
- return /*#__PURE__*/_react["default"].createElement("div", {
6145
+ return _react["default"].createElement("div", {
5585
6146
  style: style
5586
- }, /*#__PURE__*/_react["default"].createElement("div", {
6147
+ }, _react["default"].createElement("div", {
5587
6148
  ref: this.ref
5588
6149
  }));
5589
6150
  }
@@ -5641,16 +6202,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5641
6202
 
5642
6203
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5643
6204
 
5644
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5645
-
5646
6205
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5647
6206
 
5648
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5649
-
5650
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5651
-
5652
6207
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5653
6208
 
6209
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6210
+
5654
6211
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5655
6212
 
5656
6213
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5661,12 +6218,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5661
6218
  var SDK_GLOBAL = 'Mixcloud';
5662
6219
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5663
6220
 
5664
- var Mixcloud = /*#__PURE__*/function (_Component) {
6221
+ var Mixcloud =
6222
+ /*#__PURE__*/
6223
+ function (_Component) {
5665
6224
  _inherits(Mixcloud, _Component);
5666
6225
 
5667
- var _super = _createSuper(Mixcloud);
5668
-
5669
6226
  function Mixcloud() {
6227
+ var _getPrototypeOf2;
6228
+
5670
6229
  var _this;
5671
6230
 
5672
6231
  _classCallCheck(this, Mixcloud);
@@ -5675,7 +6234,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5675
6234
  args[_key] = arguments[_key];
5676
6235
  }
5677
6236
 
5678
- _this = _super.call.apply(_super, [this].concat(args));
6237
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5679
6238
 
5680
6239
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5681
6240
 
@@ -5778,7 +6337,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5778
6337
  })); // We have to give the iframe a key here to prevent a
5779
6338
  // weird dialog appearing when loading a new track
5780
6339
 
5781
- return /*#__PURE__*/_react["default"].createElement("iframe", {
6340
+ return _react["default"].createElement("iframe", {
5782
6341
  key: id,
5783
6342
  ref: this.ref,
5784
6343
  style: style,
@@ -5838,33 +6397,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5838
6397
 
5839
6398
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5840
6399
 
5841
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5842
-
5843
6400
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5844
6401
 
5845
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5846
-
5847
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5848
-
5849
6402
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5850
6403
 
6404
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6405
+
5851
6406
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5852
6407
 
5853
6408
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5854
6409
 
5855
6410
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5856
6411
 
5857
- function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
5858
-
5859
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5860
-
5861
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5862
-
5863
6412
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5864
6413
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5865
6414
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5866
6415
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5867
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
6416
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5868
6417
  var HLS_GLOBAL = 'Hls';
5869
6418
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5870
6419
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5873,11 +6422,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5873
6422
 
5874
6423
  function canPlay(url) {
5875
6424
  if (url instanceof Array) {
5876
- var _iterator = _createForOfIteratorHelper(url),
5877
- _step;
6425
+ var _iteratorNormalCompletion = true;
6426
+ var _didIteratorError = false;
6427
+ var _iteratorError = undefined;
5878
6428
 
5879
6429
  try {
5880
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6430
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5881
6431
  var item = _step.value;
5882
6432
 
5883
6433
  if (typeof item === 'string' && canPlay(item)) {
@@ -5889,9 +6439,18 @@ function canPlay(url) {
5889
6439
  }
5890
6440
  }
5891
6441
  } catch (err) {
5892
- _iterator.e(err);
6442
+ _didIteratorError = true;
6443
+ _iteratorError = err;
5893
6444
  } finally {
5894
- _iterator.f();
6445
+ try {
6446
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6447
+ _iterator["return"]();
6448
+ }
6449
+ } finally {
6450
+ if (_didIteratorError) {
6451
+ throw _iteratorError;
6452
+ }
6453
+ }
5895
6454
  }
5896
6455
 
5897
6456
  return false;
@@ -5915,12 +6474,14 @@ function canEnablePIP(url) {
5915
6474
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5916
6475
  }
5917
6476
 
5918
- var FilePlayer = /*#__PURE__*/function (_Component) {
6477
+ var FilePlayer =
6478
+ /*#__PURE__*/
6479
+ function (_Component) {
5919
6480
  _inherits(FilePlayer, _Component);
5920
6481
 
5921
- var _super = _createSuper(FilePlayer);
5922
-
5923
6482
  function FilePlayer() {
6483
+ var _getPrototypeOf2;
6484
+
5924
6485
  var _this;
5925
6486
 
5926
6487
  _classCallCheck(this, FilePlayer);
@@ -5929,7 +6490,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5929
6490
  _args[_key] = arguments[_key];
5930
6491
  }
5931
6492
 
5932
- _this = _super.call.apply(_super, [this].concat(_args));
6493
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5933
6494
 
5934
6495
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5935
6496
  var _this$props;
@@ -6016,19 +6577,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6016
6577
 
6017
6578
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6018
6579
  if (typeof source === 'string') {
6019
- return /*#__PURE__*/_react["default"].createElement("source", {
6580
+ return _react["default"].createElement("source", {
6020
6581
  key: index,
6021
6582
  src: source
6022
6583
  });
6023
6584
  }
6024
6585
 
6025
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6586
+ return _react["default"].createElement("source", _extends({
6026
6587
  key: index
6027
6588
  }, source));
6028
6589
  });
6029
6590
 
6030
6591
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6031
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6592
+ return _react["default"].createElement("track", _extends({
6032
6593
  key: index
6033
6594
  }, track));
6034
6595
  });
@@ -6066,10 +6627,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6066
6627
  key: "componentWillUnmount",
6067
6628
  value: function componentWillUnmount() {
6068
6629
  this.removeListeners(this.player);
6069
-
6070
- if (this.hls) {
6071
- this.hls.destroy();
6072
- }
6073
6630
  }
6074
6631
  }, {
6075
6632
  key: "addListeners",
@@ -6200,6 +6757,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6200
6757
  value: function stop() {
6201
6758
  this.player.removeAttribute('src');
6202
6759
 
6760
+ if (this.hls) {
6761
+ this.hls.destroy();
6762
+ }
6763
+
6203
6764
  if (this.dash) {
6204
6765
  this.dash.reset();
6205
6766
  }
@@ -6311,7 +6872,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6311
6872
  width: width === 'auto' ? width : '100%',
6312
6873
  height: height === 'auto' ? height : '100%'
6313
6874
  };
6314
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6875
+ return _react["default"].createElement(Element, _extends({
6315
6876
  ref: this.ref,
6316
6877
  src: this.getSource(url),
6317
6878
  style: style,
@@ -6401,16 +6962,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6401
6962
 
6402
6963
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6403
6964
 
6404
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6405
-
6406
6965
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6407
6966
 
6408
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6409
-
6410
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
6411
-
6412
6967
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6413
6968
 
6969
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6970
+
6414
6971
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
6415
6972
 
6416
6973
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6419,12 +6976,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6419
6976
 
6420
6977
  var ICON_SIZE = '64px';
6421
6978
 
6422
- var Preview = /*#__PURE__*/function (_Component) {
6979
+ var Preview =
6980
+ /*#__PURE__*/
6981
+ function (_Component) {
6423
6982
  _inherits(Preview, _Component);
6424
6983
 
6425
- var _super = _createSuper(Preview);
6426
-
6427
6984
  function Preview() {
6985
+ var _getPrototypeOf2;
6986
+
6428
6987
  var _this;
6429
6988
 
6430
6989
  _classCallCheck(this, Preview);
@@ -6433,7 +6992,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6433
6992
  args[_key] = arguments[_key];
6434
6993
  }
6435
6994
 
6436
- _this = _super.call.apply(_super, [this].concat(args));
6995
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6437
6996
 
6438
6997
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6439
6998
 
@@ -6531,15 +7090,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6531
7090
  }
6532
7091
  };
6533
7092
 
6534
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
7093
+ var defaultPlayIcon = _react["default"].createElement("div", {
6535
7094
  style: styles.shadow,
6536
7095
  className: "react-player__shadow"
6537
- }, /*#__PURE__*/_react["default"].createElement("div", {
7096
+ }, _react["default"].createElement("div", {
6538
7097
  style: styles.playIcon,
6539
7098
  className: "react-player__play-icon"
6540
7099
  }));
6541
7100
 
6542
- return /*#__PURE__*/_react["default"].createElement("div", {
7101
+ return _react["default"].createElement("div", {
6543
7102
  style: styles.preview,
6544
7103
  className: "react-player__preview",
6545
7104
  onClick: onClick
@@ -6576,12 +7135,6 @@ var _Player = _interopRequireDefault(Player_1);
6576
7135
 
6577
7136
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6578
7137
 
6579
- function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
6580
-
6581
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6582
-
6583
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6584
-
6585
7138
  var PRELOAD_PLAYERS = [{
6586
7139
  Player: YouTube_1.YouTube,
6587
7140
  configKey: 'youtube',
@@ -6602,16 +7155,16 @@ var PRELOAD_PLAYERS = [{
6602
7155
 
6603
7156
  function renderPreloadPlayers(url, controls, config) {
6604
7157
  var players = [];
6605
-
6606
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6607
- _step;
7158
+ var _iteratorNormalCompletion = true;
7159
+ var _didIteratorError = false;
7160
+ var _iteratorError = undefined;
6608
7161
 
6609
7162
  try {
6610
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
7163
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6611
7164
  var player = _step.value;
6612
7165
 
6613
7166
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6614
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
7167
+ players.push(_react["default"].createElement(_Player["default"], {
6615
7168
  key: player.Player.displayName,
6616
7169
  activePlayer: player.Player,
6617
7170
  url: player.url,
@@ -6623,9 +7176,18 @@ function renderPreloadPlayers(url, controls, config) {
6623
7176
  }
6624
7177
  }
6625
7178
  } catch (err) {
6626
- _iterator.e(err);
7179
+ _didIteratorError = true;
7180
+ _iteratorError = err;
6627
7181
  } finally {
6628
- _iterator.f();
7182
+ try {
7183
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
7184
+ _iterator["return"]();
7185
+ }
7186
+ } finally {
7187
+ if (_didIteratorError) {
7188
+ throw _iteratorError;
7189
+ }
7190
+ }
6629
7191
  }
6630
7192
 
6631
7193
  return players;
@@ -6749,17 +7311,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6749
7311
 
6750
7312
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6751
7313
 
6752
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6753
-
6754
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7314
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6755
7315
 
6756
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7316
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6757
7317
 
6758
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
7318
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6759
7319
 
6760
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6761
-
6762
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
7320
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
6763
7321
 
6764
7322
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6765
7323
 
@@ -6767,16 +7325,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6767
7325
 
6768
7326
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6769
7327
 
6770
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6771
-
6772
7328
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6773
7329
 
6774
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6775
-
6776
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
6777
-
6778
7330
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6779
7331
 
7332
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
7333
+
6780
7334
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
6781
7335
 
6782
7336
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6786,12 +7340,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6786
7340
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6787
7341
  var customPlayers = [];
6788
7342
 
6789
- var ReactPlayer = /*#__PURE__*/function (_Component) {
7343
+ var ReactPlayer =
7344
+ /*#__PURE__*/
7345
+ function (_Component) {
6790
7346
  _inherits(ReactPlayer, _Component);
6791
7347
 
6792
- var _super = _createSuper(ReactPlayer);
6793
-
6794
7348
  function ReactPlayer() {
7349
+ var _getPrototypeOf2;
7350
+
6795
7351
  var _this;
6796
7352
 
6797
7353
  _classCallCheck(this, ReactPlayer);
@@ -6800,7 +7356,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6800
7356
  args[_key] = arguments[_key];
6801
7357
  }
6802
7358
 
6803
- _this = _super.call.apply(_super, [this].concat(args));
7359
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6804
7360
 
6805
7361
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6806
7362
 
@@ -6911,7 +7467,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6911
7467
  key: "renderActivePlayer",
6912
7468
  value: function renderActivePlayer(url, activePlayer) {
6913
7469
  if (!url) return null;
6914
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
7470
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6915
7471
  key: activePlayer.displayName,
6916
7472
  ref: this.activePlayerRef,
6917
7473
  config: this.config,
@@ -6948,14 +7504,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6948
7504
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6949
7505
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6950
7506
 
6951
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
7507
+ var preview = _react["default"].createElement(_Preview["default"], {
6952
7508
  url: url,
6953
7509
  light: light,
6954
7510
  playIcon: playIcon,
6955
7511
  onClick: this.handleClickPreview
6956
7512
  });
6957
7513
 
6958
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
7514
+ return _react["default"].createElement(Wrapper, _extends({
6959
7515
  ref: this.wrapperRef,
6960
7516
  style: _objectSpread({}, style, {
6961
7517
  width: width,
@@ -7277,8 +7833,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7277
7833
  var duration = player.getDuration();
7278
7834
  var queue = Math.floor(duration / 10);
7279
7835
  var segment = Math.floor(current / queue);
7280
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
7281
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
7836
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
7837
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
7282
7838
  //autoplay
7283
7839
 
7284
7840
  //Small pause before starting next video
@@ -7298,8 +7854,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7298
7854
  var queue = Math.floor(duration / 10);
7299
7855
  var segment = Math.floor(current / queue);
7300
7856
 
7301
- Beam.report_beam_video('End', main_18, duration, current, segment);
7302
- Segment.report_video_event('Video End', main_18, duration, current, segment);
7857
+ Beam.report_beam_video('End', main_16, duration, current, segment);
7858
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
7303
7859
  setEndReported(true);
7304
7860
  clearInterval(intervalID);
7305
7861
  }
@@ -7349,8 +7905,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7349
7905
  var queue = Math.floor(duration / 10);
7350
7906
  var segment = Math.floor(current / queue);
7351
7907
  if (!queueProgress.includes(segment)) {
7352
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
7353
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
7908
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
7909
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
7354
7910
  queueProgress.push(segment);
7355
7911
  }
7356
7912
  };
@@ -7363,8 +7919,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7363
7919
  var queue = Math.floor(duration / 10);
7364
7920
  var segment = Math.floor(current / queue);
7365
7921
 
7366
- Beam.report_beam_video('Play', main_18, duration, current, segment);
7367
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
7922
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
7923
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
7368
7924
 
7369
7925
  if (!playReported) {
7370
7926
  setPlayReported(true);
@@ -7382,8 +7938,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7382
7938
  var queue = Math.floor(duration / 10);
7383
7939
  var segment = Math.floor(current / queue);
7384
7940
 
7385
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
7386
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
7941
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
7942
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
7387
7943
  };
7388
7944
 
7389
7945
  // Youtube Options
@@ -7501,7 +8057,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7501
8057
  React__default.createElement(
7502
8058
  'div',
7503
8059
  { className: 'vid-text' },
7504
- Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
8060
+ Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7505
8061
  ),
7506
8062
  React__default.createElement(
7507
8063
  'style',
@@ -7819,7 +8375,7 @@ var Poll$1 = function Poll(_ref) {
7819
8375
  );
7820
8376
  };
7821
8377
 
7822
- var numberOfPaginations = main_42 ? 4 : 10;
8378
+ var numberOfPaginations = main_35 ? 4 : 10;
7823
8379
 
7824
8380
  var Quiz = function Quiz(_ref) {
7825
8381
  var quizzes = _ref.quizzes,
@@ -7939,7 +8495,7 @@ var Quiz = function Quiz(_ref) {
7939
8495
  var renderPagination = function renderPagination() {
7940
8496
  return React__default.createElement(
7941
8497
  Pagination$1,
7942
- { className: 'p-0 m-0', size: main_42 && 'sm' },
8498
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7943
8499
  React__default.createElement(Pagination$1.First, { onClick: function onClick() {
7944
8500
  return changePage('first');
7945
8501
  }, disabled: currentPage === 1 }),
@@ -8116,7 +8672,6 @@ var Slideshow$1 = function Slideshow(_ref) {
8116
8672
  getSerializers = _ref.getSerializers;
8117
8673
 
8118
8674
  var router = useRouter();
8119
- var carouselRef = useRef(null);
8120
8675
  var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
8121
8676
 
8122
8677
  var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
@@ -8143,14 +8698,12 @@ var Slideshow$1 = function Slideshow(_ref) {
8143
8698
  var pageNumber = selectedIndex + 1;
8144
8699
  var href = '/view/' + router.query.url + '?page=' + pageNumber;
8145
8700
  router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
8146
- if (carouselRef) {
8147
- carouselRef.current.scrollIntoView();
8148
- }
8701
+ setCarouselIndex(selectedIndex);
8149
8702
  };
8150
8703
 
8151
8704
  return React__default.createElement(
8152
8705
  'div',
8153
- { ref: carouselRef, className: 'mt-3 mb-4' },
8706
+ { className: 'mt-3 mb-4' },
8154
8707
  React__default.createElement(
8155
8708
  Carousel,
8156
8709
  { activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
@@ -8163,15 +8716,24 @@ var Slideshow$1 = function Slideshow(_ref) {
8163
8716
  'a',
8164
8717
  { href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
8165
8718
  React__default.createElement(
8166
- LazyLoad,
8167
- null,
8719
+ 'div',
8720
+ { className: 'embed-responsive embed-responsive-slide' },
8168
8721
  React__default.createElement(
8169
- 'picture',
8722
+ LazyLoad,
8170
8723
  null,
8171
- React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8172
- React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8173
- React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8174
- React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8724
+ React__default.createElement(
8725
+ 'picture',
8726
+ null,
8727
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8728
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8729
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8730
+ React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
8731
+ )
8732
+ ),
8733
+ React__default.createElement(
8734
+ 'style',
8735
+ { jsx: 'true' },
8736
+ '\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
8175
8737
  )
8176
8738
  )
8177
8739
  ),
@@ -8259,7 +8821,7 @@ var MultiMedia = function MultiMedia(props) {
8259
8821
  { xs: 12, md: 12 / medias.length, key: media._key },
8260
8822
  React__default.createElement(
8261
8823
  'a',
8262
- _extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8824
+ _extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8263
8825
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8264
8826
  React__default.createElement(
8265
8827
  'div',
@@ -8554,7 +9116,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8554
9116
 
8555
9117
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8556
9118
  if (biography) {
8557
- return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
9119
+ return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
8558
9120
  }
8559
9121
  };
8560
9122
 
@@ -8640,7 +9202,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8640
9202
  //console.log('useLayoutEffect')
8641
9203
  if (!firstLoad) {
8642
9204
  setUpArrowClicked(false);
8643
- if (main_43) {
9205
+ if (main_36) {
8644
9206
  grabLoadedAds();
8645
9207
  } else {
8646
9208
  scrollToArticle();
@@ -8664,7 +9226,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8664
9226
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8665
9227
  if (pageview) pageview(path);
8666
9228
 
8667
- if (!main_43) {
9229
+ if (!main_36) {
8668
9230
  lib_3.getGoogletag().then(function (googletag) {
8669
9231
  if (window.googletag && googletag.pubadsReady) {
8670
9232
  lib_3.refresh();
@@ -8672,7 +9234,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8672
9234
  });
8673
9235
  }
8674
9236
  //Refresh leaderboard ad on mobile
8675
- if (main_43) {
9237
+ if (main_36) {
8676
9238
  var leaderboardSlotId = '';
8677
9239
  lib_3.getGoogletag().then(function (googletag) {
8678
9240
  if (window.googletag && googletag.pubadsReady) {
@@ -8741,7 +9303,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8741
9303
  React__default.createElement(
8742
9304
  'div',
8743
9305
  { className: 'ad-box', style: { textAlign: 'center' } },
8744
- main_43 && Ads.map(function (ad, index) {
9306
+ main_36 && Ads.map(function (ad, index) {
8745
9307
  if (index === 0) {
8746
9308
  return React__default.createElement(
8747
9309
  'div',
@@ -8832,7 +9394,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8832
9394
  React__default.createElement(
8833
9395
  'div',
8834
9396
  { className: 'mt-2 mb-2' },
8835
- React__default.createElement(BlockContent, _extends({
9397
+ React__default.createElement(BlockContent, _extends$1({
8836
9398
  serializers: getSerializers,
8837
9399
  videoAccountIDs: accountIDs,
8838
9400
  blocks: article.text,
@@ -8863,7 +9425,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8863
9425
  React__default.createElement(
8864
9426
  'div',
8865
9427
  { className: 'ad-box', style: { textAlign: 'center' } },
8866
- main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
9428
+ main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8867
9429
  if (innerIndex === 0) {
8868
9430
  return React__default.createElement(
8869
9431
  'div',
@@ -8950,7 +9512,7 @@ var FigureImage = React__default.memo(function (_ref2) {
8950
9512
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8951
9513
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8952
9514
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8953
- React__default.createElement('img', _extends({
9515
+ React__default.createElement('img', _extends$1({
8954
9516
  style: figureImageStyle,
8955
9517
  className: 'figure-image',
8956
9518
  src: urlFor({ source: node, client: client }),
@@ -9126,7 +9688,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
9126
9688
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9127
9689
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9128
9690
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9129
- React__default.createElement('img', _extends({
9691
+ React__default.createElement('img', _extends$1({
9130
9692
  'images-count': imagesCount,
9131
9693
  className: 'multi-figure-image',
9132
9694
  src: urlFor({ source: image, client: client }),
@@ -9191,7 +9753,7 @@ var MultiFigure = function MultiFigure(props) {
9191
9753
  { xs: 12, md: 12 / images.length, key: index },
9192
9754
  image.link ? React__default.createElement(
9193
9755
  'a',
9194
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9756
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9195
9757
  React__default.createElement(
9196
9758
  'div',
9197
9759
  { className: 'multi-figure-image-container' },
@@ -9230,6 +9792,8 @@ var MultiFigure = function MultiFigure(props) {
9230
9792
  return null;
9231
9793
  };
9232
9794
 
9795
+ var offsetHeightBuffer = 20;
9796
+
9233
9797
  var AnchorLinkElement = function AnchorLinkElement(props) {
9234
9798
  var articleId = props.articleId,
9235
9799
  _props$node = props.node,
@@ -9240,12 +9804,45 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
9240
9804
  getSerializers = props.getSerializers;
9241
9805
 
9242
9806
 
9807
+ if (typeof window !== 'undefined' && window.history && window.history.scrollRestoration !== 'manual') {
9808
+ window.history.scrollRestoration = 'manual';
9809
+ }
9810
+
9243
9811
  var elementId = articleId ? id + '-' + articleId : id;
9244
9812
 
9813
+ var _useState = useState(100),
9814
+ _useState2 = _slicedToArray(_useState, 2),
9815
+ offsetHeight = _useState2[0],
9816
+ setOffsetHeight = _useState2[1];
9817
+
9818
+ useEffect(function () {
9819
+ var header = document.querySelector('header');
9820
+ if (header) setOffsetHeight(header.offsetHeight);
9821
+ }, []);
9822
+
9823
+ // useEffect(() => {
9824
+ // const timer = setTimeout(() => {
9825
+ // const hash = window.location.hash
9826
+ // if (hash) {
9827
+ // const elementId = hash.slice(1)
9828
+ // const element = document.getElementById(elementId)
9829
+ // element && element.scrollIntoView()
9830
+ // }
9831
+ // }, 3000)
9832
+ // return () => {
9833
+ // clearTimeout(timer)
9834
+ // }
9835
+ // }, [])
9836
+
9245
9837
  return React__default.createElement(
9246
9838
  'div',
9247
9839
  { id: elementId },
9248
- React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
9840
+ React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
9841
+ React__default.createElement(
9842
+ 'style',
9843
+ { jsx: 'true' },
9844
+ '\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
9845
+ )
9249
9846
  );
9250
9847
  };
9251
9848
 
@@ -9274,7 +9871,7 @@ exports.__esModule = true;
9274
9871
 
9275
9872
 
9276
9873
 
9277
- var _extends3 = _interopRequireDefault(_extends$1);
9874
+ var _extends3 = _interopRequireDefault(_extends$2);
9278
9875
 
9279
9876
 
9280
9877
 
@@ -9290,7 +9887,7 @@ var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorRetu
9290
9887
 
9291
9888
 
9292
9889
 
9293
- var _inherits3 = _interopRequireDefault(inherits);
9890
+ var _inherits3 = _interopRequireDefault(inherits$2);
9294
9891
 
9295
9892
 
9296
9893
 
@@ -9587,7 +10184,7 @@ var BlockTable = function BlockTable(props) {
9587
10184
  return React__default.createElement(
9588
10185
  'div',
9589
10186
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9590
- React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
10187
+ React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
9591
10188
  );
9592
10189
  })
9593
10190
  );