@mjhls/mjh-framework 1.0.769-test-infinite-scroll → 1.0.770-beta.0

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 (309) hide show
  1. package/README.md +169 -169
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +29 -30
  4. package/dist/cjs/AD300x250x600.js +29 -30
  5. package/dist/cjs/AD728x90.js +36 -34
  6. package/dist/cjs/ADFloatingFooter.js +31 -32
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +31 -32
  9. package/dist/cjs/{ADInfeed-292b6640.js → ADInfeed-547e399f.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +31 -32
  11. package/dist/cjs/ADSponsoredResources.js +31 -32
  12. package/dist/cjs/ADWebcast.js +31 -32
  13. package/dist/cjs/ADWelcome.js +32 -33
  14. package/dist/cjs/{ADlgInfeed-5ab6ab43.js → ADlgInfeed-84cd6750.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +29 -31
  16. package/dist/cjs/AdSlot.js +34 -35
  17. package/dist/cjs/AdSlotsProvider.js +17 -18
  18. package/dist/cjs/AlphabeticList.js +25 -26
  19. package/dist/cjs/ArticleCarousel.js +23 -24
  20. package/dist/cjs/ArticleProgramLandingPage.js +56 -57
  21. package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
  22. package/dist/cjs/ArticleSeriesListing.js +59 -60
  23. package/dist/cjs/Auth.js +464 -688
  24. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
  25. package/dist/cjs/Beam.js +9 -9
  26. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
  27. package/dist/cjs/Breadcrumbs.js +27 -29
  28. package/dist/cjs/CMEDeck.js +83 -83
  29. package/dist/cjs/Column1.js +11 -14
  30. package/dist/cjs/Column2.js +33 -36
  31. package/dist/cjs/Column3.js +57 -60
  32. package/dist/cjs/ConferenceArticleCard.js +38 -39
  33. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  34. package/dist/cjs/DeckContent.js +103 -107
  35. package/dist/cjs/DeckQueue.js +86 -90
  36. package/dist/cjs/{Dfp-9adb8ae7.js → Dfp-ce7ac168.js} +31 -32
  37. package/dist/cjs/EventsDeck.js +152 -159
  38. package/dist/cjs/ExternalResources.js +78 -79
  39. package/dist/cjs/Feature.js +25 -27
  40. package/dist/cjs/ForbesHero.js +40 -41
  41. package/dist/cjs/GridContent.js +177 -181
  42. package/dist/cjs/GridHero.js +42 -43
  43. package/dist/cjs/GroupDeck.js +58 -59
  44. package/dist/cjs/HamMagazine.js +140 -145
  45. package/dist/cjs/Header.js +11 -13
  46. package/dist/cjs/Hero.js +12 -13
  47. package/dist/cjs/HighlightenVideo.js +17 -18
  48. package/dist/cjs/HorizontalArticleListing.js +69 -70
  49. package/dist/cjs/HorizontalHero.js +25 -26
  50. package/dist/cjs/IssueContentDeck.js +72 -77
  51. package/dist/cjs/IssueDeck.js +71 -76
  52. package/dist/cjs/IssueLanding.js +71 -72
  53. package/dist/cjs/KMTracker.js +15 -15
  54. package/dist/cjs/LeftNav.js +38 -40
  55. package/dist/cjs/MasterDeck.js +79 -80
  56. package/dist/cjs/MediaSeriesLanding.js +38 -40
  57. package/dist/cjs/NavDvm.js +75 -80
  58. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  59. package/dist/cjs/NavMagazine.js +148 -153
  60. package/dist/cjs/NavNative.js +124 -132
  61. package/dist/cjs/NavNormal.js +48 -53
  62. package/dist/cjs/OncliveHero.js +20 -20
  63. package/dist/cjs/OncliveLargeHero.js +66 -67
  64. package/dist/cjs/PageFilter.js +14 -15
  65. package/dist/cjs/PartnerDetailListing.js +108 -109
  66. package/dist/cjs/PdfDownload.js +8 -9
  67. package/dist/cjs/PopUpModal.js +19 -21
  68. package/dist/cjs/PubSection.js +41 -42
  69. package/dist/cjs/PubToc.js +16 -17
  70. package/dist/cjs/PublicationDeck.js +61 -66
  71. package/dist/cjs/PublicationLanding.js +125 -125
  72. package/dist/cjs/QueueDeckExpanded.js +294 -294
  73. package/dist/cjs/RecentNews.js +23 -24
  74. package/dist/cjs/RelatedContent.js +52 -53
  75. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  76. package/dist/cjs/RolesDeck.js +27 -32
  77. package/dist/cjs/Search.js +18 -22
  78. package/dist/cjs/Segment.js +7 -7
  79. package/dist/cjs/SeriesListingDeck.js +39 -40
  80. package/dist/cjs/{SeriesSlider-7dbeaa51.js → SeriesSlider-0a4b30a7.js} +41 -42
  81. package/dist/cjs/SetCookie.js +1 -1
  82. package/dist/cjs/SideFooter.js +38 -39
  83. package/dist/cjs/SocialIcons.js +9 -10
  84. package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-8dd468fd.js} +36 -40
  85. package/dist/cjs/SocialShare.js +29 -31
  86. package/dist/cjs/TaxonomyCard.js +58 -63
  87. package/dist/cjs/TaxonomyDescription.js +53 -54
  88. package/dist/cjs/TemplateNormal.js +74 -75
  89. package/dist/cjs/ThumbnailCard.js +20 -22
  90. package/dist/cjs/Ustream.js +26 -27
  91. package/dist/cjs/VerticalHero.js +17 -18
  92. package/dist/cjs/VideoProgramLandingPage.js +72 -76
  93. package/dist/cjs/VideoSeriesCard.js +32 -33
  94. package/dist/cjs/VideoSeriesFilter.js +19 -19
  95. package/dist/cjs/VideoSeriesLandingPage.js +48 -49
  96. package/dist/cjs/VideoSeriesListing.js +78 -79
  97. package/dist/cjs/View.js +355 -346
  98. package/dist/cjs/YahooHero.js +39 -40
  99. package/dist/cjs/YoutubeGroup.js +68 -69
  100. package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
  101. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
  102. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  103. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
  104. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
  105. package/dist/cjs/{_set-species-9f96b3af.js → _set-species-f92c67c5.js} +4 -4
  106. package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
  107. package/dist/cjs/{asyncToGenerator-6d1a113d.js → asyncToGenerator-533d476a.js} +29 -29
  108. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  109. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
  110. package/dist/cjs/{debounce-a93fa7fb.js → debounce-eb287781.js} +5 -40
  111. package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
  112. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
  113. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  114. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
  115. package/dist/cjs/{extends-9d158713.js → extends-60837c34.js} +7 -7
  116. package/dist/cjs/{get-f2a2369b.js → get-68c52cb1.js} +20 -20
  117. package/dist/cjs/getQuery.js +1 -1
  118. package/dist/cjs/getRelatedArticle.js +13 -426
  119. package/dist/cjs/getRootDocGroup.js +7 -7
  120. package/dist/cjs/getSerializers.js +43 -43
  121. package/dist/cjs/{getTargeting-3cdc6e1d.js → getTargeting-9af0ef69.js} +12 -12
  122. package/dist/cjs/getTargeting.js +8 -8
  123. package/dist/cjs/iconBase-68959171.js +3 -0
  124. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  125. package/dist/cjs/{index-50f1b226.js → index-4ec63018.js} +964 -986
  126. package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
  127. package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
  128. package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
  129. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  130. package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
  131. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  132. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  133. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  134. package/dist/cjs/index.js +160 -162
  135. package/dist/cjs/{inherits-3ff1b657.js → inherits-c9f99d47.js} +19 -19
  136. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  137. package/dist/cjs/keys-a586b7a0.js +25 -0
  138. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  139. package/dist/cjs/main-02daeefe.js +862 -0
  140. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  141. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  142. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
  143. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  144. package/dist/cjs/stringify-7c5aff47.js +17 -0
  145. package/dist/cjs/timeDifferenceCalc.js +1 -1
  146. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
  147. package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
  148. package/dist/cjs/urlFor.js +2 -2
  149. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  150. package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
  151. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
  152. package/dist/esm/AD.js +7 -7
  153. package/dist/esm/AD300x250.js +26 -26
  154. package/dist/esm/AD300x250x600.js +26 -26
  155. package/dist/esm/AD728x90.js +33 -30
  156. package/dist/esm/ADFloatingFooter.js +28 -28
  157. package/dist/esm/ADFooter.js +11 -11
  158. package/dist/esm/ADGutter.js +28 -28
  159. package/dist/esm/{ADInfeed-c85750f6.js → ADInfeed-892282a8.js} +9 -9
  160. package/dist/esm/ADSkyscraper.js +28 -28
  161. package/dist/esm/ADSponsoredResources.js +28 -28
  162. package/dist/esm/ADWebcast.js +28 -28
  163. package/dist/esm/ADWelcome.js +29 -29
  164. package/dist/esm/{ADlgInfeed-af87d4d0.js → ADlgInfeed-4cc9ead9.js} +8 -8
  165. package/dist/esm/AccordionPanel.js +24 -24
  166. package/dist/esm/AdSlot.js +26 -26
  167. package/dist/esm/AdSlotsProvider.js +14 -14
  168. package/dist/esm/AlphabeticList.js +22 -22
  169. package/dist/esm/ArticleCarousel.js +20 -20
  170. package/dist/esm/ArticleProgramLandingPage.js +53 -53
  171. package/dist/esm/ArticleSeriesLandingPage.js +37 -37
  172. package/dist/esm/ArticleSeriesListing.js +54 -54
  173. package/dist/esm/Auth.js +451 -671
  174. package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-34b16174.js} +11 -11
  175. package/dist/esm/Beam.js +9 -9
  176. package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
  177. package/dist/esm/Breadcrumbs.js +17 -17
  178. package/dist/esm/CMEDeck.js +79 -79
  179. package/dist/esm/Column1.js +5 -5
  180. package/dist/esm/Column2.js +27 -27
  181. package/dist/esm/Column3.js +50 -50
  182. package/dist/esm/ConferenceArticleCard.js +34 -34
  183. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  184. package/dist/esm/DeckContent.js +85 -85
  185. package/dist/esm/DeckQueue.js +65 -65
  186. package/dist/esm/{Dfp-16d5afd7.js → Dfp-e9a07597.js} +21 -21
  187. package/dist/esm/EventsDeck.js +105 -105
  188. package/dist/esm/ExternalResources.js +72 -72
  189. package/dist/esm/Feature.js +18 -18
  190. package/dist/esm/ForbesHero.js +34 -34
  191. package/dist/esm/GridContent.js +140 -140
  192. package/dist/esm/GridHero.js +36 -36
  193. package/dist/esm/GroupDeck.js +46 -46
  194. package/dist/esm/HamMagazine.js +114 -114
  195. package/dist/esm/Header.js +7 -7
  196. package/dist/esm/Hero.js +9 -9
  197. package/dist/esm/HighlightenVideo.js +14 -14
  198. package/dist/esm/HorizontalArticleListing.js +66 -66
  199. package/dist/esm/HorizontalHero.js +21 -21
  200. package/dist/esm/IssueContentDeck.js +49 -49
  201. package/dist/esm/IssueDeck.js +46 -46
  202. package/dist/esm/IssueLanding.js +68 -68
  203. package/dist/esm/KMTracker.js +15 -15
  204. package/dist/esm/LeftNav.js +34 -34
  205. package/dist/esm/MasterDeck.js +73 -73
  206. package/dist/esm/MediaSeriesLanding.js +31 -31
  207. package/dist/esm/NavDvm.js +57 -57
  208. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  209. package/dist/esm/NavMagazine.js +124 -124
  210. package/dist/esm/NavNative.js +100 -100
  211. package/dist/esm/NavNormal.js +36 -36
  212. package/dist/esm/OncliveHero.js +17 -16
  213. package/dist/esm/OncliveLargeHero.js +59 -59
  214. package/dist/esm/PageFilter.js +12 -12
  215. package/dist/esm/PartnerDetailListing.js +104 -104
  216. package/dist/esm/PdfDownload.js +6 -6
  217. package/dist/esm/PopUpModal.js +14 -14
  218. package/dist/esm/PubSection.js +38 -38
  219. package/dist/esm/PubToc.js +13 -13
  220. package/dist/esm/PublicationDeck.js +38 -38
  221. package/dist/esm/PublicationLanding.js +101 -97
  222. package/dist/esm/QueueDeckExpanded.js +274 -274
  223. package/dist/esm/RecentNews.js +20 -20
  224. package/dist/esm/RelatedContent.js +47 -47
  225. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  226. package/dist/esm/RolesDeck.js +13 -13
  227. package/dist/esm/Search.js +12 -12
  228. package/dist/esm/Segment.js +7 -7
  229. package/dist/esm/SeriesListingDeck.js +34 -34
  230. package/dist/esm/{SeriesSlider-c324917a.js → SeriesSlider-f629bded.js} +31 -31
  231. package/dist/esm/SetCookie.js +1 -1
  232. package/dist/esm/SideFooter.js +34 -34
  233. package/dist/esm/SocialIcons.js +7 -7
  234. package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-a2ae84d1.js} +28 -28
  235. package/dist/esm/SocialShare.js +25 -25
  236. package/dist/esm/TaxonomyCard.js +41 -41
  237. package/dist/esm/TaxonomyDescription.js +48 -48
  238. package/dist/esm/TemplateNormal.js +68 -68
  239. package/dist/esm/ThumbnailCard.js +13 -13
  240. package/dist/esm/Ustream.js +23 -23
  241. package/dist/esm/VerticalHero.js +13 -13
  242. package/dist/esm/VideoProgramLandingPage.js +62 -62
  243. package/dist/esm/VideoSeriesCard.js +25 -25
  244. package/dist/esm/VideoSeriesFilter.js +16 -16
  245. package/dist/esm/VideoSeriesLandingPage.js +41 -41
  246. package/dist/esm/VideoSeriesListing.js +72 -72
  247. package/dist/esm/View.js +339 -326
  248. package/dist/esm/YahooHero.js +34 -34
  249. package/dist/esm/YoutubeGroup.js +52 -52
  250. package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
  251. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
  252. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  253. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
  254. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
  255. package/dist/esm/{_set-species-807b5286.js → _set-species-3f8319f5.js} +4 -4
  256. package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
  257. package/dist/esm/{asyncToGenerator-207adf34.js → asyncToGenerator-502f13b4.js} +29 -29
  258. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  259. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
  260. package/dist/esm/{debounce-d47ed3d5.js → debounce-1a993acf.js} +5 -40
  261. package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
  262. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
  263. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  264. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
  265. package/dist/esm/{extends-f076879e.js → extends-eb69e8ac.js} +7 -7
  266. package/dist/esm/{get-6bdcd759.js → get-5ee14cda.js} +20 -20
  267. package/dist/esm/getQuery.js +1 -1
  268. package/dist/esm/getRelatedArticle.js +13 -426
  269. package/dist/esm/getRootDocGroup.js +7 -7
  270. package/dist/esm/getSerializers.js +43 -43
  271. package/dist/esm/{getTargeting-9e21a02f.js → getTargeting-7211f12c.js} +11 -11
  272. package/dist/esm/getTargeting.js +8 -8
  273. package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
  274. package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
  275. package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
  276. package/dist/esm/{index-821c8b90.js → index-c6e49ea4.js} +905 -921
  277. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  278. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  279. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  280. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  281. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  282. package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
  283. package/dist/esm/index.js +129 -128
  284. package/dist/esm/{inherits-f71787cf.js → inherits-fb9b6e8f.js} +19 -19
  285. package/dist/esm/{isSymbol-a8e45de6.js → isSymbol-807e927e.js} +15 -15
  286. package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
  287. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  288. package/dist/esm/main-e4a934b2.js +851 -0
  289. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  290. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
  291. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
  292. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  293. package/dist/esm/stringify-4330ccdc.js +15 -0
  294. package/dist/esm/timeDifferenceCalc.js +1 -1
  295. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
  296. package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
  297. package/dist/esm/urlFor.js +1 -1
  298. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  299. package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
  300. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
  301. package/package.json +107 -107
  302. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  303. package/dist/cjs/index-bd6c9f56.js +0 -211
  304. package/dist/cjs/keys-7f2c2108.js +0 -25
  305. package/dist/cjs/main-025fdc78.js +0 -973
  306. package/dist/cjs/stringify-c9ac1214.js +0 -17
  307. package/dist/esm/index-db3bb315.js +0 -207
  308. package/dist/esm/main-b5c5aac1.js +0 -961
  309. package/dist/esm/stringify-59c8f690.js +0 -15
