it-tools/dist/client/assets/chunks/chunk-2bbbb678.js

8 lines
222 KiB
JavaScript
Raw Normal View History

2024-04-28 00:48:29 +08:00
import{_ as D0}from"./chunk-92eb22f4.js";import{_ as w0}from"./chunk-6deddc2e.js";import{_ as x0}from"./chunk-606d31d4.js";import{w as U0}from"./chunk-4d6daddf.js";import{b as X}from"./chunk-c7e7c785.js";import{u as W0}from"./chunk-340feaf0.js";import{_ as K0}from"./chunk-5ef11c84.js";import{d as H0,r as Q,c as k0,j as h,D as b,m as z,q as m,S as q,k as d0,l as V0,E as B,F as j0,U as Z0,L as Y0,M as J0}from"./chunk-449c23a2.js";import"./chunk-a740628f.js";import"./chunk-767079b6.js";import"./chunk-9a43cce8.js";import"./chunk-a3974c29.js";import"./chunk-27eb844d.js";import"../entries/src_pages_Home.page.16dc467b.js";import"./chunk-cf010ec4.js";import"./chunk-ee54c1e8.js";import"./chunk-f92ba12f.js";const X0={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],0,0,0,0,0,0,0,[["6[2-467]\\d{3}",[5]],["4\\d{4}",[5]],0,0,0,0,["(?:0[1-9]|[1589]\\d)\\d{4}",[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"]]],0,0,0,0,0,0,[["[78]\\d{5}",[6]],["690\\d{6}|[356]\\d{5}",[6,9]],["180[02]\\d{4}",[8]],["[19]\\d{5}",[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",0,0,0,0,0,[["[2-4679][2-8]\\d{6}",[8]],["5[024-68]\\d{7}",[9]],["400\\d{6}|800\\d{2,9}"],["900[02]\\d{5}",[9]],0,0,["600[25]\\d{5}",[9]],0,0,["700[05]\\d{5}",[9]]]],AF:["93","00","[2-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R2(d,n){if(d){if(typeof d=="string")return $0(d,n);var t=Object.prototype.toString.call(d).slice(8,-1);if(t==="Object"&&d.constructor&&(t=d.constructor.name),t==="Map"||t==="Set")return Array.from(d);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $0(d,n)}}function $0(d,n){(n==null||n>d.length)&&(n=d.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=d[t];return e}function s0(d){for(var n="",t=M2(d.split("")),e;!(e=t()).done;){var i=e.value;n+=F2(i,n)||""}return n}function F2(d,n){return d==="+"?n?void 0:"+":T2(d)}function _2(d,n){var t=typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(t)return(t=t.call(d)).next.bind(t);if(Array.isArray(d)||(t=L2(d))||n&&d&&typeof d.length=="number"){t&&(d=t);var e=0;return function(){return e>=d.length?{done:!0}:{done:!1,value:d[e++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L2(d,n){if(d){if(typeof d=="string")return u0(d,n);var t=Object.prototype.toString.call(d).slice(8,-1);if(t==="Object"&&d.constructor&&(t=d.constructor.name),t==="Map"||t==="Set")return Array.from(d);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u0(d,n)}}function u0(d,n){(n==null||n>d.length)&&(n=d.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=d[t];return e}function B2(d,n){for(var t=d.slice(),e=_2(n),i;!(i=e()).done;){var o=i.value;d.indexOf(o)<0&&t.push(o)}return t.sort(function(r,a){return r-a})}function Y(d,n){return M0(d,void 0,n)}function M0(d,n,t){var e=t.type(n),i=e&&e.possibleLengths()||t.possibleLengths();if(!i)return"IS_POSSIBLE";if(n==="FIXED_LINE_OR_MOBILE"){if(!t.type("FIXED_LINE"))return M0(d,"MOBILE",t);var o=t.type("MOBILE");o&&(i=B2(i,o.possibleLengths()))}else if(n&&!e)return"INVALID_LENGTH";var r=d.length,a=i[0];return a===r?"IS_POSSIBLE":a>r?"TOO_SHORT":i[i.length-1]<r?"TOO_LONG":i.indexOf(r,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function G2(d,n,t){if(n===void 0&&(n={}),t=new c(t),n.v2){if(!d.countryCallingCode)throw new Error("Invalid phone number object passed");t.selectNumberingPlan(d.countryCallingCode)}else{if(!d.phone)return!1;if(d.country){if(!t.hasCountry(d.country))throw new Error("Unknown country: ".concat(d.country));t.country(d.country)}else{if(!d.countryCallingCode)throw new Error("Invalid phone number object passed");t.selectNumberingPlan(d.countryCallingCode)}}if(t.possibleLengths())return R0(d.phone||d.nationalNumber,t);if(d.countryCallingCode&&t.isNonGeographicCallingCode(d.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function R0(d,n){switch(Y(d,n)){case"IS_POSSIBLE":return!0;default:return!1}}function y(d,n){return d=d||"",new RegExp("^(?:"+n+")$").test(d)}function D2(d,n){var t=typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(t)return(t=t.call(d)).next.bind(t);if(Array.isArray(d)||(t=w2(d))||n&&d&&typeof d.length=="number"){t&&(d=t);var e=0;return function(){return e>=d.length?{done:!0}:{done:!1,value:d[e++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w2(d,n){if(d){if(typeof d=="string")return c0(d,n);var t=Object.prototype.toString.call(d).slice(8,-1);if(t==="Object"&&d.constructor&&(t=d.constructor.name),t==="Map"||t==="Set")return Array.from(d);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c0(d,n)}}function c0(d,n){(n==null||n>d.length)&&(n=d.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=d[t];return e}var x2=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function J(d,n,t){if(n=n||{},!!d.country){t=new c(t),t.selectNumberingPlan(d.country,d.countryCallingCode);var e=n.v2?d.nationalNumber:d.phone;if(y(e,t.nationalNumberPattern())){if(D(e,"FIXED_LINE",t))return t.type("MOBILE")&&t.type("MOBILE").pattern()===""||!t.type("MOBILE")||D(e,"MOBILE",t)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=D2(x2),o;!(o=i()).done;){var r=o.value;if(D(e,r,t))return r}}}}function D(d,n,t){return n=t.type(n),!n||!n.pattern()||n.possibleLengths()&&n.possibleLengths().indexOf(d.length)<0?!1:y(d,n.pattern())}function U2(d,n,t){if(n=n||{},t=new c(t),t.selectNumberingPlan(d.country,d.countryCallingCode),t.hasTypes())return J(d,n,t.metadata)!==void 0;var e=n.v2?d.nationalNumber:d.phone;return y(e,t.nationalNumberPattern())}function W2(d,n,t){var e=new c(t),i=e.getCountryCodesForCallingCode(d);return i?i.filter(function(o){return K2(n,o,t)}):[]}function K2(d,n,t){var e=new c(t);return e.selectNumberingPlan(n),e.numberingPlan.possibleLengths().indexOf(d.length)>=0}function H2(d){return d.replace(new RegExp("[".concat(T,"]+"),"g")," ").trim()}var k2=/(\$\d)/;function V2(d,n,t){var e=t.useInternationalFormat,i=t.withNationalPrefix;t.carrierCode,t.metadata;var o=d.replace(new RegExp(n.pattern()),e?n.internationalFormat():i&&n.nationalPrefixFormattingRule()?n.format().replace(k2,n.nationalPrefixFormattingRule()):n.format());return e?H2(o):o}var j2=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Z2(d,n,t){var e=new c(t);if(e.selectNumberingPlan(d,n),e.defaultIDDPrefix())return e.defaultIDDPrefix();if(j2.test(e.IDDPrefix()))return e.IDDPrefix()}function Y2(d){var n=d.number,t=d.ext;if(!n)return"";if(n[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(n).concat(t?";ext="+t:"")}function J2(d,n){var t=typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(t)return(t=t.call(d)).next.bind(t);if(Array.isArray(d)||(t=X2(d))||n&&d&&typeof d.length=="number"){t&&(d=t);var e=0;return function(){return e>=d.length?{done:!0}:{done:!1,value:d[e++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X2(d,n){if(d){if(typeof d=="string")return l0(d,n);var t=Object.prototype.toString.call(d).slice(8,-1);if(t==="Object"&&d.constructor&&(t=d.constructor.name),t==="Map"||t==="Set")return Array.from(d);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l0(d,n)}}function l0(d,n){(n==null||n>d.length)&&(n=d.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=d[t];return e}function f0(d,n){var t=Object.keys(d);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(d);n&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(d,i).enumerable})),t.push.apply(t,e)}return t}function p0(d){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?f0(Object(t),!0).forEach(function(e){Q2(d,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(t)):f0(Object(t)).forEach(function(e){Object.defineProperty(d,e,Object.getOwnPropertyDescriptor(t,e))})}return d}function Q2(d,n,t){return n in d?Object.defineProperty(d,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):d[n]=t,d}var g0={formatExtension:function(n,t,e){return"".concat(n).concat(e.ext()).concat(t)}};function z2(d,n,t,e){if(t?t=p0(p0({},g0),t):t=g0,e=new c(e),d.country&&d.country!=="001"){if(!e.hasCountry(d.country))throw new Error("Unknown country: ".concat(d.country));e.country(d.country)}else if(d.countryCallingCode)e.selectNumberingPlan(d.countryCallingCode);else return d.phone||"";var i=e.countryCallingCode(),o=t.v2?d.nationalNumber:d.phone,r;switch(n){case"NATIONAL":return o?(r=R(o,d.carrierCode,"NATIONAL",e,t),w(r,d.ext,e,t.formatExtension)):"";case"INTERNATIONAL":return o?(r=R(o,null,"INTERNATIONAL",e,t),r="+".concat(i," ").concat(r),w(r,d.ext,e,t.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(o);case"RFC3966":return Y2({number:"+".concat(i).concat(o),ext:d.ext});case"IDD":if(!t.fromCountry)return;var a=d1(o,d.carrierCode,i,t.fromCountry,e);return w(a,d.ext,e,t.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n,'"'))}}function R(d,n,t,e,i){var o=q2(e.formats(),d);return o?V2(d,o,{useInternationalFormat:t==="INTERNATIONAL",withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:n,metadata:e}):d}function q2(d,n){for(var t=J2(d),e;!(e=t()).done;){var i=e.value;if(i.leadingDigitsPatterns().length>0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(n.search(o)!==0)continue}if(y(n,i.pattern()))return i}}function w(d,n,t,e){return n?e(d,n,t):d}function d1(d,n,t,e,i){var o=L(e,i.metadata);if(o===t){var r=R(d,n,"NATIONAL",i);return t==="1"?t+" "+r:r}var a=Z2(e,void 0,i.metadata);if(a)return"".concat(a," ").concat(t," ").concat(R(d,null,"INTERNATIONAL",i))}function y0(d,n){var t=Object.keys(d);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(d);n&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(d,i).enumerable})),t.push.apply(t,e)}return t}function N0(d){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?y0(Object(t),!0).forEach(function(e){n1(d,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(t)):y0(Object(t)).forEach(function(e){Object.defineProperty(d,e,Object.getOwnPropertyDescriptor(t,e))})}return d}function n1(d,n,t){return n in d?Object.defineProperty(d,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):d[n]=t,d}function t1(d,n){if(!(d instanceof n))throw new TypeError("Cannot call a class as a function")}function A0(d,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(d,e.key,e)}}function e1(d,n,t){return n&&A0(d.prototype,n),t&&A0(d,t),Object.defineProperty(d,"prototype",{writable:!1}),d}var i1=function(){function d(n,t,e){if(t1(this,d),!n)throw new TypeError("`country` or `countryCallingCode`
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g1(d,n){if(d){if(typeof d=="string")return h0(d,n);var t=Object.prototype.toString.call(d).slice(8,-1);if(t==="Object"&&d.constructor&&(t=d.constructor.name),t==="Map"||t==="Set")return Array.from(d);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h0(d,n)}}function h0(d,n){(n==null||n>d.length)&&(n=d.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=d[t];return e}function y1(d,n,t){t=new c(t);for(var e=p1(d),i;!(i=e()).done;){var o=i.value;if(t.country(o),t.leadingDigits()){if(n&&n.search(t.leadingDigits())===0)return o}else if(J({phone:n,country:o},void 0,t.metadata))return o}}var N1=!1;function A1(d,n,t){if(N1&&t.isNonGeographicCallingCode(d))return"001";var e=t.getCountryCodesForCallingCode(d);if(e)return e.length===1?e[0]:y1(e,n,t.metadata)}var F0="+",h1="[\\-\\.\\(\\)]?",m0="(["+f+"]|"+h1+")",m1="^\\"+F0+m0+"*["+f+"]"+m0+"*$",E1=new RegExp(m1,"g"),K=f,S1="["+K+"]+((\\-)*["+K+"])*",C1="a-zA-Z",v1="["+C1+"]+((\\-)*["+K+"])*",P1="^("+S1+"\\.)*"+v1+"\\.?$",b1=new RegExp(P1,"g"),E0="tel:",H=";phone-context=",I1=";isub=";function O1(d){var n=d.indexOf(H);if(n<0)return null;var t=n+H.length;if(t>=d.length)return"";var e=d.indexOf(";",t);return e>=0?d.substring(t,e):d.substring(t)}function T1(d){return d===null?!0:d.length===0?!1:E1.test(d)||b1.test(d)}function M1(d,n){var t=n.extractFormattedPhoneNumber,e=O1(d);if(!T1(e))throw new N("NOT_A_NUMBER");var i;if(e===null)i=t(d)||"";else{i="",e.charAt(0)===F0&&(i+=e);var o=d.indexOf(E0),r;o>=0?r=o+E0.length:r=0;var a=d.indexOf(H);i+=d.substring(r,a)}var s=i.indexOf(I1);if(s>0&&(i=i.substring(0,s)),i!=="")return i}var R1=250,F1=new RegExp("["+Z+f+"]"),_1=new RegExp("[^"+f+"#]+$");function L1(d,n,t){if(n=n||{},t=new c(t),n.defaultCountry&&!t.hasCountry(n.defaultCountry))throw n.v2?new N("INVALID_COUNTRY"):new Error("Unknown country: ".concat(n.defaultCountry));var e=G1(d,n.v2,n.extract),i=e.number,o=e.ext,r=e.error;if(!i){if(n.v2)throw r==="TOO_SHORT"?new N("TOO_SHORT"):new N("NOT_A_NUMBER");return{}}var a=w1(i,n.defaultCountry,n.defaultCallingCode,t),s=a.country,$=a.nationalNumber,l=a.countryCallingCode,p=a.countryCallingCodeSource,u=a.carrierCode;if(!t.hasSelectedNumberingPlan()){if(n.v2)throw new N("INVALID_COUNTRY");return{}}if(!$||$.length<j){if(n.v2)throw new N("TOO_SHORT");return{}}if($.length>e2){if(n.v2)throw new N("TOO_LONG");return{}}if(n.v2){var g=new i1(l,$,t.metadata);return s&&(g.country=s),u&&(g.carrierCode=u),o&&(g.ext=o),g.__countryCallingCodeSource=p,g}var C=(n.extended?t.hasSelectedNumberingPlan():s)?y($,t.nationalNumberPattern()):!1;return n.extended?{country:s,countryCallingCode:l,carrierCode:u,valid:C,possible:C?!0:!!(n.extended===!0&&t.possibleLengths()&&R0($,t)),phone:$,ext:o}:C?D1(s,$,o):{}}function B1(d,n,t){if(d){if(d.length>R1){if(t)throw new N("TOO_LONG");return}if(n===!1)return d;var e=d.search(F1);if(!(e<0))return d.slice(e).replace(_1,"")}}function G1(d,n,t){var e=M1(d,{extractFormattedPhoneNumber:function(r){return B1(r,t,n)}});if(!e)return{};if(!P2(e))return b2(e)?{error:"TOO_SHORT"}:{};var i=I2(e);return i.ext?i:{number:e}}function D1(d,n,t){var e={country:d,phone:n};return t&&(e.ext=t),e}function w1(d,n,t,e){var i=f1(s0(d),n,t,e.metadata),o=i.countryCallingCodeSource,r=i.countryCallingCode,a=i.number,s;if(r)e.selectNumberingPlan(r);else if(a&&(n||t))e.selectNumberingPlan(n,t),n&&(s=n),r=t||L(n,e.metadata);else return{};if(!a)return{countryCallingCodeSource:o,countryCallingCode:r};var $=W(s0(a),e),l=$.nationalNumber,p=$.carrierCode,u=A1(r,l,e);return u&&(s=u,u==="001"||e.country(s)),{country:s,countryCallingCode:r,countryCallingCodeSource:o,nationalNumber:l,carrierCode:p}}function S0(d,n){var t=Object.keys(d);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(d);n&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(d,i).enumerable})),t.push.apply(t,e)}return t}function C0(d){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?S0(Object(t),!0).forEach(function(e){x1(d,
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V1(d,n){if(d){if(typeof d=="string")return P0(d,n);var t=Object.prototype.toString.call(d).slice(8,-1);if(t==="Object"&&d.constructor&&(t=d.constructor.name),t==="Map"||t==="Set")return Array.from(d);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return P0(d,n)}}function P0(d,n){(n==null||n>d.length)&&(n=d.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=d[t];return e}function j1(d,n){var t=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(t!=null){var e=[],i=!0,o=!1,r,a;try{for(t=t.call(d);!(i=(r=t.next()).done)&&(e.push(r.value),!(n&&e.length===n));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&t.return!=null&&t.return()}finally{if(o)throw a}}return e}}function Z1(d){if(Array.isArray(d))return d}function Y1(d){var n=Array.prototype.slice.call(d),t=H1(n,4),e=t[0],i=t[1],o=t[2],r=t[3],a,s,$;if(typeof e=="string")a=e;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")r?(s=o,$=r):(s=void 0,$=o),i&&(s=W1({defaultCountry:i},s));else if(J1(i))o?(s=i,$=o):$=i;else throw new Error("Invalid second argument: ".concat(i));return{text:a,options:s,metadata:$}}var J1=function(n){return k(n)==="object"};function X1(){var d=Y1(arguments),n=d.text,t=d.options,e=d.metadata;return U1(n,t,e)}function Q1(d){return new c(d).getCountries()}function z1(){return V(X1,arguments)}function q1(){return V(Q1,arguments)}function dd(){return V(L,arguments)}var A={};A.byFips=function(d){return S("fips",d.toUpperCase())};A.byIso=function(d){if(!isNaN(parseInt(d)))return S("isoNo",("00"+parseInt(d).toString()).slice(-3));if(d.length===2)return S("iso2",d.toUpperCase());if(d.length===3)return S("iso3",d.toUpperCase());throw new Error("cannot determine ISO code type")};A.byInternet=function(d){return S("internet",d.toUpperCase())};A.byCountry=function(d){return S("country",d)};function S(d,n){for(var t=0;t<O.length;t++)if(O[t][d]===n)return O[t];return null}var O=[{continent:"Asia",region:"South Asia",country:"Afghanistan",capital:"Kabul",fips:"AF",iso2:"AF",iso3:"AFG",isoNo:"004",internet:"AF"},{continent:"Europe",region:"South East Europe",country:"Albania",capital:"Tirana",fips:"AL",iso2:"AL",iso3:"ALB",isoNo:"008",internet:"AL"},{continent:"Africa",region:"Northern Africa",country:"Algeria",capital:"Algiers",fips:"AG",iso2:"DZ",iso3:"DZA",isoNo:"012",internet:"DZ"},{continent:"Oceania",region:"Pacific",country:"American Samoa",capital:"Pago Pago",fips:"AQ",iso2:"AS",iso3:"ASM",isoNo:"016",internet:"AS"},{continent:"Europe",region:"South West Europe",country:"Andorra",capital:"Andorra la Vella",fips:"AN",iso2:"AD",iso3:"AND",isoNo:"020",internet:"AD"},{continent:"Africa",region:"Southern Africa",country:"Angola",capital:"Luanda",fips:"AO",iso2:"AO",iso3:"AGO",isoNo:"024",internet:"AO"},{continent:"Americas",region:"West Indies",country:"Anguilla",capital:"The Valley",fips:"AV",iso2:"AI",iso3:"AIA",isoNo:"660",internet:"AI"},{continent:"Americas",region:"West Indies",country:"Antigua and Barbuda",capital:"Saint John's",fips:"AC",iso2:"AG",iso3:"ATG",isoNo:"028",internet:"AG"},{continent:"Americas",region:"South America",country:"Argentina",capital:"Buenos Aires",fips:"AR",iso2:"AR",iso3:"ARG",isoNo:"032",internet:"AR"},{continent:"Asia",region:"South West Asia",country:"Armenia",capital:"Yerevan",fips:"AM",iso2:"AM",iso3:"ARM",isoNo:"051",internet:"AM"},{continent:"Americas",region:"West Indies",country:"Aruba",capital:"Oranjestad",fips:"AA",iso2:"AW",iso3:"ABW",isoNo:"533",internet:"AW"},{continent:"Oceania",region:"Pacific",country:"Australia",capital:"Canberra",fips:"AS",iso2:"AU",iso3:"AUS",isoNo:"036",internet:"AU"},{continent:"Europe",region:"Central Europe",country:"Austria",capital:"Vienna",fips:"AU",iso2:"AT",iso3:"AUT",isoNo:"040",internet:"AT"},{continent:"Asia",region:"South West Asia",country:"Azerbaijan",capital:"Baku (Baki)",fips:"AJ",iso2:"AZ",iso3:"AZE",isoNo:"031",internet:"AZ"},{continent:"Americas",region:"West Indies",country:"The Bahamas",capital:"Nassau",fips:"B