cabloy 5.1.10 → 5.1.12

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 (210) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/lint-staged.config.mjs +92 -0
  3. package/oxfmt.config.ts +4 -1
  4. package/package.json +2 -11
  5. package/vona/packages-utils/lint/api/tsconfig.base.esm.json +30 -2
  6. package/vona/packages-utils/lint/package.json +40 -5
  7. package/vona/packages-utils/lint/src/index.ts +3 -0
  8. package/vona/packages-utils/lint/{oxc/format.js → src/oxc/format.ts} +4 -2
  9. package/vona/packages-utils/lint/{oxc/lint.js → src/oxc/lint.ts} +7 -7
  10. package/vona/packages-utils/lint/{oxc/lintVue.js → src/oxc/lintVue.ts} +4 -6
  11. package/vona/packages-utils/lint/tsconfig.json +14 -0
  12. package/vona/pnpm-lock.yaml +338 -17
  13. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -78
  14. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +3 -1
  15. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +3 -1
  16. package/zova/env/.env.ssr.cabloyBasicAdmin +0 -2
  17. package/zova/package.original.json +2 -8
  18. package/zova/packages-cli/cli/package.json +2 -2
  19. package/zova/packages-cli/cli-set-front/package.json +8 -8
  20. package/zova/packages-utils/babel-plugin-zova-bean-module/package.json +3 -3
  21. package/zova/packages-utils/babel-plugin-zova-bean-use/package.json +2 -2
  22. package/zova/packages-utils/babel-plugin-zova-behavior/package.json +2 -2
  23. package/zova/packages-utils/babel-plugin-zova-component/package.json +2 -2
  24. package/zova/packages-utils/logger/package.json +2 -2
  25. package/zova/packages-utils/mutate-on-copy/package.json +2 -2
  26. package/zova/packages-utils/quasar-app-extension-zova/package.json +3 -3
  27. package/zova/packages-utils/word-utils/package.json +2 -2
  28. package/zova/packages-utils/zova-jsx/package.json +4 -4
  29. package/zova/packages-utils/zova-openapi/package.json +2 -2
  30. package/zova/packages-utils/zova-vite/package.json +6 -6
  31. package/zova/packages-zova/zova/package.json +4 -4
  32. package/zova/packages-zova/zova-core/package.json +4 -4
  33. package/zova/pnpm-lock.yaml +67 -63
  34. package/zova/src/suite/a-demo/modules/demo-basic/package.json +1 -1
  35. package/zova/src/suite/a-demo/modules/demo-todo/package.json +1 -1
  36. package/zova/src/suite/a-demo/package.json +1 -1
  37. package/zova/src/suite/a-devui/modules/devui-adapter/package.json +1 -1
  38. package/zova/src/suite/a-devui/package.json +1 -1
  39. package/zova/src/suite/a-home/modules/home-api/package.json +1 -1
  40. package/zova/src/suite/a-home/modules/home-base/package.json +1 -1
  41. package/zova/src/suite/a-home/modules/home-icon/package.json +1 -1
  42. package/zova/src/suite/a-home/modules/home-index/package.json +1 -1
  43. package/zova/src/suite/a-home/modules/home-layoutempty/package.json +1 -1
  44. package/zova/src/suite/a-home/modules/home-layouttabs/package.json +1 -1
  45. package/zova/src/suite/a-home/modules/home-login/package.json +1 -1
  46. package/zova/src/suite/a-home/modules/home-passport/package.json +1 -1
  47. package/zova/src/suite/a-home/modules/home-theme/package.json +1 -1
  48. package/zova/src/suite/a-home/package.json +1 -1
  49. package/zova/src/suite/cabloy-basic/modules/basic-adapter/package.json +1 -1
  50. package/zova/src/suite/cabloy-basic/modules/basic-captcha/package.json +1 -1
  51. package/zova/src/suite/cabloy-basic/modules/basic-commands/package.json +1 -1
  52. package/zova/src/suite/cabloy-basic/modules/basic-commandssync/package.json +1 -1
  53. package/zova/src/suite/cabloy-basic/modules/basic-currency/package.json +1 -1
  54. package/zova/src/suite/cabloy-basic/modules/basic-date/package.json +1 -1
  55. package/zova/src/suite/cabloy-basic/modules/basic-form/package.json +1 -1
  56. package/zova/src/suite/cabloy-basic/modules/basic-input/package.json +1 -1
  57. package/zova/src/suite/cabloy-basic/modules/basic-page/package.json +1 -1
  58. package/zova/src/suite/cabloy-basic/modules/basic-pageentry/package.json +1 -1
  59. package/zova/src/suite/cabloy-basic/modules/basic-select/package.json +1 -0
  60. package/zova/src/suite/cabloy-basic/modules/basic-table/package.json +1 -1
  61. package/zova/src/suite/cabloy-basic/modules/basic-text/package.json +1 -0
  62. package/zova/src/suite-vendor/a-zova/modules/a-api/package.json +2 -2
  63. package/zova/src/suite-vendor/a-zova/modules/a-app/package.json +2 -2
  64. package/zova/src/suite-vendor/a-zova/modules/a-bean/package.json +2 -2
  65. package/zova/src/suite-vendor/a-zova/modules/a-behavior/package.json +2 -2
  66. package/zova/src/suite-vendor/a-zova/modules/a-behaviors/package.json +2 -2
  67. package/zova/src/suite-vendor/a-zova/modules/a-boundary/package.json +2 -2
  68. package/zova/src/suite-vendor/a-zova/modules/a-command/package.json +2 -2
  69. package/zova/src/suite-vendor/a-zova/modules/a-fetch/package.json +2 -2
  70. package/zova/src/suite-vendor/a-zova/modules/a-form/package.json +2 -2
  71. package/zova/src/suite-vendor/a-zova/modules/a-icon/package.json +2 -2
  72. package/zova/src/suite-vendor/a-zova/modules/a-interceptor/package.json +2 -2
  73. package/zova/src/suite-vendor/a-zova/modules/a-logger/package.json +3 -3
  74. package/zova/src/suite-vendor/a-zova/modules/a-meta/package.json +2 -2
  75. package/zova/src/suite-vendor/a-zova/modules/a-model/package.json +3 -3
  76. package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +2 -2
  77. package/zova/src/suite-vendor/a-zova/modules/a-router/package.json +2 -2
  78. package/zova/src/suite-vendor/a-zova/modules/a-routerstack/package.json +2 -2
  79. package/zova/src/suite-vendor/a-zova/modules/a-routertabs/package.json +2 -2
  80. package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +2 -2
  81. package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/package.json +2 -2
  82. package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/package.json +2 -2
  83. package/zova/src/suite-vendor/a-zova/modules/a-style/package.json +2 -2
  84. package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +2 -2
  85. package/zova/src/suite-vendor/a-zova/modules/a-zod/package.json +2 -2
  86. package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +5 -5
  87. package/zova/src/suite-vendor/a-zova/package.json +27 -27
  88. package/vona/packages-utils/lint/api/eslint.js +0 -41
  89. package/vona/packages-utils/lint/api/prettier.js +0 -8
  90. package/vona/packages-utils/lint/api/tsconfig.base.cjs.json +0 -32
  91. package/vona/packages-utils/lint/common/rules.js +0 -155
  92. package/vona/packages-utils/lint/common/rulesVue.js +0 -5
  93. package/vona/packages-utils/lint/front/eslint.js +0 -59
  94. package/vona/packages-utils/lint/front/prettier.js +0 -3
  95. package/vona/packages-utils/lint/front/tsconfig.base.cjs.json +0 -4
  96. package/vona/packages-utils/lint/front/tsconfig.base.esm.json +0 -9
  97. package/vona/packages-utils/lint/index.js +0 -3
  98. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/-zova-config-CoKN49wO.js +0 -11
  99. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-api-DmsK4zNw.js +0 -178
  100. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-app-C7cTDV9C.js +0 -138
  101. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-bean-qjOwLLml.js +0 -408
  102. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-behavior-I9evY2QT.js +0 -454
  103. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-behaviors-Dh8sE2AX.js +0 -58
  104. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-boundary-DxeJURnH.js +0 -21
  105. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-command-Duq9OGnp.js +0 -165
  106. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-fetch-BsiDc5MA.js +0 -317
  107. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-form-BSfvKLPu.js +0 -947
  108. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-icon-Bx0yNmUB.js +0 -460
  109. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-interceptor-CtK-mG6U.js +0 -256
  110. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-logger-D6FVEo-2.js +0 -143
  111. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-meta-DLAWtBzn.js +0 -47
  112. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-model-Ds17NAa5.js +0 -887
  113. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-openapi-Cu42a7Tj.js +0 -677
  114. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-router-BEKs1P3y.js +0 -1009
  115. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-routerstack-CNda3TvU.js +0 -239
  116. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-routertabs-CA8KhmHx.js +0 -519
  117. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-ssr-WZQfI3lD.js +0 -711
  118. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-ssrhmr-DiG_2CbH.js +0 -97
  119. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-style-Dcrophdv.js +0 -408
  120. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-table-Cr0qHPMV.js +0 -464
  121. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-zod-B5ZzHMKp.js +0 -87
  122. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-zova-WAWkGLRj.js +0 -21
  123. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/auth-Bjup4K84.svg +0 -8
  124. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/axios-jFGAltpb.js +0 -3152
  125. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-adapter-BzdgS83E.js +0 -68
  126. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-captcha-gmlRJxbp.js +0 -209
  127. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-commands-CmuoODyc.js +0 -179
  128. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-commandssync-4uJoTYWO.js +0 -62
  129. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-currency-ljdT_mJv.js +0 -159
  130. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-date-CJtZtM5q.js +0 -251
  131. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-form-Bi-Dm8Pp.js +0 -376
  132. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-input-DugSctyu.js +0 -83
  133. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-page-C0Mpx24A.js +0 -610
  134. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-pageentry-De7Zvv7J.js +0 -443
  135. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-select-WKCF4vyo.js +0 -186
  136. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-table-B4Eyf7EC.js +0 -368
  137. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-text-CRqjMEyr.js +0 -118
  138. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/browser-C8cI94Tr.js +0 -2409
  139. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/business-DQeTVrBD.svg +0 -12
  140. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/daisy-BZm4lJOy.svg +0 -4
  141. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/default-DxTAw1iv.svg +0 -118
  142. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-basic-CiW_uKMD.js +0 -1419
  143. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-student-DpiY4dnt.js +0 -69
  144. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-todo-CM3XdLlo.js +0 -427
  145. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/devui-adapter-B2uiKP95.js +0 -95
  146. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/dist.es2015-BMNhwNBy.js +0 -343
  147. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/editor-CmZexDJp.svg +0 -32
  148. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/emoji-CLaR2GZg.svg +0 -3
  149. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/esm-Z9BncIrt.js +0 -2574
  150. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/extends-BSP9iXrM.js +0 -27
  151. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/fecha-DvkbkxAQ.js +0 -9849
  152. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/flow-DCn4s91p.svg +0 -13
  153. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-api-B1NjQp7i.js +0 -374
  154. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-base-DRJdeGsg.js +0 -654
  155. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-icon-65b9tDB5.js +0 -125
  156. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-index-KrvUKcFR.js +0 -79
  157. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-layoutempty-DP2peKfC.js +0 -87
  158. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-layouttabs-CRIoszHS.js +0 -980
  159. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-login-z4Url6WO.js +0 -302
  160. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-passport-OqpwAU0M.js +0 -293
  161. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-theme-BSua63Y_.js +0 -131
  162. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/index-B5HTgis_.css +0 -26
  163. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/index-Cd4EYYtZ.js +0 -1331
  164. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/localforage-e6vl49GD.js +0 -1798
  165. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/login-Qly1YUqs.svg +0 -7
  166. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/openapi3-jIye4jNw.js +0 -23
  167. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/outline-C6s9io8r.svg +0 -41
  168. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/rest-resource-CN0Ontwm.js +0 -552
  169. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/role-fXTNmWmb.svg +0 -10
  170. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/rolldown-runtime-lkMnaVCm.js +0 -38
  171. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/social-DosI14Uo.svg +0 -12
  172. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-BRq8dtuS.js +0 -44
  173. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-CBGuKzpF.js +0 -5996
  174. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-CzJSxlnS.js +0 -496
  175. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-YVxhoO6F.js +0 -65
  176. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-form-CBq6dr_k.js +0 -122
  177. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-BJk2jOuy.js +0 -2377
  178. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-CBWe1LsT.js +0 -365
  179. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-Ch18aWTP.js +0 -212
  180. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-table-BvC3VgJj.js +0 -2241
  181. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-table-D85qomSu.js +0 -123
  182. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tools-Wk7SnIwE.svg +0 -4
  183. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/typestyle-C2zp2284.js +0 -281
  184. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-1Y5FbPzj.js +0 -3221
  185. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-C-LVj1DU.js +0 -18
  186. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-ChEE2n-Y.js +0 -598
  187. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-CvF_GLFp.js +0 -190
  188. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-DHzalQTI.js +0 -1308
  189. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-router-COfHCB5q.js +0 -1775
  190. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/wrapAsyncGenerator-zA6hqk-P.js +0 -155
  191. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-6Abekb1F.js +0 -83
  192. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BHaXQJg22.js +0 -11
  193. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BYPEGx1T.js +0 -15586
  194. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BuxXrZHs.js +0 -24
  195. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-C4pGJxwQ.js +0 -1227
  196. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-CoRfsquu.js +0 -8
  197. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-CzTANp3C.js +0 -380
  198. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-DQbBsEtS.js +0 -4130
  199. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-hmnYQoyt.js +0 -374
  200. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/favicon.ico +0 -0
  201. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/handler.js +0 -164729
  202. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/index.js +0 -26236
  203. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/quasar.manifest.json +0 -1
  204. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrMenu.tools.ts +0 -32
  205. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrMenuGroup.tools.ts +0 -18
  206. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrSite.second.ts +0 -31
  207. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/test/ssr.test.ts +0 -44
  208. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/index.d.mts +0 -9107
  209. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/index.mjs +0 -234
  210. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/package.json +0 -40
