@postnord/pn-marketweb-components 2.1.9 → 2.2.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 (918) hide show
  1. package/cjs/{index-95e5b7f9.js → index-28bbc937.js} +1 -1
  2. package/cjs/{index-4199ff85.js → index-e3e27c79.js} +278 -808
  3. package/cjs/loader.cjs.js +3 -4
  4. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
  5. package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
  6. package/cjs/pn-breakpoints.cjs.entry.js +2 -2
  7. package/cjs/pn-chart.cjs.entry.js +2 -3
  8. package/cjs/pn-charts-card.cjs.entry.js +2 -9
  9. package/cjs/pn-choice-button.cjs.entry.js +2 -5
  10. package/cjs/pn-customernumber-selector-option.cjs.entry.js +2 -2
  11. package/cjs/pn-customernumber-selector.cjs.entry.js +2 -2
  12. package/cjs/pn-filter-checkbox.cjs.entry.js +2 -5
  13. package/cjs/pn-find-price-result.cjs.entry.js +4 -7
  14. package/cjs/{pn-find-price-store-e0d1e412.js → pn-find-price-store-a91ce3f6.js} +1 -1
  15. package/cjs/pn-find-price.cjs.entry.js +4 -4
  16. package/cjs/pn-find-service-and-price-result.cjs.entry.js +4 -4
  17. package/cjs/{pn-find-service-and-price-store-6e26630d.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
  18. package/cjs/pn-find-service-and-price.cjs.entry.js +4 -4
  19. package/cjs/pn-language-selector_9.cjs.entry.js +42 -18
  20. package/cjs/pn-line-shape.cjs.entry.js +2 -2
  21. package/cjs/pn-mainnav-link.cjs.entry.js +10 -4
  22. package/cjs/{pn-mainnav-store-8c337865.js → pn-mainnav-store-61a75ea0.js} +1 -1
  23. package/cjs/pn-market-web-components.cjs.js +3 -7
  24. package/cjs/pn-marketweb-input.cjs.entry.js +7 -2
  25. package/cjs/pn-marketweb-search.cjs.entry.js +6 -2
  26. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +15 -10
  27. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +78 -70
  28. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +4 -4
  29. package/cjs/{pn-marketweb-siteheader-store-5ced6902.js → pn-marketweb-siteheader-store-e29ad918.js} +1 -1
  30. package/cjs/pn-marketweb-siteheader.cjs.entry.js +38 -10
  31. package/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
  32. package/cjs/pn-pex-pricefinder.cjs.entry.js +5 -2
  33. package/cjs/pn-product-card_3.cjs.entry.js +4 -15
  34. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  35. package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
  36. package/cjs/pn-product-tile-info_2.cjs.entry.js +3 -10
  37. package/cjs/pn-product-tile.cjs.entry.js +2 -2
  38. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +2 -2
  39. package/cjs/pn-profile-modal-profile.cjs.entry.js +4 -4
  40. package/cjs/{pn-profile-modal-store-947b08ae.js → pn-profile-modal-store-6117e304.js} +1 -1
  41. package/cjs/pn-profile-modal-type.cjs.entry.js +4 -4
  42. package/cjs/pn-profile-modal.cjs.entry.js +4 -4
  43. package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
  44. package/cjs/pn-profile-selector.cjs.entry.js +5 -5
  45. package/cjs/pn-proxio-findprice-result.cjs.entry.js +2 -5
  46. package/cjs/pn-proxio-findprice.cjs.entry.js +4 -4
  47. package/cjs/pn-proxio-pricegroup.cjs.entry.js +5 -3
  48. package/cjs/pn-proxio-productcard_4.cjs.entry.js +5 -12
  49. package/cjs/pn-quick-cta.cjs.entry.js +2 -2
  50. package/cjs/pn-quote-card.cjs.entry.js +3 -2
  51. package/cjs/pn-share-item.cjs.entry.js +22 -0
  52. package/cjs/pn-share.cjs.entry.js +64 -0
  53. package/cjs/pn-sidenav-level.cjs.entry.js +4 -4
  54. package/cjs/pn-sidenav-link.cjs.entry.js +12 -4
  55. package/cjs/{pn-sidenav-store-d2389306.js → pn-sidenav-store-d9bd9e00.js} +1 -1
  56. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +5 -4
  57. package/cjs/pn-sidenav.cjs.entry.js +6 -4
  58. package/cjs/pn-site-footer_2.cjs.entry.js +4 -3
  59. package/cjs/pn-spotlight.cjs.entry.js +2 -2
  60. package/cjs/pn-stats-info-data.cjs.entry.js +8 -8
  61. package/cjs/pn-stats-info.cjs.entry.js +2 -2
  62. package/cjs/pn-teaser-card.cjs.entry.js +4 -3
  63. package/cjs/pn-titletag.cjs.entry.js +4 -2
  64. package/collection/collection-manifest.json +4 -2
  65. package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js +11 -12
  66. package/collection/components/cards/pn-quote-card/pn-quote-card.js +79 -68
  67. package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +113 -109
  68. package/collection/components/charts/pn-chart/pn-chart.js +74 -83
  69. package/collection/components/charts/pn-charts-card/pn-charts-card.js +146 -142
  70. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +128 -133
  71. package/collection/components/cta/pn-quick-cta/pn-quick-cta.js +49 -51
  72. package/collection/components/cta/pn-share/pn-share-item.css +42 -0
  73. package/collection/components/cta/pn-share/pn-share-item.js +61 -0
  74. package/collection/components/cta/pn-share/pn-share.css +23 -0
  75. package/collection/components/cta/pn-share/pn-share.js +91 -0
  76. package/collection/components/cta/pn-share/pn-share.stories.js +22 -0
  77. package/collection/components/cta/pn-share/translations.js +17 -0
  78. package/collection/components/cta/pn-spotlight/pn-spotlight.js +51 -51
  79. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +115 -120
  80. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.js +79 -82
  81. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js +87 -93
  82. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +195 -193
  83. package/collection/components/input/pn-choice-button/pn-choice-button.js +137 -145
  84. package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js +122 -128
  85. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +355 -347
  86. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +260 -258
  87. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.js +3 -0
  88. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +221 -201
  89. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +29 -34
  90. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +101 -101
  91. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +105 -110
  92. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +45 -51
  93. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +245 -228
  94. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +256 -259
  95. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +172 -170
  96. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +75 -84
  97. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +560 -509
  98. package/collection/components/minor/pn-titletag/pn-titletag.js +49 -51
  99. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +123 -119
  100. package/collection/components/navigation/pn-language-selector/pn-language-selector.js +64 -71
  101. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +58 -58
  102. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +97 -92
  103. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +33 -39
  104. package/collection/components/navigation/pn-mainnav/pn-mainnav.js +183 -182
  105. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +22 -29
  106. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +134 -128
  107. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +34 -39
  108. package/collection/components/navigation/pn-sidenav/pn-sidenav.js +66 -71
  109. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +29 -34
  110. package/collection/components/navigation/pn-site-footer/pn-site-footer.js +75 -68
  111. package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +89 -85
  112. package/collection/components/navigation/pn-site-selector/pn-site-selector.js +73 -73
  113. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +67 -68
  114. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +90 -90
  115. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +79 -85
  116. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +188 -182
  117. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +84 -91
  118. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +115 -116
  119. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +67 -68
  120. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +76 -78
  121. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +42 -48
  122. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +179 -163
  123. package/collection/components/widgets/pn-find-price/pn-find-price.js +113 -99
  124. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +67 -66
  125. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +148 -133
  126. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +102 -87
  127. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +94 -92
  128. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +131 -138
  129. package/collection/components/widgets/pn-product-card/pn-product-card.js +21 -12
  130. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +108 -101
  131. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +140 -137
  132. package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +62 -70
  133. package/collection/components/widgets/pn-product-tile/pn-product-tile-price.js +83 -87
  134. package/collection/components/widgets/pn-product-tile/pn-product-tile.js +16 -12
  135. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +188 -187
  136. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +131 -117
  137. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +145 -130
  138. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +82 -87
  139. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +57 -55
  140. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.js +61 -70
  141. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +20 -12
  142. package/custom-elements/index.d.ts +471 -0
  143. package/custom-elements/index.js +30034 -0
  144. package/esm/{index-c118284d.js → index-5397620b.js} +279 -808
  145. package/esm/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
  146. package/esm/loader.js +3 -4
  147. package/esm/pn-bonus-progressbar-level.entry.js +2 -2
  148. package/esm/pn-bonus-progressbar.entry.js +2 -2
  149. package/esm/pn-breakpoints.entry.js +2 -2
  150. package/esm/pn-chart.entry.js +2 -3
  151. package/esm/pn-charts-card.entry.js +2 -9
  152. package/esm/pn-choice-button.entry.js +2 -5
  153. package/esm/pn-customernumber-selector-option.entry.js +2 -2
  154. package/esm/pn-customernumber-selector.entry.js +2 -2
  155. package/esm/pn-filter-checkbox.entry.js +2 -5
  156. package/esm/pn-find-price-result.entry.js +4 -7
  157. package/esm/{pn-find-price-store-e13b6651.js → pn-find-price-store-bde5071d.js} +1 -1
  158. package/esm/pn-find-price.entry.js +4 -4
  159. package/esm/pn-find-service-and-price-result.entry.js +4 -4
  160. package/esm/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  161. package/esm/pn-find-service-and-price.entry.js +4 -4
  162. package/esm/pn-language-selector_9.entry.js +42 -18
  163. package/esm/pn-line-shape.entry.js +2 -2
  164. package/esm/pn-mainnav-link.entry.js +10 -4
  165. package/{components/pn-mainnav-store.js → esm/pn-mainnav-store-28571e54.js} +1 -1
  166. package/esm/pn-market-web-components.js +3 -4
  167. package/esm/pn-marketweb-input.entry.js +7 -2
  168. package/esm/pn-marketweb-search.entry.js +6 -2
  169. package/esm/pn-marketweb-sitefooter.entry.js +15 -10
  170. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +78 -70
  171. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +4 -4
  172. package/esm/{pn-marketweb-siteheader-store-9df5290d.js → pn-marketweb-siteheader-store-cd0a1dab.js} +1 -1
  173. package/esm/pn-marketweb-siteheader.entry.js +38 -10
  174. package/esm/pn-parcel-tracker.entry.js +2 -2
  175. package/esm/pn-pex-pricefinder.entry.js +5 -2
  176. package/esm/pn-product-card_3.entry.js +4 -15
  177. package/esm/pn-product-pricelist-result.entry.js +3 -3
  178. package/esm/pn-product-pricelist.entry.js +4 -4
  179. package/esm/pn-product-tile-info_2.entry.js +3 -10
  180. package/esm/pn-product-tile.entry.js +2 -2
  181. package/esm/pn-profile-modal-customernumber.entry.js +2 -2
  182. package/esm/pn-profile-modal-profile.entry.js +4 -4
  183. package/{components/pn-profile-modal-store.js → esm/pn-profile-modal-store-ae9e0d5a.js} +1 -1
  184. package/esm/pn-profile-modal-type.entry.js +4 -4
  185. package/esm/pn-profile-modal.entry.js +4 -4
  186. package/esm/pn-profile-selector-option.entry.js +2 -2
  187. package/esm/pn-profile-selector.entry.js +5 -5
  188. package/esm/pn-proxio-findprice-result.entry.js +2 -5
  189. package/esm/pn-proxio-findprice.entry.js +4 -4
  190. package/esm/pn-proxio-pricegroup.entry.js +5 -3
  191. package/esm/pn-proxio-productcard_4.entry.js +5 -12
  192. package/esm/pn-quick-cta.entry.js +2 -2
  193. package/esm/pn-quote-card.entry.js +3 -2
  194. package/esm/pn-share-item.entry.js +18 -0
  195. package/esm/pn-share.entry.js +60 -0
  196. package/esm/pn-sidenav-level.entry.js +4 -4
  197. package/esm/pn-sidenav-link.entry.js +12 -4
  198. package/{components/pn-sidenav-store.js → esm/pn-sidenav-store-50b186d6.js} +1 -1
  199. package/esm/pn-sidenav-togglebutton.entry.js +5 -4
  200. package/esm/pn-sidenav.entry.js +6 -4
  201. package/esm/pn-site-footer_2.entry.js +4 -3
  202. package/esm/pn-spotlight.entry.js +2 -2
  203. package/esm/pn-stats-info-data.entry.js +8 -8
  204. package/esm/pn-stats-info.entry.js +2 -2
  205. package/esm/pn-teaser-card.entry.js +4 -3
  206. package/esm/pn-titletag.entry.js +4 -2
  207. package/esm/polyfills/css-shim.js +1 -1
  208. package/esm-es5/MarketWebContextService-872043cc.js +1 -1
  209. package/esm-es5/convert-f6377d13.js +1 -1
  210. package/esm-es5/index-5397620b.js +1 -0
  211. package/esm-es5/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
  212. package/esm-es5/loader.js +1 -1
  213. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  214. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  215. package/esm-es5/pn-breakpoints.entry.js +1 -1
  216. package/esm-es5/pn-chart.entry.js +2 -2
  217. package/esm-es5/pn-charts-card.entry.js +1 -1
  218. package/esm-es5/pn-choice-button.entry.js +1 -1
  219. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  220. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  221. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  222. package/esm-es5/pn-find-price-result.entry.js +1 -1
  223. package/esm-es5/{pn-find-price-store-e13b6651.js → pn-find-price-store-bde5071d.js} +1 -1
  224. package/esm-es5/pn-find-price.entry.js +1 -1
  225. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  226. package/esm-es5/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  227. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  228. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  229. package/esm-es5/pn-line-shape.entry.js +1 -1
  230. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  231. package/esm-es5/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-28571e54.js} +1 -1
  232. package/esm-es5/pn-market-web-components.js +1 -1
  233. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  234. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  235. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  236. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
  237. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  238. package/esm-es5/pn-marketweb-siteheader-store-cd0a1dab.js +1 -0
  239. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  240. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  241. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  242. package/esm-es5/pn-product-card_3.entry.js +1 -1
  243. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  244. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  245. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  246. package/esm-es5/pn-product-tile.entry.js +1 -1
  247. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  248. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  249. package/esm-es5/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-ae9e0d5a.js} +1 -1
  250. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  251. package/esm-es5/pn-profile-modal.entry.js +1 -1
  252. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  253. package/esm-es5/pn-profile-selector.entry.js +1 -1
  254. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
  255. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  256. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  257. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  258. package/esm-es5/pn-quick-cta.entry.js +1 -1
  259. package/esm-es5/pn-quote-card.entry.js +1 -1
  260. package/esm-es5/pn-share-item.entry.js +1 -0
  261. package/esm-es5/pn-share.entry.js +1 -0
  262. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  263. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  264. package/esm-es5/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  265. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  266. package/esm-es5/pn-sidenav.entry.js +1 -1
  267. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  268. package/esm-es5/pn-spotlight.entry.js +1 -1
  269. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  270. package/esm-es5/pn-stats-info.entry.js +1 -1
  271. package/esm-es5/pn-teaser-card.entry.js +1 -1
  272. package/esm-es5/pn-titletag.entry.js +1 -1
  273. package/package.json +5 -7
  274. package/pn-market-web-components/{p-6f1d6a1a.system.js → p-02ea55ad.system.js} +1 -1
  275. package/pn-market-web-components/p-0796f9b2.entry.js +1 -0
  276. package/pn-market-web-components/p-0862b4b6.entry.js +1 -0
  277. package/pn-market-web-components/p-086a72ca.system.entry.js +1 -0
  278. package/pn-market-web-components/{p-a1a58fe4.js → p-0cacf9fb.js} +1 -1
  279. package/pn-market-web-components/p-10eafcd7.entry.js +1 -0
  280. package/pn-market-web-components/{p-4bd540a4.system.entry.js → p-110e50b3.system.entry.js} +1 -1
  281. package/pn-market-web-components/{p-f7cb2ef9.system.entry.js → p-1151bf60.system.entry.js} +1 -1
  282. package/pn-market-web-components/p-138b1e76.entry.js +1 -0
  283. package/pn-market-web-components/{p-02632961.system.entry.js → p-13baed17.system.entry.js} +1 -1
  284. package/pn-market-web-components/p-15112837.entry.js +1 -0
  285. package/pn-market-web-components/p-16c4bc50.entry.js +1 -0
  286. package/pn-market-web-components/p-17c4004f.entry.js +1 -0
  287. package/pn-market-web-components/{p-0c46847e.system.entry.js → p-1c38553b.system.entry.js} +1 -1
  288. package/pn-market-web-components/p-1ca41ab1.entry.js +1 -0
  289. package/pn-market-web-components/{p-1fb4eae4.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  290. package/pn-market-web-components/p-21c01c47.entry.js +1 -0
  291. package/pn-market-web-components/p-227e1d46.entry.js +1 -0
  292. package/pn-market-web-components/p-2423d620.system.entry.js +1 -0
  293. package/pn-market-web-components/p-249964b5.entry.js +1 -0
  294. package/pn-market-web-components/p-25496649.system.entry.js +1 -0
  295. package/pn-market-web-components/{p-abfed655.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  296. package/pn-market-web-components/{p-7d463116.system.entry.js → p-28c4b4d9.system.entry.js} +1 -1
  297. package/pn-market-web-components/{p-853e6559.system.entry.js → p-290d5824.system.entry.js} +1 -1
  298. package/pn-market-web-components/p-2a598ee8.entry.js +1 -0
  299. package/pn-market-web-components/p-2c7ba802.entry.js +1 -0
  300. package/pn-market-web-components/p-2da8e5e8.system.entry.js +1 -0
  301. package/pn-market-web-components/p-2e3bde56.entry.js +1 -0
  302. package/pn-market-web-components/p-31fd7a95.system.js +1 -1
  303. package/pn-market-web-components/p-35fcd76c.system.entry.js +1 -0
  304. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  305. package/pn-market-web-components/{p-e4961116.system.entry.js → p-36a1b8e1.system.entry.js} +1 -1
  306. package/pn-market-web-components/{p-13d2d138.system.js → p-3738a2df.system.js} +1 -1
  307. package/pn-market-web-components/p-381b3ec0.entry.js +1 -0
  308. package/pn-market-web-components/p-381c034b.entry.js +1 -0
  309. package/pn-market-web-components/p-3969ec4d.entry.js +1 -0
  310. package/pn-market-web-components/{p-c576ac3e.system.entry.js → p-447ef543.system.entry.js} +1 -1
  311. package/pn-market-web-components/{p-8ca063a9.system.entry.js → p-450cbe76.system.entry.js} +1 -1
  312. package/pn-market-web-components/p-479b970a.entry.js +1 -0
  313. package/pn-market-web-components/p-499bb3ac.entry.js +1 -0
  314. package/pn-market-web-components/{p-589a9a4c.system.entry.js → p-4a03854b.system.entry.js} +1 -1
  315. package/pn-market-web-components/p-4a928837.entry.js +1 -0
  316. package/pn-market-web-components/p-4bef1bf3.entry.js +1 -0
  317. package/pn-market-web-components/{p-9f95b3c9.system.entry.js → p-4f67721e.system.entry.js} +1 -1
  318. package/pn-market-web-components/p-557328e3.system.entry.js +1 -0
  319. package/pn-market-web-components/{p-8fee0115.system.entry.js → p-58a57436.system.entry.js} +1 -1
  320. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  321. package/pn-market-web-components/p-59be826b.system.entry.js +1 -0
  322. package/pn-market-web-components/p-61dbe832.entry.js +1 -0
  323. package/pn-market-web-components/{p-b890f3f9.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  324. package/pn-market-web-components/p-67380aa4.entry.js +1 -0
  325. package/pn-market-web-components/p-67887512.system.js +1 -0
  326. package/pn-market-web-components/{p-4d561de4.system.entry.js → p-7079df88.system.entry.js} +1 -1
  327. package/pn-market-web-components/p-715d1ef7.entry.js +1 -0
  328. package/pn-market-web-components/{p-5a506356.system.entry.js → p-723b9901.system.entry.js} +1 -1
  329. package/pn-market-web-components/{p-545a40a7.system.entry.js → p-74d35edf.system.entry.js} +1 -1
  330. package/pn-market-web-components/p-756b0a84.entry.js +1 -0
  331. package/pn-market-web-components/{p-6d050c3a.system.entry.js → p-7b9fb94f.system.entry.js} +1 -1
  332. package/pn-market-web-components/{p-5b5f4a52.system.entry.js → p-7cc57591.system.entry.js} +1 -1
  333. package/pn-market-web-components/p-7ce41d14.entry.js +1 -0
  334. package/pn-market-web-components/p-7fd8b012.entry.js +1 -0
  335. package/pn-market-web-components/{p-2145d5e0.system.entry.js → p-80dce81e.system.entry.js} +1 -1
  336. package/pn-market-web-components/{p-68324e6f.system.entry.js → p-8117b79e.system.entry.js} +1 -1
  337. package/pn-market-web-components/p-81d764a0.entry.js +1 -0
  338. package/pn-market-web-components/{p-d34c9be2.system.js → p-825b8fb8.system.js} +1 -1
  339. package/pn-market-web-components/p-84193b02.system.entry.js +1 -0
  340. package/pn-market-web-components/{p-c5727e83.js → p-84699999.js} +1 -1
  341. package/pn-market-web-components/{p-ecaad0c1.js → p-86f06e26.js} +1 -1
  342. package/pn-market-web-components/p-8766fa86.system.js +1 -1
  343. package/pn-market-web-components/p-88185835.entry.js +1 -0
  344. package/pn-market-web-components/p-885bc8d7.system.entry.js +1 -0
  345. package/pn-market-web-components/p-8afa354b.system.entry.js +1 -0
  346. package/pn-market-web-components/p-8b684578.entry.js +1 -0
  347. package/pn-market-web-components/p-8e146205.entry.js +1 -0
  348. package/pn-market-web-components/p-8e38c337.entry.js +1 -0
  349. package/pn-market-web-components/p-8e4d292f.entry.js +1 -0
  350. package/pn-market-web-components/p-8ef45246.entry.js +1 -0
  351. package/pn-market-web-components/p-9344cd23.js +1 -0
  352. package/pn-market-web-components/{p-e737c51d.system.entry.js → p-93cecc43.system.entry.js} +1 -1
  353. package/pn-market-web-components/{p-3a450371.system.js → p-94958580.system.js} +1 -1
  354. package/pn-market-web-components/p-951861fa.entry.js +1 -0
  355. package/pn-market-web-components/p-98a7ddd1.system.entry.js +1 -0
  356. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  357. package/pn-market-web-components/p-9b855b11.entry.js +24 -0
  358. package/pn-market-web-components/{p-6a4ae9af.system.entry.js → p-9c3de760.system.entry.js} +1 -1
  359. package/pn-market-web-components/{p-8cefd900.system.entry.js → p-9edaf6b6.system.entry.js} +1 -1
  360. package/pn-market-web-components/p-a247058b.system.entry.js +1 -0
  361. package/pn-market-web-components/{p-6e43a937.system.entry.js → p-a275bffb.system.entry.js} +1 -1
  362. package/pn-market-web-components/p-a5171cb9.system.entry.js +1 -0
  363. package/pn-market-web-components/{p-396b254a.system.js → p-a5f75560.system.js} +1 -1
  364. package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
  365. package/pn-market-web-components/p-a921d3fd.system.entry.js +1 -0
  366. package/pn-market-web-components/{p-9010c32a.system.entry.js → p-aa271997.system.entry.js} +1 -1
  367. package/pn-market-web-components/{p-441249d9.system.js → p-add7d76c.system.js} +1 -1
  368. package/pn-market-web-components/{p-ca1f0abc.system.entry.js → p-af415c1a.system.entry.js} +1 -1
  369. package/pn-market-web-components/p-b3bf353f.entry.js +1 -0
  370. package/pn-market-web-components/p-b5fde443.entry.js +1 -0
  371. package/pn-market-web-components/{p-ffe18938.system.entry.js → p-b88337dd.system.entry.js} +1 -1
  372. package/pn-market-web-components/p-b9a84e67.entry.js +1 -0
  373. package/pn-market-web-components/p-bb626ab4.js +1 -0
  374. package/pn-market-web-components/p-bd22aaac.entry.js +1 -0
  375. package/pn-market-web-components/p-bfe239ca.js +1 -1
  376. package/pn-market-web-components/{p-5a41c1bb.system.entry.js → p-c62a91ba.system.entry.js} +1 -1
  377. package/pn-market-web-components/p-c714a790.entry.js +1 -0
  378. package/pn-market-web-components/{p-2e507907.system.entry.js → p-c9fb0f01.system.entry.js} +2 -2
  379. package/pn-market-web-components/p-d0155ddf.entry.js +1 -0
  380. package/pn-market-web-components/p-d57f4246.system.entry.js +1 -0
  381. package/pn-market-web-components/p-d7e3d918.entry.js +1 -0
  382. package/pn-market-web-components/{p-ad836c55.system.js → p-dbe032f7.system.js} +1 -1
  383. package/pn-market-web-components/p-e32dc098.entry.js +1 -0
  384. package/pn-market-web-components/p-e397e11b.entry.js +1 -0
  385. package/pn-market-web-components/{p-ef721555.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
  386. package/pn-market-web-components/p-e9576f26.entry.js +1 -0
  387. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  388. package/pn-market-web-components/p-ecdf2b69.system.entry.js +1 -0
  389. package/pn-market-web-components/p-ecf712bb.system.entry.js +1 -0
  390. package/pn-market-web-components/p-ee589138.entry.js +1 -0
  391. package/pn-market-web-components/{p-939b5792.system.entry.js → p-f312ff98.system.entry.js} +1 -1
  392. package/pn-market-web-components/{p-8666d14d.js → p-f58bde56.js} +1 -1
  393. package/pn-market-web-components/p-f61342c3.js +1 -0
  394. package/pn-market-web-components/{p-4b85fd2b.system.entry.js → p-f6ea7c38.system.entry.js} +1 -1
  395. package/pn-market-web-components/p-f774e2cc.entry.js +1 -0
  396. package/pn-market-web-components/{p-658f6ff7.system.entry.js → p-f782ce94.system.entry.js} +1 -1
  397. package/pn-market-web-components/{p-1d50340b.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  398. package/pn-market-web-components/p-fc974bca.entry.js +1 -0
  399. package/pn-market-web-components/p-fea72975.entry.js +1 -0
  400. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  401. package/pn-market-web-components/pn-market-web-components.js +1 -2
  402. package/types/components/cta/pn-share/pn-share-item.d.ts +6 -0
  403. package/types/components/cta/pn-share/pn-share.d.ts +10 -0
  404. package/types/components/cta/pn-share/translations.d.ts +17 -0
  405. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +3 -2
  406. package/types/components.d.ts +55 -53
  407. package/types/stencil-public-runtime.d.ts +7 -79
  408. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/LICENSE.md +27 -0
  409. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/bin/stencil +57 -0
  410. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/config-flags.d.ts +122 -0
  411. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +2609 -0
  412. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.d.ts +19 -0
  413. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +2583 -0
  414. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +14 -0
  415. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.d.ts +24 -0
  416. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.d.ts +18505 -0
  417. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.iterable.d.ts +341 -0
  418. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.collection.d.ts +150 -0
  419. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.core.d.ts +559 -0
  420. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.d.ts +30 -0
  421. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.generator.d.ts +79 -0
  422. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.iterable.d.ts +498 -0
  423. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.promise.d.ts +83 -0
  424. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.proxy.d.ts +130 -0
  425. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.reflect.d.ts +146 -0
  426. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.d.ts +48 -0
  427. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
  428. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.array.include.d.ts +118 -0
  429. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.d.ts +22 -0
  430. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.full.d.ts +25 -0
  431. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.d.ts +26 -0
  432. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.full.d.ts +25 -0
  433. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.intl.d.ts +47 -0
  434. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.object.d.ts +51 -0
  435. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.sharedmemory.d.ts +137 -0
  436. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.string.d.ts +47 -0
  437. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.typedarrays.d.ts +55 -0
  438. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
  439. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asynciterable.d.ts +45 -0
  440. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.d.ts +26 -0
  441. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.full.d.ts +25 -0
  442. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.intl.d.ts +73 -0
  443. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.promise.d.ts +32 -0
  444. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.regexp.d.ts +39 -0
  445. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.array.d.ts +85 -0
  446. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.d.ts +26 -0
  447. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.full.d.ts +25 -0
  448. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.intl.d.ts +25 -0
  449. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.object.d.ts +35 -0
  450. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.string.d.ts +39 -0
  451. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.symbol.d.ts +26 -0
  452. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.bigint.d.ts +730 -0
  453. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.d.ts +29 -0
  454. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.date.d.ts +44 -0
  455. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.full.d.ts +25 -0
  456. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.intl.d.ts +433 -0
  457. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.number.d.ts +30 -0
  458. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.promise.d.ts +49 -0
  459. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.sharedmemory.d.ts +99 -0
  460. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.string.d.ts +30 -0
  461. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
  462. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.d.ts +25 -0
  463. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.full.d.ts +25 -0
  464. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.intl.d.ts +154 -0
  465. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.promise.d.ts +50 -0
  466. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.string.d.ts +35 -0
  467. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.weakref.d.ts +75 -0
  468. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.array.d.ts +123 -0
  469. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.d.ts +27 -0
  470. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.error.d.ts +75 -0
  471. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.full.d.ts +25 -0
  472. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.intl.d.ts +111 -0
  473. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.object.d.ts +28 -0
  474. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  475. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.string.d.ts +27 -0
  476. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es5.d.ts +4526 -0
  477. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es6.d.ts +25 -0
  478. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.d.ts +22 -0
  479. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.full.d.ts +25 -0
  480. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.intl.d.ts +30 -0
  481. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.promise.d.ts +43 -0
  482. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.string.d.ts +35 -0
  483. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.weakref.d.ts +75 -0
  484. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.scripthost.d.ts +327 -0
  485. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.d.ts +6192 -0
  486. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.importscripts.d.ts +26 -0
  487. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.iterable.d.ts +175 -0
  488. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +8 -0
  489. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.d.ts +73 -0
  490. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +70673 -0
  491. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.min.js +4 -0
  492. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/sys/in-memory-fs.d.ts +218 -0
  493. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/transpile.d.ts +32 -0
  494. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dependencies.json +120 -0
  495. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/app-error.d.ts +18 -0
  496. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/events.d.ts +6 -0
  497. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-components.d.ts +1 -0
  498. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-external-styles.d.ts +1 -0
  499. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-images.d.ts +1 -0
  500. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-inline-styles.d.ts +1 -0
  501. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-util.d.ts +9 -0
  502. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-window.d.ts +10 -0
  503. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.d.ts +6 -0
  504. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +808 -0
  505. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/logger.d.ts +5 -0
  506. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +8 -0
  507. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/progress.d.ts +3 -0
  508. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/status.d.ts +4 -0
  509. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/hmr-util.spec.d.ts +1 -0
  510. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/status.spec.d.ts +1 -0
  511. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +6 -0
  512. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.d.ts +3 -0
  513. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +264 -0
  514. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/open-in-editor-api.js +1 -0
  515. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +8 -0
  516. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +1799 -0
  517. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-worker-thread.js +39 -0
  518. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/static/favicon.ico +0 -0
  519. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/directory-index.html +132 -0
  520. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/initial-load.html +160 -0
  521. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/visualstudio.vbs +82 -0
  522. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/ws.js +1 -0
  523. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/xdg-open +1066 -0
  524. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.cjs +92 -0
  525. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.d.ts +4 -0
  526. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.js +88 -0
  527. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +15 -0
  528. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/css-shim.js +4 -0
  529. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/dom.js +73 -0
  530. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +3371 -0
  531. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +8 -0
  532. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +142 -0
  533. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-esm.js +23 -0
  534. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/core-js.js +11 -0
  535. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/css-shim.js +1 -0
  536. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/dom.js +79 -0
  537. package/{loader/index.js → umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/es5-html-element.js} +1 -4
  538. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/index.js +34 -0
  539. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/system.js +6 -0
  540. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +387 -0
  541. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +1143 -0
  542. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +7 -0
  543. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.d.ts +217 -0
  544. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +777 -0
  545. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/shadow-css.js +143 -0
  546. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.d.ts +4 -0
  547. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.js +2 -0
  548. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +9 -0
  549. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.cjs +1 -0
  550. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +51 -0
  551. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.js +16 -0
  552. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +41 -0
  553. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +2268 -0
  554. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +2338 -0
  555. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +140 -0
  556. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +1637 -0
  557. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +1105 -0
  558. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +7 -0
  559. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/shadow-css.js +143 -0
  560. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +4858 -0
  561. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +1020 -0
  562. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +4822 -0
  563. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +15 -0
  564. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +190 -0
  565. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/readme.md +99 -0
  566. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/favicon.ico +0 -0
  567. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/logo.png +0 -0
  568. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.css +1 -0
  569. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.esm.js +1 -0
  570. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.js +33 -0
  571. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/index.esm.js +0 -0
  572. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-081b0641.js +1 -0
  573. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-227a1e18.entry.js +1 -0
  574. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-2c298727.entry.js +1 -0
  575. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-5479268c.entry.js +1 -0
  576. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
  577. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6ba08604.entry.js +1 -0
  578. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6bc63295.entry.js +1 -0
  579. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
  580. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7b4e3ba7.js +1 -0
  581. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-988eb362.css +1 -0
  582. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-9b6a9315.js +1 -0
  583. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
  584. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
  585. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e2efe0df.js +1 -0
  586. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
  587. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
  588. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f0b99977.entry.js +1 -0
  589. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
  590. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-fbbae598.js +1 -0
  591. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/host.config.json +15 -0
  592. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/index.html +1 -0
  593. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/manifest.json +13 -0
  594. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/connector.js +2 -0
  595. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +661 -0
  596. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/local-connector.js +2 -0
  597. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +15 -0
  598. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +2807 -0
  599. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +8 -0
  600. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -0
  601. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -0
  602. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.d.ts +22 -0
  603. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +6121 -0
  604. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +1 -0
  605. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +8 -0
  606. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -0
  607. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +52 -0
  608. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.d.ts +12 -0
  609. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +4155 -0
  610. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-config.d.ts +16 -0
  611. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-environment.d.ts +15 -0
  612. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-preprocessor.d.ts +59 -0
  613. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-runner.d.ts +10 -0
  614. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-screenshot.d.ts +2 -0
  615. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-serializer.d.ts +4 -0
  616. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-setup-test-framework.d.ts +1 -0
  617. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-config.spec.d.ts +1 -0
  618. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-preprocessor.spec.d.ts +1 -0
  619. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-runner.spec.d.ts +1 -0
  620. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-serializer.spec.d.ts +1 -0
  621. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-environment.js +3 -0
  622. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preprocessor.js +3 -0
  623. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preset.js +37 -0
  624. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-runner.js +3 -0
  625. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-setuptestframework.js +3 -0
  626. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/attributes.d.ts +14 -0
  627. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/class-list.d.ts +12 -0
  628. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/events.d.ts +21 -0
  629. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/html.d.ts +12 -0
  630. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/index.d.ts +23 -0
  631. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/screenshot.d.ts +5 -0
  632. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/text.d.ts +4 -0
  633. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mock-fetch.d.ts +11 -0
  634. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mocks.d.ts +56 -0
  635. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +8 -0
  636. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/index.d.ts +2 -0
  637. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-browser.d.ts +6 -0
  638. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
  639. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-element.d.ts +67 -0
  640. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
  641. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-events.d.ts +21 -0
  642. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-page.d.ts +2 -0
  643. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
  644. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/reset-build-conditionals.d.ts +2 -0
  645. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/spec-page.d.ts +2 -0
  646. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test/testing-utils.spec.d.ts +1 -0
  647. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test-transpile.d.ts +2 -0
  648. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-logger.d.ts +25 -0
  649. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-sys.d.ts +6 -0
  650. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-utils.d.ts +79 -0
  651. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing.d.ts +2 -0
  652. package/umd/pn-marketweb-init.js +1 -1
  653. package/umd/pn-marketweb-salesforce.js +2 -2
  654. package/components/MarketWebContextService.js +0 -316
  655. package/components/_commonjsHelpers.js +0 -32
  656. package/components/convert.js +0 -1823
  657. package/components/data.js +0 -37
  658. package/components/index.d.ts +0 -100
  659. package/components/index.js +0 -71
  660. package/components/index2.js +0 -187
  661. package/components/pn-bonus-progressbar-level.d.ts +0 -11
  662. package/components/pn-bonus-progressbar-level.js +0 -65
  663. package/components/pn-bonus-progressbar.d.ts +0 -11
  664. package/components/pn-bonus-progressbar.js +0 -128
  665. package/components/pn-breakpoints.d.ts +0 -11
  666. package/components/pn-breakpoints.js +0 -45
  667. package/components/pn-chart.d.ts +0 -11
  668. package/components/pn-chart.js +0 -22151
  669. package/components/pn-charts-card.d.ts +0 -11
  670. package/components/pn-charts-card.js +0 -51
  671. package/components/pn-choice-button.d.ts +0 -11
  672. package/components/pn-choice-button.js +0 -6
  673. package/components/pn-choice-button2.js +0 -61
  674. package/components/pn-customernumber-selector-option.d.ts +0 -11
  675. package/components/pn-customernumber-selector-option.js +0 -41
  676. package/components/pn-customernumber-selector.d.ts +0 -11
  677. package/components/pn-customernumber-selector.js +0 -77
  678. package/components/pn-filter-checkbox.d.ts +0 -11
  679. package/components/pn-filter-checkbox.js +0 -93
  680. package/components/pn-find-price-result.d.ts +0 -11
  681. package/components/pn-find-price-result.js +0 -6
  682. package/components/pn-find-price-result2.js +0 -192
  683. package/components/pn-find-price.d.ts +0 -11
  684. package/components/pn-find-price.js +0 -281
  685. package/components/pn-find-service-and-price-result.d.ts +0 -11
  686. package/components/pn-find-service-and-price-result.js +0 -6
  687. package/components/pn-find-service-and-price-result2.js +0 -96
  688. package/components/pn-find-service-and-price.d.ts +0 -11
  689. package/components/pn-find-service-and-price.js +0 -314
  690. package/components/pn-language-selector-option.d.ts +0 -11
  691. package/components/pn-language-selector-option.js +0 -6
  692. package/components/pn-language-selector-option2.js +0 -51
  693. package/components/pn-language-selector.d.ts +0 -11
  694. package/components/pn-language-selector.js +0 -6
  695. package/components/pn-language-selector2.js +0 -133
  696. package/components/pn-line-shape.d.ts +0 -11
  697. package/components/pn-line-shape.js +0 -35
  698. package/components/pn-mainnav-level.d.ts +0 -11
  699. package/components/pn-mainnav-level.js +0 -6
  700. package/components/pn-mainnav-level2.js +0 -117
  701. package/components/pn-mainnav-link.d.ts +0 -11
  702. package/components/pn-mainnav-link.js +0 -6
  703. package/components/pn-mainnav-link2.js +0 -57
  704. package/components/pn-mainnav-list.d.ts +0 -11
  705. package/components/pn-mainnav-list.js +0 -6
  706. package/components/pn-mainnav-list2.js +0 -39
  707. package/components/pn-mainnav.d.ts +0 -11
  708. package/components/pn-mainnav.js +0 -6
  709. package/components/pn-mainnav2.js +0 -120
  710. package/components/pn-marketweb-input.d.ts +0 -11
  711. package/components/pn-marketweb-input.js +0 -6
  712. package/components/pn-marketweb-input2.js +0 -102
  713. package/components/pn-marketweb-search.d.ts +0 -11
  714. package/components/pn-marketweb-search.js +0 -129
  715. package/components/pn-marketweb-sitefooter.d.ts +0 -11
  716. package/components/pn-marketweb-sitefooter.js +0 -335
  717. package/components/pn-marketweb-siteheader-login-button.d.ts +0 -11
  718. package/components/pn-marketweb-siteheader-login-button.js +0 -6
  719. package/components/pn-marketweb-siteheader-login-button2.js +0 -79
  720. package/components/pn-marketweb-siteheader-login-linklist.d.ts +0 -11
  721. package/components/pn-marketweb-siteheader-login-linklist.js +0 -6
  722. package/components/pn-marketweb-siteheader-login-linklist2.js +0 -105
  723. package/components/pn-marketweb-siteheader-login-links.d.ts +0 -11
  724. package/components/pn-marketweb-siteheader-login-links.js +0 -6
  725. package/components/pn-marketweb-siteheader-login-links2.js +0 -116
  726. package/components/pn-marketweb-siteheader-login-mypage-button.d.ts +0 -11
  727. package/components/pn-marketweb-siteheader-login-mypage-button.js +0 -6
  728. package/components/pn-marketweb-siteheader-login-mypage-button2.js +0 -36
  729. package/components/pn-marketweb-siteheader-login-profileselection.d.ts +0 -11
  730. package/components/pn-marketweb-siteheader-login-profileselection.js +0 -6
  731. package/components/pn-marketweb-siteheader-login-profileselection2.js +0 -234
  732. package/components/pn-marketweb-siteheader-login.d.ts +0 -11
  733. package/components/pn-marketweb-siteheader-login.js +0 -6
  734. package/components/pn-marketweb-siteheader-login2.js +0 -589
  735. package/components/pn-marketweb-siteheader-search.d.ts +0 -11
  736. package/components/pn-marketweb-siteheader-search.js +0 -6
  737. package/components/pn-marketweb-siteheader-search2.js +0 -131
  738. package/components/pn-marketweb-siteheader-unified-login.d.ts +0 -11
  739. package/components/pn-marketweb-siteheader-unified-login.js +0 -6
  740. package/components/pn-marketweb-siteheader-unified-login2.js +0 -52
  741. package/components/pn-marketweb-siteheader.d.ts +0 -11
  742. package/components/pn-marketweb-siteheader.js +0 -551
  743. package/components/pn-parcel-tracker.d.ts +0 -11
  744. package/components/pn-parcel-tracker.js +0 -58
  745. package/components/pn-pex-pricefinder.d.ts +0 -11
  746. package/components/pn-pex-pricefinder.js +0 -156
  747. package/components/pn-product-card-info.d.ts +0 -11
  748. package/components/pn-product-card-info.js +0 -6
  749. package/components/pn-product-card-info2.js +0 -45
  750. package/components/pn-product-card-price.d.ts +0 -11
  751. package/components/pn-product-card-price.js +0 -6
  752. package/components/pn-product-card-price2.js +0 -48
  753. package/components/pn-product-card.d.ts +0 -11
  754. package/components/pn-product-card.js +0 -6
  755. package/components/pn-product-card2.js +0 -30
  756. package/components/pn-product-pricelist-result.d.ts +0 -11
  757. package/components/pn-product-pricelist-result.js +0 -130
  758. package/components/pn-product-pricelist.d.ts +0 -11
  759. package/components/pn-product-pricelist.js +0 -259
  760. package/components/pn-product-tile-info.d.ts +0 -11
  761. package/components/pn-product-tile-info.js +0 -6
  762. package/components/pn-product-tile-info2.js +0 -38
  763. package/components/pn-product-tile-price.d.ts +0 -11
  764. package/components/pn-product-tile-price.js +0 -6
  765. package/components/pn-product-tile-price2.js +0 -42
  766. package/components/pn-product-tile.d.ts +0 -11
  767. package/components/pn-product-tile.js +0 -33
  768. package/components/pn-profile-modal-customernumber.d.ts +0 -11
  769. package/components/pn-profile-modal-customernumber.js +0 -46
  770. package/components/pn-profile-modal-profile.d.ts +0 -11
  771. package/components/pn-profile-modal-profile.js +0 -71
  772. package/components/pn-profile-modal-type.d.ts +0 -11
  773. package/components/pn-profile-modal-type.js +0 -56
  774. package/components/pn-profile-modal.d.ts +0 -11
  775. package/components/pn-profile-modal.js +0 -92
  776. package/components/pn-profile-selector-option.d.ts +0 -11
  777. package/components/pn-profile-selector-option.js +0 -41
  778. package/components/pn-profile-selector.d.ts +0 -11
  779. package/components/pn-profile-selector.js +0 -79
  780. package/components/pn-proxio-findprice-result.d.ts +0 -11
  781. package/components/pn-proxio-findprice-result.js +0 -6
  782. package/components/pn-proxio-findprice-result2.js +0 -122
  783. package/components/pn-proxio-findprice.d.ts +0 -11
  784. package/components/pn-proxio-findprice.js +0 -374
  785. package/components/pn-proxio-pricegroup.d.ts +0 -11
  786. package/components/pn-proxio-pricegroup.js +0 -194
  787. package/components/pn-proxio-productcard-description.d.ts +0 -11
  788. package/components/pn-proxio-productcard-description.js +0 -6
  789. package/components/pn-proxio-productcard-description2.js +0 -43
  790. package/components/pn-proxio-productcard-information.d.ts +0 -11
  791. package/components/pn-proxio-productcard-information.js +0 -6
  792. package/components/pn-proxio-productcard-information2.js +0 -37
  793. package/components/pn-proxio-productcard-pricelink.d.ts +0 -11
  794. package/components/pn-proxio-productcard-pricelink.js +0 -6
  795. package/components/pn-proxio-productcard-pricelink2.js +0 -38
  796. package/components/pn-proxio-productcard.d.ts +0 -11
  797. package/components/pn-proxio-productcard.js +0 -6
  798. package/components/pn-proxio-productcard2.js +0 -30
  799. package/components/pn-quick-cta.d.ts +0 -11
  800. package/components/pn-quick-cta.js +0 -39
  801. package/components/pn-quote-card.d.ts +0 -11
  802. package/components/pn-quote-card.js +0 -41
  803. package/components/pn-sidenav-level.d.ts +0 -11
  804. package/components/pn-sidenav-level.js +0 -84
  805. package/components/pn-sidenav-link.d.ts +0 -11
  806. package/components/pn-sidenav-link.js +0 -87
  807. package/components/pn-sidenav-togglebutton.d.ts +0 -11
  808. package/components/pn-sidenav-togglebutton.js +0 -45
  809. package/components/pn-sidenav.d.ts +0 -11
  810. package/components/pn-sidenav.js +0 -95
  811. package/components/pn-site-footer-col.d.ts +0 -11
  812. package/components/pn-site-footer-col.js +0 -6
  813. package/components/pn-site-footer-col2.js +0 -33
  814. package/components/pn-site-footer.d.ts +0 -11
  815. package/components/pn-site-footer.js +0 -6
  816. package/components/pn-site-footer2.js +0 -38
  817. package/components/pn-site-selector-item.d.ts +0 -11
  818. package/components/pn-site-selector-item.js +0 -6
  819. package/components/pn-site-selector-item2.js +0 -39
  820. package/components/pn-site-selector.d.ts +0 -11
  821. package/components/pn-site-selector.js +0 -6
  822. package/components/pn-site-selector2.js +0 -69
  823. package/components/pn-spotlight.d.ts +0 -11
  824. package/components/pn-spotlight.js +0 -39
  825. package/components/pn-stats-info-data.d.ts +0 -11
  826. package/components/pn-stats-info-data.js +0 -6
  827. package/components/pn-stats-info-data2.js +0 -157
  828. package/components/pn-stats-info.d.ts +0 -11
  829. package/components/pn-stats-info.js +0 -59
  830. package/components/pn-teaser-card.d.ts +0 -11
  831. package/components/pn-teaser-card.js +0 -56
  832. package/components/pn-titletag.d.ts +0 -11
  833. package/components/pn-titletag.js +0 -6
  834. package/components/pn-titletag2.js +0 -36
  835. package/components/translations.js +0 -19
  836. package/esm/pn-mainnav-store-5d91f523.js +0 -17
  837. package/esm/pn-profile-modal-store-81f53310.js +0 -15
  838. package/esm/pn-sidenav-store-94be19c8.js +0 -14
  839. package/esm-es5/index-c118284d.js +0 -1
  840. package/esm-es5/pn-marketweb-siteheader-store-9df5290d.js +0 -1
  841. package/loader/cdn.js +0 -3
  842. package/loader/index.cjs.js +0 -3
  843. package/loader/index.d.ts +0 -21
  844. package/loader/index.es2017.js +0 -3
  845. package/loader/package.json +0 -11
  846. package/pn-market-web-components/p-0f1115aa.entry.js +0 -1
  847. package/pn-market-web-components/p-0fbcacf3.system.entry.js +0 -1
  848. package/pn-market-web-components/p-1545fb34.entry.js +0 -1
  849. package/pn-market-web-components/p-156fedd7.entry.js +0 -1
  850. package/pn-market-web-components/p-15e680a8.entry.js +0 -1
  851. package/pn-market-web-components/p-1646c170.system.entry.js +0 -1
  852. package/pn-market-web-components/p-17fb8d9e.entry.js +0 -1
  853. package/pn-market-web-components/p-18abec91.entry.js +0 -1
  854. package/pn-market-web-components/p-1a9b2a0e.system.entry.js +0 -1
  855. package/pn-market-web-components/p-1c382898.entry.js +0 -1
  856. package/pn-market-web-components/p-247cd393.entry.js +0 -1
  857. package/pn-market-web-components/p-34c0b146.entry.js +0 -1
  858. package/pn-market-web-components/p-37d26cef.entry.js +0 -1
  859. package/pn-market-web-components/p-38f135fd.entry.js +0 -1
  860. package/pn-market-web-components/p-3f37d2e3.entry.js +0 -1
  861. package/pn-market-web-components/p-4410d66d.system.entry.js +0 -1
  862. package/pn-market-web-components/p-44c05fba.entry.js +0 -1
  863. package/pn-market-web-components/p-44f58f15.js +0 -1
  864. package/pn-market-web-components/p-47d717a3.entry.js +0 -1
  865. package/pn-market-web-components/p-48c74c53.entry.js +0 -1
  866. package/pn-market-web-components/p-498e7738.system.entry.js +0 -1
  867. package/pn-market-web-components/p-49f60496.entry.js +0 -1
  868. package/pn-market-web-components/p-4ef54288.entry.js +0 -1
  869. package/pn-market-web-components/p-507f8886.entry.js +0 -1
  870. package/pn-market-web-components/p-5a6761da.js +0 -1
  871. package/pn-market-web-components/p-5e768b73.entry.js +0 -1
  872. package/pn-market-web-components/p-6b5ff47f.entry.js +0 -1
  873. package/pn-market-web-components/p-73ee3141.entry.js +0 -1
  874. package/pn-market-web-components/p-773b59c0.entry.js +0 -24
  875. package/pn-market-web-components/p-7c1b31e8.js +0 -2
  876. package/pn-market-web-components/p-7d992089.entry.js +0 -1
  877. package/pn-market-web-components/p-7dff99ed.entry.js +0 -1
  878. package/pn-market-web-components/p-8079dfd5.system.entry.js +0 -1
  879. package/pn-market-web-components/p-82db879c.entry.js +0 -1
  880. package/pn-market-web-components/p-833bab34.entry.js +0 -1
  881. package/pn-market-web-components/p-85513296.entry.js +0 -1
  882. package/pn-market-web-components/p-8d4dfd26.entry.js +0 -1
  883. package/pn-market-web-components/p-8f0a682f.entry.js +0 -1
  884. package/pn-market-web-components/p-8f32fa2b.system.entry.js +0 -1
  885. package/pn-market-web-components/p-8fe65c6a.entry.js +0 -1
  886. package/pn-market-web-components/p-924ca115.entry.js +0 -1
  887. package/pn-market-web-components/p-9407ee64.system.entry.js +0 -1
  888. package/pn-market-web-components/p-9429ca78.entry.js +0 -1
  889. package/pn-market-web-components/p-9826ba22.system.entry.js +0 -1
  890. package/pn-market-web-components/p-9a1c267d.entry.js +0 -1
  891. package/pn-market-web-components/p-a5faec68.system.js +0 -2
  892. package/pn-market-web-components/p-a799fee1.entry.js +0 -1
  893. package/pn-market-web-components/p-ac62dc33.entry.js +0 -1
  894. package/pn-market-web-components/p-ad1f57dc.entry.js +0 -1
  895. package/pn-market-web-components/p-b0102ff6.entry.js +0 -1
  896. package/pn-market-web-components/p-b5587c0d.entry.js +0 -1
  897. package/pn-market-web-components/p-beefd9f7.entry.js +0 -1
  898. package/pn-market-web-components/p-c0db1ffd.js +0 -1
  899. package/pn-market-web-components/p-c1d9a064.entry.js +0 -1
  900. package/pn-market-web-components/p-c668f453.entry.js +0 -1
  901. package/pn-market-web-components/p-c7e8ab14.entry.js +0 -1
  902. package/pn-market-web-components/p-c9742318.entry.js +0 -1
  903. package/pn-market-web-components/p-cd6b402e.system.entry.js +0 -1
  904. package/pn-market-web-components/p-d295ef71.system.js +0 -1
  905. package/pn-market-web-components/p-d5ae9797.entry.js +0 -1
  906. package/pn-market-web-components/p-d5c7420f.system.entry.js +0 -1
  907. package/pn-market-web-components/p-d6ee168b.system.entry.js +0 -1
  908. package/pn-market-web-components/p-d70e685c.entry.js +0 -1
  909. package/pn-market-web-components/p-dbd7837e.entry.js +0 -1
  910. package/pn-market-web-components/p-dc598ef8.entry.js +0 -1
  911. package/pn-market-web-components/p-e0e45eb0.system.entry.js +0 -1
  912. package/pn-market-web-components/p-e1513762.entry.js +0 -1
  913. package/pn-market-web-components/p-e4fbd06c.entry.js +0 -1
  914. package/pn-market-web-components/p-ebb7b59b.system.entry.js +0 -1
  915. package/pn-market-web-components/p-ed5e91eb.system.entry.js +0 -1
  916. package/pn-market-web-components/p-fba88e93.entry.js +0 -1
  917. package/pn-market-web-components/p-ff975b67.entry.js +0 -1
  918. /package/{components → custom-elements}/mockresponse.js +0 -0
@@ -1,1823 +0,0 @@
1
- import { c as createCommonjsModule, a as commonjsGlobal, b as commonjsRequire } from './_commonjsHelpers.js';
2
-
3
- const xml = {
4
- createDocument: function createDocument(content) {
5
- // if (!content) {
6
- // throw new Error('No *.xml content')
7
- // }
8
- // A weird bug: it won't parse XML unless it's trimmed.
9
- // https://github.com/catamphetamine/read-excel-file/issues/21
10
- return new DOMParser().parseFromString(content.trim(), 'text/xml');
11
- }
12
- };
13
-
14
- var jszip_min = createCommonjsModule(function (module, exports) {
15
- /*!
16
-
17
- JSZip v3.7.1 - A JavaScript class for generating and reading zip files
18
- <http://stuartk.com/jszip>
19
-
20
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
21
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
22
-
23
- JSZip uses the library pako released under the MIT license :
24
- https://github.com/nodeca/pako/blob/master/LICENSE
25
- */
26
-
27
- !function(t){module.exports=t();}(function(){return function s(a,o,h){function u(r,t){if(!o[r]){if(!a[r]){var e="function"==typeof commonjsRequire&&commonjsRequire;if(!t&&e)return e(r,!0);if(l)return l(r,!0);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}var n=o[r]={exports:{}};a[r][0].call(n.exports,function(t){var e=a[r][1][t];return u(e||t)},n,n.exports,s,a,o,h);}return o[r].exports}for(var l="function"==typeof commonjsRequire&&commonjsRequire,t=0;t<h.length;t++)u(h[t]);return u}({1:[function(t,e,r){var c=t("./utils"),d=t("./support"),p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t){for(var e,r,i,n,s,a,o,h=[],u=0,l=t.length,f=l,d="string"!==c.getTypeOf(t);u<t.length;)f=l-u,i=d?(e=t[u++],r=u<l?t[u++]:0,u<l?t[u++]:0):(e=t.charCodeAt(u++),r=u<l?t.charCodeAt(u++):0,u<l?t.charCodeAt(u++):0),n=e>>2,s=(3&e)<<4|r>>4,a=1<f?(15&r)<<2|i>>6:64,o=2<f?63&i:64,h.push(p.charAt(n)+p.charAt(s)+p.charAt(a)+p.charAt(o));return h.join("")},r.decode=function(t){var e,r,i,n,s,a,o=0,h=0,u="data:";if(t.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var l,f=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===p.charAt(64)&&f--,t.charAt(t.length-2)===p.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=d.uint8array?new Uint8Array(0|f):new Array(0|f);o<t.length;)e=p.indexOf(t.charAt(o++))<<2|(n=p.indexOf(t.charAt(o++)))>>4,r=(15&n)<<4|(s=p.indexOf(t.charAt(o++)))>>2,i=(3&s)<<6|(a=p.indexOf(t.charAt(o++))),l[h++]=e,64!==s&&(l[h++]=r),64!==a&&(l[h++]=i);return l};},{"./support":30,"./utils":32}],2:[function(t,e,r){var i=t("./external"),n=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function o(t,e,r,i,n){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=i,this.compressedContent=n;}o.prototype={getContentWorker:function(){var t=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,e,r){return t.pipe(new s).pipe(new a("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=o;},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){var i=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=t("./flate");},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){var i=t("./utils");var o=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t;}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,r,i){var n=o,s=i+r;t^=-1;for(var a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return -1^t}(0|e,t,t.length,0):function(t,e,r,i){var n=o,s=i+r;t^=-1;for(var a=i;a<s;a++)t=t>>>8^n[255&(t^e.charCodeAt(a))];return -1^t}(0|e,t,t.length,0):0};},{"./utils":32}],5:[function(t,e,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null;},{}],6:[function(t,e,r){var i=null;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i};},{lie:37}],7:[function(t,e,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=i?"uint8array":"array";function h(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={};}r.magic="\b\0",s.inherits(h,a),h.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),!1);},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0);},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null;},h.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta});};},r.compressWorker=function(t){return new h("Deflate",t)},r.uncompressWorker=function(){return new h("Inflate",{})};},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){function A(t,e){var r,i="";for(r=0;r<e;r++)i+=String.fromCharCode(255&t),t>>>=8;return i}function i(t,e,r,i,n,s){var a,o,h=t.file,u=t.compression,l=s!==O.utf8encode,f=I.transformTo("string",s(h.name)),d=I.transformTo("string",O.utf8encode(h.name)),c=h.comment,p=I.transformTo("string",s(c)),m=I.transformTo("string",O.utf8encode(c)),_=d.length!==h.name.length,g=m.length!==c.length,b="",v="",y="",w=h.dir,k=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(x.crc32=t.crc32,x.compressedSize=t.compressedSize,x.uncompressedSize=t.uncompressedSize);var S=0;e&&(S|=8),l||!_&&!g||(S|=2048);var z=0,C=0;w&&(z|=16),"UNIX"===n?(C=798,z|=function(t,e){var r=t;return t||(r=e?16893:33204),(65535&r)<<16}(h.unixPermissions,w)):(C=20,z|=function(t){return 63&(t||0)}(h.dosPermissions)),a=k.getUTCHours(),a<<=6,a|=k.getUTCMinutes(),a<<=5,a|=k.getUTCSeconds()/2,o=k.getUTCFullYear()-1980,o<<=4,o|=k.getUTCMonth()+1,o<<=5,o|=k.getUTCDate(),_&&(v=A(1,1)+A(B(f),4)+d,b+="up"+A(v.length,2)+v),g&&(y=A(1,1)+A(B(p),4)+m,b+="uc"+A(y.length,2)+y);var E="";return E+="\n\0",E+=A(S,2),E+=u.magic,E+=A(a,2),E+=A(o,2),E+=A(x.crc32,4),E+=A(x.compressedSize,4),E+=A(x.uncompressedSize,4),E+=A(f.length,2),E+=A(b.length,2),{fileRecord:R.LOCAL_FILE_HEADER+E+f+b,dirRecord:R.CENTRAL_FILE_HEADER+A(C,2)+E+A(p.length,2)+"\0\0\0\0"+A(z,4)+A(i,4)+f+b+p}}var I=t("../utils"),n=t("../stream/GenericWorker"),O=t("../utf8"),B=t("../crc32"),R=t("../signature");function s(t,e,r,i){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[];}I.inherits(s,n),s.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,n.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-i-1))/r:100}}));},s.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}});}else this.accumulate=!0;},s.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:function(t){return R.DATA_DESCRIPTOR+A(t.crc32,4)+A(t.compressedSize,4)+A(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null;},s.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,i=function(t,e,r,i,n){var s=I.transformTo("string",n(i));return R.CENTRAL_DIRECTORY_END+"\0\0\0\0"+A(t,2)+A(t,2)+A(e,4)+A(r,4)+A(s.length,2)+s}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}});},s.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume();},s.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(t){e.processChunk(t);}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end();}),t.on("error",function(t){e.error(t);}),this},s.prototype.resume=function(){return !!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},s.prototype.error=function(t){var e=this._sources;if(!n.prototype.error.call(this,t))return !1;for(var r=0;r<e.length;r++)try{e[r].error(t);}catch(t){}return !0},s.prototype.lock=function(){n.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock();},e.exports=s;},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,r){var u=t("../compressions"),i=t("./ZipFileWorker");r.generateWorker=function(t,a,e){var o=new i(a.streamFiles,e,a.platform,a.encodeFileName),h=0;try{t.forEach(function(t,e){h++;var r=function(t,e){var r=t||e,i=u[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(e.options.compression,a.compression),i=e.options.compressionOptions||a.compressionOptions||{},n=e.dir,s=e.date;e._compressWorker(r,i).withStreamInfo("file",{name:t,dir:n,date:s,comment:e.comment||"",unixPermissions:e.unixPermissions,dosPermissions:e.dosPermissions}).pipe(o);}),o.entriesCount=h;}catch(t){o.error(t);}return o};},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,r){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t};}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.7.1",i.loadAsync=function(t,e){return (new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i;},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,r){var i=t("./utils"),n=t("./external"),o=t("./utf8"),h=t("./zipEntries"),s=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function l(i){return new n.Promise(function(t,e){var r=i.decompressed.getContentWorker().pipe(new s);r.on("error",function(t){e(t);}).on("end",function(){r.streamInfo.crc32!==i.decompressed.crc32?e(new Error("Corrupted zip : CRC32 mismatch")):t();}).resume();})}e.exports=function(t,s){var a=this;return s=i.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),u.isNode&&u.isStream(t)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,s.optimizedBinaryString,s.base64).then(function(t){var e=new h(s);return e.load(t),e}).then(function(t){var e=[n.Promise.resolve(t)],r=t.files;if(s.checkCRC32)for(var i=0;i<r.length;i++)e.push(l(r[i]));return n.Promise.all(e)}).then(function(t){for(var e=t.shift(),r=e.files,i=0;i<r.length;i++){var n=r[i];a.file(n.fileNameStr,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:s.createFolders});}return e.zipComment.length&&(a.comment=e.zipComment),a})};},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,r){var i=t("../utils"),n=t("../stream/GenericWorker");function s(t,e){n.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e);}i.inherits(s,n),s.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",function(t){e.push({data:t,meta:{percent:0}});}).on("error",function(t){e.isPaused?this.generatedError=t:e.error(t);}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end();});},s.prototype.pause=function(){return !!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return !!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=s;},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,r){var n=t("readable-stream").Readable;function i(t,e,r){n.call(this,e),this._helper=t;var i=this;t.on("data",function(t,e){i.push(t)||i._helper.pause(),r&&r(e);}).on("error",function(t){i.emit("error",t);}).on("end",function(){i.push(null);});}t("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume();},e.exports=i;},{"../utils":32,"readable-stream":16}],14:[function(t,e,r){e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}};},{}],15:[function(t,e,r){function s(t,e,r){var i,n=u.getTypeOf(e),s=u.extend(r||{},f);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(i=_(t))&&b.call(this,i,!0);var a="string"===n&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!a),(e instanceof d&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",n="string");var o=null;o=e instanceof d||e instanceof l?e:p.isNode&&p.isStream(e)?new m(t,e):u.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var h=new c(t,o,s);this.files[t]=h;}var n=t("./utf8"),u=t("./utils"),l=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),f=t("./defaults"),d=t("./compressedObject"),c=t("./zipObject"),o=t("./generate"),p=t("./nodejsUtils"),m=t("./nodejs/NodejsStreamInputAdapter"),_=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return "/"!==t.slice(-1)&&(t+="/"),t},b=function(t,e){return e=void 0!==e?e:f.createFolders,t=g(t),this.files[t]||s.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function h(t){return "[object RegExp]"===Object.prototype.toString.call(t)}var i={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,i;for(e in this.files)i=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,i);},filter:function(r){var i=[];return this.forEach(function(t,e){r(t,e)&&i.push(e);}),i},file:function(t,e,r){if(1!==arguments.length)return t=this.root+t,s.call(this,t,e,r),this;if(h(t)){var i=t;return this.filter(function(t,e){return !e.dir&&i.test(t)})}var n=this.files[this.root+t];return n&&!n.dir?n:null},folder:function(r){if(!r)return this;if(h(r))return this.filter(function(t,e){return e.dir&&r.test(t)});var t=this.root+r,e=b.call(this,t),i=this.clone();return i.root=e.name,i},remove:function(r){r=this.root+r;var t=this.files[r];if(t||("/"!==r.slice(-1)&&(r+="/"),t=this.files[r]),t&&!t.dir)delete this.files[r];else for(var e=this.filter(function(t,e){return e.name.slice(0,r.length)===r}),i=0;i<e.length;i++)delete this.files[e[i].name];return this},generate:function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=u.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");u.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var i=r.comment||this.comment||"";e=o.generateWorker(this,r,i);}catch(t){(e=new l("error")).error(t);}return new a(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return (t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=i;},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,r){e.exports=t("stream");},{stream:void 0}],17:[function(t,e,r){var i=t("./DataReader");function n(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e];}t("../utils").inherits(n,i),n.prototype.byteAt=function(t){return this.data[this.zero+t]},n.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),i=t.charCodeAt(2),n=t.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===e&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===n)return s-this.zero;return -1},n.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),i=t.charCodeAt(2),n=t.charCodeAt(3),s=this.readData(4);return e===s[0]&&r===s[1]&&i===s[2]&&n===s[3]},n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return [];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n;},{"../utils":32,"./DataReader":18}],18:[function(t,e,r){var i=t("../utils");function n(t){this.data=t,this.length=t.length,this.index=0,this.zero=0;}n.prototype={checkOffset:function(t){this.checkIndex(this.index+t);},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t;},skip:function(t){this.setIndex(this.index+t);},byteAt:function(t){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=n;},{"../utils":32}],19:[function(t,e,r){var i=t("./Uint8ArrayReader");function n(t){i.call(this,t);}t("../utils").inherits(n,i),n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n;},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){var i=t("./DataReader");function n(t){i.call(this,t);}t("../utils").inherits(n,i),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n;},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){var i=t("./ArrayReader");function n(t){i.call(this,t);}t("../utils").inherits(n,i),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n;},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){var i=t("../utils"),n=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),h=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||n.uint8array?"nodebuffer"===e?new o(t):n.uint8array?new h(i.transformTo("uint8array",t)):new s(i.transformTo("array",t)):new a(t)};},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b";},{}],24:[function(t,e,r){var i=t("./GenericWorker"),n=t("../utils");function s(t){i.call(this,"ConvertWorker to "+t),this.destType=t;}n.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta});},e.exports=s;},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){var i=t("./GenericWorker"),n=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0);}t("../utils").inherits(s,i),s.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t);},e.exports=s;},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0);}i.inherits(s,n),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length;}n.prototype.processChunk.call(this,t);},e.exports=s;},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat();},function(t){e.error(t);});}i.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null;},s.prototype.resume=function(){return !!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0));},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return !1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e);}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s;},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null;}i.prototype={push:function(t){this.emit("data",t);},end:function(){if(this.isFinished)return !1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0;}catch(t){this.emit("error",t);}return !0},error:function(t){return !this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[];},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e);},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t);}),t.on("end",function(){e.end();}),t.on("error",function(t){e.error(t);}),this},pause:function(){return !this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return !1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t);},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t]);},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock();},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i;},{}],29:[function(t,e,r){var h=t("../utils"),n=t("./ConvertWorker"),s=t("./GenericWorker"),u=t("../base64"),i=t("../support"),a=t("../external"),o=null;if(i.nodestream)try{o=t("../nodejs/NodejsStreamOutputAdapter");}catch(t){}function l(t,o){return new a.Promise(function(e,r){var i=[],n=t._internalType,s=t._outputType,a=t._mimeType;t.on("data",function(t,e){i.push(t),o&&o(e);}).on("error",function(t){i=[],r(t);}).on("end",function(){try{var t=function(t,e,r){switch(t){case"blob":return h.newBlob(h.transformTo("arraybuffer",e),r);case"base64":return u.encode(e);default:return h.transformTo(t,e)}}(s,function(t,e){var r,i=0,n=null,s=0;for(r=0;r<e.length;r++)s+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(n=new Uint8Array(s),r=0;r<e.length;r++)n.set(e[r],i),i+=e[r].length;return n;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(n,i),a);e(t);}catch(t){r(t);}i=[];}).resume();})}function f(t,e,r){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";}try{this._internalType=i,this._outputType=e,this._mimeType=r,h.checkSupport(i),this._worker=t.pipe(new n(i)),t.lock();}catch(t){this._worker=new s("error"),this._worker.error(t);}}f.prototype={accumulate:function(t){return l(this,t)},on:function(t,e){var r=this;return "data"===t?this._worker.on(t,function(t){e.call(r,t.data,t.meta);}):this._worker.on(t,function(){h.delay(e,arguments,r);}),this},resume:function(){return h.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(h.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new o(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=f;},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else {var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size;}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(i),r.blob=0===n.getBlob("application/zip").size;}catch(t){r.blob=!1;}}}try{r.nodestream=!!t("readable-stream").Readable;}catch(t){r.nodestream=!1;}},{"readable-stream":16}],31:[function(t,e,s){for(var o=t("./utils"),h=t("./support"),r=t("./nodejsUtils"),i=t("./stream/GenericWorker"),u=new Array(256),n=0;n<256;n++)u[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;u[254]=u[254]=1;function a(){i.call(this,"utf-8 decode"),this.leftOver=null;}function l(){i.call(this,"utf-8 encode");}s.utf8encode=function(t){return h.nodebuffer?r.newBufferFrom(t,"utf-8"):function(t){var e,r,i,n,s,a=t.length,o=0;for(n=0;n<a;n++)55296==(64512&(r=t.charCodeAt(n)))&&n+1<a&&56320==(64512&(i=t.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(i-56320),n++),o+=r<128?1:r<2048?2:r<65536?3:4;for(e=h.uint8array?new Uint8Array(o):new Array(o),n=s=0;s<o;n++)55296==(64512&(r=t.charCodeAt(n)))&&n+1<a&&56320==(64512&(i=t.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(i-56320),n++),r<128?e[s++]=r:(r<2048?e[s++]=192|r>>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e}(t)},s.utf8decode=function(t){return h.nodebuffer?o.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,i,n,s=t.length,a=new Array(2*s);for(e=r=0;e<s;)if((i=t[e++])<128)a[r++]=i;else if(4<(n=u[i]))a[r++]=65533,e+=n-1;else {for(i&=2===n?31:3===n?15:7;1<n&&e<s;)i=i<<6|63&t[e++],n--;1<n?a[r++]=65533:i<65536?a[r++]=i:(i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|1023&i);}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),o.applyFromCharCode(a)}(t=o.transformTo(h.uint8array?"uint8array":"array",t))},o.inherits(a,i),a.prototype.processChunk=function(t){var e=o.transformTo(h.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length);}else e=this.leftOver.concat(e);this.leftOver=null;}var i=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+u[t[r]]>e?r:e}(e),n=e;i!==e.length&&(h.uint8array?(n=e.subarray(0,i),this.leftOver=e.subarray(i,e.length)):(n=e.slice(0,i),this.leftOver=e.slice(i,e.length))),this.push({data:s.utf8decode(n),meta:t.meta});},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null);},s.Utf8DecodeWorker=a,o.inherits(l,i),l.prototype.processChunk=function(t){this.push({data:s.utf8encode(t.data),meta:t.meta});},s.Utf8EncodeWorker=l;},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,a){var o=t("./support"),h=t("./base64"),r=t("./nodejsUtils"),i=t("set-immediate-shim"),u=t("./external");function n(t){return t}function l(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}a.newBlob=function(e,r){a.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(t,e,r){var i=[],n=0,s=t.length;if(s<=r)return String.fromCharCode.apply(null,t);for(;n<s;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(n,Math.min(n+r,s)))):i.push(String.fromCharCode.apply(null,t.subarray(n,Math.min(n+r,s)))),n+=r;return i.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return !1}}(),nodebuffer:function(){try{return o.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(t){return !1}}()}};function f(t){var e=65536,r=a.getTypeOf(t),i=!0;if("uint8array"===r?i=s.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=s.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return s.stringifyByChunk(t,r,e)}catch(t){e=Math.floor(e/2);}return s.stringifyByChar(t)}function d(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}a.applyFromCharCode=f;var c={};c.string={string:n,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return c.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,r.allocBuffer(t.length))}},c.array={string:f,array:n,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(t)}},c.arraybuffer={string:function(t){return f(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:n,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(new Uint8Array(t))}},c.uint8array={string:f,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:n,nodebuffer:function(t){return r.newBufferFrom(t)}},c.nodebuffer={string:f,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return c.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:n},a.transformTo=function(t,e){if(e=e||"",!t)return e;a.checkSupport(t);var r=a.getTypeOf(e);return c[r][t](e)},a.getTypeOf=function(t){return "string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":o.nodebuffer&&r.isBuffer(t)?"nodebuffer":o.uint8array&&t instanceof Uint8Array?"uint8array":o.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(t){if(!o[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(t){var e,r,i="";for(r=0;r<(t||"").length;r++)i+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return i},a.delay=function(t,e,r){i(function(){t.apply(r||null,e||[]);});},a.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r;},a.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},a.prepareContent=function(r,t,i,n,s){return u.Promise.resolve(t).then(function(i){return o.blob&&(i instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(i)))&&"undefined"!=typeof FileReader?new u.Promise(function(e,r){var t=new FileReader;t.onload=function(t){e(t.target.result);},t.onerror=function(t){r(t.target.error);},t.readAsArrayBuffer(i);}):i}).then(function(t){var e=a.getTypeOf(t);return e?("arraybuffer"===e?t=a.transformTo("uint8array",t):"string"===e&&(s?t=h.decode(t):i&&!0!==n&&(t=function(t){return l(t,o.uint8array?new Uint8Array(t.length):new Array(t.length))}(t))),t):u.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})};},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,e,r){var i=t("./reader/readerFor"),n=t("./utils"),s=t("./signature"),a=t("./zipEntry"),o=(t("./utf8"),t("./support"));function h(t){this.files=[],this.loadOptions=t;}h.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(e)+", expected "+n.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(r),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=o.uint8array?"uint8array":"array",r=n.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r);},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r};},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes();},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(t<0)throw !this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(t);var e=t;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral();}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var i=e-r;if(0<i)this.isSignature(e,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t);},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles();}},e.exports=h;},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,e,r){var i=t("./reader/readerFor"),s=t("./utils"),n=t("./compressedObject"),a=t("./crc32"),o=t("./utf8"),h=t("./compressions"),u=t("./support");function l(t,e){this.options=t,this.loadOptions=e;}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in h)if(h.hasOwnProperty(e)&&h[e].magic===t)return h[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize));},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength);},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0);},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4));}},readExtraFields:function(t){var e,r,i,n=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<n;)e=t.readInt(2),r=t.readInt(2),i=t.readData(r),this.extraFields[e]={id:e,length:r,value:i};t.setIndex(n);},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else {var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else {var r=s.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r);}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else {var n=s.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n);}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)?null:a(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)?null:a(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null}},e.exports=l;},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,r){function i(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions};}var s=t("./stream/StreamHelper"),n=t("./stream/DataWorker"),a=t("./utf8"),o=t("./compressedObject"),h=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var n=!this._dataBinary;n&&!i&&(e=e.pipe(new a.Utf8EncodeWorker)),!n&&i&&(e=e.pipe(new a.Utf8DecodeWorker));}catch(t){(e=new h("error")).error(t);}return new s(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof o&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof h?this._data:new n(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<u.length;f++)i.prototype[u[f]]=l;e.exports=i;},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,l,e){(function(e){var r,i,t=e.MutationObserver||e.WebKitMutationObserver;if(t){var n=0,s=new t(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),r=function(){a.data=n=++n%2;};}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null;},e.document.documentElement.appendChild(t);}:function(){setTimeout(u,0);};else {var o=new e.MessageChannel;o.port1.onmessage=u,r=function(){o.port2.postMessage(0);};}var h=[];function u(){var t,e;i=!0;for(var r=h.length;r;){for(e=h,h=[],t=-1;++t<r;)e[t]();r=h.length;}i=!1;}l.exports=function(t){1!==h.push(t)||i||r();};}).call(this,"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});},{}],37:[function(t,e,r){var n=t("immediate");function u(){}var l={},s=["REJECTED"],a=["FULFILLED"],i=["PENDING"];function o(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,t!==u&&c(this,t);}function h(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected);}function f(e,r,i){n(function(){var t;try{t=r(i);}catch(t){return l.reject(e,t)}t===e?l.reject(e,new TypeError("Cannot resolve promise with itself")):l.resolve(e,t);});}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments);}}function c(e,t){var r=!1;function i(t){r||(r=!0,l.reject(e,t));}function n(t){r||(r=!0,l.resolve(e,t));}var s=p(function(){t(n,i);});"error"===s.status&&i(s.value);}function p(t,e){var r={};try{r.value=t(e),r.status="success";}catch(t){r.status="error",r.value=t;}return r}(e.exports=o).prototype.finally=function(e){if("function"!=typeof e)return this;var r=this.constructor;return this.then(function(t){return r.resolve(e()).then(function(){return t})},function(t){return r.resolve(e()).then(function(){throw t})})},o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===s)return this;var r=new this.constructor(u);this.state!==i?f(r,this.state===a?t:e,this.outcome):this.queue.push(new h(r,t,e));return r},h.prototype.callFulfilled=function(t){l.resolve(this.promise,t);},h.prototype.otherCallFulfilled=function(t){f(this.promise,this.onFulfilled,t);},h.prototype.callRejected=function(t){l.reject(this.promise,t);},h.prototype.otherCallRejected=function(t){f(this.promise,this.onRejected,t);},l.resolve=function(t,e){var r=p(d,e);if("error"===r.status)return l.reject(t,r.value);var i=r.value;if(i)c(t,i);else {t.state=a,t.outcome=e;for(var n=-1,s=t.queue.length;++n<s;)t.queue[n].callFulfilled(e);}return t},l.reject=function(t,e){t.state=s,t.outcome=e;for(var r=-1,i=t.queue.length;++r<i;)t.queue[r].callRejected(e);return t},o.resolve=function(t){if(t instanceof this)return t;return l.resolve(new this(u),t)},o.reject=function(t){var e=new this(u);return l.reject(e,t)},o.all=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);var s=new Array(i),a=0,e=-1,o=new this(u);for(;++e<i;)h(t[e],e);return o;function h(t,e){r.resolve(t).then(function(t){s[e]=t,++a!==i||n||(n=!0,l.resolve(o,s));},function(t){n||(n=!0,l.reject(o,t));});}},o.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,i=!1;if(!r)return this.resolve([]);var n=-1,s=new this(u);for(;++n<r;)a=t[n],e.resolve(a).then(function(t){i||(i=!0,l.resolve(s,t));},function(t){i||(i=!0,l.reject(s,t));});var a;return s};},{immediate:36}],38:[function(t,e,r){var i={};(0, t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i;},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,r){var a=t("./zlib/deflate"),o=t("./utils/common"),h=t("./utils/strings"),n=t("./zlib/messages"),s=t("./zlib/zstream"),u=Object.prototype.toString,l=0,f=-1,d=0,c=8;function p(t){if(!(this instanceof p))return new p(t);this.options=o.assign({level:f,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=a.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==l)throw new Error(n[r]);if(e.header&&a.deflateSetHeader(this.strm,e.header),e.dictionary){var i;if(i="string"==typeof e.dictionary?h.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=a.deflateSetDictionary(this.strm,i))!==l)throw new Error(n[r]);this._dict_set=!0;}}function i(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||n[r.err];return r.result}p.prototype.push=function(t,e){var r,i,n=this.strm,s=this.options.chunkSize;if(this.ended)return !1;i=e===~~e?e:!0===e?4:0,"string"==typeof t?n.input=h.string2buf(t):"[object ArrayBuffer]"===u.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new o.Buf8(s),n.next_out=0,n.avail_out=s),1!==(r=a.deflate(n,i))&&r!==l)return this.onEnd(r),!(this.ended=!0);0!==n.avail_out&&(0!==n.avail_in||4!==i&&2!==i)||("string"===this.options.to?this.onData(h.buf2binstring(o.shrinkBuf(n.output,n.next_out))):this.onData(o.shrinkBuf(n.output,n.next_out)));}while((0<n.avail_in||0===n.avail_out)&&1!==r);return 4===i?(r=a.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==i||(this.onEnd(l),!(n.avail_out=0))},p.prototype.onData=function(t){this.chunks.push(t);},p.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg;},r.Deflate=p,r.deflate=i,r.deflateRaw=function(t,e){return (e=e||{}).raw=!0,i(t,e)},r.gzip=function(t,e){return (e=e||{}).gzip=!0,i(t,e)};},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,r){var d=t("./zlib/inflate"),c=t("./utils/common"),p=t("./utils/strings"),m=t("./zlib/constants"),i=t("./zlib/messages"),n=t("./zlib/zstream"),s=t("./zlib/gzheader"),_=Object.prototype.toString;function a(t){if(!(this instanceof a))return new a(t);this.options=c.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var r=d.inflateInit2(this.strm,e.windowBits);if(r!==m.Z_OK)throw new Error(i[r]);this.header=new s,d.inflateGetHeader(this.strm,this.header);}function o(t,e){var r=new a(e);if(r.push(t,!0),r.err)throw r.msg||i[r.err];return r.result}a.prototype.push=function(t,e){var r,i,n,s,a,o,h=this.strm,u=this.options.chunkSize,l=this.options.dictionary,f=!1;if(this.ended)return !1;i=e===~~e?e:!0===e?m.Z_FINISH:m.Z_NO_FLUSH,"string"==typeof t?h.input=p.binstring2buf(t):"[object ArrayBuffer]"===_.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new c.Buf8(u),h.next_out=0,h.avail_out=u),(r=d.inflate(h,m.Z_NO_FLUSH))===m.Z_NEED_DICT&&l&&(o="string"==typeof l?p.string2buf(l):"[object ArrayBuffer]"===_.call(l)?new Uint8Array(l):l,r=d.inflateSetDictionary(this.strm,o)),r===m.Z_BUF_ERROR&&!0===f&&(r=m.Z_OK,f=!1),r!==m.Z_STREAM_END&&r!==m.Z_OK)return this.onEnd(r),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&r!==m.Z_STREAM_END&&(0!==h.avail_in||i!==m.Z_FINISH&&i!==m.Z_SYNC_FLUSH)||("string"===this.options.to?(n=p.utf8border(h.output,h.next_out),s=h.next_out-n,a=p.buf2string(h.output,n),h.next_out=s,h.avail_out=u-s,s&&c.arraySet(h.output,h.output,n,s,0),this.onData(a)):this.onData(c.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(f=!0);}while((0<h.avail_in||0===h.avail_out)&&r!==m.Z_STREAM_END);return r===m.Z_STREAM_END&&(i=m.Z_FINISH),i===m.Z_FINISH?(r=d.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===m.Z_OK):i!==m.Z_SYNC_FLUSH||(this.onEnd(m.Z_OK),!(h.avail_out=0))},a.prototype.onData=function(t){this.chunks.push(t);},a.prototype.onEnd=function(t){t===m.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg;},r.Inflate=a,r.inflate=o,r.inflateRaw=function(t,e){return (e=e||{}).raw=!0,o(t,e)},r.ungzip=o;},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i]);}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,i,n){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+i),n);else for(var s=0;s<i;s++)t[n+s]=e[r+s];},flattenChunks:function(t){var e,r,i,n,s,a;for(e=i=0,r=t.length;e<r;e++)i+=t[e].length;for(a=new Uint8Array(i),e=n=0,r=t.length;e<r;e++)s=t[e],a.set(s,n),n+=s.length;return a}},s={arraySet:function(t,e,r,i,n){for(var s=0;s<i;s++)t[n+s]=e[r+s];},flattenChunks:function(t){return [].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,n)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s));},r.setTyped(i);},{}],42:[function(t,e,r){var h=t("./common"),n=!0,s=!0;try{String.fromCharCode.apply(null,[0]);}catch(t){n=!1;}try{String.fromCharCode.apply(null,new Uint8Array(1));}catch(t){s=!1;}for(var u=new h.Buf8(256),i=0;i<256;i++)u[i]=252<=i?6:248<=i?5:240<=i?4:224<=i?3:192<=i?2:1;function l(t,e){if(e<65537&&(t.subarray&&s||!t.subarray&&n))return String.fromCharCode.apply(null,h.shrinkBuf(t,e));for(var r="",i=0;i<e;i++)r+=String.fromCharCode(t[i]);return r}u[254]=u[254]=1,r.string2buf=function(t){var e,r,i,n,s,a=t.length,o=0;for(n=0;n<a;n++)55296==(64512&(r=t.charCodeAt(n)))&&n+1<a&&56320==(64512&(i=t.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(i-56320),n++),o+=r<128?1:r<2048?2:r<65536?3:4;for(e=new h.Buf8(o),n=s=0;s<o;n++)55296==(64512&(r=t.charCodeAt(n)))&&n+1<a&&56320==(64512&(i=t.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(i-56320),n++),r<128?e[s++]=r:(r<2048?e[s++]=192|r>>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new h.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,i,n,s,a=e||t.length,o=new Array(2*a);for(r=i=0;r<a;)if((n=t[r++])<128)o[i++]=n;else if(4<(s=u[n]))o[i++]=65533,r+=s-1;else {for(n&=2===s?31:3===s?15:7;1<s&&r<a;)n=n<<6|63&t[r++],s--;1<s?o[i++]=65533:n<65536?o[i++]=n:(n-=65536,o[i++]=55296|n>>10&1023,o[i++]=56320|1023&n);}return l(o,i)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+u[t[r]]>e?r:e};},{"./common":41}],43:[function(t,e,r){e.exports=function(t,e,r,i){for(var n=65535&t|0,s=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;s=s+(n=n+e[i++]|0)|0,--a;);n%=65521,s%=65521;}return n|s<<16|0};},{}],44:[function(t,e,r){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};},{}],45:[function(t,e,r){var o=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t;}return e}();e.exports=function(t,e,r,i){var n=o,s=i+r;t^=-1;for(var a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return -1^t};},{}],46:[function(t,e,r){var h,d=t("../utils/common"),u=t("./trees"),c=t("./adler32"),p=t("./crc32"),i=t("./messages"),l=0,f=4,m=0,_=-2,g=-1,b=4,n=2,v=8,y=9,s=286,a=30,o=19,w=2*s+1,k=15,x=3,S=258,z=S+x+1,C=42,E=113,A=1,I=2,O=3,B=4;function R(t,e){return t.msg=i[e],e}function T(t){return (t<<1)-(4<t?9:0)}function D(t){for(var e=t.length;0<=--e;)t[e]=0;}function F(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(d.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0));}function N(t,e){u._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,F(t.strm);}function U(t,e){t.pending_buf[t.pending++]=e;}function P(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e;}function L(t,e){var r,i,n=t.max_chain_length,s=t.strstart,a=t.prev_length,o=t.nice_match,h=t.strstart>t.w_size-z?t.strstart-(t.w_size-z):0,u=t.window,l=t.w_mask,f=t.prev,d=t.strstart+S,c=u[s+a-1],p=u[s+a];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===c&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&s<d);if(i=S-(d-s),s=d-S,a<i){if(t.match_start=e,o<=(a=i))break;c=u[s+a-1],p=u[s+a];}}}while((e=f[e&l])>h&&0!=--n);return a<=t.lookahead?a:t.lookahead}function j(t){var e,r,i,n,s,a,o,h,u,l,f=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-z)){for(d.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=r=t.hash_size;i=t.head[--e],t.head[e]=f<=i?i-f:0,--r;);for(e=r=f;i=t.prev[--e],t.prev[e]=f<=i?i-f:0,--r;);n+=f;}if(0===t.strm.avail_in)break;if(a=t.strm,o=t.window,h=t.strstart+t.lookahead,u=n,l=void 0,l=a.avail_in,u<l&&(l=u),r=0===l?0:(a.avail_in-=l,d.arraySet(o,a.input,a.next_in,l,h),1===a.state.wrap?a.adler=c(a.adler,o,l,h):2===a.state.wrap&&(a.adler=p(a.adler,o,l,h)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=r,t.lookahead+t.insert>=x)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+x-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<x)););}while(t.lookahead<z&&0!==t.strm.avail_in)}function Z(t,e){for(var r,i;;){if(t.lookahead<z){if(j(t),t.lookahead<z&&e===l)return A;if(0===t.lookahead)break}if(r=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-z&&(t.match_length=L(t,r)),t.match_length>=x)if(i=u._tr_tally(t,t.strstart-t.match_start,t.match_length-x),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=x){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++;}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(N(t,!1),0===t.strm.avail_out))return A}return t.insert=t.strstart<x-1?t.strstart:x-1,e===f?(N(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?A:I}function W(t,e){for(var r,i,n;;){if(t.lookahead<z){if(j(t),t.lookahead<z&&e===l)return A;if(0===t.lookahead)break}if(r=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=x-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-z&&(t.match_length=L(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===x&&4096<t.strstart-t.match_start)&&(t.match_length=x-1)),t.prev_length>=x&&t.match_length<=t.prev_length){for(n=t.strstart+t.lookahead-x,i=u._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-x),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=x-1,t.strstart++,i&&(N(t,!1),0===t.strm.avail_out))return A}else if(t.match_available){if((i=u._tr_tally(t,0,t.window[t.strstart-1]))&&N(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return A}else t.match_available=1,t.strstart++,t.lookahead--;}return t.match_available&&(i=u._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<x-1?t.strstart:x-1,e===f?(N(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?A:I}function M(t,e,r,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=i,this.func=n;}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new d.Buf16(2*w),this.dyn_dtree=new d.Buf16(2*(2*a+1)),this.bl_tree=new d.Buf16(2*(2*o+1)),D(this.dyn_ltree),D(this.dyn_dtree),D(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(k+1),this.heap=new d.Buf16(2*s+1),D(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*s+1),D(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0;}function G(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=n,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?C:E,t.adler=2===e.wrap?0:1,e.last_flush=l,u._tr_init(e),m):R(t,_)}function K(t){var e=G(t);return e===m&&function(t){t.window_size=2*t.w_size,D(t.head),t.max_lazy_match=h[t.level].max_lazy,t.good_match=h[t.level].good_length,t.nice_match=h[t.level].nice_length,t.max_chain_length=h[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=x-1,t.match_available=0,t.ins_h=0;}(t.state),e}function Y(t,e,r,i,n,s){if(!t)return _;var a=1;if(e===g&&(e=6),i<0?(a=0,i=-i):15<i&&(a=2,i-=16),n<1||y<n||r!==v||i<8||15<i||e<0||9<e||s<0||b<s)return R(t,_);8===i&&(i=9);var o=new H;return (t.state=o).strm=t,o.wrap=a,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+x-1)/x),o.window=new d.Buf8(2*o.w_size),o.head=new d.Buf16(o.hash_size),o.prev=new d.Buf16(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new d.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=e,o.strategy=s,o.method=r,K(t)}h=[new M(0,0,0,0,function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(j(t),0===t.lookahead&&e===l)return A;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+r;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,N(t,!1),0===t.strm.avail_out))return A;if(t.strstart-t.block_start>=t.w_size-z&&(N(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?O:B):(t.strstart>t.block_start&&(N(t,!1),t.strm.avail_out),A)}),new M(4,4,8,4,Z),new M(4,5,16,8,Z),new M(4,6,32,32,Z),new M(4,4,16,16,W),new M(8,16,32,32,W),new M(8,16,128,128,W),new M(8,32,128,256,W),new M(32,128,258,1024,W),new M(32,258,258,4096,W)],r.deflateInit=function(t,e){return Y(t,e,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=K,r.deflateResetKeep=G,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?_:(t.state.gzhead=e,m):_},r.deflate=function(t,e){var r,i,n,s;if(!t||!t.state||5<e||e<0)return t?R(t,_):_;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==f)return R(t,0===t.avail_out?-5:_);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===C)if(2===i.wrap)t.adler=0,U(i,31),U(i,139),U(i,8),i.gzhead?(U(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),U(i,255&i.gzhead.time),U(i,i.gzhead.time>>8&255),U(i,i.gzhead.time>>16&255),U(i,i.gzhead.time>>24&255),U(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),U(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(U(i,255&i.gzhead.extra.length),U(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=p(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(U(i,0),U(i,0),U(i,0),U(i,0),U(i,0),U(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),U(i,3),i.status=E);else {var a=v+(i.w_bits-8<<4)<<8;a|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=32),a+=31-a%31,i.status=E,P(i,a),0!==i.strstart&&(P(i,t.adler>>>16),P(i,65535&t.adler)),t.adler=1;}if(69===i.status)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),F(t),n=i.pending,i.pending!==i.pending_buf_size));)U(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73);}else i.status=73;if(73===i.status)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),F(t),n=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,U(i,s);}while(0!==s);i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),0===s&&(i.gzindex=0,i.status=91);}else i.status=91;if(91===i.status)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),F(t),n=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,U(i,s);}while(0!==s);i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),0===s&&(i.status=103);}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&F(t),i.pending+2<=i.pending_buf_size&&(U(i,255&t.adler),U(i,t.adler>>8&255),t.adler=0,i.status=E)):i.status=E),0!==i.pending){if(F(t),0===t.avail_out)return i.last_flush=-1,m}else if(0===t.avail_in&&T(e)<=T(r)&&e!==f)return R(t,-5);if(666===i.status&&0!==t.avail_in)return R(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&666!==i.status){var o=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(j(t),0===t.lookahead)){if(e===l)return A;break}if(t.match_length=0,r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(N(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?A:I}(i,e):3===i.strategy?function(t,e){for(var r,i,n,s,a=t.window;;){if(t.lookahead<=S){if(j(t),t.lookahead<=S&&e===l)return A;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=x&&0<t.strstart&&(i=a[n=t.strstart-1])===a[++n]&&i===a[++n]&&i===a[++n]){s=t.strstart+S;do{}while(i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&n<s);t.match_length=S-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead);}if(t.match_length>=x?(r=u._tr_tally(t,1,t.match_length-x),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(N(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===f?(N(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?A:I}(i,e):h[i.level].func(i,e);if(o!==O&&o!==B||(i.status=666),o===A||o===O)return 0===t.avail_out&&(i.last_flush=-1),m;if(o===I&&(1===e?u._tr_align(i):5!==e&&(u._tr_stored_block(i,0,0,!1),3===e&&(D(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),F(t),0===t.avail_out))return i.last_flush=-1,m}return e!==f?m:i.wrap<=0?1:(2===i.wrap?(U(i,255&t.adler),U(i,t.adler>>8&255),U(i,t.adler>>16&255),U(i,t.adler>>24&255),U(i,255&t.total_in),U(i,t.total_in>>8&255),U(i,t.total_in>>16&255),U(i,t.total_in>>24&255)):(P(i,t.adler>>>16),P(i,65535&t.adler)),F(t),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?m:1)},r.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==C&&69!==e&&73!==e&&91!==e&&103!==e&&e!==E&&666!==e?R(t,_):(t.state=null,e===E?R(t,-3):m):_},r.deflateSetDictionary=function(t,e){var r,i,n,s,a,o,h,u,l=e.length;if(!t||!t.state)return _;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==C||r.lookahead)return _;for(1===s&&(t.adler=c(t.adler,e,l,0)),r.wrap=0,l>=r.w_size&&(0===s&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new d.Buf8(r.w_size),d.arraySet(u,e,l-r.w_size,r.w_size,0),e=u,l=r.w_size),a=t.avail_in,o=t.next_in,h=t.input,t.avail_in=l,t.next_in=0,t.input=e,j(r);r.lookahead>=x;){for(i=r.strstart,n=r.lookahead-(x-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+x-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++,--n;);r.strstart=i,r.lookahead=x-1,j(r);}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=x-1,r.match_available=0,t.next_in=o,t.input=h,t.avail_in=a,r.wrap=s,m},r.deflateInfo="pako deflate (from Nodeca project)";},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,r){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1;};},{}],48:[function(t,e,r){e.exports=function(t,e){var r,i,n,s,a,o,h,u,l,f,d,c,p,m,_,g,b,v,y,w,k,x,S,z,C;r=t.state,i=t.next_in,z=t.input,n=i+(t.avail_in-5),s=t.next_out,C=t.output,a=s-(e-t.avail_out),o=s+(t.avail_out-257),h=r.dmax,u=r.wsize,l=r.whave,f=r.wnext,d=r.window,c=r.hold,p=r.bits,m=r.lencode,_=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;t:do{p<15&&(c+=z[i++]<<p,p+=8,c+=z[i++]<<p,p+=8),v=m[c&g];e:for(;;){if(c>>>=y=v>>>24,p-=y,0===(y=v>>>16&255))C[s++]=65535&v;else {if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(c&(1<<y)-1)];continue e}if(32&y){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&v,(y&=15)&&(p<y&&(c+=z[i++]<<p,p+=8),w+=c&(1<<y)-1,c>>>=y,p-=y),p<15&&(c+=z[i++]<<p,p+=8,c+=z[i++]<<p,p+=8),v=_[c&b];r:for(;;){if(c>>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(c&(1<<y)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&v,p<(y&=15)&&(c+=z[i++]<<p,(p+=8)<y&&(c+=z[i++]<<p,p+=8)),h<(k+=c&(1<<y)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(c>>>=y,p-=y,(y=s-a)<k){if(l<(y=k-y)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(S=d,(x=0)===f){if(x+=u-y,y<w){for(w-=y;C[s++]=d[x++],--y;);x=s-k,S=C;}}else if(f<y){if(x+=u+f-y,(y-=f)<w){for(w-=y;C[s++]=d[x++],--y;);if(x=0,f<w){for(w-=y=f;C[s++]=d[x++],--y;);x=s-k,S=C;}}}else if(x+=f-y,y<w){for(w-=y;C[s++]=d[x++],--y;);x=s-k,S=C;}for(;2<w;)C[s++]=S[x++],C[s++]=S[x++],C[s++]=S[x++],w-=3;w&&(C[s++]=S[x++],1<w&&(C[s++]=S[x++]));}else {for(x=s-k;C[s++]=C[x++],C[s++]=C[x++],C[s++]=C[x++],2<(w-=3););w&&(C[s++]=C[x++],1<w&&(C[s++]=C[x++]));}break}}break}}while(i<n&&s<o);i-=w=p>>3,c&=(1<<(p-=w<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i<n?n-i+5:5-(i-n),t.avail_out=s<o?o-s+257:257-(s-o),r.hold=c,r.bits=p;};},{}],49:[function(t,e,r){var I=t("../utils/common"),O=t("./adler32"),B=t("./crc32"),R=t("./inffast"),T=t("./inftrees"),D=1,F=2,N=0,U=-2,P=1,i=852,n=592;function L(t){return (t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function s(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0;}function a(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=P,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new I.Buf32(i),e.distcode=e.distdyn=new I.Buf32(n),e.sane=1,e.back=-1,N):U}function o(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,a(t)):U}function h(t,e){var r,i;return t&&t.state?(i=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?U:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=r,i.wbits=e,o(t))):U}function u(t,e){var r,i;return t?(i=new s,(t.state=i).window=null,(r=h(t,e))!==N&&(t.state=null),r):U}var l,f,d=!0;function j(t){if(d){var e;for(l=new I.Buf32(512),f=new I.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(T(D,t.lens,0,288,l,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;T(F,t.lens,0,32,f,0,t.work,{bits:5}),d=!1;}t.lencode=l,t.lenbits=9,t.distcode=f,t.distbits=5;}function Z(t,e,r,i){var n,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new I.Buf8(s.wsize)),i>=s.wsize?(I.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(n=s.wsize-s.wnext)&&(n=i),I.arraySet(s.window,e,r-i,n,s.wnext),(i-=n)?(I.arraySet(s.window,e,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0}r.inflateReset=o,r.inflateReset2=h,r.inflateResetKeep=a,r.inflateInit=function(t){return u(t,15)},r.inflateInit2=u,r.inflate=function(t,e){var r,i,n,s,a,o,h,u,l,f,d,c,p,m,_,g,b,v,y,w,k,x,S,z,C=0,E=new I.Buf8(4),A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return U;12===(r=t.state).mode&&(r.mode=13),a=t.next_out,n=t.output,h=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,u=r.hold,l=r.bits,f=o,d=h,x=N;t:for(;;)switch(r.mode){case P:if(0===r.wrap){r.mode=13;break}for(;l<16;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(2&r.wrap&&35615===u){E[r.check=0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0),l=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){t.msg="unknown compression method",r.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&u?10:12,l=u=0;break;case 2:for(;l<16;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(r.flags=u,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}r.head&&(r.head.time=u),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=B(r.check,E,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0;}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(c=r.length)&&(c=o),c&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,i,s,c,k)),512&r.flags&&(r.check=B(r.check,i,c,s)),o-=c,s+=c,r.length-=c),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break t;for(c=0;k=i[s+c++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&c<o;);if(512&r.flags&&(r.check=B(r.check,i,c,s)),o-=c,s+=c,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===o)break t;for(c=0;k=i[s+c++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k)),k&&c<o;);if(512&r.flags&&(r.check=B(r.check,i,c,s)),o-=c,s+=c,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;l<16;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(u!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}l=u=0;}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}t.adler=r.check=L(u),l=u=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=h,t.next_in=s,t.avail_in=o,r.hold=u,r.bits=l,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){u>>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}switch(r.last=1&u,l-=1,3&(u>>>=1)){case 0:r.mode=14;break;case 1:if(j(r),r.mode=20,6!==e)break;u>>>=2,l-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30;}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if((65535&u)!=(u>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(c=r.length){if(o<c&&(c=o),h<c&&(c=h),0===c)break t;I.arraySet(n,i,s,c,a),o-=c,s+=c,h-=c,a+=c,r.length-=c;break}r.mode=12;break;case 17:for(;l<14;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(r.nlen=257+(31&u),u>>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;l<3;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}r.lens[A[r.have++]]=7&u,u>>>=3,l-=3;}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=T(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;g=(C=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(b<16)u>>>=_,l-=_,r.lens[r.have++]=b;else {if(16===b){for(z=_+2;l<z;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(u>>>=_,l-=_,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],c=3+(3&u),u>>>=2,l-=2;}else if(17===b){for(z=_+3;l<z;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}l-=_,k=0,c=3+(7&(u>>>=_)),u>>>=3,l-=3;}else {for(z=_+7;l<z;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}l-=_,k=0,c=11+(127&(u>>>=_)),u>>>=7,l-=7;}if(r.have+c>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;c--;)r.lens[r.have++]=k;}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=T(D,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=T(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=o&&258<=h){t.next_out=a,t.avail_out=h,t.next_in=s,t.avail_in=o,r.hold=u,r.bits=l,R(t,d),a=t.next_out,n=t.output,h=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(g&&0==(240&g)){for(v=_,y=g,w=b;g=(C=r.lencode[w+((u&(1<<v+y)-1)>>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}u>>>=v,l-=v,r.back+=v;}if(u>>>=_,l-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(z=r.extra;l<z;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,l-=r.extra,r.back+=r.extra;}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[u&(1<<r.distbits)-1])>>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(0==(240&g)){for(v=_,y=g,w=b;g=(C=r.distcode[w+((u&(1<<v+y)-1)>>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}u>>>=v,l-=v,r.back+=v;}if(u>>>=_,l-=_,r.back+=_,64&g){t.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(z=r.extra;l<z;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,l-=r.extra,r.back+=r.extra;}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===h)break t;if(c=d-h,r.offset>c){if((c=r.offset-c)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}p=c>r.wnext?(c-=r.wnext,r.wsize-c):r.wnext-c,c>r.length&&(c=r.length),m=r.window;}else m=n,p=a-r.offset,c=r.length;for(h<c&&(c=h),h-=c,r.length-=c;n[a++]=m[p++],--c;);0===r.length&&(r.mode=21);break;case 26:if(0===h)break t;n[a++]=r.length,h--,r.mode=21;break;case 27:if(r.wrap){for(;l<32;){if(0===o)break t;o--,u|=i[s++]<<l,l+=8;}if(d-=h,t.total_out+=d,r.total+=d,d&&(t.adler=r.check=r.flags?B(r.check,n,d,a-d):O(r.check,n,d,a-d)),d=h,(r.flags?u:L(u))!==r.check){t.msg="incorrect data check",r.mode=30;break}l=u=0;}r.mode=28;case 28:if(r.wrap&&r.flags){for(;l<32;){if(0===o)break t;o--,u+=i[s++]<<l,l+=8;}if(u!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}l=u=0;}r.mode=29;case 29:x=1;break t;case 30:x=-3;break t;case 31:return -4;case 32:default:return U}return t.next_out=a,t.avail_out=h,t.next_in=s,t.avail_in=o,r.hold=u,r.bits=l,(r.wsize||d!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&Z(t,t.output,t.next_out,d-t.avail_out)?(r.mode=31,-4):(f-=t.avail_in,d-=t.avail_out,t.total_in+=f,t.total_out+=d,r.total+=d,r.wrap&&d&&(t.adler=r.check=r.flags?B(r.check,n,d,t.next_out-d):O(r.check,n,d,t.next_out-d)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==f&&0===d||4===e)&&x===N&&(x=-5),x)},r.inflateEnd=function(t){if(!t||!t.state)return U;var e=t.state;return e.window&&(e.window=null),t.state=null,N},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?U:((r.head=e).done=!1,N):U},r.inflateSetDictionary=function(t,e){var r,i=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?U:11===r.mode&&O(1,e,i,0)!==r.check?-3:Z(t,e,i,i)?(r.mode=31,-4):(r.havedict=1,N):U},r.inflateInfo="pako inflate (from Nodeca project)";},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,r){var D=t("../utils/common"),F=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],N=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],U=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],P=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,r,i,n,s,a,o){var h,u,l,f,d,c,p,m,_,g=o.bits,b=0,v=0,y=0,w=0,k=0,x=0,S=0,z=0,C=0,E=0,A=null,I=0,O=new D.Buf16(16),B=new D.Buf16(16),R=null,T=0;for(b=0;b<=15;b++)O[b]=0;for(v=0;v<i;v++)O[e[r+v]]++;for(k=g,w=15;1<=w&&0===O[w];w--);if(w<k&&(k=w),0===w)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(y=1;y<w&&0===O[y];y++);for(k<y&&(k=y),b=z=1;b<=15;b++)if(z<<=1,(z-=O[b])<0)return -1;if(0<z&&(0===t||1!==w))return -1;for(B[1]=0,b=1;b<15;b++)B[b+1]=B[b]+O[b];for(v=0;v<i;v++)0!==e[r+v]&&(a[B[e[r+v]]++]=v);if(c=0===t?(A=R=a,19):1===t?(A=F,I-=257,R=N,T-=257,256):(A=U,R=P,-1),b=y,d=s,S=v=E=0,l=-1,f=(C=1<<(x=k))-1,1===t&&852<C||2===t&&592<C)return 1;for(;;){for(p=b-S,_=a[v]<c?(m=0,a[v]):a[v]>c?(m=R[T+a[v]],A[I+a[v]]):(m=96,0),h=1<<b-S,y=u=1<<x;n[d+(E>>S)+(u-=h)]=p<<24|m<<16|_|0,0!==u;);for(h=1<<b-1;E&h;)h>>=1;if(0!==h?(E&=h-1,E+=h):E=0,v++,0==--O[b]){if(b===w)break;b=e[r+a[v]];}if(k<b&&(E&f)!==l){for(0===S&&(S=k),d+=y,z=1<<(x=b-S);x+S<w&&!((z-=O[x+S])<=0);)x++,z<<=1;if(C+=1<<x,1===t&&852<C||2===t&&592<C)return 1;n[l=E&f]=k<<24|x<<16|d-s|0;}}return 0!==E&&(n[d+E]=b-S<<24|64<<16|0),o.bits=k,0};},{"../utils/common":41}],51:[function(t,e,r){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};},{}],52:[function(t,e,r){var n=t("../utils/common"),o=0,h=1;function i(t){for(var e=t.length;0<=--e;)t[e]=0;}var s=0,a=29,u=256,l=u+1+a,f=30,d=19,_=2*l+1,g=15,c=16,p=7,m=256,b=16,v=17,y=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=new Array(2*(l+2));i(z);var C=new Array(2*f);i(C);var E=new Array(512);i(E);var A=new Array(256);i(A);var I=new Array(a);i(I);var O,B,R,T=new Array(f);function D(t,e,r,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=t&&t.length;}function F(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e;}function N(t){return t<256?E[t]:E[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255;}function P(t,e,r){t.bi_valid>c-r?(t.bi_buf|=e<<t.bi_valid&65535,U(t,t.bi_buf),t.bi_buf=e>>c-t.bi_valid,t.bi_valid+=r-c):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r);}function L(t,e,r){P(t,r[2*e],r[2*e+1]);}function j(t,e){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--e;);return r>>>1}function Z(t,e,r){var i,n,s=new Array(g+1),a=0;for(i=1;i<=g;i++)s[i]=a=a+r[i-1]<<1;for(n=0;n<=e;n++){var o=t[2*n+1];0!==o&&(t[2*n]=j(s[o]++,o));}}function W(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<f;e++)t.dyn_dtree[2*e]=0;for(e=0;e<d;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0;}function M(t){8<t.bi_valid?U(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0;}function H(t,e,r,i){var n=2*e,s=2*r;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[r]}function G(t,e,r){for(var i=t.heap[r],n=r<<1;n<=t.heap_len&&(n<t.heap_len&&H(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!H(e,i,t.heap[n],t.depth));)t.heap[r]=t.heap[n],r=n,n<<=1;t.heap[r]=i;}function K(t,e,r){var i,n,s,a,o=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],n=t.pending_buf[t.l_buf+o],o++,0===i?L(t,n,e):(L(t,(s=A[n])+u+1,e),0!==(a=w[s])&&P(t,n-=I[s],a),L(t,s=N(--i),r),0!==(a=k[s])&&P(t,i-=T[s],a)),o<t.last_lit;);L(t,m,e);}function Y(t,e){var r,i,n,s=e.dyn_tree,a=e.stat_desc.static_tree,o=e.stat_desc.has_stree,h=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=_,r=0;r<h;r++)0!==s[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):s[2*r+1]=0;for(;t.heap_len<2;)s[2*(n=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[n]=0,t.opt_len--,o&&(t.static_len-=a[2*n+1]);for(e.max_code=u,r=t.heap_len>>1;1<=r;r--)G(t,s,r);for(n=h;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],G(t,s,1),i=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=i,s[2*n]=s[2*r]+s[2*i],t.depth[n]=(t.depth[r]>=t.depth[i]?t.depth[r]:t.depth[i])+1,s[2*r+1]=s[2*i+1]=n,t.heap[1]=n++,G(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,i,n,s,a,o,h=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(s=0;s<=g;s++)t.bl_count[s]=0;for(h[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<_;r++)p<(s=h[2*h[2*(i=t.heap[r])+1]+1]+1)&&(s=p,m++),h[2*i+1]=s,u<i||(t.bl_count[s]++,a=0,c<=i&&(a=d[i-c]),o=h[2*i],t.opt_len+=o*(s+a),f&&(t.static_len+=o*(l[2*i+1]+a)));if(0!==m){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,m-=2;}while(0<m);for(s=p;0!==s;s--)for(i=t.bl_count[s];0!==i;)u<(n=t.heap[--r])||(h[2*n+1]!==s&&(t.opt_len+=(s-h[2*n+1])*h[2*n],h[2*n+1]=s),i--);}}(t,e),Z(s,u,t.bl_count);}function X(t,e,r){var i,n,s=-1,a=e[1],o=0,h=7,u=4;for(0===a&&(h=138,u=3),e[2*(r+1)+1]=65535,i=0;i<=r;i++)n=a,a=e[2*(i+1)+1],++o<h&&n===a||(o<u?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[2*b]++):o<=10?t.bl_tree[2*v]++:t.bl_tree[2*y]++,s=n,u=(o=0)===a?(h=138,3):n===a?(h=6,3):(h=7,4));}function V(t,e,r){var i,n,s=-1,a=e[1],o=0,h=7,u=4;for(0===a&&(h=138,u=3),i=0;i<=r;i++)if(n=a,a=e[2*(i+1)+1],!(++o<h&&n===a)){if(o<u)for(;L(t,n,t.bl_tree),0!=--o;);else 0!==n?(n!==s&&(L(t,n,t.bl_tree),o--),L(t,b,t.bl_tree),P(t,o-3,2)):o<=10?(L(t,v,t.bl_tree),P(t,o-3,3)):(L(t,y,t.bl_tree),P(t,o-11,7));s=n,u=(o=0)===a?(h=138,3):n===a?(h=6,3):(h=7,4);}}i(T);var q=!1;function J(t,e,r,i){P(t,(s<<1)+(i?1:0),3),function(t,e,r,i){M(t),i&&(U(t,r),U(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r;}(t,e,r,!0);}r._tr_init=function(t){q||(function(){var t,e,r,i,n,s=new Array(g+1);for(i=r=0;i<a-1;i++)for(I[i]=r,t=0;t<1<<w[i];t++)A[r++]=i;for(A[r-1]=i,i=n=0;i<16;i++)for(T[i]=n,t=0;t<1<<k[i];t++)E[n++]=i;for(n>>=7;i<f;i++)for(T[i]=n<<7,t=0;t<1<<k[i]-7;t++)E[256+n++]=i;for(e=0;e<=g;e++)s[e]=0;for(t=0;t<=143;)z[2*t+1]=8,t++,s[8]++;for(;t<=255;)z[2*t+1]=9,t++,s[9]++;for(;t<=279;)z[2*t+1]=7,t++,s[7]++;for(;t<=287;)z[2*t+1]=8,t++,s[8]++;for(Z(z,l+1,s),t=0;t<f;t++)C[2*t+1]=5,C[2*t]=j(t,5);O=new D(z,w,u+1,l,g),B=new D(C,k,0,f,g),R=new D(new Array(0),x,0,d,p);}(),q=!0),t.l_desc=new F(t.dyn_ltree,O),t.d_desc=new F(t.dyn_dtree,B),t.bl_desc=new F(t.bl_tree,R),t.bi_buf=0,t.bi_valid=0,W(t);},r._tr_stored_block=J,r._tr_flush_block=function(t,e,r,i){var n,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return h;for(e=32;e<u;e++)if(0!==t.dyn_ltree[2*e])return h;return o}(t)),Y(t,t.l_desc),Y(t,t.d_desc),a=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=d-1;3<=e&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),n=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=n&&(n=s)):n=s=r+5,r+4<=n&&-1!==e?J(t,e,r,i):4===t.strategy||s===n?(P(t,2+(i?1:0),3),K(t,z,C)):(P(t,4+(i?1:0),3),function(t,e,r,i){var n;for(P(t,e-257,5),P(t,r-1,5),P(t,i-4,4),n=0;n<i;n++)P(t,t.bl_tree[2*S[n]+1],3);V(t,t.dyn_ltree,e-1),V(t,t.dyn_dtree,r-1);}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),K(t,t.dyn_ltree,t.dyn_dtree)),W(t),i&&M(t);},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(A[r]+u+1)]++,t.dyn_dtree[2*N(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){P(t,2,3),L(t,m,z),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8);}(t);};},{"../utils/common":41}],53:[function(t,e,r){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0;};},{}],54:[function(t,e,r){e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t);};},{}]},{},[10])(10)});
28
- });
29
-
30
- /**
31
- * Reads XLSX file in a browser.
32
- * @param {file} file - A file being uploaded in the browser.
33
- * @return {Promise} Resolves to an object holding XLSX file entries.
34
- */
35
-
36
- function unpackXlsxFile(file) {
37
- return jszip_min.loadAsync(file).then(function (zip) {
38
- var files = [];
39
- zip.forEach(function (relativePath, zipEntry) {
40
- if (!zipEntry.dir) {
41
- files.push(zipEntry.name);
42
- }
43
- });
44
- var entries = {};
45
- return Promise.all(files.map(function (file) {
46
- return zip.file(file).async('string').then(function (content) {
47
- return entries[file] = content;
48
- });
49
- })).then(function () {
50
- return entries;
51
- });
52
- });
53
- }
54
-
55
- function findChild(node, tagName) {
56
- var i = 0;
57
-
58
- while (i < node.childNodes.length) {
59
- var childNode = node.childNodes[i]; // `nodeType: 1` means "Element".
60
- // https://www.w3schools.com/xml/prop_element_nodetype.asp
61
-
62
- if (childNode.nodeType === 1 && getTagName(childNode) === tagName) {
63
- return childNode;
64
- }
65
-
66
- i++;
67
- }
68
- }
69
- function findChildren(node, tagName) {
70
- var results = [];
71
- var i = 0;
72
-
73
- while (i < node.childNodes.length) {
74
- var childNode = node.childNodes[i]; // `nodeType: 1` means "Element".
75
- // https://www.w3schools.com/xml/prop_element_nodetype.asp
76
-
77
- if (childNode.nodeType === 1 && getTagName(childNode) === tagName) {
78
- results.push(childNode);
79
- }
80
-
81
- i++;
82
- }
83
-
84
- return results;
85
- }
86
- function forEach(node, tagName, func) {
87
- // if (typeof tagName === 'function') {
88
- // func = tagName
89
- // tagName = undefined
90
- // }
91
- var i = 0;
92
-
93
- while (i < node.childNodes.length) {
94
- var childNode = node.childNodes[i];
95
-
96
- if (tagName) {
97
- // `nodeType: 1` means "Element".
98
- // https://www.w3schools.com/xml/prop_element_nodetype.asp
99
- if (childNode.nodeType === 1 && getTagName(childNode) === tagName) {
100
- func(childNode, i);
101
- }
102
- } else {
103
- func(childNode, i);
104
- }
105
-
106
- i++;
107
- }
108
- }
109
- function map(node, tagName, func) {
110
- var results = [];
111
- forEach(node, tagName, function (node, i) {
112
- results.push(func(node, i));
113
- });
114
- return results;
115
- }
116
- var NAMESPACE_REG_EXP = /.+\:/;
117
- function getTagName(element) {
118
- // For some weird reason, if an element is declared as,
119
- // for example, `<x:sheets/>`, then its `.tagName` will be
120
- // "x:sheets" instead of just "sheets".
121
- // https://gitlab.com/catamphetamine/read-excel-file/-/issues/25
122
- // Its not clear how to tell it to ignore any namespaces
123
- // when getting `.tagName`, so just replacing anything
124
- // before a colon, if any.
125
- return element.tagName.replace(NAMESPACE_REG_EXP, '');
126
- }
127
-
128
- function getCells(document) {
129
- var worksheet = document.documentElement;
130
- var sheetData = findChild(worksheet, 'sheetData');
131
- var cells = [];
132
- forEach(sheetData, 'row', function (row) {
133
- forEach(row, 'c', function (cell) {
134
- cells.push(cell);
135
- });
136
- });
137
- return cells;
138
- }
139
- function getCellValue$1(document, node) {
140
- return findChild(node, 'v');
141
- }
142
- function getCellInlineStringValue(document, node) {
143
- if (node.firstChild && getTagName(node.firstChild) === 'is' && node.firstChild.firstChild && getTagName(node.firstChild.firstChild) === 't') {
144
- return node.firstChild.firstChild.textContent;
145
- }
146
- }
147
- function getDimensions(document) {
148
- var worksheet = document.documentElement;
149
- var dimensions = findChild(worksheet, 'dimension');
150
-
151
- if (dimensions) {
152
- return dimensions.getAttribute('ref');
153
- }
154
- }
155
- function getBaseStyles(document) {
156
- var styleSheet = document.documentElement;
157
- var cellStyleXfs = findChild(styleSheet, 'cellStyleXfs');
158
-
159
- if (cellStyleXfs) {
160
- return findChildren(cellStyleXfs, 'xf');
161
- }
162
-
163
- return [];
164
- }
165
- function getCellStyles(document) {
166
- var styleSheet = document.documentElement;
167
- var cellXfs = findChild(styleSheet, 'cellXfs');
168
-
169
- if (!cellXfs) {
170
- return [];
171
- }
172
-
173
- return findChildren(cellXfs, 'xf');
174
- }
175
- function getNumberFormats(document) {
176
- var styleSheet = document.documentElement;
177
- var numFmts = findChild(styleSheet, 'numFmts');
178
-
179
- if (numFmts) {
180
- return findChildren(numFmts, 'numFmt');
181
- }
182
-
183
- return [];
184
- }
185
- function getSharedStrings(document) {
186
- // An `<si/>` element can contain a `<t/>` (simplest case) or a set of `<r/>` ("rich formatting") elements having `<t/>`.
187
- // https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.sharedstringitem?redirectedfrom=MSDN&view=openxml-2.8.1
188
- // http://www.datypic.com/sc/ooxml/e-ssml_si-1.html
189
- var sst = document.documentElement;
190
- return map(sst, 'si', function (string) {
191
- var t = findChild(string, 't');
192
-
193
- if (t) {
194
- return t.textContent;
195
- }
196
-
197
- var value = '';
198
- forEach(string, 'r', function (r) {
199
- value += findChild(r, 't').textContent;
200
- });
201
- return value;
202
- });
203
- }
204
- function getWorkbookProperties(document) {
205
- var workbook = document.documentElement;
206
- return findChild(workbook, 'workbookPr');
207
- }
208
- function getRelationships(document) {
209
- var relationships = document.documentElement;
210
- return findChildren(relationships, 'Relationship');
211
- }
212
- function getSheets(document) {
213
- var workbook = document.documentElement;
214
- var sheets = findChild(workbook, 'sheets');
215
- return findChildren(sheets, 'sheet');
216
- }
217
-
218
- function parseProperties(content, xml) {
219
- var book = xml.createDocument(content);
220
- var properties = {}; // Read `<workbookPr/>` element to detect whether dates are 1900-based or 1904-based.
221
- // https://support.microsoft.com/en-gb/help/214330/differences-between-the-1900-and-the-1904-date-system-in-excel
222
- // http://webapp.docx4java.org/OnlineDemo/ecma376/SpreadsheetML/workbookPr.html
223
-
224
- var workbookProperties = getWorkbookProperties(book);
225
-
226
- if (workbookProperties && workbookProperties.getAttribute('date1904') === '1') {
227
- properties.epoch1904 = true;
228
- } // Get sheets info (indexes, names, if they're available).
229
- // Example:
230
- // <sheets>
231
- // <sheet
232
- // xmlns:ns="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
233
- // name="Sheet1"
234
- // sheetId="1"
235
- // ns:id="rId3"/>
236
- // </sheets>
237
- // http://www.datypic.com/sc/ooxml/e-ssml_sheet-1.html
238
-
239
-
240
- properties.sheets = [];
241
-
242
- var addSheetInfo = function addSheetInfo(sheet) {
243
- if (sheet.getAttribute('name')) {
244
- properties.sheets.push({
245
- id: sheet.getAttribute('sheetId'),
246
- name: sheet.getAttribute('name'),
247
- relationId: sheet.getAttribute('r:id')
248
- });
249
- }
250
- };
251
-
252
- getSheets(book).forEach(addSheetInfo);
253
- return properties;
254
- }
255
-
256
- /**
257
- * Returns sheet file paths.
258
- * Seems that the correct place to look for the `sheetId` -> `filename` mapping
259
- * is `xl/_rels/workbook.xml.rels` file.
260
- * https://github.com/tidyverse/readxl/issues/104
261
- * @param {string} content — `xl/_rels/workbook.xml.rels` file contents.
262
- * @param {object} xml
263
- * @return {object}
264
- */
265
-
266
- function parseFilePaths(content, xml) {
267
- // Example:
268
- // <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
269
- // ...
270
- // <Relationship
271
- // Id="rId3"
272
- // Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"
273
- // Target="worksheets/sheet1.xml"/>
274
- // </Relationships>
275
- var document = xml.createDocument(content);
276
- var filePaths = {
277
- sheets: {},
278
- sharedStrings: undefined,
279
- styles: undefined
280
- };
281
-
282
- var addFilePathInfo = function addFilePathInfo(relationship) {
283
- var filePath = relationship.getAttribute('Target');
284
- var fileType = relationship.getAttribute('Type');
285
-
286
- switch (fileType) {
287
- case 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles':
288
- filePaths.styles = getFilePath(filePath);
289
- break;
290
-
291
- case 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings':
292
- filePaths.sharedStrings = getFilePath(filePath);
293
- break;
294
-
295
- case 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet':
296
- filePaths.sheets[relationship.getAttribute('Id')] = getFilePath(filePath);
297
- break;
298
- }
299
- };
300
-
301
- getRelationships(document).forEach(addFilePathInfo); // Seems like "sharedStrings.xml" is not required to exist.
302
- // For example, when the spreadsheet doesn't contain any strings.
303
- // https://github.com/catamphetamine/read-excel-file/issues/85
304
- // if (!filePaths.sharedStrings) {
305
- // throw new Error('"sharedStrings.xml" file not found in the *.xlsx file')
306
- // }
307
-
308
- return filePaths;
309
- }
310
-
311
- function getFilePath(path) {
312
- // Normally, `path` is a relative path inside the ZIP archive,
313
- // like "worksheets/sheet1.xml", or "sharedStrings.xml", or "styles.xml".
314
- // There has been one weird case when file path was an absolute path,
315
- // like "/xl/worksheets/sheet1.xml" (specifically for sheets):
316
- // https://github.com/catamphetamine/read-excel-file/pull/95
317
- // Other libraries (like `xlsx`) and software (like Google Docs)
318
- // seem to support such absolute file paths, so this library does too.
319
- if (path[0] === '/') {
320
- return path.slice('/'.length);
321
- } // // Seems like a path could also be a URL.
322
- // // http://officeopenxml.com/anatomyofOOXML-xlsx.php
323
- // if (/^[a-z]+\:\/\//.test(path)) {
324
- // return path
325
- // }
326
-
327
-
328
- return 'xl/' + path;
329
- }
330
-
331
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
332
-
333
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
334
-
335
- function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
336
- // Returns an array of cell styles.
337
- // A cell style index is its ID.
338
-
339
- function parseStyles(content, xml) {
340
- if (!content) {
341
- return {};
342
- } // https://social.msdn.microsoft.com/Forums/sqlserver/en-US/708978af-b598-45c4-a598-d3518a5a09f0/howwhen-is-cellstylexfs-vs-cellxfs-applied-to-a-cell?forum=os_binaryfile
343
- // https://www.office-forums.com/threads/cellxfs-cellstylexfs.2163519/
344
-
345
-
346
- var doc = xml.createDocument(content);
347
- var baseStyles = getBaseStyles(doc).map(parseCellStyle);
348
- var numberFormats = getNumberFormats(doc).map(parseNumberFormatStyle).reduce(function (formats, format) {
349
- // Format ID is a numeric index.
350
- // There're some standard "built-in" formats (in Excel) up to about `100`.
351
- formats[format.id] = format;
352
- return formats;
353
- }, []);
354
-
355
- var getCellStyle = function getCellStyle(xf) {
356
- if (xf.hasAttribute('xfId')) {
357
- return _objectSpread$3(_objectSpread$3({}, baseStyles[xf.xfId]), parseCellStyle(xf, numberFormats));
358
- }
359
-
360
- return parseCellStyle(xf, numberFormats);
361
- };
362
-
363
- return getCellStyles(doc).map(getCellStyle);
364
- }
365
-
366
- function parseNumberFormatStyle(numFmt) {
367
- return {
368
- id: numFmt.getAttribute('numFmtId'),
369
- template: numFmt.getAttribute('formatCode')
370
- };
371
- } // http://www.datypic.com/sc/ooxml/e-ssml_xf-2.html
372
-
373
-
374
- function parseCellStyle(xf, numFmts) {
375
- var style = {};
376
-
377
- if (xf.hasAttribute('numFmtId')) {
378
- var numberFormatId = xf.getAttribute('numFmtId'); // Built-in number formats don't have a `<numFmt/>` element in `styles.xml`.
379
- // https://hexdocs.pm/xlsxir/number_styles.html
380
-
381
- if (numFmts[numberFormatId]) {
382
- style.numberFormat = numFmts[numberFormatId];
383
- } else {
384
- style.numberFormat = {
385
- id: numberFormatId
386
- };
387
- }
388
- }
389
-
390
- return style;
391
- }
392
-
393
- function parseSharedStrings(content, xml) {
394
- if (!content) {
395
- return [];
396
- }
397
-
398
- return getSharedStrings(xml.createDocument(content));
399
- }
400
-
401
- // Parses an Excel Date ("serial") into a
402
- // corresponding javascript Date in UTC+0 timezone.
403
- // (with time equal to 00:00)
404
- //
405
- // Doesn't account for leap seconds.
406
- // Therefore is not 100% correct.
407
- // But will do, I guess, since we're
408
- // not doing rocket science here.
409
- //
410
- // https://www.pcworld.com/article/3063622/software/mastering-excel-date-time-serial-numbers-networkdays-datevalue-and-more.html
411
- // "If you need to calculate dates in your spreadsheets,
412
- // Excel uses its own unique system, which it calls Serial Numbers".
413
- //
414
- function parseExcelDate(excelSerialDate, options) {
415
- // https://support.microsoft.com/en-gb/help/214330/differences-between-the-1900-and-the-1904-date-system-in-excel
416
- if (options && options.epoch1904) {
417
- excelSerialDate += 1462;
418
- } // "Excel serial date" is just
419
- // the count of days since `01/01/1900`
420
- // (seems that it may be even fractional).
421
- //
422
- // The count of days elapsed
423
- // since `01/01/1900` (Excel epoch)
424
- // till `01/01/1970` (Unix epoch).
425
- // Accounts for leap years
426
- // (19 of them, yielding 19 extra days).
427
-
428
-
429
- var daysBeforeUnixEpoch = 70 * 365 + 19; // An hour, approximately, because a minute
430
- // may be longer than 60 seconds, see "leap seconds".
431
-
432
- var hour = 60 * 60 * 1000;
433
- return new Date(Math.round((excelSerialDate - daysBeforeUnixEpoch) * 24 * hour));
434
- }
435
-
436
- function _createForOfIteratorHelperLoose$5(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
437
-
438
- function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
439
-
440
- function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
441
-
442
- var BUILT_IN_DATE_NUMBER_FORMAT_IDS = [14, 15, 16, 17, 18, 19, 20, 21, 22, 27, 30, 36, 45, 46, 47, 50, 57];
443
- function getCellValue(value, type, _ref) {
444
- var getInlineStringValue = _ref.getInlineStringValue,
445
- getStyleId = _ref.getStyleId,
446
- styles = _ref.styles,
447
- values = _ref.values,
448
- properties = _ref.properties,
449
- options = _ref.options;
450
-
451
- if (!type) {
452
- // Default cell type is "n" (numeric).
453
- // http://www.datypic.com/sc/ooxml/t-ssml_CT_Cell.html
454
- type = 'n';
455
- } // Available Excel cell types:
456
- // https://github.com/SheetJS/sheetjs/blob/19620da30be2a7d7b9801938a0b9b1fd3c4c4b00/docbits/52_datatype.md
457
- //
458
- // Some other document (seems to be old):
459
- // http://webapp.docx4java.org/OnlineDemo/ecma376/SpreadsheetML/ST_CellType.html
460
- //
461
-
462
-
463
- switch (type) {
464
- // If the cell contains formula string.
465
- case 'str':
466
- value = value.trim();
467
-
468
- if (value === '') {
469
- value = undefined;
470
- }
471
-
472
- break;
473
- // If the cell contains an "inline" (not "shared") string.
474
-
475
- case 'inlineStr':
476
- value = getInlineStringValue();
477
-
478
- if (value === undefined) {
479
- throw new Error("Unsupported \"inline string\" cell value structure"); // : ${cellNode.textContent}`)
480
- }
481
-
482
- value = value.trim();
483
-
484
- if (value === '') {
485
- value = undefined;
486
- }
487
-
488
- break;
489
- // If the cell contains a "shared" string.
490
- // "Shared" strings is a way for an Excel editor to reduce
491
- // the file size by storing "commonly used" strings in a dictionary
492
- // and then referring to such strings by their index in that dictionary.
493
-
494
- case 's':
495
- // If a cell has no value then there's no `<c/>` element for it.
496
- // If a `<c/>` element exists then it's not empty.
497
- // The `<v/>`alue is a key in the "shared strings" dictionary of the
498
- // XLSX file, so look it up in the `values` dictionary by the numeric key.
499
- value = values[parseInt(value)];
500
- value = value.trim();
501
-
502
- if (value === '') {
503
- value = undefined;
504
- }
505
-
506
- break;
507
-
508
- case 'b':
509
- value = value === '1' ? true : false;
510
- break;
511
- // Stub: blank stub cell that is ignored by data processing utilities.
512
-
513
- case 'z':
514
- value = undefined;
515
- break;
516
- // Error: `value` is a numeric code.
517
- // They also wrote: "and `w` property stores its common name".
518
- // It's unclear what they meant by that.
519
-
520
- case 'e':
521
- value = decodeError(value);
522
- break;
523
- // Date: a string to be parsed as a date.
524
- // (usually a string in "ISO 8601" format)
525
-
526
- case 'd':
527
- if (value === undefined) {
528
- break;
529
- }
530
-
531
- value = new Date(value);
532
- break;
533
-
534
- case 'n':
535
- if (value === undefined) {
536
- break;
537
- }
538
-
539
- value = parseFloat(value); // XLSX does have "d" type for dates, but it's not commonly used.
540
- // Instead, spreadsheets prefer using "n" type for dates for some reason.
541
- //
542
- // In such cases, sometimes a "date" type could be heuristically detected
543
- // by looking at such numeric value "format" and seeing if it's a date-specific one.
544
- // https://github.com/catamphetamine/read-excel-file/issues/3#issuecomment-395770777
545
- //
546
- // The list of generic numeric value "formats":
547
- // https://xlsxwriter.readthedocs.io/format.html#format-set-num-format
548
- //
549
-
550
- var styleId = getStyleId();
551
-
552
- if (styleId) {
553
- // styleId = parseInt(styleId)
554
- var style = styles[styleId];
555
-
556
- if (!style) {
557
- throw new Error("Cell style not found: ".concat(styleId));
558
- }
559
-
560
- if (BUILT_IN_DATE_NUMBER_FORMAT_IDS.indexOf(parseInt(style.numberFormat.id)) >= 0 || options.dateFormat && style.numberFormat.template === options.dateFormat || options.smartDateParser !== false && style.numberFormat.template && isDateTemplate(style.numberFormat.template)) {
561
- value = parseExcelDate(value, properties);
562
- }
563
- }
564
-
565
- break;
566
-
567
- default:
568
- throw new TypeError("Cell type not supported: ".concat(type));
569
- } // Convert empty values to `null`.
570
-
571
-
572
- if (value === undefined) {
573
- value = null;
574
- }
575
-
576
- return value;
577
- } // Decodes numeric error code to a string code.
578
- // https://github.com/SheetJS/sheetjs/blob/19620da30be2a7d7b9801938a0b9b1fd3c4c4b00/docbits/52_datatype.md
579
-
580
- function decodeError(errorCode) {
581
- // While the error values are determined by the application,
582
- // the following are some example error values that could be used:
583
- switch (errorCode) {
584
- case 0x00:
585
- return '#NULL!';
586
-
587
- case 0x07:
588
- return '#DIV/0!';
589
-
590
- case 0x0F:
591
- return '#VALUE!';
592
-
593
- case 0x17:
594
- return '#REF!';
595
-
596
- case 0x1D:
597
- return '#NAME?';
598
-
599
- case 0x24:
600
- return '#NUM!';
601
-
602
- case 0x2A:
603
- return '#N/A';
604
-
605
- case 0x2B:
606
- return '#GETTING_DATA';
607
-
608
- default:
609
- // Such error code doesn't exist. I made it up.
610
- return "#ERROR_".concat(errorCode);
611
- }
612
- }
613
-
614
- function isDateTemplate(template) {
615
- // Date format tokens could be in upper case or in lower case.
616
- // There seems to be no single standard.
617
- // So lowercase the template first.
618
- template = template.toLowerCase();
619
- var tokens = template.split(/\W+/);
620
-
621
- for (var _iterator = _createForOfIteratorHelperLoose$5(tokens), _step; !(_step = _iterator()).done;) {
622
- var token = _step.value;
623
-
624
- if (DATE_TEMPLATE_TOKENS.indexOf(token) < 0) {
625
- return false;
626
- }
627
- }
628
-
629
- return true;
630
- } // These tokens could be in upper case or in lower case.
631
- // There seems to be no single standard, so using lower case.
632
-
633
-
634
- var DATE_TEMPLATE_TOKENS = [// Seconds (min two digits). Example: "05".
635
- 'ss', // Minutes (min two digits). Example: "05". Could also be "Months". Weird.
636
- 'mm', // Hours. Example: "1".
637
- 'h', // Hours (min two digits). Example: "01".
638
- 'hh', // "AM" part of "AM/PM". Lowercased just in case.
639
- 'am', // "PM" part of "AM/PM". Lowercased just in case.
640
- 'pm', // Day. Example: "1"
641
- 'd', // Day (min two digits). Example: "01"
642
- 'dd', // Month (numeric). Example: "1".
643
- 'm', // Month (numeric, min two digits). Example: "01". Could also be "Minutes". Weird.
644
- 'mm', // Month (shortened month name). Example: "Jan".
645
- 'mmm', // Month (full month name). Example: "January".
646
- 'mmmm', // Two-digit year. Example: "20".
647
- 'yy', // Full year. Example: "2020".
648
- 'yyyy'];
649
-
650
- // Maps "A1"-like coordinates to `{ row, column }` numeric coordinates.
651
- var LETTERS = ["", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
652
- function calculateDimensions(cells) {
653
- var comparator = function comparator(a, b) {
654
- return a - b;
655
- };
656
-
657
- var allRows = cells.map(function (cell) {
658
- return cell.row;
659
- }).sort(comparator);
660
- var allCols = cells.map(function (cell) {
661
- return cell.column;
662
- }).sort(comparator);
663
- var minRow = allRows[0];
664
- var maxRow = allRows[allRows.length - 1];
665
- var minCol = allCols[0];
666
- var maxCol = allCols[allCols.length - 1];
667
- return [{
668
- row: minRow,
669
- column: minCol
670
- }, {
671
- row: maxRow,
672
- column: maxCol
673
- }];
674
- } // Converts a letter coordinate to a digit coordinate.
675
- // Examples: "A" -> 1, "B" -> 2, "Z" -> 26, "AA" -> 27, etc.
676
-
677
- function columnLettersToNumber(columnLetters) {
678
- // `for ... of ...` would require Babel polyfill for iterating a string.
679
- var n = 0;
680
- var i = 0;
681
-
682
- while (i < columnLetters.length) {
683
- n *= 26;
684
- n += LETTERS.indexOf(columnLetters[i]);
685
- i++;
686
- }
687
-
688
- return n;
689
- }
690
-
691
- function parseCellCoordinates(coords) {
692
- // Coordinate examples: "AA2091", "R988", "B1".
693
- coords = coords.split(/(\d+)/);
694
- return [// Row.
695
- parseInt(coords[1]), // Column.
696
- columnLettersToNumber(coords[0].trim())];
697
- }
698
-
699
- //
700
- // <c>
701
- // <f>string</f> — formula.
702
- // <v>string</v> — formula pre-computed value.
703
- // <is>
704
- // <t>string</t> — an `inlineStr` string (rather than a "common string" from a dictionary).
705
- // <r>
706
- // <rPr>
707
- // ...
708
- // </rPr>
709
- // <t>string</t>
710
- // </r>
711
- // <rPh sb="1" eb="1">
712
- // <t>string</t>
713
- // </rPh>
714
- // <phoneticPr fontId="1"/>
715
- // </is>
716
- // <extLst>
717
- // <ext>
718
- // <!--any element-->
719
- // </ext>
720
- // </extLst>
721
- // </c>
722
- //
723
-
724
- function parseCell(node, sheet, xml, values, styles, properties, options) {
725
- var coords = parseCellCoordinates(node.getAttribute('r'));
726
- var valueElement = getCellValue$1(sheet, node); // For `xpath`, `value` can be `undefined` while for native `DOMParser` it's `null`.
727
- // So using `value && ...` instead of `if (value !== undefined) { ... }` here
728
- // for uniform compatibility with both `xpath` and native `DOMParser`.
729
-
730
- var value = valueElement && valueElement.textContent;
731
- var type;
732
-
733
- if (node.hasAttribute('t')) {
734
- type = node.getAttribute('t');
735
- }
736
-
737
- return {
738
- row: coords[0],
739
- column: coords[1],
740
- value: getCellValue(value, type, {
741
- getInlineStringValue: function getInlineStringValue() {
742
- return getCellInlineStringValue(sheet, node);
743
- },
744
- getStyleId: function getStyleId() {
745
- return node.getAttribute('s');
746
- },
747
- styles: styles,
748
- values: values,
749
- properties: properties,
750
- options: options
751
- })
752
- };
753
- }
754
-
755
- function parseCells(sheet, xml, values, styles, properties, options) {
756
- var cells = getCells(sheet);
757
-
758
- if (cells.length === 0) {
759
- return [];
760
- } // const mergedCells = getMergedCells(sheet)
761
- // for (const mergedCell of mergedCells) {
762
- // const [from, to] = mergedCell.split(':').map(parseCellCoordinates)
763
- // console.log('Merged Cell.', 'From:', from, 'To:', to)
764
- // }
765
-
766
-
767
- return cells.map(function (node) {
768
- return parseCell(node, sheet, xml, values, styles, properties, options);
769
- });
770
- }
771
-
772
- function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$5(arr, i) || _nonIterableRest$2(); }
773
-
774
- function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
775
-
776
- function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
777
-
778
- function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
779
-
780
- function _iterableToArrayLimit$2(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
781
-
782
- function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
783
- // https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.sheetdimension?view=openxml-2.8.1
784
-
785
- function parseDimensions(sheet) {
786
- var dimensions = getDimensions(sheet);
787
-
788
- if (dimensions) {
789
- dimensions = dimensions.split(':').map(parseCellCoordinates).map(function (_ref) {
790
- var _ref2 = _slicedToArray$2(_ref, 2),
791
- row = _ref2[0],
792
- column = _ref2[1];
793
-
794
- return {
795
- row: row,
796
- column: column
797
- };
798
- }); // Sometimes there can be just a single cell as a spreadsheet's "dimensions".
799
- // For example, the default "dimensions" in Apache POI library is "A1",
800
- // meaning that only the first cell in the spreadsheet is used.
801
- //
802
- // A quote from Apache POI library:
803
- // "Single cell ranges are formatted like single cell references (e.g. 'A1' instead of 'A1:A1')."
804
- //
805
-
806
- if (dimensions.length === 1) {
807
- dimensions = [dimensions[0], dimensions[0]];
808
- }
809
-
810
- return dimensions;
811
- }
812
- }
813
-
814
- function parseSheet(content, xml, values, styles, properties, options) {
815
- var sheet = xml.createDocument(content);
816
- var cells = parseCells(sheet, xml, values, styles, properties, options); // `dimensions` defines the spreadsheet area containing all non-empty cells.
817
- // https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.sheetdimension?view=openxml-2.8.1
818
-
819
- var dimensions = parseDimensions(sheet) || calculateDimensions(cells);
820
- return {
821
- cells: cells,
822
- dimensions: dimensions
823
- };
824
- }
825
-
826
- function _createForOfIteratorHelperLoose$4(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
827
-
828
- function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
829
-
830
- function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
831
-
832
- function dropEmptyRows(data) {
833
- var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
834
- rowMap = _ref.rowMap,
835
- _ref$accessor = _ref.accessor,
836
- accessor = _ref$accessor === void 0 ? function (_) {
837
- return _;
838
- } : _ref$accessor,
839
- onlyTrimAtTheEnd = _ref.onlyTrimAtTheEnd;
840
-
841
- // Drop empty rows.
842
- var i = data.length - 1;
843
-
844
- while (i >= 0) {
845
- // Check if the row is empty.
846
- var empty = true;
847
-
848
- for (var _iterator = _createForOfIteratorHelperLoose$4(data[i]), _step; !(_step = _iterator()).done;) {
849
- var cell = _step.value;
850
-
851
- if (accessor(cell) !== null) {
852
- empty = false;
853
- break;
854
- }
855
- } // Remove the empty row.
856
-
857
-
858
- if (empty) {
859
- data.splice(i, 1);
860
-
861
- if (rowMap) {
862
- rowMap.splice(i, 1);
863
- }
864
- } else if (onlyTrimAtTheEnd) {
865
- break;
866
- }
867
-
868
- i--;
869
- }
870
-
871
- return data;
872
- }
873
-
874
- function _createForOfIteratorHelperLoose$3(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
875
-
876
- function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
877
-
878
- function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
879
-
880
- function dropEmptyColumns(data) {
881
- var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
882
- _ref$accessor = _ref.accessor,
883
- accessor = _ref$accessor === void 0 ? function (_) {
884
- return _;
885
- } : _ref$accessor,
886
- onlyTrimAtTheEnd = _ref.onlyTrimAtTheEnd;
887
-
888
- var i = data[0].length - 1;
889
-
890
- while (i >= 0) {
891
- var empty = true;
892
-
893
- for (var _iterator = _createForOfIteratorHelperLoose$3(data), _step; !(_step = _iterator()).done;) {
894
- var row = _step.value;
895
-
896
- if (accessor(row[i]) !== null) {
897
- empty = false;
898
- break;
899
- }
900
- }
901
-
902
- if (empty) {
903
- var j = 0;
904
-
905
- while (j < data.length) {
906
- data[j].splice(i, 1);
907
- j++;
908
- }
909
- } else if (onlyTrimAtTheEnd) {
910
- break;
911
- }
912
-
913
- i--;
914
- }
915
-
916
- return data;
917
- }
918
-
919
- function _createForOfIteratorHelperLoose$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
920
-
921
- function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$1(); }
922
-
923
- function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
924
-
925
- function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
926
-
927
- function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
928
-
929
- function _iterableToArrayLimit$1(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
930
-
931
- function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
932
- function getData(sheet, options) {
933
- var dimensions = sheet.dimensions,
934
- cells = sheet.cells; // If the sheet is empty.
935
-
936
- if (cells.length === 0) {
937
- return [];
938
- }
939
-
940
- var _dimensions = _slicedToArray$1(dimensions, 2),
941
- rightBottom = _dimensions[1]; // Don't discard empty rows or columns at the start.
942
- // https://github.com/catamphetamine/read-excel-file/issues/102
943
- // const colsCount = (rightBottom.column - leftTop.column) + 1
944
- // const rowsCount = (rightBottom.row - leftTop.row) + 1
945
-
946
-
947
- var colsCount = rightBottom.column;
948
- var rowsCount = rightBottom.row; // Initialize spreadsheet data structure.
949
-
950
- var data = new Array(rowsCount);
951
- var i = 0;
952
-
953
- while (i < rowsCount) {
954
- data[i] = new Array(colsCount);
955
- var j = 0;
956
-
957
- while (j < colsCount) {
958
- data[i][j] = null;
959
- j++;
960
- }
961
-
962
- i++;
963
- } // Fill in spreadsheet `data`.
964
- // (this code implies that `cells` aren't necessarily sorted by row and column:
965
- // maybe that's not correct, this piece code was initially copy-pasted
966
- // from some other library that used `XPath`)
967
-
968
-
969
- for (var _iterator = _createForOfIteratorHelperLoose$2(cells), _step; !(_step = _iterator()).done;) {
970
- var cell = _step.value;
971
- // Don't discard empty rows or columns at the start.
972
- // https://github.com/catamphetamine/read-excel-file/issues/102
973
- // const rowIndex = cell.row - leftTop.row
974
- // const columnIndex = cell.column - leftTop.column
975
- var rowIndex = cell.row - 1;
976
- var columnIndex = cell.column - 1; // Ignore the data in the cell if it's outside of the spreadsheet's "dimensions".
977
-
978
- if (columnIndex < colsCount && rowIndex < rowsCount) {
979
- data[rowIndex][columnIndex] = cell.value;
980
- }
981
- } // Fill in the row map.
982
-
983
-
984
- var rowMap = options.rowMap;
985
-
986
- if (rowMap) {
987
- var _i2 = 0;
988
-
989
- while (_i2 < data.length) {
990
- rowMap[_i2] = _i2;
991
- _i2++;
992
- }
993
- } // Drop empty columns or rows.
994
-
995
-
996
- data = dropEmptyRows(dropEmptyColumns(data, {
997
- onlyTrimAtTheEnd: true
998
- }), {
999
- onlyTrimAtTheEnd: true,
1000
- rowMap: rowMap
1001
- }); // Optionally transform data before applying `schema`.
1002
-
1003
- if (options.transformData) {
1004
- data = options.transformData(data); // data = options.transformData(data, {
1005
- // dropEmptyRowsAndColumns(data) {
1006
- // return dropEmptyRows(dropEmptyColumns(data), { rowMap })
1007
- // }
1008
- // })
1009
- }
1010
-
1011
- return data;
1012
- }
1013
-
1014
- function _createForOfIteratorHelperLoose$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1015
-
1016
- function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
1017
-
1018
- function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1019
-
1020
- function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1021
-
1022
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1023
-
1024
- function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1025
- // https://www.brendanlong.com/the-minimum-viable-xlsx-reader.html
1026
-
1027
- /**
1028
- * Reads an (unzipped) XLSX file structure into a 2D array of cells.
1029
- * @param {object} contents - A list of XML files inside XLSX file (which is a zipped directory).
1030
- * @param {number?} options.sheet - Workbook sheet id (`1` by default).
1031
- * @param {string?} options.dateFormat - Date format, e.g. "mm/dd/yyyy". Values having this format template set will be parsed as dates.
1032
- * @param {object} contents - A list of XML files inside XLSX file (which is a zipped directory).
1033
- * @return {object} An object of shape `{ data, cells, properties }`. `data: string[][]` is an array of rows, each row being an array of cell values. `cells: string[][]` is an array of rows, each row being an array of cells. `properties: object` is the spreadsheet properties (e.g. whether date epoch is 1904 instead of 1900).
1034
- */
1035
-
1036
- function readXlsx(contents, xml) {
1037
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1038
-
1039
- if (!options.sheet) {
1040
- options = _objectSpread$2({
1041
- sheet: 1
1042
- }, options);
1043
- }
1044
-
1045
- var getXmlFileContent = function getXmlFileContent(filePath) {
1046
- if (!contents[filePath]) {
1047
- throw new Error("\"".concat(filePath, "\" file not found inside the *.xlsx file zip archive"));
1048
- }
1049
-
1050
- return contents[filePath];
1051
- }; // Some Excel editors don't want to use standard naming scheme for sheet files.
1052
- // https://github.com/tidyverse/readxl/issues/104
1053
-
1054
-
1055
- var filePaths = parseFilePaths(getXmlFileContent('xl/_rels/workbook.xml.rels'), xml); // Default file path for "shared strings": "xl/sharedStrings.xml".
1056
-
1057
- var values = filePaths.sharedStrings ? parseSharedStrings(getXmlFileContent(filePaths.sharedStrings), xml) : []; // Default file path for "styles": "xl/styles.xml".
1058
-
1059
- var styles = filePaths.styles ? parseStyles(getXmlFileContent(filePaths.styles), xml) : {};
1060
- var properties = parseProperties(getXmlFileContent('xl/workbook.xml'), xml); // A feature for getting the list of sheets in an Excel file.
1061
- // https://github.com/catamphetamine/read-excel-file/issues/14
1062
-
1063
- if (options.getSheets) {
1064
- return properties.sheets.map(function (_ref) {
1065
- var name = _ref.name;
1066
- return {
1067
- name: name
1068
- };
1069
- });
1070
- } // Find the sheet by name, or take the first one.
1071
-
1072
-
1073
- var sheetId = getSheetId(options.sheet, properties.sheets); // If the sheet wasn't found then throw an error.
1074
- // Example: "xl/worksheets/sheet1.xml".
1075
-
1076
- if (!sheetId || !filePaths.sheets[sheetId]) {
1077
- throw createSheetNotFoundError(options.sheet, properties.sheets);
1078
- } // Parse sheet data.
1079
-
1080
-
1081
- var sheet = parseSheet(getXmlFileContent(filePaths.sheets[sheetId]), xml, values, styles, properties, options); // Get spreadsheet data.
1082
-
1083
- var data = getData(sheet, options); // Can return properties, if required.
1084
-
1085
- if (options.properties) {
1086
- return {
1087
- data: data,
1088
- properties: properties
1089
- };
1090
- } // Return spreadsheet data.
1091
-
1092
-
1093
- return data;
1094
- }
1095
-
1096
- function getSheetId(sheet, sheets) {
1097
- if (typeof sheet === 'number') {
1098
- var _sheet = sheets[sheet - 1];
1099
- return _sheet && _sheet.relationId;
1100
- }
1101
-
1102
- for (var _iterator = _createForOfIteratorHelperLoose$1(sheets), _step; !(_step = _iterator()).done;) {
1103
- var _sheet2 = _step.value;
1104
-
1105
- if (_sheet2.name === sheet) {
1106
- return _sheet2.relationId;
1107
- }
1108
- }
1109
- }
1110
-
1111
- function createSheetNotFoundError(sheet, sheets) {
1112
- var sheetsList = sheets && sheets.map(function (sheet, i) {
1113
- return "\"".concat(sheet.name, "\" (#").concat(i + 1, ")");
1114
- }).join(', ');
1115
- return new Error("Sheet ".concat(typeof sheet === 'number' ? '#' + sheet : '"' + sheet + '"', " not found in the *.xlsx file.").concat(sheets ? ' Available sheets: ' + sheetsList + '.' : ''));
1116
- }
1117
-
1118
- function Integer() {}
1119
- function isInteger(x) {
1120
- // https://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript
1121
- return (x | 0) === x;
1122
- }
1123
-
1124
- function URL() {} // URL regexp explanation:
1125
- //
1126
- // /^
1127
- //
1128
- // (?:
1129
- // // Matches optional "http(s):" or "ftp:":
1130
- // (?:
1131
- // (?:https?|ftp):
1132
- // )?
1133
- //
1134
- // // Matches "//" (required):
1135
- // \/\/
1136
- // )
1137
- //
1138
- // // Matches a valid non-local IP address:
1139
- // (?:
1140
- // (?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])
1141
- // (?:
1142
- // \.
1143
- // (?:1?\d{1,2}|2[0-4]\d|25[0-5])
1144
- // ){2}
1145
- // (?:
1146
- // \.
1147
- // (?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4])
1148
- // )
1149
- //
1150
- // // Or,
1151
- // |
1152
- //
1153
- // // Matches an alpha-numeric domain name.
1154
- // (?:
1155
- // (?:
1156
- // [a-z0-9\u00a1-\uffff]
1157
- // [a-z0-9\u00a1-\uffff_-]{0,62}
1158
- // )?
1159
- // [a-z0-9\u00a1-\uffff]
1160
- // \.
1161
- // )*
1162
- // (?:
1163
- // // Domain zone: "com", "net", etc (required):
1164
- // [a-z\u00a1-\uffff]{2,}
1165
- // )
1166
- // )
1167
- //
1168
- // // Matches a colon and a port number:
1169
- // (?::\d{2,5})?
1170
- //
1171
- // // Matches everything after the "origin":
1172
- // // * pathname
1173
- // // * query
1174
- // // * hash
1175
- // (?:[/?#]\S*)?
1176
- //
1177
- // $/i
1178
-
1179
- var regexp$1 = /^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}))(?::\d{2,5})?(?:[/?#]\S*)?$/i; // https://stackoverflow.com/questions/8667070/javascript-regular-expression-to-validate-url
1180
-
1181
- function isURL(value) {
1182
- return regexp$1.test(value);
1183
- }
1184
-
1185
- function Email() {}
1186
- var regexp = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
1187
- function isEmail(value) {
1188
- return regexp.test(value);
1189
- }
1190
-
1191
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1192
-
1193
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1194
-
1195
- function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1196
-
1197
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1198
-
1199
- function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
1200
-
1201
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1202
-
1203
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1204
-
1205
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1206
-
1207
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1208
-
1209
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1210
-
1211
- function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1212
- var DEFAULT_OPTIONS = {
1213
- isColumnOriented: false
1214
- };
1215
- /**
1216
- * Convert 2D array to nested objects.
1217
- * If row oriented data, row 0 is dotted key names.
1218
- * Column oriented data is transposed.
1219
- * @param {any[][]} data - An array of rows, each row being an array of cells.
1220
- * @param {object} schema
1221
- * @return {object[]}
1222
- */
1223
-
1224
- function convertToJson (data, schema, options) {
1225
- if (options) {
1226
- options = _objectSpread$1(_objectSpread$1({}, DEFAULT_OPTIONS), options);
1227
- } else {
1228
- options = DEFAULT_OPTIONS;
1229
- }
1230
-
1231
- var _options = options,
1232
- isColumnOriented = _options.isColumnOriented,
1233
- rowMap = _options.rowMap;
1234
- validateSchema(schema);
1235
-
1236
- if (isColumnOriented) {
1237
- data = transpose(data);
1238
- }
1239
-
1240
- var columns = data[0];
1241
- var results = [];
1242
- var errors = [];
1243
-
1244
- for (var i = 1; i < data.length; i++) {
1245
- var result = read(schema, data[i], i - 1, columns, errors, options);
1246
-
1247
- if (result) {
1248
- results.push(result);
1249
- }
1250
- } // Correct error rows.
1251
-
1252
-
1253
- if (rowMap) {
1254
- for (var _iterator = _createForOfIteratorHelperLoose(errors), _step; !(_step = _iterator()).done;) {
1255
- var error = _step.value;
1256
- // Convert the `row` index in `data` to the
1257
- // actual `row` index in the spreadsheet.
1258
- // The `1` compensates for the header row.
1259
- error.row = rowMap[error.row] + 1;
1260
- }
1261
- }
1262
-
1263
- return {
1264
- rows: results,
1265
- errors: errors
1266
- };
1267
- }
1268
-
1269
- function read(schema, row, rowIndex, columns, errors, options) {
1270
- var object = {};
1271
-
1272
- var _loop = function _loop() {
1273
- var key = _Object$keys[_i];
1274
- var schemaEntry = schema[key];
1275
- var isNestedSchema = _typeof$1(schemaEntry.type) === 'object' && !Array.isArray(schemaEntry.type);
1276
- var rawValue = row[columns.indexOf(key)];
1277
-
1278
- if (rawValue === undefined) {
1279
- rawValue = null;
1280
- }
1281
-
1282
- var value = void 0;
1283
- var error = void 0;
1284
-
1285
- if (isNestedSchema) {
1286
- value = read(schemaEntry.type, row, rowIndex, columns, errors, options);
1287
- } else {
1288
- if (rawValue === null) {
1289
- value = null;
1290
- } else if (Array.isArray(schemaEntry.type)) {
1291
- var notEmpty = false;
1292
- var array = parseArray(rawValue).map(function (_value) {
1293
- var result = parseValue(_value, schemaEntry, options);
1294
-
1295
- if (result.error) {
1296
- value = _value;
1297
- error = result.error;
1298
- }
1299
-
1300
- if (result.value !== null) {
1301
- notEmpty = true;
1302
- }
1303
-
1304
- return result.value;
1305
- });
1306
-
1307
- if (!error) {
1308
- value = notEmpty ? array : null;
1309
- }
1310
- } else {
1311
- var result = parseValue(rawValue, schemaEntry, options);
1312
- error = result.error;
1313
- value = error ? rawValue : result.value;
1314
- }
1315
- }
1316
-
1317
- if (!error && value === null && schemaEntry.required) {
1318
- error = 'required';
1319
- }
1320
-
1321
- if (error) {
1322
- error = {
1323
- error: error,
1324
- row: rowIndex + 1,
1325
- column: key,
1326
- value: value
1327
- };
1328
-
1329
- if (schemaEntry.type) {
1330
- error.type = schemaEntry.type;
1331
- }
1332
-
1333
- errors.push(error);
1334
- } else if (value !== null) {
1335
- object[schemaEntry.prop] = value;
1336
- }
1337
- };
1338
-
1339
- for (var _i = 0, _Object$keys = Object.keys(schema); _i < _Object$keys.length; _i++) {
1340
- _loop();
1341
- }
1342
-
1343
- if (Object.keys(object).length > 0) {
1344
- return object;
1345
- }
1346
-
1347
- return null;
1348
- }
1349
- /**
1350
- * Converts textual value to a javascript typed value.
1351
- * @param {any} value
1352
- * @param {object} schemaEntry
1353
- * @return {{ value: any, error: string }}
1354
- */
1355
-
1356
-
1357
- function parseValue(value, schemaEntry, options) {
1358
- if (value === null) {
1359
- return {
1360
- value: null
1361
- };
1362
- }
1363
-
1364
- var result;
1365
-
1366
- if (schemaEntry.parse) {
1367
- result = parseCustomValue(value, schemaEntry.parse);
1368
- } else if (schemaEntry.type) {
1369
- result = parseValueOfType(value, // Supports parsing array types.
1370
- // See `parseArray()` function for more details.
1371
- // Example `type`: String[]
1372
- // Input: 'Barack Obama, "String, with, colons", Donald Trump'
1373
- // Output: ['Barack Obama', 'String, with, colons', 'Donald Trump']
1374
- Array.isArray(schemaEntry.type) ? schemaEntry.type[0] : schemaEntry.type, options);
1375
- } else {
1376
- result = {
1377
- value: value
1378
- }; // throw new Error('Invalid schema entry: no .type and no .parse():\n\n' + JSON.stringify(schemaEntry, null, 2))
1379
- } // If errored then return the error.
1380
-
1381
-
1382
- if (result.error) {
1383
- return result;
1384
- }
1385
-
1386
- if (result.value !== null) {
1387
- if (schemaEntry.oneOf && schemaEntry.oneOf.indexOf(result.value) < 0) {
1388
- return {
1389
- error: 'invalid'
1390
- };
1391
- }
1392
-
1393
- if (schemaEntry.validate) {
1394
- try {
1395
- schemaEntry.validate(result.value);
1396
- } catch (error) {
1397
- return {
1398
- error: error.message
1399
- };
1400
- }
1401
- }
1402
- }
1403
-
1404
- return result;
1405
- }
1406
- /**
1407
- * Converts textual value to a custom value using supplied `.parse()`.
1408
- * @param {any} value
1409
- * @param {function} parse
1410
- * @return {{ value: any, error: string }}
1411
- */
1412
-
1413
- function parseCustomValue(value, parse) {
1414
- try {
1415
- value = parse(value);
1416
-
1417
- if (value === undefined) {
1418
- return {
1419
- value: null
1420
- };
1421
- }
1422
-
1423
- return {
1424
- value: value
1425
- };
1426
- } catch (error) {
1427
- return {
1428
- error: error.message
1429
- };
1430
- }
1431
- }
1432
- /**
1433
- * Converts textual value to a javascript typed value.
1434
- * @param {any} value
1435
- * @param {} type
1436
- * @return {{ value: (string|number|Date|boolean), error: string }}
1437
- */
1438
-
1439
-
1440
- function parseValueOfType(value, type, options) {
1441
- switch (type) {
1442
- case String:
1443
- if (typeof value === 'string') {
1444
- return {
1445
- value: value
1446
- };
1447
- } // The global `isFinite()` function filters out:
1448
- // * NaN
1449
- // * -Infinity
1450
- // * Infinity
1451
- // All other values pass (including non-numbers).
1452
-
1453
-
1454
- if (typeof value === 'number') {
1455
- if (isFinite(value)) {
1456
- return {
1457
- value: String(value)
1458
- };
1459
- }
1460
- }
1461
-
1462
- return {
1463
- error: 'invalid'
1464
- };
1465
-
1466
- case Number:
1467
- case Integer:
1468
- // Convert strings to numbers.
1469
- // Just an additional feature.
1470
- // Won't happen when called from `readXlsx()`.
1471
- if (typeof value === 'string') {
1472
- var stringifiedValue = value;
1473
- value = parseFloat(value);
1474
-
1475
- if (String(value) !== stringifiedValue) {
1476
- return {
1477
- error: 'invalid'
1478
- };
1479
- }
1480
- } else if (typeof value !== 'number') {
1481
- return {
1482
- error: 'invalid'
1483
- };
1484
- } // The global `isFinite()` function filters out:
1485
- // * NaN
1486
- // * -Infinity
1487
- // * Infinity
1488
- // All other values pass (including non-numbers).
1489
- // At this point, `value` can only be a number.
1490
-
1491
-
1492
- if (!isFinite(value)) {
1493
- return {
1494
- error: 'invalid'
1495
- };
1496
- }
1497
-
1498
- if (type === Integer && !isInteger(value)) {
1499
- return {
1500
- error: 'invalid'
1501
- };
1502
- }
1503
-
1504
- return {
1505
- value: value
1506
- };
1507
-
1508
- case URL:
1509
- if (typeof value === 'string') {
1510
- if (isURL(value)) {
1511
- return {
1512
- value: value
1513
- };
1514
- }
1515
- }
1516
-
1517
- return {
1518
- error: 'invalid'
1519
- };
1520
-
1521
- case Email:
1522
- if (typeof value === 'string') {
1523
- if (isEmail(value)) {
1524
- return {
1525
- value: value
1526
- };
1527
- }
1528
- }
1529
-
1530
- return {
1531
- error: 'invalid'
1532
- };
1533
-
1534
- case Date:
1535
- // XLSX has no specific format for dates.
1536
- // Sometimes a date can be heuristically detected.
1537
- // https://github.com/catamphetamine/read-excel-file/issues/3#issuecomment-395770777
1538
- if (value instanceof Date) {
1539
- return {
1540
- value: value
1541
- };
1542
- }
1543
-
1544
- if (typeof value === 'number') {
1545
- if (!isFinite(value)) {
1546
- return {
1547
- error: 'invalid'
1548
- };
1549
- }
1550
-
1551
- value = parseInt(value);
1552
- var date = parseExcelDate(value, options.properties);
1553
-
1554
- if (!date) {
1555
- return {
1556
- error: 'invalid'
1557
- };
1558
- }
1559
-
1560
- return {
1561
- value: date
1562
- };
1563
- }
1564
-
1565
- return {
1566
- error: 'invalid'
1567
- };
1568
-
1569
- case Boolean:
1570
- if (typeof value === 'boolean') {
1571
- return {
1572
- value: value
1573
- };
1574
- }
1575
-
1576
- return {
1577
- error: 'invalid'
1578
- };
1579
-
1580
- default:
1581
- if (typeof type === 'function') {
1582
- return parseCustomValue(value, type);
1583
- }
1584
-
1585
- throw new Error("Unknown schema type: ".concat(type && type.name || type));
1586
- }
1587
- }
1588
-
1589
- function getBlock(string, endCharacter, startIndex) {
1590
- var i = 0;
1591
- var substring = '';
1592
-
1593
- while (startIndex + i < string.length) {
1594
- var _character = string[startIndex + i];
1595
-
1596
- if (_character === endCharacter) {
1597
- return [substring, i];
1598
- } else if (_character === '"') {
1599
- var block = getBlock(string, '"', startIndex + i + 1);
1600
- substring += block[0];
1601
- i += '"'.length + block[1] + '"'.length;
1602
- } else {
1603
- substring += _character;
1604
- i++;
1605
- }
1606
- }
1607
-
1608
- return [substring, i];
1609
- }
1610
- /**
1611
- * Parses a string of comma-separated substrings into an array of substrings.
1612
- * (the `export` is just for tests)
1613
- * @param {string} string — A string of comma-separated substrings.
1614
- * @return {string[]} An array of substrings.
1615
- */
1616
-
1617
- function parseArray(string) {
1618
- var blocks = [];
1619
- var index = 0;
1620
-
1621
- while (index < string.length) {
1622
- var _getBlock = getBlock(string, ',', index),
1623
- _getBlock2 = _slicedToArray(_getBlock, 2),
1624
- substring = _getBlock2[0],
1625
- length = _getBlock2[1];
1626
-
1627
- index += length + ','.length;
1628
- blocks.push(substring.trim());
1629
- }
1630
-
1631
- return blocks;
1632
- } // Transpose a 2D array.
1633
- // https://stackoverflow.com/questions/17428587/transposing-a-2d-array-in-javascript
1634
-
1635
- var transpose = function transpose(array) {
1636
- return array[0].map(function (_, i) {
1637
- return array.map(function (row) {
1638
- return row[i];
1639
- });
1640
- });
1641
- };
1642
-
1643
- function validateSchema(schema) {
1644
- for (var _i2 = 0, _Object$keys2 = Object.keys(schema); _i2 < _Object$keys2.length; _i2++) {
1645
- var key = _Object$keys2[_i2];
1646
- var entry = schema[key];
1647
-
1648
- if (!entry.prop) {
1649
- throw new Error("\"prop\" not defined for schema entry \"".concat(key, "\"."));
1650
- }
1651
- }
1652
- }
1653
-
1654
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1655
-
1656
- function convertMapToSchema(map) {
1657
- var schema = {};
1658
-
1659
- for (var _i = 0, _Object$keys = Object.keys(map); _i < _Object$keys.length; _i++) {
1660
- var key = _Object$keys[_i];
1661
- var prop = map[key];
1662
- var type = void 0;
1663
-
1664
- if (_typeof(prop) === 'object') {
1665
- prop = Object.keys(map[key])[0];
1666
- type = convertMapToSchema(map[key][prop]);
1667
- }
1668
-
1669
- schema[key] = {
1670
- prop: prop
1671
- };
1672
-
1673
- if (type) {
1674
- schema[key].type = type;
1675
- }
1676
- }
1677
-
1678
- return schema;
1679
- }
1680
-
1681
- var _excluded = ["schema", "map"];
1682
-
1683
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1684
-
1685
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1686
-
1687
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1688
-
1689
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
1690
-
1691
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1692
- function readXlsxFileContents(entries, xml, _ref) {
1693
- var schema = _ref.schema,
1694
- map = _ref.map,
1695
- options = _objectWithoutProperties(_ref, _excluded);
1696
-
1697
- if (!schema && map) {
1698
- schema = convertMapToSchema(map);
1699
- }
1700
-
1701
- var result = readXlsx(entries, xml, _objectSpread(_objectSpread({}, options), {}, {
1702
- properties: schema || options.properties
1703
- }));
1704
-
1705
- if (schema) {
1706
- return convertToJson(result.data, schema, _objectSpread(_objectSpread({}, options), {}, {
1707
- properties: result.properties
1708
- }));
1709
- }
1710
-
1711
- return result;
1712
- }
1713
-
1714
- /**
1715
- * Reads XLSX file into a 2D array of cells in a browser.
1716
- * @param {file} file - A file being uploaded in the browser.
1717
- * @param {object?} options
1718
- * @param {(number|string)?} options.sheet - Excel document sheet to read. Defaults to `1`. Will only read this sheet and skip others.
1719
- * @return {Promise} Resolves to a 2D array of cells: an array of rows, each row being an array of cells.
1720
- */
1721
-
1722
- function readXlsxFile(file) {
1723
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1724
- return unpackXlsxFile(file).then(function (entries) {
1725
- return readXlsxFileContents(entries, xml, options);
1726
- });
1727
- }
1728
-
1729
- async function convertFileFromStream(stream, filterColumnNames = ["what", "deliveryscope"]) {
1730
- const toFilterValue = (x) => x.toLowerCase().replace(/\s+/g, '');
1731
- const sheets = await readXlsxFile(stream, { getSheets: true });
1732
- let dataRows = [];
1733
- let sheetsData = await Promise.all(sheets.map(async (sheet) => { return await readXlsxFile(stream, { sheet: sheet.name }) }));
1734
-
1735
- let types = {};
1736
- sheetsData.forEach(sheetData => {
1737
- const firstRow = sheetData.shift().map(x => toFilterValue(x));
1738
- // Set up column for adding options
1739
- firstRow.forEach((col, i) => {
1740
- if (typeof types[col] === "undefined" && filterColumnNames.includes(col)) {
1741
- types[col] = [];
1742
- }
1743
- });
1744
- sheetData.forEach((row, rowindex) => {
1745
- const dataRow = {};
1746
- firstRow.forEach(async (col, i) => {
1747
- const rowVal = row[i];
1748
- dataRow[col] = rowVal;
1749
- // Add to types options
1750
- if (filterColumnNames.includes(col)) {
1751
- const filterVal = toFilterValue(rowVal);
1752
- dataRow[col] = filterVal;
1753
- if (!types[col].includes(filterVal)) {
1754
- types[col].push(filterVal);
1755
- }
1756
- }
1757
- });
1758
- dataRows.push(dataRow);
1759
- });
1760
- });
1761
-
1762
- const fileData = {
1763
- "types": types,
1764
- "data": dataRows
1765
- };
1766
- return fileData;
1767
- }
1768
-
1769
- async function convertFileForSizeCategogy(stream, filterColumnNames = ["sizecategory"]) {
1770
- const toFilterValue = (x) => x.toLowerCase().replace(/\s+/g, '');
1771
- const sheets = await readXlsxFile(stream, { getSheets: true });
1772
- let dataRows = [];
1773
- let sizecategoryColumn;
1774
- let sheetsData = await Promise.all(sheets.map(async (sheet) => { return await readXlsxFile(stream, { sheet: sheet.name }) }));
1775
-
1776
- let types = {};
1777
- sheetsData.forEach(sheetData => {
1778
- const firstRow = sheetData.shift().map(x => toFilterValue(x));
1779
- // Set up column for adding options
1780
- firstRow.forEach((col, i) => {
1781
- if (typeof types[col] === "undefined" && filterColumnNames.includes(col)) {
1782
- types[col] = [];
1783
- }
1784
- if(col === "sizecategory")
1785
- sizecategoryColumn = i;
1786
- });
1787
-
1788
- sheetData.forEach((row, rowindex) => {
1789
- // read sizeCategory column of each row and split it to save data for each item
1790
- const firstColRow = row[sizecategoryColumn];
1791
- const sizeCatColumnValue = firstColRow.split('/');
1792
-
1793
- sizeCatColumnValue.forEach((value, j) => {
1794
- const dataRow = {};
1795
-
1796
- firstRow.forEach(async (col, i) => {
1797
- const rowVal = (i === sizecategoryColumn) ? value : row[i];
1798
- dataRow[col] = rowVal;
1799
-
1800
- // Add to types options
1801
- if (filterColumnNames.includes(col)) {
1802
- const filterVal = toFilterValue(rowVal);
1803
- dataRow[col] = filterVal;
1804
-
1805
- if (!types[col].includes(filterVal)) {
1806
- types[col].push(filterVal);
1807
- }
1808
- }
1809
- });
1810
- dataRows.push(dataRow);
1811
- });
1812
- });
1813
- });
1814
-
1815
-
1816
- const fileData = {
1817
- "types": types,
1818
- "data": dataRows
1819
- };
1820
- return fileData;
1821
- }
1822
-
1823
- export { convertFileFromStream as a, convertFileForSizeCategogy as c };