@ozdao/prometheus-framework 0.2.31 → 0.2.33
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.css +1 -1
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +222 -218
- package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/modular.js +102 -91
- package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/utils.js +138 -115
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +185 -185
- package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/secp256k1.js +11 -8
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +29 -33
- package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_sha2.js +15 -15
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +38 -20
- package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/hmac.js +20 -20
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +20 -20
- package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/scrypt.js +41 -41
- package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha256.js +23 -29
- package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha3.js +44 -55
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +23 -41
- package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/utils.js +37 -33
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +20 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +3974 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1202 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +97 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +37 -0
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +22 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +1 -4
- package/dist/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
- package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
- package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +4 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.es.js +340 -244
- package/dist/node_modules/web3/lib/esm/abi.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/abi.js +5 -10
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +27 -24
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +53 -57
- package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/utils.js +3 -4
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +22 -19
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +72 -57
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +53 -61
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +8 -8
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +42 -42
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +29 -29
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +51 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +132 -47
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +21 -15
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +15 -13
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +61 -53
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +36 -9
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +107 -103
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +135 -133
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +47 -31
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +18 -17
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +113 -111
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +27 -27
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +28 -40
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +10 -10
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +78 -75
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +8 -8
- package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/hash.js +44 -43
- package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/index.js +64 -62
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +78 -40
- package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/uint8array.js +16 -11
- package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/validation.js +45 -33
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +127 -104
- package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/address.js +12 -11
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +17 -13
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +7 -9
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +8 -8
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -3
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +52 -52
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2501 -2482
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +2 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +75 -61
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +33 -33
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +4 -2
- package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.cjs +1 -0
- package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +701 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +14 -7
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +2 -80
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +80 -2
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +62 -0
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +15 -15
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +51 -40
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +21 -21
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -7
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +53 -36
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +117 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +48 -40
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -2
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +20 -10
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +2 -98
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +2 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +25 -27
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +55 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +55 -40
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -0
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -73
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +73 -2
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +3 -3
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +94 -33
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +69 -61
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +26 -27
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +7 -7
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +90 -47
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +166 -133
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +86 -68
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +105 -41
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +51 -42
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +108 -94
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +40 -29
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +10 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +27 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +21 -21
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +31 -28
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +48 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +33 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.js +13 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +106 -85
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +31 -34
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +13 -6
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +50 -22
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +38 -34
- package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.js +27 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.js +33 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.js +21 -20
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +48 -35
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +63 -0
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +6 -8
- package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.js +5 -7
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +16 -22
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +61 -88
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +104 -193
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +29 -31
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +129 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +45 -36
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +27 -26
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +85 -79
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +29 -23
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +55 -169
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +48 -59
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +173 -94
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +27 -20
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +43 -33
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +67 -63
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +28 -30
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -6
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +69 -20
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +38 -38
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +39 -44
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +73 -44
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +25 -54
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +39 -39
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +18 -11
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +140 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +27 -23
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +24 -25
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +246 -102
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +28 -24
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +23 -24
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +56 -7
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +82 -65
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +71 -54
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +60 -86
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +29 -37
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +32 -29
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +43 -107
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +46 -40
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +89 -94
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +80 -71
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +29 -0
- package/dist/prometheus-framework.cjs.js +21 -21
- package/dist/prometheus-framework.es.js +1037 -1023
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Countdown/Countdown.vue +75 -0
- package/src/components/EditImages/EditImages.vue +10 -2
- package/src/components/Upload/Upload.vue +32 -6
- package/src/components/UploadImage/UploadImage.vue +12 -8
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +4 -2
- package/src/modules/events/components/pages/EditEvent.vue +288 -1
- package/src/modules/events/components/pages/Event.vue +125 -46
- package/src/modules/events/components/sections/HeroEvent.vue +161 -0
- package/src/modules/events/components/sections/SectionLineup.vue +42 -0
- package/src/modules/events/components/sections/SectionMainGuest.vue +104 -0
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +119 -0
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +47 -0
- package/src/modules/events/controllers/events.controller.js +1 -0
- package/src/modules/events/controllers/utils/queryProcessor.js +2 -0
- package/src/modules/events/models/event.model.js +28 -0
- package/src/modules/events/store/events.js +4 -0
- package/src/modules/files/controllers/files.controller.js +3 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +115 -100
- package/src/modules/files/routes/files.routes.js +3 -4
- package/src/modules/globals/globals.server.js +0 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +5 -5
- package/src/modules/orders/components/blocks/StatusHistory.vue +84 -0
- package/src/modules/orders/components/pages/Order.vue +11 -54
- package/src/modules/orders/components/pages/Orders.vue +0 -4
- package/src/modules/orders/controllers/orders.controller.js +17 -9
- package/src/modules/orders/models/order.model.js +19 -0
- package/src/modules/orders/routes/orders.routes.js +4 -1
- package/src/modules/products/components/sections/FilterProducts.vue +9 -10
- package/src/modules/wallet/components/pages/Wallet.vue +2 -3
@@ -0,0 +1,3974 @@
|
|
1
|
+
import { defineComponent as Ze } from "vue";
|
2
|
+
const Xe = {
|
3
|
+
beforeMount(t, e, d) {
|
4
|
+
if (typeof e.value != "function") {
|
5
|
+
const n = d.context.name;
|
6
|
+
let r = `[Vue-click-outside:] provided expression ${e.expression}
|
7
|
+
is not a function, but has to be`;
|
8
|
+
n && (r += `Found in component ${n}`), console.warn(r);
|
9
|
+
}
|
10
|
+
t.clickOutsideEvent = function(n) {
|
11
|
+
t === n.target || t.contains(n.target) || e.value(n, t);
|
12
|
+
}, document.body.addEventListener("click", t.clickOutsideEvent);
|
13
|
+
},
|
14
|
+
unmounted(t) {
|
15
|
+
document.body.removeEventListener("click", t.clickOutsideEvent);
|
16
|
+
}
|
17
|
+
}, Qe = { 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(?: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])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|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]))|(?: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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-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]|22"], "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", "[24-689]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]]]], BL: ["590", "00", "590\\d{6}|(?: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]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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)?", "(?:[2-467]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|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-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\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-8]\\d|90)\\d{8}|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|73)|90[25])[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(?:00|2[125-9]|33|44|66|77|88)|622)[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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-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]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\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{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "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], [["(\\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[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]", "(?:10|2[0-57-9])(?:10|9[56])", "10(?:10|9[56])|2[0-57-9](?:100|9[56])"], "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])", "(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}", [10, 11], [["(\\d{3})(\\d{7})", "$1 $2", ["6"], "($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", "[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}", [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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-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], [["(\\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{5})(\\d{6})", "$1 $2", ["15[0568]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "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)(\\d{4,9})", "$1 $2", ["[2568][1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[12]00|[368]|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[1245]|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "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[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?: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-2]))|(?: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{6}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[56]|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{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "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]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,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", ["[67]"], "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-5]"], "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]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\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})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11], [["(\\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]"]], ["(\\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}"], ["3[1-9]\\d{8}|3[2-9]\\d{7}", [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]], 0, 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[7-9]))\\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", ["60|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", ["30[013-9]"], "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", "(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[4-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23578]"], "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]"], "(8-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "8 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(8-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(8-$1)", 1]], "8", 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-489]|3[5-9]|9)|8(?:0[89]|92)", "5(?:2(?:[2-49]|8[235-9])|3[5-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-2]|5[01]|8[0-3]))\\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{6}|(?: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]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "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{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "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]", "1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}", [10, 11], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"], 0, 1], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 $3 $4", ["1(?:33|5[56]|81)"], 0, 1], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 $3 $4", ["1"], 0, 1]], "01", 0, "0(?:[12]|4[45])|1", 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[047]"]]]], 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", "(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-7]|8[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "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", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], 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|80\\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-6])"], "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[16]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "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[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[2378]\\d|62|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]", "(?:[1-6]|[7-9]\\d\\d)\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "800\\d{4}|(?:[249]\\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], [["(\\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-8]|[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]|77|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\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-8]"]]]], 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}|[89]00\\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|[69]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2679]"]]], 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[1-5]"]], ["(\\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{7}", [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", ["6"], "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, [["(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|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]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|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}"]]], 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", "810", "(?:20|33|[5-79]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], 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], 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)\\d{4}|8\\d{5}(?:\\d{3})?", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[478]"]], ["(\\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", "[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9], [["(\\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", ["[23]"], "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", "(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|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])\\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|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "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}|[35-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]], 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, 0, 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}"]]] } };
|
18
|
+
function td(t, e) {
|
19
|
+
var d = Array.prototype.slice.call(e);
|
20
|
+
return d.push(Qe), t.apply(this, d);
|
21
|
+
}
|
22
|
+
function $t(t) {
|
23
|
+
"@babel/helpers - typeof";
|
24
|
+
return $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
25
|
+
return typeof e;
|
26
|
+
} : function(e) {
|
27
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
28
|
+
}, $t(t);
|
29
|
+
}
|
30
|
+
function Dt(t, e) {
|
31
|
+
for (var d = 0; d < e.length; d++) {
|
32
|
+
var n = e[d];
|
33
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
function ed(t, e, d) {
|
37
|
+
return e && Dt(t.prototype, e), d && Dt(t, d), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
38
|
+
}
|
39
|
+
function dd(t, e) {
|
40
|
+
if (!(t instanceof e))
|
41
|
+
throw new TypeError("Cannot call a class as a function");
|
42
|
+
}
|
43
|
+
function nd(t, e) {
|
44
|
+
if (typeof e != "function" && e !== null)
|
45
|
+
throw new TypeError("Super expression must either be null or a function");
|
46
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _(t, e);
|
47
|
+
}
|
48
|
+
function rd(t) {
|
49
|
+
var e = Se();
|
50
|
+
return function() {
|
51
|
+
var d = L(t), n;
|
52
|
+
if (e) {
|
53
|
+
var r = L(this).constructor;
|
54
|
+
n = Reflect.construct(d, arguments, r);
|
55
|
+
} else
|
56
|
+
n = d.apply(this, arguments);
|
57
|
+
return od(this, n);
|
58
|
+
};
|
59
|
+
}
|
60
|
+
function od(t, e) {
|
61
|
+
if (e && ($t(e) === "object" || typeof e == "function"))
|
62
|
+
return e;
|
63
|
+
if (e !== void 0)
|
64
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
65
|
+
return we(t);
|
66
|
+
}
|
67
|
+
function we(t) {
|
68
|
+
if (t === void 0)
|
69
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
70
|
+
return t;
|
71
|
+
}
|
72
|
+
function ut(t) {
|
73
|
+
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
74
|
+
return ut = function(d) {
|
75
|
+
if (d === null || !id(d))
|
76
|
+
return d;
|
77
|
+
if (typeof d != "function")
|
78
|
+
throw new TypeError("Super expression must either be null or a function");
|
79
|
+
if (typeof e < "u") {
|
80
|
+
if (e.has(d))
|
81
|
+
return e.get(d);
|
82
|
+
e.set(d, n);
|
83
|
+
}
|
84
|
+
function n() {
|
85
|
+
return B(d, arguments, L(this).constructor);
|
86
|
+
}
|
87
|
+
return n.prototype = Object.create(d.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), _(n, d);
|
88
|
+
}, ut(t);
|
89
|
+
}
|
90
|
+
function B(t, e, d) {
|
91
|
+
return Se() ? B = Reflect.construct : B = function(n, r, o) {
|
92
|
+
var i = [null];
|
93
|
+
i.push.apply(i, r);
|
94
|
+
var s = Function.bind.apply(n, i), u = new s();
|
95
|
+
return o && _(u, o.prototype), u;
|
96
|
+
}, B.apply(null, arguments);
|
97
|
+
}
|
98
|
+
function Se() {
|
99
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
100
|
+
return !1;
|
101
|
+
if (typeof Proxy == "function")
|
102
|
+
return !0;
|
103
|
+
try {
|
104
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
105
|
+
})), !0;
|
106
|
+
} catch {
|
107
|
+
return !1;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
function id(t) {
|
111
|
+
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
112
|
+
}
|
113
|
+
function _(t, e) {
|
114
|
+
return _ = Object.setPrototypeOf || function(d, n) {
|
115
|
+
return d.__proto__ = n, d;
|
116
|
+
}, _(t, e);
|
117
|
+
}
|
118
|
+
function L(t) {
|
119
|
+
return L = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
120
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
121
|
+
}, L(t);
|
122
|
+
}
|
123
|
+
var P = /* @__PURE__ */ function(t) {
|
124
|
+
nd(d, t);
|
125
|
+
var e = rd(d);
|
126
|
+
function d(n) {
|
127
|
+
var r;
|
128
|
+
return dd(this, d), r = e.call(this, n), Object.setPrototypeOf(we(r), d.prototype), r.name = r.constructor.name, r;
|
129
|
+
}
|
130
|
+
return ed(d);
|
131
|
+
}(/* @__PURE__ */ ut(Error)), vt = 2, ad = 17, sd = 3, w = "0-90-9٠-٩۰-۹", $d = "-‐-―−ー-", ud = "//", ld = "..", cd = " ", fd = "()()[]\\[\\]", hd = "~⁓∼~", K = "".concat($d).concat(ud).concat(ld).concat(cd).concat(fd).concat(hd), Ot = "++";
|
132
|
+
function _t(t, e) {
|
133
|
+
t = t.split("-"), e = e.split("-");
|
134
|
+
for (var d = t[0].split("."), n = e[0].split("."), r = 0; r < 3; r++) {
|
135
|
+
var o = Number(d[r]), i = Number(n[r]);
|
136
|
+
if (o > i)
|
137
|
+
return 1;
|
138
|
+
if (i > o)
|
139
|
+
return -1;
|
140
|
+
if (!isNaN(o) && isNaN(i))
|
141
|
+
return 1;
|
142
|
+
if (isNaN(o) && !isNaN(i))
|
143
|
+
return -1;
|
144
|
+
}
|
145
|
+
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;
|
146
|
+
}
|
147
|
+
var pd = {}.constructor;
|
148
|
+
function U(t) {
|
149
|
+
return t != null && t.constructor === pd;
|
150
|
+
}
|
151
|
+
function lt(t) {
|
152
|
+
"@babel/helpers - typeof";
|
153
|
+
return lt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
154
|
+
return typeof e;
|
155
|
+
} : function(e) {
|
156
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
157
|
+
}, lt(t);
|
158
|
+
}
|
159
|
+
function q(t, e) {
|
160
|
+
if (!(t instanceof e))
|
161
|
+
throw new TypeError("Cannot call a class as a function");
|
162
|
+
}
|
163
|
+
function Lt(t, e) {
|
164
|
+
for (var d = 0; d < e.length; d++) {
|
165
|
+
var n = e[d];
|
166
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
function J(t, e, d) {
|
170
|
+
return e && Lt(t.prototype, e), d && Lt(t, d), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
171
|
+
}
|
172
|
+
var md = "1.2.0", yd = "1.7.35", Ft = " ext. ", gd = /^\d+$/, O = /* @__PURE__ */ function() {
|
173
|
+
function t(e) {
|
174
|
+
q(this, t), Cd(e), this.metadata = e, Ee.call(this, e);
|
175
|
+
}
|
176
|
+
return J(t, [{
|
177
|
+
key: "getCountries",
|
178
|
+
value: function() {
|
179
|
+
return Object.keys(this.metadata.countries).filter(function(e) {
|
180
|
+
return e !== "001";
|
181
|
+
});
|
182
|
+
}
|
183
|
+
}, {
|
184
|
+
key: "getCountryMetadata",
|
185
|
+
value: function(e) {
|
186
|
+
return this.metadata.countries[e];
|
187
|
+
}
|
188
|
+
}, {
|
189
|
+
key: "nonGeographic",
|
190
|
+
value: function() {
|
191
|
+
if (!(this.v1 || this.v2 || this.v3))
|
192
|
+
return this.metadata.nonGeographic || this.metadata.nonGeographical;
|
193
|
+
}
|
194
|
+
}, {
|
195
|
+
key: "hasCountry",
|
196
|
+
value: function(e) {
|
197
|
+
return this.getCountryMetadata(e) !== void 0;
|
198
|
+
}
|
199
|
+
}, {
|
200
|
+
key: "hasCallingCode",
|
201
|
+
value: function(e) {
|
202
|
+
if (this.getCountryCodesForCallingCode(e))
|
203
|
+
return !0;
|
204
|
+
if (this.nonGeographic()) {
|
205
|
+
if (this.nonGeographic()[e])
|
206
|
+
return !0;
|
207
|
+
} else {
|
208
|
+
var d = this.countryCallingCodes()[e];
|
209
|
+
if (d && d.length === 1 && d[0] === "001")
|
210
|
+
return !0;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}, {
|
214
|
+
key: "isNonGeographicCallingCode",
|
215
|
+
value: function(e) {
|
216
|
+
return this.nonGeographic() ? !!this.nonGeographic()[e] : !this.getCountryCodesForCallingCode(e);
|
217
|
+
}
|
218
|
+
// Deprecated.
|
219
|
+
}, {
|
220
|
+
key: "country",
|
221
|
+
value: function(e) {
|
222
|
+
return this.selectNumberingPlan(e);
|
223
|
+
}
|
224
|
+
}, {
|
225
|
+
key: "selectNumberingPlan",
|
226
|
+
value: function(e, d) {
|
227
|
+
if (e && gd.test(e) && (d = e, e = null), e && e !== "001") {
|
228
|
+
if (!this.hasCountry(e))
|
229
|
+
throw new Error("Unknown country: ".concat(e));
|
230
|
+
this.numberingPlan = new Mt(this.getCountryMetadata(e), this);
|
231
|
+
} else if (d) {
|
232
|
+
if (!this.hasCallingCode(d))
|
233
|
+
throw new Error("Unknown calling code: ".concat(d));
|
234
|
+
this.numberingPlan = new Mt(this.getNumberingPlanMetadata(d), this);
|
235
|
+
} else
|
236
|
+
this.numberingPlan = void 0;
|
237
|
+
return this;
|
238
|
+
}
|
239
|
+
}, {
|
240
|
+
key: "getCountryCodesForCallingCode",
|
241
|
+
value: function(e) {
|
242
|
+
var d = this.countryCallingCodes()[e];
|
243
|
+
if (d)
|
244
|
+
return d.length === 1 && d[0].length === 3 ? void 0 : d;
|
245
|
+
}
|
246
|
+
}, {
|
247
|
+
key: "getCountryCodeForCallingCode",
|
248
|
+
value: function(e) {
|
249
|
+
var d = this.getCountryCodesForCallingCode(e);
|
250
|
+
if (d)
|
251
|
+
return d[0];
|
252
|
+
}
|
253
|
+
}, {
|
254
|
+
key: "getNumberingPlanMetadata",
|
255
|
+
value: function(e) {
|
256
|
+
var d = this.getCountryCodeForCallingCode(e);
|
257
|
+
if (d)
|
258
|
+
return this.getCountryMetadata(d);
|
259
|
+
if (this.nonGeographic()) {
|
260
|
+
var n = this.nonGeographic()[e];
|
261
|
+
if (n)
|
262
|
+
return n;
|
263
|
+
} else {
|
264
|
+
var r = this.countryCallingCodes()[e];
|
265
|
+
if (r && r.length === 1 && r[0] === "001")
|
266
|
+
return this.metadata.countries["001"];
|
267
|
+
}
|
268
|
+
}
|
269
|
+
// Deprecated.
|
270
|
+
}, {
|
271
|
+
key: "countryCallingCode",
|
272
|
+
value: function() {
|
273
|
+
return this.numberingPlan.callingCode();
|
274
|
+
}
|
275
|
+
// Deprecated.
|
276
|
+
}, {
|
277
|
+
key: "IDDPrefix",
|
278
|
+
value: function() {
|
279
|
+
return this.numberingPlan.IDDPrefix();
|
280
|
+
}
|
281
|
+
// Deprecated.
|
282
|
+
}, {
|
283
|
+
key: "defaultIDDPrefix",
|
284
|
+
value: function() {
|
285
|
+
return this.numberingPlan.defaultIDDPrefix();
|
286
|
+
}
|
287
|
+
// Deprecated.
|
288
|
+
}, {
|
289
|
+
key: "nationalNumberPattern",
|
290
|
+
value: function() {
|
291
|
+
return this.numberingPlan.nationalNumberPattern();
|
292
|
+
}
|
293
|
+
// Deprecated.
|
294
|
+
}, {
|
295
|
+
key: "possibleLengths",
|
296
|
+
value: function() {
|
297
|
+
return this.numberingPlan.possibleLengths();
|
298
|
+
}
|
299
|
+
// Deprecated.
|
300
|
+
}, {
|
301
|
+
key: "formats",
|
302
|
+
value: function() {
|
303
|
+
return this.numberingPlan.formats();
|
304
|
+
}
|
305
|
+
// Deprecated.
|
306
|
+
}, {
|
307
|
+
key: "nationalPrefixForParsing",
|
308
|
+
value: function() {
|
309
|
+
return this.numberingPlan.nationalPrefixForParsing();
|
310
|
+
}
|
311
|
+
// Deprecated.
|
312
|
+
}, {
|
313
|
+
key: "nationalPrefixTransformRule",
|
314
|
+
value: function() {
|
315
|
+
return this.numberingPlan.nationalPrefixTransformRule();
|
316
|
+
}
|
317
|
+
// Deprecated.
|
318
|
+
}, {
|
319
|
+
key: "leadingDigits",
|
320
|
+
value: function() {
|
321
|
+
return this.numberingPlan.leadingDigits();
|
322
|
+
}
|
323
|
+
// Deprecated.
|
324
|
+
}, {
|
325
|
+
key: "hasTypes",
|
326
|
+
value: function() {
|
327
|
+
return this.numberingPlan.hasTypes();
|
328
|
+
}
|
329
|
+
// Deprecated.
|
330
|
+
}, {
|
331
|
+
key: "type",
|
332
|
+
value: function(e) {
|
333
|
+
return this.numberingPlan.type(e);
|
334
|
+
}
|
335
|
+
// Deprecated.
|
336
|
+
}, {
|
337
|
+
key: "ext",
|
338
|
+
value: function() {
|
339
|
+
return this.numberingPlan.ext();
|
340
|
+
}
|
341
|
+
}, {
|
342
|
+
key: "countryCallingCodes",
|
343
|
+
value: function() {
|
344
|
+
return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
|
345
|
+
}
|
346
|
+
// Deprecated.
|
347
|
+
}, {
|
348
|
+
key: "chooseCountryByCountryCallingCode",
|
349
|
+
value: function(e) {
|
350
|
+
return this.selectNumberingPlan(e);
|
351
|
+
}
|
352
|
+
}, {
|
353
|
+
key: "hasSelectedNumberingPlan",
|
354
|
+
value: function() {
|
355
|
+
return this.numberingPlan !== void 0;
|
356
|
+
}
|
357
|
+
}]), t;
|
358
|
+
}(), Mt = /* @__PURE__ */ function() {
|
359
|
+
function t(e, d) {
|
360
|
+
q(this, t), this.globalMetadataObject = d, this.metadata = e, Ee.call(this, d.metadata);
|
361
|
+
}
|
362
|
+
return J(t, [{
|
363
|
+
key: "callingCode",
|
364
|
+
value: function() {
|
365
|
+
return this.metadata[0];
|
366
|
+
}
|
367
|
+
// Formatting information for regions which share
|
368
|
+
// a country calling code is contained by only one region
|
369
|
+
// for performance reasons. For example, for NANPA region
|
370
|
+
// ("North American Numbering Plan Administration",
|
371
|
+
// which includes USA, Canada, Cayman Islands, Bahamas, etc)
|
372
|
+
// it will be contained in the metadata for `US`.
|
373
|
+
}, {
|
374
|
+
key: "getDefaultCountryMetadataForRegion",
|
375
|
+
value: function() {
|
376
|
+
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
377
|
+
}
|
378
|
+
// Is always present.
|
379
|
+
}, {
|
380
|
+
key: "IDDPrefix",
|
381
|
+
value: function() {
|
382
|
+
if (!(this.v1 || this.v2))
|
383
|
+
return this.metadata[1];
|
384
|
+
}
|
385
|
+
// Is only present when a country supports multiple IDD prefixes.
|
386
|
+
}, {
|
387
|
+
key: "defaultIDDPrefix",
|
388
|
+
value: function() {
|
389
|
+
if (!(this.v1 || this.v2))
|
390
|
+
return this.metadata[12];
|
391
|
+
}
|
392
|
+
}, {
|
393
|
+
key: "nationalNumberPattern",
|
394
|
+
value: function() {
|
395
|
+
return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
|
396
|
+
}
|
397
|
+
// "possible length" data is always present in Google's metadata.
|
398
|
+
}, {
|
399
|
+
key: "possibleLengths",
|
400
|
+
value: function() {
|
401
|
+
if (!this.v1)
|
402
|
+
return this.metadata[this.v2 ? 2 : 3];
|
403
|
+
}
|
404
|
+
}, {
|
405
|
+
key: "_getFormats",
|
406
|
+
value: function(e) {
|
407
|
+
return e[this.v1 ? 2 : this.v2 ? 3 : 4];
|
408
|
+
}
|
409
|
+
// For countries of the same region (e.g. NANPA)
|
410
|
+
// formats are all stored in the "main" country for that region.
|
411
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
412
|
+
}, {
|
413
|
+
key: "formats",
|
414
|
+
value: function() {
|
415
|
+
var e = this, d = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
416
|
+
return d.map(function(n) {
|
417
|
+
return new bd(n, e);
|
418
|
+
});
|
419
|
+
}
|
420
|
+
}, {
|
421
|
+
key: "nationalPrefix",
|
422
|
+
value: function() {
|
423
|
+
return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
|
424
|
+
}
|
425
|
+
}, {
|
426
|
+
key: "_getNationalPrefixFormattingRule",
|
427
|
+
value: function(e) {
|
428
|
+
return e[this.v1 ? 4 : this.v2 ? 5 : 6];
|
429
|
+
}
|
430
|
+
// For countries of the same region (e.g. NANPA)
|
431
|
+
// national prefix formatting rule is stored in the "main" country for that region.
|
432
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
433
|
+
}, {
|
434
|
+
key: "nationalPrefixFormattingRule",
|
435
|
+
value: function() {
|
436
|
+
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
|
437
|
+
}
|
438
|
+
}, {
|
439
|
+
key: "_nationalPrefixForParsing",
|
440
|
+
value: function() {
|
441
|
+
return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
|
442
|
+
}
|
443
|
+
}, {
|
444
|
+
key: "nationalPrefixForParsing",
|
445
|
+
value: function() {
|
446
|
+
return this._nationalPrefixForParsing() || this.nationalPrefix();
|
447
|
+
}
|
448
|
+
}, {
|
449
|
+
key: "nationalPrefixTransformRule",
|
450
|
+
value: function() {
|
451
|
+
return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
|
452
|
+
}
|
453
|
+
}, {
|
454
|
+
key: "_getNationalPrefixIsOptionalWhenFormatting",
|
455
|
+
value: function() {
|
456
|
+
return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
|
457
|
+
}
|
458
|
+
// For countries of the same region (e.g. NANPA)
|
459
|
+
// "national prefix is optional when formatting" flag is
|
460
|
+
// stored in the "main" country for that region.
|
461
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
462
|
+
}, {
|
463
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
464
|
+
value: function() {
|
465
|
+
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
|
466
|
+
}
|
467
|
+
}, {
|
468
|
+
key: "leadingDigits",
|
469
|
+
value: function() {
|
470
|
+
return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
|
471
|
+
}
|
472
|
+
}, {
|
473
|
+
key: "types",
|
474
|
+
value: function() {
|
475
|
+
return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
|
476
|
+
}
|
477
|
+
}, {
|
478
|
+
key: "hasTypes",
|
479
|
+
value: function() {
|
480
|
+
return this.types() && this.types().length === 0 ? !1 : !!this.types();
|
481
|
+
}
|
482
|
+
}, {
|
483
|
+
key: "type",
|
484
|
+
value: function(e) {
|
485
|
+
if (this.hasTypes() && kt(this.types(), e))
|
486
|
+
return new Od(kt(this.types(), e), this);
|
487
|
+
}
|
488
|
+
}, {
|
489
|
+
key: "ext",
|
490
|
+
value: function() {
|
491
|
+
return this.v1 || this.v2 ? Ft : this.metadata[13] || Ft;
|
492
|
+
}
|
493
|
+
}]), t;
|
494
|
+
}(), bd = /* @__PURE__ */ function() {
|
495
|
+
function t(e, d) {
|
496
|
+
q(this, t), this._format = e, this.metadata = d;
|
497
|
+
}
|
498
|
+
return J(t, [{
|
499
|
+
key: "pattern",
|
500
|
+
value: function() {
|
501
|
+
return this._format[0];
|
502
|
+
}
|
503
|
+
}, {
|
504
|
+
key: "format",
|
505
|
+
value: function() {
|
506
|
+
return this._format[1];
|
507
|
+
}
|
508
|
+
}, {
|
509
|
+
key: "leadingDigitsPatterns",
|
510
|
+
value: function() {
|
511
|
+
return this._format[2] || [];
|
512
|
+
}
|
513
|
+
}, {
|
514
|
+
key: "nationalPrefixFormattingRule",
|
515
|
+
value: function() {
|
516
|
+
return this._format[3] || this.metadata.nationalPrefixFormattingRule();
|
517
|
+
}
|
518
|
+
}, {
|
519
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
520
|
+
value: function() {
|
521
|
+
return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
522
|
+
}
|
523
|
+
}, {
|
524
|
+
key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
|
525
|
+
value: function() {
|
526
|
+
return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
527
|
+
}
|
528
|
+
// Checks whether national prefix formatting rule contains national prefix.
|
529
|
+
}, {
|
530
|
+
key: "usesNationalPrefix",
|
531
|
+
value: function() {
|
532
|
+
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
533
|
+
!vd.test(this.nationalPrefixFormattingRule()));
|
534
|
+
}
|
535
|
+
}, {
|
536
|
+
key: "internationalFormat",
|
537
|
+
value: function() {
|
538
|
+
return this._format[5] || this.format();
|
539
|
+
}
|
540
|
+
}]), t;
|
541
|
+
}(), vd = /^\(?\$1\)?$/, Od = /* @__PURE__ */ function() {
|
542
|
+
function t(e, d) {
|
543
|
+
q(this, t), this.type = e, this.metadata = d;
|
544
|
+
}
|
545
|
+
return J(t, [{
|
546
|
+
key: "pattern",
|
547
|
+
value: function() {
|
548
|
+
return this.metadata.v1 ? this.type : this.type[0];
|
549
|
+
}
|
550
|
+
}, {
|
551
|
+
key: "possibleLengths",
|
552
|
+
value: function() {
|
553
|
+
if (!this.metadata.v1)
|
554
|
+
return this.type[1] || this.metadata.possibleLengths();
|
555
|
+
}
|
556
|
+
}]), t;
|
557
|
+
}();
|
558
|
+
function kt(t, e) {
|
559
|
+
switch (e) {
|
560
|
+
case "FIXED_LINE":
|
561
|
+
return t[0];
|
562
|
+
case "MOBILE":
|
563
|
+
return t[1];
|
564
|
+
case "TOLL_FREE":
|
565
|
+
return t[2];
|
566
|
+
case "PREMIUM_RATE":
|
567
|
+
return t[3];
|
568
|
+
case "PERSONAL_NUMBER":
|
569
|
+
return t[4];
|
570
|
+
case "VOICEMAIL":
|
571
|
+
return t[5];
|
572
|
+
case "UAN":
|
573
|
+
return t[6];
|
574
|
+
case "PAGER":
|
575
|
+
return t[7];
|
576
|
+
case "VOIP":
|
577
|
+
return t[8];
|
578
|
+
case "SHARED_COST":
|
579
|
+
return t[9];
|
580
|
+
}
|
581
|
+
}
|
582
|
+
function Cd(t) {
|
583
|
+
if (!t)
|
584
|
+
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
585
|
+
if (!U(t) || !U(t.countries))
|
586
|
+
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 " + wd(t) + ": " + t, "."));
|
587
|
+
}
|
588
|
+
var wd = function(t) {
|
589
|
+
return lt(t);
|
590
|
+
};
|
591
|
+
function Ct(t, e) {
|
592
|
+
if (e = new O(e), e.hasCountry(t))
|
593
|
+
return e.country(t).countryCallingCode();
|
594
|
+
throw new Error("Unknown country: ".concat(t));
|
595
|
+
}
|
596
|
+
function Sd(t, e) {
|
597
|
+
return e.countries.hasOwnProperty(t);
|
598
|
+
}
|
599
|
+
function Ee(t) {
|
600
|
+
var e = t.version;
|
601
|
+
typeof e == "number" ? (this.v1 = e === 1, this.v2 = e === 2, this.v3 = e === 3, this.v4 = e === 4) : e ? _t(e, md) === -1 ? this.v2 = !0 : _t(e, yd) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
602
|
+
}
|
603
|
+
var Ed = ";ext=", I = function(t) {
|
604
|
+
return "([".concat(w, "]{1,").concat(t, "})");
|
605
|
+
};
|
606
|
+
function Pe(t) {
|
607
|
+
var e = "20", d = "15", n = "9", r = "6", o = "[ \\t,]*", i = "[:\\..]?[ \\t,-]*", s = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", $ = "[- ]+", f = "[ \\t]*", m = "(?:,{2}|;)", h = Ed + I(e), c = o + u + i + I(e) + s, y = o + l + i + I(n) + s, b = $ + I(r) + "#", x = f + m + i + I(d) + s, et = f + "(?:,)+" + i + I(n) + s;
|
608
|
+
return h + "|" + c + "|" + y + "|" + b + "|" + x + "|" + et;
|
609
|
+
}
|
610
|
+
var Pd = "[" + w + "]{" + vt + "}", Nd = "[" + Ot + "]{0,1}(?:[" + K + "]*[" + w + "]){3,}[" + K + w + "]*", Td = new RegExp("^[" + Ot + "]{0,1}(?:[" + K + "]*[" + w + "]){1,2}$", "i"), Ad = Nd + // Phone number extensions
|
611
|
+
"(?:" + Pe() + ")?", Id = new RegExp(
|
612
|
+
// Either a short two-digit-only phone number
|
613
|
+
"^" + Pd + "$|^" + Ad + "$",
|
614
|
+
"i"
|
615
|
+
);
|
616
|
+
function Rd(t) {
|
617
|
+
return t.length >= vt && Id.test(t);
|
618
|
+
}
|
619
|
+
function jd(t) {
|
620
|
+
return Td.test(t);
|
621
|
+
}
|
622
|
+
var Bt = new RegExp("(?:" + Pe() + ")$", "i");
|
623
|
+
function xd(t) {
|
624
|
+
var e = t.search(Bt);
|
625
|
+
if (e < 0)
|
626
|
+
return {};
|
627
|
+
for (var d = t.slice(0, e), n = t.match(Bt), r = 1; r < n.length; ) {
|
628
|
+
if (n[r])
|
629
|
+
return {
|
630
|
+
number: d,
|
631
|
+
ext: n[r]
|
632
|
+
};
|
633
|
+
r++;
|
634
|
+
}
|
635
|
+
}
|
636
|
+
var Dd = {
|
637
|
+
0: "0",
|
638
|
+
1: "1",
|
639
|
+
2: "2",
|
640
|
+
3: "3",
|
641
|
+
4: "4",
|
642
|
+
5: "5",
|
643
|
+
6: "6",
|
644
|
+
7: "7",
|
645
|
+
8: "8",
|
646
|
+
9: "9",
|
647
|
+
"0": "0",
|
648
|
+
// Fullwidth digit 0
|
649
|
+
"1": "1",
|
650
|
+
// Fullwidth digit 1
|
651
|
+
"2": "2",
|
652
|
+
// Fullwidth digit 2
|
653
|
+
"3": "3",
|
654
|
+
// Fullwidth digit 3
|
655
|
+
"4": "4",
|
656
|
+
// Fullwidth digit 4
|
657
|
+
"5": "5",
|
658
|
+
// Fullwidth digit 5
|
659
|
+
"6": "6",
|
660
|
+
// Fullwidth digit 6
|
661
|
+
"7": "7",
|
662
|
+
// Fullwidth digit 7
|
663
|
+
"8": "8",
|
664
|
+
// Fullwidth digit 8
|
665
|
+
"9": "9",
|
666
|
+
// Fullwidth digit 9
|
667
|
+
"٠": "0",
|
668
|
+
// Arabic-indic digit 0
|
669
|
+
"١": "1",
|
670
|
+
// Arabic-indic digit 1
|
671
|
+
"٢": "2",
|
672
|
+
// Arabic-indic digit 2
|
673
|
+
"٣": "3",
|
674
|
+
// Arabic-indic digit 3
|
675
|
+
"٤": "4",
|
676
|
+
// Arabic-indic digit 4
|
677
|
+
"٥": "5",
|
678
|
+
// Arabic-indic digit 5
|
679
|
+
"٦": "6",
|
680
|
+
// Arabic-indic digit 6
|
681
|
+
"٧": "7",
|
682
|
+
// Arabic-indic digit 7
|
683
|
+
"٨": "8",
|
684
|
+
// Arabic-indic digit 8
|
685
|
+
"٩": "9",
|
686
|
+
// Arabic-indic digit 9
|
687
|
+
"۰": "0",
|
688
|
+
// Eastern-Arabic digit 0
|
689
|
+
"۱": "1",
|
690
|
+
// Eastern-Arabic digit 1
|
691
|
+
"۲": "2",
|
692
|
+
// Eastern-Arabic digit 2
|
693
|
+
"۳": "3",
|
694
|
+
// Eastern-Arabic digit 3
|
695
|
+
"۴": "4",
|
696
|
+
// Eastern-Arabic digit 4
|
697
|
+
"۵": "5",
|
698
|
+
// Eastern-Arabic digit 5
|
699
|
+
"۶": "6",
|
700
|
+
// Eastern-Arabic digit 6
|
701
|
+
"۷": "7",
|
702
|
+
// Eastern-Arabic digit 7
|
703
|
+
"۸": "8",
|
704
|
+
// Eastern-Arabic digit 8
|
705
|
+
"۹": "9"
|
706
|
+
// Eastern-Arabic digit 9
|
707
|
+
};
|
708
|
+
function _d(t) {
|
709
|
+
return Dd[t];
|
710
|
+
}
|
711
|
+
function Ld(t, e) {
|
712
|
+
var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
713
|
+
if (d)
|
714
|
+
return (d = d.call(t)).next.bind(d);
|
715
|
+
if (Array.isArray(t) || (d = Fd(t)) || e && t && typeof t.length == "number") {
|
716
|
+
d && (t = d);
|
717
|
+
var n = 0;
|
718
|
+
return function() {
|
719
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
720
|
+
};
|
721
|
+
}
|
722
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
723
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
724
|
+
}
|
725
|
+
function Fd(t, e) {
|
726
|
+
if (t) {
|
727
|
+
if (typeof t == "string")
|
728
|
+
return Ut(t, e);
|
729
|
+
var d = Object.prototype.toString.call(t).slice(8, -1);
|
730
|
+
if (d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set")
|
731
|
+
return Array.from(t);
|
732
|
+
if (d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))
|
733
|
+
return Ut(t, e);
|
734
|
+
}
|
735
|
+
}
|
736
|
+
function Ut(t, e) {
|
737
|
+
(e == null || e > t.length) && (e = t.length);
|
738
|
+
for (var d = 0, n = new Array(e); d < e; d++)
|
739
|
+
n[d] = t[d];
|
740
|
+
return n;
|
741
|
+
}
|
742
|
+
function Gt(t) {
|
743
|
+
for (var e = "", d = Ld(t.split("")), n; !(n = d()).done; ) {
|
744
|
+
var r = n.value;
|
745
|
+
e += Md(r, e) || "";
|
746
|
+
}
|
747
|
+
return e;
|
748
|
+
}
|
749
|
+
function Md(t, e) {
|
750
|
+
return t === "+" ? e ? void 0 : "+" : _d(t);
|
751
|
+
}
|
752
|
+
function kd(t, e) {
|
753
|
+
var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
754
|
+
if (d)
|
755
|
+
return (d = d.call(t)).next.bind(d);
|
756
|
+
if (Array.isArray(t) || (d = Bd(t)) || e && t && typeof t.length == "number") {
|
757
|
+
d && (t = d);
|
758
|
+
var n = 0;
|
759
|
+
return function() {
|
760
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
761
|
+
};
|
762
|
+
}
|
763
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
764
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
765
|
+
}
|
766
|
+
function Bd(t, e) {
|
767
|
+
if (t) {
|
768
|
+
if (typeof t == "string")
|
769
|
+
return Vt(t, e);
|
770
|
+
var d = Object.prototype.toString.call(t).slice(8, -1);
|
771
|
+
if (d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set")
|
772
|
+
return Array.from(t);
|
773
|
+
if (d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))
|
774
|
+
return Vt(t, e);
|
775
|
+
}
|
776
|
+
}
|
777
|
+
function Vt(t, e) {
|
778
|
+
(e == null || e > t.length) && (e = t.length);
|
779
|
+
for (var d = 0, n = new Array(e); d < e; d++)
|
780
|
+
n[d] = t[d];
|
781
|
+
return n;
|
782
|
+
}
|
783
|
+
function Ud(t, e) {
|
784
|
+
for (var d = t.slice(), n = kd(e), r; !(r = n()).done; ) {
|
785
|
+
var o = r.value;
|
786
|
+
t.indexOf(o) < 0 && d.push(o);
|
787
|
+
}
|
788
|
+
return d.sort(function(i, s) {
|
789
|
+
return i - s;
|
790
|
+
});
|
791
|
+
}
|
792
|
+
function wt(t, e) {
|
793
|
+
return Ne(t, void 0, e);
|
794
|
+
}
|
795
|
+
function Ne(t, e, d) {
|
796
|
+
var n = d.type(e), r = n && n.possibleLengths() || d.possibleLengths();
|
797
|
+
if (!r)
|
798
|
+
return "IS_POSSIBLE";
|
799
|
+
if (e === "FIXED_LINE_OR_MOBILE") {
|
800
|
+
if (!d.type("FIXED_LINE"))
|
801
|
+
return Ne(t, "MOBILE", d);
|
802
|
+
var o = d.type("MOBILE");
|
803
|
+
o && (r = Ud(r, o.possibleLengths()));
|
804
|
+
} else if (e && !n)
|
805
|
+
return "INVALID_LENGTH";
|
806
|
+
var i = t.length, s = r[0];
|
807
|
+
return s === i ? "IS_POSSIBLE" : s > i ? "TOO_SHORT" : r[r.length - 1] < i ? "TOO_LONG" : r.indexOf(i, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
808
|
+
}
|
809
|
+
function Gd(t, e, d) {
|
810
|
+
if (e === void 0 && (e = {}), d = new O(d), e.v2) {
|
811
|
+
if (!t.countryCallingCode)
|
812
|
+
throw new Error("Invalid phone number object passed");
|
813
|
+
d.selectNumberingPlan(t.countryCallingCode);
|
814
|
+
} else {
|
815
|
+
if (!t.phone)
|
816
|
+
return !1;
|
817
|
+
if (t.country) {
|
818
|
+
if (!d.hasCountry(t.country))
|
819
|
+
throw new Error("Unknown country: ".concat(t.country));
|
820
|
+
d.country(t.country);
|
821
|
+
} else {
|
822
|
+
if (!t.countryCallingCode)
|
823
|
+
throw new Error("Invalid phone number object passed");
|
824
|
+
d.selectNumberingPlan(t.countryCallingCode);
|
825
|
+
}
|
826
|
+
}
|
827
|
+
if (d.possibleLengths())
|
828
|
+
return Te(t.phone || t.nationalNumber, d);
|
829
|
+
if (t.countryCallingCode && d.isNonGeographicCallingCode(t.countryCallingCode))
|
830
|
+
return !0;
|
831
|
+
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
832
|
+
}
|
833
|
+
function Te(t, e) {
|
834
|
+
switch (wt(t, e)) {
|
835
|
+
case "IS_POSSIBLE":
|
836
|
+
return !0;
|
837
|
+
default:
|
838
|
+
return !1;
|
839
|
+
}
|
840
|
+
}
|
841
|
+
function T(t, e) {
|
842
|
+
return t = t || "", new RegExp("^(?:" + e + ")$").test(t);
|
843
|
+
}
|
844
|
+
function Vd(t, e) {
|
845
|
+
var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
846
|
+
if (d)
|
847
|
+
return (d = d.call(t)).next.bind(d);
|
848
|
+
if (Array.isArray(t) || (d = Hd(t)) || e && t && typeof t.length == "number") {
|
849
|
+
d && (t = d);
|
850
|
+
var n = 0;
|
851
|
+
return function() {
|
852
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
853
|
+
};
|
854
|
+
}
|
855
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
856
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
857
|
+
}
|
858
|
+
function Hd(t, e) {
|
859
|
+
if (t) {
|
860
|
+
if (typeof t == "string")
|
861
|
+
return Ht(t, e);
|
862
|
+
var d = Object.prototype.toString.call(t).slice(8, -1);
|
863
|
+
if (d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set")
|
864
|
+
return Array.from(t);
|
865
|
+
if (d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))
|
866
|
+
return Ht(t, e);
|
867
|
+
}
|
868
|
+
}
|
869
|
+
function Ht(t, e) {
|
870
|
+
(e == null || e > t.length) && (e = t.length);
|
871
|
+
for (var d = 0, n = new Array(e); d < e; d++)
|
872
|
+
n[d] = t[d];
|
873
|
+
return n;
|
874
|
+
}
|
875
|
+
var Kd = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
876
|
+
function St(t, e, d) {
|
877
|
+
if (e = e || {}, !(!t.country && !t.countryCallingCode)) {
|
878
|
+
d = new O(d), d.selectNumberingPlan(t.country, t.countryCallingCode);
|
879
|
+
var n = e.v2 ? t.nationalNumber : t.phone;
|
880
|
+
if (T(n, d.nationalNumberPattern())) {
|
881
|
+
if (dt(n, "FIXED_LINE", d))
|
882
|
+
return d.type("MOBILE") && d.type("MOBILE").pattern() === "" || !d.type("MOBILE") || dt(n, "MOBILE", d) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
883
|
+
for (var r = Vd(Kd), o; !(o = r()).done; ) {
|
884
|
+
var i = o.value;
|
885
|
+
if (dt(n, i, d))
|
886
|
+
return i;
|
887
|
+
}
|
888
|
+
}
|
889
|
+
}
|
890
|
+
}
|
891
|
+
function dt(t, e, d) {
|
892
|
+
return e = d.type(e), !e || !e.pattern() || e.possibleLengths() && e.possibleLengths().indexOf(t.length) < 0 ? !1 : T(t, e.pattern());
|
893
|
+
}
|
894
|
+
function Wd(t, e, d) {
|
895
|
+
if (e = e || {}, d = new O(d), d.selectNumberingPlan(t.country, t.countryCallingCode), d.hasTypes())
|
896
|
+
return St(t, e, d.metadata) !== void 0;
|
897
|
+
var n = e.v2 ? t.nationalNumber : t.phone;
|
898
|
+
return T(n, d.nationalNumberPattern());
|
899
|
+
}
|
900
|
+
function zd(t, e, d) {
|
901
|
+
var n = new O(d), r = n.getCountryCodesForCallingCode(t);
|
902
|
+
return r ? r.filter(function(o) {
|
903
|
+
return qd(e, o, d);
|
904
|
+
}) : [];
|
905
|
+
}
|
906
|
+
function qd(t, e, d) {
|
907
|
+
var n = new O(d);
|
908
|
+
return n.selectNumberingPlan(e), n.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
|
909
|
+
}
|
910
|
+
function Jd(t) {
|
911
|
+
return t.replace(new RegExp("[".concat(K, "]+"), "g"), " ").trim();
|
912
|
+
}
|
913
|
+
var Yd = /(\$\d)/;
|
914
|
+
function Zd(t, e, d) {
|
915
|
+
var n = d.useInternationalFormat, r = d.withNationalPrefix;
|
916
|
+
d.carrierCode, d.metadata;
|
917
|
+
var o = t.replace(new RegExp(e.pattern()), n ? e.internationalFormat() : (
|
918
|
+
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
919
|
+
// because that one is only used when formatting phone numbers
|
920
|
+
// for dialing from a mobile phone, and this is not a dialing library.
|
921
|
+
// carrierCode && format.domesticCarrierCodeFormattingRule()
|
922
|
+
// // First, replace the $CC in the formatting rule with the desired carrier code.
|
923
|
+
// // Then, replace the $FG in the formatting rule with the first group
|
924
|
+
// // and the carrier code combined in the appropriate way.
|
925
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
|
926
|
+
// : (
|
927
|
+
// withNationalPrefix && format.nationalPrefixFormattingRule()
|
928
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
929
|
+
// : format.format()
|
930
|
+
// )
|
931
|
+
r && e.nationalPrefixFormattingRule() ? e.format().replace(Yd, e.nationalPrefixFormattingRule()) : e.format()
|
932
|
+
));
|
933
|
+
return n ? Jd(o) : o;
|
934
|
+
}
|
935
|
+
var Xd = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
936
|
+
function Qd(t, e, d) {
|
937
|
+
var n = new O(d);
|
938
|
+
if (n.selectNumberingPlan(t, e), n.defaultIDDPrefix())
|
939
|
+
return n.defaultIDDPrefix();
|
940
|
+
if (Xd.test(n.IDDPrefix()))
|
941
|
+
return n.IDDPrefix();
|
942
|
+
}
|
943
|
+
function tn(t) {
|
944
|
+
var e = t.number, d = t.ext;
|
945
|
+
if (!e)
|
946
|
+
return "";
|
947
|
+
if (e[0] !== "+")
|
948
|
+
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
949
|
+
return "tel:".concat(e).concat(d ? ";ext=" + d : "");
|
950
|
+
}
|
951
|
+
function en(t, e) {
|
952
|
+
var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
953
|
+
if (d)
|
954
|
+
return (d = d.call(t)).next.bind(d);
|
955
|
+
if (Array.isArray(t) || (d = dn(t)) || e && t && typeof t.length == "number") {
|
956
|
+
d && (t = d);
|
957
|
+
var n = 0;
|
958
|
+
return function() {
|
959
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
960
|
+
};
|
961
|
+
}
|
962
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
963
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
964
|
+
}
|
965
|
+
function dn(t, e) {
|
966
|
+
if (t) {
|
967
|
+
if (typeof t == "string")
|
968
|
+
return Kt(t, e);
|
969
|
+
var d = Object.prototype.toString.call(t).slice(8, -1);
|
970
|
+
if (d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set")
|
971
|
+
return Array.from(t);
|
972
|
+
if (d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))
|
973
|
+
return Kt(t, e);
|
974
|
+
}
|
975
|
+
}
|
976
|
+
function Kt(t, e) {
|
977
|
+
(e == null || e > t.length) && (e = t.length);
|
978
|
+
for (var d = 0, n = new Array(e); d < e; d++)
|
979
|
+
n[d] = t[d];
|
980
|
+
return n;
|
981
|
+
}
|
982
|
+
function Wt(t, e) {
|
983
|
+
var d = Object.keys(t);
|
984
|
+
if (Object.getOwnPropertySymbols) {
|
985
|
+
var n = Object.getOwnPropertySymbols(t);
|
986
|
+
e && (n = n.filter(function(r) {
|
987
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
988
|
+
})), d.push.apply(d, n);
|
989
|
+
}
|
990
|
+
return d;
|
991
|
+
}
|
992
|
+
function zt(t) {
|
993
|
+
for (var e = 1; e < arguments.length; e++) {
|
994
|
+
var d = arguments[e] != null ? arguments[e] : {};
|
995
|
+
e % 2 ? Wt(Object(d), !0).forEach(function(n) {
|
996
|
+
nn(t, n, d[n]);
|
997
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : Wt(Object(d)).forEach(function(n) {
|
998
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(d, n));
|
999
|
+
});
|
1000
|
+
}
|
1001
|
+
return t;
|
1002
|
+
}
|
1003
|
+
function nn(t, e, d) {
|
1004
|
+
return e in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
|
1005
|
+
}
|
1006
|
+
var qt = {
|
1007
|
+
formatExtension: function(t, e, d) {
|
1008
|
+
return "".concat(t).concat(d.ext()).concat(e);
|
1009
|
+
}
|
1010
|
+
};
|
1011
|
+
function rn(t, e, d, n) {
|
1012
|
+
if (d ? d = zt(zt({}, qt), d) : d = qt, n = new O(n), t.country && t.country !== "001") {
|
1013
|
+
if (!n.hasCountry(t.country))
|
1014
|
+
throw new Error("Unknown country: ".concat(t.country));
|
1015
|
+
n.country(t.country);
|
1016
|
+
} else if (t.countryCallingCode)
|
1017
|
+
n.selectNumberingPlan(t.countryCallingCode);
|
1018
|
+
else
|
1019
|
+
return t.phone || "";
|
1020
|
+
var r = n.countryCallingCode(), o = d.v2 ? t.nationalNumber : t.phone, i;
|
1021
|
+
switch (e) {
|
1022
|
+
case "NATIONAL":
|
1023
|
+
return o ? (i = W(o, t.carrierCode, "NATIONAL", n, d), nt(i, t.ext, n, d.formatExtension)) : "";
|
1024
|
+
case "INTERNATIONAL":
|
1025
|
+
return o ? (i = W(o, null, "INTERNATIONAL", n, d), i = "+".concat(r, " ").concat(i), nt(i, t.ext, n, d.formatExtension)) : "+".concat(r);
|
1026
|
+
case "E.164":
|
1027
|
+
return "+".concat(r).concat(o);
|
1028
|
+
case "RFC3966":
|
1029
|
+
return tn({
|
1030
|
+
number: "+".concat(r).concat(o),
|
1031
|
+
ext: t.ext
|
1032
|
+
});
|
1033
|
+
case "IDD":
|
1034
|
+
if (!d.fromCountry)
|
1035
|
+
return;
|
1036
|
+
var s = an(o, t.carrierCode, r, d.fromCountry, n);
|
1037
|
+
return nt(s, t.ext, n, d.formatExtension);
|
1038
|
+
default:
|
1039
|
+
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e, '"'));
|
1040
|
+
}
|
1041
|
+
}
|
1042
|
+
function W(t, e, d, n, r) {
|
1043
|
+
var o = on(n.formats(), t);
|
1044
|
+
return o ? Zd(t, o, {
|
1045
|
+
useInternationalFormat: d === "INTERNATIONAL",
|
1046
|
+
withNationalPrefix: !(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && r && r.nationalPrefix === !1),
|
1047
|
+
carrierCode: e,
|
1048
|
+
metadata: n
|
1049
|
+
}) : t;
|
1050
|
+
}
|
1051
|
+
function on(t, e) {
|
1052
|
+
for (var d = en(t), n; !(n = d()).done; ) {
|
1053
|
+
var r = n.value;
|
1054
|
+
if (r.leadingDigitsPatterns().length > 0) {
|
1055
|
+
var o = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
|
1056
|
+
if (e.search(o) !== 0)
|
1057
|
+
continue;
|
1058
|
+
}
|
1059
|
+
if (T(e, r.pattern()))
|
1060
|
+
return r;
|
1061
|
+
}
|
1062
|
+
}
|
1063
|
+
function nt(t, e, d, n) {
|
1064
|
+
return e ? n(t, e, d) : t;
|
1065
|
+
}
|
1066
|
+
function an(t, e, d, n, r) {
|
1067
|
+
var o = Ct(n, r.metadata);
|
1068
|
+
if (o === d) {
|
1069
|
+
var i = W(t, e, "NATIONAL", r);
|
1070
|
+
return d === "1" ? d + " " + i : i;
|
1071
|
+
}
|
1072
|
+
var s = Qd(n, void 0, r.metadata);
|
1073
|
+
if (s)
|
1074
|
+
return "".concat(s, " ").concat(d, " ").concat(W(t, null, "INTERNATIONAL", r));
|
1075
|
+
}
|
1076
|
+
function Jt(t, e) {
|
1077
|
+
var d = Object.keys(t);
|
1078
|
+
if (Object.getOwnPropertySymbols) {
|
1079
|
+
var n = Object.getOwnPropertySymbols(t);
|
1080
|
+
e && (n = n.filter(function(r) {
|
1081
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
1082
|
+
})), d.push.apply(d, n);
|
1083
|
+
}
|
1084
|
+
return d;
|
1085
|
+
}
|
1086
|
+
function Yt(t) {
|
1087
|
+
for (var e = 1; e < arguments.length; e++) {
|
1088
|
+
var d = arguments[e] != null ? arguments[e] : {};
|
1089
|
+
e % 2 ? Jt(Object(d), !0).forEach(function(n) {
|
1090
|
+
sn(t, n, d[n]);
|
1091
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : Jt(Object(d)).forEach(function(n) {
|
1092
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(d, n));
|
1093
|
+
});
|
1094
|
+
}
|
1095
|
+
return t;
|
1096
|
+
}
|
1097
|
+
function sn(t, e, d) {
|
1098
|
+
return e in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
|
1099
|
+
}
|
1100
|
+
function $n(t, e) {
|
1101
|
+
if (!(t instanceof e))
|
1102
|
+
throw new TypeError("Cannot call a class as a function");
|
1103
|
+
}
|
1104
|
+
function Zt(t, e) {
|
1105
|
+
for (var d = 0; d < e.length; d++) {
|
1106
|
+
var n = e[d];
|
1107
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
1108
|
+
}
|
1109
|
+
}
|
1110
|
+
function un(t, e, d) {
|
1111
|
+
return e && Zt(t.prototype, e), d && Zt(t, d), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
1112
|
+
}
|
1113
|
+
var ln = /* @__PURE__ */ function() {
|
1114
|
+
function t(e, d, n) {
|
1115
|
+
if ($n(this, t), !e)
|
1116
|
+
throw new TypeError("`country` or `countryCallingCode` not passed");
|
1117
|
+
if (!d)
|
1118
|
+
throw new TypeError("`nationalNumber` not passed");
|
1119
|
+
if (!n)
|
1120
|
+
throw new TypeError("`metadata` not passed");
|
1121
|
+
var r = fn(e, n), o = r.country, i = r.countryCallingCode;
|
1122
|
+
this.country = o, this.countryCallingCode = i, this.nationalNumber = d, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
1123
|
+
return n;
|
1124
|
+
};
|
1125
|
+
}
|
1126
|
+
return un(t, [{
|
1127
|
+
key: "setExt",
|
1128
|
+
value: function(e) {
|
1129
|
+
this.ext = e;
|
1130
|
+
}
|
1131
|
+
}, {
|
1132
|
+
key: "getPossibleCountries",
|
1133
|
+
value: function() {
|
1134
|
+
return this.country ? [this.country] : zd(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
1135
|
+
}
|
1136
|
+
}, {
|
1137
|
+
key: "isPossible",
|
1138
|
+
value: function() {
|
1139
|
+
return Gd(this, {
|
1140
|
+
v2: !0
|
1141
|
+
}, this.getMetadata());
|
1142
|
+
}
|
1143
|
+
}, {
|
1144
|
+
key: "isValid",
|
1145
|
+
value: function() {
|
1146
|
+
return Wd(this, {
|
1147
|
+
v2: !0
|
1148
|
+
}, this.getMetadata());
|
1149
|
+
}
|
1150
|
+
}, {
|
1151
|
+
key: "isNonGeographic",
|
1152
|
+
value: function() {
|
1153
|
+
var e = new O(this.getMetadata());
|
1154
|
+
return e.isNonGeographicCallingCode(this.countryCallingCode);
|
1155
|
+
}
|
1156
|
+
}, {
|
1157
|
+
key: "isEqual",
|
1158
|
+
value: function(e) {
|
1159
|
+
return this.number === e.number && this.ext === e.ext;
|
1160
|
+
}
|
1161
|
+
// This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
|
1162
|
+
// but later it was found out that it doesn't include the possible `TOO_SHORT` result
|
1163
|
+
// returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
|
1164
|
+
// so eventually I simply commented out this method from the `PhoneNumber` class
|
1165
|
+
// and just left the `validatePhoneNumberLength()` function, even though that one would require
|
1166
|
+
// and additional step to also validate the actual country / calling code of the phone number.
|
1167
|
+
// validateLength() {
|
1168
|
+
// const metadata = new Metadata(this.getMetadata())
|
1169
|
+
// metadata.selectNumberingPlan(this.countryCallingCode)
|
1170
|
+
// const result = checkNumberLength(this.nationalNumber, metadata)
|
1171
|
+
// if (result !== 'IS_POSSIBLE') {
|
1172
|
+
// return result
|
1173
|
+
// }
|
1174
|
+
// }
|
1175
|
+
}, {
|
1176
|
+
key: "getType",
|
1177
|
+
value: function() {
|
1178
|
+
return St(this, {
|
1179
|
+
v2: !0
|
1180
|
+
}, this.getMetadata());
|
1181
|
+
}
|
1182
|
+
}, {
|
1183
|
+
key: "format",
|
1184
|
+
value: function(e, d) {
|
1185
|
+
return rn(this, e, d ? Yt(Yt({}, d), {}, {
|
1186
|
+
v2: !0
|
1187
|
+
}) : {
|
1188
|
+
v2: !0
|
1189
|
+
}, this.getMetadata());
|
1190
|
+
}
|
1191
|
+
}, {
|
1192
|
+
key: "formatNational",
|
1193
|
+
value: function(e) {
|
1194
|
+
return this.format("NATIONAL", e);
|
1195
|
+
}
|
1196
|
+
}, {
|
1197
|
+
key: "formatInternational",
|
1198
|
+
value: function(e) {
|
1199
|
+
return this.format("INTERNATIONAL", e);
|
1200
|
+
}
|
1201
|
+
}, {
|
1202
|
+
key: "getURI",
|
1203
|
+
value: function(e) {
|
1204
|
+
return this.format("RFC3966", e);
|
1205
|
+
}
|
1206
|
+
}]), t;
|
1207
|
+
}(), cn = function(t) {
|
1208
|
+
return /^[A-Z]{2}$/.test(t);
|
1209
|
+
};
|
1210
|
+
function fn(t, e) {
|
1211
|
+
var d, n, r = new O(e);
|
1212
|
+
return cn(t) ? (d = t, r.selectNumberingPlan(d), n = r.countryCallingCode()) : n = t, {
|
1213
|
+
country: d,
|
1214
|
+
countryCallingCode: n
|
1215
|
+
};
|
1216
|
+
}
|
1217
|
+
var hn = new RegExp("([" + w + "])");
|
1218
|
+
function pn(t, e, d, n) {
|
1219
|
+
if (e) {
|
1220
|
+
var r = new O(n);
|
1221
|
+
r.selectNumberingPlan(e, d);
|
1222
|
+
var o = new RegExp(r.IDDPrefix());
|
1223
|
+
if (t.search(o) === 0) {
|
1224
|
+
t = t.slice(t.match(o)[0].length);
|
1225
|
+
var i = t.match(hn);
|
1226
|
+
if (!(i && i[1] != null && i[1].length > 0 && i[1] === "0"))
|
1227
|
+
return t;
|
1228
|
+
}
|
1229
|
+
}
|
1230
|
+
}
|
1231
|
+
function mn(t, e) {
|
1232
|
+
if (t && e.numberingPlan.nationalPrefixForParsing()) {
|
1233
|
+
var d = new RegExp("^(?:" + e.numberingPlan.nationalPrefixForParsing() + ")"), n = d.exec(t);
|
1234
|
+
if (n) {
|
1235
|
+
var r, o, i = n.length - 1, s = i > 0 && n[i];
|
1236
|
+
if (e.nationalPrefixTransformRule() && s)
|
1237
|
+
r = t.replace(d, e.nationalPrefixTransformRule()), i > 1 && (o = n[1]);
|
1238
|
+
else {
|
1239
|
+
var u = n[0];
|
1240
|
+
r = t.slice(u.length), s && (o = n[1]);
|
1241
|
+
}
|
1242
|
+
var l;
|
1243
|
+
if (s) {
|
1244
|
+
var $ = t.indexOf(n[1]), f = t.slice(0, $);
|
1245
|
+
f === e.numberingPlan.nationalPrefix() && (l = e.numberingPlan.nationalPrefix());
|
1246
|
+
} else
|
1247
|
+
l = n[0];
|
1248
|
+
return {
|
1249
|
+
nationalNumber: r,
|
1250
|
+
nationalPrefix: l,
|
1251
|
+
carrierCode: o
|
1252
|
+
};
|
1253
|
+
}
|
1254
|
+
}
|
1255
|
+
return {
|
1256
|
+
nationalNumber: t
|
1257
|
+
};
|
1258
|
+
}
|
1259
|
+
function ct(t, e) {
|
1260
|
+
var d = mn(t, e), n = d.carrierCode, r = d.nationalNumber;
|
1261
|
+
if (r !== t) {
|
1262
|
+
if (!yn(t, r, e))
|
1263
|
+
return {
|
1264
|
+
nationalNumber: t
|
1265
|
+
};
|
1266
|
+
if (e.possibleLengths() && !gn(r, e))
|
1267
|
+
return {
|
1268
|
+
nationalNumber: t
|
1269
|
+
};
|
1270
|
+
}
|
1271
|
+
return {
|
1272
|
+
nationalNumber: r,
|
1273
|
+
carrierCode: n
|
1274
|
+
};
|
1275
|
+
}
|
1276
|
+
function yn(t, e, d) {
|
1277
|
+
return !(T(t, d.nationalNumberPattern()) && !T(e, d.nationalNumberPattern()));
|
1278
|
+
}
|
1279
|
+
function gn(t, e) {
|
1280
|
+
switch (wt(t, e)) {
|
1281
|
+
case "TOO_SHORT":
|
1282
|
+
case "INVALID_LENGTH":
|
1283
|
+
return !1;
|
1284
|
+
default:
|
1285
|
+
return !0;
|
1286
|
+
}
|
1287
|
+
}
|
1288
|
+
function bn(t, e, d, n) {
|
1289
|
+
var r = e ? Ct(e, n) : d;
|
1290
|
+
if (t.indexOf(r) === 0) {
|
1291
|
+
n = new O(n), n.selectNumberingPlan(e, d);
|
1292
|
+
var o = t.slice(r.length), i = ct(o, n), s = i.nationalNumber, u = ct(t, n), l = u.nationalNumber;
|
1293
|
+
if (!T(l, n.nationalNumberPattern()) && T(s, n.nationalNumberPattern()) || wt(l, n) === "TOO_LONG")
|
1294
|
+
return {
|
1295
|
+
countryCallingCode: r,
|
1296
|
+
number: o
|
1297
|
+
};
|
1298
|
+
}
|
1299
|
+
return {
|
1300
|
+
number: t
|
1301
|
+
};
|
1302
|
+
}
|
1303
|
+
function vn(t, e, d, n) {
|
1304
|
+
if (!t)
|
1305
|
+
return {};
|
1306
|
+
var r;
|
1307
|
+
if (t[0] !== "+") {
|
1308
|
+
var o = pn(t, e, d, n);
|
1309
|
+
if (o && o !== t)
|
1310
|
+
r = !0, t = "+" + o;
|
1311
|
+
else {
|
1312
|
+
if (e || d) {
|
1313
|
+
var i = bn(t, e, d, n), s = i.countryCallingCode, u = i.number;
|
1314
|
+
if (s)
|
1315
|
+
return {
|
1316
|
+
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
1317
|
+
countryCallingCode: s,
|
1318
|
+
number: u
|
1319
|
+
};
|
1320
|
+
}
|
1321
|
+
return {
|
1322
|
+
// No need to set it to `UNSPECIFIED`. It can be just `undefined`.
|
1323
|
+
// countryCallingCodeSource: 'UNSPECIFIED',
|
1324
|
+
number: t
|
1325
|
+
};
|
1326
|
+
}
|
1327
|
+
}
|
1328
|
+
if (t[1] === "0")
|
1329
|
+
return {};
|
1330
|
+
n = new O(n);
|
1331
|
+
for (var l = 2; l - 1 <= sd && l <= t.length; ) {
|
1332
|
+
var $ = t.slice(1, l);
|
1333
|
+
if (n.hasCallingCode($))
|
1334
|
+
return n.selectNumberingPlan($), {
|
1335
|
+
countryCallingCodeSource: r ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
1336
|
+
countryCallingCode: $,
|
1337
|
+
number: t.slice(l)
|
1338
|
+
};
|
1339
|
+
l++;
|
1340
|
+
}
|
1341
|
+
return {};
|
1342
|
+
}
|
1343
|
+
function On(t, e) {
|
1344
|
+
var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
1345
|
+
if (d)
|
1346
|
+
return (d = d.call(t)).next.bind(d);
|
1347
|
+
if (Array.isArray(t) || (d = Cn(t)) || e && t && typeof t.length == "number") {
|
1348
|
+
d && (t = d);
|
1349
|
+
var n = 0;
|
1350
|
+
return function() {
|
1351
|
+
return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
|
1352
|
+
};
|
1353
|
+
}
|
1354
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
1355
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
1356
|
+
}
|
1357
|
+
function Cn(t, e) {
|
1358
|
+
if (t) {
|
1359
|
+
if (typeof t == "string")
|
1360
|
+
return Xt(t, e);
|
1361
|
+
var d = Object.prototype.toString.call(t).slice(8, -1);
|
1362
|
+
if (d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set")
|
1363
|
+
return Array.from(t);
|
1364
|
+
if (d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))
|
1365
|
+
return Xt(t, e);
|
1366
|
+
}
|
1367
|
+
}
|
1368
|
+
function Xt(t, e) {
|
1369
|
+
(e == null || e > t.length) && (e = t.length);
|
1370
|
+
for (var d = 0, n = new Array(e); d < e; d++)
|
1371
|
+
n[d] = t[d];
|
1372
|
+
return n;
|
1373
|
+
}
|
1374
|
+
function wn(t, e) {
|
1375
|
+
var d = e.countries, n = e.defaultCountry, r = e.metadata;
|
1376
|
+
r = new O(r);
|
1377
|
+
for (var o = [], i = On(d), s; !(s = i()).done; ) {
|
1378
|
+
var u = s.value;
|
1379
|
+
if (r.country(u), r.leadingDigits()) {
|
1380
|
+
if (t && t.search(r.leadingDigits()) === 0)
|
1381
|
+
return u;
|
1382
|
+
} else if (St({
|
1383
|
+
phone: t,
|
1384
|
+
country: u
|
1385
|
+
}, void 0, r.metadata))
|
1386
|
+
if (n) {
|
1387
|
+
if (u === n)
|
1388
|
+
return u;
|
1389
|
+
o.push(u);
|
1390
|
+
} else
|
1391
|
+
return u;
|
1392
|
+
}
|
1393
|
+
if (o.length > 0)
|
1394
|
+
return o[0];
|
1395
|
+
}
|
1396
|
+
function Sn(t, e) {
|
1397
|
+
var d = e.nationalNumber, n = e.defaultCountry, r = e.metadata, o = r.getCountryCodesForCallingCode(t);
|
1398
|
+
if (o)
|
1399
|
+
return o.length === 1 ? o[0] : wn(d, {
|
1400
|
+
countries: o,
|
1401
|
+
defaultCountry: n,
|
1402
|
+
metadata: r.metadata
|
1403
|
+
});
|
1404
|
+
}
|
1405
|
+
var Ae = "+", En = "[\\-\\.\\(\\)]?", Qt = "([" + w + "]|" + En + ")", Pn = "^\\" + Ae + Qt + "*[" + w + "]" + Qt + "*$", Nn = new RegExp(Pn, "g"), ft = w, Tn = "[" + ft + "]+((\\-)*[" + ft + "])*", An = "a-zA-Z", In = "[" + An + "]+((\\-)*[" + ft + "])*", Rn = "^(" + Tn + "\\.)*" + In + "\\.?$", jn = new RegExp(Rn, "g"), te = "tel:", ht = ";phone-context=", xn = ";isub=";
|
1406
|
+
function Dn(t) {
|
1407
|
+
var e = t.indexOf(ht);
|
1408
|
+
if (e < 0)
|
1409
|
+
return null;
|
1410
|
+
var d = e + ht.length;
|
1411
|
+
if (d >= t.length)
|
1412
|
+
return "";
|
1413
|
+
var n = t.indexOf(";", d);
|
1414
|
+
return n >= 0 ? t.substring(d, n) : t.substring(d);
|
1415
|
+
}
|
1416
|
+
function _n(t) {
|
1417
|
+
return t === null ? !0 : t.length === 0 ? !1 : Nn.test(t) || jn.test(t);
|
1418
|
+
}
|
1419
|
+
function Ln(t, e) {
|
1420
|
+
var d = e.extractFormattedPhoneNumber, n = Dn(t);
|
1421
|
+
if (!_n(n))
|
1422
|
+
throw new P("NOT_A_NUMBER");
|
1423
|
+
var r;
|
1424
|
+
if (n === null)
|
1425
|
+
r = d(t) || "";
|
1426
|
+
else {
|
1427
|
+
r = "", n.charAt(0) === Ae && (r += n);
|
1428
|
+
var o = t.indexOf(te), i;
|
1429
|
+
o >= 0 ? i = o + te.length : i = 0;
|
1430
|
+
var s = t.indexOf(ht);
|
1431
|
+
r += t.substring(i, s);
|
1432
|
+
}
|
1433
|
+
var u = r.indexOf(xn);
|
1434
|
+
if (u > 0 && (r = r.substring(0, u)), r !== "")
|
1435
|
+
return r;
|
1436
|
+
}
|
1437
|
+
var Fn = 250, Mn = new RegExp("[" + Ot + w + "]"), kn = new RegExp("[^" + w + "#]+$");
|
1438
|
+
function Bn(t, e, d) {
|
1439
|
+
if (e = e || {}, d = new O(d), e.defaultCountry && !d.hasCountry(e.defaultCountry))
|
1440
|
+
throw e.v2 ? new P("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
|
1441
|
+
var n = Gn(t, e.v2, e.extract), r = n.number, o = n.ext, i = n.error;
|
1442
|
+
if (!r) {
|
1443
|
+
if (e.v2)
|
1444
|
+
throw i === "TOO_SHORT" ? new P("TOO_SHORT") : new P("NOT_A_NUMBER");
|
1445
|
+
return {};
|
1446
|
+
}
|
1447
|
+
var s = Hn(r, e.defaultCountry, e.defaultCallingCode, d), u = s.country, l = s.nationalNumber, $ = s.countryCallingCode, f = s.countryCallingCodeSource, m = s.carrierCode;
|
1448
|
+
if (!d.hasSelectedNumberingPlan()) {
|
1449
|
+
if (e.v2)
|
1450
|
+
throw new P("INVALID_COUNTRY");
|
1451
|
+
return {};
|
1452
|
+
}
|
1453
|
+
if (!l || l.length < vt) {
|
1454
|
+
if (e.v2)
|
1455
|
+
throw new P("TOO_SHORT");
|
1456
|
+
return {};
|
1457
|
+
}
|
1458
|
+
if (l.length > ad) {
|
1459
|
+
if (e.v2)
|
1460
|
+
throw new P("TOO_LONG");
|
1461
|
+
return {};
|
1462
|
+
}
|
1463
|
+
if (e.v2) {
|
1464
|
+
var h = new ln($, l, d.metadata);
|
1465
|
+
return u && (h.country = u), m && (h.carrierCode = m), o && (h.ext = o), h.__countryCallingCodeSource = f, h;
|
1466
|
+
}
|
1467
|
+
var c = (e.extended ? d.hasSelectedNumberingPlan() : u) ? T(l, d.nationalNumberPattern()) : !1;
|
1468
|
+
return e.extended ? {
|
1469
|
+
country: u,
|
1470
|
+
countryCallingCode: $,
|
1471
|
+
carrierCode: m,
|
1472
|
+
valid: c,
|
1473
|
+
possible: c ? !0 : !!(e.extended === !0 && d.possibleLengths() && Te(l, d)),
|
1474
|
+
phone: l,
|
1475
|
+
ext: o
|
1476
|
+
} : c ? Vn(u, l, o) : {};
|
1477
|
+
}
|
1478
|
+
function Un(t, e, d) {
|
1479
|
+
if (t) {
|
1480
|
+
if (t.length > Fn) {
|
1481
|
+
if (d)
|
1482
|
+
throw new P("TOO_LONG");
|
1483
|
+
return;
|
1484
|
+
}
|
1485
|
+
if (e === !1)
|
1486
|
+
return t;
|
1487
|
+
var n = t.search(Mn);
|
1488
|
+
if (!(n < 0))
|
1489
|
+
return t.slice(n).replace(kn, "");
|
1490
|
+
}
|
1491
|
+
}
|
1492
|
+
function Gn(t, e, d) {
|
1493
|
+
var n = Ln(t, {
|
1494
|
+
extractFormattedPhoneNumber: function(o) {
|
1495
|
+
return Un(o, d, e);
|
1496
|
+
}
|
1497
|
+
});
|
1498
|
+
if (!n)
|
1499
|
+
return {};
|
1500
|
+
if (!Rd(n))
|
1501
|
+
return jd(n) ? {
|
1502
|
+
error: "TOO_SHORT"
|
1503
|
+
} : {};
|
1504
|
+
var r = xd(n);
|
1505
|
+
return r.ext ? r : {
|
1506
|
+
number: n
|
1507
|
+
};
|
1508
|
+
}
|
1509
|
+
function Vn(t, e, d) {
|
1510
|
+
var n = {
|
1511
|
+
country: t,
|
1512
|
+
phone: e
|
1513
|
+
};
|
1514
|
+
return d && (n.ext = d), n;
|
1515
|
+
}
|
1516
|
+
function Hn(t, e, d, n) {
|
1517
|
+
var r = vn(Gt(t), e, d, n.metadata), o = r.countryCallingCodeSource, i = r.countryCallingCode, s = r.number, u;
|
1518
|
+
if (i)
|
1519
|
+
n.selectNumberingPlan(i);
|
1520
|
+
else if (s && (e || d))
|
1521
|
+
n.selectNumberingPlan(e, d), e && (u = e), i = d || Ct(e, n.metadata);
|
1522
|
+
else
|
1523
|
+
return {};
|
1524
|
+
if (!s)
|
1525
|
+
return {
|
1526
|
+
countryCallingCodeSource: o,
|
1527
|
+
countryCallingCode: i
|
1528
|
+
};
|
1529
|
+
var l = ct(Gt(s), n), $ = l.nationalNumber, f = l.carrierCode, m = Sn(i, {
|
1530
|
+
nationalNumber: $,
|
1531
|
+
defaultCountry: e,
|
1532
|
+
metadata: n
|
1533
|
+
});
|
1534
|
+
return m && (u = m, m === "001" || n.country(u)), {
|
1535
|
+
country: u,
|
1536
|
+
countryCallingCode: i,
|
1537
|
+
countryCallingCodeSource: o,
|
1538
|
+
nationalNumber: $,
|
1539
|
+
carrierCode: f
|
1540
|
+
};
|
1541
|
+
}
|
1542
|
+
function ee(t, e) {
|
1543
|
+
var d = Object.keys(t);
|
1544
|
+
if (Object.getOwnPropertySymbols) {
|
1545
|
+
var n = Object.getOwnPropertySymbols(t);
|
1546
|
+
e && (n = n.filter(function(r) {
|
1547
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
1548
|
+
})), d.push.apply(d, n);
|
1549
|
+
}
|
1550
|
+
return d;
|
1551
|
+
}
|
1552
|
+
function de(t) {
|
1553
|
+
for (var e = 1; e < arguments.length; e++) {
|
1554
|
+
var d = arguments[e] != null ? arguments[e] : {};
|
1555
|
+
e % 2 ? ee(Object(d), !0).forEach(function(n) {
|
1556
|
+
Kn(t, n, d[n]);
|
1557
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : ee(Object(d)).forEach(function(n) {
|
1558
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(d, n));
|
1559
|
+
});
|
1560
|
+
}
|
1561
|
+
return t;
|
1562
|
+
}
|
1563
|
+
function Kn(t, e, d) {
|
1564
|
+
return e in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
|
1565
|
+
}
|
1566
|
+
function Wn(t, e, d) {
|
1567
|
+
return Bn(t, de(de({}, e), {}, {
|
1568
|
+
v2: !0
|
1569
|
+
}), d);
|
1570
|
+
}
|
1571
|
+
function ne(t, e) {
|
1572
|
+
var d = Object.keys(t);
|
1573
|
+
if (Object.getOwnPropertySymbols) {
|
1574
|
+
var n = Object.getOwnPropertySymbols(t);
|
1575
|
+
e && (n = n.filter(function(r) {
|
1576
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
1577
|
+
})), d.push.apply(d, n);
|
1578
|
+
}
|
1579
|
+
return d;
|
1580
|
+
}
|
1581
|
+
function zn(t) {
|
1582
|
+
for (var e = 1; e < arguments.length; e++) {
|
1583
|
+
var d = arguments[e] != null ? arguments[e] : {};
|
1584
|
+
e % 2 ? ne(Object(d), !0).forEach(function(n) {
|
1585
|
+
qn(t, n, d[n]);
|
1586
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : ne(Object(d)).forEach(function(n) {
|
1587
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(d, n));
|
1588
|
+
});
|
1589
|
+
}
|
1590
|
+
return t;
|
1591
|
+
}
|
1592
|
+
function qn(t, e, d) {
|
1593
|
+
return e in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
|
1594
|
+
}
|
1595
|
+
function Jn(t, e) {
|
1596
|
+
return Qn(t) || Xn(t, e) || Zn(t, e) || Yn();
|
1597
|
+
}
|
1598
|
+
function Yn() {
|
1599
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
1600
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
1601
|
+
}
|
1602
|
+
function Zn(t, e) {
|
1603
|
+
if (t) {
|
1604
|
+
if (typeof t == "string")
|
1605
|
+
return re(t, e);
|
1606
|
+
var d = Object.prototype.toString.call(t).slice(8, -1);
|
1607
|
+
if (d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set")
|
1608
|
+
return Array.from(t);
|
1609
|
+
if (d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))
|
1610
|
+
return re(t, e);
|
1611
|
+
}
|
1612
|
+
}
|
1613
|
+
function re(t, e) {
|
1614
|
+
(e == null || e > t.length) && (e = t.length);
|
1615
|
+
for (var d = 0, n = new Array(e); d < e; d++)
|
1616
|
+
n[d] = t[d];
|
1617
|
+
return n;
|
1618
|
+
}
|
1619
|
+
function Xn(t, e) {
|
1620
|
+
var d = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
1621
|
+
if (d != null) {
|
1622
|
+
var n = [], r = !0, o = !1, i, s;
|
1623
|
+
try {
|
1624
|
+
for (d = d.call(t); !(r = (i = d.next()).done) && (n.push(i.value), !(e && n.length === e)); r = !0)
|
1625
|
+
;
|
1626
|
+
} catch (u) {
|
1627
|
+
o = !0, s = u;
|
1628
|
+
} finally {
|
1629
|
+
try {
|
1630
|
+
!r && d.return != null && d.return();
|
1631
|
+
} finally {
|
1632
|
+
if (o)
|
1633
|
+
throw s;
|
1634
|
+
}
|
1635
|
+
}
|
1636
|
+
return n;
|
1637
|
+
}
|
1638
|
+
}
|
1639
|
+
function Qn(t) {
|
1640
|
+
if (Array.isArray(t))
|
1641
|
+
return t;
|
1642
|
+
}
|
1643
|
+
function tr(t) {
|
1644
|
+
var e = Array.prototype.slice.call(t), d = Jn(e, 4), n = d[0], r = d[1], o = d[2], i = d[3], s, u, l;
|
1645
|
+
if (typeof n == "string")
|
1646
|
+
s = n;
|
1647
|
+
else
|
1648
|
+
throw new TypeError("A text for parsing must be a string.");
|
1649
|
+
if (!r || typeof r == "string")
|
1650
|
+
i ? (u = o, l = i) : (u = void 0, l = o), r && (u = zn({
|
1651
|
+
defaultCountry: r
|
1652
|
+
}, u));
|
1653
|
+
else if (U(r))
|
1654
|
+
o ? (u = r, l = o) : l = r;
|
1655
|
+
else
|
1656
|
+
throw new Error("Invalid second argument: ".concat(r));
|
1657
|
+
return {
|
1658
|
+
text: s,
|
1659
|
+
options: u,
|
1660
|
+
metadata: l
|
1661
|
+
};
|
1662
|
+
}
|
1663
|
+
function oe(t, e) {
|
1664
|
+
var d = Object.keys(t);
|
1665
|
+
if (Object.getOwnPropertySymbols) {
|
1666
|
+
var n = Object.getOwnPropertySymbols(t);
|
1667
|
+
e && (n = n.filter(function(r) {
|
1668
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
1669
|
+
})), d.push.apply(d, n);
|
1670
|
+
}
|
1671
|
+
return d;
|
1672
|
+
}
|
1673
|
+
function ie(t) {
|
1674
|
+
for (var e = 1; e < arguments.length; e++) {
|
1675
|
+
var d = arguments[e] != null ? arguments[e] : {};
|
1676
|
+
e % 2 ? oe(Object(d), !0).forEach(function(n) {
|
1677
|
+
er(t, n, d[n]);
|
1678
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : oe(Object(d)).forEach(function(n) {
|
1679
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(d, n));
|
1680
|
+
});
|
1681
|
+
}
|
1682
|
+
return t;
|
1683
|
+
}
|
1684
|
+
function er(t, e, d) {
|
1685
|
+
return e in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
|
1686
|
+
}
|
1687
|
+
function dr(t, e, d) {
|
1688
|
+
e && e.defaultCountry && !Sd(e.defaultCountry, d) && (e = ie(ie({}, e), {}, {
|
1689
|
+
defaultCountry: void 0
|
1690
|
+
}));
|
1691
|
+
try {
|
1692
|
+
return Wn(t, e, d);
|
1693
|
+
} catch (n) {
|
1694
|
+
if (!(n instanceof P))
|
1695
|
+
throw n;
|
1696
|
+
}
|
1697
|
+
}
|
1698
|
+
function nr() {
|
1699
|
+
var t = tr(arguments), e = t.text, d = t.options, n = t.metadata;
|
1700
|
+
return dr(e, d, n);
|
1701
|
+
}
|
1702
|
+
function rt() {
|
1703
|
+
return td(nr, arguments);
|
1704
|
+
}
|
1705
|
+
const rr = [["افغانستان", "af", "93", , "🇦🇫"], ["Shqipëri", "al", "355", , "🇦🇱"], ["الجزائر", "dz", "213", , "🇩🇿"], ["American Samoa", "as", "1684", , "🇦🇸"], ["Andorra", "ad", "376", , "🇦🇩"], ["Angola", "ao", "244", , "🇦🇴"], ["Anguilla", "ai", "1264", , "🇦🇮"], ["Antigua and Barbuda", "ag", "1268", , "🇦🇬"], ["Argentina", "ar", "54", , "🇦🇷"], ["Հայաստան", "am", "374", , "🇦🇲"], ["Aruba", "aw", "297", , "🇦🇼"], ["Australia", "au", "61", 0, , "🇦🇺"], ["Österreich", "at", "43", , "🇦🇹"], ["Azərbaycan", "az", "994", , "🇦🇿"], ["Bahamas", "bs", "1242", , "🇧🇸"], ["البحرين", "bh", "973", , "🇧🇭"], ["বাংলাদেশ", "bd", "880", , "🇧🇩"], ["Barbados", "bb", "1246", , "🇧🇧"], ["Беларусь", "by", "375", , "🇧🇾"], ["België", "be", "32", , "🇧🇪"], ["Belize", "bz", "501", , "🇧🇿"], ["Bénin", "bj", "229", , "🇧🇯"], ["Bermuda", "bm", "1441", , "🇧🇲"], ["འབྲུག", "bt", "975", , "🇧🇹"], ["Bolivia", "bo", "591", , "🇧🇴"], ["Босна и Херцеговина", "ba", "387", , "🇧🇦"], ["Botswana", "bw", "267", , "🇧🇼"], ["Brasil", "br", "55", , "🇧🇷"], ["British Indian Ocean Territory", "io", "246", , "🇮🇴"], ["British Virgin Islands", "vg", "1284", , "🇻🇬"], ["Brunei", "bn", "673", , "🇧🇳"], ["България", "bg", "359", , "🇧🇬"], ["Burkina Faso", "bf", "226", , "🇧🇫"], ["Uburundi", "bi", "257", , "🇧🇮"], ["កម្ពុជា", "kh", "855", , "🇰🇭"], ["Cameroun", "cm", "237", , "🇨🇲"], ["Canada", "ca", "1", 1, "🇨🇦"], ["Kabu Verdi", "cv", "238", , "🇨🇻"], ["Caribbean Netherlands", "bq", "599", 1, , "🇧🇶"], ["Cayman Islands", "ky", "1345", , "🇰🇾"], ["République centrafricaine", "cf", "236", , "🇨🇫"], ["Tchad", "td", "235", , "🇹🇩"], ["Chile", "cl", "56", , "🇨🇱"], ["中国", "cn", "86", , "🇨🇳"], ["Christmas Island", "cx", "61", 2, , "🇨🇽"], ["Keeling", "cc", "61", 1, , "🇨🇨"], ["Colombia", "co", "57", , "🇨🇴"], ["جزر القمر", "km", "269", , "🇰🇲"], ["DRC", "cd", "243", , "🇨🇩"], ["Republic", "cg", "242", , "🇨🇬"], ["Cook Islands", "ck", "682", , "🇨🇰"], ["Costa Rica", "cr", "506", , "🇨🇷"], ["Côte d’Ivoire", "ci", "225", , "🇨🇮"], ["Hrvatska", "hr", "385", , "🇭🇷"], ["Cuba", "cu", "53", , "🇨🇺"], ["Curaçao", "cw", "599", 0, , "🇨🇼"], ["Κύπρος", "cy", "357", , "🇨🇾"], ["Česká republika", "cz", "420", , "🇨🇿"], ["Danmark", "dk", "45", , "🇩🇰"], ["Djibouti", "dj", "253", , "🇩🇯"], ["Dominica", "dm", "1767", , "🇩🇲"], ["República Dominicana", "do", "1", 2, ["809", "829", "849", "🇩🇴"]], ["Ecuador", "ec", "593", , "🇪🇨"], ["مصر", "eg", "20", , "🇪🇬"], ["El Salvador", "sv", "503", , "🇸🇻"], ["Guinea Ecuatorial", "gq", "240", , "🇬🇶"], ["Eritrea", "er", "291", , "🇪🇷"], ["Eesti", "ee", "372", , "🇪🇪"], ["Ethiopia", "et", "251", , "🇪🇹"], ["Islas Malvinas", "fk", "500", , "🇫🇰"], ["Føroyar", "fo", "298", , "🇫🇴"], ["Fiji", "fj", "679", , "🇫🇯"], ["Suomi", "fi", "358", 0, , "🇫🇮"], ["France", "fr", "33", , "🇫🇷"], ["Guyane française", "gf", "594", , "🇬🇫"], ["Polynésie française", "pf", "689", , "🇵🇫"], ["Gabon", "ga", "241", , "🇬🇦"], ["Gambia", "gm", "220", , "🇬🇲"], ["საქართველო", "ge", "995", , "🇬🇪"], ["Deutschland", "de", "49", , "🇩🇪"], ["Gaana", "gh", "233", , "🇬🇭"], ["Gibraltar", "gi", "350", , "🇬🇮"], ["Ελλάδα", "gr", "30", , "🇬🇷"], ["Kalaallit Nunaat", "gl", "299", , "🇬🇱"], ["Grenada", "gd", "1473", , "🇬🇩"], ["Guadeloupe", "gp", "590", 0, , "🇬🇵"], ["Guam", "gu", "1671", , "🇬🇺"], ["Guatemala", "gt", "502", , "🇬🇹"], ["Guernsey", "gg", "44", 1, , "🇬🇬"], ["Guinée", "gn", "224", , "🇬🇳"], ["Guiné Bissau", "gw", "245", , "🇬🇼"], ["Guyana", "gy", "592", , "🇬🇾"], ["Haiti", "ht", "509", , "🇭🇹"], ["Honduras", "hn", "504", , "🇭🇳"], ["香港", "hk", "852", , "🇭🇰"], ["Magyarország", "hu", "36", , "🇭🇺"], ["Ísland", "is", "354", , "🇮🇸"], ["भारत", "in", "91", , "🇮🇳"], ["Indonesia", "id", "62", , "🇮🇩"], ["ایران", "ir", "98", , "🇮🇷"], ["العراق", "iq", "964", , "🇮🇶"], ["Ireland", "ie", "353", , "🇮🇪"], ["Isle of Man", "im", "44", 2, , "🇮🇲"], ["ישראל", "il", "972", , "🇮🇱"], ["Italia", "it", "39", 0, , "🇮🇹"], ["Jamaica", "jm", "1876", , "🇯🇲"], ["日本", "jp", "81", , "🇯🇵"], ["Jersey", "je", "44", 3, , "🇯🇪"], ["الأردن", "jo", "962", , "🇯🇴"], ["Казахстан", "kz", "7", 1, , "🇰🇿"], ["Kenya", "ke", "254", , "🇰🇪"], ["Kiribati", "ki", "686", , "🇰🇮"], ["Kosovo", "xk", "383", , "🇽🇰"], ["الكويت", "kw", "965", , "🇰🇼"], ["Кыргызстан", "kg", "996", , "🇰🇬"], ["ລາວ", "la", "856", , "🇱🇦"], ["Latvija", "lv", "371", , "🇱🇻"], ["لبنان", "lb", "961", , "🇱🇧"], ["Lesotho", "ls", "266", , "🇱🇸"], ["Liberia", "lr", "231", , "🇱🇷"], ["ليبيا", "ly", "218", , "🇱🇾"], ["Liechtenstein", "li", "423", , "🇱🇮"], ["Lietuva", "lt", "370", , "🇱🇹"], ["Luxembourg", "lu", "352", , "🇱🇺"], ["澳門", "mo", "853", , "🇲🇴"], ["FYROM", "mk", "389", , "🇲🇰"], ["Madagasikara", "mg", "261", , "🇲🇬"], ["Malawi", "mw", "265", , "🇲🇼"], ["Malaysia", "my", "60", , "🇲🇾"], ["Maldives", "mv", "960", , "🇲🇻"], ["Mali", "ml", "223", , "🇲🇱"], ["Malta", "mt", "356", , "🇲🇹"], ["Marshall Islands", "mh", "692", , "🇲🇭"], ["Martinique", "mq", "596", , "🇲🇶"], ["موريتانيا", "mr", "222", , "🇲🇷"], ["Moris", "mu", "230", , "🇲🇺"], ["Mayotte", "yt", "262", 1, , "🇾🇹"], ["México", "mx", "52", , "🇲🇽"], ["Micronesia", "fm", "691", , "🇫🇲"], ["Republica Moldova", "md", "373", , "🇲🇩"], ["Monaco", "mc", "377", , "🇲🇨"], ["Монгол", "mn", "976", , "🇲🇳"], ["Crna Gora", "me", "382", , "🇲🇪"], ["Montserrat", "ms", "1664", , "🇲🇸"], ["المغرب", "ma", "212", 0, , "🇲🇦"], ["Moçambique", "mz", "258", , "🇲🇿"], ["Burma", "mm", "95", , "🇲🇲"], ["Namibië", "na", "264", , "🇳🇦"], ["Nauru", "nr", "674", , "🇳🇷"], ["नेपाल", "np", "977", , "🇳🇵"], ["Nederland", "nl", "31", , "🇳🇱"], ["Nouvelle-Calédonie", "nc", "687", , "🇳🇨"], ["New Zealand", "nz", "64", , "🇳🇿"], ["Nicaragua", "ni", "505", , "🇳🇮"], ["Nijar", "ne", "227", , "🇳🇪"], ["Nigeria", "ng", "234", , "🇳🇬"], ["Niue", "nu", "683", , "🇳🇺"], ["Norfolk Island", "nf", "672", , "🇳🇫"], ["조선 민주주의 인민 공화국", "kp", "850", , "🇰🇵"], ["Northern Mariana Islands", "mp", "1670", , "🇲🇵"], ["Norge", "no", "47", 0, , "🇳🇴"], ["عُمان", "om", "968", , "🇴🇲"], ["پاکستان", "pk", "92", , "🇵🇰"], ["Palau", "pw", "680", , "🇵🇼"], ["فلسطين", "ps", "970", , "🇵🇸"], ["Panamá", "pa", "507", , "🇵🇦"], ["Papua New Guinea", "pg", "675", , "🇵🇬"], ["Paraguay", "py", "595", , "🇵🇾"], ["Perú", "pe", "51", , "🇵🇪"], ["Philippines", "ph", "63", , "🇵🇭"], ["Polska", "pl", "48", , "🇵🇱"], ["Portugal", "pt", "351", , "🇵🇹"], ["Puerto Rico", "pr", "1", 3, ["787", "939", "🇵🇷"]], ["قطر", "qa", "974", , "🇶🇦"], ["La Réunion", "re", "262", 0, , "🇷🇪"], ["România", "ro", "40", , "🇷🇴"], ["Россия", "ru", "7", 0, , "🇷🇺"], ["Rwanda", "rw", "250", , "🇷🇼"], ["Saint Barthélemy", "bl", "590", 1, , "🇧🇱"], ["Saint Helena", "sh", "290", , "🇸🇭"], ["Saint Kitts and Nevis", "kn", "1869", , "🇰🇳"], ["Saint Lucia", "lc", "1758", , "🇱🇨"], ["Saint-Martin (partie française", "mf", "590", 2, , "🇲🇫"], ["Saint-Pierre-et-Miquelon", "pm", "508", , "🇵🇲"], ["Saint Vincent and the Grenadines", "vc", "1784", , "🇻🇨"], ["Samoa", "ws", "685", , "🇼🇸"], ["San Marino", "sm", "378", , "🇸🇲"], ["São Tomé e Príncipe", "st", "239", , "🇸🇹"], ["المملكة العربية السعودية", "sa", "966", , "🇸🇦"], ["Sénégal", "sn", "221", , "🇸🇳"], ["Србија", "rs", "381", , "🇷🇸"], ["Seychelles", "sc", "248", , "🇸🇨"], ["Sierra Leone", "sl", "232", , "🇸🇱"], ["Singapore", "sg", "65", , "🇸🇬"], ["Sint Maarten", "sx", "1721", , "🇸🇽"], ["Slovensko", "sk", "421", , "🇸🇰"], ["Slovenija", "si", "386", , "🇸🇮"], ["Solomon Islands", "sb", "677", , "🇸🇧"], ["Soomaaliya", "so", "252", , "🇸🇴"], ["South Africa", "za", "27", , "🇿🇦"], ["대한민국", "kr", "82", , "🇰🇷"], ["جنوب السودان", "ss", "211", , "🇸🇸"], ["España", "es", "34", , "🇪🇸"], ["ශ්රී ලංකාව", "lk", "94", , "🇱🇰"], ["السودان", "sd", "249", , "🇸🇩"], ["Suriname", "sr", "597", , "🇸🇷"], ["Svalbard and Jan Mayen", "sj", "47", 1, , "🇸🇯"], ["Swaziland", "sz", "268", , "🇸🇿"], ["Sverige", "se", "46", , "🇸🇪"], ["Schweiz", "ch", "41", , "🇨🇭"], ["سوريا", "sy", "963", , "🇸🇾"], ["台灣", "tw", "886", , "🇹🇼"], ["Tajikistan", "tj", "992", , "🇹🇯"], ["Tanzania", "tz", "255", , "🇹🇿"], ["ไทย", "th", "66", , "🇹🇭"], ["Timor-Leste", "tl", "670", , "🇹🇱"], ["Togo", "tg", "228", , "🇹🇬"], ["Tokelau", "tk", "690", , "🇹🇰"], ["Tonga", "to", "676", , "🇹🇴"], ["Trinidad and Tobago", "tt", "1868", , "🇹🇹"], ["تونس", "tn", "216", , "🇹🇳"], ["Türkiye", "tr", "90", , "🇹🇷"], ["Turkmenistan", "tm", "993", , "🇹🇲"], ["Turks and Caicos Islands", "tc", "1649", , "🇹🇨"], ["Tuvalu", "tv", "688", , "🇹🇻"], ["U.S. Virgin Islands", "vi", "1340", , "🇻🇮"], ["Uganda", "ug", "256", , "🇺🇬"], ["Україна", "ua", "380", , "🇺🇦"], ["الإمارات العربية المتحدة", "ae", "971", , "🇦🇪"], ["United Kingdom", "gb", "44", 0, , "🇬🇧"], ["United States", "us", "1", 0, , "🇺🇸"], ["Uruguay", "uy", "598", , "🇺🇾"], ["Oʻzbekiston", "uz", "998", , "🇺🇿"], ["Vanuatu", "vu", "678", , "🇻🇺"], ["Città del Vaticano", "va", "39", 1, , "🇻🇦"], ["Venezuela", "ve", "58", , "🇻🇪"], ["Việt Nam", "vn", "84", , "🇻🇳"], ["Wallis-et-Futuna", "wf", "681", , "🇼🇫"], ["الصحراء الغربية", "eh", "212", 1, , "🇪🇭"], ["اليمن", "ye", "967", , "🇾🇪"], ["Zambia", "zm", "260", , "🇿🇲"], ["Zimbabwe", "zw", "263", , "🇿🇼"], ["Åland Islands", "ax", "358", 1, , "🇦🇽"]], or = rr.map((t) => ({
|
1706
|
+
name: t[0],
|
1707
|
+
iso2: t[1].toUpperCase(),
|
1708
|
+
dialCode: t[2],
|
1709
|
+
priority: t[3] || 0,
|
1710
|
+
areaCodes: t[4] || null,
|
1711
|
+
flag: t[t.length - 1] || null
|
1712
|
+
}));
|
1713
|
+
function ir() {
|
1714
|
+
return fetch("https://ip2c.org/s").then((t) => t.text()).then((t) => {
|
1715
|
+
const e = (t || "").toString();
|
1716
|
+
if (!e || e[0] !== "1")
|
1717
|
+
throw new Error("unable to fetch the country");
|
1718
|
+
return e.substr(2, 2);
|
1719
|
+
});
|
1720
|
+
}
|
1721
|
+
function ar(t, e) {
|
1722
|
+
if (t.setSelectionRange)
|
1723
|
+
t.focus(), t.setSelectionRange(e, e);
|
1724
|
+
else if (t.createTextRange) {
|
1725
|
+
const d = t.createTextRange();
|
1726
|
+
d.collapse(!0), d.moveEnd("character", e), d.moveStart("character", e), d.select();
|
1727
|
+
}
|
1728
|
+
}
|
1729
|
+
const sr = [
|
1730
|
+
{
|
1731
|
+
name: "allCountries",
|
1732
|
+
type: Array,
|
1733
|
+
default: or,
|
1734
|
+
description: "All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",
|
1735
|
+
inDemo: !1
|
1736
|
+
},
|
1737
|
+
{
|
1738
|
+
name: "autoFormat",
|
1739
|
+
type: Boolean,
|
1740
|
+
default: !0,
|
1741
|
+
description: "Auto update the input to the formatted phone number when it's valid",
|
1742
|
+
inDemo: !0
|
1743
|
+
},
|
1744
|
+
{
|
1745
|
+
name: "customValidate",
|
1746
|
+
type: [Boolean, RegExp],
|
1747
|
+
default: !1,
|
1748
|
+
description: "Custom validation RegExp for input",
|
1749
|
+
inDemo: !1
|
1750
|
+
},
|
1751
|
+
{
|
1752
|
+
name: "defaultCountry",
|
1753
|
+
default: "",
|
1754
|
+
type: String,
|
1755
|
+
description: "Default country, will override the country fetched from IP address of user",
|
1756
|
+
inDemo: !1
|
1757
|
+
},
|
1758
|
+
{
|
1759
|
+
name: "disabled",
|
1760
|
+
default: !1,
|
1761
|
+
type: Boolean,
|
1762
|
+
description: "Disable <code>vue-tel-input</code>, including the input & flag dropdown",
|
1763
|
+
inDemo: !1
|
1764
|
+
},
|
1765
|
+
{
|
1766
|
+
name: "autoDefaultCountry",
|
1767
|
+
default: !0,
|
1768
|
+
type: Boolean,
|
1769
|
+
description: "To fetch default country based on IP address of user",
|
1770
|
+
inDemo: !1
|
1771
|
+
},
|
1772
|
+
{
|
1773
|
+
name: "dropdownOptions",
|
1774
|
+
type: Object,
|
1775
|
+
description: "Options for dropdown, see below",
|
1776
|
+
inDemo: !1
|
1777
|
+
},
|
1778
|
+
{
|
1779
|
+
name: "dropdownOptions.showDialCodeInList",
|
1780
|
+
default: !0,
|
1781
|
+
type: Boolean,
|
1782
|
+
description: "Show dial code in the dropdown list",
|
1783
|
+
inDemo: !0
|
1784
|
+
},
|
1785
|
+
{
|
1786
|
+
name: "dropdownOptions.showDialCodeInSelection",
|
1787
|
+
default: !1,
|
1788
|
+
type: Boolean,
|
1789
|
+
description: "Show dial code in the dropdown selection",
|
1790
|
+
inDemo: !0
|
1791
|
+
},
|
1792
|
+
{
|
1793
|
+
name: "dropdownOptions.showFlags",
|
1794
|
+
default: !0,
|
1795
|
+
type: Boolean,
|
1796
|
+
description: "Show flags in the dropdown selection and list",
|
1797
|
+
inDemo: !0
|
1798
|
+
},
|
1799
|
+
{
|
1800
|
+
name: "dropdownOptions.tabindex",
|
1801
|
+
default: 0,
|
1802
|
+
type: Number,
|
1803
|
+
description: "Native dropdown <code>tabindex</code> attribute",
|
1804
|
+
inDemo: !1
|
1805
|
+
},
|
1806
|
+
{
|
1807
|
+
name: "ignoredCountries",
|
1808
|
+
default: [],
|
1809
|
+
type: Array,
|
1810
|
+
description: "List of countries will NOT be shown on the dropdown",
|
1811
|
+
inDemo: !1
|
1812
|
+
},
|
1813
|
+
{
|
1814
|
+
name: "inputOptions",
|
1815
|
+
type: Object,
|
1816
|
+
description: "Options for input, see below",
|
1817
|
+
inDemo: !1
|
1818
|
+
},
|
1819
|
+
{
|
1820
|
+
name: "inputOptions.autocomplete",
|
1821
|
+
type: String,
|
1822
|
+
default: "on",
|
1823
|
+
description: "Native input <code>autocomplete</code> attribute",
|
1824
|
+
inDemo: !1
|
1825
|
+
},
|
1826
|
+
{
|
1827
|
+
name: "inputOptions.autofocus",
|
1828
|
+
type: Boolean,
|
1829
|
+
default: !1,
|
1830
|
+
description: "Native input <code>autofocus</code> attribute",
|
1831
|
+
inDemo: !1
|
1832
|
+
},
|
1833
|
+
// {
|
1834
|
+
// name: 'inputOptions.dynamicPlaceholder',
|
1835
|
+
// default: false,
|
1836
|
+
// type: Boolean,
|
1837
|
+
// description: 'Placeholder as a sample phone number in the current country',
|
1838
|
+
// inDemo: false,
|
1839
|
+
// },
|
1840
|
+
{
|
1841
|
+
name: "inputOptions.id",
|
1842
|
+
default: "",
|
1843
|
+
type: String,
|
1844
|
+
description: "Native input <code>id</code> attribute",
|
1845
|
+
inDemo: !1
|
1846
|
+
},
|
1847
|
+
{
|
1848
|
+
name: "inputOptions.maxlength",
|
1849
|
+
default: 25,
|
1850
|
+
type: Number,
|
1851
|
+
description: "Native input <code>maxlength</code> attribute",
|
1852
|
+
inDemo: !1
|
1853
|
+
},
|
1854
|
+
{
|
1855
|
+
name: "inputOptions.name",
|
1856
|
+
default: "telephone",
|
1857
|
+
type: String,
|
1858
|
+
description: "Native input <code>name</code> attribute",
|
1859
|
+
inDemo: !1
|
1860
|
+
},
|
1861
|
+
{
|
1862
|
+
name: "inputOptions.placeholder",
|
1863
|
+
default: "Enter a phone number",
|
1864
|
+
type: String,
|
1865
|
+
description: "Placeholder for the input",
|
1866
|
+
inDemo: !1
|
1867
|
+
},
|
1868
|
+
{
|
1869
|
+
name: "inputOptions.readonly",
|
1870
|
+
default: !1,
|
1871
|
+
type: Boolean,
|
1872
|
+
description: "Native input <code>readonly</code> attribute",
|
1873
|
+
inDemo: !1
|
1874
|
+
},
|
1875
|
+
{
|
1876
|
+
name: "inputOptions.required",
|
1877
|
+
default: !1,
|
1878
|
+
type: Boolean,
|
1879
|
+
description: "Native input <code>required</code> attribute",
|
1880
|
+
inDemo: !1
|
1881
|
+
},
|
1882
|
+
{
|
1883
|
+
name: "inputOptions.tabindex",
|
1884
|
+
default: 0,
|
1885
|
+
type: Number,
|
1886
|
+
description: "Native input <code>tabindex</code> attribute",
|
1887
|
+
inDemo: !1
|
1888
|
+
},
|
1889
|
+
{
|
1890
|
+
name: "inputOptions.type",
|
1891
|
+
default: "tel",
|
1892
|
+
type: String,
|
1893
|
+
description: "Native input <code>type</code> attribute",
|
1894
|
+
inDemo: !1
|
1895
|
+
},
|
1896
|
+
{
|
1897
|
+
name: "inputOptions.styleClasses",
|
1898
|
+
default: "",
|
1899
|
+
type: [String, Array, Object],
|
1900
|
+
description: "Custom classes for the <code>input</code>",
|
1901
|
+
inDemo: !1
|
1902
|
+
},
|
1903
|
+
{
|
1904
|
+
name: "invalidMsg",
|
1905
|
+
default: "",
|
1906
|
+
type: String,
|
1907
|
+
description: "",
|
1908
|
+
inDemo: !1
|
1909
|
+
},
|
1910
|
+
{
|
1911
|
+
name: "mode",
|
1912
|
+
default: "auto",
|
1913
|
+
type: String,
|
1914
|
+
description: "Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",
|
1915
|
+
inDemo: !0,
|
1916
|
+
options: ["auto", "national", "international"]
|
1917
|
+
},
|
1918
|
+
{
|
1919
|
+
name: "onlyCountries",
|
1920
|
+
default: [],
|
1921
|
+
type: Array,
|
1922
|
+
description: "List of countries will be shown on the dropdown",
|
1923
|
+
inDemo: !1
|
1924
|
+
},
|
1925
|
+
{
|
1926
|
+
name: "preferredCountries",
|
1927
|
+
default: [],
|
1928
|
+
type: Array,
|
1929
|
+
description: "Preferred countries list, will be on top of the dropdown",
|
1930
|
+
inDemo: !1
|
1931
|
+
},
|
1932
|
+
{
|
1933
|
+
name: "styleClasses",
|
1934
|
+
default: "",
|
1935
|
+
type: [String, Array, Object],
|
1936
|
+
description: "Custom classes for the wrapper",
|
1937
|
+
inDemo: !1
|
1938
|
+
},
|
1939
|
+
{
|
1940
|
+
name: "validCharactersOnly",
|
1941
|
+
default: !1,
|
1942
|
+
type: Boolean,
|
1943
|
+
description: "Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",
|
1944
|
+
inDemo: !1
|
1945
|
+
}
|
1946
|
+
], $r = [...sr].reduce((t, e) => {
|
1947
|
+
if (e.name.includes(".")) {
|
1948
|
+
const [d, n] = e.name.split(".");
|
1949
|
+
t[d] ? Object.assign(t[d], {
|
1950
|
+
[n]: e.default
|
1951
|
+
}) : Object.assign(t, {
|
1952
|
+
[d]: {
|
1953
|
+
[n]: e.default
|
1954
|
+
}
|
1955
|
+
});
|
1956
|
+
} else
|
1957
|
+
Object.assign(t, {
|
1958
|
+
[e.name]: e.default
|
1959
|
+
});
|
1960
|
+
return t;
|
1961
|
+
}, {}), ae = {
|
1962
|
+
options: { ...$r }
|
1963
|
+
};
|
1964
|
+
function v(t) {
|
1965
|
+
const e = ae.options[t];
|
1966
|
+
return typeof e > "u" ? ae.options[t] : e;
|
1967
|
+
}
|
1968
|
+
Ze({
|
1969
|
+
name: "Vue3ReactiveTelInput",
|
1970
|
+
// vue component name
|
1971
|
+
directives: {
|
1972
|
+
clickOutside: Xe
|
1973
|
+
},
|
1974
|
+
props: {
|
1975
|
+
/**
|
1976
|
+
* reactive value of the tel input
|
1977
|
+
*/
|
1978
|
+
modelValue: {
|
1979
|
+
type: String,
|
1980
|
+
default: ""
|
1981
|
+
},
|
1982
|
+
/**
|
1983
|
+
* class assign to root when the input number is invalid belong to the country code
|
1984
|
+
*/
|
1985
|
+
badClass: {
|
1986
|
+
type: [String, Array, Object],
|
1987
|
+
default: ""
|
1988
|
+
},
|
1989
|
+
/**
|
1990
|
+
* class assign to root when the input number is valid belong to the country code
|
1991
|
+
*/
|
1992
|
+
goodClass: {
|
1993
|
+
type: [String, Array, Object],
|
1994
|
+
default: ""
|
1995
|
+
},
|
1996
|
+
/**
|
1997
|
+
* style assign to root when the input number is invalid belong to the country code
|
1998
|
+
*/
|
1999
|
+
badStyle: {
|
2000
|
+
type: [String, Array, Object],
|
2001
|
+
default: ""
|
2002
|
+
},
|
2003
|
+
/**
|
2004
|
+
* style assign to root when the input number is valid belong to the country code
|
2005
|
+
*/
|
2006
|
+
goodStyle: {
|
2007
|
+
type: [String, Array, Object],
|
2008
|
+
default: ""
|
2009
|
+
},
|
2010
|
+
/**
|
2011
|
+
* class assign when the input number is invalid belong to the country code
|
2012
|
+
*/
|
2013
|
+
badInputClass: {
|
2014
|
+
type: [String, Array, Object],
|
2015
|
+
default: ""
|
2016
|
+
},
|
2017
|
+
/**
|
2018
|
+
* class assign when the input number is valid belong to the country code
|
2019
|
+
*/
|
2020
|
+
goodInputClass: {
|
2021
|
+
type: [String, Array, Object],
|
2022
|
+
default: ""
|
2023
|
+
},
|
2024
|
+
/**
|
2025
|
+
* style assign when the input number is invalid belong to the country code
|
2026
|
+
*/
|
2027
|
+
badInputStyle: {
|
2028
|
+
type: [String, Array, Object],
|
2029
|
+
default: ""
|
2030
|
+
},
|
2031
|
+
/**
|
2032
|
+
* style assign when the input number is valid belong to the country code
|
2033
|
+
*/
|
2034
|
+
goodInputStyle: {
|
2035
|
+
type: [String, Array, Object],
|
2036
|
+
default: ""
|
2037
|
+
},
|
2038
|
+
/**
|
2039
|
+
* list of all contries
|
2040
|
+
*/
|
2041
|
+
allCountries: {
|
2042
|
+
type: Array,
|
2043
|
+
default: () => v("allCountries")
|
2044
|
+
},
|
2045
|
+
/**
|
2046
|
+
* flag to know if the value will be automatically formatted
|
2047
|
+
*/
|
2048
|
+
autoFormat: {
|
2049
|
+
type: Boolean,
|
2050
|
+
default: () => v("autoFormat")
|
2051
|
+
},
|
2052
|
+
validation: {
|
2053
|
+
type: [Boolean, Object],
|
2054
|
+
default: !1
|
2055
|
+
},
|
2056
|
+
/**
|
2057
|
+
* customized validation RegExp or flag
|
2058
|
+
*/
|
2059
|
+
customValidate: {
|
2060
|
+
type: [Boolean, RegExp],
|
2061
|
+
default: () => v("customValidate")
|
2062
|
+
},
|
2063
|
+
/**
|
2064
|
+
* a default country
|
2065
|
+
*/
|
2066
|
+
defaultCountry: {
|
2067
|
+
// Default country code, ie: 'AU'
|
2068
|
+
// Will override the current country of user
|
2069
|
+
type: String,
|
2070
|
+
default: () => v("defaultCountry")
|
2071
|
+
},
|
2072
|
+
/**
|
2073
|
+
* flag defining whether the input must be disabled
|
2074
|
+
*/
|
2075
|
+
disabled: {
|
2076
|
+
type: Boolean,
|
2077
|
+
default: () => v("disabled")
|
2078
|
+
},
|
2079
|
+
/**
|
2080
|
+
* flag definir if we'll automatically choose a default country
|
2081
|
+
*/
|
2082
|
+
autoDefaultCountry: {
|
2083
|
+
type: Boolean,
|
2084
|
+
default: () => v("autoDefaultCountry")
|
2085
|
+
},
|
2086
|
+
/**
|
2087
|
+
* object of dropdown options
|
2088
|
+
*/
|
2089
|
+
dropdownOptions: {
|
2090
|
+
type: Object,
|
2091
|
+
default: () => v("dropdownOptions")
|
2092
|
+
},
|
2093
|
+
/**
|
2094
|
+
* list of countries to ignore
|
2095
|
+
*/
|
2096
|
+
ignoredCountries: {
|
2097
|
+
type: Array,
|
2098
|
+
default: () => v("ignoredCountries")
|
2099
|
+
},
|
2100
|
+
/**
|
2101
|
+
* object of input options
|
2102
|
+
*/
|
2103
|
+
inputOptions: {
|
2104
|
+
type: Object,
|
2105
|
+
default: () => v("inputOptions")
|
2106
|
+
},
|
2107
|
+
/**
|
2108
|
+
* valid message to display
|
2109
|
+
*/
|
2110
|
+
invalidMsg: {
|
2111
|
+
type: String,
|
2112
|
+
default: () => v("invalidMsg")
|
2113
|
+
},
|
2114
|
+
/**
|
2115
|
+
* the mode of the input
|
2116
|
+
*/
|
2117
|
+
mode: {
|
2118
|
+
type: String,
|
2119
|
+
default: () => v("mode")
|
2120
|
+
},
|
2121
|
+
/**
|
2122
|
+
* limit the giving input to only manage your list of contry
|
2123
|
+
*/
|
2124
|
+
onlyCountries: {
|
2125
|
+
type: Array,
|
2126
|
+
default: () => v("onlyCountries")
|
2127
|
+
},
|
2128
|
+
/**
|
2129
|
+
* the list of preferred countries
|
2130
|
+
*/
|
2131
|
+
preferredCountries: {
|
2132
|
+
type: Array,
|
2133
|
+
default: () => v("preferredCountries")
|
2134
|
+
},
|
2135
|
+
/**
|
2136
|
+
* the flag defining if the input must only content valid characters
|
2137
|
+
*/
|
2138
|
+
validCharactersOnly: {
|
2139
|
+
type: Boolean,
|
2140
|
+
default: () => v("validCharactersOnly")
|
2141
|
+
},
|
2142
|
+
/**
|
2143
|
+
* the root default class
|
2144
|
+
*/
|
2145
|
+
rootClass: {
|
2146
|
+
type: [String, Array, Object],
|
2147
|
+
default: () => v("styleClasses")
|
2148
|
+
},
|
2149
|
+
/**
|
2150
|
+
* the input default class
|
2151
|
+
*/
|
2152
|
+
inputClass: {
|
2153
|
+
type: [String, Array, Object],
|
2154
|
+
default: () => ""
|
2155
|
+
},
|
2156
|
+
/**
|
2157
|
+
* the div input default class
|
2158
|
+
*/
|
2159
|
+
divInputClass: {
|
2160
|
+
type: [String, Array, Object],
|
2161
|
+
default: () => ""
|
2162
|
+
},
|
2163
|
+
/**
|
2164
|
+
* the root default style
|
2165
|
+
*/
|
2166
|
+
rootStyle: {
|
2167
|
+
type: [String, Array, Object],
|
2168
|
+
default: () => ""
|
2169
|
+
},
|
2170
|
+
/**
|
2171
|
+
* the dropdown button style
|
2172
|
+
*/
|
2173
|
+
dropdownStyle: {
|
2174
|
+
type: [String, Array, Object],
|
2175
|
+
default: () => ""
|
2176
|
+
},
|
2177
|
+
/**
|
2178
|
+
* the dropdown list style
|
2179
|
+
*/
|
2180
|
+
listStyle: {
|
2181
|
+
type: [String, Array, Object],
|
2182
|
+
default: () => ""
|
2183
|
+
},
|
2184
|
+
/**
|
2185
|
+
* the input style
|
2186
|
+
*/
|
2187
|
+
inputStyle: {
|
2188
|
+
type: [String, Array, Object],
|
2189
|
+
default: () => ""
|
2190
|
+
},
|
2191
|
+
/**
|
2192
|
+
* the input id
|
2193
|
+
*/
|
2194
|
+
inputId: {
|
2195
|
+
type: [String, Array, Object],
|
2196
|
+
default: () => ""
|
2197
|
+
},
|
2198
|
+
/**
|
2199
|
+
* the input placeholder
|
2200
|
+
*/
|
2201
|
+
Placeholder: {
|
2202
|
+
type: [String, Object, Function],
|
2203
|
+
default: () => ""
|
2204
|
+
}
|
2205
|
+
},
|
2206
|
+
data() {
|
2207
|
+
return {
|
2208
|
+
counter: 5,
|
2209
|
+
initCounter: 5,
|
2210
|
+
message: {
|
2211
|
+
action: null,
|
2212
|
+
amount: null
|
2213
|
+
},
|
2214
|
+
// vue3-reactive-tel-data
|
2215
|
+
phone: this.modelValue ? this.modelValue : "",
|
2216
|
+
activeCountryCode: "",
|
2217
|
+
open: !1,
|
2218
|
+
finishMounted: !1,
|
2219
|
+
selectedIndex: null,
|
2220
|
+
typeToFindInput: "",
|
2221
|
+
typeToFindTimer: null,
|
2222
|
+
dropdownOpenDirection: "below",
|
2223
|
+
parsedPlaceholder: this.Placeholder !== "" ? this.Placeholder : this.inputOptions.placeholder
|
2224
|
+
};
|
2225
|
+
},
|
2226
|
+
watch: {
|
2227
|
+
activeCountry(t, e) {
|
2228
|
+
if (!t && e != null && e.iso2) {
|
2229
|
+
this.activeCountryCode = e.iso2;
|
2230
|
+
return;
|
2231
|
+
}
|
2232
|
+
t != null && t.iso2 && this.$emit("country-changed", t);
|
2233
|
+
},
|
2234
|
+
"phoneObject.countryCode": function(t) {
|
2235
|
+
this.activeCountryCode = t;
|
2236
|
+
},
|
2237
|
+
"phoneObject.valid": function() {
|
2238
|
+
this.$emit("validate", this.phoneObject);
|
2239
|
+
},
|
2240
|
+
"phoneObject.formatted": function(t) {
|
2241
|
+
!this.autoFormat || this.customValidate || (this.emitInput(t), this.$nextTick(() => {
|
2242
|
+
t && !this.value && (this.phone = t);
|
2243
|
+
}));
|
2244
|
+
},
|
2245
|
+
// finishMounted() {
|
2246
|
+
// this.resetPlaceholder();
|
2247
|
+
// },
|
2248
|
+
"inputOptions.placeholder": function() {
|
2249
|
+
this.resetPlaceholder();
|
2250
|
+
},
|
2251
|
+
value(t, e) {
|
2252
|
+
this.testCharacters() ? this.phone = t : this.$nextTick(() => {
|
2253
|
+
this.phone = e, this.onInput();
|
2254
|
+
});
|
2255
|
+
},
|
2256
|
+
open(t) {
|
2257
|
+
t ? (this.setDropdownPosition(), this.$emit("open")) : this.$emit("close");
|
2258
|
+
}
|
2259
|
+
},
|
2260
|
+
mounted() {
|
2261
|
+
this.cleanInvalidCharacters(), this.initializeCountry().then(() => {
|
2262
|
+
var t;
|
2263
|
+
!this.phone && (t = this.inputOptions) != null && t.showDialCode && this.activeCountryCode && (this.phone = `+${this.activeCountryCode}`), this.$emit("validate", this.phoneObject);
|
2264
|
+
}).catch(console.error).then(() => {
|
2265
|
+
this.finishMounted = !0;
|
2266
|
+
});
|
2267
|
+
},
|
2268
|
+
computed: {
|
2269
|
+
activeCountry() {
|
2270
|
+
return this.findCountry(this.activeCountryCode);
|
2271
|
+
},
|
2272
|
+
activeCountryFlag() {
|
2273
|
+
return this.activeCountry ? this.activeCountry.flag : null;
|
2274
|
+
},
|
2275
|
+
parsedMode() {
|
2276
|
+
return this.mode === "auto" ? !this.phone || this.phone[0] !== "+" ? "national" : "international" : ["international", "national"].includes(this.mode) ? this.mode : (console.error('Invalid value of prop "mode"'), "international");
|
2277
|
+
},
|
2278
|
+
filteredCountries() {
|
2279
|
+
return this.onlyCountries.length ? this.allCountries.filter(({ iso2: t }) => this.onlyCountries.some((e) => e.toUpperCase() === t)) : this.ignoredCountries.length ? this.allCountries.filter(
|
2280
|
+
({ iso2: t }) => !this.ignoredCountries.includes(t.toUpperCase()) && !this.ignoredCountries.includes(t.toLowerCase())
|
2281
|
+
) : this.allCountries;
|
2282
|
+
},
|
2283
|
+
sortedCountries() {
|
2284
|
+
return [...this.getCountries(this.preferredCountries).map((t) => ({ ...t, preferred: !0 })), ...this.filteredCountries];
|
2285
|
+
},
|
2286
|
+
phoneObject() {
|
2287
|
+
var t, e, d;
|
2288
|
+
let n;
|
2289
|
+
((t = this.phone) == null ? void 0 : t[0]) === "+" ? n = rt(this.phone) || {} : n = rt(this.phone, this.activeCountryCode) || {};
|
2290
|
+
const {
|
2291
|
+
metadata: r,
|
2292
|
+
...o
|
2293
|
+
} = n;
|
2294
|
+
console.log(n);
|
2295
|
+
let i = (e = n.isValid) == null ? void 0 : e.call(n), s = this.phone;
|
2296
|
+
return i && (s = (d = n.format) == null ? void 0 : d.call(n, this.parsedMode.toUpperCase(), { nationalPrefix: !1 })), n.country && (this.ignoredCountries.length || this.onlyCountries.length) && (this.findCountry(n.country) || (i = !1, Object.assign(n, { country: null }))), Object.assign(o, {
|
2297
|
+
countryCode: n.country,
|
2298
|
+
valid: i,
|
2299
|
+
country: this.activeCountry,
|
2300
|
+
formatted: s
|
2301
|
+
}), o;
|
2302
|
+
},
|
2303
|
+
classes() {
|
2304
|
+
return this.phoneObject.valid === !0 ? this.goodClass : this.phoneObject.valid === !1 ? this.badClass : void 0;
|
2305
|
+
},
|
2306
|
+
styles() {
|
2307
|
+
return this.phoneObject.valid === !0 ? this.goodStyle : this.phoneObject.valid === !1 ? this.badStyle : void 0;
|
2308
|
+
},
|
2309
|
+
Iclasses() {
|
2310
|
+
return this.phoneObject.valid === !0 ? this.goodInputClass : this.phoneObject.valid === !1 ? this.badInputClass : void 0;
|
2311
|
+
},
|
2312
|
+
Istyles() {
|
2313
|
+
return this.phoneObject.valid === !0 ? this.goodInputStyle : this.phoneObject.valid === !1 ? this.badInputStyle : void 0;
|
2314
|
+
}
|
2315
|
+
},
|
2316
|
+
methods: {
|
2317
|
+
resetPlaceholder() {
|
2318
|
+
this.parsedPlaceholder = this.inputOptions.placeholder;
|
2319
|
+
},
|
2320
|
+
initializeCountry() {
|
2321
|
+
return new Promise((t) => {
|
2322
|
+
var e;
|
2323
|
+
if (((e = this.phone) == null ? void 0 : e[0]) === "+") {
|
2324
|
+
t();
|
2325
|
+
return;
|
2326
|
+
}
|
2327
|
+
if (this.defaultCountry) {
|
2328
|
+
this.choose(this.defaultCountry), t();
|
2329
|
+
return;
|
2330
|
+
}
|
2331
|
+
const d = this.preferredCountries[0] || this.filteredCountries[0];
|
2332
|
+
this.autoDefaultCountry ? ir().then((n) => {
|
2333
|
+
this.choose(n || this.activeCountryCode);
|
2334
|
+
}).catch((n) => {
|
2335
|
+
console.warn(n), this.choose(d);
|
2336
|
+
}).then(() => {
|
2337
|
+
t();
|
2338
|
+
}) : (this.choose(d), t());
|
2339
|
+
});
|
2340
|
+
},
|
2341
|
+
/**
|
2342
|
+
* Get the list of countries from the list of iso2 code
|
2343
|
+
*/
|
2344
|
+
getCountries(t = []) {
|
2345
|
+
return t.map((e) => this.findCountry(e)).filter(Boolean);
|
2346
|
+
},
|
2347
|
+
findCountry(t = "") {
|
2348
|
+
return this.filteredCountries.find((e) => e.iso2 === t.toUpperCase());
|
2349
|
+
},
|
2350
|
+
getItemClass(t, e) {
|
2351
|
+
const d = this.selectedIndex === t, n = t === this.preferredCountries.length - 1, r = this.preferredCountries.some((o) => o.toUpperCase() === e);
|
2352
|
+
return {
|
2353
|
+
highlighted: d,
|
2354
|
+
"last-preferred": n,
|
2355
|
+
preferred: r
|
2356
|
+
};
|
2357
|
+
},
|
2358
|
+
choose(t) {
|
2359
|
+
var e, d;
|
2360
|
+
let n = t;
|
2361
|
+
if (typeof n == "string" && (n = this.findCountry(n)), !!n) {
|
2362
|
+
if (((e = this.phone) == null ? void 0 : e[0]) === "+" && n.iso2 && this.phoneObject.nationalNumber) {
|
2363
|
+
this.activeCountryCode = n.iso2, this.phone = rt(
|
2364
|
+
this.phoneObject.nationalNumber,
|
2365
|
+
n.iso2
|
2366
|
+
).formatInternational();
|
2367
|
+
return;
|
2368
|
+
}
|
2369
|
+
if ((d = this.inputOptions) != null && d.showDialCode && n) {
|
2370
|
+
this.phone = `+${n.dialCode}`;
|
2371
|
+
return;
|
2372
|
+
}
|
2373
|
+
this.activeCountryCode = n.iso2, this.emitInput(this.phone);
|
2374
|
+
}
|
2375
|
+
},
|
2376
|
+
cleanInvalidCharacters() {
|
2377
|
+
const t = this.phone;
|
2378
|
+
if (this.validCharactersOnly) {
|
2379
|
+
const e = this.phone.match(/[()\-+0-9\s]*/g);
|
2380
|
+
this.phone = e.join("");
|
2381
|
+
}
|
2382
|
+
if (this.customValidate && this.customValidate instanceof RegExp) {
|
2383
|
+
const e = this.phone.match(this.customValidate);
|
2384
|
+
this.phone = e.join("");
|
2385
|
+
}
|
2386
|
+
t !== this.phone && this.emitInput(this.phone);
|
2387
|
+
},
|
2388
|
+
testCharacters() {
|
2389
|
+
return this.validCharactersOnly && !/^[()\-+0-9\s]*$/.test(this.phone) ? !1 : this.customValidate ? this.testCustomValidate() : !0;
|
2390
|
+
},
|
2391
|
+
testCustomValidate() {
|
2392
|
+
return this.customValidate instanceof RegExp ? this.customValidate.test(this.phone) : !1;
|
2393
|
+
},
|
2394
|
+
onInput() {
|
2395
|
+
this.$refs.input.setCustomValidity(this.phoneObject.valid ? "" : this.invalidMsg), this.emitInput(this.phoneObject);
|
2396
|
+
},
|
2397
|
+
emitInput(t) {
|
2398
|
+
this.$emit("update:modelValue", t);
|
2399
|
+
},
|
2400
|
+
onBlur() {
|
2401
|
+
this.$emit("blur");
|
2402
|
+
},
|
2403
|
+
onFocus() {
|
2404
|
+
ar(this.$refs.input, this.phone.length), this.$emit("focus");
|
2405
|
+
},
|
2406
|
+
onEnter() {
|
2407
|
+
this.$emit("enter");
|
2408
|
+
},
|
2409
|
+
onSpace() {
|
2410
|
+
this.$emit("space");
|
2411
|
+
},
|
2412
|
+
focus() {
|
2413
|
+
this.$refs.input.focus();
|
2414
|
+
},
|
2415
|
+
toggleDropdown() {
|
2416
|
+
this.disabled || (this.open = !this.open);
|
2417
|
+
},
|
2418
|
+
clickedOutside() {
|
2419
|
+
this.open = !1;
|
2420
|
+
},
|
2421
|
+
keyboardNav(t) {
|
2422
|
+
if (t.keyCode === 40) {
|
2423
|
+
t.preventDefault(), this.open = !0, this.selectedIndex === null ? this.selectedIndex = 0 : this.selectedIndex = Math.min(this.sortedCountries.length - 1, this.selectedIndex + 1);
|
2424
|
+
const e = this.$refs.list.children[this.selectedIndex];
|
2425
|
+
e.offsetTop + e.clientHeight > this.$refs.list.scrollTop + this.$refs.list.clientHeight && (this.$refs.list.scrollTop = e.offsetTop - this.$refs.list.clientHeight + e.clientHeight);
|
2426
|
+
} else if (t.keyCode === 38) {
|
2427
|
+
t.preventDefault(), this.open = !0, this.selectedIndex === null ? this.selectedIndex = this.sortedCountries.length - 1 : this.selectedIndex = Math.max(0, this.selectedIndex - 1);
|
2428
|
+
const e = this.$refs.list.children[this.selectedIndex];
|
2429
|
+
e.offsetTop < this.$refs.list.scrollTop && (this.$refs.list.scrollTop = e.offsetTop);
|
2430
|
+
} else if (t.keyCode === 13)
|
2431
|
+
this.selectedIndex !== null && this.choose(this.sortedCountries[this.selectedIndex]), this.open = !this.open;
|
2432
|
+
else {
|
2433
|
+
this.typeToFindInput += t.key, clearTimeout(this.typeToFindTimer), this.typeToFindTimer = setTimeout(() => {
|
2434
|
+
this.typeToFindInput = "";
|
2435
|
+
}, 700);
|
2436
|
+
const e = this.sortedCountries.slice(this.preferredCountries.length).findIndex((d) => d.name.toLowerCase().startsWith(this.typeToFindInput));
|
2437
|
+
if (e >= 0) {
|
2438
|
+
this.selectedIndex = this.preferredCountries.length + e;
|
2439
|
+
const d = this.$refs.list.children[this.selectedIndex], n = d.offsetTop < this.$refs.list.scrollTop, r = d.offsetTop + d.clientHeight > this.$refs.list.scrollTop + this.$refs.list.clientHeight;
|
2440
|
+
(n || r) && (this.$refs.list.scrollTop = d.offsetTop - this.$refs.list.clientHeight / 2);
|
2441
|
+
}
|
2442
|
+
}
|
2443
|
+
},
|
2444
|
+
reset() {
|
2445
|
+
this.selectedIndex = this.sortedCountries.map((t) => t.iso2).indexOf(this.activeCountryCode), this.open = !1;
|
2446
|
+
},
|
2447
|
+
setDropdownPosition() {
|
2448
|
+
window.innerHeight - this.$refs.rootElement.getBoundingClientRect().bottom > 200 ? this.dropdownOpenDirection = "below" : this.dropdownOpenDirection = "above";
|
2449
|
+
}
|
2450
|
+
}
|
2451
|
+
});
|
2452
|
+
/*!
|
2453
|
+
* vue-router v4.2.5
|
2454
|
+
* (c) 2023 Eduardo San Martin Morote
|
2455
|
+
* @license MIT
|
2456
|
+
*/
|
2457
|
+
var se;
|
2458
|
+
(function(t) {
|
2459
|
+
t.pop = "pop", t.push = "push";
|
2460
|
+
})(se || (se = {}));
|
2461
|
+
var $e;
|
2462
|
+
(function(t) {
|
2463
|
+
t.back = "back", t.forward = "forward", t.unknown = "";
|
2464
|
+
})($e || ($e = {}));
|
2465
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
2466
|
+
var ue;
|
2467
|
+
(function(t) {
|
2468
|
+
t[t.aborted = 4] = "aborted", t[t.cancelled = 8] = "cancelled", t[t.duplicated = 16] = "duplicated";
|
2469
|
+
})(ue || (ue = {}));
|
2470
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
2471
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
2472
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
2473
|
+
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
2474
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
2475
|
+
process.env.NODE_ENV;
|
2476
|
+
const ur = (t) => typeof t == "number" && isFinite(t), Et = Object.assign;
|
2477
|
+
let le;
|
2478
|
+
const Pt = () => le || (le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
2479
|
+
/*!
|
2480
|
+
* core-base v9.8.0
|
2481
|
+
* (c) 2023 kazuya kawaguchi
|
2482
|
+
* Released under the MIT License.
|
2483
|
+
*/
|
2484
|
+
function lr() {
|
2485
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Pt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
2486
|
+
}
|
2487
|
+
lr();
|
2488
|
+
function cr() {
|
2489
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Pt().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
2490
|
+
}
|
2491
|
+
const Nt = {
|
2492
|
+
tag: {
|
2493
|
+
type: [String, Object]
|
2494
|
+
},
|
2495
|
+
locale: {
|
2496
|
+
type: String
|
2497
|
+
},
|
2498
|
+
scope: {
|
2499
|
+
type: String,
|
2500
|
+
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
2501
|
+
validator: (t) => t === "parent" || t === "global",
|
2502
|
+
default: "parent"
|
2503
|
+
/* ComponentI18nScope */
|
2504
|
+
},
|
2505
|
+
i18n: {
|
2506
|
+
type: Object
|
2507
|
+
}
|
2508
|
+
};
|
2509
|
+
Et({
|
2510
|
+
keypath: {
|
2511
|
+
type: String,
|
2512
|
+
required: !0
|
2513
|
+
},
|
2514
|
+
plural: {
|
2515
|
+
type: [Number, String],
|
2516
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2517
|
+
validator: (t) => ur(t) || !isNaN(t)
|
2518
|
+
}
|
2519
|
+
}, Nt);
|
2520
|
+
Et({
|
2521
|
+
value: {
|
2522
|
+
type: Number,
|
2523
|
+
required: !0
|
2524
|
+
},
|
2525
|
+
format: {
|
2526
|
+
type: [String, Object]
|
2527
|
+
}
|
2528
|
+
}, Nt);
|
2529
|
+
Et({
|
2530
|
+
value: {
|
2531
|
+
type: [Number, Date],
|
2532
|
+
required: !0
|
2533
|
+
},
|
2534
|
+
format: {
|
2535
|
+
type: [String, Object]
|
2536
|
+
}
|
2537
|
+
}, Nt);
|
2538
|
+
cr();
|
2539
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
2540
|
+
const t = Pt();
|
2541
|
+
t.__INTLIFY__ = !0, t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__;
|
2542
|
+
}
|
2543
|
+
process.env.NODE_ENV;
|
2544
|
+
function Ie(t, e) {
|
2545
|
+
return function() {
|
2546
|
+
return t.apply(e, arguments);
|
2547
|
+
};
|
2548
|
+
}
|
2549
|
+
const { toString: fr } = Object.prototype, { getPrototypeOf: Tt } = Object, Y = ((t) => (e) => {
|
2550
|
+
const d = fr.call(e);
|
2551
|
+
return t[d] || (t[d] = d.slice(8, -1).toLowerCase());
|
2552
|
+
})(/* @__PURE__ */ Object.create(null)), E = (t) => (t = t.toLowerCase(), (e) => Y(e) === t), Z = (t) => (e) => typeof e === t, { isArray: j } = Array, F = Z("undefined");
|
2553
|
+
function hr(t) {
|
2554
|
+
return t !== null && !F(t) && t.constructor !== null && !F(t.constructor) && C(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
2555
|
+
}
|
2556
|
+
const Re = E("ArrayBuffer");
|
2557
|
+
function pr(t) {
|
2558
|
+
let e;
|
2559
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Re(t.buffer), e;
|
2560
|
+
}
|
2561
|
+
const mr = Z("string"), C = Z("function"), je = Z("number"), X = (t) => t !== null && typeof t == "object", yr = (t) => t === !0 || t === !1, G = (t) => {
|
2562
|
+
if (Y(t) !== "object")
|
2563
|
+
return !1;
|
2564
|
+
const e = Tt(t);
|
2565
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
2566
|
+
}, gr = E("Date"), br = E("File"), vr = E("Blob"), Or = E("FileList"), Cr = (t) => X(t) && C(t.pipe), wr = (t) => {
|
2567
|
+
let e;
|
2568
|
+
return t && (typeof FormData == "function" && t instanceof FormData || C(t.append) && ((e = Y(t)) === "formdata" || // detect form-data instance
|
2569
|
+
e === "object" && C(t.toString) && t.toString() === "[object FormData]"));
|
2570
|
+
}, Sr = E("URLSearchParams"), Er = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
2571
|
+
function M(t, e, { allOwnKeys: d = !1 } = {}) {
|
2572
|
+
if (t === null || typeof t > "u")
|
2573
|
+
return;
|
2574
|
+
let n, r;
|
2575
|
+
if (typeof t != "object" && (t = [t]), j(t))
|
2576
|
+
for (n = 0, r = t.length; n < r; n++)
|
2577
|
+
e.call(null, t[n], n, t);
|
2578
|
+
else {
|
2579
|
+
const o = d ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length;
|
2580
|
+
let s;
|
2581
|
+
for (n = 0; n < i; n++)
|
2582
|
+
s = o[n], e.call(null, t[s], s, t);
|
2583
|
+
}
|
2584
|
+
}
|
2585
|
+
function xe(t, e) {
|
2586
|
+
e = e.toLowerCase();
|
2587
|
+
const d = Object.keys(t);
|
2588
|
+
let n = d.length, r;
|
2589
|
+
for (; n-- > 0; )
|
2590
|
+
if (r = d[n], e === r.toLowerCase())
|
2591
|
+
return r;
|
2592
|
+
return null;
|
2593
|
+
}
|
2594
|
+
const De = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), _e = (t) => !F(t) && t !== De;
|
2595
|
+
function pt() {
|
2596
|
+
const { caseless: t } = _e(this) && this || {}, e = {}, d = (n, r) => {
|
2597
|
+
const o = t && xe(e, r) || r;
|
2598
|
+
G(e[o]) && G(n) ? e[o] = pt(e[o], n) : G(n) ? e[o] = pt({}, n) : j(n) ? e[o] = n.slice() : e[o] = n;
|
2599
|
+
};
|
2600
|
+
for (let n = 0, r = arguments.length; n < r; n++)
|
2601
|
+
arguments[n] && M(arguments[n], d);
|
2602
|
+
return e;
|
2603
|
+
}
|
2604
|
+
const Pr = (t, e, d, { allOwnKeys: n } = {}) => (M(e, (r, o) => {
|
2605
|
+
d && C(r) ? t[o] = Ie(r, d) : t[o] = r;
|
2606
|
+
}, { allOwnKeys: n }), t), Nr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Tr = (t, e, d, n) => {
|
2607
|
+
t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
2608
|
+
value: e.prototype
|
2609
|
+
}), d && Object.assign(t.prototype, d);
|
2610
|
+
}, Ar = (t, e, d, n) => {
|
2611
|
+
let r, o, i;
|
2612
|
+
const s = {};
|
2613
|
+
if (e = e || {}, t == null)
|
2614
|
+
return e;
|
2615
|
+
do {
|
2616
|
+
for (r = Object.getOwnPropertyNames(t), o = r.length; o-- > 0; )
|
2617
|
+
i = r[o], (!n || n(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
2618
|
+
t = d !== !1 && Tt(t);
|
2619
|
+
} while (t && (!d || d(t, e)) && t !== Object.prototype);
|
2620
|
+
return e;
|
2621
|
+
}, Ir = (t, e, d) => {
|
2622
|
+
t = String(t), (d === void 0 || d > t.length) && (d = t.length), d -= e.length;
|
2623
|
+
const n = t.indexOf(e, d);
|
2624
|
+
return n !== -1 && n === d;
|
2625
|
+
}, Rr = (t) => {
|
2626
|
+
if (!t)
|
2627
|
+
return null;
|
2628
|
+
if (j(t))
|
2629
|
+
return t;
|
2630
|
+
let e = t.length;
|
2631
|
+
if (!je(e))
|
2632
|
+
return null;
|
2633
|
+
const d = new Array(e);
|
2634
|
+
for (; e-- > 0; )
|
2635
|
+
d[e] = t[e];
|
2636
|
+
return d;
|
2637
|
+
}, jr = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Tt(Uint8Array)), xr = (t, e) => {
|
2638
|
+
const d = (t && t[Symbol.iterator]).call(t);
|
2639
|
+
let n;
|
2640
|
+
for (; (n = d.next()) && !n.done; ) {
|
2641
|
+
const r = n.value;
|
2642
|
+
e.call(t, r[0], r[1]);
|
2643
|
+
}
|
2644
|
+
}, Dr = (t, e) => {
|
2645
|
+
let d;
|
2646
|
+
const n = [];
|
2647
|
+
for (; (d = t.exec(e)) !== null; )
|
2648
|
+
n.push(d);
|
2649
|
+
return n;
|
2650
|
+
}, _r = E("HTMLFormElement"), Lr = (t) => t.toLowerCase().replace(
|
2651
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
2652
|
+
function(e, d, n) {
|
2653
|
+
return d.toUpperCase() + n;
|
2654
|
+
}
|
2655
|
+
), ce = (({ hasOwnProperty: t }) => (e, d) => t.call(e, d))(Object.prototype), Fr = E("RegExp"), Le = (t, e) => {
|
2656
|
+
const d = Object.getOwnPropertyDescriptors(t), n = {};
|
2657
|
+
M(d, (r, o) => {
|
2658
|
+
let i;
|
2659
|
+
(i = e(r, o, t)) !== !1 && (n[o] = i || r);
|
2660
|
+
}), Object.defineProperties(t, n);
|
2661
|
+
}, Mr = (t) => {
|
2662
|
+
Le(t, (e, d) => {
|
2663
|
+
if (C(t) && ["arguments", "caller", "callee"].indexOf(d) !== -1)
|
2664
|
+
return !1;
|
2665
|
+
const n = t[d];
|
2666
|
+
if (C(n)) {
|
2667
|
+
if (e.enumerable = !1, "writable" in e) {
|
2668
|
+
e.writable = !1;
|
2669
|
+
return;
|
2670
|
+
}
|
2671
|
+
e.set || (e.set = () => {
|
2672
|
+
throw Error("Can not rewrite read-only method '" + d + "'");
|
2673
|
+
});
|
2674
|
+
}
|
2675
|
+
});
|
2676
|
+
}, kr = (t, e) => {
|
2677
|
+
const d = {}, n = (r) => {
|
2678
|
+
r.forEach((o) => {
|
2679
|
+
d[o] = !0;
|
2680
|
+
});
|
2681
|
+
};
|
2682
|
+
return j(t) ? n(t) : n(String(t).split(e)), d;
|
2683
|
+
}, Br = () => {
|
2684
|
+
}, Ur = (t, e) => (t = +t, Number.isFinite(t) ? t : e), ot = "abcdefghijklmnopqrstuvwxyz", fe = "0123456789", Fe = {
|
2685
|
+
DIGIT: fe,
|
2686
|
+
ALPHA: ot,
|
2687
|
+
ALPHA_DIGIT: ot + ot.toUpperCase() + fe
|
2688
|
+
}, Gr = (t = 16, e = Fe.ALPHA_DIGIT) => {
|
2689
|
+
let d = "";
|
2690
|
+
const { length: n } = e;
|
2691
|
+
for (; t--; )
|
2692
|
+
d += e[Math.random() * n | 0];
|
2693
|
+
return d;
|
2694
|
+
};
|
2695
|
+
function Vr(t) {
|
2696
|
+
return !!(t && C(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
2697
|
+
}
|
2698
|
+
const Hr = (t) => {
|
2699
|
+
const e = new Array(10), d = (n, r) => {
|
2700
|
+
if (X(n)) {
|
2701
|
+
if (e.indexOf(n) >= 0)
|
2702
|
+
return;
|
2703
|
+
if (!("toJSON" in n)) {
|
2704
|
+
e[r] = n;
|
2705
|
+
const o = j(n) ? [] : {};
|
2706
|
+
return M(n, (i, s) => {
|
2707
|
+
const u = d(i, r + 1);
|
2708
|
+
!F(u) && (o[s] = u);
|
2709
|
+
}), e[r] = void 0, o;
|
2710
|
+
}
|
2711
|
+
}
|
2712
|
+
return n;
|
2713
|
+
};
|
2714
|
+
return d(t, 0);
|
2715
|
+
}, Kr = E("AsyncFunction"), Wr = (t) => t && (X(t) || C(t)) && C(t.then) && C(t.catch), a = {
|
2716
|
+
isArray: j,
|
2717
|
+
isArrayBuffer: Re,
|
2718
|
+
isBuffer: hr,
|
2719
|
+
isFormData: wr,
|
2720
|
+
isArrayBufferView: pr,
|
2721
|
+
isString: mr,
|
2722
|
+
isNumber: je,
|
2723
|
+
isBoolean: yr,
|
2724
|
+
isObject: X,
|
2725
|
+
isPlainObject: G,
|
2726
|
+
isUndefined: F,
|
2727
|
+
isDate: gr,
|
2728
|
+
isFile: br,
|
2729
|
+
isBlob: vr,
|
2730
|
+
isRegExp: Fr,
|
2731
|
+
isFunction: C,
|
2732
|
+
isStream: Cr,
|
2733
|
+
isURLSearchParams: Sr,
|
2734
|
+
isTypedArray: jr,
|
2735
|
+
isFileList: Or,
|
2736
|
+
forEach: M,
|
2737
|
+
merge: pt,
|
2738
|
+
extend: Pr,
|
2739
|
+
trim: Er,
|
2740
|
+
stripBOM: Nr,
|
2741
|
+
inherits: Tr,
|
2742
|
+
toFlatObject: Ar,
|
2743
|
+
kindOf: Y,
|
2744
|
+
kindOfTest: E,
|
2745
|
+
endsWith: Ir,
|
2746
|
+
toArray: Rr,
|
2747
|
+
forEachEntry: xr,
|
2748
|
+
matchAll: Dr,
|
2749
|
+
isHTMLForm: _r,
|
2750
|
+
hasOwnProperty: ce,
|
2751
|
+
hasOwnProp: ce,
|
2752
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
2753
|
+
reduceDescriptors: Le,
|
2754
|
+
freezeMethods: Mr,
|
2755
|
+
toObjectSet: kr,
|
2756
|
+
toCamelCase: Lr,
|
2757
|
+
noop: Br,
|
2758
|
+
toFiniteNumber: Ur,
|
2759
|
+
findKey: xe,
|
2760
|
+
global: De,
|
2761
|
+
isContextDefined: _e,
|
2762
|
+
ALPHABET: Fe,
|
2763
|
+
generateString: Gr,
|
2764
|
+
isSpecCompliantForm: Vr,
|
2765
|
+
toJSONObject: Hr,
|
2766
|
+
isAsyncFn: Kr,
|
2767
|
+
isThenable: Wr
|
2768
|
+
};
|
2769
|
+
function p(t, e, d, n, r) {
|
2770
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), d && (this.config = d), n && (this.request = n), r && (this.response = r);
|
2771
|
+
}
|
2772
|
+
a.inherits(p, Error, {
|
2773
|
+
toJSON: function() {
|
2774
|
+
return {
|
2775
|
+
// Standard
|
2776
|
+
message: this.message,
|
2777
|
+
name: this.name,
|
2778
|
+
// Microsoft
|
2779
|
+
description: this.description,
|
2780
|
+
number: this.number,
|
2781
|
+
// Mozilla
|
2782
|
+
fileName: this.fileName,
|
2783
|
+
lineNumber: this.lineNumber,
|
2784
|
+
columnNumber: this.columnNumber,
|
2785
|
+
stack: this.stack,
|
2786
|
+
// Axios
|
2787
|
+
config: a.toJSONObject(this.config),
|
2788
|
+
code: this.code,
|
2789
|
+
status: this.response && this.response.status ? this.response.status : null
|
2790
|
+
};
|
2791
|
+
}
|
2792
|
+
});
|
2793
|
+
const Me = p.prototype, ke = {};
|
2794
|
+
[
|
2795
|
+
"ERR_BAD_OPTION_VALUE",
|
2796
|
+
"ERR_BAD_OPTION",
|
2797
|
+
"ECONNABORTED",
|
2798
|
+
"ETIMEDOUT",
|
2799
|
+
"ERR_NETWORK",
|
2800
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
2801
|
+
"ERR_DEPRECATED",
|
2802
|
+
"ERR_BAD_RESPONSE",
|
2803
|
+
"ERR_BAD_REQUEST",
|
2804
|
+
"ERR_CANCELED",
|
2805
|
+
"ERR_NOT_SUPPORT",
|
2806
|
+
"ERR_INVALID_URL"
|
2807
|
+
// eslint-disable-next-line func-names
|
2808
|
+
].forEach((t) => {
|
2809
|
+
ke[t] = { value: t };
|
2810
|
+
});
|
2811
|
+
Object.defineProperties(p, ke);
|
2812
|
+
Object.defineProperty(Me, "isAxiosError", { value: !0 });
|
2813
|
+
p.from = (t, e, d, n, r, o) => {
|
2814
|
+
const i = Object.create(Me);
|
2815
|
+
return a.toFlatObject(t, i, function(s) {
|
2816
|
+
return s !== Error.prototype;
|
2817
|
+
}, (s) => s !== "isAxiosError"), p.call(i, t.message, e, d, n, r), i.cause = t, i.name = t.name, o && Object.assign(i, o), i;
|
2818
|
+
};
|
2819
|
+
const zr = null;
|
2820
|
+
function mt(t) {
|
2821
|
+
return a.isPlainObject(t) || a.isArray(t);
|
2822
|
+
}
|
2823
|
+
function Be(t) {
|
2824
|
+
return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
2825
|
+
}
|
2826
|
+
function he(t, e, d) {
|
2827
|
+
return t ? t.concat(e).map(function(n, r) {
|
2828
|
+
return n = Be(n), !d && r ? "[" + n + "]" : n;
|
2829
|
+
}).join(d ? "." : "") : e;
|
2830
|
+
}
|
2831
|
+
function qr(t) {
|
2832
|
+
return a.isArray(t) && !t.some(mt);
|
2833
|
+
}
|
2834
|
+
const Jr = a.toFlatObject(a, {}, null, function(t) {
|
2835
|
+
return /^is[A-Z]/.test(t);
|
2836
|
+
});
|
2837
|
+
function Q(t, e, d) {
|
2838
|
+
if (!a.isObject(t))
|
2839
|
+
throw new TypeError("target must be an object");
|
2840
|
+
e = e || new FormData(), d = a.toFlatObject(d, {
|
2841
|
+
metaTokens: !0,
|
2842
|
+
dots: !1,
|
2843
|
+
indexes: !1
|
2844
|
+
}, !1, function(h, c) {
|
2845
|
+
return !a.isUndefined(c[h]);
|
2846
|
+
});
|
2847
|
+
const n = d.metaTokens, r = d.visitor || l, o = d.dots, i = d.indexes, s = (d.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
|
2848
|
+
if (!a.isFunction(r))
|
2849
|
+
throw new TypeError("visitor must be a function");
|
2850
|
+
function u(h) {
|
2851
|
+
if (h === null)
|
2852
|
+
return "";
|
2853
|
+
if (a.isDate(h))
|
2854
|
+
return h.toISOString();
|
2855
|
+
if (!s && a.isBlob(h))
|
2856
|
+
throw new p("Blob is not supported. Use a Buffer instead.");
|
2857
|
+
return a.isArrayBuffer(h) || a.isTypedArray(h) ? s && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
2858
|
+
}
|
2859
|
+
function l(h, c, y) {
|
2860
|
+
let b = h;
|
2861
|
+
if (h && !y && typeof h == "object") {
|
2862
|
+
if (a.endsWith(c, "{}"))
|
2863
|
+
c = n ? c : c.slice(0, -2), h = JSON.stringify(h);
|
2864
|
+
else if (a.isArray(h) && qr(h) || (a.isFileList(h) || a.endsWith(c, "[]")) && (b = a.toArray(h)))
|
2865
|
+
return c = Be(c), b.forEach(function(x, et) {
|
2866
|
+
!(a.isUndefined(x) || x === null) && e.append(
|
2867
|
+
// eslint-disable-next-line no-nested-ternary
|
2868
|
+
i === !0 ? he([c], et, o) : i === null ? c : c + "[]",
|
2869
|
+
u(x)
|
2870
|
+
);
|
2871
|
+
}), !1;
|
2872
|
+
}
|
2873
|
+
return mt(h) ? !0 : (e.append(he(y, c, o), u(h)), !1);
|
2874
|
+
}
|
2875
|
+
const $ = [], f = Object.assign(Jr, {
|
2876
|
+
defaultVisitor: l,
|
2877
|
+
convertValue: u,
|
2878
|
+
isVisitable: mt
|
2879
|
+
});
|
2880
|
+
function m(h, c) {
|
2881
|
+
if (!a.isUndefined(h)) {
|
2882
|
+
if ($.indexOf(h) !== -1)
|
2883
|
+
throw Error("Circular reference detected in " + c.join("."));
|
2884
|
+
$.push(h), a.forEach(h, function(y, b) {
|
2885
|
+
(!(a.isUndefined(y) || y === null) && r.call(
|
2886
|
+
e,
|
2887
|
+
y,
|
2888
|
+
a.isString(b) ? b.trim() : b,
|
2889
|
+
c,
|
2890
|
+
f
|
2891
|
+
)) === !0 && m(y, c ? c.concat(b) : [b]);
|
2892
|
+
}), $.pop();
|
2893
|
+
}
|
2894
|
+
}
|
2895
|
+
if (!a.isObject(t))
|
2896
|
+
throw new TypeError("data must be an object");
|
2897
|
+
return m(t), e;
|
2898
|
+
}
|
2899
|
+
function pe(t) {
|
2900
|
+
const e = {
|
2901
|
+
"!": "%21",
|
2902
|
+
"'": "%27",
|
2903
|
+
"(": "%28",
|
2904
|
+
")": "%29",
|
2905
|
+
"~": "%7E",
|
2906
|
+
"%20": "+",
|
2907
|
+
"%00": "\0"
|
2908
|
+
};
|
2909
|
+
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(d) {
|
2910
|
+
return e[d];
|
2911
|
+
});
|
2912
|
+
}
|
2913
|
+
function At(t, e) {
|
2914
|
+
this._pairs = [], t && Q(t, this, e);
|
2915
|
+
}
|
2916
|
+
const Ue = At.prototype;
|
2917
|
+
Ue.append = function(t, e) {
|
2918
|
+
this._pairs.push([t, e]);
|
2919
|
+
};
|
2920
|
+
Ue.toString = function(t) {
|
2921
|
+
const e = t ? function(d) {
|
2922
|
+
return t.call(this, d, pe);
|
2923
|
+
} : pe;
|
2924
|
+
return this._pairs.map(function(d) {
|
2925
|
+
return e(d[0]) + "=" + e(d[1]);
|
2926
|
+
}, "").join("&");
|
2927
|
+
};
|
2928
|
+
function Yr(t) {
|
2929
|
+
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
2930
|
+
}
|
2931
|
+
function Ge(t, e, d) {
|
2932
|
+
if (!e)
|
2933
|
+
return t;
|
2934
|
+
const n = d && d.encode || Yr, r = d && d.serialize;
|
2935
|
+
let o;
|
2936
|
+
if (r ? o = r(e, d) : o = a.isURLSearchParams(e) ? e.toString() : new At(e, d).toString(n), o) {
|
2937
|
+
const i = t.indexOf("#");
|
2938
|
+
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
2939
|
+
}
|
2940
|
+
return t;
|
2941
|
+
}
|
2942
|
+
class Zr {
|
2943
|
+
constructor() {
|
2944
|
+
this.handlers = [];
|
2945
|
+
}
|
2946
|
+
/**
|
2947
|
+
* Add a new interceptor to the stack
|
2948
|
+
*
|
2949
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
2950
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
2951
|
+
*
|
2952
|
+
* @return {Number} An ID used to remove interceptor later
|
2953
|
+
*/
|
2954
|
+
use(e, d, n) {
|
2955
|
+
return this.handlers.push({
|
2956
|
+
fulfilled: e,
|
2957
|
+
rejected: d,
|
2958
|
+
synchronous: n ? n.synchronous : !1,
|
2959
|
+
runWhen: n ? n.runWhen : null
|
2960
|
+
}), this.handlers.length - 1;
|
2961
|
+
}
|
2962
|
+
/**
|
2963
|
+
* Remove an interceptor from the stack
|
2964
|
+
*
|
2965
|
+
* @param {Number} id The ID that was returned by `use`
|
2966
|
+
*
|
2967
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
2968
|
+
*/
|
2969
|
+
eject(e) {
|
2970
|
+
this.handlers[e] && (this.handlers[e] = null);
|
2971
|
+
}
|
2972
|
+
/**
|
2973
|
+
* Clear all interceptors from the stack
|
2974
|
+
*
|
2975
|
+
* @returns {void}
|
2976
|
+
*/
|
2977
|
+
clear() {
|
2978
|
+
this.handlers && (this.handlers = []);
|
2979
|
+
}
|
2980
|
+
/**
|
2981
|
+
* Iterate over all the registered interceptors
|
2982
|
+
*
|
2983
|
+
* This method is particularly useful for skipping over any
|
2984
|
+
* interceptors that may have become `null` calling `eject`.
|
2985
|
+
*
|
2986
|
+
* @param {Function} fn The function to call for each interceptor
|
2987
|
+
*
|
2988
|
+
* @returns {void}
|
2989
|
+
*/
|
2990
|
+
forEach(e) {
|
2991
|
+
a.forEach(this.handlers, function(d) {
|
2992
|
+
d !== null && e(d);
|
2993
|
+
});
|
2994
|
+
}
|
2995
|
+
}
|
2996
|
+
const me = Zr, Ve = {
|
2997
|
+
silentJSONParsing: !0,
|
2998
|
+
forcedJSONParsing: !0,
|
2999
|
+
clarifyTimeoutError: !1
|
3000
|
+
}, Xr = typeof URLSearchParams < "u" ? URLSearchParams : At, Qr = typeof FormData < "u" ? FormData : null, t0 = typeof Blob < "u" ? Blob : null, e0 = {
|
3001
|
+
isBrowser: !0,
|
3002
|
+
classes: {
|
3003
|
+
URLSearchParams: Xr,
|
3004
|
+
FormData: Qr,
|
3005
|
+
Blob: t0
|
3006
|
+
},
|
3007
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
3008
|
+
}, He = typeof window < "u" && typeof document < "u", d0 = ((t) => He && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), n0 = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
3009
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), r0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3010
|
+
__proto__: null,
|
3011
|
+
hasBrowserEnv: He,
|
3012
|
+
hasStandardBrowserEnv: d0,
|
3013
|
+
hasStandardBrowserWebWorkerEnv: n0
|
3014
|
+
}, Symbol.toStringTag, { value: "Module" })), S = {
|
3015
|
+
...r0,
|
3016
|
+
...e0
|
3017
|
+
};
|
3018
|
+
function o0(t, e) {
|
3019
|
+
return Q(t, new S.classes.URLSearchParams(), Object.assign({
|
3020
|
+
visitor: function(d, n, r, o) {
|
3021
|
+
return S.isNode && a.isBuffer(d) ? (this.append(n, d.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
3022
|
+
}
|
3023
|
+
}, e));
|
3024
|
+
}
|
3025
|
+
function i0(t) {
|
3026
|
+
return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
3027
|
+
}
|
3028
|
+
function a0(t) {
|
3029
|
+
const e = {}, d = Object.keys(t);
|
3030
|
+
let n;
|
3031
|
+
const r = d.length;
|
3032
|
+
let o;
|
3033
|
+
for (n = 0; n < r; n++)
|
3034
|
+
o = d[n], e[o] = t[o];
|
3035
|
+
return e;
|
3036
|
+
}
|
3037
|
+
function Ke(t) {
|
3038
|
+
function e(d, n, r, o) {
|
3039
|
+
let i = d[o++];
|
3040
|
+
const s = Number.isFinite(+i), u = o >= d.length;
|
3041
|
+
return i = !i && a.isArray(r) ? r.length : i, u ? (a.hasOwnProp(r, i) ? r[i] = [r[i], n] : r[i] = n, !s) : ((!r[i] || !a.isObject(r[i])) && (r[i] = []), e(d, n, r[i], o) && a.isArray(r[i]) && (r[i] = a0(r[i])), !s);
|
3042
|
+
}
|
3043
|
+
if (a.isFormData(t) && a.isFunction(t.entries)) {
|
3044
|
+
const d = {};
|
3045
|
+
return a.forEachEntry(t, (n, r) => {
|
3046
|
+
e(i0(n), r, d, 0);
|
3047
|
+
}), d;
|
3048
|
+
}
|
3049
|
+
return null;
|
3050
|
+
}
|
3051
|
+
function s0(t, e, d) {
|
3052
|
+
if (a.isString(t))
|
3053
|
+
try {
|
3054
|
+
return (e || JSON.parse)(t), a.trim(t);
|
3055
|
+
} catch (n) {
|
3056
|
+
if (n.name !== "SyntaxError")
|
3057
|
+
throw n;
|
3058
|
+
}
|
3059
|
+
return (d || JSON.stringify)(t);
|
3060
|
+
}
|
3061
|
+
const It = {
|
3062
|
+
transitional: Ve,
|
3063
|
+
adapter: ["xhr", "http"],
|
3064
|
+
transformRequest: [function(t, e) {
|
3065
|
+
const d = e.getContentType() || "", n = d.indexOf("application/json") > -1, r = a.isObject(t);
|
3066
|
+
if (r && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
3067
|
+
return n && n ? JSON.stringify(Ke(t)) : t;
|
3068
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
3069
|
+
return t;
|
3070
|
+
if (a.isArrayBufferView(t))
|
3071
|
+
return t.buffer;
|
3072
|
+
if (a.isURLSearchParams(t))
|
3073
|
+
return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
3074
|
+
let o;
|
3075
|
+
if (r) {
|
3076
|
+
if (d.indexOf("application/x-www-form-urlencoded") > -1)
|
3077
|
+
return o0(t, this.formSerializer).toString();
|
3078
|
+
if ((o = a.isFileList(t)) || d.indexOf("multipart/form-data") > -1) {
|
3079
|
+
const i = this.env && this.env.FormData;
|
3080
|
+
return Q(
|
3081
|
+
o ? { "files[]": t } : t,
|
3082
|
+
i && new i(),
|
3083
|
+
this.formSerializer
|
3084
|
+
);
|
3085
|
+
}
|
3086
|
+
}
|
3087
|
+
return r || n ? (e.setContentType("application/json", !1), s0(t)) : t;
|
3088
|
+
}],
|
3089
|
+
transformResponse: [function(t) {
|
3090
|
+
const e = this.transitional || It.transitional, d = e && e.forcedJSONParsing, n = this.responseType === "json";
|
3091
|
+
if (t && a.isString(t) && (d && !this.responseType || n)) {
|
3092
|
+
const r = !(e && e.silentJSONParsing) && n;
|
3093
|
+
try {
|
3094
|
+
return JSON.parse(t);
|
3095
|
+
} catch (o) {
|
3096
|
+
if (r)
|
3097
|
+
throw o.name === "SyntaxError" ? p.from(o, p.ERR_BAD_RESPONSE, this, null, this.response) : o;
|
3098
|
+
}
|
3099
|
+
}
|
3100
|
+
return t;
|
3101
|
+
}],
|
3102
|
+
/**
|
3103
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
3104
|
+
* timeout is not created.
|
3105
|
+
*/
|
3106
|
+
timeout: 0,
|
3107
|
+
xsrfCookieName: "XSRF-TOKEN",
|
3108
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
3109
|
+
maxContentLength: -1,
|
3110
|
+
maxBodyLength: -1,
|
3111
|
+
env: {
|
3112
|
+
FormData: S.classes.FormData,
|
3113
|
+
Blob: S.classes.Blob
|
3114
|
+
},
|
3115
|
+
validateStatus: function(t) {
|
3116
|
+
return t >= 200 && t < 300;
|
3117
|
+
},
|
3118
|
+
headers: {
|
3119
|
+
common: {
|
3120
|
+
Accept: "application/json, text/plain, */*",
|
3121
|
+
"Content-Type": void 0
|
3122
|
+
}
|
3123
|
+
}
|
3124
|
+
};
|
3125
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
3126
|
+
It.headers[t] = {};
|
3127
|
+
});
|
3128
|
+
const Rt = It, $0 = a.toObjectSet([
|
3129
|
+
"age",
|
3130
|
+
"authorization",
|
3131
|
+
"content-length",
|
3132
|
+
"content-type",
|
3133
|
+
"etag",
|
3134
|
+
"expires",
|
3135
|
+
"from",
|
3136
|
+
"host",
|
3137
|
+
"if-modified-since",
|
3138
|
+
"if-unmodified-since",
|
3139
|
+
"last-modified",
|
3140
|
+
"location",
|
3141
|
+
"max-forwards",
|
3142
|
+
"proxy-authorization",
|
3143
|
+
"referer",
|
3144
|
+
"retry-after",
|
3145
|
+
"user-agent"
|
3146
|
+
]), u0 = (t) => {
|
3147
|
+
const e = {};
|
3148
|
+
let d, n, r;
|
3149
|
+
return t && t.split(`
|
3150
|
+
`).forEach(function(o) {
|
3151
|
+
r = o.indexOf(":"), d = o.substring(0, r).trim().toLowerCase(), n = o.substring(r + 1).trim(), !(!d || e[d] && $0[d]) && (d === "set-cookie" ? e[d] ? e[d].push(n) : e[d] = [n] : e[d] = e[d] ? e[d] + ", " + n : n);
|
3152
|
+
}), e;
|
3153
|
+
}, ye = Symbol("internals");
|
3154
|
+
function D(t) {
|
3155
|
+
return t && String(t).trim().toLowerCase();
|
3156
|
+
}
|
3157
|
+
function V(t) {
|
3158
|
+
return t === !1 || t == null ? t : a.isArray(t) ? t.map(V) : String(t);
|
3159
|
+
}
|
3160
|
+
function l0(t) {
|
3161
|
+
const e = /* @__PURE__ */ Object.create(null), d = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
3162
|
+
let n;
|
3163
|
+
for (; n = d.exec(t); )
|
3164
|
+
e[n[1]] = n[2];
|
3165
|
+
return e;
|
3166
|
+
}
|
3167
|
+
const c0 = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
3168
|
+
function it(t, e, d, n, r) {
|
3169
|
+
if (a.isFunction(n))
|
3170
|
+
return n.call(this, e, d);
|
3171
|
+
if (r && (e = d), !!a.isString(e)) {
|
3172
|
+
if (a.isString(n))
|
3173
|
+
return e.indexOf(n) !== -1;
|
3174
|
+
if (a.isRegExp(n))
|
3175
|
+
return n.test(e);
|
3176
|
+
}
|
3177
|
+
}
|
3178
|
+
function f0(t) {
|
3179
|
+
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, d, n) => d.toUpperCase() + n);
|
3180
|
+
}
|
3181
|
+
function h0(t, e) {
|
3182
|
+
const d = a.toCamelCase(" " + e);
|
3183
|
+
["get", "set", "has"].forEach((n) => {
|
3184
|
+
Object.defineProperty(t, n + d, {
|
3185
|
+
value: function(r, o, i) {
|
3186
|
+
return this[n].call(this, e, r, o, i);
|
3187
|
+
},
|
3188
|
+
configurable: !0
|
3189
|
+
});
|
3190
|
+
});
|
3191
|
+
}
|
3192
|
+
class tt {
|
3193
|
+
constructor(e) {
|
3194
|
+
e && this.set(e);
|
3195
|
+
}
|
3196
|
+
set(e, d, n) {
|
3197
|
+
const r = this;
|
3198
|
+
function o(s, u, l) {
|
3199
|
+
const $ = D(u);
|
3200
|
+
if (!$)
|
3201
|
+
throw new Error("header name must be a non-empty string");
|
3202
|
+
const f = a.findKey(r, $);
|
3203
|
+
(!f || r[f] === void 0 || l === !0 || l === void 0 && r[f] !== !1) && (r[f || u] = V(s));
|
3204
|
+
}
|
3205
|
+
const i = (s, u) => a.forEach(s, (l, $) => o(l, $, u));
|
3206
|
+
return a.isPlainObject(e) || e instanceof this.constructor ? i(e, d) : a.isString(e) && (e = e.trim()) && !c0(e) ? i(u0(e), d) : e != null && o(d, e, n), this;
|
3207
|
+
}
|
3208
|
+
get(e, d) {
|
3209
|
+
if (e = D(e), e) {
|
3210
|
+
const n = a.findKey(this, e);
|
3211
|
+
if (n) {
|
3212
|
+
const r = this[n];
|
3213
|
+
if (!d)
|
3214
|
+
return r;
|
3215
|
+
if (d === !0)
|
3216
|
+
return l0(r);
|
3217
|
+
if (a.isFunction(d))
|
3218
|
+
return d.call(this, r, n);
|
3219
|
+
if (a.isRegExp(d))
|
3220
|
+
return d.exec(r);
|
3221
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
3222
|
+
}
|
3223
|
+
}
|
3224
|
+
}
|
3225
|
+
has(e, d) {
|
3226
|
+
if (e = D(e), e) {
|
3227
|
+
const n = a.findKey(this, e);
|
3228
|
+
return !!(n && this[n] !== void 0 && (!d || it(this, this[n], n, d)));
|
3229
|
+
}
|
3230
|
+
return !1;
|
3231
|
+
}
|
3232
|
+
delete(e, d) {
|
3233
|
+
const n = this;
|
3234
|
+
let r = !1;
|
3235
|
+
function o(i) {
|
3236
|
+
if (i = D(i), i) {
|
3237
|
+
const s = a.findKey(n, i);
|
3238
|
+
s && (!d || it(n, n[s], s, d)) && (delete n[s], r = !0);
|
3239
|
+
}
|
3240
|
+
}
|
3241
|
+
return a.isArray(e) ? e.forEach(o) : o(e), r;
|
3242
|
+
}
|
3243
|
+
clear(e) {
|
3244
|
+
const d = Object.keys(this);
|
3245
|
+
let n = d.length, r = !1;
|
3246
|
+
for (; n--; ) {
|
3247
|
+
const o = d[n];
|
3248
|
+
(!e || it(this, this[o], o, e, !0)) && (delete this[o], r = !0);
|
3249
|
+
}
|
3250
|
+
return r;
|
3251
|
+
}
|
3252
|
+
normalize(e) {
|
3253
|
+
const d = this, n = {};
|
3254
|
+
return a.forEach(this, (r, o) => {
|
3255
|
+
const i = a.findKey(n, o);
|
3256
|
+
if (i) {
|
3257
|
+
d[i] = V(r), delete d[o];
|
3258
|
+
return;
|
3259
|
+
}
|
3260
|
+
const s = e ? f0(o) : String(o).trim();
|
3261
|
+
s !== o && delete d[o], d[s] = V(r), n[s] = !0;
|
3262
|
+
}), this;
|
3263
|
+
}
|
3264
|
+
concat(...e) {
|
3265
|
+
return this.constructor.concat(this, ...e);
|
3266
|
+
}
|
3267
|
+
toJSON(e) {
|
3268
|
+
const d = /* @__PURE__ */ Object.create(null);
|
3269
|
+
return a.forEach(this, (n, r) => {
|
3270
|
+
n != null && n !== !1 && (d[r] = e && a.isArray(n) ? n.join(", ") : n);
|
3271
|
+
}), d;
|
3272
|
+
}
|
3273
|
+
[Symbol.iterator]() {
|
3274
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
3275
|
+
}
|
3276
|
+
toString() {
|
3277
|
+
return Object.entries(this.toJSON()).map(([e, d]) => e + ": " + d).join(`
|
3278
|
+
`);
|
3279
|
+
}
|
3280
|
+
get [Symbol.toStringTag]() {
|
3281
|
+
return "AxiosHeaders";
|
3282
|
+
}
|
3283
|
+
static from(e) {
|
3284
|
+
return e instanceof this ? e : new this(e);
|
3285
|
+
}
|
3286
|
+
static concat(e, ...d) {
|
3287
|
+
const n = new this(e);
|
3288
|
+
return d.forEach((r) => n.set(r)), n;
|
3289
|
+
}
|
3290
|
+
static accessor(e) {
|
3291
|
+
const d = (this[ye] = this[ye] = {
|
3292
|
+
accessors: {}
|
3293
|
+
}).accessors, n = this.prototype;
|
3294
|
+
function r(o) {
|
3295
|
+
const i = D(o);
|
3296
|
+
d[i] || (h0(n, o), d[i] = !0);
|
3297
|
+
}
|
3298
|
+
return a.isArray(e) ? e.forEach(r) : r(e), this;
|
3299
|
+
}
|
3300
|
+
}
|
3301
|
+
tt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
3302
|
+
a.reduceDescriptors(tt.prototype, ({ value: t }, e) => {
|
3303
|
+
let d = e[0].toUpperCase() + e.slice(1);
|
3304
|
+
return {
|
3305
|
+
get: () => t,
|
3306
|
+
set(n) {
|
3307
|
+
this[d] = n;
|
3308
|
+
}
|
3309
|
+
};
|
3310
|
+
});
|
3311
|
+
a.freezeMethods(tt);
|
3312
|
+
const N = tt;
|
3313
|
+
function at(t, e) {
|
3314
|
+
const d = this || Rt, n = e || d, r = N.from(n.headers);
|
3315
|
+
let o = n.data;
|
3316
|
+
return a.forEach(t, function(i) {
|
3317
|
+
o = i.call(d, o, r.normalize(), e ? e.status : void 0);
|
3318
|
+
}), r.normalize(), o;
|
3319
|
+
}
|
3320
|
+
function We(t) {
|
3321
|
+
return !!(t && t.__CANCEL__);
|
3322
|
+
}
|
3323
|
+
function k(t, e, d) {
|
3324
|
+
p.call(this, t ?? "canceled", p.ERR_CANCELED, e, d), this.name = "CanceledError";
|
3325
|
+
}
|
3326
|
+
a.inherits(k, p, {
|
3327
|
+
__CANCEL__: !0
|
3328
|
+
});
|
3329
|
+
function p0(t, e, d) {
|
3330
|
+
const n = d.config.validateStatus;
|
3331
|
+
!d.status || !n || n(d.status) ? t(d) : e(new p(
|
3332
|
+
"Request failed with status code " + d.status,
|
3333
|
+
[p.ERR_BAD_REQUEST, p.ERR_BAD_RESPONSE][Math.floor(d.status / 100) - 4],
|
3334
|
+
d.config,
|
3335
|
+
d.request,
|
3336
|
+
d
|
3337
|
+
));
|
3338
|
+
}
|
3339
|
+
const m0 = S.hasStandardBrowserEnv ? (
|
3340
|
+
// Standard browser envs support document.cookie
|
3341
|
+
{
|
3342
|
+
write(t, e, d, n, r, o) {
|
3343
|
+
const i = [t + "=" + encodeURIComponent(e)];
|
3344
|
+
a.isNumber(d) && i.push("expires=" + new Date(d).toGMTString()), a.isString(n) && i.push("path=" + n), a.isString(r) && i.push("domain=" + r), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
3345
|
+
},
|
3346
|
+
read(t) {
|
3347
|
+
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
3348
|
+
return e ? decodeURIComponent(e[3]) : null;
|
3349
|
+
},
|
3350
|
+
remove(t) {
|
3351
|
+
this.write(t, "", Date.now() - 864e5);
|
3352
|
+
}
|
3353
|
+
}
|
3354
|
+
) : (
|
3355
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
3356
|
+
{
|
3357
|
+
write() {
|
3358
|
+
},
|
3359
|
+
read() {
|
3360
|
+
return null;
|
3361
|
+
},
|
3362
|
+
remove() {
|
3363
|
+
}
|
3364
|
+
}
|
3365
|
+
);
|
3366
|
+
function y0(t) {
|
3367
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
3368
|
+
}
|
3369
|
+
function g0(t, e) {
|
3370
|
+
return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
3371
|
+
}
|
3372
|
+
function ze(t, e) {
|
3373
|
+
return t && !y0(e) ? g0(t, e) : e;
|
3374
|
+
}
|
3375
|
+
const b0 = S.hasStandardBrowserEnv ? (
|
3376
|
+
// Standard browser envs have full support of the APIs needed to test
|
3377
|
+
// whether the request URL is of the same origin as current location.
|
3378
|
+
function() {
|
3379
|
+
const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a");
|
3380
|
+
let d;
|
3381
|
+
function n(r) {
|
3382
|
+
let o = r;
|
3383
|
+
return t && (e.setAttribute("href", o), o = e.href), e.setAttribute("href", o), {
|
3384
|
+
href: e.href,
|
3385
|
+
protocol: e.protocol ? e.protocol.replace(/:$/, "") : "",
|
3386
|
+
host: e.host,
|
3387
|
+
search: e.search ? e.search.replace(/^\?/, "") : "",
|
3388
|
+
hash: e.hash ? e.hash.replace(/^#/, "") : "",
|
3389
|
+
hostname: e.hostname,
|
3390
|
+
port: e.port,
|
3391
|
+
pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname
|
3392
|
+
};
|
3393
|
+
}
|
3394
|
+
return d = n(window.location.href), function(r) {
|
3395
|
+
const o = a.isString(r) ? n(r) : r;
|
3396
|
+
return o.protocol === d.protocol && o.host === d.host;
|
3397
|
+
};
|
3398
|
+
}()
|
3399
|
+
) : (
|
3400
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
3401
|
+
function() {
|
3402
|
+
return function() {
|
3403
|
+
return !0;
|
3404
|
+
};
|
3405
|
+
}()
|
3406
|
+
);
|
3407
|
+
function v0(t) {
|
3408
|
+
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
3409
|
+
return e && e[1] || "";
|
3410
|
+
}
|
3411
|
+
function O0(t, e) {
|
3412
|
+
t = t || 10;
|
3413
|
+
const d = new Array(t), n = new Array(t);
|
3414
|
+
let r = 0, o = 0, i;
|
3415
|
+
return e = e !== void 0 ? e : 1e3, function(s) {
|
3416
|
+
const u = Date.now(), l = n[o];
|
3417
|
+
i || (i = u), d[r] = s, n[r] = u;
|
3418
|
+
let $ = o, f = 0;
|
3419
|
+
for (; $ !== r; )
|
3420
|
+
f += d[$++], $ = $ % t;
|
3421
|
+
if (r = (r + 1) % t, r === o && (o = (o + 1) % t), u - i < e)
|
3422
|
+
return;
|
3423
|
+
const m = l && u - l;
|
3424
|
+
return m ? Math.round(f * 1e3 / m) : void 0;
|
3425
|
+
};
|
3426
|
+
}
|
3427
|
+
function ge(t, e) {
|
3428
|
+
let d = 0;
|
3429
|
+
const n = O0(50, 250);
|
3430
|
+
return (r) => {
|
3431
|
+
const o = r.loaded, i = r.lengthComputable ? r.total : void 0, s = o - d, u = n(s), l = o <= i;
|
3432
|
+
d = o;
|
3433
|
+
const $ = {
|
3434
|
+
loaded: o,
|
3435
|
+
total: i,
|
3436
|
+
progress: i ? o / i : void 0,
|
3437
|
+
bytes: s,
|
3438
|
+
rate: u || void 0,
|
3439
|
+
estimated: u && i && l ? (i - o) / u : void 0,
|
3440
|
+
event: r
|
3441
|
+
};
|
3442
|
+
$[e ? "download" : "upload"] = !0, t($);
|
3443
|
+
};
|
3444
|
+
}
|
3445
|
+
const C0 = typeof XMLHttpRequest < "u", w0 = C0 && function(t) {
|
3446
|
+
return new Promise(function(e, d) {
|
3447
|
+
let n = t.data;
|
3448
|
+
const r = N.from(t.headers).normalize();
|
3449
|
+
let { responseType: o, withXSRFToken: i } = t, s;
|
3450
|
+
function u() {
|
3451
|
+
t.cancelToken && t.cancelToken.unsubscribe(s), t.signal && t.signal.removeEventListener("abort", s);
|
3452
|
+
}
|
3453
|
+
let l;
|
3454
|
+
if (a.isFormData(n)) {
|
3455
|
+
if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
|
3456
|
+
r.setContentType(!1);
|
3457
|
+
else if ((l = r.getContentType()) !== !1) {
|
3458
|
+
const [c, ...y] = l ? l.split(";").map((b) => b.trim()).filter(Boolean) : [];
|
3459
|
+
r.setContentType([c || "multipart/form-data", ...y].join("; "));
|
3460
|
+
}
|
3461
|
+
}
|
3462
|
+
let $ = new XMLHttpRequest();
|
3463
|
+
if (t.auth) {
|
3464
|
+
const c = t.auth.username || "", y = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
3465
|
+
r.set("Authorization", "Basic " + btoa(c + ":" + y));
|
3466
|
+
}
|
3467
|
+
const f = ze(t.baseURL, t.url);
|
3468
|
+
$.open(t.method.toUpperCase(), Ge(f, t.params, t.paramsSerializer), !0), $.timeout = t.timeout;
|
3469
|
+
function m() {
|
3470
|
+
if (!$)
|
3471
|
+
return;
|
3472
|
+
const c = N.from(
|
3473
|
+
"getAllResponseHeaders" in $ && $.getAllResponseHeaders()
|
3474
|
+
), y = {
|
3475
|
+
data: !o || o === "text" || o === "json" ? $.responseText : $.response,
|
3476
|
+
status: $.status,
|
3477
|
+
statusText: $.statusText,
|
3478
|
+
headers: c,
|
3479
|
+
config: t,
|
3480
|
+
request: $
|
3481
|
+
};
|
3482
|
+
p0(function(b) {
|
3483
|
+
e(b), u();
|
3484
|
+
}, function(b) {
|
3485
|
+
d(b), u();
|
3486
|
+
}, y), $ = null;
|
3487
|
+
}
|
3488
|
+
if ("onloadend" in $ ? $.onloadend = m : $.onreadystatechange = function() {
|
3489
|
+
!$ || $.readyState !== 4 || $.status === 0 && !($.responseURL && $.responseURL.indexOf("file:") === 0) || setTimeout(m);
|
3490
|
+
}, $.onabort = function() {
|
3491
|
+
$ && (d(new p("Request aborted", p.ECONNABORTED, t, $)), $ = null);
|
3492
|
+
}, $.onerror = function() {
|
3493
|
+
d(new p("Network Error", p.ERR_NETWORK, t, $)), $ = null;
|
3494
|
+
}, $.ontimeout = function() {
|
3495
|
+
let c = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
3496
|
+
const y = t.transitional || Ve;
|
3497
|
+
t.timeoutErrorMessage && (c = t.timeoutErrorMessage), d(new p(
|
3498
|
+
c,
|
3499
|
+
y.clarifyTimeoutError ? p.ETIMEDOUT : p.ECONNABORTED,
|
3500
|
+
t,
|
3501
|
+
$
|
3502
|
+
)), $ = null;
|
3503
|
+
}, S.hasStandardBrowserEnv && (i && a.isFunction(i) && (i = i(t)), i || i !== !1 && b0(f))) {
|
3504
|
+
const c = t.xsrfHeaderName && t.xsrfCookieName && m0.read(t.xsrfCookieName);
|
3505
|
+
c && r.set(t.xsrfHeaderName, c);
|
3506
|
+
}
|
3507
|
+
n === void 0 && r.setContentType(null), "setRequestHeader" in $ && a.forEach(r.toJSON(), function(c, y) {
|
3508
|
+
$.setRequestHeader(y, c);
|
3509
|
+
}), a.isUndefined(t.withCredentials) || ($.withCredentials = !!t.withCredentials), o && o !== "json" && ($.responseType = t.responseType), typeof t.onDownloadProgress == "function" && $.addEventListener("progress", ge(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && $.upload && $.upload.addEventListener("progress", ge(t.onUploadProgress)), (t.cancelToken || t.signal) && (s = (c) => {
|
3510
|
+
$ && (d(!c || c.type ? new k(null, t, $) : c), $.abort(), $ = null);
|
3511
|
+
}, t.cancelToken && t.cancelToken.subscribe(s), t.signal && (t.signal.aborted ? s() : t.signal.addEventListener("abort", s)));
|
3512
|
+
const h = v0(f);
|
3513
|
+
if (h && S.protocols.indexOf(h) === -1) {
|
3514
|
+
d(new p("Unsupported protocol " + h + ":", p.ERR_BAD_REQUEST, t));
|
3515
|
+
return;
|
3516
|
+
}
|
3517
|
+
$.send(n || null);
|
3518
|
+
});
|
3519
|
+
}, yt = {
|
3520
|
+
http: zr,
|
3521
|
+
xhr: w0
|
3522
|
+
};
|
3523
|
+
a.forEach(yt, (t, e) => {
|
3524
|
+
if (t) {
|
3525
|
+
try {
|
3526
|
+
Object.defineProperty(t, "name", { value: e });
|
3527
|
+
} catch {
|
3528
|
+
}
|
3529
|
+
Object.defineProperty(t, "adapterName", { value: e });
|
3530
|
+
}
|
3531
|
+
});
|
3532
|
+
const be = (t) => `- ${t}`, S0 = (t) => a.isFunction(t) || t === null || t === !1, qe = {
|
3533
|
+
getAdapter: (t) => {
|
3534
|
+
t = a.isArray(t) ? t : [t];
|
3535
|
+
const { length: e } = t;
|
3536
|
+
let d, n;
|
3537
|
+
const r = {};
|
3538
|
+
for (let o = 0; o < e; o++) {
|
3539
|
+
d = t[o];
|
3540
|
+
let i;
|
3541
|
+
if (n = d, !S0(d) && (n = yt[(i = String(d)).toLowerCase()], n === void 0))
|
3542
|
+
throw new p(`Unknown adapter '${i}'`);
|
3543
|
+
if (n)
|
3544
|
+
break;
|
3545
|
+
r[i || "#" + o] = n;
|
3546
|
+
}
|
3547
|
+
if (!n) {
|
3548
|
+
const o = Object.entries(r).map(
|
3549
|
+
([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
3550
|
+
);
|
3551
|
+
let i = e ? o.length > 1 ? `since :
|
3552
|
+
` + o.map(be).join(`
|
3553
|
+
`) : " " + be(o[0]) : "as no adapter specified";
|
3554
|
+
throw new p(
|
3555
|
+
"There is no suitable adapter to dispatch the request " + i,
|
3556
|
+
"ERR_NOT_SUPPORT"
|
3557
|
+
);
|
3558
|
+
}
|
3559
|
+
return n;
|
3560
|
+
},
|
3561
|
+
adapters: yt
|
3562
|
+
};
|
3563
|
+
function st(t) {
|
3564
|
+
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
3565
|
+
throw new k(null, t);
|
3566
|
+
}
|
3567
|
+
function ve(t) {
|
3568
|
+
return st(t), t.headers = N.from(t.headers), t.data = at.call(
|
3569
|
+
t,
|
3570
|
+
t.transformRequest
|
3571
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), qe.getAdapter(t.adapter || Rt.adapter)(t).then(function(e) {
|
3572
|
+
return st(t), e.data = at.call(
|
3573
|
+
t,
|
3574
|
+
t.transformResponse,
|
3575
|
+
e
|
3576
|
+
), e.headers = N.from(e.headers), e;
|
3577
|
+
}, function(e) {
|
3578
|
+
return We(e) || (st(t), e && e.response && (e.response.data = at.call(
|
3579
|
+
t,
|
3580
|
+
t.transformResponse,
|
3581
|
+
e.response
|
3582
|
+
), e.response.headers = N.from(e.response.headers))), Promise.reject(e);
|
3583
|
+
});
|
3584
|
+
}
|
3585
|
+
const Oe = (t) => t instanceof N ? t.toJSON() : t;
|
3586
|
+
function R(t, e) {
|
3587
|
+
e = e || {};
|
3588
|
+
const d = {};
|
3589
|
+
function n(l, $, f) {
|
3590
|
+
return a.isPlainObject(l) && a.isPlainObject($) ? a.merge.call({ caseless: f }, l, $) : a.isPlainObject($) ? a.merge({}, $) : a.isArray($) ? $.slice() : $;
|
3591
|
+
}
|
3592
|
+
function r(l, $, f) {
|
3593
|
+
if (a.isUndefined($)) {
|
3594
|
+
if (!a.isUndefined(l))
|
3595
|
+
return n(void 0, l, f);
|
3596
|
+
} else
|
3597
|
+
return n(l, $, f);
|
3598
|
+
}
|
3599
|
+
function o(l, $) {
|
3600
|
+
if (!a.isUndefined($))
|
3601
|
+
return n(void 0, $);
|
3602
|
+
}
|
3603
|
+
function i(l, $) {
|
3604
|
+
if (a.isUndefined($)) {
|
3605
|
+
if (!a.isUndefined(l))
|
3606
|
+
return n(void 0, l);
|
3607
|
+
} else
|
3608
|
+
return n(void 0, $);
|
3609
|
+
}
|
3610
|
+
function s(l, $, f) {
|
3611
|
+
if (f in e)
|
3612
|
+
return n(l, $);
|
3613
|
+
if (f in t)
|
3614
|
+
return n(void 0, l);
|
3615
|
+
}
|
3616
|
+
const u = {
|
3617
|
+
url: o,
|
3618
|
+
method: o,
|
3619
|
+
data: o,
|
3620
|
+
baseURL: i,
|
3621
|
+
transformRequest: i,
|
3622
|
+
transformResponse: i,
|
3623
|
+
paramsSerializer: i,
|
3624
|
+
timeout: i,
|
3625
|
+
timeoutMessage: i,
|
3626
|
+
withCredentials: i,
|
3627
|
+
withXSRFToken: i,
|
3628
|
+
adapter: i,
|
3629
|
+
responseType: i,
|
3630
|
+
xsrfCookieName: i,
|
3631
|
+
xsrfHeaderName: i,
|
3632
|
+
onUploadProgress: i,
|
3633
|
+
onDownloadProgress: i,
|
3634
|
+
decompress: i,
|
3635
|
+
maxContentLength: i,
|
3636
|
+
maxBodyLength: i,
|
3637
|
+
beforeRedirect: i,
|
3638
|
+
transport: i,
|
3639
|
+
httpAgent: i,
|
3640
|
+
httpsAgent: i,
|
3641
|
+
cancelToken: i,
|
3642
|
+
socketPath: i,
|
3643
|
+
responseEncoding: i,
|
3644
|
+
validateStatus: s,
|
3645
|
+
headers: (l, $) => r(Oe(l), Oe($), !0)
|
3646
|
+
};
|
3647
|
+
return a.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
3648
|
+
const $ = u[l] || r, f = $(t[l], e[l], l);
|
3649
|
+
a.isUndefined(f) && $ !== s || (d[l] = f);
|
3650
|
+
}), d;
|
3651
|
+
}
|
3652
|
+
const Je = "1.6.2", jt = {};
|
3653
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
3654
|
+
jt[t] = function(d) {
|
3655
|
+
return typeof d === t || "a" + (e < 1 ? "n " : " ") + t;
|
3656
|
+
};
|
3657
|
+
});
|
3658
|
+
const Ce = {};
|
3659
|
+
jt.transitional = function(t, e, d) {
|
3660
|
+
function n(r, o) {
|
3661
|
+
return "[Axios v" + Je + "] Transitional option '" + r + "'" + o + (d ? ". " + d : "");
|
3662
|
+
}
|
3663
|
+
return (r, o, i) => {
|
3664
|
+
if (t === !1)
|
3665
|
+
throw new p(
|
3666
|
+
n(o, " has been removed" + (e ? " in " + e : "")),
|
3667
|
+
p.ERR_DEPRECATED
|
3668
|
+
);
|
3669
|
+
return e && !Ce[o] && (Ce[o] = !0, console.warn(
|
3670
|
+
n(
|
3671
|
+
o,
|
3672
|
+
" has been deprecated since v" + e + " and will be removed in the near future"
|
3673
|
+
)
|
3674
|
+
)), t ? t(r, o, i) : !0;
|
3675
|
+
};
|
3676
|
+
};
|
3677
|
+
function E0(t, e, d) {
|
3678
|
+
if (typeof t != "object")
|
3679
|
+
throw new p("options must be an object", p.ERR_BAD_OPTION_VALUE);
|
3680
|
+
const n = Object.keys(t);
|
3681
|
+
let r = n.length;
|
3682
|
+
for (; r-- > 0; ) {
|
3683
|
+
const o = n[r], i = e[o];
|
3684
|
+
if (i) {
|
3685
|
+
const s = t[o], u = s === void 0 || i(s, o, t);
|
3686
|
+
if (u !== !0)
|
3687
|
+
throw new p("option " + o + " must be " + u, p.ERR_BAD_OPTION_VALUE);
|
3688
|
+
continue;
|
3689
|
+
}
|
3690
|
+
if (d !== !0)
|
3691
|
+
throw new p("Unknown option " + o, p.ERR_BAD_OPTION);
|
3692
|
+
}
|
3693
|
+
}
|
3694
|
+
const gt = {
|
3695
|
+
assertOptions: E0,
|
3696
|
+
validators: jt
|
3697
|
+
}, A = gt.validators;
|
3698
|
+
class z {
|
3699
|
+
constructor(e) {
|
3700
|
+
this.defaults = e, this.interceptors = {
|
3701
|
+
request: new me(),
|
3702
|
+
response: new me()
|
3703
|
+
};
|
3704
|
+
}
|
3705
|
+
/**
|
3706
|
+
* Dispatch a request
|
3707
|
+
*
|
3708
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
3709
|
+
* @param {?Object} config
|
3710
|
+
*
|
3711
|
+
* @returns {Promise} The Promise to be fulfilled
|
3712
|
+
*/
|
3713
|
+
request(e, d) {
|
3714
|
+
typeof e == "string" ? (d = d || {}, d.url = e) : d = e || {}, d = R(this.defaults, d);
|
3715
|
+
const { transitional: n, paramsSerializer: r, headers: o } = d;
|
3716
|
+
n !== void 0 && gt.assertOptions(n, {
|
3717
|
+
silentJSONParsing: A.transitional(A.boolean),
|
3718
|
+
forcedJSONParsing: A.transitional(A.boolean),
|
3719
|
+
clarifyTimeoutError: A.transitional(A.boolean)
|
3720
|
+
}, !1), r != null && (a.isFunction(r) ? d.paramsSerializer = {
|
3721
|
+
serialize: r
|
3722
|
+
} : gt.assertOptions(r, {
|
3723
|
+
encode: A.function,
|
3724
|
+
serialize: A.function
|
3725
|
+
}, !0)), d.method = (d.method || this.defaults.method || "get").toLowerCase();
|
3726
|
+
let i = o && a.merge(
|
3727
|
+
o.common,
|
3728
|
+
o[d.method]
|
3729
|
+
);
|
3730
|
+
o && a.forEach(
|
3731
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
3732
|
+
(c) => {
|
3733
|
+
delete o[c];
|
3734
|
+
}
|
3735
|
+
), d.headers = N.concat(i, o);
|
3736
|
+
const s = [];
|
3737
|
+
let u = !0;
|
3738
|
+
this.interceptors.request.forEach(function(c) {
|
3739
|
+
typeof c.runWhen == "function" && c.runWhen(d) === !1 || (u = u && c.synchronous, s.unshift(c.fulfilled, c.rejected));
|
3740
|
+
});
|
3741
|
+
const l = [];
|
3742
|
+
this.interceptors.response.forEach(function(c) {
|
3743
|
+
l.push(c.fulfilled, c.rejected);
|
3744
|
+
});
|
3745
|
+
let $, f = 0, m;
|
3746
|
+
if (!u) {
|
3747
|
+
const c = [ve.bind(this), void 0];
|
3748
|
+
for (c.unshift.apply(c, s), c.push.apply(c, l), m = c.length, $ = Promise.resolve(d); f < m; )
|
3749
|
+
$ = $.then(c[f++], c[f++]);
|
3750
|
+
return $;
|
3751
|
+
}
|
3752
|
+
m = s.length;
|
3753
|
+
let h = d;
|
3754
|
+
for (f = 0; f < m; ) {
|
3755
|
+
const c = s[f++], y = s[f++];
|
3756
|
+
try {
|
3757
|
+
h = c(h);
|
3758
|
+
} catch (b) {
|
3759
|
+
y.call(this, b);
|
3760
|
+
break;
|
3761
|
+
}
|
3762
|
+
}
|
3763
|
+
try {
|
3764
|
+
$ = ve.call(this, h);
|
3765
|
+
} catch (c) {
|
3766
|
+
return Promise.reject(c);
|
3767
|
+
}
|
3768
|
+
for (f = 0, m = l.length; f < m; )
|
3769
|
+
$ = $.then(l[f++], l[f++]);
|
3770
|
+
return $;
|
3771
|
+
}
|
3772
|
+
getUri(e) {
|
3773
|
+
e = R(this.defaults, e);
|
3774
|
+
const d = ze(e.baseURL, e.url);
|
3775
|
+
return Ge(d, e.params, e.paramsSerializer);
|
3776
|
+
}
|
3777
|
+
}
|
3778
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
3779
|
+
z.prototype[t] = function(e, d) {
|
3780
|
+
return this.request(R(d || {}, {
|
3781
|
+
method: t,
|
3782
|
+
url: e,
|
3783
|
+
data: (d || {}).data
|
3784
|
+
}));
|
3785
|
+
};
|
3786
|
+
});
|
3787
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
3788
|
+
function e(d) {
|
3789
|
+
return function(n, r, o) {
|
3790
|
+
return this.request(R(o || {}, {
|
3791
|
+
method: t,
|
3792
|
+
headers: d ? {
|
3793
|
+
"Content-Type": "multipart/form-data"
|
3794
|
+
} : {},
|
3795
|
+
url: n,
|
3796
|
+
data: r
|
3797
|
+
}));
|
3798
|
+
};
|
3799
|
+
}
|
3800
|
+
z.prototype[t] = e(), z.prototype[t + "Form"] = e(!0);
|
3801
|
+
});
|
3802
|
+
const H = z;
|
3803
|
+
class xt {
|
3804
|
+
constructor(e) {
|
3805
|
+
if (typeof e != "function")
|
3806
|
+
throw new TypeError("executor must be a function.");
|
3807
|
+
let d;
|
3808
|
+
this.promise = new Promise(function(r) {
|
3809
|
+
d = r;
|
3810
|
+
});
|
3811
|
+
const n = this;
|
3812
|
+
this.promise.then((r) => {
|
3813
|
+
if (!n._listeners)
|
3814
|
+
return;
|
3815
|
+
let o = n._listeners.length;
|
3816
|
+
for (; o-- > 0; )
|
3817
|
+
n._listeners[o](r);
|
3818
|
+
n._listeners = null;
|
3819
|
+
}), this.promise.then = (r) => {
|
3820
|
+
let o;
|
3821
|
+
const i = new Promise((s) => {
|
3822
|
+
n.subscribe(s), o = s;
|
3823
|
+
}).then(r);
|
3824
|
+
return i.cancel = function() {
|
3825
|
+
n.unsubscribe(o);
|
3826
|
+
}, i;
|
3827
|
+
}, e(function(r, o, i) {
|
3828
|
+
n.reason || (n.reason = new k(r, o, i), d(n.reason));
|
3829
|
+
});
|
3830
|
+
}
|
3831
|
+
/**
|
3832
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
3833
|
+
*/
|
3834
|
+
throwIfRequested() {
|
3835
|
+
if (this.reason)
|
3836
|
+
throw this.reason;
|
3837
|
+
}
|
3838
|
+
/**
|
3839
|
+
* Subscribe to the cancel signal
|
3840
|
+
*/
|
3841
|
+
subscribe(e) {
|
3842
|
+
if (this.reason) {
|
3843
|
+
e(this.reason);
|
3844
|
+
return;
|
3845
|
+
}
|
3846
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
3847
|
+
}
|
3848
|
+
/**
|
3849
|
+
* Unsubscribe from the cancel signal
|
3850
|
+
*/
|
3851
|
+
unsubscribe(e) {
|
3852
|
+
if (!this._listeners)
|
3853
|
+
return;
|
3854
|
+
const d = this._listeners.indexOf(e);
|
3855
|
+
d !== -1 && this._listeners.splice(d, 1);
|
3856
|
+
}
|
3857
|
+
/**
|
3858
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
3859
|
+
* cancels the `CancelToken`.
|
3860
|
+
*/
|
3861
|
+
static source() {
|
3862
|
+
let e;
|
3863
|
+
return {
|
3864
|
+
token: new xt(function(d) {
|
3865
|
+
e = d;
|
3866
|
+
}),
|
3867
|
+
cancel: e
|
3868
|
+
};
|
3869
|
+
}
|
3870
|
+
}
|
3871
|
+
const P0 = xt;
|
3872
|
+
function N0(t) {
|
3873
|
+
return function(e) {
|
3874
|
+
return t.apply(null, e);
|
3875
|
+
};
|
3876
|
+
}
|
3877
|
+
function T0(t) {
|
3878
|
+
return a.isObject(t) && t.isAxiosError === !0;
|
3879
|
+
}
|
3880
|
+
const bt = {
|
3881
|
+
Continue: 100,
|
3882
|
+
SwitchingProtocols: 101,
|
3883
|
+
Processing: 102,
|
3884
|
+
EarlyHints: 103,
|
3885
|
+
Ok: 200,
|
3886
|
+
Created: 201,
|
3887
|
+
Accepted: 202,
|
3888
|
+
NonAuthoritativeInformation: 203,
|
3889
|
+
NoContent: 204,
|
3890
|
+
ResetContent: 205,
|
3891
|
+
PartialContent: 206,
|
3892
|
+
MultiStatus: 207,
|
3893
|
+
AlreadyReported: 208,
|
3894
|
+
ImUsed: 226,
|
3895
|
+
MultipleChoices: 300,
|
3896
|
+
MovedPermanently: 301,
|
3897
|
+
Found: 302,
|
3898
|
+
SeeOther: 303,
|
3899
|
+
NotModified: 304,
|
3900
|
+
UseProxy: 305,
|
3901
|
+
Unused: 306,
|
3902
|
+
TemporaryRedirect: 307,
|
3903
|
+
PermanentRedirect: 308,
|
3904
|
+
BadRequest: 400,
|
3905
|
+
Unauthorized: 401,
|
3906
|
+
PaymentRequired: 402,
|
3907
|
+
Forbidden: 403,
|
3908
|
+
NotFound: 404,
|
3909
|
+
MethodNotAllowed: 405,
|
3910
|
+
NotAcceptable: 406,
|
3911
|
+
ProxyAuthenticationRequired: 407,
|
3912
|
+
RequestTimeout: 408,
|
3913
|
+
Conflict: 409,
|
3914
|
+
Gone: 410,
|
3915
|
+
LengthRequired: 411,
|
3916
|
+
PreconditionFailed: 412,
|
3917
|
+
PayloadTooLarge: 413,
|
3918
|
+
UriTooLong: 414,
|
3919
|
+
UnsupportedMediaType: 415,
|
3920
|
+
RangeNotSatisfiable: 416,
|
3921
|
+
ExpectationFailed: 417,
|
3922
|
+
ImATeapot: 418,
|
3923
|
+
MisdirectedRequest: 421,
|
3924
|
+
UnprocessableEntity: 422,
|
3925
|
+
Locked: 423,
|
3926
|
+
FailedDependency: 424,
|
3927
|
+
TooEarly: 425,
|
3928
|
+
UpgradeRequired: 426,
|
3929
|
+
PreconditionRequired: 428,
|
3930
|
+
TooManyRequests: 429,
|
3931
|
+
RequestHeaderFieldsTooLarge: 431,
|
3932
|
+
UnavailableForLegalReasons: 451,
|
3933
|
+
InternalServerError: 500,
|
3934
|
+
NotImplemented: 501,
|
3935
|
+
BadGateway: 502,
|
3936
|
+
ServiceUnavailable: 503,
|
3937
|
+
GatewayTimeout: 504,
|
3938
|
+
HttpVersionNotSupported: 505,
|
3939
|
+
VariantAlsoNegotiates: 506,
|
3940
|
+
InsufficientStorage: 507,
|
3941
|
+
LoopDetected: 508,
|
3942
|
+
NotExtended: 510,
|
3943
|
+
NetworkAuthenticationRequired: 511
|
3944
|
+
};
|
3945
|
+
Object.entries(bt).forEach(([t, e]) => {
|
3946
|
+
bt[e] = t;
|
3947
|
+
});
|
3948
|
+
const A0 = bt;
|
3949
|
+
function Ye(t) {
|
3950
|
+
const e = new H(t), d = Ie(H.prototype.request, e);
|
3951
|
+
return a.extend(d, H.prototype, e, { allOwnKeys: !0 }), a.extend(d, e, null, { allOwnKeys: !0 }), d.create = function(n) {
|
3952
|
+
return Ye(R(t, n));
|
3953
|
+
}, d;
|
3954
|
+
}
|
3955
|
+
const g = Ye(Rt);
|
3956
|
+
g.Axios = H;
|
3957
|
+
g.CanceledError = k;
|
3958
|
+
g.CancelToken = P0;
|
3959
|
+
g.isCancel = We;
|
3960
|
+
g.VERSION = Je;
|
3961
|
+
g.toFormData = Q;
|
3962
|
+
g.AxiosError = p;
|
3963
|
+
g.Cancel = g.CanceledError;
|
3964
|
+
g.all = function(t) {
|
3965
|
+
return Promise.all(t);
|
3966
|
+
};
|
3967
|
+
g.spread = N0;
|
3968
|
+
g.isAxiosError = T0;
|
3969
|
+
g.mergeConfig = R;
|
3970
|
+
g.AxiosHeaders = N;
|
3971
|
+
g.formToJSON = (t) => Ke(a.isHTMLForm(t) ? new FormData(t) : t);
|
3972
|
+
g.getAdapter = qe.getAdapter;
|
3973
|
+
g.HttpStatusCode = A0;
|
3974
|
+
g.default = g;
|