@cirkay-eng/cirkay-components 0.7.2 → 0.7.4

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 (235) hide show
  1. package/dist/base/magic/MagicAPI.d.ts.map +1 -1
  2. package/dist/base/magic/MagicAPI.js +4 -3
  3. package/dist/base/magic/MagicAPI.js.map +1 -1
  4. package/dist/base/n3xus/N3xusAPI.d.ts +8 -5
  5. package/dist/base/n3xus/N3xusAPI.d.ts.map +1 -1
  6. package/dist/base/n3xus/N3xusAPI.js +110 -49
  7. package/dist/base/n3xus/N3xusAPI.js.map +1 -1
  8. package/dist/base/n3xus/types.d.ts +67 -24
  9. package/dist/base/n3xus/types.d.ts.map +1 -1
  10. package/dist/base/n3xus/types.js +1 -0
  11. package/dist/base/n3xus/types.js.map +1 -1
  12. package/dist/components/connected/connected.d.ts +33 -0
  13. package/dist/components/connected/connected.d.ts.map +1 -0
  14. package/dist/components/connected/connected.js +586 -0
  15. package/dist/components/connected/connected.js.map +1 -0
  16. package/dist/components/connected/index.d.ts +8 -0
  17. package/dist/components/connected/index.d.ts.map +1 -0
  18. package/dist/components/connected/index.js +6 -0
  19. package/dist/components/connected/index.js.map +1 -0
  20. package/dist/components/error-screen/error-screen.d.ts +4 -3
  21. package/dist/components/error-screen/error-screen.d.ts.map +1 -1
  22. package/dist/components/error-screen/error-screen.js +6 -11
  23. package/dist/components/error-screen/error-screen.js.map +1 -1
  24. package/dist/components/error-screen/index.d.ts +6 -1
  25. package/dist/components/error-screen/index.d.ts.map +1 -1
  26. package/dist/components/error-screen/index.js +6 -0
  27. package/dist/components/error-screen/index.js.map +1 -0
  28. package/dist/components/fan-pass-claim/fan-pass-claim.d.ts +32 -14
  29. package/dist/components/fan-pass-claim/fan-pass-claim.d.ts.map +1 -1
  30. package/dist/components/fan-pass-claim/fan-pass-claim.js +749 -322
  31. package/dist/components/fan-pass-claim/fan-pass-claim.js.map +1 -1
  32. package/dist/components/fan-pass-claim/index.d.ts +8 -2
  33. package/dist/components/fan-pass-claim/index.d.ts.map +1 -1
  34. package/dist/components/fan-pass-claim/index.js +6 -0
  35. package/dist/components/fan-pass-claim/index.js.map +1 -0
  36. package/dist/components/fan-pass-claim/types.d.ts +7 -0
  37. package/dist/components/fan-pass-claim/types.d.ts.map +1 -1
  38. package/dist/components/fan-pass-claim/types.js +9 -1
  39. package/dist/components/fan-pass-claim/types.js.map +1 -1
  40. package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts +31 -17
  41. package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts.map +1 -1
  42. package/dist/components/fan-pass-unlock/fan-pass-unlock.js +539 -198
  43. package/dist/components/fan-pass-unlock/fan-pass-unlock.js.map +1 -1
  44. package/dist/components/fan-pass-unlock/index.d.ts +8 -2
  45. package/dist/components/fan-pass-unlock/index.d.ts.map +1 -1
  46. package/dist/components/fan-pass-unlock/index.js +6 -0
  47. package/dist/components/fan-pass-unlock/index.js.map +1 -0
  48. package/dist/components/frame/frame.d.ts +1 -0
  49. package/dist/components/frame/frame.d.ts.map +1 -1
  50. package/dist/components/frame/frame.js +48 -20
  51. package/dist/components/frame/frame.js.map +1 -1
  52. package/dist/components/frame/index.d.ts +6 -1
  53. package/dist/components/frame/index.d.ts.map +1 -1
  54. package/dist/components/frame/index.js +6 -0
  55. package/dist/components/frame/index.js.map +1 -0
  56. package/dist/components/index.d.ts +4 -3
  57. package/dist/components/index.d.ts.map +1 -1
  58. package/dist/components/index.js +7 -3
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/login/index.d.ts +6 -1
  61. package/dist/components/login/index.d.ts.map +1 -1
  62. package/dist/components/login/index.js +6 -0
  63. package/dist/components/login/index.js.map +1 -0
  64. package/dist/components/login/login.d.ts +4 -3
  65. package/dist/components/login/login.d.ts.map +1 -1
  66. package/dist/components/login/login.js +97 -38
  67. package/dist/components/login/login.js.map +1 -1
  68. package/dist/components/login/types.d.ts +4 -0
  69. package/dist/components/login/types.d.ts.map +1 -1
  70. package/dist/components/mobile-pass/index.d.ts +8 -0
  71. package/dist/components/mobile-pass/index.d.ts.map +1 -0
  72. package/dist/components/mobile-pass/index.js +6 -0
  73. package/dist/components/mobile-pass/index.js.map +1 -0
  74. package/dist/components/mobile-pass/mobile-pass.d.ts +20 -0
  75. package/dist/components/mobile-pass/mobile-pass.d.ts.map +1 -0
  76. package/dist/components/mobile-pass/mobile-pass.js +150 -0
  77. package/dist/components/mobile-pass/mobile-pass.js.map +1 -0
  78. package/dist/constants/components.d.ts +1 -1
  79. package/dist/constants/components.d.ts.map +1 -1
  80. package/dist/constants/components.js +1 -1
  81. package/dist/controllers/LoginController.d.ts +33 -5
  82. package/dist/controllers/LoginController.d.ts.map +1 -1
  83. package/dist/controllers/LoginController.js +38 -24
  84. package/dist/controllers/LoginController.js.map +1 -1
  85. package/dist/docs/error-screen/designTokens.d.ts +1 -3
  86. package/dist/docs/error-screen/designTokens.d.ts.map +1 -1
  87. package/dist/docs/fan-pass-claim/designTokens.d.ts.map +1 -1
  88. package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts +1 -1
  89. package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts.map +1 -1
  90. package/dist/docs/fan-pass-unlock/designTokens.d.ts.map +1 -1
  91. package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts +1 -1
  92. package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts.map +1 -1
  93. package/dist/docs/login/designTokens.d.ts +1 -3
  94. package/dist/docs/login/designTokens.d.ts.map +1 -1
  95. package/dist/docs/login/login.stories.d.ts +1 -1
  96. package/dist/docs/login/login.stories.d.ts.map +1 -1
  97. package/dist/docs/mobile-pass/designTokens.d.ts +3 -0
  98. package/dist/docs/mobile-pass/designTokens.d.ts.map +1 -0
  99. package/dist/docs/mobile-pass/mobile-pass.stories.d.ts +6 -0
  100. package/dist/docs/mobile-pass/mobile-pass.stories.d.ts.map +1 -0
  101. package/dist/events/claim.d.ts +2 -1
  102. package/dist/events/claim.d.ts.map +1 -1
  103. package/dist/events/claim.js.map +1 -1
  104. package/dist/events/login.d.ts +8 -1
  105. package/dist/events/login.d.ts.map +1 -1
  106. package/dist/events/login.js +1 -0
  107. package/dist/events/login.js.map +1 -1
  108. package/dist/events/unlock.d.ts +15 -1
  109. package/dist/events/unlock.d.ts.map +1 -1
  110. package/dist/events/unlock.js +2 -0
  111. package/dist/events/unlock.js.map +1 -1
  112. package/dist/internal/CirkayElement.d.ts.map +1 -1
  113. package/dist/internal/CirkayElement.js +0 -2
  114. package/dist/internal/CirkayElement.js.map +1 -1
  115. package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
  116. package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
  117. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
  118. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
  119. package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js.map +1 -1
  120. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +31 -0
  121. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +1 -0
  122. package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js +9 -0
  123. package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js.map +1 -0
  124. package/dist/utils/helpers.d.ts +26 -2
  125. package/dist/utils/helpers.d.ts.map +1 -1
  126. package/dist/utils/helpers.js +65 -7
  127. package/dist/utils/helpers.js.map +1 -1
  128. package/package.json +21 -16
  129. package/dist/_virtual/_commonjsHelpers.js +0 -6
  130. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  131. package/dist/_virtual/index.js +0 -8
  132. package/dist/_virtual/index.js.map +0 -1
  133. package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js +0 -182
  134. package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js.map +0 -1
  135. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js +0 -82
  136. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js.map +0 -1
  137. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js +0 -230
  138. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js.map +0 -1
  139. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js +0 -200
  140. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js.map +0 -1
  141. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js +0 -87
  142. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js.map +0 -1
  143. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js +0 -134
  144. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js.map +0 -1
  145. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js +0 -24
  146. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js.map +0 -1
  147. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js +0 -6
  148. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js.map +0 -1
  149. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js +0 -232
  150. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js.map +0 -1
  151. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js +0 -102
  152. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js.map +0 -1
  153. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js +0 -301
  154. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js.map +0 -1
  155. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js +0 -70
  156. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js.map +0 -1
  157. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js +0 -22
  158. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js.map +0 -1
  159. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js +0 -82
  160. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js.map +0 -1
  161. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js +0 -107
  162. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js.map +0 -1
  163. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js +0 -28
  164. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js.map +0 -1
  165. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js +0 -29
  166. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js.map +0 -1
  167. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js +0 -160
  168. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js.map +0 -1
  169. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js +0 -8
  170. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js.map +0 -1
  171. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js +0 -4
  172. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js.map +0 -1
  173. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -57
  174. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +0 -1
  175. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -72
  176. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js.map +0 -1
  177. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js +0 -8
  178. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js.map +0 -1
  179. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js +0 -70
  180. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js.map +0 -1
  181. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js +0 -16
  182. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js.map +0 -1
  183. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js +0 -49
  184. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js.map +0 -1
  185. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js +0 -44
  186. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js.map +0 -1
  187. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js +0 -94
  188. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js.map +0 -1
  189. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -16
  190. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +0 -1
  191. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js +0 -15
  192. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js.map +0 -1
  193. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -17
  194. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +0 -1
  195. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js +0 -5
  196. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js.map +0 -1
  197. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js +0 -56
  198. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js.map +0 -1
  199. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  200. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js.map +0 -1
  201. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js +0 -47
  202. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js.map +0 -1
  203. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js +0 -59
  204. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js.map +0 -1
  205. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js +0 -54
  206. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js.map +0 -1
  207. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js +0 -29
  208. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js.map +0 -1
  209. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js +0 -45
  210. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js.map +0 -1
  211. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js +0 -216
  212. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js.map +0 -1
  213. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  214. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +0 -1
  215. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js +0 -89
  216. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js.map +0 -1
  217. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js +0 -100
  218. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js.map +0 -1
  219. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  220. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js.map +0 -1
  221. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  222. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js.map +0 -1
  223. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
  224. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +0 -1
  225. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js +0 -16
  226. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js.map +0 -1
  227. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js +0 -46
  228. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js.map +0 -1
  229. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js +0 -10
  230. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js.map +0 -1
  231. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js +0 -761
  232. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js.map +0 -1
  233. package/dist/utils/settings.js +0 -7
  234. package/dist/utils/settings.js.map +0 -1
  235. /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js +0 -0
