@zonos/elements 1.3.240 → 1.3.242
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/cjs/{cart-7af808b1.js → cart-4246c004.js} +2 -4
- package/dist/cjs/{hasInclusivePrice-2e306ea5.js → hasInclusivePrice-ac0440e7.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-fee18918.js → invoice-d9655e9e.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-a58f7b70.js → isCollectMobileTablet-65da8408.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-08aa03da.js → localization-ec5a6780.js} +120 -0
- package/dist/cjs/{paypal-174fca15.js → paypal-a3921278.js} +2 -2
- package/dist/cjs/{placeTestOrder-a786d83a.js → placeTestOrder-907b981d.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-112ab5d2.js → renderCheckoutCurrency-5fe59d60.js} +2 -2
- package/dist/cjs/zonos-address-display_9.cjs.entry.js +20 -20
- package/dist/cjs/zonos-address_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-card_5.cjs.entry.js +5 -5
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +9 -9
- package/dist/cjs/zonos-checkout.cjs.entry.js +119 -79
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -3
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +8 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +41 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +1 -3
- package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
- package/dist/collection/components/store/translationStore/strings.base.js +6 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
- package/dist/collection/components/store/translationStore/strings.french.js +6 -0
- package/dist/collection/components/store/translationStore/strings.german.js +6 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -1
- package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +129 -0
- package/dist/collection/types/generated/graphql.internal.types.js +2 -0
- package/dist/esm/{cart-d36150df.js → cart-697f78dc.js} +3 -5
- package/dist/esm/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-5cd8aeb3.js → invoice-50918381.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-920988d6.js → isCollectMobileTablet-2e7b4f01.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-285da14c.js → localization-ee8bb238.js} +120 -0
- package/dist/esm/{paypal-fc00bbbe.js → paypal-b3299b37.js} +2 -2
- package/dist/esm/{placeTestOrder-153e0173.js → placeTestOrder-245f2030.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-1be32173.js → renderCheckoutCurrency-9404ed70.js} +2 -2
- package/dist/esm/zonos-address-display_9.entry.js +20 -20
- package/dist/esm/zonos-address_4.entry.js +5 -5
- package/dist/esm/zonos-card_5.entry.js +5 -5
- package/dist/esm/zonos-cart-items_12.entry.js +9 -9
- package/dist/esm/zonos-checkout.entry.js +120 -80
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
- package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +5 -5
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
- package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/{cart-d36150df.js → cart-697f78dc.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-5cd8aeb3.js → invoice-50918381.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-920988d6.js → isCollectMobileTablet-2e7b4f01.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-ee8bb238.js +1 -0
- package/dist/esm-es5/{paypal-fc00bbbe.js → paypal-b3299b37.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-153e0173.js → placeTestOrder-245f2030.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-1be32173.js → renderCheckoutCurrency-9404ed70.js} +1 -1
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +35 -2
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +8 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/isShippableCountry.d.ts +2 -1
- package/dist/types/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.d.ts +24 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +14 -2
- package/dist/types/types/generated/graphql.internal.types.ts +15 -3
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-1beba3c1.system.js → p-036e6a72.system.js} +1 -1
- package/dist/zonos-elements/p-1023a77d.js +1 -0
- package/dist/zonos-elements/p-13b3a9bd.entry.js +1 -0
- package/dist/zonos-elements/{p-5afb9260.system.entry.js → p-14c920b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-630b4c08.entry.js → p-1864fc4e.entry.js} +1 -1
- package/dist/zonos-elements/{p-0f079e02.js → p-1af042d1.js} +1 -1
- package/dist/zonos-elements/{p-b107ead8.system.entry.js → p-1c54c3db.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-32fddb6d.system.entry.js → p-1db4ae37.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-59a76f73.entry.js → p-231baaf8.entry.js} +1 -1
- package/dist/zonos-elements/{p-8dc025c7.system.entry.js → p-232b0fb5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-258407c6.js +1 -0
- package/dist/zonos-elements/{p-41ab550e.entry.js → p-28077dd4.entry.js} +1 -1
- package/dist/zonos-elements/{p-c5195813.entry.js → p-29bb70e0.entry.js} +1 -1
- package/dist/zonos-elements/p-2aa284e6.js +1 -0
- package/dist/zonos-elements/{p-8792fef2.system.entry.js → p-2c2a1339.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2dd9b3e0.entry.js +1 -0
- package/dist/zonos-elements/{p-0ab620d3.system.entry.js → p-3318ba9e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-343dee8b.system.js +1 -0
- package/dist/zonos-elements/{p-bd603c1a.entry.js → p-3e67ca05.entry.js} +1 -1
- package/dist/zonos-elements/{p-6680fc4a.system.js → p-457a2957.system.js} +1 -1
- package/dist/zonos-elements/{p-7b001fa3.system.js → p-5216584e.system.js} +1 -1
- package/dist/zonos-elements/{p-f4e193c4.system.entry.js → p-5aff8a31.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5feb3750.system.entry.js +1 -0
- package/dist/zonos-elements/{p-61aa9365.system.entry.js → p-633017f0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8aa2d896.entry.js → p-635b8da9.entry.js} +1 -1
- package/dist/zonos-elements/{p-55bfaae0.system.js → p-67414f66.system.js} +1 -1
- package/dist/zonos-elements/{p-c39b0f10.system.entry.js → p-689ce3eb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6dc9b9e5.js +1 -0
- package/dist/zonos-elements/p-752dae00.system.js +1 -0
- package/dist/zonos-elements/{p-fc43442d.system.entry.js → p-75813a38.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7e51fe84.system.entry.js +1 -0
- package/dist/zonos-elements/{p-b47bc712.js → p-8159d0f8.js} +2 -2
- package/dist/zonos-elements/{p-6d742bc9.system.entry.js → p-8432de4c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2f869f2c.system.entry.js → p-84cf1a90.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-944d00da.entry.js → p-8f0f6449.entry.js} +1 -1
- package/dist/zonos-elements/{p-90f58466.system.entry.js → p-90e10b7e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ba456282.system.entry.js → p-917f714c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-949c9d2a.entry.js +1 -0
- package/dist/zonos-elements/{p-07f3185f.entry.js → p-9a67d4f2.entry.js} +1 -1
- package/dist/zonos-elements/{p-48985087.entry.js → p-9ab32f9b.entry.js} +1 -1
- package/dist/zonos-elements/{p-14314ad3.entry.js → p-9c49daa4.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5c31ca4.system.entry.js → p-9fa90292.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9e29a4a3.entry.js → p-a04c7b1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-121c60c1.system.entry.js → p-a359e0a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fa322dc1.entry.js → p-aa028d91.entry.js} +1 -1
- package/dist/zonos-elements/p-b34553d8.entry.js +1 -0
- package/dist/zonos-elements/{p-6c65bde0.system.js → p-b526a41e.system.js} +1 -1
- package/dist/zonos-elements/{p-f99f0541.system.entry.js → p-b90f346f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b47d429e.system.entry.js → p-b9974182.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e80c1730.js → p-bcdf1cba.js} +1 -1
- package/dist/zonos-elements/p-bdf49bed.entry.js +1 -0
- package/dist/zonos-elements/{p-d0d44989.entry.js → p-bfc09897.entry.js} +1 -1
- package/dist/zonos-elements/{p-264690d7.entry.js → p-c01f86b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-865536f0.entry.js → p-c1fb3a2d.entry.js} +1 -1
- package/dist/zonos-elements/p-c2442878.system.js +1 -1
- package/dist/zonos-elements/{p-b67521c9.system.entry.js → p-ce48f579.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-094f9c5a.entry.js → p-cfb2b5c7.entry.js} +1 -1
- package/dist/zonos-elements/{p-89a5e936.system.entry.js → p-cfb9b847.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-78e7087f.system.js → p-d9b96ce6.system.js} +1 -1
- package/dist/zonos-elements/{p-9f1bd9b8.entry.js → p-dcf999d8.entry.js} +1 -1
- package/dist/zonos-elements/{p-913ce041.system.entry.js → p-e1ed7c4a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc695766.system.js → p-ea0289e8.system.js} +1 -1
- package/dist/zonos-elements/{p-7eae7c62.entry.js → p-ea1d5802.entry.js} +1 -1
- package/dist/zonos-elements/{p-d1a768da.system.entry.js → p-ee5d5203.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dfb429d7.system.entry.js → p-f7e6c1b5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fab5f272.js +1 -0
- package/dist/zonos-elements/{p-22b1fb53.entry.js → p-fc783723.entry.js} +1 -1
- package/dist/zonos-elements/{p-f3139ab1.entry.js → p-fecf66da.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/localization-285da14c.js +0 -1
- package/dist/zonos-elements/p-0294d7fc.system.entry.js +0 -1
- package/dist/zonos-elements/p-0c977c47.system.js +0 -1
- package/dist/zonos-elements/p-23eb1dc6.js +0 -1
- package/dist/zonos-elements/p-3ef06605.js +0 -1
- package/dist/zonos-elements/p-664da916.entry.js +0 -1
- package/dist/zonos-elements/p-83bf52d6.js +0 -1
- package/dist/zonos-elements/p-8416ee1a.entry.js +0 -1
- package/dist/zonos-elements/p-84c8daa1.js +0 -1
- package/dist/zonos-elements/p-ab195686.system.js +0 -1
- package/dist/zonos-elements/p-b95e0ad6.entry.js +0 -1
- package/dist/zonos-elements/p-b9af9836.entry.js +0 -1
- package/dist/zonos-elements/p-c33adf47.system.entry.js +0 -1
- package/dist/zonos-elements/p-cae51167.js +0 -1
- package/dist/zonos-elements/p-e8b3e462.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as d,c as o,a as n}from"./p-ab41bab5.js";import{t as s,l as i,s as r,q as a}from"./p-fab5f272.js";import{i as l,c as $}from"./p-0c64dbbb.js";import{K as u,b as c,q as h,t as f}from"./p-bcdf1cba.js";import{c as p}from"./p-b4b7f705.js";import{g as v}from"./p-1f894984.js";import{z as b,f as m}from"./p-b2a0ab4a.js";import{R as y}from"./p-08e7107d.js";import{i as g}from"./p-57fa64d7.js";import{t as z}from"./p-01dada4e.js";import{i as x}from"./p-41dd1cb8.js";import{s as w}from"./p-01b0a2e2.js";import{l as k}from"./p-0a377722.js";import{c as C,s as O}from"./p-6b361d2b.js";import{i as I,a as E}from"./p-eef5b0cc.js";import"./p-5762e217.js";const A=class{constructor(e){t(this,e)}render(){var t;const{city:o,country:n,email:r,line1:a,line2:$,name:u,phone:c,postal_code:h,state:f}=this.currentAddress,p=null===(t=i.shippingZoneCountries)||void 0===t?void 0:t[n],v=({bold:t,content:d})=>{const o=l(d)?"red-600":"gray-1000";return e("zonos-text",{textColor:o,type:t?"boldLabel":"body"},d)};return e(d,{class:"zonos--address-form zonos--elements"},e("div",{class:"zonos--title"},e("zonos-text",{textColor:"gray-700",type:"smallHeader"},s("shipping"===this.addressType?"Shipping":"Billing"))),e("div",{class:"zonos--address-group"},u&&e("div",{class:"zonos--address-line"},v({bold:!0,content:u})),r&&e("div",{class:"zonos--address-line"},v({content:r})),c&&e("div",{class:"zonos--address-line"},v({content:c})),a&&e("div",{class:"zonos--address-line"},v({content:a})),$&&e("div",{class:"zonos--address-line"},v({content:$})),e("div",{class:"zonos--address-line"},o&&v({content:o}),f&&v({content:f}),h&&v({content:h})),p&&e("div",{class:"zonos--address-line"},e("zonos-country-flag",{class:"zonos--country-flag",countryCode:p.code})," ",v({content:p.displayName}))))}};A.style=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--title{margin-bottom:12px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:4px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-line{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .zonos--address-line zonos-text+zonos-text::before{content:", ";color:var(--zonos-elements-gray-1000);margin-right:4px}:host .zonos--country-flag{width:20px;height:14px;border-radius:2px;margin:1px;position:relative;overflow:hidden;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);margin-right:8px;z-index:10;justify-self:center}';const N=class{constructor(e){t(this,e),this.addressChange=o(this,"addressChange",7),this.localAddress=this.currentAddress,this.onInputChange=({key:t,value:e})=>{this.addressChange.emit(Object.assign(Object.assign({},this.localAddress),{[t]:e}))}}watchCurrentAddress(){var t,e,d,o,n,s;const{city:i,line1:r,line2:a,name:l,postal_code:$,state:u}=this.currentAddress;this.localAddress=Object.assign(Object.assign({},this.currentAddress),{city:(null===(t=this.translatedAddress.city)||void 0===t?void 0:t[i])||i,line1:(null===(e=this.translatedAddress.line1)||void 0===e?void 0:e[r])||r,line2:(null===(d=this.translatedAddress.line2)||void 0===d?void 0:d[a])||a,name:(null===(o=this.translatedAddress.name)||void 0===o?void 0:o[l])||l,postal_code:(null===(n=this.translatedAddress.postal_code)||void 0===n?void 0:n[$])||$,state:(null===(s=this.translatedAddress.state)||void 0===s?void 0:s[u])||u})}componentWillLoad(){this.watchCurrentAddress()}render(){const{city:t,country:o,line1:n,line2:i,name:r,phone:a,postal_code:$,state:c}=this.localAddress,{firstName:h,lastName:f}=u({name:r});return e(d,{key:"22d085e462e69a4100a8cb1763367f53b933ed1d",class:"zonos--address-form zonos--elements"},e("div",{key:"17d6c92370343ffbd1b4a85b3c49055a5a7f9d72",class:"zonos--title"},e("zonos-text",{key:"a4cb01bd8fed154567e0b7ade87777a1552ea815",textColor:"gray-700",type:"smallHeader"},s("shipping"===this.addressType?"Shipping":"Billing"))),e("div",{key:"4a1dddabc011e465d295b5c2994fda3a2531c96e",class:"zonos--address-group"},e("div",{key:"60df882b5717b2f557a5051f492b2c838f938cd9",class:"zonos--contact"},e("zonos-text",{key:"90b6613ccf1b2a445baae5f700f392d195924688",type:"label"},s("Contact")),e("zonos-input",{key:"125815769a366e113b61d5581578ef6ecbdffa79",class:"zonos--form-email",inputLabel:s("Email"),inputValue:this.currentAddress.email,isDisabled:!0}),e("div",{key:"d0d331fb33f40243ce23824db5ba9551fd5636f8",class:"zonos--name zonos--address-row"},e("zonos-input",{key:"46323db8f305e491215df03ef2092e76eec38355",class:"zonos--form-first-name",inputLabel:s("First name"),inputValue:h,isError:l(h),onInputChange:t=>this.onInputChange({key:"name",value:`${t.detail} ${f}`})}),e("zonos-input",{key:"3c055ee2f1fcaf93ebcbd8f11ad6609cd33e9e14",class:"zonos--form-last-name",inputLabel:s("Last name"),inputValue:f,isError:l(f),onInputChange:t=>this.onInputChange({key:"name",value:`${h} ${t.detail}`})}))),e("div",{key:"ce30f816d03b497eb4491d2554eb63c0aabf110c",class:"zonos--address"},e("zonos-text",{key:"304867c5354ac55071c88944a63bba88ea3fb86f",type:"label"},s("Address")),e("zonos-input",{key:"f0efe937603a38761643af1486b53359a19593e5",class:"zonos--form-country",inputLabel:s("Country"),inputValue:o,isDisabled:!0}),e("zonos-input",{key:"8360a4ae65c8963e886a3fb8322e0e539d121142",class:"zonos--form-line1",inputLabel:s("Address line 1"),inputValue:n,isError:l(n),onInputChange:t=>this.onInputChange({key:"line1",value:t.detail})}),e("zonos-input",{key:"2c9374917b705c2c9306d3d4d7fc4b4043c2b73b",class:"zonos--form-line2",inputLabel:s("Address line 2"),inputValue:i,isError:l(i),onInputChange:t=>this.onInputChange({key:"line2",value:t.detail})}),e("div",{key:"fd067074070cadba3d895503f35c344ff817fec2",class:"zonos--address-row"},e("zonos-input",{key:"a565bee68e2498403df2801eb90005e8cb2d6f44",class:"zonos--form-city",inputLabel:s("City"),inputValue:t,isError:l(t),onInputChange:t=>this.onInputChange({key:"city",value:t.detail})}),e("zonos-input",{key:"89bae75b691aacdd62b624f65eee303bfb3fc811",class:"zonos--form-state",inputLabel:s("State/Province"),inputValue:c,isError:l(c),onInputChange:t=>this.onInputChange({key:"state",value:t.detail})})),e("zonos-input",{key:"9a851b9f449ed135859b7b828bf362168caf76fb",class:"zonos--form-postal-code",inputLabel:s("Postal code"),inputValue:$,isError:l($),onInputChange:t=>this.onInputChange({key:"postal_code",value:t.detail})}),e("zonos-input",{key:"a51b8ba1e22d5a12eac9021abe83fdc20f8eb1a6",class:"zonos--form-phone",inputLabel:s("Phone number"),inputValue:a,onInputChange:t=>this.onInputChange({key:"phone",value:t.detail})}))))}static get watchers(){return{translatedAddress:["watchCurrentAddress"]}}};N.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--title{margin-bottom:20px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:1px}:host .zonos--contact{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--address-row>*{-ms-flex:1;flex:1}:host .zonos--address{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}";const S=class{constructor(e){t(this,e),this.suggestionSelected=o(this,"suggestionSelected",7),this.suggestions=[],this.selectedSuggestionId=null,this.localSuggestions=[],this.lastHoveredSuggestionId=null,this.handleClickOutside=t=>{this.el.contains(t.target)||(this.localSuggestions=[])}}suggestionsChanged(){var t,e;this.localSuggestions=this.suggestions,this.lastHoveredSuggestionId=null!==(e=null===(t=this.suggestions[0])||void 0===t?void 0:t.id)&&void 0!==e?e:null}componentDidLoad(){document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside)}getHighlightedText(t,e){if(!(null==e?void 0:e.length))return[{isMatch:!1,text:t}];const d=[];let o=0;return[...e].sort(((t,e)=>t.startOffset-e.startOffset)).forEach((e=>{e.startOffset>o&&d.push({isMatch:!1,text:t.slice(o,e.startOffset)}),d.push({isMatch:!0,text:t.slice(e.startOffset,e.endOffset)}),o=e.endOffset})),o<t.length&&d.push({isMatch:!1,text:t.slice(o)}),d}render(){return e(d,{key:"00686fe9c09bb764f18548ea438f9fa39deb5413",class:"zonos--address-suggestions",role:"group",style:{"--zonos--border-radius":v()}},e("ul",{key:"89c0f50ea5bbabdf3efe3e58bd4d7a7c96f33b47","aria-label":"Suggestions",class:"wrapper",role:"listbox"},!!this.localSuggestions.length&&e("li",{key:"ad3286076569701e1318c93b7ebc674ad85a7ae6","aria-selected":!1,class:"powered-by option",role:"option"},e("div",{key:"bdcb8cc865eb77b3a0189c8d88a7698d405c332e",class:"powered-by-container"},e("zonos-text",{key:"1db905ec989aef0f8dd30835657d1dd1b1836fc2",type:"caption"},"Suggestions powered by"),e("zonos-text",{key:"55c36840f1bb850ce135bd238d01b9a3055463d7",type:"semiBoldLabel"},"Google")),e("zonos-button",{key:"e89402e39549482c41b046fb534e727690e43100","aria-label":"Clear suggestions",icon:e("zonos-icon",{content:'<svg color="var(--zonos-elements-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>'}),noBackground:!0,onClick:()=>{this.localSuggestions=[]}})),this.localSuggestions.map((t=>e("li",{"aria-selected":this.selectedSuggestionId===t.id,class:p(["suggestion","option",this.lastHoveredSuggestionId===t.id&&"last-hovered"]),key:t.id,onClick:()=>{this.selectedSuggestionId=t.id,this.suggestionSelected.emit({placeId:t.id,type:this.type})},onMouseEnter:()=>{this.lastHoveredSuggestionId=t.id},role:"option",tabIndex:0},e("zonos-text",null,this.getHighlightedText(t.place,t.matches).map(((t,d)=>e("span",{class:t.isMatch?"highlight":void 0,key:`${d}-${t.text}`},t.text)))))))))}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{suggestions:["suggestionsChanged"]}}};S.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative}:host .wrapper{position:absolute;margin-top:4px;top:100%;left:0;right:0;z-index:3;max-height:300px;overflow-y:auto;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-box-shadow:var(--zonos-elements-shadow-select-active);box-shadow:var(--zonos-elements-shadow-select-active);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;list-style:none;padding:0;background-color:var(--zonos-elements-surface-color)}:host .wrapper .option{padding:8px;background-color:var(--zonos-elements-surface-color);outline:none;border:none;text-align:left}:host .wrapper .option.last-hovered{background-color:var(--zonos-elements-gray-100)}:host .wrapper .option .highlight{font-weight:600;color:var(--zonos-elements-gray-1000)}:host .wrapper>.powered-by{padding:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host .wrapper>.powered-by .powered-by-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:5px;-ms-flex:1;flex:1}:host .wrapper>.suggestion{cursor:pointer}:host .wrapper>.suggestion:hover{background-color:var(--zonos-elements-gray-100)}";const j=class{constructor(e){t(this,e),this.closeUpdateDialog=o(this,"closeUpdateDialog",7),this.continueClicked=o(this,"continueClicked",7),this.continueLoading=!1,this.dialogOpen=!1,this.isMobile=!1,this.showErrorBanner=!1,this.translatedShippingAddressState={},this.translatedBillingAddressState={},this.closeUpdateDialogHandler=()=>{this.closeUpdateDialog.emit()},this.getTranslatedAddress=({currentAddress:t,translatedAddress:e})=>{var d,o,n,s,i,r;const{city:a,line1:l,line2:$,name:u,postal_code:c,state:h}=t;return{city:(null===(d=e.city)||void 0===d?void 0:d[a])||a,line1:(null===(o=e.line1)||void 0===o?void 0:o[l])||l,line2:(null===(n=e.line2)||void 0===n?void 0:n[$])||$,name:(null===(s=e.name)||void 0===s?void 0:s[u])||u,postal_code:(null===(i=e.postal_code)||void 0===i?void 0:i[c])||c,state:(null===(r=e.state)||void 0===r?void 0:r[h])||h}},this.continueClickHandler=async()=>{var t,e,d;this.continueLoading=!0;const o=this.billingAddress?this.getTranslatedAddress({currentAddress:this.billingAddress,translatedAddress:this.translatedBillingAddressState}):null,n=this.getTranslatedAddress({currentAddress:this.shippingAddress,translatedAddress:this.translatedShippingAddressState}),s=$(Object.assign(Object.assign({},n),{country:this.shippingAddress.country})),i=o&&this.billingAddress&&$(Object.assign(Object.assign({},o),{country:this.billingAddress.country})),r=!!Object.keys(s).length,a=!!i&&!!Object.keys(i).length;if(r||a){const o=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelectorAll("zonos-address-form"),n=null==o?void 0:o[0],s=null==o?void 0:o[1],i=(null===(e=null==n?void 0:n.shadowRoot)||void 0===e?void 0:e.querySelector(".has-error"))||(null===(d=null==s?void 0:s.shadowRoot)||void 0===d?void 0:d.querySelector(".has-error"));return i&&i.scrollIntoView({behavior:"smooth",block:"center"}),void(this.continueLoading=!1)}this.continueClicked.emit({billingAddress:o,shippingAddress:n})},this.buildTranslateAddressState=({currentAddress:t,translatedAddress:e})=>{const{city:d,line1:o,line2:n,name:s,postal_code:i,state:r}=t;return{city:{[d]:e.city},line1:{[o]:e.line1},line2:{[n]:e.line2},name:{[s]:e.name},postal_code:{[i]:e.postal_code},state:{[r]:e.state}}}}watchTranslatedShippingAddress(){this.translatedShippingAddressState=this.translatedShippingAddress}watchTranslatedBillingAddress(){this.translatedBillingAddressState=this.translatedBillingAddress}componentWillLoad(){this.watchTranslatedBillingAddress(),this.watchTranslatedShippingAddress()}render(){const t="#ffffff"===(this.submitBtnColor||b.appearance.colorSecondary)?"outline":this.submitBtnType||"standard",o=this.billingAddress,n=this.shippingAddress;return e(d,{key:"655845cef04f4af526b1a1c4e49243c4f2b4c7f6",class:p(["zonos--address-update-dialog zonos--elements",this.isMobile&&"mobile"])},e("zonos-dialog",{key:"eab429bb78ce6f05ba463d8748d7edd5499402fa",isLoading:this.dialogLoading,mobile:this.isMobile,noBodyPadding:!0,noBorder:!0,noClickOutside:!0,noCloseButton:!0,onCloseDialog:()=>this.closeUpdateDialog.emit(),open:this.dialogOpen,width:"568px"},e("div",{key:"08f0400e62addfcaffd91bf5200999d29bbd2da9",class:"zonos--body"},e("div",{key:"8699df5e2f823e19066fbb552ba2a66c127c05e9",class:"zonos--dialog-header"},e("div",{key:"92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3",class:"zonos--dialog-title"},e("zonos-text",{key:"aaac3375526bddb319ce7c8f49bde30da7210264",type:"title"},s("Update your address")),e("zonos-button",{key:"474cc2421cd3150daa46bfe215da6ae7df9c6087",class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close checkout dialog",content:y}),noBackground:!0,onClick:()=>this.closeUpdateDialogHandler(),title:"Close checkout dialog"})),e("zonos-text",{key:"6d019250cce57e8b30dd790a184df7273bdb234f"},s("To ensure delivery all address details must be in Latin characters."))),e("div",{key:"80ee681844f4f4f43fce69d977b634b1fbc3d5f5",class:"zonos--group"},e("zonos-text",{key:"940e510eceec156a74f32de84cf58ffebd796435",class:"zonos--what-you-entered",type:"semiBoldLabel"},s("What you entered")),e("div",{key:"f626127f5c399c29ab1022deb66aaee8f8a49601",class:"zonos--address-display-group"},e("zonos-address-display",{key:"9dfcba1037325c3a1f9e82b8e4797e7872dd7e3f",addressType:"shipping",currentAddress:n}),o&&e("zonos-address-display",{key:"fee8ae2c6786d735133c2a0a42f3e3d40d7f9ea9",addressType:"billing",currentAddress:o})),e("div",{key:"5a82195018ff8cdfd1126f4424062a26c25ee757",class:"zonos--address-form-section"},e("zonos-text",{key:"f694dfad166697e4c034cea51057133b69b1c144",type:"semiBoldLabel"},s("Translated address")),e("zonos-address-form",{key:"4a99c841cf4800de43c612cce3d56d956d02c22f",addressType:"shipping",class:"zonos--shipping-address-form",currentAddress:n,onAddressChange:t=>{this.translatedShippingAddressState=this.buildTranslateAddressState({currentAddress:n,translatedAddress:t.detail})},translatedAddress:this.translatedShippingAddressState}),o&&e("zonos-address-form",{key:"311fd702d29a9517203597890bd46bd268dfc6d3",addressType:"billing",class:"zonos--billing-address-form",currentAddress:o,onAddressChange:t=>{this.translatedBillingAddressState=this.buildTranslateAddressState({currentAddress:o,translatedAddress:t.detail})},translatedAddress:this.translatedBillingAddressState}))),e("div",{key:"918c3271579c3fc7a7efff0473b0ccf48fb575a2",class:"zonos--group-btn"},e("div",{key:"f73be0c1124d3a4d340bc6e8512f6be8356c655d",class:"zonos--button-wrapper"},e("zonos-button",{key:"172a6cc0a7b75afb400802ef6b87faae6e7e2483",class:"zonos--cancel-btn",onClick:()=>this.closeUpdateDialogHandler(),variant:"subtle"},s("Cancel")),e("zonos-button",{key:"8fd08bc79b60eb9a0064c06ff9d840b1ecb09123",backgroundColor:this.submitBtnColor,class:"zonos--update-btn",loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"sm",variant:t},s("Update address")))))))}get el(){return n(this)}static get watchers(){return{translatedShippingAddress:["watchTranslatedShippingAddress"],translatedBillingAddress:["watchTranslatedBillingAddress"]}}};j.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:32px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;-ms-scroll-chaining:none;overscroll-behavior:contain}:host .zonos--group::-webkit-scrollbar{width:10px}:host .zonos--group::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--group::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--group::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--address-display-group{display:-ms-flexbox;display:flex;gap:8px;margin-bottom:20px}:host .zonos--address-display-group zonos-address-display{-ms-flex:1;flex:1}:host .zonos--what-you-entered{margin-bottom:8px}:host .zonos--address-form-section{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--update-btn{-ms-flex-order:1;order:1}";const T=["blue","cyan","green","orange","purple","red","gray","glass"];let L=0;const M=class{constructor(e){t(this,e),this.checkboxSelected=o(this,"checkboxSelected",7),this.inputId="zonos--checkbox-"+ ++L,this.backgroundColor="blue",this.isChecked=!1,this.isDisabled=!1,this.size=12,this.fontSize="base"}onClick(){this.isDisabled||this.checkboxSelected.emit(!this.isChecked)}render(){const t=T.includes(this.backgroundColor),o=t?`var(--zonos-elements-${this.backgroundColor}-600)`:this.backgroundColor,n=t?`var(--zonos-elements-${this.backgroundColor}-200)`:g(o)?"var(--zonos-elements-gray-0)":"var(--zonos-elements-gray-800)",s=v({customRoundRadius:"4px",overrideBorderStyle:this.borderStyle});return e(d,{key:"c2a9023becafd6d19ad769d449383924c85c641f",class:p(["zonos--elements zonos--checkbox"]),style:{"--zonos--background-color":o,"--zonos--border-radius":s,"--zonos--font-family":m(),"--zonos--size":`${this.size}px`}},e("label",{key:"352e8bda93f1ac9a7a55ba7038e922626c3a9594",class:p([this.isDisabled&&"disabled"]),htmlFor:this.inputId},e("input",{key:"71d664f9d83345ad4c143f71209bdb0a2cb16745",checked:this.isChecked,disabled:this.isDisabled,hidden:!0,id:this.inputId,onChange:t=>{this.checkboxSelected.emit(t.target.checked)},type:"checkbox"}),e("span",{key:"c772c4e8dbbbef8035874616a0254fb4114a97c8",class:"checkmark-container"},e("svg",{key:"d497191975edeca268cc014431535f4befdd7b2c",class:"checkmark",color:n,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"15b26fdf72a058e81d4472d0c757a725c04e3f47","clip-rule":"evenodd",d:"M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z",fill:"currentColor","fill-rule":"evenodd"}))),this.label&&e("zonos-text",{key:"2d6015d16eda08dc39eff677f4858d2aed620891",size:this.fontSize},this.label)))}};M.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:8px;-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--zonos--size);width:var(--zonos--size);background-color:transparent;border:1.5px solid var(--zonos-elements-gray-400);position:relative;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;width:calc(100% + 3px);-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--zonos--background-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";const R=({addresses:t,delimiter:e=" "})=>{const d=new Set(t.filter(Boolean));return Array.from(d).join(e)};const F=class{constructor(e){t(this,e),this.invalidCharacters=o(this,"invalidCharacters",7),this.addressChange=o(this,"addressChange",7),this.onStoreCheckoutSessionIdChangedSubscription=()=>{},this.defaultAddress=[],this.taxIdErrorMessage="",this.stripe=window.Zonos.stripe,this.isDirtyAddress=!1,this.isAddressFilled=!1,this.isAddressLine1Entered=!1,this.addressSuggestions=[],this.countryField=null,this.startGooglePlaceSuggestions=!1,this.shipToCountries=null,this.shippingZones=null,this.city="",this.country="",this.firstName="",this.lastName="",this.line1="",this.line2=null,this.phone="",this.postalCode="",this.state="",this.cityError="",this.stateError="",this.postalCodeError="",this.phoneError="",this.firstNameError="",this.lastNameError="",this.isFirstInitialization=!0,this.addressService=null,this.checkoutSessionId=r.checkoutSessionId,this.suggestionClicked=!1,this.trackingSent=!1,this.isAutoCompleteAdjusted=!1,this.throttledGetAddressSuggestions=z((()=>{b.checkoutAddressService&&b.checkoutAddressService.getAddressSuggestions({country:this.country,query:[this.line1,this.state,this.postalCode].filter(Boolean).join(", "),type:this.type})}),1e3),this.setCustomAddressFormToStripeAddressEventData=()=>{const t=!this.countryField||this.countryField.cityShow?this.city:"",e=!this.countryField||this.countryField.stateShow?this.state:"",d=!this.countryField||this.countryField.zipShow?this.postalCode:"",o={complete:this.getIsComplete(),elementMode:this.type,elementType:"address",empty:!this.getIsComplete(),isNewAddress:!0,value:{address:{city:t,country:this.country,line1:this.line1,line2:this.line2,postal_code:d,state:e},firstName:this.firstName,lastName:this.lastName,name:`${this.firstName} ${this.lastName}`,phone:this.phone}};this.updateAddressEventData({event:o,type:this.type}),this.addressChange.emit({errors:this.getCustomAddressErrors(),type:this.type,value:o})},this.getCustomAddressErrors=()=>"shipping"===this.type?c.customAddressErrors:c.customBillingAddressErrors,this.validate=({phoneValidateInfo:t,type:e,value:d,valueType:o})=>{var n,i,r,a,l;const $=Object.assign({},this.getCustomAddressErrors());switch(o){case"city":{const t=!(null===(n=this.countryField)||void 0===n?void 0:n.cityRequired)||(null===(i=this.countryField)||void 0===i?void 0:i.cityRequired)&&!!(null==d?void 0:d.trim());$.city="",t||($.city=s("The field is incomplete"));break}case"state":{const t=!(null===(r=this.countryField)||void 0===r?void 0:r.stateRequired)||(null===(a=this.countryField)||void 0===a?void 0:a.stateRequired)&&!!(null==d?void 0:d.trim());$.state="",t||($.state=s("The field is incomplete"));break}case"postalCode":{const t=(({countryFields:t,zip:e})=>!t||!t.zipShow||!t.zipRequired||(t.zipRegex?new RegExp(t.zipRegex).test(e):t.zipRequired&&!!e))({countryFields:this.countryField,zip:d||""});$.postalCode="",t||($.postalCode=s("Your [zipLabel] is invalid",{zipLabel:(null===(l=this.countryField)||void 0===l?void 0:l.zipLabel)||"ZIP"}));break}case"firstName":{const t=!!(null==d?void 0:d.trim());$.firstName="",t||($.firstName=s("Please provide your first name."));break}case"lastName":{const t=!!(null==d?void 0:d.trim());$.lastName="",t||($.lastName=s("Please provide your last name."));break}case"line1":{const t=!!(null==d?void 0:d.trim());$.line1="",t||($.line1=s("The field is incomplete"));break}case"phone":if(t)$.phone="",t.isEmpty?$.phone=s("Please provide a mobile phone number."):t.wrongFormat&&($.phone=s("Your mobile phone number is incomplete."));else{const t=!!(null==d?void 0:d.trim());$.phone="",t||($.phone=s("Please provide a mobile phone number."))}}"shipping"===e?c.customAddressErrors=$:c.customBillingAddressErrors=$},this.onStoreCheckoutSessionIdChanged=()=>{const t=()=>{this.checkoutSessionId=r.checkoutSessionId};t(),this.onStoreCheckoutSessionIdChangedSubscription=a("checkoutSessionId",t)}}getStripeAddressInstance(){return"billing"===this.type?{stripeAddressElement:c.stripeBillingAddressElement,stripeAddressEventData:c.stripeBillingAddressEventData,stripeElements:c.stripeElementsForBillingAddress}:{stripeAddressElement:c.stripeAddressElement,stripeAddressEventData:c.stripeAddressEventData,stripeElements:c.stripeElements}}updateAddressEventData({event:t,type:e}){"billing"===e?c.stripeBillingAddressEventData=t:(c.stripeAddressEventData=t,h())}isAddressFilledChanged(){r.checkoutSessionId&&this.isAddressFilled&&!this.trackingSent&&"shipping"===this.type&&(this.trackingSent=!0,f({checkoutSessionId:r.checkoutSessionId,eventName:"checkout_customerInfoFilled"}))}defaultAddressChanged(t,e){JSON.stringify(e)!==JSON.stringify(t)&&(k("Reset address element when default address property is changed","info",{defaultAddress:this.defaultAddress}),"shipping"===this.type?c.stripeAddressEventData=null:c.stripeBillingAddressEventData=null,this.initDefaultCustomAddressForm())}getIsComplete(){const{city:t,firstName:e,lastName:d,line1:o,phone:n,postalCode:s,state:i}=this.getCustomAddressErrors();return!!(this.line1&&this.firstName&&this.lastName&&this.phone)&&!(o||s||i||t||e||d||n)}isInTaxIdCountry(t){return C.includes(t)}renderTaxIdInput(){var t;if("billing"===this.type)return null;const d=null===(t=c.stripeAddressEventData)||void 0===t?void 0:t.value.address.country;if(!d)return null;if(!this.isInTaxIdCountry(d))return null;if(!w({companyName:c.companyName,countryCode:d}))return null;const o=O[d];return e("div",{class:"zonos--tax-id-input"},e("zonos-stripe-input",{error:this.taxIdErrorMessage,inputLabel:s(o.friendlyName),inputPlaceholder:o.placeholder,inputValue:c.taxId||"",isError:!!this.taxIdErrorMessage,onInputChange:t=>{c.taxId=t.detail}}))}renderCompanyNameInput(){return"billing"===this.type?null:"ENABLED"===b.checkoutSettings.companyFieldsStatus?e("zonos-stripe-input",{class:"zonos--company-name-input",inputLabel:s("Company name (optional)"),inputValue:c.companyName,onInputChange:t=>{c.companyName=t.detail}}):null}initCountryField(t){var e,d,o;this.countryField=(null===(e=b.genericSettings)||void 0===e?void 0:e.countryFields)&&t?null===(o=null===(d=b.genericSettings)||void 0===d?void 0:d.countryFields)||void 0===o?void 0:o[t]:null}initDefaultCustomAddressForm(){k("initDefaultCustomAddressForm","info",this.type);const t=this.getStripeAddressInstance().stripeAddressEventData;if(t){const e=t.value.address.country||i.selectedCountryCode||"US";return this.setFormValues({city:t.value.address.city,country:e,firstName:t.value.firstName||"",lastName:t.value.lastName||"",line1:t.value.address.line1,line2:t.value.address.line2||"",phone:t.value.phone||"",postal_code:t.value.address.postal_code,state:t.value.address.state}),void this.initCountryField(e)}const e=this.defaultAddress[0];if(e){const{firstName:t,lastName:d}=u({name:e.name}),o=e.address.country||i.selectedCountryCode||"US";return this.setFormValues({city:e.address.city,country:o,firstName:t,lastName:d,line1:e.address.line1,line2:e.address.line2||"",phone:e.phone||"",postal_code:e.address.postal_code,state:e.address.state}),void this.initCountryField(o)}const d=i.selectedCountryCode||"US";this.setFormValues({city:"",country:d,firstName:"",lastName:"",line1:"",line2:"",phone:"",postal_code:"",state:""}),this.initCountryField(d),this.isFirstInitialization=!1}line1Changed(){const t=this.getStripeAddressInstance().stripeAddressEventData;(!t||this.line1!==(null==t?void 0:t.value.address.line1))&&this.line1.length>3&&(this.startGooglePlaceSuggestions=!0,this.isAddressLine1Entered=!0,this.suggestionClicked&&(this.suggestionClicked=!1,this.startGooglePlaceSuggestions=!1),this.isDirtyAddress||(this.isDirtyAddress=!0,setTimeout((()=>{if(!this.isAutoCompleteAdjusted)if(x())this.el.scrollIntoView({behavior:"smooth",block:"end"});else{const t="shipping"===this.type?100:600,e=this.el.closest(".zonos--group"),d=this.el.getBoundingClientRect().top+t;null==e||e.scrollTo({behavior:"smooth",top:d})}}),600))),this.setCustomAddressFormToStripeAddressEventData(),this.startGooglePlaceSuggestions&&b.checkoutAddressService&&!this.isFirstInitialization&&this.throttledGetAddressSuggestions()}formFieldsChanged(){this.setCustomAddressFormToStripeAddressEventData()}addressSuggestionSelected({placeDetails:t}){var e,d,o,n,s,i,r,a,l,$,u,c,h,f,p;this.suggestionClicked=!0,this.startGooglePlaceSuggestions=!1;const v=t.addressComponents,b=R({addresses:[null===(e=null==v?void 0:v.find((t=>t.types.includes("street_number"))))||void 0===e?void 0:e.longText,null===(d=null==v?void 0:v.find((t=>t.types.includes("route"))))||void 0===d?void 0:d.longText]}),m=R({addresses:[null===(o=null==v?void 0:v.find((t=>t.types.includes("premise"))))||void 0===o?void 0:o.longText,(null===(n=null==v?void 0:v.find((t=>t.types.includes("sublocality_level_2"))))||void 0===n?void 0:n.longText)||(null===(s=null==v?void 0:v.find((t=>t.types.includes("sublocality_level_3"))))||void 0===s?void 0:s.longText)||(null===(i=null==v?void 0:v.find((t=>t.types.includes("sublocality_level_4"))))||void 0===i?void 0:i.longText)||(null===(r=null==v?void 0:v.find((t=>t.types.includes("sublocality_level_5"))))||void 0===r?void 0:r.longText)]}),y=R({addresses:[null===(a=null==v?void 0:v.find((t=>t.types.includes("subpremise"))))||void 0===a?void 0:a.longText,null===(l=null==v?void 0:v.find((t=>t.types.includes("neighborhood"))))||void 0===l?void 0:l.longText],delimiter:", "}),g=R({addresses:[(null===($=null==v?void 0:v.find((t=>t.types.includes("locality"))))||void 0===$?void 0:$.longText)||(null===(u=null==v?void 0:v.find((t=>t.types.includes("sublocality_level_1"))))||void 0===u?void 0:u.longText)||(null===(c=null==v?void 0:v.find((t=>t.types.includes("administrative_area_level_1"))))||void 0===c?void 0:c.longText)]}),z=R({addresses:[null===(h=null==v?void 0:v.find((t=>t.types.includes("administrative_area_level_1"))))||void 0===h?void 0:h.shortText]}),x=R({addresses:[null===(f=null==v?void 0:v.find((t=>t.types.includes("postal_code"))))||void 0===f?void 0:f.longText]}),w=R({addresses:[null===(p=null==v?void 0:v.find((t=>t.types.includes("country"))))||void 0===p?void 0:p.shortText]});this.setFormValues({city:g,country:w,line1:b||m||this.line1,line2:y,postal_code:x,state:z})}setFormValues(t){void 0!==t.city&&(this.city=t.city),void 0!==t.country&&(this.country=t.country),void 0!==t.firstName&&(this.firstName=t.firstName),void 0!==t.lastName&&(this.lastName=t.lastName),void 0!==t.line1&&(this.line1=t.line1),void 0!==t.line2&&(this.line2=t.line2),void 0!==t.phone&&(this.phone=t.phone),void 0!==t.postal_code&&(this.postalCode=t.postal_code),void 0!==t.state&&(this.state=t.state)}initAddressSuggestions(){!b.checkoutAddressService||this.onAddressSuggestionsUnsubscribe&&this.onAddressSelectedUnsubscribe||(k("on initAddressSuggestions","info"),this.onAddressSuggestionsUnsubscribe=b.checkoutAddressService.onAddressSuggestions((({suggestions:t,type:e})=>{e===this.type&&(this.addressSuggestions=t)})),this.onAddressSelectedUnsubscribe=b.checkoutAddressService.onAddressSelected((t=>{t.type===this.type&&(this.addressSuggestions=[],this.addressSuggestionSelected(t))})),this.validate({type:this.type,value:this.firstName,valueType:"firstName"}),this.validate({type:this.type,value:this.lastName,valueType:"lastName"}),this.validate({type:this.type,value:this.line1,valueType:"line1"}),this.validate({type:this.type,value:this.phone,valueType:"phone"}),this.validate({type:this.type,value:this.postalCode,valueType:"postalCode"}),this.validate({type:this.type,value:this.state,valueType:"state"}),this.validate({type:this.type,value:this.city,valueType:"city"}),this.validate({type:this.type,value:this.phone,valueType:"phone"}))}countryChanged(t){var e,d;const o=null===(e=b.genericSettings)||void 0===e?void 0:e.countryFields,n=null==o?void 0:o[t];(null===(d=this.countryField)||void 0===d?void 0:d.countryCode)!==this.country&&(this.countryField=o&&n?n:null)}shouldEnabledCustomAddressChanged(){this.initAddressSuggestions(),this.initDefaultCustomAddressForm()}shippingZonesChanged(){this.shippingZones=i.shippingZoneCountries,this.shipToCountries=Object.values(this.shippingZones||{}).map((t=>({label:t.displayName,value:t.code}))).sort(((t,e)=>t.label.localeCompare(e.label)))}renderCustomAddressForm(){var t,d,o,n,r,a,l,$,u,c,h,f,v,m,y,g,z;const x=this.getCustomAddressErrors(),{showError:w}=x,k=function(t,e){var d={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(d[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(d[o[n]]=t[o[n]])}return d}(x,["showError"]),C=this.getStripeAddressInstance().stripeAddressEventData,O=null==C?void 0:C.value.address.country,I=null===(t=this.shipToCountries)||void 0===t?void 0:t[0],E=Object.entries((null===(d=this.countryField)||void 0===d?void 0:d.regions)||{}).map((([t,e])=>({label:t,value:e.interpayCode}))).sort(((t,e)=>t.label.localeCompare(e.label)));return e("div",{"aria-label":`${this.type} address form`,class:"zonos--custom-address-form",role:"form"},e("zonos-stripe-input",{"aria-required":"true",class:"zonos--custom-address-form-input",error:w?k.firstName:void 0,inputLabel:s("First name"),inputValue:null==C?void 0:C.value.firstName,onInputChange:t=>{this.validate({type:this.type,value:t.detail,valueType:"firstName"}),this.firstName=t.detail},required:!0}),e("zonos-stripe-input",{"aria-required":"true",class:"zonos--custom-address-form-input",error:w?k.lastName:void 0,inputLabel:s("Last name"),inputValue:null==C?void 0:C.value.lastName,onInputChange:t=>{this.validate({type:this.type,value:t.detail,valueType:"lastName"}),this.lastName=t.detail},required:!0}),e("zonos-stripe-select",{"aria-required":"true",autoComplete:"shipping country",class:"zonos--custom-address-form-input",name:`${this.type}-country`,onSelectChange:t=>{this.countryChanged(t.detail),this.validate({type:this.type,value:"",valueType:"postalCode"}),this.validate({type:this.type,value:"",valueType:"city"}),this.validate({type:this.type,value:"",valueType:"state"}),this.country=t.detail,this.city="",this.state="",this.postalCode=""},options:this.shipToCountries||[],required:!0,selectLabel:s("Country"),selectedValue:(null==C?void 0:C.value.address.country)||i.selectedCountryCode||(null==I?void 0:I.value),title:`${this.type} country`}),e("div",{class:"zonos--custom-address-form-line1-wrapper"},e("zonos-stripe-input",{"aria-autocomplete":"list","aria-controls":"autocomplete-search","aria-required":"true",autoComplete:"shipping address-line1",class:"zonos--custom-address-form-input",error:w?k.line1:void 0,inputLabel:s("Address line 1"),inputValue:null==C?void 0:C.value.address.line1,name:"address-line1",onInputChange:t=>{this.validate({type:this.type,value:t.detail,valueType:"line1"}),this.line1=t.detail},onKeyDown:t=>{"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),this.addressSuggestions=[])},required:!0}),e("zonos-address-suggestions",{onSuggestionSelected:t=>{var e;const{placeId:d}=t.detail;null===(e=b.checkoutAddressService)||void 0===e||e.selectAddress({placeId:d,type:this.type})},suggestions:this.addressSuggestions,type:this.type})),e("div",{"aria-label":"Additional address details",class:p(["zonos--custom-address-form-additional-fields",O&&this.isAddressLine1Entered?"zonos--show":""]),role:"group"},e("zonos-stripe-input",{"aria-required":"false",autoComplete:"shipping address-line2",class:"zonos--custom-address-form-input",inputLabel:s((null===(o=this.countryField)||void 0===o?void 0:o.address2Label)||"Address line 2"),inputValue:(null==C?void 0:C.value.address.line2)||"",onInputChange:t=>{this.line2=t.detail}}),(null===(n=this.countryField)||void 0===n?void 0:n.cityShow)&&e("zonos-stripe-input",{"aria-required":(null===(r=this.countryField)||void 0===r?void 0:r.cityRequired)?"true":"false",autoComplete:"shipping address-level2",class:"zonos--custom-address-form-input",error:w?k.city:void 0,inputLabel:s((null===(a=this.countryField)||void 0===a?void 0:a.cityLabel)||"City"),inputValue:(null==C?void 0:C.value.address.city)||"",name:"locality",onInputChange:t=>{this.validate({type:this.type,value:t.detail,valueType:"city"}),this.city=t.detail},required:null===(l=this.countryField)||void 0===l?void 0:l.cityRequired}),e("div",{class:"zonos--custom-address-form-state-zip-wrapper"},(null===($=this.countryField)||void 0===$?void 0:$.stateShow)&&e("zonos-stripe-select",{"aria-required":(null===(u=this.countryField)||void 0===u?void 0:u.stateRequired)?"true":"false",autoComplete:"shipping address-level1",class:"zonos--custom-address-form-input",error:w?k.state:void 0,isError:w&&!!k.state,name:`${this.type}-state`,onSelectChange:t=>{this.validate({type:this.type,value:t.detail,valueType:"state"}),this.state=t.detail},options:E,required:null===(c=this.countryField)||void 0===c?void 0:c.stateRequired,selectLabel:s((null===(h=this.countryField)||void 0===h?void 0:h.stateLabel)||"State"),selectedValue:null==C?void 0:C.value.address.state,title:`${this.type} state`}),(null===(f=this.countryField)||void 0===f?void 0:f.zipShow)&&e("zonos-stripe-input",{"aria-describedby":(null===(v=this.countryField)||void 0===v?void 0:v.zipFormat)?`zip-format-${this.type}`:void 0,"aria-required":(null===(m=this.countryField)||void 0===m?void 0:m.zipRequired)?"true":"false",autoComplete:"shipping postal-code",class:"zonos--custom-address-form-input",error:w?k.postalCode:void 0,inputLabel:s((null===(y=this.countryField)||void 0===y?void 0:y.zipLabel)||"Zip"),inputValue:(null==C?void 0:C.value.address.postal_code)||"",name:"postalCode",onInputChange:t=>{this.validate({type:this.type,value:t.detail,valueType:"postalCode"}),this.postalCode=t.detail},required:null===(g=this.countryField)||void 0===g?void 0:g.zipRequired,title:`${this.type} zip code`})),e("zonos-stripe-phone-input",{autoComplete:"shipping tel",class:"zonos--custom-address-form-input",countryCode:null==C?void 0:C.value.address.country,countryOptions:null===(z=b.genericSettings)||void 0===z?void 0:z.countryFields,error:w?k.phone:void 0,inputLabel:s("Phone number"),inputValue:(null==C?void 0:C.value.phone)||"",onInputValueChange:t=>{const{isEmpty:e,phoneNumber:d,valid:o,wrongFormat:n}=t.detail;this.validate({phoneValidateInfo:{isEmpty:e,isValid:o,wrongFormat:n},type:this.type,value:d,valueType:"phone"}),this.phone=d}})))}disconnectedCallback(){var t,e;const d=this.getStripeAddressInstance().stripeAddressElement;null==d||d.destroy(),null===(t=this.onAddressSuggestionsUnsubscribe)||void 0===t||t.call(this),null===(e=this.onAddressSelectedUnsubscribe)||void 0===e||e.call(this),this.onStoreCheckoutSessionIdChangedSubscription()}componentWillLoad(){b.checkoutAddressService&&this.initDefaultCustomAddressForm()}componentDidLoad(){const t=this.getStripeAddressInstance().stripeAddressEventData;this.shipToCountries=Object.values(i.shippingZoneCountries||{}).map((t=>({label:t.displayName,value:t.code}))).sort(((t,e)=>t.label.localeCompare(e.label))),this.isDirtyAddress=!!t&&t.value.address.line1.length>0,this.initAddressSuggestions(),this.isFirstInitialization=!1,this.onStoreCheckoutSessionIdChanged(),this.countryChanged((null==t?void 0:t.value.address.country)||"US")}render(){var t;return this.shippingZones=i.shippingZoneCountries,this.addressService=b.checkoutAddressService,(null===(t=c.stripeAddressEventData)||void 0===t?void 0:t.complete)&&(this.isAddressFilled=!0),!this.country&&i.selectedCountryCode&&(this.country=i.selectedCountryCode),e(d,{key:"7214ab1c348c1236dfa65f3bb20866fb3262c35d",class:p(["zonos--address zonos--elements",`zonos--${this.type}-address`])},e("zonos-text",{key:"3ce287d8ffd3f5fdb4745311d17992c0b9ee9678",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("slot",{key:"0e33486852d6512b054bb480d0295ce97d2667eb",name:"below-title"}),this.renderCompanyNameInput(),this.renderTaxIdInput(),this.renderCustomAddressForm())}get el(){return n(this)}static get watchers(){return{checkoutSessionId:["isAddressFilledChanged"],isAddressFilled:["isAddressFilledChanged"],defaultAddress:["defaultAddressChanged"],line1:["line1Changed"],city:["formFieldsChanged"],country:["formFieldsChanged","countryChanged"],firstName:["formFieldsChanged"],lastName:["formFieldsChanged"],line2:["formFieldsChanged"],phone:["formFieldsChanged"],postalCode:["formFieldsChanged"],state:["formFieldsChanged"],addressService:["shouldEnabledCustomAddressChanged"],shippingZones:["shippingZonesChanged"]}}};F.style=".sc-zonos-custom-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-custom-address-h *.sc-zonos-custom-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-custom-address-h img.sc-zonos-custom-address{max-width:100%}.sc-zonos-custom-address-h dl.sc-zonos-custom-address,.sc-zonos-custom-address-h dd.sc-zonos-custom-address,.sc-zonos-custom-address-h h1.sc-zonos-custom-address,.sc-zonos-custom-address-h h2.sc-zonos-custom-address,.sc-zonos-custom-address-h h3.sc-zonos-custom-address,.sc-zonos-custom-address-h h4.sc-zonos-custom-address,.sc-zonos-custom-address-h h5.sc-zonos-custom-address,.sc-zonos-custom-address-h h6.sc-zonos-custom-address,.sc-zonos-custom-address-h hr.sc-zonos-custom-address,.sc-zonos-custom-address-h figure.sc-zonos-custom-address,.sc-zonos-custom-address-h p.sc-zonos-custom-address,.sc-zonos-custom-address-h pre.sc-zonos-custom-address{margin:0}.sc-zonos-custom-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-custom-address-h .zonos--title.sc-zonos-custom-address{margin-bottom:16px}.sc-zonos-custom-address-h .zonos--company-name-input.sc-zonos-custom-address,.sc-zonos-custom-address-h .zonos--tax-id-input.sc-zonos-custom-address{margin-bottom:8px}.sc-zonos-custom-address-h zonos-banner.sc-zonos-custom-address{margin-top:8px}.sc-zonos-custom-address-h .zonos--custom-address-form.sc-zonos-custom-address,.sc-zonos-custom-address-h .zonos--custom-address-form-additional-fields.sc-zonos-custom-address{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}.sc-zonos-custom-address-h .zonos--custom-address-form-state-zip-wrapper.sc-zonos-custom-address{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}.sc-zonos-custom-address-h .zonos--custom-address-form-state-zip-wrapper.sc-zonos-custom-address>*.sc-zonos-custom-address{-ms-flex:1 1 200px;flex:1 1 200px}.sc-zonos-custom-address-h .zonos--custom-address-form-additional-fields.sc-zonos-custom-address{opacity:0;height:0;overflow:hidden;-webkit-transition:opacity 0.3s ease-in-out, height 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, height 0.3s ease-in-out}.sc-zonos-custom-address-h .zonos--custom-address-form-additional-fields.zonos--show.sc-zonos-custom-address{opacity:1;height:auto}";const P=class{constructor(e){t(this,e),this.closeDialog=o(this,"closeDialog",3),this.open=!1,this.headerText="",this.width="460px",this.noHeader=!1,this.noBodyPadding=!1,this.noBorder=!1,this.noCloseButton=!1,this.noClickOutside=!1,this.mobile=!1,this.isLoading=!0,this.isMobile=!1,this.isMobileMode=()=>this.mobile||window.innerWidth<=768,this.closeButtonHandler=()=>{this.open&&this.closeDialog.emit()},this.clickOutsideDialogHandler=t=>{t.target!==t.currentTarget||this.noClickOutside||this.closeDialog.emit()}}handleWindowResize(){this.isMobile=this.isMobileMode()}handleKeyDown(t){"Escape"===t.key&&this.closeButtonHandler()}componentDidLoad(){this.isMobile=this.isMobileMode()}render(){const t=v({overrideBorderStyle:this.borderStyle});return e(d,{key:"3764ddd25cf29e7b5ebc420c2fc47de213d2bcd6",class:p(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--zonos--border-radius":t,"--zonos--font-family":m(),"--zonos--height":this.height||"initial","--zonos--min-height":this.minHeight||"500px","--zonos--width":this.width}},e("div",{key:"aded0d33e4605a40b107e89fcbc95ef024b187f7",class:"zonos--backdrop"}),e("div",{key:"55500b0bb118be90d474fc758f979ac3f317d52e",class:"zonos--dialog-layout",inert:!this.open,onClick:this.clickOutsideDialogHandler},e("div",{key:"a21fa7808c16df11cab8800279774abb38828f1b",class:"zonos--dialog"},this.isLoading&&e("div",{key:"b8e9229591ad83446400deafdf5bee284091f1d9",class:"zonos--loading"},e("zonos-spinner",{key:"f284c8604d8710be60a725fa8c23c04f32e44b1f",size:30}),this.loadingTitle&&e("zonos-text",{key:"16d605c9272d9bdbb2d8b7f2d5685978cc2cf6eb",class:"zonos--loading-title",size:"l",weight:700},this.loadingTitle),this.loadingText&&e("zonos-text",{key:"0e9acec26d8502781ad8c853959740ece8fd2907",class:"zonos--loading-text"},this.loadingText)),(this.headerText||!this.noCloseButton)&&e("div",{key:"77d2dac98791ddea7e3bc3ab0e740c0b170072d8",class:"zonos--header"},this.headerText&&e("h3",{key:"f8b07366a4a9d5cd1686d7e3663ce0f6ba401ec7",class:"zonos--header-text"},this.headerText),!this.noCloseButton&&e("zonos-button",{key:"8c82dbf7d636715f3a391fe13ced4e3bc0ee079c",class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:this.closeButtonHandler,title:"Close dialog",variant:"subtle"})),e("div",{key:"d44cbf2cbb551043502e5e0c80048adeffaaf303",class:p(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},e("slot",{key:"508a3fcc6fbfdec55033a584e235ba9fd9e7448f"})),e("slot",{key:"1f24ec0974cd1def288b744d6aa68399367aefd8",name:"dialog-footer"}))))}static get assetsDirs(){return["assets"]}};P.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:4px;z-index:2147483009;background:var(--zonos-elements-gray-0);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--loading-text,:host .zonos--loading-title{max-width:100%;padding:0 32px;text-align:center}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:2147483008;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;min-height:var(--zonos--min-height, auto);height:var(--zonos--height, auto);width:var(--zonos--width, auto);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--zonos-elements-radius-10);-ms-flex-item-align:start;align-self:flex-start}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:2147483008;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:2147483009;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";const _={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["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]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","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(?:(?:2[14]|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|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","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(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|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]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["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]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","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[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|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]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|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]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-7]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?: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"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?: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}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|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-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|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-47-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-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|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-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function B(t,e){var d=Array.prototype.slice.call(e);return d.push(_),t.apply(this,d)}function D(t,e){t=t.split("-"),e=e.split("-");for(var d=t[0].split("."),o=e[0].split("."),n=0;n<3;n++){var s=Number(d[n]),i=Number(o[n]);if(s>i)return 1;if(i>s)return-1;if(!isNaN(s)&&isNaN(i))return 1;if(isNaN(s)&&!isNaN(i))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var G={}.constructor;function U(t){return null!=t&&t.constructor===G}function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Z(t,e,d){return e&&K(t.prototype,e),d&&K(t,d),Object.defineProperty(t,"prototype",{writable:!1}),t}var W=" ext. ",Y=/^\d+$/,q=function(){function t(e){H(this,t),dt(e),this.metadata=e,st.call(this,e)}return Z(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(t){return"001"!==t}))}},{key:"getCountryMetadata",value:function(t){return this.metadata.countries[t]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(t){return void 0!==this.getCountryMetadata(t)}},{key:"hasCallingCode",value:function(t){if(this.getCountryCodesForCallingCode(t))return!0;if(this.nonGeographic()){if(this.nonGeographic()[t])return!0}else{var e=this.countryCallingCodes()[t];if(e&&1===e.length&&"001"===e[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(t){return this.nonGeographic()?!!this.nonGeographic()[t]:!this.getCountryCodesForCallingCode(t)}},{key:"country",value:function(t){return this.selectNumberingPlan(t)}},{key:"selectNumberingPlan",value:function(t,e){if(t&&Y.test(t)&&(e=t,t=null),t&&"001"!==t){if(!this.hasCountry(t))throw new Error("Unknown country: ".concat(t));this.numberingPlan=new J(this.getCountryMetadata(t),this)}else if(e){if(!this.hasCallingCode(e))throw new Error("Unknown calling code: ".concat(e));this.numberingPlan=new J(this.getNumberingPlanMetadata(e),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(t){var e=this.countryCallingCodes()[t];if(e){if(1===e.length&&3===e[0].length)return;return e}}},{key:"getCountryCodeForCallingCode",value:function(t){var e=this.getCountryCodesForCallingCode(t);if(e)return e[0]}},{key:"getNumberingPlanMetadata",value:function(t){var e=this.getCountryCodeForCallingCode(t);if(e)return this.getCountryMetadata(e);if(this.nonGeographic()){var d=this.nonGeographic()[t];if(d)return d}else{var o=this.countryCallingCodes()[t];if(o&&1===o.length&&"001"===o[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(t){return this.numberingPlan.type(t)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(t){return this.selectNumberingPlan(t)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),t}(),J=function(){function t(e,d){H(this,t),this.globalMetadataObject=d,this.metadata=e,st.call(this,d.metadata)}return Z(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(t){return t[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var t=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map((function(e){return new X(e,t)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(t){return t[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.types())}},{key:"type",value:function(t){if(this.hasTypes()&&et(this.types(),t))return new tt(et(this.types(),t),this)}},{key:"ext",value:function(){return this.v1||this.v2?W:this.metadata[13]||W}}]),t}(),X=function(){function t(e,d){H(this,t),this._format=e,this.metadata=d}return Z(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Q.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),Q=/^\(?\$1\)?$/,tt=function(){function t(e,d){H(this,t),this.type=e,this.metadata=d}return Z(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t}();function et(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function dt(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!U(t)||!U(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(U(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+ot(t)+": "+t,"."))}var ot=function(t){return V(t)};function nt(t,e){if((e=new q(e)).hasCountry(t))return e.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function st(t){var e=t.version;"number"==typeof e?(this.v1=1===e,this.v2=2===e,this.v3=3===e,this.v4=4===e):e?-1===D(e,"1.2.0")?this.v2=!0:-1===D(e,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function it(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function rt(t,e){return at(t,void 0,e)}function at(t,e,d){var o=d.type(e),n=o&&o.possibleLengths()||d.possibleLengths();if(!n)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===e){if(!d.type("FIXED_LINE"))return at(t,"MOBILE",d);var s=d.type("MOBILE");s&&(n=function(t,e){for(var d,o=t.slice(),n=function(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return it(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?it(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(d=n()).done;){var s=d.value;t.indexOf(s)<0&&o.push(s)}return o.sort((function(t,e){return t-e}))}(n,s.possibleLengths()))}else if(e&&!o)return"INVALID_LENGTH";var i=t.length,r=n[0];return r===i?"IS_POSSIBLE":r>i?"TOO_SHORT":n[n.length-1]<i?"TOO_LONG":n.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function lt(t,e,d){if(void 0===e&&(e={}),d=new q(d),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");d.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!d.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));d.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");d.selectNumberingPlan(t.countryCallingCode)}}if(d.possibleLengths())return $t(t.phone||t.nationalNumber,d);if(t.countryCallingCode&&d.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function $t(t,e){return"IS_POSSIBLE"===rt(t,e)}function ut(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}var ht=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function ft(t,e,d){if(e=e||{},t.country||t.countryCallingCode){(d=new q(d)).selectNumberingPlan(t.country,t.countryCallingCode);var o=e.v2?t.nationalNumber:t.phone;if(ut(o,d.nationalNumberPattern())){if(pt(o,"FIXED_LINE",d))return d.type("MOBILE")&&""===d.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":d.type("MOBILE")?pt(o,"MOBILE",d)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var n,s=function(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return ct(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?ct(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(ht);!(n=s()).done;){var i=n.value;if(pt(o,i,d))return i}}}}function pt(t,e,d){return!(!(e=d.type(e))||!e.pattern())&&!(e.possibleLengths()&&e.possibleLengths().indexOf(t.length)<0)&&ut(t,e.pattern())}var vt=2,bt=17,mt=3,yt="0-90-9٠-٩۰-۹",gt="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~"),zt=new RegExp("(["+yt+"])");function xt(t,e,d,o){if(e){var n=new q(o);n.selectNumberingPlan(e,d);var s=new RegExp(n.IDDPrefix());if(0===t.search(s)){var i=(t=t.slice(t.match(s)[0].length)).match(zt);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return t}}}function wt(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var d=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),o=d.exec(t);if(o){var n,s,i,r=o.length-1,a=r>0&&o[r];if(e.nationalPrefixTransformRule()&&a?(n=t.replace(d,e.nationalPrefixTransformRule()),r>1&&(s=o[1])):(n=t.slice(o[0].length),a&&(s=o[1])),a){var l=t.indexOf(o[1]);t.slice(0,l)===e.numberingPlan.nationalPrefix()&&(i=e.numberingPlan.nationalPrefix())}else i=o[0];return{nationalNumber:n,nationalPrefix:i,carrierCode:s}}}return{nationalNumber:t}}function kt(t,e){var d=wt(t,e),o=d.carrierCode,n=d.nationalNumber;if(n!==t){if(!function(t,e,d){return!(ut(t,d.nationalNumberPattern())&&!ut(e,d.nationalNumberPattern()))}(t,n,e))return{nationalNumber:t};if(e.possibleLengths()&&!function(t,e){switch(rt(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(n,e))return{nationalNumber:t}}return{nationalNumber:n,carrierCode:o}}function Ct(t,e,d,o){var n=e?nt(e,o):d;if(0===t.indexOf(n)){(o=new q(o)).selectNumberingPlan(e,d);var s=t.slice(n.length),i=kt(s,o).nationalNumber,r=kt(t,o).nationalNumber;if(!ut(r,o.nationalNumberPattern())&&ut(i,o.nationalNumberPattern())||"TOO_LONG"===rt(r,o))return{countryCallingCode:n,number:s}}return{number:t}}function Ot(t,e,d,o){if(!t)return{};var n;if("+"!==t[0]){var s=xt(t,e,d,o);if(!s||s===t){if(e||d){var i=Ct(t,e,d,o),r=i.countryCallingCode;if(r)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:r,number:i.number}}return{number:t}}n=!0,t="+"+s}if("0"===t[1])return{};o=new q(o);for(var a=2;a-1<=mt&&a<=t.length;){var l=t.slice(1,a);if(o.hasCallingCode(l))return o.selectNumberingPlan(l),{countryCallingCodeSource:n?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:l,number:t.slice(a)};a++}return{}}function It(t){return t.replace(new RegExp("[".concat(gt,"]+"),"g")," ").trim()}var Et=/(\$\d)/;function At(t,e,d){var o=d.useInternationalFormat,n=d.withNationalPrefix,s=t.replace(new RegExp(e.pattern()),o?e.internationalFormat():n&&e.nationalPrefixFormattingRule()?e.format().replace(Et,e.nationalPrefixFormattingRule()):e.format());return o?It(s):s}var Nt=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,St=function(t){return"([".concat(yt,"]{1,").concat(t,"})")};function jt(){var t="[ \\t,]*",e="[:\\..]?[ \\t,-]*",d="#?",o="[ \\t]*";return";ext="+St("20")+"|"+t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+e+St("20")+"#?|"+t+"(?:[xx##~~]|int|int)"+e+St("9")+"#?|[- ]+"+St("6")+"#|"+o+"(?:,{2}|;)"+e+St("15")+"#?|"+o+"(?:,)+"+e+St("9")+d}var Tt="["+yt+"]{"+vt+"}",Lt="[++]{0,1}(?:["+gt+"]*["+yt+"]){3,}["+gt+yt+"]*",Mt=new RegExp("^[++]{0,1}(?:["+gt+"]*["+yt+"]){1,2}$","i"),Rt=Lt+"(?:"+jt()+")?",Ft=new RegExp("^"+Tt+"$|^"+Rt+"$","i");function Pt(t){return t.length>=vt&&Ft.test(t)}function _t(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function Bt(t,e){var d=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),d.push.apply(d,o)}return d}function Dt(t){for(var e=1;e<arguments.length;e++){var d=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(d),!0).forEach((function(e){Gt(t,e,d[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(d)):Bt(Object(d)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(d,e))}))}return t}function Gt(t,e,d){return e in t?Object.defineProperty(t,e,{value:d,enumerable:!0,configurable:!0,writable:!0}):t[e]=d,t}var Ut={formatExtension:function(t,e,d){return"".concat(t).concat(d.ext()).concat(e)}};function Vt(t,e,d,o,n){var s=function(t,e){for(var d,o=function(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return _t(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?_t(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(d=o()).done;){var n=d.value;if(n.leadingDigitsPatterns().length>0){var s=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(0!==e.search(s))continue}if(ut(e,n.pattern()))return n}}(o.formats(),t);return s?At(t,s,{useInternationalFormat:"INTERNATIONAL"===d,withNationalPrefix:!s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!n||!1!==n.nationalPrefix,carrierCode:e,metadata:o}):t}function Ht(t,e,d,o){return e?o(t,e,d):t}function Kt(t,e){var d=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),d.push.apply(d,o)}return d}function Zt(t){for(var e=1;e<arguments.length;e++){var d=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(d),!0).forEach((function(e){Wt(t,e,d[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(d)):Kt(Object(d)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(d,e))}))}return t}function Wt(t,e,d){return e in t?Object.defineProperty(t,e,{value:d,enumerable:!0,configurable:!0,writable:!0}):t[e]=d,t}function Yt(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var qt=function(){function t(e,d,o){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw new TypeError("First argument is required");if("string"!=typeof e)throw new TypeError("First argument must be a string");if("string"==typeof e){if("+"===e[0]&&!d)throw new TypeError("`metadata` argument not passed");if(U(d)&&U(d.countries)){o=d;var n=e;if(!Xt.test(n))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var s=Ot(n,void 0,void 0,o);if(e=s.countryCallingCode,!(d=s.number))throw new Error("Invalid `number` argument passed: too short")}}if(!d)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof d)throw new TypeError("`nationalNumber` argument must be a string");dt(o);var i=function(t,e){var d,o,n=new q(e);return Jt(t)?(n.selectNumberingPlan(d=t),o=n.countryCallingCode()):o=t,{country:d,countryCallingCode:o}}(e,o),r=i.countryCallingCode;this.country=i.country,this.countryCallingCode=r,this.nationalNumber=d,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return o}}var e,d;return e=t,d=[{key:"setExt",value:function(t){this.ext=t}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:function(t,e,d){var o=new q(d).getCountryCodesForCallingCode(t);return o?o.filter((function(t){return function(t,e,d){var o=new q(d);return o.selectNumberingPlan(e),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}(e,t,d)})):[]}(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return lt(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(t,e,d){return e=e||{},(d=new q(d)).selectNumberingPlan(t.country,t.countryCallingCode),d.hasTypes()?void 0!==ft(t,e,d.metadata):ut(e.v2?t.nationalNumber:t.phone,d.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new q(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(t){return this.number===t.number&&this.ext===t.ext}},{key:"getType",value:function(){return ft(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(t,e){return function(t,e,d,o){if(d=d?Dt(Dt({},Ut),d):Ut,o=new q(o),t.country&&"001"!==t.country){if(!o.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));o.country(t.country)}else{if(!t.countryCallingCode)return t.phone||"";o.selectNumberingPlan(t.countryCallingCode)}var n,s=o.countryCallingCode(),i=d.v2?t.nationalNumber:t.phone;switch(e){case"NATIONAL":return i?Ht(n=Vt(i,t.carrierCode,"NATIONAL",o,d),t.ext,o,d.formatExtension):"";case"INTERNATIONAL":return i?(n=Vt(i,null,"INTERNATIONAL",o,d),Ht(n="+".concat(s," ").concat(n),t.ext,o,d.formatExtension)):"+".concat(s);case"E.164":return"+".concat(s).concat(i);case"RFC3966":return function(t){var e=t.number,d=t.ext;if(!e)return"";if("+"!==e[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(d?";ext="+d:"")}({number:"+".concat(s).concat(i),ext:t.ext});case"IDD":if(!d.fromCountry)return;var r=function(t,e,d,o,n){if(nt(o,n.metadata)===d){var s=Vt(t,e,"NATIONAL",n);return"1"===d?d+" "+s:s}var i=function(t,e,d){var o=new q(d);return o.selectNumberingPlan(t,void 0),o.defaultIDDPrefix()?o.defaultIDDPrefix():Nt.test(o.IDDPrefix())?o.IDDPrefix():void 0}(o,0,n.metadata);if(i)return"".concat(i," ").concat(d," ").concat(Vt(t,null,"INTERNATIONAL",n))}(i,t.carrierCode,s,d.fromCountry,o);return Ht(r,t.ext,o,d.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}(this,t,e?Zt(Zt({},e),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(t){return this.format("NATIONAL",t)}},{key:"formatInternational",value:function(t){return this.format("INTERNATIONAL",t)}},{key:"getURI",value:function(t){return this.format("RFC3966",t)}}],d&&Yt(e.prototype,d),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Jt=function(t){return/^[A-Z]{2}$/.test(t)},Xt=/^\+\d+$/;function Qt(t){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(t)}function te(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ee(t){var e="function"==typeof Map?new Map:void 0;return ee=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,d)}function d(){return de(t,arguments,se(this).constructor)}return d.prototype=Object.create(t.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),ne(d,t)},ee(t)}function de(t,e,d){return de=oe()?Reflect.construct:function(t,e,d){var o=[null];o.push.apply(o,e);var n=new(Function.bind.apply(t,o));return d&&ne(n,d.prototype),n},de.apply(null,arguments)}function oe(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function ne(t,e){return ne=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ne(t,e)}function se(t){return se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},se(t)}var ie=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ne(t,e)}(n,ee(Error));var t,e,d,o=(e=n,d=oe(),function(){var t,o=se(e);if(d){var n=se(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return function(t,e){if(e&&("object"===Qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return te(t)}(this,t)});function n(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),e=o.call(this,t),Object.setPrototypeOf(te(e),n.prototype),e.name=e.constructor.name,e}return t=n,Object.defineProperty(t,"prototype",{writable:!1}),t}(),re=new RegExp("(?:"+jt()+")$","i");function ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}var le={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function $e(t){return le[t]}function ue(t){for(var e,d="",o=function(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return ae(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?ae(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(e=o()).done;){var n=$e(e.value);n&&(d+=n)}return d}function ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function he(t){for(var e,d="",o=function(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return ce(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?ce(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(e=o()).done;)d+=(s=d,i=void 0,("+"===(n=e.value)?s?void("function"==typeof i&&i("end")):"+":$e(n))||"");var n,s,i;return d}function fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function pe(t,e){var d=e.countries,o=e.metadata;o=new q(o);for(var n,s=function(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return fe(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?fe(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(d);!(n=s()).done;){var i=n.value;if(o.country(i),o.leadingDigits()){if(t&&0===t.search(o.leadingDigits()))return i}else if(ft({phone:t,country:i},void 0,o.metadata))return i}}var ve=!1;function be(t,e){var d=e.nationalNumber,o=e.defaultCountry,n=e.metadata;if(ve&&n.isNonGeographicCallingCode(t))return"001";var s=n.getCountryCodesForCallingCode(t);return s?1===s.length?s[0]:pe(d,{countries:s,defaultCountry:o,metadata:n.metadata}):void 0}var me="+",ye="(["+yt+"]|[\\-\\.\\(\\)]?)",ge=new RegExp("^\\"+me+ye+"*["+yt+"]"+ye+"*$","g"),ze=new RegExp("^(["+yt+"]+((\\-)*["+yt+"])*\\.)*[a-zA-Z]+((\\-)*["+yt+"])*\\.?$","g"),xe="tel:",we=";phone-context=",ke=";isub=";var Ce=250,Oe=new RegExp("[++"+yt+"]"),Ie=new RegExp("[^"+yt+"#]+$");function Ee(t,e,d){if(e=e||{},d=new q(d),e.defaultCountry&&!d.hasCountry(e.defaultCountry)){if(e.v2)throw new ie("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(e.defaultCountry))}var o=function(t,e,d){var o=function(t,e){var d,o=e.extractFormattedPhoneNumber,n=function(t){var e=t.indexOf(we);if(e<0)return null;var d=e+we.length;if(d>=t.length)return"";var o=t.indexOf(";",d);return o>=0?t.substring(d,o):t.substring(d)}(t);if(!function(t){return null===t||0!==t.length&&(ge.test(t)||ze.test(t))}(n))throw new ie("NOT_A_NUMBER");if(null===n)d=o(t)||"";else{d="",n.charAt(0)===me&&(d+=n);var s,i=t.indexOf(xe);s=i>=0?i+xe.length:0;var r=t.indexOf(we);d+=t.substring(s,r)}var a=d.indexOf(ke);if(a>0&&(d=d.substring(0,a)),""!==d)return d}(t,{extractFormattedPhoneNumber:function(t){return function(t,e,d){if(t)if(t.length>Ce){if(d)throw new ie("TOO_LONG")}else{if(!1===e)return t;var o=t.search(Oe);if(!(o<0))return t.slice(o).replace(Ie,"")}}(t,d,e)}});if(!o)return{};if(!Pt(o))return function(t){return Mt.test(t)}(o)?{error:"TOO_SHORT"}:{};var n=function(t){var e=t.search(re);if(e<0)return{};for(var d=t.slice(0,e),o=t.match(re),n=1;n<o.length;){if(o[n])return{number:d,ext:o[n]};n++}}(o);return n.ext?n:{number:o}}(t,e.v2,e.extract),n=o.number,s=o.ext;if(!n){if(e.v2){if("TOO_SHORT"===o.error)throw new ie("TOO_SHORT");throw new ie("NOT_A_NUMBER")}return{}}var i=function(t,e,d,o){var n,s=Ot(he(t),e,d,o.metadata),i=s.countryCallingCodeSource,r=s.countryCallingCode,a=s.number;if(r)o.selectNumberingPlan(r);else{if(!a||!e&&!d)return{};o.selectNumberingPlan(e,d),e&&(n=e),r=d||nt(e,o.metadata)}if(!a)return{countryCallingCodeSource:i,countryCallingCode:r};var l=kt(he(a),o),$=l.nationalNumber,u=l.carrierCode,c=be(r,{nationalNumber:$,defaultCountry:e,metadata:o});return c&&(n=c,"001"===c||o.country(n)),{country:n,countryCallingCode:r,countryCallingCodeSource:i,nationalNumber:$,carrierCode:u}}(n,e.defaultCountry,e.defaultCallingCode,d),r=i.country,a=i.nationalNumber,l=i.countryCallingCode,$=i.countryCallingCodeSource,u=i.carrierCode;if(!d.hasSelectedNumberingPlan()){if(e.v2)throw new ie("INVALID_COUNTRY");return{}}if(!a||a.length<vt){if(e.v2)throw new ie("TOO_SHORT");return{}}if(a.length>bt){if(e.v2)throw new ie("TOO_LONG");return{}}if(e.v2){var c=new qt(l,a,d.metadata);return r&&(c.country=r),u&&(c.carrierCode=u),s&&(c.ext=s),c.__countryCallingCodeSource=$,c}var h=!!(e.extended?d.hasSelectedNumberingPlan():r)&&ut(a,d.nationalNumberPattern());return e.extended?{country:r,countryCallingCode:l,carrierCode:u,valid:h,possible:!!h||!(!0!==e.extended||!d.possibleLengths()||!$t(a,d)),phone:a,ext:s}:h?function(t,e,d){var o={country:t,phone:e};return d&&(o.ext=d),o}(r,a,s):{}}function Ae(t,e){var d=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),d.push.apply(d,o)}return d}function Ne(t){for(var e=1;e<arguments.length;e++){var d=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(d),!0).forEach((function(e){Se(t,e,d[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(d)):Ae(Object(d)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(d,e))}))}return t}function Se(t,e,d){return e in t?Object.defineProperty(t,e,{value:d,enumerable:!0,configurable:!0,writable:!0}):t[e]=d,t}function je(t,e){var d=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),d.push.apply(d,o)}return d}function Te(t,e,d){return e in t?Object.defineProperty(t,e,{value:d,enumerable:!0,configurable:!0,writable:!0}):t[e]=d,t}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function Me(t){var e,d,o,n,s,i=(n=Array.prototype.slice.call(t),s=4,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var d=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=d){var o,n,s=[],i=!0,r=!1;try{for(d=d.call(t);!(i=(o=d.next()).done)&&(s.push(o.value),!e||s.length!==e);i=!0);}catch(t){r=!0,n=t}finally{try{i||null==d.return||d.return()}finally{if(r)throw n}}return s}}(n,s)||function(t,e){if(t){if("string"==typeof t)return Le(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?Le(t,e):void 0}}(n,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=i[0],a=i[1],l=i[2],$=i[3];if("string"!=typeof r)throw new TypeError("A text for parsing must be a string.");if(e=r,a&&"string"!=typeof a){if(!U(a))throw new Error("Invalid second argument: ".concat(a));l?(d=a,o=l):o=a}else $?(d=l,o=$):(d=void 0,o=l),a&&(d=function(t){for(var e=1;e<arguments.length;e++){var d=null!=arguments[e]?arguments[e]:{};e%2?je(Object(d),!0).forEach((function(e){Te(t,e,d[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(d)):je(Object(d)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(d,e))}))}return t}({defaultCountry:a},d));return{text:e,options:d,metadata:o}}function Re(t,e){var d=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),d.push.apply(d,o)}return d}function Fe(t){for(var e=1;e<arguments.length;e++){var d=null!=arguments[e]?arguments[e]:{};e%2?Re(Object(d),!0).forEach((function(e){Pe(t,e,d[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(d)):Re(Object(d)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(d,e))}))}return t}function Pe(t,e,d){return e in t?Object.defineProperty(t,e,{value:d,enumerable:!0,configurable:!0,writable:!0}):t[e]=d,t}function _e(){var t=Me(arguments);return function(t,e,d){e&&e.defaultCountry&&!function(t,e){return e.countries.hasOwnProperty(t)}(e.defaultCountry,d)&&(e=Fe(Fe({},e),{},{defaultCountry:void 0}));try{return function(t,e,d){return Ee(t,Ne(Ne({},e),{},{v2:!0}),d)}(t,e,d)}catch(t){if(!(t instanceof ie))throw t}}(t.text,t.options,t.metadata)}function Be(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var De=function(){function t(e){var d=e.onCountryChange,o=e.onCallingCodeChange;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onCountryChange=d,this.onCallingCodeChange=o}var e,d;return e=t,(d=[{key:"reset",value:function(t){var e=t.country,d=t.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(e,d)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(t){for(var e=0,d=Object.keys(t);e<d.length;e++){var o=d[e];this[o]=t[o]}}},{key:"initCountryAndCallingCode",value:function(t,e){this.setCountry(t),this.setCallingCode(e)}},{key:"setCountry",value:function(t){this.country=t,this.onCountryChange(t)}},{key:"setCallingCode",value:function(t){this.callingCode=t,this.onCallingCodeChange(t,this.country)}},{key:"startInternationalNumber",value:function(t,e){this.international=!0,this.initCountryAndCallingCode(t,e)}},{key:"appendDigits",value:function(t){this.digits+=t}},{key:"appendNationalSignificantNumberDigits",value:function(t){this.nationalSignificantNumber+=t}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&Be(e.prototype,d),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}var Ue="x",Ve=new RegExp(Ue);function He(t,e){if(e<1)return"";for(var d="";e>1;)1&e&&(d+=t),e>>=1,t+=t;return d+t}function Ke(t,e){return")"===t[e]&&e++,function(t){for(var e=[],d=0;d<t.length;)"("===t[d]?e.push(d):")"===t[d]&&e.pop(),d++;var o=0,n="";e.push(t.length);for(var s=0,i=e;s<i.length;s++){var r=i[s];n+=t.slice(o,r),o=r+1}return n}(t.slice(0,e))}function Ze(t,e,d){var o=d.metadata,n=d.shouldTryNationalPrefixFormattingRule,s=d.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(e.pattern(),")$")).test(t.nationalSignificantNumber))return function(t,e,d){var o=d.metadata,n=d.getSeparatorAfterNationalPrefix;if((0,d.shouldTryNationalPrefixFormattingRule)(e)){var s=We(t,e,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:n,metadata:o});if(s)return s}return We(t,e,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:n,metadata:o})}(t,e,{metadata:o,shouldTryNationalPrefixFormattingRule:n,getSeparatorAfterNationalPrefix:s})}function We(t,e,d){var o=d.useNationalPrefixFormattingRule,n=d.getSeparatorAfterNationalPrefix,s=At(t.nationalSignificantNumber,e,{carrierCode:t.carrierCode,useInternationalFormat:t.international,withNationalPrefix:o,metadata:d.metadata});if(o||(t.nationalPrefix?s=t.nationalPrefix+n(e)+s:t.complexPrefixBeforeNationalSignificantNumber&&(s=t.complexPrefixBeforeNationalSignificantNumber+" "+s)),function(t,e){return ue(t)===e.getNationalDigits()}(s,t))return s}function Ye(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var qe=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,d;return e=t,(d=[{key:"parse",value:function(t){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(t),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var e=this.context[0],d=e.branches,o=e.instructions;if(d)return{op:"|",args:d.concat([td(o)])};if(0===o.length)throw new Error("Pattern is required");return 1===o.length?o[0]:o}},{key:"startContext",value:function(t){this.context.push(t)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(t){if(!t)throw new Error("Pattern is required");var e=t.match(Qe);if(e){var d=e[1],o=t.slice(0,e.index),n=t.slice(e.index+d.length);switch(d){case"(?:":o&&this.parsePattern(o),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(o&&this.parsePattern(o),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var s=this.getContext().branches;s.push(td(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:s});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(o&&this.parsePattern(o),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(td(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":o&&this.parsePattern(o),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Je(o)});break;default:throw new Error("Unknown operator: ".concat(d))}n&&this.parsePattern(n)}else{if(Xe.test(t))throw new Error("Illegal characters found in a pattern: ".concat(t));this.getContext().instructions=this.getContext().instructions.concat(t.split(""))}}}])&&Ye(e.prototype,d),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Je(t){for(var e=[],d=0;d<t.length;){if("-"===t[d]){if(0===d||d===t.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(t));for(var o=t[d-1].charCodeAt(0)+1,n=t[d+1].charCodeAt(0)-1,s=o;s<=n;)e.push(String.fromCharCode(s)),s++}else e.push(t[d]);d++}return e}var Xe=/[\(\)\[\]\?\:\|]/,Qe=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function td(t){return 1===t.length?t[0]:t}function ed(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return dd(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?dd(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dd(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function od(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var nd=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.matchTree=(new qe).parse(e)}var e,d;return e=t,d=[{key:"match",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!t)throw new Error("String is required");var d=sd(t.split(""),this.matchTree,!0);if(d&&d.match&&delete d.matchedChars,!d||!d.overflow||e)return d}}],d&&od(e.prototype,d),Object.defineProperty(e,"prototype",{writable:!1}),t}();function sd(t,e,d){if("string"==typeof e){var o=t.join("");return 0===e.indexOf(o)?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===o.indexOf(e)?d&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var n=t.slice(),s=0;s<e.length;){var i=sd(n,e[s],d&&s===e.length-1);if(!i)return;if(i.overflow)return i;if(!i.match){if(i.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(i,null,2)))}if(0===(n=n.slice(i.matchedChars.length)).length)return s===e.length-1?{match:!0,matchedChars:t}:{partialMatch:!0};s++}return d?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-n.length)}}switch(e.op){case"|":for(var r,a,l=ed(e.args);!(a=l()).done;){var $=sd(t,a.value,d);if($){if($.overflow)return $;if($.match)return{match:!0,matchedChars:$.matchedChars};if(!$.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify($,null,2)));r=!0}}return r?{partialMatch:!0}:void 0;case"[]":for(var u,c=ed(e.args);!(u=c()).done;){var h=u.value;if(t[0]===h)return 1===t.length?{match:!0,matchedChars:t}:d?{overflow:!0}:{match:!0,matchedChars:[h]}}return;default:throw new Error("Unsupported instruction tree: ".concat(e))}}function id(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return rd(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?rd(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rd(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function ad(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var ld=He("9",15),$d=/[- ]/,ud=new RegExp("["+gt+"]*\\$1["+gt+"]*(\\$\\d["+gt+"]*)*$"),cd=function(){function t(e){var d=e.metadata;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.metadata=d,this.resetFormat()}var e,d;return e=t,d=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(t,e){this.resetFormat(),t?(this.isNANP="1"===t.callingCode(),this.matchingFormats=t.formats(),e.nationalSignificantNumber&&this.narrowDownMatchingFormats(e)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(t,e){var d=this;if(function(t,e){return"IS_POSSIBLE"===rt(t,e)}(e.nationalSignificantNumber,this.metadata))for(var o,n=id(this.matchingFormats);!(o=n()).done;){var s=o.value,i=Ze(e,s,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(t){return d.shouldTryNationalPrefixFormattingRule(t,{international:e.international,nationalPrefix:e.nationalPrefix})},getSeparatorAfterNationalPrefix:function(t){return d.getSeparatorAfterNationalPrefix(t)}});if(i)return this.resetFormat(),this.chosenFormat=s,this.setNationalNumberTemplate(i.replace(/\d/g,Ue),e),this.populatedNationalNumberTemplate=i,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Ue),i}return this.formatNationalNumberWithNextDigits(t,e)}},{key:"formatNationalNumberWithNextDigits",value:function(t,e){var d=this.chosenFormat,o=this.chooseFormat(e);if(o)return this.formatNextNationalNumberDigits(o===d?t:e.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(t){var e=this,d=t.nationalPrefix,o=t.international,n=t.nationalSignificantNumber,s=n.length-3;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter((function(t){return e.formatSuits(t,o,d)&&e.formatMatches(t,n,s)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(t,e,d){return!(d&&!t.usesNationalPrefix()&&!t.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!e&&!d&&t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(t,e,d){var o=t.leadingDigitsPatterns().length;if(0===o)return!0;d=Math.min(d,o-1);var n=t.leadingDigitsPatterns()[d];if(e.length<3)try{return void 0!==new nd(n).match(e,{allowOverflow:!0})}catch(t){return console.error(t),!0}return new RegExp("^(".concat(n,")")).test(e)}},{key:"getFormatFormat",value:function(t,e){return e?t.internationalFormat():t.format()}},{key:"chooseFormat",value:function(t){for(var e,d=this,o=function(){var o=e.value;return d.chosenFormat===o?"break":ud.test(d.getFormatFormat(o,t.international))?d.createTemplateForFormat(o,t)?(d.chosenFormat=o,"break"):(d.matchingFormats=d.matchingFormats.filter((function(t){return t!==o})),"continue"):"continue"},n=id(this.matchingFormats.slice());!(e=n()).done;){if("break"===o())break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(t,e){if(!(t.pattern().indexOf("|")>=0)){var d=this.getTemplateForFormat(t,e);return d?(this.setNationalNumberTemplate(d,e),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(t){return this.isNANP||t&&t.nationalPrefixFormattingRule()&&$d.test(t.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,e){var d=t.IDDPrefix;return d?e&&!1===e.spacing?d:d+" ":t.missingPlus?"":"+"}},{key:"getTemplate",value:function(t){if(this.template){for(var e=-1,d=0,o=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):"";d<o.length+t.getDigitsWithoutInternationalPrefix().length;)e=this.template.indexOf(Ue,e+1),d++;return Ke(this.template,e+1)}}},{key:"setNationalNumberTemplate",value:function(t,e){this.nationalNumberTemplate=t,this.populatedNationalNumberTemplate=t,this.populatedNationalNumberTemplatePosition=-1,this.template=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e).replace(/[\d\+]/g,Ue)+He(Ue,e.callingCode.length)+" "+t:t}},{key:"getTemplateForFormat",value:function(t,e){var d=e.nationalSignificantNumber,o=e.international,n=e.nationalPrefix,s=e.complexPrefixBeforeNationalSignificantNumber,i=t.pattern();i=i.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var r=ld.match(i)[0];if(!(d.length>r.length)){var a=new RegExp("^"+i+"$"),l=d.replace(/\d/g,"9");a.test(l)&&(r=l);var $,u=this.getFormatFormat(t,o);if(this.shouldTryNationalPrefixFormattingRule(t,{international:o,nationalPrefix:n})){var c=u.replace(Et,t.nationalPrefixFormattingRule());if(ue(t.nationalPrefixFormattingRule())===(n||"")+ue("$1")&&(u=c,$=!0,n))for(var h=n.length;h>0;)u=u.replace(/\d/,Ue),h--}var f=r.replace(new RegExp(i),u).replace(new RegExp("9","g"),Ue);return $||(s?f=He(Ue,s.length)+" "+f:n&&(f=He(Ue,n.length)+this.getSeparatorAfterNationalPrefix(t)+f)),o&&(f=It(f)),f}}},{key:"formatNextNationalNumberDigits",value:function(t){var e=function(t,e,d){for(var o,n=function(t,e){var d="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(d)return(d=d.call(t)).next.bind(d);if(Array.isArray(t)||(d=function(t,e){if(t){if("string"==typeof t)return Ge(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?Ge(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){d&&(t=d);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(d.split(""));!(o=n()).done;){var s=o.value;if(t.slice(e+1).search(Ve)<0)return;e=t.search(Ve),t=t.replace(Ve,s)}return[t,e]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(e)return this.populatedNationalNumberTemplate=e[0],this.populatedNationalNumberTemplatePosition=e[1],Ke(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(t,e){var d=e.international,o=e.nationalPrefix;if(t.nationalPrefixFormattingRule()){var n=t.usesNationalPrefix();if(n&&o||!n&&!d)return!0}}}],d&&ad(e.prototype,d),Object.defineProperty(e,"prototype",{writable:!1}),t}();function hd(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var d=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=d){var o,n,s=[],i=!0,r=!1;try{for(d=d.call(t);!(i=(o=d.next()).done)&&(s.push(o.value),!e||s.length!==e);i=!0);}catch(t){r=!0,n=t}finally{try{i||null==d.return||d.return()}finally{if(r)throw n}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fd(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?fd(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fd(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function pd(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var vd=new RegExp("^["+gt+yt+"]+$","i"),bd="(?:[++]["+gt+yt+"]*|["+gt+yt+"]+)",md=new RegExp("[^"+gt+yt+"]+.*$"),yd=/[^\d\[\]]/,gd=function(){function t(e){var d=e.defaultCountry,o=e.defaultCallingCode,n=e.metadata,s=e.onNationalSignificantNumberChange;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.defaultCountry=d,this.defaultCallingCode=o,this.metadata=n,this.onNationalSignificantNumberChange=s}var e,d;return e=t,(d=[{key:"input",value:function(t,e){var d,o=function(t){var e=function(t){var e=function(t){var e,d=t.search(bd);if(!(d<0))return"+"===(t=t.slice(d))[0]&&(e=!0,t=t.slice(1)),t=t.replace(md,""),e&&(t="+"+t),t}(t)||"";return"+"===e[0]?[e.slice(1),!0]:[e]}(t),d=hd(e,2),o=d[0],n=d[1];return vd.test(o)||(o=""),[o,n]}(t),n=hd(o,2),s=n[1],i=ue(n[0]);return s&&(e.digits||(e.startInternationalNumber(),i||(d=!0))),i&&this.inputDigits(i,e),{digits:i,justLeadingPlus:d}}},{key:"inputDigits",value:function(t,e){var d=e.digits,o=d.length<3&&d.length+t.length>=3;if(e.appendDigits(t),o&&this.extractIddPrefix(e),this.isWaitingForCountryCallingCode(e)){if(!this.extractCountryCallingCode(e))return}else e.appendNationalSignificantNumberDigits(t);e.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(e.getNationalDigits(),(function(t){return e.update(t)}))}},{key:"isWaitingForCountryCallingCode",value:function(t){return t.international&&!t.callingCode}},{key:"extractCountryCallingCode",value:function(t){var e=Ot("+"+t.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),d=e.countryCallingCode,o=e.number;if(d)return t.setCallingCode(d),t.update({nationalSignificantNumber:o}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var e=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=e&&yd.test(e)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,e){if(this.hasSelectedNumberingPlan){var d=wt(t,this.metadata),o=d.nationalNumber;if(o!==t)return this.onExtractedNationalNumber(d.nationalPrefix,d.carrierCode,o,t,e),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,e,d){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,d);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var o=wt(t,this.metadata),n=o.nationalNumber;if(n!==e)return this.onExtractedNationalNumber(o.nationalPrefix,o.carrierCode,n,t,d),!0}}},{key:"onExtractedNationalNumber",value:function(t,e,d,o,n){var s,i,r=o.lastIndexOf(d);if(r>=0&&r===o.length-d.length){i=!0;var a=o.slice(0,r);a!==t&&(s=a)}n({nationalPrefix:t,carrierCode:e,nationalSignificantNumber:d,nationalSignificantNumberMatchesInput:i,complexPrefixBeforeNationalSignificantNumber:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){return!!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,(function(e){return t.update(e)}))||(this.extractIddPrefix(t)||this.fixMissingPlus(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):void 0)}},{key:"extractIddPrefix",value:function(t){var e=t.digits;if(!t.international&&!t.IDDPrefix){var d=xt(e,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==d&&d!==e?(t.update({IDDPrefix:e.slice(0,e.length-d.length)}),this.startInternationalNumber(t,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var e=Ct(t.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode;if(e)return t.update({missingPlus:!0}),this.startInternationalNumber(t,{country:t.country,callingCode:e}),!0}}},{key:"startInternationalNumber",value:function(t,e){t.startInternationalNumber(e.country,e.callingCode),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),(function(e){return t.update(e)}))}}])&&pd(e.prototype,d),Object.defineProperty(e,"prototype",{writable:!1}),t}();function zd(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function xd(t,e){for(var d=0;d<e.length;d++){var o=e[d];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var wd=function(){function t(e,d){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.metadata=new q(d);var o,n,s=(o=this.getCountryAndCallingCode(e),n=2,function(t){if(Array.isArray(t))return t}(o)||function(t,e){var d=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=d){var o,n,s=[],i=!0,r=!1;try{for(d=d.call(t);!(i=(o=d.next()).done)&&(s.push(o.value),!e||s.length!==e);i=!0);}catch(t){r=!0,n=t}finally{try{i||null==d.return||d.return()}finally{if(r)throw n}}return s}}(o,n)||function(t,e){if(t){if("string"==typeof t)return zd(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?zd(t,e):void 0}}(o,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[1];this.defaultCountry=s[0],this.defaultCallingCode=i,this.reset()}var e,d;return e=t,d=[{key:"getCountryAndCallingCode",value:function(t){var e,d;return t&&(U(t)?(e=t.defaultCountry,d=t.defaultCallingCode):e=t),e&&!this.metadata.hasCountry(e)&&(e=void 0),[e,d]}},{key:"input",value:function(t){var e=this.parser.input(t,this.state),d=e.digits;if(e.justLeadingPlus)this.formattedOutput="+";else if(d){var o;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(o=this.formatter.format(d,this.state)),void 0===o&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var n=this.state.getNationalDigits();n&&(o=this.formatter.format(n,this.state))}this.formattedOutput=o?this.getFullNumber(o):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var t=this;return this.state=new De({onCountryChange:function(e){t.country=e},onCallingCodeChange:function(e,d){t.metadata.selectNumberingPlan(d,e),t.formatter.reset(t.metadata.numberingPlan,t.state),t.parser.reset(t.metadata.numberingPlan)}}),this.formatter=new cd({state:this.state,metadata:this.metadata}),this.parser=new gd({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){t.determineTheCountryIfNeeded(),t.formatter.reset(t.metadata.numberingPlan,t.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){return this.state.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(t){var e,d=this;if(this.isInternational()){var o=this.state.callingCode;return e=o?t?"".concat(o," ").concat(t):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()),d.formatter.getInternationalPrefixBeforeCountryCallingCode(d.state,{spacing:!!e})+e}return t}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var t=this.state,e=t.nationalSignificantNumber,d=t.complexPrefixBeforeNationalSignificantNumber||t.nationalPrefix;return d&&(e=d+e),e}},{key:"getNonFormattedNumber",value:function(){return this.getFullNumber(this.state.nationalSignificantNumberMatchesInput?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var t=this.getNonFormattedNumber();if(t)return t.replace(/[\+\d]/g,Ue)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var t=this.metadata.getCountryCodesForCallingCode(this.state.callingCode);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(be(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var t=this.state,e=t.digits,d=t.callingCode,o=t.country,n=t.nationalSignificantNumber;if(e)return this.isInternational()?d?"+"+d+n:"+"+e:o||d?"+"+(o?this.metadata.countryCallingCode():d)+n:void 0}},{key:"getNumber",value:function(){var t=this.state,e=t.nationalSignificantNumber,d=t.carrierCode,o=t.callingCode,n=this._getCountry();if(e&&(n||o)){if(n&&n===this.defaultCountry){var s=new q(this.metadata.metadata);s.selectNumberingPlan(n);var i=s.numberingPlan.callingCode(),r=this.metadata.getCountryCodesForCallingCode(i);if(r.length>1){var a=pe(e,{countries:r,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});a&&(n=a)}}var l=new qt(n||o,e,this.metadata.metadata);return d&&(l.carrierCode=d),l}}},{key:"isPossible",value:function(){var t=this.getNumber();return!!t&&t.isPossible()}},{key:"isValid",value:function(){var t=this.getNumber();return!!t&&t.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}],d&&xd(e.prototype,d),Object.defineProperty(e,"prototype",{writable:!1}),t}();function kd(t){return wd.call(this,t,_)}function Cd(t,e){(null==e||e>t.length)&&(e=t.length);for(var d=0,o=new Array(e);d<e;d++)o[d]=t[d];return o}function Od(){var t=function(t){var e,d,o,n,s=(o=Array.prototype.slice.call(t),n=4,function(t){if(Array.isArray(t))return t}(o)||function(t,e){var d=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=d){var o,n,s=[],i=!0,r=!1;try{for(d=d.call(t);!(i=(o=d.next()).done)&&(s.push(o.value),!e||s.length!==e);i=!0);}catch(t){r=!0,n=t}finally{try{i||null==d.return||d.return()}finally{if(r)throw n}}return s}}(o,n)||function(t,e){if(t){if("string"==typeof t)return Cd(t,e);var d=Object.prototype.toString.call(t).slice(8,-1);return"Object"===d&&t.constructor&&(d=t.constructor.name),"Map"===d||"Set"===d?Array.from(t):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?Cd(t,e):void 0}}(o,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],r=s[1],a=s[2],l=s[3],$={};if("string"==typeof i)U(r)?(a?($=r,d=a):d=r,e=Pt(i)?Ee(i,void 0,d):{}):(l?($=a,d=l):d=a,e=Pt(i)?Ee(i,{defaultCountry:r},d):{});else{if(!U(i))throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");e=i,a?($=r,d=a):d=r}return{input:e,options:$,metadata:d}}(arguments),e=t.input,d=t.options;return!!(e.phone||d&&d.v2)&<(e,d,t.metadata)}(kd.prototype=Object.create(wd.prototype,{})).constructor=kd;let Id=0;const Ed=class{constructor(e){t(this,e),this.inputValueChange=o(this,"inputValueChange",7),this.inputId="zonos--phone-input-"+ ++Id,this.inheritedAttributes={},this.autoComplete="",this.countryOptions=null,this.disabled=!1,this.countryCode=null,this.phoneNumber="",this.isFocused=!1,this.isSelectOpen=!1,this.handleCountryChange=t=>{var e;const d=null===(e=this.countryOptions)||void 0===e?void 0:e[t.target.value];this.selectedCountry=d,this.updatePhoneFormatter();const{isEmpty:o,valid:n,wrongFormat:s}=this.validatePhoneNumber();this.inputValueChange.emit({countryCode:(null==d?void 0:d.countryCode)||null,isEmpty:o,phoneNumber:this.phoneNumber,valid:n,wrongFormat:s})},this.handlePhoneChange=t=>{var e,d;const o=t.target,n=o.value.replace(/[^0-9]/g,"");if(this.asYouType){this.asYouType.reset();const t=this.asYouType.input(n);this.phoneNumber=(null===(e=this.asYouType.getNumber())||void 0===e?void 0:e.number)||"",o.value=t}else this.phoneNumber=n;const{isEmpty:s,valid:i,wrongFormat:r}=this.validatePhoneNumber();this.inputValueChange.emit({countryCode:(null===(d=this.selectedCountry)||void 0===d?void 0:d.countryCode)||null,isEmpty:s,phoneNumber:this.phoneNumber,valid:i,wrongFormat:r})},this.handleFocus=()=>{this.isFocused=!0},this.handleBlur=()=>{this.isFocused=!1},this.isCountryCode=t=>{var e;return void 0!==(null===(e=this.countryOptions)||void 0===e?void 0:e[t])},this.initPhoneNumberValue=()=>{var t;if(!this.countryOptions)return;const e=null===(t=function(){return B(_e,arguments)}(this.inputValue||"",{defaultCountry:this.countryCode}))||void 0===t?void 0:t.country,d=e&&this.isCountryCode(e)?e:this.countryCode,o=Object.values(this.countryOptions).find(Boolean);if(d)this.selectedCountry=this.countryOptions[d]||o,this.phoneNumber=this.inputValue||"",this.updatePhoneFormatter();else{this.selectedCountry=o;const{isEmpty:t,valid:e,wrongFormat:d}=this.validatePhoneNumber();this.inputValueChange.emit({countryCode:(null==o?void 0:o.countryCode)||null,isEmpty:t,phoneNumber:this.phoneNumber,valid:e,wrongFormat:d})}}}onCountryOptionsChange(){this.initPhoneNumberValue()}onSelectedCountryChange(){this.updatePhoneFormatter()}onPhoneNumberChange(){this.phoneNumber=this.inputValue||"",this.updatePhoneFormatter()}validatePhoneNumber(){var t;if(!this.phoneNumber)return{isEmpty:!0,valid:!1,wrongFormat:!1};const e=function(){return B(Od,arguments)}((null===(t=this.asYouType.getNumber())||void 0===t?void 0:t.number)||"");return{isEmpty:!1,valid:e,wrongFormat:!e}}updatePhoneFormatter(){var t,e,d,o;const n=Object.values(this.countryOptions||[]).find(Boolean),s=(null===(t=this.selectedCountry)||void 0===t?void 0:t.countryCode)||(null==n?void 0:n.countryCode)||"US";if(this.asYouType=new kd(s),this.phoneNumber&&(this.asYouType.input(this.phoneNumber),this.inputRef)){this.inputRef.value=(null===(e=this.asYouType.getNumber())||void 0===e?void 0:e.formatNational())||"";const{isEmpty:t,valid:n,wrongFormat:s}=this.validatePhoneNumber();this.inputValueChange.emit({countryCode:(null===(d=this.selectedCountry)||void 0===d?void 0:d.countryCode)||null,isEmpty:t,phoneNumber:(null===(o=this.asYouType.getNumber())||void 0===o?void 0:o.number)||"",valid:n,wrongFormat:s})}}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},I(this.el)),E(this.el,["tabindex","title","data-form-type","dir"])),this.initPhoneNumberValue()}componentDidLoad(){this.initPhoneNumberValue()}render(){var t;const o=this.overridePrimaryColor||b.appearance.colorPrimary,n=this.overrideSecondaryColor||b.appearance.colorSecondary,i=o&&g(o),r=b.appearance.fontSizeInputValue||16,a=!!this.phoneNumber,l=this.countryOptions?Object.values(this.countryOptions).filter(Boolean).sort(((t,e)=>t.displayName.localeCompare(e.displayName))):[];return e(d,{key:"3f073620fb9250208be54ffd6d0dfbc8c5da7d6f",class:p(["zonos--phone-input zonos--elements",i&&"dark"]),"data-theme":i?"DARK":"LIGHT",style:Object.assign({"--zonos--border-radius":v(),"--zonos--font-family":m(),"--zonos--font-size":`${r}px`,"--zonos--primary-color":n},this.minWidth?{"--zonos--min-width":this.minWidth}:{})},e("div",{key:"bdaf73f9a51fa2a39dd9684584ec4f032ea39d00",class:p(["zonos--label-wrapper",this.disabled&&"disabled",this.isFocused&&"focused",a&&"has-content",this.error&&"has-error",this.inputLabel&&"has-label"])},e("select",{key:"ad4477bfc5e1971a5e7a34a5e06b699c6115b3d3",class:"zonos--select",disabled:this.disabled,onBlur:this.handleBlur,onChange:this.handleCountryChange,onFocus:this.handleFocus},l.map((t=>{var d;return e("option",{key:t.countryCode,selected:t.countryCode===(null===(d=this.selectedCountry)||void 0===d?void 0:d.countryCode),value:t.countryCode},t.displayName," (+",t.phoneCode,")")}))),e("div",{key:"39d6ae20a62bfa7d21a3d4a1143a4b42a87bbc41",class:"zonos--input-group"},e("div",{key:"dba0974115ce5e4f3f22689f406c3defe2989b29",class:"zonos--select-wrapper"},e("div",{key:"3231072a3dba2d61a5567ad8ceacd871b3b7657c",class:"zonos--country-select"},e("div",{key:"3fd9224b1ef63a6e2e1c11c19a1dddbaa1337ad1",class:"zonos--country-select-content"},this.selectedCountry&&e("div",{key:"ba2d811521d84bbe3c0a2749307cce90e9347457",class:"zonos--country-select-selected"},e("div",{key:"4b21bf8d586b51f3d0ef9ba881e5a73d4742d440",class:"zonos--country-flag-wrapper"},e("zonos-country-flag",{key:"ed2fca152a8f1064051758bf624bb02d0af61379",class:"zonos--country-flag",countryCode:this.selectedCountry.countryCode})),e("div",{key:"ee43fea008cfde320a15a151a07f1295dd0d77dd",class:"zonos--country-code"},"+",this.selectedCountry.phoneCode)),e("div",{key:"28961fccf5ad433b3a81fab91773d8d8d4e17b30",class:"zonos--select-chevron-wrapper"},e("zonos-icon",{key:"8233c34fdbf221f2289506b57b3fd429ec048df3","aria-label":"Expand collapsed section",class:"zonos--select-chevron",content:'<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>',iconColor:"gray-800"}))))),e("div",{key:"0d947d929218bac9929f411c5989a18ab36054fe",class:p(["zonos--input-container",this.inputLabel&&"has-label",a&&"has-content"])},e("input",Object.assign({key:"16956304c84642b82039e0180aea6ce96269799a"},this.inheritedAttributes,{autoComplete:this.autoComplete,class:"zonos--floated-input",disabled:this.disabled,id:this.inputId,onBlur:this.handleBlur,onFocus:this.handleFocus,onInput:this.handlePhoneChange,placeholder:(null===(t=this.selectedCountry)||void 0===t?void 0:t.phonePlaceholder)||"",ref:t=>this.inputRef=t,type:"tel"})),this.inputLabel&&e("div",{key:"57f3d9ad16aee89271c134d409abb6383b225f55",class:"zonos--floated-label"},e("label",{key:"d2af8c75f82df1b3176f708bea86a18b7ee4840d",htmlFor:this.inputId},this.inputLabel||s("Phone number")))))),this.error&&e("zonos-text",{key:"3bb993c5e780f4394d141d7c62bd1f8ea4d1fc70",textColor:"red-600"},this.error))}get el(){return n(this)}static get watchers(){return{countryOptions:["onCountryOptionsChange"],selectedCountry:["onSelectedCountryChange"],inputValue:["onPhoneNumberChange"]}}};Ed.style='.sc-zonos-stripe-phone-input-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-stripe-phone-input-h *.sc-zonos-stripe-phone-input{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-stripe-phone-input-h img.sc-zonos-stripe-phone-input{max-width:100%}.sc-zonos-stripe-phone-input-h dl.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h dd.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h h1.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h h2.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h h3.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h h4.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h h5.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h h6.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h hr.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h figure.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h p.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h pre.sc-zonos-stripe-phone-input{margin:0}.sc-zonos-stripe-phone-input-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-stripe-phone-input-h{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8;margin:1px;position:relative;display:block}.dark.sc-zonos-stripe-phone-input-h,[data-theme=DARK].sc-zonos-stripe-phone-input-h{color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}.sc-zonos-stripe-phone-input-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:4px;position:relative;width:100%}.sc-zonos-stripe-phone-input-h .zonos--label-wrapper.sc-zonos-stripe-phone-input{position:relative;width:100%;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;height:calc(var(--zonos-elements-size-xl) - 2px);background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px;overflow:visible}.sc-zonos-stripe-phone-input-h .zonos--label-wrapper.sc-zonos-stripe-phone-input .zonos--select.sc-zonos-stripe-phone-input{position:absolute;opacity:0;inset:0;width:100%;cursor:pointer}.sc-zonos-stripe-phone-input-h .zonos--label-wrapper.sc-zonos-stripe-phone-input .zonos--input-group.sc-zonos-stripe-phone-input{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%;pointer-events:none}.sc-zonos-stripe-phone-input-h .zonos--label-wrapper.focused.sc-zonos-stripe-phone-input::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius);-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));pointer-events:none}.sc-zonos-stripe-phone-input-h .zonos--label-wrapper.has-error.sc-zonos-stripe-phone-input::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius);-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41;pointer-events:none}.sc-zonos-stripe-phone-input-h .zonos--label-wrapper.disabled.sc-zonos-stripe-phone-input{opacity:var(--zonos-elements-opacity-disabled);cursor:not-allowed;pointer-events:none}.sc-zonos-stripe-phone-input-h .zonos--select-wrapper.sc-zonos-stripe-phone-input{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer}.sc-zonos-stripe-phone-input-h .zonos--select-wrapper.sc-zonos-stripe-phone-input:hover{background-color:rgba(0, 0, 0, 0.02)}.sc-zonos-stripe-phone-input-h .zonos--input-container.sc-zonos-stripe-phone-input{-ms-flex:1;flex:1;position:relative;z-index:2;pointer-events:all}.sc-zonos-stripe-phone-input-h .zonos--input-container.has-label.sc-zonos-stripe-phone-input .zonos--floated-input.sc-zonos-stripe-phone-input{padding:24px 12px 2px}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input{background:transparent;border:none;width:100%;height:100%;padding:0 12px;font-size:var(--zonos--font-size);color:var(--zonos-elements-text-color);outline:none;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input:disabled{cursor:not-allowed}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input::-webkit-input-placeholder{opacity:0;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input::-moz-placeholder{opacity:0;-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input:-ms-input-placeholder{opacity:0;-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input::-ms-input-placeholder{opacity:0;-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input::placeholder{opacity:0;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-phone-input-h .zonos--floated-input.sc-zonos-stripe-phone-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-phone-input-h .zonos--floated-label.sc-zonos-stripe-phone-input{display:block;max-height:0;pointer-events:none}.sc-zonos-stripe-phone-input-h .zonos--floated-label.sc-zonos-stripe-phone-input label.sc-zonos-stripe-phone-input{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);left:12px;top:calc(50% - 8px);z-index:1}.sc-zonos-stripe-phone-input-h .has-content.sc-zonos-stripe-phone-input .zonos--input-container.sc-zonos-stripe-phone-input .zonos--floated-label.sc-zonos-stripe-phone-input label.sc-zonos-stripe-phone-input,.sc-zonos-stripe-phone-input-h .focused.sc-zonos-stripe-phone-input .zonos--input-container.sc-zonos-stripe-phone-input .zonos--floated-label.sc-zonos-stripe-phone-input label.sc-zonos-stripe-phone-input{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}.zonos--country-select.sc-zonos-stripe-phone-input{position:relative;height:100%}.zonos--country-select.sc-zonos-stripe-phone-input .zonos--country-select-content.sc-zonos-stripe-phone-input{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding-left:12px;height:100%;z-index:1}.zonos--country-select.sc-zonos-stripe-phone-input .zonos--country-select-selected.sc-zonos-stripe-phone-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}.zonos--country-select.sc-zonos-stripe-phone-input .zonos--select-chevron-wrapper.sc-zonos-stripe-phone-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding-left:4px}.zonos--country-select.sc-zonos-stripe-phone-input .zonos--select-chevron-wrapper.sc-zonos-stripe-phone-input .zonos--select-chevron.sc-zonos-stripe-phone-input{pointer-events:none;color:var(--zonos-elements-gray-800);padding-left:4px}.zonos--country-select.sc-zonos-stripe-phone-input .zonos--country-flag-wrapper.sc-zonos-stripe-phone-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.zonos--country-select.sc-zonos-stripe-phone-input .zonos--country-flag.sc-zonos-stripe-phone-input{border-radius:var(--zonos-elements-radius-4);width:20px;height:16px;position:relative;overflow:hidden;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium)}.zonos--country-select.sc-zonos-stripe-phone-input .zonos--country-code.sc-zonos-stripe-phone-input{font-size:var(--zonos--font-size);color:var(--zonos-elements-text-color)}';let Ad=0;const Nd=class{constructor(e){t(this,e),this.selectChange=o(this,"selectChange",7),this.inheritedAttributes={},this.selectId="zonos--select-"+ ++Ad,this.selectedValue="",this.isDisabled=!1,this.isError=!1,this.error="",this.selectPlaceholder="",this.options=[],this.autoComplete="",this.value="",this.required=!1,this.isClearable=!1,this.internalValue=this.selectedValue,this.internalOptions=this.options,this.handleClear=t=>{t.stopPropagation(),this.internalValue="",this.selectChange.emit(""),this.el.selectedValue="",this.el.dispatchEvent(new Event("change"))}}onOptionsChange(t){this.internalOptions=t}onSelectedValueChange(t){this.internalValue=t,this.selectChange.emit(t),this.value=t,this.handleNotFoundOption(t)}onValueChange(t){this.internalValue=t,this.handleNotFoundOption(t)}handleNotFoundOption(t){this.internalOptions.find((e=>e.value===t||e.label===t))||(this.internalValue="",this.selectChange.emit(""))}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},I(this.el)),E(this.el,["tabindex","title","data-form-type","dir"]))}render(){const t=this.overridePrimaryColor||b.appearance.colorPrimary,o=this.overrideSecondaryColor||b.appearance.colorSecondary,n=t&&g(t),i=b.appearance.fontSizeInputValue||16,r=this.internalValue||this.selectPlaceholder,a=this.isClearable&&this.internalValue&&!this.isDisabled;return e(d,{key:"61d5f0b2c7fafd2df4ea6beacc8500bad9b64da7",class:p(["zonos--select zonos--elements",n&&"dark",this.isError&&"has-error"]),"data-theme":n?"DARK":"LIGHT",style:Object.assign({"--zonos--border-radius":v(),"--zonos--font-family":m(),"--zonos--font-size":`${i}px`,"--zonos--primary-color":o},this.minWidth?{"--zonos--min-width":this.minWidth}:{})},e("div",{key:"63198cbb818342d8deecbe1e0c5d9978a51df064",class:p(["zonos--label-wrapper",this.isDisabled&&"disabled"])},e("select",Object.assign({key:"8bbe869f708d9f87f9dc6d66a8f573a795399e23"},this.inheritedAttributes,{autoComplete:this.autoComplete,class:p(["zonos--floated-select",!!this.selectLabel&&"has-label",r&&"has-content",this.isError&&"has-error"]),disabled:this.isDisabled,id:this.selectId,name:this.name,onChange:t=>{const e=t.target;this.selectChange.emit(e.value),this.selectedValue=e.value,this.el.dispatchEvent(new Event("change"))},required:this.required}),e("option",{key:"6ae19c6b12976cd32e6efc9771a000b29945ee71",disabled:!0,selected:!this.internalValue,value:""},this.selectPlaceholder||s("Select")),this.internalOptions.map((t=>e("option",{key:t.value,selected:this.internalValue===t.value||this.internalValue===t.label,value:t.value},t.label)))),e("div",{key:"a21b56d32839669a95c3d36f215f85bb94f6bb1a",class:"zonos--floated-label"},e("label",{key:"fb710c149659ece3d433f57d8d27562395bb2a52",htmlFor:this.selectId},this.selectLabel)),e("div",{key:"0f57b78a3fdafc0ff7bd1a5a2ead9e37be7ee915",class:"zonos--actions-wrapper"},a&&e("button",{key:"ffc562b96195b1990a26d4091971ddb2293b6ac7","aria-label":"Clear selection",class:"zonos--clear-button",onClick:this.handleClear,tabIndex:0,type:"button"},e("zonos-icon",{key:"c3eb42b95f57df3187772d1502e07a7052a72913",class:"zonos--clear-icon",content:'<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>',iconColor:"gray-1200"})),e("zonos-icon",{key:"7a6581602aa531d5d9bdea82c3f50952d901bad4","aria-label":"Expand collapsed section",class:"zonos--select-chevron",content:'<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>',iconColor:"gray-800"}))),this.error&&e("zonos-text",{key:"b1a3819c075d5e8f70020274145675c8d19b143a",textColor:"red-600"},this.error))}get el(){return n(this)}static get watchers(){return{options:["onOptionsChange"],selectedValue:["onSelectedValueChange"],value:["onValueChange"]}}};Nd.style=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8}:host(.dark){color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}:host{margin:1px;position:relative;min-width:var(--zonos--min-width, unset);}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:calc(var(--zonos-elements-size-xl) - 4px);width:100%;background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px}:host .zonos--floated-select{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 36px 0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos--background-color);border:var(--zonos--border);-ms-flex-order:2;order:2;font-weight:400;font-size:var(--zonos--font-size);color:var(--zonos--background-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}:host .zonos--floated-select.has-label{padding:24px 36px 2px 16px}:host .zonos--floated-select:focus{outline:none;border:var(--zonos--border)}:host .zonos--floated-select:focus~.zonos--floated-label::after{-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color))}:host .zonos--floated-select.has-error+.zonos--floated-label::after{-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41}:host .zonos--floated-select.has-content,:host .zonos--floated-select:focus{color:var(--zonos-elements-text-color)}:host .zonos--floated-select.has-content~.zonos--floated-label label,:host .zonos--floated-select:focus~.zonos--floated-label label{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-select:-webkit-autofill,:host .zonos--floated-select:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-select option{background-color:var(--zonos--background-color);color:inherit}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label label{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - 8px);z-index:1}:host .zonos--floated-label::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .zonos--actions-wrapper{position:absolute;right:8px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1;pointer-events:none;display:-ms-flexbox;display:flex}:host .zonos--select-chevron{cursor:pointer;color:var(--zonos-elements-gray-800);z-index:1}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host .disabled .zonos--select-chevron{opacity:0.5}.zonos--clear-button{background:none;border:none;pointer-events:auto;cursor:pointer}.zonos--clear-button:hover{-webkit-filter:brightness(0.8);filter:brightness(0.8)}:host(.dark) .zonos--label-wrapper{background:#30313d}';export{A as zonos_address_display,N as zonos_address_form,S as zonos_address_suggestions,j as zonos_address_update_dialog,M as zonos_checkbox,F as zonos_custom_address,P as zonos_dialog,Ed as zonos_stripe_phone_input,Nd as zonos_stripe_select}
|