@@ -1,3152 +0,0 @@
1
- import { n as __esmMin, r as __exportAll } from "./rolldown-runtime-lkMnaVCm.js";
2
- import { d as _objectSpread2, f as init_objectSpread2, m as init_asyncToGenerator, p as _asyncToGenerator } from "./fecha-DvkbkxAQ.js";
3
- import { a as _awaitAsyncGenerator, c as init_asyncIterator, i as init_asyncGeneratorDelegate, n as init_wrapAsyncGenerator, o as init_awaitAsyncGenerator, r as _asyncGeneratorDelegate, s as _asyncIterator, t as _wrapAsyncGenerator } from "./wrapAsyncGenerator-zA6hqk-P.js";
4
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/bind.js
5
- /**
6
- * Create a bound version of a function with a specified `this` context
7
- *
8
- * @param {Function} fn - The function to bind
9
- * @param {*} thisArg - The value to be passed as the `this` parameter
10
- * @returns {Function} A new function that will call the original function with the specified `this` context
11
- */
12
- function bind(fn, thisArg) {
13
- return function wrap() {
14
- return fn.apply(thisArg, arguments);
15
- };
16
- }
17
- var init_bind = __esmMin((() => {}));
18
- //#endregion
19
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/utils.js
20
- /**
21
- * Determine if a value is a Buffer
22
- *
23
- * @param {*} val The value to test
24
- *
25
- * @returns {boolean} True if value is a Buffer, otherwise false
26
- */
27
- function isBuffer(val) {
28
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
29
- }
30
- /**
31
- * Determine if a value is a view on an ArrayBuffer
32
- *
33
- * @param {*} val The value to test
34
- *
35
- * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
36
- */
37
- function isArrayBufferView(val) {
38
- let result;
39
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) result = ArrayBuffer.isView(val);
40
- else result = val && val.buffer && isArrayBuffer(val.buffer);
41
- return result;
42
- }
43
- /**
44
- * Determine if a value is a FormData
45
- *
46
- * @param {*} thing The value to test
47
- *
48
- * @returns {boolean} True if value is an FormData, otherwise false
49
- */
50
- function getGlobal() {
51
- if (typeof globalThis !== "undefined") return globalThis;
52
- if (typeof self !== "undefined") return self;
53
- if (typeof window !== "undefined") return window;
54
- if (typeof global !== "undefined") return global;
55
- return {};
56
- }
57
- /**
58
- * Iterate over an Array or an Object invoking a function for each item.
59
- *
60
- * If `obj` is an Array callback will be called passing
61
- * the value, index, and complete array for each item.
62
- *
63
- * If 'obj' is an Object callback will be called passing
64
- * the value, key, and complete object for each property.
65
- *
66
- * @param {Object|Array<unknown>} obj The object to iterate
67
- * @param {Function} fn The callback to invoke for each item
68
- *
69
- * @param {Object} [options]
70
- * @param {Boolean} [options.allOwnKeys = false]
71
- * @returns {any}
72
- */
73
- function forEach(obj, fn, { allOwnKeys = false } = {}) {
74
- if (obj === null || typeof obj === "undefined") return;
75
- let i;
76
- let l;
77
- if (typeof obj !== "object") obj = [obj];
78
- if (isArray(obj)) for (i = 0, l = obj.length; i < l; i++) fn.call(null, obj[i], i, obj);
79
- else {
80
- if (isBuffer(obj)) return;
81
- const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
82
- const len = keys.length;
83
- let key;
84
- for (i = 0; i < len; i++) {
85
- key = keys[i];
86
- fn.call(null, obj[key], key, obj);
87
- }
88
- }
89
- }
90
- /**
91
- * Finds a key in an object, case-insensitive, returning the actual key name.
92
- * Returns null if the object is a Buffer or if no match is found.
93
- *
94
- * @param {Object} obj - The object to search.
95
- * @param {string} key - The key to find (case-insensitive).
96
- * @returns {?string} The actual key name if found, otherwise null.
97
- */
98
- function findKey(obj, key) {
99
- if (isBuffer(obj)) return null;
100
- key = key.toLowerCase();
101
- const keys = Object.keys(obj);
102
- let i = keys.length;
103
- let _key;
104
- while (i-- > 0) {
105
- _key = keys[i];
106
- if (key === _key.toLowerCase()) return _key;
107
- }
108
- return null;
109
- }
110
- /**
111
- * Accepts varargs expecting each argument to be an object, then
112
- * immutably merges the properties of each object and returns result.
113
- *
114
- * When multiple objects contain the same key the later object in
115
- * the arguments list will take precedence.
116
- *
117
- * Example:
118
- *
119
- * ```js
120
- * const result = merge({foo: 123}, {foo: 456});
121
- * console.log(result.foo); // outputs 456
122
- * ```
123
- *
124
- * @param {Object} obj1 Object to merge
125
- *
126
- * @returns {Object} Result of all merge properties
127
- */
128
- function merge(...objs) {
129
- const { caseless, skipUndefined } = isContextDefined(this) && this || {};
130
- const result = {};
131
- const assignValue = (val, key) => {
132
- if (key === "__proto__" || key === "constructor" || key === "prototype") return;
133
- const targetKey = caseless && findKey(result, key) || key;
134
- const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
135
- if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge(existing, val);
136
- else if (isPlainObject(val)) result[targetKey] = merge({}, val);
137
- else if (isArray(val)) result[targetKey] = val.slice();
138
- else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
139
- };
140
- for (let i = 0, l = objs.length; i < l; i++) objs[i] && forEach(objs[i], assignValue);
141
- return result;
142
- }
143
- /**
144
- * If the thing is a FormData object, return true, otherwise return false.
145
- *
146
- * @param {unknown} thing - The thing to check.
147
- *
148
- * @returns {boolean}
149
- */
150
- function isSpecCompliantForm(thing) {
151
- return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
152
- }
153
- var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction$1, isNumber, isObject, isBoolean, isPlainObject, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, hasOwnProperty, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop, toFiniteNumber, toJSONObject, isAsyncFn, isThenable, _setImmediate, asap, isIterable, utils_default;
154
- var init_utils$1 = __esmMin((() => {
155
- init_bind();
156
- ({toString} = Object.prototype);
157
- ({getPrototypeOf} = Object);
158
- ({iterator, toStringTag} = Symbol);
159
- kindOf = ((cache) => (thing) => {
160
- const str = toString.call(thing);
161
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
162
- })(Object.create(null));
163
- kindOfTest = (type) => {
164
- type = type.toLowerCase();
165
- return (thing) => kindOf(thing) === type;
166
- };
167
- typeOfTest = (type) => (thing) => typeof thing === type;
168
- ({isArray} = Array);
169
- isUndefined = typeOfTest("undefined");
170
- isArrayBuffer = kindOfTest("ArrayBuffer");
171
- isString = typeOfTest("string");
172
- isFunction$1 = typeOfTest("function");
173
- isNumber = typeOfTest("number");
174
- isObject = (thing) => thing !== null && typeof thing === "object";
175
- isBoolean = (thing) => thing === true || thing === false;
176
- isPlainObject = (val) => {
177
- if (kindOf(val) !== "object") return false;
178
- const prototype = getPrototypeOf(val);
179
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
180
- };
181
- isEmptyObject = (val) => {
182
- if (!isObject(val) || isBuffer(val)) return false;
183
- try {
184
- return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
185
- } catch (e) {
186
- return false;
187
- }
188
- };
189
- isDate = kindOfTest("Date");
190
- isFile = kindOfTest("File");
191
- isReactNativeBlob = (value) => {
192
- return !!(value && typeof value.uri !== "undefined");
193
- };
194
- isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
195
- isBlob = kindOfTest("Blob");
196
- isFileList = kindOfTest("FileList");
197
- isStream = (val) => isObject(val) && isFunction$1(val.pipe);
198
- G = getGlobal();
199
- FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
200
- isFormData = (thing) => {
201
- if (!thing) return false;
202
- if (FormDataCtor && thing instanceof FormDataCtor) return true;
203
- const proto = getPrototypeOf(thing);
204
- if (!proto || proto === Object.prototype) return false;
205
- if (!isFunction$1(thing.append)) return false;
206
- const kind = kindOf(thing);
207
- return kind === "formdata" || kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
208
- };
209
- isURLSearchParams = kindOfTest("URLSearchParams");
210
- [isReadableStream, isRequest, isResponse, isHeaders] = [
211
- "ReadableStream",
212
- "Request",
213
- "Response",
214
- "Headers"
215
- ].map(kindOfTest);
216
- trim = (str) => {
217
- return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
218
- };
219
- _global = (() => {
220
- if (typeof globalThis !== "undefined") return globalThis;
221
- return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
222
- })();
223
- isContextDefined = (context) => !isUndefined(context) && context !== _global;
224
- extend = (a, b, thisArg, { allOwnKeys } = {}) => {
225
- forEach(b, (val, key) => {
226
- if (thisArg && isFunction$1(val)) Object.defineProperty(a, key, {
227
- __proto__: null,
228
- value: bind(val, thisArg),
229
- writable: true,
230
- enumerable: true,
231
- configurable: true
232
- });
233
- else Object.defineProperty(a, key, {
234
- __proto__: null,
235
- value: val,
236
- writable: true,
237
- enumerable: true,
238
- configurable: true
239
- });
240
- }, { allOwnKeys });
241
- return a;
242
- };
243
- stripBOM = (content) => {
244
- if (content.charCodeAt(0) === 65279) content = content.slice(1);
245
- return content;
246
- };
247
- inherits = (constructor, superConstructor, props, descriptors) => {
248
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
249
- Object.defineProperty(constructor.prototype, "constructor", {
250
- __proto__: null,
251
- value: constructor,
252
- writable: true,
253
- enumerable: false,
254
- configurable: true
255
- });
256
- Object.defineProperty(constructor, "super", {
257
- __proto__: null,
258
- value: superConstructor.prototype
259
- });
260
- props && Object.assign(constructor.prototype, props);
261
- };
262
- toFlatObject = (sourceObj, destObj, filter, propFilter) => {
263
- let props;
264
- let i;
265
- let prop;
266
- const merged = {};
267
- destObj = destObj || {};
268
- if (sourceObj == null) return destObj;
269
- do {
270
- props = Object.getOwnPropertyNames(sourceObj);
271
- i = props.length;
272
- while (i-- > 0) {
273
- prop = props[i];
274
- if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
275
- destObj[prop] = sourceObj[prop];
276
- merged[prop] = true;
277
- }
278
- }
279
- sourceObj = filter !== false && getPrototypeOf(sourceObj);
280
- } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
281
- return destObj;
282
- };
283
- endsWith = (str, searchString, position) => {
284
- str = String(str);
285
- if (position === void 0 || position > str.length) position = str.length;
286
- position -= searchString.length;
287
- const lastIndex = str.indexOf(searchString, position);
288
- return lastIndex !== -1 && lastIndex === position;
289
- };
290
- toArray = (thing) => {
291
- if (!thing) return null;
292
- if (isArray(thing)) return thing;
293
- let i = thing.length;
294
- if (!isNumber(i)) return null;
295
- const arr = new Array(i);
296
- while (i-- > 0) arr[i] = thing[i];
297
- return arr;
298
- };
299
- isTypedArray = ((TypedArray) => {
300
- return (thing) => {
301
- return TypedArray && thing instanceof TypedArray;
302
- };
303
- })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
304
- forEachEntry = (obj, fn) => {
305
- const _iterator = (obj && obj[iterator]).call(obj);
306
- let result;
307
- while ((result = _iterator.next()) && !result.done) {
308
- const pair = result.value;
309
- fn.call(obj, pair[0], pair[1]);
310
- }
311
- };
312
- matchAll = (regExp, str) => {
313
- let matches;
314
- const arr = [];
315
- while ((matches = regExp.exec(str)) !== null) arr.push(matches);
316
- return arr;
317
- };
318
- isHTMLForm = kindOfTest("HTMLFormElement");
319
- toCamelCase = (str) => {
320
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
321
- return p1.toUpperCase() + p2;
322
- });
323
- };
324
- hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
325
- isRegExp = kindOfTest("RegExp");
326
- reduceDescriptors = (obj, reducer) => {
327
- const descriptors = Object.getOwnPropertyDescriptors(obj);
328
- const reducedDescriptors = {};
329
- forEach(descriptors, (descriptor, name) => {
330
- let ret;
331
- if ((ret = reducer(descriptor, name, obj)) !== false) reducedDescriptors[name] = ret || descriptor;
332
- });
333
- Object.defineProperties(obj, reducedDescriptors);
334
- };
335
- freezeMethods = (obj) => {
336
- reduceDescriptors(obj, (descriptor, name) => {
337
- if (isFunction$1(obj) && [
338
- "arguments",
339
- "caller",
340
- "callee"
341
- ].includes(name)) return false;
342
- const value = obj[name];
343
- if (!isFunction$1(value)) return;
344
- descriptor.enumerable = false;
345
- if ("writable" in descriptor) {
346
- descriptor.writable = false;
347
- return;
348
- }
349
- if (!descriptor.set) descriptor.set = () => {
350
- throw Error("Can not rewrite read-only method '" + name + "'");
351
- };
352
- });
353
- };
354
- toObjectSet = (arrayOrString, delimiter) => {
355
- const obj = {};
356
- const define = (arr) => {
357
- arr.forEach((value) => {
358
- obj[value] = true;
359
- });
360
- };
361
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
362
- return obj;
363
- };
364
- noop = () => {};
365
- toFiniteNumber = (value, defaultValue) => {
366
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
367
- };
368
- toJSONObject = (obj) => {
369
- const visited = /* @__PURE__ */ new WeakSet();
370
- const visit = (source) => {
371
- if (isObject(source)) {
372
- if (visited.has(source)) return;
373
- if (isBuffer(source)) return source;
374
- if (!("toJSON" in source)) {
375
- visited.add(source);
376
- const target = isArray(source) ? [] : {};
377
- forEach(source, (value, key) => {
378
- const reducedValue = visit(value);
379
- !isUndefined(reducedValue) && (target[key] = reducedValue);
380
- });
381
- visited.delete(source);
382
- return target;
383
- }
384
- }
385
- return source;
386
- };
387
- return visit(obj);
388
- };
389
- isAsyncFn = kindOfTest("AsyncFunction");
390
- isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
391
- _setImmediate = ((setImmediateSupported, postMessageSupported) => {
392
- if (setImmediateSupported) return setImmediate;
393
- return postMessageSupported ? ((token, callbacks) => {
394
- _global.addEventListener("message", ({ source, data }) => {
395
- if (source === _global && data === token) callbacks.length && callbacks.shift()();
396
- }, false);
397
- return (cb) => {
398
- callbacks.push(cb);
399
- _global.postMessage(token, "*");
400
- };
401
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
402
- })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
403
- asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
404
- isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
405
- utils_default = {
406
- isArray,
407
- isArrayBuffer,
408
- isBuffer,
409
- isFormData,
410
- isArrayBufferView,
411
- isString,
412
- isNumber,
413
- isBoolean,
414
- isObject,
415
- isPlainObject,
416
- isEmptyObject,
417
- isReadableStream,
418
- isRequest,
419
- isResponse,
420
- isHeaders,
421
- isUndefined,
422
- isDate,
423
- isFile,
424
- isReactNativeBlob,
425
- isReactNative,
426
- isBlob,
427
- isRegExp,
428
- isFunction: isFunction$1,
429
- isStream,
430
- isURLSearchParams,
431
- isTypedArray,
432
- isFileList,
433
- forEach,
434
- merge,
435
- extend,
436
- trim,
437
- stripBOM,
438
- inherits,
439
- toFlatObject,
440
- kindOf,
441
- kindOfTest,
442
- endsWith,
443
- toArray,
444
- forEachEntry,
445
- matchAll,
446
- isHTMLForm,
447
- hasOwnProperty,
448
- hasOwnProp: hasOwnProperty,
449
- reduceDescriptors,
450
- freezeMethods,
451
- toObjectSet,
452
- toCamelCase,
453
- noop,
454
- toFiniteNumber,
455
- findKey,
456
- global: _global,
457
- isContextDefined,
458
- isSpecCompliantForm,
459
- toJSONObject,
460
- isAsyncFn,
461
- isThenable,
462
- setImmediate: _setImmediate,
463
- asap,
464
- isIterable
465
- };
466
- }));
467
- //#endregion
468
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/parseHeaders.js
469
- var ignoreDuplicateOf, parseHeaders_default;
470
- var init_parseHeaders = __esmMin((() => {
471
- init_utils$1();
472
- ignoreDuplicateOf = utils_default.toObjectSet([
473
- "age",
474
- "authorization",
475
- "content-length",
476
- "content-type",
477
- "etag",
478
- "expires",
479
- "from",
480
- "host",
481
- "if-modified-since",
482
- "if-unmodified-since",
483
- "last-modified",
484
- "location",
485
- "max-forwards",
486
- "proxy-authorization",
487
- "referer",
488
- "retry-after",
489
- "user-agent"
490
- ]);
491
- parseHeaders_default = (rawHeaders) => {
492
- const parsed = {};
493
- let key;
494
- let val;
495
- let i;
496
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
497
- i = line.indexOf(":");
498
- key = line.substring(0, i).trim().toLowerCase();
499
- val = line.substring(i + 1).trim();
500
- if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
501
- if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
502
- else parsed[key] = [val];
503
- else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
504
- });
505
- return parsed;
506
- };
507
- }));
508
- //#endregion
509
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
510
- function trimSPorHTAB(str) {
511
- let start = 0;
512
- let end = str.length;
513
- while (start < end) {
514
- const code = str.charCodeAt(start);
515
- if (code !== 9 && code !== 32) break;
516
- start += 1;
517
- }
518
- while (end > start) {
519
- const code = str.charCodeAt(end - 1);
520
- if (code !== 9 && code !== 32) break;
521
- end -= 1;
522
- }
523
- return start === 0 && end === str.length ? str : str.slice(start, end);
524
- }
525
- function sanitizeValue(value, invalidChars) {
526
- if (utils_default.isArray(value)) return value.map((item) => sanitizeValue(item, invalidChars));
527
- return trimSPorHTAB(String(value).replace(invalidChars, ""));
528
- }
529
- function toByteStringHeaderObject(headers) {
530
- const byteStringHeaders = Object.create(null);
531
- utils_default.forEach(headers.toJSON(), (value, header) => {
532
- byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
533
- });
534
- return byteStringHeaders;
535
- }
536
- var INVALID_UNICODE_HEADER_VALUE_CHARS, INVALID_BYTE_STRING_HEADER_VALUE_CHARS, sanitizeHeaderValue, sanitizeByteStringHeaderValue;
537
- var init_sanitizeHeaderValue = __esmMin((() => {
538
- init_utils$1();
539
- INVALID_UNICODE_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
540
- INVALID_BYTE_STRING_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
541
- sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
542
- sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
543
- }));
544
- //#endregion
545
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/AxiosHeaders.js
546
- function normalizeHeader(header) {
547
- return header && String(header).trim().toLowerCase();
548
- }
549
- function normalizeValue(value) {
550
- if (value === false || value == null) return value;
551
- return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
552
- }
553
- function parseTokens(str) {
554
- const tokens = Object.create(null);
555
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
556
- let match;
557
- while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
558
- return tokens;
559
- }
560
- function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
561
- if (utils_default.isFunction(filter)) return filter.call(this, value, header);
562
- if (isHeaderNameFilter) value = header;
563
- if (!utils_default.isString(value)) return;
564
- if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
565
- if (utils_default.isRegExp(filter)) return filter.test(value);
566
- }
567
- function formatHeader(header) {
568
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
569
- return char.toUpperCase() + str;
570
- });
571
- }
572
- function buildAccessors(obj, header) {
573
- const accessorName = utils_default.toCamelCase(" " + header);
574
- [
575
- "get",
576
- "set",
577
- "has"
578
- ].forEach((methodName) => {
579
- Object.defineProperty(obj, methodName + accessorName, {
580
- __proto__: null,
581
- value: function(arg1, arg2, arg3) {
582
- return this[methodName].call(this, header, arg1, arg2, arg3);
583
- },
584
- configurable: true
585
- });
586
- });
587
- }
588
- var $internals, isValidHeaderName, AxiosHeaders$1;
589
- var init_AxiosHeaders = __esmMin((() => {
590
- init_utils$1();
591
- init_parseHeaders();
592
- init_sanitizeHeaderValue();
593
- $internals = Symbol("internals");
594
- isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
595
- AxiosHeaders$1 = class {
596
- constructor(headers) {
597
- headers && this.set(headers);
598
- }
599
- set(header, valueOrRewrite, rewrite) {
600
- const self = this;
601
- function setHeader(_value, _header, _rewrite) {
602
- const lHeader = normalizeHeader(_header);
603
- if (!lHeader) throw new Error("header name must be a non-empty string");
604
- const key = utils_default.findKey(self, lHeader);
605
- if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
606
- }
607
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
608
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
609
- else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
610
- else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
611
- let obj = {}, dest, key;
612
- for (const entry of header) {
613
- if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
614
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
615
- }
616
- setHeaders(obj, valueOrRewrite);
617
- } else header != null && setHeader(valueOrRewrite, header, rewrite);
618
- return this;
619
- }
620
- get(header, parser) {
621
- header = normalizeHeader(header);
622
- if (header) {
623
- const key = utils_default.findKey(this, header);
624
- if (key) {
625
- const value = this[key];
626
- if (!parser) return value;
627
- if (parser === true) return parseTokens(value);
628
- if (utils_default.isFunction(parser)) return parser.call(this, value, key);
629
- if (utils_default.isRegExp(parser)) return parser.exec(value);
630
- throw new TypeError("parser must be boolean|regexp|function");
631
- }
632
- }
633
- }
634
- has(header, matcher) {
635
- header = normalizeHeader(header);
636
- if (header) {
637
- const key = utils_default.findKey(this, header);
638
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
639
- }
640
- return false;
641
- }
642
- delete(header, matcher) {
643
- const self = this;
644
- let deleted = false;
645
- function deleteHeader(_header) {
646
- _header = normalizeHeader(_header);
647
- if (_header) {
648
- const key = utils_default.findKey(self, _header);
649
- if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
650
- delete self[key];
651
- deleted = true;
652
- }
653
- }
654
- }
655
- if (utils_default.isArray(header)) header.forEach(deleteHeader);
656
- else deleteHeader(header);
657
- return deleted;
658
- }
659
- clear(matcher) {
660
- const keys = Object.keys(this);
661
- let i = keys.length;
662
- let deleted = false;
663
- while (i--) {
664
- const key = keys[i];
665
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
666
- delete this[key];
667
- deleted = true;
668
- }
669
- }
670
- return deleted;
671
- }
672
- normalize(format) {
673
- const self = this;
674
- const headers = {};
675
- utils_default.forEach(this, (value, header) => {
676
- const key = utils_default.findKey(headers, header);
677
- if (key) {
678
- self[key] = normalizeValue(value);
679
- delete self[header];
680
- return;
681
- }
682
- const normalized = format ? formatHeader(header) : String(header).trim();
683
- if (normalized !== header) delete self[header];
684
- self[normalized] = normalizeValue(value);
685
- headers[normalized] = true;
686
- });
687
- return this;
688
- }
689
- concat(...targets) {
690
- return this.constructor.concat(this, ...targets);
691
- }
692
- toJSON(asStrings) {
693
- const obj = Object.create(null);
694
- utils_default.forEach(this, (value, header) => {
695
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
696
- });
697
- return obj;
698
- }
699
- [Symbol.iterator]() {
700
- return Object.entries(this.toJSON())[Symbol.iterator]();
701
- }
702
- toString() {
703
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
704
- }
705
- getSetCookie() {
706
- return this.get("set-cookie") || [];
707
- }
708
- get [Symbol.toStringTag]() {
709
- return "AxiosHeaders";
710
- }
711
- static from(thing) {
712
- return thing instanceof this ? thing : new this(thing);
713
- }
714
- static concat(first, ...targets) {
715
- const computed = new this(first);
716
- targets.forEach((target) => computed.set(target));
717
- return computed;
718
- }
719
- static accessor(header) {
720
- const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
721
- const prototype = this.prototype;
722
- function defineAccessor(_header) {
723
- const lHeader = normalizeHeader(_header);
724
- if (!accessors[lHeader]) {
725
- buildAccessors(prototype, _header);
726
- accessors[lHeader] = true;
727
- }
728
- }
729
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
730
- return this;
731
- }
732
- };
733
- AxiosHeaders$1.accessor([
734
- "Content-Type",
735
- "Content-Length",
736
- "Accept",
737
- "Accept-Encoding",
738
- "User-Agent",
739
- "Authorization"
740
- ]);
741
- utils_default.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
742
- let mapped = key[0].toUpperCase() + key.slice(1);
743
- return {
744
- get: () => value,
745
- set(headerValue) {
746
- this[mapped] = headerValue;
747
- }
748
- };
749
- });
750
- utils_default.freezeMethods(AxiosHeaders$1);
751
- }));
752
- //#endregion
753
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/AxiosError.js
754
- function hasOwnOrPrototypeToJSON(source) {
755
- if (utils_default.hasOwnProp(source, "toJSON")) return true;
756
- let prototype = Object.getPrototypeOf(source);
757
- while (prototype && prototype !== Object.prototype) {
758
- if (utils_default.hasOwnProp(prototype, "toJSON")) return true;
759
- prototype = Object.getPrototypeOf(prototype);
760
- }
761
- return false;
762
- }
763
- function redactConfig(config, redactKeys) {
764
- const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
765
- const seen = [];
766
- const visit = (source) => {
767
- if (source === null || typeof source !== "object") return source;
768
- if (utils_default.isBuffer(source)) return source;
769
- if (seen.indexOf(source) !== -1) return void 0;
770
- if (source instanceof AxiosHeaders$1) source = source.toJSON();
771
- seen.push(source);
772
- let result;
773
- if (utils_default.isArray(source)) {
774
- result = [];
775
- source.forEach((v, i) => {
776
- const reducedValue = visit(v);
777
- if (!utils_default.isUndefined(reducedValue)) result[i] = reducedValue;
778
- });
779
- } else {
780
- if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
781
- seen.pop();
782
- return source;
783
- }
784
- result = Object.create(null);
785
- for (const [key, value] of Object.entries(source)) {
786
- const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
787
- if (!utils_default.isUndefined(reducedValue)) result[key] = reducedValue;
788
- }
789
- }
790
- seen.pop();
791
- return result;
792
- };
793
- return visit(config);
794
- }
795
- var REDACTED, AxiosError$1;
796
- var init_AxiosError = __esmMin((() => {
797
- init_utils$1();
798
- init_AxiosHeaders();
799
- REDACTED = "[REDACTED ****]";
800
- AxiosError$1 = class AxiosError$1 extends Error {
801
- static from(error, code, config, request, response, customProps) {
802
- const axiosError = new AxiosError$1(error.message, code || error.code, config, request, response);
803
- axiosError.cause = error;
804
- axiosError.name = error.name;
805
- if (error.status != null && axiosError.status == null) axiosError.status = error.status;
806
- customProps && Object.assign(axiosError, customProps);
807
- return axiosError;
808
- }
809
- /**
810
- * Create an Error with the specified message, config, error code, request and response.
811
- *
812
- * @param {string} message The error message.
813
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
814
- * @param {Object} [config] The config.
815
- * @param {Object} [request] The request.
816
- * @param {Object} [response] The response.
817
- *
818
- * @returns {Error} The created error.
819
- */
820
- constructor(message, code, config, request, response) {
821
- super(message);
822
- Object.defineProperty(this, "message", {
823
- __proto__: null,
824
- value: message,
825
- enumerable: true,
826
- writable: true,
827
- configurable: true
828
- });
829
- this.name = "AxiosError";
830
- this.isAxiosError = true;
831
- code && (this.code = code);
832
- config && (this.config = config);
833
- request && (this.request = request);
834
- if (response) {
835
- this.response = response;
836
- this.status = response.status;
837
- }
838
- }
839
- toJSON() {
840
- const config = this.config;
841
- const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
842
- const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
843
- return {
844
- message: this.message,
845
- name: this.name,
846
- description: this.description,
847
- number: this.number,
848
- fileName: this.fileName,
849
- lineNumber: this.lineNumber,
850
- columnNumber: this.columnNumber,
851
- stack: this.stack,
852
- config: serializedConfig,
853
- code: this.code,
854
- status: this.status
855
- };
856
- }
857
- };
858
- AxiosError$1.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
859
- AxiosError$1.ERR_BAD_OPTION = "ERR_BAD_OPTION";
860
- AxiosError$1.ECONNABORTED = "ECONNABORTED";
861
- AxiosError$1.ETIMEDOUT = "ETIMEDOUT";
862
- AxiosError$1.ECONNREFUSED = "ECONNREFUSED";
863
- AxiosError$1.ERR_NETWORK = "ERR_NETWORK";
864
- AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
865
- AxiosError$1.ERR_DEPRECATED = "ERR_DEPRECATED";
866
- AxiosError$1.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
867
- AxiosError$1.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
868
- AxiosError$1.ERR_CANCELED = "ERR_CANCELED";
869
- AxiosError$1.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
870
- AxiosError$1.ERR_INVALID_URL = "ERR_INVALID_URL";
871
- AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
872
- }));
873
- //#endregion
874
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/null.js
875
- var init_null = __esmMin((() => {}));
876
- //#endregion
877
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/toFormData.js
878
- /**
879
- * Determines if the given thing is a array or js object.
880
- *
881
- * @param {string} thing - The object or array to be visited.
882
- *
883
- * @returns {boolean}
884
- */
885
- function isVisitable(thing) {
886
- return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
887
- }
888
- /**
889
- * It removes the brackets from the end of a string
890
- *
891
- * @param {string} key - The key of the parameter.
892
- *
893
- * @returns {string} the key without the brackets.
894
- */
895
- function removeBrackets(key) {
896
- return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
897
- }
898
- /**
899
- * It takes a path, a key, and a boolean, and returns a string
900
- *
901
- * @param {string} path - The path to the current key.
902
- * @param {string} key - The key of the current object being iterated over.
903
- * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
904
- *
905
- * @returns {string} The path to the current key.
906
- */
907
- function renderKey(path, key, dots) {
908
- if (!path) return key;
909
- return path.concat(key).map(function each(token, i) {
910
- token = removeBrackets(token);
911
- return !dots && i ? "[" + token + "]" : token;
912
- }).join(dots ? "." : "");
913
- }
914
- /**
915
- * If the array is an array and none of its elements are visitable, then it's a flat array.
916
- *
917
- * @param {Array<any>} arr - The array to check
918
- *
919
- * @returns {boolean}
920
- */
921
- function isFlatArray(arr) {
922
- return utils_default.isArray(arr) && !arr.some(isVisitable);
923
- }
924
- /**
925
- * Convert a data object to FormData
926
- *
927
- * @param {Object} obj
928
- * @param {?Object} [formData]
929
- * @param {?Object} [options]
930
- * @param {Function} [options.visitor]
931
- * @param {Boolean} [options.metaTokens = true]
932
- * @param {Boolean} [options.dots = false]
933
- * @param {?Boolean} [options.indexes = false]
934
- *
935
- * @returns {Object}
936
- **/
937
- /**
938
- * It converts an object into a FormData object
939
- *
940
- * @param {Object<any, any>} obj - The object to convert to form data.
941
- * @param {string} formData - The FormData object to append to.
942
- * @param {Object<string, any>} options
943
- *
944
- * @returns
945
- */
946
- function toFormData$1(obj, formData, options) {
947
- if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
948
- formData = formData || new FormData();
949
- options = utils_default.toFlatObject(options, {
950
- metaTokens: true,
951
- dots: false,
952
- indexes: false
953
- }, false, function defined(option, source) {
954
- return !utils_default.isUndefined(source[option]);
955
- });
956
- const metaTokens = options.metaTokens;
957
- const visitor = options.visitor || defaultVisitor;
958
- const dots = options.dots;
959
- const indexes = options.indexes;
960
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
961
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
962
- const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
963
- if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
964
- function convertValue(value) {
965
- if (value === null) return "";
966
- if (utils_default.isDate(value)) return value.toISOString();
967
- if (utils_default.isBoolean(value)) return value.toString();
968
- if (!useBlob && utils_default.isBlob(value)) throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
969
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
970
- return value;
971
- }
972
- /**
973
- * Default visitor.
974
- *
975
- * @param {*} value
976
- * @param {String|Number} key
977
- * @param {Array<String|Number>} path
978
- * @this {FormData}
979
- *
980
- * @returns {boolean} return true to visit the each prop of the value recursively
981
- */
982
- function defaultVisitor(value, key, path) {
983
- let arr = value;
984
- if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
985
- formData.append(renderKey(path, key, dots), convertValue(value));
986
- return false;
987
- }
988
- if (value && !path && typeof value === "object") {
989
- if (utils_default.endsWith(key, "{}")) {
990
- key = metaTokens ? key : key.slice(0, -2);
991
- value = JSON.stringify(value);
992
- } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
993
- key = removeBrackets(key);
994
- arr.forEach(function each(el, index) {
995
- !(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
996
- });
997
- return false;
998
- }
999
- }
1000
- if (isVisitable(value)) return true;
1001
- formData.append(renderKey(path, key, dots), convertValue(value));
1002
- return false;
1003
- }
1004
- const stack = [];
1005
- const exposedHelpers = Object.assign(predicates, {
1006
- defaultVisitor,
1007
- convertValue,
1008
- isVisitable
1009
- });
1010
- function build(value, path, depth = 0) {
1011
- if (utils_default.isUndefined(value)) return;
1012
- if (depth > maxDepth) throw new AxiosError$1("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED);
1013
- if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
1014
- stack.push(value);
1015
- utils_default.forEach(value, function each(el, key) {
1016
- if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key], depth + 1);
1017
- });
1018
- stack.pop();
1019
- }
1020
- if (!utils_default.isObject(obj)) throw new TypeError("data must be an object");
1021
- build(obj);
1022
- return formData;
1023
- }
1024
- var predicates;
1025
- var init_toFormData = __esmMin((() => {
1026
- init_utils$1();
1027
- init_AxiosError();
1028
- init_null();
1029
- predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
1030
- return /^is[A-Z]/.test(prop);
1031
- });
1032
- }));
1033
- //#endregion
1034
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1035
- /**
1036
- * It encodes a string by replacing all characters that are not in the unreserved set with
1037
- * their percent-encoded equivalents
1038
- *
1039
- * @param {string} str - The string to encode.
1040
- *
1041
- * @returns {string} The encoded string.
1042
- */
1043
- function encode$1(str) {
1044
- const charMap = {
1045
- "!": "%21",
1046
- "'": "%27",
1047
- "(": "%28",
1048
- ")": "%29",
1049
- "~": "%7E",
1050
- "%20": "+"
1051
- };
1052
- return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
1053
- return charMap[match];
1054
- });
1055
- }
1056
- /**
1057
- * It takes a params object and converts it to a FormData object
1058
- *
1059
- * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
1060
- * @param {Object<string, any>} options - The options object passed to the Axios constructor.
1061
- *
1062
- * @returns {void}
1063
- */
1064
- function AxiosURLSearchParams(params, options) {
1065
- this._pairs = [];
1066
- params && toFormData$1(params, this, options);
1067
- }
1068
- var prototype;
1069
- var init_AxiosURLSearchParams = __esmMin((() => {
1070
- init_toFormData();
1071
- prototype = AxiosURLSearchParams.prototype;
1072
- prototype.append = function append(name, value) {
1073
- this._pairs.push([name, value]);
1074
- };
1075
- prototype.toString = function toString(encoder) {
1076
- const _encode = encoder ? function(value) {
1077
- return encoder.call(this, value, encode$1);
1078
- } : encode$1;
1079
- return this._pairs.map(function each(pair) {
1080
- return _encode(pair[0]) + "=" + _encode(pair[1]);
1081
- }, "").join("&");
1082
- };
1083
- }));
1084
- //#endregion
1085
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/buildURL.js
1086
- /**
1087
- * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
1088
- * their plain counterparts (`:`, `$`, `,`, `+`).
1089
- *
1090
- * @param {string} val The value to be encoded.
1091
- *
1092
- * @returns {string} The encoded value.
1093
- */
1094
- function encode(val) {
1095
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1096
- }
1097
- /**
1098
- * Build a URL by appending params to the end
1099
- *
1100
- * @param {string} url The base of the url (e.g., http://www.google.com)
1101
- * @param {object} [params] The params to be appended
1102
- * @param {?(object|Function)} options
1103
- *
1104
- * @returns {string} The formatted url
1105
- */
1106
- function buildURL(url, params, options) {
1107
- if (!params) return url;
1108
- const _encode = options && options.encode || encode;
1109
- const _options = utils_default.isFunction(options) ? { serialize: options } : options;
1110
- const serializeFn = _options && _options.serialize;
1111
- let serializedParams;
1112
- if (serializeFn) serializedParams = serializeFn(params, _options);
1113
- else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
1114
- if (serializedParams) {
1115
- const hashmarkIndex = url.indexOf("#");
1116
- if (hashmarkIndex !== -1) url = url.slice(0, hashmarkIndex);
1117
- url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
1118
- }
1119
- return url;
1120
- }
1121
- var init_buildURL = __esmMin((() => {
1122
- init_utils$1();
1123
- init_AxiosURLSearchParams();
1124
- }));
1125
- //#endregion
1126
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/InterceptorManager.js
1127
- var InterceptorManager;
1128
- var init_InterceptorManager = __esmMin((() => {
1129
- init_utils$1();
1130
- InterceptorManager = class {
1131
- constructor() {
1132
- this.handlers = [];
1133
- }
1134
- /**
1135
- * Add a new interceptor to the stack
1136
- *
1137
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
1138
- * @param {Function} rejected The function to handle `reject` for a `Promise`
1139
- * @param {Object} options The options for the interceptor, synchronous and runWhen
1140
- *
1141
- * @return {Number} An ID used to remove interceptor later
1142
- */
1143
- use(fulfilled, rejected, options) {
1144
- this.handlers.push({
1145
- fulfilled,
1146
- rejected,
1147
- synchronous: options ? options.synchronous : false,
1148
- runWhen: options ? options.runWhen : null
1149
- });
1150
- return this.handlers.length - 1;
1151
- }
1152
- /**
1153
- * Remove an interceptor from the stack
1154
- *
1155
- * @param {Number} id The ID that was returned by `use`
1156
- *
1157
- * @returns {void}
1158
- */
1159
- eject(id) {
1160
- if (this.handlers[id]) this.handlers[id] = null;
1161
- }
1162
- /**
1163
- * Clear all interceptors from the stack
1164
- *
1165
- * @returns {void}
1166
- */
1167
- clear() {
1168
- if (this.handlers) this.handlers = [];
1169
- }
1170
- /**
1171
- * Iterate over all the registered interceptors
1172
- *
1173
- * This method is particularly useful for skipping over any
1174
- * interceptors that may have become `null` calling `eject`.
1175
- *
1176
- * @param {Function} fn The function to call for each interceptor
1177
- *
1178
- * @returns {void}
1179
- */
1180
- forEach(fn) {
1181
- utils_default.forEach(this.handlers, function forEachHandler(h) {
1182
- if (h !== null) fn(h);
1183
- });
1184
- }
1185
- };
1186
- }));
1187
- //#endregion
1188
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/defaults/transitional.js
1189
- var transitional_default;
1190
- var init_transitional = __esmMin((() => {
1191
- transitional_default = {
1192
- silentJSONParsing: true,
1193
- forcedJSONParsing: true,
1194
- clarifyTimeoutError: false,
1195
- legacyInterceptorReqResOrdering: true
1196
- };
1197
- }));
1198
- //#endregion
1199
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1200
- var URLSearchParams_default;
1201
- var init_URLSearchParams = __esmMin((() => {
1202
- init_AxiosURLSearchParams();
1203
- URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
1204
- }));
1205
- //#endregion
1206
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/classes/FormData.js
1207
- var FormData_default;
1208
- var init_FormData = __esmMin((() => {
1209
- FormData_default = typeof FormData !== "undefined" ? FormData : null;
1210
- }));
1211
- //#endregion
1212
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/classes/Blob.js
1213
- var Blob_default;
1214
- var init_Blob = __esmMin((() => {
1215
- Blob_default = typeof Blob !== "undefined" ? Blob : null;
1216
- }));
1217
- //#endregion
1218
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/index.js
1219
- var browser_default;
1220
- var init_browser = __esmMin((() => {
1221
- init_URLSearchParams();
1222
- init_FormData();
1223
- init_Blob();
1224
- browser_default = {
1225
- isBrowser: true,
1226
- classes: {
1227
- URLSearchParams: URLSearchParams_default,
1228
- FormData: FormData_default,
1229
- Blob: Blob_default
1230
- },
1231
- protocols: [
1232
- "http",
1233
- "https",
1234
- "file",
1235
- "blob",
1236
- "url",
1237
- "data"
1238
- ]
1239
- };
1240
- }));
1241
- //#endregion
1242
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/common/utils.js
1243
- var utils_exports = /* @__PURE__ */ __exportAll({
1244
- hasBrowserEnv: () => hasBrowserEnv,
1245
- hasStandardBrowserEnv: () => hasStandardBrowserEnv,
1246
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
1247
- navigator: () => _navigator,
1248
- origin: () => origin
1249
- });
1250
- var hasBrowserEnv, _navigator, hasStandardBrowserEnv, hasStandardBrowserWebWorkerEnv, origin;
1251
- var init_utils = __esmMin((() => {
1252
- hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
1253
- _navigator = typeof navigator === "object" && navigator || void 0;
1254
- hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
1255
- "ReactNative",
1256
- "NativeScript",
1257
- "NS"
1258
- ].indexOf(_navigator.product) < 0);
1259
- hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
1260
- origin = hasBrowserEnv && window.location.href || "http://localhost";
1261
- }));
1262
- //#endregion
1263
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/index.js
1264
- var platform_default;
1265
- var init_platform = __esmMin((() => {
1266
- init_browser();
1267
- init_utils();
1268
- init_objectSpread2();
1269
- platform_default = _objectSpread2(_objectSpread2({}, utils_exports), browser_default);
1270
- }));
1271
- //#endregion
1272
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
1273
- function toURLEncodedForm(data, options) {
1274
- return toFormData$1(data, new platform_default.classes.URLSearchParams(), _objectSpread2({ visitor: function(value, key, path, helpers) {
1275
- if (platform_default.isNode && utils_default.isBuffer(value)) {
1276
- this.append(key, value.toString("base64"));
1277
- return false;
1278
- }
1279
- return helpers.defaultVisitor.apply(this, arguments);
1280
- } }, options));
1281
- }
1282
- var init_toURLEncodedForm = __esmMin((() => {
1283
- init_utils$1();
1284
- init_toFormData();
1285
- init_platform();
1286
- init_objectSpread2();
1287
- }));
1288
- //#endregion
1289
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/formDataToJSON.js
1290
- /**
1291
- * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1292
- *
1293
- * @param {string} name - The name of the property to get.
1294
- *
1295
- * @returns An array of strings.
1296
- */
1297
- function parsePropPath(name) {
1298
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
1299
- return match[0] === "[]" ? "" : match[1] || match[0];
1300
- });
1301
- }
1302
- /**
1303
- * Convert an array to an object.
1304
- *
1305
- * @param {Array<any>} arr - The array to convert to an object.
1306
- *
1307
- * @returns An object with the same keys and values as the array.
1308
- */
1309
- function arrayToObject(arr) {
1310
- const obj = {};
1311
- const keys = Object.keys(arr);
1312
- let i;
1313
- const len = keys.length;
1314
- let key;
1315
- for (i = 0; i < len; i++) {
1316
- key = keys[i];
1317
- obj[key] = arr[key];
1318
- }
1319
- return obj;
1320
- }
1321
- /**
1322
- * It takes a FormData object and returns a JavaScript object
1323
- *
1324
- * @param {string} formData The FormData object to convert to JSON.
1325
- *
1326
- * @returns {Object<string, any> | null} The converted object.
1327
- */
1328
- function formDataToJSON(formData) {
1329
- function buildPath(path, value, target, index) {
1330
- let name = path[index++];
1331
- if (name === "__proto__") return true;
1332
- const isNumericKey = Number.isFinite(+name);
1333
- const isLast = index >= path.length;
1334
- name = !name && utils_default.isArray(target) ? target.length : name;
1335
- if (isLast) {
1336
- if (utils_default.hasOwnProp(target, name)) target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
1337
- else target[name] = value;
1338
- return !isNumericKey;
1339
- }
1340
- if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) target[name] = [];
1341
- if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
1342
- return !isNumericKey;
1343
- }
1344
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
1345
- const obj = {};
1346
- utils_default.forEachEntry(formData, (name, value) => {
1347
- buildPath(parsePropPath(name), value, obj, 0);
1348
- });
1349
- return obj;
1350
- }
1351
- return null;
1352
- }
1353
- var init_formDataToJSON = __esmMin((() => {
1354
- init_utils$1();
1355
- }));
1356
- //#endregion
1357
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/defaults/index.js
1358
- /**
1359
- * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1360
- * of the input
1361
- *
1362
- * @param {any} rawValue - The value to be stringified.
1363
- * @param {Function} parser - A function that parses a string into a JavaScript object.
1364
- * @param {Function} encoder - A function that takes a value and returns a string.
1365
- *
1366
- * @returns {string} A stringified version of the rawValue.
1367
- */
1368
- function stringifySafely(rawValue, parser, encoder) {
1369
- if (utils_default.isString(rawValue)) try {
1370
- (parser || JSON.parse)(rawValue);
1371
- return utils_default.trim(rawValue);
1372
- } catch (e) {
1373
- if (e.name !== "SyntaxError") throw e;
1374
- }
1375
- return (encoder || JSON.stringify)(rawValue);
1376
- }
1377
- var own, defaults;
1378
- var init_defaults = __esmMin((() => {
1379
- init_utils$1();
1380
- init_AxiosError();
1381
- init_transitional();
1382
- init_toFormData();
1383
- init_toURLEncodedForm();
1384
- init_platform();
1385
- init_formDataToJSON();
1386
- own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
1387
- defaults = {
1388
- transitional: transitional_default,
1389
- adapter: [
1390
- "xhr",
1391
- "http",
1392
- "fetch"
1393
- ],
1394
- transformRequest: [function transformRequest(data, headers) {
1395
- const contentType = headers.getContentType() || "";
1396
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
1397
- const isObjectPayload = utils_default.isObject(data);
1398
- if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
1399
- if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1400
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
1401
- if (utils_default.isArrayBufferView(data)) return data.buffer;
1402
- if (utils_default.isURLSearchParams(data)) {
1403
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
1404
- return data.toString();
1405
- }
1406
- let isFileList;
1407
- if (isObjectPayload) {
1408
- const formSerializer = own(this, "formSerializer");
1409
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, formSerializer).toString();
1410
- if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
1411
- const env = own(this, "env");
1412
- const _FormData = env && env.FormData;
1413
- return toFormData$1(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
1414
- }
1415
- }
1416
- if (isObjectPayload || hasJSONContentType) {
1417
- headers.setContentType("application/json", false);
1418
- return stringifySafely(data);
1419
- }
1420
- return data;
1421
- }],
1422
- transformResponse: [function transformResponse(data) {
1423
- const transitional = own(this, "transitional") || defaults.transitional;
1424
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1425
- const responseType = own(this, "responseType");
1426
- const JSONRequested = responseType === "json";
1427
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
1428
- if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
1429
- const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
1430
- try {
1431
- return JSON.parse(data, own(this, "parseReviver"));
1432
- } catch (e) {
1433
- if (strictJSONParsing) {
1434
- if (e.name === "SyntaxError") throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, own(this, "response"));
1435
- throw e;
1436
- }
1437
- }
1438
- }
1439
- return data;
1440
- }],
1441
- /**
1442
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
1443
- * timeout is not created.
1444
- */
1445
- timeout: 0,
1446
- xsrfCookieName: "XSRF-TOKEN",
1447
- xsrfHeaderName: "X-XSRF-TOKEN",
1448
- maxContentLength: -1,
1449
- maxBodyLength: -1,
1450
- env: {
1451
- FormData: platform_default.classes.FormData,
1452
- Blob: platform_default.classes.Blob
1453
- },
1454
- validateStatus: function validateStatus(status) {
1455
- return status >= 200 && status < 300;
1456
- },
1457
- headers: { common: {
1458
- Accept: "application/json, text/plain, */*",
1459
- "Content-Type": void 0
1460
- } }
1461
- };
1462
- utils_default.forEach([
1463
- "delete",
1464
- "get",
1465
- "head",
1466
- "post",
1467
- "put",
1468
- "patch",
1469
- "query"
1470
- ], (method) => {
1471
- defaults.headers[method] = {};
1472
- });
1473
- }));
1474
- //#endregion
1475
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/transformData.js
1476
- /**
1477
- * Transform the data for a request or a response
1478
- *
1479
- * @param {Array|Function} fns A single function or Array of functions
1480
- * @param {?Object} response The response object
1481
- *
1482
- * @returns {*} The resulting transformed data
1483
- */
1484
- function transformData(fns, response) {
1485
- const config = this || defaults;
1486
- const context = response || config;
1487
- const headers = AxiosHeaders$1.from(context.headers);
1488
- let data = context.data;
1489
- utils_default.forEach(fns, function transform(fn) {
1490
- data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
1491
- });
1492
- headers.normalize();
1493
- return data;
1494
- }
1495
- var init_transformData = __esmMin((() => {
1496
- init_utils$1();
1497
- init_defaults();
1498
- init_AxiosHeaders();
1499
- }));
1500
- //#endregion
1501
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/cancel/isCancel.js
1502
- function isCancel$1(value) {
1503
- return !!(value && value.__CANCEL__);
1504
- }
1505
- var init_isCancel = __esmMin((() => {}));
1506
- //#endregion
1507
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/cancel/CanceledError.js
1508
- var CanceledError$1;
1509
- var init_CanceledError = __esmMin((() => {
1510
- init_AxiosError();
1511
- CanceledError$1 = class extends AxiosError$1 {
1512
- /**
1513
- * A `CanceledError` is an object that is thrown when an operation is canceled.
1514
- *
1515
- * @param {string=} message The message.
1516
- * @param {Object=} config The config.
1517
- * @param {Object=} request The request.
1518
- *
1519
- * @returns {CanceledError} The created error.
1520
- */
1521
- constructor(message, config, request) {
1522
- super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
1523
- this.name = "CanceledError";
1524
- this.__CANCEL__ = true;
1525
- }
1526
- };
1527
- }));
1528
- //#endregion
1529
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/settle.js
1530
- /**
1531
- * Resolve or reject a Promise based on response status.
1532
- *
1533
- * @param {Function} resolve A function that resolves the promise.
1534
- * @param {Function} reject A function that rejects the promise.
1535
- * @param {object} response The response.
1536
- *
1537
- * @returns {object} The response.
1538
- */
1539
- function settle(resolve, reject, response) {
1540
- const validateStatus = response.config.validateStatus;
1541
- if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
1542
- else reject(new AxiosError$1("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError$1.ERR_BAD_REQUEST : AxiosError$1.ERR_BAD_RESPONSE, response.config, response.request, response));
1543
- }
1544
- var init_settle = __esmMin((() => {
1545
- init_AxiosError();
1546
- }));
1547
- //#endregion
1548
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/parseProtocol.js
1549
- function parseProtocol(url) {
1550
- const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
1551
- return match && match[1] || "";
1552
- }
1553
- var init_parseProtocol = __esmMin((() => {}));
1554
- //#endregion
1555
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/speedometer.js
1556
- /**
1557
- * Calculate data maxRate
1558
- * @param {Number} [samplesCount= 10]
1559
- * @param {Number} [min= 1000]
1560
- * @returns {Function}
1561
- */
1562
- function speedometer(samplesCount, min) {
1563
- samplesCount = samplesCount || 10;
1564
- const bytes = new Array(samplesCount);
1565
- const timestamps = new Array(samplesCount);
1566
- let head = 0;
1567
- let tail = 0;
1568
- let firstSampleTS;
1569
- min = min !== void 0 ? min : 1e3;
1570
- return function push(chunkLength) {
1571
- const now = Date.now();
1572
- const startedAt = timestamps[tail];
1573
- if (!firstSampleTS) firstSampleTS = now;
1574
- bytes[head] = chunkLength;
1575
- timestamps[head] = now;
1576
- let i = tail;
1577
- let bytesCount = 0;
1578
- while (i !== head) {
1579
- bytesCount += bytes[i++];
1580
- i = i % samplesCount;
1581
- }
1582
- head = (head + 1) % samplesCount;
1583
- if (head === tail) tail = (tail + 1) % samplesCount;
1584
- if (now - firstSampleTS < min) return;
1585
- const passed = startedAt && now - startedAt;
1586
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
1587
- };
1588
- }
1589
- var init_speedometer = __esmMin((() => {}));
1590
- //#endregion
1591
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/throttle.js
1592
- /**
1593
- * Throttle decorator
1594
- * @param {Function} fn
1595
- * @param {Number} freq
1596
- * @return {Function}
1597
- */
1598
- function throttle(fn, freq) {
1599
- let timestamp = 0;
1600
- let threshold = 1e3 / freq;
1601
- let lastArgs;
1602
- let timer;
1603
- const invoke = (args, now = Date.now()) => {
1604
- timestamp = now;
1605
- lastArgs = null;
1606
- if (timer) {
1607
- clearTimeout(timer);
1608
- timer = null;
1609
- }
1610
- fn(...args);
1611
- };
1612
- const throttled = (...args) => {
1613
- const now = Date.now();
1614
- const passed = now - timestamp;
1615
- if (passed >= threshold) invoke(args, now);
1616
- else {
1617
- lastArgs = args;
1618
- if (!timer) timer = setTimeout(() => {
1619
- timer = null;
1620
- invoke(lastArgs);
1621
- }, threshold - passed);
1622
- }
1623
- };
1624
- const flush = () => lastArgs && invoke(lastArgs);
1625
- return [throttled, flush];
1626
- }
1627
- var init_throttle = __esmMin((() => {}));
1628
- //#endregion
1629
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/progressEventReducer.js
1630
- var progressEventReducer, progressEventDecorator, asyncDecorator;
1631
- var init_progressEventReducer = __esmMin((() => {
1632
- init_speedometer();
1633
- init_throttle();
1634
- init_utils$1();
1635
- progressEventReducer = (listener, isDownloadStream, freq = 3) => {
1636
- let bytesNotified = 0;
1637
- const _speedometer = speedometer(50, 250);
1638
- return throttle((e) => {
1639
- if (!e || typeof e.loaded !== "number") return;
1640
- const rawLoaded = e.loaded;
1641
- const total = e.lengthComputable ? e.total : void 0;
1642
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
1643
- const progressBytes = Math.max(0, loaded - bytesNotified);
1644
- const rate = _speedometer(progressBytes);
1645
- bytesNotified = Math.max(bytesNotified, loaded);
1646
- listener({
1647
- loaded,
1648
- total,
1649
- progress: total ? loaded / total : void 0,
1650
- bytes: progressBytes,
1651
- rate: rate ? rate : void 0,
1652
- estimated: rate && total ? (total - loaded) / rate : void 0,
1653
- event: e,
1654
- lengthComputable: total != null,
1655
- [isDownloadStream ? "download" : "upload"]: true
1656
- });
1657
- }, freq);
1658
- };
1659
- progressEventDecorator = (total, throttled) => {
1660
- const lengthComputable = total != null;
1661
- return [(loaded) => throttled[0]({
1662
- lengthComputable,
1663
- total,
1664
- loaded
1665
- }), throttled[1]];
1666
- };
1667
- asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
1668
- }));
1669
- //#endregion
1670
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
1671
- var isURLSameOrigin_default;
1672
- var init_isURLSameOrigin = __esmMin((() => {
1673
- init_platform();
1674
- isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
1675
- url = new URL(url, platform_default.origin);
1676
- return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
1677
- })(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
1678
- }));
1679
- //#endregion
1680
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/cookies.js
1681
- var cookies_default;
1682
- var init_cookies = __esmMin((() => {
1683
- init_utils$1();
1684
- init_platform();
1685
- cookies_default = platform_default.hasStandardBrowserEnv ? {
1686
- write(name, value, expires, path, domain, secure, sameSite) {
1687
- if (typeof document === "undefined") return;
1688
- const cookie = [`${name}=${encodeURIComponent(value)}`];
1689
- if (utils_default.isNumber(expires)) cookie.push(`expires=${new Date(expires).toUTCString()}`);
1690
- if (utils_default.isString(path)) cookie.push(`path=${path}`);
1691
- if (utils_default.isString(domain)) cookie.push(`domain=${domain}`);
1692
- if (secure === true) cookie.push("secure");
1693
- if (utils_default.isString(sameSite)) cookie.push(`SameSite=${sameSite}`);
1694
- document.cookie = cookie.join("; ");
1695
- },
1696
- read(name) {
1697
- if (typeof document === "undefined") return null;
1698
- const cookies = document.cookie.split(";");
1699
- for (let i = 0; i < cookies.length; i++) {
1700
- const cookie = cookies[i].replace(/^\s+/, "");
1701
- const eq = cookie.indexOf("=");
1702
- if (eq !== -1 && cookie.slice(0, eq) === name) return decodeURIComponent(cookie.slice(eq + 1));
1703
- }
1704
- return null;
1705
- },
1706
- remove(name) {
1707
- this.write(name, "", Date.now() - 864e5, "/");
1708
- }
1709
- } : {
1710
- write() {},
1711
- read() {
1712
- return null;
1713
- },
1714
- remove() {}
1715
- };
1716
- }));
1717
- //#endregion
1718
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
1719
- /**
1720
- * Determines whether the specified URL is absolute
1721
- *
1722
- * @param {string} url The URL to test
1723
- *
1724
- * @returns {boolean} True if the specified URL is absolute, otherwise false
1725
- */
1726
- function isAbsoluteURL(url) {
1727
- if (typeof url !== "string") return false;
1728
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
1729
- }
1730
- var init_isAbsoluteURL = __esmMin((() => {}));
1731
- //#endregion
1732
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/combineURLs.js
1733
- /**
1734
- * Creates a new URL by combining the specified URLs
1735
- *
1736
- * @param {string} baseURL The base URL
1737
- * @param {string} relativeURL The relative URL
1738
- *
1739
- * @returns {string} The combined URL
1740
- */
1741
- function combineURLs(baseURL, relativeURL) {
1742
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
1743
- }
1744
- var init_combineURLs = __esmMin((() => {}));
1745
- //#endregion
1746
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/buildFullPath.js
1747
- /**
1748
- * Creates a new URL by combining the baseURL with the requestedURL,
1749
- * only when the requestedURL is not already an absolute URL.
1750
- * If the requestURL is absolute, this function returns the requestedURL untouched.
1751
- *
1752
- * @param {string} baseURL The base URL
1753
- * @param {string} requestedURL Absolute or relative URL to combine
1754
- *
1755
- * @returns {string} The combined full path
1756
- */
1757
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
1758
- let isRelativeUrl = !isAbsoluteURL(requestedURL);
1759
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) return combineURLs(baseURL, requestedURL);
1760
- return requestedURL;
1761
- }
1762
- var init_buildFullPath = __esmMin((() => {
1763
- init_isAbsoluteURL();
1764
- init_combineURLs();
1765
- }));
1766
- //#endregion
1767
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/mergeConfig.js
1768
- /**
1769
- * Config-specific merge-function which creates a new config-object
1770
- * by merging two configuration objects together.
1771
- *
1772
- * @param {Object} config1
1773
- * @param {Object} config2
1774
- *
1775
- * @returns {Object} New object resulting from merging config2 to config1
1776
- */
1777
- function mergeConfig$1(config1, config2) {
1778
- config2 = config2 || {};
1779
- const config = Object.create(null);
1780
- Object.defineProperty(config, "hasOwnProperty", {
1781
- __proto__: null,
1782
- value: Object.prototype.hasOwnProperty,
1783
- enumerable: false,
1784
- writable: true,
1785
- configurable: true
1786
- });
1787
- function getMergedValue(target, source, prop, caseless) {
1788
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) return utils_default.merge.call({ caseless }, target, source);
1789
- else if (utils_default.isPlainObject(source)) return utils_default.merge({}, source);
1790
- else if (utils_default.isArray(source)) return source.slice();
1791
- return source;
1792
- }
1793
- function mergeDeepProperties(a, b, prop, caseless) {
1794
- if (!utils_default.isUndefined(b)) return getMergedValue(a, b, prop, caseless);
1795
- else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a, prop, caseless);
1796
- }
1797
- function valueFromConfig2(a, b) {
1798
- if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
1799
- }
1800
- function defaultToConfig2(a, b) {
1801
- if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
1802
- else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
1803
- }
1804
- function mergeDirectKeys(a, b, prop) {
1805
- if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
1806
- else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
1807
- }
1808
- const mergeMap = {
1809
- url: valueFromConfig2,
1810
- method: valueFromConfig2,
1811
- data: valueFromConfig2,
1812
- baseURL: defaultToConfig2,
1813
- transformRequest: defaultToConfig2,
1814
- transformResponse: defaultToConfig2,
1815
- paramsSerializer: defaultToConfig2,
1816
- timeout: defaultToConfig2,
1817
- timeoutMessage: defaultToConfig2,
1818
- withCredentials: defaultToConfig2,
1819
- withXSRFToken: defaultToConfig2,
1820
- adapter: defaultToConfig2,
1821
- responseType: defaultToConfig2,
1822
- xsrfCookieName: defaultToConfig2,
1823
- xsrfHeaderName: defaultToConfig2,
1824
- onUploadProgress: defaultToConfig2,
1825
- onDownloadProgress: defaultToConfig2,
1826
- decompress: defaultToConfig2,
1827
- maxContentLength: defaultToConfig2,
1828
- maxBodyLength: defaultToConfig2,
1829
- beforeRedirect: defaultToConfig2,
1830
- transport: defaultToConfig2,
1831
- httpAgent: defaultToConfig2,
1832
- httpsAgent: defaultToConfig2,
1833
- cancelToken: defaultToConfig2,
1834
- socketPath: defaultToConfig2,
1835
- allowedSocketPaths: defaultToConfig2,
1836
- responseEncoding: defaultToConfig2,
1837
- validateStatus: mergeDirectKeys,
1838
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
1839
- };
1840
- utils_default.forEach(Object.keys(_objectSpread2(_objectSpread2({}, config1), config2)), function computeConfigValue(prop) {
1841
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
1842
- const merge = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
1843
- const configValue = merge(utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0, utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0, prop);
1844
- utils_default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
1845
- });
1846
- return config;
1847
- }
1848
- var headersToObject;
1849
- var init_mergeConfig = __esmMin((() => {
1850
- init_utils$1();
1851
- init_AxiosHeaders();
1852
- init_objectSpread2();
1853
- headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? _objectSpread2({}, thing) : thing;
1854
- }));
1855
- //#endregion
1856
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/resolveConfig.js
1857
- function setFormDataHeaders(headers, formHeaders, policy) {
1858
- if (policy !== "content-only") {
1859
- headers.set(formHeaders);
1860
- return;
1861
- }
1862
- Object.entries(formHeaders).forEach(([key, val]) => {
1863
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
1864
- });
1865
- }
1866
- var FORM_DATA_CONTENT_HEADERS, encodeUTF8, resolveConfig_default;
1867
- var init_resolveConfig = __esmMin((() => {
1868
- init_platform();
1869
- init_utils$1();
1870
- init_isURLSameOrigin();
1871
- init_cookies();
1872
- init_buildFullPath();
1873
- init_mergeConfig();
1874
- init_AxiosHeaders();
1875
- init_buildURL();
1876
- FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
1877
- encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
1878
- resolveConfig_default = (config) => {
1879
- const newConfig = mergeConfig$1({}, config);
1880
- const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
1881
- const data = own("data");
1882
- let withXSRFToken = own("withXSRFToken");
1883
- const xsrfHeaderName = own("xsrfHeaderName");
1884
- const xsrfCookieName = own("xsrfCookieName");
1885
- let headers = own("headers");
1886
- const auth = own("auth");
1887
- const baseURL = own("baseURL");
1888
- const allowAbsoluteUrls = own("allowAbsoluteUrls");
1889
- const url = own("url");
1890
- newConfig.headers = headers = AxiosHeaders$1.from(headers);
1891
- newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), config.params, config.paramsSerializer);
1892
- if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
1893
- if (utils_default.isFormData(data)) {
1894
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
1895
- else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
1896
- }
1897
- if (platform_default.hasStandardBrowserEnv) {
1898
- if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
1899
- if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url)) {
1900
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
1901
- if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
1902
- }
1903
- }
1904
- return newConfig;
1905
- };
1906
- }));
1907
- //#endregion
1908
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/adapters/xhr.js
1909
- var isXHRAdapterSupported, xhr_default;
1910
- var init_xhr = __esmMin((() => {
1911
- init_utils$1();
1912
- init_settle();
1913
- init_transitional();
1914
- init_AxiosError();
1915
- init_CanceledError();
1916
- init_parseProtocol();
1917
- init_platform();
1918
- init_AxiosHeaders();
1919
- init_progressEventReducer();
1920
- init_resolveConfig();
1921
- init_sanitizeHeaderValue();
1922
- isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
1923
- xhr_default = isXHRAdapterSupported && function(config) {
1924
- return new Promise(function dispatchXhrRequest(resolve, reject) {
1925
- const _config = resolveConfig_default(config);
1926
- let requestData = _config.data;
1927
- const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
1928
- let { responseType, onUploadProgress, onDownloadProgress } = _config;
1929
- let onCanceled;
1930
- let uploadThrottled, downloadThrottled;
1931
- let flushUpload, flushDownload;
1932
- function done() {
1933
- flushUpload && flushUpload();
1934
- flushDownload && flushDownload();
1935
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
1936
- _config.signal && _config.signal.removeEventListener("abort", onCanceled);
1937
- }
1938
- let request = new XMLHttpRequest();
1939
- request.open(_config.method.toUpperCase(), _config.url, true);
1940
- request.timeout = _config.timeout;
1941
- function onloadend() {
1942
- if (!request) return;
1943
- const responseHeaders = AxiosHeaders$1.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
1944
- settle(function _resolve(value) {
1945
- resolve(value);
1946
- done();
1947
- }, function _reject(err) {
1948
- reject(err);
1949
- done();
1950
- }, {
1951
- data: !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response,
1952
- status: request.status,
1953
- statusText: request.statusText,
1954
- headers: responseHeaders,
1955
- config,
1956
- request
1957
- });
1958
- request = null;
1959
- }
1960
- if ("onloadend" in request) request.onloadend = onloadend;
1961
- else request.onreadystatechange = function handleLoad() {
1962
- if (!request || request.readyState !== 4) return;
1963
- if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) return;
1964
- setTimeout(onloadend);
1965
- };
1966
- request.onabort = function handleAbort() {
1967
- if (!request) return;
1968
- reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
1969
- done();
1970
- request = null;
1971
- };
1972
- request.onerror = function handleError(event) {
1973
- const err = new AxiosError$1(event && event.message ? event.message : "Network Error", AxiosError$1.ERR_NETWORK, config, request);
1974
- err.event = event || null;
1975
- reject(err);
1976
- done();
1977
- request = null;
1978
- };
1979
- request.ontimeout = function handleTimeout() {
1980
- let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
1981
- const transitional = _config.transitional || transitional_default;
1982
- if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
1983
- reject(new AxiosError$1(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, config, request));
1984
- done();
1985
- request = null;
1986
- };
1987
- requestData === void 0 && requestHeaders.setContentType(null);
1988
- if ("setRequestHeader" in request) utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
1989
- request.setRequestHeader(key, val);
1990
- });
1991
- if (!utils_default.isUndefined(_config.withCredentials)) request.withCredentials = !!_config.withCredentials;
1992
- if (responseType && responseType !== "json") request.responseType = _config.responseType;
1993
- if (onDownloadProgress) {
1994
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
1995
- request.addEventListener("progress", downloadThrottled);
1996
- }
1997
- if (onUploadProgress && request.upload) {
1998
- [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
1999
- request.upload.addEventListener("progress", uploadThrottled);
2000
- request.upload.addEventListener("loadend", flushUpload);
2001
- }
2002
- if (_config.cancelToken || _config.signal) {
2003
- onCanceled = (cancel) => {
2004
- if (!request) return;
2005
- reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
2006
- request.abort();
2007
- done();
2008
- request = null;
2009
- };
2010
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2011
- if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
2012
- }
2013
- const protocol = parseProtocol(_config.url);
2014
- if (protocol && !platform_default.protocols.includes(protocol)) {
2015
- reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
2016
- return;
2017
- }
2018
- request.send(requestData || null);
2019
- });
2020
- };
2021
- }));
2022
- //#endregion
2023
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/composeSignals.js
2024
- var composeSignals;
2025
- var init_composeSignals = __esmMin((() => {
2026
- init_CanceledError();
2027
- init_AxiosError();
2028
- init_utils$1();
2029
- composeSignals = (signals, timeout) => {
2030
- signals = signals ? signals.filter(Boolean) : [];
2031
- if (!timeout && !signals.length) return;
2032
- const controller = new AbortController();
2033
- let aborted = false;
2034
- const onabort = function(reason) {
2035
- if (!aborted) {
2036
- aborted = true;
2037
- unsubscribe();
2038
- const err = reason instanceof Error ? reason : this.reason;
2039
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2040
- }
2041
- };
2042
- let timer = timeout && setTimeout(() => {
2043
- timer = null;
2044
- onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
2045
- }, timeout);
2046
- const unsubscribe = () => {
2047
- if (!signals) return;
2048
- timer && clearTimeout(timer);
2049
- timer = null;
2050
- signals.forEach((signal) => {
2051
- signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener("abort", onabort);
2052
- });
2053
- signals = null;
2054
- };
2055
- signals.forEach((signal) => signal.addEventListener("abort", onabort));
2056
- const { signal } = controller;
2057
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
2058
- return signal;
2059
- };
2060
- }));
2061
- //#endregion
2062
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/trackStream.js
2063
- var streamChunk, readBytes, readStream, trackStream;
2064
- var init_trackStream = __esmMin((() => {
2065
- init_asyncIterator();
2066
- init_awaitAsyncGenerator();
2067
- init_asyncGeneratorDelegate();
2068
- init_wrapAsyncGenerator();
2069
- init_asyncToGenerator();
2070
- streamChunk = function* (chunk, chunkSize) {
2071
- let len = chunk.byteLength;
2072
- if (!chunkSize || len < chunkSize) {
2073
- yield chunk;
2074
- return;
2075
- }
2076
- let pos = 0;
2077
- let end;
2078
- while (pos < len) {
2079
- end = pos + chunkSize;
2080
- yield chunk.slice(pos, end);
2081
- pos = end;
2082
- }
2083
- };
2084
- readBytes = /* @__PURE__ */ function() {
2085
- var _ref = _wrapAsyncGenerator(function* (iterable, chunkSize) {
2086
- var _iteratorAbruptCompletion = false;
2087
- var _didIteratorError = false;
2088
- var _iteratorError;
2089
- try {
2090
- for (var _iterator = _asyncIterator(readStream(iterable)), _step; _iteratorAbruptCompletion = !(_step = yield _awaitAsyncGenerator(_iterator.next())).done; _iteratorAbruptCompletion = false) {
2091
- const chunk = _step.value;
2092
- yield* _asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk, chunkSize)));
2093
- }
2094
- } catch (err) {
2095
- _didIteratorError = true;
2096
- _iteratorError = err;
2097
- } finally {
2098
- try {
2099
- if (_iteratorAbruptCompletion && _iterator.return != null) yield _awaitAsyncGenerator(_iterator.return());
2100
- } finally {
2101
- if (_didIteratorError) throw _iteratorError;
2102
- }
2103
- }
2104
- });
2105
- return function readBytes(_x, _x2) {
2106
- return _ref.apply(this, arguments);
2107
- };
2108
- }();
2109
- readStream = /* @__PURE__ */ function() {
2110
- var _ref2 = _wrapAsyncGenerator(function* (stream) {
2111
- if (stream[Symbol.asyncIterator]) {
2112
- yield* _asyncGeneratorDelegate(_asyncIterator(stream));
2113
- return;
2114
- }
2115
- const reader = stream.getReader();
2116
- try {
2117
- for (;;) {
2118
- const { done, value } = yield _awaitAsyncGenerator(reader.read());
2119
- if (done) break;
2120
- yield value;
2121
- }
2122
- } finally {
2123
- yield _awaitAsyncGenerator(reader.cancel());
2124
- }
2125
- });
2126
- return function readStream(_x3) {
2127
- return _ref2.apply(this, arguments);
2128
- };
2129
- }();
2130
- trackStream = (stream, chunkSize, onProgress, onFinish) => {
2131
- const iterator = readBytes(stream, chunkSize);
2132
- let bytes = 0;
2133
- let done;
2134
- let _onFinish = (e) => {
2135
- if (!done) {
2136
- done = true;
2137
- onFinish && onFinish(e);
2138
- }
2139
- };
2140
- return new ReadableStream({
2141
- pull(controller) {
2142
- return _asyncToGenerator(function* () {
2143
- try {
2144
- const { done, value } = yield iterator.next();
2145
- if (done) {
2146
- _onFinish();
2147
- controller.close();
2148
- return;
2149
- }
2150
- let len = value.byteLength;
2151
- if (onProgress) onProgress(bytes += len);
2152
- controller.enqueue(new Uint8Array(value));
2153
- } catch (err) {
2154
- _onFinish(err);
2155
- throw err;
2156
- }
2157
- })();
2158
- },
2159
- cancel(reason) {
2160
- _onFinish(reason);
2161
- return iterator.return();
2162
- }
2163
- }, { highWaterMark: 2 });
2164
- };
2165
- }));
2166
- //#endregion
2167
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
2168
- /**
2169
- * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
2170
- * - For base64: compute exact decoded size using length and padding;
2171
- * handle %XX at the character-count level (no string allocation).
2172
- * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
2173
- *
2174
- * @param {string} url
2175
- * @returns {number}
2176
- */
2177
- function estimateDataURLDecodedBytes(url) {
2178
- if (!url || typeof url !== "string") return 0;
2179
- if (!url.startsWith("data:")) return 0;
2180
- const comma = url.indexOf(",");
2181
- if (comma < 0) return 0;
2182
- const meta = url.slice(5, comma);
2183
- const body = url.slice(comma + 1);
2184
- if (/;base64/i.test(meta)) {
2185
- let effectiveLen = body.length;
2186
- const len = body.length;
2187
- for (let i = 0; i < len; i++) if (body.charCodeAt(i) === 37 && i + 2 < len) {
2188
- const a = body.charCodeAt(i + 1);
2189
- const b = body.charCodeAt(i + 2);
2190
- if ((a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102)) {
2191
- effectiveLen -= 2;
2192
- i += 2;
2193
- }
2194
- }
2195
- let pad = 0;
2196
- let idx = len - 1;
2197
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
2198
- if (idx >= 0) {
2199
- if (body.charCodeAt(idx) === 61) {
2200
- pad++;
2201
- idx--;
2202
- } else if (tailIsPct3D(idx)) {
2203
- pad++;
2204
- idx -= 3;
2205
- }
2206
- }
2207
- if (pad === 1 && idx >= 0) {
2208
- if (body.charCodeAt(idx) === 61) pad++;
2209
- else if (tailIsPct3D(idx)) pad++;
2210
- }
2211
- const bytes = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
2212
- return bytes > 0 ? bytes : 0;
2213
- }
2214
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") return Buffer.byteLength(body, "utf8");
2215
- let bytes = 0;
2216
- for (let i = 0, len = body.length; i < len; i++) {
2217
- const c = body.charCodeAt(i);
2218
- if (c < 128) bytes += 1;
2219
- else if (c < 2048) bytes += 2;
2220
- else if (c >= 55296 && c <= 56319 && i + 1 < len) {
2221
- const next = body.charCodeAt(i + 1);
2222
- if (next >= 56320 && next <= 57343) {
2223
- bytes += 4;
2224
- i++;
2225
- } else bytes += 3;
2226
- } else bytes += 3;
2227
- }
2228
- return bytes;
2229
- }
2230
- var init_estimateDataURLDecodedBytes = __esmMin((() => {}));
2231
- //#endregion
2232
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/env/data.js
2233
- var VERSION$1;
2234
- var init_data = __esmMin((() => {
2235
- VERSION$1 = "1.16.1";
2236
- })), DEFAULT_CHUNK_SIZE, isFunction, test, factory, seedCache, getFetch;
2237
- var init_fetch = __esmMin((() => {
2238
- init_platform();
2239
- init_utils$1();
2240
- init_AxiosError();
2241
- init_composeSignals();
2242
- init_trackStream();
2243
- init_AxiosHeaders();
2244
- init_progressEventReducer();
2245
- init_resolveConfig();
2246
- init_settle();
2247
- init_estimateDataURLDecodedBytes();
2248
- init_data();
2249
- init_sanitizeHeaderValue();
2250
- init_asyncToGenerator();
2251
- init_objectSpread2();
2252
- DEFAULT_CHUNK_SIZE = 64 * 1024;
2253
- ({isFunction} = utils_default);
2254
- test = (fn, ...args) => {
2255
- try {
2256
- return !!fn(...args);
2257
- } catch (e) {
2258
- return false;
2259
- }
2260
- };
2261
- factory = (env) => {
2262
- const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
2263
- const { ReadableStream, TextEncoder } = globalObject;
2264
- env = utils_default.merge.call({ skipUndefined: true }, {
2265
- Request: globalObject.Request,
2266
- Response: globalObject.Response
2267
- }, env);
2268
- const { fetch: envFetch, Request, Response } = env;
2269
- const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
2270
- const isRequestSupported = isFunction(Request);
2271
- const isResponseSupported = isFunction(Response);
2272
- if (!isFetchSupported) return false;
2273
- const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
2274
- const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : function() {
2275
- var _ref = _asyncToGenerator(function* (str) {
2276
- return new Uint8Array(yield new Request(str).arrayBuffer());
2277
- });
2278
- return function(_x) {
2279
- return _ref.apply(this, arguments);
2280
- };
2281
- }());
2282
- const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2283
- let duplexAccessed = false;
2284
- const request = new Request(platform_default.origin, {
2285
- body: new ReadableStream(),
2286
- method: "POST",
2287
- get duplex() {
2288
- duplexAccessed = true;
2289
- return "half";
2290
- }
2291
- });
2292
- const hasContentType = request.headers.has("Content-Type");
2293
- if (request.body != null) request.body.cancel();
2294
- return duplexAccessed && !hasContentType;
2295
- });
2296
- const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
2297
- const resolvers = { stream: supportsResponseStream && ((res) => res.body) };
2298
- isFetchSupported && [
2299
- "text",
2300
- "arrayBuffer",
2301
- "blob",
2302
- "formData",
2303
- "stream"
2304
- ].forEach((type) => {
2305
- !resolvers[type] && (resolvers[type] = (res, config) => {
2306
- let method = res && res[type];
2307
- if (method) return method.call(res);
2308
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2309
- });
2310
- });
2311
- const getBodyLength = function() {
2312
- var _ref2 = _asyncToGenerator(function* (body) {
2313
- if (body == null) return 0;
2314
- if (utils_default.isBlob(body)) return body.size;
2315
- if (utils_default.isSpecCompliantForm(body)) return (yield new Request(platform_default.origin, {
2316
- method: "POST",
2317
- body
2318
- }).arrayBuffer()).byteLength;
2319
- if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) return body.byteLength;
2320
- if (utils_default.isURLSearchParams(body)) body = body + "";
2321
- if (utils_default.isString(body)) return (yield encodeText(body)).byteLength;
2322
- });
2323
- return function getBodyLength(_x2) {
2324
- return _ref2.apply(this, arguments);
2325
- };
2326
- }();
2327
- const resolveBodyLength = function() {
2328
- var _ref3 = _asyncToGenerator(function* (headers, body) {
2329
- const length = utils_default.toFiniteNumber(headers.getContentLength());
2330
- return length == null ? getBodyLength(body) : length;
2331
- });
2332
- return function resolveBodyLength(_x3, _x4) {
2333
- return _ref3.apply(this, arguments);
2334
- };
2335
- }();
2336
- return function() {
2337
- var _ref4 = _asyncToGenerator(function* (config) {
2338
- let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig_default(config);
2339
- const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
2340
- const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
2341
- let _fetch = envFetch || fetch;
2342
- responseType = responseType ? (responseType + "").toLowerCase() : "text";
2343
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2344
- let request = null;
2345
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2346
- composedSignal.unsubscribe();
2347
- });
2348
- let requestContentLength;
2349
- try {
2350
- if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
2351
- if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2352
- }
2353
- if (hasMaxBodyLength && method !== "get" && method !== "head") {
2354
- const outboundLength = yield resolveBodyLength(headers, data);
2355
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) throw new AxiosError$1("Request body larger than maxBodyLength limit", AxiosError$1.ERR_BAD_REQUEST, config, request);
2356
- }
2357
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = yield resolveBodyLength(headers, data)) !== 0) {
2358
- let _request = new Request(url, {
2359
- method: "POST",
2360
- body: data,
2361
- duplex: "half"
2362
- });
2363
- let contentTypeHeader;
2364
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) headers.setContentType(contentTypeHeader);
2365
- if (_request.body) {
2366
- const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
2367
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
2368
- }
2369
- }
2370
- if (!utils_default.isString(withCredentials)) withCredentials = withCredentials ? "include" : "omit";
2371
- const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
2372
- if (utils_default.isFormData(data)) {
2373
- const contentType = headers.getContentType();
2374
- if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
2375
- }
2376
- headers.set("User-Agent", "axios/" + VERSION$1, false);
2377
- const resolvedOptions = _objectSpread2(_objectSpread2({}, fetchOptions), {}, {
2378
- signal: composedSignal,
2379
- method: method.toUpperCase(),
2380
- headers: toByteStringHeaderObject(headers.normalize()),
2381
- body: data,
2382
- duplex: "half",
2383
- credentials: isCredentialsSupported ? withCredentials : void 0
2384
- });
2385
- request = isRequestSupported && new Request(url, resolvedOptions);
2386
- let response = yield isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions);
2387
- if (hasMaxContentLength) {
2388
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
2389
- if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2390
- }
2391
- const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
2392
- if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
2393
- const options = {};
2394
- [
2395
- "status",
2396
- "statusText",
2397
- "headers"
2398
- ].forEach((prop) => {
2399
- options[prop] = response[prop];
2400
- });
2401
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
2402
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
2403
- let bytesRead = 0;
2404
- const onChunkProgress = (loadedBytes) => {
2405
- if (hasMaxContentLength) {
2406
- bytesRead = loadedBytes;
2407
- if (bytesRead > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2408
- }
2409
- onProgress && onProgress(loadedBytes);
2410
- };
2411
- response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
2412
- flush && flush();
2413
- unsubscribe && unsubscribe();
2414
- }), options);
2415
- }
2416
- responseType = responseType || "text";
2417
- let responseData = yield resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
2418
- if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
2419
- let materializedSize;
2420
- if (responseData != null) {
2421
- if (typeof responseData.byteLength === "number") materializedSize = responseData.byteLength;
2422
- else if (typeof responseData.size === "number") materializedSize = responseData.size;
2423
- else if (typeof responseData === "string") materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
2424
- }
2425
- if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2426
- }
2427
- !isStreamResponse && unsubscribe && unsubscribe();
2428
- return yield new Promise((resolve, reject) => {
2429
- settle(resolve, reject, {
2430
- data: responseData,
2431
- headers: AxiosHeaders$1.from(response.headers),
2432
- status: response.status,
2433
- statusText: response.statusText,
2434
- config,
2435
- request
2436
- });
2437
- });
2438
- } catch (err) {
2439
- unsubscribe && unsubscribe();
2440
- if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError$1) {
2441
- const canceledError = composedSignal.reason;
2442
- canceledError.config = config;
2443
- request && (canceledError.request = request);
2444
- err !== canceledError && (canceledError.cause = err);
2445
- throw canceledError;
2446
- }
2447
- if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response), { cause: err.cause || err });
2448
- throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
2449
- }
2450
- });
2451
- return function(_x5) {
2452
- return _ref4.apply(this, arguments);
2453
- };
2454
- }();
2455
- };
2456
- seedCache = /* @__PURE__ */ new Map();
2457
- getFetch = (config) => {
2458
- let env = config && config.env || {};
2459
- const { fetch, Request, Response } = env;
2460
- const seeds = [
2461
- Request,
2462
- Response,
2463
- fetch
2464
- ];
2465
- let i = seeds.length, seed, target, map = seedCache;
2466
- while (i--) {
2467
- seed = seeds[i];
2468
- target = map.get(seed);
2469
- target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
2470
- map = target;
2471
- }
2472
- return target;
2473
- };
2474
- getFetch();
2475
- }));
2476
- //#endregion
2477
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/adapters/adapters.js
2478
- /**
2479
- * Get the first suitable adapter from the provided list.
2480
- * Tries each adapter in order until a supported one is found.
2481
- * Throws an AxiosError if no adapter is suitable.
2482
- *
2483
- * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
2484
- * @param {Object} config - Axios request configuration
2485
- * @throws {AxiosError} If no suitable adapter is available
2486
- * @returns {Function} The resolved adapter function
2487
- */
2488
- function getAdapter$1(adapters, config) {
2489
- adapters = utils_default.isArray(adapters) ? adapters : [adapters];
2490
- const { length } = adapters;
2491
- let nameOrAdapter;
2492
- let adapter;
2493
- const rejectedReasons = {};
2494
- for (let i = 0; i < length; i++) {
2495
- nameOrAdapter = adapters[i];
2496
- let id;
2497
- adapter = nameOrAdapter;
2498
- if (!isResolvedHandle(nameOrAdapter)) {
2499
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
2500
- if (adapter === void 0) throw new AxiosError$1(`Unknown adapter '${id}'`);
2501
- }
2502
- if (adapter && (utils_default.isFunction(adapter) || (adapter = adapter.get(config)))) break;
2503
- rejectedReasons[id || "#" + i] = adapter;
2504
- }
2505
- if (!adapter) {
2506
- const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
2507
- throw new AxiosError$1(`There is no suitable adapter to dispatch the request ` + (length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
2508
- }
2509
- return adapter;
2510
- }
2511
- var knownAdapters, renderReason, isResolvedHandle, adapters_default;
2512
- var init_adapters = __esmMin((() => {
2513
- init_utils$1();
2514
- init_null();
2515
- init_xhr();
2516
- init_fetch();
2517
- init_AxiosError();
2518
- knownAdapters = {
2519
- http: null,
2520
- xhr: xhr_default,
2521
- fetch: { get: getFetch }
2522
- };
2523
- utils_default.forEach(knownAdapters, (fn, value) => {
2524
- if (fn) {
2525
- try {
2526
- Object.defineProperty(fn, "name", {
2527
- __proto__: null,
2528
- value
2529
- });
2530
- } catch (e) {}
2531
- Object.defineProperty(fn, "adapterName", {
2532
- __proto__: null,
2533
- value
2534
- });
2535
- }
2536
- });
2537
- renderReason = (reason) => `- ${reason}`;
2538
- isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;
2539
- adapters_default = {
2540
- /**
2541
- * Resolve an adapter from a list of adapter names or functions.
2542
- * @type {Function}
2543
- */
2544
- getAdapter: getAdapter$1,
2545
- /**
2546
- * Exposes all known adapters
2547
- * @type {Object<string, Function|Object>}
2548
- */
2549
- adapters: knownAdapters
2550
- };
2551
- }));
2552
- //#endregion
2553
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/dispatchRequest.js
2554
- /**
2555
- * Throws a `CanceledError` if cancellation has been requested.
2556
- *
2557
- * @param {Object} config The config that is to be used for the request
2558
- *
2559
- * @returns {void}
2560
- */
2561
- function throwIfCancellationRequested(config) {
2562
- if (config.cancelToken) config.cancelToken.throwIfRequested();
2563
- if (config.signal && config.signal.aborted) throw new CanceledError$1(null, config);
2564
- }
2565
- /**
2566
- * Dispatch a request to the server using the configured adapter.
2567
- *
2568
- * @param {object} config The config that is to be used for the request
2569
- *
2570
- * @returns {Promise} The Promise to be fulfilled
2571
- */
2572
- function dispatchRequest(config) {
2573
- throwIfCancellationRequested(config);
2574
- config.headers = AxiosHeaders$1.from(config.headers);
2575
- config.data = transformData.call(config, config.transformRequest);
2576
- if ([
2577
- "post",
2578
- "put",
2579
- "patch"
2580
- ].indexOf(config.method) !== -1) config.headers.setContentType("application/x-www-form-urlencoded", false);
2581
- return adapters_default.getAdapter(config.adapter || defaults.adapter, config)(config).then(function onAdapterResolution(response) {
2582
- throwIfCancellationRequested(config);
2583
- config.response = response;
2584
- try {
2585
- response.data = transformData.call(config, config.transformResponse, response);
2586
- } finally {
2587
- delete config.response;
2588
- }
2589
- response.headers = AxiosHeaders$1.from(response.headers);
2590
- return response;
2591
- }, function onAdapterRejection(reason) {
2592
- if (!isCancel$1(reason)) {
2593
- throwIfCancellationRequested(config);
2594
- if (reason && reason.response) {
2595
- config.response = reason.response;
2596
- try {
2597
- reason.response.data = transformData.call(config, config.transformResponse, reason.response);
2598
- } finally {
2599
- delete config.response;
2600
- }
2601
- reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
2602
- }
2603
- }
2604
- return Promise.reject(reason);
2605
- });
2606
- }
2607
- var init_dispatchRequest = __esmMin((() => {
2608
- init_transformData();
2609
- init_isCancel();
2610
- init_defaults();
2611
- init_CanceledError();
2612
- init_AxiosHeaders();
2613
- init_adapters();
2614
- }));
2615
- //#endregion
2616
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/validator.js
2617
- /**
2618
- * Assert object's properties type
2619
- *
2620
- * @param {object} options
2621
- * @param {object} schema
2622
- * @param {boolean?} allowUnknown
2623
- *
2624
- * @returns {object}
2625
- */
2626
- function assertOptions(options, schema, allowUnknown) {
2627
- if (typeof options !== "object") throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
2628
- const keys = Object.keys(options);
2629
- let i = keys.length;
2630
- while (i-- > 0) {
2631
- const opt = keys[i];
2632
- const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
2633
- if (validator) {
2634
- const value = options[opt];
2635
- const result = value === void 0 || validator(value, opt, options);
2636
- if (result !== true) throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
2637
- continue;
2638
- }
2639
- if (allowUnknown !== true) throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
2640
- }
2641
- }
2642
- var validators$1, deprecatedWarnings, validator_default;
2643
- var init_validator = __esmMin((() => {
2644
- init_data();
2645
- init_AxiosError();
2646
- validators$1 = {};
2647
- [
2648
- "object",
2649
- "boolean",
2650
- "number",
2651
- "function",
2652
- "string",
2653
- "symbol"
2654
- ].forEach((type, i) => {
2655
- validators$1[type] = function validator(thing) {
2656
- return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
2657
- };
2658
- });
2659
- deprecatedWarnings = {};
2660
- /**
2661
- * Transitional option validator
2662
- *
2663
- * @param {function|boolean?} validator - set to false if the transitional option has been removed
2664
- * @param {string?} version - deprecated version / removed since version
2665
- * @param {string?} message - some message with additional info
2666
- *
2667
- * @returns {function}
2668
- */
2669
- validators$1.transitional = function transitional(validator, version, message) {
2670
- function formatMessage(opt, desc) {
2671
- return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
2672
- }
2673
- return (value, opt, opts) => {
2674
- if (validator === false) throw new AxiosError$1(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError$1.ERR_DEPRECATED);
2675
- if (version && !deprecatedWarnings[opt]) {
2676
- deprecatedWarnings[opt] = true;
2677
- console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
2678
- }
2679
- return validator ? validator(value, opt, opts) : true;
2680
- };
2681
- };
2682
- validators$1.spelling = function spelling(correctSpelling) {
2683
- return (value, opt) => {
2684
- console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
2685
- return true;
2686
- };
2687
- };
2688
- validator_default = {
2689
- assertOptions,
2690
- validators: validators$1
2691
- };
2692
- }));
2693
- //#endregion
2694
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/Axios.js
2695
- var validators, Axios$1;
2696
- var init_Axios = __esmMin((() => {
2697
- init_utils$1();
2698
- init_buildURL();
2699
- init_InterceptorManager();
2700
- init_dispatchRequest();
2701
- init_mergeConfig();
2702
- init_buildFullPath();
2703
- init_validator();
2704
- init_AxiosHeaders();
2705
- init_transitional();
2706
- init_asyncToGenerator();
2707
- validators = validator_default.validators;
2708
- Axios$1 = class {
2709
- constructor(instanceConfig) {
2710
- this.defaults = instanceConfig || {};
2711
- this.interceptors = {
2712
- request: new InterceptorManager(),
2713
- response: new InterceptorManager()
2714
- };
2715
- }
2716
- /**
2717
- * Dispatch a request
2718
- *
2719
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2720
- * @param {?Object} config
2721
- *
2722
- * @returns {Promise} The Promise to be fulfilled
2723
- */
2724
- request(configOrUrl, config) {
2725
- var _this = this;
2726
- return _asyncToGenerator(function* () {
2727
- try {
2728
- return yield _this._request(configOrUrl, config);
2729
- } catch (err) {
2730
- if (err instanceof Error) {
2731
- let dummy = {};
2732
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = /* @__PURE__ */ new Error();
2733
- const stack = (() => {
2734
- if (!dummy.stack) return "";
2735
- const firstNewlineIndex = dummy.stack.indexOf("\n");
2736
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
2737
- })();
2738
- try {
2739
- if (!err.stack) err.stack = stack;
2740
- else if (stack) {
2741
- const firstNewlineIndex = stack.indexOf("\n");
2742
- const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
2743
- const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
2744
- if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) err.stack += "\n" + stack;
2745
- }
2746
- } catch (e) {}
2747
- }
2748
- throw err;
2749
- }
2750
- })();
2751
- }
2752
- _request(configOrUrl, config) {
2753
- if (typeof configOrUrl === "string") {
2754
- config = config || {};
2755
- config.url = configOrUrl;
2756
- } else config = configOrUrl || {};
2757
- config = mergeConfig$1(this.defaults, config);
2758
- const { transitional, paramsSerializer, headers } = config;
2759
- if (transitional !== void 0) validator_default.assertOptions(transitional, {
2760
- silentJSONParsing: validators.transitional(validators.boolean),
2761
- forcedJSONParsing: validators.transitional(validators.boolean),
2762
- clarifyTimeoutError: validators.transitional(validators.boolean),
2763
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
2764
- }, false);
2765
- if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
2766
- else validator_default.assertOptions(paramsSerializer, {
2767
- encode: validators.function,
2768
- serialize: validators.function
2769
- }, true);
2770
- if (config.allowAbsoluteUrls !== void 0) {} else if (this.defaults.allowAbsoluteUrls !== void 0) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
2771
- else config.allowAbsoluteUrls = true;
2772
- validator_default.assertOptions(config, {
2773
- baseUrl: validators.spelling("baseURL"),
2774
- withXsrfToken: validators.spelling("withXSRFToken")
2775
- }, true);
2776
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
2777
- let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
2778
- headers && utils_default.forEach([
2779
- "delete",
2780
- "get",
2781
- "head",
2782
- "post",
2783
- "put",
2784
- "patch",
2785
- "query",
2786
- "common"
2787
- ], (method) => {
2788
- delete headers[method];
2789
- });
2790
- config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
2791
- const requestInterceptorChain = [];
2792
- let synchronousRequestInterceptors = true;
2793
- this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
2794
- if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) return;
2795
- synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
2796
- const transitional = config.transitional || transitional_default;
2797
- if (transitional && transitional.legacyInterceptorReqResOrdering) requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
2798
- else requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
2799
- });
2800
- const responseInterceptorChain = [];
2801
- this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
2802
- responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
2803
- });
2804
- let promise;
2805
- let i = 0;
2806
- let len;
2807
- if (!synchronousRequestInterceptors) {
2808
- const chain = [dispatchRequest.bind(this), void 0];
2809
- chain.unshift(...requestInterceptorChain);
2810
- chain.push(...responseInterceptorChain);
2811
- len = chain.length;
2812
- promise = Promise.resolve(config);
2813
- while (i < len) promise = promise.then(chain[i++], chain[i++]);
2814
- return promise;
2815
- }
2816
- len = requestInterceptorChain.length;
2817
- let newConfig = config;
2818
- while (i < len) {
2819
- const onFulfilled = requestInterceptorChain[i++];
2820
- const onRejected = requestInterceptorChain[i++];
2821
- try {
2822
- newConfig = onFulfilled(newConfig);
2823
- } catch (error) {
2824
- onRejected.call(this, error);
2825
- break;
2826
- }
2827
- }
2828
- try {
2829
- promise = dispatchRequest.call(this, newConfig);
2830
- } catch (error) {
2831
- return Promise.reject(error);
2832
- }
2833
- i = 0;
2834
- len = responseInterceptorChain.length;
2835
- while (i < len) promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
2836
- return promise;
2837
- }
2838
- getUri(config) {
2839
- config = mergeConfig$1(this.defaults, config);
2840
- return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls), config.params, config.paramsSerializer);
2841
- }
2842
- };
2843
- utils_default.forEach([
2844
- "delete",
2845
- "get",
2846
- "head",
2847
- "options"
2848
- ], function forEachMethodNoData(method) {
2849
- Axios$1.prototype[method] = function(url, config) {
2850
- return this.request(mergeConfig$1(config || {}, {
2851
- method,
2852
- url,
2853
- data: (config || {}).data
2854
- }));
2855
- };
2856
- });
2857
- utils_default.forEach([
2858
- "post",
2859
- "put",
2860
- "patch",
2861
- "query"
2862
- ], function forEachMethodWithData(method) {
2863
- function generateHTTPMethod(isForm) {
2864
- return function httpMethod(url, data, config) {
2865
- return this.request(mergeConfig$1(config || {}, {
2866
- method,
2867
- headers: isForm ? { "Content-Type": "multipart/form-data" } : {},
2868
- url,
2869
- data
2870
- }));
2871
- };
2872
- }
2873
- Axios$1.prototype[method] = generateHTTPMethod();
2874
- if (method !== "query") Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
2875
- });
2876
- }));
2877
- //#endregion
2878
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/cancel/CancelToken.js
2879
- var CancelToken$1;
2880
- var init_CancelToken = __esmMin((() => {
2881
- init_CanceledError();
2882
- CancelToken$1 = class CancelToken$1 {
2883
- constructor(executor) {
2884
- if (typeof executor !== "function") throw new TypeError("executor must be a function.");
2885
- let resolvePromise;
2886
- this.promise = new Promise(function promiseExecutor(resolve) {
2887
- resolvePromise = resolve;
2888
- });
2889
- const token = this;
2890
- this.promise.then((cancel) => {
2891
- if (!token._listeners) return;
2892
- let i = token._listeners.length;
2893
- while (i-- > 0) token._listeners[i](cancel);
2894
- token._listeners = null;
2895
- });
2896
- this.promise.then = (onfulfilled) => {
2897
- let _resolve;
2898
- const promise = new Promise((resolve) => {
2899
- token.subscribe(resolve);
2900
- _resolve = resolve;
2901
- }).then(onfulfilled);
2902
- promise.cancel = function reject() {
2903
- token.unsubscribe(_resolve);
2904
- };
2905
- return promise;
2906
- };
2907
- executor(function cancel(message, config, request) {
2908
- if (token.reason) return;
2909
- token.reason = new CanceledError$1(message, config, request);
2910
- resolvePromise(token.reason);
2911
- });
2912
- }
2913
- /**
2914
- * Throws a `CanceledError` if cancellation has been requested.
2915
- */
2916
- throwIfRequested() {
2917
- if (this.reason) throw this.reason;
2918
- }
2919
- /**
2920
- * Subscribe to the cancel signal
2921
- */
2922
- subscribe(listener) {
2923
- if (this.reason) {
2924
- listener(this.reason);
2925
- return;
2926
- }
2927
- if (this._listeners) this._listeners.push(listener);
2928
- else this._listeners = [listener];
2929
- }
2930
- /**
2931
- * Unsubscribe from the cancel signal
2932
- */
2933
- unsubscribe(listener) {
2934
- if (!this._listeners) return;
2935
- const index = this._listeners.indexOf(listener);
2936
- if (index !== -1) this._listeners.splice(index, 1);
2937
- }
2938
- toAbortSignal() {
2939
- const controller = new AbortController();
2940
- const abort = (err) => {
2941
- controller.abort(err);
2942
- };
2943
- this.subscribe(abort);
2944
- controller.signal.unsubscribe = () => this.unsubscribe(abort);
2945
- return controller.signal;
2946
- }
2947
- /**
2948
- * Returns an object that contains a new `CancelToken` and a function that, when called,
2949
- * cancels the `CancelToken`.
2950
- */
2951
- static source() {
2952
- let cancel;
2953
- return {
2954
- token: new CancelToken$1(function executor(c) {
2955
- cancel = c;
2956
- }),
2957
- cancel
2958
- };
2959
- }
2960
- };
2961
- }));
2962
- //#endregion
2963
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/spread.js
2964
- /**
2965
- * Syntactic sugar for invoking a function and expanding an array for arguments.
2966
- *
2967
- * Common use case would be to use `Function.prototype.apply`.
2968
- *
2969
- * ```js
2970
- * function f(x, y, z) {}
2971
- * const args = [1, 2, 3];
2972
- * f.apply(null, args);
2973
- * ```
2974
- *
2975
- * With `spread` this example can be re-written.
2976
- *
2977
- * ```js
2978
- * spread(function(x, y, z) {})([1, 2, 3]);
2979
- * ```
2980
- *
2981
- * @param {Function} callback
2982
- *
2983
- * @returns {Function}
2984
- */
2985
- function spread$1(callback) {
2986
- return function wrap(arr) {
2987
- return callback.apply(null, arr);
2988
- };
2989
- }
2990
- var init_spread = __esmMin((() => {}));
2991
- //#endregion
2992
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/isAxiosError.js
2993
- /**
2994
- * Determines whether the payload is an error thrown by Axios
2995
- *
2996
- * @param {*} payload The value to test
2997
- *
2998
- * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
2999
- */
3000
- function isAxiosError$1(payload) {
3001
- return utils_default.isObject(payload) && payload.isAxiosError === true;
3002
- }
3003
- var init_isAxiosError = __esmMin((() => {
3004
- init_utils$1();
3005
- }));
3006
- //#endregion
3007
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/HttpStatusCode.js
3008
- var HttpStatusCode$1;
3009
- var init_HttpStatusCode = __esmMin((() => {
3010
- HttpStatusCode$1 = {
3011
- Continue: 100,
3012
- SwitchingProtocols: 101,
3013
- Processing: 102,
3014
- EarlyHints: 103,
3015
- Ok: 200,
3016
- Created: 201,
3017
- Accepted: 202,
3018
- NonAuthoritativeInformation: 203,
3019
- NoContent: 204,
3020
- ResetContent: 205,
3021
- PartialContent: 206,
3022
- MultiStatus: 207,
3023
- AlreadyReported: 208,
3024
- ImUsed: 226,
3025
- MultipleChoices: 300,
3026
- MovedPermanently: 301,
3027
- Found: 302,
3028
- SeeOther: 303,
3029
- NotModified: 304,
3030
- UseProxy: 305,
3031
- Unused: 306,
3032
- TemporaryRedirect: 307,
3033
- PermanentRedirect: 308,
3034
- BadRequest: 400,
3035
- Unauthorized: 401,
3036
- PaymentRequired: 402,
3037
- Forbidden: 403,
3038
- NotFound: 404,
3039
- MethodNotAllowed: 405,
3040
- NotAcceptable: 406,
3041
- ProxyAuthenticationRequired: 407,
3042
- RequestTimeout: 408,
3043
- Conflict: 409,
3044
- Gone: 410,
3045
- LengthRequired: 411,
3046
- PreconditionFailed: 412,
3047
- PayloadTooLarge: 413,
3048
- UriTooLong: 414,
3049
- UnsupportedMediaType: 415,
3050
- RangeNotSatisfiable: 416,
3051
- ExpectationFailed: 417,
3052
- ImATeapot: 418,
3053
- MisdirectedRequest: 421,
3054
- UnprocessableEntity: 422,
3055
- Locked: 423,
3056
- FailedDependency: 424,
3057
- TooEarly: 425,
3058
- UpgradeRequired: 426,
3059
- PreconditionRequired: 428,
3060
- TooManyRequests: 429,
3061
- RequestHeaderFieldsTooLarge: 431,
3062
- UnavailableForLegalReasons: 451,
3063
- InternalServerError: 500,
3064
- NotImplemented: 501,
3065
- BadGateway: 502,
3066
- ServiceUnavailable: 503,
3067
- GatewayTimeout: 504,
3068
- HttpVersionNotSupported: 505,
3069
- VariantAlsoNegotiates: 506,
3070
- InsufficientStorage: 507,
3071
- LoopDetected: 508,
3072
- NotExtended: 510,
3073
- NetworkAuthenticationRequired: 511,
3074
- WebServerIsDown: 521,
3075
- ConnectionTimedOut: 522,
3076
- OriginIsUnreachable: 523,
3077
- TimeoutOccurred: 524,
3078
- SslHandshakeFailed: 525,
3079
- InvalidSslCertificate: 526
3080
- };
3081
- Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
3082
- HttpStatusCode$1[value] = key;
3083
- });
3084
- }));
3085
- //#endregion
3086
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/axios.js
3087
- /**
3088
- * Create an instance of Axios
3089
- *
3090
- * @param {Object} defaultConfig The default config for the instance
3091
- *
3092
- * @returns {Axios} A new instance of Axios
3093
- */
3094
- function createInstance(defaultConfig) {
3095
- const context = new Axios$1(defaultConfig);
3096
- const instance = bind(Axios$1.prototype.request, context);
3097
- utils_default.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
3098
- utils_default.extend(instance, context, null, { allOwnKeys: true });
3099
- instance.create = function create(instanceConfig) {
3100
- return createInstance(mergeConfig$1(defaultConfig, instanceConfig));
3101
- };
3102
- return instance;
3103
- }
3104
- var axios;
3105
- var init_axios$1 = __esmMin((() => {
3106
- init_utils$1();
3107
- init_bind();
3108
- init_Axios();
3109
- init_mergeConfig();
3110
- init_defaults();
3111
- init_formDataToJSON();
3112
- init_CanceledError();
3113
- init_CancelToken();
3114
- init_isCancel();
3115
- init_data();
3116
- init_toFormData();
3117
- init_AxiosError();
3118
- init_spread();
3119
- init_isAxiosError();
3120
- init_AxiosHeaders();
3121
- init_adapters();
3122
- init_HttpStatusCode();
3123
- axios = createInstance(defaults);
3124
- axios.Axios = Axios$1;
3125
- axios.CanceledError = CanceledError$1;
3126
- axios.CancelToken = CancelToken$1;
3127
- axios.isCancel = isCancel$1;
3128
- axios.VERSION = VERSION$1;
3129
- axios.toFormData = toFormData$1;
3130
- axios.AxiosError = AxiosError$1;
3131
- axios.Cancel = axios.CanceledError;
3132
- axios.all = function all(promises) {
3133
- return Promise.all(promises);
3134
- };
3135
- axios.spread = spread$1;
3136
- axios.isAxiosError = isAxiosError$1;
3137
- axios.mergeConfig = mergeConfig$1;
3138
- axios.AxiosHeaders = AxiosHeaders$1;
3139
- axios.formToJSON = (thing) => formDataToJSON(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
3140
- axios.getAdapter = adapters_default.getAdapter;
3141
- axios.HttpStatusCode = HttpStatusCode$1;
3142
- axios.default = axios;
3143
- }));
3144
- //#endregion
3145
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/index.js
3146
- var Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create;
3147
- var init_axios = __esmMin((() => {
3148
- init_axios$1();
3149
- ({Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create} = axios);
3150
- }));
3151
- //#endregion
3152
- export { init_axios as n, axios as r, Axios as t };