package/dist/esm/Auth.js CHANGED
@@ -1,24 +1,24 @@
1
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-207adf34.js';
2
- import { _ as _JSON$stringify } from './stringify-59c8f690.js';
3
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
4
- import React, { useEffect, useState } from 'react';
1
+ import { a as commonjsGlobal, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
+ import './_to-object-a4107da3.js';
3
+ import './es6.string.iterator-c990c18c.js';
4
+ import './_library-528f1934.js';
5
+ import './_iter-detect-5d49a330.js';
6
+ import './core.get-iterator-method-e1de7503.js';
7
+ import './_object-pie-33c40e79.js';
8
+ import { _ as _extends } from './extends-eb69e8ac.js';
9
+ import './web.dom.iterable-4439f05a.js';
10
+ import React__default, { useEffect, useState } from 'react';
5
11
  import Router from 'next/router';
6
- import { _ as _extends } from './extends-f076879e.js';
12
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
13
+ import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
14
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
15
+ import './_set-species-3f8319f5.js';
7
16
  import { Col, Form, Button, Spinner } from 'react-bootstrap';
17
+ import { u as util } from './util-7700fc59.js';
8
18
  import useSWR from 'swr';
9
- import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
19
+ import { serialize, parse } from 'cookie';
10
20
  import Local from 'passport-local';
11
21
  import mysql from 'mysql';
12
- import { u as util } from './util-3ab476bf.js';
13
- import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
14
- import './es6.string.iterator-bc33758b.js';
15
- import './_to-object-b50e61c3.js';
16
- import './web.dom.iterable-4109ff68.js';
17
- import './_library-528f1934.js';
18
- import './core.get-iterator-method-133dfacd.js';
19
- import './_set-species-807b5286.js';
20
- import './_iter-detect-7e5e5ce2.js';
21
- import './_object-pie-133f504a.js';
22
22
 
23
23
  var returnFormField = function returnFormField(_ref) {
24
24
  var name = _ref.name,
@@ -57,21 +57,21 @@ var returnFormField = function returnFormField(_ref) {
57
57
  }
58
58
 
59
59
  if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
60
- return React.createElement(
60
+ return React__default.createElement(
61
61
  Form.Group,
62
62
  _extends({}, opts, { controlId: name }),
63
- React.createElement(
63
+ React__default.createElement(
64
64
  Form.Label,
65
65
  { kye: name + '_label' },
66
66
  label,
67
- required && React.createElement(
67
+ required && React__default.createElement(
68
68
  'span',
69
69
  { style: { color: 'red' } },
70
70
  '*'
71
71
  )
72
72
  ),
73
- React.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
74
- React.createElement(
73
+ React__default.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
74
+ React__default.createElement(
75
75
  Form.Control.Feedback,
76
76
  { key: name + '_feedback', type: 'invalid' },
77
77
  errors[name]
@@ -79,28 +79,28 @@ var returnFormField = function returnFormField(_ref) {
79
79
  );
80
80
  }
81
81
  if (type == 'select') {
82
- return React.createElement(
82
+ return React__default.createElement(
83
83
  Form.Group,
84
84
  _extends({}, opts, { key: name, controlId: name }),
85
- React.createElement(
85
+ React__default.createElement(
86
86
  Form.Label,
87
87
  { key: name + '_' + label },
88
88
  label,
89
- required && React.createElement(
89
+ required && React__default.createElement(
90
90
  'span',
91
91
  { key: name + '_required_span', style: { color: 'red' } },
92
92
  '*'
93
93
  )
94
94
  ),
95
- React.createElement(
95
+ React__default.createElement(
96
96
  Form.Control,
97
97
  { key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
98
- React.createElement('option', { value: '', key: name + '_options_empty' }),
98
+ React__default.createElement('option', { value: '', key: name + '_options_empty' }),
99
99
  options.map(function (option, index) {
100
100
  var value = option.value ? option.value : option;
101
101
  var label = option.label ? option.label : option;
102
102
  var key = name + '_options_' + index;
103
- return React.createElement(
103
+ return React__default.createElement(
104
104
  'option',
105
105
  { key: key, value: value },
106
106
  label
@@ -111,32 +111,32 @@ var returnFormField = function returnFormField(_ref) {
111
111
  }
112
112
 
113
113
  if (type == 'radio' || type == 'checkbox') {
114
- return React.createElement(
114
+ return React__default.createElement(
115
115
  Form.Group,
116
116
  opts,
117
- React.createElement(
117
+ React__default.createElement(
118
118
  Form.Label,
119
119
  null,
120
120
  label,
121
- required && React.createElement(
121
+ required && React__default.createElement(
122
122
  'span',
123
123
  { style: { color: 'red' } },
124
124
  '*'
125
125
  )
126
126
  ),
127
127
  options.map(function (option, index) {
128
- return React.createElement(
128
+ return React__default.createElement(
129
129
  Form.Check,
130
130
  { type: type, key: index, required: required },
131
- React.createElement(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 }),
132
- React.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
131
+ React__default.createElement(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 }),
132
+ React__default.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
133
133
  );
134
134
  })
135
135
  );
136
136
  }
137
137
  };
138
138
 
139
- var _this$4 = undefined;
139
+ var _this = undefined;
140
140
 
141
141
  var dataHandler = function () {
142
142
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(api_url, body) {
@@ -202,7 +202,7 @@ var dataHandler = function () {
202
202
  return _context.stop();
203
203
  }
204
204
  }
205
- }, _callee, _this$4, [[0, 20]]);
205
+ }, _callee, _this, [[0, 20]]);
206
206
  }));
207
207
 
208
208
  return function dataHandler(_x, _x2) {
@@ -336,43 +336,43 @@ var LoginForm = function LoginForm(props) {
336
336
  loading = _useState4[0],
337
337
  setLoading = _useState4[1];
338
338
 
339
- return React.createElement(
339
+ return React__default.createElement(
340
340
  Form,
341
341
  { className: 'login', onSubmit: handleSubmit },
342
- React.createElement(
342
+ React__default.createElement(
343
343
  'h1',
344
344
  null,
345
345
  'Login'
346
346
  ),
347
- React.createElement('hr', null),
347
+ React__default.createElement('hr', null),
348
348
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
349
349
  returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
350
- React.createElement('hr', null),
351
- React.createElement(
350
+ React__default.createElement('hr', null),
351
+ React__default.createElement(
352
352
  Form.Row,
353
353
  null,
354
- React.createElement(
354
+ React__default.createElement(
355
355
  Form.Group,
356
356
  { as: Col },
357
- React.createElement(
357
+ React__default.createElement(
358
358
  'a',
359
359
  { href: '/auth/signup' },
360
360
  'I don\'t have an account'
361
361
  )
362
362
  ),
363
- React.createElement(
363
+ React__default.createElement(
364
364
  Form.Group,
365
365
  { as: Col, className: 'text-right' },
366
- !loading && React.createElement(
366
+ !loading && React__default.createElement(
367
367
  Button,
368
368
  { type: 'submit' },
369
369
  'Login'
370
370
  ),
371
- loading && React.createElement(
371
+ loading && React__default.createElement(
372
372
  Button,
373
373
  { variant: 'primary', disabled: true },
374
- React.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
375
- React.createElement(
374
+ React__default.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
375
+ React__default.createElement(
376
376
  'span',
377
377
  { className: 'sr-only' },
378
378
  'Loading...'
@@ -380,12 +380,12 @@ var LoginForm = function LoginForm(props) {
380
380
  )
381
381
  )
382
382
  ),
383
- errorMsg && React.createElement(
383
+ errorMsg && React__default.createElement(
384
384
  'p',
385
385
  { className: 'error' },
386
386
  errorMsg
387
387
  ),
388
- React.createElement(
388
+ React__default.createElement(
389
389
  'style',
390
390
  { jsx: 'true'.toString() },
391
391
  '\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 '
@@ -398,9 +398,9 @@ var countries = ["United States", "Afghanistan", "Albania", "Algeria", "American
398
398
 
399
399
  var states = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY'];
400
400
 
401
- var _this$3 = undefined;
401
+ var _this$1 = undefined;
402
402
 
403
- var SignupForm$1 = function SignupForm(props) {
403
+ var SignupForm = function SignupForm(props) {
404
404
  var handleSubmit = function () {
405
405
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
406
406
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -561,7 +561,7 @@ var SignupForm$1 = function SignupForm(props) {
561
561
  return _context.stop();
562
562
  }
563
563
  }
564
- }, _callee, _this$3);
564
+ }, _callee, _this$1);
565
565
  }));
566
566
 
567
567
  return function loadInitData() {
@@ -628,7 +628,7 @@ var SignupForm$1 = function SignupForm(props) {
628
628
  return _context2.stop();
629
629
  }
630
630
  }
631
- }, _callee2, _this$3);
631
+ }, _callee2, _this$1);
632
632
  }));
633
633
 
634
634
  return function handleOccupationChanged(_x) {
@@ -641,29 +641,29 @@ var SignupForm$1 = function SignupForm(props) {
641
641
  loading = _useState14[0],
642
642
  setLoading = _useState14[1];
643
643
 
644
- return React.createElement(
644
+ return React__default.createElement(
645
645
  Form,
646
646
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
647
- React.createElement(
647
+ React__default.createElement(
648
648
  'h1',
649
649
  null,
650
650
  'Sign Up'
651
651
  ),
652
- React.createElement('hr', null),
652
+ React__default.createElement('hr', null),
653
653
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
654
- React.createElement(
654
+ React__default.createElement(
655
655
  Form.Row,
656
656
  null,
657
657
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
658
658
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
659
659
  ),
660
- React.createElement(
660
+ React__default.createElement(
661
661
  Form.Row,
662
662
  null,
663
663
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
664
664
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
665
665
  ),
666
- React.createElement(
666
+ React__default.createElement(
667
667
  Form.Row,
668
668
  null,
669
669
  returnFormField({
@@ -677,7 +677,7 @@ var SignupForm$1 = function SignupForm(props) {
677
677
  }),
678
678
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
679
679
  ),
680
- React.createElement(
680
+ React__default.createElement(
681
681
  Form.Row,
682
682
  null,
683
683
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
@@ -724,38 +724,38 @@ var SignupForm$1 = function SignupForm(props) {
724
724
  required: true,
725
725
  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' }]
726
726
  }),
727
- React.createElement('hr', null),
728
- React.createElement(
727
+ React__default.createElement('hr', null),
728
+ React__default.createElement(
729
729
  Form.Row,
730
730
  null,
731
- React.createElement(
731
+ React__default.createElement(
732
732
  Form.Group,
733
733
  { as: Col },
734
- React.createElement(
734
+ React__default.createElement(
735
735
  'a',
736
736
  { href: '/auth/login' },
737
737
  'I already have an account'
738
738
  )
739
739
  ),
740
- React.createElement(
740
+ React__default.createElement(
741
741
  Form.Group,
742
742
  { as: Col, className: 'text-right' },
743
- !loading && React.createElement(
743
+ !loading && React__default.createElement(
744
744
  Button,
745
745
  { type: 'submit' },
746
746
  'Sign Up'
747
747
  ),
748
- loading && React.createElement(
748
+ loading && React__default.createElement(
749
749
  Button,
750
750
  { variant: 'primary', disabled: true },
751
- React.createElement(Spinner, {
751
+ React__default.createElement(Spinner, {
752
752
  as: 'span',
753
753
  animation: 'border',
754
754
  role: 'status',
755
755
  'aria-hidden': 'true',
756
756
  size: 'sm'
757
757
  }),
758
- React.createElement(
758
+ React__default.createElement(
759
759
  'span',
760
760
  { className: 'sr-only' },
761
761
  'Loading...'
@@ -763,12 +763,12 @@ var SignupForm$1 = function SignupForm(props) {
763
763
  )
764
764
  )
765
765
  ),
766
- errorMsg && React.createElement(
766
+ errorMsg && React__default.createElement(
767
767
  'p',
768
768
  { className: 'error' },
769
769
  errorMsg
770
770
  ),
771
- React.createElement(
771
+ React__default.createElement(
772
772
  'style',
773
773
  { jsx: 'true'.toString() },
774
774
  ' \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 '
@@ -778,7 +778,7 @@ var SignupForm$1 = function SignupForm(props) {
778
778
 
779
779
  var _this$2 = undefined;
780
780
 
781
- var SignupForm = function SignupForm(props) {
781
+ var SignupForm$1 = function SignupForm(props) {
782
782
  var handleSubmit = function () {
783
783
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
784
784
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -1058,32 +1058,32 @@ var SignupForm = function SignupForm(props) {
1058
1058
  loading = _useState18[0],
1059
1059
  setLoading = _useState18[1];
1060
1060
 
1061
- return React.createElement(
1061
+ return React__default.createElement(
1062
1062
  Form,
1063
1063
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
1064
- React.createElement(
1064
+ React__default.createElement(
1065
1065
  'h1',
1066
1066
  null,
1067
1067
  'Profile'
1068
1068
  ),
1069
- React.createElement('hr', null),
1070
- userData ? React.createElement(
1071
- React.Fragment,
1069
+ React__default.createElement('hr', null),
1070
+ userData ? React__default.createElement(
1071
+ React__default.Fragment,
1072
1072
  null,
1073
1073
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
1074
- React.createElement(
1074
+ React__default.createElement(
1075
1075
  Form.Row,
1076
1076
  null,
1077
1077
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
1078
1078
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
1079
1079
  ),
1080
- React.createElement(
1080
+ React__default.createElement(
1081
1081
  Form.Row,
1082
1082
  null,
1083
1083
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
1084
1084
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
1085
1085
  ),
1086
- React.createElement(
1086
+ React__default.createElement(
1087
1087
  Form.Row,
1088
1088
  null,
1089
1089
  returnFormField({
@@ -1098,7 +1098,7 @@ var SignupForm = function SignupForm(props) {
1098
1098
  }),
1099
1099
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
1100
1100
  ),
1101
- React.createElement(
1101
+ React__default.createElement(
1102
1102
  Form.Row,
1103
1103
  null,
1104
1104
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
@@ -1148,29 +1148,29 @@ var SignupForm = function SignupForm(props) {
1148
1148
  required: true,
1149
1149
  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' }]
1150
1150
  }),
1151
- React.createElement('hr', null),
1152
- React.createElement(
1151
+ React__default.createElement('hr', null),
1152
+ React__default.createElement(
1153
1153
  Form.Row,
1154
1154
  null,
1155
- React.createElement(
1155
+ React__default.createElement(
1156
1156
  Form.Group,
1157
1157
  { as: Col },
1158
- !loading && React.createElement(
1158
+ !loading && React__default.createElement(
1159
1159
  Button,
1160
1160
  { type: 'submit' },
1161
1161
  'Update'
1162
1162
  ),
1163
- loading && React.createElement(
1163
+ loading && React__default.createElement(
1164
1164
  Button,
1165
1165
  { variant: 'primary', disabled: true },
1166
- React.createElement(Spinner, {
1166
+ React__default.createElement(Spinner, {
1167
1167
  as: 'span',
1168
1168
  animation: 'border',
1169
1169
  role: 'status',
1170
1170
  'aria-hidden': 'true',
1171
1171
  size: 'sm'
1172
1172
  }),
1173
- React.createElement(
1173
+ React__default.createElement(
1174
1174
  'span',
1175
1175
  { className: 'sr-only' },
1176
1176
  'Loading...'
@@ -1178,24 +1178,24 @@ var SignupForm = function SignupForm(props) {
1178
1178
  )
1179
1179
  )
1180
1180
  )
1181
- ) : React.createElement(Spinner, {
1181
+ ) : React__default.createElement(Spinner, {
1182
1182
  as: 'span',
1183
1183
  animation: 'border',
1184
1184
  role: 'status',
1185
1185
  'aria-hidden': 'true',
1186
1186
  size: 'sm'
1187
1187
  }),
1188
- errorMsg && React.createElement(
1188
+ errorMsg && React__default.createElement(
1189
1189
  'p',
1190
1190
  { className: 'error' },
1191
1191
  errorMsg
1192
1192
  ),
1193
- successMsg && React.createElement(
1193
+ successMsg && React__default.createElement(
1194
1194
  'p',
1195
1195
  { className: 'success' },
1196
1196
  successMsg
1197
1197
  ),
1198
- React.createElement(
1198
+ React__default.createElement(
1199
1199
  'style',
1200
1200
  { jsx: 'true'.toString() },
1201
1201
  ' \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 '
@@ -1208,7 +1208,7 @@ var MAX_AGE = 60 * 60 * 8; // 8 hours
1208
1208
 
1209
1209
  function setTokenCookie(res, token, eKey) {
1210
1210
  var cookies_serailized = [];
1211
- cookies_serailized.push(serialize_1(TOKEN_NAME, token, {
1211
+ cookies_serailized.push(serialize(TOKEN_NAME, token, {
1212
1212
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1213
1213
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1214
1214
  //httpOnly: true,
@@ -1217,7 +1217,7 @@ function setTokenCookie(res, token, eKey) {
1217
1217
  //sameSite: 'lax',
1218
1218
  }));
1219
1219
 
1220
- cookies_serailized.push(serialize_1('eKey', eKey, {
1220
+ cookies_serailized.push(serialize('eKey', eKey, {
1221
1221
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1222
1222
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1223
1223
  //httpOnly: true,
@@ -1231,12 +1231,12 @@ function setTokenCookie(res, token, eKey) {
1231
1231
 
1232
1232
  function removeTokenCookie(res) {
1233
1233
  var cookies_serailized = [];
1234
- cookies_serailized.push(serialize_1(TOKEN_NAME, '', {
1234
+ cookies_serailized.push(serialize(TOKEN_NAME, '', {
1235
1235
  maxAge: -1,
1236
1236
  expires: new Date(Date.now() - MAX_AGE * 1000),
1237
1237
  path: '/'
1238
1238
  }));
1239
- cookies_serailized.push(serialize_1('eKey', '', {
1239
+ cookies_serailized.push(serialize('eKey', '', {
1240
1240
  maxAge: -1,
1241
1241
  expires: new Date(Date.now() - MAX_AGE * 1000),
1242
1242
  path: '/'
@@ -1251,7 +1251,7 @@ function parseCookies(req) {
1251
1251
 
1252
1252
  // For pages we do need to parse the cookies.
1253
1253
  var cookie = req.headers ? req.headers.cookie : null;
1254
- return parse_1(cookie || '');
1254
+ return parse(cookie || '');
1255
1255
  }
1256
1256
 
1257
1257
  function getTokenCookie(req) {
@@ -1313,10 +1313,10 @@ var iron = /*#__PURE__*/Object.freeze({
1313
1313
  getSession: getSession
1314
1314
  });
1315
1315
 
1316
- var toStr$5 = Object.prototype.toString;
1316
+ var toStr = Object.prototype.toString;
1317
1317
 
1318
1318
  var isArguments = function isArguments(value) {
1319
- var str = toStr$5.call(value);
1319
+ var str = toStr.call(value);
1320
1320
  var isArgs = str === '[object Arguments]';
1321
1321
  if (!isArgs) {
1322
1322
  isArgs = str !== '[object Array]' &&
@@ -1324,16 +1324,16 @@ var isArguments = function isArguments(value) {
1324
1324
  typeof value === 'object' &&
1325
1325
  typeof value.length === 'number' &&
1326
1326
  value.length >= 0 &&
1327
- toStr$5.call(value.callee) === '[object Function]';
1327
+ toStr.call(value.callee) === '[object Function]';
1328
1328
  }
1329
1329
  return isArgs;
1330
1330
  };
1331
1331
 
1332
- var keysShim$1;
1332
+ var keysShim;
1333
1333
  if (!Object.keys) {
1334
1334
  // modified from https://github.com/es-shims/es5-shim
1335
- var has$1 = Object.prototype.hasOwnProperty;
1336
- var toStr$4 = Object.prototype.toString;
1335
+ var has = Object.prototype.hasOwnProperty;
1336
+ var toStr$1 = Object.prototype.toString;
1337
1337
  var isArgs = isArguments; // eslint-disable-line global-require
1338
1338
  var isEnumerable = Object.prototype.propertyIsEnumerable;
1339
1339
  var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
@@ -1381,7 +1381,7 @@ if (!Object.keys) {
1381
1381
  if (typeof window === 'undefined') { return false; }
1382
1382
  for (var k in window) {
1383
1383
  try {
1384
- if (!excludedKeys['$' + k] && has$1.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
1384
+ if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
1385
1385
  try {
1386
1386
  equalsConstructorPrototype(window[k]);
1387
1387
  } catch (e) {
@@ -1406,11 +1406,11 @@ if (!Object.keys) {
1406
1406
  }
1407
1407
  };
1408
1408
 
1409
- keysShim$1 = function keys(object) {
1409
+ keysShim = function keys(object) {
1410
1410
  var isObject = object !== null && typeof object === 'object';
1411
- var isFunction = toStr$4.call(object) === '[object Function]';
1411
+ var isFunction = toStr$1.call(object) === '[object Function]';
1412
1412
  var isArguments = isArgs(object);
1413
- var isString = isObject && toStr$4.call(object) === '[object String]';
1413
+ var isString = isObject && toStr$1.call(object) === '[object String]';
1414
1414
  var theKeys = [];
1415
1415
 
1416
1416
  if (!isObject && !isFunction && !isArguments) {
@@ -1418,7 +1418,7 @@ if (!Object.keys) {
1418
1418
  }
1419
1419
 
1420
1420
  var skipProto = hasProtoEnumBug && isFunction;
1421
- if (isString && object.length > 0 && !has$1.call(object, 0)) {
1421
+ if (isString && object.length > 0 && !has.call(object, 0)) {
1422
1422
  for (var i = 0; i < object.length; ++i) {
1423
1423
  theKeys.push(String(i));
1424
1424
  }
@@ -1430,7 +1430,7 @@ if (!Object.keys) {
1430
1430
  }
1431
1431
  } else {
1432
1432
  for (var name in object) {
1433
- if (!(skipProto && name === 'prototype') && has$1.call(object, name)) {
1433
+ if (!(skipProto && name === 'prototype') && has.call(object, name)) {
1434
1434
  theKeys.push(String(name));
1435
1435
  }
1436
1436
  }
@@ -1440,7 +1440,7 @@ if (!Object.keys) {
1440
1440
  var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
1441
1441
 
1442
1442
  for (var k = 0; k < dontEnums.length; ++k) {
1443
- if (!(skipConstructor && dontEnums[k] === 'constructor') && has$1.call(object, dontEnums[k])) {
1443
+ if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
1444
1444
  theKeys.push(dontEnums[k]);
1445
1445
  }
1446
1446
  }
@@ -1448,17 +1448,17 @@ if (!Object.keys) {
1448
1448
  return theKeys;
1449
1449
  };
1450
1450
  }
1451
- var implementation$3 = keysShim$1;
1451
+ var implementation = keysShim;
1452
1452
 
1453
- var slice$1 = Array.prototype.slice;
1453
+ var slice = Array.prototype.slice;
1454
1454
 
1455
1455
 
1456
1456
  var origKeys = Object.keys;
1457
- var keysShim = origKeys ? function keys(o) { return origKeys(o); } : implementation$3;
1457
+ var keysShim$1 = origKeys ? function keys(o) { return origKeys(o); } : implementation;
1458
1458
 
1459
1459
  var originalKeys = Object.keys;
1460
1460
 
1461
- keysShim.shim = function shimObjectKeys() {
1461
+ keysShim$1.shim = function shimObjectKeys() {
1462
1462
  if (Object.keys) {
1463
1463
  var keysWorksWithArguments = (function () {
1464
1464
  // Safari 5.0 bug
@@ -1468,27 +1468,27 @@ keysShim.shim = function shimObjectKeys() {
1468
1468
  if (!keysWorksWithArguments) {
1469
1469
  Object.keys = function keys(object) { // eslint-disable-line func-name-matching
1470
1470
  if (isArguments(object)) {
1471
- return originalKeys(slice$1.call(object));
1471
+ return originalKeys(slice.call(object));
1472
1472
  }
1473
1473
  return originalKeys(object);
1474
1474
  };
1475
1475
  }
1476
1476
  } else {
1477
- Object.keys = keysShim;
1477
+ Object.keys = keysShim$1;
1478
1478
  }
1479
- return Object.keys || keysShim;
1479
+ return Object.keys || keysShim$1;
1480
1480
  };
1481
1481
 
1482
- var objectKeys = keysShim;
1482
+ var objectKeys = keysShim$1;
1483
1483
 
1484
- var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1484
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1485
1485
 
1486
- var toStr$3 = Object.prototype.toString;
1486
+ var toStr$2 = Object.prototype.toString;
1487
1487
  var concat = Array.prototype.concat;
1488
1488
  var origDefineProperty = Object.defineProperty;
1489
1489
 
1490
1490
  var isFunction = function (fn) {
1491
- return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
1491
+ return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
1492
1492
  };
1493
1493
 
1494
1494
  var arePropertyDescriptorsSupported = function () {
@@ -1525,7 +1525,7 @@ var defineProperty = function (object, name, value, predicate) {
1525
1525
  var defineProperties = function (object, map) {
1526
1526
  var predicates = arguments.length > 2 ? arguments[2] : {};
1527
1527
  var props = objectKeys(map);
1528
- if (hasSymbols$4) {
1528
+ if (hasSymbols) {
1529
1529
  props = concat.call(props, Object.getOwnPropertySymbols(map));
1530
1530
  }
1531
1531
  for (var i = 0; i < props.length; i += 1) {
@@ -1537,59 +1537,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1537
1537
 
1538
1538
  var defineProperties_1 = defineProperties;
1539
1539
 
1540
- /* eslint no-invalid-this: 1 */
1541
-
1542
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1543
- var slice = Array.prototype.slice;
1544
- var toStr$2 = Object.prototype.toString;
1545
- var funcType = '[object Function]';
1546
-
1547
- var implementation$2 = function bind(that) {
1548
- var target = this;
1549
- if (typeof target !== 'function' || toStr$2.call(target) !== funcType) {
1550
- throw new TypeError(ERROR_MESSAGE + target);
1551
- }
1552
- var args = slice.call(arguments, 1);
1553
-
1554
- var bound;
1555
- var binder = function () {
1556
- if (this instanceof bound) {
1557
- var result = target.apply(
1558
- this,
1559
- args.concat(slice.call(arguments))
1560
- );
1561
- if (Object(result) === result) {
1562
- return result;
1563
- }
1564
- return this;
1565
- } else {
1566
- return target.apply(
1567
- that,
1568
- args.concat(slice.call(arguments))
1569
- );
1570
- }
1571
- };
1572
-
1573
- var boundLength = Math.max(0, target.length - args.length);
1574
- var boundArgs = [];
1575
- for (var i = 0; i < boundLength; i++) {
1576
- boundArgs.push('$' + i);
1577
- }
1578
-
1579
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1580
-
1581
- if (target.prototype) {
1582
- var Empty = function Empty() {};
1583
- Empty.prototype = target.prototype;
1584
- bound.prototype = new Empty();
1585
- Empty.prototype = null;
1586
- }
1587
-
1588
- return bound;
1589
- };
1590
-
1591
- var functionBind = Function.prototype.bind || implementation$2;
1592
-
1593
1540
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1594
1541
  var shams = function hasSymbols() {
1595
1542
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -1613,7 +1560,7 @@ var shams = function hasSymbols() {
1613
1560
 
1614
1561
  var symVal = 42;
1615
1562
  obj[sym] = symVal;
1616
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1563
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1617
1564
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1618
1565
 
1619
1566
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -1631,10 +1578,10 @@ var shams = function hasSymbols() {
1631
1578
  return true;
1632
1579
  };
1633
1580
 
1634
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1581
+ var origSymbol = commonjsGlobal.Symbol;
1635
1582
 
1636
1583
 
1637
- var hasSymbols$3 = function hasNativeSymbols() {
1584
+ var hasSymbols$1 = function hasNativeSymbols() {
1638
1585
  if (typeof origSymbol !== 'function') { return false; }
1639
1586
  if (typeof Symbol !== 'function') { return false; }
1640
1587
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -1643,34 +1590,79 @@ var hasSymbols$3 = function hasNativeSymbols() {
1643
1590
  return shams();
1644
1591
  };
1645
1592
 
1646
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1593
+ /* eslint no-invalid-this: 1 */
1647
1594
 
1648
- var undefined$1;
1595
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1596
+ var slice$1 = Array.prototype.slice;
1597
+ var toStr$3 = Object.prototype.toString;
1598
+ var funcType = '[object Function]';
1649
1599
 
1650
- var $SyntaxError$1 = SyntaxError;
1651
- var $Function = Function;
1652
- var $TypeError$5 = TypeError;
1600
+ var implementation$1 = function bind(that) {
1601
+ var target = this;
1602
+ if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
1603
+ throw new TypeError(ERROR_MESSAGE + target);
1604
+ }
1605
+ var args = slice$1.call(arguments, 1);
1653
1606
 
1654
- // eslint-disable-next-line consistent-return
1655
- var getEvalledConstructor = function (expressionSyntax) {
1656
- try {
1657
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1658
- } catch (e) {}
1607
+ var bound;
1608
+ var binder = function () {
1609
+ if (this instanceof bound) {
1610
+ var result = target.apply(
1611
+ this,
1612
+ args.concat(slice$1.call(arguments))
1613
+ );
1614
+ if (Object(result) === result) {
1615
+ return result;
1616
+ }
1617
+ return this;
1618
+ } else {
1619
+ return target.apply(
1620
+ that,
1621
+ args.concat(slice$1.call(arguments))
1622
+ );
1623
+ }
1624
+ };
1625
+
1626
+ var boundLength = Math.max(0, target.length - args.length);
1627
+ var boundArgs = [];
1628
+ for (var i = 0; i < boundLength; i++) {
1629
+ boundArgs.push('$' + i);
1630
+ }
1631
+
1632
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1633
+
1634
+ if (target.prototype) {
1635
+ var Empty = function Empty() {};
1636
+ Empty.prototype = target.prototype;
1637
+ bound.prototype = new Empty();
1638
+ Empty.prototype = null;
1639
+ }
1640
+
1641
+ return bound;
1659
1642
  };
1660
1643
 
1661
- var $gOPD$2 = Object.getOwnPropertyDescriptor;
1662
- if ($gOPD$2) {
1644
+ var functionBind = Function.prototype.bind || implementation$1;
1645
+
1646
+ /* globals
1647
+ Atomics,
1648
+ SharedArrayBuffer,
1649
+ */
1650
+
1651
+ var undefined$1;
1652
+
1653
+ var $TypeError = TypeError;
1654
+
1655
+ var $gOPD = Object.getOwnPropertyDescriptor;
1656
+ if ($gOPD) {
1663
1657
  try {
1664
- $gOPD$2({}, '');
1658
+ $gOPD({}, '');
1665
1659
  } catch (e) {
1666
- $gOPD$2 = null; // this is IE 8, which has a broken gOPD
1660
+ $gOPD = null; // this is IE 8, which has a broken gOPD
1667
1661
  }
1668
1662
  }
1669
1663
 
1670
- var throwTypeError = function () {
1671
- throw new $TypeError$5();
1672
- };
1673
- var ThrowTypeError = $gOPD$2
1664
+ var throwTypeError = function () { throw new $TypeError(); };
1665
+ var ThrowTypeError = $gOPD
1674
1666
  ? (function () {
1675
1667
  try {
1676
1668
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -1679,7 +1671,7 @@ var ThrowTypeError = $gOPD$2
1679
1671
  } catch (calleeThrows) {
1680
1672
  try {
1681
1673
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1682
- return $gOPD$2(arguments, 'callee').get;
1674
+ return $gOPD(arguments, 'callee').get;
1683
1675
  } catch (gOPDthrows) {
1684
1676
  return throwTypeError;
1685
1677
  }
@@ -1687,354 +1679,206 @@ var ThrowTypeError = $gOPD$2
1687
1679
  }())
1688
1680
  : throwTypeError;
1689
1681
 
1690
- var hasSymbols$2 = hasSymbols$3();
1682
+ var hasSymbols$2 = hasSymbols$1();
1691
1683
 
1692
1684
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1693
-
1694
- var needsEval = {};
1685
+ var generatorFunction = undefined$1;
1686
+ var asyncFunction = undefined$1;
1687
+ var asyncGenFunction = undefined$1;
1695
1688
 
1696
1689
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1697
1690
 
1698
1691
  var INTRINSICS = {
1699
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1700
1692
  '%Array%': Array,
1701
1693
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1694
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1702
1695
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1696
+ '%ArrayPrototype%': Array.prototype,
1697
+ '%ArrayProto_entries%': Array.prototype.entries,
1698
+ '%ArrayProto_forEach%': Array.prototype.forEach,
1699
+ '%ArrayProto_keys%': Array.prototype.keys,
1700
+ '%ArrayProto_values%': Array.prototype.values,
1703
1701
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1704
- '%AsyncFunction%': needsEval,
1705
- '%AsyncGenerator%': needsEval,
1706
- '%AsyncGeneratorFunction%': needsEval,
1707
- '%AsyncIteratorPrototype%': needsEval,
1702
+ '%AsyncFunction%': asyncFunction,
1703
+ '%AsyncFunctionPrototype%': undefined$1,
1704
+ '%AsyncGenerator%': undefined$1,
1705
+ '%AsyncGeneratorFunction%': asyncGenFunction,
1706
+ '%AsyncGeneratorPrototype%': undefined$1,
1707
+ '%AsyncIteratorPrototype%': undefined$1,
1708
1708
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1709
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1710
1709
  '%Boolean%': Boolean,
1710
+ '%BooleanPrototype%': Boolean.prototype,
1711
1711
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1712
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1712
1713
  '%Date%': Date,
1714
+ '%DatePrototype%': Date.prototype,
1713
1715
  '%decodeURI%': decodeURI,
1714
1716
  '%decodeURIComponent%': decodeURIComponent,
1715
1717
  '%encodeURI%': encodeURI,
1716
1718
  '%encodeURIComponent%': encodeURIComponent,
1717
1719
  '%Error%': Error,
1720
+ '%ErrorPrototype%': Error.prototype,
1718
1721
  '%eval%': eval, // eslint-disable-line no-eval
1719
1722
  '%EvalError%': EvalError,
1723
+ '%EvalErrorPrototype%': EvalError.prototype,
1720
1724
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1725
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1721
1726
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1722
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1723
- '%Function%': $Function,
1724
- '%GeneratorFunction%': needsEval,
1727
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1728
+ '%Function%': Function,
1729
+ '%FunctionPrototype%': Function.prototype,
1730
+ '%Generator%': undefined$1,
1731
+ '%GeneratorFunction%': generatorFunction,
1732
+ '%GeneratorPrototype%': undefined$1,
1725
1733
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1734
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1726
1735
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1736
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1727
1737
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1738
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1728
1739
  '%isFinite%': isFinite,
1729
1740
  '%isNaN%': isNaN,
1730
1741
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1731
1742
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1743
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1732
1744
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1733
1745
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1746
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1734
1747
  '%Math%': Math,
1735
1748
  '%Number%': Number,
1749
+ '%NumberPrototype%': Number.prototype,
1736
1750
  '%Object%': Object,
1751
+ '%ObjectPrototype%': Object.prototype,
1752
+ '%ObjProto_toString%': Object.prototype.toString,
1753
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
1737
1754
  '%parseFloat%': parseFloat,
1738
1755
  '%parseInt%': parseInt,
1739
1756
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1757
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1758
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1759
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1760
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1761
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1740
1762
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1741
1763
  '%RangeError%': RangeError,
1764
+ '%RangeErrorPrototype%': RangeError.prototype,
1742
1765
  '%ReferenceError%': ReferenceError,
1766
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
1743
1767
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1744
1768
  '%RegExp%': RegExp,
1769
+ '%RegExpPrototype%': RegExp.prototype,
1745
1770
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1746
1771
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1772
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1747
1773
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1774
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1748
1775
  '%String%': String,
1749
1776
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1777
+ '%StringPrototype%': String.prototype,
1750
1778
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1751
- '%SyntaxError%': $SyntaxError$1,
1779
+ '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1780
+ '%SyntaxError%': SyntaxError,
1781
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
1752
1782
  '%ThrowTypeError%': ThrowTypeError,
1753
1783
  '%TypedArray%': TypedArray,
1754
- '%TypeError%': $TypeError$5,
1784
+ '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1785
+ '%TypeError%': $TypeError,
1786
+ '%TypeErrorPrototype%': $TypeError.prototype,
1755
1787
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1788
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1756
1789
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1790
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1757
1791
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1792
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1758
1793
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1794
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1759
1795
  '%URIError%': URIError,
1796
+ '%URIErrorPrototype%': URIError.prototype,
1760
1797
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1761
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1762
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1763
- };
1764
-
1765
- var doEval = function doEval(name) {
1766
- var value;
1767
- if (name === '%AsyncFunction%') {
1768
- value = getEvalledConstructor('async function () {}');
1769
- } else if (name === '%GeneratorFunction%') {
1770
- value = getEvalledConstructor('function* () {}');
1771
- } else if (name === '%AsyncGeneratorFunction%') {
1772
- value = getEvalledConstructor('async function* () {}');
1773
- } else if (name === '%AsyncGenerator%') {
1774
- var fn = doEval('%AsyncGeneratorFunction%');
1775
- if (fn) {
1776
- value = fn.prototype;
1777
- }
1778
- } else if (name === '%AsyncIteratorPrototype%') {
1779
- var gen = doEval('%AsyncGenerator%');
1780
- if (gen) {
1781
- value = getProto(gen.prototype);
1782
- }
1783
- }
1784
-
1785
- INTRINSICS[name] = value;
1786
-
1787
- return value;
1788
- };
1789
-
1790
- var LEGACY_ALIASES = {
1791
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1792
- '%ArrayPrototype%': ['Array', 'prototype'],
1793
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1794
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1795
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1796
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1797
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1798
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1799
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1800
- '%BooleanPrototype%': ['Boolean', 'prototype'],
1801
- '%DataViewPrototype%': ['DataView', 'prototype'],
1802
- '%DatePrototype%': ['Date', 'prototype'],
1803
- '%ErrorPrototype%': ['Error', 'prototype'],
1804
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1805
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1806
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1807
- '%FunctionPrototype%': ['Function', 'prototype'],
1808
- '%Generator%': ['GeneratorFunction', 'prototype'],
1809
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1810
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1811
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1812
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1813
- '%JSONParse%': ['JSON', 'parse'],
1814
- '%JSONStringify%': ['JSON', 'stringify'],
1815
- '%MapPrototype%': ['Map', 'prototype'],
1816
- '%NumberPrototype%': ['Number', 'prototype'],
1817
- '%ObjectPrototype%': ['Object', 'prototype'],
1818
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1819
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1820
- '%PromisePrototype%': ['Promise', 'prototype'],
1821
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1822
- '%Promise_all%': ['Promise', 'all'],
1823
- '%Promise_reject%': ['Promise', 'reject'],
1824
- '%Promise_resolve%': ['Promise', 'resolve'],
1825
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1826
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1827
- '%RegExpPrototype%': ['RegExp', 'prototype'],
1828
- '%SetPrototype%': ['Set', 'prototype'],
1829
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1830
- '%StringPrototype%': ['String', 'prototype'],
1831
- '%SymbolPrototype%': ['Symbol', 'prototype'],
1832
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1833
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1834
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1835
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1836
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1837
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1838
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1839
- '%URIErrorPrototype%': ['URIError', 'prototype'],
1840
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1841
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
1798
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
1799
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1800
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1842
1801
  };
1843
1802
 
1844
1803
 
1845
-
1846
- var $concat$2 = functionBind.call(Function.call, Array.prototype.concat);
1847
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
1848
1804
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1849
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1850
1805
 
1851
1806
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1852
1807
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1853
1808
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1854
1809
  var stringToPath = function stringToPath(string) {
1855
- var first = $strSlice(string, 0, 1);
1856
- var last = $strSlice(string, -1);
1857
- if (first === '%' && last !== '%') {
1858
- throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
1859
- } else if (last === '%' && first !== '%') {
1860
- throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
1861
- }
1862
1810
  var result = [];
1863
1811
  $replace(string, rePropName, function (match, number, quote, subString) {
1864
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1812
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1865
1813
  });
1866
1814
  return result;
1867
1815
  };
1868
1816
  /* end adaptation */
1869
1817
 
1870
1818
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1871
- var intrinsicName = name;
1872
- var alias;
1873
- if (src(LEGACY_ALIASES, intrinsicName)) {
1874
- alias = LEGACY_ALIASES[intrinsicName];
1875
- intrinsicName = '%' + alias[0] + '%';
1819
+ if (!(name in INTRINSICS)) {
1820
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1876
1821
  }
1877
1822
 
1878
- if (src(INTRINSICS, intrinsicName)) {
1879
- var value = INTRINSICS[intrinsicName];
1880
- if (value === needsEval) {
1881
- value = doEval(intrinsicName);
1882
- }
1883
- if (typeof value === 'undefined' && !allowMissing) {
1884
- throw new $TypeError$5('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1885
- }
1886
-
1887
- return {
1888
- alias: alias,
1889
- name: intrinsicName,
1890
- value: value
1891
- };
1823
+ // istanbul ignore if // hopefully this is impossible to test :-)
1824
+ if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
1825
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1892
1826
  }
1893
1827
 
1894
- throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
1828
+ return INTRINSICS[name];
1895
1829
  };
1896
1830
 
1897
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1831
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1898
1832
  if (typeof name !== 'string' || name.length === 0) {
1899
- throw new $TypeError$5('intrinsic name must be a non-empty string');
1833
+ throw new TypeError('intrinsic name must be a non-empty string');
1900
1834
  }
1901
1835
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1902
- throw new $TypeError$5('"allowMissing" argument must be a boolean');
1836
+ throw new TypeError('"allowMissing" argument must be a boolean');
1903
1837
  }
1904
1838
 
1905
1839
  var parts = stringToPath(name);
1906
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1907
-
1908
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1909
- var intrinsicRealName = intrinsic.name;
1910
- var value = intrinsic.value;
1911
- var skipFurtherCaching = false;
1912
-
1913
- var alias = intrinsic.alias;
1914
- if (alias) {
1915
- intrinsicBaseName = alias[0];
1916
- $spliceApply(parts, $concat$2([0, 1], alias));
1917
- }
1918
-
1919
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1920
- var part = parts[i];
1921
- var first = $strSlice(part, 0, 1);
1922
- var last = $strSlice(part, -1);
1923
- if (
1924
- (
1925
- (first === '"' || first === "'" || first === '`')
1926
- || (last === '"' || last === "'" || last === '`')
1927
- )
1928
- && first !== last
1929
- ) {
1930
- throw new $SyntaxError$1('property names with quotes must have matching quotes');
1931
- }
1932
- if (part === 'constructor' || !isOwn) {
1933
- skipFurtherCaching = true;
1934
- }
1935
-
1936
- intrinsicBaseName += '.' + part;
1937
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1938
1840
 
1939
- if (src(INTRINSICS, intrinsicRealName)) {
1940
- value = INTRINSICS[intrinsicRealName];
1941
- } else if (value != null) {
1942
- if (!(part in value)) {
1943
- if (!allowMissing) {
1944
- throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
1945
- }
1946
- return void undefined$1;
1947
- }
1948
- if ($gOPD$2 && (i + 1) >= parts.length) {
1949
- var desc = $gOPD$2(value, part);
1950
- isOwn = !!desc;
1951
-
1952
- // By convention, when a data property is converted to an accessor
1953
- // property to emulate a data property that does not suffer from
1954
- // the override mistake, that accessor's getter is marked with
1955
- // an `originalValue` property. Here, when we detect this, we
1956
- // uphold the illusion by pretending to see that original data
1957
- // property, i.e., returning the value rather than the getter
1958
- // itself.
1959
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1960
- value = desc.get;
1961
- } else {
1962
- value = value[part];
1841
+ var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
1842
+ for (var i = 1; i < parts.length; i += 1) {
1843
+ if (value != null) {
1844
+ if ($gOPD && (i + 1) >= parts.length) {
1845
+ var desc = $gOPD(value, parts[i]);
1846
+ if (!allowMissing && !(parts[i] in value)) {
1847
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1963
1848
  }
1849
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
1964
1850
  } else {
1965
- isOwn = src(value, part);
1966
- value = value[part];
1967
- }
1968
-
1969
- if (isOwn && !skipFurtherCaching) {
1970
- INTRINSICS[intrinsicRealName] = value;
1851
+ value = value[parts[i]];
1971
1852
  }
1972
1853
  }
1973
1854
  }
1974
1855
  return value;
1975
1856
  };
1976
1857
 
1977
- var callBind = createCommonjsModule(function (module) {
1978
-
1858
+ var $Function = GetIntrinsic('%Function%');
1859
+ var $apply = $Function.apply;
1860
+ var $call = $Function.call;
1979
1861
 
1980
-
1981
-
1982
- var $apply = getIntrinsic('%Function.prototype.apply%');
1983
- var $call = getIntrinsic('%Function.prototype.call%');
1984
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1985
-
1986
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1987
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1988
- var $max = getIntrinsic('%Math.max%');
1989
-
1990
- if ($defineProperty) {
1991
- try {
1992
- $defineProperty({}, 'a', { value: 1 });
1993
- } catch (e) {
1994
- // IE 8 has a broken defineProperty
1995
- $defineProperty = null;
1996
- }
1997
- }
1998
-
1999
- module.exports = function callBind(originalFunction) {
2000
- var func = $reflectApply(functionBind, $call, arguments);
2001
- if ($gOPD && $defineProperty) {
2002
- var desc = $gOPD(func, 'length');
2003
- if (desc.configurable) {
2004
- // original length, plus the receiver, minus any additional arguments (after the receiver)
2005
- $defineProperty(
2006
- func,
2007
- 'length',
2008
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2009
- );
2010
- }
2011
- }
2012
- return func;
1862
+ var callBind = function callBind() {
1863
+ return functionBind.apply($call, arguments);
2013
1864
  };
2014
1865
 
2015
- var applyBind = function applyBind() {
2016
- return $reflectApply(functionBind, $apply, arguments);
1866
+ var apply = function applyBind() {
1867
+ return functionBind.apply($apply, arguments);
2017
1868
  };
1869
+ callBind.apply = apply;
2018
1870
 
2019
- if ($defineProperty) {
2020
- $defineProperty(module.exports, 'apply', { value: applyBind });
2021
- } else {
2022
- module.exports.apply = applyBind;
2023
- }
2024
- });
2025
- callBind.apply;
1871
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2026
1872
 
2027
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2028
-
2029
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2030
- var intrinsic = getIntrinsic(name, !!allowMissing);
2031
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1873
+ var callBound = function callBoundIntrinsic(name, allowMissing) {
1874
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
1875
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2032
1876
  return callBind(intrinsic);
2033
1877
  }
2034
1878
  return intrinsic;
2035
1879
  };
2036
1880
 
2037
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1881
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2038
1882
 
2039
1883
  if ($defineProperty) {
2040
1884
  try {
@@ -2047,7 +1891,7 @@ if ($defineProperty) {
2047
1891
 
2048
1892
 
2049
1893
 
2050
- var $isEnumerable$1 = callBound$1('Object.prototype.propertyIsEnumerable');
1894
+ var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
2051
1895
 
2052
1896
  // eslint-disable-next-line max-params
2053
1897
  var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {
@@ -2061,7 +1905,7 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2061
1905
  }
2062
1906
 
2063
1907
  // fallback for ES3
2064
- if (P in O && $isEnumerable$1(O, P) !== !!desc['[[Enumerable]]']) {
1908
+ if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {
2065
1909
  // a non-enumerable existing property
2066
1910
  return false;
2067
1911
  }
@@ -2076,13 +1920,15 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2076
1920
  return true;
2077
1921
  };
2078
1922
 
2079
- var $TypeError$4 = getIntrinsic('%TypeError%');
2080
- var $SyntaxError = getIntrinsic('%SyntaxError%');
1923
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1924
+
1925
+ var $TypeError$1 = GetIntrinsic('%TypeError%');
1926
+ var $SyntaxError = GetIntrinsic('%SyntaxError%');
2081
1927
 
2082
1928
 
2083
1929
 
2084
1930
  var predicates = {
2085
- // https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type
1931
+ // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
2086
1932
  'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
2087
1933
  if (Type(Desc) !== 'Object') {
2088
1934
  return false;
@@ -2105,7 +1951,7 @@ var predicates = {
2105
1951
  var isData = src(Desc, '[[Value]]');
2106
1952
  var IsAccessor = src(Desc, '[[Get]]') || src(Desc, '[[Set]]');
2107
1953
  if (isData && IsAccessor) {
2108
- throw new $TypeError$4('Property Descriptors may not be both accessor and data descriptors');
1954
+ throw new $TypeError$1('Property Descriptors may not be both accessor and data descriptors');
2109
1955
  }
2110
1956
  return true;
2111
1957
  }
@@ -2117,13 +1963,13 @@ var assertRecord = function assertRecord(Type, recordType, argumentName, value)
2117
1963
  throw new $SyntaxError('unknown record type: ' + recordType);
2118
1964
  }
2119
1965
  if (!predicate(Type, value)) {
2120
- throw new $TypeError$4(argumentName + ' must be a ' + recordType);
1966
+ throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2121
1967
  }
2122
1968
  };
2123
1969
 
2124
- // https://262.ecma-international.org/5.1/#sec-8
1970
+ // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2125
1971
 
2126
- var Type$1 = function Type(x) {
1972
+ var Type = function Type(x) {
2127
1973
  if (x === null) {
2128
1974
  return 'Null';
2129
1975
  }
@@ -2144,26 +1990,23 @@ var Type$1 = function Type(x) {
2144
1990
  }
2145
1991
  };
2146
1992
 
2147
- // https://262.ecma-international.org/11.0/#sec-ecmascript-data-types-and-values
1993
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2148
1994
 
2149
- var Type = function Type(x) {
1995
+ var Type$1 = function Type$1(x) {
2150
1996
  if (typeof x === 'symbol') {
2151
1997
  return 'Symbol';
2152
1998
  }
2153
- if (typeof x === 'bigint') {
2154
- return 'BigInt';
2155
- }
2156
- return Type$1(x);
1999
+ return Type(x);
2157
2000
  };
2158
2001
 
2159
- // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2002
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2160
2003
 
2161
2004
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2162
2005
  if (typeof Desc === 'undefined') {
2163
2006
  return Desc;
2164
2007
  }
2165
2008
 
2166
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
2009
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2167
2010
 
2168
2011
  var obj = {};
2169
2012
  if ('[[Value]]' in Desc) {
@@ -2187,7 +2030,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2187
2030
  return obj;
2188
2031
  };
2189
2032
 
2190
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2033
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2191
2034
  if ($gOPD$1) {
2192
2035
  try {
2193
2036
  $gOPD$1([], 'length');
@@ -2199,85 +2042,65 @@ if ($gOPD$1) {
2199
2042
 
2200
2043
  var getOwnPropertyDescriptor = $gOPD$1;
2201
2044
 
2202
- var $Array = getIntrinsic('%Array%');
2045
+ var $Array = GetIntrinsic('%Array%');
2203
2046
 
2204
2047
  // eslint-disable-next-line global-require
2205
- var toStr$1 = !$Array.isArray && callBound$1('Object.prototype.toString');
2048
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2206
2049
 
2207
- // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2050
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2208
2051
 
2209
2052
  var IsArray = $Array.isArray || function IsArray(argument) {
2210
- return toStr$1(argument) === '[object Array]';
2053
+ return toStr$4(argument) === '[object Array]';
2211
2054
  };
2212
2055
 
2213
- // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2056
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2214
2057
 
2215
2058
  var IsPropertyKey = function IsPropertyKey(argument) {
2216
2059
  return typeof argument === 'string' || typeof argument === 'symbol';
2217
2060
  };
2218
2061
 
2219
- var hasSymbols$1 = hasSymbols$3();
2220
- var hasToStringTag$1 = hasSymbols$1 && typeof Symbol.toStringTag === 'symbol';
2221
- var has;
2222
- var $exec;
2223
- var isRegexMarker;
2224
- var badStringifier;
2225
-
2226
- if (hasToStringTag$1) {
2227
- has = callBound$1('Object.prototype.hasOwnProperty');
2228
- $exec = callBound$1('RegExp.prototype.exec');
2229
- isRegexMarker = {};
2062
+ var regexExec = RegExp.prototype.exec;
2063
+ var gOPD = Object.getOwnPropertyDescriptor;
2230
2064
 
2231
- var throwRegexMarker = function () {
2232
- throw isRegexMarker;
2233
- };
2234
- badStringifier = {
2235
- toString: throwRegexMarker,
2236
- valueOf: throwRegexMarker
2237
- };
2065
+ var tryRegexExecCall = function tryRegexExec(value) {
2066
+ try {
2067
+ var lastIndex = value.lastIndex;
2068
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
2238
2069
 
2239
- if (typeof Symbol.toPrimitive === 'symbol') {
2240
- badStringifier[Symbol.toPrimitive] = throwRegexMarker;
2070
+ regexExec.call(value);
2071
+ return true;
2072
+ } catch (e) {
2073
+ return false;
2074
+ } finally {
2075
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2241
2076
  }
2242
- }
2243
-
2244
- var $toString = callBound$1('Object.prototype.toString');
2245
- var gOPD = Object.getOwnPropertyDescriptor;
2077
+ };
2078
+ var toStr$5 = Object.prototype.toString;
2246
2079
  var regexClass = '[object RegExp]';
2080
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2247
2081
 
2248
- var isRegex = hasToStringTag$1
2249
- // eslint-disable-next-line consistent-return
2250
- ? function isRegex(value) {
2251
- if (!value || typeof value !== 'object') {
2252
- return false;
2253
- }
2254
-
2255
- var descriptor = gOPD(value, 'lastIndex');
2256
- var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
2257
- if (!hasLastIndexDataProperty) {
2258
- return false;
2259
- }
2082
+ var isRegex = function isRegex(value) {
2083
+ if (!value || typeof value !== 'object') {
2084
+ return false;
2085
+ }
2086
+ if (!hasToStringTag) {
2087
+ return toStr$5.call(value) === regexClass;
2088
+ }
2260
2089
 
2261
- try {
2262
- $exec(value, badStringifier);
2263
- } catch (e) {
2264
- return e === isRegexMarker;
2265
- }
2090
+ var descriptor = gOPD(value, 'lastIndex');
2091
+ var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
2092
+ if (!hasLastIndexDataProperty) {
2093
+ return false;
2266
2094
  }
2267
- : function isRegex(value) {
2268
- // In older browsers, typeof regex incorrectly returns 'function'
2269
- if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2270
- return false;
2271
- }
2272
2095
 
2273
- return $toString(value) === regexClass;
2274
- };
2096
+ return tryRegexExecCall(value);
2097
+ };
2275
2098
 
2276
- // http://262.ecma-international.org/5.1/#sec-9.2
2099
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2277
2100
 
2278
2101
  var ToBoolean = function ToBoolean(value) { return !!value; };
2279
2102
 
2280
- var $match = getIntrinsic('%Symbol.match%', true);
2103
+ var $match = GetIntrinsic('%Symbol.match%', true);
2281
2104
 
2282
2105
 
2283
2106
 
@@ -2299,27 +2122,6 @@ var IsRegExp = function IsRegExp(argument) {
2299
2122
  };
2300
2123
 
2301
2124
  var fnToStr = Function.prototype.toString;
2302
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2303
- var badArrayLike;
2304
- var isCallableMarker;
2305
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2306
- try {
2307
- badArrayLike = Object.defineProperty({}, 'length', {
2308
- get: function () {
2309
- throw isCallableMarker;
2310
- }
2311
- });
2312
- isCallableMarker = {};
2313
- // eslint-disable-next-line no-throw-literal
2314
- reflectApply(function () { throw 42; }, null, badArrayLike);
2315
- } catch (_) {
2316
- if (_ !== isCallableMarker) {
2317
- reflectApply = null;
2318
- }
2319
- }
2320
- } else {
2321
- reflectApply = null;
2322
- }
2323
2125
 
2324
2126
  var constructorRegex = /^\s*class\b/;
2325
2127
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2340,52 +2142,36 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2340
2142
  return false;
2341
2143
  }
2342
2144
  };
2343
- var toStr = Object.prototype.toString;
2145
+ var toStr$6 = Object.prototype.toString;
2344
2146
  var fnClass = '[object Function]';
2345
2147
  var genClass = '[object GeneratorFunction]';
2346
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2347
- /* globals document: false */
2348
- var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2349
-
2350
- var isCallable = reflectApply
2351
- ? function isCallable(value) {
2352
- if (value === documentDotAll) { return true; }
2353
- if (!value) { return false; }
2354
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2355
- if (typeof value === 'function' && !value.prototype) { return true; }
2356
- try {
2357
- reflectApply(value, null, badArrayLike);
2358
- } catch (e) {
2359
- if (e !== isCallableMarker) { return false; }
2360
- }
2361
- return !isES6ClassFn(value);
2362
- }
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
- if (hasToStringTag) { return tryFunctionObject(value); }
2369
- if (isES6ClassFn(value)) { return false; }
2370
- var strClass = toStr.call(value);
2371
- return strClass === fnClass || strClass === genClass;
2372
- };
2148
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2149
+
2150
+ var isCallable = function isCallable(value) {
2151
+ if (!value) { return false; }
2152
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2153
+ if (typeof value === 'function' && !value.prototype) { return true; }
2154
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
2155
+ if (isES6ClassFn(value)) { return false; }
2156
+ var strClass = toStr$6.call(value);
2157
+ return strClass === fnClass || strClass === genClass;
2158
+ };
2373
2159
 
2374
- // http://262.ecma-international.org/5.1/#sec-9.11
2160
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2375
2161
 
2376
2162
  var IsCallable = isCallable;
2377
2163
 
2378
- var $TypeError$3 = getIntrinsic('%TypeError%');
2164
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
2379
2165
 
2380
2166
 
2381
2167
 
2382
2168
 
2383
2169
 
2384
- // https://262.ecma-international.org/5.1/#sec-8.10.5
2170
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
2385
2171
 
2386
2172
  var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2387
- if (Type(Obj) !== 'Object') {
2388
- throw new $TypeError$3('ToPropertyDescriptor requires an object');
2173
+ if (Type$1(Obj) !== 'Object') {
2174
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
2389
2175
  }
2390
2176
 
2391
2177
  var desc = {};
@@ -2404,29 +2190,29 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2404
2190
  if (src(Obj, 'get')) {
2405
2191
  var getter = Obj.get;
2406
2192
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2407
- throw new $TypeError$3('getter must be a function');
2193
+ throw new TypeError('getter must be a function');
2408
2194
  }
2409
2195
  desc['[[Get]]'] = getter;
2410
2196
  }
2411
2197
  if (src(Obj, 'set')) {
2412
2198
  var setter = Obj.set;
2413
2199
  if (typeof setter !== 'undefined' && !IsCallable(setter)) {
2414
- throw new $TypeError$3('setter must be a function');
2200
+ throw new $TypeError$2('setter must be a function');
2415
2201
  }
2416
2202
  desc['[[Set]]'] = setter;
2417
2203
  }
2418
2204
 
2419
2205
  if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
2420
- throw new $TypeError$3('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
2206
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
2421
2207
  }
2422
2208
  return desc;
2423
2209
  };
2424
2210
 
2425
- var $TypeError$2 = getIntrinsic('%TypeError%');
2211
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
2426
2212
 
2427
2213
 
2428
2214
 
2429
- var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
2215
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2430
2216
 
2431
2217
 
2432
2218
 
@@ -2436,14 +2222,14 @@ var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
2436
2222
 
2437
2223
 
2438
2224
 
2439
- // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2225
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2440
2226
 
2441
2227
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2442
- if (Type(O) !== 'Object') {
2443
- throw new $TypeError$2('Assertion failed: O must be an Object');
2228
+ if (Type$1(O) !== 'Object') {
2229
+ throw new $TypeError$3('Assertion failed: O must be an Object');
2444
2230
  }
2445
2231
  if (!IsPropertyKey(P)) {
2446
- throw new $TypeError$2('Assertion failed: P must be a Property Key');
2232
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
2447
2233
  }
2448
2234
  if (!src(O, P)) {
2449
2235
  return void 0;
@@ -2454,7 +2240,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2454
2240
  var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
2455
2241
  return {
2456
2242
  '[[Configurable]]': !(arrayLength || regexLastIndex),
2457
- '[[Enumerable]]': $isEnumerable(O, P),
2243
+ '[[Enumerable]]': $isEnumerable$1(O, P),
2458
2244
  '[[Value]]': O[P],
2459
2245
  '[[Writable]]': true
2460
2246
  };
@@ -2462,14 +2248,14 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2462
2248
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2463
2249
  };
2464
2250
 
2465
- // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2251
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2466
2252
 
2467
2253
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2468
2254
  if (typeof Desc === 'undefined') {
2469
2255
  return false;
2470
2256
  }
2471
2257
 
2472
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
2258
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2473
2259
 
2474
2260
  if (!src(Desc, '[[Value]]') && !src(Desc, '[[Writable]]')) {
2475
2261
  return false;
@@ -2482,14 +2268,14 @@ var isPrimitive = function isPrimitive(value) {
2482
2268
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2483
2269
  };
2484
2270
 
2485
- var $Object$1 = getIntrinsic('%Object%');
2271
+ var $Object = GetIntrinsic('%Object%');
2486
2272
 
2487
2273
 
2488
2274
 
2489
- var $preventExtensions = $Object$1.preventExtensions;
2490
- var $isExtensible = $Object$1.isExtensible;
2275
+ var $preventExtensions = $Object.preventExtensions;
2276
+ var $isExtensible = $Object.isExtensible;
2491
2277
 
2492
- // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2278
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2493
2279
 
2494
2280
  var IsExtensible = $preventExtensions
2495
2281
  ? function IsExtensible(obj) {
@@ -2503,7 +2289,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2503
2289
  return a !== a;
2504
2290
  };
2505
2291
 
2506
- // http://262.ecma-international.org/5.1/#sec-9.12
2292
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2507
2293
 
2508
2294
  var SameValue = function SameValue(x, y) {
2509
2295
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2513,7 +2299,7 @@ var SameValue = function SameValue(x, y) {
2513
2299
  return _isNaN(x) && _isNaN(y);
2514
2300
  };
2515
2301
 
2516
- var $TypeError$1 = getIntrinsic('%TypeError%');
2302
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
2517
2303
 
2518
2304
 
2519
2305
 
@@ -2525,18 +2311,18 @@ var $TypeError$1 = getIntrinsic('%TypeError%');
2525
2311
 
2526
2312
 
2527
2313
 
2528
- // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2314
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2529
2315
 
2530
2316
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2531
- if (Type(O) !== 'Object') {
2532
- throw new $TypeError$1('Assertion failed: Type(O) is not Object');
2317
+ if (Type$1(O) !== 'Object') {
2318
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
2533
2319
  }
2534
2320
  if (!IsPropertyKey(P)) {
2535
- throw new $TypeError$1('Assertion failed: IsPropertyKey(P) is not true');
2321
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
2536
2322
  }
2537
2323
  var oldDesc = OrdinaryGetOwnProperty(O, P);
2538
- var extensible = !oldDesc || IsExtensible(O);
2539
- var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
2324
+ var extensible = oldDesc || IsExtensible(O);
2325
+ var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
2540
2326
  if (immutable || !extensible) {
2541
2327
  return false;
2542
2328
  }
@@ -2555,44 +2341,44 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2555
2341
  );
2556
2342
  };
2557
2343
 
2558
- var $TypeError = getIntrinsic('%TypeError%');
2344
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
2559
2345
 
2560
- // http://262.ecma-international.org/5.1/#sec-9.10
2346
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2561
2347
 
2562
2348
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2563
2349
  if (value == null) {
2564
- throw new $TypeError(optMessage || ('Cannot call method on ' + value));
2350
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
2565
2351
  }
2566
2352
  return value;
2567
2353
  };
2568
2354
 
2569
2355
  var RequireObjectCoercible = CheckObjectCoercible;
2570
2356
 
2571
- var $Object = getIntrinsic('%Object%');
2357
+ var $Object$1 = GetIntrinsic('%Object%');
2572
2358
 
2573
2359
 
2574
2360
 
2575
- // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2361
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2576
2362
 
2577
2363
  var ToObject = function ToObject(value) {
2578
2364
  RequireObjectCoercible(value);
2579
- return $Object(value);
2365
+ return $Object$1(value);
2580
2366
  };
2581
2367
 
2582
- var $gOPD = Object.getOwnPropertyDescriptor;
2368
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
2583
2369
  var $getOwnNames = Object.getOwnPropertyNames;
2584
2370
  var $getSymbols = Object.getOwnPropertySymbols;
2585
- var $concat$1 = callBound$1('Array.prototype.concat');
2586
- var $reduce = callBound$1('Array.prototype.reduce');
2371
+ var $concat = callBound('Array.prototype.concat');
2372
+ var $reduce = callBound('Array.prototype.reduce');
2587
2373
  var getAll = $getSymbols ? function (obj) {
2588
- return $concat$1($getOwnNames(obj), $getSymbols(obj));
2374
+ return $concat($getOwnNames(obj), $getSymbols(obj));
2589
2375
  } : $getOwnNames;
2590
2376
 
2591
- var isES5$1 = IsCallable($gOPD) && IsCallable($getOwnNames);
2377
+ var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
2592
2378
 
2593
- var implementation$1 = function getOwnPropertyDescriptors(value) {
2379
+ var implementation$2 = function getOwnPropertyDescriptors(value) {
2594
2380
  RequireObjectCoercible(value);
2595
- if (!isES5$1) {
2381
+ if (!isES5) {
2596
2382
  throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
2597
2383
  }
2598
2384
 
@@ -2600,7 +2386,7 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
2600
2386
  return $reduce(
2601
2387
  getAll(O),
2602
2388
  function (acc, key) {
2603
- var descriptor = $gOPD(O, key);
2389
+ var descriptor = $gOPD$2(O, key);
2604
2390
  if (typeof descriptor !== 'undefined') {
2605
2391
  CreateDataProperty(acc, key, descriptor);
2606
2392
  }
@@ -2610,40 +2396,34 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
2610
2396
  );
2611
2397
  };
2612
2398
 
2613
- var polyfill$2 = function getPolyfill() {
2614
- return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$1;
2399
+ var polyfill = function getPolyfill() {
2400
+ return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$2;
2615
2401
  };
2616
2402
 
2617
- var shim$1 = function shimGetOwnPropertyDescriptors() {
2618
- var polyfill = polyfill$2();
2403
+ var shim = function shimGetOwnPropertyDescriptors() {
2404
+ var polyfill$1 = polyfill();
2619
2405
  defineProperties_1(
2620
2406
  Object,
2621
- { getOwnPropertyDescriptors: polyfill },
2622
- { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
2407
+ { getOwnPropertyDescriptors: polyfill$1 },
2408
+ { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill$1; } }
2623
2409
  );
2624
- return polyfill;
2410
+ return polyfill$1;
2625
2411
  };
2626
2412
 
2627
- var bound = callBind(polyfill$2(), Object);
2628
-
2629
- defineProperties_1(bound, {
2630
- getPolyfill: polyfill$2,
2631
- implementation: implementation$1,
2632
- shim: shim$1
2413
+ defineProperties_1(implementation$2, {
2414
+ getPolyfill: polyfill,
2415
+ implementation: implementation$2,
2416
+ shim: shim
2633
2417
  });
2634
2418
 
2635
- var object_getownpropertydescriptors = bound;
2419
+ var object_getownpropertydescriptors = implementation$2;
2636
2420
 
2637
- // TODO; semver-major: remove
2638
-
2639
- var callBound = callBound$1;
2640
-
2641
- var isES5 = typeof Object.defineProperty === 'function'
2421
+ var isES5$1 = typeof Object.defineProperty === 'function'
2642
2422
  && typeof Object.defineProperties === 'function';
2643
2423
 
2644
2424
  var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
2645
2425
 
2646
- if (!isES5 || !hasProto) {
2426
+ if (!isES5$1 || !hasProto) {
2647
2427
  throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
2648
2428
  }
2649
2429
 
@@ -2656,15 +2436,15 @@ if (typeof Promise !== 'function') {
2656
2436
 
2657
2437
 
2658
2438
  var $slice = callBound('Array.prototype.slice');
2659
- var $concat = callBound('Array.prototype.concat');
2439
+ var $concat$1 = callBound('Array.prototype.concat');
2660
2440
  var $forEach = callBound('Array.prototype.forEach');
2661
2441
 
2662
- var hasSymbols = hasSymbols$3();
2442
+ var hasSymbols$3 = hasSymbols$1();
2663
2443
 
2664
- var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
2665
- var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
2444
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
2445
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2666
2446
 
2667
- var implementation = function promisify(orig) {
2447
+ var implementation$3 = function promisify(orig) {
2668
2448
  if (typeof orig !== 'function') {
2669
2449
  var error = new TypeError('The "original" argument must be of type function');
2670
2450
  error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
@@ -2672,7 +2452,7 @@ var implementation = function promisify(orig) {
2672
2452
  throw error;
2673
2453
  }
2674
2454
 
2675
- if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
2455
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2676
2456
  var customFunction = orig[kCustomPromisifiedSymbol];
2677
2457
  if (typeof customFunction !== 'function') {
2678
2458
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2694,7 +2474,7 @@ var implementation = function promisify(orig) {
2694
2474
  var args = $slice(arguments);
2695
2475
  var self = this; // eslint-disable-line no-invalid-this
2696
2476
  return new Promise(function (resolve, reject) {
2697
- orig.apply(self, $concat(args, function (err) {
2477
+ orig.apply(self, $concat$1(args, function (err) {
2698
2478
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2699
2479
  if (err) {
2700
2480
  reject(err);
@@ -2724,17 +2504,17 @@ var implementation = function promisify(orig) {
2724
2504
 
2725
2505
  var custom = kCustomPromisifiedSymbol;
2726
2506
  var customPromisifyArgs = kCustomPromisifyArgsSymbol;
2727
- implementation.custom = custom;
2728
- implementation.customPromisifyArgs = customPromisifyArgs;
2507
+ implementation$3.custom = custom;
2508
+ implementation$3.customPromisifyArgs = customPromisifyArgs;
2729
2509
 
2730
2510
  var polyfill$1 = function getPolyfill() {
2731
2511
  if (typeof util.promisify === 'function') {
2732
2512
  return util.promisify;
2733
2513
  }
2734
- return implementation;
2514
+ return implementation$3;
2735
2515
  };
2736
2516
 
2737
- var shim = function shimUtilPromisify() {
2517
+ var shim$1 = function shimUtilPromisify() {
2738
2518
  var polyfill = polyfill$1();
2739
2519
  if (polyfill !== util.promisify) {
2740
2520
  Object.defineProperty(util, 'promisify', {
@@ -2747,20 +2527,20 @@ var shim = function shimUtilPromisify() {
2747
2527
  return polyfill;
2748
2528
  };
2749
2529
 
2750
- var polyfill = polyfill$1();
2530
+ var polyfill$2 = polyfill$1();
2751
2531
 
2752
2532
 
2753
2533
  /* eslint-disable no-unused-vars */
2754
2534
  var boundPromisify = function promisify(orig) {
2755
2535
  /* eslint-enable no-unused-vars */
2756
- return polyfill.apply(util, arguments);
2536
+ return polyfill$2.apply(util, arguments);
2757
2537
  };
2758
2538
  defineProperties_1(boundPromisify, {
2759
- custom: polyfill.custom,
2760
- customPromisifyArgs: polyfill.customPromisifyArgs,
2539
+ custom: polyfill$2.custom,
2540
+ customPromisifyArgs: polyfill$2.customPromisifyArgs,
2761
2541
  getPolyfill: polyfill$1,
2762
- implementation: implementation,
2763
- shim: shim
2542
+ implementation: implementation$3,
2543
+ shim: shim$1
2764
2544
  });
2765
2545
 
2766
2546
  var util_promisify = boundPromisify;
@@ -2973,7 +2753,7 @@ var md5 = createCommonjsModule(function (module) {
2973
2753
  message = utf8.stringToBytes(message);
2974
2754
  else if (isBuffer(message))
2975
2755
  message = Array.prototype.slice.call(message, 0);
2976
- else if (!Array.isArray(message) && message.constructor !== Uint8Array)
2756
+ else if (!Array.isArray(message))
2977
2757
  message = message.toString();
2978
2758
  // else, assume byte array already
2979
2759
 
@@ -3119,16 +2899,16 @@ var md5 = createCommonjsModule(function (module) {
3119
2899
  })();
3120
2900
  });
3121
2901
 
3122
- var _this$1 = undefined;
2902
+ var _this$3 = undefined;
3123
2903
 
3124
- var config$1 = {
2904
+ var config = {
3125
2905
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
3126
2906
  user: 'nasp',
3127
2907
  password: 'uRNkF9SkfXQs6AKK',
3128
2908
  database: 'user'
3129
2909
  };
3130
2910
 
3131
- var findUser$1 = function () {
2911
+ var findUser = function () {
3132
2912
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(email) {
3133
2913
  var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
3134
2914
  var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
@@ -3140,7 +2920,7 @@ var findUser$1 = function () {
3140
2920
  _context.prev = 1;
3141
2921
 
3142
2922
 
3143
- db$1 = db(config$1);
2923
+ db$1 = db(config);
3144
2924
 
3145
2925
  query = '\n select * \n from user \n where trim(lower(email)) = ?\n ';
3146
2926
  _context.next = 6;
@@ -3236,7 +3016,7 @@ var findUser$1 = function () {
3236
3016
  };
3237
3017
  }();
3238
3018
 
3239
- var updateUser$1 = function () {
3019
+ var updateUser = function () {
3240
3020
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
3241
3021
  var db$1, query, res, hash, columns, i, column, occupation_name;
3242
3022
  return regenerator.wrap(function _callee2$(_context2) {
@@ -3249,7 +3029,7 @@ var updateUser$1 = function () {
3249
3029
 
3250
3030
  validateUserData(data);
3251
3031
 
3252
- db$1 = db(config$1);
3032
+ db$1 = db(config);
3253
3033
 
3254
3034
  _context2.next = 6;
3255
3035
  return db$1.beginTransaction();
@@ -3356,7 +3136,7 @@ var updateUser$1 = function () {
3356
3136
 
3357
3137
  return _context2.abrupt('return', {
3358
3138
  error: '',
3359
- user: findUser$1(data.email)
3139
+ user: findUser(data.email)
3360
3140
  });
3361
3141
 
3362
3142
  case 45:
@@ -3468,7 +3248,7 @@ var getOccupationNameById = function () {
3468
3248
  return _context3.stop();
3469
3249
  }
3470
3250
  }
3471
- }, _callee3, _this$1);
3251
+ }, _callee3, _this$3);
3472
3252
  }));
3473
3253
 
3474
3254
  return function getOccupationNameById(_x5, _x6) {
@@ -3476,7 +3256,7 @@ var getOccupationNameById = function () {
3476
3256
  };
3477
3257
  }();
3478
3258
 
3479
- var createUser$1 = function () {
3259
+ var createUser = function () {
3480
3260
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(data) {
3481
3261
  var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
3482
3262
  return regenerator.wrap(function _callee4$(_context4) {
@@ -3489,7 +3269,7 @@ var createUser$1 = function () {
3489
3269
 
3490
3270
  validateUserData(data, true);
3491
3271
 
3492
- db$1 = db(config$1);
3272
+ db$1 = db(config);
3493
3273
 
3494
3274
  _context4.next = 6;
3495
3275
  return db$1.beginTransaction();
@@ -3585,7 +3365,7 @@ var createUser$1 = function () {
3585
3365
  case 39:
3586
3366
  return _context4.abrupt('return', {
3587
3367
  error: '',
3588
- user: findUser$1(data.email)
3368
+ user: findUser(data.email)
3589
3369
  });
3590
3370
 
3591
3371
  case 42:
@@ -3623,7 +3403,7 @@ var createUser$1 = function () {
3623
3403
  };
3624
3404
  }();
3625
3405
 
3626
- var createUser = function () {
3406
+ var createUser$1 = function () {
3627
3407
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(data) {
3628
3408
  var res;
3629
3409
  return regenerator.wrap(function _callee$(_context) {
@@ -3631,7 +3411,7 @@ var createUser = function () {
3631
3411
  switch (_context.prev = _context.next) {
3632
3412
  case 0:
3633
3413
  _context.next = 2;
3634
- return createUser$1(data);
3414
+ return createUser(data);
3635
3415
 
3636
3416
  case 2:
3637
3417
  res = _context.sent;
@@ -3659,7 +3439,7 @@ var createUser = function () {
3659
3439
  };
3660
3440
  }();
3661
3441
 
3662
- var updateUser = function () {
3442
+ var updateUser$1 = function () {
3663
3443
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
3664
3444
  var res;
3665
3445
  return regenerator.wrap(function _callee2$(_context2) {
@@ -3667,7 +3447,7 @@ var updateUser = function () {
3667
3447
  switch (_context2.prev = _context2.next) {
3668
3448
  case 0:
3669
3449
  _context2.next = 2;
3670
- return updateUser$1(data);
3450
+ return updateUser(data);
3671
3451
 
3672
3452
  case 2:
3673
3453
  res = _context2.sent;
@@ -3695,7 +3475,7 @@ var updateUser = function () {
3695
3475
  };
3696
3476
  }();
3697
3477
 
3698
- var findUser = function () {
3478
+ var findUser$1 = function () {
3699
3479
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(_ref4) {
3700
3480
  var email = _ref4.email,
3701
3481
  password = _ref4.password;
@@ -3705,7 +3485,7 @@ var findUser = function () {
3705
3485
  switch (_context3.prev = _context3.next) {
3706
3486
  case 0:
3707
3487
  _context3.next = 2;
3708
- return findUser$1(email, password);
3488
+ return findUser(email, password);
3709
3489
 
3710
3490
  case 2:
3711
3491
  res = _context3.sent;
@@ -3735,9 +3515,9 @@ var findUser = function () {
3735
3515
 
3736
3516
  var user = /*#__PURE__*/Object.freeze({
3737
3517
  __proto__: null,
3738
- createUser: createUser,
3739
- updateUser: updateUser,
3740
- findUser: findUser
3518
+ createUser: createUser$1,
3519
+ updateUser: updateUser$1,
3520
+ findUser: findUser$1
3741
3521
  });
3742
3522
 
3743
3523
  var localStrategy = new Local.Strategy({
@@ -3745,7 +3525,7 @@ var localStrategy = new Local.Strategy({
3745
3525
  passwordField: 'password'
3746
3526
  }, function (email, password, done) {
3747
3527
 
3748
- findUser({ email: email, password: password }).then(function (user) {
3528
+ findUser$1({ email: email, password: password }).then(function (user) {
3749
3529
  done(null, user);
3750
3530
  }).catch(function (error) {
3751
3531
  done(error);
@@ -3757,9 +3537,9 @@ var passportLocal = /*#__PURE__*/Object.freeze({
3757
3537
  localStrategy: localStrategy
3758
3538
  });
3759
3539
 
3760
- var _this = undefined;
3540
+ var _this$4 = undefined;
3761
3541
 
3762
- var config = {
3542
+ var config$1 = {
3763
3543
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
3764
3544
  user: 'nasp',
3765
3545
  password: 'uRNkF9SkfXQs6AKK',
@@ -3773,7 +3553,7 @@ var getOccupation = function () {
3773
3553
  while (1) {
3774
3554
  switch (_context.prev = _context.next) {
3775
3555
  case 0:
3776
- db$1 = db(config);
3556
+ db$1 = db(config$1);
3777
3557
  query = '\n select name as label, id as value\n from occupation\n where type = ?\n ';
3778
3558
  _context.next = 4;
3779
3559
  return db$1.query(query, [type]);
@@ -3791,7 +3571,7 @@ var getOccupation = function () {
3791
3571
  return _context.stop();
3792
3572
  }
3793
3573
  }
3794
- }, _callee, _this);
3574
+ }, _callee, _this$4);
3795
3575
  }));
3796
3576
 
3797
3577
  return function getOccupation(_x) {
@@ -3806,7 +3586,7 @@ var getFieldsAndOptions = function () {
3806
3586
  while (1) {
3807
3587
  switch (_context2.prev = _context2.next) {
3808
3588
  case 0:
3809
- db$1 = db(config);
3589
+ db$1 = db(config$1);
3810
3590
  query = '\n select * \n from field\n where occupation_id = ?\n order by sorting\n ';
3811
3591
  _context2.next = 4;
3812
3592
  return db$1.query(query, [occupation]);
@@ -3854,7 +3634,7 @@ var getFieldsAndOptions = function () {
3854
3634
  return _context2.stop();
3855
3635
  }
3856
3636
  }
3857
- }, _callee2, _this);
3637
+ }, _callee2, _this$4);
3858
3638
  }));
3859
3639
 
3860
3640
  return function getFieldsAndOptions(_x2) {
@@ -3925,8 +3705,8 @@ var ProcessData = (function () {
3925
3705
  })();
3926
3706
 
3927
3707
  var LoginForm_1 = LoginForm;
3928
- var SignupForm_1 = SignupForm$1;
3929
- var ProfileForm_1 = SignupForm;
3708
+ var SignupForm_1 = SignupForm;
3709
+ var ProfileForm_1 = SignupForm$1;
3930
3710
  var AuthCookies_1 = authCookies;
3931
3711
  var AuthHooks_1 = hooks;
3932
3712
  var Iron_1 = iron;