@odus/checkout 1.5.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/createApplePaySession.mutation.d.ts +9 -0
- package/dist/api/createApplePaySession.mutation.d.ts.map +1 -0
- package/dist/api/getCheckoutDetails.query.d.ts +18 -0
- package/dist/api/getCheckoutDetails.query.d.ts.map +1 -0
- package/dist/api/getSupportedPaymentMethods.query.d.ts +7 -0
- package/dist/api/getSupportedPaymentMethods.query.d.ts.map +1 -0
- package/dist/checkout.es.js +65 -65
- package/dist/components/Component.d.ts +70 -0
- package/dist/components/Component.d.ts.map +1 -0
- package/dist/components/ComponentFactory.d.ts +48 -0
- package/dist/components/ComponentFactory.d.ts.map +1 -0
- package/dist/components/checkout/card-elements/CardCvvElement.d.ts +28 -0
- package/dist/components/checkout/card-elements/CardCvvElement.d.ts.map +1 -0
- package/dist/components/checkout/card-elements/CardNumberElement.d.ts +32 -0
- package/dist/components/checkout/card-elements/CardNumberElement.d.ts.map +1 -0
- package/dist/components/checkout/card-elements/index.d.ts +3 -0
- package/dist/components/checkout/card-elements/index.d.ts.map +1 -0
- package/dist/components/checkout/form/AddressSection.d.ts +53 -0
- package/dist/components/checkout/form/AddressSection.d.ts.map +1 -0
- package/dist/components/checkout/form/CardSection.d.ts +113 -0
- package/dist/components/checkout/form/CardSection.d.ts.map +1 -0
- package/dist/components/checkout/form/CardholderSection.d.ts +42 -0
- package/dist/components/checkout/form/CardholderSection.d.ts.map +1 -0
- package/dist/components/checkout/form/EmailField.d.ts +27 -0
- package/dist/components/checkout/form/EmailField.d.ts.map +1 -0
- package/dist/components/checkout/form/Form.d.ts +88 -0
- package/dist/components/checkout/form/Form.d.ts.map +1 -0
- package/dist/components/checkout/form/FormComponentManager.d.ts +116 -0
- package/dist/components/checkout/form/FormComponentManager.d.ts.map +1 -0
- package/dist/components/checkout/form/FormEventHandler.d.ts +34 -0
- package/dist/components/checkout/form/FormEventHandler.d.ts.map +1 -0
- package/dist/components/checkout/form/FormStateCoordinator.d.ts +60 -0
- package/dist/components/checkout/form/FormStateCoordinator.d.ts.map +1 -0
- package/dist/components/checkout/form/FormUIManager.d.ts +34 -0
- package/dist/components/checkout/form/FormUIManager.d.ts.map +1 -0
- package/dist/components/checkout/form/PaymentMethods.d.ts +42 -0
- package/dist/components/checkout/form/PaymentMethods.d.ts.map +1 -0
- package/dist/components/checkout/form/PaymentSeparator.d.ts +11 -0
- package/dist/components/checkout/form/PaymentSeparator.d.ts.map +1 -0
- package/dist/components/checkout/form/PhoneCountrySelector.d.ts +25 -0
- package/dist/components/checkout/form/PhoneCountrySelector.d.ts.map +1 -0
- package/dist/components/checkout/form/PhoneNumberField.d.ts +51 -0
- package/dist/components/checkout/form/PhoneNumberField.d.ts.map +1 -0
- package/dist/components/checkout/form/SubmitButton.d.ts +16 -0
- package/dist/components/checkout/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/checkout/form/index.d.ts +10 -0
- package/dist/components/checkout/form/index.d.ts.map +1 -0
- package/dist/components/checkout/index.d.ts +2 -0
- package/dist/components/checkout/index.d.ts.map +1 -0
- package/dist/components/common/Alert.d.ts +12 -0
- package/dist/components/common/Alert.d.ts.map +1 -0
- package/dist/components/common/Button.d.ts +24 -0
- package/dist/components/common/Button.d.ts.map +1 -0
- package/dist/components/common/CountryDialCodeDropdown.d.ts +45 -0
- package/dist/components/common/CountryDialCodeDropdown.d.ts.map +1 -0
- package/dist/components/common/FormSkeleton.d.ts +8 -0
- package/dist/components/common/FormSkeleton.d.ts.map +1 -0
- package/dist/components/common/HelperText.d.ts +15 -0
- package/dist/components/common/HelperText.d.ts.map +1 -0
- package/dist/components/common/Input.d.ts +37 -0
- package/dist/components/common/Input.d.ts.map +1 -0
- package/dist/components/common/InputLabel.d.ts +15 -0
- package/dist/components/common/InputLabel.d.ts.map +1 -0
- package/dist/components/common/Select.d.ts +54 -0
- package/dist/components/common/Select.d.ts.map +1 -0
- package/dist/components/common/Spinner.d.ts +11 -0
- package/dist/components/common/Spinner.d.ts.map +1 -0
- package/dist/components/common/index.d.ts +8 -0
- package/dist/components/common/index.d.ts.map +1 -0
- package/dist/components/payment-methods/applePay/ApplePayButton.d.ts +43 -0
- package/dist/components/payment-methods/applePay/ApplePayButton.d.ts.map +1 -0
- package/dist/components/payment-methods/index.d.ts +3 -0
- package/dist/components/payment-methods/index.d.ts.map +1 -0
- package/dist/components/payment-methods/paypal/PaypalButton.d.ts +21 -0
- package/dist/components/payment-methods/paypal/PaypalButton.d.ts.map +1 -0
- package/dist/core/api/CheckoutAPI.service.d.ts +36 -0
- package/dist/core/api/CheckoutAPI.service.d.ts.map +1 -0
- package/dist/core/constants/emailDomains.constant.d.ts +2 -0
- package/dist/core/constants/emailDomains.constant.d.ts.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/state/CheckoutState.service.d.ts +13 -0
- package/dist/core/state/CheckoutState.service.d.ts.map +1 -0
- package/dist/core/validation/index.d.ts +2 -0
- package/dist/core/validation/index.d.ts.map +1 -0
- package/dist/core/vgs/VGSCollectService.d.ts +102 -0
- package/dist/core/vgs/VGSCollectService.d.ts.map +1 -0
- package/dist/core/vgs/index.d.ts +4 -0
- package/dist/core/vgs/index.d.ts.map +1 -0
- package/dist/core/vgs/vgs.constants.d.ts +4 -0
- package/dist/core/vgs/vgs.constants.d.ts.map +1 -0
- package/dist/core/vgs/vgsFieldErrors.d.ts +8 -0
- package/dist/core/vgs/vgsFieldErrors.d.ts.map +1 -0
- package/dist/elements/AddressCityElement.d.ts +12 -0
- package/dist/elements/AddressCityElement.d.ts.map +1 -0
- package/dist/elements/AddressCountryElement.d.ts +14 -0
- package/dist/elements/AddressCountryElement.d.ts.map +1 -0
- package/dist/elements/AddressFirstNameElement.d.ts +12 -0
- package/dist/elements/AddressFirstNameElement.d.ts.map +1 -0
- package/dist/elements/AddressLastNameElement.d.ts +12 -0
- package/dist/elements/AddressLastNameElement.d.ts.map +1 -0
- package/dist/elements/AddressStateElement.d.ts +16 -0
- package/dist/elements/AddressStateElement.d.ts.map +1 -0
- package/dist/elements/AddressStreetElement.d.ts +12 -0
- package/dist/elements/AddressStreetElement.d.ts.map +1 -0
- package/dist/elements/AddressZipCodeElement.d.ts +12 -0
- package/dist/elements/AddressZipCodeElement.d.ts.map +1 -0
- package/dist/elements/ApplePayElement.d.ts +41 -0
- package/dist/elements/ApplePayElement.d.ts.map +1 -0
- package/dist/elements/BaseElement.d.ts +28 -0
- package/dist/elements/BaseElement.d.ts.map +1 -0
- package/dist/elements/CardElement.d.ts +32 -0
- package/dist/elements/CardElement.d.ts.map +1 -0
- package/dist/elements/CardholderElement.d.ts +12 -0
- package/dist/elements/CardholderElement.d.ts.map +1 -0
- package/dist/elements/EmailElement.d.ts +12 -0
- package/dist/elements/EmailElement.d.ts.map +1 -0
- package/dist/elements/ErrorElement.d.ts +13 -0
- package/dist/elements/ErrorElement.d.ts.map +1 -0
- package/dist/elements/OdusElements.d.ts +79 -0
- package/dist/elements/OdusElements.d.ts.map +1 -0
- package/dist/elements/PayPalElement.d.ts +17 -0
- package/dist/elements/PayPalElement.d.ts.map +1 -0
- package/dist/elements/PhoneElement.d.ts +13 -0
- package/dist/elements/PhoneElement.d.ts.map +1 -0
- package/dist/elements/card/NativeCardAdapter.d.ts +35 -0
- package/dist/elements/card/NativeCardAdapter.d.ts.map +1 -0
- package/dist/elements/card/VgsCardAdapter.d.ts +31 -0
- package/dist/elements/card/VgsCardAdapter.d.ts.map +1 -0
- package/dist/elements/cardElement.constants.d.ts +5 -0
- package/dist/elements/cardElement.constants.d.ts.map +1 -0
- package/dist/elements/index.d.ts +19 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/theme/index.d.ts +26 -0
- package/dist/elements/theme/index.d.ts.map +1 -0
- package/dist/elements/types/CardPayload.type.d.ts +13 -0
- package/dist/elements/types/CardPayload.type.d.ts.map +1 -0
- package/dist/elements/types/index.d.ts +65 -0
- package/dist/elements/types/index.d.ts.map +1 -0
- package/dist/elements.es.js +278 -223
- package/dist/factories/createCheckoutProfile.d.ts +25 -0
- package/dist/factories/createCheckoutProfile.d.ts.map +1 -0
- package/dist/factories/createForm.d.ts +21 -0
- package/dist/factories/createForm.d.ts.map +1 -0
- package/dist/factories/createTranslation.d.ts +13 -0
- package/dist/factories/createTranslation.d.ts.map +1 -0
- package/dist/factories/index.d.ts +4 -0
- package/dist/factories/index.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/locales/cs.json.d.ts +77 -0
- package/dist/locales/de.json.d.ts +77 -0
- package/dist/locales/en.json.d.ts +77 -0
- package/dist/locales/es.json.d.ts +77 -0
- package/dist/locales/fr.json.d.ts +77 -0
- package/dist/locales/it.json.d.ts +77 -0
- package/dist/locales/nl.json.d.ts +77 -0
- package/dist/locales/pl.json.d.ts +77 -0
- package/dist/locales/pt.json.d.ts +77 -0
- package/dist/locales/sk.json.d.ts +77 -0
- package/dist/locales/tr.json.d.ts +77 -0
- package/dist/package.json +2 -2
- package/dist/phone.js +808 -786
- package/dist/services/checkout/Checkout.service.d.ts +30 -0
- package/dist/services/checkout/Checkout.service.d.ts.map +1 -0
- package/dist/services/checkout/CheckoutAPI.service.d.ts +2 -0
- package/dist/services/checkout/CheckoutAPI.service.d.ts.map +1 -0
- package/dist/services/checkout/CheckoutForm.service.d.ts +53 -0
- package/dist/services/checkout/CheckoutForm.service.d.ts.map +1 -0
- package/dist/services/checkout/CheckoutState.service.d.ts +2 -0
- package/dist/services/checkout/CheckoutState.service.d.ts.map +1 -0
- package/dist/services/i18n/Translation.service.d.ts +15 -0
- package/dist/services/i18n/Translation.service.d.ts.map +1 -0
- package/dist/services/telemetry/Telemetry.service.d.ts +15 -0
- package/dist/services/telemetry/Telemetry.service.d.ts.map +1 -0
- package/dist/shared.js +27 -24
- package/dist/state/EventBus.d.ts +33 -0
- package/dist/state/EventBus.d.ts.map +1 -0
- package/dist/state/Store.d.ts +42 -0
- package/dist/state/Store.d.ts.map +1 -0
- package/dist/state/TranslationStore.d.ts +28 -0
- package/dist/state/TranslationStore.d.ts.map +1 -0
- package/dist/state/index.d.ts +4 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/types/api/ApiError.type.d.ts +7 -0
- package/dist/types/api/ApiError.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutCallback.type.d.ts +8 -0
- package/dist/types/checkout/CheckoutCallback.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutConfig.type.d.ts +128 -0
- package/dist/types/checkout/CheckoutConfig.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutInstance.type.d.ts +16 -0
- package/dist/types/checkout/CheckoutInstance.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutProfile.type.d.ts +77 -0
- package/dist/types/checkout/CheckoutProfile.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutState.type.d.ts +5 -0
- package/dist/types/checkout/CheckoutState.type.d.ts.map +1 -0
- package/dist/types/common/FormData.type.d.ts +42 -0
- package/dist/types/common/FormData.type.d.ts.map +1 -0
- package/dist/types/common/FormErrors.type.d.ts +9 -0
- package/dist/types/common/FormErrors.type.d.ts.map +1 -0
- package/dist/types/common/FormTouched.type.d.ts +9 -0
- package/dist/types/common/FormTouched.type.d.ts.map +1 -0
- package/dist/types/common/Locale.type.d.ts +2 -0
- package/dist/types/common/Locale.type.d.ts.map +1 -0
- package/dist/types/common/createIframeConfig.type.d.ts +2 -0
- package/dist/types/common/createIframeConfig.type.d.ts.map +1 -0
- package/dist/types/payment/CardType.type.d.ts +2 -0
- package/dist/types/payment/CardType.type.d.ts.map +1 -0
- package/dist/types/payment/Payment.type.d.ts +126 -0
- package/dist/types/payment/Payment.type.d.ts.map +1 -0
- package/dist/types/payment/PaymentMethod.type.d.ts +15 -0
- package/dist/types/payment/PaymentMethod.type.d.ts.map +1 -0
- package/dist/types/payment/PaymentResult.type.d.ts +2 -0
- package/dist/types/payment/PaymentResult.type.d.ts.map +1 -0
- package/dist/types/telemetry/TelemetryEvents.type.d.ts +62 -0
- package/dist/types/telemetry/TelemetryEvents.type.d.ts.map +1 -0
- package/dist/utils/applePay/isApplePayAvailable.util.d.ts +2 -0
- package/dist/utils/applePay/isApplePayAvailable.util.d.ts.map +1 -0
- package/dist/utils/card/detectCardBrand.d.ts +3 -0
- package/dist/utils/card/detectCardBrand.d.ts.map +1 -0
- package/dist/utils/card/luhnCheck.d.ts +7 -0
- package/dist/utils/card/luhnCheck.d.ts.map +1 -0
- package/dist/utils/country/countryNames.d.ts +36 -0
- package/dist/utils/country/countryNames.d.ts.map +1 -0
- package/dist/utils/dom/appendGoogleFont.d.ts +7 -0
- package/dist/utils/dom/appendGoogleFont.d.ts.map +1 -0
- package/dist/utils/dom/createSyntheticEvent.util.d.ts +12 -0
- package/dist/utils/dom/createSyntheticEvent.util.d.ts.map +1 -0
- package/dist/utils/dom/fetchGoogleFontFace.d.ts +2 -0
- package/dist/utils/dom/fetchGoogleFontFace.d.ts.map +1 -0
- package/dist/utils/dom/index.d.ts +5 -0
- package/dist/utils/dom/index.d.ts.map +1 -0
- package/dist/utils/dom/restoreCursorAfterFormat.util.d.ts +2 -0
- package/dist/utils/dom/restoreCursorAfterFormat.util.d.ts.map +1 -0
- package/dist/utils/focus/FocusManager.d.ts +57 -0
- package/dist/utils/focus/FocusManager.d.ts.map +1 -0
- package/dist/utils/focus/index.d.ts +2 -0
- package/dist/utils/focus/index.d.ts.map +1 -0
- package/dist/utils/formatters/formatters.d.ts +6 -0
- package/dist/utils/formatters/formatters.d.ts.map +1 -0
- package/dist/utils/helpers/checkForMissingDot.util.d.ts +2 -0
- package/dist/utils/helpers/checkForMissingDot.util.d.ts.map +1 -0
- package/dist/utils/helpers/environments/getBaseUrl.dev.d.ts +2 -0
- package/dist/utils/helpers/environments/getBaseUrl.dev.d.ts.map +1 -0
- package/dist/utils/helpers/environments/getBaseUrl.prod.d.ts +3 -0
- package/dist/utils/helpers/environments/getBaseUrl.prod.d.ts.map +1 -0
- package/dist/utils/helpers/findSimilarDomains.util.d.ts +2 -0
- package/dist/utils/helpers/findSimilarDomains.util.d.ts.map +1 -0
- package/dist/utils/helpers/getBaseUrl.util.d.ts +3 -0
- package/dist/utils/helpers/getBaseUrl.util.d.ts.map +1 -0
- package/dist/utils/helpers/getTelemetryUrl.util.d.ts +3 -0
- package/dist/utils/helpers/getTelemetryUrl.util.d.ts.map +1 -0
- package/dist/utils/helpers/hasAddressConfiguration.util.d.ts +10 -0
- package/dist/utils/helpers/hasAddressConfiguration.util.d.ts.map +1 -0
- package/dist/utils/helpers/isLocalhost.util.d.ts +2 -0
- package/dist/utils/helpers/isLocalhost.util.d.ts.map +1 -0
- package/dist/utils/helpers/levenshteinDistance.util.d.ts +2 -0
- package/dist/utils/helpers/levenshteinDistance.util.d.ts.map +1 -0
- package/dist/utils/helpers/styleUtils.d.ts +20 -0
- package/dist/utils/helpers/styleUtils.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/phone/countryDialCodes.d.ts +23 -0
- package/dist/utils/phone/countryDialCodes.d.ts.map +1 -0
- package/dist/utils/phone/lazyPhoneModule.d.ts +6 -0
- package/dist/utils/phone/lazyPhoneModule.d.ts.map +1 -0
- package/dist/utils/phone/phoneBundle.d.ts +4 -0
- package/dist/utils/phone/phoneBundle.d.ts.map +1 -0
- package/dist/utils/phone/phoneFormatter.d.ts +32 -0
- package/dist/utils/phone/phoneFormatter.d.ts.map +1 -0
- package/dist/utils/state/stateNames.d.ts +20 -0
- package/dist/utils/state/stateNames.d.ts.map +1 -0
- package/dist/utils/validation/createValidationSchema.d.ts +21 -0
- package/dist/utils/validation/createValidationSchema.d.ts.map +1 -0
- package/dist/utils/validation/emailValidator.d.ts +15 -0
- package/dist/utils/validation/emailValidator.d.ts.map +1 -0
- package/dist/utils/validation/index.d.ts +3 -0
- package/dist/utils/validation/index.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/phone.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e,
|
|
1
|
+
import { _ as e, d as t, f as n, g as r, p as i, v as a, x as o } from "./shared.js";
|
|
2
2
|
//#region libs/checkout/src/utils/dom/restoreCursorAfterFormat.util.ts
|
|
3
3
|
var s = (e, t, n) => {
|
|
4
4
|
let r = 0, i = n.length;
|
|
@@ -868,7 +868,7 @@ var s = (e, t, n) => {
|
|
|
868
868
|
BF: [
|
|
869
869
|
"226",
|
|
870
870
|
"00",
|
|
871
|
-
"
|
|
871
|
+
"[024-7]\\d{7}",
|
|
872
872
|
[8],
|
|
873
873
|
[[
|
|
874
874
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -979,7 +979,7 @@ var s = (e, t, n) => {
|
|
|
979
979
|
BL: [
|
|
980
980
|
"590",
|
|
981
981
|
"00",
|
|
982
|
-
"
|
|
982
|
+
"7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
983
983
|
[9],
|
|
984
984
|
0,
|
|
985
985
|
"0",
|
|
@@ -989,10 +989,10 @@ var s = (e, t, n) => {
|
|
|
989
989
|
0,
|
|
990
990
|
0,
|
|
991
991
|
[
|
|
992
|
-
["
|
|
993
|
-
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])
|
|
992
|
+
["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],
|
|
993
|
+
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],
|
|
994
994
|
["80[0-5]\\d{6}"],
|
|
995
|
-
|
|
995
|
+
["8[129]\\d{7}"],
|
|
996
996
|
0,
|
|
997
997
|
0,
|
|
998
998
|
0,
|
|
@@ -1027,18 +1027,18 @@ var s = (e, t, n) => {
|
|
|
1027
1027
|
BO: [
|
|
1028
1028
|
"591",
|
|
1029
1029
|
"00(?:1\\d)?",
|
|
1030
|
-
"
|
|
1030
|
+
"(?:[2-7]\\d\\d|8001)\\d{5}",
|
|
1031
1031
|
[8, 9],
|
|
1032
1032
|
[
|
|
1033
1033
|
[
|
|
1034
1034
|
"(\\d)(\\d{7})",
|
|
1035
1035
|
"$1 $2",
|
|
1036
|
-
["[
|
|
1036
|
+
["[23]|4[46]|50"]
|
|
1037
1037
|
],
|
|
1038
1038
|
[
|
|
1039
1039
|
"(\\d{8})",
|
|
1040
1040
|
"$1",
|
|
1041
|
-
["[
|
|
1041
|
+
["[5-7]"]
|
|
1042
1042
|
],
|
|
1043
1043
|
[
|
|
1044
1044
|
"(\\d{3})(\\d{2})(\\d{4})",
|
|
@@ -1357,12 +1357,12 @@ var s = (e, t, n) => {
|
|
|
1357
1357
|
CF: [
|
|
1358
1358
|
"236",
|
|
1359
1359
|
"00",
|
|
1360
|
-
"(?:[27]\\d
|
|
1360
|
+
"8776\\d{4}|(?:[27]\\d|61)\\d{6}",
|
|
1361
1361
|
[8],
|
|
1362
1362
|
[[
|
|
1363
1363
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
1364
1364
|
"$1 $2 $3 $4",
|
|
1365
|
-
["[
|
|
1365
|
+
["[26-8]"]
|
|
1366
1366
|
]]
|
|
1367
1367
|
],
|
|
1368
1368
|
CG: [
|
|
@@ -2183,12 +2183,12 @@ var s = (e, t, n) => {
|
|
|
2183
2183
|
ET: [
|
|
2184
2184
|
"251",
|
|
2185
2185
|
"00",
|
|
2186
|
-
"(?:11|[2-
|
|
2186
|
+
"(?:11|[2-57-9]\\d)\\d{7}",
|
|
2187
2187
|
[9],
|
|
2188
2188
|
[[
|
|
2189
2189
|
"(\\d{2})(\\d{3})(\\d{4})",
|
|
2190
2190
|
"$1 $2 $3",
|
|
2191
|
-
["[1-
|
|
2191
|
+
["[1-57-9]"],
|
|
2192
2192
|
"0$1"
|
|
2193
2193
|
]],
|
|
2194
2194
|
"0"
|
|
@@ -2491,12 +2491,12 @@ var s = (e, t, n) => {
|
|
|
2491
2491
|
GF: [
|
|
2492
2492
|
"594",
|
|
2493
2493
|
"00",
|
|
2494
|
-
"(?:
|
|
2494
|
+
"(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",
|
|
2495
2495
|
[9],
|
|
2496
2496
|
[[
|
|
2497
2497
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
2498
2498
|
"$1 $2 $3 $4",
|
|
2499
|
-
["[5-7]|9[47]"],
|
|
2499
|
+
["[5-7]|80[6-9]|9[47]"],
|
|
2500
2500
|
"0$1"
|
|
2501
2501
|
], [
|
|
2502
2502
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -2537,7 +2537,7 @@ var s = (e, t, n) => {
|
|
|
2537
2537
|
GH: [
|
|
2538
2538
|
"233",
|
|
2539
2539
|
"00",
|
|
2540
|
-
"
|
|
2540
|
+
"[235]\\d{8}|800\\d{5,6}",
|
|
2541
2541
|
[8, 9],
|
|
2542
2542
|
[[
|
|
2543
2543
|
"(\\d{3})(\\d{5})",
|
|
@@ -2547,7 +2547,7 @@ var s = (e, t, n) => {
|
|
|
2547
2547
|
], [
|
|
2548
2548
|
"(\\d{2})(\\d{3})(\\d{4})",
|
|
2549
2549
|
"$1 $2 $3",
|
|
2550
|
-
["[
|
|
2550
|
+
["[2358]"],
|
|
2551
2551
|
"0$1"
|
|
2552
2552
|
]],
|
|
2553
2553
|
"0"
|
|
@@ -2603,12 +2603,12 @@ var s = (e, t, n) => {
|
|
|
2603
2603
|
GP: [
|
|
2604
2604
|
"590",
|
|
2605
2605
|
"00",
|
|
2606
|
-
"
|
|
2606
|
+
"7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
2607
2607
|
[9],
|
|
2608
2608
|
[[
|
|
2609
2609
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
2610
2610
|
"$1 $2 $3 $4",
|
|
2611
|
-
["[5-79]"],
|
|
2611
|
+
["[5-79]|80[6-9]"],
|
|
2612
2612
|
"0$1"
|
|
2613
2613
|
], [
|
|
2614
2614
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -2623,10 +2623,10 @@ var s = (e, t, n) => {
|
|
|
2623
2623
|
0,
|
|
2624
2624
|
0,
|
|
2625
2625
|
[
|
|
2626
|
-
["
|
|
2627
|
-
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])
|
|
2626
|
+
["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],
|
|
2627
|
+
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],
|
|
2628
2628
|
["80[0-5]\\d{6}"],
|
|
2629
|
-
|
|
2629
|
+
["8[129]\\d{7}"],
|
|
2630
2630
|
0,
|
|
2631
2631
|
0,
|
|
2632
2632
|
0,
|
|
@@ -3153,9 +3153,9 @@ var s = (e, t, n) => {
|
|
|
3153
3153
|
"(\\d{3})(\\d{3})(\\d{4})",
|
|
3154
3154
|
"$1 $2 $3",
|
|
3155
3155
|
[
|
|
3156
|
-
"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|
|
|
3157
|
-
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:
|
|
3158
|
-
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:
|
|
3156
|
+
"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]",
|
|
3157
|
+
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]",
|
|
3158
|
+
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"
|
|
3159
3159
|
],
|
|
3160
3160
|
"0$1",
|
|
3161
3161
|
1
|
|
@@ -3164,9 +3164,9 @@ var s = (e, t, n) => {
|
|
|
3164
3164
|
"(\\d{4})(\\d{3})(\\d{3})",
|
|
3165
3165
|
"$1 $2 $3",
|
|
3166
3166
|
[
|
|
3167
|
-
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|
|
|
3168
|
-
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[
|
|
3169
|
-
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[
|
|
3167
|
+
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807",
|
|
3168
|
+
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]",
|
|
3169
|
+
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"
|
|
3170
3170
|
],
|
|
3171
3171
|
"0$1",
|
|
3172
3172
|
1
|
|
@@ -3769,7 +3769,7 @@ var s = (e, t, n) => {
|
|
|
3769
3769
|
KZ: [
|
|
3770
3770
|
"7",
|
|
3771
3771
|
"810",
|
|
3772
|
-
"
|
|
3772
|
+
"8\\d{13}|[78]\\d{9}",
|
|
3773
3773
|
[10, 14],
|
|
3774
3774
|
0,
|
|
3775
3775
|
"8",
|
|
@@ -3777,7 +3777,7 @@ var s = (e, t, n) => {
|
|
|
3777
3777
|
0,
|
|
3778
3778
|
0,
|
|
3779
3779
|
0,
|
|
3780
|
-
"
|
|
3780
|
+
"7",
|
|
3781
3781
|
0,
|
|
3782
3782
|
"8~10"
|
|
3783
3783
|
],
|
|
@@ -4005,7 +4005,12 @@ var s = (e, t, n) => {
|
|
|
4005
4005
|
[
|
|
4006
4006
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
|
|
4007
4007
|
"$1 $2 $3 $4",
|
|
4008
|
-
["
|
|
4008
|
+
["20"]
|
|
4009
|
+
],
|
|
4010
|
+
[
|
|
4011
|
+
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
|
|
4012
|
+
"$1 $2 $3 $4",
|
|
4013
|
+
["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]
|
|
4009
4014
|
],
|
|
4010
4015
|
[
|
|
4011
4016
|
"(\\d{3})(\\d{2})(\\d{3})",
|
|
@@ -4025,12 +4030,7 @@ var s = (e, t, n) => {
|
|
|
4025
4030
|
[
|
|
4026
4031
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
|
|
4027
4032
|
"$1 $2 $3 $4 $5",
|
|
4028
|
-
["
|
|
4029
|
-
],
|
|
4030
|
-
[
|
|
4031
|
-
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
|
|
4032
|
-
"$1 $2 $3 $4",
|
|
4033
|
-
["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]
|
|
4033
|
+
["20"]
|
|
4034
4034
|
]
|
|
4035
4035
|
],
|
|
4036
4036
|
0,
|
|
@@ -4162,7 +4162,7 @@ var s = (e, t, n) => {
|
|
|
4162
4162
|
MF: [
|
|
4163
4163
|
"590",
|
|
4164
4164
|
"00",
|
|
4165
|
-
"
|
|
4165
|
+
"7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
4166
4166
|
[9],
|
|
4167
4167
|
0,
|
|
4168
4168
|
"0",
|
|
@@ -4172,10 +4172,10 @@ var s = (e, t, n) => {
|
|
|
4172
4172
|
0,
|
|
4173
4173
|
0,
|
|
4174
4174
|
[
|
|
4175
|
-
["
|
|
4176
|
-
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])
|
|
4175
|
+
["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],
|
|
4176
|
+
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],
|
|
4177
4177
|
["80[0-5]\\d{6}"],
|
|
4178
|
-
|
|
4178
|
+
["8[129]\\d{7}"],
|
|
4179
4179
|
0,
|
|
4180
4180
|
0,
|
|
4181
4181
|
0,
|
|
@@ -4331,7 +4331,7 @@ var s = (e, t, n) => {
|
|
|
4331
4331
|
[
|
|
4332
4332
|
"(\\d{2})(\\d{2})(\\d{4})",
|
|
4333
4333
|
"$1 $2 $3",
|
|
4334
|
-
["[
|
|
4334
|
+
["11|2[16]"],
|
|
4335
4335
|
"0$1"
|
|
4336
4336
|
],
|
|
4337
4337
|
[
|
|
@@ -4391,7 +4391,7 @@ var s = (e, t, n) => {
|
|
|
4391
4391
|
MQ: [
|
|
4392
4392
|
"596",
|
|
4393
4393
|
"00",
|
|
4394
|
-
"
|
|
4394
|
+
"7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
4395
4395
|
[9],
|
|
4396
4396
|
[[
|
|
4397
4397
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -4504,26 +4504,17 @@ var s = (e, t, n) => {
|
|
|
4504
4504
|
"00",
|
|
4505
4505
|
"(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",
|
|
4506
4506
|
[7, 9],
|
|
4507
|
-
[
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
"0$1"
|
|
4519
|
-
],
|
|
4520
|
-
[
|
|
4521
|
-
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
4522
|
-
"$1 $2 $3 $4",
|
|
4523
|
-
["[137-9]"],
|
|
4524
|
-
"0$1"
|
|
4525
|
-
]
|
|
4526
|
-
],
|
|
4507
|
+
[[
|
|
4508
|
+
"(\\d)(\\d{3})(\\d{3})",
|
|
4509
|
+
"$1 $2 $3",
|
|
4510
|
+
["1[2-9]"],
|
|
4511
|
+
"0$1"
|
|
4512
|
+
], [
|
|
4513
|
+
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
4514
|
+
"$1 $2 $3 $4",
|
|
4515
|
+
["[1-37-9]"],
|
|
4516
|
+
"0$1"
|
|
4517
|
+
]],
|
|
4527
4518
|
"0"
|
|
4528
4519
|
],
|
|
4529
4520
|
MX: [
|
|
@@ -5226,7 +5217,7 @@ var s = (e, t, n) => {
|
|
|
5226
5217
|
[
|
|
5227
5218
|
"(\\d{2})(\\d{2})(\\d{3})",
|
|
5228
5219
|
"$1 $2 $3",
|
|
5229
|
-
["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]
|
|
5220
|
+
["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]
|
|
5230
5221
|
],
|
|
5231
5222
|
[
|
|
5232
5223
|
"(\\d{3})(\\d{2})(\\d{2,3})",
|
|
@@ -5253,13 +5244,13 @@ var s = (e, t, n) => {
|
|
|
5253
5244
|
PM: [
|
|
5254
5245
|
"508",
|
|
5255
5246
|
"00",
|
|
5256
|
-
"[
|
|
5247
|
+
"[78]\\d{8}|[2-9]\\d{5}",
|
|
5257
5248
|
[6, 9],
|
|
5258
5249
|
[
|
|
5259
5250
|
[
|
|
5260
5251
|
"(\\d{2})(\\d{2})(\\d{2})",
|
|
5261
5252
|
"$1 $2 $3",
|
|
5262
|
-
["[
|
|
5253
|
+
["[2-9]"],
|
|
5263
5254
|
"0$1"
|
|
5264
5255
|
],
|
|
5265
5256
|
[
|
|
@@ -5445,7 +5436,7 @@ var s = (e, t, n) => {
|
|
|
5445
5436
|
0,
|
|
5446
5437
|
0,
|
|
5447
5438
|
[
|
|
5448
|
-
["
|
|
5439
|
+
["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],
|
|
5449
5440
|
["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],
|
|
5450
5441
|
["80\\d{7}"],
|
|
5451
5442
|
["89[1-37-9]\\d{6}"],
|
|
@@ -5578,14 +5569,8 @@ var s = (e, t, n) => {
|
|
|
5578
5569
|
0,
|
|
5579
5570
|
0,
|
|
5580
5571
|
0,
|
|
5572
|
+
"[3489]",
|
|
5581
5573
|
0,
|
|
5582
|
-
[
|
|
5583
|
-
["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]],
|
|
5584
|
-
["9\\d{9}", [10]],
|
|
5585
|
-
["8(?:0[04]|108\\d{3})\\d{7}"],
|
|
5586
|
-
["80[39]\\d{7}", [10]],
|
|
5587
|
-
["808\\d{7}", [10]]
|
|
5588
|
-
],
|
|
5589
5574
|
"8~10"
|
|
5590
5575
|
],
|
|
5591
5576
|
RW: [
|
|
@@ -5870,7 +5855,7 @@ var s = (e, t, n) => {
|
|
|
5870
5855
|
[
|
|
5871
5856
|
"(\\d{2})(\\d{3})(\\d{3})",
|
|
5872
5857
|
"$1 $2 $3",
|
|
5873
|
-
["[37][01]|4[
|
|
5858
|
+
["[37][01]|4[013]|51|6"],
|
|
5874
5859
|
"0$1"
|
|
5875
5860
|
],
|
|
5876
5861
|
[
|
|
@@ -5926,7 +5911,7 @@ var s = (e, t, n) => {
|
|
|
5926
5911
|
],
|
|
5927
5912
|
[
|
|
5928
5913
|
"(\\d)(\\d{3})(\\d{3})(\\d{2})",
|
|
5929
|
-
"$1
|
|
5914
|
+
"$1 $2 $3 $4",
|
|
5930
5915
|
["2"],
|
|
5931
5916
|
"0$1"
|
|
5932
5917
|
],
|
|
@@ -5938,7 +5923,7 @@ var s = (e, t, n) => {
|
|
|
5938
5923
|
],
|
|
5939
5924
|
[
|
|
5940
5925
|
"(\\d{2})(\\d{3})(\\d{2})(\\d{2})",
|
|
5941
|
-
"$1
|
|
5926
|
+
"$1 $2 $3 $4",
|
|
5942
5927
|
["[3-5]"],
|
|
5943
5928
|
"0$1"
|
|
5944
5929
|
]
|
|
@@ -6019,19 +6004,19 @@ var s = (e, t, n) => {
|
|
|
6019
6004
|
["[15]|2[0-79]|3[0-46-8]|4[0-7]"]
|
|
6020
6005
|
],
|
|
6021
6006
|
[
|
|
6022
|
-
"(\\d)(\\d{7})",
|
|
6007
|
+
"(\\d{2})(\\d{5,7})",
|
|
6023
6008
|
"$1 $2",
|
|
6024
|
-
["
|
|
6009
|
+
["1|28|9[2-9]"]
|
|
6025
6010
|
],
|
|
6026
6011
|
[
|
|
6027
|
-
"(\\d
|
|
6028
|
-
"$1 $2
|
|
6029
|
-
["[
|
|
6012
|
+
"(\\d)(\\d{7})",
|
|
6013
|
+
"$1 $2",
|
|
6014
|
+
["[267]|904"]
|
|
6030
6015
|
],
|
|
6031
6016
|
[
|
|
6032
|
-
"(\\d{2})(\\d{
|
|
6033
|
-
"$1 $2",
|
|
6034
|
-
["
|
|
6017
|
+
"(\\d{2})(\\d{3})(\\d{4})",
|
|
6018
|
+
"$1 $2 $3",
|
|
6019
|
+
["[346-9]"]
|
|
6035
6020
|
]
|
|
6036
6021
|
],
|
|
6037
6022
|
"0"
|
|
@@ -6039,7 +6024,7 @@ var s = (e, t, n) => {
|
|
|
6039
6024
|
SR: [
|
|
6040
6025
|
"597",
|
|
6041
6026
|
"00",
|
|
6042
|
-
"(?:[2-5]|[6-
|
|
6027
|
+
"(?:[2-5]|[6-9]\\d)\\d{5}",
|
|
6043
6028
|
[6, 7],
|
|
6044
6029
|
[
|
|
6045
6030
|
[
|
|
@@ -6187,7 +6172,7 @@ var s = (e, t, n) => {
|
|
|
6187
6172
|
TD: [
|
|
6188
6173
|
"235",
|
|
6189
6174
|
"00|16",
|
|
6190
|
-
"(?:22|
|
|
6175
|
+
"(?:22|[3689]\\d|77)\\d{6}",
|
|
6191
6176
|
[8],
|
|
6192
6177
|
[[
|
|
6193
6178
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -6396,11 +6381,7 @@ var s = (e, t, n) => {
|
|
|
6396
6381
|
[
|
|
6397
6382
|
"(\\d{3})(\\d{3})(\\d{2})(\\d{2})",
|
|
6398
6383
|
"$1 $2 $3 $4",
|
|
6399
|
-
[
|
|
6400
|
-
"5(?:[0-59]|61)",
|
|
6401
|
-
"5(?:[0-59]|61[06])",
|
|
6402
|
-
"5(?:[0-59]|61[06]1)"
|
|
6403
|
-
],
|
|
6384
|
+
["5[0-79]"],
|
|
6404
6385
|
"0$1",
|
|
6405
6386
|
1
|
|
6406
6387
|
],
|
|
@@ -6479,16 +6460,34 @@ var s = (e, t, n) => {
|
|
|
6479
6460
|
["202"],
|
|
6480
6461
|
"0$1"
|
|
6481
6462
|
],
|
|
6463
|
+
[
|
|
6464
|
+
"(\\d{3})(\\d{5})",
|
|
6465
|
+
"$1 $2",
|
|
6466
|
+
["826"],
|
|
6467
|
+
"0$1"
|
|
6468
|
+
],
|
|
6469
|
+
[
|
|
6470
|
+
"(\\d{3})(\\d{2})(\\d{3})",
|
|
6471
|
+
"$1 $2 $3",
|
|
6472
|
+
["83"],
|
|
6473
|
+
"0$1"
|
|
6474
|
+
],
|
|
6475
|
+
[
|
|
6476
|
+
"(\\d{2})(\\d{2})(\\d{4})",
|
|
6477
|
+
"$1 $2 $3",
|
|
6478
|
+
["82"],
|
|
6479
|
+
"0$1"
|
|
6480
|
+
],
|
|
6482
6481
|
[
|
|
6483
6482
|
"(\\d{2})(\\d{3})(\\d{3,4})",
|
|
6484
6483
|
"$1 $2 $3",
|
|
6485
|
-
["[
|
|
6484
|
+
["[25]0|37|49|8[09]"],
|
|
6486
6485
|
"0$1"
|
|
6487
6486
|
],
|
|
6488
6487
|
[
|
|
6489
6488
|
"(\\d)(\\d{3,4})(\\d{4})",
|
|
6490
6489
|
"$1 $2 $3",
|
|
6491
|
-
["[23568]|4(?:0[02-48]|[1-
|
|
6490
|
+
["[23568]|4(?:0[02-48]|[1-478])|7[1-9]", "[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],
|
|
6492
6491
|
"0$1"
|
|
6493
6492
|
],
|
|
6494
6493
|
[
|
|
@@ -6639,7 +6638,7 @@ var s = (e, t, n) => {
|
|
|
6639
6638
|
0,
|
|
6640
6639
|
0,
|
|
6641
6640
|
[
|
|
6642
|
-
["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-
|
|
6641
|
+
["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],
|
|
6643
6642
|
[""],
|
|
6644
6643
|
["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],
|
|
6645
6644
|
["900[2-9]\\d{6}"],
|
|
@@ -6798,7 +6797,7 @@ var s = (e, t, n) => {
|
|
|
6798
6797
|
VN: [
|
|
6799
6798
|
"84",
|
|
6800
6799
|
"00",
|
|
6801
|
-
"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|
|
|
6800
|
+
"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",
|
|
6802
6801
|
[
|
|
6803
6802
|
7,
|
|
6804
6803
|
8,
|
|
@@ -6806,24 +6805,17 @@ var s = (e, t, n) => {
|
|
|
6806
6805
|
10
|
|
6807
6806
|
],
|
|
6808
6807
|
[
|
|
6809
|
-
[
|
|
6810
|
-
"(\\d{2})(\\d{5})",
|
|
6811
|
-
"$1 $2",
|
|
6812
|
-
["80"],
|
|
6813
|
-
"0$1",
|
|
6814
|
-
1
|
|
6815
|
-
],
|
|
6816
6808
|
[
|
|
6817
6809
|
"(\\d{4})(\\d{4,6})",
|
|
6818
6810
|
"$1 $2",
|
|
6819
|
-
["1"],
|
|
6811
|
+
["1(?:2[02]|[89])"],
|
|
6820
6812
|
0,
|
|
6821
6813
|
1
|
|
6822
6814
|
],
|
|
6823
6815
|
[
|
|
6824
6816
|
"(\\d{2})(\\d{3})(\\d{2})(\\d{2})",
|
|
6825
6817
|
"$1 $2 $3 $4",
|
|
6826
|
-
["6"],
|
|
6818
|
+
["1[26]|6"],
|
|
6827
6819
|
"0$1",
|
|
6828
6820
|
1
|
|
6829
6821
|
],
|
|
@@ -6969,7 +6961,7 @@ var s = (e, t, n) => {
|
|
|
6969
6961
|
YT: [
|
|
6970
6962
|
"262",
|
|
6971
6963
|
"00",
|
|
6972
|
-
"7093\\d{5}|(?:80|9\\d)\\d{7}
|
|
6964
|
+
"(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",
|
|
6973
6965
|
[9],
|
|
6974
6966
|
0,
|
|
6975
6967
|
"0",
|
|
@@ -6979,7 +6971,7 @@ var s = (e, t, n) => {
|
|
|
6979
6971
|
0,
|
|
6980
6972
|
0,
|
|
6981
6973
|
[
|
|
6982
|
-
["
|
|
6974
|
+
["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],
|
|
6983
6975
|
["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],
|
|
6984
6976
|
["80\\d{7}"],
|
|
6985
6977
|
0,
|
|
@@ -7302,7 +7294,7 @@ var s = (e, t, n) => {
|
|
|
7302
7294
|
[
|
|
7303
7295
|
"(\\d{2})(\\d{4})(\\d{4})",
|
|
7304
7296
|
"$1 $2 $3",
|
|
7305
|
-
["10|23|3(?:[15]|4[57])|4|
|
|
7297
|
+
["10|23|3(?:[15]|4[57])|4|5[12]"]
|
|
7306
7298
|
],
|
|
7307
7299
|
[
|
|
7308
7300
|
"(\\d{3})(\\d{4})(\\d{4})",
|
|
@@ -7323,7 +7315,7 @@ var s = (e, t, n) => {
|
|
|
7323
7315
|
0,
|
|
7324
7316
|
[
|
|
7325
7317
|
0,
|
|
7326
|
-
["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|
|
|
7318
|
+
["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}", [
|
|
7327
7319
|
7,
|
|
7328
7320
|
8,
|
|
7329
7321
|
9,
|
|
@@ -7468,46 +7460,52 @@ function f(e) {
|
|
|
7468
7460
|
return e != null && e.constructor === d;
|
|
7469
7461
|
}
|
|
7470
7462
|
//#endregion
|
|
7463
|
+
//#region node_modules/libphonenumber-js/es6/helpers/isCallingCode.js
|
|
7464
|
+
var p = /^\d+$/;
|
|
7465
|
+
function m(e) {
|
|
7466
|
+
return p.test(e);
|
|
7467
|
+
}
|
|
7468
|
+
//#endregion
|
|
7471
7469
|
//#region node_modules/libphonenumber-js/es6/metadata.js
|
|
7472
|
-
function
|
|
7470
|
+
function h(e) {
|
|
7473
7471
|
"@babel/helpers - typeof";
|
|
7474
|
-
return
|
|
7472
|
+
return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7475
7473
|
return typeof e;
|
|
7476
7474
|
} : function(e) {
|
|
7477
7475
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7478
|
-
},
|
|
7476
|
+
}, h(e);
|
|
7479
7477
|
}
|
|
7480
|
-
function
|
|
7478
|
+
function g(e, t) {
|
|
7481
7479
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
7482
7480
|
}
|
|
7483
|
-
function
|
|
7481
|
+
function _(e, t) {
|
|
7484
7482
|
for (var n = 0; n < t.length; n++) {
|
|
7485
7483
|
var r = t[n];
|
|
7486
7484
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ee(r.key), r);
|
|
7487
7485
|
}
|
|
7488
7486
|
}
|
|
7489
|
-
function
|
|
7490
|
-
return t &&
|
|
7487
|
+
function v(e, t, n) {
|
|
7488
|
+
return t && _(e.prototype, t), n && _(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
7491
7489
|
}
|
|
7492
7490
|
function ee(e) {
|
|
7493
7491
|
var t = te(e, "string");
|
|
7494
|
-
return
|
|
7492
|
+
return h(t) == "symbol" ? t : t + "";
|
|
7495
7493
|
}
|
|
7496
7494
|
function te(e, t) {
|
|
7497
|
-
if (
|
|
7495
|
+
if (h(e) != "object" || !e) return e;
|
|
7498
7496
|
var n = e[Symbol.toPrimitive];
|
|
7499
7497
|
if (n !== void 0) {
|
|
7500
7498
|
var r = n.call(e, t || "default");
|
|
7501
|
-
if (
|
|
7499
|
+
if (h(r) != "object") return r;
|
|
7502
7500
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
7503
7501
|
}
|
|
7504
7502
|
return (t === "string" ? String : Number)(e);
|
|
7505
7503
|
}
|
|
7506
|
-
var ne = "1.2.0", re = "1.7.35", ie = " ext. ",
|
|
7504
|
+
var ne = "1.2.0", re = "1.7.35", ie = " ext. ", y = /*#__PURE__*/ function() {
|
|
7507
7505
|
function e(t) {
|
|
7508
|
-
|
|
7506
|
+
g(this, e), ue(t), this.metadata = t, me.call(this, t);
|
|
7509
7507
|
}
|
|
7510
|
-
return
|
|
7508
|
+
return v(e, [
|
|
7511
7509
|
{
|
|
7512
7510
|
key: "getCountries",
|
|
7513
7511
|
value: function() {
|
|
@@ -7561,12 +7559,14 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7561
7559
|
{
|
|
7562
7560
|
key: "selectNumberingPlan",
|
|
7563
7561
|
value: function(e, t) {
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7562
|
+
var n, r;
|
|
7563
|
+
if (e && (m(e) ? r = e : n = e), t && (r = t), n && n !== "001") {
|
|
7564
|
+
var i = this.getCountryMetadata(n);
|
|
7565
|
+
if (!i) throw Error(`Unknown country: ${n}`);
|
|
7566
|
+
this.numberingPlan = new ae(i, this);
|
|
7567
|
+
} else if (r) {
|
|
7568
|
+
if (!this.hasCallingCode(r)) throw Error(`Unknown calling code: ${r}`);
|
|
7569
|
+
this.numberingPlan = new ae(this.getNumberingPlanMetadata(r), this);
|
|
7570
7570
|
} else this.numberingPlan = void 0;
|
|
7571
7571
|
return this;
|
|
7572
7572
|
}
|
|
@@ -7690,11 +7690,11 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7690
7690
|
}
|
|
7691
7691
|
}
|
|
7692
7692
|
]);
|
|
7693
|
-
}(),
|
|
7693
|
+
}(), ae = /*#__PURE__*/ function() {
|
|
7694
7694
|
function e(t, n) {
|
|
7695
|
-
|
|
7695
|
+
g(this, e), this.globalMetadataObject = n, this.metadata = t, me.call(this, n.metadata);
|
|
7696
7696
|
}
|
|
7697
|
-
return
|
|
7697
|
+
return v(e, [
|
|
7698
7698
|
{
|
|
7699
7699
|
key: "callingCode",
|
|
7700
7700
|
value: function() {
|
|
@@ -7702,11 +7702,17 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7702
7702
|
}
|
|
7703
7703
|
},
|
|
7704
7704
|
{
|
|
7705
|
-
key: "
|
|
7705
|
+
key: "_getDefaultCountryMetadataForThisCallingCode",
|
|
7706
7706
|
value: function() {
|
|
7707
7707
|
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
|
7708
7708
|
}
|
|
7709
7709
|
},
|
|
7710
|
+
{
|
|
7711
|
+
key: "getDefaultCountryMetadataForRegion",
|
|
7712
|
+
value: function() {
|
|
7713
|
+
return this._getDefaultCountryMetadataForThisCallingCode();
|
|
7714
|
+
}
|
|
7715
|
+
},
|
|
7710
7716
|
{
|
|
7711
7717
|
key: "IDDPrefix",
|
|
7712
7718
|
value: function() {
|
|
@@ -7741,8 +7747,8 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7741
7747
|
key: "formats",
|
|
7742
7748
|
value: function() {
|
|
7743
7749
|
var e = this;
|
|
7744
|
-
return (this._getFormats(this.metadata) || this._getFormats(this.
|
|
7745
|
-
return new
|
|
7750
|
+
return (this._getFormats(this.metadata) || this._getFormats(this._getDefaultCountryMetadataForThisCallingCode()) || []).map(function(t) {
|
|
7751
|
+
return new oe(t, e);
|
|
7746
7752
|
});
|
|
7747
7753
|
}
|
|
7748
7754
|
},
|
|
@@ -7761,7 +7767,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7761
7767
|
{
|
|
7762
7768
|
key: "nationalPrefixFormattingRule",
|
|
7763
7769
|
value: function() {
|
|
7764
|
-
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.
|
|
7770
|
+
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode());
|
|
7765
7771
|
}
|
|
7766
7772
|
},
|
|
7767
7773
|
{
|
|
@@ -7791,7 +7797,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7791
7797
|
{
|
|
7792
7798
|
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
7793
7799
|
value: function() {
|
|
7794
|
-
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.
|
|
7800
|
+
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode());
|
|
7795
7801
|
}
|
|
7796
7802
|
},
|
|
7797
7803
|
{
|
|
@@ -7815,7 +7821,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7815
7821
|
{
|
|
7816
7822
|
key: "type",
|
|
7817
7823
|
value: function(e) {
|
|
7818
|
-
if (this.hasTypes() &&
|
|
7824
|
+
if (this.hasTypes() && le(this.types(), e)) return new ce(le(this.types(), e), this);
|
|
7819
7825
|
}
|
|
7820
7826
|
},
|
|
7821
7827
|
{
|
|
@@ -7825,11 +7831,11 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7825
7831
|
}
|
|
7826
7832
|
}
|
|
7827
7833
|
]);
|
|
7828
|
-
}(),
|
|
7834
|
+
}(), oe = /*#__PURE__*/ function() {
|
|
7829
7835
|
function e(t, n) {
|
|
7830
|
-
|
|
7836
|
+
g(this, e), this._format = t, this.metadata = n;
|
|
7831
7837
|
}
|
|
7832
|
-
return
|
|
7838
|
+
return v(e, [
|
|
7833
7839
|
{
|
|
7834
7840
|
key: "pattern",
|
|
7835
7841
|
value: function() {
|
|
@@ -7869,7 +7875,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7869
7875
|
{
|
|
7870
7876
|
key: "usesNationalPrefix",
|
|
7871
7877
|
value: function() {
|
|
7872
|
-
return !!(this.nationalPrefixFormattingRule() && !
|
|
7878
|
+
return !!(this.nationalPrefixFormattingRule() && !se.test(this.nationalPrefixFormattingRule()));
|
|
7873
7879
|
}
|
|
7874
7880
|
},
|
|
7875
7881
|
{
|
|
@@ -7879,11 +7885,11 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7879
7885
|
}
|
|
7880
7886
|
}
|
|
7881
7887
|
]);
|
|
7882
|
-
}(),
|
|
7888
|
+
}(), se = /^\(?\$1\)?$/, ce = /*#__PURE__*/ function() {
|
|
7883
7889
|
function e(t, n) {
|
|
7884
|
-
|
|
7890
|
+
g(this, e), this.type = t, this.metadata = n;
|
|
7885
7891
|
}
|
|
7886
|
-
return
|
|
7892
|
+
return v(e, [{
|
|
7887
7893
|
key: "pattern",
|
|
7888
7894
|
value: function() {
|
|
7889
7895
|
return this.metadata.v1 ? this.type : this.type[0];
|
|
@@ -7895,7 +7901,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7895
7901
|
}
|
|
7896
7902
|
}]);
|
|
7897
7903
|
}();
|
|
7898
|
-
function
|
|
7904
|
+
function le(e, t) {
|
|
7899
7905
|
switch (t) {
|
|
7900
7906
|
case "FIXED_LINE": return e[0];
|
|
7901
7907
|
case "MOBILE": return e[1];
|
|
@@ -7909,16 +7915,17 @@ function ue(e, t) {
|
|
|
7909
7915
|
case "SHARED_COST": return e[9];
|
|
7910
7916
|
}
|
|
7911
7917
|
}
|
|
7912
|
-
function
|
|
7918
|
+
function ue(e) {
|
|
7913
7919
|
if (!e) throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
7914
|
-
if (!f(e) || !f(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${f(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " +
|
|
7920
|
+
if (!f(e) || !f(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${f(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + de(e) + ": " + e}.`);
|
|
7915
7921
|
}
|
|
7916
7922
|
/* istanbul ignore next */
|
|
7917
|
-
var
|
|
7918
|
-
return
|
|
7923
|
+
var de = function(e) {
|
|
7924
|
+
return h(e);
|
|
7919
7925
|
};
|
|
7920
|
-
function
|
|
7921
|
-
|
|
7926
|
+
function fe(e, t) {
|
|
7927
|
+
var n = new y(t);
|
|
7928
|
+
if (n.hasCountry(e)) return n.selectNumberingPlan(e).countryCallingCode();
|
|
7922
7929
|
throw Error(`Unknown country: ${e}`);
|
|
7923
7930
|
}
|
|
7924
7931
|
function pe(e, t) {
|
|
@@ -7968,51 +7975,54 @@ function ve(e, t) {
|
|
|
7968
7975
|
}
|
|
7969
7976
|
//#endregion
|
|
7970
7977
|
//#region node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
|
|
7971
|
-
function
|
|
7972
|
-
return ye(e,
|
|
7978
|
+
function b(e, t, n) {
|
|
7979
|
+
return ye(e, void 0, t, n);
|
|
7973
7980
|
}
|
|
7974
7981
|
function ye(e, t, n, r) {
|
|
7975
|
-
|
|
7976
|
-
var i = r.type(
|
|
7982
|
+
n && (r = new y(r.metadata), r.selectNumberingPlan(n));
|
|
7983
|
+
var i = r.type(t), a = i && i.possibleLengths() || r.possibleLengths();
|
|
7977
7984
|
if (!a) return "IS_POSSIBLE";
|
|
7978
|
-
if (
|
|
7985
|
+
if (t === "FIXED_LINE_OR_MOBILE") {
|
|
7979
7986
|
/* istanbul ignore next */
|
|
7980
|
-
if (!r.type("FIXED_LINE")) return ye(e,
|
|
7987
|
+
if (!r.type("FIXED_LINE")) return ye(e, "MOBILE", n, r);
|
|
7981
7988
|
var o = r.type("MOBILE");
|
|
7982
7989
|
o && (a = ve(a, o.possibleLengths()));
|
|
7983
|
-
} else if (
|
|
7990
|
+
} else if (t && !i) return "INVALID_LENGTH";
|
|
7984
7991
|
var s = e.length, c = a[0];
|
|
7985
7992
|
return c === s ? "IS_POSSIBLE" : c > s ? "TOO_SHORT" : a[a.length - 1] < s ? "TOO_LONG" : a.indexOf(s, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
7986
7993
|
}
|
|
7987
7994
|
//#endregion
|
|
7988
7995
|
//#region node_modules/libphonenumber-js/es6/isPossible.js
|
|
7989
7996
|
function be(e, t, n) {
|
|
7990
|
-
|
|
7997
|
+
/* istanbul ignore if */
|
|
7998
|
+
t === void 0 && (t = {});
|
|
7999
|
+
var r = new y(n);
|
|
8000
|
+
if (t.v2) {
|
|
7991
8001
|
if (!e.countryCallingCode) throw Error("Invalid phone number object passed");
|
|
7992
|
-
|
|
8002
|
+
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
7993
8003
|
} else {
|
|
7994
8004
|
if (!e.phone) return !1;
|
|
7995
8005
|
if (e.country) {
|
|
7996
|
-
if (!
|
|
7997
|
-
|
|
8006
|
+
if (!r.hasCountry(e.country)) throw Error(`Unknown country: ${e.country}`);
|
|
8007
|
+
r.selectNumberingPlan(e.country);
|
|
7998
8008
|
} else {
|
|
7999
8009
|
if (!e.countryCallingCode) throw Error("Invalid phone number object passed");
|
|
8000
|
-
|
|
8010
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
|
8001
8011
|
}
|
|
8002
8012
|
}
|
|
8003
|
-
if (
|
|
8004
|
-
if (e.countryCallingCode &&
|
|
8013
|
+
if (r.possibleLengths()) return xe(e.phone || e.nationalNumber, r);
|
|
8014
|
+
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode)) return !0;
|
|
8005
8015
|
throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
|
|
8006
8016
|
}
|
|
8007
|
-
function xe(e, t
|
|
8008
|
-
switch (
|
|
8017
|
+
function xe(e, t) {
|
|
8018
|
+
switch (b(e, void 0, t)) {
|
|
8009
8019
|
case "IS_POSSIBLE": return !0;
|
|
8010
8020
|
default: return !1;
|
|
8011
8021
|
}
|
|
8012
8022
|
}
|
|
8013
8023
|
//#endregion
|
|
8014
8024
|
//#region node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
|
|
8015
|
-
function
|
|
8025
|
+
function x(e, t) {
|
|
8016
8026
|
return e ||= "", RegExp("^(?:" + t + ")$").test(e);
|
|
8017
8027
|
}
|
|
8018
8028
|
//#endregion
|
|
@@ -8055,57 +8065,74 @@ var Te = [
|
|
|
8055
8065
|
"UAN",
|
|
8056
8066
|
"VOICEMAIL"
|
|
8057
8067
|
];
|
|
8058
|
-
function
|
|
8068
|
+
function S(e, t, n) {
|
|
8059
8069
|
if (t ||= {}, !(!e.country && !e.countryCallingCode)) {
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8070
|
+
var r = new y(n);
|
|
8071
|
+
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
8072
|
+
var i = t.v2 ? e.nationalNumber : e.phone;
|
|
8073
|
+
if (x(i, r.nationalNumberPattern())) {
|
|
8074
|
+
if (Ee(i, "FIXED_LINE", r)) return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || Ee(i, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
8075
|
+
for (var a = Se(Te), o; !(o = a()).done;) {
|
|
8076
|
+
var s = o.value;
|
|
8077
|
+
if (Ee(i, s, r)) return s;
|
|
8067
8078
|
}
|
|
8068
8079
|
}
|
|
8069
8080
|
}
|
|
8070
8081
|
}
|
|
8071
|
-
function
|
|
8072
|
-
|
|
8082
|
+
function Ee(e, t, n) {
|
|
8083
|
+
var r = n.type(t);
|
|
8084
|
+
return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 : x(e, r.pattern());
|
|
8073
8085
|
}
|
|
8074
8086
|
//#endregion
|
|
8075
8087
|
//#region node_modules/libphonenumber-js/es6/isValid.js
|
|
8076
|
-
function
|
|
8077
|
-
|
|
8088
|
+
function De(e, t, n) {
|
|
8089
|
+
t ||= {};
|
|
8090
|
+
var r = new y(n);
|
|
8091
|
+
return r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes() ? S(e, t, r.metadata) !== void 0 : x(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
|
|
8092
|
+
}
|
|
8093
|
+
//#endregion
|
|
8094
|
+
//#region node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
|
|
8095
|
+
var Oe = /^[A-Z]{2}$/;
|
|
8096
|
+
function ke(e) {
|
|
8097
|
+
return Oe.test(e);
|
|
8098
|
+
}
|
|
8099
|
+
function Ae(e, t) {
|
|
8100
|
+
var n, r, i = new y(t);
|
|
8101
|
+
return ke(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : r = e, {
|
|
8102
|
+
country: n,
|
|
8103
|
+
callingCode: r
|
|
8104
|
+
};
|
|
8078
8105
|
}
|
|
8079
8106
|
//#endregion
|
|
8080
8107
|
//#region node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
|
|
8081
|
-
function
|
|
8082
|
-
var r = new
|
|
8108
|
+
function je(e, t, n) {
|
|
8109
|
+
var r = new y(n).getCountryCodesForCallingCode(e);
|
|
8083
8110
|
return r ? r.filter(function(e) {
|
|
8084
|
-
return
|
|
8111
|
+
return Me(t, e, n);
|
|
8085
8112
|
}) : [];
|
|
8086
8113
|
}
|
|
8087
|
-
function
|
|
8088
|
-
var r = new
|
|
8114
|
+
function Me(e, t, n) {
|
|
8115
|
+
var r = new y(n);
|
|
8089
8116
|
return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
8090
8117
|
}
|
|
8091
8118
|
//#endregion
|
|
8092
8119
|
//#region node_modules/libphonenumber-js/es6/constants.js
|
|
8093
|
-
var
|
|
8094
|
-
function
|
|
8120
|
+
var C = "0-90-9٠-٩۰-۹", w = "-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~", T = "++", Ne = RegExp("([" + C + "])");
|
|
8121
|
+
function Pe(e, t, n, r) {
|
|
8095
8122
|
if (t) {
|
|
8096
|
-
var i = new
|
|
8097
|
-
i.selectNumberingPlan(t
|
|
8123
|
+
var i = new y(r);
|
|
8124
|
+
i.selectNumberingPlan(t || n);
|
|
8098
8125
|
var a = new RegExp(i.IDDPrefix());
|
|
8099
8126
|
if (e.search(a) === 0) {
|
|
8100
8127
|
e = e.slice(e.match(a)[0].length);
|
|
8101
|
-
var o = e.match(
|
|
8128
|
+
var o = e.match(Ne);
|
|
8102
8129
|
if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0")) return e;
|
|
8103
8130
|
}
|
|
8104
8131
|
}
|
|
8105
8132
|
}
|
|
8106
8133
|
//#endregion
|
|
8107
8134
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
|
|
8108
|
-
function
|
|
8135
|
+
function Fe(e, t) {
|
|
8109
8136
|
if (e && t.numberingPlan.nationalPrefixForParsing()) {
|
|
8110
8137
|
var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
|
|
8111
8138
|
if (r) {
|
|
@@ -8131,10 +8158,10 @@ function Ne(e, t) {
|
|
|
8131
8158
|
}
|
|
8132
8159
|
//#endregion
|
|
8133
8160
|
//#region node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
|
|
8134
|
-
function
|
|
8161
|
+
function Ie(e, t) {
|
|
8135
8162
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8136
8163
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8137
|
-
if (Array.isArray(e) || (n =
|
|
8164
|
+
if (Array.isArray(e) || (n = Le(e)) || t && e && typeof e.length == "number") {
|
|
8138
8165
|
n && (e = n);
|
|
8139
8166
|
var r = 0;
|
|
8140
8167
|
return function() {
|
|
@@ -8146,49 +8173,38 @@ function Pe(e, t) {
|
|
|
8146
8173
|
}
|
|
8147
8174
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8148
8175
|
}
|
|
8149
|
-
function
|
|
8176
|
+
function Le(e, t) {
|
|
8150
8177
|
if (e) {
|
|
8151
|
-
if (typeof e == "string") return
|
|
8178
|
+
if (typeof e == "string") return Re(e, t);
|
|
8152
8179
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8153
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8180
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Re(e, t) : void 0;
|
|
8154
8181
|
}
|
|
8155
8182
|
}
|
|
8156
|
-
function
|
|
8183
|
+
function Re(e, t) {
|
|
8157
8184
|
(t == null || t > e.length) && (t = e.length);
|
|
8158
8185
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8159
8186
|
return r;
|
|
8160
8187
|
}
|
|
8161
|
-
function
|
|
8162
|
-
var n = t
|
|
8163
|
-
r = new _(r);
|
|
8164
|
-
for (var i = Pe(n), a; !(a = i()).done;) {
|
|
8188
|
+
function ze(e, t, n) {
|
|
8189
|
+
for (var r = new y(n), i = Ie(t), a; !(a = i()).done;) {
|
|
8165
8190
|
var o = a.value;
|
|
8166
8191
|
if (r.selectNumberingPlan(o), r.leadingDigits()) {
|
|
8167
8192
|
if (e && e.search(r.leadingDigits()) === 0) return o;
|
|
8168
|
-
} else if (
|
|
8193
|
+
} else if (S({
|
|
8169
8194
|
phone: e,
|
|
8170
8195
|
country: o
|
|
8171
8196
|
}, void 0, r.metadata)) return o;
|
|
8172
8197
|
}
|
|
8173
8198
|
}
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
function ze(e, t) {
|
|
8178
|
-
var n = t.nationalNumber, r = t.metadata;
|
|
8179
|
-
/* istanbul ignore if */
|
|
8180
|
-
if (Re && r.isNonGeographicCallingCode(e)) return "001";
|
|
8181
|
-
var i = r.getCountryCodesForCallingCode(e);
|
|
8182
|
-
if (i) return i.length === 1 ? i[0] : Le(n, {
|
|
8183
|
-
countries: i,
|
|
8184
|
-
metadata: r.metadata
|
|
8185
|
-
});
|
|
8199
|
+
function E(e, t) {
|
|
8200
|
+
var n = t.nationalNumber, r = t.metadata, i = r.getCountryCodesForCallingCode(e);
|
|
8201
|
+
if (i) return i.length === 1 ? i[0] : ze(n, i, r.metadata);
|
|
8186
8202
|
}
|
|
8187
8203
|
//#endregion
|
|
8188
8204
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
|
|
8189
8205
|
function Be(e, t, n) {
|
|
8190
|
-
var r =
|
|
8191
|
-
return a !== e && (!Ve(e, a, n) || n.numberingPlan.possibleLengths() && (t ||=
|
|
8206
|
+
var r = Fe(e, n), i = r.carrierCode, a = r.nationalNumber;
|
|
8207
|
+
return a !== e && (!Ve(e, a, n) || n.numberingPlan.possibleLengths() && (t ||= E(n.numberingPlan.callingCode(), {
|
|
8192
8208
|
nationalNumber: a,
|
|
8193
8209
|
metadata: n
|
|
8194
8210
|
}), !He(a, t, n))) ? { nationalNumber: e } : {
|
|
@@ -8197,10 +8213,10 @@ function Be(e, t, n) {
|
|
|
8197
8213
|
};
|
|
8198
8214
|
}
|
|
8199
8215
|
function Ve(e, t, n) {
|
|
8200
|
-
return !(
|
|
8216
|
+
return !(x(e, n.nationalNumberPattern()) && !x(t, n.nationalNumberPattern()));
|
|
8201
8217
|
}
|
|
8202
8218
|
function He(e, t, n) {
|
|
8203
|
-
switch (
|
|
8219
|
+
switch (b(e, t, n)) {
|
|
8204
8220
|
case "TOO_SHORT":
|
|
8205
8221
|
case "INVALID_LENGTH": return !1;
|
|
8206
8222
|
default: return !0;
|
|
@@ -8209,24 +8225,26 @@ function He(e, t, n) {
|
|
|
8209
8225
|
//#endregion
|
|
8210
8226
|
//#region node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
|
|
8211
8227
|
function Ue(e, t, n, r, i) {
|
|
8212
|
-
|
|
8228
|
+
if (!(t || n || r)) return { number: e };
|
|
8229
|
+
var a = t || n ? fe(t || n, i) : r;
|
|
8213
8230
|
if (e.indexOf(a) === 0) {
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8231
|
+
var o = new y(i);
|
|
8232
|
+
o.selectNumberingPlan(t || n || r);
|
|
8233
|
+
var s = e.slice(a.length), c = Be(s, void 0, o).nationalNumber, l = Be(e, void 0, o).nationalNumber;
|
|
8234
|
+
if (!x(l, o.nationalNumberPattern()) && x(c, o.nationalNumberPattern()) || b(l, void 0, o) === "TOO_LONG") return {
|
|
8217
8235
|
countryCallingCode: a,
|
|
8218
|
-
number:
|
|
8236
|
+
number: s
|
|
8219
8237
|
};
|
|
8220
8238
|
}
|
|
8221
8239
|
return { number: e };
|
|
8222
8240
|
}
|
|
8223
8241
|
//#endregion
|
|
8224
8242
|
//#region node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js
|
|
8225
|
-
function
|
|
8243
|
+
function We(e, t, n, r, i) {
|
|
8226
8244
|
if (!e) return {};
|
|
8227
8245
|
var a;
|
|
8228
8246
|
if (e[0] !== "+") {
|
|
8229
|
-
var o =
|
|
8247
|
+
var o = Pe(e, t || n, r, i);
|
|
8230
8248
|
if (o && o !== e) a = !0, e = "+" + o;
|
|
8231
8249
|
else {
|
|
8232
8250
|
if (t || n || r) {
|
|
@@ -8241,61 +8259,60 @@ function w(e, t, n, r, i) {
|
|
|
8241
8259
|
}
|
|
8242
8260
|
}
|
|
8243
8261
|
if (e[1] === "0") return {};
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
if (i.hasCallingCode(d)) return i.selectNumberingPlan(d), {
|
|
8262
|
+
for (var u = new y(i), d = 2; d - 1 <= 3 && d <= e.length;) {
|
|
8263
|
+
var f = e.slice(1, d);
|
|
8264
|
+
if (u.hasCallingCode(f)) return u.selectNumberingPlan(f), {
|
|
8248
8265
|
countryCallingCodeSource: a ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
8249
|
-
countryCallingCode:
|
|
8250
|
-
number: e.slice(
|
|
8266
|
+
countryCallingCode: f,
|
|
8267
|
+
number: e.slice(d)
|
|
8251
8268
|
};
|
|
8252
|
-
|
|
8269
|
+
d++;
|
|
8253
8270
|
}
|
|
8254
8271
|
return {};
|
|
8255
8272
|
}
|
|
8256
8273
|
//#endregion
|
|
8257
8274
|
//#region node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
|
|
8258
|
-
function
|
|
8259
|
-
return e.replace(RegExp(`[${
|
|
8275
|
+
function Ge(e) {
|
|
8276
|
+
return e.replace(RegExp(`[${w}]+`, "g"), " ").trim();
|
|
8260
8277
|
}
|
|
8261
8278
|
//#endregion
|
|
8262
8279
|
//#region node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
|
|
8263
|
-
var
|
|
8264
|
-
function
|
|
8280
|
+
var Ke = /(\$\d)/;
|
|
8281
|
+
function qe(e, t, n) {
|
|
8265
8282
|
var r = n.useInternationalFormat, i = n.withNationalPrefix;
|
|
8266
8283
|
n.carrierCode, n.metadata;
|
|
8267
|
-
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(
|
|
8268
|
-
return r ?
|
|
8284
|
+
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(Ke, t.nationalPrefixFormattingRule()) : t.format());
|
|
8285
|
+
return r ? Ge(a) : a;
|
|
8269
8286
|
}
|
|
8270
8287
|
//#endregion
|
|
8271
8288
|
//#region node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
|
|
8272
|
-
var
|
|
8273
|
-
function
|
|
8274
|
-
var r = new
|
|
8275
|
-
if (r.selectNumberingPlan(e
|
|
8276
|
-
if (
|
|
8289
|
+
var Je = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
8290
|
+
function Ye(e, t, n) {
|
|
8291
|
+
var r = new y(n);
|
|
8292
|
+
if (r.selectNumberingPlan(e || t), r.defaultIDDPrefix()) return r.defaultIDDPrefix();
|
|
8293
|
+
if (Je.test(r.IDDPrefix())) return r.IDDPrefix();
|
|
8277
8294
|
}
|
|
8278
8295
|
//#endregion
|
|
8279
8296
|
//#region node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
|
|
8280
|
-
var
|
|
8281
|
-
return `([${
|
|
8297
|
+
var Xe = ";ext=", D = function(e) {
|
|
8298
|
+
return `([${C}]{1,${e}})`;
|
|
8282
8299
|
};
|
|
8283
|
-
function
|
|
8284
|
-
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p =
|
|
8285
|
-
return p + "|" + m + "|" + h + "|" + g + "|" +
|
|
8300
|
+
function Ze(e) {
|
|
8301
|
+
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p = Xe + D(t), m = a + c + o + D(t) + s, h = a + l + o + D(r) + s, g = u + D(i) + "#", _ = d + f + o + D(n) + s, v = d + "(?:,)+" + o + D(r) + s;
|
|
8302
|
+
return p + "|" + m + "|" + h + "|" + g + "|" + _ + "|" + v;
|
|
8286
8303
|
}
|
|
8287
8304
|
//#endregion
|
|
8288
8305
|
//#region node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js
|
|
8289
|
-
var
|
|
8290
|
-
function nt(e) {
|
|
8291
|
-
return e.length >= 2 && tt.test(e);
|
|
8292
|
-
}
|
|
8306
|
+
var Qe = "[" + C + "]{2}", $e = "[" + T + "]{0,1}(?:[" + w + "]*[" + C + "]){3,}[" + w + C + "]*", et = RegExp("^[" + T + "]{0,1}(?:[" + w + "]*[" + C + "]){1,2}$", "i"), tt = $e + "(?:" + Ze() + ")?", nt = RegExp("^" + Qe + "$|^" + tt + "$", "i");
|
|
8293
8307
|
function rt(e) {
|
|
8294
|
-
return
|
|
8308
|
+
return e.length >= 2 && nt.test(e);
|
|
8309
|
+
}
|
|
8310
|
+
function it(e) {
|
|
8311
|
+
return et.test(e);
|
|
8295
8312
|
}
|
|
8296
8313
|
//#endregion
|
|
8297
8314
|
//#region node_modules/libphonenumber-js/es6/helpers/RFC3966.js
|
|
8298
|
-
function
|
|
8315
|
+
function at(e) {
|
|
8299
8316
|
var t = e.number, n = e.ext;
|
|
8300
8317
|
if (!t) return "";
|
|
8301
8318
|
if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
|
|
@@ -8303,68 +8320,70 @@ function it(e) {
|
|
|
8303
8320
|
}
|
|
8304
8321
|
//#endregion
|
|
8305
8322
|
//#region node_modules/libphonenumber-js/es6/format.js
|
|
8306
|
-
var
|
|
8323
|
+
var ot = { formatExtension: function(e, t, n) {
|
|
8307
8324
|
return `${e}${n.ext()}${t}`;
|
|
8308
8325
|
} };
|
|
8309
|
-
function
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8326
|
+
function st(e, t, n, r) {
|
|
8327
|
+
n = n ? dt({}, ot, n) : ot;
|
|
8328
|
+
var i = new y(r);
|
|
8329
|
+
if (e.country && e.country !== "001") {
|
|
8330
|
+
if (!i.hasCountry(e.country)) throw Error(`Unknown country: ${e.country}`);
|
|
8331
|
+
i.selectNumberingPlan(e.country);
|
|
8332
|
+
} else if (e.countryCallingCode) i.selectNumberingPlan(e.countryCallingCode);
|
|
8314
8333
|
else return e.phone || "";
|
|
8315
|
-
var
|
|
8334
|
+
var a = i.countryCallingCode(), o = n.v2 ? e.nationalNumber : e.phone, s;
|
|
8316
8335
|
switch (t) {
|
|
8317
|
-
case "NATIONAL": return
|
|
8318
|
-
case "INTERNATIONAL": return
|
|
8319
|
-
case "E.164": return `+${
|
|
8320
|
-
case "RFC3966": return
|
|
8321
|
-
number: `+${
|
|
8336
|
+
case "NATIONAL": return o ? (s = O(o, e.carrierCode, "NATIONAL", i, n), lt(s, e.ext, i, n.formatExtension)) : "";
|
|
8337
|
+
case "INTERNATIONAL": return o ? (s = O(o, null, "INTERNATIONAL", i, n), s = `+${a} ${s}`, lt(s, e.ext, i, n.formatExtension)) : `+${a}`;
|
|
8338
|
+
case "E.164": return `+${a}${o}`;
|
|
8339
|
+
case "RFC3966": return at({
|
|
8340
|
+
number: `+${a}${o}`,
|
|
8322
8341
|
ext: e.ext
|
|
8323
8342
|
});
|
|
8324
8343
|
case "IDD":
|
|
8325
8344
|
if (!n.fromCountry) return;
|
|
8326
|
-
var
|
|
8327
|
-
return
|
|
8345
|
+
var c = ut(o, e.carrierCode, a, n.fromCountry, i);
|
|
8346
|
+
return c ? lt(c, e.ext, i, n.formatExtension) : void 0;
|
|
8328
8347
|
default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`);
|
|
8329
8348
|
}
|
|
8330
8349
|
}
|
|
8331
|
-
function
|
|
8332
|
-
var a =
|
|
8333
|
-
return a ?
|
|
8350
|
+
function O(e, t, n, r, i) {
|
|
8351
|
+
var a = ct(r.formats(), e);
|
|
8352
|
+
return a ? qe(e, a, {
|
|
8334
8353
|
useInternationalFormat: n === "INTERNATIONAL",
|
|
8335
8354
|
withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
|
|
8336
8355
|
carrierCode: t,
|
|
8337
8356
|
metadata: r
|
|
8338
8357
|
}) : e;
|
|
8339
8358
|
}
|
|
8340
|
-
function
|
|
8341
|
-
return
|
|
8359
|
+
function ct(e, t) {
|
|
8360
|
+
return ft(e, function(e) {
|
|
8342
8361
|
if (e.leadingDigitsPatterns().length > 0) {
|
|
8343
8362
|
var n = e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length - 1];
|
|
8344
8363
|
if (t.search(n) !== 0) return !1;
|
|
8345
8364
|
}
|
|
8346
|
-
return
|
|
8365
|
+
return x(t, e.pattern());
|
|
8347
8366
|
});
|
|
8348
8367
|
}
|
|
8349
|
-
function
|
|
8368
|
+
function lt(e, t, n, r) {
|
|
8350
8369
|
return t ? r(e, t, n) : e;
|
|
8351
8370
|
}
|
|
8352
|
-
function
|
|
8353
|
-
if (
|
|
8354
|
-
var a =
|
|
8371
|
+
function ut(e, t, n, r, i) {
|
|
8372
|
+
if (fe(r, i.metadata) === n) {
|
|
8373
|
+
var a = O(e, t, "NATIONAL", i);
|
|
8355
8374
|
return n === "1" ? n + " " + a : a;
|
|
8356
8375
|
}
|
|
8357
|
-
var o =
|
|
8358
|
-
if (o) return `${o} ${n} ${
|
|
8376
|
+
var o = Ye(r, void 0, i.metadata);
|
|
8377
|
+
if (o) return `${o} ${n} ${O(e, null, "INTERNATIONAL", i)}`;
|
|
8359
8378
|
}
|
|
8360
|
-
function
|
|
8379
|
+
function dt() {
|
|
8361
8380
|
for (var e = 1, t = [...arguments]; e < t.length;) {
|
|
8362
8381
|
if (t[e]) for (var n in t[e]) t[0][n] = t[e][n];
|
|
8363
8382
|
e++;
|
|
8364
8383
|
}
|
|
8365
8384
|
return t[0];
|
|
8366
8385
|
}
|
|
8367
|
-
function
|
|
8386
|
+
function ft(e, t) {
|
|
8368
8387
|
for (var n = 0; n < e.length;) {
|
|
8369
8388
|
if (t(e[n])) return e[n];
|
|
8370
8389
|
n++;
|
|
@@ -8372,15 +8391,15 @@ function ut(e, t) {
|
|
|
8372
8391
|
}
|
|
8373
8392
|
//#endregion
|
|
8374
8393
|
//#region node_modules/libphonenumber-js/es6/PhoneNumber.js
|
|
8375
|
-
function
|
|
8394
|
+
function k(e) {
|
|
8376
8395
|
"@babel/helpers - typeof";
|
|
8377
|
-
return
|
|
8396
|
+
return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8378
8397
|
return typeof e;
|
|
8379
8398
|
} : function(e) {
|
|
8380
8399
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8381
|
-
},
|
|
8400
|
+
}, k(e);
|
|
8382
8401
|
}
|
|
8383
|
-
function
|
|
8402
|
+
function pt(e, t) {
|
|
8384
8403
|
var n = Object.keys(e);
|
|
8385
8404
|
if (Object.getOwnPropertySymbols) {
|
|
8386
8405
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8390,72 +8409,72 @@ function dt(e, t) {
|
|
|
8390
8409
|
}
|
|
8391
8410
|
return n;
|
|
8392
8411
|
}
|
|
8393
|
-
function
|
|
8412
|
+
function mt(e) {
|
|
8394
8413
|
for (var t = 1; t < arguments.length; t++) {
|
|
8395
8414
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8396
|
-
t % 2 ?
|
|
8397
|
-
|
|
8398
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8415
|
+
t % 2 ? pt(Object(n), !0).forEach(function(t) {
|
|
8416
|
+
ht(e, t, n[t]);
|
|
8417
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pt(Object(n)).forEach(function(t) {
|
|
8399
8418
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8400
8419
|
});
|
|
8401
8420
|
}
|
|
8402
8421
|
return e;
|
|
8403
8422
|
}
|
|
8404
|
-
function
|
|
8405
|
-
return (t =
|
|
8423
|
+
function ht(e, t, n) {
|
|
8424
|
+
return (t = yt(t)) in e ? Object.defineProperty(e, t, {
|
|
8406
8425
|
value: n,
|
|
8407
8426
|
enumerable: !0,
|
|
8408
8427
|
configurable: !0,
|
|
8409
8428
|
writable: !0
|
|
8410
8429
|
}) : e[t] = n, e;
|
|
8411
8430
|
}
|
|
8412
|
-
function
|
|
8431
|
+
function gt(e, t) {
|
|
8413
8432
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
8414
8433
|
}
|
|
8415
|
-
function
|
|
8434
|
+
function _t(e, t) {
|
|
8416
8435
|
for (var n = 0; n < t.length; n++) {
|
|
8417
8436
|
var r = t[n];
|
|
8418
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
8437
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, yt(r.key), r);
|
|
8419
8438
|
}
|
|
8420
8439
|
}
|
|
8421
|
-
function
|
|
8422
|
-
return t &&
|
|
8440
|
+
function vt(e, t, n) {
|
|
8441
|
+
return t && _t(e.prototype, t), n && _t(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8423
8442
|
}
|
|
8424
|
-
function
|
|
8425
|
-
var t =
|
|
8426
|
-
return
|
|
8443
|
+
function yt(e) {
|
|
8444
|
+
var t = bt(e, "string");
|
|
8445
|
+
return k(t) == "symbol" ? t : t + "";
|
|
8427
8446
|
}
|
|
8428
|
-
function
|
|
8429
|
-
if (
|
|
8447
|
+
function bt(e, t) {
|
|
8448
|
+
if (k(e) != "object" || !e) return e;
|
|
8430
8449
|
var n = e[Symbol.toPrimitive];
|
|
8431
8450
|
if (n !== void 0) {
|
|
8432
8451
|
var r = n.call(e, t || "default");
|
|
8433
|
-
if (
|
|
8452
|
+
if (k(r) != "object") return r;
|
|
8434
8453
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8435
8454
|
}
|
|
8436
8455
|
return (t === "string" ? String : Number)(e);
|
|
8437
8456
|
}
|
|
8438
|
-
var
|
|
8457
|
+
var xt = /*#__PURE__*/ function() {
|
|
8439
8458
|
function e(t, n, r) {
|
|
8440
|
-
if (
|
|
8459
|
+
if (gt(this, e), !t) throw TypeError("First argument is required");
|
|
8441
8460
|
if (typeof t != "string") throw TypeError("First argument must be a string");
|
|
8442
8461
|
if (t[0] === "+" && !n) throw TypeError("`metadata` argument not passed");
|
|
8443
8462
|
if (f(n) && f(n.countries)) {
|
|
8444
8463
|
r = n;
|
|
8445
8464
|
var i = t;
|
|
8446
|
-
if (!
|
|
8447
|
-
var a =
|
|
8465
|
+
if (!St.test(i)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
|
|
8466
|
+
var a = We(i, void 0, void 0, void 0, r), o = a.countryCallingCode;
|
|
8448
8467
|
if (n = a.number, t = o, !n) throw Error("Invalid `number` argument passed: too short");
|
|
8449
8468
|
}
|
|
8450
8469
|
if (!n) throw TypeError("`nationalNumber` argument is required");
|
|
8451
8470
|
if (typeof n != "string") throw TypeError("`nationalNumber` argument must be a string");
|
|
8452
|
-
|
|
8453
|
-
var s =
|
|
8471
|
+
ue(r);
|
|
8472
|
+
var s = Ae(t, r), c = s.country, l = s.callingCode;
|
|
8454
8473
|
this.country = c, this.countryCallingCode = l, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
8455
8474
|
return r;
|
|
8456
8475
|
};
|
|
8457
8476
|
}
|
|
8458
|
-
return
|
|
8477
|
+
return vt(e, [
|
|
8459
8478
|
{
|
|
8460
8479
|
key: "setExt",
|
|
8461
8480
|
value: function(e) {
|
|
@@ -8465,7 +8484,7 @@ var yt = !1, bt = /*#__PURE__*/ function() {
|
|
|
8465
8484
|
{
|
|
8466
8485
|
key: "getPossibleCountries",
|
|
8467
8486
|
value: function() {
|
|
8468
|
-
return this.country ? [this.country] :
|
|
8487
|
+
return this.country ? [this.country] : je(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
8469
8488
|
}
|
|
8470
8489
|
},
|
|
8471
8490
|
{
|
|
@@ -8477,13 +8496,13 @@ var yt = !1, bt = /*#__PURE__*/ function() {
|
|
|
8477
8496
|
{
|
|
8478
8497
|
key: "isValid",
|
|
8479
8498
|
value: function() {
|
|
8480
|
-
return
|
|
8499
|
+
return De(this, { v2: !0 }, this.getMetadata());
|
|
8481
8500
|
}
|
|
8482
8501
|
},
|
|
8483
8502
|
{
|
|
8484
8503
|
key: "isNonGeographic",
|
|
8485
8504
|
value: function() {
|
|
8486
|
-
return new
|
|
8505
|
+
return new y(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode);
|
|
8487
8506
|
}
|
|
8488
8507
|
},
|
|
8489
8508
|
{
|
|
@@ -8495,13 +8514,13 @@ var yt = !1, bt = /*#__PURE__*/ function() {
|
|
|
8495
8514
|
{
|
|
8496
8515
|
key: "getType",
|
|
8497
8516
|
value: function() {
|
|
8498
|
-
return
|
|
8517
|
+
return S(this, { v2: !0 }, this.getMetadata());
|
|
8499
8518
|
}
|
|
8500
8519
|
},
|
|
8501
8520
|
{
|
|
8502
8521
|
key: "format",
|
|
8503
8522
|
value: function(e, t) {
|
|
8504
|
-
return
|
|
8523
|
+
return st(this, e, t ? mt(mt({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
|
|
8505
8524
|
}
|
|
8506
8525
|
},
|
|
8507
8526
|
{
|
|
@@ -8523,136 +8542,126 @@ var yt = !1, bt = /*#__PURE__*/ function() {
|
|
|
8523
8542
|
}
|
|
8524
8543
|
}
|
|
8525
8544
|
]);
|
|
8526
|
-
}(),
|
|
8527
|
-
return /^[A-Z]{2}$/.test(e);
|
|
8528
|
-
};
|
|
8529
|
-
function St(e, t) {
|
|
8530
|
-
var n, r, i = new _(t);
|
|
8531
|
-
return xt(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : (r = e, yt && i.isNonGeographicCallingCode(r) && (n = "001")), {
|
|
8532
|
-
country: n,
|
|
8533
|
-
countryCallingCode: r
|
|
8534
|
-
};
|
|
8535
|
-
}
|
|
8536
|
-
var Ct = /^\+\d+$/;
|
|
8545
|
+
}(), St = /^\+\d+$/;
|
|
8537
8546
|
//#endregion
|
|
8538
8547
|
//#region node_modules/libphonenumber-js/es6/ParseError.js
|
|
8539
|
-
function
|
|
8548
|
+
function A(e) {
|
|
8540
8549
|
"@babel/helpers - typeof";
|
|
8541
|
-
return
|
|
8550
|
+
return A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8542
8551
|
return typeof e;
|
|
8543
8552
|
} : function(e) {
|
|
8544
8553
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8545
|
-
},
|
|
8554
|
+
}, A(e);
|
|
8546
8555
|
}
|
|
8547
|
-
function
|
|
8556
|
+
function Ct(e, t) {
|
|
8548
8557
|
for (var n = 0; n < t.length; n++) {
|
|
8549
8558
|
var r = t[n];
|
|
8550
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
8559
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Tt(r.key), r);
|
|
8551
8560
|
}
|
|
8552
8561
|
}
|
|
8553
|
-
function
|
|
8554
|
-
return t &&
|
|
8562
|
+
function wt(e, t, n) {
|
|
8563
|
+
return t && Ct(e.prototype, t), n && Ct(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8555
8564
|
}
|
|
8556
|
-
function
|
|
8557
|
-
var t =
|
|
8558
|
-
return
|
|
8565
|
+
function Tt(e) {
|
|
8566
|
+
var t = Et(e, "string");
|
|
8567
|
+
return A(t) == "symbol" ? t : t + "";
|
|
8559
8568
|
}
|
|
8560
|
-
function
|
|
8561
|
-
if (
|
|
8569
|
+
function Et(e, t) {
|
|
8570
|
+
if (A(e) != "object" || !e) return e;
|
|
8562
8571
|
var n = e[Symbol.toPrimitive];
|
|
8563
8572
|
if (n !== void 0) {
|
|
8564
8573
|
var r = n.call(e, t || "default");
|
|
8565
|
-
if (
|
|
8574
|
+
if (A(r) != "object") return r;
|
|
8566
8575
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8567
8576
|
}
|
|
8568
8577
|
return (t === "string" ? String : Number)(e);
|
|
8569
8578
|
}
|
|
8570
|
-
function
|
|
8579
|
+
function Dt(e, t) {
|
|
8571
8580
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
8572
8581
|
}
|
|
8573
|
-
function
|
|
8574
|
-
return t =
|
|
8582
|
+
function Ot(e, t, n) {
|
|
8583
|
+
return t = M(t), kt(e, Pt() ? Reflect.construct(t, n || [], M(e).constructor) : t.apply(e, n));
|
|
8575
8584
|
}
|
|
8576
|
-
function
|
|
8577
|
-
if (t && (
|
|
8585
|
+
function kt(e, t) {
|
|
8586
|
+
if (t && (A(t) == "object" || typeof t == "function")) return t;
|
|
8578
8587
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
8579
|
-
return
|
|
8588
|
+
return At(e);
|
|
8580
8589
|
}
|
|
8581
|
-
function
|
|
8590
|
+
function At(e) {
|
|
8582
8591
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8583
8592
|
return e;
|
|
8584
8593
|
}
|
|
8585
|
-
function
|
|
8594
|
+
function jt(e, t) {
|
|
8586
8595
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
8587
8596
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
8588
8597
|
value: e,
|
|
8589
8598
|
writable: !0,
|
|
8590
8599
|
configurable: !0
|
|
8591
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
8600
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && j(e, t);
|
|
8592
8601
|
}
|
|
8593
|
-
function
|
|
8602
|
+
function Mt(e) {
|
|
8594
8603
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
8595
|
-
return
|
|
8596
|
-
if (e === null || !
|
|
8604
|
+
return Mt = function(e) {
|
|
8605
|
+
if (e === null || !Ft(e)) return e;
|
|
8597
8606
|
if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
|
|
8598
8607
|
if (t !== void 0) {
|
|
8599
8608
|
if (t.has(e)) return t.get(e);
|
|
8600
8609
|
t.set(e, n);
|
|
8601
8610
|
}
|
|
8602
8611
|
function n() {
|
|
8603
|
-
return
|
|
8612
|
+
return Nt(e, arguments, M(this).constructor);
|
|
8604
8613
|
}
|
|
8605
8614
|
return n.prototype = Object.create(e.prototype, { constructor: {
|
|
8606
8615
|
value: n,
|
|
8607
8616
|
enumerable: !1,
|
|
8608
8617
|
writable: !0,
|
|
8609
8618
|
configurable: !0
|
|
8610
|
-
} }),
|
|
8611
|
-
},
|
|
8619
|
+
} }), j(n, e);
|
|
8620
|
+
}, Mt(e);
|
|
8612
8621
|
}
|
|
8613
|
-
function
|
|
8614
|
-
if (
|
|
8622
|
+
function Nt(e, t, n) {
|
|
8623
|
+
if (Pt()) return Reflect.construct.apply(null, arguments);
|
|
8615
8624
|
var r = [null];
|
|
8616
8625
|
r.push.apply(r, t);
|
|
8617
8626
|
var i = new (e.bind.apply(e, r))();
|
|
8618
|
-
return n &&
|
|
8627
|
+
return n && j(i, n.prototype), i;
|
|
8619
8628
|
}
|
|
8620
|
-
function
|
|
8629
|
+
function Pt() {
|
|
8621
8630
|
try {
|
|
8622
8631
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
8623
8632
|
} catch {}
|
|
8624
|
-
return (
|
|
8633
|
+
return (Pt = function() {
|
|
8625
8634
|
return !!e;
|
|
8626
8635
|
})();
|
|
8627
8636
|
}
|
|
8628
|
-
function
|
|
8637
|
+
function Ft(e) {
|
|
8629
8638
|
try {
|
|
8630
8639
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
8631
8640
|
} catch {
|
|
8632
8641
|
return typeof e == "function";
|
|
8633
8642
|
}
|
|
8634
8643
|
}
|
|
8635
|
-
function
|
|
8636
|
-
return
|
|
8644
|
+
function j(e, t) {
|
|
8645
|
+
return j = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
8637
8646
|
return e.__proto__ = t, e;
|
|
8638
|
-
},
|
|
8647
|
+
}, j(e, t);
|
|
8639
8648
|
}
|
|
8640
|
-
function
|
|
8641
|
-
return
|
|
8649
|
+
function M(e) {
|
|
8650
|
+
return M = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
8642
8651
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
8643
|
-
},
|
|
8652
|
+
}, M(e);
|
|
8644
8653
|
}
|
|
8645
|
-
var
|
|
8654
|
+
var N = /*#__PURE__*/ function(e) {
|
|
8646
8655
|
function t(e) {
|
|
8647
8656
|
var n;
|
|
8648
|
-
return
|
|
8657
|
+
return Dt(this, t), n = Ot(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
|
|
8649
8658
|
}
|
|
8650
|
-
return
|
|
8651
|
-
}(/*#__PURE__*/
|
|
8652
|
-
function
|
|
8653
|
-
var t = e.search(
|
|
8659
|
+
return jt(t, e), wt(t);
|
|
8660
|
+
}(/*#__PURE__*/ Mt(Error)), It = RegExp("(?:" + Ze() + ")$", "i");
|
|
8661
|
+
function Lt(e) {
|
|
8662
|
+
var t = e.search(It);
|
|
8654
8663
|
if (t < 0) return {};
|
|
8655
|
-
for (var n = e.slice(0, t), r = e.match(
|
|
8664
|
+
for (var n = e.slice(0, t), r = e.match(It), i = 1; i < r.length;) {
|
|
8656
8665
|
if (r[i]) return {
|
|
8657
8666
|
number: n,
|
|
8658
8667
|
ext: r[i]
|
|
@@ -8662,10 +8671,10 @@ function Rt(e) {
|
|
|
8662
8671
|
}
|
|
8663
8672
|
//#endregion
|
|
8664
8673
|
//#region node_modules/libphonenumber-js/es6/helpers/parseDigits.js
|
|
8665
|
-
function
|
|
8674
|
+
function Rt(e, t) {
|
|
8666
8675
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8667
8676
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8668
|
-
if (Array.isArray(e) || (n =
|
|
8677
|
+
if (Array.isArray(e) || (n = zt(e)) || t && e && typeof e.length == "number") {
|
|
8669
8678
|
n && (e = n);
|
|
8670
8679
|
var r = 0;
|
|
8671
8680
|
return function() {
|
|
@@ -8677,19 +8686,19 @@ function zt(e, t) {
|
|
|
8677
8686
|
}
|
|
8678
8687
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8679
8688
|
}
|
|
8680
|
-
function
|
|
8689
|
+
function zt(e, t) {
|
|
8681
8690
|
if (e) {
|
|
8682
|
-
if (typeof e == "string") return
|
|
8691
|
+
if (typeof e == "string") return Bt(e, t);
|
|
8683
8692
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8684
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8693
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Bt(e, t) : void 0;
|
|
8685
8694
|
}
|
|
8686
8695
|
}
|
|
8687
|
-
function
|
|
8696
|
+
function Bt(e, t) {
|
|
8688
8697
|
(t == null || t > e.length) && (t = e.length);
|
|
8689
8698
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8690
8699
|
return r;
|
|
8691
8700
|
}
|
|
8692
|
-
var
|
|
8701
|
+
var Vt = {
|
|
8693
8702
|
0: "0",
|
|
8694
8703
|
1: "1",
|
|
8695
8704
|
2: "2",
|
|
@@ -8731,22 +8740,22 @@ var Ht = {
|
|
|
8731
8740
|
"۸": "8",
|
|
8732
8741
|
"۹": "9"
|
|
8733
8742
|
};
|
|
8734
|
-
function
|
|
8735
|
-
return
|
|
8743
|
+
function Ht(e) {
|
|
8744
|
+
return Vt[e];
|
|
8736
8745
|
}
|
|
8737
|
-
function
|
|
8738
|
-
for (var t = "", n =
|
|
8739
|
-
var i = r.value, a =
|
|
8746
|
+
function P(e) {
|
|
8747
|
+
for (var t = "", n = Rt(e.split("")), r; !(r = n()).done;) {
|
|
8748
|
+
var i = r.value, a = Ht(i);
|
|
8740
8749
|
a && (t += a);
|
|
8741
8750
|
}
|
|
8742
8751
|
return t;
|
|
8743
8752
|
}
|
|
8744
8753
|
//#endregion
|
|
8745
8754
|
//#region node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
|
|
8746
|
-
function
|
|
8755
|
+
function Ut(e, t) {
|
|
8747
8756
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8748
8757
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8749
|
-
if (Array.isArray(e) || (n =
|
|
8758
|
+
if (Array.isArray(e) || (n = Wt(e)) || t && e && typeof e.length == "number") {
|
|
8750
8759
|
n && (e = n);
|
|
8751
8760
|
var r = 0;
|
|
8752
8761
|
return function() {
|
|
@@ -8758,26 +8767,26 @@ function Wt(e, t) {
|
|
|
8758
8767
|
}
|
|
8759
8768
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8760
8769
|
}
|
|
8761
|
-
function
|
|
8770
|
+
function Wt(e, t) {
|
|
8762
8771
|
if (e) {
|
|
8763
|
-
if (typeof e == "string") return
|
|
8772
|
+
if (typeof e == "string") return Gt(e, t);
|
|
8764
8773
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8765
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8774
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Gt(e, t) : void 0;
|
|
8766
8775
|
}
|
|
8767
8776
|
}
|
|
8768
|
-
function
|
|
8777
|
+
function Gt(e, t) {
|
|
8769
8778
|
(t == null || t > e.length) && (t = e.length);
|
|
8770
8779
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8771
8780
|
return r;
|
|
8772
8781
|
}
|
|
8773
|
-
function
|
|
8774
|
-
for (var t = "", n =
|
|
8782
|
+
function Kt(e) {
|
|
8783
|
+
for (var t = "", n = Ut(e.split("")), r; !(r = n()).done;) {
|
|
8775
8784
|
var i = r.value;
|
|
8776
|
-
t +=
|
|
8785
|
+
t += qt(i, t) || "";
|
|
8777
8786
|
}
|
|
8778
8787
|
return t;
|
|
8779
8788
|
}
|
|
8780
|
-
function
|
|
8789
|
+
function qt(e, t, n) {
|
|
8781
8790
|
if (e === "+") {
|
|
8782
8791
|
if (t) {
|
|
8783
8792
|
typeof n == "function" && n("end");
|
|
@@ -8785,111 +8794,113 @@ function Jt(e, t, n) {
|
|
|
8785
8794
|
}
|
|
8786
8795
|
return "+";
|
|
8787
8796
|
}
|
|
8788
|
-
return
|
|
8797
|
+
return Ht(e);
|
|
8789
8798
|
}
|
|
8790
|
-
var
|
|
8791
|
-
function
|
|
8792
|
-
var t = e.indexOf(
|
|
8799
|
+
var Jt = "([" + C + "]|[\\-\\.\\(\\)]?)", Yt = "^\\+" + Jt + "*[" + C + "]" + Jt + "*$", Xt = new RegExp(Yt, "g"), F = C, Zt = "[" + F + "]+((\\-)*[" + F + "])*", Qt = "[a-zA-Z]+((\\-)*[" + F + "])*", $t = "^(" + Zt + "\\.)*" + Qt + "\\.?$", en = new RegExp($t, "g"), tn = "tel:", I = ";phone-context=", nn = ";isub=";
|
|
8800
|
+
function rn(e) {
|
|
8801
|
+
var t = e.indexOf(I);
|
|
8793
8802
|
if (t < 0) return null;
|
|
8794
|
-
var n = t +
|
|
8803
|
+
var n = t + I.length;
|
|
8795
8804
|
if (n >= e.length) return "";
|
|
8796
8805
|
var r = e.indexOf(";", n);
|
|
8797
8806
|
return r >= 0 ? e.substring(n, r) : e.substring(n);
|
|
8798
8807
|
}
|
|
8799
|
-
function
|
|
8800
|
-
return e === null ? !0 : e.length === 0 ? !1 :
|
|
8808
|
+
function an(e) {
|
|
8809
|
+
return e === null ? !0 : e.length === 0 ? !1 : Xt.test(e) || en.test(e);
|
|
8801
8810
|
}
|
|
8802
8811
|
//#endregion
|
|
8803
8812
|
//#region node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
|
|
8804
|
-
function
|
|
8805
|
-
var n = t.extractFormattedPhoneNumber, r =
|
|
8806
|
-
if (!
|
|
8813
|
+
function on(e, t) {
|
|
8814
|
+
var n = t.extractFormattedPhoneNumber, r = rn(e);
|
|
8815
|
+
if (!an(r)) throw new N("NOT_A_NUMBER");
|
|
8807
8816
|
var i;
|
|
8808
8817
|
if (r === null) i = n(e) || "";
|
|
8809
8818
|
else {
|
|
8810
8819
|
i = "", r.charAt(0) === "+" && (i += r);
|
|
8811
|
-
var a = e.indexOf(
|
|
8820
|
+
var a = e.indexOf(tn), o = a >= 0 ? a + tn.length : 0, s = e.indexOf(I);
|
|
8812
8821
|
i += e.substring(o, s);
|
|
8813
8822
|
}
|
|
8814
|
-
var c = i.indexOf(
|
|
8823
|
+
var c = i.indexOf(nn);
|
|
8815
8824
|
if (c > 0 && (i = i.substring(0, c)), i !== "") return i;
|
|
8816
8825
|
}
|
|
8817
8826
|
//#endregion
|
|
8818
8827
|
//#region node_modules/libphonenumber-js/es6/parse.js
|
|
8819
|
-
var
|
|
8820
|
-
function
|
|
8821
|
-
|
|
8822
|
-
var r =
|
|
8823
|
-
if (!
|
|
8824
|
-
|
|
8828
|
+
var sn = 250, cn = RegExp("[" + T + C + "]"), ln = RegExp("[^" + C + "#]+$");
|
|
8829
|
+
function un(e, t, n) {
|
|
8830
|
+
t ||= {};
|
|
8831
|
+
var r = new y(n);
|
|
8832
|
+
if (t.defaultCountry && !r.hasCountry(t.defaultCountry)) throw t.v2 ? new N("INVALID_COUNTRY") : Error(`Unknown country: ${t.defaultCountry}`);
|
|
8833
|
+
var i = fn(e, t.v2, t.extract), a = i.number, o = i.ext, s = i.error;
|
|
8834
|
+
if (!a) {
|
|
8835
|
+
if (t.v2) throw s === "TOO_SHORT" ? new N("TOO_SHORT") : new N("NOT_A_NUMBER");
|
|
8825
8836
|
return {};
|
|
8826
8837
|
}
|
|
8827
|
-
var
|
|
8828
|
-
if (!
|
|
8829
|
-
if (t.v2) throw new
|
|
8838
|
+
var c = mn(a, t.defaultCountry, t.defaultCallingCode, r), l = c.country, u = c.nationalNumber, d = c.countryCallingCode, f = c.countryCallingCodeSource, p = c.carrierCode;
|
|
8839
|
+
if (!r.hasSelectedNumberingPlan()) {
|
|
8840
|
+
if (t.v2) throw new N("INVALID_COUNTRY");
|
|
8830
8841
|
return {};
|
|
8831
8842
|
}
|
|
8832
|
-
if (!
|
|
8843
|
+
if (!u || u.length < 2) {
|
|
8833
8844
|
/* istanbul ignore if */
|
|
8834
|
-
if (t.v2) throw new
|
|
8845
|
+
if (t.v2) throw new N("TOO_SHORT");
|
|
8835
8846
|
return {};
|
|
8836
8847
|
}
|
|
8837
|
-
if (
|
|
8838
|
-
if (t.v2) throw new
|
|
8848
|
+
if (u.length > 17) {
|
|
8849
|
+
if (t.v2) throw new N("TOO_LONG");
|
|
8839
8850
|
return {};
|
|
8840
8851
|
}
|
|
8841
8852
|
if (t.v2) {
|
|
8842
|
-
var
|
|
8843
|
-
return
|
|
8853
|
+
var m = new xt(d, u, r.metadata);
|
|
8854
|
+
return l && (m.country = l), p && (m.carrierCode = p), o && (m.ext = o), m.__countryCallingCodeSource = f, m;
|
|
8844
8855
|
}
|
|
8845
|
-
var
|
|
8856
|
+
var h = (t.extended ? r.hasSelectedNumberingPlan() : l) ? x(u, r.nationalNumberPattern()) : !1;
|
|
8846
8857
|
return t.extended ? {
|
|
8847
|
-
country:
|
|
8848
|
-
countryCallingCode:
|
|
8849
|
-
carrierCode:
|
|
8850
|
-
valid:
|
|
8851
|
-
possible:
|
|
8852
|
-
phone:
|
|
8853
|
-
ext:
|
|
8854
|
-
} :
|
|
8855
|
-
}
|
|
8856
|
-
function
|
|
8858
|
+
country: l,
|
|
8859
|
+
countryCallingCode: d,
|
|
8860
|
+
carrierCode: p,
|
|
8861
|
+
valid: h,
|
|
8862
|
+
possible: h ? !0 : !!(t.extended === !0 && r.possibleLengths() && xe(u, r)),
|
|
8863
|
+
phone: u,
|
|
8864
|
+
ext: o
|
|
8865
|
+
} : h ? pn(l, u, o) : {};
|
|
8866
|
+
}
|
|
8867
|
+
function dn(e, t, n) {
|
|
8857
8868
|
if (e) {
|
|
8858
|
-
if (e.length >
|
|
8859
|
-
if (n) throw new
|
|
8869
|
+
if (e.length > sn) {
|
|
8870
|
+
if (n) throw new N("TOO_LONG");
|
|
8860
8871
|
return;
|
|
8861
8872
|
}
|
|
8862
8873
|
if (t === !1) return e;
|
|
8863
|
-
var r = e.search(
|
|
8864
|
-
if (!(r < 0)) return e.slice(r).replace(
|
|
8874
|
+
var r = e.search(cn);
|
|
8875
|
+
if (!(r < 0)) return e.slice(r).replace(ln, "");
|
|
8865
8876
|
}
|
|
8866
8877
|
}
|
|
8867
|
-
function
|
|
8868
|
-
var r =
|
|
8869
|
-
return
|
|
8878
|
+
function fn(e, t, n) {
|
|
8879
|
+
var r = on(e, { extractFormattedPhoneNumber: function(e) {
|
|
8880
|
+
return dn(e, n, t);
|
|
8870
8881
|
} });
|
|
8871
8882
|
if (!r) return {};
|
|
8872
|
-
if (!
|
|
8873
|
-
var i =
|
|
8883
|
+
if (!rt(r)) return it(r) ? { error: "TOO_SHORT" } : {};
|
|
8884
|
+
var i = Lt(r);
|
|
8874
8885
|
return i.ext ? i : { number: r };
|
|
8875
8886
|
}
|
|
8876
|
-
function
|
|
8887
|
+
function pn(e, t, n) {
|
|
8877
8888
|
var r = {
|
|
8878
8889
|
country: e,
|
|
8879
8890
|
phone: t
|
|
8880
8891
|
};
|
|
8881
8892
|
return n && (r.ext = n), r;
|
|
8882
8893
|
}
|
|
8883
|
-
function
|
|
8884
|
-
var i =
|
|
8894
|
+
function mn(e, t, n, r) {
|
|
8895
|
+
var i = We(Kt(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, s = i.number, c;
|
|
8885
8896
|
if (o) r.selectNumberingPlan(o);
|
|
8886
|
-
else if (s && (t || n))
|
|
8897
|
+
else if (s && (t || n)) t ? (c = t, r.selectNumberingPlan(t), o = r.numberingPlan.callingCode()) : (r.selectNumberingPlan(n), o = n);
|
|
8887
8898
|
else return {};
|
|
8888
8899
|
if (!s) return {
|
|
8889
8900
|
countryCallingCodeSource: a,
|
|
8890
8901
|
countryCallingCode: o
|
|
8891
8902
|
};
|
|
8892
|
-
var l = Be(
|
|
8903
|
+
var l = Be(Kt(s), void 0, r), u = l.nationalNumber, d = l.carrierCode, f = E(o, {
|
|
8893
8904
|
nationalNumber: u,
|
|
8894
8905
|
metadata: r
|
|
8895
8906
|
});
|
|
@@ -8903,15 +8914,15 @@ function gn(e, t, n, r) {
|
|
|
8903
8914
|
}
|
|
8904
8915
|
//#endregion
|
|
8905
8916
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js
|
|
8906
|
-
function
|
|
8917
|
+
function L(e) {
|
|
8907
8918
|
"@babel/helpers - typeof";
|
|
8908
|
-
return
|
|
8919
|
+
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8909
8920
|
return typeof e;
|
|
8910
8921
|
} : function(e) {
|
|
8911
8922
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8912
|
-
},
|
|
8923
|
+
}, L(e);
|
|
8913
8924
|
}
|
|
8914
|
-
function
|
|
8925
|
+
function hn(e, t) {
|
|
8915
8926
|
var n = Object.keys(e);
|
|
8916
8927
|
if (Object.getOwnPropertySymbols) {
|
|
8917
8928
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8921,53 +8932,53 @@ function _n(e, t) {
|
|
|
8921
8932
|
}
|
|
8922
8933
|
return n;
|
|
8923
8934
|
}
|
|
8924
|
-
function
|
|
8935
|
+
function gn(e) {
|
|
8925
8936
|
for (var t = 1; t < arguments.length; t++) {
|
|
8926
8937
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8927
|
-
t % 2 ?
|
|
8928
|
-
|
|
8929
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8938
|
+
t % 2 ? hn(Object(n), !0).forEach(function(t) {
|
|
8939
|
+
_n(e, t, n[t]);
|
|
8940
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hn(Object(n)).forEach(function(t) {
|
|
8930
8941
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8931
8942
|
});
|
|
8932
8943
|
}
|
|
8933
8944
|
return e;
|
|
8934
8945
|
}
|
|
8935
|
-
function
|
|
8936
|
-
return (t =
|
|
8946
|
+
function _n(e, t, n) {
|
|
8947
|
+
return (t = vn(t)) in e ? Object.defineProperty(e, t, {
|
|
8937
8948
|
value: n,
|
|
8938
8949
|
enumerable: !0,
|
|
8939
8950
|
configurable: !0,
|
|
8940
8951
|
writable: !0
|
|
8941
8952
|
}) : e[t] = n, e;
|
|
8942
8953
|
}
|
|
8943
|
-
function
|
|
8944
|
-
var t =
|
|
8945
|
-
return
|
|
8954
|
+
function vn(e) {
|
|
8955
|
+
var t = yn(e, "string");
|
|
8956
|
+
return L(t) == "symbol" ? t : t + "";
|
|
8946
8957
|
}
|
|
8947
|
-
function
|
|
8948
|
-
if (
|
|
8958
|
+
function yn(e, t) {
|
|
8959
|
+
if (L(e) != "object" || !e) return e;
|
|
8949
8960
|
var n = e[Symbol.toPrimitive];
|
|
8950
8961
|
if (n !== void 0) {
|
|
8951
8962
|
var r = n.call(e, t || "default");
|
|
8952
|
-
if (
|
|
8963
|
+
if (L(r) != "object") return r;
|
|
8953
8964
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8954
8965
|
}
|
|
8955
8966
|
return (t === "string" ? String : Number)(e);
|
|
8956
8967
|
}
|
|
8957
|
-
function
|
|
8958
|
-
return
|
|
8968
|
+
function bn(e, t, n) {
|
|
8969
|
+
return un(e, gn(gn({}, t), {}, { v2: !0 }), n);
|
|
8959
8970
|
}
|
|
8960
8971
|
//#endregion
|
|
8961
8972
|
//#region node_modules/libphonenumber-js/es6/normalizeArguments.js
|
|
8962
|
-
function
|
|
8973
|
+
function R(e) {
|
|
8963
8974
|
"@babel/helpers - typeof";
|
|
8964
|
-
return
|
|
8975
|
+
return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8965
8976
|
return typeof e;
|
|
8966
8977
|
} : function(e) {
|
|
8967
8978
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8968
|
-
},
|
|
8979
|
+
}, R(e);
|
|
8969
8980
|
}
|
|
8970
|
-
function
|
|
8981
|
+
function xn(e, t) {
|
|
8971
8982
|
var n = Object.keys(e);
|
|
8972
8983
|
if (Object.getOwnPropertySymbols) {
|
|
8973
8984
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8977,58 +8988,58 @@ function Cn(e, t) {
|
|
|
8977
8988
|
}
|
|
8978
8989
|
return n;
|
|
8979
8990
|
}
|
|
8980
|
-
function
|
|
8991
|
+
function Sn(e) {
|
|
8981
8992
|
for (var t = 1; t < arguments.length; t++) {
|
|
8982
8993
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8983
|
-
t % 2 ?
|
|
8984
|
-
|
|
8985
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8994
|
+
t % 2 ? xn(Object(n), !0).forEach(function(t) {
|
|
8995
|
+
Cn(e, t, n[t]);
|
|
8996
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xn(Object(n)).forEach(function(t) {
|
|
8986
8997
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8987
8998
|
});
|
|
8988
8999
|
}
|
|
8989
9000
|
return e;
|
|
8990
9001
|
}
|
|
8991
|
-
function
|
|
8992
|
-
return (t =
|
|
9002
|
+
function Cn(e, t, n) {
|
|
9003
|
+
return (t = wn(t)) in e ? Object.defineProperty(e, t, {
|
|
8993
9004
|
value: n,
|
|
8994
9005
|
enumerable: !0,
|
|
8995
9006
|
configurable: !0,
|
|
8996
9007
|
writable: !0
|
|
8997
9008
|
}) : e[t] = n, e;
|
|
8998
9009
|
}
|
|
8999
|
-
function
|
|
9000
|
-
var t =
|
|
9001
|
-
return
|
|
9010
|
+
function wn(e) {
|
|
9011
|
+
var t = Tn(e, "string");
|
|
9012
|
+
return R(t) == "symbol" ? t : t + "";
|
|
9002
9013
|
}
|
|
9003
|
-
function
|
|
9004
|
-
if (
|
|
9014
|
+
function Tn(e, t) {
|
|
9015
|
+
if (R(e) != "object" || !e) return e;
|
|
9005
9016
|
var n = e[Symbol.toPrimitive];
|
|
9006
9017
|
if (n !== void 0) {
|
|
9007
9018
|
var r = n.call(e, t || "default");
|
|
9008
|
-
if (
|
|
9019
|
+
if (R(r) != "object") return r;
|
|
9009
9020
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9010
9021
|
}
|
|
9011
9022
|
return (t === "string" ? String : Number)(e);
|
|
9012
9023
|
}
|
|
9013
|
-
function
|
|
9014
|
-
return
|
|
9024
|
+
function En(e, t) {
|
|
9025
|
+
return jn(e) || An(e, t) || On(e, t) || Dn();
|
|
9015
9026
|
}
|
|
9016
|
-
function
|
|
9027
|
+
function Dn() {
|
|
9017
9028
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9018
9029
|
}
|
|
9019
|
-
function
|
|
9030
|
+
function On(e, t) {
|
|
9020
9031
|
if (e) {
|
|
9021
|
-
if (typeof e == "string") return
|
|
9032
|
+
if (typeof e == "string") return kn(e, t);
|
|
9022
9033
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9023
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9034
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kn(e, t) : void 0;
|
|
9024
9035
|
}
|
|
9025
9036
|
}
|
|
9026
|
-
function
|
|
9037
|
+
function kn(e, t) {
|
|
9027
9038
|
(t == null || t > e.length) && (t = e.length);
|
|
9028
9039
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9029
9040
|
return r;
|
|
9030
9041
|
}
|
|
9031
|
-
function
|
|
9042
|
+
function An(e, t) {
|
|
9032
9043
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9033
9044
|
if (n != null) {
|
|
9034
9045
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9049,14 +9060,14 @@ function Mn(e, t) {
|
|
|
9049
9060
|
return s;
|
|
9050
9061
|
}
|
|
9051
9062
|
}
|
|
9052
|
-
function
|
|
9063
|
+
function jn(e) {
|
|
9053
9064
|
if (Array.isArray(e)) return e;
|
|
9054
9065
|
}
|
|
9055
|
-
function
|
|
9056
|
-
var t =
|
|
9066
|
+
function Mn(e) {
|
|
9067
|
+
var t = En(Array.prototype.slice.call(e), 4), n = t[0], r = t[1], i = t[2], a = t[3], o, s, c;
|
|
9057
9068
|
if (typeof n == "string") o = n;
|
|
9058
9069
|
else throw TypeError("A text for parsing must be a string.");
|
|
9059
|
-
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s =
|
|
9070
|
+
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s = Sn({ defaultCountry: r }, s));
|
|
9060
9071
|
else if (f(r)) i ? (s = r, c = i) : c = r;
|
|
9061
9072
|
else throw Error(`Invalid second argument: ${r}`);
|
|
9062
9073
|
return {
|
|
@@ -9067,15 +9078,15 @@ function Pn(e) {
|
|
|
9067
9078
|
}
|
|
9068
9079
|
//#endregion
|
|
9069
9080
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumber_.js
|
|
9070
|
-
function
|
|
9081
|
+
function z(e) {
|
|
9071
9082
|
"@babel/helpers - typeof";
|
|
9072
|
-
return
|
|
9083
|
+
return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9073
9084
|
return typeof e;
|
|
9074
9085
|
} : function(e) {
|
|
9075
9086
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9076
|
-
},
|
|
9087
|
+
}, z(e);
|
|
9077
9088
|
}
|
|
9078
|
-
function
|
|
9089
|
+
function Nn(e, t) {
|
|
9079
9090
|
var n = Object.keys(e);
|
|
9080
9091
|
if (Object.getOwnPropertySymbols) {
|
|
9081
9092
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -9085,96 +9096,96 @@ function Fn(e, t) {
|
|
|
9085
9096
|
}
|
|
9086
9097
|
return n;
|
|
9087
9098
|
}
|
|
9088
|
-
function
|
|
9099
|
+
function Pn(e) {
|
|
9089
9100
|
for (var t = 1; t < arguments.length; t++) {
|
|
9090
9101
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
9091
|
-
t % 2 ?
|
|
9092
|
-
|
|
9093
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9102
|
+
t % 2 ? Nn(Object(n), !0).forEach(function(t) {
|
|
9103
|
+
Fn(e, t, n[t]);
|
|
9104
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nn(Object(n)).forEach(function(t) {
|
|
9094
9105
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
9095
9106
|
});
|
|
9096
9107
|
}
|
|
9097
9108
|
return e;
|
|
9098
9109
|
}
|
|
9099
|
-
function
|
|
9100
|
-
return (t =
|
|
9110
|
+
function Fn(e, t, n) {
|
|
9111
|
+
return (t = In(t)) in e ? Object.defineProperty(e, t, {
|
|
9101
9112
|
value: n,
|
|
9102
9113
|
enumerable: !0,
|
|
9103
9114
|
configurable: !0,
|
|
9104
9115
|
writable: !0
|
|
9105
9116
|
}) : e[t] = n, e;
|
|
9106
9117
|
}
|
|
9107
|
-
function
|
|
9108
|
-
var t =
|
|
9109
|
-
return
|
|
9118
|
+
function In(e) {
|
|
9119
|
+
var t = Ln(e, "string");
|
|
9120
|
+
return z(t) == "symbol" ? t : t + "";
|
|
9110
9121
|
}
|
|
9111
|
-
function
|
|
9112
|
-
if (
|
|
9122
|
+
function Ln(e, t) {
|
|
9123
|
+
if (z(e) != "object" || !e) return e;
|
|
9113
9124
|
var n = e[Symbol.toPrimitive];
|
|
9114
9125
|
if (n !== void 0) {
|
|
9115
9126
|
var r = n.call(e, t || "default");
|
|
9116
|
-
if (
|
|
9127
|
+
if (z(r) != "object") return r;
|
|
9117
9128
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9118
9129
|
}
|
|
9119
9130
|
return (t === "string" ? String : Number)(e);
|
|
9120
9131
|
}
|
|
9121
|
-
function
|
|
9122
|
-
t && t.defaultCountry && !pe(t.defaultCountry, n) && (t =
|
|
9132
|
+
function Rn(e, t, n) {
|
|
9133
|
+
t && t.defaultCountry && !pe(t.defaultCountry, n) && (t = Pn(Pn({}, t), {}, { defaultCountry: void 0 }));
|
|
9123
9134
|
try {
|
|
9124
|
-
return
|
|
9135
|
+
return bn(e, t, n);
|
|
9125
9136
|
} catch (e) {
|
|
9126
9137
|
/* istanbul ignore else */
|
|
9127
|
-
if (!(e instanceof
|
|
9138
|
+
if (!(e instanceof N)) throw e;
|
|
9128
9139
|
}
|
|
9129
9140
|
}
|
|
9130
9141
|
//#endregion
|
|
9131
9142
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumber.js
|
|
9132
|
-
function
|
|
9133
|
-
var e =
|
|
9134
|
-
return
|
|
9143
|
+
function zn() {
|
|
9144
|
+
var e = Mn(arguments), t = e.text, n = e.options, r = e.metadata;
|
|
9145
|
+
return Rn(t, n, r);
|
|
9135
9146
|
}
|
|
9136
9147
|
//#endregion
|
|
9137
9148
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeState.js
|
|
9138
|
-
function
|
|
9149
|
+
function B(e) {
|
|
9139
9150
|
"@babel/helpers - typeof";
|
|
9140
|
-
return
|
|
9151
|
+
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9141
9152
|
return typeof e;
|
|
9142
9153
|
} : function(e) {
|
|
9143
9154
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9144
|
-
},
|
|
9155
|
+
}, B(e);
|
|
9145
9156
|
}
|
|
9146
|
-
function
|
|
9157
|
+
function Bn(e, t) {
|
|
9147
9158
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9148
9159
|
}
|
|
9149
|
-
function
|
|
9160
|
+
function Vn(e, t) {
|
|
9150
9161
|
for (var n = 0; n < t.length; n++) {
|
|
9151
9162
|
var r = t[n];
|
|
9152
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9163
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Un(r.key), r);
|
|
9153
9164
|
}
|
|
9154
9165
|
}
|
|
9155
|
-
function
|
|
9156
|
-
return t &&
|
|
9166
|
+
function Hn(e, t, n) {
|
|
9167
|
+
return t && Vn(e.prototype, t), n && Vn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9157
9168
|
}
|
|
9158
|
-
function
|
|
9159
|
-
var t =
|
|
9160
|
-
return
|
|
9169
|
+
function Un(e) {
|
|
9170
|
+
var t = Wn(e, "string");
|
|
9171
|
+
return B(t) == "symbol" ? t : t + "";
|
|
9161
9172
|
}
|
|
9162
|
-
function
|
|
9163
|
-
if (
|
|
9173
|
+
function Wn(e, t) {
|
|
9174
|
+
if (B(e) != "object" || !e) return e;
|
|
9164
9175
|
var n = e[Symbol.toPrimitive];
|
|
9165
9176
|
if (n !== void 0) {
|
|
9166
9177
|
var r = n.call(e, t || "default");
|
|
9167
|
-
if (
|
|
9178
|
+
if (B(r) != "object") return r;
|
|
9168
9179
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9169
9180
|
}
|
|
9170
9181
|
return (t === "string" ? String : Number)(e);
|
|
9171
9182
|
}
|
|
9172
|
-
var
|
|
9183
|
+
var Gn = /*#__PURE__*/ function() {
|
|
9173
9184
|
function e(t) {
|
|
9174
9185
|
var n = t.onCountryChange, r = t.onCallingCodeChange;
|
|
9175
|
-
|
|
9186
|
+
Bn(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
|
|
9176
9187
|
}
|
|
9177
|
-
return
|
|
9188
|
+
return Hn(e, [
|
|
9178
9189
|
{
|
|
9179
9190
|
key: "reset",
|
|
9180
9191
|
value: function(e) {
|
|
@@ -9249,10 +9260,10 @@ var qn = /*#__PURE__*/ function() {
|
|
|
9249
9260
|
}();
|
|
9250
9261
|
//#endregion
|
|
9251
9262
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js
|
|
9252
|
-
function
|
|
9263
|
+
function Kn(e, t) {
|
|
9253
9264
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9254
9265
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9255
|
-
if (Array.isArray(e) || (n =
|
|
9266
|
+
if (Array.isArray(e) || (n = qn(e)) || t && e && typeof e.length == "number") {
|
|
9256
9267
|
n && (e = n);
|
|
9257
9268
|
var r = 0;
|
|
9258
9269
|
return function() {
|
|
@@ -9264,28 +9275,28 @@ function Jn(e, t) {
|
|
|
9264
9275
|
}
|
|
9265
9276
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9266
9277
|
}
|
|
9267
|
-
function
|
|
9278
|
+
function qn(e, t) {
|
|
9268
9279
|
if (e) {
|
|
9269
|
-
if (typeof e == "string") return
|
|
9280
|
+
if (typeof e == "string") return Jn(e, t);
|
|
9270
9281
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9271
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9282
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Jn(e, t) : void 0;
|
|
9272
9283
|
}
|
|
9273
9284
|
}
|
|
9274
|
-
function
|
|
9285
|
+
function Jn(e, t) {
|
|
9275
9286
|
(t == null || t > e.length) && (t = e.length);
|
|
9276
9287
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9277
9288
|
return r;
|
|
9278
9289
|
}
|
|
9279
|
-
var
|
|
9290
|
+
var Yn = /* @__PURE__ */ RegExp("x");
|
|
9280
9291
|
function V(e, t) {
|
|
9281
9292
|
if (t < 1) return "";
|
|
9282
9293
|
for (var n = ""; t > 1;) t & 1 && (n += e), t >>= 1, e += e;
|
|
9283
9294
|
return n + e;
|
|
9284
9295
|
}
|
|
9285
|
-
function
|
|
9286
|
-
return e[t] === ")" && t++,
|
|
9296
|
+
function Xn(e, t) {
|
|
9297
|
+
return e[t] === ")" && t++, Zn(e.slice(0, t));
|
|
9287
9298
|
}
|
|
9288
|
-
function
|
|
9299
|
+
function Zn(e) {
|
|
9289
9300
|
for (var t = [], n = 0; n < e.length;) e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
|
|
9290
9301
|
var r = 0, i = "";
|
|
9291
9302
|
t.push(e.length);
|
|
@@ -9295,54 +9306,54 @@ function Qn(e) {
|
|
|
9295
9306
|
}
|
|
9296
9307
|
return i;
|
|
9297
9308
|
}
|
|
9298
|
-
function
|
|
9299
|
-
for (var r =
|
|
9309
|
+
function Qn(e, t, n) {
|
|
9310
|
+
for (var r = Kn(n.split("")), i; !(i = r()).done;) {
|
|
9300
9311
|
var a = i.value;
|
|
9301
|
-
if (e.slice(t + 1).search(
|
|
9302
|
-
t = e.search(
|
|
9312
|
+
if (e.slice(t + 1).search(Yn) < 0) return;
|
|
9313
|
+
t = e.search(Yn), e = e.replace(Yn, a);
|
|
9303
9314
|
}
|
|
9304
9315
|
return [e, t];
|
|
9305
9316
|
}
|
|
9306
9317
|
//#endregion
|
|
9307
9318
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js
|
|
9308
|
-
function
|
|
9319
|
+
function $n(e, t, n) {
|
|
9309
9320
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9310
|
-
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return
|
|
9321
|
+
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return tr(e, t, {
|
|
9311
9322
|
metadata: r,
|
|
9312
9323
|
shouldTryNationalPrefixFormattingRule: i,
|
|
9313
9324
|
getSeparatorAfterNationalPrefix: a
|
|
9314
9325
|
});
|
|
9315
9326
|
}
|
|
9316
|
-
function
|
|
9317
|
-
return
|
|
9327
|
+
function er(e, t) {
|
|
9328
|
+
return b(e, void 0, t) === "IS_POSSIBLE";
|
|
9318
9329
|
}
|
|
9319
|
-
function
|
|
9330
|
+
function tr(e, t, n) {
|
|
9320
9331
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9321
9332
|
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
9322
|
-
var o =
|
|
9333
|
+
var o = nr(e, t, {
|
|
9323
9334
|
useNationalPrefixFormattingRule: !0,
|
|
9324
9335
|
getSeparatorAfterNationalPrefix: a,
|
|
9325
9336
|
metadata: r
|
|
9326
9337
|
});
|
|
9327
9338
|
if (o) return o;
|
|
9328
9339
|
}
|
|
9329
|
-
return
|
|
9340
|
+
return nr(e, t, {
|
|
9330
9341
|
useNationalPrefixFormattingRule: !1,
|
|
9331
9342
|
getSeparatorAfterNationalPrefix: a,
|
|
9332
9343
|
metadata: r
|
|
9333
9344
|
});
|
|
9334
9345
|
}
|
|
9335
|
-
function
|
|
9336
|
-
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o =
|
|
9346
|
+
function nr(e, t, n) {
|
|
9347
|
+
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o = qe(e.nationalSignificantNumber, t, {
|
|
9337
9348
|
carrierCode: e.carrierCode,
|
|
9338
9349
|
useInternationalFormat: e.international,
|
|
9339
9350
|
withNationalPrefix: i,
|
|
9340
9351
|
metadata: r
|
|
9341
9352
|
});
|
|
9342
|
-
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)),
|
|
9353
|
+
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), rr(o, e)) return o;
|
|
9343
9354
|
}
|
|
9344
|
-
function
|
|
9345
|
-
return
|
|
9355
|
+
function rr(e, t) {
|
|
9356
|
+
return P(e) === t.getNationalDigits();
|
|
9346
9357
|
}
|
|
9347
9358
|
//#endregion
|
|
9348
9359
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js
|
|
@@ -9354,23 +9365,23 @@ function H(e) {
|
|
|
9354
9365
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9355
9366
|
}, H(e);
|
|
9356
9367
|
}
|
|
9357
|
-
function
|
|
9368
|
+
function ir(e, t) {
|
|
9358
9369
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9359
9370
|
}
|
|
9360
|
-
function
|
|
9371
|
+
function ar(e, t) {
|
|
9361
9372
|
for (var n = 0; n < t.length; n++) {
|
|
9362
9373
|
var r = t[n];
|
|
9363
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9374
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, sr(r.key), r);
|
|
9364
9375
|
}
|
|
9365
9376
|
}
|
|
9366
|
-
function
|
|
9367
|
-
return t &&
|
|
9377
|
+
function or(e, t, n) {
|
|
9378
|
+
return t && ar(e.prototype, t), n && ar(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9368
9379
|
}
|
|
9369
|
-
function
|
|
9370
|
-
var t =
|
|
9380
|
+
function sr(e) {
|
|
9381
|
+
var t = cr(e, "string");
|
|
9371
9382
|
return H(t) == "symbol" ? t : t + "";
|
|
9372
9383
|
}
|
|
9373
|
-
function
|
|
9384
|
+
function cr(e, t) {
|
|
9374
9385
|
if (H(e) != "object" || !e) return e;
|
|
9375
9386
|
var n = e[Symbol.toPrimitive];
|
|
9376
9387
|
if (n !== void 0) {
|
|
@@ -9380,11 +9391,11 @@ function lr(e, t) {
|
|
|
9380
9391
|
}
|
|
9381
9392
|
return (t === "string" ? String : Number)(e);
|
|
9382
9393
|
}
|
|
9383
|
-
var
|
|
9394
|
+
var lr = /*#__PURE__*/ function() {
|
|
9384
9395
|
function e() {
|
|
9385
|
-
|
|
9396
|
+
ir(this, e);
|
|
9386
9397
|
}
|
|
9387
|
-
return
|
|
9398
|
+
return or(e, [
|
|
9388
9399
|
{
|
|
9389
9400
|
key: "parse",
|
|
9390
9401
|
value: function(e) {
|
|
@@ -9395,7 +9406,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9395
9406
|
var t = this.context[0], n = t.branches, r = t.instructions;
|
|
9396
9407
|
if (n) return {
|
|
9397
9408
|
op: "|",
|
|
9398
|
-
args: n.concat([
|
|
9409
|
+
args: n.concat([pr(r)])
|
|
9399
9410
|
};
|
|
9400
9411
|
/* istanbul ignore if */
|
|
9401
9412
|
if (r.length === 0) throw Error("Pattern is required");
|
|
@@ -9424,9 +9435,9 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9424
9435
|
key: "parsePattern",
|
|
9425
9436
|
value: function(e) {
|
|
9426
9437
|
if (!e) throw Error("Pattern is required");
|
|
9427
|
-
var t = e.match(
|
|
9438
|
+
var t = e.match(fr);
|
|
9428
9439
|
if (!t) {
|
|
9429
|
-
if (
|
|
9440
|
+
if (dr.test(e)) throw Error(`Illegal characters found in a pattern: ${e}`);
|
|
9430
9441
|
this.getContext().instructions = this.getContext().instructions.concat(e.split(""));
|
|
9431
9442
|
return;
|
|
9432
9443
|
}
|
|
@@ -9443,7 +9454,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9443
9454
|
if (!this.getContext().or) throw Error("\")\" operator must be preceded by \"(?:\" operator");
|
|
9444
9455
|
if (r && this.parsePattern(r), this.getContext().instructions.length === 0) throw Error("No instructions found after \"|\" operator in an \"or\" group");
|
|
9445
9456
|
var a = this.getContext().branches;
|
|
9446
|
-
a.push(
|
|
9457
|
+
a.push(pr(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
9447
9458
|
op: "|",
|
|
9448
9459
|
args: a
|
|
9449
9460
|
});
|
|
@@ -9454,7 +9465,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9454
9465
|
/* istanbul ignore else */
|
|
9455
9466
|
if (this.context.length === 1) this.getContext().branches = [];
|
|
9456
9467
|
else throw Error("\"branches\" not found in an \"or\" group context");
|
|
9457
|
-
this.getContext().branches.push(
|
|
9468
|
+
this.getContext().branches.push(pr(this.getContext().instructions)), this.getContext().instructions = [];
|
|
9458
9469
|
break;
|
|
9459
9470
|
case "[":
|
|
9460
9471
|
r && this.parsePattern(r), this.startContext({ oneOfSet: !0 });
|
|
@@ -9463,7 +9474,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9463
9474
|
if (!this.getContext().oneOfSet) throw Error("\"]\" operator must be preceded by \"[\" operator");
|
|
9464
9475
|
this.endContext(), this.getContext().instructions.push({
|
|
9465
9476
|
op: "[]",
|
|
9466
|
-
args:
|
|
9477
|
+
args: ur(r)
|
|
9467
9478
|
});
|
|
9468
9479
|
break;
|
|
9469
9480
|
/* istanbul ignore next */
|
|
@@ -9474,7 +9485,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9474
9485
|
}
|
|
9475
9486
|
]);
|
|
9476
9487
|
}();
|
|
9477
|
-
function
|
|
9488
|
+
function ur(e) {
|
|
9478
9489
|
for (var t = [], n = 0; n < e.length;) {
|
|
9479
9490
|
if (e[n] === "-") {
|
|
9480
9491
|
if (n === 0 || n === e.length - 1) throw Error(`Couldn't parse a one-of set pattern: ${e}`);
|
|
@@ -9484,16 +9495,16 @@ function dr(e) {
|
|
|
9484
9495
|
}
|
|
9485
9496
|
return t;
|
|
9486
9497
|
}
|
|
9487
|
-
var
|
|
9488
|
-
function
|
|
9498
|
+
var dr = /[\(\)\[\]\?\:\|]/, fr = /* @__PURE__ */ RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
|
|
9499
|
+
function pr(e) {
|
|
9489
9500
|
return e.length === 1 ? e[0] : e;
|
|
9490
9501
|
}
|
|
9491
9502
|
//#endregion
|
|
9492
9503
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js
|
|
9493
|
-
function
|
|
9504
|
+
function mr(e, t) {
|
|
9494
9505
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9495
9506
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9496
|
-
if (Array.isArray(e) || (n =
|
|
9507
|
+
if (Array.isArray(e) || (n = hr(e)) || t && e && typeof e.length == "number") {
|
|
9497
9508
|
n && (e = n);
|
|
9498
9509
|
var r = 0;
|
|
9499
9510
|
return function() {
|
|
@@ -9505,14 +9516,14 @@ function hr(e, t) {
|
|
|
9505
9516
|
}
|
|
9506
9517
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9507
9518
|
}
|
|
9508
|
-
function
|
|
9519
|
+
function hr(e, t) {
|
|
9509
9520
|
if (e) {
|
|
9510
|
-
if (typeof e == "string") return
|
|
9521
|
+
if (typeof e == "string") return gr(e, t);
|
|
9511
9522
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9512
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9523
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? gr(e, t) : void 0;
|
|
9513
9524
|
}
|
|
9514
9525
|
}
|
|
9515
|
-
function
|
|
9526
|
+
function gr(e, t) {
|
|
9516
9527
|
(t == null || t > e.length) && (t = e.length);
|
|
9517
9528
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9518
9529
|
return r;
|
|
@@ -9525,23 +9536,23 @@ function U(e) {
|
|
|
9525
9536
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9526
9537
|
}, U(e);
|
|
9527
9538
|
}
|
|
9528
|
-
function
|
|
9539
|
+
function _r(e, t) {
|
|
9529
9540
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9530
9541
|
}
|
|
9531
|
-
function
|
|
9542
|
+
function vr(e, t) {
|
|
9532
9543
|
for (var n = 0; n < t.length; n++) {
|
|
9533
9544
|
var r = t[n];
|
|
9534
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9545
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, br(r.key), r);
|
|
9535
9546
|
}
|
|
9536
9547
|
}
|
|
9537
|
-
function
|
|
9538
|
-
return t &&
|
|
9548
|
+
function yr(e, t, n) {
|
|
9549
|
+
return t && vr(e.prototype, t), n && vr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9539
9550
|
}
|
|
9540
|
-
function
|
|
9541
|
-
var t =
|
|
9551
|
+
function br(e) {
|
|
9552
|
+
var t = xr(e, "string");
|
|
9542
9553
|
return U(t) == "symbol" ? t : t + "";
|
|
9543
9554
|
}
|
|
9544
|
-
function
|
|
9555
|
+
function xr(e, t) {
|
|
9545
9556
|
if (U(e) != "object" || !e) return e;
|
|
9546
9557
|
var n = e[Symbol.toPrimitive];
|
|
9547
9558
|
if (n !== void 0) {
|
|
@@ -9551,21 +9562,21 @@ function Sr(e, t) {
|
|
|
9551
9562
|
}
|
|
9552
9563
|
return (t === "string" ? String : Number)(e);
|
|
9553
9564
|
}
|
|
9554
|
-
var
|
|
9565
|
+
var Sr = /*#__PURE__*/ function() {
|
|
9555
9566
|
function e(t) {
|
|
9556
|
-
|
|
9567
|
+
_r(this, e), this.matchTree = new lr().parse(t);
|
|
9557
9568
|
}
|
|
9558
|
-
return
|
|
9569
|
+
return yr(e, [{
|
|
9559
9570
|
key: "match",
|
|
9560
9571
|
value: function(e) {
|
|
9561
9572
|
var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
|
|
9562
9573
|
if (!e) throw Error("String is required");
|
|
9563
|
-
var n =
|
|
9574
|
+
var n = Cr(e.split(""), this.matchTree, !0);
|
|
9564
9575
|
if (n && n.match && delete n.matchedChars, !(n && n.overflow && !t)) return n;
|
|
9565
9576
|
}
|
|
9566
9577
|
}]);
|
|
9567
9578
|
}();
|
|
9568
|
-
function
|
|
9579
|
+
function Cr(e, t, n) {
|
|
9569
9580
|
if (typeof t == "string") {
|
|
9570
9581
|
var r = e.join("");
|
|
9571
9582
|
return t.indexOf(r) === 0 ? e.length === t.length ? {
|
|
@@ -9578,7 +9589,7 @@ function wr(e, t, n) {
|
|
|
9578
9589
|
}
|
|
9579
9590
|
if (Array.isArray(t)) {
|
|
9580
9591
|
for (var i = e.slice(), a = 0; a < t.length;) {
|
|
9581
|
-
var o = t[a], s =
|
|
9592
|
+
var o = t[a], s = Cr(i, o, n && a === t.length - 1);
|
|
9582
9593
|
if (!s) return;
|
|
9583
9594
|
if (s.overflow) return s;
|
|
9584
9595
|
if (s.match) {
|
|
@@ -9598,8 +9609,8 @@ ${JSON.stringify(s, null, 2)}`);
|
|
|
9598
9609
|
}
|
|
9599
9610
|
switch (t.op) {
|
|
9600
9611
|
case "|":
|
|
9601
|
-
for (var c, l =
|
|
9602
|
-
var d = u.value, f =
|
|
9612
|
+
for (var c, l = mr(t.args), u; !(u = l()).done;) {
|
|
9613
|
+
var d = u.value, f = Cr(e, d, n);
|
|
9603
9614
|
if (f) {
|
|
9604
9615
|
if (f.overflow) return f;
|
|
9605
9616
|
if (f.match) return {
|
|
@@ -9613,7 +9624,7 @@ ${JSON.stringify(f, null, 2)}`);
|
|
|
9613
9624
|
}
|
|
9614
9625
|
return c ? { partialMatch: !0 } : void 0;
|
|
9615
9626
|
case "[]":
|
|
9616
|
-
for (var p =
|
|
9627
|
+
for (var p = mr(t.args), m; !(m = p()).done;) {
|
|
9617
9628
|
var h = m.value;
|
|
9618
9629
|
if (e[0] === h) return e.length === 1 ? {
|
|
9619
9630
|
match: !0,
|
|
@@ -9638,10 +9649,10 @@ function W(e) {
|
|
|
9638
9649
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9639
9650
|
}, W(e);
|
|
9640
9651
|
}
|
|
9641
|
-
function
|
|
9652
|
+
function wr(e, t) {
|
|
9642
9653
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9643
9654
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9644
|
-
if (Array.isArray(e) || (n =
|
|
9655
|
+
if (Array.isArray(e) || (n = Tr(e)) || t && e && typeof e.length == "number") {
|
|
9645
9656
|
n && (e = n);
|
|
9646
9657
|
var r = 0;
|
|
9647
9658
|
return function() {
|
|
@@ -9653,35 +9664,35 @@ function Tr(e, t) {
|
|
|
9653
9664
|
}
|
|
9654
9665
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9655
9666
|
}
|
|
9656
|
-
function
|
|
9667
|
+
function Tr(e, t) {
|
|
9657
9668
|
if (e) {
|
|
9658
|
-
if (typeof e == "string") return
|
|
9669
|
+
if (typeof e == "string") return Er(e, t);
|
|
9659
9670
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9660
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9671
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Er(e, t) : void 0;
|
|
9661
9672
|
}
|
|
9662
9673
|
}
|
|
9663
|
-
function
|
|
9674
|
+
function Er(e, t) {
|
|
9664
9675
|
(t == null || t > e.length) && (t = e.length);
|
|
9665
9676
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9666
9677
|
return r;
|
|
9667
9678
|
}
|
|
9668
|
-
function
|
|
9679
|
+
function Dr(e, t) {
|
|
9669
9680
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9670
9681
|
}
|
|
9671
|
-
function
|
|
9682
|
+
function Or(e, t) {
|
|
9672
9683
|
for (var n = 0; n < t.length; n++) {
|
|
9673
9684
|
var r = t[n];
|
|
9674
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9685
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ar(r.key), r);
|
|
9675
9686
|
}
|
|
9676
9687
|
}
|
|
9677
|
-
function
|
|
9678
|
-
return t &&
|
|
9688
|
+
function kr(e, t, n) {
|
|
9689
|
+
return t && Or(e.prototype, t), n && Or(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9679
9690
|
}
|
|
9680
|
-
function
|
|
9681
|
-
var t =
|
|
9691
|
+
function Ar(e) {
|
|
9692
|
+
var t = jr(e, "string");
|
|
9682
9693
|
return W(t) == "symbol" ? t : t + "";
|
|
9683
9694
|
}
|
|
9684
|
-
function
|
|
9695
|
+
function jr(e, t) {
|
|
9685
9696
|
if (W(e) != "object" || !e) return e;
|
|
9686
9697
|
var n = e[Symbol.toPrimitive];
|
|
9687
9698
|
if (n !== void 0) {
|
|
@@ -9691,17 +9702,17 @@ function Mr(e, t) {
|
|
|
9691
9702
|
}
|
|
9692
9703
|
return (t === "string" ? String : Number)(e);
|
|
9693
9704
|
}
|
|
9694
|
-
var
|
|
9705
|
+
var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
9695
9706
|
return /\[([^\[\]])*\]/g;
|
|
9696
|
-
},
|
|
9707
|
+
}, Ir = G && function() {
|
|
9697
9708
|
return /\d(?=[^,}][^,}])/g;
|
|
9698
|
-
},
|
|
9709
|
+
}, Lr = RegExp("[" + w + "]*\\$1[" + w + "]*(\\$\\d[" + w + "]*)*$"), Rr = 3, zr = /*#__PURE__*/ function() {
|
|
9699
9710
|
function e(t) {
|
|
9700
9711
|
t.state;
|
|
9701
9712
|
var n = t.metadata;
|
|
9702
|
-
|
|
9713
|
+
Dr(this, e), this.metadata = n, this.resetFormat();
|
|
9703
9714
|
}
|
|
9704
|
-
return
|
|
9715
|
+
return kr(e, [
|
|
9705
9716
|
{
|
|
9706
9717
|
key: "resetFormat",
|
|
9707
9718
|
value: function() {
|
|
@@ -9718,8 +9729,8 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9718
9729
|
key: "format",
|
|
9719
9730
|
value: function(e, t) {
|
|
9720
9731
|
var n = this;
|
|
9721
|
-
if (
|
|
9722
|
-
var a = i.value, o =
|
|
9732
|
+
if (er(t.nationalSignificantNumber, this.metadata)) for (var r = wr(this.matchingFormats), i; !(i = r()).done;) {
|
|
9733
|
+
var a = i.value, o = $n(t, a, {
|
|
9723
9734
|
metadata: this.metadata,
|
|
9724
9735
|
shouldTryNationalPrefixFormattingRule: function(e) {
|
|
9725
9736
|
return n.shouldTryNationalPrefixFormattingRule(e, {
|
|
@@ -9746,7 +9757,7 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9746
9757
|
{
|
|
9747
9758
|
key: "narrowDownMatchingFormats",
|
|
9748
9759
|
value: function(e) {
|
|
9749
|
-
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length -
|
|
9760
|
+
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length - Rr;
|
|
9750
9761
|
o < 0 && (o = 0), this.matchingFormats = this.matchingFormats.filter(function(e) {
|
|
9751
9762
|
return t.formatSuits(e, i, r) && t.formatMatches(e, a, o);
|
|
9752
9763
|
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
@@ -9765,8 +9776,8 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9765
9776
|
if (r === 0) return !0;
|
|
9766
9777
|
n = Math.min(n, r - 1);
|
|
9767
9778
|
var i = e.leadingDigitsPatterns()[n];
|
|
9768
|
-
if (t.length <
|
|
9769
|
-
return new
|
|
9779
|
+
if (t.length < Rr) try {
|
|
9780
|
+
return new Sr(i).match(t, { allowOverflow: !0 }) !== void 0;
|
|
9770
9781
|
} catch (e) /* istanbul ignore next */ {
|
|
9771
9782
|
return console.error(e), !0;
|
|
9772
9783
|
}
|
|
@@ -9787,10 +9798,10 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9787
9798
|
var n = a.value;
|
|
9788
9799
|
return t.chosenFormat === n ? 0 :
|
|
9789
9800
|
/* istanbul ignore if */
|
|
9790
|
-
|
|
9801
|
+
Lr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e) ? (t.chosenFormat = n, 0) : (t.matchingFormats = t.matchingFormats.filter(function(e) {
|
|
9791
9802
|
return e !== n;
|
|
9792
9803
|
}), 1) : 1;
|
|
9793
|
-
}, r, i =
|
|
9804
|
+
}, r, i = wr(this.matchingFormats.slice()), a; !(a = i()).done && (r = n(), r !== 0););
|
|
9794
9805
|
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
9795
9806
|
}
|
|
9796
9807
|
},
|
|
@@ -9806,7 +9817,7 @@ Rr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9806
9817
|
{
|
|
9807
9818
|
key: "getSeparatorAfterNationalPrefix",
|
|
9808
9819
|
value: function(e) {
|
|
9809
|
-
return this.isNANP || e && e.nationalPrefixFormattingRule() &&
|
|
9820
|
+
return this.isNANP || e && e.nationalPrefixFormattingRule() && Pr.test(e.nationalPrefixFormattingRule()) ? " " : "";
|
|
9810
9821
|
}
|
|
9811
9822
|
},
|
|
9812
9823
|
{
|
|
@@ -9821,7 +9832,7 @@ Rr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9821
9832
|
value: function(e) {
|
|
9822
9833
|
if (this.template) {
|
|
9823
9834
|
for (var t = -1, n = 0, r = e.international ? this.getInternationalPrefixBeforeCountryCallingCode(e, { spacing: !1 }) : ""; n < r.length + e.getDigitsWithoutInternationalPrefix().length;) t = this.template.indexOf("x", t + 1), n++;
|
|
9824
|
-
return
|
|
9835
|
+
return Xn(this.template, t + 1);
|
|
9825
9836
|
}
|
|
9826
9837
|
}
|
|
9827
9838
|
},
|
|
@@ -9836,34 +9847,34 @@ Rr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9836
9847
|
value: function(e, t) {
|
|
9837
9848
|
var n = t.nationalSignificantNumber, r = t.international, i = t.nationalPrefix, a = t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, o = e.pattern();
|
|
9838
9849
|
/* istanbul ignore else */
|
|
9839
|
-
G && (o = o.replace(
|
|
9840
|
-
var s =
|
|
9850
|
+
G && (o = o.replace(Fr(), "\\d").replace(Ir(), "\\d"));
|
|
9851
|
+
var s = Nr.match(o)[0];
|
|
9841
9852
|
if (!(n.length > s.length)) {
|
|
9842
|
-
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g,
|
|
9853
|
+
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g, Mr);
|
|
9843
9854
|
c.test(l) && (s = l);
|
|
9844
9855
|
var u = this.getFormatFormat(e, r), d;
|
|
9845
9856
|
if (this.shouldTryNationalPrefixFormattingRule(e, {
|
|
9846
9857
|
international: r,
|
|
9847
9858
|
nationalPrefix: i
|
|
9848
9859
|
})) {
|
|
9849
|
-
var f = u.replace(
|
|
9860
|
+
var f = u.replace(Ke, e.nationalPrefixFormattingRule());
|
|
9850
9861
|
/* istanbul ignore else */
|
|
9851
|
-
if (
|
|
9862
|
+
if (P(e.nationalPrefixFormattingRule()) === (i || "") + P("$1") && (u = f, d = !0, i)) for (var p = i.length; p > 0;) u = u.replace(/\d/, "x"), p--;
|
|
9852
9863
|
}
|
|
9853
|
-
var m = s.replace(new RegExp(o), u).replace(new RegExp(
|
|
9854
|
-
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m =
|
|
9864
|
+
var m = s.replace(new RegExp(o), u).replace(new RegExp(Mr, "g"), "x");
|
|
9865
|
+
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m = Ge(m)), m;
|
|
9855
9866
|
}
|
|
9856
9867
|
}
|
|
9857
9868
|
},
|
|
9858
9869
|
{
|
|
9859
9870
|
key: "formatNextNationalNumberDigits",
|
|
9860
9871
|
value: function(e) {
|
|
9861
|
-
var t =
|
|
9872
|
+
var t = Qn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, e);
|
|
9862
9873
|
if (!t) {
|
|
9863
9874
|
this.resetFormat();
|
|
9864
9875
|
return;
|
|
9865
9876
|
}
|
|
9866
|
-
return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1],
|
|
9877
|
+
return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1], Xn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
9867
9878
|
}
|
|
9868
9879
|
},
|
|
9869
9880
|
{
|
|
@@ -9888,25 +9899,25 @@ function K(e) {
|
|
|
9888
9899
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9889
9900
|
}, K(e);
|
|
9890
9901
|
}
|
|
9891
|
-
function
|
|
9892
|
-
return
|
|
9902
|
+
function Br(e, t) {
|
|
9903
|
+
return Gr(e) || Wr(e, t) || Hr(e, t) || Vr();
|
|
9893
9904
|
}
|
|
9894
|
-
function
|
|
9905
|
+
function Vr() {
|
|
9895
9906
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9896
9907
|
}
|
|
9897
|
-
function
|
|
9908
|
+
function Hr(e, t) {
|
|
9898
9909
|
if (e) {
|
|
9899
|
-
if (typeof e == "string") return
|
|
9910
|
+
if (typeof e == "string") return Ur(e, t);
|
|
9900
9911
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9901
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9912
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ur(e, t) : void 0;
|
|
9902
9913
|
}
|
|
9903
9914
|
}
|
|
9904
|
-
function
|
|
9915
|
+
function Ur(e, t) {
|
|
9905
9916
|
(t == null || t > e.length) && (t = e.length);
|
|
9906
9917
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9907
9918
|
return r;
|
|
9908
9919
|
}
|
|
9909
|
-
function
|
|
9920
|
+
function Wr(e, t) {
|
|
9910
9921
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9911
9922
|
if (n != null) {
|
|
9912
9923
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9927,26 +9938,26 @@ function Gr(e, t) {
|
|
|
9927
9938
|
return s;
|
|
9928
9939
|
}
|
|
9929
9940
|
}
|
|
9930
|
-
function
|
|
9941
|
+
function Gr(e) {
|
|
9931
9942
|
if (Array.isArray(e)) return e;
|
|
9932
9943
|
}
|
|
9933
|
-
function
|
|
9944
|
+
function Kr(e, t) {
|
|
9934
9945
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9935
9946
|
}
|
|
9936
|
-
function
|
|
9947
|
+
function qr(e, t) {
|
|
9937
9948
|
for (var n = 0; n < t.length; n++) {
|
|
9938
9949
|
var r = t[n];
|
|
9939
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9950
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Yr(r.key), r);
|
|
9940
9951
|
}
|
|
9941
9952
|
}
|
|
9942
|
-
function
|
|
9943
|
-
return t &&
|
|
9953
|
+
function Jr(e, t, n) {
|
|
9954
|
+
return t && qr(e.prototype, t), n && qr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9944
9955
|
}
|
|
9945
|
-
function
|
|
9946
|
-
var t =
|
|
9956
|
+
function Yr(e) {
|
|
9957
|
+
var t = Xr(e, "string");
|
|
9947
9958
|
return K(t) == "symbol" ? t : t + "";
|
|
9948
9959
|
}
|
|
9949
|
-
function
|
|
9960
|
+
function Xr(e, t) {
|
|
9950
9961
|
if (K(e) != "object" || !e) return e;
|
|
9951
9962
|
var n = e[Symbol.toPrimitive];
|
|
9952
9963
|
if (n !== void 0) {
|
|
@@ -9956,16 +9967,16 @@ function Zr(e, t) {
|
|
|
9956
9967
|
}
|
|
9957
9968
|
return (t === "string" ? String : Number)(e);
|
|
9958
9969
|
}
|
|
9959
|
-
var
|
|
9970
|
+
var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T + "][" + w + C + "]*|[" + w + C + "]+)", ei = RegExp("[^" + w + C + "]+.*$"), ti = /[^\d\[\]]/, ni = /*#__PURE__*/ function() {
|
|
9960
9971
|
function e(t) {
|
|
9961
9972
|
var n = t.defaultCountry, r = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
|
|
9962
|
-
|
|
9973
|
+
Kr(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = i, this.onNationalSignificantNumberChange = a;
|
|
9963
9974
|
}
|
|
9964
|
-
return
|
|
9975
|
+
return Jr(e, [
|
|
9965
9976
|
{
|
|
9966
9977
|
key: "input",
|
|
9967
9978
|
value: function(e, t) {
|
|
9968
|
-
var n =
|
|
9979
|
+
var n = Br(ai(e), 2), r = n[0], i = n[1], a = P(r), o;
|
|
9969
9980
|
return i && (t.digits || (t.startInternationalNumber(void 0, void 0), a || (o = !0))), a && this.inputDigits(a, t), {
|
|
9970
9981
|
digits: a,
|
|
9971
9982
|
justLeadingPlus: o
|
|
@@ -9994,7 +10005,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
9994
10005
|
{
|
|
9995
10006
|
key: "extractCountryCallingCode",
|
|
9996
10007
|
value: function(e) {
|
|
9997
|
-
var t =
|
|
10008
|
+
var t = We("+" + e.getDigitsWithoutInternationalPrefix(), e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = t.countryCallingCode, r = t.number;
|
|
9998
10009
|
if (n) return e.setCallingCode(n), e.update({ nationalSignificantNumber: r }), !0;
|
|
9999
10010
|
}
|
|
10000
10011
|
},
|
|
@@ -10004,7 +10015,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10004
10015
|
if (e) {
|
|
10005
10016
|
this.hasSelectedNumberingPlan = !0;
|
|
10006
10017
|
var t = e._nationalPrefixForParsing();
|
|
10007
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = t &&
|
|
10018
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = t && ti.test(t);
|
|
10008
10019
|
} else this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
10009
10020
|
}
|
|
10010
10021
|
},
|
|
@@ -10012,7 +10023,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10012
10023
|
key: "extractNationalSignificantNumber",
|
|
10013
10024
|
value: function(e, t) {
|
|
10014
10025
|
if (this.hasSelectedNumberingPlan) {
|
|
10015
|
-
var n =
|
|
10026
|
+
var n = Fe(e, this.metadata), r = n.nationalPrefix, i = n.nationalNumber, a = n.carrierCode;
|
|
10016
10027
|
if (i !== e) return this.onExtractedNationalNumber(r, a, i, e, t), !0;
|
|
10017
10028
|
}
|
|
10018
10029
|
}
|
|
@@ -10022,7 +10033,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10022
10033
|
value: function(e, t, n) {
|
|
10023
10034
|
if (!this.hasExtractedNationalSignificantNumber) return this.extractNationalSignificantNumber(e, n);
|
|
10024
10035
|
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
10025
|
-
var r =
|
|
10036
|
+
var r = Fe(e, this.metadata), i = r.nationalPrefix, a = r.nationalNumber, o = r.carrierCode;
|
|
10026
10037
|
if (a !== t) return this.onExtractedNationalNumber(i, o, a, e, n), !0;
|
|
10027
10038
|
}
|
|
10028
10039
|
}
|
|
@@ -10060,7 +10071,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10060
10071
|
value: function(e) {
|
|
10061
10072
|
var t = e.international, n = e.IDDPrefix, r = e.digits;
|
|
10062
10073
|
if (e.nationalSignificantNumber, !(t || n)) {
|
|
10063
|
-
var i =
|
|
10074
|
+
var i = Pe(r, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
10064
10075
|
if (i !== void 0 && i !== r) return e.update({ IDDPrefix: r.slice(0, r.length - i.length) }), this.startInternationalNumber(e, {
|
|
10065
10076
|
country: void 0,
|
|
10066
10077
|
callingCode: void 0
|
|
@@ -10097,21 +10108,21 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10097
10108
|
}
|
|
10098
10109
|
]);
|
|
10099
10110
|
}();
|
|
10100
|
-
function
|
|
10101
|
-
var t = e.search(
|
|
10111
|
+
function ri(e) {
|
|
10112
|
+
var t = e.search($r);
|
|
10102
10113
|
if (!(t < 0)) {
|
|
10103
10114
|
e = e.slice(t);
|
|
10104
10115
|
var n;
|
|
10105
|
-
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(
|
|
10116
|
+
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(ei, ""), n && (e = "+" + e), e;
|
|
10106
10117
|
}
|
|
10107
10118
|
}
|
|
10108
|
-
function
|
|
10109
|
-
var t =
|
|
10119
|
+
function ii(e) {
|
|
10120
|
+
var t = ri(e) || "";
|
|
10110
10121
|
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
10111
10122
|
}
|
|
10112
|
-
function
|
|
10113
|
-
var t =
|
|
10114
|
-
return
|
|
10123
|
+
function ai(e) {
|
|
10124
|
+
var t = Br(ii(e), 2), n = t[0], r = t[1];
|
|
10125
|
+
return Qr.test(n) || (n = ""), [n, r];
|
|
10115
10126
|
}
|
|
10116
10127
|
//#endregion
|
|
10117
10128
|
//#region node_modules/libphonenumber-js/es6/AsYouType.js
|
|
@@ -10123,25 +10134,25 @@ function q(e) {
|
|
|
10123
10134
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
10124
10135
|
}, q(e);
|
|
10125
10136
|
}
|
|
10126
|
-
function
|
|
10127
|
-
return
|
|
10137
|
+
function oi(e, t) {
|
|
10138
|
+
return di(e) || ui(e, t) || ci(e, t) || si();
|
|
10128
10139
|
}
|
|
10129
|
-
function
|
|
10140
|
+
function si() {
|
|
10130
10141
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10131
10142
|
}
|
|
10132
|
-
function
|
|
10143
|
+
function ci(e, t) {
|
|
10133
10144
|
if (e) {
|
|
10134
|
-
if (typeof e == "string") return
|
|
10145
|
+
if (typeof e == "string") return li(e, t);
|
|
10135
10146
|
var n = {}.toString.call(e).slice(8, -1);
|
|
10136
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
10147
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? li(e, t) : void 0;
|
|
10137
10148
|
}
|
|
10138
10149
|
}
|
|
10139
|
-
function
|
|
10150
|
+
function li(e, t) {
|
|
10140
10151
|
(t == null || t > e.length) && (t = e.length);
|
|
10141
10152
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
10142
10153
|
return r;
|
|
10143
10154
|
}
|
|
10144
|
-
function
|
|
10155
|
+
function ui(e, t) {
|
|
10145
10156
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
10146
10157
|
if (n != null) {
|
|
10147
10158
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -10162,26 +10173,26 @@ function di(e, t) {
|
|
|
10162
10173
|
return s;
|
|
10163
10174
|
}
|
|
10164
10175
|
}
|
|
10165
|
-
function
|
|
10176
|
+
function di(e) {
|
|
10166
10177
|
if (Array.isArray(e)) return e;
|
|
10167
10178
|
}
|
|
10168
|
-
function
|
|
10179
|
+
function fi(e, t) {
|
|
10169
10180
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
10170
10181
|
}
|
|
10171
|
-
function
|
|
10182
|
+
function pi(e, t) {
|
|
10172
10183
|
for (var n = 0; n < t.length; n++) {
|
|
10173
10184
|
var r = t[n];
|
|
10174
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
10185
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, hi(r.key), r);
|
|
10175
10186
|
}
|
|
10176
10187
|
}
|
|
10177
|
-
function
|
|
10178
|
-
return t &&
|
|
10188
|
+
function mi(e, t, n) {
|
|
10189
|
+
return t && pi(e.prototype, t), n && pi(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
10179
10190
|
}
|
|
10180
|
-
function
|
|
10181
|
-
var t =
|
|
10191
|
+
function hi(e) {
|
|
10192
|
+
var t = gi(e, "string");
|
|
10182
10193
|
return q(t) == "symbol" ? t : t + "";
|
|
10183
10194
|
}
|
|
10184
|
-
function
|
|
10195
|
+
function gi(e, t) {
|
|
10185
10196
|
if (q(e) != "object" || !e) return e;
|
|
10186
10197
|
var n = e[Symbol.toPrimitive];
|
|
10187
10198
|
if (n !== void 0) {
|
|
@@ -10191,18 +10202,18 @@ function _i(e, t) {
|
|
|
10191
10202
|
}
|
|
10192
10203
|
return (t === "string" ? String : Number)(e);
|
|
10193
10204
|
}
|
|
10194
|
-
var
|
|
10205
|
+
var _i = /*#__PURE__*/ function() {
|
|
10195
10206
|
function e(t, n) {
|
|
10196
|
-
|
|
10197
|
-
var r =
|
|
10207
|
+
fi(this, e), this.metadata = new y(n);
|
|
10208
|
+
var r = oi(this.getCountryAndCallingCode(t), 2), i = r[0], a = r[1];
|
|
10198
10209
|
this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
|
|
10199
10210
|
}
|
|
10200
|
-
return
|
|
10211
|
+
return mi(e, [
|
|
10201
10212
|
{
|
|
10202
10213
|
key: "getCountryAndCallingCode",
|
|
10203
10214
|
value: function(e) {
|
|
10204
10215
|
var t, n;
|
|
10205
|
-
return e && (f(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0),
|
|
10216
|
+
return e && (f(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0), [t, n];
|
|
10206
10217
|
}
|
|
10207
10218
|
},
|
|
10208
10219
|
{
|
|
@@ -10227,17 +10238,17 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10227
10238
|
key: "reset",
|
|
10228
10239
|
value: function() {
|
|
10229
10240
|
var e = this;
|
|
10230
|
-
return this.state = new
|
|
10241
|
+
return this.state = new Gn({
|
|
10231
10242
|
onCountryChange: function(t) {
|
|
10232
10243
|
e.country = t;
|
|
10233
10244
|
},
|
|
10234
10245
|
onCallingCodeChange: function(t, n) {
|
|
10235
|
-
e.metadata.selectNumberingPlan(n
|
|
10246
|
+
e.metadata.selectNumberingPlan(n || t), e.formatter.reset(e.metadata.numberingPlan, e.state), e.parser.reset(e.metadata.numberingPlan);
|
|
10236
10247
|
}
|
|
10237
|
-
}), this.formatter = new
|
|
10248
|
+
}), this.formatter = new zr({
|
|
10238
10249
|
state: this.state,
|
|
10239
10250
|
metadata: this.metadata
|
|
10240
|
-
}), this.parser = new
|
|
10251
|
+
}), this.parser = new ni({
|
|
10241
10252
|
defaultCountry: this.defaultCountry,
|
|
10242
10253
|
defaultCallingCode: this.defaultCallingCode,
|
|
10243
10254
|
metadata: this.metadata,
|
|
@@ -10278,8 +10289,7 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10278
10289
|
{
|
|
10279
10290
|
key: "_getCountry",
|
|
10280
10291
|
value: function() {
|
|
10281
|
-
|
|
10282
|
-
if (!(vi && e === "001")) return e;
|
|
10292
|
+
return this.state.country;
|
|
10283
10293
|
}
|
|
10284
10294
|
},
|
|
10285
10295
|
{
|
|
@@ -10332,10 +10342,11 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10332
10342
|
{
|
|
10333
10343
|
key: "determineTheCountry",
|
|
10334
10344
|
value: function() {
|
|
10335
|
-
|
|
10345
|
+
var e = E(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
|
|
10336
10346
|
nationalNumber: this.state.nationalSignificantNumber,
|
|
10337
10347
|
metadata: this.metadata
|
|
10338
|
-
})
|
|
10348
|
+
});
|
|
10349
|
+
e !== this.state.country && (this.state.setCountry(e), e && this.metadata.selectNumberingPlan(e));
|
|
10339
10350
|
}
|
|
10340
10351
|
},
|
|
10341
10352
|
{
|
|
@@ -10351,22 +10362,17 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10351
10362
|
{
|
|
10352
10363
|
key: "getNumber",
|
|
10353
10364
|
value: function() {
|
|
10354
|
-
var e = this.state, t = e.nationalSignificantNumber, n = e.carrierCode, r = e.callingCode
|
|
10355
|
-
if (t
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
var c = Le(t, {
|
|
10362
|
-
countries: s,
|
|
10363
|
-
metadata: this.metadata.metadata
|
|
10364
|
-
});
|
|
10365
|
-
c && (i = c);
|
|
10365
|
+
var e = this.state, t = e.nationalSignificantNumber, n = e.carrierCode, r = e.callingCode;
|
|
10366
|
+
if (t) {
|
|
10367
|
+
var i = this._getCountry();
|
|
10368
|
+
if (!(!i && !r)) {
|
|
10369
|
+
if (i && i === this.defaultCountry) {
|
|
10370
|
+
var a = vi(this.metadata.numberingPlan.callingCode(), t, this.metadata);
|
|
10371
|
+
a && (i = a);
|
|
10366
10372
|
}
|
|
10373
|
+
var o = new xt(i || r, t, this.metadata.metadata);
|
|
10374
|
+
return n && (o.carrierCode = n), o;
|
|
10367
10375
|
}
|
|
10368
|
-
var l = new bt(i || r, t, this.metadata.metadata);
|
|
10369
|
-
return n && (l.carrierCode = n), l;
|
|
10370
10376
|
}
|
|
10371
10377
|
}
|
|
10372
10378
|
},
|
|
@@ -10384,6 +10390,17 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10384
10390
|
return e ? e.isValid() : !1;
|
|
10385
10391
|
}
|
|
10386
10392
|
},
|
|
10393
|
+
{
|
|
10394
|
+
key: "validateLength",
|
|
10395
|
+
value: function() {
|
|
10396
|
+
var e = this.state, t = e.digits, n = e.nationalSignificantNumber;
|
|
10397
|
+
if (!t) return "NOT_A_NUMBER";
|
|
10398
|
+
if (!this.metadata.numberingPlan) return "INVALID_COUNTRY";
|
|
10399
|
+
if (!n) return "TOO_SHORT";
|
|
10400
|
+
var r = b(n, void 0, this.metadata);
|
|
10401
|
+
if (r !== "IS_POSSIBLE") return r;
|
|
10402
|
+
}
|
|
10403
|
+
},
|
|
10387
10404
|
{
|
|
10388
10405
|
key: "getNationalNumber",
|
|
10389
10406
|
value: function() {
|
|
@@ -10404,65 +10421,69 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10404
10421
|
}
|
|
10405
10422
|
]);
|
|
10406
10423
|
}();
|
|
10424
|
+
function vi(e, t, n) {
|
|
10425
|
+
var r = n.getCountryCodesForCallingCode(e);
|
|
10426
|
+
if (r.length > 1) return ze(t, r, n.metadata);
|
|
10427
|
+
}
|
|
10407
10428
|
//#endregion
|
|
10408
10429
|
//#region node_modules/libphonenumber-js/es6/getExampleNumber.js
|
|
10409
|
-
function
|
|
10410
|
-
if (t[e]) return new
|
|
10430
|
+
function yi(e, t, n) {
|
|
10431
|
+
if (t[e]) return new xt(e, t[e], n);
|
|
10411
10432
|
}
|
|
10412
10433
|
//#endregion
|
|
10413
10434
|
//#region node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js
|
|
10414
10435
|
function J() {
|
|
10415
|
-
return l(
|
|
10436
|
+
return l(zn, arguments);
|
|
10416
10437
|
}
|
|
10417
10438
|
//#endregion
|
|
10418
10439
|
//#region node_modules/libphonenumber-js/min/exports/AsYouType.js
|
|
10419
10440
|
function Y(e) {
|
|
10420
|
-
return
|
|
10441
|
+
return _i.call(this, e, c);
|
|
10421
10442
|
}
|
|
10422
|
-
Y.prototype = Object.create(
|
|
10443
|
+
Y.prototype = Object.create(_i.prototype, {}), Y.prototype.constructor = Y;
|
|
10423
10444
|
//#endregion
|
|
10424
10445
|
//#region node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js
|
|
10425
|
-
function
|
|
10426
|
-
return l(
|
|
10446
|
+
function bi() {
|
|
10447
|
+
return l(fe, arguments);
|
|
10427
10448
|
}
|
|
10428
10449
|
//#endregion
|
|
10429
10450
|
//#region node_modules/libphonenumber-js/min/exports/getExampleNumber.js
|
|
10430
|
-
function
|
|
10431
|
-
return l(
|
|
10451
|
+
function xi() {
|
|
10452
|
+
return l(yi, arguments);
|
|
10432
10453
|
}
|
|
10433
10454
|
//#endregion
|
|
10434
10455
|
//#region libs/checkout/src/utils/phone/countryDialCodes.ts
|
|
10435
10456
|
var X = (e) => {
|
|
10436
10457
|
let t = e.toUpperCase().split("").map((e) => 127397 + e.charCodeAt(0));
|
|
10437
10458
|
return String.fromCodePoint(...t);
|
|
10438
|
-
},
|
|
10439
|
-
let
|
|
10440
|
-
return (
|
|
10459
|
+
}, Si = (t, n) => {
|
|
10460
|
+
let i = Object.values(e);
|
|
10461
|
+
return (t?.length ? i.filter((e) => t.includes(e.toUpperCase())) : i).map((e) => {
|
|
10441
10462
|
try {
|
|
10442
|
-
let
|
|
10463
|
+
let t = bi(e);
|
|
10443
10464
|
return {
|
|
10444
10465
|
code: e.toUpperCase(),
|
|
10445
|
-
name:
|
|
10446
|
-
dialCode: `+${
|
|
10466
|
+
name: r(e, n),
|
|
10467
|
+
dialCode: `+${t}`,
|
|
10447
10468
|
flag: X(e)
|
|
10448
10469
|
};
|
|
10449
10470
|
} catch {
|
|
10450
10471
|
return null;
|
|
10451
10472
|
}
|
|
10452
|
-
}).filter((e) => e !== null).sort((e,
|
|
10453
|
-
},
|
|
10473
|
+
}).filter((e) => e !== null).sort((e, t) => e.name.localeCompare(t.name, n));
|
|
10474
|
+
}, Ci = (e) => {
|
|
10454
10475
|
try {
|
|
10455
|
-
let t = e.toUpperCase(), n =
|
|
10476
|
+
let t = e.toUpperCase(), n = bi(t);
|
|
10456
10477
|
return {
|
|
10457
10478
|
code: t,
|
|
10458
|
-
name:
|
|
10479
|
+
name: r(t),
|
|
10459
10480
|
dialCode: `+${n}`,
|
|
10460
10481
|
flag: X(t)
|
|
10461
10482
|
};
|
|
10462
10483
|
} catch {
|
|
10463
10484
|
return null;
|
|
10464
10485
|
}
|
|
10465
|
-
},
|
|
10486
|
+
}, wi = {
|
|
10466
10487
|
AC: "40123",
|
|
10467
10488
|
AD: "312345",
|
|
10468
10489
|
AE: "501234567",
|
|
@@ -10714,7 +10735,7 @@ var X = (e) => {
|
|
|
10714
10735
|
} catch {
|
|
10715
10736
|
return e;
|
|
10716
10737
|
}
|
|
10717
|
-
},
|
|
10738
|
+
}, Ti = (e, t) => {
|
|
10718
10739
|
try {
|
|
10719
10740
|
return J(e, t)?.number || null;
|
|
10720
10741
|
} catch {
|
|
@@ -10732,12 +10753,12 @@ var X = (e) => {
|
|
|
10732
10753
|
}
|
|
10733
10754
|
}, $ = (e) => {
|
|
10734
10755
|
try {
|
|
10735
|
-
let t =
|
|
10756
|
+
let t = xi(e, wi);
|
|
10736
10757
|
return t ? t.formatNational() : "";
|
|
10737
10758
|
} catch {
|
|
10738
10759
|
return "";
|
|
10739
10760
|
}
|
|
10740
|
-
},
|
|
10761
|
+
}, Ei = (e, t) => {
|
|
10741
10762
|
try {
|
|
10742
10763
|
if (e.startsWith("+")) {
|
|
10743
10764
|
let n = J(e);
|
|
@@ -10747,27 +10768,27 @@ var X = (e) => {
|
|
|
10747
10768
|
} catch {
|
|
10748
10769
|
return !1;
|
|
10749
10770
|
}
|
|
10750
|
-
},
|
|
10771
|
+
}, Di = (e) => {
|
|
10751
10772
|
try {
|
|
10752
|
-
let t =
|
|
10773
|
+
let t = xi(e, wi);
|
|
10753
10774
|
return t ? t.nationalNumber.length : Infinity;
|
|
10754
10775
|
} catch {
|
|
10755
10776
|
return Infinity;
|
|
10756
10777
|
}
|
|
10757
|
-
},
|
|
10778
|
+
}, Oi = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" aria-hidden=\"true\"><path d=\"M2 3.5L5 6.5L8 3.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", ki = class extends a {
|
|
10758
10779
|
_flagDisplay;
|
|
10759
10780
|
_selectElement;
|
|
10760
10781
|
_locale;
|
|
10761
|
-
constructor(
|
|
10782
|
+
constructor(e) {
|
|
10762
10783
|
super("div", ["country-select-wrapper"]);
|
|
10763
|
-
let { countries:
|
|
10764
|
-
this._locale =
|
|
10784
|
+
let { countries: t, selectedCode: n, locale: r, styles: i, ariaLabel: o, onChange: s } = e;
|
|
10785
|
+
this._locale = r, this._flagDisplay = new a("span", ["country-flag"]), this._flagDisplay.setText(X(n)), this._selectElement = new a("select", ["country-select"]), this._selectElement.setAttribute("aria-label", o);
|
|
10765
10786
|
let c = this._selectElement.getElement();
|
|
10766
|
-
c.style.fontFamily = `"${
|
|
10787
|
+
c.style.fontFamily = `"${i.fontFamily}", sans-serif`, c.style.color = i.textColor, c.style.fontSize = `${i.fontSize}px`, this._buildOptions(t, n), this._selectElement.addEventListener("change", (e) => {
|
|
10767
10788
|
s(e.target.value);
|
|
10768
10789
|
});
|
|
10769
|
-
let l = new
|
|
10770
|
-
l.getElement().innerHTML =
|
|
10790
|
+
let l = new a("span", ["country-chevron"]);
|
|
10791
|
+
l.getElement().innerHTML = Oi, this.appendChild(this._flagDisplay), this.appendChild(l), this.appendChild(this._selectElement);
|
|
10771
10792
|
}
|
|
10772
10793
|
setCountry(e) {
|
|
10773
10794
|
return this._selectElement.getElement().value = e, this._flagDisplay.setText(X(e)), this;
|
|
@@ -10790,7 +10811,7 @@ var X = (e) => {
|
|
|
10790
10811
|
}), n.appendChild(i);
|
|
10791
10812
|
});
|
|
10792
10813
|
}
|
|
10793
|
-
},
|
|
10814
|
+
}, Ai = class extends a {
|
|
10794
10815
|
_countrySelector;
|
|
10795
10816
|
_inputElement;
|
|
10796
10817
|
_countryCodeInput;
|
|
@@ -10801,39 +10822,40 @@ var X = (e) => {
|
|
|
10801
10822
|
_onChange;
|
|
10802
10823
|
_onBlur;
|
|
10803
10824
|
_translationFunc;
|
|
10804
|
-
|
|
10825
|
+
_customPlaceholder;
|
|
10826
|
+
constructor(e) {
|
|
10805
10827
|
super("div", ["input-wrapper", "phone-number-field-wrapper"]);
|
|
10806
|
-
let { value:
|
|
10807
|
-
this._onChange =
|
|
10828
|
+
let { value: t, onChange: r, onBlur: o, onTab: s, checkoutProfile: c, translationFunc: l, defaultCountry: u, allowedCountries: d, locale: f, label: p, placeholder: m } = e;
|
|
10829
|
+
this._onChange = r, this._onBlur = o, this._translationFunc = l, this._customPlaceholder = m, this._currentCountryCode = u?.toUpperCase() || "US", this._buildLabel(c, l, p), this._containerElement = this._buildContainer(c), this._countrySelector = this._buildCountrySelector(d, f, c, l), this._containerElement.appendChild(this._countrySelector), this._countryCodeInput = i.createInput("hidden", [], {
|
|
10808
10830
|
name: "phoneCountryCode",
|
|
10809
10831
|
value: this._currentCountryCode
|
|
10810
10832
|
}), this.appendChild(this._countryCodeInput);
|
|
10811
|
-
let
|
|
10812
|
-
this._inputElement =
|
|
10813
|
-
let
|
|
10814
|
-
|
|
10815
|
-
text:
|
|
10816
|
-
visible:
|
|
10817
|
-
}), this.appendChild(this._helperText),
|
|
10818
|
-
}
|
|
10819
|
-
_buildLabel(e,
|
|
10820
|
-
let
|
|
10833
|
+
let h = this._currentCountryCode, { inputElement: g, initialValue: _ } = this._buildInput(c, t, s);
|
|
10834
|
+
this._inputElement = g, _ !== t && (this._inputElement.getElement().value = _), this._currentCountryCode !== h && this._syncCountryCodeInput(this._currentCountryCode);
|
|
10835
|
+
let v = new a("div", ["phone-input-wrapper"]);
|
|
10836
|
+
v.appendChild(this._inputElement), this._containerElement.appendChild(v), this.appendChild(this._containerElement), this._helperText = new n({
|
|
10837
|
+
text: e.errorMsg || "",
|
|
10838
|
+
visible: e.error
|
|
10839
|
+
}), this.appendChild(this._helperText), e.error && this._containerElement.addClass("error");
|
|
10840
|
+
}
|
|
10841
|
+
_buildLabel(e, n, r) {
|
|
10842
|
+
let i = new t({
|
|
10821
10843
|
styles: {
|
|
10822
10844
|
color: e.styles.textColor,
|
|
10823
10845
|
fontSize: e.styles.fontSize
|
|
10824
10846
|
},
|
|
10825
|
-
label:
|
|
10847
|
+
label: r ?? n("phoneNumber"),
|
|
10826
10848
|
id: "phoneNumber"
|
|
10827
10849
|
});
|
|
10828
|
-
this.appendChild(
|
|
10850
|
+
this.appendChild(i);
|
|
10829
10851
|
}
|
|
10830
|
-
_buildContainer(
|
|
10831
|
-
let
|
|
10832
|
-
return
|
|
10852
|
+
_buildContainer(e) {
|
|
10853
|
+
let t = new a("div", ["phone-number-field-container"]), n = t.getElement();
|
|
10854
|
+
return n.style.borderRadius = `${e.styles.borderRadius}px`, n.style.setProperty("--phone-border-radius", `${e.styles.borderRadius}px`), t;
|
|
10833
10855
|
}
|
|
10834
10856
|
_buildCountrySelector(e, t, n, r) {
|
|
10835
|
-
return new
|
|
10836
|
-
countries:
|
|
10857
|
+
return new ki({
|
|
10858
|
+
countries: Si(e, t),
|
|
10837
10859
|
selectedCode: this._currentCountryCode,
|
|
10838
10860
|
locale: t,
|
|
10839
10861
|
styles: {
|
|
@@ -10848,16 +10870,16 @@ var X = (e) => {
|
|
|
10848
10870
|
});
|
|
10849
10871
|
}
|
|
10850
10872
|
_buildInput(e, t, n) {
|
|
10851
|
-
let
|
|
10873
|
+
let r = t;
|
|
10852
10874
|
if (t && t.startsWith("+")) {
|
|
10853
10875
|
let e = Q(t);
|
|
10854
|
-
e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode),
|
|
10876
|
+
e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode), r = Z(t, e.countryCode));
|
|
10855
10877
|
}
|
|
10856
|
-
let a =
|
|
10878
|
+
let a = i.createInput("tel", ["form-input"], {
|
|
10857
10879
|
id: "phoneNumber",
|
|
10858
10880
|
name: "phoneNumber",
|
|
10859
|
-
placeholder: $(this._currentCountryCode),
|
|
10860
|
-
value:
|
|
10881
|
+
placeholder: this._customPlaceholder ?? $(this._currentCountryCode),
|
|
10882
|
+
value: r,
|
|
10861
10883
|
autocomplete: "tel",
|
|
10862
10884
|
maxlength: "30"
|
|
10863
10885
|
}), o = a.getElement();
|
|
@@ -10872,7 +10894,7 @@ var X = (e) => {
|
|
|
10872
10894
|
t.key === "Tab" && !t.shiftKey && (t.preventDefault(), n());
|
|
10873
10895
|
}), {
|
|
10874
10896
|
inputElement: a,
|
|
10875
|
-
initialValue:
|
|
10897
|
+
initialValue: r
|
|
10876
10898
|
};
|
|
10877
10899
|
}
|
|
10878
10900
|
_handleInput(e) {
|
|
@@ -10886,16 +10908,16 @@ var X = (e) => {
|
|
|
10886
10908
|
}
|
|
10887
10909
|
_handleInternationalInput(e, t) {
|
|
10888
10910
|
let n = Q(e);
|
|
10889
|
-
return !n?.countryCode || n.countryCode === this._currentCountryCode ? null : (this._currentCountryCode = n.countryCode, this._countrySelector.setCountry(n.countryCode), t.placeholder = $(n.countryCode), n.countryCode);
|
|
10911
|
+
return !n?.countryCode || n.countryCode === this._currentCountryCode ? null : (this._currentCountryCode = n.countryCode, this._countrySelector.setCountry(n.countryCode), t.placeholder = this._customPlaceholder ?? $(n.countryCode), n.countryCode);
|
|
10890
10912
|
}
|
|
10891
10913
|
_handleNationalInput(e, t, n) {
|
|
10892
10914
|
let r = this._countrySelector.getCountry();
|
|
10893
|
-
if (r && r !== this._currentCountryCode && (this._currentCountryCode = r, this._countrySelector.setCountry(r), t.placeholder = $(r)), !e) return;
|
|
10915
|
+
if (r && r !== this._currentCountryCode && (this._currentCountryCode = r, this._countrySelector.setCountry(r), t.placeholder = this._customPlaceholder ?? $(r)), !e) return;
|
|
10894
10916
|
let i = e.slice(0, n).replace(/\D/g, "").length, a = Z(e, this._currentCountryCode);
|
|
10895
10917
|
a !== e && (t.value = a, s(t, i, a));
|
|
10896
10918
|
}
|
|
10897
10919
|
_syncCountryCodeInput(e) {
|
|
10898
|
-
this._countryCodeInput.getElement().value = e, this._onChange(
|
|
10920
|
+
this._countryCodeInput.getElement().value = e, this._onChange(o({
|
|
10899
10921
|
type: "input",
|
|
10900
10922
|
target: {
|
|
10901
10923
|
name: "phoneCountryCode",
|
|
@@ -10904,19 +10926,19 @@ var X = (e) => {
|
|
|
10904
10926
|
}));
|
|
10905
10927
|
}
|
|
10906
10928
|
_handleCountryChange(e) {
|
|
10907
|
-
this._userSelectedCountry = !0, this._currentCountryCode = e, this._countrySelector.setCountry(e), this._syncCountryCodeInput(e), this._inputElement.getElement().placeholder = $(e);
|
|
10929
|
+
this._userSelectedCountry = !0, this._currentCountryCode = e, this._countrySelector.setCountry(e), this._syncCountryCodeInput(e), this._inputElement.getElement().placeholder = this._customPlaceholder ?? $(e);
|
|
10908
10930
|
}
|
|
10909
10931
|
_validateInput(e, t = !1) {
|
|
10910
10932
|
if (!e) {
|
|
10911
10933
|
this._clearValidationError();
|
|
10912
10934
|
return;
|
|
10913
10935
|
}
|
|
10914
|
-
if (
|
|
10936
|
+
if (Ei(e, this._currentCountryCode)) {
|
|
10915
10937
|
this._clearValidationError();
|
|
10916
10938
|
return;
|
|
10917
10939
|
}
|
|
10918
10940
|
if (!t) {
|
|
10919
|
-
let t =
|
|
10941
|
+
let t = Di(this._currentCountryCode), n;
|
|
10920
10942
|
if (e.startsWith("+")) {
|
|
10921
10943
|
let t = Q(e);
|
|
10922
10944
|
n = t ? t.nationalNumber.replace(/\D/g, "").length : 0;
|
|
@@ -10938,7 +10960,7 @@ var X = (e) => {
|
|
|
10938
10960
|
}
|
|
10939
10961
|
getValue() {
|
|
10940
10962
|
let e = this._inputElement.getElement().value;
|
|
10941
|
-
return e ?
|
|
10963
|
+
return e ? Ti(e, this._currentCountryCode) || e : "";
|
|
10942
10964
|
}
|
|
10943
10965
|
setValue(e) {
|
|
10944
10966
|
if (!e) return this._inputElement.getElement().value = "", this._userSelectedCountry = !1, this;
|
|
@@ -10946,13 +10968,13 @@ var X = (e) => {
|
|
|
10946
10968
|
let t = Q(e);
|
|
10947
10969
|
if (t) {
|
|
10948
10970
|
let n = Z(e, t.countryCode);
|
|
10949
|
-
return this._inputElement.getElement().value = n, this._userSelectedCountry || (this._currentCountryCode = t.countryCode, this._countrySelector.setCountry(t.countryCode)), this._inputElement.getElement().placeholder = $(this._currentCountryCode), this;
|
|
10971
|
+
return this._inputElement.getElement().value = n, this._userSelectedCountry || (this._currentCountryCode = t.countryCode, this._countrySelector.setCountry(t.countryCode)), this._inputElement.getElement().placeholder = this._customPlaceholder ?? $(this._currentCountryCode), this;
|
|
10950
10972
|
}
|
|
10951
10973
|
}
|
|
10952
10974
|
return this._inputElement.getElement().value = e, this;
|
|
10953
10975
|
}
|
|
10954
10976
|
setCountry(e) {
|
|
10955
|
-
return this._currentCountryCode = e, this._countrySelector.setCountry(e), this._inputElement.getElement().placeholder = $(e), this;
|
|
10977
|
+
return this._currentCountryCode = e, this._countrySelector.setCountry(e), this._inputElement.getElement().placeholder = this._customPlaceholder ?? $(e), this;
|
|
10956
10978
|
}
|
|
10957
10979
|
getCountry() {
|
|
10958
10980
|
return this._currentCountryCode;
|
|
@@ -10966,4 +10988,4 @@ var X = (e) => {
|
|
|
10966
10988
|
}
|
|
10967
10989
|
};
|
|
10968
10990
|
//#endregion
|
|
10969
|
-
export {
|
|
10991
|
+
export { Ai as PhoneNumberField, Z as formatPhoneAsYouType, Si as getCountriesForDialSelector, Ci as getCountryDialCodeInfo, Di as getExpectedDigitLength, X as getFlagEmoji, $ as getPlaceholder, Ei as isValidPhoneNumber, Q as parseE164, Ti as toE164 };
|