@@ -1,47 +0,0 @@
1
- import speedometer from './speedometer.js';
2
- import throttle from './throttle.js';
3
- import utils from '../utils.js';
4
-
5
- const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
6
- let bytesNotified = 0;
7
- const _speedometer = speedometer(50, 250);
8
-
9
- return throttle(e => {
10
- const loaded = e.loaded;
11
- const total = e.lengthComputable ? e.total : undefined;
12
- const progressBytes = loaded - bytesNotified;
13
- const rate = _speedometer(progressBytes);
14
- const inRange = loaded <= total;
15
-
16
- bytesNotified = loaded;
17
-
18
- const data = {
19
- loaded,
20
- total,
21
- progress: total ? (loaded / total) : undefined,
22
- bytes: progressBytes,
23
- rate: rate ? rate : undefined,
24
- estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
25
- event: e,
26
- lengthComputable: total != null,
27
- [isDownloadStream ? 'download' : 'upload']: true
28
- };
29
-
30
- listener(data);
31
- }, freq);
32
- };
33
-
34
- const progressEventDecorator = (total, throttled) => {
35
- const lengthComputable = total != null;
36
-
37
- return [(loaded) => throttled[0]({
38
- lengthComputable,
39
- total,
40
- loaded
41
- }), throttled[1]];
42
- };
43
-
44
- const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));
45
-
46
- export { asyncDecorator, progressEventDecorator, progressEventReducer };
47
- //# sourceMappingURL=progressEventReducer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"progressEventReducer.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js"],"sourcesContent":["import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n"],"names":[],"mappings":";;;;AAIY,MAAC,oBAAoB,GAAG,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,GAAG,CAAC,KAAK;AAC9E,EAAE,IAAI,aAAa,GAAG,CAAC;AACvB,EAAE,MAAM,YAAY,GAAG,WAAW,CAAC,EAAE,EAAE,GAAG,CAAC;;AAE3C,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI;AACvB,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM;AAC3B,IAAI,MAAM,KAAK,GAAG,CAAC,CAAC,gBAAgB,GAAG,CAAC,CAAC,KAAK,GAAG,SAAS;AAC1D,IAAI,MAAM,aAAa,GAAG,MAAM,GAAG,aAAa;AAChD,IAAI,MAAM,IAAI,GAAG,YAAY,CAAC,aAAa,CAAC;AAC5C,IAAI,MAAM,OAAO,GAAG,MAAM,IAAI,KAAK;;AAEnC,IAAI,aAAa,GAAG,MAAM;;AAE1B,IAAI,MAAM,IAAI,GAAG;AACjB,MAAM,MAAM;AACZ,MAAM,KAAK;AACX,MAAM,QAAQ,EAAE,KAAK,IAAI,MAAM,GAAG,KAAK,IAAI,SAAS;AACpD,MAAM,KAAK,EAAE,aAAa;AAC1B,MAAM,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS;AACnC,MAAM,SAAS,EAAE,IAAI,IAAI,KAAK,IAAI,OAAO,GAAG,CAAC,KAAK,GAAG,MAAM,IAAI,IAAI,GAAG,SAAS;AAC/E,MAAM,KAAK,EAAE,CAAC;AACd,MAAM,gBAAgB,EAAE,KAAK,IAAI,IAAI;AACrC,MAAM,CAAC,gBAAgB,GAAG,UAAU,GAAG,QAAQ,GAAG;AAClD,KAAK;;AAEL,IAAI,QAAQ,CAAC,IAAI,CAAC;AAClB,GAAG,EAAE,IAAI,CAAC;AACV;;AAEY,MAAC,sBAAsB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK;AAC5D,EAAE,MAAM,gBAAgB,GAAG,KAAK,IAAI,IAAI;;AAExC,EAAE,OAAO,CAAC,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;AACnC,IAAI,gBAAgB;AACpB,IAAI,KAAK;AACT,IAAI;AACJ,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AACnB;;AAEY,MAAC,cAAc,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;;;;","x_google_ignoreList":[0]}
@@ -1,59 +0,0 @@
1
- import platform from '../platform/index.js';
2
- import utils from '../utils.js';
3
- import isURLSameOrigin from './isURLSameOrigin.js';
4
- import cookies from './cookies.js';
5
- import buildFullPath from '../core/buildFullPath.js';
6
- import mergeConfig from '../core/mergeConfig.js';
7
- import AxiosHeaders from '../core/AxiosHeaders.js';
8
- import buildURL from './buildURL.js';
9
-
10
- var resolveConfig = (config) => {
11
- const newConfig = mergeConfig({}, config);
12
-
13
- let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
14
-
15
- newConfig.headers = headers = AxiosHeaders.from(headers);
16
-
17
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
18
-
19
- // HTTP basic authentication
20
- if (auth) {
21
- headers.set('Authorization', 'Basic ' +
22
- btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
23
- );
24
- }
25
-
26
- let contentType;
27
-
28
- if (utils.isFormData(data)) {
29
- if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
30
- headers.setContentType(undefined); // Let the browser set it
31
- } else if ((contentType = headers.getContentType()) !== false) {
32
- // fix semicolon duplication issue for ReactNative FormData implementation
33
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
34
- headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
35
- }
36
- }
37
-
38
- // Add xsrf header
39
- // This is only done if running in a standard browser environment.
40
- // Specifically not if we're in a web worker, or react-native.
41
-
42
- if (platform.hasStandardBrowserEnv) {
43
- withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
44
-
45
- if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {
46
- // Add xsrf header
47
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
48
-
49
- if (xsrfValue) {
50
- headers.set(xsrfHeaderName, xsrfValue);
51
- }
52
- }
53
- }
54
-
55
- return newConfig;
56
- };
57
-
58
- export { resolveConfig as default };
59
- //# sourceMappingURL=resolveConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveConfig.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js"],"sourcesContent":["import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n"],"names":[],"mappings":";;;;;;;;;AASA,oBAAe,CAAC,MAAM,KAAK;AAC3B,EAAE,MAAM,SAAS,GAAG,WAAW,CAAC,EAAE,EAAE,MAAM,CAAC;;AAE3C,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,SAAS;;AAEtF,EAAE,SAAS,CAAC,OAAO,GAAG,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;;AAE1D,EAAE,SAAS,CAAC,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC;;AAEnH;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SAAS,GAAG,cAAc,IAAI,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC;;AAExF,MAAM,IAAI,SAAS,EAAE;AACrB,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,SAAS,CAAC;AAC9C;AACA;AACA;;AAEA,EAAE,OAAO,SAAS;AAClB;;;;","x_google_ignoreList":[0]}
@@ -1,54 +0,0 @@
1
- /**
2
- * Calculate data maxRate
3
- * @param {Number} [samplesCount= 10]
4
- * @param {Number} [min= 1000]
5
- * @returns {Function}
6
- */
7
- function speedometer(samplesCount, min) {
8
- samplesCount = samplesCount || 10;
9
- const bytes = new Array(samplesCount);
10
- const timestamps = new Array(samplesCount);
11
- let head = 0;
12
- let tail = 0;
13
- let firstSampleTS;
14
-
15
- min = min !== undefined ? min : 1000;
16
-
17
- return function push(chunkLength) {
18
- const now = Date.now();
19
-
20
- const startedAt = timestamps[tail];
21
-
22
- if (!firstSampleTS) {
23
- firstSampleTS = now;
24
- }
25
-
26
- bytes[head] = chunkLength;
27
- timestamps[head] = now;
28
-
29
- let i = tail;
30
- let bytesCount = 0;
31
-
32
- while (i !== head) {
33
- bytesCount += bytes[i++];
34
- i = i % samplesCount;
35
- }
36
-
37
- head = (head + 1) % samplesCount;
38
-
39
- if (head === tail) {
40
- tail = (tail + 1) % samplesCount;
41
- }
42
-
43
- if (now - firstSampleTS < min) {
44
- return;
45
- }
46
-
47
- const passed = startedAt && now - startedAt;
48
-
49
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
50
- };
51
- }
52
-
53
- export { speedometer as default };
54
- //# sourceMappingURL=speedometer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"speedometer.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js"],"sourcesContent":["'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,WAAW,CAAC,YAAY,EAAE,GAAG,EAAE;AACxC,EAAE,YAAY,GAAG,YAAY,IAAI,EAAE;AACnC,EAAE,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC;AACvC,EAAE,MAAM,UAAU,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC;AAC5C,EAAE,IAAI,IAAI,GAAG,CAAC;AACd,EAAE,IAAI,IAAI,GAAG,CAAC;AACd,EAAE,IAAI,aAAa;;AAEnB,EAAE,GAAG,GAAG,GAAG,KAAK,SAAS,GAAG,GAAG,GAAG,IAAI;;AAEtC,EAAE,OAAO,SAAS,IAAI,CAAC,WAAW,EAAE;AACpC,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;;AAE1B,IAAI,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC;;AAEtC,IAAI,IAAI,CAAC,aAAa,EAAE;AACxB,MAAM,aAAa,GAAG,GAAG;AACzB;;AAEA,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,WAAW;AAC7B,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,GAAG;;AAE1B,IAAI,IAAI,CAAC,GAAG,IAAI;AAChB,IAAI,IAAI,UAAU,GAAG,CAAC;;AAEtB,IAAI,OAAO,CAAC,KAAK,IAAI,EAAE;AACvB,MAAM,UAAU,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC;AAC9B,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY;AAC1B;;AAEA,IAAI,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,YAAY;;AAEpC,IAAI,IAAI,IAAI,KAAK,IAAI,EAAE;AACvB,MAAM,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,YAAY;AACtC;;AAEA,IAAI,IAAI,GAAG,GAAG,aAAa,GAAG,GAAG,EAAE;AACnC,MAAM;AACN;;AAEA,IAAI,MAAM,MAAM,GAAG,SAAS,IAAI,GAAG,GAAG,SAAS;;AAE/C,IAAI,OAAO,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC,GAAG,SAAS;AACtE,GAAG;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,29 +0,0 @@
1
- /**
2
- * Syntactic sugar for invoking a function and expanding an array for arguments.
3
- *
4
- * Common use case would be to use `Function.prototype.apply`.
5
- *
6
- * ```js
7
- * function f(x, y, z) {}
8
- * var args = [1, 2, 3];
9
- * f.apply(null, args);
10
- * ```
11
- *
12
- * With `spread` this example can be re-written.
13
- *
14
- * ```js
15
- * spread(function(x, y, z) {})([1, 2, 3]);
16
- * ```
17
- *
18
- * @param {Function} callback
19
- *
20
- * @returns {Function}
21
- */
22
- function spread(callback) {
23
- return function wrap(arr) {
24
- return callback.apply(null, arr);
25
- };
26
- }
27
-
28
- export { spread as default };
29
- //# sourceMappingURL=spread.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spread.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js"],"sourcesContent":["'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,MAAM,CAAC,QAAQ,EAAE;AACzC,EAAE,OAAO,SAAS,IAAI,CAAC,GAAG,EAAE;AAC5B,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC;AACpC,GAAG;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,45 +0,0 @@
1
- /**
2
- * Throttle decorator
3
- * @param {Function} fn
4
- * @param {Number} freq
5
- * @return {Function}
6
- */
7
- function throttle(fn, freq) {
8
- let timestamp = 0;
9
- let threshold = 1000 / freq;
10
- let lastArgs;
11
- let timer;
12
-
13
- const invoke = (args, now = Date.now()) => {
14
- timestamp = now;
15
- lastArgs = null;
16
- if (timer) {
17
- clearTimeout(timer);
18
- timer = null;
19
- }
20
- fn.apply(null, args);
21
- };
22
-
23
- const throttled = (...args) => {
24
- const now = Date.now();
25
- const passed = now - timestamp;
26
- if ( passed >= threshold) {
27
- invoke(args, now);
28
- } else {
29
- lastArgs = args;
30
- if (!timer) {
31
- timer = setTimeout(() => {
32
- timer = null;
33
- invoke(lastArgs);
34
- }, threshold - passed);
35
- }
36
- }
37
- };
38
-
39
- const flush = () => lastArgs && invoke(lastArgs);
40
-
41
- return [throttled, flush];
42
- }
43
-
44
- export { throttle as default };
45
- //# sourceMappingURL=throttle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"throttle.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js"],"sourcesContent":["/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE;AAC5B,EAAE,IAAI,SAAS,GAAG,CAAC;AACnB,EAAE,IAAI,SAAS,GAAG,IAAI,GAAG,IAAI;AAC7B,EAAE,IAAI,QAAQ;AACd,EAAE,IAAI,KAAK;;AAEX,EAAE,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK;AAC7C,IAAI,SAAS,GAAG,GAAG;AACnB,IAAI,QAAQ,GAAG,IAAI;AACnB,IAAI,IAAI,KAAK,EAAE;AACf,MAAM,YAAY,CAAC,KAAK,CAAC;AACzB,MAAM,KAAK,GAAG,IAAI;AAClB;AACA,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;AACxB;;AAEA,EAAE,MAAM,SAAS,GAAG,CAAC,GAAG,IAAI,KAAK;AACjC,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;AAC1B,IAAI,MAAM,MAAM,GAAG,GAAG,GAAG,SAAS;AAClC,IAAI,KAAK,MAAM,IAAI,SAAS,EAAE;AAC9B,MAAM,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC;AACvB,KAAK,MAAM;AACX,MAAM,QAAQ,GAAG,IAAI;AACrB,MAAM,IAAI,CAAC,KAAK,EAAE;AAClB,QAAQ,KAAK,GAAG,UAAU,CAAC,MAAM;AACjC,UAAU,KAAK,GAAG,IAAI;AACtB,UAAU,MAAM,CAAC,QAAQ;AACzB,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC;AAC9B;AACA;AACA;;AAEA,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC;;AAElD,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC;AAC3B;;;;","x_google_ignoreList":[0]}
@@ -1,216 +0,0 @@
1
- import utils from '../utils.js';
2
- import AxiosError from '../core/AxiosError.js';
3
-
4
- /**
5
- * Determines if the given thing is a array or js object.
6
- *
7
- * @param {string} thing - The object or array to be visited.
8
- *
9
- * @returns {boolean}
10
- */
11
- function isVisitable(thing) {
12
- return utils.isPlainObject(thing) || utils.isArray(thing);
13
- }
14
-
15
- /**
16
- * It removes the brackets from the end of a string
17
- *
18
- * @param {string} key - The key of the parameter.
19
- *
20
- * @returns {string} the key without the brackets.
21
- */
22
- function removeBrackets(key) {
23
- return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
24
- }
25
-
26
- /**
27
- * It takes a path, a key, and a boolean, and returns a string
28
- *
29
- * @param {string} path - The path to the current key.
30
- * @param {string} key - The key of the current object being iterated over.
31
- * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
32
- *
33
- * @returns {string} The path to the current key.
34
- */
35
- function renderKey(path, key, dots) {
36
- if (!path) return key;
37
- return path.concat(key).map(function each(token, i) {
38
- // eslint-disable-next-line no-param-reassign
39
- token = removeBrackets(token);
40
- return !dots && i ? '[' + token + ']' : token;
41
- }).join(dots ? '.' : '');
42
- }
43
-
44
- /**
45
- * If the array is an array and none of its elements are visitable, then it's a flat array.
46
- *
47
- * @param {Array<any>} arr - The array to check
48
- *
49
- * @returns {boolean}
50
- */
51
- function isFlatArray(arr) {
52
- return utils.isArray(arr) && !arr.some(isVisitable);
53
- }
54
-
55
- const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
56
- return /^is[A-Z]/.test(prop);
57
- });
58
-
59
- /**
60
- * Convert a data object to FormData
61
- *
62
- * @param {Object} obj
63
- * @param {?Object} [formData]
64
- * @param {?Object} [options]
65
- * @param {Function} [options.visitor]
66
- * @param {Boolean} [options.metaTokens = true]
67
- * @param {Boolean} [options.dots = false]
68
- * @param {?Boolean} [options.indexes = false]
69
- *
70
- * @returns {Object}
71
- **/
72
-
73
- /**
74
- * It converts an object into a FormData object
75
- *
76
- * @param {Object<any, any>} obj - The object to convert to form data.
77
- * @param {string} formData - The FormData object to append to.
78
- * @param {Object<string, any>} options
79
- *
80
- * @returns
81
- */
82
- function toFormData(obj, formData, options) {
83
- if (!utils.isObject(obj)) {
84
- throw new TypeError('target must be an object');
85
- }
86
-
87
- // eslint-disable-next-line no-param-reassign
88
- formData = formData || new (FormData)();
89
-
90
- // eslint-disable-next-line no-param-reassign
91
- options = utils.toFlatObject(options, {
92
- metaTokens: true,
93
- dots: false,
94
- indexes: false
95
- }, false, function defined(option, source) {
96
- // eslint-disable-next-line no-eq-null,eqeqeq
97
- return !utils.isUndefined(source[option]);
98
- });
99
-
100
- const metaTokens = options.metaTokens;
101
- // eslint-disable-next-line no-use-before-define
102
- const visitor = options.visitor || defaultVisitor;
103
- const dots = options.dots;
104
- const indexes = options.indexes;
105
- const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
106
- const useBlob = _Blob && utils.isSpecCompliantForm(formData);
107
-
108
- if (!utils.isFunction(visitor)) {
109
- throw new TypeError('visitor must be a function');
110
- }
111
-
112
- function convertValue(value) {
113
- if (value === null) return '';
114
-
115
- if (utils.isDate(value)) {
116
- return value.toISOString();
117
- }
118
-
119
- if (!useBlob && utils.isBlob(value)) {
120
- throw new AxiosError('Blob is not supported. Use a Buffer instead.');
121
- }
122
-
123
- if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
124
- return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
125
- }
126
-
127
- return value;
128
- }
129
-
130
- /**
131
- * Default visitor.
132
- *
133
- * @param {*} value
134
- * @param {String|Number} key
135
- * @param {Array<String|Number>} path
136
- * @this {FormData}
137
- *
138
- * @returns {boolean} return true to visit the each prop of the value recursively
139
- */
140
- function defaultVisitor(value, key, path) {
141
- let arr = value;
142
-
143
- if (value && !path && typeof value === 'object') {
144
- if (utils.endsWith(key, '{}')) {
145
- // eslint-disable-next-line no-param-reassign
146
- key = metaTokens ? key : key.slice(0, -2);
147
- // eslint-disable-next-line no-param-reassign
148
- value = JSON.stringify(value);
149
- } else if (
150
- (utils.isArray(value) && isFlatArray(value)) ||
151
- ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
152
- )) {
153
- // eslint-disable-next-line no-param-reassign
154
- key = removeBrackets(key);
155
-
156
- arr.forEach(function each(el, index) {
157
- !(utils.isUndefined(el) || el === null) && formData.append(
158
- // eslint-disable-next-line no-nested-ternary
159
- indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
160
- convertValue(el)
161
- );
162
- });
163
- return false;
164
- }
165
- }
166
-
167
- if (isVisitable(value)) {
168
- return true;
169
- }
170
-
171
- formData.append(renderKey(path, key, dots), convertValue(value));
172
-
173
- return false;
174
- }
175
-
176
- const stack = [];
177
-
178
- const exposedHelpers = Object.assign(predicates, {
179
- defaultVisitor,
180
- convertValue,
181
- isVisitable
182
- });
183
-
184
- function build(value, path) {
185
- if (utils.isUndefined(value)) return;
186
-
187
- if (stack.indexOf(value) !== -1) {
188
- throw Error('Circular reference detected in ' + path.join('.'));
189
- }
190
-
191
- stack.push(value);
192
-
193
- utils.forEach(value, function each(el, key) {
194
- const result = !(utils.isUndefined(el) || el === null) && visitor.call(
195
- formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers
196
- );
197
-
198
- if (result === true) {
199
- build(el, path ? path.concat(key) : [key]);
200
- }
201
- });
202
-
203
- stack.pop();
204
- }
205
-
206
- if (!utils.isObject(obj)) {
207
- throw new TypeError('data must be an object');
208
- }
209
-
210
- build(obj);
211
-
212
- return formData;
213
- }
214
-
215
- export { toFormData as default };
216
- //# sourceMappingURL=toFormData.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toFormData.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n"],"names":[],"mappings":";;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,WAAW,CAAC,KAAK,EAAE;AAC5B,EAAE,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AA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K,CAAC;;AAErB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE;AAChD,MAAM,MAAM,MAAM,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI;AAC5E,QAAQ,QAAQ,EAAE,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,EAAE,IAAI,EAAE;AACpE,OAAO;;AAEP,MAAM,IAAI,MAAM,KAAK,IAAI,EAAE;AAC3B,QAAQ,KAAK,CAAC,EAAE,EAAE,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAClD;AACA,KAAK,CAAC;;AAEN,IAAI,KAAK,CAAC,GAAG,EAAE;AACf;;AAEA,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC5B,IAAI,MAAM,IAAI,SAAS,CAAC,wBAAwB,CAAC;AACjD;;AAEA,EAAE,KAAK,CAAC,GAAG,CAAC;;AAEZ,EAAE,OAAO,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
@@ -1,19 +0,0 @@
1
- import utils from '../utils.js';
2
- import toFormData from './toFormData.js';
3
- import platform from '../platform/index.js';
4
-
5
- function toURLEncodedForm(data, options) {
6
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
7
- visitor: function(value, key, path, helpers) {
8
- if (platform.isNode && utils.isBuffer(value)) {
9
- this.append(key, value.toString('base64'));
10
- return false;
11
- }
12
-
13
- return helpers.defaultVisitor.apply(this, arguments);
14
- }
15
- }, options));
16
- }
17
-
18
- export { toURLEncodedForm as default };
19
- //# sourceMappingURL=toURLEncodedForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toURLEncodedForm.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n"],"names":[],"mappings":";;;;AAMe,SAAS,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE;AACxD,EAAE,OAAO,UAAU,CAAC,IAAI,EAAE,IAAI,QAAQ,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC;AAChF,IAAI,OAAO,EAAE,SAAS,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE;AACjD,MAAM,IAAI,QAAQ,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACpD,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAClD,QAAQ,OAAO,KAAK;AACpB;;AAEA,MAAM,OAAO,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;AAC1D;AACA,GAAG,EAAE,OAAO,CAAC,CAAC;AACd;;;;","x_google_ignoreList":[0]}
@@ -1,89 +0,0 @@
1
- const streamChunk = function* (chunk, chunkSize) {
2
- let len = chunk.byteLength;
3
-
4
- if (len < chunkSize) {
5
- yield chunk;
6
- return;
7
- }
8
-
9
- let pos = 0;
10
- let end;
11
-
12
- while (pos < len) {
13
- end = pos + chunkSize;
14
- yield chunk.slice(pos, end);
15
- pos = end;
16
- }
17
- };
18
-
19
- const readBytes = async function* (iterable, chunkSize) {
20
- for await (const chunk of readStream(iterable)) {
21
- yield* streamChunk(chunk, chunkSize);
22
- }
23
- };
24
-
25
- const readStream = async function* (stream) {
26
- if (stream[Symbol.asyncIterator]) {
27
- yield* stream;
28
- return;
29
- }
30
-
31
- const reader = stream.getReader();
32
- try {
33
- for (;;) {
34
- const {done, value} = await reader.read();
35
- if (done) {
36
- break;
37
- }
38
- yield value;
39
- }
40
- } finally {
41
- await reader.cancel();
42
- }
43
- };
44
-
45
- const trackStream = (stream, chunkSize, onProgress, onFinish) => {
46
- const iterator = readBytes(stream, chunkSize);
47
-
48
- let bytes = 0;
49
- let done;
50
- let _onFinish = (e) => {
51
- if (!done) {
52
- done = true;
53
- onFinish && onFinish(e);
54
- }
55
- };
56
-
57
- return new ReadableStream({
58
- async pull(controller) {
59
- try {
60
- const {done, value} = await iterator.next();
61
-
62
- if (done) {
63
- _onFinish();
64
- controller.close();
65
- return;
66
- }
67
-
68
- let len = value.byteLength;
69
- if (onProgress) {
70
- let loadedBytes = bytes += len;
71
- onProgress(loadedBytes);
72
- }
73
- controller.enqueue(new Uint8Array(value));
74
- } catch (err) {
75
- _onFinish(err);
76
- throw err;
77
- }
78
- },
79
- cancel(reason) {
80
- _onFinish(reason);
81
- return iterator.return();
82
- }
83
- }, {
84
- highWaterMark: 2
85
- })
86
- };
87
-
88
- export { readBytes, streamChunk, trackStream };
89
- //# sourceMappingURL=trackStream.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trackStream.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js"],"sourcesContent":["\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n"],"names":[],"mappings":"AACY,MAAC,WAAW,GAAG,WAAW,KAAK,EAAE,SAAS,EAAE;AACxD,EAAE,IAAI,GAAG,GAAG,KAAK,CAAC,UAAU;;AAE5B,EAAE,IAAkB,GAAG,GAAG,SAAS,EAAE;AACrC,IAAI,MAAM,KAAK;AACf,IAAI;AACJ;;AAEA,EAAE,IAAI,GAAG,GAAG,CAAC;AACb,EAAE,IAAI,GAAG;;AAET,EAAE,OAAO,GAAG,GAAG,GAAG,EAAE;AACpB,IAAI,GAAG,GAAG,GAAG,GAAG,SAAS;AACzB,IAAI,MAAM,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC;AAC/B,IAAI,GAAG,GAAG,GAAG;AACb;AACA;;AAEY,MAAC,SAAS,GAAG,iBAAiB,QAAQ,EAAE,SAAS,EAAE;AAC/D,EAAE,WAAW,MAAM,KAAK,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE;AAClD,IAAI,OAAO,WAAW,CAA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