@feedmepos/mf-brand-app-builder 0.5.12 → 0.5.13

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 (71) hide show
  1. package/dist/{App-D-sh0my5.js → App-DF03mf4C.js} +27 -25
  2. package/dist/{AssetsSettings-BRmUNWzU.js → AssetsSettings-CLNsRfkn.js} +5 -5
  3. package/dist/{BuilderView-DPoES6BN.js → BuilderView-C-zYam5O.js} +8 -8
  4. package/dist/{ButtonGroup-B3ba45VA.js → ButtonGroup-CbW3Lnxj.js} +2 -2
  5. package/dist/{CircularProgress-h90pbjU3.js → CircularProgress-DdblYCtV.js} +4 -4
  6. package/dist/{ColorPicker-DAysa9fA.js → ColorPicker-Bz8yOMlS.js} +2 -2
  7. package/dist/{Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js → Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js} +2 -2
  8. package/dist/{ImageUpload-EpMFyZdg.js → ImageUpload-Cpkzp4iS.js} +9 -9
  9. package/dist/{LinkButton-DENsxaU5.js → LinkButton-D0MS93kZ.js} +3 -3
  10. package/dist/{ListRepeater-DLracrtI.js → ListRepeater-DDJL956f.js} +2 -2
  11. package/dist/{ManagementSettings-BM5Ln-Sx.js → ManagementSettings-BQuJDFla.js} +3 -3
  12. package/dist/{Select-CbQFoAzb.js → Select-C2r_c4vv.js} +2 -2
  13. package/dist/{SettingsView-DFAxZPug.js → SettingsView-BUGfoZhA.js} +2 -2
  14. package/dist/{StepperField-DrHM9EDn.js → StepperField-xVvcmxNx.js} +2 -2
  15. package/dist/{Switch-8mmNQUDo.js → Switch-uc_zN-mb.js} +2 -2
  16. package/dist/{TextAlign-BOC8ekaH.js → TextAlign-BSp1Xi7F.js} +2 -2
  17. package/dist/{TextDecorators-BJC4umDR.js → TextDecorators-1C54q7us.js} +4 -4
  18. package/dist/{TextField-BiVH5rLX.js → TextField-DfBJB6vQ.js} +2 -2
  19. package/dist/{TextStyleList-CuPE80Py.js → TextStyleList-Bef3irUx.js} +3 -3
  20. package/dist/{app-B1o1qlxh.js → app-DXnRpFqq.js} +27 -27
  21. package/dist/app.js +1 -1
  22. package/dist/components/src/components/BranchList.vue.d.ts +1 -1
  23. package/dist/components/src/components/ButtonList.vue.d.ts +1 -1
  24. package/dist/components/src/components/CountrySwitcher.vue.d.ts +1 -1
  25. package/dist/components/src/components/Homepage.vue.d.ts +3 -3
  26. package/dist/components/src/components/ImageCarousel.vue.d.ts +1 -1
  27. package/dist/components/src/components/ImageDisplay.vue.d.ts +1 -1
  28. package/dist/components/src/components/MemberCard.vue.d.ts +2 -1
  29. package/dist/components/src/components/OrderHistoryCard.vue.d.ts +1 -1
  30. package/dist/components/src/components/OrderMethod.vue.d.ts +1 -1
  31. package/dist/components/src/components/TextDisplay.vue.d.ts +1 -1
  32. package/dist/components/src/components/atoms/Button.vue.d.ts +4 -4
  33. package/dist/components/src/components/atoms/CircularProgress.vue.d.ts +1 -1
  34. package/dist/components/src/components/atoms/Container.vue.d.ts +3 -3
  35. package/dist/components/src/components/atoms/Divider.vue.d.ts +1 -1
  36. package/dist/components/src/components/atoms/Icon.vue.d.ts +1 -1
  37. package/dist/components/src/components/atoms/LinkSlot.vue.d.ts +4 -4
  38. package/dist/components/src/views/OrderDetails.vue.d.ts +1 -1
  39. package/dist/{image-Dw_jz8xE.js → image-Dm7AsBZX.js} +1 -1
  40. package/dist/index-B0O5NxWl.js +1741 -0
  41. package/dist/{index-Dw3CRqw2.js → index-BZ63ygCw.js} +1 -1
  42. package/dist/{index-T23clKe0.js → index-CAfpg2Eg.js} +201 -197
  43. package/dist/{index-BMPqWhXR.js → index-CJXFGv-u.js} +4 -4
  44. package/dist/{main-CZCjdYQJ.js → main-BnnUrWK-.js} +265 -266
  45. package/dist/merchant/src/api/index.d.ts +21 -1
  46. package/dist/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
  47. package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
  48. package/dist/merchant/src/components/editor/Editor.vue.d.ts +1 -1
  49. package/dist/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
  50. package/dist/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +1 -1
  51. package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
  52. package/dist/merchant/src/components/inputs/ColorPicker.vue.d.ts +1 -1
  53. package/dist/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
  54. package/dist/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
  55. package/dist/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
  56. package/dist/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
  57. package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
  58. package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +3 -3
  59. package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +3 -3
  60. package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +3 -3
  61. package/dist/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
  62. package/dist/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +1 -1
  63. package/dist/merchant/src/components/settings/AssetsSettings.vue.d.ts +1 -1
  64. package/dist/merchant/src/components/settings/ManagementSettings.vue.d.ts +1 -1
  65. package/dist/merchant/src/views/BuilderView.vue.d.ts +1 -1
  66. package/dist/merchant/src/views/HomeView.vue.d.ts +1 -1
  67. package/dist/merchant/src/views/SettingsView.vue.d.ts +1 -1
  68. package/dist/package.json +1 -1
  69. package/dist/{v4-ANoOI1Qw.js → v4-CKwdnpQf.js} +8 -8
  70. package/package.json +1 -1
  71. package/dist/index-BxQr98LR.js +0 -1729
