1import{a as H,b as G,P as V,n as i,M as D,c as Z,d as U,e as K,f as J,h as Q,V as uu,j as tu,k as eu,l as nu,m as ru,o as Au,w as a,q as su,r as j,s as au}from"./exports-getCountryCallingCode.B1Uy0QN5.js";import{A as x0,D as N0,t as _0,g as p0,i as P0,u as T0,p as I0,v as b0,p as y0,x as S0}from"./exports-getCountryCallingCode.B1Uy0QN5.js";function f(){return f=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var t=arguments[u];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f.apply(null,arguments)}function P(e,u,t){u&&u.defaultCountry&&!H(u.defaultCountry,t)&&(u=f({},u,{defaultCountry:void 0}));try{return G(e,u,t)}catch(n){if(!(n instanceof V))throw n}}function l(){const{text:e,options:u,metadata:t}=i(arguments);return P(e,u,t)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var t=arguments[u];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},d.apply(null,arguments)}function iu(){let{text:e,options:u,metadata:t}=i(arguments);u=d({},u,{extract:!1});const n=P(e,u,t);return n&&n.isValid()||!1}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var t=arguments[u];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},m.apply(null,arguments)}function Fu(){let{text:e,options:u,metadata:t}=i(arguments);u=m({},u,{extract:!1});const n=P(e,u,t);return n&&n.isPossible()||!1}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var t=arguments[u];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},g.apply(null,arguments)}function Cu(){let{text:e,options:u,metadata:t}=i(arguments);u=g({},u,{extract:!1});try{const n=G(e,u,t);t=new D(t),t.selectNumberingPlan(n.countryCallingCode);const r=Z(n.nationalNumber,n.country,t);if(r!=="IS_POSSIBLE")return r}catch(n){if(n instanceof V)return n.message;throw n}}class b{constructor(u,t,n=null,r=null){this.key=u,this.value=t,this.next=n,this.prev=r}}class ou{constructor(u=10){this.size=0,this.limit=u,this.head=null,this.tail=null,this.cache={}}put(u,t){if(this.ensureLimit(),!this.head)this.head=this.tail=new b(u,t);else{const n=new b(u,t,this.head);this.head.prev=n,this.head=n}this.cache[u]=this.head,this.size++}get(u){if(this.cache[u]){const t=this.cache[u].value;return this.remove(u),this.put(u,t),t}console.log(`Item not available in cache for key ${u}`)}ensureLimit(){this.size===this.limit&&this.remove(this.tail.key)}remove(u){const t=this.cache[u];t.prev!==null?t.prev.next=t.next:this.head=t.next,t.next!==null?t.next.prev=t.prev:this.tail=t.prev,delete this.cache[u],this.size--}clear(){this.head=null,this.tail=null,this.size=0,this.cache={}}}class cu{constructor(u){this.cache=new ou(u)}getPatternForRegExp(u){let t=this.cache.get(u);return t||(t=new RegExp("^"+u),this.cache.put(u,t)),t}}function o(e,u){if(e<0||u<=0||u<e)throw new TypeError;return`{${e},${u}}`}function x(e,u){const t=u.search(e);return t>=0?u.slice(0,t):u}const X="  áá â-â\u2028\u2029â¯âã",C=`[${X}]`,Eu=`[^${X}]`,lu="0-9²³¹¼-¾٠-Ù©Û°-Û¹ß-ß०-९০-৯৴-৹੦-੯૦-૯à¦-à¯à²-à·à¯¦-௲౦-౯౸-౾೦-೯൦-൵à¹-à¹à»-à»à¼ -༳á-áá-áá©-á¼á®-á°á -á©á°-á¹á -á á¥-á¥á§-á§áª-áªáª-áªá-áá®°-᮹á±-á±á±-á±â°â´-â¹â-ââ
-ââ
-ââ -ââª-â¿â¶-ââ³½ãã¡-ã©ã¸-ãºã-ãã -ã©ã-ãã-ãã-ãã±-ã¿ê -ê©ê¦-ê¯ê °-ê µê£-ê£ê¤-ê¤ê§-ê§ê©-ê©ê¯°-꯹ï¼-ï¼",Bu="0-9Ù -Ù©Û°-Û¹ß-ß०-९০-৯੦-੯૦-૯à¦-à¯à¯¦-௯౦-౯೦-೯൦-൯à¹-à¹à»-à»à¼ -༩á-áá-áá -á©á -á á¥-á¥á§-á§áª-áªáª-áªá-áá®°-᮹á±-á±á±-á±ê -ê©ê£-ê£ê¤-ê¤ê§-ê§ê©-ê©ê¯°-꯹ï¼-ï¼",Du=`[${Bu}]`,Y="A-Za-zªµºÃ-ÃÃ-öø-ËË-ËË -ˤˬˮͰ-ʹͶͷͺ-ͽÎÎ-ÎÎÎ-ΡΣ-ϵϷ-ÒÒ-Ô§Ô±-ÕÕÕ¡-Ö×-תװ-×²Ø -Ùٮٯٱ-ÛÛÛ¥Û¦Û®Û¯Ûº-Û¼Û¿ÜÜ-ܯÝ-Þ¥Þ±ß-ߪߴߵߺà -à à à ¤à ¨à¡-à¡à¢ ࢢ-ࢬà¤-हऽà¥à¥-ॡॱ-ॷॹ-ॿà¦
-à¦à¦à¦à¦-নপ-রলশ-হঽà§à§à§à§-à§¡à§°à§±à¨
-à¨à¨à¨à¨-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹà©-à©à©à©²-à©´àª
-àªàª-àªàª-નપ-રલળવ-હઽà«à« à«¡à¬
-à¬à¬à¬à¬-ନପ-ରଲଳଵ-ହଽààà-à¡à±à®à®
-à®à®-à®à®-à®à®à®à®à®à®à®£à®¤à®¨-பம-ஹà¯à°
-à°à°-à°à°-నప-ళవ-హఽà±à±à± ౡà²
-à²à²-à²à²-ನಪ-ಳವ-ಹಽà³à³ ೡೱೲà´
-à´à´-à´à´-ഺഽàµàµ ൡൺ-ൿà¶
-à¶à¶-නඳ-රලà·-à·à¸-ะาำà¹-à¹àºàºàºàºàºàºàºàº-àºàº-àºàº¡-ຣລວສຫàº-ະາຳຽà»-à»à»à»-à»à¼à½-à½à½-ཬà¾-à¾á-áªá¿á-áá-áá¡á¥á¦á®-á°áµ-ááá -á
ááá-áºá¼-áá-áá-ááá-áá -áá-áá-á°á²-áµá¸-á¾áá-á
á-áá-áá-áá-áá-áá -á´á-á¬á¯-á¿á-áá -áªá-áá-áá -á±á-áá -á¬á®-á°á-á³ááá -á¡·á¢-ᢨᢪᢰ-ᣵá¤-á¤á¥-á¥á¥°-ᥴá¦-ᦫá§-á§á¨-á¨á¨ -á©áª§á¬
-ᬳá
-áá®-ᮠᮮᮯᮺ-ᯥá°-á°£á±-á±á±-ᱽᳩ-ᳬá
1³®-ᳱᳵᳶá´-á¶¿á¸-á¼á¼-á¼á¼ -á½
á½-á½á½-á½á½á½á½á½-á½½á¾-á¾´á¾¶-ᾼιá¿-á¿á¿-á¿á¿-á¿á¿-á¿á¿ -Ῥῲ-á¿´á¿¶-ῼâ±â¿â-ââââ-âââ-ââ¤â¦â¨âª-ââ¯-â¹â¼-â¿â
-â
â
âââ°-Ⱞⰰ-â±â± -ⳤⳫ-ⳮⳲⳳâ´-ⴥⴧâ´â´°-ⵧⵯâ¶-â¶â¶ -ⶦⶨ-ⶮⶰ-ⶶⶸ-â¶¾â·-â·â·-â·â·-â·â·-â·â¸¯ã
ãã±-ãµã»ã¼ã-ãã-ãã¡-ãºã¼-ã¿ã
-ãã±-ãã -ãºã°-ã¿ã-ä¶µä¸-é¿ê-êê-ê½ê-êê-êêªê«ê-ê®ê¿-êê -ê¥ê-êê¢-êê-êê-êê -êªê¸-ê ê -ê
ê -ê ê -ê ¢ê¡-ꡳê¢-ꢳꣲ-ꣷꣻê¤-ꤥꤰ-ê¥ê¥ -ꥼê¦-ꦲê§ê¨-ꨨê©-ê©ê©-ê©ê© -ꩶꩺêª-ꪯꪱꪵꪶꪹ-ꪽê«ê«ê«-ê«ê« -ꫪꫲ-ê«´ê¬-ê¬ê¬-ê¬ê¬-ê¬ê¬ -ꬦꬨ-ꬮê¯-ꯢê°-í£í°-íí-í»ï¤-ï©ï©°-ï«ï¬-ï¬ï¬-ï¬ï¬ï¬-ﬨשׁ-זּטּ-לּמּïïïïï-ï®±ï¯-ï´½ïµ-ï¶ï¶-ï·ï·°-ﷻﹰ-ï¹´ï¹¶-ﻼA-Zï½-ï½ï½¦-ï¾¾ï¿-ï¿ï¿-ï¿ï¿-ï¿ï¿-ï¿",hu=`[${Y}]`,fu=new RegExp(hu),du="$¢-Â¥ÖØà§²à§³à§»à«±à¯¹à¸¿áâ -â¹ê ¸ï·¼ï¹©ï¼ï¿ £¥₩",mu=`[${du}]`,gu=new RegExp(mu),xu="Ì-ͯÒ-ÒÖ-Ö½Ö¿××××
ר-ØÙ-ÙÙ°Û-ÛÛ-Û¤Û§Û¨Ûª-ÛÜܰ-ÝÞ¦-Þ°ß«-ß³à -à à -à £à ¥-à §à ©-à à¡-à¡à£¤-ࣾà¤-à¤à¤ºà¤¼à¥-à¥à¥à¥-à¥à¥¢à¥£à¦à¦¼à§-à§à§à§¢à§£à¨à¨à¨¼à©à©à©à©à©-à©à©à©°à©±à©µàªàªàª¼à«-à«
à«à«à«à«¢à«£à¬à¬¼à¬¿à-àààà¢à£à®à¯à¯à°¾-à±à±-à±à±-à±à±à±à±¢à±£à²¼à²¿à³à³à³à³¢à³£àµ-àµàµàµ¢àµ£à·à·-à·à·à¸±à¸´-ฺà¹-à¹àº±àº´-ູົຼà»-à»à¼à¼à¼µà¼·à¼¹à½±-ཾà¾-à¾à¾à¾à¾-à¾à¾-ྼà¿á-á°á²-á·á¹áºá½á¾ááá-á á±-á´áá
áááá-áá-áá²-á´ááá²á³á´áµá·-á½áá-ááá -á ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻á¨á¨á©á©-á©á© ᩢᩥ-ᩬᩳ-᩿᩼á¬-á¬á¬´á¬¶-ᬺᬼáá«-á³á®á®á®¢-ᮥᮨᮩ᯦᮫ᯨᯩá¯á¯¯-ᯱᰬ-ᰳᰶ᰷á³-á³á³-á³ á³¢-᳨á³á³´á·-ᷦ᷼-á·¿â-ââ¡â¥-â°â³¯-⵿⳱ⷠ-â·¿ãª-ãããê¯ê´-ê½êê°ê±ê ê ê ê ¥ê ¦ê£ê£ -꣱ꤦ-ê¤ê¥-ê¥ê¦-ê¦ê¦³ê¦¶-ꦹꦼꨩ-ꨮꨱꨲꨵꨶê©ê©êª°êª²-ꪴꪷꪸꪾ꪿ê«ê«¬ê«ê«¶ê¯¥ê¯¨ê¯ï¬ï¸-ï¸ï¸ -︦",Nu=`[${xu}]`,_u=new RegExp(Nu),pu="\0-�",Pu="Â-ÿ",Tu="Ä-Å¿",Iu="á¸-ỿ",bu="Æ-É",yu="Ì-ͯ",Su=new RegExp("["+pu+Pu+Tu+Iu+bu+yu+"]");function y(e){return!fu.test(e)&&!_u.test(e)?!1:Su.test(e)}function S(e){return e==="%"||gu.test(e)}function Ru(e,u,t){let n=!0,r=l(e,t);if(r||(n=!1,r=l(e,{defaultCallingCode:u.countryCallingCode},t)),!r)return"INVALID_NUMBER";if(u.ext){if(r.ext!==u.ext)return"NO_MATCH"}else if(r.ext)return"NO_MATCH";return n&&u.countryCallingCode!==r.countryCallingCode?"NO_MATCH":u.number===r.number?n?"EXACT_MATCH":"NSN_MATCH":u.nationalNumber.indexOf(r.nationalNumber)===0||r.nationalNumber.indexOf(u.nationalNumber)===0?"SHORT_NSN_MATCH":"NO_MATCH"}const R={POSSIBLE(e,{candidate:u,metadata:t}){return!0},VALID(e,{candidate:u,defaultCountry:t,metadata:n}){return!(!e.isValid()||!h(e,u,n))},STRICT_GROUPING(e,{candidate:u,defaultCountry:t,metadata:n,regExpCache:r}){return!e.isValid()||!h(e,u,n)||M(e,u)||!O(e,{defaultCountry:t,metadata:n})?!1:L()},EXACT_GROUPING(e,{candidate:u,defaultCountry:t,metadata:n,regExpCache:r}){return!e.isValid()||!h(e,u,n)||M(e,u)||!O(e,{defaultCountry:t,metadata:n})?!1:L()}};function h(e,u,t){for(let n=0;n<u.length-1;n++){const r=u.charAt(n);if(r==="x"||r==="X"){const A=u.charAt(n+1);if(A==="x"||A==="X"){if(n++,Ru(u.substring(n),e,t)!=="NSN_MATCH")return!1}else{const s=U(u.substring(n));if(s){if(e.ext!==s)return!1}else if(e.ext)return!1}}}return!0}function O(e,{defaultCountry:u,metadata:t}){if(e.__countryCallingCodeSource!=="FROM_DEFAULT_COUNTRY")return!0;const n=new D(t);n.selectNumberingPlan(e.countryCallingCode),e.country||K(e.countryCallingCode,{nationalNumber:e.nationalNumber,metadata:n});const r=e.nationalNumber,A=J(n.numberingPlan.formats(),r);return A.nationalPrefixFormattingRule()?n.numberingPlan.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!A.usesNationalPrefix()?!0:!!e.nationalPrefix:!0}function M(e,u){const t=u.indexOf("/");if(t<0)return!1;const n=u.indexOf("/",t+1);return n<0?!1:(e.__countryCallingCodeSource==="FROM_NUMBER_WITH_PLUS_SIGN"||e.__countryCallingCodeSource==="FROM_NUMBER_WITHOUT_PLUS_SIGN")&&U(u.substring(0,t))===e.countryCallingCode?u.slice(n+1).indexOf("/")>=0:!0}
1function L(e,u,t,n,r){throw new Error("This part of code hasn't been ported")}const Ou=/[\\/] *x/;function Mu(e){return x(Ou,e)}const Lu=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,wu=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,$u=/^:[0-5]\d/;function vu(e,u,t){if(Lu.test(e))return!1;if(wu.test(e)){const n=t.slice(u+e.length);if($u.test(n))return!1}return!0}const B="(\\[ï¼ï¼»",N=")\\]ï¼ï¼½",E=`[^${B}${N}]`,z=`[${B}${Q}]`,Hu=new RegExp("^"+z),Gu=o(0,3),Vu=new RegExp("^(?:["+B+"])?(?:"+E+"+["+N+"])?"+E+"+(?:["+B+"]"+E+"+["+N+"])"+Gu+E+"*$"),Uu=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function ju(e,u,t,n){if(!(!Vu.test(e)||Uu.test(e))){if(n!=="POSSIBLE"){if(u>0&&!Hu.test(e)){const A=t[u-1];if(S(A)||y(A))return!1}const r=u+e.length;if(r<t.length){const A=t[r];if(S(A)||y(A))return!1}}return!0}}const Xu=tu(),Yu=["/+(.*)","(\\([^(]*)",`(?:${C}-|-${C})${C}*(.+)`,`[â-âï¼]${C}*(.+)`,`\\.+${C}*([^.]+)`,`${C}+(${Eu}+)`],zu=o(0,2),Wu=o(0,4),W=eu+nu,ku=o(0,W),w=`[${uu}]`+Wu,$=Du+o(1,W),qu="(?:"+z+w+")"+zu+$+"(?:"+w+$+")"+ku+"(?:"+Xu+")?",v=new RegExp(`[^${lu}${Y}#]+$`),Zu=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;let c=class{constructor(u="",t={},n){if(t={v2:t.v2,defaultCallingCode:t.defaultCallingCode,defaultCountry:t.defaultCountry&&H(t.defaultCountry,n)?t.defaultCountry:void 0,leniency:t.leniency||(t.extended?"POSSIBLE":"VALID"),maxTries:t.maxTries||Zu},!R[t.leniency])throw new TypeError(`Unknown leniency: "${t.leniency}"`);if(t.leniency!=="POSSIBLE"&&t.leniency!=="VALID")throw new TypeError(`Invalid \`leniency\`: "${t.leniency}". Supported values: "POSSIBLE", "VALID".`);if(t.maxTries<0)throw new TypeError("`maxTries` must be `>= 0`");this.text=u,this.options=t,this.metadata=n,this.leniency=R[t.leniency],this.maxTries=t.maxTries,this.PATTERN=new RegExp(qu,"ig"),this.INNER_MATCHES=Yu.map(r=>new RegExp(r,"g")),this.state="NOT_READY",this.searchIndex=0,this.regExpCache=new cu(32)}find(u){this.PATTERN.lastIndex=u;let t;for(;this.maxTries>0&&(t=this.PATTERN.exec(this.text))!==null;){let n=t[0];const r=t.index;if(n=Mu(n),vu(n,r,this.text)){const A=this.parseAndVerify(n,r,this.text)||this.extractInnerMatch(n,r,this.text);if(A){if(this.options.v2)return{startsAt:A.startsAt,endsAt:A.endsAt,number:A.phoneNumber};{const{phoneNumber:s}=A,F={startsAt:A.startsAt,endsAt:A.endsAt,phone:s.nationalNumber};return s.country?F.country=s.country:F.countryCallingCode=s.countryCallingCode,s.ext&&(F.ext=s.ext),F}}}this.maxTries--}}extractInnerMatch(u,t,n){for(const r of this.INNER_MATCHES){r.lastIndex=0;let A=!0,s;for(;this.maxTries>0&&(s=r.exec(u))!==null;){if(A){const q=x(v,u.slice(0,s.index)),I=this.parseAndVerify(q,t,n);if(I)return I;this.maxTries--,A=!1}const F=x(v,s[1]),k=u.indexOf(F,s.index),T=this.parseAndVerify(F,t+k,n);if(T)return T;this.maxTries--}}}parseAndVerify(u,t,n){if(!ju(u,t,n,this.options.leniency))return;const r=l(u,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(r&&r.isPossible()&&this.leniency(r,{candidate:u,defaultCountry:this.options.defaultCountry,metadata:this.metadata,regExpCache:this.regExpCache}))return{startsAt:t,endsAt:t+u.length,phoneNumber:r}}hasNext(){return this.state==="NOT_READY"&&(this.lastMatch=this.find(this.searchIndex),this.lastMatch?(this.searchIndex=this.lastMatch.endsAt,this.state="READY"):this.state="DONE"),this.state==="READY"}next(){if(!this.hasNext())throw new Error("No next element");const u=this.lastMatch;return this.lastMatch=null,this.state="NOT_READY",u}};function Ku(){const{text:e,options:u,metadata:t}=i(arguments),n=new c(e,u,t),r=[];for(;n.hasNext();)r.push(n.next());return r}function Ju(){const{text:e,options:u,metadata:t}=i(arguments),n=new c(e,u,t);return{[Symbol.iterator](){return{next:()=>n.hasNext()?{done:!1,value:n.next()}:{done:!0}}}}}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var t=arguments[u];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_.apply(null,arguments)}function Qu(){const{text:e,options:u,metadata:t}=i(arguments),n=new c(e,_({},u,{v2:!0}),t),r=[];for(;n.hasNext();)r.push(n.next());return r}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var t=arguments[u];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},p.apply(null,arguments)}function u0(){const{text:e,options:u,metadata:t}=i(arguments),n=new c(e,p({},u,{v2:!0}),t);return{[Symbol.iterator](){return{next:()=>n.hasNext()?{done:!1,value:n.next()}:{done:!0}}}}}function t0(e){return new D(e).getCountries()}function e0(e,u,t){if(u[e])return new ru(e,u[e],t)}function n0(e,u,t){return t||(t=u,u=void 0),new Au(u,t).input(e)}function s0(){return a(l,arguments,su.prototype)}function a0(){return a(iu,arguments)}function i0(){return a(Fu,arguments)}function F0(){return a(Cu,arguments)}function C0(){return a(Ku,arguments)}function o0(){return a(Ju,arguments)}function c0(){return a(Qu,arguments)}function E0(){return a(u0,arguments)}class l0 extends c{constructor(u,t){super(u,t,j)}}function B0(){return a(t0,arguments)}function D0(){return a(au,arguments)}class h0 extends D{constructor(){super(j)}}function f0(){return a(e0,arguments)}function d0(){return a(n0,arguments)}export{x0 as AsYouType,N0 as DIGIT_PLACEHOLDER,h0 as Metadata,V as ParseError,su as PhoneNumber,l0 as PhoneNumberMatcher,s0 as default,C0 as findNumbers,c0 as findPhoneNumbersInText,d0 as formatIncompletePhoneNumber,_0 as formatRFC3966,B0 as getCountries,p0 as getCountryCallingCode,f0 as getExampleNumber,D0 as getExtPrefix,i0 as isPossiblePhoneNumber,P0 as isSupportedCountry,a0 as isValidPhoneNumber,U as parseDigits,T0 as parseIncompletePhoneNumber,I0 as parsePhoneNumber,b0 as parsePhoneNumberCharacter,s0 as parsePhoneNumberFromString,y0 as parsePhoneNumberWithError,S0 as parseRFC3966,o0 as searchNumbers,E0 as searchPhoneNumbersInText,F0 as validatePhoneNumberLength};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.