@oiz/stzh-components 2.2.0 → 2.3.0-alpha

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 (789) hide show
  1. package/dist/cjs/{app-globals-b6d82414.js → app-globals-13e786d3.js} +1 -1
  2. package/dist/cjs/{arrow-3c3b0ae5.js → arrow-cd521f34.js} +468 -478
  3. package/dist/cjs/axios-7ec96df7.js +3167 -0
  4. package/dist/cjs/{dom-9deb26c8.js → dom-be1edfde.js} +1 -1
  5. package/dist/cjs/{focus-trap.esm-1cb6bb2e.js → focus-trap.esm-34a1a0d0.js} +188 -278
  6. package/dist/cjs/{index-9fcb4305.js → index-83d427ee.js} +113 -3
  7. package/dist/cjs/loader.cjs.js +5 -4
  8. package/dist/cjs/{shadow-css-bf3843d2.js → shadow-css-54f5c2d9.js} +1 -1
  9. package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-actionset.cjs.entry.js +15 -5
  13. package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
  14. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
  18. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-card_3.cjs.entry.js +20 -15
  20. package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-chart.cjs.entry.js +1471 -404
  22. package/dist/cjs/stzh-checkbox.cjs.entry.js +2 -2
  23. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -2
  24. package/dist/cjs/stzh-chip_2.cjs.entry.js +132 -0
  25. package/dist/cjs/stzh-components.cjs.js +27 -5
  26. package/dist/cjs/stzh-contact.cjs.entry.js +91 -0
  27. package/dist/cjs/stzh-container.cjs.entry.js +3 -2
  28. package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
  29. package/dist/cjs/stzh-datalist_2.cjs.entry.js +33 -13
  30. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-datatable.cjs.entry.js +32 -31
  33. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +2 -2
  34. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
  36. package/dist/cjs/stzh-dropdown.cjs.entry.js +1056 -425
  37. package/dist/cjs/stzh-fieldset.cjs.entry.js +2 -2
  38. package/dist/cjs/stzh-figure.cjs.entry.js +5 -3
  39. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
  41. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
  42. package/dist/cjs/stzh-header.cjs.entry.js +6 -5
  43. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  45. package/dist/cjs/stzh-hspace.cjs.entry.js +4 -3
  46. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
  47. package/dist/cjs/{stzh-input-description-4326b0d9.js → stzh-input-description-2edc5cac.js} +1 -1
  48. package/dist/cjs/stzh-input.cjs.entry.js +2 -2
  49. package/dist/cjs/stzh-invert.cjs.entry.js +23 -0
  50. package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
  51. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-list.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-message.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -3
  60. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-overlay.cjs.entry.js +2 -2
  62. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-pagebottom.cjs.entry.js +5 -2
  64. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +2 -2
  65. package/dist/cjs/stzh-pagetitle.cjs.entry.js +9 -1
  66. package/dist/cjs/stzh-popover.cjs.entry.js +5 -5
  67. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
  68. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +6 -4
  69. package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -2
  70. package/dist/cjs/stzh-ratio.cjs.entry.js +26 -0
  71. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-row.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-section.cjs.entry.js +1 -1
  75. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  76. package/dist/cjs/stzh-show.cjs.entry.js +41 -0
  77. package/dist/cjs/stzh-sitemap.cjs.entry.js +2 -2
  78. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-sortable.cjs.entry.js +10 -66
  80. package/dist/cjs/stzh-space.cjs.entry.js +34 -0
  81. package/dist/cjs/stzh-status.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-sticky.cjs.entry.js +5 -3
  83. package/dist/cjs/stzh-table.cjs.entry.js +3 -2
  84. package/dist/cjs/stzh-text.cjs.entry.js +2 -2
  85. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  86. package/dist/cjs/stzh-toggle.cjs.entry.js +2 -2
  87. package/dist/cjs/stzh-tooltip.cjs.entry.js +5 -5
  88. package/dist/cjs/stzh-upload.cjs.entry.js +5 -2
  89. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +782 -690
  90. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +7 -7
  91. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +3 -3
  92. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  93. package/dist/cjs/stzh-vspace.cjs.entry.js +4 -3
  94. package/dist/collection/assets/i18n/de.json +1 -1
  95. package/dist/collection/assets/i18n/en.json +1 -1
  96. package/dist/collection/collection-manifest.json +7 -3
  97. package/dist/collection/components/stzh-actionset/stzh-actionset.css +11 -0
  98. package/dist/collection/components/stzh-actionset/stzh-actionset.js +18 -8
  99. package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +5 -5
  100. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +1 -3
  101. package/dist/collection/components/stzh-button/stzh-button.css +12 -4
  102. package/dist/collection/components/stzh-button/stzh-button.stories.js +10 -6
  103. package/dist/collection/components/stzh-card/stzh-card.css +0 -18
  104. package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -1
  105. package/dist/collection/components/stzh-chart/stzh-chart.css +55 -37
  106. package/dist/collection/components/stzh-chip/stzh-chip.css +16 -2
  107. package/dist/collection/components/stzh-chip/stzh-chip.js +32 -3
  108. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +7 -0
  109. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +6 -0
  110. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +21 -11
  111. package/dist/collection/components/stzh-clamp/stzh-clamp.css +5 -0
  112. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.css → stzh-contact/stzh-contact.css} +22 -22
  113. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.js → stzh-contact/stzh-contact.js} +25 -25
  114. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.stories.js → stzh-contact/stzh-contact.stories.js} +10 -9
  115. package/dist/collection/components/stzh-container/stzh-container.css +11 -1
  116. package/dist/collection/components/stzh-container/stzh-container.js +26 -1
  117. package/dist/collection/components/stzh-container/stzh-container.stories.js +6 -1
  118. package/dist/collection/components/stzh-cspace/stzh-cspace.css +136 -43
  119. package/dist/collection/components/stzh-datalist/stzh-datalist.css +12 -0
  120. package/dist/collection/components/stzh-datalist/stzh-datalist.js +19 -0
  121. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +2 -1
  122. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +28 -13
  123. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +35 -13
  124. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  125. package/dist/collection/components/stzh-datatable/stzh-datatable.js +20 -1
  126. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +9 -8
  127. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +1 -0
  128. package/dist/collection/components/stzh-figure/stzh-figure.css +8 -5
  129. package/dist/collection/components/stzh-figure/stzh-figure.js +21 -1
  130. package/dist/collection/components/stzh-footer/stzh-footer.css +1 -0
  131. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +12 -1
  132. package/dist/collection/components/stzh-header/stzh-header.css +5 -1
  133. package/dist/collection/components/stzh-header/stzh-header.js +4 -3
  134. package/dist/collection/components/stzh-header/stzh-header.stories.js +46 -38
  135. package/dist/collection/components/stzh-hspace/stzh-hspace.css +166 -138
  136. package/dist/collection/components/stzh-hspace/stzh-hspace.js +30 -6
  137. package/dist/collection/components/stzh-invert/stzh-invert.css +158 -0
  138. package/dist/collection/components/stzh-invert/stzh-invert.js +25 -0
  139. package/dist/collection/components/stzh-invert/stzh-invert.stories.js +55 -0
  140. package/dist/collection/components/stzh-link/stzh-link.stories.js +11 -19
  141. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +4 -1
  142. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +8 -0
  143. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +6 -6
  144. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +14 -1
  145. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +4 -6
  146. package/dist/collection/components/stzh-popover/stzh-popover.css +1 -1
  147. package/dist/collection/components/stzh-popover/stzh-popover.js +1 -1
  148. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -7
  149. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +34 -9
  150. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +2 -2
  151. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +2 -1
  152. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +40 -4
  153. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +22 -2
  154. package/dist/collection/components/stzh-ratio/stzh-ratio.css +172 -0
  155. package/dist/collection/components/stzh-ratio/stzh-ratio.js +88 -0
  156. package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +35 -0
  157. package/dist/collection/components/stzh-richtext/stzh-richtext.css +10 -5
  158. package/dist/collection/components/stzh-show/stzh-show.css +165 -0
  159. package/dist/collection/components/stzh-show/stzh-show.js +158 -0
  160. package/dist/collection/components/stzh-show/stzh-show.stories.js +52 -0
  161. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +1 -1
  162. package/dist/collection/components/stzh-sortable/stzh-sortable.js +6 -3
  163. package/dist/collection/components/stzh-space/stzh-space.css +842 -0
  164. package/dist/collection/components/stzh-space/stzh-space.js +262 -0
  165. package/dist/collection/components/stzh-space/stzh-space.stories.js +76 -0
  166. package/dist/collection/components/stzh-sticky/stzh-sticky.css +9 -0
  167. package/dist/collection/components/stzh-sticky/stzh-sticky.js +21 -1
  168. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -1
  169. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  170. package/dist/collection/components/stzh-table/stzh-table.js +19 -0
  171. package/dist/collection/components/stzh-text/stzh-text.css +2 -2
  172. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +2 -2
  173. package/dist/collection/components/stzh-upload/stzh-upload.js +3 -0
  174. package/dist/collection/components/stzh-vspace/stzh-vspace.css +157 -129
  175. package/dist/collection/components/stzh-vspace/stzh-vspace.js +30 -6
  176. package/dist/collection/pages/egov.stories.js +190 -182
  177. package/dist/collection/pages/meinkonto.stories.js +367 -511
  178. package/dist/collection/pages/microsite.stories.js +235 -0
  179. package/dist/collection/pages/website.stories.js +139 -0
  180. package/dist/collection/patterns/appointments.stories.js +2 -2
  181. package/dist/collection/patterns/contact.stories.js +20 -20
  182. package/dist/collection/patterns/contactform.stories.js +2 -2
  183. package/dist/collection/patterns/jobdetails.stories.js +151 -0
  184. package/dist/collection/patterns/subpages.stories.js +1 -1
  185. package/dist/collection/patterns/twocolumns.stories.js +46 -0
  186. package/dist/components/arrow.js +468 -478
  187. package/dist/components/axios.js +3165 -0
  188. package/dist/components/date-utils.js +159 -0
  189. package/dist/components/focus-trap.esm.js +188 -278
  190. package/dist/components/index.d.ts +14 -1
  191. package/dist/components/index.js +7 -3
  192. package/dist/components/stzh-actionset2.js +16 -6
  193. package/dist/components/stzh-anchornav.js +1 -1
  194. package/dist/components/stzh-appointments.js +2 -1
  195. package/dist/components/stzh-button2.js +1 -1
  196. package/dist/components/stzh-calendar2.js +2 -159
  197. package/dist/components/stzh-card2.js +1 -1
  198. package/dist/components/stzh-chart.js +1470 -403
  199. package/dist/components/stzh-chip-select2.js +27 -15
  200. package/dist/components/stzh-chip2.js +23 -5
  201. package/dist/components/stzh-clamp2.js +1 -1
  202. package/dist/components/{stzh-contactaddress.d.ts → stzh-contact.d.ts} +4 -4
  203. package/dist/components/stzh-contact.js +157 -0
  204. package/dist/components/stzh-container.js +5 -2
  205. package/dist/components/stzh-cspace.js +1 -1
  206. package/dist/components/stzh-datalist-item2.js +30 -11
  207. package/dist/components/stzh-datalist2.js +3 -1
  208. package/dist/components/stzh-datatable.js +32 -30
  209. package/dist/components/stzh-datepicker2.js +2 -1
  210. package/dist/components/stzh-dropdown2.js +1054 -423
  211. package/dist/components/stzh-fieldset.js +1 -1
  212. package/dist/components/stzh-figure.js +6 -3
  213. package/dist/components/stzh-footer.js +1 -1
  214. package/dist/components/stzh-ghettobox2.js +1 -1
  215. package/dist/components/stzh-header.js +5 -4
  216. package/dist/components/stzh-hspace.js +8 -5
  217. package/dist/components/stzh-invert.d.ts +11 -0
  218. package/dist/components/stzh-invert.js +36 -0
  219. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  220. package/dist/components/stzh-pagebottom.js +4 -1
  221. package/dist/components/stzh-pagetitle-hero.js +1 -1
  222. package/dist/components/stzh-pagetitle.js +8 -0
  223. package/dist/components/stzh-popover2.js +2 -2
  224. package/dist/components/stzh-portal-mitwirken.js +1 -1
  225. package/dist/components/stzh-progressbar-item2.js +6 -3
  226. package/dist/components/stzh-progressbar.js +1 -1
  227. package/dist/components/stzh-ratio.d.ts +11 -0
  228. package/dist/components/stzh-ratio.js +43 -0
  229. package/dist/components/stzh-richtext2.js +1 -1
  230. package/dist/components/stzh-show.d.ts +11 -0
  231. package/dist/components/stzh-show.js +62 -0
  232. package/dist/components/stzh-sitemap.js +1 -1
  233. package/dist/components/stzh-sortable2.js +9 -65
  234. package/dist/components/stzh-space.d.ts +11 -0
  235. package/dist/components/stzh-space.js +59 -0
  236. package/dist/components/stzh-sticky.js +5 -2
  237. package/dist/components/stzh-table.js +3 -1
  238. package/dist/components/stzh-text2.js +1 -1
  239. package/dist/components/stzh-tooltip2.js +2 -2
  240. package/dist/components/stzh-upload.js +3 -0
  241. package/dist/components/stzh-vbz-linechip2.js +772 -680
  242. package/dist/components/stzh-vbz-majorticker.js +1 -1
  243. package/dist/components/stzh-vbz-ticker.js +1 -1
  244. package/dist/components/stzh-vspace.js +8 -5
  245. package/dist/esm/{app-globals-ff581b69.js → app-globals-2e508622.js} +1 -1
  246. package/dist/esm/{arrow-86a679c7.js → arrow-480bc86f.js} +468 -478
  247. package/dist/esm/axios-e2b39666.js +3165 -0
  248. package/dist/esm/{dom-6be6f662.js → dom-c525f6e4.js} +1 -1
  249. package/dist/esm/{focus-trap.esm-074705a3.js → focus-trap.esm-82634dec.js} +188 -278
  250. package/dist/esm/{index-011c84fe.js → index-319b7c49.js} +112 -4
  251. package/dist/esm/loader.js +5 -4
  252. package/dist/esm/polyfills/css-shim.js +1 -1
  253. package/dist/esm/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +1 -1
  254. package/dist/esm/stzh-accordion-item.entry.js +1 -1
  255. package/dist/esm/stzh-accordion.entry.js +1 -1
  256. package/dist/esm/stzh-actions.entry.js +1 -1
  257. package/dist/esm/stzh-actionset.entry.js +16 -6
  258. package/dist/esm/stzh-anchornav.entry.js +2 -2
  259. package/dist/esm/stzh-appnav.entry.js +1 -1
  260. package/dist/esm/stzh-appointments.entry.js +1 -1
  261. package/dist/esm/stzh-audio.entry.js +1 -1
  262. package/dist/esm/stzh-badge_3.entry.js +2 -2
  263. package/dist/esm/stzh-calendar.entry.js +1 -1
  264. package/dist/esm/stzh-card_3.entry.js +20 -15
  265. package/dist/esm/stzh-cell.entry.js +1 -1
  266. package/dist/esm/stzh-chart.entry.js +1471 -404
  267. package/dist/esm/stzh-checkbox.entry.js +2 -2
  268. package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
  269. package/dist/esm/stzh-chip_2.entry.js +127 -0
  270. package/dist/esm/stzh-components.js +24 -5
  271. package/dist/esm/stzh-contact.entry.js +87 -0
  272. package/dist/esm/stzh-container.entry.js +3 -2
  273. package/dist/esm/stzh-cspace.entry.js +2 -2
  274. package/dist/esm/stzh-datalist_2.entry.js +33 -13
  275. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  276. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  277. package/dist/esm/stzh-datatable.entry.js +32 -31
  278. package/dist/esm/stzh-datepicker_3.entry.js +2 -2
  279. package/dist/esm/stzh-details.entry.js +1 -1
  280. package/dist/esm/stzh-dialog.entry.js +2 -2
  281. package/dist/esm/stzh-dropdown.entry.js +1056 -425
  282. package/dist/esm/stzh-fieldset.entry.js +2 -2
  283. package/dist/esm/stzh-figure.entry.js +5 -3
  284. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  285. package/dist/esm/stzh-footer.entry.js +2 -2
  286. package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
  287. package/dist/esm/stzh-header.entry.js +6 -5
  288. package/dist/esm/stzh-heading.entry.js +1 -1
  289. package/dist/esm/stzh-hr.entry.js +1 -1
  290. package/dist/esm/stzh-hspace.entry.js +4 -3
  291. package/dist/esm/stzh-icon-sprite.entry.js +1 -1
  292. package/dist/esm/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  293. package/dist/esm/stzh-input.entry.js +2 -2
  294. package/dist/esm/stzh-invert.entry.js +19 -0
  295. package/dist/esm/stzh-langnav.entry.js +1 -1
  296. package/dist/esm/stzh-link.entry.js +1 -1
  297. package/dist/esm/stzh-list-item.entry.js +1 -1
  298. package/dist/esm/stzh-list.entry.js +1 -1
  299. package/dist/esm/stzh-loader.entry.js +1 -1
  300. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  301. package/dist/esm/stzh-menu_2.entry.js +1 -1
  302. package/dist/esm/stzh-message.entry.js +1 -1
  303. package/dist/esm/stzh-metanav.entry.js +1 -1
  304. package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
  305. package/dist/esm/stzh-olmap.entry.js +1 -1
  306. package/dist/esm/stzh-overlay.entry.js +2 -2
  307. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  308. package/dist/esm/stzh-pagebottom.entry.js +5 -2
  309. package/dist/esm/stzh-pagetitle-hero.entry.js +2 -2
  310. package/dist/esm/stzh-pagetitle.entry.js +9 -1
  311. package/dist/esm/stzh-popover.entry.js +5 -5
  312. package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
  313. package/dist/esm/stzh-progressbar-item.entry.js +6 -4
  314. package/dist/esm/stzh-progressbar.entry.js +2 -2
  315. package/dist/esm/stzh-ratio.entry.js +22 -0
  316. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  317. package/dist/esm/stzh-row.entry.js +1 -1
  318. package/dist/esm/stzh-saptcha.entry.js +1 -1
  319. package/dist/esm/stzh-section.entry.js +1 -1
  320. package/dist/esm/stzh-share.entry.js +1 -1
  321. package/dist/esm/stzh-show.entry.js +37 -0
  322. package/dist/esm/stzh-sitemap.entry.js +2 -2
  323. package/dist/esm/stzh-skiplink.entry.js +1 -1
  324. package/dist/esm/stzh-sortable.entry.js +10 -66
  325. package/dist/esm/stzh-space.entry.js +30 -0
  326. package/dist/esm/stzh-status.entry.js +1 -1
  327. package/dist/esm/stzh-sticky.entry.js +5 -3
  328. package/dist/esm/stzh-table.entry.js +3 -2
  329. package/dist/esm/stzh-text.entry.js +2 -2
  330. package/dist/esm/stzh-textandimage.entry.js +1 -1
  331. package/dist/esm/stzh-toggle.entry.js +2 -2
  332. package/dist/esm/stzh-tooltip.entry.js +5 -5
  333. package/dist/esm/stzh-upload.entry.js +5 -2
  334. package/dist/esm/stzh-vbz-linechip.entry.js +783 -691
  335. package/dist/esm/stzh-vbz-majorticker.entry.js +2 -2
  336. package/dist/esm/stzh-vbz-ticker.entry.js +2 -2
  337. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  338. package/dist/esm/stzh-vspace.entry.js +4 -3
  339. package/dist/esm-es5/app-globals-2e508622.js +1 -0
  340. package/dist/esm-es5/arrow-480bc86f.js +1 -0
  341. package/dist/esm-es5/axios-e2b39666.js +1 -0
  342. package/dist/esm-es5/{dom-6be6f662.js → dom-c525f6e4.js} +0 -0
  343. package/dist/esm-es5/focus-trap.esm-82634dec.js +9 -0
  344. package/dist/esm-es5/index-319b7c49.js +2 -0
  345. package/dist/esm-es5/loader.js +1 -1
  346. package/dist/esm-es5/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +0 -0
  347. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  348. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  349. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  350. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  351. package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
  352. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  353. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  354. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  355. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  356. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  357. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  358. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  359. package/dist/esm-es5/stzh-chart.entry.js +3 -3
  360. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  361. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  362. package/dist/esm-es5/stzh-chip_2.entry.js +1 -0
  363. package/dist/esm-es5/stzh-components.js +1 -1
  364. package/dist/esm-es5/stzh-contact.entry.js +1 -0
  365. package/dist/esm-es5/stzh-container.entry.js +1 -1
  366. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  367. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  368. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  369. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  370. package/dist/esm-es5/stzh-datatable.entry.js +4 -4
  371. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  372. package/dist/esm-es5/stzh-details.entry.js +1 -1
  373. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  374. package/dist/esm-es5/stzh-dropdown.entry.js +9 -1
  375. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  376. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  377. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  378. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  379. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  380. package/dist/esm-es5/stzh-header.entry.js +1 -1
  381. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  382. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  383. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  384. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  385. package/dist/esm-es5/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  386. package/dist/esm-es5/stzh-input.entry.js +1 -1
  387. package/dist/esm-es5/stzh-invert.entry.js +1 -0
  388. package/dist/esm-es5/stzh-langnav.entry.js +1 -1
  389. package/dist/esm-es5/stzh-link.entry.js +1 -1
  390. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  391. package/dist/esm-es5/stzh-list.entry.js +1 -1
  392. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  393. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  394. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  395. package/dist/esm-es5/stzh-message.entry.js +1 -1
  396. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  397. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  398. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  399. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  400. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  401. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  402. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  403. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  404. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  405. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  406. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  407. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  408. package/dist/esm-es5/stzh-ratio.entry.js +1 -0
  409. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  410. package/dist/esm-es5/stzh-row.entry.js +1 -1
  411. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  412. package/dist/esm-es5/stzh-section.entry.js +1 -1
  413. package/dist/esm-es5/stzh-share.entry.js +1 -1
  414. package/dist/esm-es5/stzh-show.entry.js +1 -0
  415. package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
  416. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  417. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  418. package/dist/esm-es5/stzh-space.entry.js +1 -0
  419. package/dist/esm-es5/stzh-status.entry.js +1 -1
  420. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  421. package/dist/esm-es5/stzh-table.entry.js +1 -1
  422. package/dist/esm-es5/stzh-text.entry.js +1 -1
  423. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  424. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  425. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  426. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  427. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  428. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  429. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  430. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  431. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  432. package/dist/esm-es5/translation-utils-2623783f.js +1 -1
  433. package/dist/stzh-components/assets/i18n/de.json +1 -1
  434. package/dist/stzh-components/assets/i18n/en.json +1 -1
  435. package/dist/stzh-components/p-00c4c8c0.system.entry.js +1 -0
  436. package/dist/stzh-components/p-013d269a.system.entry.js +1 -0
  437. package/dist/stzh-components/p-0447b178.system.entry.js +1 -0
  438. package/dist/stzh-components/{p-2bec3c77.entry.js → p-04d390eb.entry.js} +1 -1
  439. package/dist/stzh-components/p-06f5abab.system.entry.js +1 -0
  440. package/dist/stzh-components/{p-9176246f.entry.js → p-0930004d.entry.js} +1 -1
  441. package/dist/stzh-components/p-09f582cd.entry.js +1 -0
  442. package/dist/stzh-components/p-0a2de4e8.entry.js +1 -0
  443. package/dist/stzh-components/p-0ada0b0a.system.entry.js +1 -0
  444. package/dist/stzh-components/p-0af8a184.system.entry.js +1 -0
  445. package/dist/stzh-components/p-0afba769.entry.js +1 -0
  446. package/dist/stzh-components/p-0ce8b383.system.js +1 -0
  447. package/dist/stzh-components/p-0f882e26.system.entry.js +1 -0
  448. package/dist/stzh-components/{p-fbf2f4ed.system.entry.js → p-101f9b11.system.entry.js} +1 -1
  449. package/dist/stzh-components/{p-cff8376e.entry.js → p-12564ee4.entry.js} +1 -1
  450. package/dist/stzh-components/p-125a8244.entry.js +1 -0
  451. package/dist/stzh-components/{p-bee6eef5.entry.js → p-126a0f14.entry.js} +1 -1
  452. package/dist/stzh-components/p-12e03b78.system.entry.js +1 -0
  453. package/dist/stzh-components/{p-30ae5c00.system.entry.js → p-16b3d4ee.system.entry.js} +1 -1
  454. package/dist/stzh-components/p-1783b15a.js +12 -0
  455. package/dist/stzh-components/p-1c2c9ca8.entry.js +1 -0
  456. package/dist/stzh-components/p-1f925e84.system.entry.js +1 -0
  457. package/dist/stzh-components/p-20bd79d0.entry.js +1 -0
  458. package/dist/stzh-components/p-246cd179.js +1 -0
  459. package/dist/stzh-components/p-26889a91.entry.js +9 -0
  460. package/dist/stzh-components/p-2ad73c0c.system.entry.js +1 -0
  461. package/dist/stzh-components/p-2b67b0b3.system.entry.js +9 -0
  462. package/dist/stzh-components/p-2ba88798.entry.js +1 -0
  463. package/dist/stzh-components/{p-60274e67.system.entry.js → p-2c490268.system.entry.js} +1 -1
  464. package/dist/stzh-components/{p-912706bb.entry.js → p-2e6ef670.entry.js} +1 -1
  465. package/dist/stzh-components/p-2f4448c9.system.entry.js +1 -0
  466. package/dist/stzh-components/{p-376946bc.entry.js → p-2f4c5e18.entry.js} +1 -1
  467. package/dist/stzh-components/p-3238b0bf.entry.js +1 -0
  468. package/dist/stzh-components/p-36e72c1d.system.js +2 -0
  469. package/dist/stzh-components/{p-fd265f3a.entry.js → p-38e7645a.entry.js} +1 -1
  470. package/dist/stzh-components/{p-ed6adb96.entry.js → p-3b00d8b8.entry.js} +1 -1
  471. package/dist/stzh-components/p-3e433996.entry.js +1 -0
  472. package/dist/stzh-components/p-3f676d99.system.entry.js +1 -0
  473. package/dist/stzh-components/{p-0c8427bc.entry.js → p-40798ed2.entry.js} +1 -1
  474. package/dist/stzh-components/p-418e04f7.system.entry.js +1 -0
  475. package/dist/stzh-components/{p-7704b10b.entry.js → p-41fa7e81.entry.js} +1 -1
  476. package/dist/stzh-components/p-4370efe7.entry.js +1 -0
  477. package/dist/stzh-components/p-444b2baf.entry.js +1 -0
  478. package/dist/stzh-components/p-44b03dbb.js +10 -0
  479. package/dist/stzh-components/{p-2577ca1e.system.entry.js → p-44d10402.system.entry.js} +1 -1
  480. package/dist/stzh-components/{p-ed0d51b6.entry.js → p-46d07ed7.entry.js} +1 -1
  481. package/dist/stzh-components/p-470182bb.system.entry.js +1 -0
  482. package/dist/stzh-components/{p-669896ec.entry.js → p-48dee587.entry.js} +1 -1
  483. package/dist/stzh-components/p-48e835cf.system.js +1 -0
  484. package/dist/stzh-components/{p-55b7cda7.system.entry.js → p-4a298117.system.entry.js} +1 -1
  485. package/dist/stzh-components/p-4a60b27f.entry.js +1 -0
  486. package/dist/stzh-components/p-4d8c81b2.system.entry.js +1 -0
  487. package/dist/stzh-components/{p-f027e569.system.entry.js → p-512c38b3.system.entry.js} +1 -1
  488. package/dist/stzh-components/p-51b3a560.system.entry.js +1 -0
  489. package/dist/stzh-components/p-537adcfe.system.entry.js +3 -0
  490. package/dist/stzh-components/{p-13051e1c.js → p-538882c8.js} +0 -0
  491. package/dist/stzh-components/p-55752bd5.system.entry.js +1 -0
  492. package/dist/stzh-components/p-563b1abc.system.entry.js +1 -0
  493. package/dist/stzh-components/p-59793ef8.system.entry.js +1 -0
  494. package/dist/stzh-components/{p-6a0a76b3.entry.js → p-5b162e4f.entry.js} +1 -1
  495. package/dist/stzh-components/{p-0409bf6b.system.entry.js → p-5c717080.system.entry.js} +1 -1
  496. package/dist/stzh-components/p-5cb1cd93.system.entry.js +1 -0
  497. package/dist/stzh-components/p-5f9b58fb.system.entry.js +1 -0
  498. package/dist/stzh-components/{p-e7cf6c45.system.entry.js → p-617ece76.system.entry.js} +1 -1
  499. package/dist/stzh-components/{p-104df3a8.system.entry.js → p-6414454e.system.entry.js} +1 -1
  500. package/dist/stzh-components/p-6496df0a.system.entry.js +9 -0
  501. package/dist/stzh-components/p-64cdef2f.entry.js +1 -0
  502. package/dist/stzh-components/p-64e27ac1.entry.js +1 -0
  503. package/dist/stzh-components/p-655e3c46.system.entry.js +1 -0
  504. package/dist/stzh-components/{p-b0d8866d.entry.js → p-65ea23f6.entry.js} +1 -1
  505. package/dist/stzh-components/p-668b4025.system.entry.js +1 -0
  506. package/dist/stzh-components/{p-f03ce92d.system.entry.js → p-6722e89a.system.entry.js} +1 -1
  507. package/dist/stzh-components/p-67ae4994.entry.js +1 -0
  508. package/dist/stzh-components/{p-f39f347c.system.js → p-6845b6ac.system.js} +0 -0
  509. package/dist/stzh-components/p-6adc5f0c.system.entry.js +1 -0
  510. package/dist/stzh-components/p-6c80b920.system.entry.js +1 -0
  511. package/dist/stzh-components/p-6dbf976b.entry.js +1 -0
  512. package/dist/stzh-components/{p-eade9f77.entry.js → p-6e3231ce.entry.js} +1 -1
  513. package/dist/stzh-components/{p-ef3da23b.entry.js → p-705aa56d.entry.js} +1 -1
  514. package/dist/stzh-components/{p-288ee536.system.entry.js → p-70f85be3.system.entry.js} +1 -1
  515. package/dist/stzh-components/{p-62a2684d.entry.js → p-7185f634.entry.js} +1 -1
  516. package/dist/stzh-components/{p-11d7b426.system.entry.js → p-74d6e349.system.entry.js} +1 -1
  517. package/dist/stzh-components/p-77d0a54b.system.entry.js +1 -0
  518. package/dist/stzh-components/p-7b0c04b3.system.entry.js +1 -0
  519. package/dist/stzh-components/{p-0cc8bbd7.system.entry.js → p-7e4261ce.system.entry.js} +1 -1
  520. package/dist/stzh-components/{p-fee6a938.entry.js → p-7e94b787.entry.js} +1 -1
  521. package/dist/stzh-components/{p-df5f49b4.js → p-7f0fb35c.js} +1 -1
  522. package/dist/stzh-components/{p-44e0b101.system.entry.js → p-7f1b7b44.system.entry.js} +1 -1
  523. package/dist/stzh-components/{p-97e16665.system.entry.js → p-80f497d8.system.entry.js} +1 -1
  524. package/dist/stzh-components/p-81b4b0e6.system.entry.js +1 -0
  525. package/dist/stzh-components/{p-8cc119d3.system.entry.js → p-8361c9d8.system.entry.js} +1 -1
  526. package/dist/stzh-components/{p-cc720d2d.entry.js → p-838b0542.entry.js} +1 -1
  527. package/dist/stzh-components/p-862e7723.system.entry.js +1 -0
  528. package/dist/stzh-components/{p-49b292df.entry.js → p-86336227.entry.js} +1 -1
  529. package/dist/stzh-components/{p-586a8b3f.entry.js → p-8715198b.entry.js} +1 -1
  530. package/dist/stzh-components/p-8972cf20.entry.js +1 -0
  531. package/dist/stzh-components/p-8c5a6832.system.entry.js +1 -0
  532. package/dist/stzh-components/p-8caafed2.system.entry.js +1 -0
  533. package/dist/stzh-components/p-8ccefd49.system.entry.js +1 -0
  534. package/dist/stzh-components/p-8ee705ed.entry.js +1 -0
  535. package/dist/stzh-components/p-906caf97.js +1 -0
  536. package/dist/stzh-components/{p-9e4e0cc9.entry.js → p-923dffc7.entry.js} +1 -1
  537. package/dist/stzh-components/p-9380fb85.entry.js +1 -0
  538. package/dist/stzh-components/p-97e4272b.system.entry.js +1 -0
  539. package/dist/stzh-components/p-990f395b.entry.js +1 -0
  540. package/dist/stzh-components/p-99a3742a.js +2 -0
  541. package/dist/stzh-components/p-99aacd74.entry.js +1 -0
  542. package/dist/stzh-components/p-99b82949.entry.js +1 -0
  543. package/dist/stzh-components/p-99e27f57.system.js +1 -0
  544. package/dist/stzh-components/{p-576e1345.entry.js → p-99e43fb0.entry.js} +1 -1
  545. package/dist/stzh-components/p-9be29697.entry.js +1 -0
  546. package/dist/stzh-components/{p-eb6d3e6c.entry.js → p-9c35c9cd.entry.js} +1 -1
  547. package/dist/stzh-components/{p-33f80cd2.system.entry.js → p-9d5c70ee.system.entry.js} +1 -1
  548. package/dist/stzh-components/p-9e30ee4a.system.js +10 -0
  549. package/dist/stzh-components/{p-94830f96.system.entry.js → p-a0a033bd.system.entry.js} +1 -1
  550. package/dist/stzh-components/{p-d5cb80ad.system.entry.js → p-a11ef2d6.system.entry.js} +1 -1
  551. package/dist/stzh-components/p-a2b2cfac.system.entry.js +1 -0
  552. package/dist/stzh-components/p-a3c7aa63.entry.js +9 -0
  553. package/dist/stzh-components/p-a408bfba.system.js +1 -1
  554. package/dist/stzh-components/{p-aae4655f.entry.js → p-a44527f8.entry.js} +1 -1
  555. package/dist/stzh-components/{p-8bbaed3a.entry.js → p-a4dd5ba3.entry.js} +1 -1
  556. package/dist/stzh-components/{p-c30600d0.system.entry.js → p-a51dd210.system.entry.js} +1 -1
  557. package/dist/stzh-components/{p-4b0f473e.entry.js → p-a693ab41.entry.js} +1 -1
  558. package/dist/stzh-components/p-a6be6aca.system.entry.js +1 -0
  559. package/dist/stzh-components/p-ac3e3b2a.system.entry.js +1 -0
  560. package/dist/stzh-components/{p-72389069.entry.js → p-ad816fd9.entry.js} +1 -1
  561. package/dist/stzh-components/p-af67ea5e.entry.js +7 -0
  562. package/dist/stzh-components/p-b050c1f4.entry.js +1 -0
  563. package/dist/stzh-components/{p-be79497f.system.entry.js → p-b1ffc2a9.system.entry.js} +1 -1
  564. package/dist/stzh-components/p-b395bed5.system.entry.js +1 -0
  565. package/dist/stzh-components/{p-30ba96a3.entry.js → p-b689b882.entry.js} +1 -1
  566. package/dist/stzh-components/{p-b3dc4913.entry.js → p-b6e6f847.entry.js} +1 -1
  567. package/dist/stzh-components/p-b92734db.entry.js +1 -0
  568. package/dist/stzh-components/{p-57a0f895.entry.js → p-b9427914.entry.js} +1 -1
  569. package/dist/stzh-components/p-bada7caa.system.entry.js +1 -0
  570. package/dist/stzh-components/p-bb82fa2d.system.entry.js +1 -0
  571. package/dist/stzh-components/{p-557f07b5.system.entry.js → p-bc36fda4.system.entry.js} +1 -1
  572. package/dist/stzh-components/{p-1d8272a5.entry.js → p-be68b323.entry.js} +1 -1
  573. package/dist/stzh-components/p-bf071e77.system.js +1 -0
  574. package/dist/stzh-components/{p-84965eac.entry.js → p-c0ec905d.entry.js} +1 -1
  575. package/dist/stzh-components/p-c2f909c1.system.entry.js +1 -0
  576. package/dist/stzh-components/{p-ea9ca52b.entry.js → p-c33b7d23.entry.js} +1 -1
  577. package/dist/stzh-components/p-c646c712.entry.js +1 -0
  578. package/dist/stzh-components/p-c8cc2563.system.entry.js +1 -0
  579. package/dist/stzh-components/p-c9c7d88a.entry.js +1 -0
  580. package/dist/stzh-components/p-cbe6d2ea.entry.js +1 -0
  581. package/dist/stzh-components/{p-2732d8c8.system.js → p-cbfae706.system.js} +0 -0
  582. package/dist/stzh-components/p-ccf023da.entry.js +3 -0
  583. package/dist/stzh-components/p-d04bbc19.js +1 -0
  584. package/dist/stzh-components/p-d32965be.system.entry.js +1 -0
  585. package/dist/stzh-components/p-d54ff4d4.system.entry.js +1 -0
  586. package/dist/stzh-components/p-d5644c25.entry.js +8 -0
  587. package/dist/stzh-components/p-d6a11daa.entry.js +1 -0
  588. package/dist/stzh-components/p-d943e02c.system.entry.js +1 -0
  589. package/dist/stzh-components/{p-a474826c.system.entry.js → p-da85cf73.system.entry.js} +1 -1
  590. package/dist/stzh-components/p-da98a8bb.system.entry.js +7 -0
  591. package/dist/stzh-components/p-db306e24.entry.js +1 -0
  592. package/dist/stzh-components/{p-d2f6fb1b.system.js → p-db339680.system.js} +1 -1
  593. package/dist/stzh-components/{p-f5fdc88c.entry.js → p-dbe5320f.entry.js} +3 -3
  594. package/dist/stzh-components/p-dd1bb919.entry.js +1 -0
  595. package/dist/stzh-components/p-dd5f29aa.entry.js +1 -0
  596. package/dist/stzh-components/p-de9edaf2.entry.js +1 -0
  597. package/dist/stzh-components/p-e3afc8f7.entry.js +1 -0
  598. package/dist/stzh-components/p-e54ef44f.system.entry.js +1 -0
  599. package/dist/stzh-components/p-e78fe899.system.entry.js +1 -0
  600. package/dist/stzh-components/{p-60d9bf98.system.entry.js → p-e7909de9.system.entry.js} +1 -1
  601. package/dist/stzh-components/{p-58af0855.system.entry.js → p-e7e9b295.system.entry.js} +1 -1
  602. package/dist/stzh-components/p-e8feb92e.system.entry.js +1 -0
  603. package/dist/stzh-components/p-eb7773f3.entry.js +1 -0
  604. package/dist/stzh-components/p-ed58b644.system.entry.js +1 -0
  605. package/dist/stzh-components/p-ee4b939a.entry.js +1 -0
  606. package/dist/stzh-components/{p-28d8aa31.entry.js → p-f0e2a32d.entry.js} +1 -1
  607. package/dist/stzh-components/{p-0cff4e01.entry.js → p-f2deda0a.entry.js} +1 -1
  608. package/dist/stzh-components/p-f3d69226.system.entry.js +1 -0
  609. package/dist/stzh-components/p-f433e62a.system.entry.js +1 -0
  610. package/dist/stzh-components/p-f5b2c12e.entry.js +1 -0
  611. package/dist/stzh-components/{p-4226dec6.system.entry.js → p-f7bb76d8.system.entry.js} +1 -1
  612. package/dist/stzh-components/{p-e0f063ac.entry.js → p-f8feb07b.entry.js} +1 -1
  613. package/dist/stzh-components/p-f9ab0433.entry.js +1 -0
  614. package/dist/stzh-components/p-fa615b51.system.entry.js +1 -0
  615. package/dist/stzh-components/{p-e016ceb9.entry.js → p-fd15cc86.entry.js} +1 -1
  616. package/dist/stzh-components/p-fd3acd16.system.entry.js +1 -0
  617. package/dist/stzh-components/p-fe5d5fc8.entry.js +1 -0
  618. package/dist/stzh-components/p-fe9acc68.system.entry.js +1 -0
  619. package/dist/stzh-components/stzh-components.css +1 -1
  620. package/dist/stzh-components/stzh-components.esm.js +1 -1
  621. package/dist/stzh-components/stzh-components.js +1 -1
  622. package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +1 -1
  623. package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +1 -1
  624. package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +1 -1
  625. package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +1 -1
  626. package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +1 -1
  627. package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +1 -1
  628. package/dist/types/components/stzh-card/stzh-card.localization.d.ts +1 -1
  629. package/dist/types/components/stzh-card-list/stzh-card-list.localization.d.ts +1 -1
  630. package/dist/types/components/stzh-container/stzh-container.d.ts +2 -0
  631. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +1 -1
  632. package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +1 -1
  633. package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +1 -1
  634. package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +1 -1
  635. package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +1 -1
  636. package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +1 -1
  637. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +1 -1
  638. package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +3 -1
  639. package/dist/types/components/stzh-input/stzh-input-description.d.ts +1 -1
  640. package/dist/types/components/stzh-message/stzh-message.localization.d.ts +1 -1
  641. package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.localization.d.ts +1 -1
  642. package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -1
  643. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +1 -1
  644. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +1 -0
  645. package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +1 -1
  646. package/dist/types/components/stzh-share/stzh-share.localization.d.ts +1 -1
  647. package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +1 -1
  648. package/dist/types/components/stzh-space/stzh-space.d.ts +27 -0
  649. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +1 -1
  650. package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +1 -1
  651. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +1 -1
  652. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +1 -1
  653. package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +3 -1
  654. package/dist/types/components.d.ts +390 -20
  655. package/dist/types/index.d.ts +135 -133
  656. package/dist/types/stencil-public-runtime.d.ts +59 -3
  657. package/dist/types/utils/date-adapter.d.ts +2 -2
  658. package/dist/types/utils/h.d.ts +3 -3
  659. package/dist/types/utils/test-utils.d.ts +2 -2
  660. package/dist/types/utils/translation-utils.d.ts +5 -5
  661. package/dist/vscode-data.json +563 -4
  662. package/loader/index.d.ts +9 -0
  663. package/package.json +11 -11
  664. package/dist/cjs/index-8bd1552a.js +0 -2019
  665. package/dist/cjs/stzh-chip.cjs.entry.js +0 -100
  666. package/dist/cjs/stzh-clamp.cjs.entry.js +0 -27
  667. package/dist/cjs/stzh-contactaddress.cjs.entry.js +0 -91
  668. package/dist/collection/pages/example.stories.js +0 -170
  669. package/dist/components/index3.js +0 -2017
  670. package/dist/components/stzh-contactaddress.js +0 -157
  671. package/dist/esm/index-545902f4.js +0 -2017
  672. package/dist/esm/stzh-chip.entry.js +0 -96
  673. package/dist/esm/stzh-clamp.entry.js +0 -23
  674. package/dist/esm/stzh-contactaddress.entry.js +0 -87
  675. package/dist/esm-es5/app-globals-ff581b69.js +0 -1
  676. package/dist/esm-es5/arrow-86a679c7.js +0 -1
  677. package/dist/esm-es5/focus-trap.esm-074705a3.js +0 -9
  678. package/dist/esm-es5/index-011c84fe.js +0 -2
  679. package/dist/esm-es5/index-545902f4.js +0 -1
  680. package/dist/esm-es5/stzh-chip.entry.js +0 -1
  681. package/dist/esm-es5/stzh-clamp.entry.js +0 -1
  682. package/dist/esm-es5/stzh-contactaddress.entry.js +0 -1
  683. package/dist/stzh-components/p-006751fc.system.entry.js +0 -1
  684. package/dist/stzh-components/p-025c9c5b.entry.js +0 -1
  685. package/dist/stzh-components/p-06d9b884.system.entry.js +0 -1
  686. package/dist/stzh-components/p-0743d7fa.entry.js +0 -1
  687. package/dist/stzh-components/p-0850a2e1.system.entry.js +0 -1
  688. package/dist/stzh-components/p-09da70d8.entry.js +0 -1
  689. package/dist/stzh-components/p-0a647396.entry.js +0 -1
  690. package/dist/stzh-components/p-10c046fc.system.entry.js +0 -1
  691. package/dist/stzh-components/p-12a2afe9.entry.js +0 -1
  692. package/dist/stzh-components/p-17645237.entry.js +0 -1
  693. package/dist/stzh-components/p-18cb06e2.entry.js +0 -1
  694. package/dist/stzh-components/p-19ab7e34.system.entry.js +0 -1
  695. package/dist/stzh-components/p-1ae4d600.system.entry.js +0 -1
  696. package/dist/stzh-components/p-1e4b4d71.system.js +0 -1
  697. package/dist/stzh-components/p-21cad060.system.entry.js +0 -1
  698. package/dist/stzh-components/p-22b06793.entry.js +0 -1
  699. package/dist/stzh-components/p-23829f75.system.entry.js +0 -1
  700. package/dist/stzh-components/p-2bdc71ae.system.entry.js +0 -1
  701. package/dist/stzh-components/p-2d340222.system.entry.js +0 -1
  702. package/dist/stzh-components/p-31c3469c.entry.js +0 -1
  703. package/dist/stzh-components/p-3200f52a.system.entry.js +0 -1
  704. package/dist/stzh-components/p-385dda6c.system.entry.js +0 -1
  705. package/dist/stzh-components/p-391e6b90.entry.js +0 -1
  706. package/dist/stzh-components/p-3a1ff759.entry.js +0 -1
  707. package/dist/stzh-components/p-3ad67331.entry.js +0 -1
  708. package/dist/stzh-components/p-3e850dce.entry.js +0 -1
  709. package/dist/stzh-components/p-40a19ce6.js +0 -10
  710. package/dist/stzh-components/p-441ea784.entry.js +0 -1
  711. package/dist/stzh-components/p-4704588f.system.entry.js +0 -1
  712. package/dist/stzh-components/p-49bb09a5.entry.js +0 -1
  713. package/dist/stzh-components/p-4b369bac.entry.js +0 -1
  714. package/dist/stzh-components/p-51be647d.entry.js +0 -1
  715. package/dist/stzh-components/p-53934cfd.js +0 -1
  716. package/dist/stzh-components/p-57237509.system.entry.js +0 -1
  717. package/dist/stzh-components/p-5790eb4f.system.entry.js +0 -1
  718. package/dist/stzh-components/p-57f8596f.system.entry.js +0 -1
  719. package/dist/stzh-components/p-5b1c1cf7.entry.js +0 -1
  720. package/dist/stzh-components/p-5ddf8258.system.entry.js +0 -1
  721. package/dist/stzh-components/p-5fd9ae99.system.entry.js +0 -1
  722. package/dist/stzh-components/p-60ec90b2.system.entry.js +0 -1
  723. package/dist/stzh-components/p-63d94a57.system.entry.js +0 -1
  724. package/dist/stzh-components/p-64422176.entry.js +0 -9
  725. package/dist/stzh-components/p-661831da.entry.js +0 -1
  726. package/dist/stzh-components/p-67c6f0f2.entry.js +0 -1
  727. package/dist/stzh-components/p-6d009f56.system.entry.js +0 -1
  728. package/dist/stzh-components/p-71c07419.system.entry.js +0 -1
  729. package/dist/stzh-components/p-75068cd7.system.entry.js +0 -1
  730. package/dist/stzh-components/p-76165227.entry.js +0 -1
  731. package/dist/stzh-components/p-7941cf38.js +0 -1
  732. package/dist/stzh-components/p-7adc28a4.system.entry.js +0 -7
  733. package/dist/stzh-components/p-7b86c022.entry.js +0 -1
  734. package/dist/stzh-components/p-7c26f80f.system.entry.js +0 -1
  735. package/dist/stzh-components/p-7ce59988.system.entry.js +0 -1
  736. package/dist/stzh-components/p-7e94dde2.entry.js +0 -1
  737. package/dist/stzh-components/p-812ea5e9.system.entry.js +0 -1
  738. package/dist/stzh-components/p-8364475f.js +0 -12
  739. package/dist/stzh-components/p-84b9f66f.system.entry.js +0 -1
  740. package/dist/stzh-components/p-853a1f92.entry.js +0 -1
  741. package/dist/stzh-components/p-88a31179.system.entry.js +0 -1
  742. package/dist/stzh-components/p-8991d3bc.entry.js +0 -1
  743. package/dist/stzh-components/p-8a1d00fe.entry.js +0 -3
  744. package/dist/stzh-components/p-8fa2fb95.system.entry.js +0 -1
  745. package/dist/stzh-components/p-9072a490.system.entry.js +0 -1
  746. package/dist/stzh-components/p-92afa8df.entry.js +0 -1
  747. package/dist/stzh-components/p-95b490ec.system.entry.js +0 -1
  748. package/dist/stzh-components/p-9743f558.system.entry.js +0 -1
  749. package/dist/stzh-components/p-996579d0.entry.js +0 -1
  750. package/dist/stzh-components/p-9a5ebb1f.js +0 -2
  751. package/dist/stzh-components/p-9dac46e2.system.entry.js +0 -1
  752. package/dist/stzh-components/p-9e38b823.system.entry.js +0 -1
  753. package/dist/stzh-components/p-a16dc363.entry.js +0 -1
  754. package/dist/stzh-components/p-a53c0a98.entry.js +0 -1
  755. package/dist/stzh-components/p-a8101552.entry.js +0 -8
  756. package/dist/stzh-components/p-a934dd4d.entry.js +0 -1
  757. package/dist/stzh-components/p-aacf685b.system.entry.js +0 -3
  758. package/dist/stzh-components/p-ac1a6085.system.entry.js +0 -1
  759. package/dist/stzh-components/p-ac3aa560.system.entry.js +0 -1
  760. package/dist/stzh-components/p-afedafa6.system.entry.js +0 -1
  761. package/dist/stzh-components/p-b2145753.system.entry.js +0 -1
  762. package/dist/stzh-components/p-b436a18d.system.entry.js +0 -1
  763. package/dist/stzh-components/p-b908d228.system.entry.js +0 -1
  764. package/dist/stzh-components/p-b937ae70.system.js +0 -1
  765. package/dist/stzh-components/p-ba0b93c4.system.entry.js +0 -9
  766. package/dist/stzh-components/p-bfcfbfbb.system.entry.js +0 -1
  767. package/dist/stzh-components/p-c0fef3d1.entry.js +0 -1
  768. package/dist/stzh-components/p-c3a543a6.entry.js +0 -1
  769. package/dist/stzh-components/p-c63aecaa.system.entry.js +0 -1
  770. package/dist/stzh-components/p-c87e12de.system.entry.js +0 -1
  771. package/dist/stzh-components/p-cf6003d6.js +0 -1
  772. package/dist/stzh-components/p-cfd22a5e.system.entry.js +0 -1
  773. package/dist/stzh-components/p-d240494d.entry.js +0 -1
  774. package/dist/stzh-components/p-d5c0801b.entry.js +0 -1
  775. package/dist/stzh-components/p-d6ec20c8.system.entry.js +0 -1
  776. package/dist/stzh-components/p-d9bf09b1.system.entry.js +0 -1
  777. package/dist/stzh-components/p-db1692fb.entry.js +0 -1
  778. package/dist/stzh-components/p-dbdc01c7.system.js +0 -2
  779. package/dist/stzh-components/p-ded16c0e.system.js +0 -1
  780. package/dist/stzh-components/p-e20369c8.system.js +0 -10
  781. package/dist/stzh-components/p-e32bc982.system.js +0 -1
  782. package/dist/stzh-components/p-e46d82b9.system.entry.js +0 -1
  783. package/dist/stzh-components/p-e76a3647.entry.js +0 -1
  784. package/dist/stzh-components/p-ec3a472a.system.entry.js +0 -1
  785. package/dist/stzh-components/p-ec7b6ce8.entry.js +0 -7
  786. package/dist/stzh-components/p-f133eba2.entry.js +0 -1
  787. package/dist/stzh-components/p-f3107fc7.system.entry.js +0 -1
  788. package/dist/stzh-components/p-fcec6003.system.entry.js +0 -1
  789. package/dist/stzh-components/p-fdb906b9.system.entry.js +0 -1
