@mjhls/mjh-framework 1.0.720-navigation-scroll-fix-v3 → 1.0.720

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 (279) hide show
  1. package/dist/cjs/AD.js +10 -9
  2. package/dist/cjs/AD300x250.js +25 -24
  3. package/dist/cjs/AD300x250x600.js +25 -24
  4. package/dist/cjs/AD728x90.js +28 -27
  5. package/dist/cjs/ADFloatingFooter.js +27 -26
  6. package/dist/cjs/ADFooter.js +15 -14
  7. package/dist/cjs/ADGutter.js +27 -26
  8. package/dist/cjs/{ADInfeed-5a561d7c.js → ADInfeed-2c7a6dd8.js} +13 -11
  9. package/dist/cjs/ADSkyscraper.js +27 -26
  10. package/dist/cjs/ADSponsoredResources.js +27 -26
  11. package/dist/cjs/ADWebcast.js +27 -26
  12. package/dist/cjs/ADWelcome.js +31 -30
  13. package/dist/cjs/{ADlgInfeed-c50f81d4.js → ADlgInfeed-fb101797.js} +9 -8
  14. package/dist/cjs/AccordionPanel.js +31 -29
  15. package/dist/cjs/AdSlot.js +32 -31
  16. package/dist/cjs/AdSlotsProvider.js +17 -16
  17. package/dist/cjs/AlphabeticList.js +25 -24
  18. package/dist/cjs/ArticleCarousel.js +24 -23
  19. package/dist/cjs/ArticleProgramLandingPage.js +55 -54
  20. package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
  21. package/dist/cjs/ArticleSeriesListing.js +60 -59
  22. package/dist/cjs/Auth.js +816 -530
  23. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
  24. package/dist/cjs/Beam.js +9 -9
  25. package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-eca358e4.js} +25 -24
  26. package/dist/cjs/Breadcrumbs.js +29 -27
  27. package/dist/cjs/CMEDeck.js +83 -83
  28. package/dist/cjs/Column1.js +14 -11
  29. package/dist/cjs/Column2.js +35 -32
  30. package/dist/cjs/Column3.js +58 -55
  31. package/dist/cjs/ConferenceArticleCard.js +23 -22
  32. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  33. package/dist/cjs/DeckContent.js +98 -94
  34. package/dist/cjs/DeckQueue.js +90 -86
  35. package/dist/cjs/{Dfp-ce7ac168.js → Dfp-a863cf48.js} +31 -30
  36. package/dist/cjs/EventsDeck.js +138 -131
  37. package/dist/cjs/ExternalResources.js +77 -76
  38. package/dist/cjs/Feature.js +27 -25
  39. package/dist/cjs/ForbesHero.js +41 -40
  40. package/dist/cjs/GridContent.js +181 -177
  41. package/dist/cjs/GridHero.js +43 -42
  42. package/dist/cjs/GroupDeck.js +59 -58
  43. package/dist/cjs/HamMagazine.js +142 -139
  44. package/dist/cjs/Header.js +13 -11
  45. package/dist/cjs/Hero.js +13 -12
  46. package/dist/cjs/HighlightenVideo.js +18 -17
  47. package/dist/cjs/HorizontalArticleListing.js +69 -68
  48. package/dist/cjs/HorizontalHero.js +26 -25
  49. package/dist/cjs/IssueContentDeck.js +77 -72
  50. package/dist/cjs/IssueDeck.js +75 -70
  51. package/dist/cjs/IssueLanding.js +41 -40
  52. package/dist/cjs/LeftNav.js +38 -36
  53. package/dist/cjs/MasterDeck.js +72 -71
  54. package/dist/cjs/NavDvm.js +80 -75
  55. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  56. package/dist/cjs/NavMagazine.js +143 -138
  57. package/dist/cjs/NavNative.js +123 -115
  58. package/dist/cjs/NavNormal.js +53 -48
  59. package/dist/cjs/OncliveHero.js +20 -20
  60. package/dist/cjs/OncliveLargeHero.js +67 -66
  61. package/dist/cjs/PageFilter.js +15 -14
  62. package/dist/cjs/PartnerDetailListing.js +106 -105
  63. package/dist/cjs/PdfDownload.js +9 -8
  64. package/dist/cjs/PopUpModal.js +21 -19
  65. package/dist/cjs/PublicationDeck.js +66 -61
  66. package/dist/cjs/PublicationLanding.js +78 -74
  67. package/dist/cjs/QueueDeckExpanded.js +292 -292
  68. package/dist/cjs/RecentNews.js +24 -23
  69. package/dist/cjs/RelatedContent.js +25 -24
  70. package/dist/cjs/RelatedTopicsDropdown.js +22 -19
  71. package/dist/cjs/RolesDeck.js +32 -27
  72. package/dist/cjs/Search.js +22 -18
  73. package/dist/cjs/Segment.js +7 -7
  74. package/dist/cjs/SetCookie.js +1 -1
  75. package/dist/cjs/SideFooter.js +36 -35
  76. package/dist/cjs/SocialIcons.js +10 -9
  77. package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
  78. package/dist/cjs/SocialShare.js +31 -29
  79. package/dist/cjs/TaxonomyCard.js +62 -57
  80. package/dist/cjs/TaxonomyDescription.js +52 -51
  81. package/dist/cjs/TemplateNormal.js +73 -72
  82. package/dist/cjs/ThumbnailCard.js +22 -20
  83. package/dist/cjs/Ustream.js +27 -26
  84. package/dist/cjs/VerticalHero.js +18 -17
  85. package/dist/cjs/VideoProgramLandingPage.js +74 -70
  86. package/dist/cjs/VideoSeriesCard.js +33 -32
  87. package/dist/cjs/VideoSeriesFilter.js +19 -19
  88. package/dist/cjs/VideoSeriesLandingPage.js +48 -47
  89. package/dist/cjs/VideoSeriesListing.js +75 -74
  90. package/dist/cjs/View.js +228 -225
  91. package/dist/cjs/YahooHero.js +40 -39
  92. package/dist/cjs/YoutubeGroup.js +63 -62
  93. package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
  94. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
  95. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
  96. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
  97. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
  98. package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
  99. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
  100. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  101. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
  102. package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
  103. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
  104. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  105. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
  106. package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
  107. package/dist/cjs/getRelatedArticle.js +424 -13
  108. package/dist/cjs/getSerializers.js +42 -42
  109. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-497b581d.js} +2 -2
  110. package/dist/cjs/getTargeting.js +7 -7
  111. package/dist/cjs/iconBase-68959171.js +0 -3
  112. package/dist/cjs/{index-a2ecf598.js → index-3ce0ae25.js} +487 -476
  113. package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
  114. package/dist/cjs/{index-8bf6c863.js → index-5ad2b070.js} +30 -48
  115. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  116. package/dist/cjs/index-bd6c9f56.js +211 -0
  117. package/dist/cjs/{index-39beccb3.js → index-d48b231c.js} +29 -24
  118. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  119. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  120. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  121. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  122. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  123. package/dist/cjs/index.js +133 -133
  124. package/dist/cjs/{inherits-513d81cd.js → inherits-2eb23889.js} +8 -8
  125. package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
  126. package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
  127. package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
  128. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  129. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  130. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
  131. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  132. package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
  133. package/dist/cjs/timeDifferenceCalc.js +1 -1
  134. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
  135. package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
  136. package/dist/cjs/urlFor.js +2 -2
  137. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  138. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  139. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
  140. package/dist/esm/AD.js +7 -7
  141. package/dist/esm/AD300x250.js +21 -21
  142. package/dist/esm/AD300x250x600.js +21 -21
  143. package/dist/esm/AD728x90.js +24 -24
  144. package/dist/esm/ADFloatingFooter.js +23 -23
  145. package/dist/esm/ADFooter.js +11 -11
  146. package/dist/esm/ADGutter.js +23 -23
  147. package/dist/esm/{ADInfeed-bb62ee44.js → ADInfeed-3ee501b9.js} +7 -7
  148. package/dist/esm/ADSkyscraper.js +23 -23
  149. package/dist/esm/ADSponsoredResources.js +23 -23
  150. package/dist/esm/ADWebcast.js +23 -23
  151. package/dist/esm/ADWelcome.js +27 -27
  152. package/dist/esm/{ADlgInfeed-ef0a892e.js → ADlgInfeed-0bf06b17.js} +6 -6
  153. package/dist/esm/AccordionPanel.js +24 -24
  154. package/dist/esm/AdSlot.js +23 -23
  155. package/dist/esm/AdSlotsProvider.js +13 -13
  156. package/dist/esm/AlphabeticList.js +21 -21
  157. package/dist/esm/ArticleCarousel.js +20 -20
  158. package/dist/esm/ArticleProgramLandingPage.js +51 -51
  159. package/dist/esm/ArticleSeriesLandingPage.js +35 -35
  160. package/dist/esm/ArticleSeriesListing.js +54 -54
  161. package/dist/esm/Auth.js +797 -515
  162. package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
  163. package/dist/esm/Beam.js +9 -9
  164. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d8cd739c.js} +4 -4
  165. package/dist/esm/Breadcrumbs.js +17 -17
  166. package/dist/esm/CMEDeck.js +79 -79
  167. package/dist/esm/Column1.js +5 -5
  168. package/dist/esm/Column2.js +26 -26
  169. package/dist/esm/Column3.js +48 -48
  170. package/dist/esm/ConferenceArticleCard.js +18 -18
  171. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  172. package/dist/esm/DeckContent.js +76 -76
  173. package/dist/esm/DeckQueue.js +64 -64
  174. package/dist/esm/{Dfp-e9a07597.js → Dfp-5d779279.js} +20 -20
  175. package/dist/esm/EventsDeck.js +84 -84
  176. package/dist/esm/ExternalResources.js +70 -70
  177. package/dist/esm/Feature.js +18 -18
  178. package/dist/esm/ForbesHero.js +34 -34
  179. package/dist/esm/GridContent.js +139 -139
  180. package/dist/esm/GridHero.js +36 -36
  181. package/dist/esm/GroupDeck.js +46 -46
  182. package/dist/esm/HamMagazine.js +111 -113
  183. package/dist/esm/Header.js +7 -7
  184. package/dist/esm/Hero.js +9 -9
  185. package/dist/esm/HighlightenVideo.js +14 -14
  186. package/dist/esm/HorizontalArticleListing.js +65 -65
  187. package/dist/esm/HorizontalHero.js +21 -21
  188. package/dist/esm/IssueContentDeck.js +49 -49
  189. package/dist/esm/IssueDeck.js +46 -46
  190. package/dist/esm/IssueLanding.js +37 -37
  191. package/dist/esm/LeftNav.js +32 -32
  192. package/dist/esm/MasterDeck.js +65 -65
  193. package/dist/esm/NavDvm.js +57 -57
  194. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  195. package/dist/esm/NavMagazine.js +114 -114
  196. package/dist/esm/NavNative.js +91 -91
  197. package/dist/esm/NavNormal.js +36 -36
  198. package/dist/esm/OncliveHero.js +16 -17
  199. package/dist/esm/OncliveLargeHero.js +59 -59
  200. package/dist/esm/PageFilter.js +12 -12
  201. package/dist/esm/PartnerDetailListing.js +101 -101
  202. package/dist/esm/PdfDownload.js +6 -6
  203. package/dist/esm/PopUpModal.js +14 -14
  204. package/dist/esm/PublicationDeck.js +38 -38
  205. package/dist/esm/PublicationLanding.js +50 -50
  206. package/dist/esm/QueueDeckExpanded.js +272 -272
  207. package/dist/esm/RecentNews.js +20 -20
  208. package/dist/esm/RelatedContent.js +19 -19
  209. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  210. package/dist/esm/RolesDeck.js +13 -13
  211. package/dist/esm/Search.js +12 -12
  212. package/dist/esm/Segment.js +7 -7
  213. package/dist/esm/SetCookie.js +1 -1
  214. package/dist/esm/SideFooter.js +31 -31
  215. package/dist/esm/SocialIcons.js +7 -7
  216. package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
  217. package/dist/esm/SocialShare.js +25 -25
  218. package/dist/esm/TaxonomyCard.js +41 -41
  219. package/dist/esm/TaxonomyDescription.js +46 -46
  220. package/dist/esm/TemplateNormal.js +66 -66
  221. package/dist/esm/ThumbnailCard.js +13 -13
  222. package/dist/esm/Ustream.js +23 -23
  223. package/dist/esm/VerticalHero.js +13 -13
  224. package/dist/esm/VideoProgramLandingPage.js +60 -60
  225. package/dist/esm/VideoSeriesCard.js +24 -24
  226. package/dist/esm/VideoSeriesFilter.js +16 -16
  227. package/dist/esm/VideoSeriesLandingPage.js +39 -39
  228. package/dist/esm/VideoSeriesListing.js +68 -68
  229. package/dist/esm/View.js +215 -216
  230. package/dist/esm/YahooHero.js +34 -34
  231. package/dist/esm/YoutubeGroup.js +46 -46
  232. package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
  233. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
  234. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
  235. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
  236. package/dist/esm/{_set-species-3f8319f5.js → _set-species-494ed292.js} +4 -4
  237. package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
  238. package/dist/esm/{asyncToGenerator-502f13b4.js → asyncToGenerator-2bd4099a.js} +8 -8
  239. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  240. package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
  241. package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
  242. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
  243. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  244. package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
  245. package/dist/esm/{extends-eb69e8ac.js → extends-31d65aba.js} +1 -1
  246. package/dist/esm/getRelatedArticle.js +424 -13
  247. package/dist/esm/getSerializers.js +42 -42
  248. package/dist/esm/{getTargeting-7211f12c.js → getTargeting-2d402d66.js} +2 -2
  249. package/dist/esm/getTargeting.js +7 -7
  250. package/dist/esm/{index-3849e3fe.js → index-3f5c03b2.js} +29 -24
  251. package/dist/esm/{index-a9e53f80.js → index-669ff425.js} +24 -43
  252. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  253. package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
  254. package/dist/esm/index-db3bb315.js +207 -0
  255. package/dist/esm/{index-2749e7d8.js → index-f98ea5e2.js} +421 -417
  256. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  257. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  258. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  259. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  260. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  261. package/dist/esm/index.js +111 -111
  262. package/dist/esm/{inherits-fb9b6e8f.js → inherits-5906fbea.js} +5 -5
  263. package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
  264. package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
  265. package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
  266. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  267. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  268. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
  269. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  270. package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
  271. package/dist/esm/timeDifferenceCalc.js +1 -1
  272. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
  273. package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
  274. package/dist/esm/urlFor.js +1 -1
  275. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  276. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  277. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
  278. package/package.json +3 -3
  279. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/cjs/Auth.js CHANGED