@@ -1,1729 +0,0 @@
1
- import { useCoreStore as Ie } from "@feedmepos/mf-common";
2
- function Pe(e, t) {
3
- return function() {
4
- return e.apply(t, arguments);
5
- };
6
- }
7
- var _e = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7812918b-8cd5-4711-89cd-61d2fe645c13", npm_package_devDependencies__types_node: "^20.12.5", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_config_user_agent: "pnpm/8.15.9 npm/? node/v20.18.3 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7812918b-8cd5-4711-89cd-61d2fe645c13", PIPX_HOME: "/opt/pipx", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_package_devDependencies_tsc_alias: "^1.8.10", npm_package_devDependencies_vite: "^5.2.11", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.3/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --build --force", npm_package_dependencies__feedmepos_mf_common: "^1.8.33", npm_package_devDependencies_npm_run_all2: "^6.1.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "708", npm_package_dependencies__feedmepos_ui_library: "^1.2.39", npm_package_dependencies_dotenv: "^16.4.5", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_tailwindcss: "^3.4.3", npm_package_devDependencies_typescript: "~5.4.0", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_vue_tsc: "^2.0.11", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250309.1.0", npm_package_scripts_dev: "vite --mode dev", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "vite --mode prod", npm_package_devDependencies__vue_tsconfig: "^0.5.1", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.0.25", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:5996", GITHUB_WORKFLOW: "[PROD] Publish Brand App Builder to NPM", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^9.0.8", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13852394105", STATS_VMFE: "true", npm_package_scripts_deploy_npm_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks --access public .", npm_package_dependencies_vue_sonner: "^1.1.4", GITHUB_REF_TYPE: "tag", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "18bf9168dffe5d0f042ec42df6c55ad2e5285075", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_scripts_deploy_npm_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks --access public .", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/brand-app/.github/workflows/brand-app-npm-prod.yml@refs/tags/builder-v0.5.12", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_d0542176-1cf0-494b-a015-eb7ccec14983", INVOCATION_ID: "247e2228ebbf44bfbc83b5b7364f8338", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.3/x64/bin/node", npm_package_name: "@feedmepos/mf-brand-app-builder", npm_package_dependencies__formkit_vue: "^1.6.7", npm_package_devDependencies__types_qrcode: "^1.5.5", GITHUB_ACTION: "__run_6", GITHUB_RUN_NUMBER: "22", GITHUB_TRIGGERING_ACTOR: "buxkaizhe", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^13.0.0", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 5", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "builder-v0.5.12", GITHUB_REPOSITORY: "feedmepos/brand-app", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && pnpm tsc-resolve", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false && pnpm tsc-resolve", npm_lifecycle_script: "vite build --mode fmmf:prod", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_devDependencies__vue_eslint_config_prettier: "^9.0.0", GITHUB_REPOSITORY_ID: "810874788", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/bin/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.5.12", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_devDependencies__rushstack_eslint_patch: "^1.8.0", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^9.0.1", GITHUB_WORKSPACE: "/home/runner/work/brand-app/brand-app", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "18bf9168dffe5d0f042ec42df6c55ad2e5285075", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_scripts_tsc_resolve: "tsc-alias --project tsconfig.app.json --outDir dist", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/tags/builder-v0.5.12", GITHUB_ACTOR: "buxkaizhe", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__formkit_core: "^1.6.7", npm_package_dependencies_qrcode: "^1.5.4", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_7812918b-8cd5-4711-89cd-61d2fe645c13", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/brand-app/brand-app/client/merchant", GITHUB_ACTOR_ID: "53389118", RUNNER_WORKSPACE: "/home/runner/work/brand-app", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_7812918b-8cd5-4711-89cd-61d2fe645c13", npm_package_exports___types: "./dist/merchant/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/brand-app/brand-app/client/merchant", npm_package_devDependencies_eslint_plugin_vue: "^9.23.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_7812918b-8cd5-4711-89cd-61d2fe645c13", INIT_CWD: "/home/runner/work/brand-app/brand-app/client/merchant", NODE_ENV: "production", VITE_MF_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", VITE_IMAGE_URL: "https://image.feedme.cc", VITE_PWA_ICON_SERVICE: "https://pwa-icon-service.feedmeapi.com", VITE_USER_URL: "https://{slug}.feedme.vip", VITE_MEMBER_URL: "https://{slug}.member.feedme.cc", VITE_BACKEND_URL: "https://api.feedme.vip", VITE_LICENSE_API_URL: "https://license.feedme.cc/api", LAUNCH_EDITOR: "code" } };
8
- const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, J = /* @__PURE__ */ ((e) => (t) => {
9
- const n = nt.call(t);
10
- return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
11
- })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => J(t) === e), X = (e) => (t) => typeof t === e, { isArray: B } = Array, F = X("undefined");
12
- function rt(e) {
13
- return e !== null && !F(e) && e.constructor !== null && !F(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14
- }
15
- const Ue = N("ArrayBuffer");
16
- function st(e) {
17
- let t;
18
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ue(e.buffer), t;
19
- }
20
- const ot = X("string"), A = X("function"), Ce = X("number"), $ = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, q = (e) => {
21
- if (J(e) !== "object")
22
- return !1;
23
- const t = le(e);
24
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
25
- }, at = N("Date"), ct = N("File"), ut = N("Blob"), lt = N("FileList"), pt = (e) => $(e) && A(e.pipe), dt = (e) => {
26
- let t;
27
- return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = J(e)) === "formdata" || // detect form-data instance
28
- t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
29
- }, ft = N("URLSearchParams"), [mt, _t, ht, bt] = ["ReadableStream", "Request", "Response", "Headers"].map(N), Et = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
30
- function M(e, t, { allOwnKeys: n = !1 } = {}) {
31
- if (e === null || typeof e > "u")
32
- return;
33
- let r, s;
34
- if (typeof e != "object" && (e = [e]), B(e))
35
- for (r = 0, s = e.length; r < s; r++)
36
- t.call(null, e[r], r, e);
37
- else {
38
- const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
39
- let c;
40
- for (r = 0; r < i; r++)
41
- c = o[r], t.call(null, e[c], c, e);
42
- }
43
- }
44
- function xe(e, t) {
45
- t = t.toLowerCase();
46
- const n = Object.keys(e);
47
- let r = n.length, s;
48
- for (; r-- > 0; )
49
- if (s = n[r], t === s.toLowerCase())
50
- return s;
51
- return null;
52
- }
53
- const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Be = (e) => !F(e) && e !== U;
54
- function se() {
55
- const { caseless: e } = Be(this) && this || {}, t = {}, n = (r, s) => {
56
- const o = e && xe(t, s) || s;
57
- q(t[o]) && q(r) ? t[o] = se(t[o], r) : q(r) ? t[o] = se({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
58
- };
59
- for (let r = 0, s = arguments.length; r < s; r++)
60
- arguments[r] && M(arguments[r], n);
61
- return t;
62
- }
63
- const Rt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
64
- n && A(s) ? e[o] = Pe(s, n) : e[o] = s;
65
- }, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), gt = (e, t, n, r) => {
66
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
67
- value: t.prototype
68
- }), n && Object.assign(e.prototype, n);
69
- }, yt = (e, t, n, r) => {
70
- let s, o, i;
71
- const c = {};
72
- if (t = t || {}, e == null) return t;
73
- do {
74
- for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
75
- i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
76
- e = n !== !1 && le(e);
77
- } while (e && (!n || n(e, t)) && e !== Object.prototype);
78
- return t;
79
- }, Ot = (e, t, n) => {
80
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
81
- const r = e.indexOf(t, n);
82
- return r !== -1 && r === n;
83
- }, St = (e) => {
84
- if (!e) return null;
85
- if (B(e)) return e;
86
- let t = e.length;
87
- if (!Ce(t)) return null;
88
- const n = new Array(t);
89
- for (; t-- > 0; )
90
- n[t] = e[t];
91
- return n;
92
- }, wt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && le(Uint8Array)), At = (e, t) => {
93
- const r = (e && e[Symbol.iterator]).call(e);
94
- let s;
95
- for (; (s = r.next()) && !s.done; ) {
96
- const o = s.value;
97
- t.call(e, o[0], o[1]);
98
- }
99
- }, Nt = (e, t) => {
100
- let n;
101
- const r = [];
102
- for (; (n = e.exec(t)) !== null; )
103
- r.push(n);
104
- return r;
105
- }, kt = N("HTMLFormElement"), Dt = (e) => e.toLowerCase().replace(
106
- /[-_\s]([a-z\d])(\w*)/g,
107
- function(n, r, s) {
108
- return r.toUpperCase() + s;
109
- }
110
- ), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), It = N("RegExp"), Le = (e, t) => {
111
- const n = Object.getOwnPropertyDescriptors(e), r = {};
112
- M(n, (s, o) => {
113
- let i;
114
- (i = t(s, o, e)) !== !1 && (r[o] = i || s);
115
- }), Object.defineProperties(e, r);
116
- }, Pt = (e) => {
117
- Le(e, (t, n) => {
118
- if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
119
- return !1;
120
- const r = e[n];
121
- if (A(r)) {
122
- if (t.enumerable = !1, "writable" in t) {
123
- t.writable = !1;
124
- return;
125
- }
126
- t.set || (t.set = () => {
127
- throw Error("Can not rewrite read-only method '" + n + "'");
128
- });
129
- }
130
- });
131
- }, Ut = (e, t) => {
132
- const n = {}, r = (s) => {
133
- s.forEach((o) => {
134
- n[o] = !0;
135
- });
136
- };
137
- return B(e) ? r(e) : r(String(e).split(t)), n;
138
- }, Ct = () => {
139
- }, xt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ee = "abcdefghijklmnopqrstuvwxyz", be = "0123456789", He = {
140
- DIGIT: be,
141
- ALPHA: ee,
142
- ALPHA_DIGIT: ee + ee.toUpperCase() + be
143
- }, Bt = (e = 16, t = He.ALPHA_DIGIT) => {
144
- let n = "";
145
- const { length: r } = t;
146
- for (; e--; )
147
- n += t[Math.random() * r | 0];
148
- return n;
149
- };
150
- function Lt(e) {
151
- return !!(e && A(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
152
- }
153
- const Ht = (e) => {
154
- const t = new Array(10), n = (r, s) => {
155
- if ($(r)) {
156
- if (t.indexOf(r) >= 0)
157
- return;
158
- if (!("toJSON" in r)) {
159
- t[s] = r;
160
- const o = B(r) ? [] : {};
161
- return M(r, (i, c) => {
162
- const p = n(i, s + 1);
163
- !F(p) && (o[c] = p);
164
- }), t[s] = void 0, o;
165
- }
166
- }
167
- return r;
168
- };
169
- return n(e, 0);
170
- }, vt = N("AsyncFunction"), Ft = (e) => e && ($(e) || A(e)) && A(e.then) && A(e.catch), ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
171
- s === U && o === n && r.length && r.shift()();
172
- }, !1), (s) => {
173
- r.push(s), U.postMessage(n, "*");
174
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
175
- typeof setImmediate == "function",
176
- A(U.postMessage)
177
- ), Mt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof _e < "u" && _e.nextTick || ve, a = {
178
- isArray: B,
179
- isArrayBuffer: Ue,
180
- isBuffer: rt,
181
- isFormData: dt,
182
- isArrayBufferView: st,
183
- isString: ot,
184
- isNumber: Ce,
185
- isBoolean: it,
186
- isObject: $,
187
- isPlainObject: q,
188
- isReadableStream: mt,
189
- isRequest: _t,
190
- isResponse: ht,
191
- isHeaders: bt,
192
- isUndefined: F,
193
- isDate: at,
194
- isFile: ct,
195
- isBlob: ut,
196
- isRegExp: It,
197
- isFunction: A,
198
- isStream: pt,
199
- isURLSearchParams: ft,
200
- isTypedArray: wt,
201
- isFileList: lt,
202
- forEach: M,
203
- merge: se,
204
- extend: Rt,
205
- trim: Et,
206
- stripBOM: Tt,
207
- inherits: gt,
208
- toFlatObject: yt,
209
- kindOf: J,
210
- kindOfTest: N,
211
- endsWith: Ot,
212
- toArray: St,
213
- forEachEntry: At,
214
- matchAll: Nt,
215
- isHTMLForm: kt,
216
- hasOwnProperty: he,
217
- hasOwnProp: he,
218
- // an alias to avoid ESLint no-prototype-builtins detection
219
- reduceDescriptors: Le,
220
- freezeMethods: Pt,
221
- toObjectSet: Ut,
222
- toCamelCase: Dt,
223
- noop: Ct,
224
- toFiniteNumber: xt,
225
- findKey: xe,
226
- global: U,
227
- isContextDefined: Be,
228
- ALPHABET: He,
229
- generateString: Bt,
230
- isSpecCompliantForm: Lt,
231
- toJSONObject: Ht,
232
- isAsyncFn: vt,
233
- isThenable: Ft,
234
- setImmediate: ve,
235
- asap: Mt
236
- };
237
- function _(e, t, n, r, s) {
238
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
239
- }
240
- a.inherits(_, Error, {
241
- toJSON: function() {
242
- return {
243
- // Standard
244
- message: this.message,
245
- name: this.name,
246
- // Microsoft
247
- description: this.description,
248
- number: this.number,
249
- // Mozilla
250
- fileName: this.fileName,
251
- lineNumber: this.lineNumber,
252
- columnNumber: this.columnNumber,
253
- stack: this.stack,
254
- // Axios
255
- config: a.toJSONObject(this.config),
256
- code: this.code,
257
- status: this.status
258
- };
259
- }
260
- });
261
- const Fe = _.prototype, Me = {};
262
- [
263
- "ERR_BAD_OPTION_VALUE",
264
- "ERR_BAD_OPTION",
265
- "ECONNABORTED",
266
- "ETIMEDOUT",
267
- "ERR_NETWORK",
268
- "ERR_FR_TOO_MANY_REDIRECTS",
269
- "ERR_DEPRECATED",
270
- "ERR_BAD_RESPONSE",
271
- "ERR_BAD_REQUEST",
272
- "ERR_CANCELED",
273
- "ERR_NOT_SUPPORT",
274
- "ERR_INVALID_URL"
275
- // eslint-disable-next-line func-names
276
- ].forEach((e) => {
277
- Me[e] = { value: e };
278
- });
279
- Object.defineProperties(_, Me);
280
- Object.defineProperty(Fe, "isAxiosError", { value: !0 });
281
- _.from = (e, t, n, r, s, o) => {
282
- const i = Object.create(Fe);
283
- return a.toFlatObject(e, i, function(p) {
284
- return p !== Error.prototype;
285
- }, (c) => c !== "isAxiosError"), _.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
286
- };
287
- const jt = null;
288
- function oe(e) {
289
- return a.isPlainObject(e) || a.isArray(e);
290
- }
291
- function je(e) {
292
- return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
293
- }
294
- function Ee(e, t, n) {
295
- return e ? e.concat(t).map(function(s, o) {
296
- return s = je(s), !n && o ? "[" + s + "]" : s;
297
- }).join(n ? "." : "") : t;
298
- }
299
- function Gt(e) {
300
- return a.isArray(e) && !e.some(oe);
301
- }
302
- const qt = a.toFlatObject(a, {}, null, function(t) {
303
- return /^is[A-Z]/.test(t);
304
- });
305
- function Y(e, t, n) {
306
- if (!a.isObject(e))
307
- throw new TypeError("target must be an object");
308
- t = t || new FormData(), n = a.toFlatObject(n, {
309
- metaTokens: !0,
310
- dots: !1,
311
- indexes: !1
312
- }, !1, function(h, m) {
313
- return !a.isUndefined(m[h]);
314
- });
315
- const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
316
- if (!a.isFunction(s))
317
- throw new TypeError("visitor must be a function");
318
- function u(f) {
319
- if (f === null) return "";
320
- if (a.isDate(f))
321
- return f.toISOString();
322
- if (!p && a.isBlob(f))
323
- throw new _("Blob is not supported. Use a Buffer instead.");
324
- return a.isArrayBuffer(f) || a.isTypedArray(f) ? p && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
325
- }
326
- function l(f, h, m) {
327
- let E = f;
328
- if (f && !m && typeof f == "object") {
329
- if (a.endsWith(h, "{}"))
330
- h = r ? h : h.slice(0, -2), f = JSON.stringify(f);
331
- else if (a.isArray(f) && Gt(f) || (a.isFileList(f) || a.endsWith(h, "[]")) && (E = a.toArray(f)))
332
- return h = je(h), E.forEach(function(y, D) {
333
- !(a.isUndefined(y) || y === null) && t.append(
334
- // eslint-disable-next-line no-nested-ternary
335
- i === !0 ? Ee([h], D, o) : i === null ? h : h + "[]",
336
- u(y)
337
- );
338
- }), !1;
339
- }
340
- return oe(f) ? !0 : (t.append(Ee(m, h, o), u(f)), !1);
341
- }
342
- const d = [], b = Object.assign(qt, {
343
- defaultVisitor: l,
344
- convertValue: u,
345
- isVisitable: oe
346
- });
347
- function T(f, h) {
348
- if (!a.isUndefined(f)) {
349
- if (d.indexOf(f) !== -1)
350
- throw Error("Circular reference detected in " + h.join("."));
351
- d.push(f), a.forEach(f, function(E, g) {
352
- (!(a.isUndefined(E) || E === null) && s.call(
353
- t,
354
- E,
355
- a.isString(g) ? g.trim() : g,
356
- h,
357
- b
358
- )) === !0 && T(E, h ? h.concat(g) : [g]);
359
- }), d.pop();
360
- }
361
- }
362
- if (!a.isObject(e))
363
- throw new TypeError("data must be an object");
364
- return T(e), t;
365
- }
366
- function Re(e) {
367
- const t = {
368
- "!": "%21",
369
- "'": "%27",
370
- "(": "%28",
371
- ")": "%29",
372
- "~": "%7E",
373
- "%20": "+",
374
- "%00": "\0"
375
- };
376
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
377
- return t[r];
378
- });
379
- }
380
- function pe(e, t) {
381
- this._pairs = [], e && Y(e, this, t);
382
- }
383
- const Ge = pe.prototype;
384
- Ge.append = function(t, n) {
385
- this._pairs.push([t, n]);
386
- };
387
- Ge.toString = function(t) {
388
- const n = t ? function(r) {
389
- return t.call(this, r, Re);
390
- } : Re;
391
- return this._pairs.map(function(s) {
392
- return n(s[0]) + "=" + n(s[1]);
393
- }, "").join("&");
394
- };
395
- function Vt(e) {
396
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
397
- }
398
- function qe(e, t, n) {
399
- if (!t)
400
- return e;
401
- const r = n && n.encode || Vt;
402
- a.isFunction(n) && (n = {
403
- serialize: n
404
- });
405
- const s = n && n.serialize;
406
- let o;
407
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new pe(t, n).toString(r), o) {
408
- const i = e.indexOf("#");
409
- i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
410
- }
411
- return e;
412
- }
413
- class Te {
414
- constructor() {
415
- this.handlers = [];
416
- }
417
- /**
418
- * Add a new interceptor to the stack
419
- *
420
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
421
- * @param {Function} rejected The function to handle `reject` for a `Promise`
422
- *
423
- * @return {Number} An ID used to remove interceptor later
424
- */
425
- use(t, n, r) {
426
- return this.handlers.push({
427
- fulfilled: t,
428
- rejected: n,
429
- synchronous: r ? r.synchronous : !1,
430
- runWhen: r ? r.runWhen : null
431
- }), this.handlers.length - 1;
432
- }
433
- /**
434
- * Remove an interceptor from the stack
435
- *
436
- * @param {Number} id The ID that was returned by `use`
437
- *
438
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
439
- */
440
- eject(t) {
441
- this.handlers[t] && (this.handlers[t] = null);
442
- }
443
- /**
444
- * Clear all interceptors from the stack
445
- *
446
- * @returns {void}
447
- */
448
- clear() {
449
- this.handlers && (this.handlers = []);
450
- }
451
- /**
452
- * Iterate over all the registered interceptors
453
- *
454
- * This method is particularly useful for skipping over any
455
- * interceptors that may have become `null` calling `eject`.
456
- *
457
- * @param {Function} fn The function to call for each interceptor
458
- *
459
- * @returns {void}
460
- */
461
- forEach(t) {
462
- a.forEach(this.handlers, function(r) {
463
- r !== null && t(r);
464
- });
465
- }
466
- }
467
- const Ve = {
468
- silentJSONParsing: !0,
469
- forcedJSONParsing: !0,
470
- clarifyTimeoutError: !1
471
- }, Wt = typeof URLSearchParams < "u" ? URLSearchParams : pe, zt = typeof FormData < "u" ? FormData : null, Kt = typeof Blob < "u" ? Blob : null, Jt = {
472
- isBrowser: !0,
473
- classes: {
474
- URLSearchParams: Wt,
475
- FormData: zt,
476
- Blob: Kt
477
- },
478
- protocols: ["http", "https", "file", "blob", "url", "data"]
479
- }, de = typeof window < "u" && typeof document < "u", ie = typeof navigator == "object" && navigator || void 0, Xt = de && (!ie || ["ReactNative", "NativeScript", "NS"].indexOf(ie.product) < 0), $t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
480
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Yt = de && window.location.href || "http://localhost", Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
481
- __proto__: null,
482
- hasBrowserEnv: de,
483
- hasStandardBrowserEnv: Xt,
484
- hasStandardBrowserWebWorkerEnv: $t,
485
- navigator: ie,
486
- origin: Yt
487
- }, Symbol.toStringTag, { value: "Module" })), O = {
488
- ...Zt,
489
- ...Jt
490
- };
491
- function Qt(e, t) {
492
- return Y(e, new O.classes.URLSearchParams(), Object.assign({
493
- visitor: function(n, r, s, o) {
494
- return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
495
- }
496
- }, t));
497
- }
498
- function en(e) {
499
- return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
500
- }
501
- function tn(e) {
502
- const t = {}, n = Object.keys(e);
503
- let r;
504
- const s = n.length;
505
- let o;
506
- for (r = 0; r < s; r++)
507
- o = n[r], t[o] = e[o];
508
- return t;
509
- }
510
- function We(e) {
511
- function t(n, r, s, o) {
512
- let i = n[o++];
513
- if (i === "__proto__") return !0;
514
- const c = Number.isFinite(+i), p = o >= n.length;
515
- return i = !i && a.isArray(s) ? s.length : i, p ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = tn(s[i])), !c);
516
- }
517
- if (a.isFormData(e) && a.isFunction(e.entries)) {
518
- const n = {};
519
- return a.forEachEntry(e, (r, s) => {
520
- t(en(r), s, n, 0);
521
- }), n;
522
- }
523
- return null;
524
- }
525
- function nn(e, t, n) {
526
- if (a.isString(e))
527
- try {
528
- return (t || JSON.parse)(e), a.trim(e);
529
- } catch (r) {
530
- if (r.name !== "SyntaxError")
531
- throw r;
532
- }
533
- return (n || JSON.stringify)(e);
534
- }
535
- const j = {
536
- transitional: Ve,
537
- adapter: ["xhr", "http", "fetch"],
538
- transformRequest: [function(t, n) {
539
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
540
- if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
541
- return s ? JSON.stringify(We(t)) : t;
542
- if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
543
- return t;
544
- if (a.isArrayBufferView(t))
545
- return t.buffer;
546
- if (a.isURLSearchParams(t))
547
- return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
548
- let c;
549
- if (o) {
550
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
551
- return Qt(t, this.formSerializer).toString();
552
- if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
553
- const p = this.env && this.env.FormData;
554
- return Y(
555
- c ? { "files[]": t } : t,
556
- p && new p(),
557
- this.formSerializer
558
- );
559
- }
560
- }
561
- return o || s ? (n.setContentType("application/json", !1), nn(t)) : t;
562
- }],
563
- transformResponse: [function(t) {
564
- const n = this.transitional || j.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
565
- if (a.isResponse(t) || a.isReadableStream(t))
566
- return t;
567
- if (t && a.isString(t) && (r && !this.responseType || s)) {
568
- const i = !(n && n.silentJSONParsing) && s;
569
- try {
570
- return JSON.parse(t);
571
- } catch (c) {
572
- if (i)
573
- throw c.name === "SyntaxError" ? _.from(c, _.ERR_BAD_RESPONSE, this, null, this.response) : c;
574
- }
575
- }
576
- return t;
577
- }],
578
- /**
579
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
580
- * timeout is not created.
581
- */
582
- timeout: 0,
583
- xsrfCookieName: "XSRF-TOKEN",
584
- xsrfHeaderName: "X-XSRF-TOKEN",
585
- maxContentLength: -1,
586
- maxBodyLength: -1,
587
- env: {
588
- FormData: O.classes.FormData,
589
- Blob: O.classes.Blob
590
- },
591
- validateStatus: function(t) {
592
- return t >= 200 && t < 300;
593
- },
594
- headers: {
595
- common: {
596
- Accept: "application/json, text/plain, */*",
597
- "Content-Type": void 0
598
- }
599
- }
600
- };
601
- a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
602
- j.headers[e] = {};
603
- });
604
- const rn = a.toObjectSet([
605
- "age",
606
- "authorization",
607
- "content-length",
608
- "content-type",
609
- "etag",
610
- "expires",
611
- "from",
612
- "host",
613
- "if-modified-since",
614
- "if-unmodified-since",
615
- "last-modified",
616
- "location",
617
- "max-forwards",
618
- "proxy-authorization",
619
- "referer",
620
- "retry-after",
621
- "user-agent"
622
- ]), sn = (e) => {
623
- const t = {};
624
- let n, r, s;
625
- return e && e.split(`
626
- `).forEach(function(i) {
627
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && rn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
628
- }), t;
629
- }, ge = Symbol("internals");
630
- function H(e) {
631
- return e && String(e).trim().toLowerCase();
632
- }
633
- function V(e) {
634
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
635
- }
636
- function on(e) {
637
- const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
638
- let r;
639
- for (; r = n.exec(e); )
640
- t[r[1]] = r[2];
641
- return t;
642
- }
643
- const an = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
644
- function te(e, t, n, r, s) {
645
- if (a.isFunction(r))
646
- return r.call(this, t, n);
647
- if (s && (t = n), !!a.isString(t)) {
648
- if (a.isString(r))
649
- return t.indexOf(r) !== -1;
650
- if (a.isRegExp(r))
651
- return r.test(t);
652
- }
653
- }
654
- function cn(e) {
655
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
656
- }
657
- function un(e, t) {
658
- const n = a.toCamelCase(" " + t);
659
- ["get", "set", "has"].forEach((r) => {
660
- Object.defineProperty(e, r + n, {
661
- value: function(s, o, i) {
662
- return this[r].call(this, t, s, o, i);
663
- },
664
- configurable: !0
665
- });
666
- });
667
- }
668
- class w {
669
- constructor(t) {
670
- t && this.set(t);
671
- }
672
- set(t, n, r) {
673
- const s = this;
674
- function o(c, p, u) {
675
- const l = H(p);
676
- if (!l)
677
- throw new Error("header name must be a non-empty string");
678
- const d = a.findKey(s, l);
679
- (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || p] = V(c));
680
- }
681
- const i = (c, p) => a.forEach(c, (u, l) => o(u, l, p));
682
- if (a.isPlainObject(t) || t instanceof this.constructor)
683
- i(t, n);
684
- else if (a.isString(t) && (t = t.trim()) && !an(t))
685
- i(sn(t), n);
686
- else if (a.isHeaders(t))
687
- for (const [c, p] of t.entries())
688
- o(p, c, r);
689
- else
690
- t != null && o(n, t, r);
691
- return this;
692
- }
693
- get(t, n) {
694
- if (t = H(t), t) {
695
- const r = a.findKey(this, t);
696
- if (r) {
697
- const s = this[r];
698
- if (!n)
699
- return s;
700
- if (n === !0)
701
- return on(s);
702
- if (a.isFunction(n))
703
- return n.call(this, s, r);
704
- if (a.isRegExp(n))
705
- return n.exec(s);
706
- throw new TypeError("parser must be boolean|regexp|function");
707
- }
708
- }
709
- }
710
- has(t, n) {
711
- if (t = H(t), t) {
712
- const r = a.findKey(this, t);
713
- return !!(r && this[r] !== void 0 && (!n || te(this, this[r], r, n)));
714
- }
715
- return !1;
716
- }
717
- delete(t, n) {
718
- const r = this;
719
- let s = !1;
720
- function o(i) {
721
- if (i = H(i), i) {
722
- const c = a.findKey(r, i);
723
- c && (!n || te(r, r[c], c, n)) && (delete r[c], s = !0);
724
- }
725
- }
726
- return a.isArray(t) ? t.forEach(o) : o(t), s;
727
- }
728
- clear(t) {
729
- const n = Object.keys(this);
730
- let r = n.length, s = !1;
731
- for (; r--; ) {
732
- const o = n[r];
733
- (!t || te(this, this[o], o, t, !0)) && (delete this[o], s = !0);
734
- }
735
- return s;
736
- }
737
- normalize(t) {
738
- const n = this, r = {};
739
- return a.forEach(this, (s, o) => {
740
- const i = a.findKey(r, o);
741
- if (i) {
742
- n[i] = V(s), delete n[o];
743
- return;
744
- }
745
- const c = t ? cn(o) : String(o).trim();
746
- c !== o && delete n[o], n[c] = V(s), r[c] = !0;
747
- }), this;
748
- }
749
- concat(...t) {
750
- return this.constructor.concat(this, ...t);
751
- }
752
- toJSON(t) {
753
- const n = /* @__PURE__ */ Object.create(null);
754
- return a.forEach(this, (r, s) => {
755
- r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
756
- }), n;
757
- }
758
- [Symbol.iterator]() {
759
- return Object.entries(this.toJSON())[Symbol.iterator]();
760
- }
761
- toString() {
762
- return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
763
- `);
764
- }
765
- get [Symbol.toStringTag]() {
766
- return "AxiosHeaders";
767
- }
768
- static from(t) {
769
- return t instanceof this ? t : new this(t);
770
- }
771
- static concat(t, ...n) {
772
- const r = new this(t);
773
- return n.forEach((s) => r.set(s)), r;
774
- }
775
- static accessor(t) {
776
- const r = (this[ge] = this[ge] = {
777
- accessors: {}
778
- }).accessors, s = this.prototype;
779
- function o(i) {
780
- const c = H(i);
781
- r[c] || (un(s, i), r[c] = !0);
782
- }
783
- return a.isArray(t) ? t.forEach(o) : o(t), this;
784
- }
785
- }
786
- w.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
787
- a.reduceDescriptors(w.prototype, ({ value: e }, t) => {
788
- let n = t[0].toUpperCase() + t.slice(1);
789
- return {
790
- get: () => e,
791
- set(r) {
792
- this[n] = r;
793
- }
794
- };
795
- });
796
- a.freezeMethods(w);
797
- function ne(e, t) {
798
- const n = this || j, r = t || n, s = w.from(r.headers);
799
- let o = r.data;
800
- return a.forEach(e, function(c) {
801
- o = c.call(n, o, s.normalize(), t ? t.status : void 0);
802
- }), s.normalize(), o;
803
- }
804
- function ze(e) {
805
- return !!(e && e.__CANCEL__);
806
- }
807
- function L(e, t, n) {
808
- _.call(this, e ?? "canceled", _.ERR_CANCELED, t, n), this.name = "CanceledError";
809
- }
810
- a.inherits(L, _, {
811
- __CANCEL__: !0
812
- });
813
- function Ke(e, t, n) {
814
- const r = n.config.validateStatus;
815
- !n.status || !r || r(n.status) ? e(n) : t(new _(
816
- "Request failed with status code " + n.status,
817
- [_.ERR_BAD_REQUEST, _.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
818
- n.config,
819
- n.request,
820
- n
821
- ));
822
- }
823
- function ln(e) {
824
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
825
- return t && t[1] || "";
826
- }
827
- function pn(e, t) {
828
- e = e || 10;
829
- const n = new Array(e), r = new Array(e);
830
- let s = 0, o = 0, i;
831
- return t = t !== void 0 ? t : 1e3, function(p) {
832
- const u = Date.now(), l = r[o];
833
- i || (i = u), n[s] = p, r[s] = u;
834
- let d = o, b = 0;
835
- for (; d !== s; )
836
- b += n[d++], d = d % e;
837
- if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
838
- return;
839
- const T = l && u - l;
840
- return T ? Math.round(b * 1e3 / T) : void 0;
841
- };
842
- }
843
- function dn(e, t) {
844
- let n = 0, r = 1e3 / t, s, o;
845
- const i = (u, l = Date.now()) => {
846
- n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
847
- };
848
- return [(...u) => {
849
- const l = Date.now(), d = l - n;
850
- d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
851
- o = null, i(s);
852
- }, r - d)));
853
- }, () => s && i(s)];
854
- }
855
- const z = (e, t, n = 3) => {
856
- let r = 0;
857
- const s = pn(50, 250);
858
- return dn((o) => {
859
- const i = o.loaded, c = o.lengthComputable ? o.total : void 0, p = i - r, u = s(p), l = i <= c;
860
- r = i;
861
- const d = {
862
- loaded: i,
863
- total: c,
864
- progress: c ? i / c : void 0,
865
- bytes: p,
866
- rate: u || void 0,
867
- estimated: u && c && l ? (c - i) / u : void 0,
868
- event: o,
869
- lengthComputable: c != null,
870
- [t ? "download" : "upload"]: !0
871
- };
872
- e(d);
873
- }, n);
874
- }, ye = (e, t) => {
875
- const n = e != null;
876
- return [(r) => t[0]({
877
- lengthComputable: n,
878
- total: e,
879
- loaded: r
880
- }), t[1]];
881
- }, Oe = (e) => (...t) => a.asap(() => e(...t)), fn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
882
- new URL(O.origin),
883
- O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
884
- ) : () => !0, mn = O.hasStandardBrowserEnv ? (
885
- // Standard browser envs support document.cookie
886
- {
887
- write(e, t, n, r, s, o) {
888
- const i = [e + "=" + encodeURIComponent(t)];
889
- a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
890
- },
891
- read(e) {
892
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
893
- return t ? decodeURIComponent(t[3]) : null;
894
- },
895
- remove(e) {
896
- this.write(e, "", Date.now() - 864e5);
897
- }
898
- }
899
- ) : (
900
- // Non-standard browser env (web workers, react-native) lack needed support.
901
- {
902
- write() {
903
- },
904
- read() {
905
- return null;
906
- },
907
- remove() {
908
- }
909
- }
910
- );
911
- function _n(e) {
912
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
913
- }
914
- function hn(e, t) {
915
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
916
- }
917
- function Je(e, t) {
918
- return e && !_n(t) ? hn(e, t) : t;
919
- }
920
- const Se = (e) => e instanceof w ? { ...e } : e;
921
- function x(e, t) {
922
- t = t || {};
923
- const n = {};
924
- function r(u, l, d, b) {
925
- return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: b }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
926
- }
927
- function s(u, l, d, b) {
928
- if (a.isUndefined(l)) {
929
- if (!a.isUndefined(u))
930
- return r(void 0, u, d, b);
931
- } else return r(u, l, d, b);
932
- }
933
- function o(u, l) {
934
- if (!a.isUndefined(l))
935
- return r(void 0, l);
936
- }
937
- function i(u, l) {
938
- if (a.isUndefined(l)) {
939
- if (!a.isUndefined(u))
940
- return r(void 0, u);
941
- } else return r(void 0, l);
942
- }
943
- function c(u, l, d) {
944
- if (d in t)
945
- return r(u, l);
946
- if (d in e)
947
- return r(void 0, u);
948
- }
949
- const p = {
950
- url: o,
951
- method: o,
952
- data: o,
953
- baseURL: i,
954
- transformRequest: i,
955
- transformResponse: i,
956
- paramsSerializer: i,
957
- timeout: i,
958
- timeoutMessage: i,
959
- withCredentials: i,
960
- withXSRFToken: i,
961
- adapter: i,
962
- responseType: i,
963
- xsrfCookieName: i,
964
- xsrfHeaderName: i,
965
- onUploadProgress: i,
966
- onDownloadProgress: i,
967
- decompress: i,
968
- maxContentLength: i,
969
- maxBodyLength: i,
970
- beforeRedirect: i,
971
- transport: i,
972
- httpAgent: i,
973
- httpsAgent: i,
974
- cancelToken: i,
975
- socketPath: i,
976
- responseEncoding: i,
977
- validateStatus: c,
978
- headers: (u, l, d) => s(Se(u), Se(l), d, !0)
979
- };
980
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
981
- const d = p[l] || s, b = d(e[l], t[l], l);
982
- a.isUndefined(b) && d !== c || (n[l] = b);
983
- }), n;
984
- }
985
- const Xe = (e) => {
986
- const t = x({}, e);
987
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
988
- t.headers = i = w.from(i), t.url = qe(Je(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
989
- "Authorization",
990
- "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
991
- );
992
- let p;
993
- if (a.isFormData(n)) {
994
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
995
- i.setContentType(void 0);
996
- else if ((p = i.getContentType()) !== !1) {
997
- const [u, ...l] = p ? p.split(";").map((d) => d.trim()).filter(Boolean) : [];
998
- i.setContentType([u || "multipart/form-data", ...l].join("; "));
999
- }
1000
- }
1001
- if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && fn(t.url))) {
1002
- const u = s && o && mn.read(o);
1003
- u && i.set(s, u);
1004
- }
1005
- return t;
1006
- }, bn = typeof XMLHttpRequest < "u", En = bn && function(e) {
1007
- return new Promise(function(n, r) {
1008
- const s = Xe(e);
1009
- let o = s.data;
1010
- const i = w.from(s.headers).normalize();
1011
- let { responseType: c, onUploadProgress: p, onDownloadProgress: u } = s, l, d, b, T, f;
1012
- function h() {
1013
- T && T(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1014
- }
1015
- let m = new XMLHttpRequest();
1016
- m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
1017
- function E() {
1018
- if (!m)
1019
- return;
1020
- const y = w.from(
1021
- "getAllResponseHeaders" in m && m.getAllResponseHeaders()
1022
- ), S = {
1023
- data: !c || c === "text" || c === "json" ? m.responseText : m.response,
1024
- status: m.status,
1025
- statusText: m.statusText,
1026
- headers: y,
1027
- config: e,
1028
- request: m
1029
- };
1030
- Ke(function(P) {
1031
- n(P), h();
1032
- }, function(P) {
1033
- r(P), h();
1034
- }, S), m = null;
1035
- }
1036
- "onloadend" in m ? m.onloadend = E : m.onreadystatechange = function() {
1037
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(E);
1038
- }, m.onabort = function() {
1039
- m && (r(new _("Request aborted", _.ECONNABORTED, e, m)), m = null);
1040
- }, m.onerror = function() {
1041
- r(new _("Network Error", _.ERR_NETWORK, e, m)), m = null;
1042
- }, m.ontimeout = function() {
1043
- let D = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1044
- const S = s.transitional || Ve;
1045
- s.timeoutErrorMessage && (D = s.timeoutErrorMessage), r(new _(
1046
- D,
1047
- S.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
1048
- e,
1049
- m
1050
- )), m = null;
1051
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(D, S) {
1052
- m.setRequestHeader(S, D);
1053
- }), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), u && ([b, f] = z(u, !0), m.addEventListener("progress", b)), p && m.upload && ([d, T] = z(p), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (l = (y) => {
1054
- m && (r(!y || y.type ? new L(null, e, m) : y), m.abort(), m = null);
1055
- }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1056
- const g = ln(s.url);
1057
- if (g && O.protocols.indexOf(g) === -1) {
1058
- r(new _("Unsupported protocol " + g + ":", _.ERR_BAD_REQUEST, e));
1059
- return;
1060
- }
1061
- m.send(o || null);
1062
- });
1063
- }, Rn = (e, t) => {
1064
- const { length: n } = e = e ? e.filter(Boolean) : [];
1065
- if (t || n) {
1066
- let r = new AbortController(), s;
1067
- const o = function(u) {
1068
- if (!s) {
1069
- s = !0, c();
1070
- const l = u instanceof Error ? u : this.reason;
1071
- r.abort(l instanceof _ ? l : new L(l instanceof Error ? l.message : l));
1072
- }
1073
- };
1074
- let i = t && setTimeout(() => {
1075
- i = null, o(new _(`timeout ${t} of ms exceeded`, _.ETIMEDOUT));
1076
- }, t);
1077
- const c = () => {
1078
- e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1079
- u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1080
- }), e = null);
1081
- };
1082
- e.forEach((u) => u.addEventListener("abort", o));
1083
- const { signal: p } = r;
1084
- return p.unsubscribe = () => a.asap(c), p;
1085
- }
1086
- }, Tn = function* (e, t) {
1087
- let n = e.byteLength;
1088
- if (n < t) {
1089
- yield e;
1090
- return;
1091
- }
1092
- let r = 0, s;
1093
- for (; r < n; )
1094
- s = r + t, yield e.slice(r, s), r = s;
1095
- }, gn = async function* (e, t) {
1096
- for await (const n of yn(e))
1097
- yield* Tn(n, t);
1098
- }, yn = async function* (e) {
1099
- if (e[Symbol.asyncIterator]) {
1100
- yield* e;
1101
- return;
1102
- }
1103
- const t = e.getReader();
1104
- try {
1105
- for (; ; ) {
1106
- const { done: n, value: r } = await t.read();
1107
- if (n)
1108
- break;
1109
- yield r;
1110
- }
1111
- } finally {
1112
- await t.cancel();
1113
- }
1114
- }, we = (e, t, n, r) => {
1115
- const s = gn(e, t);
1116
- let o = 0, i, c = (p) => {
1117
- i || (i = !0, r && r(p));
1118
- };
1119
- return new ReadableStream({
1120
- async pull(p) {
1121
- try {
1122
- const { done: u, value: l } = await s.next();
1123
- if (u) {
1124
- c(), p.close();
1125
- return;
1126
- }
1127
- let d = l.byteLength;
1128
- if (n) {
1129
- let b = o += d;
1130
- n(b);
1131
- }
1132
- p.enqueue(new Uint8Array(l));
1133
- } catch (u) {
1134
- throw c(u), u;
1135
- }
1136
- },
1137
- cancel(p) {
1138
- return c(p), s.return();
1139
- }
1140
- }, {
1141
- highWaterMark: 2
1142
- });
1143
- }, Z = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", $e = Z && typeof ReadableStream == "function", On = Z && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ye = (e, ...t) => {
1144
- try {
1145
- return !!e(...t);
1146
- } catch {
1147
- return !1;
1148
- }
1149
- }, Sn = $e && Ye(() => {
1150
- let e = !1;
1151
- const t = new Request(O.origin, {
1152
- body: new ReadableStream(),
1153
- method: "POST",
1154
- get duplex() {
1155
- return e = !0, "half";
1156
- }
1157
- }).headers.has("Content-Type");
1158
- return e && !t;
1159
- }), Ae = 64 * 1024, ae = $e && Ye(() => a.isReadableStream(new Response("").body)), K = {
1160
- stream: ae && ((e) => e.body)
1161
- };
1162
- Z && ((e) => {
1163
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1164
- !K[t] && (K[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1165
- throw new _(`Response type '${t}' is not supported`, _.ERR_NOT_SUPPORT, r);
1166
- });
1167
- });
1168
- })(new Response());
1169
- const wn = async (e) => {
1170
- if (e == null)
1171
- return 0;
1172
- if (a.isBlob(e))
1173
- return e.size;
1174
- if (a.isSpecCompliantForm(e))
1175
- return (await new Request(O.origin, {
1176
- method: "POST",
1177
- body: e
1178
- }).arrayBuffer()).byteLength;
1179
- if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1180
- return e.byteLength;
1181
- if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1182
- return (await On(e)).byteLength;
1183
- }, An = async (e, t) => {
1184
- const n = a.toFiniteNumber(e.getContentLength());
1185
- return n ?? wn(t);
1186
- }, Nn = Z && (async (e) => {
1187
- let {
1188
- url: t,
1189
- method: n,
1190
- data: r,
1191
- signal: s,
1192
- cancelToken: o,
1193
- timeout: i,
1194
- onDownloadProgress: c,
1195
- onUploadProgress: p,
1196
- responseType: u,
1197
- headers: l,
1198
- withCredentials: d = "same-origin",
1199
- fetchOptions: b
1200
- } = Xe(e);
1201
- u = u ? (u + "").toLowerCase() : "text";
1202
- let T = Rn([s, o && o.toAbortSignal()], i), f;
1203
- const h = T && T.unsubscribe && (() => {
1204
- T.unsubscribe();
1205
- });
1206
- let m;
1207
- try {
1208
- if (p && Sn && n !== "get" && n !== "head" && (m = await An(l, r)) !== 0) {
1209
- let S = new Request(t, {
1210
- method: "POST",
1211
- body: r,
1212
- duplex: "half"
1213
- }), I;
1214
- if (a.isFormData(r) && (I = S.headers.get("content-type")) && l.setContentType(I), S.body) {
1215
- const [P, G] = ye(
1216
- m,
1217
- z(Oe(p))
1218
- );
1219
- r = we(S.body, Ae, P, G);
1220
- }
1221
- }
1222
- a.isString(d) || (d = d ? "include" : "omit");
1223
- const E = "credentials" in Request.prototype;
1224
- f = new Request(t, {
1225
- ...b,
1226
- signal: T,
1227
- method: n.toUpperCase(),
1228
- headers: l.normalize().toJSON(),
1229
- body: r,
1230
- duplex: "half",
1231
- credentials: E ? d : void 0
1232
- });
1233
- let g = await fetch(f);
1234
- const y = ae && (u === "stream" || u === "response");
1235
- if (ae && (c || y && h)) {
1236
- const S = {};
1237
- ["status", "statusText", "headers"].forEach((me) => {
1238
- S[me] = g[me];
1239
- });
1240
- const I = a.toFiniteNumber(g.headers.get("content-length")), [P, G] = c && ye(
1241
- I,
1242
- z(Oe(c), !0)
1243
- ) || [];
1244
- g = new Response(
1245
- we(g.body, Ae, P, () => {
1246
- G && G(), h && h();
1247
- }),
1248
- S
1249
- );
1250
- }
1251
- u = u || "text";
1252
- let D = await K[a.findKey(K, u) || "text"](g, e);
1253
- return !y && h && h(), await new Promise((S, I) => {
1254
- Ke(S, I, {
1255
- data: D,
1256
- headers: w.from(g.headers),
1257
- status: g.status,
1258
- statusText: g.statusText,
1259
- config: e,
1260
- request: f
1261
- });
1262
- });
1263
- } catch (E) {
1264
- throw h && h(), E && E.name === "TypeError" && /fetch/i.test(E.message) ? Object.assign(
1265
- new _("Network Error", _.ERR_NETWORK, e, f),
1266
- {
1267
- cause: E.cause || E
1268
- }
1269
- ) : _.from(E, E && E.code, e, f);
1270
- }
1271
- }), ce = {
1272
- http: jt,
1273
- xhr: En,
1274
- fetch: Nn
1275
- };
1276
- a.forEach(ce, (e, t) => {
1277
- if (e) {
1278
- try {
1279
- Object.defineProperty(e, "name", { value: t });
1280
- } catch {
1281
- }
1282
- Object.defineProperty(e, "adapterName", { value: t });
1283
- }
1284
- });
1285
- const Ne = (e) => `- ${e}`, kn = (e) => a.isFunction(e) || e === null || e === !1, Ze = {
1286
- getAdapter: (e) => {
1287
- e = a.isArray(e) ? e : [e];
1288
- const { length: t } = e;
1289
- let n, r;
1290
- const s = {};
1291
- for (let o = 0; o < t; o++) {
1292
- n = e[o];
1293
- let i;
1294
- if (r = n, !kn(n) && (r = ce[(i = String(n)).toLowerCase()], r === void 0))
1295
- throw new _(`Unknown adapter '${i}'`);
1296
- if (r)
1297
- break;
1298
- s[i || "#" + o] = r;
1299
- }
1300
- if (!r) {
1301
- const o = Object.entries(s).map(
1302
- ([c, p]) => `adapter ${c} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1303
- );
1304
- let i = t ? o.length > 1 ? `since :
1305
- ` + o.map(Ne).join(`
1306
- `) : " " + Ne(o[0]) : "as no adapter specified";
1307
- throw new _(
1308
- "There is no suitable adapter to dispatch the request " + i,
1309
- "ERR_NOT_SUPPORT"
1310
- );
1311
- }
1312
- return r;
1313
- },
1314
- adapters: ce
1315
- };
1316
- function re(e) {
1317
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1318
- throw new L(null, e);
1319
- }
1320
- function ke(e) {
1321
- return re(e), e.headers = w.from(e.headers), e.data = ne.call(
1322
- e,
1323
- e.transformRequest
1324
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ze.getAdapter(e.adapter || j.adapter)(e).then(function(r) {
1325
- return re(e), r.data = ne.call(
1326
- e,
1327
- e.transformResponse,
1328
- r
1329
- ), r.headers = w.from(r.headers), r;
1330
- }, function(r) {
1331
- return ze(r) || (re(e), r && r.response && (r.response.data = ne.call(
1332
- e,
1333
- e.transformResponse,
1334
- r.response
1335
- ), r.response.headers = w.from(r.response.headers))), Promise.reject(r);
1336
- });
1337
- }
1338
- const Qe = "1.7.8", Q = {};
1339
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1340
- Q[e] = function(r) {
1341
- return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1342
- };
1343
- });
1344
- const De = {};
1345
- Q.transitional = function(t, n, r) {
1346
- function s(o, i) {
1347
- return "[Axios v" + Qe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1348
- }
1349
- return (o, i, c) => {
1350
- if (t === !1)
1351
- throw new _(
1352
- s(i, " has been removed" + (n ? " in " + n : "")),
1353
- _.ERR_DEPRECATED
1354
- );
1355
- return n && !De[i] && (De[i] = !0, console.warn(
1356
- s(
1357
- i,
1358
- " has been deprecated since v" + n + " and will be removed in the near future"
1359
- )
1360
- )), t ? t(o, i, c) : !0;
1361
- };
1362
- };
1363
- Q.spelling = function(t) {
1364
- return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1365
- };
1366
- function Dn(e, t, n) {
1367
- if (typeof e != "object")
1368
- throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
1369
- const r = Object.keys(e);
1370
- let s = r.length;
1371
- for (; s-- > 0; ) {
1372
- const o = r[s], i = t[o];
1373
- if (i) {
1374
- const c = e[o], p = c === void 0 || i(c, o, e);
1375
- if (p !== !0)
1376
- throw new _("option " + o + " must be " + p, _.ERR_BAD_OPTION_VALUE);
1377
- continue;
1378
- }
1379
- if (n !== !0)
1380
- throw new _("Unknown option " + o, _.ERR_BAD_OPTION);
1381
- }
1382
- }
1383
- const W = {
1384
- assertOptions: Dn,
1385
- validators: Q
1386
- }, k = W.validators;
1387
- class C {
1388
- constructor(t) {
1389
- this.defaults = t, this.interceptors = {
1390
- request: new Te(),
1391
- response: new Te()
1392
- };
1393
- }
1394
- /**
1395
- * Dispatch a request
1396
- *
1397
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1398
- * @param {?Object} config
1399
- *
1400
- * @returns {Promise} The Promise to be fulfilled
1401
- */
1402
- async request(t, n) {
1403
- try {
1404
- return await this._request(t, n);
1405
- } catch (r) {
1406
- if (r instanceof Error) {
1407
- let s = {};
1408
- Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1409
- const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1410
- try {
1411
- r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1412
- ` + o) : r.stack = o;
1413
- } catch {
1414
- }
1415
- }
1416
- throw r;
1417
- }
1418
- }
1419
- _request(t, n) {
1420
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = x(this.defaults, n);
1421
- const { transitional: r, paramsSerializer: s, headers: o } = n;
1422
- r !== void 0 && W.assertOptions(r, {
1423
- silentJSONParsing: k.transitional(k.boolean),
1424
- forcedJSONParsing: k.transitional(k.boolean),
1425
- clarifyTimeoutError: k.transitional(k.boolean)
1426
- }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1427
- serialize: s
1428
- } : W.assertOptions(s, {
1429
- encode: k.function,
1430
- serialize: k.function
1431
- }, !0)), W.assertOptions(n, {
1432
- baseUrl: k.spelling("baseURL"),
1433
- withXsrfToken: k.spelling("withXSRFToken")
1434
- }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1435
- let i = o && a.merge(
1436
- o.common,
1437
- o[n.method]
1438
- );
1439
- o && a.forEach(
1440
- ["delete", "get", "head", "post", "put", "patch", "common"],
1441
- (f) => {
1442
- delete o[f];
1443
- }
1444
- ), n.headers = w.concat(i, o);
1445
- const c = [];
1446
- let p = !0;
1447
- this.interceptors.request.forEach(function(h) {
1448
- typeof h.runWhen == "function" && h.runWhen(n) === !1 || (p = p && h.synchronous, c.unshift(h.fulfilled, h.rejected));
1449
- });
1450
- const u = [];
1451
- this.interceptors.response.forEach(function(h) {
1452
- u.push(h.fulfilled, h.rejected);
1453
- });
1454
- let l, d = 0, b;
1455
- if (!p) {
1456
- const f = [ke.bind(this), void 0];
1457
- for (f.unshift.apply(f, c), f.push.apply(f, u), b = f.length, l = Promise.resolve(n); d < b; )
1458
- l = l.then(f[d++], f[d++]);
1459
- return l;
1460
- }
1461
- b = c.length;
1462
- let T = n;
1463
- for (d = 0; d < b; ) {
1464
- const f = c[d++], h = c[d++];
1465
- try {
1466
- T = f(T);
1467
- } catch (m) {
1468
- h.call(this, m);
1469
- break;
1470
- }
1471
- }
1472
- try {
1473
- l = ke.call(this, T);
1474
- } catch (f) {
1475
- return Promise.reject(f);
1476
- }
1477
- for (d = 0, b = u.length; d < b; )
1478
- l = l.then(u[d++], u[d++]);
1479
- return l;
1480
- }
1481
- getUri(t) {
1482
- t = x(this.defaults, t);
1483
- const n = Je(t.baseURL, t.url);
1484
- return qe(n, t.params, t.paramsSerializer);
1485
- }
1486
- }
1487
- a.forEach(["delete", "get", "head", "options"], function(t) {
1488
- C.prototype[t] = function(n, r) {
1489
- return this.request(x(r || {}, {
1490
- method: t,
1491
- url: n,
1492
- data: (r || {}).data
1493
- }));
1494
- };
1495
- });
1496
- a.forEach(["post", "put", "patch"], function(t) {
1497
- function n(r) {
1498
- return function(o, i, c) {
1499
- return this.request(x(c || {}, {
1500
- method: t,
1501
- headers: r ? {
1502
- "Content-Type": "multipart/form-data"
1503
- } : {},
1504
- url: o,
1505
- data: i
1506
- }));
1507
- };
1508
- }
1509
- C.prototype[t] = n(), C.prototype[t + "Form"] = n(!0);
1510
- });
1511
- class fe {
1512
- constructor(t) {
1513
- if (typeof t != "function")
1514
- throw new TypeError("executor must be a function.");
1515
- let n;
1516
- this.promise = new Promise(function(o) {
1517
- n = o;
1518
- });
1519
- const r = this;
1520
- this.promise.then((s) => {
1521
- if (!r._listeners) return;
1522
- let o = r._listeners.length;
1523
- for (; o-- > 0; )
1524
- r._listeners[o](s);
1525
- r._listeners = null;
1526
- }), this.promise.then = (s) => {
1527
- let o;
1528
- const i = new Promise((c) => {
1529
- r.subscribe(c), o = c;
1530
- }).then(s);
1531
- return i.cancel = function() {
1532
- r.unsubscribe(o);
1533
- }, i;
1534
- }, t(function(o, i, c) {
1535
- r.reason || (r.reason = new L(o, i, c), n(r.reason));
1536
- });
1537
- }
1538
- /**
1539
- * Throws a `CanceledError` if cancellation has been requested.
1540
- */
1541
- throwIfRequested() {
1542
- if (this.reason)
1543
- throw this.reason;
1544
- }
1545
- /**
1546
- * Subscribe to the cancel signal
1547
- */
1548
- subscribe(t) {
1549
- if (this.reason) {
1550
- t(this.reason);
1551
- return;
1552
- }
1553
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
1554
- }
1555
- /**
1556
- * Unsubscribe from the cancel signal
1557
- */
1558
- unsubscribe(t) {
1559
- if (!this._listeners)
1560
- return;
1561
- const n = this._listeners.indexOf(t);
1562
- n !== -1 && this._listeners.splice(n, 1);
1563
- }
1564
- toAbortSignal() {
1565
- const t = new AbortController(), n = (r) => {
1566
- t.abort(r);
1567
- };
1568
- return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1569
- }
1570
- /**
1571
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1572
- * cancels the `CancelToken`.
1573
- */
1574
- static source() {
1575
- let t;
1576
- return {
1577
- token: new fe(function(s) {
1578
- t = s;
1579
- }),
1580
- cancel: t
1581
- };
1582
- }
1583
- }
1584
- function In(e) {
1585
- return function(n) {
1586
- return e.apply(null, n);
1587
- };
1588
- }
1589
- function Pn(e) {
1590
- return a.isObject(e) && e.isAxiosError === !0;
1591
- }
1592
- const ue = {
1593
- Continue: 100,
1594
- SwitchingProtocols: 101,
1595
- Processing: 102,
1596
- EarlyHints: 103,
1597
- Ok: 200,
1598
- Created: 201,
1599
- Accepted: 202,
1600
- NonAuthoritativeInformation: 203,
1601
- NoContent: 204,
1602
- ResetContent: 205,
1603
- PartialContent: 206,
1604
- MultiStatus: 207,
1605
- AlreadyReported: 208,
1606
- ImUsed: 226,
1607
- MultipleChoices: 300,
1608
- MovedPermanently: 301,
1609
- Found: 302,
1610
- SeeOther: 303,
1611
- NotModified: 304,
1612
- UseProxy: 305,
1613
- Unused: 306,
1614
- TemporaryRedirect: 307,
1615
- PermanentRedirect: 308,
1616
- BadRequest: 400,
1617
- Unauthorized: 401,
1618
- PaymentRequired: 402,
1619
- Forbidden: 403,
1620
- NotFound: 404,
1621
- MethodNotAllowed: 405,
1622
- NotAcceptable: 406,
1623
- ProxyAuthenticationRequired: 407,
1624
- RequestTimeout: 408,
1625
- Conflict: 409,
1626
- Gone: 410,
1627
- LengthRequired: 411,
1628
- PreconditionFailed: 412,
1629
- PayloadTooLarge: 413,
1630
- UriTooLong: 414,
1631
- UnsupportedMediaType: 415,
1632
- RangeNotSatisfiable: 416,
1633
- ExpectationFailed: 417,
1634
- ImATeapot: 418,
1635
- MisdirectedRequest: 421,
1636
- UnprocessableEntity: 422,
1637
- Locked: 423,
1638
- FailedDependency: 424,
1639
- TooEarly: 425,
1640
- UpgradeRequired: 426,
1641
- PreconditionRequired: 428,
1642
- TooManyRequests: 429,
1643
- RequestHeaderFieldsTooLarge: 431,
1644
- UnavailableForLegalReasons: 451,
1645
- InternalServerError: 500,
1646
- NotImplemented: 501,
1647
- BadGateway: 502,
1648
- ServiceUnavailable: 503,
1649
- GatewayTimeout: 504,
1650
- HttpVersionNotSupported: 505,
1651
- VariantAlsoNegotiates: 506,
1652
- InsufficientStorage: 507,
1653
- LoopDetected: 508,
1654
- NotExtended: 510,
1655
- NetworkAuthenticationRequired: 511
1656
- };
1657
- Object.entries(ue).forEach(([e, t]) => {
1658
- ue[t] = e;
1659
- });
1660
- function et(e) {
1661
- const t = new C(e), n = Pe(C.prototype.request, t);
1662
- return a.extend(n, C.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1663
- return et(x(e, s));
1664
- }, n;
1665
- }
1666
- const R = et(j);
1667
- R.Axios = C;
1668
- R.CanceledError = L;
1669
- R.CancelToken = fe;
1670
- R.isCancel = ze;
1671
- R.VERSION = Qe;
1672
- R.toFormData = Y;
1673
- R.AxiosError = _;
1674
- R.Cancel = R.CanceledError;
1675
- R.all = function(t) {
1676
- return Promise.all(t);
1677
- };
1678
- R.spread = In;
1679
- R.isAxiosError = Pn;
1680
- R.mergeConfig = x;
1681
- R.AxiosHeaders = w;
1682
- R.formToJSON = (e) => We(a.isHTMLForm(e) ? new FormData(e) : e);
1683
- R.getAdapter = Ze.getAdapter;
1684
- R.HttpStatusCode = ue;
1685
- R.default = R;
1686
- let tt = {
1687
- PORTAL_V2_BACKEND: ""
1688
- };
1689
- function xn() {
1690
- var o;
1691
- const { namespace: e, currentCountry: t } = Ie(), n = e.value === "dev", r = t.value === "MY" ? "" : `.${(o = t.value) == null ? void 0 : o.toLowerCase()}`, s = `${n ? "-dev" : ""}${r}.feedmeapi.com`;
1692
- tt.PORTAL_V2_BACKEND = `https://portal-v2${s}`;
1693
- }
1694
- function v(e) {
1695
- const t = R.create({
1696
- baseURL: e
1697
- });
1698
- return t.interceptors.request.use(
1699
- (n) => {
1700
- var s;
1701
- const { sessionUser: r } = Ie();
1702
- return (s = r.value) != null && s.token && (n.headers.Authorization = `Bearer ${r.value.token}`), n;
1703
- },
1704
- (n) => Promise.reject(n)
1705
- ), t;
1706
- }
1707
- class Un {
1708
- async Get(t, n, r) {
1709
- return await v(t).get(n, r);
1710
- }
1711
- async Post(t, n, r) {
1712
- return await v(t).post(n, r == null ? void 0 : r.data, r);
1713
- }
1714
- async Put(t, n, r) {
1715
- return await v(t).put(n, r == null ? void 0 : r.data, r);
1716
- }
1717
- async Delete(t, n, r) {
1718
- return await v(t).delete(n, r);
1719
- }
1720
- async Head(t, n, r) {
1721
- return await v(t).head(n, r);
1722
- }
1723
- }
1724
- const Bn = () => tt, Ln = new Un();
1725
- export {
1726
- Ln as H,
1727
- Bn as a,
1728
- xn as g
1729
- };