@@ -0,0 +1,3167 @@
1
+ 'use strict';
2
+
3
+ function bind(fn, thisArg) {
4
+ return function wrap() {
5
+ return fn.apply(thisArg, arguments);
6
+ };
7
+ }
8
+
9
+ // utils is a library of generic helper functions non-specific to axios
10
+
11
+ const {toString} = Object.prototype;
12
+ const {getPrototypeOf} = Object;
13
+
14
+ const kindOf = (cache => thing => {
15
+ const str = toString.call(thing);
16
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
17
+ })(Object.create(null));
18
+
19
+ const kindOfTest = (type) => {
20
+ type = type.toLowerCase();
21
+ return (thing) => kindOf(thing) === type
22
+ };
23
+
24
+ const typeOfTest = type => thing => typeof thing === type;
25
+
26
+ /**
27
+ * Determine if a value is an Array
28
+ *
29
+ * @param {Object} val The value to test
30
+ *
31
+ * @returns {boolean} True if value is an Array, otherwise false
32
+ */
33
+ const {isArray} = Array;
34
+
35
+ /**
36
+ * Determine if a value is undefined
37
+ *
38
+ * @param {*} val The value to test
39
+ *
40
+ * @returns {boolean} True if the value is undefined, otherwise false
41
+ */
42
+ const isUndefined = typeOfTest('undefined');
43
+
44
+ /**
45
+ * Determine if a value is a Buffer
46
+ *
47
+ * @param {*} val The value to test
48
+ *
49
+ * @returns {boolean} True if value is a Buffer, otherwise false
50
+ */
51
+ function isBuffer(val) {
52
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
53
+ && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
54
+ }
55
+
56
+ /**
57
+ * Determine if a value is an ArrayBuffer
58
+ *
59
+ * @param {*} val The value to test
60
+ *
61
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
62
+ */
63
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
64
+
65
+
66
+ /**
67
+ * Determine if a value is a view on an ArrayBuffer
68
+ *
69
+ * @param {*} val The value to test
70
+ *
71
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
72
+ */
73
+ function isArrayBufferView(val) {
74
+ let result;
75
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
76
+ result = ArrayBuffer.isView(val);
77
+ } else {
78
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
79
+ }
80
+ return result;
81
+ }
82
+
83
+ /**
84
+ * Determine if a value is a String
85
+ *
86
+ * @param {*} val The value to test
87
+ *
88
+ * @returns {boolean} True if value is a String, otherwise false
89
+ */
90
+ const isString = typeOfTest('string');
91
+
92
+ /**
93
+ * Determine if a value is a Function
94
+ *
95
+ * @param {*} val The value to test
96
+ * @returns {boolean} True if value is a Function, otherwise false
97
+ */
98
+ const isFunction = typeOfTest('function');
99
+
100
+ /**
101
+ * Determine if a value is a Number
102
+ *
103
+ * @param {*} val The value to test
104
+ *
105
+ * @returns {boolean} True if value is a Number, otherwise false
106
+ */
107
+ const isNumber = typeOfTest('number');
108
+
109
+ /**
110
+ * Determine if a value is an Object
111
+ *
112
+ * @param {*} thing The value to test
113
+ *
114
+ * @returns {boolean} True if value is an Object, otherwise false
115
+ */
116
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
117
+
118
+ /**
119
+ * Determine if a value is a Boolean
120
+ *
121
+ * @param {*} thing The value to test
122
+ * @returns {boolean} True if value is a Boolean, otherwise false
123
+ */
124
+ const isBoolean = thing => thing === true || thing === false;
125
+
126
+ /**
127
+ * Determine if a value is a plain Object
128
+ *
129
+ * @param {*} val The value to test
130
+ *
131
+ * @returns {boolean} True if value is a plain Object, otherwise false
132
+ */
133
+ const isPlainObject = (val) => {
134
+ if (kindOf(val) !== 'object') {
135
+ return false;
136
+ }
137
+
138
+ const prototype = getPrototypeOf(val);
139
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
140
+ };
141
+
142
+ /**
143
+ * Determine if a value is a Date
144
+ *
145
+ * @param {*} val The value to test
146
+ *
147
+ * @returns {boolean} True if value is a Date, otherwise false
148
+ */
149
+ const isDate = kindOfTest('Date');
150
+
151
+ /**
152
+ * Determine if a value is a File
153
+ *
154
+ * @param {*} val The value to test
155
+ *
156
+ * @returns {boolean} True if value is a File, otherwise false
157
+ */
158
+ const isFile = kindOfTest('File');
159
+
160
+ /**
161
+ * Determine if a value is a Blob
162
+ *
163
+ * @param {*} val The value to test
164
+ *
165
+ * @returns {boolean} True if value is a Blob, otherwise false
166
+ */
167
+ const isBlob = kindOfTest('Blob');
168
+
169
+ /**
170
+ * Determine if a value is a FileList
171
+ *
172
+ * @param {*} val The value to test
173
+ *
174
+ * @returns {boolean} True if value is a File, otherwise false
175
+ */
176
+ const isFileList = kindOfTest('FileList');
177
+
178
+ /**
179
+ * Determine if a value is a Stream
180
+ *
181
+ * @param {*} val The value to test
182
+ *
183
+ * @returns {boolean} True if value is a Stream, otherwise false
184
+ */
185
+ const isStream = (val) => isObject(val) && isFunction(val.pipe);
186
+
187
+ /**
188
+ * Determine if a value is a FormData
189
+ *
190
+ * @param {*} thing The value to test
191
+ *
192
+ * @returns {boolean} True if value is an FormData, otherwise false
193
+ */
194
+ const isFormData = (thing) => {
195
+ const pattern = '[object FormData]';
196
+ return thing && (
197
+ (typeof FormData === 'function' && thing instanceof FormData) ||
198
+ toString.call(thing) === pattern ||
199
+ (isFunction(thing.toString) && thing.toString() === pattern)
200
+ );
201
+ };
202
+
203
+ /**
204
+ * Determine if a value is a URLSearchParams object
205
+ *
206
+ * @param {*} val The value to test
207
+ *
208
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
209
+ */
210
+ const isURLSearchParams = kindOfTest('URLSearchParams');
211
+
212
+ /**
213
+ * Trim excess whitespace off the beginning and end of a string
214
+ *
215
+ * @param {String} str The String to trim
216
+ *
217
+ * @returns {String} The String freed of excess whitespace
218
+ */
219
+ const trim = (str) => str.trim ?
220
+ str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
221
+
222
+ /**
223
+ * Iterate over an Array or an Object invoking a function for each item.
224
+ *
225
+ * If `obj` is an Array callback will be called passing
226
+ * the value, index, and complete array for each item.
227
+ *
228
+ * If 'obj' is an Object callback will be called passing
229
+ * the value, key, and complete object for each property.
230
+ *
231
+ * @param {Object|Array} obj The object to iterate
232
+ * @param {Function} fn The callback to invoke for each item
233
+ *
234
+ * @param {Boolean} [allOwnKeys = false]
235
+ * @returns {any}
236
+ */
237
+ function forEach(obj, fn, {allOwnKeys = false} = {}) {
238
+ // Don't bother if no value provided
239
+ if (obj === null || typeof obj === 'undefined') {
240
+ return;
241
+ }
242
+
243
+ let i;
244
+ let l;
245
+
246
+ // Force an array if not already something iterable
247
+ if (typeof obj !== 'object') {
248
+ /*eslint no-param-reassign:0*/
249
+ obj = [obj];
250
+ }
251
+
252
+ if (isArray(obj)) {
253
+ // Iterate over array values
254
+ for (i = 0, l = obj.length; i < l; i++) {
255
+ fn.call(null, obj[i], i, obj);
256
+ }
257
+ } else {
258
+ // Iterate over object keys
259
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
260
+ const len = keys.length;
261
+ let key;
262
+
263
+ for (i = 0; i < len; i++) {
264
+ key = keys[i];
265
+ fn.call(null, obj[key], key, obj);
266
+ }
267
+ }
268
+ }
269
+
270
+ function findKey(obj, key) {
271
+ key = key.toLowerCase();
272
+ const keys = Object.keys(obj);
273
+ let i = keys.length;
274
+ let _key;
275
+ while (i-- > 0) {
276
+ _key = keys[i];
277
+ if (key === _key.toLowerCase()) {
278
+ return _key;
279
+ }
280
+ }
281
+ return null;
282
+ }
283
+
284
+ const _global = (() => {
285
+ /*eslint no-undef:0*/
286
+ if (typeof globalThis !== "undefined") return globalThis;
287
+ return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
288
+ })();
289
+
290
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
291
+
292
+ /**
293
+ * Accepts varargs expecting each argument to be an object, then
294
+ * immutably merges the properties of each object and returns result.
295
+ *
296
+ * When multiple objects contain the same key the later object in
297
+ * the arguments list will take precedence.
298
+ *
299
+ * Example:
300
+ *
301
+ * ```js
302
+ * var result = merge({foo: 123}, {foo: 456});
303
+ * console.log(result.foo); // outputs 456
304
+ * ```
305
+ *
306
+ * @param {Object} obj1 Object to merge
307
+ *
308
+ * @returns {Object} Result of all merge properties
309
+ */
310
+ function merge(/* obj1, obj2, obj3, ... */) {
311
+ const {caseless} = isContextDefined(this) && this || {};
312
+ const result = {};
313
+ const assignValue = (val, key) => {
314
+ const targetKey = caseless && findKey(result, key) || key;
315
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
316
+ result[targetKey] = merge(result[targetKey], val);
317
+ } else if (isPlainObject(val)) {
318
+ result[targetKey] = merge({}, val);
319
+ } else if (isArray(val)) {
320
+ result[targetKey] = val.slice();
321
+ } else {
322
+ result[targetKey] = val;
323
+ }
324
+ };
325
+
326
+ for (let i = 0, l = arguments.length; i < l; i++) {
327
+ arguments[i] && forEach(arguments[i], assignValue);
328
+ }
329
+ return result;
330
+ }
331
+
332
+ /**
333
+ * Extends object a by mutably adding to it the properties of object b.
334
+ *
335
+ * @param {Object} a The object to be extended
336
+ * @param {Object} b The object to copy properties from
337
+ * @param {Object} thisArg The object to bind function to
338
+ *
339
+ * @param {Boolean} [allOwnKeys]
340
+ * @returns {Object} The resulting value of object a
341
+ */
342
+ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
343
+ forEach(b, (val, key) => {
344
+ if (thisArg && isFunction(val)) {
345
+ a[key] = bind(val, thisArg);
346
+ } else {
347
+ a[key] = val;
348
+ }
349
+ }, {allOwnKeys});
350
+ return a;
351
+ };
352
+
353
+ /**
354
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
355
+ *
356
+ * @param {string} content with BOM
357
+ *
358
+ * @returns {string} content value without BOM
359
+ */
360
+ const stripBOM = (content) => {
361
+ if (content.charCodeAt(0) === 0xFEFF) {
362
+ content = content.slice(1);
363
+ }
364
+ return content;
365
+ };
366
+
367
+ /**
368
+ * Inherit the prototype methods from one constructor into another
369
+ * @param {function} constructor
370
+ * @param {function} superConstructor
371
+ * @param {object} [props]
372
+ * @param {object} [descriptors]
373
+ *
374
+ * @returns {void}
375
+ */
376
+ const inherits = (constructor, superConstructor, props, descriptors) => {
377
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
378
+ constructor.prototype.constructor = constructor;
379
+ Object.defineProperty(constructor, 'super', {
380
+ value: superConstructor.prototype
381
+ });
382
+ props && Object.assign(constructor.prototype, props);
383
+ };
384
+
385
+ /**
386
+ * Resolve object with deep prototype chain to a flat object
387
+ * @param {Object} sourceObj source object
388
+ * @param {Object} [destObj]
389
+ * @param {Function|Boolean} [filter]
390
+ * @param {Function} [propFilter]
391
+ *
392
+ * @returns {Object}
393
+ */
394
+ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
395
+ let props;
396
+ let i;
397
+ let prop;
398
+ const merged = {};
399
+
400
+ destObj = destObj || {};
401
+ // eslint-disable-next-line no-eq-null,eqeqeq
402
+ if (sourceObj == null) return destObj;
403
+
404
+ do {
405
+ props = Object.getOwnPropertyNames(sourceObj);
406
+ i = props.length;
407
+ while (i-- > 0) {
408
+ prop = props[i];
409
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
410
+ destObj[prop] = sourceObj[prop];
411
+ merged[prop] = true;
412
+ }
413
+ }
414
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
415
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
416
+
417
+ return destObj;
418
+ };
419
+
420
+ /**
421
+ * Determines whether a string ends with the characters of a specified string
422
+ *
423
+ * @param {String} str
424
+ * @param {String} searchString
425
+ * @param {Number} [position= 0]
426
+ *
427
+ * @returns {boolean}
428
+ */
429
+ const endsWith = (str, searchString, position) => {
430
+ str = String(str);
431
+ if (position === undefined || position > str.length) {
432
+ position = str.length;
433
+ }
434
+ position -= searchString.length;
435
+ const lastIndex = str.indexOf(searchString, position);
436
+ return lastIndex !== -1 && lastIndex === position;
437
+ };
438
+
439
+
440
+ /**
441
+ * Returns new array from array like object or null if failed
442
+ *
443
+ * @param {*} [thing]
444
+ *
445
+ * @returns {?Array}
446
+ */
447
+ const toArray = (thing) => {
448
+ if (!thing) return null;
449
+ if (isArray(thing)) return thing;
450
+ let i = thing.length;
451
+ if (!isNumber(i)) return null;
452
+ const arr = new Array(i);
453
+ while (i-- > 0) {
454
+ arr[i] = thing[i];
455
+ }
456
+ return arr;
457
+ };
458
+
459
+ /**
460
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
461
+ * thing passed in is an instance of Uint8Array
462
+ *
463
+ * @param {TypedArray}
464
+ *
465
+ * @returns {Array}
466
+ */
467
+ // eslint-disable-next-line func-names
468
+ const isTypedArray = (TypedArray => {
469
+ // eslint-disable-next-line func-names
470
+ return thing => {
471
+ return TypedArray && thing instanceof TypedArray;
472
+ };
473
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
474
+
475
+ /**
476
+ * For each entry in the object, call the function with the key and value.
477
+ *
478
+ * @param {Object<any, any>} obj - The object to iterate over.
479
+ * @param {Function} fn - The function to call for each entry.
480
+ *
481
+ * @returns {void}
482
+ */
483
+ const forEachEntry = (obj, fn) => {
484
+ const generator = obj && obj[Symbol.iterator];
485
+
486
+ const iterator = generator.call(obj);
487
+
488
+ let result;
489
+
490
+ while ((result = iterator.next()) && !result.done) {
491
+ const pair = result.value;
492
+ fn.call(obj, pair[0], pair[1]);
493
+ }
494
+ };
495
+
496
+ /**
497
+ * It takes a regular expression and a string, and returns an array of all the matches
498
+ *
499
+ * @param {string} regExp - The regular expression to match against.
500
+ * @param {string} str - The string to search.
501
+ *
502
+ * @returns {Array<boolean>}
503
+ */
504
+ const matchAll = (regExp, str) => {
505
+ let matches;
506
+ const arr = [];
507
+
508
+ while ((matches = regExp.exec(str)) !== null) {
509
+ arr.push(matches);
510
+ }
511
+
512
+ return arr;
513
+ };
514
+
515
+ /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
516
+ const isHTMLForm = kindOfTest('HTMLFormElement');
517
+
518
+ const toCamelCase = str => {
519
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
520
+ function replacer(m, p1, p2) {
521
+ return p1.toUpperCase() + p2;
522
+ }
523
+ );
524
+ };
525
+
526
+ /* Creating a function that will check if an object has a property. */
527
+ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
528
+
529
+ /**
530
+ * Determine if a value is a RegExp object
531
+ *
532
+ * @param {*} val The value to test
533
+ *
534
+ * @returns {boolean} True if value is a RegExp object, otherwise false
535
+ */
536
+ const isRegExp = kindOfTest('RegExp');
537
+
538
+ const reduceDescriptors = (obj, reducer) => {
539
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
540
+ const reducedDescriptors = {};
541
+
542
+ forEach(descriptors, (descriptor, name) => {
543
+ if (reducer(descriptor, name, obj) !== false) {
544
+ reducedDescriptors[name] = descriptor;
545
+ }
546
+ });
547
+
548
+ Object.defineProperties(obj, reducedDescriptors);
549
+ };
550
+
551
+ /**
552
+ * Makes all methods read-only
553
+ * @param {Object} obj
554
+ */
555
+
556
+ const freezeMethods = (obj) => {
557
+ reduceDescriptors(obj, (descriptor, name) => {
558
+ // skip restricted props in strict mode
559
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
560
+ return false;
561
+ }
562
+
563
+ const value = obj[name];
564
+
565
+ if (!isFunction(value)) return;
566
+
567
+ descriptor.enumerable = false;
568
+
569
+ if ('writable' in descriptor) {
570
+ descriptor.writable = false;
571
+ return;
572
+ }
573
+
574
+ if (!descriptor.set) {
575
+ descriptor.set = () => {
576
+ throw Error('Can not rewrite read-only method \'' + name + '\'');
577
+ };
578
+ }
579
+ });
580
+ };
581
+
582
+ const toObjectSet = (arrayOrString, delimiter) => {
583
+ const obj = {};
584
+
585
+ const define = (arr) => {
586
+ arr.forEach(value => {
587
+ obj[value] = true;
588
+ });
589
+ };
590
+
591
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
592
+
593
+ return obj;
594
+ };
595
+
596
+ const noop = () => {};
597
+
598
+ const toFiniteNumber = (value, defaultValue) => {
599
+ value = +value;
600
+ return Number.isFinite(value) ? value : defaultValue;
601
+ };
602
+
603
+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
604
+
605
+ const DIGIT = '0123456789';
606
+
607
+ const ALPHABET = {
608
+ DIGIT,
609
+ ALPHA,
610
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
611
+ };
612
+
613
+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
614
+ let str = '';
615
+ const {length} = alphabet;
616
+ while (size--) {
617
+ str += alphabet[Math.random() * length|0];
618
+ }
619
+
620
+ return str;
621
+ };
622
+
623
+ /**
624
+ * If the thing is a FormData object, return true, otherwise return false.
625
+ *
626
+ * @param {unknown} thing - The thing to check.
627
+ *
628
+ * @returns {boolean}
629
+ */
630
+ function isSpecCompliantForm(thing) {
631
+ return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
632
+ }
633
+
634
+ const toJSONObject = (obj) => {
635
+ const stack = new Array(10);
636
+
637
+ const visit = (source, i) => {
638
+
639
+ if (isObject(source)) {
640
+ if (stack.indexOf(source) >= 0) {
641
+ return;
642
+ }
643
+
644
+ if(!('toJSON' in source)) {
645
+ stack[i] = source;
646
+ const target = isArray(source) ? [] : {};
647
+
648
+ forEach(source, (value, key) => {
649
+ const reducedValue = visit(value, i + 1);
650
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
651
+ });
652
+
653
+ stack[i] = undefined;
654
+
655
+ return target;
656
+ }
657
+ }
658
+
659
+ return source;
660
+ };
661
+
662
+ return visit(obj, 0);
663
+ };
664
+
665
+ const utils = {
666
+ isArray,
667
+ isArrayBuffer,
668
+ isBuffer,
669
+ isFormData,
670
+ isArrayBufferView,
671
+ isString,
672
+ isNumber,
673
+ isBoolean,
674
+ isObject,
675
+ isPlainObject,
676
+ isUndefined,
677
+ isDate,
678
+ isFile,
679
+ isBlob,
680
+ isRegExp,
681
+ isFunction,
682
+ isStream,
683
+ isURLSearchParams,
684
+ isTypedArray,
685
+ isFileList,
686
+ forEach,
687
+ merge,
688
+ extend,
689
+ trim,
690
+ stripBOM,
691
+ inherits,
692
+ toFlatObject,
693
+ kindOf,
694
+ kindOfTest,
695
+ endsWith,
696
+ toArray,
697
+ forEachEntry,
698
+ matchAll,
699
+ isHTMLForm,
700
+ hasOwnProperty,
701
+ hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
702
+ reduceDescriptors,
703
+ freezeMethods,
704
+ toObjectSet,
705
+ toCamelCase,
706
+ noop,
707
+ toFiniteNumber,
708
+ findKey,
709
+ global: _global,
710
+ isContextDefined,
711
+ ALPHABET,
712
+ generateString,
713
+ isSpecCompliantForm,
714
+ toJSONObject
715
+ };
716
+
717
+ /**
718
+ * Create an Error with the specified message, config, error code, request and response.
719
+ *
720
+ * @param {string} message The error message.
721
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
722
+ * @param {Object} [config] The config.
723
+ * @param {Object} [request] The request.
724
+ * @param {Object} [response] The response.
725
+ *
726
+ * @returns {Error} The created error.
727
+ */
728
+ function AxiosError(message, code, config, request, response) {
729
+ Error.call(this);
730
+
731
+ if (Error.captureStackTrace) {
732
+ Error.captureStackTrace(this, this.constructor);
733
+ } else {
734
+ this.stack = (new Error()).stack;
735
+ }
736
+
737
+ this.message = message;
738
+ this.name = 'AxiosError';
739
+ code && (this.code = code);
740
+ config && (this.config = config);
741
+ request && (this.request = request);
742
+ response && (this.response = response);
743
+ }
744
+
745
+ utils.inherits(AxiosError, Error, {
746
+ toJSON: function toJSON() {
747
+ return {
748
+ // Standard
749
+ message: this.message,
750
+ name: this.name,
751
+ // Microsoft
752
+ description: this.description,
753
+ number: this.number,
754
+ // Mozilla
755
+ fileName: this.fileName,
756
+ lineNumber: this.lineNumber,
757
+ columnNumber: this.columnNumber,
758
+ stack: this.stack,
759
+ // Axios
760
+ config: utils.toJSONObject(this.config),
761
+ code: this.code,
762
+ status: this.response && this.response.status ? this.response.status : null
763
+ };
764
+ }
765
+ });
766
+
767
+ const prototype$1 = AxiosError.prototype;
768
+ const descriptors = {};
769
+
770
+ [
771
+ 'ERR_BAD_OPTION_VALUE',
772
+ 'ERR_BAD_OPTION',
773
+ 'ECONNABORTED',
774
+ 'ETIMEDOUT',
775
+ 'ERR_NETWORK',
776
+ 'ERR_FR_TOO_MANY_REDIRECTS',
777
+ 'ERR_DEPRECATED',
778
+ 'ERR_BAD_RESPONSE',
779
+ 'ERR_BAD_REQUEST',
780
+ 'ERR_CANCELED',
781
+ 'ERR_NOT_SUPPORT',
782
+ 'ERR_INVALID_URL'
783
+ // eslint-disable-next-line func-names
784
+ ].forEach(code => {
785
+ descriptors[code] = {value: code};
786
+ });
787
+
788
+ Object.defineProperties(AxiosError, descriptors);
789
+ Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
790
+
791
+ // eslint-disable-next-line func-names
792
+ AxiosError.from = (error, code, config, request, response, customProps) => {
793
+ const axiosError = Object.create(prototype$1);
794
+
795
+ utils.toFlatObject(error, axiosError, function filter(obj) {
796
+ return obj !== Error.prototype;
797
+ }, prop => {
798
+ return prop !== 'isAxiosError';
799
+ });
800
+
801
+ AxiosError.call(axiosError, error.message, code, config, request, response);
802
+
803
+ axiosError.cause = error;
804
+
805
+ axiosError.name = error.name;
806
+
807
+ customProps && Object.assign(axiosError, customProps);
808
+
809
+ return axiosError;
810
+ };
811
+
812
+ // eslint-disable-next-line strict
813
+ const httpAdapter = null;
814
+
815
+ /**
816
+ * Determines if the given thing is a array or js object.
817
+ *
818
+ * @param {string} thing - The object or array to be visited.
819
+ *
820
+ * @returns {boolean}
821
+ */
822
+ function isVisitable(thing) {
823
+ return utils.isPlainObject(thing) || utils.isArray(thing);
824
+ }
825
+
826
+ /**
827
+ * It removes the brackets from the end of a string
828
+ *
829
+ * @param {string} key - The key of the parameter.
830
+ *
831
+ * @returns {string} the key without the brackets.
832
+ */
833
+ function removeBrackets(key) {
834
+ return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
835
+ }
836
+
837
+ /**
838
+ * It takes a path, a key, and a boolean, and returns a string
839
+ *
840
+ * @param {string} path - The path to the current key.
841
+ * @param {string} key - The key of the current object being iterated over.
842
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
843
+ *
844
+ * @returns {string} The path to the current key.
845
+ */
846
+ function renderKey(path, key, dots) {
847
+ if (!path) return key;
848
+ return path.concat(key).map(function each(token, i) {
849
+ // eslint-disable-next-line no-param-reassign
850
+ token = removeBrackets(token);
851
+ return !dots && i ? '[' + token + ']' : token;
852
+ }).join(dots ? '.' : '');
853
+ }
854
+
855
+ /**
856
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
857
+ *
858
+ * @param {Array<any>} arr - The array to check
859
+ *
860
+ * @returns {boolean}
861
+ */
862
+ function isFlatArray(arr) {
863
+ return utils.isArray(arr) && !arr.some(isVisitable);
864
+ }
865
+
866
+ const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
867
+ return /^is[A-Z]/.test(prop);
868
+ });
869
+
870
+ /**
871
+ * Convert a data object to FormData
872
+ *
873
+ * @param {Object} obj
874
+ * @param {?Object} [formData]
875
+ * @param {?Object} [options]
876
+ * @param {Function} [options.visitor]
877
+ * @param {Boolean} [options.metaTokens = true]
878
+ * @param {Boolean} [options.dots = false]
879
+ * @param {?Boolean} [options.indexes = false]
880
+ *
881
+ * @returns {Object}
882
+ **/
883
+
884
+ /**
885
+ * It converts an object into a FormData object
886
+ *
887
+ * @param {Object<any, any>} obj - The object to convert to form data.
888
+ * @param {string} formData - The FormData object to append to.
889
+ * @param {Object<string, any>} options
890
+ *
891
+ * @returns
892
+ */
893
+ function toFormData(obj, formData, options) {
894
+ if (!utils.isObject(obj)) {
895
+ throw new TypeError('target must be an object');
896
+ }
897
+
898
+ // eslint-disable-next-line no-param-reassign
899
+ formData = formData || new (FormData)();
900
+
901
+ // eslint-disable-next-line no-param-reassign
902
+ options = utils.toFlatObject(options, {
903
+ metaTokens: true,
904
+ dots: false,
905
+ indexes: false
906
+ }, false, function defined(option, source) {
907
+ // eslint-disable-next-line no-eq-null,eqeqeq
908
+ return !utils.isUndefined(source[option]);
909
+ });
910
+
911
+ const metaTokens = options.metaTokens;
912
+ // eslint-disable-next-line no-use-before-define
913
+ const visitor = options.visitor || defaultVisitor;
914
+ const dots = options.dots;
915
+ const indexes = options.indexes;
916
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
917
+ const useBlob = _Blob && utils.isSpecCompliantForm(formData);
918
+
919
+ if (!utils.isFunction(visitor)) {
920
+ throw new TypeError('visitor must be a function');
921
+ }
922
+
923
+ function convertValue(value) {
924
+ if (value === null) return '';
925
+
926
+ if (utils.isDate(value)) {
927
+ return value.toISOString();
928
+ }
929
+
930
+ if (!useBlob && utils.isBlob(value)) {
931
+ throw new AxiosError('Blob is not supported. Use a Buffer instead.');
932
+ }
933
+
934
+ if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
935
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
936
+ }
937
+
938
+ return value;
939
+ }
940
+
941
+ /**
942
+ * Default visitor.
943
+ *
944
+ * @param {*} value
945
+ * @param {String|Number} key
946
+ * @param {Array<String|Number>} path
947
+ * @this {FormData}
948
+ *
949
+ * @returns {boolean} return true to visit the each prop of the value recursively
950
+ */
951
+ function defaultVisitor(value, key, path) {
952
+ let arr = value;
953
+
954
+ if (value && !path && typeof value === 'object') {
955
+ if (utils.endsWith(key, '{}')) {
956
+ // eslint-disable-next-line no-param-reassign
957
+ key = metaTokens ? key : key.slice(0, -2);
958
+ // eslint-disable-next-line no-param-reassign
959
+ value = JSON.stringify(value);
960
+ } else if (
961
+ (utils.isArray(value) && isFlatArray(value)) ||
962
+ ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
963
+ )) {
964
+ // eslint-disable-next-line no-param-reassign
965
+ key = removeBrackets(key);
966
+
967
+ arr.forEach(function each(el, index) {
968
+ !(utils.isUndefined(el) || el === null) && formData.append(
969
+ // eslint-disable-next-line no-nested-ternary
970
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
971
+ convertValue(el)
972
+ );
973
+ });
974
+ return false;
975
+ }
976
+ }
977
+
978
+ if (isVisitable(value)) {
979
+ return true;
980
+ }
981
+
982
+ formData.append(renderKey(path, key, dots), convertValue(value));
983
+
984
+ return false;
985
+ }
986
+
987
+ const stack = [];
988
+
989
+ const exposedHelpers = Object.assign(predicates, {
990
+ defaultVisitor,
991
+ convertValue,
992
+ isVisitable
993
+ });
994
+
995
+ function build(value, path) {
996
+ if (utils.isUndefined(value)) return;
997
+
998
+ if (stack.indexOf(value) !== -1) {
999
+ throw Error('Circular reference detected in ' + path.join('.'));
1000
+ }
1001
+
1002
+ stack.push(value);
1003
+
1004
+ utils.forEach(value, function each(el, key) {
1005
+ const result = !(utils.isUndefined(el) || el === null) && visitor.call(
1006
+ formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers
1007
+ );
1008
+
1009
+ if (result === true) {
1010
+ build(el, path ? path.concat(key) : [key]);
1011
+ }
1012
+ });
1013
+
1014
+ stack.pop();
1015
+ }
1016
+
1017
+ if (!utils.isObject(obj)) {
1018
+ throw new TypeError('data must be an object');
1019
+ }
1020
+
1021
+ build(obj);
1022
+
1023
+ return formData;
1024
+ }
1025
+
1026
+ /**
1027
+ * It encodes a string by replacing all characters that are not in the unreserved set with
1028
+ * their percent-encoded equivalents
1029
+ *
1030
+ * @param {string} str - The string to encode.
1031
+ *
1032
+ * @returns {string} The encoded string.
1033
+ */
1034
+ function encode$1(str) {
1035
+ const charMap = {
1036
+ '!': '%21',
1037
+ "'": '%27',
1038
+ '(': '%28',
1039
+ ')': '%29',
1040
+ '~': '%7E',
1041
+ '%20': '+',
1042
+ '%00': '\x00'
1043
+ };
1044
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
1045
+ return charMap[match];
1046
+ });
1047
+ }
1048
+
1049
+ /**
1050
+ * It takes a params object and converts it to a FormData object
1051
+ *
1052
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
1053
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
1054
+ *
1055
+ * @returns {void}
1056
+ */
1057
+ function AxiosURLSearchParams(params, options) {
1058
+ this._pairs = [];
1059
+
1060
+ params && toFormData(params, this, options);
1061
+ }
1062
+
1063
+ const prototype = AxiosURLSearchParams.prototype;
1064
+
1065
+ prototype.append = function append(name, value) {
1066
+ this._pairs.push([name, value]);
1067
+ };
1068
+
1069
+ prototype.toString = function toString(encoder) {
1070
+ const _encode = encoder ? function(value) {
1071
+ return encoder.call(this, value, encode$1);
1072
+ } : encode$1;
1073
+
1074
+ return this._pairs.map(function each(pair) {
1075
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
1076
+ }, '').join('&');
1077
+ };
1078
+
1079
+ /**
1080
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
1081
+ * URI encoded counterparts
1082
+ *
1083
+ * @param {string} val The value to be encoded.
1084
+ *
1085
+ * @returns {string} The encoded value.
1086
+ */
1087
+ function encode(val) {
1088
+ return encodeURIComponent(val).
1089
+ replace(/%3A/gi, ':').
1090
+ replace(/%24/g, '$').
1091
+ replace(/%2C/gi, ',').
1092
+ replace(/%20/g, '+').
1093
+ replace(/%5B/gi, '[').
1094
+ replace(/%5D/gi, ']');
1095
+ }
1096
+
1097
+ /**
1098
+ * Build a URL by appending params to the end
1099
+ *
1100
+ * @param {string} url The base of the url (e.g., http://www.google.com)
1101
+ * @param {object} [params] The params to be appended
1102
+ * @param {?object} options
1103
+ *
1104
+ * @returns {string} The formatted url
1105
+ */
1106
+ function buildURL(url, params, options) {
1107
+ /*eslint no-param-reassign:0*/
1108
+ if (!params) {
1109
+ return url;
1110
+ }
1111
+
1112
+ const _encode = options && options.encode || encode;
1113
+
1114
+ const serializeFn = options && options.serialize;
1115
+
1116
+ let serializedParams;
1117
+
1118
+ if (serializeFn) {
1119
+ serializedParams = serializeFn(params, options);
1120
+ } else {
1121
+ serializedParams = utils.isURLSearchParams(params) ?
1122
+ params.toString() :
1123
+ new AxiosURLSearchParams(params, options).toString(_encode);
1124
+ }
1125
+
1126
+ if (serializedParams) {
1127
+ const hashmarkIndex = url.indexOf("#");
1128
+
1129
+ if (hashmarkIndex !== -1) {
1130
+ url = url.slice(0, hashmarkIndex);
1131
+ }
1132
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
1133
+ }
1134
+
1135
+ return url;
1136
+ }
1137
+
1138
+ class InterceptorManager {
1139
+ constructor() {
1140
+ this.handlers = [];
1141
+ }
1142
+
1143
+ /**
1144
+ * Add a new interceptor to the stack
1145
+ *
1146
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1147
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1148
+ *
1149
+ * @return {Number} An ID used to remove interceptor later
1150
+ */
1151
+ use(fulfilled, rejected, options) {
1152
+ this.handlers.push({
1153
+ fulfilled,
1154
+ rejected,
1155
+ synchronous: options ? options.synchronous : false,
1156
+ runWhen: options ? options.runWhen : null
1157
+ });
1158
+ return this.handlers.length - 1;
1159
+ }
1160
+
1161
+ /**
1162
+ * Remove an interceptor from the stack
1163
+ *
1164
+ * @param {Number} id The ID that was returned by `use`
1165
+ *
1166
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1167
+ */
1168
+ eject(id) {
1169
+ if (this.handlers[id]) {
1170
+ this.handlers[id] = null;
1171
+ }
1172
+ }
1173
+
1174
+ /**
1175
+ * Clear all interceptors from the stack
1176
+ *
1177
+ * @returns {void}
1178
+ */
1179
+ clear() {
1180
+ if (this.handlers) {
1181
+ this.handlers = [];
1182
+ }
1183
+ }
1184
+
1185
+ /**
1186
+ * Iterate over all the registered interceptors
1187
+ *
1188
+ * This method is particularly useful for skipping over any
1189
+ * interceptors that may have become `null` calling `eject`.
1190
+ *
1191
+ * @param {Function} fn The function to call for each interceptor
1192
+ *
1193
+ * @returns {void}
1194
+ */
1195
+ forEach(fn) {
1196
+ utils.forEach(this.handlers, function forEachHandler(h) {
1197
+ if (h !== null) {
1198
+ fn(h);
1199
+ }
1200
+ });
1201
+ }
1202
+ }
1203
+
1204
+ const transitionalDefaults = {
1205
+ silentJSONParsing: true,
1206
+ forcedJSONParsing: true,
1207
+ clarifyTimeoutError: false
1208
+ };
1209
+
1210
+ const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
1211
+
1212
+ const FormData$1 = FormData;
1213
+
1214
+ /**
1215
+ * Determine if we're running in a standard browser environment
1216
+ *
1217
+ * This allows axios to run in a web worker, and react-native.
1218
+ * Both environments support XMLHttpRequest, but not fully standard globals.
1219
+ *
1220
+ * web workers:
1221
+ * typeof window -> undefined
1222
+ * typeof document -> undefined
1223
+ *
1224
+ * react-native:
1225
+ * navigator.product -> 'ReactNative'
1226
+ * nativescript
1227
+ * navigator.product -> 'NativeScript' or 'NS'
1228
+ *
1229
+ * @returns {boolean}
1230
+ */
1231
+ const isStandardBrowserEnv = (() => {
1232
+ let product;
1233
+ if (typeof navigator !== 'undefined' && (
1234
+ (product = navigator.product) === 'ReactNative' ||
1235
+ product === 'NativeScript' ||
1236
+ product === 'NS')
1237
+ ) {
1238
+ return false;
1239
+ }
1240
+
1241
+ return typeof window !== 'undefined' && typeof document !== 'undefined';
1242
+ })();
1243
+
1244
+ /**
1245
+ * Determine if we're running in a standard browser webWorker environment
1246
+ *
1247
+ * Although the `isStandardBrowserEnv` method indicates that
1248
+ * `allows axios to run in a web worker`, the WebWorker will still be
1249
+ * filtered out due to its judgment standard
1250
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
1251
+ * This leads to a problem when axios post `FormData` in webWorker
1252
+ */
1253
+ const isStandardBrowserWebWorkerEnv = (() => {
1254
+ return (
1255
+ typeof WorkerGlobalScope !== 'undefined' &&
1256
+ // eslint-disable-next-line no-undef
1257
+ self instanceof WorkerGlobalScope &&
1258
+ typeof self.importScripts === 'function'
1259
+ );
1260
+ })();
1261
+
1262
+
1263
+ const platform = {
1264
+ isBrowser: true,
1265
+ classes: {
1266
+ URLSearchParams: URLSearchParams$1,
1267
+ FormData: FormData$1,
1268
+ Blob
1269
+ },
1270
+ isStandardBrowserEnv,
1271
+ isStandardBrowserWebWorkerEnv,
1272
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1273
+ };
1274
+
1275
+ function toURLEncodedForm(data, options) {
1276
+ return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
1277
+ visitor: function(value, key, path, helpers) {
1278
+
1279
+ return helpers.defaultVisitor.apply(this, arguments);
1280
+ }
1281
+ }, options));
1282
+ }
1283
+
1284
+ /**
1285
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1286
+ *
1287
+ * @param {string} name - The name of the property to get.
1288
+ *
1289
+ * @returns An array of strings.
1290
+ */
1291
+ function parsePropPath(name) {
1292
+ // foo[x][y][z]
1293
+ // foo.x.y.z
1294
+ // foo-x-y-z
1295
+ // foo x y z
1296
+ return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1297
+ return match[0] === '[]' ? '' : match[1] || match[0];
1298
+ });
1299
+ }
1300
+
1301
+ /**
1302
+ * Convert an array to an object.
1303
+ *
1304
+ * @param {Array<any>} arr - The array to convert to an object.
1305
+ *
1306
+ * @returns An object with the same keys and values as the array.
1307
+ */
1308
+ function arrayToObject(arr) {
1309
+ const obj = {};
1310
+ const keys = Object.keys(arr);
1311
+ let i;
1312
+ const len = keys.length;
1313
+ let key;
1314
+ for (i = 0; i < len; i++) {
1315
+ key = keys[i];
1316
+ obj[key] = arr[key];
1317
+ }
1318
+ return obj;
1319
+ }
1320
+
1321
+ /**
1322
+ * It takes a FormData object and returns a JavaScript object
1323
+ *
1324
+ * @param {string} formData The FormData object to convert to JSON.
1325
+ *
1326
+ * @returns {Object<string, any> | null} The converted object.
1327
+ */
1328
+ function formDataToJSON(formData) {
1329
+ function buildPath(path, value, target, index) {
1330
+ let name = path[index++];
1331
+ const isNumericKey = Number.isFinite(+name);
1332
+ const isLast = index >= path.length;
1333
+ name = !name && utils.isArray(target) ? target.length : name;
1334
+
1335
+ if (isLast) {
1336
+ if (utils.hasOwnProp(target, name)) {
1337
+ target[name] = [target[name], value];
1338
+ } else {
1339
+ target[name] = value;
1340
+ }
1341
+
1342
+ return !isNumericKey;
1343
+ }
1344
+
1345
+ if (!target[name] || !utils.isObject(target[name])) {
1346
+ target[name] = [];
1347
+ }
1348
+
1349
+ const result = buildPath(path, value, target[name], index);
1350
+
1351
+ if (result && utils.isArray(target[name])) {
1352
+ target[name] = arrayToObject(target[name]);
1353
+ }
1354
+
1355
+ return !isNumericKey;
1356
+ }
1357
+
1358
+ if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
1359
+ const obj = {};
1360
+
1361
+ utils.forEachEntry(formData, (name, value) => {
1362
+ buildPath(parsePropPath(name), value, obj, 0);
1363
+ });
1364
+
1365
+ return obj;
1366
+ }
1367
+
1368
+ return null;
1369
+ }
1370
+
1371
+ const DEFAULT_CONTENT_TYPE = {
1372
+ 'Content-Type': undefined
1373
+ };
1374
+
1375
+ /**
1376
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1377
+ * of the input
1378
+ *
1379
+ * @param {any} rawValue - The value to be stringified.
1380
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
1381
+ * @param {Function} encoder - A function that takes a value and returns a string.
1382
+ *
1383
+ * @returns {string} A stringified version of the rawValue.
1384
+ */
1385
+ function stringifySafely(rawValue, parser, encoder) {
1386
+ if (utils.isString(rawValue)) {
1387
+ try {
1388
+ (parser || JSON.parse)(rawValue);
1389
+ return utils.trim(rawValue);
1390
+ } catch (e) {
1391
+ if (e.name !== 'SyntaxError') {
1392
+ throw e;
1393
+ }
1394
+ }
1395
+ }
1396
+
1397
+ return (encoder || JSON.stringify)(rawValue);
1398
+ }
1399
+
1400
+ const defaults = {
1401
+
1402
+ transitional: transitionalDefaults,
1403
+
1404
+ adapter: ['xhr', 'http'],
1405
+
1406
+ transformRequest: [function transformRequest(data, headers) {
1407
+ const contentType = headers.getContentType() || '';
1408
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
1409
+ const isObjectPayload = utils.isObject(data);
1410
+
1411
+ if (isObjectPayload && utils.isHTMLForm(data)) {
1412
+ data = new FormData(data);
1413
+ }
1414
+
1415
+ const isFormData = utils.isFormData(data);
1416
+
1417
+ if (isFormData) {
1418
+ if (!hasJSONContentType) {
1419
+ return data;
1420
+ }
1421
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1422
+ }
1423
+
1424
+ if (utils.isArrayBuffer(data) ||
1425
+ utils.isBuffer(data) ||
1426
+ utils.isStream(data) ||
1427
+ utils.isFile(data) ||
1428
+ utils.isBlob(data)
1429
+ ) {
1430
+ return data;
1431
+ }
1432
+ if (utils.isArrayBufferView(data)) {
1433
+ return data.buffer;
1434
+ }
1435
+ if (utils.isURLSearchParams(data)) {
1436
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1437
+ return data.toString();
1438
+ }
1439
+
1440
+ let isFileList;
1441
+
1442
+ if (isObjectPayload) {
1443
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1444
+ return toURLEncodedForm(data, this.formSerializer).toString();
1445
+ }
1446
+
1447
+ if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1448
+ const _FormData = this.env && this.env.FormData;
1449
+
1450
+ return toFormData(
1451
+ isFileList ? {'files[]': data} : data,
1452
+ _FormData && new _FormData(),
1453
+ this.formSerializer
1454
+ );
1455
+ }
1456
+ }
1457
+
1458
+ if (isObjectPayload || hasJSONContentType ) {
1459
+ headers.setContentType('application/json', false);
1460
+ return stringifySafely(data);
1461
+ }
1462
+
1463
+ return data;
1464
+ }],
1465
+
1466
+ transformResponse: [function transformResponse(data) {
1467
+ const transitional = this.transitional || defaults.transitional;
1468
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1469
+ const JSONRequested = this.responseType === 'json';
1470
+
1471
+ if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1472
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
1473
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1474
+
1475
+ try {
1476
+ return JSON.parse(data);
1477
+ } catch (e) {
1478
+ if (strictJSONParsing) {
1479
+ if (e.name === 'SyntaxError') {
1480
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
1481
+ }
1482
+ throw e;
1483
+ }
1484
+ }
1485
+ }
1486
+
1487
+ return data;
1488
+ }],
1489
+
1490
+ /**
1491
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1492
+ * timeout is not created.
1493
+ */
1494
+ timeout: 0,
1495
+
1496
+ xsrfCookieName: 'XSRF-TOKEN',
1497
+ xsrfHeaderName: 'X-XSRF-TOKEN',
1498
+
1499
+ maxContentLength: -1,
1500
+ maxBodyLength: -1,
1501
+
1502
+ env: {
1503
+ FormData: platform.classes.FormData,
1504
+ Blob: platform.classes.Blob
1505
+ },
1506
+
1507
+ validateStatus: function validateStatus(status) {
1508
+ return status >= 200 && status < 300;
1509
+ },
1510
+
1511
+ headers: {
1512
+ common: {
1513
+ 'Accept': 'application/json, text/plain, */*'
1514
+ }
1515
+ }
1516
+ };
1517
+
1518
+ utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
1519
+ defaults.headers[method] = {};
1520
+ });
1521
+
1522
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1523
+ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
1524
+ });
1525
+
1526
+ // RawAxiosHeaders whose duplicates are ignored by node
1527
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
1528
+ const ignoreDuplicateOf = utils.toObjectSet([
1529
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
1530
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1531
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1532
+ 'referer', 'retry-after', 'user-agent'
1533
+ ]);
1534
+
1535
+ /**
1536
+ * Parse headers into an object
1537
+ *
1538
+ * ```
1539
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
1540
+ * Content-Type: application/json
1541
+ * Connection: keep-alive
1542
+ * Transfer-Encoding: chunked
1543
+ * ```
1544
+ *
1545
+ * @param {String} rawHeaders Headers needing to be parsed
1546
+ *
1547
+ * @returns {Object} Headers parsed into an object
1548
+ */
1549
+ const parseHeaders = rawHeaders => {
1550
+ const parsed = {};
1551
+ let key;
1552
+ let val;
1553
+ let i;
1554
+
1555
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
1556
+ i = line.indexOf(':');
1557
+ key = line.substring(0, i).trim().toLowerCase();
1558
+ val = line.substring(i + 1).trim();
1559
+
1560
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1561
+ return;
1562
+ }
1563
+
1564
+ if (key === 'set-cookie') {
1565
+ if (parsed[key]) {
1566
+ parsed[key].push(val);
1567
+ } else {
1568
+ parsed[key] = [val];
1569
+ }
1570
+ } else {
1571
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1572
+ }
1573
+ });
1574
+
1575
+ return parsed;
1576
+ };
1577
+
1578
+ const $internals = Symbol('internals');
1579
+
1580
+ function normalizeHeader(header) {
1581
+ return header && String(header).trim().toLowerCase();
1582
+ }
1583
+
1584
+ function normalizeValue(value) {
1585
+ if (value === false || value == null) {
1586
+ return value;
1587
+ }
1588
+
1589
+ return utils.isArray(value) ? value.map(normalizeValue) : String(value);
1590
+ }
1591
+
1592
+ function parseTokens(str) {
1593
+ const tokens = Object.create(null);
1594
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1595
+ let match;
1596
+
1597
+ while ((match = tokensRE.exec(str))) {
1598
+ tokens[match[1]] = match[2];
1599
+ }
1600
+
1601
+ return tokens;
1602
+ }
1603
+
1604
+ function isValidHeaderName(str) {
1605
+ return /^[-_a-zA-Z]+$/.test(str.trim());
1606
+ }
1607
+
1608
+ function matchHeaderValue(context, value, header, filter) {
1609
+ if (utils.isFunction(filter)) {
1610
+ return filter.call(this, value, header);
1611
+ }
1612
+
1613
+ if (!utils.isString(value)) return;
1614
+
1615
+ if (utils.isString(filter)) {
1616
+ return value.indexOf(filter) !== -1;
1617
+ }
1618
+
1619
+ if (utils.isRegExp(filter)) {
1620
+ return filter.test(value);
1621
+ }
1622
+ }
1623
+
1624
+ function formatHeader(header) {
1625
+ return header.trim()
1626
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1627
+ return char.toUpperCase() + str;
1628
+ });
1629
+ }
1630
+
1631
+ function buildAccessors(obj, header) {
1632
+ const accessorName = utils.toCamelCase(' ' + header);
1633
+
1634
+ ['get', 'set', 'has'].forEach(methodName => {
1635
+ Object.defineProperty(obj, methodName + accessorName, {
1636
+ value: function(arg1, arg2, arg3) {
1637
+ return this[methodName].call(this, header, arg1, arg2, arg3);
1638
+ },
1639
+ configurable: true
1640
+ });
1641
+ });
1642
+ }
1643
+
1644
+ class AxiosHeaders {
1645
+ constructor(headers) {
1646
+ headers && this.set(headers);
1647
+ }
1648
+
1649
+ set(header, valueOrRewrite, rewrite) {
1650
+ const self = this;
1651
+
1652
+ function setHeader(_value, _header, _rewrite) {
1653
+ const lHeader = normalizeHeader(_header);
1654
+
1655
+ if (!lHeader) {
1656
+ throw new Error('header name must be a non-empty string');
1657
+ }
1658
+
1659
+ const key = utils.findKey(self, lHeader);
1660
+
1661
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
1662
+ self[key || _header] = normalizeValue(_value);
1663
+ }
1664
+ }
1665
+
1666
+ const setHeaders = (headers, _rewrite) =>
1667
+ utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1668
+
1669
+ if (utils.isPlainObject(header) || header instanceof this.constructor) {
1670
+ setHeaders(header, valueOrRewrite);
1671
+ } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1672
+ setHeaders(parseHeaders(header), valueOrRewrite);
1673
+ } else {
1674
+ header != null && setHeader(valueOrRewrite, header, rewrite);
1675
+ }
1676
+
1677
+ return this;
1678
+ }
1679
+
1680
+ get(header, parser) {
1681
+ header = normalizeHeader(header);
1682
+
1683
+ if (header) {
1684
+ const key = utils.findKey(this, header);
1685
+
1686
+ if (key) {
1687
+ const value = this[key];
1688
+
1689
+ if (!parser) {
1690
+ return value;
1691
+ }
1692
+
1693
+ if (parser === true) {
1694
+ return parseTokens(value);
1695
+ }
1696
+
1697
+ if (utils.isFunction(parser)) {
1698
+ return parser.call(this, value, key);
1699
+ }
1700
+
1701
+ if (utils.isRegExp(parser)) {
1702
+ return parser.exec(value);
1703
+ }
1704
+
1705
+ throw new TypeError('parser must be boolean|regexp|function');
1706
+ }
1707
+ }
1708
+ }
1709
+
1710
+ has(header, matcher) {
1711
+ header = normalizeHeader(header);
1712
+
1713
+ if (header) {
1714
+ const key = utils.findKey(this, header);
1715
+
1716
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1717
+ }
1718
+
1719
+ return false;
1720
+ }
1721
+
1722
+ delete(header, matcher) {
1723
+ const self = this;
1724
+ let deleted = false;
1725
+
1726
+ function deleteHeader(_header) {
1727
+ _header = normalizeHeader(_header);
1728
+
1729
+ if (_header) {
1730
+ const key = utils.findKey(self, _header);
1731
+
1732
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
1733
+ delete self[key];
1734
+
1735
+ deleted = true;
1736
+ }
1737
+ }
1738
+ }
1739
+
1740
+ if (utils.isArray(header)) {
1741
+ header.forEach(deleteHeader);
1742
+ } else {
1743
+ deleteHeader(header);
1744
+ }
1745
+
1746
+ return deleted;
1747
+ }
1748
+
1749
+ clear(matcher) {
1750
+ const keys = Object.keys(this);
1751
+ let i = keys.length;
1752
+ let deleted = false;
1753
+
1754
+ while (i--) {
1755
+ const key = keys[i];
1756
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher)) {
1757
+ delete this[key];
1758
+ deleted = true;
1759
+ }
1760
+ }
1761
+
1762
+ return deleted;
1763
+ }
1764
+
1765
+ normalize(format) {
1766
+ const self = this;
1767
+ const headers = {};
1768
+
1769
+ utils.forEach(this, (value, header) => {
1770
+ const key = utils.findKey(headers, header);
1771
+
1772
+ if (key) {
1773
+ self[key] = normalizeValue(value);
1774
+ delete self[header];
1775
+ return;
1776
+ }
1777
+
1778
+ const normalized = format ? formatHeader(header) : String(header).trim();
1779
+
1780
+ if (normalized !== header) {
1781
+ delete self[header];
1782
+ }
1783
+
1784
+ self[normalized] = normalizeValue(value);
1785
+
1786
+ headers[normalized] = true;
1787
+ });
1788
+
1789
+ return this;
1790
+ }
1791
+
1792
+ concat(...targets) {
1793
+ return this.constructor.concat(this, ...targets);
1794
+ }
1795
+
1796
+ toJSON(asStrings) {
1797
+ const obj = Object.create(null);
1798
+
1799
+ utils.forEach(this, (value, header) => {
1800
+ value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);
1801
+ });
1802
+
1803
+ return obj;
1804
+ }
1805
+
1806
+ [Symbol.iterator]() {
1807
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1808
+ }
1809
+
1810
+ toString() {
1811
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
1812
+ }
1813
+
1814
+ get [Symbol.toStringTag]() {
1815
+ return 'AxiosHeaders';
1816
+ }
1817
+
1818
+ static from(thing) {
1819
+ return thing instanceof this ? thing : new this(thing);
1820
+ }
1821
+
1822
+ static concat(first, ...targets) {
1823
+ const computed = new this(first);
1824
+
1825
+ targets.forEach((target) => computed.set(target));
1826
+
1827
+ return computed;
1828
+ }
1829
+
1830
+ static accessor(header) {
1831
+ const internals = this[$internals] = (this[$internals] = {
1832
+ accessors: {}
1833
+ });
1834
+
1835
+ const accessors = internals.accessors;
1836
+ const prototype = this.prototype;
1837
+
1838
+ function defineAccessor(_header) {
1839
+ const lHeader = normalizeHeader(_header);
1840
+
1841
+ if (!accessors[lHeader]) {
1842
+ buildAccessors(prototype, _header);
1843
+ accessors[lHeader] = true;
1844
+ }
1845
+ }
1846
+
1847
+ utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
1848
+
1849
+ return this;
1850
+ }
1851
+ }
1852
+
1853
+ AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
1854
+
1855
+ utils.freezeMethods(AxiosHeaders.prototype);
1856
+ utils.freezeMethods(AxiosHeaders);
1857
+
1858
+ /**
1859
+ * Transform the data for a request or a response
1860
+ *
1861
+ * @param {Array|Function} fns A single function or Array of functions
1862
+ * @param {?Object} response The response object
1863
+ *
1864
+ * @returns {*} The resulting transformed data
1865
+ */
1866
+ function transformData(fns, response) {
1867
+ const config = this || defaults;
1868
+ const context = response || config;
1869
+ const headers = AxiosHeaders.from(context.headers);
1870
+ let data = context.data;
1871
+
1872
+ utils.forEach(fns, function transform(fn) {
1873
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
1874
+ });
1875
+
1876
+ headers.normalize();
1877
+
1878
+ return data;
1879
+ }
1880
+
1881
+ function isCancel(value) {
1882
+ return !!(value && value.__CANCEL__);
1883
+ }
1884
+
1885
+ /**
1886
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
1887
+ *
1888
+ * @param {string=} message The message.
1889
+ * @param {Object=} config The config.
1890
+ * @param {Object=} request The request.
1891
+ *
1892
+ * @returns {CanceledError} The created error.
1893
+ */
1894
+ function CanceledError(message, config, request) {
1895
+ // eslint-disable-next-line no-eq-null,eqeqeq
1896
+ AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
1897
+ this.name = 'CanceledError';
1898
+ }
1899
+
1900
+ utils.inherits(CanceledError, AxiosError, {
1901
+ __CANCEL__: true
1902
+ });
1903
+
1904
+ /**
1905
+ * Resolve or reject a Promise based on response status.
1906
+ *
1907
+ * @param {Function} resolve A function that resolves the promise.
1908
+ * @param {Function} reject A function that rejects the promise.
1909
+ * @param {object} response The response.
1910
+ *
1911
+ * @returns {object} The response.
1912
+ */
1913
+ function settle(resolve, reject, response) {
1914
+ const validateStatus = response.config.validateStatus;
1915
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
1916
+ resolve(response);
1917
+ } else {
1918
+ reject(new AxiosError(
1919
+ 'Request failed with status code ' + response.status,
1920
+ [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
1921
+ response.config,
1922
+ response.request,
1923
+ response
1924
+ ));
1925
+ }
1926
+ }
1927
+
1928
+ const cookies = platform.isStandardBrowserEnv ?
1929
+
1930
+ // Standard browser envs support document.cookie
1931
+ (function standardBrowserEnv() {
1932
+ return {
1933
+ write: function write(name, value, expires, path, domain, secure) {
1934
+ const cookie = [];
1935
+ cookie.push(name + '=' + encodeURIComponent(value));
1936
+
1937
+ if (utils.isNumber(expires)) {
1938
+ cookie.push('expires=' + new Date(expires).toGMTString());
1939
+ }
1940
+
1941
+ if (utils.isString(path)) {
1942
+ cookie.push('path=' + path);
1943
+ }
1944
+
1945
+ if (utils.isString(domain)) {
1946
+ cookie.push('domain=' + domain);
1947
+ }
1948
+
1949
+ if (secure === true) {
1950
+ cookie.push('secure');
1951
+ }
1952
+
1953
+ document.cookie = cookie.join('; ');
1954
+ },
1955
+
1956
+ read: function read(name) {
1957
+ const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
1958
+ return (match ? decodeURIComponent(match[3]) : null);
1959
+ },
1960
+
1961
+ remove: function remove(name) {
1962
+ this.write(name, '', Date.now() - 86400000);
1963
+ }
1964
+ };
1965
+ })() :
1966
+
1967
+ // Non standard browser env (web workers, react-native) lack needed support.
1968
+ (function nonStandardBrowserEnv() {
1969
+ return {
1970
+ write: function write() {},
1971
+ read: function read() { return null; },
1972
+ remove: function remove() {}
1973
+ };
1974
+ })();
1975
+
1976
+ /**
1977
+ * Determines whether the specified URL is absolute
1978
+ *
1979
+ * @param {string} url The URL to test
1980
+ *
1981
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
1982
+ */
1983
+ function isAbsoluteURL(url) {
1984
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
1985
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
1986
+ // by any combination of letters, digits, plus, period, or hyphen.
1987
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
1988
+ }
1989
+
1990
+ /**
1991
+ * Creates a new URL by combining the specified URLs
1992
+ *
1993
+ * @param {string} baseURL The base URL
1994
+ * @param {string} relativeURL The relative URL
1995
+ *
1996
+ * @returns {string} The combined URL
1997
+ */
1998
+ function combineURLs(baseURL, relativeURL) {
1999
+ return relativeURL
2000
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2001
+ : baseURL;
2002
+ }
2003
+
2004
+ /**
2005
+ * Creates a new URL by combining the baseURL with the requestedURL,
2006
+ * only when the requestedURL is not already an absolute URL.
2007
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
2008
+ *
2009
+ * @param {string} baseURL The base URL
2010
+ * @param {string} requestedURL Absolute or relative URL to combine
2011
+ *
2012
+ * @returns {string} The combined full path
2013
+ */
2014
+ function buildFullPath(baseURL, requestedURL) {
2015
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
2016
+ return combineURLs(baseURL, requestedURL);
2017
+ }
2018
+ return requestedURL;
2019
+ }
2020
+
2021
+ const isURLSameOrigin = platform.isStandardBrowserEnv ?
2022
+
2023
+ // Standard browser envs have full support of the APIs needed to test
2024
+ // whether the request URL is of the same origin as current location.
2025
+ (function standardBrowserEnv() {
2026
+ const msie = /(msie|trident)/i.test(navigator.userAgent);
2027
+ const urlParsingNode = document.createElement('a');
2028
+ let originURL;
2029
+
2030
+ /**
2031
+ * Parse a URL to discover it's components
2032
+ *
2033
+ * @param {String} url The URL to be parsed
2034
+ * @returns {Object}
2035
+ */
2036
+ function resolveURL(url) {
2037
+ let href = url;
2038
+
2039
+ if (msie) {
2040
+ // IE needs attribute set twice to normalize properties
2041
+ urlParsingNode.setAttribute('href', href);
2042
+ href = urlParsingNode.href;
2043
+ }
2044
+
2045
+ urlParsingNode.setAttribute('href', href);
2046
+
2047
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
2048
+ return {
2049
+ href: urlParsingNode.href,
2050
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
2051
+ host: urlParsingNode.host,
2052
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
2053
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
2054
+ hostname: urlParsingNode.hostname,
2055
+ port: urlParsingNode.port,
2056
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
2057
+ urlParsingNode.pathname :
2058
+ '/' + urlParsingNode.pathname
2059
+ };
2060
+ }
2061
+
2062
+ originURL = resolveURL(window.location.href);
2063
+
2064
+ /**
2065
+ * Determine if a URL shares the same origin as the current location
2066
+ *
2067
+ * @param {String} requestURL The URL to test
2068
+ * @returns {boolean} True if URL shares the same origin, otherwise false
2069
+ */
2070
+ return function isURLSameOrigin(requestURL) {
2071
+ const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
2072
+ return (parsed.protocol === originURL.protocol &&
2073
+ parsed.host === originURL.host);
2074
+ };
2075
+ })() :
2076
+
2077
+ // Non standard browser envs (web workers, react-native) lack needed support.
2078
+ (function nonStandardBrowserEnv() {
2079
+ return function isURLSameOrigin() {
2080
+ return true;
2081
+ };
2082
+ })();
2083
+
2084
+ function parseProtocol(url) {
2085
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2086
+ return match && match[1] || '';
2087
+ }
2088
+
2089
+ /**
2090
+ * Calculate data maxRate
2091
+ * @param {Number} [samplesCount= 10]
2092
+ * @param {Number} [min= 1000]
2093
+ * @returns {Function}
2094
+ */
2095
+ function speedometer(samplesCount, min) {
2096
+ samplesCount = samplesCount || 10;
2097
+ const bytes = new Array(samplesCount);
2098
+ const timestamps = new Array(samplesCount);
2099
+ let head = 0;
2100
+ let tail = 0;
2101
+ let firstSampleTS;
2102
+
2103
+ min = min !== undefined ? min : 1000;
2104
+
2105
+ return function push(chunkLength) {
2106
+ const now = Date.now();
2107
+
2108
+ const startedAt = timestamps[tail];
2109
+
2110
+ if (!firstSampleTS) {
2111
+ firstSampleTS = now;
2112
+ }
2113
+
2114
+ bytes[head] = chunkLength;
2115
+ timestamps[head] = now;
2116
+
2117
+ let i = tail;
2118
+ let bytesCount = 0;
2119
+
2120
+ while (i !== head) {
2121
+ bytesCount += bytes[i++];
2122
+ i = i % samplesCount;
2123
+ }
2124
+
2125
+ head = (head + 1) % samplesCount;
2126
+
2127
+ if (head === tail) {
2128
+ tail = (tail + 1) % samplesCount;
2129
+ }
2130
+
2131
+ if (now - firstSampleTS < min) {
2132
+ return;
2133
+ }
2134
+
2135
+ const passed = startedAt && now - startedAt;
2136
+
2137
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2138
+ };
2139
+ }
2140
+
2141
+ function progressEventReducer(listener, isDownloadStream) {
2142
+ let bytesNotified = 0;
2143
+ const _speedometer = speedometer(50, 250);
2144
+
2145
+ return e => {
2146
+ const loaded = e.loaded;
2147
+ const total = e.lengthComputable ? e.total : undefined;
2148
+ const progressBytes = loaded - bytesNotified;
2149
+ const rate = _speedometer(progressBytes);
2150
+ const inRange = loaded <= total;
2151
+
2152
+ bytesNotified = loaded;
2153
+
2154
+ const data = {
2155
+ loaded,
2156
+ total,
2157
+ progress: total ? (loaded / total) : undefined,
2158
+ bytes: progressBytes,
2159
+ rate: rate ? rate : undefined,
2160
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2161
+ event: e
2162
+ };
2163
+
2164
+ data[isDownloadStream ? 'download' : 'upload'] = true;
2165
+
2166
+ listener(data);
2167
+ };
2168
+ }
2169
+
2170
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2171
+
2172
+ const xhrAdapter = isXHRAdapterSupported && function (config) {
2173
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2174
+ let requestData = config.data;
2175
+ const requestHeaders = AxiosHeaders.from(config.headers).normalize();
2176
+ const responseType = config.responseType;
2177
+ let onCanceled;
2178
+ function done() {
2179
+ if (config.cancelToken) {
2180
+ config.cancelToken.unsubscribe(onCanceled);
2181
+ }
2182
+
2183
+ if (config.signal) {
2184
+ config.signal.removeEventListener('abort', onCanceled);
2185
+ }
2186
+ }
2187
+
2188
+ if (utils.isFormData(requestData) && (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv)) {
2189
+ requestHeaders.setContentType(false); // Let the browser set it
2190
+ }
2191
+
2192
+ let request = new XMLHttpRequest();
2193
+
2194
+ // HTTP basic authentication
2195
+ if (config.auth) {
2196
+ const username = config.auth.username || '';
2197
+ const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
2198
+ requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
2199
+ }
2200
+
2201
+ const fullPath = buildFullPath(config.baseURL, config.url);
2202
+
2203
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
2204
+
2205
+ // Set the request timeout in MS
2206
+ request.timeout = config.timeout;
2207
+
2208
+ function onloadend() {
2209
+ if (!request) {
2210
+ return;
2211
+ }
2212
+ // Prepare the response
2213
+ const responseHeaders = AxiosHeaders.from(
2214
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
2215
+ );
2216
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
2217
+ request.responseText : request.response;
2218
+ const response = {
2219
+ data: responseData,
2220
+ status: request.status,
2221
+ statusText: request.statusText,
2222
+ headers: responseHeaders,
2223
+ config,
2224
+ request
2225
+ };
2226
+
2227
+ settle(function _resolve(value) {
2228
+ resolve(value);
2229
+ done();
2230
+ }, function _reject(err) {
2231
+ reject(err);
2232
+ done();
2233
+ }, response);
2234
+
2235
+ // Clean up request
2236
+ request = null;
2237
+ }
2238
+
2239
+ if ('onloadend' in request) {
2240
+ // Use onloadend if available
2241
+ request.onloadend = onloadend;
2242
+ } else {
2243
+ // Listen for ready state to emulate onloadend
2244
+ request.onreadystatechange = function handleLoad() {
2245
+ if (!request || request.readyState !== 4) {
2246
+ return;
2247
+ }
2248
+
2249
+ // The request errored out and we didn't get a response, this will be
2250
+ // handled by onerror instead
2251
+ // With one exception: request that using file: protocol, most browsers
2252
+ // will return status as 0 even though it's a successful request
2253
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
2254
+ return;
2255
+ }
2256
+ // readystate handler is calling before onerror or ontimeout handlers,
2257
+ // so we should call onloadend on the next 'tick'
2258
+ setTimeout(onloadend);
2259
+ };
2260
+ }
2261
+
2262
+ // Handle browser request cancellation (as opposed to a manual cancellation)
2263
+ request.onabort = function handleAbort() {
2264
+ if (!request) {
2265
+ return;
2266
+ }
2267
+
2268
+ reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
2269
+
2270
+ // Clean up request
2271
+ request = null;
2272
+ };
2273
+
2274
+ // Handle low level network errors
2275
+ request.onerror = function handleError() {
2276
+ // Real errors are hidden from us by the browser
2277
+ // onerror should only fire if it's a network error
2278
+ reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
2279
+
2280
+ // Clean up request
2281
+ request = null;
2282
+ };
2283
+
2284
+ // Handle timeout
2285
+ request.ontimeout = function handleTimeout() {
2286
+ let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
2287
+ const transitional = config.transitional || transitionalDefaults;
2288
+ if (config.timeoutErrorMessage) {
2289
+ timeoutErrorMessage = config.timeoutErrorMessage;
2290
+ }
2291
+ reject(new AxiosError(
2292
+ timeoutErrorMessage,
2293
+ transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
2294
+ config,
2295
+ request));
2296
+
2297
+ // Clean up request
2298
+ request = null;
2299
+ };
2300
+
2301
+ // Add xsrf header
2302
+ // This is only done if running in a standard browser environment.
2303
+ // Specifically not if we're in a web worker, or react-native.
2304
+ if (platform.isStandardBrowserEnv) {
2305
+ // Add xsrf header
2306
+ const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))
2307
+ && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
2308
+
2309
+ if (xsrfValue) {
2310
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
2311
+ }
2312
+ }
2313
+
2314
+ // Remove Content-Type if data is undefined
2315
+ requestData === undefined && requestHeaders.setContentType(null);
2316
+
2317
+ // Add headers to the request
2318
+ if ('setRequestHeader' in request) {
2319
+ utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2320
+ request.setRequestHeader(key, val);
2321
+ });
2322
+ }
2323
+
2324
+ // Add withCredentials to request if needed
2325
+ if (!utils.isUndefined(config.withCredentials)) {
2326
+ request.withCredentials = !!config.withCredentials;
2327
+ }
2328
+
2329
+ // Add responseType to request if needed
2330
+ if (responseType && responseType !== 'json') {
2331
+ request.responseType = config.responseType;
2332
+ }
2333
+
2334
+ // Handle progress if needed
2335
+ if (typeof config.onDownloadProgress === 'function') {
2336
+ request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
2337
+ }
2338
+
2339
+ // Not all browsers support upload events
2340
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
2341
+ request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
2342
+ }
2343
+
2344
+ if (config.cancelToken || config.signal) {
2345
+ // Handle cancellation
2346
+ // eslint-disable-next-line func-names
2347
+ onCanceled = cancel => {
2348
+ if (!request) {
2349
+ return;
2350
+ }
2351
+ reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
2352
+ request.abort();
2353
+ request = null;
2354
+ };
2355
+
2356
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
2357
+ if (config.signal) {
2358
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
2359
+ }
2360
+ }
2361
+
2362
+ const protocol = parseProtocol(fullPath);
2363
+
2364
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
2365
+ reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
2366
+ return;
2367
+ }
2368
+
2369
+
2370
+ // Send the request
2371
+ request.send(requestData || null);
2372
+ });
2373
+ };
2374
+
2375
+ const knownAdapters = {
2376
+ http: httpAdapter,
2377
+ xhr: xhrAdapter
2378
+ };
2379
+
2380
+ utils.forEach(knownAdapters, (fn, value) => {
2381
+ if(fn) {
2382
+ try {
2383
+ Object.defineProperty(fn, 'name', {value});
2384
+ } catch (e) {
2385
+ // eslint-disable-next-line no-empty
2386
+ }
2387
+ Object.defineProperty(fn, 'adapterName', {value});
2388
+ }
2389
+ });
2390
+
2391
+ const adapters = {
2392
+ getAdapter: (adapters) => {
2393
+ adapters = utils.isArray(adapters) ? adapters : [adapters];
2394
+
2395
+ const {length} = adapters;
2396
+ let nameOrAdapter;
2397
+ let adapter;
2398
+
2399
+ for (let i = 0; i < length; i++) {
2400
+ nameOrAdapter = adapters[i];
2401
+ if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {
2402
+ break;
2403
+ }
2404
+ }
2405
+
2406
+ if (!adapter) {
2407
+ if (adapter === false) {
2408
+ throw new AxiosError(
2409
+ `Adapter ${nameOrAdapter} is not supported by the environment`,
2410
+ 'ERR_NOT_SUPPORT'
2411
+ );
2412
+ }
2413
+
2414
+ throw new Error(
2415
+ utils.hasOwnProp(knownAdapters, nameOrAdapter) ?
2416
+ `Adapter '${nameOrAdapter}' is not available in the build` :
2417
+ `Unknown adapter '${nameOrAdapter}'`
2418
+ );
2419
+ }
2420
+
2421
+ if (!utils.isFunction(adapter)) {
2422
+ throw new TypeError('adapter is not a function');
2423
+ }
2424
+
2425
+ return adapter;
2426
+ },
2427
+ adapters: knownAdapters
2428
+ };
2429
+
2430
+ /**
2431
+ * Throws a `CanceledError` if cancellation has been requested.
2432
+ *
2433
+ * @param {Object} config The config that is to be used for the request
2434
+ *
2435
+ * @returns {void}
2436
+ */
2437
+ function throwIfCancellationRequested(config) {
2438
+ if (config.cancelToken) {
2439
+ config.cancelToken.throwIfRequested();
2440
+ }
2441
+
2442
+ if (config.signal && config.signal.aborted) {
2443
+ throw new CanceledError(null, config);
2444
+ }
2445
+ }
2446
+
2447
+ /**
2448
+ * Dispatch a request to the server using the configured adapter.
2449
+ *
2450
+ * @param {object} config The config that is to be used for the request
2451
+ *
2452
+ * @returns {Promise} The Promise to be fulfilled
2453
+ */
2454
+ function dispatchRequest(config) {
2455
+ throwIfCancellationRequested(config);
2456
+
2457
+ config.headers = AxiosHeaders.from(config.headers);
2458
+
2459
+ // Transform request data
2460
+ config.data = transformData.call(
2461
+ config,
2462
+ config.transformRequest
2463
+ );
2464
+
2465
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
2466
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
2467
+ }
2468
+
2469
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
2470
+
2471
+ return adapter(config).then(function onAdapterResolution(response) {
2472
+ throwIfCancellationRequested(config);
2473
+
2474
+ // Transform response data
2475
+ response.data = transformData.call(
2476
+ config,
2477
+ config.transformResponse,
2478
+ response
2479
+ );
2480
+
2481
+ response.headers = AxiosHeaders.from(response.headers);
2482
+
2483
+ return response;
2484
+ }, function onAdapterRejection(reason) {
2485
+ if (!isCancel(reason)) {
2486
+ throwIfCancellationRequested(config);
2487
+
2488
+ // Transform response data
2489
+ if (reason && reason.response) {
2490
+ reason.response.data = transformData.call(
2491
+ config,
2492
+ config.transformResponse,
2493
+ reason.response
2494
+ );
2495
+ reason.response.headers = AxiosHeaders.from(reason.response.headers);
2496
+ }
2497
+ }
2498
+
2499
+ return Promise.reject(reason);
2500
+ });
2501
+ }
2502
+
2503
+ const headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;
2504
+
2505
+ /**
2506
+ * Config-specific merge-function which creates a new config-object
2507
+ * by merging two configuration objects together.
2508
+ *
2509
+ * @param {Object} config1
2510
+ * @param {Object} config2
2511
+ *
2512
+ * @returns {Object} New object resulting from merging config2 to config1
2513
+ */
2514
+ function mergeConfig(config1, config2) {
2515
+ // eslint-disable-next-line no-param-reassign
2516
+ config2 = config2 || {};
2517
+ const config = {};
2518
+
2519
+ function getMergedValue(target, source, caseless) {
2520
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
2521
+ return utils.merge.call({caseless}, target, source);
2522
+ } else if (utils.isPlainObject(source)) {
2523
+ return utils.merge({}, source);
2524
+ } else if (utils.isArray(source)) {
2525
+ return source.slice();
2526
+ }
2527
+ return source;
2528
+ }
2529
+
2530
+ // eslint-disable-next-line consistent-return
2531
+ function mergeDeepProperties(a, b, caseless) {
2532
+ if (!utils.isUndefined(b)) {
2533
+ return getMergedValue(a, b, caseless);
2534
+ } else if (!utils.isUndefined(a)) {
2535
+ return getMergedValue(undefined, a, caseless);
2536
+ }
2537
+ }
2538
+
2539
+ // eslint-disable-next-line consistent-return
2540
+ function valueFromConfig2(a, b) {
2541
+ if (!utils.isUndefined(b)) {
2542
+ return getMergedValue(undefined, b);
2543
+ }
2544
+ }
2545
+
2546
+ // eslint-disable-next-line consistent-return
2547
+ function defaultToConfig2(a, b) {
2548
+ if (!utils.isUndefined(b)) {
2549
+ return getMergedValue(undefined, b);
2550
+ } else if (!utils.isUndefined(a)) {
2551
+ return getMergedValue(undefined, a);
2552
+ }
2553
+ }
2554
+
2555
+ // eslint-disable-next-line consistent-return
2556
+ function mergeDirectKeys(a, b, prop) {
2557
+ if (prop in config2) {
2558
+ return getMergedValue(a, b);
2559
+ } else if (prop in config1) {
2560
+ return getMergedValue(undefined, a);
2561
+ }
2562
+ }
2563
+
2564
+ const mergeMap = {
2565
+ url: valueFromConfig2,
2566
+ method: valueFromConfig2,
2567
+ data: valueFromConfig2,
2568
+ baseURL: defaultToConfig2,
2569
+ transformRequest: defaultToConfig2,
2570
+ transformResponse: defaultToConfig2,
2571
+ paramsSerializer: defaultToConfig2,
2572
+ timeout: defaultToConfig2,
2573
+ timeoutMessage: defaultToConfig2,
2574
+ withCredentials: defaultToConfig2,
2575
+ adapter: defaultToConfig2,
2576
+ responseType: defaultToConfig2,
2577
+ xsrfCookieName: defaultToConfig2,
2578
+ xsrfHeaderName: defaultToConfig2,
2579
+ onUploadProgress: defaultToConfig2,
2580
+ onDownloadProgress: defaultToConfig2,
2581
+ decompress: defaultToConfig2,
2582
+ maxContentLength: defaultToConfig2,
2583
+ maxBodyLength: defaultToConfig2,
2584
+ beforeRedirect: defaultToConfig2,
2585
+ transport: defaultToConfig2,
2586
+ httpAgent: defaultToConfig2,
2587
+ httpsAgent: defaultToConfig2,
2588
+ cancelToken: defaultToConfig2,
2589
+ socketPath: defaultToConfig2,
2590
+ responseEncoding: defaultToConfig2,
2591
+ validateStatus: mergeDirectKeys,
2592
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
2593
+ };
2594
+
2595
+ utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
2596
+ const merge = mergeMap[prop] || mergeDeepProperties;
2597
+ const configValue = merge(config1[prop], config2[prop], prop);
2598
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
2599
+ });
2600
+
2601
+ return config;
2602
+ }
2603
+
2604
+ const VERSION = "1.3.1";
2605
+
2606
+ const validators$1 = {};
2607
+
2608
+ // eslint-disable-next-line func-names
2609
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
2610
+ validators$1[type] = function validator(thing) {
2611
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
2612
+ };
2613
+ });
2614
+
2615
+ const deprecatedWarnings = {};
2616
+
2617
+ /**
2618
+ * Transitional option validator
2619
+ *
2620
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
2621
+ * @param {string?} version - deprecated version / removed since version
2622
+ * @param {string?} message - some message with additional info
2623
+ *
2624
+ * @returns {function}
2625
+ */
2626
+ validators$1.transitional = function transitional(validator, version, message) {
2627
+ function formatMessage(opt, desc) {
2628
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
2629
+ }
2630
+
2631
+ // eslint-disable-next-line func-names
2632
+ return (value, opt, opts) => {
2633
+ if (validator === false) {
2634
+ throw new AxiosError(
2635
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
2636
+ AxiosError.ERR_DEPRECATED
2637
+ );
2638
+ }
2639
+
2640
+ if (version && !deprecatedWarnings[opt]) {
2641
+ deprecatedWarnings[opt] = true;
2642
+ // eslint-disable-next-line no-console
2643
+ console.warn(
2644
+ formatMessage(
2645
+ opt,
2646
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
2647
+ )
2648
+ );
2649
+ }
2650
+
2651
+ return validator ? validator(value, opt, opts) : true;
2652
+ };
2653
+ };
2654
+
2655
+ /**
2656
+ * Assert object's properties type
2657
+ *
2658
+ * @param {object} options
2659
+ * @param {object} schema
2660
+ * @param {boolean?} allowUnknown
2661
+ *
2662
+ * @returns {object}
2663
+ */
2664
+
2665
+ function assertOptions(options, schema, allowUnknown) {
2666
+ if (typeof options !== 'object') {
2667
+ throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
2668
+ }
2669
+ const keys = Object.keys(options);
2670
+ let i = keys.length;
2671
+ while (i-- > 0) {
2672
+ const opt = keys[i];
2673
+ const validator = schema[opt];
2674
+ if (validator) {
2675
+ const value = options[opt];
2676
+ const result = value === undefined || validator(value, opt, options);
2677
+ if (result !== true) {
2678
+ throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
2679
+ }
2680
+ continue;
2681
+ }
2682
+ if (allowUnknown !== true) {
2683
+ throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
2684
+ }
2685
+ }
2686
+ }
2687
+
2688
+ const validator = {
2689
+ assertOptions,
2690
+ validators: validators$1
2691
+ };
2692
+
2693
+ const validators = validator.validators;
2694
+
2695
+ /**
2696
+ * Create a new instance of Axios
2697
+ *
2698
+ * @param {Object} instanceConfig The default config for the instance
2699
+ *
2700
+ * @return {Axios} A new instance of Axios
2701
+ */
2702
+ class Axios {
2703
+ constructor(instanceConfig) {
2704
+ this.defaults = instanceConfig;
2705
+ this.interceptors = {
2706
+ request: new InterceptorManager(),
2707
+ response: new InterceptorManager()
2708
+ };
2709
+ }
2710
+
2711
+ /**
2712
+ * Dispatch a request
2713
+ *
2714
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2715
+ * @param {?Object} config
2716
+ *
2717
+ * @returns {Promise} The Promise to be fulfilled
2718
+ */
2719
+ request(configOrUrl, config) {
2720
+ /*eslint no-param-reassign:0*/
2721
+ // Allow for axios('example/url'[, config]) a la fetch API
2722
+ if (typeof configOrUrl === 'string') {
2723
+ config = config || {};
2724
+ config.url = configOrUrl;
2725
+ } else {
2726
+ config = configOrUrl || {};
2727
+ }
2728
+
2729
+ config = mergeConfig(this.defaults, config);
2730
+
2731
+ const {transitional, paramsSerializer, headers} = config;
2732
+
2733
+ if (transitional !== undefined) {
2734
+ validator.assertOptions(transitional, {
2735
+ silentJSONParsing: validators.transitional(validators.boolean),
2736
+ forcedJSONParsing: validators.transitional(validators.boolean),
2737
+ clarifyTimeoutError: validators.transitional(validators.boolean)
2738
+ }, false);
2739
+ }
2740
+
2741
+ if (paramsSerializer !== undefined) {
2742
+ validator.assertOptions(paramsSerializer, {
2743
+ encode: validators.function,
2744
+ serialize: validators.function
2745
+ }, true);
2746
+ }
2747
+
2748
+ // Set config.method
2749
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
2750
+
2751
+ let contextHeaders;
2752
+
2753
+ // Flatten headers
2754
+ contextHeaders = headers && utils.merge(
2755
+ headers.common,
2756
+ headers[config.method]
2757
+ );
2758
+
2759
+ contextHeaders && utils.forEach(
2760
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
2761
+ (method) => {
2762
+ delete headers[method];
2763
+ }
2764
+ );
2765
+
2766
+ config.headers = AxiosHeaders.concat(contextHeaders, headers);
2767
+
2768
+ // filter out skipped interceptors
2769
+ const requestInterceptorChain = [];
2770
+ let synchronousRequestInterceptors = true;
2771
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
2772
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
2773
+ return;
2774
+ }
2775
+
2776
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
2777
+
2778
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
2779
+ });
2780
+
2781
+ const responseInterceptorChain = [];
2782
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
2783
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
2784
+ });
2785
+
2786
+ let promise;
2787
+ let i = 0;
2788
+ let len;
2789
+
2790
+ if (!synchronousRequestInterceptors) {
2791
+ const chain = [dispatchRequest.bind(this), undefined];
2792
+ chain.unshift.apply(chain, requestInterceptorChain);
2793
+ chain.push.apply(chain, responseInterceptorChain);
2794
+ len = chain.length;
2795
+
2796
+ promise = Promise.resolve(config);
2797
+
2798
+ while (i < len) {
2799
+ promise = promise.then(chain[i++], chain[i++]);
2800
+ }
2801
+
2802
+ return promise;
2803
+ }
2804
+
2805
+ len = requestInterceptorChain.length;
2806
+
2807
+ let newConfig = config;
2808
+
2809
+ i = 0;
2810
+
2811
+ while (i < len) {
2812
+ const onFulfilled = requestInterceptorChain[i++];
2813
+ const onRejected = requestInterceptorChain[i++];
2814
+ try {
2815
+ newConfig = onFulfilled(newConfig);
2816
+ } catch (error) {
2817
+ onRejected.call(this, error);
2818
+ break;
2819
+ }
2820
+ }
2821
+
2822
+ try {
2823
+ promise = dispatchRequest.call(this, newConfig);
2824
+ } catch (error) {
2825
+ return Promise.reject(error);
2826
+ }
2827
+
2828
+ i = 0;
2829
+ len = responseInterceptorChain.length;
2830
+
2831
+ while (i < len) {
2832
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
2833
+ }
2834
+
2835
+ return promise;
2836
+ }
2837
+
2838
+ getUri(config) {
2839
+ config = mergeConfig(this.defaults, config);
2840
+ const fullPath = buildFullPath(config.baseURL, config.url);
2841
+ return buildURL(fullPath, config.params, config.paramsSerializer);
2842
+ }
2843
+ }
2844
+
2845
+ // Provide aliases for supported request methods
2846
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
2847
+ /*eslint func-names:0*/
2848
+ Axios.prototype[method] = function(url, config) {
2849
+ return this.request(mergeConfig(config || {}, {
2850
+ method,
2851
+ url,
2852
+ data: (config || {}).data
2853
+ }));
2854
+ };
2855
+ });
2856
+
2857
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
2858
+ /*eslint func-names:0*/
2859
+
2860
+ function generateHTTPMethod(isForm) {
2861
+ return function httpMethod(url, data, config) {
2862
+ return this.request(mergeConfig(config || {}, {
2863
+ method,
2864
+ headers: isForm ? {
2865
+ 'Content-Type': 'multipart/form-data'
2866
+ } : {},
2867
+ url,
2868
+ data
2869
+ }));
2870
+ };
2871
+ }
2872
+
2873
+ Axios.prototype[method] = generateHTTPMethod();
2874
+
2875
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
2876
+ });
2877
+
2878
+ /**
2879
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
2880
+ *
2881
+ * @param {Function} executor The executor function.
2882
+ *
2883
+ * @returns {CancelToken}
2884
+ */
2885
+ class CancelToken {
2886
+ constructor(executor) {
2887
+ if (typeof executor !== 'function') {
2888
+ throw new TypeError('executor must be a function.');
2889
+ }
2890
+
2891
+ let resolvePromise;
2892
+
2893
+ this.promise = new Promise(function promiseExecutor(resolve) {
2894
+ resolvePromise = resolve;
2895
+ });
2896
+
2897
+ const token = this;
2898
+
2899
+ // eslint-disable-next-line func-names
2900
+ this.promise.then(cancel => {
2901
+ if (!token._listeners) return;
2902
+
2903
+ let i = token._listeners.length;
2904
+
2905
+ while (i-- > 0) {
2906
+ token._listeners[i](cancel);
2907
+ }
2908
+ token._listeners = null;
2909
+ });
2910
+
2911
+ // eslint-disable-next-line func-names
2912
+ this.promise.then = onfulfilled => {
2913
+ let _resolve;
2914
+ // eslint-disable-next-line func-names
2915
+ const promise = new Promise(resolve => {
2916
+ token.subscribe(resolve);
2917
+ _resolve = resolve;
2918
+ }).then(onfulfilled);
2919
+
2920
+ promise.cancel = function reject() {
2921
+ token.unsubscribe(_resolve);
2922
+ };
2923
+
2924
+ return promise;
2925
+ };
2926
+
2927
+ executor(function cancel(message, config, request) {
2928
+ if (token.reason) {
2929
+ // Cancellation has already been requested
2930
+ return;
2931
+ }
2932
+
2933
+ token.reason = new CanceledError(message, config, request);
2934
+ resolvePromise(token.reason);
2935
+ });
2936
+ }
2937
+
2938
+ /**
2939
+ * Throws a `CanceledError` if cancellation has been requested.
2940
+ */
2941
+ throwIfRequested() {
2942
+ if (this.reason) {
2943
+ throw this.reason;
2944
+ }
2945
+ }
2946
+
2947
+ /**
2948
+ * Subscribe to the cancel signal
2949
+ */
2950
+
2951
+ subscribe(listener) {
2952
+ if (this.reason) {
2953
+ listener(this.reason);
2954
+ return;
2955
+ }
2956
+
2957
+ if (this._listeners) {
2958
+ this._listeners.push(listener);
2959
+ } else {
2960
+ this._listeners = [listener];
2961
+ }
2962
+ }
2963
+
2964
+ /**
2965
+ * Unsubscribe from the cancel signal
2966
+ */
2967
+
2968
+ unsubscribe(listener) {
2969
+ if (!this._listeners) {
2970
+ return;
2971
+ }
2972
+ const index = this._listeners.indexOf(listener);
2973
+ if (index !== -1) {
2974
+ this._listeners.splice(index, 1);
2975
+ }
2976
+ }
2977
+
2978
+ /**
2979
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
2980
+ * cancels the `CancelToken`.
2981
+ */
2982
+ static source() {
2983
+ let cancel;
2984
+ const token = new CancelToken(function executor(c) {
2985
+ cancel = c;
2986
+ });
2987
+ return {
2988
+ token,
2989
+ cancel
2990
+ };
2991
+ }
2992
+ }
2993
+
2994
+ /**
2995
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
2996
+ *
2997
+ * Common use case would be to use `Function.prototype.apply`.
2998
+ *
2999
+ * ```js
3000
+ * function f(x, y, z) {}
3001
+ * var args = [1, 2, 3];
3002
+ * f.apply(null, args);
3003
+ * ```
3004
+ *
3005
+ * With `spread` this example can be re-written.
3006
+ *
3007
+ * ```js
3008
+ * spread(function(x, y, z) {})([1, 2, 3]);
3009
+ * ```
3010
+ *
3011
+ * @param {Function} callback
3012
+ *
3013
+ * @returns {Function}
3014
+ */
3015
+ function spread(callback) {
3016
+ return function wrap(arr) {
3017
+ return callback.apply(null, arr);
3018
+ };
3019
+ }
3020
+
3021
+ /**
3022
+ * Determines whether the payload is an error thrown by Axios
3023
+ *
3024
+ * @param {*} payload The value to test
3025
+ *
3026
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3027
+ */
3028
+ function isAxiosError(payload) {
3029
+ return utils.isObject(payload) && (payload.isAxiosError === true);
3030
+ }
3031
+
3032
+ const HttpStatusCode = {
3033
+ Continue: 100,
3034
+ SwitchingProtocols: 101,
3035
+ Processing: 102,
3036
+ EarlyHints: 103,
3037
+ Ok: 200,
3038
+ Created: 201,
3039
+ Accepted: 202,
3040
+ NonAuthoritativeInformation: 203,
3041
+ NoContent: 204,
3042
+ ResetContent: 205,
3043
+ PartialContent: 206,
3044
+ MultiStatus: 207,
3045
+ AlreadyReported: 208,
3046
+ ImUsed: 226,
3047
+ MultipleChoices: 300,
3048
+ MovedPermanently: 301,
3049
+ Found: 302,
3050
+ SeeOther: 303,
3051
+ NotModified: 304,
3052
+ UseProxy: 305,
3053
+ Unused: 306,
3054
+ TemporaryRedirect: 307,
3055
+ PermanentRedirect: 308,
3056
+ BadRequest: 400,
3057
+ Unauthorized: 401,
3058
+ PaymentRequired: 402,
3059
+ Forbidden: 403,
3060
+ NotFound: 404,
3061
+ MethodNotAllowed: 405,
3062
+ NotAcceptable: 406,
3063
+ ProxyAuthenticationRequired: 407,
3064
+ RequestTimeout: 408,
3065
+ Conflict: 409,
3066
+ Gone: 410,
3067
+ LengthRequired: 411,
3068
+ PreconditionFailed: 412,
3069
+ PayloadTooLarge: 413,
3070
+ UriTooLong: 414,
3071
+ UnsupportedMediaType: 415,
3072
+ RangeNotSatisfiable: 416,
3073
+ ExpectationFailed: 417,
3074
+ ImATeapot: 418,
3075
+ MisdirectedRequest: 421,
3076
+ UnprocessableEntity: 422,
3077
+ Locked: 423,
3078
+ FailedDependency: 424,
3079
+ TooEarly: 425,
3080
+ UpgradeRequired: 426,
3081
+ PreconditionRequired: 428,
3082
+ TooManyRequests: 429,
3083
+ RequestHeaderFieldsTooLarge: 431,
3084
+ UnavailableForLegalReasons: 451,
3085
+ InternalServerError: 500,
3086
+ NotImplemented: 501,
3087
+ BadGateway: 502,
3088
+ ServiceUnavailable: 503,
3089
+ GatewayTimeout: 504,
3090
+ HttpVersionNotSupported: 505,
3091
+ VariantAlsoNegotiates: 506,
3092
+ InsufficientStorage: 507,
3093
+ LoopDetected: 508,
3094
+ NotExtended: 510,
3095
+ NetworkAuthenticationRequired: 511,
3096
+ };
3097
+
3098
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
3099
+ HttpStatusCode[value] = key;
3100
+ });
3101
+
3102
+ /**
3103
+ * Create an instance of Axios
3104
+ *
3105
+ * @param {Object} defaultConfig The default config for the instance
3106
+ *
3107
+ * @returns {Axios} A new instance of Axios
3108
+ */
3109
+ function createInstance(defaultConfig) {
3110
+ const context = new Axios(defaultConfig);
3111
+ const instance = bind(Axios.prototype.request, context);
3112
+
3113
+ // Copy axios.prototype to instance
3114
+ utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});
3115
+
3116
+ // Copy context to instance
3117
+ utils.extend(instance, context, null, {allOwnKeys: true});
3118
+
3119
+ // Factory for creating new instances
3120
+ instance.create = function create(instanceConfig) {
3121
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3122
+ };
3123
+
3124
+ return instance;
3125
+ }
3126
+
3127
+ // Create the default instance to be exported
3128
+ const axios = createInstance(defaults);
3129
+
3130
+ // Expose Axios class to allow class inheritance
3131
+ axios.Axios = Axios;
3132
+
3133
+ // Expose Cancel & CancelToken
3134
+ axios.CanceledError = CanceledError;
3135
+ axios.CancelToken = CancelToken;
3136
+ axios.isCancel = isCancel;
3137
+ axios.VERSION = VERSION;
3138
+ axios.toFormData = toFormData;
3139
+
3140
+ // Expose AxiosError class
3141
+ axios.AxiosError = AxiosError;
3142
+
3143
+ // alias for CanceledError for backward compatibility
3144
+ axios.Cancel = axios.CanceledError;
3145
+
3146
+ // Expose all/spread
3147
+ axios.all = function all(promises) {
3148
+ return Promise.all(promises);
3149
+ };
3150
+
3151
+ axios.spread = spread;
3152
+
3153
+ // Expose isAxiosError
3154
+ axios.isAxiosError = isAxiosError;
3155
+
3156
+ // Expose mergeConfig
3157
+ axios.mergeConfig = mergeConfig;
3158
+
3159
+ axios.AxiosHeaders = AxiosHeaders;
3160
+
3161
+ axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
3162
+
3163
+ axios.HttpStatusCode = HttpStatusCode;
3164
+
3165
+ axios.default = axios;
3166
+
3167
+ exports.axios = axios;