@@ -2,30 +2,35 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
8
- require('./_to-object-329a650b.js');
9
- require('./es6.string.iterator-cc0bbaa4.js');
10
- require('./_library-dd23b178.js');
11
- require('./_iter-detect-60b2f026.js');
12
- require('./core.get-iterator-method-f62321d4.js');
13
- require('./_object-pie-68c5bcbc.js');
14
- var _extends = require('./extends-60837c34.js');
15
- require('./web.dom.iterable-a0e279c1.js');
5
+ var asyncToGenerator = require('./asyncToGenerator-2edcb6ad.js');
6
+ var stringify = require('./stringify-01cf47f7.js');
7
+ var slicedToArray = require('./slicedToArray-db24842a.js');
16
8
  var React = require('react');
17
- var React__default = _interopDefault(React);
18
9
  var Router = require('next/router');
19
- var Router__default = _interopDefault(Router);
20
- var stringify = require('./stringify-7c5aff47.js');
21
- var slicedToArray = require('./slicedToArray-8f385299.js');
22
- var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
23
- require('./_set-species-f92c67c5.js');
10
+ var _extends = require('./extends-1e24fc8d.js');
24
11
  var reactBootstrap = require('react-bootstrap');
25
- var util = require('./util-f2c1b65b.js');
26
- var useSWR = _interopDefault(require('swr'));
27
- var Local = _interopDefault(require('passport-local'));
28
- var mysql = _interopDefault(require('mysql'));
12
+ var useSWR = require('swr');
13
+ var index = require('./index-bd6c9f56.js');
14
+ var Local = require('passport-local');
15
+ var mysql = require('mysql');
16
+ var util = require('./util-6f784d85.js');
17
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
18
+ require('./es6.string.iterator-20d42c53.js');
19
+ require('./_to-object-821a2927.js');
20
+ require('./web.dom.iterable-4480325a.js');
21
+ require('./_library-dd23b178.js');
22
+ require('./core.get-iterator-method-b4615fd3.js');
23
+ require('./_set-species-a8cfdb84.js');
24
+ require('./_iter-detect-2613ffa1.js');
25
+ require('./_object-pie-68c5bcbc.js');
26
+
27
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
28
+
29
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
30
+ var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
31
+ var useSWR__default = /*#__PURE__*/_interopDefaultLegacy(useSWR);
32
+ var Local__default = /*#__PURE__*/_interopDefaultLegacy(Local);
33
+ var mysql__default = /*#__PURE__*/_interopDefaultLegacy(mysql);
29
34
 
