(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:L(Za,a)}function gb(a){return L(Wa,a)?M(a,Pa):M(a,I)}function hb(a){var b=gb(a.toString());B(a);a.a(b)}function ib(a){return null!=a&&(1!=x(a,9)||-1!=v(a,9)[0])} function M(a,b){for(var c=new A,d,e=a.length,f=0;f=e?c=b:(d=d.substring(0,e),d=M(d,I),0==d.length?c=b:(g=g.clone(),Da(g,4),d=[g],g=w(a,1),b=P(a),g in H?(c=R(c,g,S(g)),e=wb(d,b),null!=e&&(d=e.clone(),e=w(e,4),0b?2:f[f.length-1]=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in H)return b.a(a.substring(e)),c;return 0} function Gb(a,b,c,d,e,f){if(0==b.length)return 0;b=new A(b);var g;null!=c&&(g=r(c,11));null==g&&(g="NonMatch");var k=b.toString();if(0==k.length)g=20;else if(J.test(k))k=k.replace(J,""),B(b),b.a(gb(k)),g=1;else{k=new RegExp(g);hb(b);g=b.toString();if(0==g.search(k)){k=g.match(k)[0].length;var m=g.substring(k).match(Sa);m&&null!=m[1]&&0=b.b.length)throw Error("Phone number too short after IDD"); a=Fb(b,d);if(0!=a)return u(f,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(g=w(c,10),k=""+g,m=b.toString(),0==m.lastIndexOf(k,0)&&(k=new A(m.substring(k.length)),m=r(c,1),m=new RegExp(w(m,2)),Hb(k,c,null),k=k.toString(),!L(m,b.toString())&&L(m,k)||3==V(a,b.toString(),c,-1))))return d.a(k),e&&u(f,6,10),u(f,1,g),g;u(f,1,0);return 0} function Hb(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(w(r(b,1),2));var k=L(f,d),m=e.length-1;b=r(b,16);if(null==b||0==b.length||null==e[m]||0==e[m].length){if(!k||L(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 A,e=new A(b.toString()),Hb(e,g,c),a=V(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