@oiz/stzh-components 2.2.0 → 2.3.0-alpha2

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