@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,79 @@
|
|
1
|
+
var F = {
|
2
|
+
0: "0",
|
3
|
+
1: "1",
|
4
|
+
2: "2",
|
5
|
+
3: "3",
|
6
|
+
4: "4",
|
7
|
+
5: "5",
|
8
|
+
6: "6",
|
9
|
+
7: "7",
|
10
|
+
8: "8",
|
11
|
+
9: "9",
|
12
|
+
"0": "0",
|
13
|
+
// Fullwidth digit 0
|
14
|
+
"1": "1",
|
15
|
+
// Fullwidth digit 1
|
16
|
+
"2": "2",
|
17
|
+
// Fullwidth digit 2
|
18
|
+
"3": "3",
|
19
|
+
// Fullwidth digit 3
|
20
|
+
"4": "4",
|
21
|
+
// Fullwidth digit 4
|
22
|
+
"5": "5",
|
23
|
+
// Fullwidth digit 5
|
24
|
+
"6": "6",
|
25
|
+
// Fullwidth digit 6
|
26
|
+
"7": "7",
|
27
|
+
// Fullwidth digit 7
|
28
|
+
"8": "8",
|
29
|
+
// Fullwidth digit 8
|
30
|
+
"9": "9",
|
31
|
+
// Fullwidth digit 9
|
32
|
+
"٠": "0",
|
33
|
+
// Arabic-indic digit 0
|
34
|
+
"١": "1",
|
35
|
+
// Arabic-indic digit 1
|
36
|
+
"٢": "2",
|
37
|
+
// Arabic-indic digit 2
|
38
|
+
"٣": "3",
|
39
|
+
// Arabic-indic digit 3
|
40
|
+
"٤": "4",
|
41
|
+
// Arabic-indic digit 4
|
42
|
+
"٥": "5",
|
43
|
+
// Arabic-indic digit 5
|
44
|
+
"٦": "6",
|
45
|
+
// Arabic-indic digit 6
|
46
|
+
"٧": "7",
|
47
|
+
// Arabic-indic digit 7
|
48
|
+
"٨": "8",
|
49
|
+
// Arabic-indic digit 8
|
50
|
+
"٩": "9",
|
51
|
+
// Arabic-indic digit 9
|
52
|
+
"۰": "0",
|
53
|
+
// Eastern-Arabic digit 0
|
54
|
+
"۱": "1",
|
55
|
+
// Eastern-Arabic digit 1
|
56
|
+
"۲": "2",
|
57
|
+
// Eastern-Arabic digit 2
|
58
|
+
"۳": "3",
|
59
|
+
// Eastern-Arabic digit 3
|
60
|
+
"۴": "4",
|
61
|
+
// Eastern-Arabic digit 4
|
62
|
+
"۵": "5",
|
63
|
+
// Eastern-Arabic digit 5
|
64
|
+
"۶": "6",
|
65
|
+
// Eastern-Arabic digit 6
|
66
|
+
"۷": "7",
|
67
|
+
// Eastern-Arabic digit 7
|
68
|
+
"۸": "8",
|
69
|
+
// Eastern-Arabic digit 8
|
70
|
+
"۹": "9"
|
71
|
+
// Eastern-Arabic digit 9
|
72
|
+
};
|
73
|
+
function r(u) {
|
74
|
+
return F[u];
|
75
|
+
}
|
76
|
+
export {
|
77
|
+
F as DIGITS,
|
78
|
+
r as parseDigit
|
79
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../metadata.cjs"),u=require("../constants.cjs");var c=new RegExp("(["+u.VALID_DIGITS+"])");function f(e,r,n,l){if(r){var a=new s.default(l);a.selectNumberingPlan(r,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var t=e.match(c);if(!(t&&t[1]!=null&&t[1].length>0&&t[1]==="0"))return e}}}exports.default=f;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import I from "../metadata.js";
|
2
|
+
import { VALID_DIGITS as l } from "../constants.js";
|
3
|
+
var c = new RegExp("([" + l + "])");
|
4
|
+
function D(t, r, f, n) {
|
5
|
+
if (r) {
|
6
|
+
var a = new I(n);
|
7
|
+
a.selectNumberingPlan(r, f);
|
8
|
+
var i = new RegExp(a.IDDPrefix());
|
9
|
+
if (t.search(i) === 0) {
|
10
|
+
t = t.slice(t.match(i)[0].length);
|
11
|
+
var e = t.match(c);
|
12
|
+
if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
|
13
|
+
return t;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
export {
|
18
|
+
D as default
|
19
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./metadata.cjs"),s=require("./helpers/checkNumberLength.cjs");function u(e,n,r){if(n===void 0&&(n={}),r=new l.default(r),n.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return o(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function o(e,n){switch(s.default(e,n)){case"IS_POSSIBLE":return!0;default:return!1}}exports.default=u;exports.isPossibleNumber=o;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import o from "./metadata.js";
|
2
|
+
import l from "./helpers/checkNumberLength.js";
|
3
|
+
function u(e, n, r) {
|
4
|
+
if (n === void 0 && (n = {}), r = new o(r), n.v2) {
|
5
|
+
if (!e.countryCallingCode)
|
6
|
+
throw new Error("Invalid phone number object passed");
|
7
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
8
|
+
} else {
|
9
|
+
if (!e.phone)
|
10
|
+
return !1;
|
11
|
+
if (e.country) {
|
12
|
+
if (!r.hasCountry(e.country))
|
13
|
+
throw new Error("Unknown country: ".concat(e.country));
|
14
|
+
r.country(e.country);
|
15
|
+
} else {
|
16
|
+
if (!e.countryCallingCode)
|
17
|
+
throw new Error("Invalid phone number object passed");
|
18
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
if (r.possibleLengths())
|
22
|
+
return s(e.phone || e.nationalNumber, r);
|
23
|
+
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
|
24
|
+
return !0;
|
25
|
+
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
26
|
+
}
|
27
|
+
function s(e, n) {
|
28
|
+
switch (l(e, n)) {
|
29
|
+
case "IS_POSSIBLE":
|
30
|
+
return !0;
|
31
|
+
default:
|
32
|
+
return !1;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
export {
|
36
|
+
u as default,
|
37
|
+
s as isPossibleNumber
|
38
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./metadata.cjs"),t=require("./helpers/matchesEntirely.cjs"),a=require("./helpers/getNumberType.cjs");function i(r,u,e){if(u=u||{},e=new l.default(e),e.selectNumberingPlan(r.country,r.countryCallingCode),e.hasTypes())return a.default(r,u,e.metadata)!==void 0;var n=u.v2?r.nationalNumber:r.phone;return t.default(n,e.nationalNumberPattern())}exports.default=i;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import m from "./metadata.js";
|
2
|
+
import o from "./helpers/matchesEntirely.js";
|
3
|
+
import u from "./helpers/getNumberType.js";
|
4
|
+
function b(e, n, r) {
|
5
|
+
if (n = n || {}, r = new m(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
|
6
|
+
return u(e, n, r.metadata) !== void 0;
|
7
|
+
var l = n.v2 ? e.nationalNumber : e.phone;
|
8
|
+
return o(l, r.nationalNumberPattern());
|
9
|
+
}
|
10
|
+
export {
|
11
|
+
b as default
|
12
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("./tools/semver-compare.cjs"),s=require("./helpers/isObject.cjs");function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function h(n,t){for(var e=0;e<t.length;e++){var a=t[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}function o(n,t,e){return t&&h(n.prototype,t),e&&h(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}var d="1.2.0",C="1.7.35",g=" ext. ",p=/^\d+$/,m=function(){function n(t){r(this,n),v(t),this.metadata=t,P.call(this,t)}return o(n,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!=="001"})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var a=this.countryCallingCodes()[e];if(a&&a.length===1&&a[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,a){if(e&&p.test(e)&&(a=e,e=null),e&&e!=="001"){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new c(this.getCountryMetadata(e),this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new c(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var a=this.countryCallingCodes()[e];if(a)return a.length===1&&a[0].length===3?void 0:a}},{key:"getCountryCodeForCallingCode",value:function(e){var a=this.getCountryCodesForCallingCode(e);if(a)return a[0]}},{key:"getNumberingPlanMetadata",value:function(e){var a=this.getCountryCodeForCallingCode(e);if(a)return this.getCountryMetadata(a);if(this.nonGeographic()){var i=this.nonGeographic()[e];if(i)return i}else{var u=this.countryCallingCodes()[e];if(u&&u.length===1&&u[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),n}(),c=function(){function n(t,e){r(this,n),this.globalMetadataObject=e,this.metadata=t,P.call(this,e.metadata)}return o(n,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,a=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return a.map(function(i){return new b(i,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&y(this.types(),e))return new k(y(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?g:this.metadata[13]||g}}]),n}(),b=function(){function n(t,e){r(this,n),this._format=t,this.metadata=e}return o(n,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!F.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),n}(),F=/^\(?\$1\)?$/,k=function(){function n(t,e){r(this,n),this.type=t,this.metadata=e}return o(n,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),n}();function y(n,t){switch(t){case"FIXED_LINE":return n[0];case"MOBILE":return n[1];case"TOLL_FREE":return n[2];case"PREMIUM_RATE":return n[3];case"PERSONAL_NUMBER":return n[4];case"VOICEMAIL":return n[5];case"UAN":return n[6];case"PAGER":return n[7];case"VOIP":return n[8];case"SHARED_COST":return n[9]}}function v(n){if(!n)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!s.default(n)||!s.default(n.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(s.default(n)?"an object of shape: { "+Object.keys(n).join(", ")+" }":"a "+x(n)+": "+n,"."))}var x=function(t){return l(t)};function _(n,t){if(t=new m(t),t.hasCountry(n))return t.country(n).countryCallingCode();throw new Error("Unknown country: ".concat(n))}function N(n,t){return t.countries.hasOwnProperty(n)}function P(n){var t=n.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?f.default(t,d)===-1?this.v2=!0:f.default(t,C)===-1?this.v3=!0:this.v4=!0:this.v1=!0}exports.default=m;exports.getCountryCallingCode=_;exports.isSupportedCountry=N;exports.validateMetadata=v;
|
@@ -0,0 +1,460 @@
|
|
1
|
+
import f from "./tools/semver-compare.js";
|
2
|
+
import s from "./helpers/isObject.js";
|
3
|
+
function l(n) {
|
4
|
+
"@babel/helpers - typeof";
|
5
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
6
|
+
return typeof t;
|
7
|
+
} : function(t) {
|
8
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
9
|
+
}, l(n);
|
10
|
+
}
|
11
|
+
function r(n, t) {
|
12
|
+
if (!(n instanceof t))
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
14
|
+
}
|
15
|
+
function h(n, t) {
|
16
|
+
for (var e = 0; e < t.length; e++) {
|
17
|
+
var a = t[e];
|
18
|
+
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(n, a.key, a);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
function o(n, t, e) {
|
22
|
+
return t && h(n.prototype, t), e && h(n, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
23
|
+
}
|
24
|
+
var v = "1.2.0", P = "1.7.35", g = " ext. ", d = /^\d+$/, C = /* @__PURE__ */ function() {
|
25
|
+
function n(t) {
|
26
|
+
r(this, n), k(t), this.metadata = t, y.call(this, t);
|
27
|
+
}
|
28
|
+
return o(n, [{
|
29
|
+
key: "getCountries",
|
30
|
+
value: function() {
|
31
|
+
return Object.keys(this.metadata.countries).filter(function(e) {
|
32
|
+
return e !== "001";
|
33
|
+
});
|
34
|
+
}
|
35
|
+
}, {
|
36
|
+
key: "getCountryMetadata",
|
37
|
+
value: function(e) {
|
38
|
+
return this.metadata.countries[e];
|
39
|
+
}
|
40
|
+
}, {
|
41
|
+
key: "nonGeographic",
|
42
|
+
value: function() {
|
43
|
+
if (!(this.v1 || this.v2 || this.v3))
|
44
|
+
return this.metadata.nonGeographic || this.metadata.nonGeographical;
|
45
|
+
}
|
46
|
+
}, {
|
47
|
+
key: "hasCountry",
|
48
|
+
value: function(e) {
|
49
|
+
return this.getCountryMetadata(e) !== void 0;
|
50
|
+
}
|
51
|
+
}, {
|
52
|
+
key: "hasCallingCode",
|
53
|
+
value: function(e) {
|
54
|
+
if (this.getCountryCodesForCallingCode(e))
|
55
|
+
return !0;
|
56
|
+
if (this.nonGeographic()) {
|
57
|
+
if (this.nonGeographic()[e])
|
58
|
+
return !0;
|
59
|
+
} else {
|
60
|
+
var a = this.countryCallingCodes()[e];
|
61
|
+
if (a && a.length === 1 && a[0] === "001")
|
62
|
+
return !0;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}, {
|
66
|
+
key: "isNonGeographicCallingCode",
|
67
|
+
value: function(e) {
|
68
|
+
return this.nonGeographic() ? !!this.nonGeographic()[e] : !this.getCountryCodesForCallingCode(e);
|
69
|
+
}
|
70
|
+
// Deprecated.
|
71
|
+
}, {
|
72
|
+
key: "country",
|
73
|
+
value: function(e) {
|
74
|
+
return this.selectNumberingPlan(e);
|
75
|
+
}
|
76
|
+
}, {
|
77
|
+
key: "selectNumberingPlan",
|
78
|
+
value: function(e, a) {
|
79
|
+
if (e && d.test(e) && (a = e, e = null), e && e !== "001") {
|
80
|
+
if (!this.hasCountry(e))
|
81
|
+
throw new Error("Unknown country: ".concat(e));
|
82
|
+
this.numberingPlan = new c(this.getCountryMetadata(e), this);
|
83
|
+
} else if (a) {
|
84
|
+
if (!this.hasCallingCode(a))
|
85
|
+
throw new Error("Unknown calling code: ".concat(a));
|
86
|
+
this.numberingPlan = new c(this.getNumberingPlanMetadata(a), this);
|
87
|
+
} else
|
88
|
+
this.numberingPlan = void 0;
|
89
|
+
return this;
|
90
|
+
}
|
91
|
+
}, {
|
92
|
+
key: "getCountryCodesForCallingCode",
|
93
|
+
value: function(e) {
|
94
|
+
var a = this.countryCallingCodes()[e];
|
95
|
+
if (a)
|
96
|
+
return a.length === 1 && a[0].length === 3 ? void 0 : a;
|
97
|
+
}
|
98
|
+
}, {
|
99
|
+
key: "getCountryCodeForCallingCode",
|
100
|
+
value: function(e) {
|
101
|
+
var a = this.getCountryCodesForCallingCode(e);
|
102
|
+
if (a)
|
103
|
+
return a[0];
|
104
|
+
}
|
105
|
+
}, {
|
106
|
+
key: "getNumberingPlanMetadata",
|
107
|
+
value: function(e) {
|
108
|
+
var a = this.getCountryCodeForCallingCode(e);
|
109
|
+
if (a)
|
110
|
+
return this.getCountryMetadata(a);
|
111
|
+
if (this.nonGeographic()) {
|
112
|
+
var i = this.nonGeographic()[e];
|
113
|
+
if (i)
|
114
|
+
return i;
|
115
|
+
} else {
|
116
|
+
var u = this.countryCallingCodes()[e];
|
117
|
+
if (u && u.length === 1 && u[0] === "001")
|
118
|
+
return this.metadata.countries["001"];
|
119
|
+
}
|
120
|
+
}
|
121
|
+
// Deprecated.
|
122
|
+
}, {
|
123
|
+
key: "countryCallingCode",
|
124
|
+
value: function() {
|
125
|
+
return this.numberingPlan.callingCode();
|
126
|
+
}
|
127
|
+
// Deprecated.
|
128
|
+
}, {
|
129
|
+
key: "IDDPrefix",
|
130
|
+
value: function() {
|
131
|
+
return this.numberingPlan.IDDPrefix();
|
132
|
+
}
|
133
|
+
// Deprecated.
|
134
|
+
}, {
|
135
|
+
key: "defaultIDDPrefix",
|
136
|
+
value: function() {
|
137
|
+
return this.numberingPlan.defaultIDDPrefix();
|
138
|
+
}
|
139
|
+
// Deprecated.
|
140
|
+
}, {
|
141
|
+
key: "nationalNumberPattern",
|
142
|
+
value: function() {
|
143
|
+
return this.numberingPlan.nationalNumberPattern();
|
144
|
+
}
|
145
|
+
// Deprecated.
|
146
|
+
}, {
|
147
|
+
key: "possibleLengths",
|
148
|
+
value: function() {
|
149
|
+
return this.numberingPlan.possibleLengths();
|
150
|
+
}
|
151
|
+
// Deprecated.
|
152
|
+
}, {
|
153
|
+
key: "formats",
|
154
|
+
value: function() {
|
155
|
+
return this.numberingPlan.formats();
|
156
|
+
}
|
157
|
+
// Deprecated.
|
158
|
+
}, {
|
159
|
+
key: "nationalPrefixForParsing",
|
160
|
+
value: function() {
|
161
|
+
return this.numberingPlan.nationalPrefixForParsing();
|
162
|
+
}
|
163
|
+
// Deprecated.
|
164
|
+
}, {
|
165
|
+
key: "nationalPrefixTransformRule",
|
166
|
+
value: function() {
|
167
|
+
return this.numberingPlan.nationalPrefixTransformRule();
|
168
|
+
}
|
169
|
+
// Deprecated.
|
170
|
+
}, {
|
171
|
+
key: "leadingDigits",
|
172
|
+
value: function() {
|
173
|
+
return this.numberingPlan.leadingDigits();
|
174
|
+
}
|
175
|
+
// Deprecated.
|
176
|
+
}, {
|
177
|
+
key: "hasTypes",
|
178
|
+
value: function() {
|
179
|
+
return this.numberingPlan.hasTypes();
|
180
|
+
}
|
181
|
+
// Deprecated.
|
182
|
+
}, {
|
183
|
+
key: "type",
|
184
|
+
value: function(e) {
|
185
|
+
return this.numberingPlan.type(e);
|
186
|
+
}
|
187
|
+
// Deprecated.
|
188
|
+
}, {
|
189
|
+
key: "ext",
|
190
|
+
value: function() {
|
191
|
+
return this.numberingPlan.ext();
|
192
|
+
}
|
193
|
+
}, {
|
194
|
+
key: "countryCallingCodes",
|
195
|
+
value: function() {
|
196
|
+
return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
|
197
|
+
}
|
198
|
+
// Deprecated.
|
199
|
+
}, {
|
200
|
+
key: "chooseCountryByCountryCallingCode",
|
201
|
+
value: function(e) {
|
202
|
+
return this.selectNumberingPlan(e);
|
203
|
+
}
|
204
|
+
}, {
|
205
|
+
key: "hasSelectedNumberingPlan",
|
206
|
+
value: function() {
|
207
|
+
return this.numberingPlan !== void 0;
|
208
|
+
}
|
209
|
+
}]), n;
|
210
|
+
}(), c = /* @__PURE__ */ function() {
|
211
|
+
function n(t, e) {
|
212
|
+
r(this, n), this.globalMetadataObject = e, this.metadata = t, y.call(this, e.metadata);
|
213
|
+
}
|
214
|
+
return o(n, [{
|
215
|
+
key: "callingCode",
|
216
|
+
value: function() {
|
217
|
+
return this.metadata[0];
|
218
|
+
}
|
219
|
+
// Formatting information for regions which share
|
220
|
+
// a country calling code is contained by only one region
|
221
|
+
// for performance reasons. For example, for NANPA region
|
222
|
+
// ("North American Numbering Plan Administration",
|
223
|
+
// which includes USA, Canada, Cayman Islands, Bahamas, etc)
|
224
|
+
// it will be contained in the metadata for `US`.
|
225
|
+
}, {
|
226
|
+
key: "getDefaultCountryMetadataForRegion",
|
227
|
+
value: function() {
|
228
|
+
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
229
|
+
}
|
230
|
+
// Is always present.
|
231
|
+
}, {
|
232
|
+
key: "IDDPrefix",
|
233
|
+
value: function() {
|
234
|
+
if (!(this.v1 || this.v2))
|
235
|
+
return this.metadata[1];
|
236
|
+
}
|
237
|
+
// Is only present when a country supports multiple IDD prefixes.
|
238
|
+
}, {
|
239
|
+
key: "defaultIDDPrefix",
|
240
|
+
value: function() {
|
241
|
+
if (!(this.v1 || this.v2))
|
242
|
+
return this.metadata[12];
|
243
|
+
}
|
244
|
+
}, {
|
245
|
+
key: "nationalNumberPattern",
|
246
|
+
value: function() {
|
247
|
+
return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
|
248
|
+
}
|
249
|
+
// "possible length" data is always present in Google's metadata.
|
250
|
+
}, {
|
251
|
+
key: "possibleLengths",
|
252
|
+
value: function() {
|
253
|
+
if (!this.v1)
|
254
|
+
return this.metadata[this.v2 ? 2 : 3];
|
255
|
+
}
|
256
|
+
}, {
|
257
|
+
key: "_getFormats",
|
258
|
+
value: function(e) {
|
259
|
+
return e[this.v1 ? 2 : this.v2 ? 3 : 4];
|
260
|
+
}
|
261
|
+
// For countries of the same region (e.g. NANPA)
|
262
|
+
// formats are all stored in the "main" country for that region.
|
263
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
264
|
+
}, {
|
265
|
+
key: "formats",
|
266
|
+
value: function() {
|
267
|
+
var e = this, a = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
268
|
+
return a.map(function(i) {
|
269
|
+
return new p(i, e);
|
270
|
+
});
|
271
|
+
}
|
272
|
+
}, {
|
273
|
+
key: "nationalPrefix",
|
274
|
+
value: function() {
|
275
|
+
return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
|
276
|
+
}
|
277
|
+
}, {
|
278
|
+
key: "_getNationalPrefixFormattingRule",
|
279
|
+
value: function(e) {
|
280
|
+
return e[this.v1 ? 4 : this.v2 ? 5 : 6];
|
281
|
+
}
|
282
|
+
// For countries of the same region (e.g. NANPA)
|
283
|
+
// national prefix formatting rule is stored in the "main" country for that region.
|
284
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
285
|
+
}, {
|
286
|
+
key: "nationalPrefixFormattingRule",
|
287
|
+
value: function() {
|
288
|
+
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
|
289
|
+
}
|
290
|
+
}, {
|
291
|
+
key: "_nationalPrefixForParsing",
|
292
|
+
value: function() {
|
293
|
+
return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
|
294
|
+
}
|
295
|
+
}, {
|
296
|
+
key: "nationalPrefixForParsing",
|
297
|
+
value: function() {
|
298
|
+
return this._nationalPrefixForParsing() || this.nationalPrefix();
|
299
|
+
}
|
300
|
+
}, {
|
301
|
+
key: "nationalPrefixTransformRule",
|
302
|
+
value: function() {
|
303
|
+
return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
|
304
|
+
}
|
305
|
+
}, {
|
306
|
+
key: "_getNationalPrefixIsOptionalWhenFormatting",
|
307
|
+
value: function() {
|
308
|
+
return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
|
309
|
+
}
|
310
|
+
// For countries of the same region (e.g. NANPA)
|
311
|
+
// "national prefix is optional when formatting" flag is
|
312
|
+
// stored in the "main" country for that region.
|
313
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
314
|
+
}, {
|
315
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
316
|
+
value: function() {
|
317
|
+
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
|
318
|
+
}
|
319
|
+
}, {
|
320
|
+
key: "leadingDigits",
|
321
|
+
value: function() {
|
322
|
+
return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
|
323
|
+
}
|
324
|
+
}, {
|
325
|
+
key: "types",
|
326
|
+
value: function() {
|
327
|
+
return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
|
328
|
+
}
|
329
|
+
}, {
|
330
|
+
key: "hasTypes",
|
331
|
+
value: function() {
|
332
|
+
return this.types() && this.types().length === 0 ? !1 : !!this.types();
|
333
|
+
}
|
334
|
+
}, {
|
335
|
+
key: "type",
|
336
|
+
value: function(e) {
|
337
|
+
if (this.hasTypes() && m(this.types(), e))
|
338
|
+
return new F(m(this.types(), e), this);
|
339
|
+
}
|
340
|
+
}, {
|
341
|
+
key: "ext",
|
342
|
+
value: function() {
|
343
|
+
return this.v1 || this.v2 ? g : this.metadata[13] || g;
|
344
|
+
}
|
345
|
+
}]), n;
|
346
|
+
}(), p = /* @__PURE__ */ function() {
|
347
|
+
function n(t, e) {
|
348
|
+
r(this, n), this._format = t, this.metadata = e;
|
349
|
+
}
|
350
|
+
return o(n, [{
|
351
|
+
key: "pattern",
|
352
|
+
value: function() {
|
353
|
+
return this._format[0];
|
354
|
+
}
|
355
|
+
}, {
|
356
|
+
key: "format",
|
357
|
+
value: function() {
|
358
|
+
return this._format[1];
|
359
|
+
}
|
360
|
+
}, {
|
361
|
+
key: "leadingDigitsPatterns",
|
362
|
+
value: function() {
|
363
|
+
return this._format[2] || [];
|
364
|
+
}
|
365
|
+
}, {
|
366
|
+
key: "nationalPrefixFormattingRule",
|
367
|
+
value: function() {
|
368
|
+
return this._format[3] || this.metadata.nationalPrefixFormattingRule();
|
369
|
+
}
|
370
|
+
}, {
|
371
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
372
|
+
value: function() {
|
373
|
+
return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
374
|
+
}
|
375
|
+
}, {
|
376
|
+
key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
|
377
|
+
value: function() {
|
378
|
+
return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
379
|
+
}
|
380
|
+
// Checks whether national prefix formatting rule contains national prefix.
|
381
|
+
}, {
|
382
|
+
key: "usesNationalPrefix",
|
383
|
+
value: function() {
|
384
|
+
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
385
|
+
!b.test(this.nationalPrefixFormattingRule()));
|
386
|
+
}
|
387
|
+
}, {
|
388
|
+
key: "internationalFormat",
|
389
|
+
value: function() {
|
390
|
+
return this._format[5] || this.format();
|
391
|
+
}
|
392
|
+
}]), n;
|
393
|
+
}(), b = /^\(?\$1\)?$/, F = /* @__PURE__ */ function() {
|
394
|
+
function n(t, e) {
|
395
|
+
r(this, n), this.type = t, this.metadata = e;
|
396
|
+
}
|
397
|
+
return o(n, [{
|
398
|
+
key: "pattern",
|
399
|
+
value: function() {
|
400
|
+
return this.metadata.v1 ? this.type : this.type[0];
|
401
|
+
}
|
402
|
+
}, {
|
403
|
+
key: "possibleLengths",
|
404
|
+
value: function() {
|
405
|
+
if (!this.metadata.v1)
|
406
|
+
return this.type[1] || this.metadata.possibleLengths();
|
407
|
+
}
|
408
|
+
}]), n;
|
409
|
+
}();
|
410
|
+
function m(n, t) {
|
411
|
+
switch (t) {
|
412
|
+
case "FIXED_LINE":
|
413
|
+
return n[0];
|
414
|
+
case "MOBILE":
|
415
|
+
return n[1];
|
416
|
+
case "TOLL_FREE":
|
417
|
+
return n[2];
|
418
|
+
case "PREMIUM_RATE":
|
419
|
+
return n[3];
|
420
|
+
case "PERSONAL_NUMBER":
|
421
|
+
return n[4];
|
422
|
+
case "VOICEMAIL":
|
423
|
+
return n[5];
|
424
|
+
case "UAN":
|
425
|
+
return n[6];
|
426
|
+
case "PAGER":
|
427
|
+
return n[7];
|
428
|
+
case "VOIP":
|
429
|
+
return n[8];
|
430
|
+
case "SHARED_COST":
|
431
|
+
return n[9];
|
432
|
+
}
|
433
|
+
}
|
434
|
+
function k(n) {
|
435
|
+
if (!n)
|
436
|
+
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
437
|
+
if (!s(n) || !s(n.countries))
|
438
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(s(n) ? "an object of shape: { " + Object.keys(n).join(", ") + " }" : "a " + x(n) + ": " + n, "."));
|
439
|
+
}
|
440
|
+
var x = function(t) {
|
441
|
+
return l(t);
|
442
|
+
};
|
443
|
+
function I(n, t) {
|
444
|
+
if (t = new C(t), t.hasCountry(n))
|
445
|
+
return t.country(n).countryCallingCode();
|
446
|
+
throw new Error("Unknown country: ".concat(n));
|
447
|
+
}
|
448
|
+
function D(n, t) {
|
449
|
+
return t.countries.hasOwnProperty(n);
|
450
|
+
}
|
451
|
+
function y(n) {
|
452
|
+
var t = n.version;
|
453
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? f(t, v) === -1 ? this.v2 = !0 : f(t, P) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
454
|
+
}
|
455
|
+
export {
|
456
|
+
C as default,
|
457
|
+
I as getCountryCallingCode,
|
458
|
+
D as isSupportedCountry,
|
459
|
+
k as validateMetadata
|
460
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("./helpers/isObject.cjs");function c(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),e.push.apply(e,n)}return e}function p(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?c(Object(e),!0).forEach(function(n){b(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function b(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function d(r,t){return _(r)||O(r,t)||m(r,t)||g()}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(r,t){if(r){if(typeof r=="string")return s(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return s(r,t)}}function s(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function O(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var n=[],a=!0,i=!1,u,l;try{for(e=e.call(r);!(a=(u=e.next()).done)&&(n.push(u.value),!(t&&n.length===t));a=!0);}catch(o){i=!0,l=o}finally{try{!a&&e.return!=null&&e.return()}finally{if(i)throw l}}return n}}function _(r){if(Array.isArray(r))return r}function v(r){var t=Array.prototype.slice.call(r),e=d(t,4),n=e[0],a=e[1],i=e[2],u=e[3],l,o,f;if(typeof n=="string")l=n;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")u?(o=i,f=u):(o=void 0,f=i),a&&(o=p({defaultCountry:a},o));else if(y.default(a))i?(o=a,f=i):f=a;else throw new Error("Invalid second argument: ".concat(a));return{text:l,options:o,metadata:f}}exports.default=v;
|