30
35
  var returnFormField = function returnFormField(_ref) {
31
36
  var name = _ref.name,
@@ -64,21 +69,21 @@ var returnFormField = function returnFormField(_ref) {
64
69
  }
65
70
 
66
71
  if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
67
- return React__default.createElement(
72
+ return React__default['default'].createElement(
68
73
  reactBootstrap.Form.Group,
69
74
  _extends._extends({}, opts, { controlId: name }),
70
- React__default.createElement(
75
+ React__default['default'].createElement(
71
76
  reactBootstrap.Form.Label,
72
77
  { kye: name + '_label' },
73
78
  label,
74
- required && React__default.createElement(
79
+ required && React__default['default'].createElement(
75
80
  'span',
76
81
  { style: { color: 'red' } },
77
82
  '*'
78
83
  )
79
84
  ),
80
- React__default.createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
81
- React__default.createElement(
85
+ React__default['default'].createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
86
+ React__default['default'].createElement(
82
87
  reactBootstrap.Form.Control.Feedback,
83
88
  { key: name + '_feedback', type: 'invalid' },
84
89
  errors[name]
@@ -86,28 +91,28 @@ var returnFormField = function returnFormField(_ref) {
86
91
  );
87
92
  }
88
93
  if (type == 'select') {
89
- return React__default.createElement(
94
+ return React__default['default'].createElement(
90
95
  reactBootstrap.Form.Group,
91
96
  _extends._extends({}, opts, { key: name, controlId: name }),
92
- React__default.createElement(
97
+ React__default['default'].createElement(
93
98
  reactBootstrap.Form.Label,
94
99
  { key: name + '_' + label },
95
100
  label,
96
- required && React__default.createElement(
101
+ required && React__default['default'].createElement(
97
102
  'span',
98
103
  { key: name + '_required_span', style: { color: 'red' } },
99
104
  '*'
100
105
  )
101
106
  ),
102
- React__default.createElement(
107
+ React__default['default'].createElement(
103
108
  reactBootstrap.Form.Control,
104
109
  { key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
105
- React__default.createElement('option', { value: '', key: name + '_options_empty' }),
110
+ React__default['default'].createElement('option', { value: '', key: name + '_options_empty' }),
106
111
  options.map(function (option, index) {
107
112
  var value = option.value ? option.value : option;
108
113
  var label = option.label ? option.label : option;
109
114
  var key = name + '_options_' + index;
110
- return React__default.createElement(
115
+ return React__default['default'].createElement(
111
116
  'option',
112
117
  { key: key, value: value },
113
118
  label
@@ -118,25 +123,25 @@ var returnFormField = function returnFormField(_ref) {
118
123
  }
119
124
 
120
125
  if (type == 'radio' || type == 'checkbox') {
121
- return React__default.createElement(
126
+ return React__default['default'].createElement(
122
127
  reactBootstrap.Form.Group,
123
128
  opts,
124
- React__default.createElement(
129
+ React__default['default'].createElement(
125
130
  reactBootstrap.Form.Label,
126
131
  null,
127
132
  label,
128
- required && React__default.createElement(
133
+ required && React__default['default'].createElement(
129
134
  'span',
130
135
  { style: { color: 'red' } },
131
136
  '*'
132
137
  )
133
138
  ),
134
139
  options.map(function (option, index) {
135
- return React__default.createElement(
140
+ return React__default['default'].createElement(
136
141
  reactBootstrap.Form.Check,
137
142
  { type: type, key: index, required: required },
138
- React__default.createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
139
- React__default.createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
143
+ React__default['default'].createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
144
+ React__default['default'].createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
140
145
  );
141
146
  })
142
147
  );
@@ -222,7 +227,7 @@ function useUser() {
222
227
  redirectTo = _ref.redirectTo,
223
228
  redirectIfFound = _ref.redirectIfFound;
224
229
 
225
- var _useSWR = useSWR('/api/auth/user', dataHandler),
230
+ var _useSWR = useSWR__default['default']('/api/auth/user', dataHandler),
226
231
  data = _useSWR.data,
227
232
  error = _useSWR.error;
228
233
 
@@ -237,7 +242,7 @@ function useUser() {
237
242
  redirectTo && !redirectIfFound && !hasUser ||
238
243
  // If redirectIfFound is also set, redirect if the user was found
239
244
  redirectIfFound && hasUser) {
240
- Router__default.push(redirectTo);
245
+ Router__default['default'].push(redirectTo);
241
246
  }
242
247
  }, [redirectTo, redirectIfFound, finished, hasUser]);
243
248
 
@@ -343,43 +348,43 @@ var LoginForm = function LoginForm(props) {
343
348
  loading = _useState4[0],
344
349
  setLoading = _useState4[1];
345
350
 
346
- return React__default.createElement(
351
+ return React__default['default'].createElement(
347
352
  reactBootstrap.Form,
348
353
  { className: 'login', onSubmit: handleSubmit },
349
- React__default.createElement(
354
+ React__default['default'].createElement(
350
355
  'h1',
351
356
  null,
352
357
  'Login'
353
358
  ),
354
- React__default.createElement('hr', null),
359
+ React__default['default'].createElement('hr', null),
355
360
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
356
361
  returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
357
- React__default.createElement('hr', null),
358
- React__default.createElement(
362
+ React__default['default'].createElement('hr', null),
363
+ React__default['default'].createElement(
359
364
  reactBootstrap.Form.Row,
360
365
  null,
361
- React__default.createElement(
366
+ React__default['default'].createElement(
362
367
  reactBootstrap.Form.Group,
363
368
  { as: reactBootstrap.Col },
364
- React__default.createElement(
369
+ React__default['default'].createElement(
365
370
  'a',
366
371
  { href: '/auth/signup' },
367
372
  'I don\'t have an account'
368
373
  )
369
374
  ),
370
- React__default.createElement(
375
+ React__default['default'].createElement(
371
376
  reactBootstrap.Form.Group,
372
377
  { as: reactBootstrap.Col, className: 'text-right' },
373
- !loading && React__default.createElement(
378
+ !loading && React__default['default'].createElement(
374
379
  reactBootstrap.Button,
375
380
  { type: 'submit' },
376
381
  'Login'
377
382
  ),
378
- loading && React__default.createElement(
383
+ loading && React__default['default'].createElement(
379
384
  reactBootstrap.Button,
380
385
  { variant: 'primary', disabled: true },
381
- React__default.createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
382
- React__default.createElement(
386
+ React__default['default'].createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
387
+ React__default['default'].createElement(
383
388
  'span',
384
389
  { className: 'sr-only' },
385
390
  'Loading...'
@@ -387,12 +392,12 @@ var LoginForm = function LoginForm(props) {
387
392
  )
388
393
  )
389
394
  ),
390
- errorMsg && React__default.createElement(
395
+ errorMsg && React__default['default'].createElement(
391
396
  'p',
392
397
  { className: 'error' },
393
398
  errorMsg
394
399
  ),
395
- React__default.createElement(
400
+ React__default['default'].createElement(
396
401
  'style',
397
402
  { jsx: 'true'.toString() },
398
403
  '\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
@@ -648,29 +653,29 @@ var SignupForm = function SignupForm(props) {
648
653
  loading = _useState14[0],
649
654
  setLoading = _useState14[1];
650
655
 
651
- return React__default.createElement(
656
+ return React__default['default'].createElement(
652
657
  reactBootstrap.Form,
653
658
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
654
- React__default.createElement(
659
+ React__default['default'].createElement(
655
660
  'h1',
656
661
  null,
657
662
  'Sign Up'
658
663
  ),
659
- React__default.createElement('hr', null),
664
+ React__default['default'].createElement('hr', null),
660
665
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
661
- React__default.createElement(
666
+ React__default['default'].createElement(
662
667
  reactBootstrap.Form.Row,
663
668
  null,
664
669
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: true }),
665
670
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: true })
666
671
  ),
667
- React__default.createElement(
672
+ React__default['default'].createElement(
668
673
  reactBootstrap.Form.Row,
669
674
  null,
670
675
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true }),
671
676
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true })
672
677
  ),
673
- React__default.createElement(
678
+ React__default['default'].createElement(
674
679
  reactBootstrap.Form.Row,
675
680
  null,
676
681
  returnFormField({
@@ -684,7 +689,7 @@ var SignupForm = function SignupForm(props) {
684
689
  }),
685
690
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states })
686
691
  ),
687
- React__default.createElement(
692
+ React__default['default'].createElement(
688
693
  reactBootstrap.Form.Row,
689
694
  null,
690
695
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col }),
@@ -731,38 +736,38 @@ var SignupForm = function SignupForm(props) {
731
736
  required: true,
732
737
  options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
733
738
  }),
734
- React__default.createElement('hr', null),
735
- React__default.createElement(
739
+ React__default['default'].createElement('hr', null),
740
+ React__default['default'].createElement(
736
741
  reactBootstrap.Form.Row,
737
742
  null,
738
- React__default.createElement(
743
+ React__default['default'].createElement(
739
744
  reactBootstrap.Form.Group,
740
745
  { as: reactBootstrap.Col },
741
- React__default.createElement(
746
+ React__default['default'].createElement(
742
747
  'a',
743
748
  { href: '/auth/login' },
744
749
  'I already have an account'
745
750
  )
746
751
  ),
747
- React__default.createElement(
752
+ React__default['default'].createElement(
748
753
  reactBootstrap.Form.Group,
749
754
  { as: reactBootstrap.Col, className: 'text-right' },
750
- !loading && React__default.createElement(
755
+ !loading && React__default['default'].createElement(
751
756
  reactBootstrap.Button,
752
757
  { type: 'submit' },
753
758
  'Sign Up'
754
759
  ),
755
- loading && React__default.createElement(
760
+ loading && React__default['default'].createElement(
756
761
  reactBootstrap.Button,
757
762
  { variant: 'primary', disabled: true },
758
- React__default.createElement(reactBootstrap.Spinner, {
763
+ React__default['default'].createElement(reactBootstrap.Spinner, {
759
764
  as: 'span',
760
765
  animation: 'border',
761
766
  role: 'status',
762
767
  'aria-hidden': 'true',
763
768
  size: 'sm'
764
769
  }),
765
- React__default.createElement(
770
+ React__default['default'].createElement(
766
771
  'span',
767
772
  { className: 'sr-only' },
768
773
  'Loading...'
@@ -770,12 +775,12 @@ var SignupForm = function SignupForm(props) {
770
775
  )
771
776
  )
772
777
  ),
773
- errorMsg && React__default.createElement(
778
+ errorMsg && React__default['default'].createElement(
774
779
  'p',
775
780
  { className: 'error' },
776
781
  errorMsg
777
782
  ),
778
- React__default.createElement(
783
+ React__default['default'].createElement(
779
784
  'style',
780
785
  { jsx: 'true'.toString() },
781
786
  ' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
@@ -1065,32 +1070,32 @@ var SignupForm$1 = function SignupForm(props) {
1065
1070
  loading = _useState18[0],
1066
1071
  setLoading = _useState18[1];
1067
1072
 
1068
- return React__default.createElement(
1073
+ return React__default['default'].createElement(
1069
1074
  reactBootstrap.Form,
1070
1075
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
1071
- React__default.createElement(
1076
+ React__default['default'].createElement(
1072
1077
  'h1',
1073
1078
  null,
1074
1079
  'Profile'
1075
1080
  ),
1076
- React__default.createElement('hr', null),
1077
- userData ? React__default.createElement(
1078
- React__default.Fragment,
1081
+ React__default['default'].createElement('hr', null),
1082
+ userData ? React__default['default'].createElement(
1083
+ React__default['default'].Fragment,
1079
1084
  null,
1080
1085
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
1081
- React__default.createElement(
1086
+ React__default['default'].createElement(
1082
1087
  reactBootstrap.Form.Row,
1083
1088
  null,
1084
1089
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: false }),
1085
1090
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: false })
1086
1091
  ),
1087
- React__default.createElement(
1092
+ React__default['default'].createElement(
1088
1093
  reactBootstrap.Form.Row,
1089
1094
  null,
1090
1095
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.first_name }),
1091
1096
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.last_name })
1092
1097
  ),
1093
- React__default.createElement(
1098
+ React__default['default'].createElement(
1094
1099
  reactBootstrap.Form.Row,
1095
1100
  null,
1096
1101
  returnFormField({
@@ -1105,7 +1110,7 @@ var SignupForm$1 = function SignupForm(props) {
1105
1110
  }),
1106
1111
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states, default_value: userData.shared.state })
1107
1112
  ),
1108
- React__default.createElement(
1113
+ React__default['default'].createElement(
1109
1114
  reactBootstrap.Form.Row,
1110
1115
  null,
1111
1116
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col, default_value: userData.shared.zip }),
@@ -1155,29 +1160,29 @@ var SignupForm$1 = function SignupForm(props) {
1155
1160
  required: true,
1156
1161
  options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
1157
1162
  }),
1158
- React__default.createElement('hr', null),
1159
- React__default.createElement(
1163
+ React__default['default'].createElement('hr', null),
1164
+ React__default['default'].createElement(
1160
1165
  reactBootstrap.Form.Row,
1161
1166
  null,
1162
- React__default.createElement(
1167
+ React__default['default'].createElement(
1163
1168
  reactBootstrap.Form.Group,
1164
1169
  { as: reactBootstrap.Col },
1165
- !loading && React__default.createElement(
1170
+ !loading && React__default['default'].createElement(
1166
1171
  reactBootstrap.Button,
1167
1172
  { type: 'submit' },
1168
1173
  'Update'
1169
1174
  ),
1170
- loading && React__default.createElement(
1175
+ loading && React__default['default'].createElement(
1171
1176
  reactBootstrap.Button,
1172
1177
  { variant: 'primary', disabled: true },
1173
- React__default.createElement(reactBootstrap.Spinner, {
1178
+ React__default['default'].createElement(reactBootstrap.Spinner, {
1174
1179
  as: 'span',
1175
1180
  animation: 'border',
1176
1181
  role: 'status',
1177
1182
  'aria-hidden': 'true',
1178
1183
  size: 'sm'
1179
1184
  }),
1180
- React__default.createElement(
1185
+ React__default['default'].createElement(
1181
1186
  'span',
1182
1187
  { className: 'sr-only' },
1183
1188
  'Loading...'
@@ -1185,24 +1190,24 @@ var SignupForm$1 = function SignupForm(props) {
1185
1190
  )
1186
1191
  )
1187
1192
  )
1188
- ) : React__default.createElement(reactBootstrap.Spinner, {
1193
+ ) : React__default['default'].createElement(reactBootstrap.Spinner, {
1189
1194
  as: 'span',
1190
1195
  animation: 'border',
1191
1196
  role: 'status',
1192
1197
  'aria-hidden': 'true',
1193
1198
  size: 'sm'
1194
1199
  }),
1195
- errorMsg && React__default.createElement(
1200
+ errorMsg && React__default['default'].createElement(
1196
1201
  'p',
1197
1202
  { className: 'error' },
1198
1203
  errorMsg
1199
1204
  ),
1200
- successMsg && React__default.createElement(
1205
+ successMsg && React__default['default'].createElement(
1201
1206
  'p',
1202
1207
  { className: 'success' },
1203
1208
  successMsg
1204
1209
  ),
1205
- React__default.createElement(
1210
+ React__default['default'].createElement(
1206
1211
  'style',
1207
1212
  { jsx: 'true'.toString() },
1208
1213
  ' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
@@ -1210,213 +1215,12 @@ var SignupForm$1 = function SignupForm(props) {
1210
1215
  );
1211
1216
  };
1212
1217
 
1213
- /*!
1214
- * cookie
1215
- * Copyright(c) 2012-2014 Roman Shtylman
1216
- * Copyright(c) 2015 Douglas Christopher Wilson
1217
- * MIT Licensed
1218
- */
1219
-
1220
- /**
1221
- * Module exports.
1222
- * @public
1223
- */
1224
-
1225
- var parse_1 = parse;
1226
- var serialize_1 = serialize;
1227
-
1228
- /**
1229
- * Module variables.
1230
- * @private
1231
- */
1232
-
1233
- var decode = decodeURIComponent;
1234
- var encode = encodeURIComponent;
1235
- var pairSplitRegExp = /; */;
1236
-
1237
- /**
1238
- * RegExp to match field-content in RFC 7230 sec 3.2
1239
- *
1240
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
1241
- * field-vchar = VCHAR / obs-text
1242
- * obs-text = %x80-FF
1243
- */
1244
-
1245
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
1246
-
1247
- /**
1248
- * Parse a cookie header.
1249
- *
1250
- * Parse the given cookie header string into an object
1251
- * The object has the various cookies as keys(names) => values
1252
- *
1253
- * @param {string} str
1254
- * @param {object} [options]
1255
- * @return {object}
1256
- * @public
1257
- */
1258
-
1259
- function parse(str, options) {
1260
- if (typeof str !== 'string') {
1261
- throw new TypeError('argument str must be a string');
1262
- }
1263
-
1264
- var obj = {};
1265
- var opt = options || {};
1266
- var pairs = str.split(pairSplitRegExp);
1267
- var dec = opt.decode || decode;
1268
-
1269
- for (var i = 0; i < pairs.length; i++) {
1270
- var pair = pairs[i];
1271
- var eq_idx = pair.indexOf('=');
1272
-
1273
- // skip things that don't look like key=value
1274
- if (eq_idx < 0) {
1275
- continue;
1276
- }
1277
-
1278
- var key = pair.substr(0, eq_idx).trim();
1279
- var val = pair.substr(++eq_idx, pair.length).trim();
1280
-
1281
- // quoted values
1282
- if ('"' == val[0]) {
1283
- val = val.slice(1, -1);
1284
- }
1285
-
1286
- // only assign once
1287
- if (undefined == obj[key]) {
1288
- obj[key] = tryDecode(val, dec);
1289
- }
1290
- }
1291
-
1292
- return obj;
1293
- }
1294
-
1295
- /**
1296
- * Serialize data into a cookie header.
1297
- *
1298
- * Serialize the a name value pair into a cookie string suitable for
1299
- * http headers. An optional options object specified cookie parameters.
1300
- *
1301
- * serialize('foo', 'bar', { httpOnly: true })
1302
- * => "foo=bar; httpOnly"
1303
- *
1304
- * @param {string} name
1305
- * @param {string} val
1306
- * @param {object} [options]
1307
- * @return {string}
1308
- * @public
1309
- */
1310
-
1311
- function serialize(name, val, options) {
1312
- var opt = options || {};
1313
- var enc = opt.encode || encode;
1314
-
1315
- if (typeof enc !== 'function') {
1316
- throw new TypeError('option encode is invalid');
1317
- }
1318
-
1319
- if (!fieldContentRegExp.test(name)) {
1320
- throw new TypeError('argument name is invalid');
1321
- }
1322
-
1323
- var value = enc(val);
1324
-
1325
- if (value && !fieldContentRegExp.test(value)) {
1326
- throw new TypeError('argument val is invalid');
1327
- }
1328
-
1329
- var str = name + '=' + value;
1330
-
1331
- if (null != opt.maxAge) {
1332
- var maxAge = opt.maxAge - 0;
1333
-
1334
- if (isNaN(maxAge) || !isFinite(maxAge)) {
1335
- throw new TypeError('option maxAge is invalid')
1336
- }
1337
-
1338
- str += '; Max-Age=' + Math.floor(maxAge);
1339
- }
1340
-
1341
- if (opt.domain) {
1342
- if (!fieldContentRegExp.test(opt.domain)) {
1343
- throw new TypeError('option domain is invalid');
1344
- }
1345
-
1346
- str += '; Domain=' + opt.domain;
1347
- }
1348
-
1349
- if (opt.path) {
1350
- if (!fieldContentRegExp.test(opt.path)) {
1351
- throw new TypeError('option path is invalid');
1352
- }
1353
-
1354
- str += '; Path=' + opt.path;
1355
- }
1356
-
1357
- if (opt.expires) {
1358
- if (typeof opt.expires.toUTCString !== 'function') {
1359
- throw new TypeError('option expires is invalid');
1360
- }
1361
-
1362
- str += '; Expires=' + opt.expires.toUTCString();
1363
- }
1364
-
1365
- if (opt.httpOnly) {
1366
- str += '; HttpOnly';
1367
- }
1368
-
1369
- if (opt.secure) {
1370
- str += '; Secure';
1371
- }
1372
-
1373
- if (opt.sameSite) {
1374
- var sameSite = typeof opt.sameSite === 'string'
1375
- ? opt.sameSite.toLowerCase() : opt.sameSite;
1376
-
1377
- switch (sameSite) {
1378
- case true:
1379
- str += '; SameSite=Strict';
1380
- break;
1381
- case 'lax':
1382
- str += '; SameSite=Lax';
1383
- break;
1384
- case 'strict':
1385
- str += '; SameSite=Strict';
1386
- break;
1387
- case 'none':
1388
- str += '; SameSite=None';
1389
- break;
1390
- default:
1391
- throw new TypeError('option sameSite is invalid');
1392
- }
1393
- }
1394
-
1395
- return str;
1396
- }
1397
-
1398
- /**
1399
- * Try decoding a string using a decoding function.
1400
- *
1401
- * @param {string} str
1402
- * @param {function} decode
1403
- * @private
1404
- */
1405
-
1406
- function tryDecode(str, decode) {
1407
- try {
1408
- return decode(str);
1409
- } catch (e) {
1410
- return str;
1411
- }
1412
- }
1413
-
1414
1218
  var TOKEN_NAME = 'token';
1415
1219
  var MAX_AGE = 60 * 60 * 8; // 8 hours
1416
1220
 
1417
1221
  function setTokenCookie(res, token, eKey) {
1418
1222
  var cookies_serailized = [];
1419
- cookies_serailized.push(serialize_1(TOKEN_NAME, token, {
1223
+ cookies_serailized.push(index.serialize_1(TOKEN_NAME, token, {
1420
1224
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1421
1225
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1422
1226
  //httpOnly: true,
@@ -1425,7 +1229,7 @@ function setTokenCookie(res, token, eKey) {
1425
1229
  //sameSite: 'lax',
1426
1230
  }));
1427
1231
 
1428
- cookies_serailized.push(serialize_1('eKey', eKey, {
1232
+ cookies_serailized.push(index.serialize_1('eKey', eKey, {
1429
1233
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1430
1234
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1431
1235
  //httpOnly: true,
@@ -1439,12 +1243,12 @@ function setTokenCookie(res, token, eKey) {
1439
1243
 
1440
1244
  function removeTokenCookie(res) {
1441
1245
  var cookies_serailized = [];
1442
- cookies_serailized.push(serialize_1(TOKEN_NAME, '', {
1246
+ cookies_serailized.push(index.serialize_1(TOKEN_NAME, '', {
1443
1247
  maxAge: -1,
1444
1248
  expires: new Date(Date.now() - MAX_AGE * 1000),
1445
1249
  path: '/'
1446
1250
  }));
1447
- cookies_serailized.push(serialize_1('eKey', '', {
1251
+ cookies_serailized.push(index.serialize_1('eKey', '', {
1448
1252
  maxAge: -1,
1449
1253
  expires: new Date(Date.now() - MAX_AGE * 1000),
1450
1254
  path: '/'
@@ -1459,7 +1263,7 @@ function parseCookies(req) {
1459
1263
 
1460
1264
  // For pages we do need to parse the cookies.
1461
1265
  var cookie = req.headers ? req.headers.cookie : null;
1462
- return parse_1(cookie || '');
1266
+ return index.parse_1(cookie || '');
1463
1267
  }
1464
1268
 
1465
1269
  function getTokenCookie(req) {
@@ -1745,59 +1549,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1745
1549
 
1746
1550
  var defineProperties_1 = defineProperties;
1747
1551
 
1748
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
1749
- var shams = function hasSymbols() {
1750
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1751
- if (typeof Symbol.iterator === 'symbol') { return true; }
1752
-
1753
- var obj = {};
1754
- var sym = Symbol('test');
1755
- var symObj = Object(sym);
1756
- if (typeof sym === 'string') { return false; }
1757
-
1758
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1759
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1760
-
1761
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
1762
- // if (sym instanceof Symbol) { return false; }
1763
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1764
- // if (!(symObj instanceof Symbol)) { return false; }
1765
-
1766
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1767
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1768
-
1769
- var symVal = 42;
1770
- obj[sym] = symVal;
1771
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1772
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1773
-
1774
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1775
-
1776
- var syms = Object.getOwnPropertySymbols(obj);
1777
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
1778
-
1779
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1780
-
1781
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
1782
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1783
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1784
- }
1785
-
1786
- return true;
1787
- };
1788
-
1789
- var origSymbol = _commonjsHelpers.commonjsGlobal.Symbol;
1790
-
1791
-
1792
- var hasSymbols$1 = function hasNativeSymbols() {
1793
- if (typeof origSymbol !== 'function') { return false; }
1794
- if (typeof Symbol !== 'function') { return false; }
1795
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
1796
- if (typeof Symbol('bar') !== 'symbol') { return false; }
1797
-
1798
- return shams();
1799
- };
1800
-
1801
1552
  /* eslint no-invalid-this: 1 */
1802
1553
 
1803
1554
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
@@ -1851,15 +1602,74 @@ var implementation$1 = function bind(that) {
1851
1602
 
1852
1603
  var functionBind = Function.prototype.bind || implementation$1;
1853
1604
 
1854
- /* globals
1855
- Atomics,
1856
- SharedArrayBuffer,
1857
- */
1605
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1606
+ var shams = function hasSymbols() {
1607
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1608
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1609
+
1610
+ var obj = {};
1611
+ var sym = Symbol('test');
1612
+ var symObj = Object(sym);
1613
+ if (typeof sym === 'string') { return false; }
1614
+
1615
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1616
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1617
+
1618
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1619
+ // if (sym instanceof Symbol) { return false; }
1620
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1621
+ // if (!(symObj instanceof Symbol)) { return false; }
1622
+
1623
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1624
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1625
+
1626
+ var symVal = 42;
1627
+ obj[sym] = symVal;
1628
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1629
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1630
+
1631
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1632
+
1633
+ var syms = Object.getOwnPropertySymbols(obj);
1634
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1635
+
1636
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1637
+
1638
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1639
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1640
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1641
+ }
1642
+
1643
+ return true;
1644
+ };
1645
+
1646
+ var origSymbol = _commonjsHelpers.commonjsGlobal.Symbol;
1647
+
1648
+
1649
+ var hasSymbols$1 = function hasNativeSymbols() {
1650
+ if (typeof origSymbol !== 'function') { return false; }
1651
+ if (typeof Symbol !== 'function') { return false; }
1652
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1653
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1654
+
1655
+ return shams();
1656
+ };
1657
+
1658
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1858
1659
 
1859
1660
  var undefined$1;
1860
1661
 
1662
+ var $SyntaxError = SyntaxError;
1663
+ var $Function = Function;
1861
1664
  var $TypeError = TypeError;
1862
1665
 
1666
+ // eslint-disable-next-line consistent-return
1667
+ var getEvalledConstructor = function (expressionSyntax) {
1668
+ try {
1669
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1670
+ } catch (e) {}
1671
+ };
1672
+
1863
1673
  var $gOPD = Object.getOwnPropertyDescriptor;
1864
1674
  if ($gOPD) {
1865
1675
  try {
@@ -1869,7 +1679,9 @@ if ($gOPD) {
1869
1679
  }
1870
1680
  }
1871
1681
 
1872
- var throwTypeError = function () { throw new $TypeError(); };
1682
+ var throwTypeError = function () {
1683
+ throw new $TypeError();
1684
+ };
1873
1685
  var ThrowTypeError = $gOPD
1874
1686
  ? (function () {
1875
1687
  try {
@@ -1890,203 +1702,351 @@ var ThrowTypeError = $gOPD
1890
1702
  var hasSymbols$2 = hasSymbols$1();
1891
1703
 
1892
1704
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1893
- var generatorFunction = undefined$1;
1894
- var asyncFunction = undefined$1;
1895
- var asyncGenFunction = undefined$1;
1705
+
1706
+ var needsEval = {};
1896
1707
 
1897
1708
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1898
1709
 
1899
1710
  var INTRINSICS = {
1711
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1900
1712
  '%Array%': Array,
1901
1713
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1902
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1903
1714
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1904
- '%ArrayPrototype%': Array.prototype,
1905
- '%ArrayProto_entries%': Array.prototype.entries,
1906
- '%ArrayProto_forEach%': Array.prototype.forEach,
1907
- '%ArrayProto_keys%': Array.prototype.keys,
1908
- '%ArrayProto_values%': Array.prototype.values,
1909
1715
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1910
- '%AsyncFunction%': asyncFunction,
1911
- '%AsyncFunctionPrototype%': undefined$1,
1912
- '%AsyncGenerator%': undefined$1,
1913
- '%AsyncGeneratorFunction%': asyncGenFunction,
1914
- '%AsyncGeneratorPrototype%': undefined$1,
1915
- '%AsyncIteratorPrototype%': undefined$1,
1716
+ '%AsyncFunction%': needsEval,
1717
+ '%AsyncGenerator%': needsEval,
1718
+ '%AsyncGeneratorFunction%': needsEval,
1719
+ '%AsyncIteratorPrototype%': needsEval,
1916
1720
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1721
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1917
1722
  '%Boolean%': Boolean,
1918
- '%BooleanPrototype%': Boolean.prototype,
1919
1723
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1920
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1921
1724
  '%Date%': Date,
1922
- '%DatePrototype%': Date.prototype,
1923
1725
  '%decodeURI%': decodeURI,
1924
1726
  '%decodeURIComponent%': decodeURIComponent,
1925
1727
  '%encodeURI%': encodeURI,
1926
1728
  '%encodeURIComponent%': encodeURIComponent,
1927
1729
  '%Error%': Error,
1928
- '%ErrorPrototype%': Error.prototype,
1929
1730
  '%eval%': eval, // eslint-disable-line no-eval
1930
1731
  '%EvalError%': EvalError,
1931
- '%EvalErrorPrototype%': EvalError.prototype,
1932
1732
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1933
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1934
1733
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1935
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1936
- '%Function%': Function,
1937
- '%FunctionPrototype%': Function.prototype,
1938
- '%Generator%': undefined$1,
1939
- '%GeneratorFunction%': generatorFunction,
1940
- '%GeneratorPrototype%': undefined$1,
1734
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1735
+ '%Function%': $Function,
1736
+ '%GeneratorFunction%': needsEval,
1941
1737
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1942
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1943
1738
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1944
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1945
1739
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1946
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1947
1740
  '%isFinite%': isFinite,
1948
1741
  '%isNaN%': isNaN,
1949
1742
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1950
1743
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1951
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1952
1744
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1953
1745
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1954
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1955
1746
  '%Math%': Math,
1956
1747
  '%Number%': Number,
1957
- '%NumberPrototype%': Number.prototype,
1958
1748
  '%Object%': Object,
1959
- '%ObjectPrototype%': Object.prototype,
1960
- '%ObjProto_toString%': Object.prototype.toString,
1961
- '%ObjProto_valueOf%': Object.prototype.valueOf,
1962
1749
  '%parseFloat%': parseFloat,
1963
1750
  '%parseInt%': parseInt,
1964
1751
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1965
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1966
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1967
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1968
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1969
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1970
1752
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1971
1753
  '%RangeError%': RangeError,
1972
- '%RangeErrorPrototype%': RangeError.prototype,
1973
1754
  '%ReferenceError%': ReferenceError,
1974
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
1975
1755
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1976
1756
  '%RegExp%': RegExp,
1977
- '%RegExpPrototype%': RegExp.prototype,
1978
1757
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1979
1758
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1980
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1981
1759
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1982
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1983
1760
  '%String%': String,
1984
1761
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1985
- '%StringPrototype%': String.prototype,
1986
1762
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1987
- '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1988
- '%SyntaxError%': SyntaxError,
1989
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
1763
+ '%SyntaxError%': $SyntaxError,
1990
1764
  '%ThrowTypeError%': ThrowTypeError,
1991
1765
  '%TypedArray%': TypedArray,
1992
- '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1993
1766
  '%TypeError%': $TypeError,
1994
- '%TypeErrorPrototype%': $TypeError.prototype,
1995
1767
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1996
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1997
1768
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1998
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1999
1769
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
2000
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
2001
1770
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
2002
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
2003
1771
  '%URIError%': URIError,
2004
- '%URIErrorPrototype%': URIError.prototype,
2005
1772
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
2006
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
2007
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
2008
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1773
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1774
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1775
+ };
1776
+
1777
+ var doEval = function doEval(name) {
1778
+ var value;
1779
+ if (name === '%AsyncFunction%') {
1780
+ value = getEvalledConstructor('async function () {}');
1781
+ } else if (name === '%GeneratorFunction%') {
1782
+ value = getEvalledConstructor('function* () {}');
1783
+ } else if (name === '%AsyncGeneratorFunction%') {
1784
+ value = getEvalledConstructor('async function* () {}');
1785
+ } else if (name === '%AsyncGenerator%') {
1786
+ var fn = doEval('%AsyncGeneratorFunction%');
1787
+ if (fn) {
1788
+ value = fn.prototype;
1789
+ }
1790
+ } else if (name === '%AsyncIteratorPrototype%') {
1791
+ var gen = doEval('%AsyncGenerator%');
1792
+ if (gen) {
1793
+ value = getProto(gen.prototype);
1794
+ }
1795
+ }
1796
+
1797
+ INTRINSICS[name] = value;
1798
+
1799
+ return value;
2009
1800
  };
2010
1801
 
1802
+ var LEGACY_ALIASES = {
1803
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1804
+ '%ArrayPrototype%': ['Array', 'prototype'],
1805
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1806
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1807
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1808
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1809
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1810
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1811
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1812
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1813
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1814
+ '%DatePrototype%': ['Date', 'prototype'],
1815
+ '%ErrorPrototype%': ['Error', 'prototype'],
1816
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1817
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1818
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1819
+ '%FunctionPrototype%': ['Function', 'prototype'],
1820
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1821
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1822
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1823
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1824
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1825
+ '%JSONParse%': ['JSON', 'parse'],
1826
+ '%JSONStringify%': ['JSON', 'stringify'],
1827
+ '%MapPrototype%': ['Map', 'prototype'],
1828
+ '%NumberPrototype%': ['Number', 'prototype'],
1829
+ '%ObjectPrototype%': ['Object', 'prototype'],
1830
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1831
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1832
+ '%PromisePrototype%': ['Promise', 'prototype'],
1833
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1834
+ '%Promise_all%': ['Promise', 'all'],
1835
+ '%Promise_reject%': ['Promise', 'reject'],
1836
+ '%Promise_resolve%': ['Promise', 'resolve'],
1837
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1838
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1839
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1840
+ '%SetPrototype%': ['Set', 'prototype'],
1841
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1842
+ '%StringPrototype%': ['String', 'prototype'],
1843
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1844
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1845
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1846
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1847
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1848
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1849
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1850
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1851
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1852
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1853
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1854
+ };
2011
1855
 
1856
+
1857
+
1858
+ var $concat = functionBind.call(Function.call, Array.prototype.concat);
1859
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2012
1860
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1861
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
2013
1862
 
2014
1863
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2015
1864
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2016
1865
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2017
1866
  var stringToPath = function stringToPath(string) {
1867
+ var first = $strSlice(string, 0, 1);
1868
+ var last = $strSlice(string, -1);
1869
+ if (first === '%' && last !== '%') {
1870
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1871
+ } else if (last === '%' && first !== '%') {
1872
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1873
+ }
2018
1874
  var result = [];
2019
1875
  $replace(string, rePropName, function (match, number, quote, subString) {
2020
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1876
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
2021
1877
  });
2022
1878
  return result;
2023
1879
  };
2024
1880
  /* end adaptation */
2025
1881
 
2026
1882
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
2027
- if (!(name in INTRINSICS)) {
2028
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1883
+ var intrinsicName = name;
1884
+ var alias;
1885
+ if (src(LEGACY_ALIASES, intrinsicName)) {
1886
+ alias = LEGACY_ALIASES[intrinsicName];
1887
+ intrinsicName = '%' + alias[0] + '%';
2029
1888
  }
2030
1889
 
2031
- // istanbul ignore if // hopefully this is impossible to test :-)
2032
- if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
2033
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1890
+ if (src(INTRINSICS, intrinsicName)) {
1891
+ var value = INTRINSICS[intrinsicName];
1892
+ if (value === needsEval) {
1893
+ value = doEval(intrinsicName);
1894
+ }
1895
+ if (typeof value === 'undefined' && !allowMissing) {
1896
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1897
+ }
1898
+
1899
+ return {
1900
+ alias: alias,
1901
+ name: intrinsicName,
1902
+ value: value
1903
+ };
2034
1904
  }
2035
1905
 
2036
- return INTRINSICS[name];
1906
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
2037
1907
  };
2038
1908
 
2039
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1909
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2040
1910
  if (typeof name !== 'string' || name.length === 0) {
2041
- throw new TypeError('intrinsic name must be a non-empty string');
1911
+ throw new $TypeError('intrinsic name must be a non-empty string');
2042
1912
  }
2043
1913
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2044
- throw new TypeError('"allowMissing" argument must be a boolean');
1914
+ throw new $TypeError('"allowMissing" argument must be a boolean');
2045
1915
  }
2046
1916
 
2047
1917
  var parts = stringToPath(name);
1918
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
2048
1919
 
2049
- var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2050
- for (var i = 1; i < parts.length; i += 1) {
2051
- if (value != null) {
2052
- if ($gOPD && (i + 1) >= parts.length) {
2053
- var desc = $gOPD(value, parts[i]);
2054
- if (!allowMissing && !(parts[i] in value)) {
1920
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1921
+ var intrinsicRealName = intrinsic.name;
1922
+ var value = intrinsic.value;
1923
+ var skipFurtherCaching = false;
1924
+
1925
+ var alias = intrinsic.alias;
1926
+ if (alias) {
1927
+ intrinsicBaseName = alias[0];
1928
+ $spliceApply(parts, $concat([0, 1], alias));
1929
+ }
1930
+
1931
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1932
+ var part = parts[i];
1933
+ var first = $strSlice(part, 0, 1);
1934
+ var last = $strSlice(part, -1);
1935
+ if (
1936
+ (
1937
+ (first === '"' || first === "'" || first === '`')
1938
+ || (last === '"' || last === "'" || last === '`')
1939
+ )
1940
+ && first !== last
1941
+ ) {
1942
+ throw new $SyntaxError('property names with quotes must have matching quotes');
1943
+ }
1944
+ if (part === 'constructor' || !isOwn) {
1945
+ skipFurtherCaching = true;
1946
+ }
1947
+
1948
+ intrinsicBaseName += '.' + part;
1949
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1950
+
1951
+ if (src(INTRINSICS, intrinsicRealName)) {
1952
+ value = INTRINSICS[intrinsicRealName];
1953
+ } else if (value != null) {
1954
+ if (!(part in value)) {
1955
+ if (!allowMissing) {
2055
1956
  throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
2056
1957
  }
2057
- value = desc ? (desc.get || desc.value) : value[parts[i]];
1958
+ return void undefined$1;
1959
+ }
1960
+ if ($gOPD && (i + 1) >= parts.length) {
1961
+ var desc = $gOPD(value, part);
1962
+ isOwn = !!desc;
1963
+
1964
+ // By convention, when a data property is converted to an accessor
1965
+ // property to emulate a data property that does not suffer from
1966
+ // the override mistake, that accessor's getter is marked with
1967
+ // an `originalValue` property. Here, when we detect this, we
1968
+ // uphold the illusion by pretending to see that original data
1969
+ // property, i.e., returning the value rather than the getter
1970
+ // itself.
1971
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1972
+ value = desc.get;
1973
+ } else {
1974
+ value = value[part];
1975
+ }
2058
1976
  } else {
2059
- value = value[parts[i]];
1977
+ isOwn = src(value, part);
1978
+ value = value[part];
1979
+ }
1980
+
1981
+ if (isOwn && !skipFurtherCaching) {
1982
+ INTRINSICS[intrinsicRealName] = value;
2060
1983
  }
2061
1984
  }
2062
1985
  }
2063
1986
  return value;
2064
1987
  };
2065
1988
 
2066
- var $Function = GetIntrinsic('%Function%');
2067
- var $apply = $Function.apply;
2068
- var $call = $Function.call;
1989
+ var callBind = _commonjsHelpers.createCommonjsModule(function (module) {
2069
1990
 
2070
- var callBind = function callBind() {
2071
- return functionBind.apply($call, arguments);
1991
+
1992
+
1993
+
1994
+ var $apply = getIntrinsic('%Function.prototype.apply%');
1995
+ var $call = getIntrinsic('%Function.prototype.call%');
1996
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1997
+
1998
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1999
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2000
+ var $max = getIntrinsic('%Math.max%');
2001
+
2002
+ if ($defineProperty) {
2003
+ try {
2004
+ $defineProperty({}, 'a', { value: 1 });
2005
+ } catch (e) {
2006
+ // IE 8 has a broken defineProperty
2007
+ $defineProperty = null;
2008
+ }
2009
+ }
2010
+
2011
+ module.exports = function callBind(originalFunction) {
2012
+ var func = $reflectApply(functionBind, $call, arguments);
2013
+ if ($gOPD && $defineProperty) {
2014
+ var desc = $gOPD(func, 'length');
2015
+ if (desc.configurable) {
2016
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2017
+ $defineProperty(
2018
+ func,
2019
+ 'length',
2020
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2021
+ );
2022
+ }
2023
+ }
2024
+ return func;
2072
2025
  };
2073
2026
 
2074
- var apply = function applyBind() {
2075
- return functionBind.apply($apply, arguments);
2027
+ var applyBind = function applyBind() {
2028
+ return $reflectApply(functionBind, $apply, arguments);
2076
2029
  };
2077
- callBind.apply = apply;
2078
2030
 
2079
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2031
+ if ($defineProperty) {
2032
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2033
+ } else {
2034
+ module.exports.apply = applyBind;
2035
+ }
2036
+ });
2037
+ callBind.apply;
2038
+
2039
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2080
2040
 
2081
2041
  var callBound = function callBoundIntrinsic(name, allowMissing) {
2082
- var intrinsic = GetIntrinsic(name, !!allowMissing);
2083
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2042
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2043
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
2084
2044
  return callBind(intrinsic);
2085
2045
  }
2086
2046
  return intrinsic;
2087
2047
  };
2088
2048
 
2089
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2049
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2090
2050
 
2091
2051
  if ($defineProperty) {
2092
2052
  try {
@@ -2128,10 +2088,8 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2128
2088
  return true;
2129
2089
  };
2130
2090
 
2131
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2132
-
2133
- var $TypeError$1 = GetIntrinsic('%TypeError%');
2134
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
2091
+ var $TypeError$1 = getIntrinsic('%TypeError%');
2092
+ var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
2135
2093
 
2136
2094
 
2137
2095
 
@@ -2168,14 +2126,14 @@ var predicates = {
2168
2126
  var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
2169
2127
  var predicate = predicates[recordType];
2170
2128
  if (typeof predicate !== 'function') {
2171
- throw new $SyntaxError('unknown record type: ' + recordType);
2129
+ throw new $SyntaxError$1('unknown record type: ' + recordType);
2172
2130
  }
2173
2131
  if (!predicate(Type, value)) {
2174
2132
  throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2175
2133
  }
2176
2134
  };
2177
2135
 
2178
- // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2136
+ // https://ecma-international.org/ecma-262/5.1/#sec-8
2179
2137
 
2180
2138
  var Type = function Type(x) {
2181
2139
  if (x === null) {
@@ -2198,16 +2156,19 @@ var Type = function Type(x) {
2198
2156
  }
2199
2157
  };
2200
2158
 
2201
- // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2159
+ // https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
2202
2160
 
2203
2161
  var Type$1 = function Type$1(x) {
2204
2162
  if (typeof x === 'symbol') {
2205
2163
  return 'Symbol';
2206
2164
  }
2165
+ if (typeof x === 'bigint') {
2166
+ return 'BigInt';
2167
+ }
2207
2168
  return Type(x);
2208
2169
  };
2209
2170
 
2210
- // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2171
+ // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2211
2172
 
2212
2173
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2213
2174
  if (typeof Desc === 'undefined') {
@@ -2238,7 +2199,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2238
2199
  return obj;
2239
2200
  };
2240
2201
 
2241
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2202
+ var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2242
2203
  if ($gOPD$1) {
2243
2204
  try {
2244
2205
  $gOPD$1([], 'length');
@@ -2250,65 +2211,85 @@ if ($gOPD$1) {
2250
2211
 
2251
2212
  var getOwnPropertyDescriptor = $gOPD$1;
2252
2213
 
2253
- var $Array = GetIntrinsic('%Array%');
2214
+ var $Array = getIntrinsic('%Array%');
2254
2215
 
2255
2216
  // eslint-disable-next-line global-require
2256
2217
  var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2257
2218
 
2258
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2219
+ // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2259
2220
 
2260
2221
  var IsArray = $Array.isArray || function IsArray(argument) {
2261
2222
  return toStr$4(argument) === '[object Array]';
2262
2223
  };
2263
2224
 
2264
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2225
+ // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2265
2226
 
2266
2227
  var IsPropertyKey = function IsPropertyKey(argument) {
2267
2228
  return typeof argument === 'string' || typeof argument === 'symbol';
2268
2229
  };
2269
2230
 
2270
- var regexExec = RegExp.prototype.exec;
2271
- var gOPD = Object.getOwnPropertyDescriptor;
2272
-
2273
- var tryRegexExecCall = function tryRegexExec(value) {
2274
- try {
2275
- var lastIndex = value.lastIndex;
2276
- value.lastIndex = 0; // eslint-disable-line no-param-reassign
2231
+ var hasSymbols$3 = hasSymbols$1();
2232
+ var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
2233
+ var has$1;
2234
+ var $exec;
2235
+ var isRegexMarker;
2236
+ var badStringifier;
2237
+
2238
+ if (hasToStringTag) {
2239
+ has$1 = callBound('Object.prototype.hasOwnProperty');
2240
+ $exec = callBound('RegExp.prototype.exec');
2241
+ isRegexMarker = {};
2242
+
2243
+ var throwRegexMarker = function () {
2244
+ throw isRegexMarker;
2245
+ };
2246
+ badStringifier = {
2247
+ toString: throwRegexMarker,
2248
+ valueOf: throwRegexMarker
2249
+ };
2277
2250
 
2278
- regexExec.call(value);
2279
- return true;
2280
- } catch (e) {
2281
- return false;
2282
- } finally {
2283
- value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2251
+ if (typeof Symbol.toPrimitive === 'symbol') {
2252
+ badStringifier[Symbol.toPrimitive] = throwRegexMarker;
2284
2253
  }
2285
- };
2286
- var toStr$5 = Object.prototype.toString;
2254
+ }
2255
+
2256
+ var $toString = callBound('Object.prototype.toString');
2257
+ var gOPD = Object.getOwnPropertyDescriptor;
2287
2258
  var regexClass = '[object RegExp]';
2288
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2289
2259
 
2290
- var isRegex = function isRegex(value) {
2291
- if (!value || typeof value !== 'object') {
2292
- return false;
2293
- }
2294
- if (!hasToStringTag) {
2295
- return toStr$5.call(value) === regexClass;
2296
- }
2260
+ var isRegex = hasToStringTag
2261
+ // eslint-disable-next-line consistent-return
2262
+ ? function isRegex(value) {
2263
+ if (!value || typeof value !== 'object') {
2264
+ return false;
2265
+ }
2297
2266
 
2298
- var descriptor = gOPD(value, 'lastIndex');
2299
- var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
2300
- if (!hasLastIndexDataProperty) {
2301
- return false;
2267
+ var descriptor = gOPD(value, 'lastIndex');
2268
+ var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
2269
+ if (!hasLastIndexDataProperty) {
2270
+ return false;
2271
+ }
2272
+
2273
+ try {
2274
+ $exec(value, badStringifier);
2275
+ } catch (e) {
2276
+ return e === isRegexMarker;
2277
+ }
2302
2278
  }
2279
+ : function isRegex(value) {
2280
+ // In older browsers, typeof regex incorrectly returns 'function'
2281
+ if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2282
+ return false;
2283
+ }
2303
2284
 
2304
- return tryRegexExecCall(value);
2305
- };
2285
+ return $toString(value) === regexClass;
2286
+ };
2306
2287
 
2307
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2288
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.2
2308
2289
 
2309
2290
  var ToBoolean = function ToBoolean(value) { return !!value; };
2310
2291
 
2311
- var $match = GetIntrinsic('%Symbol.match%', true);
2292
+ var $match = getIntrinsic('%Symbol.match%', true);
2312
2293
 
2313
2294
 
2314
2295
 
@@ -2330,6 +2311,27 @@ var IsRegExp = function IsRegExp(argument) {
2330
2311
  };
2331
2312
 
2332
2313
  var fnToStr = Function.prototype.toString;
2314
+ var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2315
+ var badArrayLike;
2316
+ var isCallableMarker;
2317
+ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2318
+ try {
2319
+ badArrayLike = Object.defineProperty({}, 'length', {
2320
+ get: function () {
2321
+ throw isCallableMarker;
2322
+ }
2323
+ });
2324
+ isCallableMarker = {};
2325
+ // eslint-disable-next-line no-throw-literal
2326
+ reflectApply(function () { throw 42; }, null, badArrayLike);
2327
+ } catch (_) {
2328
+ if (_ !== isCallableMarker) {
2329
+ reflectApply = null;
2330
+ }
2331
+ }
2332
+ } else {
2333
+ reflectApply = null;
2334
+ }
2333
2335
 
2334
2336
  var constructorRegex = /^\s*class\b/;
2335
2337
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2350,26 +2352,42 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2350
2352
  return false;
2351
2353
  }
2352
2354
  };
2353
- var toStr$6 = Object.prototype.toString;
2355
+ var toStr$5 = Object.prototype.toString;
2354
2356
  var fnClass = '[object Function]';
2355
2357
  var genClass = '[object GeneratorFunction]';
2356
2358
  var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2359
+ /* globals document: false */
2360
+ var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2361
+
2362
+ var isCallable = reflectApply
2363
+ ? function isCallable(value) {
2364
+ if (value === documentDotAll) { return true; }
2365
+ if (!value) { return false; }
2366
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2367
+ if (typeof value === 'function' && !value.prototype) { return true; }
2368
+ try {
2369
+ reflectApply(value, null, badArrayLike);
2370
+ } catch (e) {
2371
+ if (e !== isCallableMarker) { return false; }
2372
+ }
2373
+ return !isES6ClassFn(value);
2374
+ }
2375
+ : function isCallable(value) {
2376
+ if (value === documentDotAll) { return true; }
2377
+ if (!value) { return false; }
2378
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2379
+ if (typeof value === 'function' && !value.prototype) { return true; }
2380
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
2381
+ if (isES6ClassFn(value)) { return false; }
2382
+ var strClass = toStr$5.call(value);
2383
+ return strClass === fnClass || strClass === genClass;
2384
+ };
2357
2385
 
2358
- var isCallable = function isCallable(value) {
2359
- if (!value) { return false; }
2360
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2361
- if (typeof value === 'function' && !value.prototype) { return true; }
2362
- if (hasToStringTag$1) { return tryFunctionObject(value); }
2363
- if (isES6ClassFn(value)) { return false; }
2364
- var strClass = toStr$6.call(value);
2365
- return strClass === fnClass || strClass === genClass;
2366
- };
2367
-
2368
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2386
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.11
2369
2387
 
2370
2388
  var IsCallable = isCallable;
2371
2389
 
2372
- var $TypeError$2 = GetIntrinsic('%TypeError%');
2390
+ var $TypeError$2 = getIntrinsic('%TypeError%');
2373
2391
 
2374
2392
 
2375
2393
 
@@ -2398,7 +2416,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2398
2416
  if (src(Obj, 'get')) {
2399
2417
  var getter = Obj.get;
2400
2418
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2401
- throw new TypeError('getter must be a function');
2419
+ throw new $TypeError$2('getter must be a function');
2402
2420
  }
2403
2421
  desc['[[Get]]'] = getter;
2404
2422
  }
@@ -2416,7 +2434,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2416
2434
  return desc;
2417
2435
  };
2418
2436
 
2419
- var $TypeError$3 = GetIntrinsic('%TypeError%');
2437
+ var $TypeError$3 = getIntrinsic('%TypeError%');
2420
2438
 
2421
2439
 
2422
2440
 
@@ -2430,7 +2448,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2430
2448
 
2431
2449
 
2432
2450
 
2433
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2451
+ // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2434
2452
 
2435
2453
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2436
2454
  if (Type$1(O) !== 'Object') {
@@ -2456,7 +2474,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2456
2474
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2457
2475
  };
2458
2476
 
2459
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2477
+ // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2460
2478
 
2461
2479
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2462
2480
  if (typeof Desc === 'undefined') {
@@ -2476,14 +2494,14 @@ var isPrimitive = function isPrimitive(value) {
2476
2494
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2477
2495
  };
2478
2496
 
2479
- var $Object = GetIntrinsic('%Object%');
2497
+ var $Object = getIntrinsic('%Object%');
2480
2498
 
2481
2499
 
2482
2500
 
2483
2501
  var $preventExtensions = $Object.preventExtensions;
2484
2502
  var $isExtensible = $Object.isExtensible;
2485
2503
 
2486
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2504
+ // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2487
2505
 
2488
2506
  var IsExtensible = $preventExtensions
2489
2507
  ? function IsExtensible(obj) {
@@ -2497,7 +2515,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2497
2515
  return a !== a;
2498
2516
  };
2499
2517
 
2500
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2518
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.12
2501
2519
 
2502
2520
  var SameValue = function SameValue(x, y) {
2503
2521
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2507,7 +2525,7 @@ var SameValue = function SameValue(x, y) {
2507
2525
  return _isNaN(x) && _isNaN(y);
2508
2526
  };
2509
2527
 
2510
- var $TypeError$4 = GetIntrinsic('%TypeError%');
2528
+ var $TypeError$4 = getIntrinsic('%TypeError%');
2511
2529
 
2512
2530
 
2513
2531
 
@@ -2519,7 +2537,7 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
2519
2537
 
2520
2538
 
2521
2539
 
2522
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2540
+ // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2523
2541
 
2524
2542
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2525
2543
  if (Type$1(O) !== 'Object') {
@@ -2549,9 +2567,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2549
2567
  );
2550
2568
  };
2551
2569
 
2552
- var $TypeError$5 = GetIntrinsic('%TypeError%');
2570
+ var $TypeError$5 = getIntrinsic('%TypeError%');
2553
2571
 
2554
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2572
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.10
2555
2573
 
2556
2574
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2557
2575
  if (value == null) {
@@ -2562,11 +2580,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2562
2580
 
2563
2581
  var RequireObjectCoercible = CheckObjectCoercible;
2564
2582
 
2565
- var $Object$1 = GetIntrinsic('%Object%');
2583
+ var $Object$1 = getIntrinsic('%Object%');
2566
2584
 
2567
2585
 
2568
2586
 
2569
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2587
+ // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2570
2588
 
2571
2589
  var ToObject = function ToObject(value) {
2572
2590
  RequireObjectCoercible(value);
@@ -2576,10 +2594,10 @@ var ToObject = function ToObject(value) {
2576
2594
  var $gOPD$2 = Object.getOwnPropertyDescriptor;
2577
2595
  var $getOwnNames = Object.getOwnPropertyNames;
2578
2596
  var $getSymbols = Object.getOwnPropertySymbols;
2579
- var $concat = callBound('Array.prototype.concat');
2597
+ var $concat$1 = callBound('Array.prototype.concat');
2580
2598
  var $reduce = callBound('Array.prototype.reduce');
2581
2599
  var getAll = $getSymbols ? function (obj) {
2582
- return $concat($getOwnNames(obj), $getSymbols(obj));
2600
+ return $concat$1($getOwnNames(obj), $getSymbols(obj));
2583
2601
  } : $getOwnNames;
2584
2602
 
2585
2603
  var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
@@ -2618,13 +2636,281 @@ var shim = function shimGetOwnPropertyDescriptors() {
2618
2636
  return polyfill$1;
2619
2637
  };
2620
2638
 
2621
- defineProperties_1(implementation$2, {
2639
+ var bound = callBind(polyfill(), Object);
2640
+
2641
+ defineProperties_1(bound, {
2622
2642
  getPolyfill: polyfill,
2623
2643
  implementation: implementation$2,
2624
2644
  shim: shim
2625
2645
  });
2626
2646
 
2627
- var object_getownpropertydescriptors = implementation$2;
2647
+ var object_getownpropertydescriptors = bound;
2648
+
2649
+ /* globals
2650
+ Atomics,
2651
+ SharedArrayBuffer,
2652
+ */
2653
+
2654
+ var undefined$2;
2655
+
2656
+ var $TypeError$6 = TypeError;
2657
+
2658
+ var $gOPD$3 = Object.getOwnPropertyDescriptor;
2659
+ if ($gOPD$3) {
2660
+ try {
2661
+ $gOPD$3({}, '');
2662
+ } catch (e) {
2663
+ $gOPD$3 = null; // this is IE 8, which has a broken gOPD
2664
+ }
2665
+ }
2666
+
2667
+ var throwTypeError$1 = function () { throw new $TypeError$6(); };
2668
+ var ThrowTypeError$1 = $gOPD$3
2669
+ ? (function () {
2670
+ try {
2671
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
2672
+ arguments.callee; // IE 8 does not throw here
2673
+ return throwTypeError$1;
2674
+ } catch (calleeThrows) {
2675
+ try {
2676
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
2677
+ return $gOPD$3(arguments, 'callee').get;
2678
+ } catch (gOPDthrows) {
2679
+ return throwTypeError$1;
2680
+ }
2681
+ }
2682
+ }())
2683
+ : throwTypeError$1;
2684
+
2685
+ var hasSymbols$4 = hasSymbols$1();
2686
+
2687
+ var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2688
+ var generatorFunction = undefined$2;
2689
+ var asyncFunction = undefined$2;
2690
+ var asyncGenFunction = undefined$2;
2691
+
2692
+ var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
2693
+
2694
+ var INTRINSICS$1 = {
2695
+ '%Array%': Array,
2696
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
2697
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
2698
+ '%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2699
+ '%ArrayPrototype%': Array.prototype,
2700
+ '%ArrayProto_entries%': Array.prototype.entries,
2701
+ '%ArrayProto_forEach%': Array.prototype.forEach,
2702
+ '%ArrayProto_keys%': Array.prototype.keys,
2703
+ '%ArrayProto_values%': Array.prototype.values,
2704
+ '%AsyncFromSyncIteratorPrototype%': undefined$2,
2705
+ '%AsyncFunction%': asyncFunction,
2706
+ '%AsyncFunctionPrototype%': undefined$2,
2707
+ '%AsyncGenerator%': undefined$2,
2708
+ '%AsyncGeneratorFunction%': asyncGenFunction,
2709
+ '%AsyncGeneratorPrototype%': undefined$2,
2710
+ '%AsyncIteratorPrototype%': undefined$2,
2711
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
2712
+ '%Boolean%': Boolean,
2713
+ '%BooleanPrototype%': Boolean.prototype,
2714
+ '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
2715
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
2716
+ '%Date%': Date,
2717
+ '%DatePrototype%': Date.prototype,
2718
+ '%decodeURI%': decodeURI,
2719
+ '%decodeURIComponent%': decodeURIComponent,
2720
+ '%encodeURI%': encodeURI,
2721
+ '%encodeURIComponent%': encodeURIComponent,
2722
+ '%Error%': Error,
2723
+ '%ErrorPrototype%': Error.prototype,
2724
+ '%eval%': eval, // eslint-disable-line no-eval
2725
+ '%EvalError%': EvalError,
2726
+ '%EvalErrorPrototype%': EvalError.prototype,
2727
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
2728
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
2729
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
2730
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
2731
+ '%Function%': Function,
2732
+ '%FunctionPrototype%': Function.prototype,
2733
+ '%Generator%': undefined$2,
2734
+ '%GeneratorFunction%': generatorFunction,
2735
+ '%GeneratorPrototype%': undefined$2,
2736
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
2737
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2738
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
2739
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2740
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
2741
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
2742
+ '%isFinite%': isFinite,
2743
+ '%isNaN%': isNaN,
2744
+ '%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2745
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
2746
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
2747
+ '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
2748
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2749
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
2750
+ '%Math%': Math,
2751
+ '%Number%': Number,
2752
+ '%NumberPrototype%': Number.prototype,
2753
+ '%Object%': Object,
2754
+ '%ObjectPrototype%': Object.prototype,
2755
+ '%ObjProto_toString%': Object.prototype.toString,
2756
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
2757
+ '%parseFloat%': parseFloat,
2758
+ '%parseInt%': parseInt,
2759
+ '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
2760
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
2761
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
2762
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
2763
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
2764
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
2765
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
2766
+ '%RangeError%': RangeError,
2767
+ '%RangeErrorPrototype%': RangeError.prototype,
2768
+ '%ReferenceError%': ReferenceError,
2769
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
2770
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
2771
+ '%RegExp%': RegExp,
2772
+ '%RegExpPrototype%': RegExp.prototype,
2773
+ '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
2774
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2775
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
2776
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
2777
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
2778
+ '%String%': String,
2779
+ '%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2780
+ '%StringPrototype%': String.prototype,
2781
+ '%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
2782
+ '%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
2783
+ '%SyntaxError%': SyntaxError,
2784
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
2785
+ '%ThrowTypeError%': ThrowTypeError$1,
2786
+ '%TypedArray%': TypedArray$1,
2787
+ '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
2788
+ '%TypeError%': $TypeError$6,
2789
+ '%TypeErrorPrototype%': $TypeError$6.prototype,
2790
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
2791
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
2792
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
2793
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
2794
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
2795
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
2796
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
2797
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
2798
+ '%URIError%': URIError,
2799
+ '%URIErrorPrototype%': URIError.prototype,
2800
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
2801
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
2802
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
2803
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
2804
+ };
2805
+
2806
+
2807
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2808
+
2809
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2810
+ var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2811
+ var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2812
+ var stringToPath$1 = function stringToPath(string) {
2813
+ var result = [];
2814
+ $replace$1(string, rePropName$1, function (match, number, quote, subString) {
2815
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
2816
+ });
2817
+ return result;
2818
+ };
2819
+ /* end adaptation */
2820
+
2821
+ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
2822
+ if (!(name in INTRINSICS$1)) {
2823
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
2824
+ }
2825
+
2826
+ // istanbul ignore if // hopefully this is impossible to test :-)
2827
+ if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
2828
+ throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2829
+ }
2830
+
2831
+ return INTRINSICS$1[name];
2832
+ };
2833
+
2834
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
2835
+ if (typeof name !== 'string' || name.length === 0) {
2836
+ throw new TypeError('intrinsic name must be a non-empty string');
2837
+ }
2838
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2839
+ throw new TypeError('"allowMissing" argument must be a boolean');
2840
+ }
2841
+
2842
+ var parts = stringToPath$1(name);
2843
+
2844
+ var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2845
+ for (var i = 1; i < parts.length; i += 1) {
2846
+ if (value != null) {
2847
+ if ($gOPD$3 && (i + 1) >= parts.length) {
2848
+ var desc = $gOPD$3(value, parts[i]);
2849
+ if (!allowMissing && !(parts[i] in value)) {
2850
+ throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
2851
+ }
2852
+ // By convention, when a data property is converted to an accessor
2853
+ // property to emulate a data property that does not suffer from
2854
+ // the override mistake, that accessor's getter is marked with
2855
+ // an `originalValue` property. Here, when we detect this, we
2856
+ // uphold the illusion by pretending to see that original data
2857
+ // property, i.e., returning the value rather than the getter
2858
+ // itself.
2859
+ value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
2860
+ } else {
2861
+ value = value[parts[i]];
2862
+ }
2863
+ }
2864
+ }
2865
+ return value;
2866
+ };
2867
+
2868
+ var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
2869
+
2870
+
2871
+
2872
+
2873
+
2874
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
2875
+ var $call = GetIntrinsic('%Function.prototype.call%');
2876
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2877
+
2878
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2879
+
2880
+ if ($defineProperty) {
2881
+ try {
2882
+ $defineProperty({}, 'a', { value: 1 });
2883
+ } catch (e) {
2884
+ // IE 8 has a broken defineProperty
2885
+ $defineProperty = null;
2886
+ }
2887
+ }
2888
+
2889
+ module.exports = function callBind() {
2890
+ return $reflectApply(functionBind, $call, arguments);
2891
+ };
2892
+
2893
+ var applyBind = function applyBind() {
2894
+ return $reflectApply(functionBind, $apply, arguments);
2895
+ };
2896
+
2897
+ if ($defineProperty) {
2898
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2899
+ } else {
2900
+ module.exports.apply = applyBind;
2901
+ }
2902
+ });
2903
+ callBind$1.apply;
2904
+
2905
+ var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
2906
+
2907
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2908
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
2909
+ if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
2910
+ return callBind$1(intrinsic);
2911
+ }
2912
+ return intrinsic;
2913
+ };
2628
2914
 
2629
2915
  var isES5$1 = typeof Object.defineProperty === 'function'
2630
2916
  && typeof Object.defineProperties === 'function';
@@ -2643,14 +2929,14 @@ if (typeof Promise !== 'function') {
2643
2929
 
2644
2930
 
2645
2931
 
2646
- var $slice = callBound('Array.prototype.slice');
2647
- var $concat$1 = callBound('Array.prototype.concat');
2648
- var $forEach = callBound('Array.prototype.forEach');
2932
+ var $slice = callBound$1('Array.prototype.slice');
2933
+ var $concat$2 = callBound$1('Array.prototype.concat');
2934
+ var $forEach = callBound$1('Array.prototype.forEach');
2649
2935
 
2650
- var hasSymbols$3 = hasSymbols$1();
2936
+ var hasSymbols$5 = hasSymbols$1();
2651
2937
 
2652
- var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
2653
- var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2938
+ var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
2939
+ var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
2654
2940
 
2655
2941
  var implementation$3 = function promisify(orig) {
2656
2942
  if (typeof orig !== 'function') {
@@ -2660,7 +2946,7 @@ var implementation$3 = function promisify(orig) {
2660
2946
  throw error;
2661
2947
  }
2662
2948
 
2663
- if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2949
+ if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
2664
2950
  var customFunction = orig[kCustomPromisifiedSymbol];
2665
2951
  if (typeof customFunction !== 'function') {
2666
2952
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2682,7 +2968,7 @@ var implementation$3 = function promisify(orig) {
2682
2968
  var args = $slice(arguments);
2683
2969
  var self = this; // eslint-disable-line no-invalid-this
2684
2970
  return new Promise(function (resolve, reject) {
2685
- orig.apply(self, $concat$1(args, function (err) {
2971
+ orig.apply(self, $concat$2(args, function (err) {
2686
2972
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2687
2973
  if (err) {
2688
2974
  reject(err);
@@ -2767,7 +3053,7 @@ function connect() {
2767
3053
  };
2768
3054
  }
2769
3055
 
2770
- var connection = mysql.createConnection(config);
3056
+ var connection = mysql__default['default'].createConnection(config);
2771
3057
  return {
2772
3058
  query: function query(sql, args) {
2773
3059
  return util.util.promisify(connection.query).call(connection, sql, args);
@@ -2961,7 +3247,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
2961
3247
  message = utf8.stringToBytes(message);
2962
3248
  else if (isBuffer(message))
2963
3249
  message = Array.prototype.slice.call(message, 0);
2964
- else if (!Array.isArray(message))
3250
+ else if (!Array.isArray(message) && message.constructor !== Uint8Array)
2965
3251
  message = message.toString();
2966
3252
  // else, assume byte array already
2967
3253
 
@@ -3728,7 +4014,7 @@ var user = /*#__PURE__*/Object.freeze({
3728
4014
  findUser: findUser$1
3729
4015
  });
3730
4016
 
3731
- var localStrategy = new Local.Strategy({
4017
+ var localStrategy = new Local__default['default'].Strategy({
3732
4018
  usernameField: 'email',
3733
4019
  passwordField: 'password'
3734
4020
  }, function (email, password, done) {