(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;bc&&(c=Math.max(c+e,0));cb?1:aa.length?!1:M(db,a)}function lb(a){return M(ab,a)?N(a,Ua):N(a,J)}function mb(a){var b=lb(a.toString());C(a);a.a(b)}function nb(a){return null!=a&&(1!=y(a,9)||-1!=v(a,9)[0])} function N(a,b){for(var c=new B,d,e=a.length,f=0;f=e?c=b:(d=d.substring(0,e),d=N(d,J),0==d.length?c=b:(g=g.clone(),Ia(g,4),d=[g],g=x(a,1),b=Q(a),g in I?(c=S(c,g,T(g)),e=xb(d,b),null!=e&&(d=e.clone(),e=x(e,4),0b?2:f[f.length-1]=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in I)return b.a(a.substring(e)),c;return 0} function Ib(a,b,c,d,e,f){if(0==b.length)return 0;b=new B(b);var g;null!=c&&(g=r(c,11));null==g&&(g="NonMatch");var h=b.toString();if(0==h.length)g=20;else if(K.test(h))h=h.replace(K,""),C(b),b.a(lb(h)),g=1;else{h=new RegExp(g);mb(b);g=b.toString();if(0==g.search(h)){h=g.match(h)[0].length;var m=g.substring(h).match(Xa);m&&null!=m[1]&&0=b.b.length)throw Error("Phone number too short after IDD"); a=Hb(b,d);if(0!=a)return t(f,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(g=x(c,10),h=""+g,m=b.toString(),0==m.lastIndexOf(h,0)&&(h=new B(m.substring(h.length)),m=r(c,1),m=new RegExp(x(m,2)),Jb(h,c,null),h=h.toString(),!M(m,b.toString())&&M(m,h)||3==Fb(a,b.toString(),c,-1))))return d.a(h),e&&t(f,6,10),t(f,1,g),g;t(f,1,0);return 0} function Jb(a,b,c){var d=a.toString(),e=d.length,f=r(b,15);if(0!=e&&null!=f&&0!=f.length){var g=new RegExp("^(?:"+f+")");if(e=g.exec(d)){f=new RegExp(x(r(b,1),2));var h=M(f,d),m=e.length-1;b=r(b,16);if(null==b||0==b.length||null==e[m]||0==e[m].length){if(!h||M(f,d.substring(e[0].length)))null!=c&&0b.b.length)throw Error("The string supplied is too short to be a phone number");null!=g&&(c=new B,e=new B(b.toString()),Jb(e,g,c),a=Fb(a,e.toString(),g,-1),2!=a&&4!=a&&5!=a&&(b=e,d&&0a)throw Error("The string supplied is too short to be a phone number");if(17