@ozdao/prometheus-framework 0.2.42 → 0.2.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-2247448a.js +91 -0
- package/dist/main-6c51a895.mjs +13628 -0
- package/dist/main-Ft_OvlW_.mjs +13606 -0
- package/dist/main-iZBAe91V.js +91 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.cjs +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +52 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
- package/dist/node_modules/@capacitor/core/dist/index.cjs +1 -0
- package/dist/node_modules/@capacitor/core/dist/index.js +337 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/index.cjs +1 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/index.js +7 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/web.cjs +1 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/web.js +54 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/main.css.cjs +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/main.css.js +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +4912 -0
- package/dist/node_modules/axios/lib/adapters/adapters.cjs +3 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +51 -0
- package/dist/node_modules/axios/lib/adapters/xhr.cjs +1 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +109 -0
- package/dist/node_modules/axios/lib/axios.cjs +1 -0
- package/dist/node_modules/axios/lib/axios.js +47 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.cjs +1 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +73 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.cjs +1 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.cjs +1 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/axios/lib/core/Axios.cjs +2 -0
- package/dist/node_modules/axios/lib/core/Axios.js +131 -0
- package/dist/node_modules/axios/lib/core/AxiosError.cjs +1 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.cjs +1 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.cjs +1 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +8 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.cjs +1 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.cjs +1 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +72 -0
- package/dist/node_modules/axios/lib/core/settle.cjs +1 -0
- package/dist/node_modules/axios/lib/core/settle.js +14 -0
- package/dist/node_modules/axios/lib/core/transformData.cjs +1 -0
- package/dist/node_modules/axios/lib/core/transformData.js +13 -0
- package/dist/node_modules/axios/lib/defaults/index.cjs +1 -0
- package/dist/node_modules/axios/lib/defaults/index.js +88 -0
- package/dist/node_modules/axios/lib/defaults/transitional.cjs +1 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/dist/node_modules/axios/lib/env/data.cjs +1 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
- package/dist/node_modules/axios/lib/helpers/bind.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +19 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/axios/lib/helpers/cookies.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +32 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
- package/dist/node_modules/axios/lib/helpers/null.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/dist/node_modules/axios/lib/helpers/spread.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +84 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/dist/node_modules/axios/lib/helpers/validator.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +51 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +7 -0
- package/dist/node_modules/axios/lib/platform/index.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.cjs +1 -0
- package/dist/node_modules/axios/lib/utils.js +224 -0
- package/dist/node_modules/bignumber.js/bignumber.cjs +1 -0
- package/dist/node_modules/bignumber.js/bignumber.js +701 -0
- package/dist/node_modules/date-fns/esm/_lib/addLeadingZeros/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js +8 -0
- package/dist/node_modules/date-fns/esm/_lib/assign/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/assign/index.js +10 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultLocale/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultLocale/index.js +4 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js +7 -0
- package/dist/node_modules/date-fns/esm/_lib/format/formatters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/format/formatters/index.js +573 -0
- package/dist/node_modules/date-fns/esm/_lib/format/lightFormatters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js +58 -0
- package/dist/node_modules/date-fns/esm/_lib/format/longFormatters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/format/longFormatters/index.js +76 -0
- package/dist/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +7 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +15 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +21 -0
- package/dist/node_modules/date-fns/esm/_lib/protectedTokens/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/protectedTokens/index.js +22 -0
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js +7 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCDay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCDay/index.js +16 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISODay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +12 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +12 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +10 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +16 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +16 -0
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js +9 -0
- package/dist/node_modules/date-fns/esm/add/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/add/index.js +15 -0
- package/dist/node_modules/date-fns/esm/addDays/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addDays/index.js +11 -0
- package/dist/node_modules/date-fns/esm/addMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addMilliseconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/addMonths/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addMonths/index.js +18 -0
- package/dist/node_modules/date-fns/esm/addQuarters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addQuarters/index.js +11 -0
- package/dist/node_modules/date-fns/esm/addYears/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addYears/index.js +11 -0
- package/dist/node_modules/date-fns/esm/constants/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/constants/index.js +6 -0
- package/dist/node_modules/date-fns/esm/differenceInCalendarDays/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/differenceInCalendarDays/index.js +12 -0
- package/dist/node_modules/date-fns/esm/eachDayOfInterval/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/eachDayOfInterval/index.js +20 -0
- package/dist/node_modules/date-fns/esm/eachQuarterOfInterval/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/eachQuarterOfInterval/index.js +18 -0
- package/dist/node_modules/date-fns/esm/endOfQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/endOfQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/endOfWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/endOfWeek/index.js +16 -0
- package/dist/node_modules/date-fns/esm/endOfYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/endOfYear/index.js +10 -0
- package/dist/node_modules/date-fns/esm/format/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/format/index.js +62 -0
- package/dist/node_modules/date-fns/esm/getDay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getDay/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getDaysInMonth/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getDaysInMonth/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getHours/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getHours/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getISOWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js +15 -0
- package/dist/node_modules/date-fns/esm/getMinutes/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getMinutes/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getMonth/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getMonth/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getSeconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getSeconds/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/getWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getWeekYear/index.js +21 -0
- package/dist/node_modules/date-fns/esm/getYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getYear/index.js +8 -0
- package/dist/node_modules/date-fns/esm/isAfter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isAfter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isBefore/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isBefore/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isDate/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isDate/index.js +8 -0
- package/dist/node_modules/date-fns/esm/isEqual/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isEqual/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isSameQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isSameQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isValid/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isValid/index.js +12 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +9 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +17 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +31 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +20 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +70 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +34 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +124 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +89 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/index.js +21 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Parser.js +27 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Setter.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Setter.js +59 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/constants.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/constants.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js +50 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js +80 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js +54 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js +33 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js +36 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js +48 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js +89 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js +46 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js +46 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js +50 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js +35 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js +90 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js +50 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js +48 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js +76 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js +48 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js +90 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js +76 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js +35 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js +35 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js +59 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/index.js +67 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/utils.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/utils.js +102 -0
- package/dist/node_modules/date-fns/esm/parse/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/index.js +128 -0
- package/dist/node_modules/date-fns/esm/parseISO/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parseISO/index.js +120 -0
- package/dist/node_modules/date-fns/esm/set/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/set/index.js +14 -0
- package/dist/node_modules/date-fns/esm/setHours/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setHours/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setMilliseconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setMinutes/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setMinutes/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setMonth/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setMonth/index.js +14 -0
- package/dist/node_modules/date-fns/esm/setSeconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setSeconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setYear/index.js +11 -0
- package/dist/node_modules/date-fns/esm/startOfDay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfDay/index.js +10 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js +10 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js +13 -0
- package/dist/node_modules/date-fns/esm/startOfQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/startOfWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfWeek/index.js +16 -0
- package/dist/node_modules/date-fns/esm/startOfWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfWeekYear/index.js +16 -0
- package/dist/node_modules/date-fns/esm/startOfYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfYear/index.js +10 -0
- package/dist/node_modules/date-fns/esm/sub/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/sub/index.js +14 -0
- package/dist/node_modules/date-fns/esm/subDays/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subDays/index.js +11 -0
- package/dist/node_modules/date-fns/esm/subMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subMilliseconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/subMonths/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subMonths/index.js +11 -0
- package/dist/node_modules/date-fns/esm/subYears/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subYears/index.js +11 -0
- package/dist/node_modules/date-fns/esm/toDate/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/toDate/index.js +10 -0
- package/dist/node_modules/libphonenumber-js/es6/ParseError.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/ParseError.js +113 -0
- package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +150 -0
- package/dist/node_modules/libphonenumber-js/es6/constants.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/constants.js +10 -0
- package/dist/node_modules/libphonenumber-js/es6/format.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/format.js +134 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +11 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +22 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +11 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +18 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +47 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +22 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +23 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +35 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +31 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +23 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +27 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +17 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +58 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +12 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +56 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +14 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +20 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +6 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +43 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +79 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +19 -0
- package/dist/node_modules/libphonenumber-js/es6/isPossible.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/isPossible.js +38 -0
- package/dist/node_modules/libphonenumber-js/es6/isValid.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/isValid.js +12 -0
- package/dist/node_modules/libphonenumber-js/es6/metadata.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/metadata.js +460 -0
- package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +96 -0
- package/dist/node_modules/libphonenumber-js/es6/parse.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parse.js +121 -0
- package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +53 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +9 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +33 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +41 -0
- package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +18 -0
- package/dist/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/metadata.min.json.js +4 -0
- package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +8 -0
- package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +8 -0
- package/dist/prometheus-framework.cjs.js +1 -36
- package/dist/prometheus-framework.es.js +37 -9163
- package/dist/style.css +1 -1
- package/dist/web-65c35f46.mjs +55 -0
- package/dist/web-Ot-Nyiix.mjs +55 -0
- package/dist/web-adbe95b6.js +1 -0
- package/dist/web-tkW-RBhL.js +1 -0
- package/package.json +2 -2
- package/src/components/Status/Status.vue +3 -1
- package/src/components/index.js +20 -0
- package/src/main.js +60 -2
- package/src/modules/payments/{controller → controllers}/payments.controller.js +15 -11
- package/src/modules/products/products.client.js +35 -0
- package/src/modules/products/products.server.js +2 -2
- /package/src/modules/payments/{controller → controllers}/payments.tinkoff.controller.js +0 -0
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../utils.cjs"),h=require("../helpers/null.cjs"),p=require("./xhr.cjs"),d=require("../core/AxiosError.cjs"),s={http:h.default,xhr:p.default};a.default.forEach(s,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const u=e=>`- ${e}`,b=e=>a.default.isFunction(e)||e===null||e===!1,m={getAdapter:e=>{e=a.default.isArray(e)?e:[e];const{length:r}=e;let o,n;const l={};for(let t=0;t<r;t++){o=e[t];let i;if(n=o,!b(o)&&(n=s[(i=String(o)).toLowerCase()],n===void 0))throw new d.default(`Unknown adapter '${i}'`);if(n)break;l[i||"#"+t]=n}if(!n){const t=Object.entries(l).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=r?t.length>1?`since :
|
2
|
+
`+t.map(u).join(`
|
3
|
+
`):" "+u(t[0]):"as no adapter specified";throw new d.default("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:s};exports.default=m;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import a from "../utils.js";
|
2
|
+
import h from "../helpers/null.js";
|
3
|
+
import m from "./xhr.js";
|
4
|
+
import d from "../core/AxiosError.js";
|
5
|
+
const s = {
|
6
|
+
http: h,
|
7
|
+
xhr: m
|
8
|
+
};
|
9
|
+
a.forEach(s, (e, n) => {
|
10
|
+
if (e) {
|
11
|
+
try {
|
12
|
+
Object.defineProperty(e, "name", { value: n });
|
13
|
+
} catch {
|
14
|
+
}
|
15
|
+
Object.defineProperty(e, "adapterName", { value: n });
|
16
|
+
}
|
17
|
+
});
|
18
|
+
const c = (e) => `- ${e}`, u = (e) => a.isFunction(e) || e === null || e === !1, R = {
|
19
|
+
getAdapter: (e) => {
|
20
|
+
e = a.isArray(e) ? e : [e];
|
21
|
+
const { length: n } = e;
|
22
|
+
let o, r;
|
23
|
+
const p = {};
|
24
|
+
for (let t = 0; t < n; t++) {
|
25
|
+
o = e[t];
|
26
|
+
let i;
|
27
|
+
if (r = o, !u(o) && (r = s[(i = String(o)).toLowerCase()], r === void 0))
|
28
|
+
throw new d(`Unknown adapter '${i}'`);
|
29
|
+
if (r)
|
30
|
+
break;
|
31
|
+
p[i || "#" + t] = r;
|
32
|
+
}
|
33
|
+
if (!r) {
|
34
|
+
const t = Object.entries(p).map(
|
35
|
+
([l, f]) => `adapter ${l} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
36
|
+
);
|
37
|
+
let i = n ? t.length > 1 ? `since :
|
38
|
+
` + t.map(c).join(`
|
39
|
+
`) : " " + c(t[0]) : "as no adapter specified";
|
40
|
+
throw new d(
|
41
|
+
"There is no suitable adapter to dispatch the request " + i,
|
42
|
+
"ERR_NOT_SUPPORT"
|
43
|
+
);
|
44
|
+
}
|
45
|
+
return r;
|
46
|
+
},
|
47
|
+
adapters: s
|
48
|
+
};
|
49
|
+
export {
|
50
|
+
R as default
|
51
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("../utils.cjs"),v=require("../core/settle.cjs"),H=require("../helpers/cookies.cjs"),U=require("../helpers/buildURL.cjs"),k=require("../core/buildFullPath.cjs"),L=require("../helpers/isURLSameOrigin.cjs"),N=require("../defaults/transitional.cjs"),d=require("../core/AxiosError.cjs"),S=require("../cancel/CanceledError.cjs"),A=require("../helpers/parseProtocol.cjs"),R=require("../platform/index.cjs"),y=require("../core/AxiosHeaders.cjs"),O=require("../helpers/speedometer.cjs");function x(e,b){let m=0;const l=O.default(50,250);return i=>{const r=i.loaded,a=i.lengthComputable?i.total:void 0,o=r-m,n=l(o),E=r<=a;m=r;const f={loaded:r,total:a,progress:a?r/a:void 0,bytes:o,rate:n||void 0,estimated:n&&a&&E?(a-r)/n:void 0,event:i};f[b?"download":"upload"]=!0,e(f)}}const D=typeof XMLHttpRequest<"u",B=D&&function(e){return new Promise(function(m,l){let i=e.data;const r=y.default.from(e.headers).normalize();let{responseType:a,withXSRFToken:o}=e,n;function E(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}let f;if(h.default.isFormData(i)){if(R.default.hasStandardBrowserEnv||R.default.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((f=r.getContentType())!==!1){const[s,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];r.setContentType([s||"multipart/form-data",...u].join("; "))}}let t=new XMLHttpRequest;if(e.auth){const s=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(s+":"+u))}const T=k.default(e.baseURL,e.url);t.open(e.method.toUpperCase(),U.default(T,e.params,e.paramsSerializer),!0),t.timeout=e.timeout;function w(){if(!t)return;const s=y.default.from("getAllResponseHeaders"in t&&t.getAllResponseHeaders()),p={data:!a||a==="text"||a==="json"?t.responseText:t.response,status:t.status,statusText:t.statusText,headers:s,config:e,request:t};v.default(function(q){m(q),E()},function(q){l(q),E()},p),t=null}if("onloadend"in t?t.onloadend=w:t.onreadystatechange=function(){!t||t.readyState!==4||t.status===0&&!(t.responseURL&&t.responseURL.indexOf("file:")===0)||setTimeout(w)},t.onabort=function(){t&&(l(new d.default("Request aborted",d.default.ECONNABORTED,e,t)),t=null)},t.onerror=function(){l(new d.default("Network Error",d.default.ERR_NETWORK,e,t)),t=null},t.ontimeout=function(){let u=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||N.default;e.timeoutErrorMessage&&(u=e.timeoutErrorMessage),l(new d.default(u,p.clarifyTimeoutError?d.default.ETIMEDOUT:d.default.ECONNABORTED,e,t)),t=null},R.default.hasStandardBrowserEnv&&(o&&h.default.isFunction(o)&&(o=o(e)),o||o!==!1&&L.default(T))){const s=e.xsrfHeaderName&&e.xsrfCookieName&&H.default.read(e.xsrfCookieName);s&&r.set(e.xsrfHeaderName,s)}i===void 0&&r.setContentType(null),"setRequestHeader"in t&&h.default.forEach(r.toJSON(),function(u,p){t.setRequestHeader(p,u)}),h.default.isUndefined(e.withCredentials)||(t.withCredentials=!!e.withCredentials),a&&a!=="json"&&(t.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&t.addEventListener("progress",x(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&t.upload&&t.upload.addEventListener("progress",x(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=s=>{t&&(l(!s||s.type?new S.default(null,e,t):s),t.abort(),t=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));const c=A.default(T);if(c&&R.default.protocols.indexOf(c)===-1){l(new d.default("Unsupported protocol "+c+":",d.default.ERR_BAD_REQUEST,e));return}t.send(i||null)})};exports.default=B;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import h from "../utils.js";
|
2
|
+
import k from "../core/settle.js";
|
3
|
+
import L from "../helpers/cookies.js";
|
4
|
+
import N from "../helpers/buildURL.js";
|
5
|
+
import c from "../core/buildFullPath.js";
|
6
|
+
import v from "../helpers/isURLSameOrigin.js";
|
7
|
+
import A from "../defaults/transitional.js";
|
8
|
+
import l from "../core/AxiosError.js";
|
9
|
+
import D from "../cancel/CanceledError.js";
|
10
|
+
import q from "../helpers/parseProtocol.js";
|
11
|
+
import R from "../platform/index.js";
|
12
|
+
import C from "../core/AxiosHeaders.js";
|
13
|
+
import O from "../helpers/speedometer.js";
|
14
|
+
function H(e, y) {
|
15
|
+
let f = 0;
|
16
|
+
const u = O(50, 250);
|
17
|
+
return (i) => {
|
18
|
+
const s = i.loaded, o = i.lengthComputable ? i.total : void 0, a = s - f, n = u(a), E = s <= o;
|
19
|
+
f = s;
|
20
|
+
const m = {
|
21
|
+
loaded: s,
|
22
|
+
total: o,
|
23
|
+
progress: o ? s / o : void 0,
|
24
|
+
bytes: a,
|
25
|
+
rate: n || void 0,
|
26
|
+
estimated: n && o && E ? (o - s) / n : void 0,
|
27
|
+
event: i
|
28
|
+
};
|
29
|
+
m[y ? "download" : "upload"] = !0, e(m);
|
30
|
+
};
|
31
|
+
}
|
32
|
+
const S = typeof XMLHttpRequest < "u", G = S && function(e) {
|
33
|
+
return new Promise(function(f, u) {
|
34
|
+
let i = e.data;
|
35
|
+
const s = C.from(e.headers).normalize();
|
36
|
+
let { responseType: o, withXSRFToken: a } = e, n;
|
37
|
+
function E() {
|
38
|
+
e.cancelToken && e.cancelToken.unsubscribe(n), e.signal && e.signal.removeEventListener("abort", n);
|
39
|
+
}
|
40
|
+
let m;
|
41
|
+
if (h.isFormData(i)) {
|
42
|
+
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
43
|
+
s.setContentType(!1);
|
44
|
+
else if ((m = s.getContentType()) !== !1) {
|
45
|
+
const [r, ...d] = m ? m.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
46
|
+
s.setContentType([r || "multipart/form-data", ...d].join("; "));
|
47
|
+
}
|
48
|
+
}
|
49
|
+
let t = new XMLHttpRequest();
|
50
|
+
if (e.auth) {
|
51
|
+
const r = e.auth.username || "", d = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
52
|
+
s.set("Authorization", "Basic " + btoa(r + ":" + d));
|
53
|
+
}
|
54
|
+
const T = c(e.baseURL, e.url);
|
55
|
+
t.open(e.method.toUpperCase(), N(T, e.params, e.paramsSerializer), !0), t.timeout = e.timeout;
|
56
|
+
function x() {
|
57
|
+
if (!t)
|
58
|
+
return;
|
59
|
+
const r = C.from(
|
60
|
+
"getAllResponseHeaders" in t && t.getAllResponseHeaders()
|
61
|
+
), p = {
|
62
|
+
data: !o || o === "text" || o === "json" ? t.responseText : t.response,
|
63
|
+
status: t.status,
|
64
|
+
statusText: t.statusText,
|
65
|
+
headers: r,
|
66
|
+
config: e,
|
67
|
+
request: t
|
68
|
+
};
|
69
|
+
k(function(b) {
|
70
|
+
f(b), E();
|
71
|
+
}, function(b) {
|
72
|
+
u(b), E();
|
73
|
+
}, p), t = null;
|
74
|
+
}
|
75
|
+
if ("onloadend" in t ? t.onloadend = x : t.onreadystatechange = function() {
|
76
|
+
!t || t.readyState !== 4 || t.status === 0 && !(t.responseURL && t.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
77
|
+
}, t.onabort = function() {
|
78
|
+
t && (u(new l("Request aborted", l.ECONNABORTED, e, t)), t = null);
|
79
|
+
}, t.onerror = function() {
|
80
|
+
u(new l("Network Error", l.ERR_NETWORK, e, t)), t = null;
|
81
|
+
}, t.ontimeout = function() {
|
82
|
+
let d = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
83
|
+
const p = e.transitional || A;
|
84
|
+
e.timeoutErrorMessage && (d = e.timeoutErrorMessage), u(new l(
|
85
|
+
d,
|
86
|
+
p.clarifyTimeoutError ? l.ETIMEDOUT : l.ECONNABORTED,
|
87
|
+
e,
|
88
|
+
t
|
89
|
+
)), t = null;
|
90
|
+
}, R.hasStandardBrowserEnv && (a && h.isFunction(a) && (a = a(e)), a || a !== !1 && v(T))) {
|
91
|
+
const r = e.xsrfHeaderName && e.xsrfCookieName && L.read(e.xsrfCookieName);
|
92
|
+
r && s.set(e.xsrfHeaderName, r);
|
93
|
+
}
|
94
|
+
i === void 0 && s.setContentType(null), "setRequestHeader" in t && h.forEach(s.toJSON(), function(d, p) {
|
95
|
+
t.setRequestHeader(p, d);
|
96
|
+
}), h.isUndefined(e.withCredentials) || (t.withCredentials = !!e.withCredentials), o && o !== "json" && (t.responseType = e.responseType), typeof e.onDownloadProgress == "function" && t.addEventListener("progress", H(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && t.upload && t.upload.addEventListener("progress", H(e.onUploadProgress)), (e.cancelToken || e.signal) && (n = (r) => {
|
97
|
+
t && (u(!r || r.type ? new D(null, e, t) : r), t.abort(), t = null);
|
98
|
+
}, e.cancelToken && e.cancelToken.subscribe(n), e.signal && (e.signal.aborted ? n() : e.signal.addEventListener("abort", n)));
|
99
|
+
const w = q(T);
|
100
|
+
if (w && R.protocols.indexOf(w) === -1) {
|
101
|
+
u(new l("Unsupported protocol " + w + ":", l.ERR_BAD_REQUEST, e));
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
t.send(i || null);
|
105
|
+
});
|
106
|
+
};
|
107
|
+
export {
|
108
|
+
G as default
|
109
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./utils.cjs"),d=require("./helpers/bind.cjs"),a=require("./core/Axios.cjs"),n=require("./core/mergeConfig.cjs"),i=require("./defaults/index.cjs"),c=require("./helpers/formDataToJSON.cjs"),f=require("./cancel/CanceledError.cjs"),q=require("./cancel/CancelToken.cjs"),x=require("./cancel/isCancel.cjs"),p=require("./env/data.cjs"),C=require("./helpers/toFormData.cjs"),m=require("./core/AxiosError.cjs"),A=require("./helpers/spread.cjs"),E=require("./helpers/isAxiosError.cjs"),S=require("./core/AxiosHeaders.cjs"),O=require("./adapters/adapters.cjs"),T=require("./helpers/HttpStatusCode.cjs");function s(t){const r=new a.default(t),o=d.default(a.default.prototype.request,r);return u.default.extend(o,a.default.prototype,r,{allOwnKeys:!0}),u.default.extend(o,r,null,{allOwnKeys:!0}),o.create=function(l){return s(n.default(t,l))},o}const e=s(i.default);e.Axios=a.default;e.CanceledError=f.default;e.CancelToken=q.default;e.isCancel=x.default;e.VERSION=p.VERSION;e.toFormData=C.default;e.AxiosError=m.default;e.Cancel=e.CanceledError;e.all=function(r){return Promise.all(r)};e.spread=A.default;e.isAxiosError=E.default;e.mergeConfig=n.default;e.AxiosHeaders=S.default;e.formToJSON=t=>c.default(u.default.isHTMLForm(t)?new FormData(t):t);e.getAdapter=O.default.getAdapter;e.HttpStatusCode=T.default;e.default=e;const g=e;exports.default=g;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import a from "./utils.js";
|
2
|
+
import p from "./helpers/bind.js";
|
3
|
+
import m from "./core/Axios.js";
|
4
|
+
import i from "./core/mergeConfig.js";
|
5
|
+
import f from "./defaults/index.js";
|
6
|
+
import l from "./helpers/formDataToJSON.js";
|
7
|
+
import c from "./cancel/CanceledError.js";
|
8
|
+
import d from "./cancel/CancelToken.js";
|
9
|
+
import u from "./cancel/isCancel.js";
|
10
|
+
import { VERSION as x } from "./env/data.js";
|
11
|
+
import C from "./helpers/toFormData.js";
|
12
|
+
import A from "./core/AxiosError.js";
|
13
|
+
import E from "./helpers/spread.js";
|
14
|
+
import O from "./helpers/isAxiosError.js";
|
15
|
+
import S from "./core/AxiosHeaders.js";
|
16
|
+
import H from "./adapters/adapters.js";
|
17
|
+
import T from "./helpers/HttpStatusCode.js";
|
18
|
+
function n(o) {
|
19
|
+
const t = new m(o), e = p(m.prototype.request, t);
|
20
|
+
return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
|
21
|
+
return n(i(o, s));
|
22
|
+
}, e;
|
23
|
+
}
|
24
|
+
const r = n(f);
|
25
|
+
r.Axios = m;
|
26
|
+
r.CanceledError = c;
|
27
|
+
r.CancelToken = d;
|
28
|
+
r.isCancel = u;
|
29
|
+
r.VERSION = x;
|
30
|
+
r.toFormData = C;
|
31
|
+
r.AxiosError = A;
|
32
|
+
r.Cancel = r.CanceledError;
|
33
|
+
r.all = function(t) {
|
34
|
+
return Promise.all(t);
|
35
|
+
};
|
36
|
+
r.spread = E;
|
37
|
+
r.isAxiosError = O;
|
38
|
+
r.mergeConfig = i;
|
39
|
+
r.AxiosHeaders = S;
|
40
|
+
r.formToJSON = (o) => l(a.isHTMLForm(o) ? new FormData(o) : o);
|
41
|
+
r.getAdapter = H.getAdapter;
|
42
|
+
r.HttpStatusCode = T;
|
43
|
+
r.default = r;
|
44
|
+
const j = r;
|
45
|
+
export {
|
46
|
+
j as default
|
47
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./CanceledError.cjs");class c{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(t){r=t});const s=this;this.promise.then(n=>{if(!s._listeners)return;let t=s._listeners.length;for(;t-- >0;)s._listeners[t](n);s._listeners=null}),this.promise.then=n=>{let t;const o=new Promise(i=>{s.subscribe(i),t=i}).then(n);return o.cancel=function(){s.unsubscribe(t)},o},e(function(t,o,i){s.reason||(s.reason=new u.default(t,o,i),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new c(function(n){e=n}),cancel:e}}}const l=c;exports.default=l;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import u from "./CanceledError.js";
|
2
|
+
class c {
|
3
|
+
constructor(e) {
|
4
|
+
if (typeof e != "function")
|
5
|
+
throw new TypeError("executor must be a function.");
|
6
|
+
let r;
|
7
|
+
this.promise = new Promise(function(t) {
|
8
|
+
r = t;
|
9
|
+
});
|
10
|
+
const s = this;
|
11
|
+
this.promise.then((n) => {
|
12
|
+
if (!s._listeners)
|
13
|
+
return;
|
14
|
+
let t = s._listeners.length;
|
15
|
+
for (; t-- > 0; )
|
16
|
+
s._listeners[t](n);
|
17
|
+
s._listeners = null;
|
18
|
+
}), this.promise.then = (n) => {
|
19
|
+
let t;
|
20
|
+
const o = new Promise((i) => {
|
21
|
+
s.subscribe(i), t = i;
|
22
|
+
}).then(n);
|
23
|
+
return o.cancel = function() {
|
24
|
+
s.unsubscribe(t);
|
25
|
+
}, o;
|
26
|
+
}, e(function(t, o, i) {
|
27
|
+
s.reason || (s.reason = new u(t, o, i), r(s.reason));
|
28
|
+
});
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
32
|
+
*/
|
33
|
+
throwIfRequested() {
|
34
|
+
if (this.reason)
|
35
|
+
throw this.reason;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Subscribe to the cancel signal
|
39
|
+
*/
|
40
|
+
subscribe(e) {
|
41
|
+
if (this.reason) {
|
42
|
+
e(this.reason);
|
43
|
+
return;
|
44
|
+
}
|
45
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* Unsubscribe from the cancel signal
|
49
|
+
*/
|
50
|
+
unsubscribe(e) {
|
51
|
+
if (!this._listeners)
|
52
|
+
return;
|
53
|
+
const r = this._listeners.indexOf(e);
|
54
|
+
r !== -1 && this._listeners.splice(r, 1);
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
58
|
+
* cancels the `CancelToken`.
|
59
|
+
*/
|
60
|
+
static source() {
|
61
|
+
let e;
|
62
|
+
return {
|
63
|
+
token: new c(function(n) {
|
64
|
+
e = n;
|
65
|
+
}),
|
66
|
+
cancel: e
|
67
|
+
};
|
68
|
+
}
|
69
|
+
}
|
70
|
+
const h = c;
|
71
|
+
export {
|
72
|
+
h as default
|
73
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../core/AxiosError.cjs"),i=require("../utils.cjs");function t(r,l,u){e.default.call(this,r??"canceled",e.default.ERR_CANCELED,l,u),this.name="CanceledError"}i.default.inherits(t,e.default,{__CANCEL__:!0});exports.default=t;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e){return!!(e&&e.__CANCEL__)}exports.default=t;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("../utils.cjs"),M=require("../helpers/buildURL.cjs"),w=require("./InterceptorManager.cjs"),S=require("./dispatchRequest.cjs"),p=require("./mergeConfig.cjs"),R=require("./buildFullPath.cjs"),b=require("../helpers/validator.cjs"),T=require("./AxiosHeaders.cjs"),i=b.default.validators;class m{constructor(t){this.defaults=t,this.interceptors={request:new w.default,response:new w.default}}async request(t,e){try{return await this._request(t,e)}catch(s){if(s instanceof Error){let u;Error.captureStackTrace?Error.captureStackTrace(u={}):u=new Error;const a=u.stack?u.stack.replace(/^.+\n/,""):"";s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
2
|
+
`+a):s.stack=a}throw s}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=p.default(this.defaults,e);const{transitional:s,paramsSerializer:u,headers:a}=e;s!==void 0&&b.default.assertOptions(s,{silentJSONParsing:i.transitional(i.boolean),forcedJSONParsing:i.transitional(i.boolean),clarifyTimeoutError:i.transitional(i.boolean)},!1),u!=null&&(f.default.isFunction(u)?e.paramsSerializer={serialize:u}:b.default.assertOptions(u,{encode:i.function,serialize:i.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let q=a&&f.default.merge(a.common,a[e.method]);a&&f.default.forEach(["delete","get","head","post","put","patch","common"],r=>{delete a[r]}),e.headers=T.default.concat(q,a);const c=[];let y=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(y=y&&o.synchronous,c.unshift(o.fulfilled,o.rejected))});const h=[];this.interceptors.response.forEach(function(o){h.push(o.fulfilled,o.rejected)});let l,n=0,d;if(!y){const r=[S.default.bind(this),void 0];for(r.unshift.apply(r,c),r.push.apply(r,h),d=r.length,l=Promise.resolve(e);n<d;)l=l.then(r[n++],r[n++]);return l}d=c.length;let E=e;for(n=0;n<d;){const r=c[n++],o=c[n++];try{E=r(E)}catch(P){o.call(this,P);break}}try{l=S.default.call(this,E)}catch(r){return Promise.reject(r)}for(n=0,d=h.length;n<d;)l=l.then(h[n++],h[n++]);return l}getUri(t){t=p.default(this.defaults,t);const e=R.default(t.baseURL,t.url);return M.default(e,t.params,t.paramsSerializer)}}f.default.forEach(["delete","get","head","options"],function(t){m.prototype[t]=function(e,s){return this.request(p.default(s||{},{method:t,url:e,data:(s||{}).data}))}});f.default.forEach(["post","put","patch"],function(t){function e(s){return function(a,q,c){return this.request(p.default(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:q}))}}m.prototype[t]=e(),m.prototype[t+"Form"]=e(!0)});const v=m;exports.default=v;
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import d from "../utils.js";
|
2
|
+
import R from "../helpers/buildURL.js";
|
3
|
+
import b from "./InterceptorManager.js";
|
4
|
+
import S from "./dispatchRequest.js";
|
5
|
+
import f from "./mergeConfig.js";
|
6
|
+
import C from "./buildFullPath.js";
|
7
|
+
import k from "../helpers/validator.js";
|
8
|
+
import I from "./AxiosHeaders.js";
|
9
|
+
const u = k.validators;
|
10
|
+
class m {
|
11
|
+
constructor(t) {
|
12
|
+
this.defaults = t, this.interceptors = {
|
13
|
+
request: new b(),
|
14
|
+
response: new b()
|
15
|
+
};
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* Dispatch a request
|
19
|
+
*
|
20
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
21
|
+
* @param {?Object} config
|
22
|
+
*
|
23
|
+
* @returns {Promise} The Promise to be fulfilled
|
24
|
+
*/
|
25
|
+
async request(t, e) {
|
26
|
+
try {
|
27
|
+
return await this._request(t, e);
|
28
|
+
} catch (s) {
|
29
|
+
if (s instanceof Error) {
|
30
|
+
let n;
|
31
|
+
Error.captureStackTrace ? Error.captureStackTrace(n = {}) : n = new Error();
|
32
|
+
const a = n.stack ? n.stack.replace(/^.+\n/, "") : "";
|
33
|
+
s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
34
|
+
` + a) : s.stack = a;
|
35
|
+
}
|
36
|
+
throw s;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
_request(t, e) {
|
40
|
+
typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = f(this.defaults, e);
|
41
|
+
const { transitional: s, paramsSerializer: n, headers: a } = e;
|
42
|
+
s !== void 0 && k.assertOptions(s, {
|
43
|
+
silentJSONParsing: u.transitional(u.boolean),
|
44
|
+
forcedJSONParsing: u.transitional(u.boolean),
|
45
|
+
clarifyTimeoutError: u.transitional(u.boolean)
|
46
|
+
}, !1), n != null && (d.isFunction(n) ? e.paramsSerializer = {
|
47
|
+
serialize: n
|
48
|
+
} : k.assertOptions(n, {
|
49
|
+
encode: u.function,
|
50
|
+
serialize: u.function
|
51
|
+
}, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
|
52
|
+
let y = a && d.merge(
|
53
|
+
a.common,
|
54
|
+
a[e.method]
|
55
|
+
);
|
56
|
+
a && d.forEach(
|
57
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
58
|
+
(r) => {
|
59
|
+
delete a[r];
|
60
|
+
}
|
61
|
+
), e.headers = I.concat(y, a);
|
62
|
+
const h = [];
|
63
|
+
let E = !0;
|
64
|
+
this.interceptors.request.forEach(function(i) {
|
65
|
+
typeof i.runWhen == "function" && i.runWhen(e) === !1 || (E = E && i.synchronous, h.unshift(i.fulfilled, i.rejected));
|
66
|
+
});
|
67
|
+
const p = [];
|
68
|
+
this.interceptors.response.forEach(function(i) {
|
69
|
+
p.push(i.fulfilled, i.rejected);
|
70
|
+
});
|
71
|
+
let l, o = 0, c;
|
72
|
+
if (!E) {
|
73
|
+
const r = [S.bind(this), void 0];
|
74
|
+
for (r.unshift.apply(r, h), r.push.apply(r, p), c = r.length, l = Promise.resolve(e); o < c; )
|
75
|
+
l = l.then(r[o++], r[o++]);
|
76
|
+
return l;
|
77
|
+
}
|
78
|
+
c = h.length;
|
79
|
+
let q = e;
|
80
|
+
for (o = 0; o < c; ) {
|
81
|
+
const r = h[o++], i = h[o++];
|
82
|
+
try {
|
83
|
+
q = r(q);
|
84
|
+
} catch (P) {
|
85
|
+
i.call(this, P);
|
86
|
+
break;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
try {
|
90
|
+
l = S.call(this, q);
|
91
|
+
} catch (r) {
|
92
|
+
return Promise.reject(r);
|
93
|
+
}
|
94
|
+
for (o = 0, c = p.length; o < c; )
|
95
|
+
l = l.then(p[o++], p[o++]);
|
96
|
+
return l;
|
97
|
+
}
|
98
|
+
getUri(t) {
|
99
|
+
t = f(this.defaults, t);
|
100
|
+
const e = C(t.baseURL, t.url);
|
101
|
+
return R(e, t.params, t.paramsSerializer);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
d.forEach(["delete", "get", "head", "options"], function(t) {
|
105
|
+
m.prototype[t] = function(e, s) {
|
106
|
+
return this.request(f(s || {}, {
|
107
|
+
method: t,
|
108
|
+
url: e,
|
109
|
+
data: (s || {}).data
|
110
|
+
}));
|
111
|
+
};
|
112
|
+
});
|
113
|
+
d.forEach(["post", "put", "patch"], function(t) {
|
114
|
+
function e(s) {
|
115
|
+
return function(a, y, h) {
|
116
|
+
return this.request(f(h || {}, {
|
117
|
+
method: t,
|
118
|
+
headers: s ? {
|
119
|
+
"Content-Type": "multipart/form-data"
|
120
|
+
} : {},
|
121
|
+
url: a,
|
122
|
+
data: y
|
123
|
+
}));
|
124
|
+
};
|
125
|
+
}
|
126
|
+
m.prototype[t] = e(), m.prototype[t + "Form"] = e(!0);
|
127
|
+
});
|
128
|
+
const A = m;
|
129
|
+
export {
|
130
|
+
A as default
|
131
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../utils.cjs");function s(t,r,i,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),o&&(this.request=o),a&&(this.response=a)}n.default.inherits(s,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n.default.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u=s.prototype,R={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{R[t]={value:t}});Object.defineProperties(s,R);Object.defineProperty(u,"isAxiosError",{value:!0});s.from=(t,r,i,o,a,c)=>{const e=Object.create(u);return n.default.toFlatObject(t,e,function(l){return l!==Error.prototype},E=>E!=="isAxiosError"),s.call(e,t.message,r,i,o,a),e.cause=t,e.name=t.name,c&&Object.assign(e,c),e};exports.default=s;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import n from "../utils.js";
|
2
|
+
function s(t, r, i, o, E) {
|
3
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", r && (this.code = r), i && (this.config = i), o && (this.request = o), E && (this.response = E);
|
4
|
+
}
|
5
|
+
n.inherits(s, Error, {
|
6
|
+
toJSON: function() {
|
7
|
+
return {
|
8
|
+
// Standard
|
9
|
+
message: this.message,
|
10
|
+
name: this.name,
|
11
|
+
// Microsoft
|
12
|
+
description: this.description,
|
13
|
+
number: this.number,
|
14
|
+
// Mozilla
|
15
|
+
fileName: this.fileName,
|
16
|
+
lineNumber: this.lineNumber,
|
17
|
+
columnNumber: this.columnNumber,
|
18
|
+
stack: this.stack,
|
19
|
+
// Axios
|
20
|
+
config: n.toJSONObject(this.config),
|
21
|
+
code: this.code,
|
22
|
+
status: this.response && this.response.status ? this.response.status : null
|
23
|
+
};
|
24
|
+
}
|
25
|
+
});
|
26
|
+
const R = s.prototype, u = {};
|
27
|
+
[
|
28
|
+
"ERR_BAD_OPTION_VALUE",
|
29
|
+
"ERR_BAD_OPTION",
|
30
|
+
"ECONNABORTED",
|
31
|
+
"ETIMEDOUT",
|
32
|
+
"ERR_NETWORK",
|
33
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
34
|
+
"ERR_DEPRECATED",
|
35
|
+
"ERR_BAD_RESPONSE",
|
36
|
+
"ERR_BAD_REQUEST",
|
37
|
+
"ERR_CANCELED",
|
38
|
+
"ERR_NOT_SUPPORT",
|
39
|
+
"ERR_INVALID_URL"
|
40
|
+
// eslint-disable-next-line func-names
|
41
|
+
].forEach((t) => {
|
42
|
+
u[t] = { value: t };
|
43
|
+
});
|
44
|
+
Object.defineProperties(s, u);
|
45
|
+
Object.defineProperty(R, "isAxiosError", { value: !0 });
|
46
|
+
s.from = (t, r, i, o, E, a) => {
|
47
|
+
const e = Object.create(R);
|
48
|
+
return n.toFlatObject(t, e, function(h) {
|
49
|
+
return h !== Error.prototype;
|
50
|
+
}, (c) => c !== "isAxiosError"), s.call(e, t.message, r, i, o, E), e.cause = t, e.name = t.name, a && Object.assign(e, a), e;
|
51
|
+
};
|
52
|
+
export {
|
53
|
+
s as default
|
54
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../utils.cjs"),h=require("../helpers/parseHeaders.cjs"),b=Symbol("internals");function f(o){return o&&String(o).trim().toLowerCase()}function p(o){return o===!1||o==null?o:i.default.isArray(o)?o.map(p):String(o)}function S(o){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let e;for(;e=s.exec(o);)t[e[1]]=e[2];return t}const A=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function m(o,t,s,e,n){if(i.default.isFunction(e))return e.call(this,t,s);if(n&&(t=s),!!i.default.isString(t)){if(i.default.isString(e))return t.indexOf(e)!==-1;if(i.default.isRegExp(e))return e.test(t)}}function E(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,e)=>s.toUpperCase()+e)}function H(o,t){const s=i.default.toCamelCase(" "+t);["get","set","has"].forEach(e=>{Object.defineProperty(o,e+s,{value:function(n,r,c){return this[e].call(this,t,n,r,c)},configurable:!0})})}class g{constructor(t){t&&this.set(t)}set(t,s,e){const n=this;function r(u,l,a){const d=f(l);if(!d)throw new Error("header name must be a non-empty string");const y=i.default.findKey(n,d);(!y||n[y]===void 0||a===!0||a===void 0&&n[y]!==!1)&&(n[y||l]=p(u))}const c=(u,l)=>i.default.forEach(u,(a,d)=>r(a,d,l));return i.default.isPlainObject(t)||t instanceof this.constructor?c(t,s):i.default.isString(t)&&(t=t.trim())&&!A(t)?c(h.default(t),s):t!=null&&r(s,t,e),this}get(t,s){if(t=f(t),t){const e=i.default.findKey(this,t);if(e){const n=this[e];if(!s)return n;if(s===!0)return S(n);if(i.default.isFunction(s))return s.call(this,n,e);if(i.default.isRegExp(s))return s.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=f(t),t){const e=i.default.findKey(this,t);return!!(e&&this[e]!==void 0&&(!s||m(this,this[e],e,s)))}return!1}delete(t,s){const e=this;let n=!1;function r(c){if(c=f(c),c){const u=i.default.findKey(e,c);u&&(!s||m(e,e[u],u,s))&&(delete e[u],n=!0)}}return i.default.isArray(t)?t.forEach(r):r(t),n}clear(t){const s=Object.keys(this);let e=s.length,n=!1;for(;e--;){const r=s[e];(!t||m(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const s=this,e={};return i.default.forEach(this,(n,r)=>{const c=i.default.findKey(e,r);if(c){s[c]=p(n),delete s[r];return}const u=t?E(r):String(r).trim();u!==r&&delete s[r],s[u]=p(n),e[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return i.default.forEach(this,(e,n)=>{e!=null&&e!==!1&&(s[n]=t&&i.default.isArray(e)?e.join(", "):e)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).join(`
|
2
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){const e=new this(t);return s.forEach(n=>e.set(n)),e}static accessor(t){const e=(this[b]=this[b]={accessors:{}}).accessors,n=this.prototype;function r(c){const u=f(c);e[u]||(H(n,c),e[u]=!0)}return i.default.isArray(t)?t.forEach(r):r(t),this}}g.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i.default.reduceDescriptors(g.prototype,({value:o},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>o,set(e){this[s]=e}}});i.default.freezeMethods(g);const j=g;exports.default=j;
|