/*! jQuery v2.2.0 | (c) jQuery Foundation | jquery.org/license */
var frmcontainer;!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){var o=[],n=e.document,r=o.slice,a=o.concat,i=o.push,d=o.indexOf,s={},l=s.toString,c=s.hasOwnProperty,u={},h="2.2.0",p=function(e,t){return new p.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,m=/-([\da-z])/gi,v=function(e,t){return t.toUpperCase()};function $(e){var t=!!e&&"length"in e&&e.length,o=p.type(e);return"function"!==o&&!p.isWindow(e)&&("array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e)}p.fn=p.prototype={jquery:h,constructor:p,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=p.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return p.each(this,e)},map:function(e){return this.pushStack(p.map(this,function(t,o){return e.call(t,o,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,o=+e+(0>e?t:0);return this.pushStack(o>=0&&t>o?[this[o]]:[])},end:function(){return this.prevObject||this.constructor()},push:i,sort:o.sort,splice:o.splice},p.extend=p.fn.extend=function(){var e,t,o,n,r,a,i=arguments[0]||{},d=1,s=arguments.length,l=!1;for("boolean"==typeof i&&(l=i,i=arguments[d]||{},d++),"object"==typeof i||p.isFunction(i)||(i={}),d===s&&(i=this,d--);s>d;d++)if(null!=(e=arguments[d]))for(t in e)o=i[t],i!==(n=e[t])&&(l&&n&&(p.isPlainObject(n)||(r=p.isArray(n)))?(r?(r=!1,a=o&&p.isArray(o)?o:[]):a=o&&p.isPlainObject(o)?o:{},i[t]=p.extend(l,a,n)):void 0!==n&&(i[t]=n));return i},p.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===p.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!p.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){return"object"===p.type(e)&&!e.nodeType&&!p.isWindow(e)&&!(e.constructor&&!c.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[l.call(e)]||"object":typeof e},globalEval:function(e){var t,o=eval;(e=p.trim(e))&&(1===e.indexOf("use strict")?((t=n.createElement("script")).text=e,n.head.appendChild(t).parentNode.removeChild(t)):o(e))},camelCase:function(e){return e.replace(g,"ms-").replace(m,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var o,n=0;if($(e))for(o=e.length;o>n&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(f,"")},makeArray:function(e,t){var o=t||[];return null!=e&&($(Object(e))?p.merge(o,"string"==typeof e?[e]:e):i.call(o,e)),o},inArray:function(e,t,o){return null==t?-1:d.call(t,e,o)},merge:function(e,t){for(var o=+t.length,n=0,r=e.length;o>n;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,o){for(var n=[],r=0,a=e.length,i=!o;a>r;r++)!t(e[r],r)!==i&&n.push(e[r]);return n},map:function(e,t,o){var n,r,i=0,d=[];if($(e))for(n=e.length;n>i;i++)null!=(r=t(e[i],i,o))&&d.push(r);else for(i in e)null!=(r=t(e[i],i,o))&&d.push(r);return a.apply([],d)},guid:1,proxy:function(e,t){var o,n,a;return"string"==typeof t&&(o=e[t],t=e,e=o),p.isFunction(e)?(n=r.call(arguments,2),a=function(){return e.apply(t||this,n.concat(r.call(arguments)))},a.guid=e.guid=e.guid||p.guid++,a):void 0},now:Date.now,support:u}),"function"==typeof Symbol&&(p.fn[Symbol.iterator]=o[Symbol.iterator]),p.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){s["[object "+t+"]"]=t.toLowerCase()});var y=function(e){var t,o,n,r,a,i,d,s,l,c,u,h,p,f,g,m,v,$,y,C="sizzle"+1*new Date,w=e.document,b=0,P=0,S=ae(),x=ae(),F=ae(),E=function(e,t){return e===t&&(u=!0),0},I=1<<31,T={}.hasOwnProperty,A=[],N=A.pop,O=A.push,_=A.push,k=A.slice,L=function(e,t){for(var o=0,n=e.length;n>o;o++)if(e[o]===t)return o;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="[\\x20\\t\\r\\n\\f]",V="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R="\\["+D+"*("+V+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+V+"))|)"+D+"*\\]",B=":("+V+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",U=new RegExp(D+"+","g"),j=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),H=new RegExp("^"+D+"*,"+D+"*"),W=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),q=new RegExp("="+D+"*([^\\]'\"]*?)"+D+"*\\]","g"),G=new RegExp(B),z=new RegExp("^"+V+"$"),K={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+D+"?|("+D+")|.)","ig"),oe=function(e,t,o){var n="0x"+t-65536;return n!=n||o?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ne=function(){h()};try{_.apply(A=k.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){_={apply:A.length?function(e,t){O.apply(e,k.call(t))}:function(e,t){for(var o=e.length,n=0;e[o++]=t[n++];);e.length=o-1}}}function re(e,t,n,r){var a,d,l,c,u,f,v,$,b=t&&t.ownerDocument,P=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==P&&9!==P&&11!==P)return n;if(!r&&((t?t.ownerDocument||t:w)!==p&&h(t),t=t||p,g)){if(11!==P&&(f=Z.exec(e)))if(a=f[1]){if(9===P){if(!(l=t.getElementById(a)))return n;if(l.id===a)return n.push(l),n}else if(b&&(l=b.getElementById(a))&&y(t,l)&&l.id===a)return n.push(l),n}else{if(f[2])return _.apply(n,t.getElementsByTagName(e)),n;if((a=f[3])&&o.getElementsByClassName&&t.getElementsByClassName)return _.apply(n,t.getElementsByClassName(a)),n}if(o.qsa&&!F[e+" "]&&(!m||!m.test(e))){if(1!==P)b=t,$=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=C),d=(v=i(e)).length,u=z.test(c)?"#"+c:"[id='"+c+"']";d--;)v[d]=u+" "+ge(v[d]);$=v.join(","),b=Q.test(e)&&pe(t.parentNode)||t}if($)try{return _.apply(n,b.querySelectorAll($)),n}catch(e){}finally{c===C&&t.removeAttribute("id")}}}return s(e.replace(j,"$1"),t,n,r)}function ae(){var e=[];return function t(o,r){return e.push(o+" ")>n.cacheLength&&delete t[e.shift()],t[o+" "]=r}}function ie(e){return e[C]=!0,e}function de(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var o=e.split("|"),r=o.length;r--;)n.attrHandle[o[r]]=t}function le(e,t){var o=t&&e,n=o&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||I)-(~e.sourceIndex||I);if(n)return n;if(o)for(;o=o.nextSibling;)if(o===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ue(e){return function(t){var o=t.nodeName.toLowerCase();return("input"===o||"button"===o)&&t.type===e}}function he(e){return ie(function(t){return t=+t,ie(function(o,n){for(var r,a=e([],o.length,t),i=a.length;i--;)o[r=a[i]]&&(o[r]=!(n[r]=o[r]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in o=re.support={},a=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,r,i=e?e.ownerDocument||e:w;return i!==p&&9===i.nodeType&&i.documentElement?(f=(p=i).documentElement,g=!a(p),(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ne,!1):r.attachEvent&&r.attachEvent("onunload",ne)),o.attributes=de(function(e){return e.className="i",!e.getAttribute("className")}),o.getElementsByTagName=de(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),o.getElementsByClassName=J.test(p.getElementsByClassName),o.getById=de(function(e){return f.appendChild(e).id=C,!p.getElementsByName||!p.getElementsByName(C).length}),o.getById?(n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var o=t.getElementById(e);return o?[o]:[]}},n.filter.ID=function(e){var t=e.replace(te,oe);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(te,oe);return function(e){var o=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return o&&o.value===t}}),n.find.TAG=o.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):o.qsa?t.querySelectorAll(e):void 0}:function(e,t){var o,n=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;o=a[r++];)1===o.nodeType&&n.push(o);return n}return a},n.find.CLASS=o.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&g?t.getElementsByClassName(e):void 0},v=[],m=[],(o.qsa=J.test(p.querySelectorAll))&&(de(function(e){f.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+D+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+D+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+C+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||m.push(".#.+[+~]")}),de(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+D+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(o.matchesSelector=J.test($=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de(function(e){o.disconnectedMatch=$.call(e,"div"),$.call(e,"[s!='']:x"),v.push("!=",B)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),y=t||J.test(f.contains)?function(e,t){var o=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(o.contains?o.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!o.sortDetached&&t.compareDocumentPosition(e)===n?e===p||e.ownerDocument===w&&y(w,e)?-1:t===p||t.ownerDocument===w&&y(w,t)?1:c?L(c,e)-L(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var o,n=0,r=e.parentNode,a=t.parentNode,i=[e],d=[t];if(!r||!a)return e===p?-1:t===p?1:r?-1:a?1:c?L(c,e)-L(c,t):0;if(r===a)return le(e,t);for(o=e;o=o.parentNode;)i.unshift(o);for(o=t;o=o.parentNode;)d.unshift(o);for(;i[n]===d[n];)n++;return n?le(i[n],d[n]):i[n]===w?-1:d[n]===w?1:0},p):p},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(q,"='$1']"),o.matchesSelector&&g&&!F[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var n=$.call(e,t);if(n||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return re(t,p,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),y(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var r=n.attrHandle[t.toLowerCase()],a=r&&T.call(n.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==a?a:o.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,n=[],r=0,a=0;if(u=!o.detectDuplicates,c=!o.sortStable&&e.slice(0),e.sort(E),u){for(;t=e[a++];)t===e[a]&&(r=n.push(a));for(;r--;)e.splice(n[r],1)}return c=null,e},r=re.getText=function(e){var t,o="",n=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)o+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[n++];)o+=r(t);return o},n=re.selectors={cacheLength:50,createPseudo:ie,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,oe),e[3]=(e[3]||e[4]||e[5]||"").replace(te,oe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,o=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":o&&G.test(o)&&(t=i(o,!0))&&(t=o.indexOf(")",o.length-t)-o.length)&&(e[0]=e[0].slice(0,t),e[2]=o.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,oe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,o){return function(n){var r=re.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===o:"!="===t?r!==o:"^="===t?o&&0===r.indexOf(o):"*="===t?o&&r.indexOf(o)>-1:"$="===t?o&&r.slice(-o.length)===o:"~="===t?(" "+r.replace(U," ")+" ").indexOf(o)>-1:"|="===t&&(r===o||r.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,o,n,r){var a="nth"!==e.slice(0,3),i="last"!==e.slice(-4),d="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,o,s){var l,c,u,h,p,f,g=a!==i?"nextSibling":"previousSibling",m=t.parentNode,v=d&&t.nodeName.toLowerCase(),$=!s&&!d,y=!1;if(m){if(a){for(;g;){for(h=t;h=h[g];)if(d?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[i?m.firstChild:m.lastChild],i&&$){for(y=(p=(l=(c=(u=(h=m)[C]||(h[C]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===b&&l[1])&&l[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===t){c[e]=[b,p,y];break}}else if($&&(y=p=(l=(c=(u=(h=t)[C]||(h[C]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===b&&l[1]),!1===y)for(;(h=++p&&h&&h[g]||(y=p=0)||f.pop())&&((d?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++y||($&&((c=(u=h[C]||(h[C]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]=[b,y]),h!==t)););return(y-=r)===n||y%n===0&&y/n>=0}}},PSEUDO:function(e,t){var o,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return r[C]?r(t):r.length>1?(o=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ie(function(e,o){for(var n,a=r(e,t),i=a.length;i--;)e[n=L(e,a[i])]=!(o[n]=a[i])}):function(e){return r(e,0,o)}):r}},pseudos:{not:ie(function(e){var t=[],o=[],n=d(e.replace(j,"$1"));return n[C]?ie(function(e,t,o,r){for(var a,i=n(e,null,r,[]),d=e.length;d--;)(a=i[d])&&(e[d]=!(t[d]=a))}):function(e,r,a){return t[0]=e,n(t,null,a,o),t[0]=null,!o.pop()}}),has:ie(function(e){return function(t){return re(e,t).length>0}}),contains:ie(function(e){return e=e.replace(te,oe),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:ie(function(e){return z.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(te,oe).toLowerCase(),function(t){var o;do{if(o=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(o=o.toLowerCase())===e||0===o.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var o=e.location&&e.location.hash;return o&&o.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,o){return[0>o?o+t:o]}),even:he(function(e,t){for(var o=0;t>o;o+=2)e.push(o);return e}),odd:he(function(e,t){for(var o=1;t>o;o+=2)e.push(o);return e}),lt:he(function(e,t,o){for(var n=0>o?o+t:o;--n>=0;)e.push(n);return e}),gt:he(function(e,t,o){for(var n=0>o?o+t:o;++n<t;)e.push(n);return e})}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=ue(t);function fe(){}function ge(e){for(var t=0,o=e.length,n="";o>t;t++)n+=e[t].value;return n}function me(e,t,o){var n=t.dir,r=o&&"parentNode"===n,a=P++;return t.first?function(t,o,a){for(;t=t[n];)if(1===t.nodeType||r)return e(t,o,a)}:function(t,o,i){var d,s,l,c=[b,a];if(i){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,o,i))return!0}else for(;t=t[n];)if(1===t.nodeType||r){if((d=(s=(l=t[C]||(t[C]={}))[t.uniqueID]||(l[t.uniqueID]={}))[n])&&d[0]===b&&d[1]===a)return c[2]=d[2];if(s[n]=c,c[2]=e(t,o,i))return!0}}}function ve(e){return e.length>1?function(t,o,n){for(var r=e.length;r--;)if(!e[r](t,o,n))return!1;return!0}:e[0]}function $e(e,t,o,n,r){for(var a,i=[],d=0,s=e.length,l=null!=t;s>d;d++)(a=e[d])&&(!o||o(a,n,r))&&(i.push(a),l&&t.push(d));return i}function ye(e,t,o,n,r,a){return n&&!n[C]&&(n=ye(n)),r&&!r[C]&&(r=ye(r,a)),ie(function(a,i,d,s){var l,c,u,h=[],p=[],f=i.length,g=a||function(e,t,o){for(var n=0,r=t.length;r>n;n++)re(e,t[n],o);return o}(t||"*",d.nodeType?[d]:d,[]),m=!e||!a&&t?g:$e(g,h,e,d,s),v=o?r||(a?e:f||n)?[]:i:m;if(o&&o(m,v,d,s),n)for(l=$e(v,p),n(l,[],d,s),c=l.length;c--;)(u=l[c])&&(v[p[c]]=!(m[p[c]]=u));if(a){if(r||e){if(r){for(l=[],c=v.length;c--;)(u=v[c])&&l.push(m[c]=u);r(null,v=[],l,s)}for(c=v.length;c--;)(u=v[c])&&(l=r?L(a,u):h[c])>-1&&(a[l]=!(i[l]=u))}}else v=$e(v===i?v.splice(f,v.length):v),r?r(null,i,v,s):_.apply(i,v)})}function Ce(e){for(var t,o,r,a=e.length,i=n.relative[e[0].type],d=i||n.relative[" "],s=i?1:0,c=me(function(e){return e===t},d,!0),u=me(function(e){return L(t,e)>-1},d,!0),h=[function(e,o,n){var r=!i&&(n||o!==l)||((t=o).nodeType?c(e,o,n):u(e,o,n));return t=null,r}];a>s;s++)if(o=n.relative[e[s].type])h=[me(ve(h),o)];else{if((o=n.filter[e[s].type].apply(null,e[s].matches))[C]){for(r=++s;a>r&&!n.relative[e[r].type];r++);return ye(s>1&&ve(h),s>1&&ge(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(j,"$1"),o,r>s&&Ce(e.slice(s,r)),a>r&&Ce(e=e.slice(r)),a>r&&ge(e))}h.push(o)}return ve(h)}function we(e,t){var o=t.length>0,r=e.length>0,a=function(a,i,d,s,c){var u,f,m,v=0,$="0",y=a&&[],C=[],w=l,P=a||r&&n.find.TAG("*",c),S=b+=null==w?1:Math.random()||.1,x=P.length;for(c&&(l=i===p||i||c);$!==x&&null!=(u=P[$]);$++){if(r&&u){for(f=0,i||u.ownerDocument===p||(h(u),d=!g);m=e[f++];)if(m(u,i||p,d)){s.push(u);break}c&&(b=S)}o&&((u=!m&&u)&&v--,a&&y.push(u))}if(v+=$,o&&$!==v){for(f=0;m=t[f++];)m(y,C,i,d);if(a){if(v>0)for(;$--;)y[$]||C[$]||(C[$]=N.call(s));C=$e(C)}_.apply(s,C),c&&!a&&C.length>0&&v+t.length>1&&re.uniqueSort(s)}return c&&(b=S,l=w),y};return o?ie(a):a}return fe.prototype=n.filters=n.pseudos,n.setFilters=new fe,i=re.tokenize=function(e,t){var o,r,a,i,d,s,l,c=x[e+" "];if(c)return t?0:c.slice(0);for(d=e,s=[],l=n.preFilter;d;){for(i in(!o||(r=H.exec(d)))&&(r&&(d=d.slice(r[0].length)||d),s.push(a=[])),o=!1,(r=W.exec(d))&&(o=r.shift(),a.push({value:o,type:r[0].replace(j," ")}),d=d.slice(o.length)),n.filter)!(r=K[i].exec(d))||l[i]&&!(r=l[i](r))||(o=r.shift(),a.push({value:o,type:i,matches:r}),d=d.slice(o.length));if(!o)break}return t?d.length:d?re.error(e):x(e,s).slice(0)},d=re.compile=function(e,t){var o,n=[],r=[],a=F[e+" "];if(!a){for(t||(t=i(e)),o=t.length;o--;)(a=Ce(t[o]))[C]?n.push(a):r.push(a);(a=F(e,we(r,n))).selector=e}return a},s=re.select=function(e,t,r,a){var s,l,c,u,h,p="function"==typeof e&&e,f=!a&&i(e=p.selector||e);if(r=r||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&o.getById&&9===t.nodeType&&g&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(te,oe),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(s=K.needsContext.test(e)?0:l.length;s--&&(c=l[s],!n.relative[u=c.type]);)if((h=n.find[u])&&(a=h(c.matches[0].replace(te,oe),Q.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(s,1),!(e=a.length&&ge(l)))return _.apply(r,a),r;break}}return(p||d(e,f))(a,t,!g,r,!t||Q.test(e)&&pe(t.parentNode)||t),r},o.sortStable=C.split("").sort(E).join("")===C,o.detectDuplicates=!!u,h(),o.sortDetached=de(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),de(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||se("type|href|height|width",function(e,t,o){return o?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),o.attributes&&de(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||se("value",function(e,t,o){return o||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),de(function(e){return null==e.getAttribute("disabled")})||se(M,function(e,t,o){var n;return o?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),re}(e);p.find=y,p.expr=y.selectors,p.expr[":"]=p.expr.pseudos,p.uniqueSort=p.unique=y.uniqueSort,p.text=y.getText,p.isXMLDoc=y.isXML,p.contains=y.contains;var C=function(e,t,o){for(var n=[],r=void 0!==o;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&p(e).is(o))break;n.push(e)}return n},w=function(e,t){for(var o=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&o.push(e);return o},b=p.expr.match.needsContext,P=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;function x(e,t,o){if(p.isFunction(t))return p.grep(e,function(e,n){return!!t.call(e,n,e)!==o});if(t.nodeType)return p.grep(e,function(e){return e===t!==o});if("string"==typeof t){if(S.test(t))return p.filter(t,e,o);t=p.filter(t,e)}return p.grep(e,function(e){return d.call(t,e)>-1!==o})}p.filter=function(e,t,o){var n=t[0];return o&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?p.find.matchesSelector(n,e)?[n]:[]:p.find.matches(e,p.grep(t,function(e){return 1===e.nodeType}))},p.fn.extend({find:function(e){var t,o=this.length,n=[],r=this;if("string"!=typeof e)return this.pushStack(p(e).filter(function(){for(t=0;o>t;t++)if(p.contains(r[t],this))return!0}));for(t=0;o>t;t++)p.find(e,r[t],n);return(n=this.pushStack(o>1?p.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&b.test(e)?p(e):e||[],!1).length}});var F,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,I=p.fn.init=function(e,t,o){var r,a;if(!e)return this;if(o=o||F,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:E.exec(e))||!r[1]&&t)return!t||t.jquery?(t||o).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof p?t[0]:t,p.merge(this,p.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:n,!0)),P.test(r[1])&&p.isPlainObject(t))for(r in t)p.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=n.getElementById(r[2]))&&a.parentNode&&(this.length=1,this[0]=a),this.context=n,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):p.isFunction(e)?void 0!==o.ready?o.ready(e):e(p):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),p.makeArray(e,this))};I.prototype=p.fn,F=p(n);var T=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}p.fn.extend({has:function(e){var t=p(e,this),o=t.length;return this.filter(function(){for(var e=0;o>e;e++)if(p.contains(this,t[e]))return!0})},closest:function(e,t){for(var o,n=0,r=this.length,a=[],i=b.test(e)||"string"!=typeof e?p(e,t||this.context):0;r>n;n++)for(o=this[n];o&&o!==t;o=o.parentNode)if(o.nodeType<11&&(i?i.index(o)>-1:1===o.nodeType&&p.find.matchesSelector(o,e))){a.push(o);break}return this.pushStack(a.length>1?p.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?d.call(p(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(p.uniqueSort(p.merge(this.get(),p(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),p.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,o){return C(e,"parentNode",o)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,o){return C(e,"nextSibling",o)},prevUntil:function(e,t,o){return C(e,"previousSibling",o)},siblings:function(e){return w((e.parentNode||{}).firstChild,e)},children:function(e){return w(e.firstChild)},contents:function(e){return e.contentDocument||p.merge([],e.childNodes)}},function(e,t){p.fn[e]=function(o,n){var r=p.map(this,t,o);return"Until"!==e.slice(-5)&&(n=o),n&&"string"==typeof n&&(r=p.filter(n,r)),this.length>1&&(A[e]||p.uniqueSort(r),T.test(e)&&r.reverse()),this.pushStack(r)}});var O,_=/\S+/g;function k(){n.removeEventListener("DOMContentLoaded",k),e.removeEventListener("load",k),p.ready()}p.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return p.each(e.match(_)||[],function(e,o){t[o]=!0}),t}(e):p.extend({},e);var t,o,n,r,a=[],i=[],d=-1,s=function(){for(r=e.once,n=t=!0;i.length;d=-1)for(o=i.shift();++d<a.length;)!1===a[d].apply(o[0],o[1])&&e.stopOnFalse&&(d=a.length,o=!1);e.memory||(o=!1),t=!1,r&&(a=o?[]:"")},l={add:function(){return a&&(o&&!t&&(d=a.length-1,i.push(o)),function t(o){p.each(o,function(o,n){p.isFunction(n)?e.unique&&l.has(n)||a.push(n):n&&n.length&&"string"!==p.type(n)&&t(n)})}(arguments),o&&!t&&s()),this},remove:function(){return p.each(arguments,function(e,t){for(var o;(o=p.inArray(t,a,o))>-1;)a.splice(o,1),d>=o&&d--}),this},has:function(e){return e?p.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=i=[],a=o="",this},disabled:function(){return!a},lock:function(){return r=i=[],o||(a=o=""),this},locked:function(){return!!r},fireWith:function(e,o){return r||(o=[e,(o=o||[]).slice?o.slice():o],i.push(o),t||s()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},p.extend({Deferred:function(e){var t=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],o="pending",n={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return p.Deferred(function(o){p.each(t,function(t,a){var i=p.isFunction(e[t])&&e[t];r[a[1]](function(){var e=i&&i.apply(this,arguments);e&&p.isFunction(e.promise)?e.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[a[0]+"With"](this===n?o.promise():this,i?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?p.extend(e,n):n}},r={};return n.pipe=n.then,p.each(t,function(e,a){var i=a[2],d=a[3];n[a[1]]=i.add,d&&i.add(function(){o=d},t[1^e][2].disable,t[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?n:this,arguments),this},r[a[0]+"With"]=i.fireWith}),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,o,n,a=0,i=r.call(arguments),d=i.length,s=1!==d||e&&p.isFunction(e.promise)?d:0,l=1===s?e:p.Deferred(),c=function(e,o,n){return function(a){o[e]=this,n[e]=arguments.length>1?r.call(arguments):a,n===t?l.notifyWith(o,n):--s||l.resolveWith(o,n)}};if(d>1)for(t=new Array(d),o=new Array(d),n=new Array(d);d>a;a++)i[a]&&p.isFunction(i[a].promise)?i[a].promise().progress(c(a,o,t)).done(c(a,n,i)).fail(l.reject):--s;return s||l.resolveWith(n,i),l.promise()}}),p.fn.ready=function(e){return p.ready.promise().done(e),this},p.extend({isReady:!1,readyWait:1,holdReady:function(e){e?p.readyWait++:p.ready(!0)},ready:function(e){(!0===e?--p.readyWait:p.isReady)||(p.isReady=!0,!0!==e&&--p.readyWait>0||(O.resolveWith(n,[p]),p.fn.triggerHandler&&(p(n).triggerHandler("ready"),p(n).off("ready"))))}}),p.ready.promise=function(t){return O||(O=p.Deferred(),"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e.setTimeout(p.ready):(n.addEventListener("DOMContentLoaded",k),e.addEventListener("load",k))),O.promise(t)},p.ready.promise();var L=function(e,t,o,n,r,a,i){var d=0,s=e.length,l=null==o;if("object"===p.type(o))for(d in r=!0,o)L(e,t,d,o[d],!0,a,i);else if(void 0!==n&&(r=!0,p.isFunction(n)||(i=!0),l&&(i?(t.call(e,n),t=null):(l=t,t=function(e,t,o){return l.call(p(e),o)})),t))for(;s>d;d++)t(e[d],o,i?n:n.call(e[d],d,t(e[d],o)));return r?e:l?t.call(e):s?t(e[0],o):a},M=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function D(){this.expando=p.expando+D.uid++}D.uid=1,D.prototype={register:function(e,t){var o=t||{};return e.nodeType?e[this.expando]=o:Object.defineProperty(e,this.expando,{value:o,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!M(e))return{};var t=e[this.expando];return t||(t={},M(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,o){var n,r=this.cache(e);if("string"==typeof t)r[t]=o;else for(n in t)r[n]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,o){var n;return void 0===t||t&&"string"==typeof t&&void 0===o?void 0!==(n=this.get(e,t))?n:this.get(e,p.camelCase(t)):(this.set(e,t,o),void 0!==o?o:t)},remove:function(e,t){var o,n,r,a=e[this.expando];if(void 0!==a){if(void 0===t)this.register(e);else{p.isArray(t)?n=t.concat(t.map(p.camelCase)):(r=p.camelCase(t),t in a?n=[t,r]:n=(n=r)in a?[n]:n.match(_)||[]),o=n.length;for(;o--;)delete a[n[o]]}(void 0===t||p.isEmptyObject(a))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!p.isEmptyObject(t)}};var V=new D,R=new D,B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function j(e,t,o){var n;if(void 0===o&&1===e.nodeType)if(n="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(o=e.getAttribute(n))){try{o="true"===o||"false"!==o&&("null"===o?null:+o+""===o?+o:B.test(o)?p.parseJSON(o):o)}catch(e){}R.set(e,t,o)}else o=void 0;return o}p.extend({hasData:function(e){return R.hasData(e)||V.hasData(e)},data:function(e,t,o){return R.access(e,t,o)},removeData:function(e,t){R.remove(e,t)},_data:function(e,t,o){return V.access(e,t,o)},_removeData:function(e,t){V.remove(e,t)}}),p.fn.extend({data:function(e,t){var o,n,r,a=this[0],i=a&&a.attributes;if(void 0===e){if(this.length&&(r=R.get(a),1===a.nodeType&&!V.get(a,"hasDataAttrs"))){for(o=i.length;o--;)i[o]&&(0===(n=i[o].name).indexOf("data-")&&(n=p.camelCase(n.slice(5)),j(a,n,r[n])));V.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){R.set(this,e)}):L(this,function(t){var o,n;if(a&&void 0===t){if(void 0!==(o=R.get(a,e)||R.get(a,e.replace(U,"-$&").toLowerCase())))return o;if(n=p.camelCase(e),void 0!==(o=R.get(a,n)))return o;if(void 0!==(o=j(a,n,void 0)))return o}else n=p.camelCase(e),this.each(function(){var o=R.get(this,n);R.set(this,n,t),e.indexOf("-")>-1&&void 0!==o&&R.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){R.remove(this,e)})}}),p.extend({queue:function(e,t,o){var n;return e?(t=(t||"fx")+"queue",n=V.get(e,t),o&&(!n||p.isArray(o)?n=V.access(e,t,p.makeArray(o)):n.push(o)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var o=p.queue(e,t),n=o.length,r=o.shift(),a=p._queueHooks(e,t);"inprogress"===r&&(r=o.shift(),n--),r&&("fx"===t&&o.unshift("inprogress"),delete a.stop,r.call(e,function(){p.dequeue(e,t)},a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return V.get(e,o)||V.access(e,o,{empty:p.Callbacks("once memory").add(function(){V.remove(e,[t+"queue",o])})})}}),p.fn.extend({queue:function(e,t){var o=2;return"string"!=typeof e&&(t=e,e="fx",o--),arguments.length<o?p.queue(this[0],e):void 0===t?this:this.each(function(){var o=p.queue(this,e,t);p._queueHooks(this,e),"fx"===e&&"inprogress"!==o[0]&&p.dequeue(this,e)})},dequeue:function(e){return this.each(function(){p.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var o,n=1,r=p.Deferred(),a=this,i=this.length,d=function(){--n||r.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(o=V.get(a[i],e+"queueHooks"))&&o.empty&&(n++,o.empty.add(d));return d(),r.promise(t)}});var H=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,W=new RegExp("^(?:([+-])=|)("+H+")([a-z%]*)$","i"),q=["Top","Right","Bottom","Left"],G=function(e,t){return e=t||e,"none"===p.css(e,"display")||!p.contains(e.ownerDocument,e)};function z(e,t,o,n){var r,a=1,i=20,d=n?function(){return n.cur()}:function(){return p.css(e,t,"")},s=d(),l=o&&o[3]||(p.cssNumber[t]?"":"px"),c=(p.cssNumber[t]||"px"!==l&&+s)&&W.exec(p.css(e,t));if(c&&c[3]!==l){l=l||c[3],o=o||[],c=+s||1;do{c/=a=a||".5",p.style(e,t,c+l)}while(a!==(a=d()/s)&&1!==a&&--i)}return o&&(c=+c||+s||0,r=o[1]?c+(o[1]+1)*o[2]:+o[2],n&&(n.unit=l,n.start=c,n.end=r)),r}var K=/^(?:checkbox|radio)$/i,X=/<([\w:-]+)/,Y=/^$|\/(?:java|ecma)script/i,J={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Z(e,t){var o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&p.nodeName(e,t)?p.merge([e],o):o}function Q(e,t){for(var o=0,n=e.length;n>o;o++)V.set(e[o],"globalEval",!t||V.get(t[o],"globalEval"))}J.optgroup=J.option,J.tbody=J.tfoot=J.colgroup=J.caption=J.thead,J.th=J.td;var ee=/<|&#?\w+;/;function te(e,t,o,n,r){for(var a,i,d,s,l,c,u=t.createDocumentFragment(),h=[],f=0,g=e.length;g>f;f++)if((a=e[f])||0===a)if("object"===p.type(a))p.merge(h,a.nodeType?[a]:a);else if(ee.test(a)){for(i=i||u.appendChild(t.createElement("div")),d=(X.exec(a)||["",""])[1].toLowerCase(),s=J[d]||J._default,i.innerHTML=s[1]+p.htmlPrefilter(a)+s[2],c=s[0];c--;)i=i.lastChild;p.merge(h,i.childNodes),(i=u.firstChild).textContent=""}else h.push(t.createTextNode(a));for(u.textContent="",f=0;a=h[f++];)if(n&&p.inArray(a,n)>-1)r&&r.push(a);else if(l=p.contains(a.ownerDocument,a),i=Z(u.appendChild(a),"script"),l&&Q(i),o)for(c=0;a=i[c++];)Y.test(a.type||"")&&o.push(a);return u}!function(){var e=n.createDocumentFragment().appendChild(n.createElement("div")),t=n.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",u.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var oe=/^key/,ne=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,re=/^([^.]*)(?:\.(.+)|)/;function ae(){return!0}function ie(){return!1}function de(){try{return n.activeElement}catch(e){}}function se(e,t,o,n,r,a){var i,d;if("object"==typeof t){for(d in"string"!=typeof o&&(n=n||o,o=void 0),t)se(e,d,o,n,t[d],a);return e}if(null==n&&null==r?(r=o,n=o=void 0):null==r&&("string"==typeof o?(r=n,n=void 0):(r=n,n=o,o=void 0)),!1===r)r=ie;else if(!r)return this;return 1===a&&(i=r,r=function(e){return p().off(e),i.apply(this,arguments)},r.guid=i.guid||(i.guid=p.guid++)),e.each(function(){p.event.add(this,t,r,n,o)})}p.event={global:{},add:function(e,t,o,n,r){var a,i,d,s,l,c,u,h,f,g,m,v=V.get(e);if(v)for(o.handler&&(o=(a=o).handler,r=a.selector),o.guid||(o.guid=p.guid++),(s=v.events)||(s=v.events={}),(i=v.handle)||(i=v.handle=function(t){return void 0!==p&&p.event.triggered!==t.type?p.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(_)||[""]).length;l--;)f=m=(d=re.exec(t[l])||[])[1],g=(d[2]||"").split(".").sort(),f&&(u=p.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=p.event.special[f]||{},c=p.extend({type:f,origType:m,data:n,handler:o,guid:o.guid,selector:r,needsContext:r&&p.expr.match.needsContext.test(r),namespace:g.join(".")},a),(h=s[f])||((h=s[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,g,i)||e.addEventListener&&e.addEventListener(f,i)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=o.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),p.event.global[f]=!0)},remove:function(e,t,o,n,r){var a,i,d,s,l,c,u,h,f,g,m,v=V.hasData(e)&&V.get(e);if(v&&(s=v.events)){for(l=(t=(t||"").match(_)||[""]).length;l--;)if(f=m=(d=re.exec(t[l])||[])[1],g=(d[2]||"").split(".").sort(),f){for(u=p.event.special[f]||{},h=s[f=(n?u.delegateType:u.bindType)||f]||[],d=d[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=a=h.length;a--;)c=h[a],!r&&m!==c.origType||o&&o.guid!==c.guid||d&&!d.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(h.splice(a,1),c.selector&&h.delegateCount--,u.remove&&u.remove.call(e,c));i&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,g,v.handle)||p.removeEvent(e,f,v.handle),delete s[f])}else for(f in s)p.event.remove(e,f+t[l],o,n,!0);p.isEmptyObject(s)&&V.remove(e,"handle events")}},dispatch:function(e){e=p.event.fix(e);var t,o,n,a,i,d=[],s=r.call(arguments),l=(V.get(this,"events")||{})[e.type]||[],c=p.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(d=p.event.handlers.call(this,e,l),t=0;(a=d[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,o=0;(i=a.handlers[o++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(i.namespace))&&(e.handleObj=i,e.data=i.data,void 0!==(n=((p.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,s))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var o,n,r,a,i=[],d=t.delegateCount,s=e.target;if(d&&s.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&(!0!==s.disabled||"click"!==e.type)){for(n=[],o=0;d>o;o++)void 0===n[r=(a=t[o]).selector+" "]&&(n[r]=a.needsContext?p(r,this).index(s)>-1:p.find(r,this,null,[s]).length),n[r]&&n.push(a);n.length&&i.push({elem:s,handlers:n})}return d<t.length&&i.push({elem:this,handlers:t.slice(d)}),i},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var o,r,a,i=t.button;return null==e.pageX&&null!=t.clientX&&(r=(o=e.target.ownerDocument||n).documentElement,a=o.body,e.pageX=t.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[p.expando])return e;var t,o,r,a=e.type,i=e,d=this.fixHooks[a];for(d||(this.fixHooks[a]=d=ne.test(a)?this.mouseHooks:oe.test(a)?this.keyHooks:{}),r=d.props?this.props.concat(d.props):this.props,e=new p.Event(i),t=r.length;t--;)e[o=r[t]]=i[o];return e.target||(e.target=n),3===e.target.nodeType&&(e.target=e.target.parentNode),d.filter?d.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==de()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===de()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&p.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return p.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},p.removeEvent=function(e,t,o){e.removeEventListener&&e.removeEventListener(t,o)},p.Event=function(e,t){return this instanceof p.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ae:ie):this.type=e,t&&p.extend(this,t),this.timeStamp=e&&e.timeStamp||p.now(),void(this[p.expando]=!0)):new p.Event(e,t)},p.Event.prototype={constructor:p.Event,isDefaultPrevented:ie,isPropagationStopped:ie,isImmediatePropagationStopped:ie,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ae,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ae,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ae,e&&e.stopImmediatePropagation(),this.stopPropagation()}},p.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){p.event.special[e]={delegateType:t,bindType:t,handle:function(e){var o,n=e.relatedTarget,r=e.handleObj;return(!n||n!==this&&!p.contains(this,n))&&(e.type=r.origType,o=r.handler.apply(this,arguments),e.type=t),o}}}),p.fn.extend({on:function(e,t,o,n){return se(this,e,t,o,n)},one:function(e,t,o,n){return se(this,e,t,o,n,1)},off:function(e,t,o){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,p(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(!1===t||"function"==typeof t)&&(o=t,t=void 0),!1===o&&(o=ie),this.each(function(){p.event.remove(this,e,o,t)})}});var le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ce=/<script|<style|<link/i,ue=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function fe(e,t){return p.nodeName(e,"table")&&p.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function me(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ve(e,t){var o,n,r,a,i,d,s,l;if(1===t.nodeType){if(V.hasData(e)&&(a=V.access(e),i=V.set(t,a),l=a.events))for(r in delete i.handle,i.events={},l)for(o=0,n=l[r].length;n>o;o++)p.event.add(t,r,l[r][o]);R.hasData(e)&&(d=R.access(e),s=p.extend({},d),R.set(t,s))}}function $e(e,t){var o=t.nodeName.toLowerCase();"input"===o&&K.test(e.type)?t.checked=e.checked:("input"===o||"textarea"===o)&&(t.defaultValue=e.defaultValue)}function ye(e,t,o,n){t=a.apply([],t);var r,i,d,s,l,c,h=0,f=e.length,g=f-1,m=t[0],v=p.isFunction(m);if(v||f>1&&"string"==typeof m&&!u.checkClone&&ue.test(m))return e.each(function(r){var a=e.eq(r);v&&(t[0]=m.call(this,r,a.html())),ye(a,t,o,n)});if(f&&(i=(r=te(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=i),i||n)){for(s=(d=p.map(Z(r,"script"),ge)).length;f>h;h++)l=r,h!==g&&(l=p.clone(l,!0,!0),s&&p.merge(d,Z(l,"script"))),o.call(e[h],l,h);if(s)for(c=d[d.length-1].ownerDocument,p.map(d,me),h=0;s>h;h++)l=d[h],Y.test(l.type||"")&&!V.access(l,"globalEval")&&p.contains(c,l)&&(l.src?p._evalUrl&&p._evalUrl(l.src):p.globalEval(l.textContent.replace(pe,"")))}return e}function Ce(e,t,o){for(var n,r=t?p.filter(t,e):e,a=0;null!=(n=r[a]);a++)o||1!==n.nodeType||p.cleanData(Z(n)),n.parentNode&&(o&&p.contains(n.ownerDocument,n)&&Q(Z(n,"script")),n.parentNode.removeChild(n));return e}p.extend({htmlPrefilter:function(e){return e.replace(le,"<$1></$2>")},clone:function(e,t,o){var n,r,a,i,d=e.cloneNode(!0),s=p.contains(e.ownerDocument,e);if(!(u.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||p.isXMLDoc(e)))for(i=Z(d),n=0,r=(a=Z(e)).length;r>n;n++)$e(a[n],i[n]);if(t)if(o)for(a=a||Z(e),i=i||Z(d),n=0,r=a.length;r>n;n++)ve(a[n],i[n]);else ve(e,d);return(i=Z(d,"script")).length>0&&Q(i,!s&&Z(e,"script")),d},cleanData:function(e){for(var t,o,n,r=p.event.special,a=0;void 0!==(o=e[a]);a++)if(M(o)){if(t=o[V.expando]){if(t.events)for(n in t.events)r[n]?p.event.remove(o,n):p.removeEvent(o,n,t.handle);o[V.expando]=void 0}o[R.expando]&&(o[R.expando]=void 0)}}}),p.fn.extend({domManip:ye,detach:function(e){return Ce(this,e,!0)},remove:function(e){return Ce(this,e)},text:function(e){return L(this,function(e){return void 0===e?p.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return ye(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||fe(this,e).appendChild(e)})},prepend:function(){return ye(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(p.cleanData(Z(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return p.clone(this,e,t)})},html:function(e){return L(this,function(e){var t=this[0]||{},o=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ce.test(e)&&!J[(X.exec(e)||["",""])[1].toLowerCase()]){e=p.htmlPrefilter(e);try{for(;n>o;o++)1===(t=this[o]||{}).nodeType&&(p.cleanData(Z(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return ye(this,arguments,function(t){var o=this.parentNode;p.inArray(this,e)<0&&(p.cleanData(Z(this)),o&&o.replaceChild(t,this))},e)}}),p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){p.fn[e]=function(e){for(var o,n=[],r=p(e),a=r.length-1,d=0;a>=d;d++)o=d===a?this:this.clone(!0),p(r[d])[t](o),i.apply(n,o.get());return this.pushStack(n)}});var we,be={HTML:"block",BODY:"block"};function Pe(e,t){var o=p(t.createElement(e)).appendTo(t.body),n=p.css(o[0],"display");return o.detach(),n}function Se(e){var t=n,o=be[e];return o||("none"!==(o=Pe(e,t))&&o||((t=(we=(we||p("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),o=Pe(e,t),we.detach()),be[e]=o),o}var xe=/^margin/,Fe=new RegExp("^("+H+")(?!px)[a-z%]+$","i"),Ee=function(t){var o=t.ownerDocument.defaultView;return o.opener||(o=e),o.getComputedStyle(t)},Ie=function(e,t,o,n){var r,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in r=o.apply(e,n||[]),t)e.style[a]=i[a];return r},Te=n.documentElement;function Ae(e,t,o){var n,r,a,i,d=e.style;return(o=o||Ee(e))&&(""!==(i=o.getPropertyValue(t)||o[t])||p.contains(e.ownerDocument,e)||(i=p.style(e,t)),!u.pixelMarginRight()&&Fe.test(i)&&xe.test(t)&&(n=d.width,r=d.minWidth,a=d.maxWidth,d.minWidth=d.maxWidth=d.width=i,i=o.width,d.width=n,d.minWidth=r,d.maxWidth=a)),void 0!==i?i+"":i}function Ne(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var t,o,r,a,i=n.createElement("div"),d=n.createElement("div");if(d.style){function s(){d.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",d.innerHTML="",Te.appendChild(i);var n=e.getComputedStyle(d);t="1%"!==n.top,a="2px"===n.marginLeft,o="4px"===n.width,d.style.marginRight="50%",r="4px"===n.marginRight,Te.removeChild(i)}d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle="content-box"===d.style.backgroundClip,i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",i.appendChild(d),p.extend(u,{pixelPosition:function(){return s(),t},boxSizingReliable:function(){return null==o&&s(),o},pixelMarginRight:function(){return null==o&&s(),r},reliableMarginLeft:function(){return null==o&&s(),a},reliableMarginRight:function(){var t,o=d.appendChild(n.createElement("div"));return o.style.cssText=d.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",o.style.marginRight=o.style.width="0",d.style.width="1px",Te.appendChild(i),t=!parseFloat(e.getComputedStyle(o).marginRight),Te.removeChild(i),d.removeChild(o),t}})}}();var Oe=/^(none|table(?!-c[ea]).+)/,_e={position:"absolute",visibility:"hidden",display:"block"},ke={letterSpacing:"0",fontWeight:"400"},Le=["Webkit","O","Moz","ms"],Me=n.createElement("div").style;function De(e){if(e in Me)return e;for(var t=e[0].toUpperCase()+e.slice(1),o=Le.length;o--;)if((e=Le[o]+t)in Me)return e}function Ve(e,t,o){var n=W.exec(t);return n?Math.max(0,n[2]-(o||0))+(n[3]||"px"):t}function Re(e,t,o,n,r){for(var a=o===(n?"border":"content")?4:"width"===t?1:0,i=0;4>a;a+=2)"margin"===o&&(i+=p.css(e,o+q[a],!0,r)),n?("content"===o&&(i-=p.css(e,"padding"+q[a],!0,r)),"margin"!==o&&(i-=p.css(e,"border"+q[a]+"Width",!0,r))):(i+=p.css(e,"padding"+q[a],!0,r),"padding"!==o&&(i+=p.css(e,"border"+q[a]+"Width",!0,r)));return i}function Be(t,o,r){var a=!0,i="width"===o?t.offsetWidth:t.offsetHeight,d=Ee(t),s="border-box"===p.css(t,"boxSizing",!1,d);if(n.msFullscreenElement&&e.top!==e&&t.getClientRects().length&&(i=Math.round(100*t.getBoundingClientRect()[o])),0>=i||null==i){if((0>(i=Ae(t,o,d))||null==i)&&(i=t.style[o]),Fe.test(i))return i;a=s&&(u.boxSizingReliable()||i===t.style[o]),i=parseFloat(i)||0}return i+Re(t,o,r||(s?"border":"content"),a,d)+"px"}function Ue(e,t){for(var o,n,r,a=[],i=0,d=e.length;d>i;i++)(n=e[i]).style&&(a[i]=V.get(n,"olddisplay"),o=n.style.display,t?(a[i]||"none"!==o||(n.style.display=""),""===n.style.display&&G(n)&&(a[i]=V.access(n,"olddisplay",Se(n.nodeName)))):(r=G(n),"none"===o&&r||V.set(n,"olddisplay",r?o:p.css(n,"display"))));for(i=0;d>i;i++)(n=e[i]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?a[i]||"":"none"));return e}function je(e,t,o,n,r){return new je.prototype.init(e,t,o,n,r)}p.extend({cssHooks:{opacity:{get:function(e,t){if(t){var o=Ae(e,"opacity");return""===o?"1":o}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,o,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,i,d=p.camelCase(t),s=e.style;return t=p.cssProps[d]||(p.cssProps[d]=De(d)||d),i=p.cssHooks[t]||p.cssHooks[d],void 0===o?i&&"get"in i&&void 0!==(r=i.get(e,!1,n))?r:s[t]:("string"===(a=typeof o)&&(r=W.exec(o))&&r[1]&&(o=z(e,t,r),a="number"),void(null!=o&&o==o&&("number"===a&&(o+=r&&r[3]||(p.cssNumber[d]?"":"px")),u.clearCloneStyle||""!==o||0!==t.indexOf("background")||(s[t]="inherit"),i&&"set"in i&&void 0===(o=i.set(e,o,n))||(s[t]=o))))}},css:function(e,t,o,n){var r,a,i,d=p.camelCase(t);return t=p.cssProps[d]||(p.cssProps[d]=De(d)||d),(i=p.cssHooks[t]||p.cssHooks[d])&&"get"in i&&(r=i.get(e,!0,o)),void 0===r&&(r=Ae(e,t,n)),"normal"===r&&t in ke&&(r=ke[t]),""===o||o?(a=parseFloat(r),!0===o||isFinite(a)?a||0:r):r}}),p.each(["height","width"],function(e,t){p.cssHooks[t]={get:function(e,o,n){return o?Oe.test(p.css(e,"display"))&&0===e.offsetWidth?Ie(e,_e,function(){return Be(e,t,n)}):Be(e,t,n):void 0},set:function(e,o,n){var r,a=n&&Ee(e),i=n&&Re(e,t,n,"border-box"===p.css(e,"boxSizing",!1,a),a);return i&&(r=W.exec(o))&&"px"!==(r[3]||"px")&&(e.style[t]=o,o=p.css(e,t)),Ve(0,o,i)}}}),p.cssHooks.marginLeft=Ne(u.reliableMarginLeft,function(e,t){return t?(parseFloat(Ae(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),p.cssHooks.marginRight=Ne(u.reliableMarginRight,function(e,t){return t?Ie(e,{display:"inline-block"},Ae,[e,"marginRight"]):void 0}),p.each({margin:"",padding:"",border:"Width"},function(e,t){p.cssHooks[e+t]={expand:function(o){for(var n=0,r={},a="string"==typeof o?o.split(" "):[o];4>n;n++)r[e+q[n]+t]=a[n]||a[n-2]||a[0];return r}},xe.test(e)||(p.cssHooks[e+t].set=Ve)}),p.fn.extend({css:function(e,t){return L(this,function(e,t,o){var n,r,a={},i=0;if(p.isArray(t)){for(n=Ee(e),r=t.length;r>i;i++)a[t[i]]=p.css(e,t[i],!1,n);return a}return void 0!==o?p.style(e,t,o):p.css(e,t)},e,t,arguments.length>1)},show:function(){return Ue(this,!0)},hide:function(){return Ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){G(this)?p(this).show():p(this).hide()})}}),p.Tween=je,je.prototype={constructor:je,init:function(e,t,o,n,r,a){this.elem=e,this.prop=o,this.easing=r||p.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(p.cssNumber[o]?"":"px")},cur:function(){var e=je.propHooks[this.prop];return e&&e.get?e.get(this):je.propHooks._default.get(this)},run:function(e){var t,o=je.propHooks[this.prop];return this.options.duration?this.pos=t=p.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):je.propHooks._default.set(this),this}},je.prototype.init.prototype=je.prototype,je.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=p.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){p.fx.step[e.prop]?p.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[p.cssProps[e.prop]]&&!p.cssHooks[e.prop]?e.elem[e.prop]=e.now:p.style(e.elem,e.prop,e.now+e.unit)}}},je.propHooks.scrollTop=je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},p.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},p.fx=je.prototype.init,p.fx.step={};var He,We,qe=/^(?:toggle|show|hide)$/,Ge=/queueHooks$/;function ze(){return e.setTimeout(function(){He=void 0}),He=p.now()}function Ke(e,t){var o,n=0,r={height:e};for(t=t?1:0;4>n;n+=2-t)r["margin"+(o=q[n])]=r["padding"+o]=e;return t&&(r.opacity=r.width=e),r}function Xe(e,t,o){for(var n,r=(Ye.tweeners[t]||[]).concat(Ye.tweeners["*"]),a=0,i=r.length;i>a;a++)if(n=r[a].call(o,t,e))return n}function Ye(e,t,o){var n,r,a=0,i=Ye.prefilters.length,d=p.Deferred().always(function(){delete s.elem}),s=function(){if(r)return!1;for(var t=He||ze(),o=Math.max(0,l.startTime+l.duration-t),n=1-(o/l.duration||0),a=0,i=l.tweens.length;i>a;a++)l.tweens[a].run(n);return d.notifyWith(e,[l,n,o]),1>n&&i?o:(d.resolveWith(e,[l]),!1)},l=d.promise({elem:e,props:p.extend({},t),opts:p.extend(!0,{specialEasing:{},easing:p.easing._default},o),originalProperties:t,originalOptions:o,startTime:He||ze(),duration:o.duration,tweens:[],createTween:function(t,o){var n=p.Tween(e,l.opts,t,o,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var o=0,n=t?l.tweens.length:0;if(r)return this;for(r=!0;n>o;o++)l.tweens[o].run(1);return t?(d.notifyWith(e,[l,1,0]),d.resolveWith(e,[l,t])):d.rejectWith(e,[l,t]),this}}),c=l.props;for(function(e,t){var o,n,r,a,i;for(o in e)if(r=t[n=p.camelCase(o)],a=e[o],p.isArray(a)&&(r=a[1],a=e[o]=a[0]),o!==n&&(e[n]=a,delete e[o]),(i=p.cssHooks[n])&&"expand"in i)for(o in a=i.expand(a),delete e[n],a)o in e||(e[o]=a[o],t[o]=r);else t[n]=r}(c,l.opts.specialEasing);i>a;a++)if(n=Ye.prefilters[a].call(l,e,c,l.opts))return p.isFunction(n.stop)&&(p._queueHooks(l.elem,l.opts.queue).stop=p.proxy(n.stop,n)),n;return p.map(c,Xe,l),p.isFunction(l.opts.start)&&l.opts.start.call(e,l),p.fx.timer(p.extend(s,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}p.Animation=p.extend(Ye,{tweeners:{"*":[function(e,t){var o=this.createTween(e,t);return z(o.elem,e,W.exec(t),o),o}]},tweener:function(e,t){p.isFunction(e)?(t=e,e=["*"]):e=e.match(_);for(var o,n=0,r=e.length;r>n;n++)o=e[n],Ye.tweeners[o]=Ye.tweeners[o]||[],Ye.tweeners[o].unshift(t)},prefilters:[function(e,t,o){var n,r,a,i,d,s,l,c=this,u={},h=e.style,f=e.nodeType&&G(e),g=V.get(e,"fxshow");for(n in o.queue||(null==(d=p._queueHooks(e,"fx")).unqueued&&(d.unqueued=0,s=d.empty.fire,d.empty.fire=function(){d.unqueued||s()}),d.unqueued++,c.always(function(){c.always(function(){d.unqueued--,p.queue(e,"fx").length||d.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(o.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(l=p.css(e,"display"))?V.get(e,"olddisplay")||Se(e.nodeName):l)&&"none"===p.css(e,"float")&&(h.display="inline-block")),o.overflow&&(h.overflow="hidden",c.always(function(){h.overflow=o.overflow[0],h.overflowX=o.overflow[1],h.overflowY=o.overflow[2]})),t)if(r=t[n],qe.exec(r)){if(delete t[n],a=a||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;f=!0}u[n]=g&&g[n]||p.style(e,n)}else l=void 0;if(p.isEmptyObject(u))"inline"===("none"===l?Se(e.nodeName):l)&&(h.display=l);else for(n in g?"hidden"in g&&(f=g.hidden):g=V.access(e,"fxshow",{}),a&&(g.hidden=!f),f?p(e).show():c.done(function(){p(e).hide()}),c.done(function(){var t;for(t in V.remove(e,"fxshow"),u)p.style(e,t,u[t])}),u)i=Xe(f?g[n]:0,n,c),n in g||(g[n]=i.start,f&&(i.end=i.start,i.start="width"===n||"height"===n?1:0))}],prefilter:function(e,t){t?Ye.prefilters.unshift(e):Ye.prefilters.push(e)}}),p.speed=function(e,t,o){var n=e&&"object"==typeof e?p.extend({},e):{complete:o||!o&&t||p.isFunction(e)&&e,duration:e,easing:o&&t||t&&!p.isFunction(t)&&t};return n.duration=p.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in p.fx.speeds?p.fx.speeds[n.duration]:p.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){p.isFunction(n.old)&&n.old.call(this),n.queue&&p.dequeue(this,n.queue)},n},p.fn.extend({fadeTo:function(e,t,o,n){return this.filter(G).css("opacity",0).show().end().animate({opacity:t},e,o,n)},animate:function(e,t,o,n){var r=p.isEmptyObject(e),a=p.speed(t,o,n),i=function(){var t=Ye(this,p.extend({},e),a);(r||V.get(this,"finish"))&&t.stop(!0)};return i.finish=i,r||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(e,t,o){var n=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof e&&(o=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",a=p.timers,i=V.get(this);if(r)i[r]&&i[r].stop&&n(i[r]);else for(r in i)i[r]&&i[r].stop&&Ge.test(r)&&n(i[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(o),t=!1,a.splice(r,1));(t||!o)&&p.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,o=V.get(this),n=o[e+"queue"],r=o[e+"queueHooks"],a=p.timers,i=n?n.length:0;for(o.finish=!0,p.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;i>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete o.finish})}}),p.each(["toggle","show","hide"],function(e,t){var o=p.fn[t];p.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(Ke(t,!0),e,n,r)}}),p.each({slideDown:Ke("show"),slideUp:Ke("hide"),slideToggle:Ke("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){p.fn[e]=function(e,o,n){return this.animate(t,e,o,n)}}),p.timers=[],p.fx.tick=function(){var e,t=0,o=p.timers;for(He=p.now();t<o.length;t++)(e=o[t])()||o[t]!==e||o.splice(t--,1);o.length||p.fx.stop(),He=void 0},p.fx.timer=function(e){p.timers.push(e),e()?p.fx.start():p.timers.pop()},p.fx.interval=13,p.fx.start=function(){We||(We=e.setInterval(p.fx.tick,p.fx.interval))},p.fx.stop=function(){e.clearInterval(We),We=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fn.delay=function(t,o){return t=p.fx&&p.fx.speeds[t]||t,o=o||"fx",this.queue(o,function(o,n){var r=e.setTimeout(o,t);n.stop=function(){e.clearTimeout(r)}})},function(){var e=n.createElement("input"),t=n.createElement("select"),o=t.appendChild(n.createElement("option"));e.type="checkbox",u.checkOn=""!==e.value,u.optSelected=o.selected,t.disabled=!0,u.optDisabled=!o.disabled,(e=n.createElement("input")).value="t",e.type="radio",u.radioValue="t"===e.value}();var Je,Ze=p.expr.attrHandle;p.fn.extend({attr:function(e,t){return L(this,p.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){p.removeAttr(this,e)})}}),p.extend({attr:function(e,t,o){var n,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?p.prop(e,t,o):(1===a&&p.isXMLDoc(e)||(t=t.toLowerCase(),r=p.attrHooks[t]||(p.expr.match.bool.test(t)?Je:void 0)),void 0!==o?null===o?void p.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,o,t))?n:(e.setAttribute(t,o+""),o):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=p.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!u.radioValue&&"radio"===t&&p.nodeName(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}},removeAttr:function(e,t){var o,n,r=0,a=t&&t.match(_);if(a&&1===e.nodeType)for(;o=a[r++];)n=p.propFix[o]||o,p.expr.match.bool.test(o)&&(e[n]=!1),e.removeAttribute(o)}}),Je={set:function(e,t,o){return!1===t?p.removeAttr(e,o):e.setAttribute(o,o),o}},p.each(p.expr.match.bool.source.match(/\w+/g),function(e,t){var o=Ze[t]||p.find.attr;Ze[t]=function(e,t,n){var r,a;return n||(a=Ze[t],Ze[t]=r,r=null!=o(e,t,n)?t.toLowerCase():null,Ze[t]=a),r}});var Qe=/^(?:input|select|textarea|button)$/i,et=/^(?:a|area)$/i;p.fn.extend({prop:function(e,t){return L(this,p.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[p.propFix[e]||e]})}}),p.extend({prop:function(e,t,o){var n,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&p.isXMLDoc(e)||(t=p.propFix[t]||t,r=p.propHooks[t]),void 0!==o?r&&"set"in r&&void 0!==(n=r.set(e,o,t))?n:e[t]=o:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=p.find.attr(e,"tabindex");return t?parseInt(t,10):Qe.test(e.nodeName)||et.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),u.optSelected||(p.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this});var tt=/[\t\r\n\f]/g;function ot(e){return e.getAttribute&&e.getAttribute("class")||""}p.fn.extend({addClass:function(e){var t,o,n,r,a,i,d,s=0;if(p.isFunction(e))return this.each(function(t){p(this).addClass(e.call(this,t,ot(this)))});if("string"==typeof e&&e)for(t=e.match(_)||[];o=this[s++];)if(r=ot(o),n=1===o.nodeType&&(" "+r+" ").replace(tt," ")){for(i=0;a=t[i++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");r!==(d=p.trim(n))&&o.setAttribute("class",d)}return this},removeClass:function(e){var t,o,n,r,a,i,d,s=0;if(p.isFunction(e))return this.each(function(t){p(this).removeClass(e.call(this,t,ot(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(_)||[];o=this[s++];)if(r=ot(o),n=1===o.nodeType&&(" "+r+" ").replace(tt," ")){for(i=0;a=t[i++];)for(;n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");r!==(d=p.trim(n))&&o.setAttribute("class",d)}return this},toggleClass:function(e,t){var o=typeof e;return"boolean"==typeof t&&"string"===o?t?this.addClass(e):this.removeClass(e):p.isFunction(e)?this.each(function(o){p(this).toggleClass(e.call(this,o,ot(this),t),t)}):this.each(function(){var t,n,r,a;if("string"===o)for(n=0,r=p(this),a=e.match(_)||[];t=a[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(void 0===e||"boolean"===o)&&((t=ot(this))&&V.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":V.get(this,"__className__")||""))})},hasClass:function(e){var t,o,n=0;for(t=" "+e+" ";o=this[n++];)if(1===o.nodeType&&(" "+ot(o)+" ").replace(tt," ").indexOf(t)>-1)return!0;return!1}});var nt=/\r/g;p.fn.extend({val:function(e){var t,o,n,r=this[0];return arguments.length?(n=p.isFunction(e),this.each(function(o){var r;1===this.nodeType&&(null==(r=n?e.call(this,o,p(this).val()):e)?r="":"number"==typeof r?r+="":p.isArray(r)&&(r=p.map(r,function(e){return null==e?"":e+""})),(t=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=p.valHooks[r.type]||p.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(o=t.get(r,"value"))?o:"string"==typeof(o=r.value)?o.replace(nt,""):null==o?"":o:void 0}}),p.extend({valHooks:{option:{get:function(e){return p.trim(e.value)}},select:{get:function(e){for(var t,o,n=e.options,r=e.selectedIndex,a="select-one"===e.type||0>r,i=a?null:[],d=a?r+1:n.length,s=0>r?d:a?r:0;d>s;s++)if(((o=n[s]).selected||s===r)&&(u.optDisabled?!o.disabled:null===o.getAttribute("disabled"))&&(!o.parentNode.disabled||!p.nodeName(o.parentNode,"optgroup"))){if(t=p(o).val(),a)return t;i.push(t)}return i},set:function(e,t){for(var o,n,r=e.options,a=p.makeArray(t),i=r.length;i--;)((n=r[i]).selected=p.inArray(p.valHooks.option.get(n),a)>-1)&&(o=!0);return o||(e.selectedIndex=-1),a}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(e,t){return p.isArray(t)?e.checked=p.inArray(p(e).val(),t)>-1:void 0}},u.checkOn||(p.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var rt=/^(?:focusinfocus|focusoutblur)$/;p.extend(p.event,{trigger:function(t,o,r,a){var i,d,s,l,u,h,f,g=[r||n],m=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(d=s=r=r||n,3!==r.nodeType&&8!==r.nodeType&&!rt.test(m+p.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[p.expando]?t:new p.Event(m,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),o=null==o?[t]:p.makeArray(o,[t]),f=p.event.special[m]||{},a||!f.trigger||!1!==f.trigger.apply(r,o))){if(!a&&!f.noBubble&&!p.isWindow(r)){for(l=f.delegateType||m,rt.test(l+m)||(d=d.parentNode);d;d=d.parentNode)g.push(d),s=d;s===(r.ownerDocument||n)&&g.push(s.defaultView||s.parentWindow||e)}for(i=0;(d=g[i++])&&!t.isPropagationStopped();)t.type=i>1?l:f.bindType||m,(h=(V.get(d,"events")||{})[t.type]&&V.get(d,"handle"))&&h.apply(d,o),(h=u&&d[u])&&h.apply&&M(d)&&(t.result=h.apply(d,o),!1===t.result&&t.preventDefault());return t.type=m,a||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(g.pop(),o)||!M(r)||u&&p.isFunction(r[m])&&!p.isWindow(r)&&((s=r[u])&&(r[u]=null),p.event.triggered=m,r[m](),p.event.triggered=void 0,s&&(r[u]=s)),t.result}},simulate:function(e,t,o){var n=p.extend(new p.Event,o,{type:e,isSimulated:!0});p.event.trigger(n,null,t),n.isDefaultPrevented()&&o.preventDefault()}}),p.fn.extend({trigger:function(e,t){return this.each(function(){p.event.trigger(e,t,this)})},triggerHandler:function(e,t){var o=this[0];return o?p.event.trigger(e,t,o,!0):void 0}}),p.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){p.fn[t]=function(e,o){return arguments.length>0?this.on(t,null,e,o):this.trigger(t)}}),p.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),u.focusin="onfocusin"in e,u.focusin||p.each({focus:"focusin",blur:"focusout"},function(e,t){var o=function(e){p.event.simulate(t,e.target,p.event.fix(e))};p.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=V.access(n,t);r||n.addEventListener(e,o,!0),V.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=V.access(n,t)-1;r?V.access(n,t,r):(n.removeEventListener(e,o,!0),V.remove(n,t))}}});var at=e.location,it=p.now(),dt=/\?/;p.parseJSON=function(e){return JSON.parse(e+"")},p.parseXML=function(t){var o;if(!t||"string"!=typeof t)return null;try{o=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){o=void 0}return(!o||o.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+t),o};var st=/#.*$/,lt=/([?&])_=[^&]*/,ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,ut=/^(?:GET|HEAD)$/,ht=/^\/\//,pt={},ft={},gt="*/".concat("*"),mt=n.createElement("a");function vt(e){return function(t,o){"string"!=typeof t&&(o=t,t="*");var n,r=0,a=t.toLowerCase().match(_)||[];if(p.isFunction(o))for(;n=a[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(o)):(e[n]=e[n]||[]).push(o)}}function $t(e,t,o,n){var r={},a=e===ft;function i(d){var s;return r[d]=!0,p.each(e[d]||[],function(e,d){var l=d(t,o,n);return"string"!=typeof l||a||r[l]?a?!(s=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),s}return i(t.dataTypes[0])||!r["*"]&&i("*")}function yt(e,t){var o,n,r=p.ajaxSettings.flatOptions||{};for(o in t)void 0!==t[o]&&((r[o]?e:n||(n={}))[o]=t[o]);return n&&p.extend(!0,e,n),e}mt.href=at.href,p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?yt(yt(e,p.ajaxSettings),t):yt(p.ajaxSettings,e)},ajaxPrefilter:vt(pt),ajaxTransport:vt(ft),ajax:function(t,o){"object"==typeof t&&(o=t,t=void 0),o=o||{};var r,a,i,d,s,l,c,u,h=p.ajaxSetup({},o),f=h.context||h,g=h.context&&(f.nodeType||f.jquery)?p(f):p.event,m=p.Deferred(),v=p.Callbacks("once memory"),$=h.statusCode||{},y={},C={},w=0,b="canceled",P={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!d)for(d={};t=ct.exec(i);)d[t[1].toLowerCase()]=t[2];t=d[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?i:null},setRequestHeader:function(e,t){var o=e.toLowerCase();return w||(e=C[o]=C[o]||e,y[e]=t),this},overrideMimeType:function(e){return w||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)$[t]=[$[t],e[t]];else P.always(e[P.status]);return this},abort:function(e){var t=e||b;return r&&r.abort(t),S(0,t),this}};if(m.promise(P).complete=v.add,P.success=P.done,P.error=P.fail,h.url=((t||h.url||at.href)+"").replace(st,"").replace(ht,at.protocol+"//"),h.type=o.method||o.type||h.method||h.type,h.dataTypes=p.trim(h.dataType||"*").toLowerCase().match(_)||[""],null==h.crossDomain){l=n.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=mt.protocol+"//"+mt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=p.param(h.data,h.traditional)),$t(pt,h,o,P),2===w)return P;for(u in(c=p.event&&h.global)&&0===p.active++&&p.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ut.test(h.type),a=h.url,h.hasContent||(h.data&&(a=h.url+=(dt.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=lt.test(a)?a.replace(lt,"$1_="+it++):a+(dt.test(a)?"&":"?")+"_="+it++)),h.ifModified&&(p.lastModified[a]&&P.setRequestHeader("If-Modified-Since",p.lastModified[a]),p.etag[a]&&P.setRequestHeader("If-None-Match",p.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||o.contentType)&&P.setRequestHeader("Content-Type",h.contentType),P.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+gt+"; q=0.01":""):h.accepts["*"]),h.headers)P.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(f,P,h)||2===w))return P.abort();for(u in b="abort",{success:1,error:1,complete:1})P[u](h[u]);if(r=$t(ft,h,o,P)){if(P.readyState=1,c&&g.trigger("ajaxSend",[P,h]),2===w)return P;h.async&&h.timeout>0&&(s=e.setTimeout(function(){P.abort("timeout")},h.timeout));try{w=1,r.send(y,S)}catch(e){if(!(2>w))throw e;S(-1,e)}}else S(-1,"No Transport");function S(t,o,n,d){var l,u,y,C,b,S=o;2!==w&&(w=2,s&&e.clearTimeout(s),r=void 0,i=d||"",P.readyState=t>0?4:0,l=t>=200&&300>t||304===t,n&&(C=function(e,t,o){for(var n,r,a,i,d=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in d)if(d[r]&&d[r].test(n)){s.unshift(r);break}if(s[0]in o)a=s[0];else{for(r in o){if(!s[0]||e.converters[r+" "+s[0]]){a=r;break}i||(i=r)}a=a||i}return a?(a!==s[0]&&s.unshift(a),o[a]):void 0}(h,P,n)),C=function(e,t,o,n){var r,a,i,d,s,l={},c=e.dataTypes.slice();if(c[1])for(i in e.converters)l[i.toLowerCase()]=e.converters[i];for(a=c.shift();a;)if(e.responseFields[a]&&(o[e.responseFields[a]]=t),!s&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=a,a=c.shift())if("*"===a)a=s;else if("*"!==s&&s!==a){if(!(i=l[s+" "+a]||l["* "+a]))for(r in l)if((d=r.split(" "))[1]===a&&(i=l[s+" "+d[0]]||l["* "+d[0]])){!0===i?i=l[r]:!0!==l[r]&&(a=d[0],c.unshift(d[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+s+" to "+a}}}return{state:"success",data:t}}(h,C,P,l),l?(h.ifModified&&((b=P.getResponseHeader("Last-Modified"))&&(p.lastModified[a]=b),(b=P.getResponseHeader("etag"))&&(p.etag[a]=b)),204===t||"HEAD"===h.type?S="nocontent":304===t?S="notmodified":(S=C.state,u=C.data,l=!(y=C.error))):(y=S,(t||!S)&&(S="error",0>t&&(t=0))),P.status=t,P.statusText=(o||S)+"",l?m.resolveWith(f,[u,S,P]):m.rejectWith(f,[P,S,y]),P.statusCode($),$=void 0,c&&g.trigger(l?"ajaxSuccess":"ajaxError",[P,h,l?u:y]),v.fireWith(f,[P,S]),c&&(g.trigger("ajaxComplete",[P,h]),--p.active||p.event.trigger("ajaxStop")))}return P},getJSON:function(e,t,o){return p.get(e,t,o,"json")},getScript:function(e,t){return p.get(e,void 0,t,"script")}}),p.each(["get","post"],function(e,t){p[t]=function(e,o,n,r){return p.isFunction(o)&&(r=r||n,n=o,o=void 0),p.ajax(p.extend({url:e,type:t,dataType:r,data:o,success:n},p.isPlainObject(e)&&e))}}),p._evalUrl=function(e){return p.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},p.fn.extend({wrapAll:function(e){var t;return p.isFunction(e)?this.each(function(t){p(this).wrapAll(e.call(this,t))}):(this[0]&&(t=p(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return p.isFunction(e)?this.each(function(t){p(this).wrapInner(e.call(this,t))}):this.each(function(){var t=p(this),o=t.contents();o.length?o.wrapAll(e):t.append(e)})},wrap:function(e){var t=p.isFunction(e);return this.each(function(o){p(this).wrapAll(t?e.call(this,o):e)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()}}),p.expr.filters.hidden=function(e){return!p.expr.filters.visible(e)},p.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Ct=/%20/g,wt=/\[\]$/,bt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function xt(e,t,o,n){var r;if(p.isArray(t))p.each(t,function(t,r){o||wt.test(e)?n(e,r):xt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,o,n)});else if(o||"object"!==p.type(t))n(e,t);else for(r in t)xt(e+"["+r+"]",t[r],o,n)}p.param=function(e,t){var o,n=[],r=function(e,t){t=p.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=p.ajaxSettings&&p.ajaxSettings.traditional),p.isArray(e)||e.jquery&&!p.isPlainObject(e))p.each(e,function(){r(this.name,this.value)});else for(o in e)xt(o,e[o],t,r);return n.join("&").replace(Ct,"+")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=p.prop(this,"elements");return e?p.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!p(this).is(":disabled")&&St.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!K.test(e))}).map(function(e,t){var o=p(this).val();return null==o?null:p.isArray(o)?p.map(o,function(e){return{name:t.name,value:e.replace(bt,"\r\n")}}):{name:t.name,value:o.replace(bt,"\r\n")}}).get()}}),p.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ft={0:200,1223:204},Et=p.ajaxSettings.xhr();u.cors=!!Et&&"withCredentials"in Et,u.ajax=Et=!!Et,p.ajaxTransport(function(t){var o,n;return u.cors||Et&&!t.crossDomain?{send:function(r,a){var i,d=t.xhr();if(d.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)d[i]=t.xhrFields[i];for(i in t.mimeType&&d.overrideMimeType&&d.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)d.setRequestHeader(i,r[i]);o=function(e){return function(){o&&(o=n=d.onload=d.onerror=d.onabort=d.onreadystatechange=null,"abort"===e?d.abort():"error"===e?"number"!=typeof d.status?a(0,"error"):a(d.status,d.statusText):a(Ft[d.status]||d.status,d.statusText,"text"!==(d.responseType||"text")||"string"!=typeof d.responseText?{binary:d.response}:{text:d.responseText},d.getAllResponseHeaders()))}},d.onload=o(),n=d.onerror=o("error"),void 0!==d.onabort?d.onabort=n:d.onreadystatechange=function(){4===d.readyState&&e.setTimeout(function(){o&&n()})},o=o("abort");try{d.send(t.hasContent&&t.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}:void 0}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return p.globalEval(e),e}}}),p.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),p.ajaxTransport("script",function(e){var t,o;if(e.crossDomain)return{send:function(r,a){t=p("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",o=function(e){t.remove(),o=null,e&&a("error"===e.type?404:200,e.type)}),n.head.appendChild(t[0])},abort:function(){o&&o()}}});var It=[],Tt=/(=)\?(?=&|$)|\?\?/;p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=It.pop()||p.expando+"_"+it++;return this[e]=!0,e}}),p.ajaxPrefilter("json jsonp",function(t,o,n){var r,a,i,d=!1!==t.jsonp&&(Tt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tt.test(t.data)&&"data");return d||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=p.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,d?t[d]=t[d].replace(Tt,"$1"+r):!1!==t.jsonp&&(t.url+=(dt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return i||p.error(r+" was not called"),i[0]},t.dataTypes[0]="json",a=e[r],e[r]=function(){i=arguments},n.always(function(){void 0===a?p(e).removeProp(r):e[r]=a,t[r]&&(t.jsonpCallback=o.jsonpCallback,It.push(r)),i&&p.isFunction(a)&&a(i[0]),i=a=void 0}),"script"):void 0}),u.createHTMLDocument=function(){var e=n.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),p.parseHTML=function(e,t,o){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(o=t,t=!1),t=t||(u.createHTMLDocument?n.implementation.createHTMLDocument(""):n);var r=P.exec(e),a=!o&&[];return r?[t.createElement(r[1])]:(r=te([e],t,a),a&&a.length&&p(a).remove(),p.merge([],r.childNodes))};var At=p.fn.load;function Nt(e){return p.isWindow(e)?e:9===e.nodeType&&e.defaultView}p.fn.load=function(e,t,o){if("string"!=typeof e&&At)return At.apply(this,arguments);var n,r,a,i=this,d=e.indexOf(" ");return d>-1&&(n=p.trim(e.slice(d)),e=e.slice(0,d)),p.isFunction(t)?(o=t,t=void 0):t&&"object"==typeof t&&(r="POST"),i.length>0&&p.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){a=arguments,i.html(n?p("<div>").append(p.parseHTML(e)).find(n):e)}).always(o&&function(e,t){i.each(function(){o.apply(i,a||[e.responseText,t,e])})}),this},p.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){p.fn[t]=function(e){return this.on(t,e)}}),p.expr.filters.animated=function(e){return p.grep(p.timers,function(t){return e===t.elem}).length},p.offset={setOffset:function(e,t,o){var n,r,a,i,d,s,l=p.css(e,"position"),c=p(e),u={};"static"===l&&(e.style.position="relative"),d=c.offset(),a=p.css(e,"top"),s=p.css(e,"left"),("absolute"===l||"fixed"===l)&&(a+s).indexOf("auto")>-1?(i=(n=c.position()).top,r=n.left):(i=parseFloat(a)||0,r=parseFloat(s)||0),p.isFunction(t)&&(t=t.call(e,o,p.extend({},d))),null!=t.top&&(u.top=t.top-d.top+i),null!=t.left&&(u.left=t.left-d.left+r),"using"in t?t.using.call(e,u):c.css(u)}},p.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){p.offset.setOffset(this,e,t)});var t,o,n=this[0],r={top:0,left:0},a=n&&n.ownerDocument;return a?(t=a.documentElement,p.contains(t,n)?(r=n.getBoundingClientRect(),o=Nt(a),{top:r.top+o.pageYOffset-t.clientTop,left:r.left+o.pageXOffset-t.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,o=this[0],n={top:0,left:0};return"fixed"===p.css(o,"position")?t=o.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),p.nodeName(e[0],"html")||(n=e.offset()),n.top+=p.css(e[0],"borderTopWidth",!0)-e.scrollTop(),n.left+=p.css(e[0],"borderLeftWidth",!0)-e.scrollLeft()),{top:t.top-n.top-p.css(o,"marginTop",!0),left:t.left-n.left-p.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===p.css(e,"position");)e=e.offsetParent;return e||Te})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var o="pageYOffset"===t;p.fn[e]=function(n){return L(this,function(e,n,r){var a=Nt(e);return void 0===r?a?a[t]:e[n]:void(a?a.scrollTo(o?a.pageXOffset:r,o?r:a.pageYOffset):e[n]=r)},e,n,arguments.length)}}),p.each(["top","left"],function(e,t){p.cssHooks[t]=Ne(u.pixelPosition,function(e,o){return o?(o=Ae(e,t),Fe.test(o)?p(e).position()[t]+"px":o):void 0})}),p.each({Height:"height",Width:"width"},function(e,t){p.each({padding:"inner"+e,content:t,"":"outer"+e},function(o,n){p.fn[n]=function(n,r){var a=arguments.length&&(o||"boolean"!=typeof n),i=o||(!0===n||!0===r?"margin":"border");return L(this,function(t,o,n){var r;return p.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===n?p.css(t,o,i):p.style(t,o,n,i)},t,a?n:void 0,a,null)}})}),p.fn.extend({bind:function(e,t,o){return this.on(e,null,t,o)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,o,n){return this.on(t,e,o,n)},undelegate:function(e,t,o){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",o)},size:function(){return this.length}}),p.fn.andSelf=p.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return p});var Ot=e.jQuery,_t=e.$;return p.noConflict=function(t){return e.$===p&&(e.$=_t),t&&e.jQuery===p&&(e.jQuery=Ot),p},t||(e.jQuery=e.$=p),p}),function(e){void 0===e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var o=e([0]),n=-1,r=this.length;++n<r&&(o.context=o[0]=this[n])&&!1!==t.call(o[0],n,o););return this}})}(jQuery),function(){var e=!1,t=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(o){var n=this.prototype;e=!0;var r=new this;for(var a in e=!1,o)r[a]="function"==typeof o[a]&&"function"==typeof n[a]&&t.test(o[a])?function(e,t){return function(){var o=this._super;this._super=n[e];var r=t.apply(this,arguments);return this._super=o,r}}(a,o[a]):o[a];function i(){!e&&this.init&&this.init.apply(this,arguments)}return i.prototype=r,i.prototype.constructor=i,i.extend=arguments.callee,i}}(),function(e,t){"use strict";if(window.Select2===t){var o,n,r,a,i,d,s,l,c,u={x:0,y:0},h={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case h.SHIFT:case h.CTRL:case h.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},p={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z"};s=e(document),c=1,i=function(){return c++},s.on("mousemove",function(e){u.x=e.pageX,u.y=e.pageY}),o=Class.extend({bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(o){var n,r,a,d,s,c=".select2-results";this.opts=o=this.prepareOpts(o),this.id=o.id,o.element.data("select2")!==t&&null!==o.element.data("select2")&&o.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(o.element.attr("id")||"autogen"+i()).replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.containerSelector="#"+this.containerId,this.container.attr("id",this.containerId),this.body=(a=function(){return o.element.closest("body")},s=!1,function(){return!1===s&&(d=a(),s=!0),d}),P(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",o.element.attr("style")),this.container.css(A(o.containerCss)),this.container.addClass(A(o.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").attr("aria-hidden",!0).before(this.container).on("click.select2",b),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),P(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(o.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",b),this.results=n=this.container.find(c),this.search=r=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",b),this.results.on("mousemove",function(o){var n=u;n!==t&&n.x===o.pageX&&n.y===o.pageY||e(o.target).trigger("mousemove-filtered",o)}),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",c,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchend",c,this.bind(this.selectHighlighted)),this.dropdown.on("touchmove",c,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",c,this.bind(this.clearTouchMoved)),function(e,t){var o=w(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){m(e.target,t.get())>=0&&o(e)})}(80,this.results),this.dropdown.on("scroll-debounced",c,this.bind(this.loadMoreIfNeeded)),e(this.container,this.dropdown).on("change",".select2-input",this.bind(function(t){t.stopPropagation(),e(t.target).trigger("native-change",t)})),e.fn.mousewheel&&n.mousewheel(function(e,t,o,r){var a=n.scrollTop();r>0&&a-r<=0?(n.scrollTop(0),b(e)):r<0&&n.get(0).scrollHeight-n.scrollTop()+r<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),b(e))}),C(r),r.on("keyup-change input paste",this.bind(this.updateResults)),r.on("focus",function(){r.addClass("select2-focused")}),r.on("blur",function(){r.removeClass("select2-focused")}),this.dropdown.on("mouseup",c,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown focusin",function(e){e.stopPropagation()}),this.nextSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==o.maximumInputLength&&this.search.attr("maxlength",o.maximumInputLength);var h=o.element.prop("disabled");h===t&&(h=!1),this.enable(!h);var p=o.element.prop("readonly");p===t&&(p=!1),this.readonly(p),l=l||function(){var t=e("<div class='select2-measure-scrollbar'></div>");t.appendTo("body");var o={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),o}(),this.autofocus=o.element.prop("autofocus"),o.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",o.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,o=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),o!==t&&(o.container.remove(),o.liveRegion.remove(),o.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:v(e.attr("locked"),"locked")||v(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(o){var n,r,a,d,s=this;if("select"===(n=o.element).get(0).tagName.toLowerCase()&&(this.select=r=o.element),r&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in o)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(o=e.extend({},{populateResults:function(n,r,a){var d,l=this.opts.id,c=this.liveRegion,u=this.opts.collapasable,h=r.length;d=function(n,r,p,f){var g,m,v,$,y,C,w,b,P,S,x;for(g=0,m=(n=o.sortResults(n,r,a)).length;g<m;g+=1)$=!(y=!0===(v=n[g]).disabled)&&l(v)!==t,C=v.children&&v.children.length>0,x=!1,void 0!==v.IsDefault&&v.IsDefault?(x=!0,$=!0):x=!1,void 0!==v.children&&0==v.children.length&&0==x||(w=e("<li></li>"),1==u&&void 0!==f&&1==f&&(void 0!==v.isShow&&1==v.isShow?w.css("display",""):w.css("display","none")),w.addClass("select2-results-dept-"+p),w.addClass("select2-result"),w.addClass($?"select2-result-selectable":"select2-result-unselectable"),y&&w.addClass("select2-disabled"),C&&w.addClass("select2-result-with-children"),x&&w.addClass("select2-result-with-children select2-hilight-title"),w.addClass(s.opts.formatResultCssClass(v)),w.attr("role","presentation"),b=e(document.createElement("div")),void 0!==v.serviceDisplayClass&&null!=v.serviceDisplayClass&&""!=v.serviceDisplayClass&&w.addClass(v.serviceDisplayClass),b.addClass("select2-result-label"),b.attr("id","select2-result-label-"+i()),b.attr("role","option"),(S=o.formatResult(v,b,a,s.opts.escapeMarkup))!==t&&(b.html(S),w.append(b)),C&&((P=e("<ul></ul>")).addClass("select2-result-sub text-primary"),d(v.children,P,p+1,!0),w.append(P)),w.data("select2-data",v),r.append(w),1==u&&1==C&&(w.off("click.custom"),w.on("click.custom",function(){e(this).find("li").is(":visible")?(e(this).find("li").hide(),e(this).removeClass("parentli-expanded")):(e(this).addClass("parentli-expanded"),e(this).find("li").show())}),1==h&&(w.addClass("parentli-expanded"),w.find("li").show())));c.text(o.formatMatches(n.length))},d(r,n,0)}},e.fn.select2.defaults,o)).id&&(a=o.id,o.id=function(e){return e[a]}),e.isArray(o.element.data("select2Tags"))){if("tags"in o)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+o.element.attr("id");o.tags=o.element.data("select2Tags")}if(r?(o.query=this.bind(function(e){var o,r,a,i={results:[],more:!1},d=e.term;a=function(t,o){var n;t.is("option")?e.matcher(d,t.text(),t)&&o.push(s.optionToData(t)):t.is("optgroup")&&(n=s.optionToData(t),t.children().each2(function(e,t){a(t,n.children)}),n.children.length>0&&o.push(n))},o=n.children(),this.getPlaceholder()!==t&&o.length>0&&(r=this.getPlaceholderOption())&&(o=o.not(r)),o.each2(function(e,t){a(t,i.results)}),e.callback(i)}),o.id=function(e){return e.id}):"query"in o||("ajax"in o?((d=o.element.data("ajax-url"))&&d.length>0&&(o.ajax.url=d),o.query=F.call(o.element,o.ajax)):"data"in o?o.query=E(o.data):"tags"in o&&(o.query=I(o.tags),o.createSearchChoice===t&&(o.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),o.initSelection===t&&(o.initSelection=function(t,n){var r=[];e($(t.val(),o.separator)).each(function(){var t={id:this,text:this},n=o.tags;e.isFunction(n)&&(n=n()),e(n).each(function(){if(v(this.id,t.id))return t=this,!1}),r.push(t)}),n(r)}))),"function"!=typeof o.query)throw"query function not defined for Select2 "+o.element.attr("id");if("top"===o.createSearchChoicePosition)o.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===o.createSearchChoicePosition)o.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof o.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return o},monitorSource:function(){var e,o,n=this.opts.element;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),e=this.bind(function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var o=n.prop("readonly");o===t&&(o=!1),this.readonly(o),P(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass)),P(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass))}),n.on("propertychange.select2",e),this.mutationCallback===t&&(this.mutationCallback=function(t){t.forEach(e)}),(o=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new o(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var o=e.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(o),!o.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,o,n,r,a,i=this.dropdown,d=this.container.offset(),s=this.container.outerHeight(!1),c=this.container.outerWidth(!1),u=i.outerHeight(!1),h=e(window),p=h.width(),f=h.height(),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=d.top+s,$=d.left,y=v+u<=m,C=d.top-u>=h.scrollTop(),w=i.outerWidth(!1),b=$+w<=g;i.hasClass("select2-drop-above")?(o=!0,!C&&y&&(n=!0,o=!1)):(o=!1,!y&&C&&(n=!0,o=!0)),n&&(i.hide(),d=this.container.offset(),s=this.container.outerHeight(!1),c=this.container.outerWidth(!1),u=i.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=d.top+s,b=($=d.left)+(w=i.outerWidth(!1))<=g,i.show()),this.opts.dropdownAutoWidth?(a=e(".select2-results",i)[0],i.addClass("select2-drop-auto-width"),i.css("width",""),(w=i.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:l.width))>c?c=w:w=c,b=$+w<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(t=this.body().offset()).top,$-=t.left),b||($=d.left+this.container.outerWidth(!1)-w),r={left:$,width:c},o?(r.top=d.top-u,r.bottom="auto",this.container.addClass("select2-drop-above"),i.addClass("select2-drop-above")):(r.top=v,r.bottom="auto",this.container.removeClass("select2-drop-above"),i.removeClass("select2-drop-above")),r=e.extend(r,A(this.opts.dropdownCss)),i.css(r)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var t,o=this.containerId,n="scroll."+o,r="resize."+o,a="orientationchange."+o;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",function(o){f(t);var n,r=e("#select2-drop");r.length>0&&((n=r.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),"undefined"!=typeof _common&&void 0!==_common.closeServiceSelection&&_common.closeServiceSelection(),n.close(),o.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var i=this;this.container.parents().add(window).each(function(){e(this).on(r+" "+n+" "+a,function(e){i.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,o="scroll."+t,n="resize."+t,r="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(o).off(n).off(r)}),this.clearDropdownAlignmentPreference(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close")),setTimeout(function(){e("#select2-drop-mask").hide()},400)}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return 0==this.opts.maximumSelectionSize?e("#select2-drop ul.select2-results").parent().addClass("selectbox-hide"):e("#select2-drop ul.select2-results").parent().removeClass("selectbox-hide"),A(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var t,o,n,r,a,i,d,s=this.results;(o=this.highlight())<0||(0!=o?(t=this.findHighlightableChoices().find(".select2-result-label"),r=(n=e(t[o])).offset().top+n.outerHeight(!0),o===t.length-1&&(d=s.find("li.select2-more-results")).length>0&&(r=d.offset().top+d.outerHeight(!0)),r>(a=s.offset().top+s.outerHeight(!0))&&s.scrollTop(s.scrollTop()+(r-a)),(i=n.offset().top-s.offset().top)<0&&"none"!=n.css("display")&&s.scrollTop(s.scrollTop()+i)):s.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var o=this.findHighlightableChoices(),n=this.highlight();n>=-1&&n<o.length;){var r=e(o[n+=t]);if(r.hasClass("select2-result-selectable")&&!r.hasClass("select2-disabled")&&!r.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var o,n,r=this.findHighlightableChoices();if(0===arguments.length)return m(r.filter(".select2-highlighted")[0],r.get());t>=r.length&&(t=r.length-1),t<0&&(t=0),this.removeHighlight(),(o=e(r[t])).addClass("select2-highlighted"),this.ensureHighlightVisible(),this.liveRegion.text(o.text()),(n=o.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var o=e(t.target).closest(".select2-result-selectable");if(o.length>0&&!o.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(o))}else 0==o.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),o=e.parent().find("li.select2-more-pager"),n=this.resultsPage+1,r=this,a=this.search.val(),i=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:a,page:n,context:i,matcher:this.opts.matcher,callback:this.bind(function(d){r.opened()&&(r.opts.populateResults.call(this,e,d.results,{term:a,page:n,context:i}),r.postprocessResults(d,!1,!1),null!=o&&o.appendTo(e.parent()).text(A(r.opts.formatPager,n+1)),!0===d.more?(t.detach().appendTo(e).text(A(r.opts.formatLoadMore,n+1)),window.setTimeout(function(){r.loadMoreIfNeeded()},10)):t.remove(),r.positionDropdown(),r.resultsPage=n,r.context=d.context,this.opts.element.trigger({type:"select2-loaded",items:d}))})}))},tokenize:function(){},updateResults:function(o){var n,r,a,i=this.search,d=this.results,s=this.opts,l=this,c=i.val(),u=e.data(this.container,"select2-last-term");if((!0===o||!u||!v(c,u))&&(e.data(this.container,"select2-last-term",c),!0===o||!1!==this.showSearchInput&&this.opened())){a=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&T(s.formatSelectionTooBig,"formatSelectionTooBig"))))return i.val().length<s.minimumInputLength?(T(s.formatInputTooShort,"formatInputTooShort")?(f("<li class='select2-no-results'>"+A(s.formatInputTooShort,i.val(),s.minimumInputLength)+"</li>"),e(".select2-more-pager").remove()):f(""),void(o&&this.showSearch&&this.showSearch(!0))):void(s.maximumInputLength&&i.val().length>s.maximumInputLength?T(s.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+A(s.formatInputTooLong,i.val(),s.maximumInputLength)+"</li>"):f(""):(s.formatSearching&&this.findHighlightableChoices().length<=10&&f("<li class='select2-searching'>"+A(s.formatSearching)+"</li>"),i.addClass("select2-active"),this.removeHighlight(),(r=this.tokenize())!=t&&null!=r&&i.val(r),this.resultsPage=1,s.query({element:s.element,term:i.val(),page:this.resultsPage,context:null,matcher:s.matcher,callback:this.bind(function(n){var r;if(a==this.queryCount)if(this.opened()){if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==i.val()&&(r=this.opts.createSearchChoice.call(l,i.val(),n.results))!==t&&null!==r&&l.id(r)!==t&&null!==l.id(r)&&0===e(n.results).filter(function(){return v(l.id(this),l.id(r))}).length&&this.opts.createSearchChoicePosition(n.results,r),0===n.results.length&&T(s.formatNoMatches,"formatNoMatches"))return"s2id_txtSearchServiceMain"==this.containerId||"s2id_ddlLiveStreamClass"==this.containerId||"s2id_ddlServices"==this.containerId||"s2id_txtMobileService"==this.containerId?f(A(s.formatEmptyMessage,i.val())):f("<li class='select2-no-results'>"+A(s.formatNoMatches,i.val())+"</li>"),void d.parent().find("li.select2-more-pager").remove();d.empty(),d.parent().find("li.select2-more-pager").remove(),l.opts.populateResults.call(this,d,n.results,{term:i.val(),page:this.resultsPage,context:null}),!0===n.more&&T(s.formatLoadMore,"formatLoadMore")&&(d.append("<li class='select2-more-results'>"+l.opts.escapeMarkup(A(s.formatLoadMore,this.resultsPage))+"</li>"),d.parent().append("<li class='select2-more-pager'>"+l.opts.escapeMarkup(A(s.formatPager,this.resultsPage))+"</li>"),window.setTimeout(function(){l.loadMoreIfNeeded()},10)),this.postprocessResults(n,o),p(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")})})));f("<li class='select2-selection-limit'>"+A(s.formatSelectionTooBig,h)+"</li>")}function p(){i.removeClass("select2-active"),l.positionDropdown(),d.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?l.liveRegion.text(d.text()):l.liveRegion.text(l.opts.formatMatches(d.find(".select2-result-selectable").length))}function f(e){d.html(e),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,o=e[0],n=e.val().length;e.focus(),(o.offsetWidth>0||o.offsetHeight>0)&&o===document.activeElement&&(o.setSelectionRange?o.setSelectionRange(n,n):o.createTextRange&&((t=o.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{var o=this.highlight(),n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");n?(this.highlight(o),this.onSelect(n,e)):e&&e.noFocus&&this.close(),"s2id_txtSearchServiceMain"!=this.containerId&&"s2id_ddlLiveStreamClass"!=this.containerId&&"s2id_ddlServices"!=this.containerId&&"s2id_txtMobileService"!=this.containerId||e==t&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var o=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&o||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(o.text())&&""===o.val())return o}},initContainerWidth:function(){var o=function(){var o,n,r,a,i;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((o=this.opts.element.attr("style"))!==t)for(a=0,i=(n=o.split(";")).length;a<i;a+=1)if(null!==(r=n[a].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&r.length>=1)return r[1];return"resolve"===this.opts.width?(o=this.opts.element.css("width")).indexOf("%")>0?o:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==o&&this.container.css("width",o)}}),n=o.extend({createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search' style='display:none;'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='false' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input text-primary' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this._super.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var o,n,r;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this._super.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(o=this.search.get(0)).createTextRange?((n=o.createTextRange()).collapse(!1),n.select()):o.setSelectionRange&&(r=this.search.val().length,o.setSelectionRange(r,r)),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this._super.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this._super.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this._super.apply(this,arguments)},initContainer:function(){var t,o,n=this.container,r=this.dropdown,a=i();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),o=e("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(o.text()).attr("for",this.focusser.attr("id"));var d=this.opts.element.attr("title");this.opts.element.attr("title",d||o.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled())if(e.which!==h.PAGE_UP&&e.which!==h.PAGE_DOWN)switch(e.which){case h.UP:case h.DOWN:return this.moveHighlight(e.which===h.UP?-1:1),void b(e);case h.ENTER:return this.selectHighlighted(),void b(e);case h.TAB:return void this.selectHighlighted({noFocus:!0});case h.ESC:return this.cancel(e),void b(e)}else b(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==h.TAB&&!h.isControl(e)&&!h.isFunctionKey(e)&&e.which!==h.ESC){if(!1!==this.opts.openOnEnter||e.which!==h.ENTER){if(e.which==h.DOWN||e.which==h.UP||e.which==h.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void b(e)}return e.which==h.DELETE||e.which==h.BACKSPACE?(this.opts.allowClear&&this.clear(),void b(e)):void 0}b(e)}})),C(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),function(e){e.preventDefault(),e.stopImmediatePropagation()}(e),this.close(),this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(o){f(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),b(o)})),r.on("mousedown touchstart",this.bind(function(){this.search.focus()})),t.on("focus",this.bind(function(e){b(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var o=this.selection.data("select2-data");if(o){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var r=this.getPlaceholderOption();this.opts.element.val(r?r.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(o),choice:o}),this.triggerChange({removed:o}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(o){o!==t&&null!==o&&(e.updateSelection(o),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(o,e.search.val()))})}},isPlaceholderOptionSelected:function(){var e;return!!this.getPlaceholder()&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this._super.apply(this,arguments),o=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(o.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(o,n){var r=o.val(),a=null;t.query({matcher:function(e,o,n){var i=v(r,t.id(n));return i&&(a=n),i},callback:e.isFunction(n)?function(){n(a)}:e.noop})}),t},getPlaceholder:function(){if(this.select&&this.getPlaceholderOption()===t)return t;this._super.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,o){var n=0,r=this;if(this.findHighlightableChoices().each2(function(e,t){if(v(r.id(t.data("select2-data")),r.opts.element.val()))return n=e,!1}),!1!==o&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(N(e.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var o=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),v(o,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var o,n,r=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),r.empty(),null!==e&&(o=this.opts.formatSelection(e,r,this.opts.escapeMarkup)),o!==t&&r.append(o),(n=this.opts.formatSelectionCssClass(e,r))!==t&&r.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,o=!1,n=null,r=this,a=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(o=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=r.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),o&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(o);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){r.opts.element.val(e?r.id(e):""),r.updateSelection(e),r.setPlaceholder(),o&&r.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var o,n=!1;if(0===arguments.length)return(o=this.selection.data("select2-data"))==t&&(o=null),o;arguments.length>1&&(n=arguments[1]),e?(o=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:o})):this.clear(n)}}),r=o.extend({createContainer:function(){var t="<input type='text' autocomplete='true' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input standrad-maphour-block'";return t+=">",e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field other'>","    <label for='' class='select2-offscreen' aria-hidden='true'></label>",t,"  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var t=this._super.apply(this,arguments),o=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(o.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(o,n){var r=$(o.val(),t.separator),a=[];t.query({matcher:function(o,n,i){var d=e.grep(r,function(e){return v(e,t.id(i))}).length;return d&&a.push(i),d},callback:e.isFunction(n)?function(){for(var e=[],o=0;o<r.length;o++)for(var i=r[o],d=0;d<a.length;d++){var s=a[d];if(v(i,t.id(s))){e.push(s),a.splice(d,1);break}}n(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this._super.apply(this,arguments)},initContainer:function(){var t,o=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(o);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+i()),this.search.attr("role","combobox"),this.search.attr("aria-autocomplete","list"),this.search.attr("aria-expanded","false"),this.search.attr("aria-controls","select2-drop"),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(o){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),r=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),i=function(t){var o=0,n=0;if("selectionStart"in(t=e(t)[0]))o=t.selectionStart,n=t.selectionEnd-o;else if("selection"in document){t.focus();var r=document.selection.createRange();n=document.selection.createRange().text.length,r.moveStart("character",-t.value.length),o=r.text.length-n}return{offset:o,length:n}}(this.search);if(n.length&&(o.which==h.LEFT||o.which==h.RIGHT||o.which==h.BACKSPACE||o.which==h.DELETE||o.which==h.ENTER)){var d=n;return o.which==h.LEFT&&r.length?d=r:o.which==h.RIGHT?d=a.length?a:null:o.which===h.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),d=r.length?r:a):o.which==h.DELETE?this.unselect(n.first())&&(this.search.width(10),d=a.length?a:null):o.which==h.ENTER&&(d=null),this.selectChoice(d),b(o),void(d&&d.length||this.open())}if((o.which===h.BACKSPACE&&1==this.keydowns||o.which==h.LEFT)&&0==i.offset&&!i.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void b(o);if(this.selectChoice(null),this.opened())switch(o.which){case h.UP:case h.DOWN:return this.moveHighlight(o.which===h.UP?-1:1),void b(o);case h.ENTER:if(this.selectHighlighted(),"s2id_txtSearchServiceMain"==this.containerId&&"undefined"!=typeof _common&&void 0!==_common.GetChoiceForSeleect2){var s=_common.GetChoiceForSeleect2(e("#txtSearchServiceMain")).text;void 0!==s&&""!=s&&"undefined"!=typeof _common&&void 0!==_common.SetLocationBySearch&&_common.SetLocationBySearch(o)}return void b(o);case h.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case h.ESC:return this.cancel(o),void b(o)}if(o.which!==h.TAB&&!h.isControl(o)&&!h.isFunctionKey(o)&&o.which!==h.BACKSPACE&&o.which!==h.ESC){if(o.which===h.ENTER){if(!1===this.opts.openOnEnter)return;if(o.altKey||o.ctrlKey||o.shiftKey||o.metaKey)return}this.open(),o.which!==h.PAGE_UP&&o.which!==h.PAGE_DOWN||b(o),o.which===h.ENTER&&b(o)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",o,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",o,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active vagaro-dropdown-multilayer"),null!=document.getElementById("divLiveStreamLocationSearchPopUp")&&"undefind"!=typeof document.getElementById("divLiveStreamLocationSearchPopUp")&&"block"==document.getElementById("divLiveStreamLocationSearchPopUp").style.display&&this.dropdown.addClass("select-list-popup"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this._super.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(o){o!==t&&null!==o&&(e.updateSelection(o),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),o=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(o>0?o:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this._super.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this._super.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var o=[],n=[],r=this;e(t).each(function(){m(r.id(this),o)<0&&(o.push(r.id(this)),n.push(this))}),t=n,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){r.addSelectedChoice(this)}),r.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,o){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),o&&o.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(o){var n,r,a=!o.locked,i=e("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),d=e("<li class='select2-search-choice select2-locked'><div></div></li>"),s=a?i:d,l=this.id(o),c=this.getVal();(n=this.opts.formatSelection(o,s.find("div"),this.opts.escapeMarkup))!=t&&s.find("div").replaceWith("<div>"+n+"</div>"),(r=this.opts.formatSelectionCssClass(o,s.find("div")))!=t&&s.addClass(r),a&&s.find(".select2-search-choice-close").on("mousedown",b).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),b(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),s.data("select2-data",o),s.insertBefore(this.searchContainer),c.push(l),this.setVal(c)},unselect:function(t){var o,n,r=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(o=t.data("select2-data")){var a=e.Event("select2-removing");if(a.val=this.id(o),a.choice=o,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;(n=m(this.id(o),r))>=0;)r.splice(n,1),this.setVal(r),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(o),choice:o}),this.triggerChange({removed:o}),!0}},postprocessResults:function(e,t,o){var n=this.getVal(),r=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),i=this;r.each2(function(e,t){m(i.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==o&&("s2id_txtSearchServiceMain"==this.containerId||"s2id_ddlLiveStreamClass"==this.containerId||"s2id_ddlServices"==this.containerId||"s2id_txtMobileService"==this.containerId||i.highlight(0)),!this.opts.createSearchChoice&&!r.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&T(i.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+A(i.opts.formatNoMatches,i.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,o,n,r,a=y(this.search);t=function(t){if(!d){var o=t[0].currentStyle||window.getComputedStyle(t[0],null);(d=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:o.fontSize,fontFamily:o.fontFamily,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,textTransform:o.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e("body").append(d)}return d.text(t.val()),d.width()}(this.search)+10,o=this.search.offset().left,(r=(n=this.selection.width())-(o-this.selection.offset().left)-a)<t&&(r=n-a),r<40&&(r=n-a),r<=0&&(r=t),this.search.width(Math.floor(r))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:$(e=this.opts.element.val(),this.opts.separator)},setVal:function(t){var o;this.select?this.select.val(t):(o=[],e(t).each(function(){m(this,o)<0&&o.push(this)}),this.opts.element.val(0===o.length?"":o.join(this.opts.separator)))},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var o=0;o<t.length;o++)for(var n=0;n<e.length;n++)v(this.opts.id(t[o]),this.opts.id(e[n]))&&(t.splice(o,1),o>0&&o--,e.splice(n,1),n--);return{added:t,removed:e}},val:function(o,n){var r,a=this;if(0===arguments.length)return this.getVal();if((r=this.data()).length||(r=[]),!o&&0!==o)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:r}));if(this.setVal(o),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(r,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var o=e.map(t,a.id);a.setVal(o),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(r,a.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],o=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(o.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,o){var n,r,a=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();r=this.data(),t||(t=[]),n=e.map(t,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),o&&this.triggerChange(this.buildChangeDetails(r,this.data()))}}),a=r.extend({initContainer:function(){this._super.apply(this,arguments),this.search.on("native-change",this.bind(this.triggerChange)).on("input paste",this.bind(function(){this.setVal(this.search.val())}))},clearSearch:function(){},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect&&this.close(),this.triggerChange({added:e}))},addSelectedChoice:function(e){this.setVal(e.text),this.search.val(e.text)},setVal:function(e){this.select?this.select.val(e):this.opts.element.val(e)}}),e.fn.select2=function(){var o,n,r,a,i,d=Array.prototype.slice.call(arguments,0),s=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search","onSelect"],l=["opened","isFocused","container","dropdown"],c=["val","data"],u={search:"externalSearch"};return this.each(function(){if(0===d.length||"object"==typeof d[0]){if((o=0===d.length?{}:e.extend({},d[0])).element=e(this),o.combobox)return void new window.Select2.class.combobox(o);"select"===o.element.get(0).tagName.toLowerCase()?i=o.element.prop("multiple"):(i=o.multiple||!1,"tags"in o&&(o.multiple=i=!0)),n=i?new window.Select2.class.multi(o):new window.Select2.class.single(o)}else{if("string"!=typeof d[0])throw"Invalid arguments to select2 plugin: "+d;if(m(d[0],s)<0)throw"Unknown method: "+d[0];if(a=t,(n=e(this).data("select2"))===t)return;if("container"===(r=d[0])?a=n.container:"dropdown"===r?a=n.dropdown:(u[r]&&(r=u[r]),a=n[r].apply(n,d.slice(1))),m(d[0],l)>=0||m(d[0],c)&&1==d.length)return!1}}),a===t?this:a},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,o,n){var r=[];return S(e.text,o.term,r,n),r.join("")},formatSelection:function(e,o,n){return e?n(e.text):t},sortResults:function(e,t,o){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,o){return t},formatMatches:function(e){return e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatEmptyMessage:function(){return""},formatInputTooShort:function(e,t){var o=t-e.length;return"Please enter "+o+" or more character"+(1==o?"":"s")},formatInputTooLong:function(e,t){var o=e.length-t;return"Please delete "+o+" character"+(1==o?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatPager:function(e){return""},formatSearching:function(){return"Searching…"},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},collapasable:!1,matcher:function(e,t,o){return g(""+t).toUpperCase().indexOf(g(""+e).toUpperCase())>=0==1&&(void 0!==o&&"object"==typeof o&&(o.isShow=!0),!0)},separator:",",tokenSeparators:[],tokenizer:function(e,o,n,r){var a,i,d,s,l,c=e,u=!1;if(!r.createSearchChoice||!r.tokenSeparators||r.tokenSeparators.length<1)return t;for(;;){for(i=-1,d=0,s=r.tokenSeparators.length;d<s&&(l=r.tokenSeparators[d],!((i=e.indexOf(l))>=0));d++);if(i<0)break;if(a=e.substring(0,i),e=e.substring(i+l.length),a.length>0&&(a=r.createSearchChoice.call(this,a,o))!==t&&null!==a&&r.id(a)!==t&&null!==r.id(a)){for(u=!1,d=0,s=o.length;d<s;d++)if(v(r.id(a),r.id(o[d]))){u=!0;break}u||n(a)}}return c!==e?e:void 0},escapeMarkup:x,blurOnChange:!1,selectOnBlur:!1,selectOnClick:!0,formContainer:"body",adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,o){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:F,local:E,tags:I},util:{debounce:w,markMatch:S,escapeMarkup:x,stripDiacritics:g},class:{abstract:o,single:n,multi:r,combobox:a}}}function f(t){var o=e(document.createTextNode(""));t.before(o),o.before(t),o.remove()}function g(e){var t,o,n,r;if(!e||e.length<1)return e;for(t="",o=0,n=e.length;o<n;o++)r=e.charAt(o),t+=p[r]||r;return t}function m(e,t){for(var o=0,n=t.length;o<n;o+=1)if(v(e,t[o]))return o;return-1}function v(e,o){return e===o||e!==t&&o!==t&&(null!==e&&null!==o&&(e.constructor===String?e+""==o+"":o.constructor===String&&o+""==e+""))}function $(t,o){var n,r,a;if(null===t||t.length<1)return[];for(r=0,a=(n=t.split(o)).length;r<a;r+=1)n[r]=e.trim(n[r]);return n}function y(e){return e.outerWidth(!1)-e.width()}function C(o){var n="keyup-change-value";o.on("keydown",function(){e.data(o,n)===t&&e.data(o,n,o.val())}),o.on("keyup",function(){var r=e.data(o,n);r!==t&&o.val()!==r&&(e.removeData(o,n),o.trigger("keyup-change"))})}function w(e,o,n){var r;return n=n||t,function(){var t=arguments;window.clearTimeout(r),r=window.setTimeout(function(){o.apply(n,t)},e)}}function b(e){e.preventDefault(),e.stopPropagation()}function P(t,o,n){var r,a,i=[];(r=t.attr("class"))&&e((r=""+r).split(" ")).each2(function(){0===this.indexOf("select2-")&&i.push(this)}),(r=o.attr("class"))&&e((r=""+r).split(" ")).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&i.push(a)}),t.attr("class",i.join(" "))}function S(e,t,o,n){var r=g(e.toUpperCase()).indexOf(g(t.toUpperCase())),a=t.length;r<0?o.push(n(e)):(o.push(n(e.substring(0,r))),o.push("<span class='select2-match'>"),o.push(n(e.substring(r,r+a))),o.push("</span>"),o.push(n(e.substring(r+a,e.length))))}function x(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function F(o){var n,r=null,a=o.quietMillis||100,i=o.url,d=o.minimumInputLengthForAjaxCall||0,s=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=o.data,a=i,c=o.transport||e.fn.select2.ajaxDefaults.transport,u={type:o.type||"GET",cache:o.cache||!1,jsonpCallback:o.jsonpCallback||t,dataType:o.dataType||"json"},h=e.extend({},e.fn.select2.ajaxDefaults.params,u);if(n=n?n.call(s,l.term,l.page,l.context):null,a="function"==typeof a?a.call(s,l.term,l.page,l.context):a,r&&"function"==typeof r.abort&&r.abort(),o.params&&(e.isFunction(o.params)?e.extend(h,o.params.call(s)):e.extend(h,o.params)),0==d||d<=n.searchText.length)e.extend(h,{url:a,dataType:o.dataType,data:n,success:function(e){var t=o.results(e,l.page);l.callback(t)}});else{var p=o.results(null,l.page);l.callback(p)}r=c.call(s,h)},a)}}function E(t){var o,n,r=t,a=function(e){return""+e.text};e.isArray(r)&&(r={results:n=r}),!1===e.isFunction(r)&&(n=r,r=function(){return n});var i=r();return i.text&&(a=i.text,e.isFunction(a)||(o=i.text,a=function(e){return e[o]})),function(t){var o,n=t.term,i={results:[]};""!==n?(o=function(r,i){var d,s;if((r=r[0]).children){for(s in d={},r)r.hasOwnProperty(s)&&(d[s]=r[s]);d.children=[],e(r.children).each2(function(e,t){o(t,d.children)}),(d.children.length||t.matcher(n,a(d),r))&&i.push(d)}else t.matcher(n,a(r),r)&&i.push(r)},e(r().results).each2(function(e,t){o(t,i.results)}),t.callback(i)):t.callback(r())}}function I(o){var n=e.isFunction(o);return function(r){var a=r.term,i={results:[]};e(n?o():o).each(function(){var e=this.text!==t,o=e?this.text:this;(""===a||r.matcher(a,o))&&i.results.push(e?this:{id:this,text:this})}),r.callback(i)}}function T(t,o){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(o+" must be a string, function, or falsy value")}function A(t){if(e.isFunction(t)){var o=Array.prototype.slice.call(arguments,1);return t.apply(null,o)}return t}function N(t){var o=0;return e.each(t,function(e,t){t.children?o+=N(t.children):o++}),o}}(jQuery);var isWidPopup=0,VagaroStaticURL="https://vagaro.azureedge.net/static-content/",IsPaste,IsSelected;function GetPopupCode(e,t,o,n,r){var a="#F37528",i="<div align='left' class='title' style='color:"+a+";border-bottom:1px solid #000;'><span> "+r+"</span></div>",d='HideDynamicPopup("'+n+'");';return"Sign Up"==r&&(a="#000"),"Change Service"!=r&&"Confirm Delete"!=r&&"Print Daily Plan"!=r&&"Print Daily Plan"!=r&&"Calendar Setting"!=r&&"Rebook Service"!=r||(a=""),"Customer History"==r&&(i="",d='HideDynamicPopupandSaveNote("'+n+'");'),"Resource Management"==r&&(d="HideDynamicPopupResourceFrame();"),"<div id='frame_apgProgress_"+n+"' style='display:;'><div class='loader'>&nbsp;</div><div class='loader-img'><img id='frame_imgLoading' src='"+VagaroStaticURL+"Images/loadersmall.gif' style='border-width:0px;width:80px;height:20px;' /></div></div><div style='position: relative; ' id='divinnertop_up'><div id='modalpopupNewAppointment_backgroundElement' style='position: fixed; left: 0px; top: 0px; z-index: -1; width: 100%; height: 100%;' class='ModalPopupBG'></div><div style='color: white; font-family: \"Lucida Grande\",\"Arial\"; font-size: 11px; position: absolute; text-align: center;width: 100%; z-index: 2001; top: 6px; position:relative;'></div><div class='pop-top-mNew'>"+i+"<div style='width: auto; height: auto; margin: 0 -7px;'>\x3c!-- Content --\x3e<iframe name='frame1'  frameborder='0' border='0' src='"+o+"' style='width: "+t+"px; height: "+e+"px;' id='iFrame_"+n+"' onload='javascript:document.getElementById(\"frame_apgProgress_"+n+"\").style.display=\"none\";'></iframe></div><div class='pop-top-mInner'><img alt='Close' onclick='"+d+"' style='cursor: pointer;' src='"+VagaroStaticURL+"Images/btn-close-title1.gif' height='18' width='18'></div></div>"}function ShowDynamicPopup(e,t,o,n,r){var a,i,d,s,l=document.getElementById(n);if(i=(a=getTopLeftPosition(t,o).split("|"))[0],d=a[1],a[2],l.style.left=d-20+"px",(s=document.documentElement.scrollTop!=document.body.scrollTop?document.documentElement.scrollTop+document.body.scrollTop:document.body.scrollTop)>0&&(i=parseInt(i)+s),2==isWidPopup&&(i=100),i-=20,l.style.top=i+"px",trimAll(l.innerHTML).length<6){var c;c=GetPopupCode(t,o,e,n,r),l.innerHTML=c,l.style.position="absolute",l.width="auto",l.height="auto",l.style.zIndex=1000001}l.style.display="",Call_ClearControls(n)}function trimAll(e){return e.replace(/^\s+|\s+$/g,"")}function Call_ClearControls(e){try{var t="iFrame_"+e,o=document.getElementById(t);o.contentWindow?o.contentWindow.ClearControls():o.contentDocument&&o.contentDocument.ClearControls()}catch(e){}}function HideDynamicPopup(e){try{document.getElementById(e).style.display="none"}catch(e){}}function HideCCIFrame(e){document.getElementById(e).style.display="none",$("#iFrame_"+e).attr("src",""),$("#"+e).html("")}function HideDynamicPopupandSaveNote(e,t){var o=document.getElementById("iFrame_"+e),n=o.contentWindow,r=!1;"undefined"!=typeof ChangeAppStatus&&"function"==typeof ChangeAppStatus.IsNewCall&&1==ChangeAppStatus.IsNewCall()&&(r=!0);var a=!1;if("undefined"!=typeof _vgCal&&(a=r&&"undefined"!=typeof ManageClasses&&void 0!==ManageClasses.model.IsPopupOpen?ManageClasses.model.IsPopupOpen:_vgCal.SPopup.model.IsPopupOpen),null!=n.oldAppComment){o.contentDocument?o.contentDocument:o.contentWindow.document;var i=n.txtAppNotes.val();if(n.oldAppComment!=i){var d=!1;if(null!=n.hist_isRecApp&&(d=n.hist_isRecApp),_vgCal.Common.model.IsNewAPI?ChangeAppStatus.ShowLoadingPanel(!0):ShowLoadingPanal(!0),notcommetfromnotepop=i,void 0===t||"History"==t){var s="";"undefined"!=typeof ReactBId&&null!=ReactBId&&""!=ReactBId&&(s=ReactBId);var l={},c={BusinessID:0,CustomerID:0,strGeneral:"",strAlergy:"",strFormula:"",CreateBy:0,sComment:i,AppID:Rec_EditedAppID,RecRuleID:Rec_RuleID,isRecApp:d,isWaitingAppointment:n.hist_isWaitingApp,encBusinessId:s};l.obCustomerNotes=c,CallWSJSON("VagaroWebOffline.asmx/SaveCustomerNotes",JSON.stringify(l),NewApp_CallSuccess_SaveCustomerNotes_hist,CallFailed_Note)}}else{document.getElementById(e).style.display="none",n.txtAppNotes.val(""),null!=n.oldAppComment&&(n.oldAppComment=""),n._refreshCal&&(n._refreshCal=!1,!0===r&&"undefined"!=typeof Scheduler&&"function"==typeof Scheduler.RefreshCalendar?Scheduler.RefreshCalendar():"undefined"!=typeof RefreshCalendar&&RefreshCalendar())}}else{document.getElementById(e).style.display="none",n._refreshCal&&(n._refreshCal=!1,!0===r&&"undefined"!=typeof Scheduler&&"function"==typeof Scheduler.RefreshCalendar?Scheduler.RefreshCalendar():"undefined"!=typeof RefreshCalendar&&RefreshCalendar())}if(a&&"DivZoomIntegrationPopUp"!=e)!0===r&&"undefined"!=typeof ManageClasses&&"function"==typeof ManageClasses.RetrieveAttendeeData?ManageClasses.RetrieveAttendeeData():_vgCal.SPopup.RetrieveAttendeeData();else if("DivZoomIntegrationPopUp"!=e&&"undefined"!=$("[Id$=ddCustomer]")&&"undefined"!=typeof glbCustomerID&&null!=glbCustomerID&&null!=glbCustomerID){var u={};u.CustomerID=glbCustomerID,u.BusinessID=BusinessID,u.eventType="1","undefined"!=typeof _vgCal&&void 0!==_vgCal.Common&&1==_vgCal.Common.model.BusinessCountryId?IsRequireDepositSetting=!0:IsRequireDepositSetting,u.IsRequireDepositSetting=IsRequireDepositSetting,"undefined"!=typeof _vgCal&&void 0!==_vgCal.Common&&_vgCal.Common.hdnAppointmentId>0?u.AppID=_vgCal.Common.hdnAppointmentId:u.AppID=1,(l={}).objcustomerdetails=u,null!=typeof t&&"History"!=t||CallWSJSON("VagaroWebOffline.asmx/GetCustomerDetailForCalendarDisplayNew",JSON.stringify(l),CallSuccess_SelectCustomer,CallFailedJSON)}}function HideDynamicPopupandSaveNoteSearch(e){window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1&&(document.getElementById(e).style.display="none")}function CallFailed_Note(){alert("Appointment comment not saved.Please refresh the page and try again"),document.getElementById("DivCustomerHistoryPopUp").style.display="none",oldAppComment_note.txtAppNotes.val(""),null!=oldAppComment_note.oldAppComment&&(oldAppComment_note.oldAppComment=""),ShowLoadingPanal(!1)}function NewApp_CallSuccess_SaveCustomerNotes_hist(e){null!=txtComment&&(txtComment.value=notcommetfromnotepop),void 0!==_vgCal.SPopup&&_vgCal.SPopup.UpdateCommentsValue(notcommetfromnotepop);var t="DivCustomerHistoryPopUp";document.getElementById(t).style.display="none",_vgCal.Common.model.IsNewAPI?ChangeAppStatus.ShowLoadingPanel(!1):ShowLoadingPanal(!1);var o=document.getElementById("iFrame_"+t).contentWindow;o.txtAppNotes.val(""),null!=o.oldAppComment&&(o.oldAppComment=""),o._refreshCal=!1,"undefined"!=typeof ChangeAppStatus&&1==ChangeAppStatus.IsNewCall()?Scheduler.RefreshScheduler():RefreshCalendar()}function getViewPortHeightWidth(){var e,t;return void 0!==window.innerWidth?(e=window.innerWidth,t=window.innerHeight):void 0!==document.documentElement&&void 0!==document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):(e=document.getElementsByTagName("body")[0].clientWidth,t=document.getElementsByTagName("body")[0].clientHeight),t+"|"+e}function getTopLeftPosition(e,t){var o,n,r;return(r=((n=(o=getViewPortHeightWidth().split("|"))[0])-e)/2)<0&&(r=1),r+"|"+(o[1]-t)/2+"|"+n}function ShowDynamicPopupForShopOwner(e,t,o,n,r,a,i,d,s){var l;(e.indexOf("/ShopOwner/PrintDailyPlanPopup.aspx")>-1||e.indexOf("/DynamicPopupPages/Videos.aspx")>-1||e.indexOf("/ShopOwner/VagaroDrivePopup.aspx")>-1||e.indexOf("/merchants/settings/premiumfeature/vagaropaylater")>-1)&&(window.location.href.indexOf("/merchants/calendar")>-1||window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1||window.location.href.toLocaleLowerCase().indexOf("searchclassfromcalendar.aspx")>-1)&&window.location.href.indexOf("/merchants/settings/lookandfeel/calendarconfiguration")<0&&(e.indexOf("?")>-1?e+="&cal=1":e+="?cal=1");var c=document.getElementById(n);if((l=getTopLeftPosition(t,o).split("|"))[0],l[1],l[2],e.toLowerCase().indexOf("/shopowner/zoomintegrationpopup.aspx")>-1&&(c.innerHTML="",window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1&&void 0!==window.parent&&null!=window.parent&&(window.parent.location.href.toLocaleLowerCase().indexOf("shopowner/checkout.aspx")>-1||/merchants\/checkout\/?(\?.*)?$/i.test(window.parent.location.href.toLowerCase()))&&(e.indexOf("?")>-1?e+="&isCheckout=1":e+="?isCheckout=1")),trimAll(c.innerHTML).length<6){var u=GetPopupCodeForShopOwner(t,o,e,n,r,d,i);if(c.innerHTML=u,c.width="auto",c.height="auto",c.style.zIndex=1000001,null!=a&&null!=a){var h="iFrame_"+n;(p=document.getElementById(h)).contentWindow?p.contentWindow.onload=function(){document.getElementById("frame_apgProgress_"+n).style.display="none",(0,p.contentWindow[a])(i,s)}:p.contentDocument&&(p.contentDocument.onload=function(){document.getElementById("frame_apgProgress_"+n).style.display="none",(0,p.contentDocument[a])(i,s)})}}else if(null!=a&&null!=a){var p;h="iFrame_"+n;if((p=document.getElementById(h)).contentWindow)(0,p.contentWindow[a])(i,s);else if(p.contentDocument){(0,p.contentDocument[a])(i,s)}}void 0!==e&&""!=e&&void 0!==$("#chatFrame")&&$("#chatFrame").length>0&&e.indexOf("/ShopOwner/PrintDailyPlanPopup.aspx")>-1&&"block"==$("#chatFrame").css("display")&&!$("#chatFrame").hasClass("ifream-smallscreen")&&!$("#chatFrame").hasClass("ifream-minimize")&&$("#chatFrame").css("display","none"),SetTopLeft(c),void 0!==c&&"divMergeCustomer"!=c.id&&(c.style.display="flex"),Call_ClearControls(n)}function GetPopupCodeForShopOwner(e,t,o,n,r,a,i){var d="no",s="hidden";if("DivCustomerHistoryPopUp"==n)d="yes",s="auto";var l="";null!=i&&"AddEditCustomer"!=r&&-1!=i.toLowerCase().indexOf("businesscreated.aspx")&&(l="allowfullscreen");var c="";return null!=a&&(c="class="+a),"<div id='frame_apgProgress_"+n+"' style='display:;'><div class='loader'>&nbsp;</div><div class='loader-img'><img id='frame_imgLoading' src='"+VagaroStaticURL+"Images/loadersmall.gif' style='border-width:0px;width:80px;height:20px;' /></div></div><div style='position: relative; ' id='divinnertop_up'><div id='modalpopupNewAppointment_backgroundElement' style='position: fixed; left: 0px; top: 0px; z-index: -1; width: 100%; height: 100%;' class='ModalPopupBG'></div><div style='color: white;  font-size: 11px; position: absolute; text-align: center;width: 100%; z-index: 2001; top: 6px; position:relative;'></div><div class='Modalhistoryfullwidth'  style='width: auto; height: auto; border-radius:4px;  overflow:hidden;'>\x3c!-- Content --\x3e<iframe "+c+"   "+l+"  name='frame1' frameborder='0' scrolling="+d+" border='0' src='"+o+"' style='overflow:"+s+";width: "+t+"px; height: "+e+"px;' id='iFrame_"+n+"' onload='javascript:document.getElementById(\"frame_apgProgress_"+n+'").style.display="none";\'></iframe></div>'}function SetTopLeft(e){$(e).css("position","absolute");$(document).scrollTop();$(e).css("top",Math.max(0,($(window).height()-$(e).outerHeight())/2+$(window).scrollTop())+"px"),$(e).css("left",Math.max(0,($(window).width()-$(e).outerWidth())/2+$(window).scrollLeft())+"px")}function loadbusinessusercontrol(){if(""==$("#ucdivBusinessselecteion").html()||null==$("#ucdivBusinessselecteion").html()){$("#ucdivBusinessselecteion").html("");var e={UserControlPath:"~/ShopOwner/UserControls/ucBusinessList.ascx"};"True"==$("#ucdivBusinessselecteion").data("loadjs")?e.PageNamePath="~/calendar.aspx":e.PageNamePath="~/transactionReport.aspx",e.isRemoveFormTag=!0,AddUserControlAsync("CalendarWebService.asmx/LoadUserControl",JSON.stringify(e),$("#ucdivBusinessselecteion")),setTimeout(function(){LoadBusinessList()},500)}else LoadBusinessList()}"complete"===document.readyState&&$(window).resize(function(){SetTopLeft("#DivCustomerHistoryPopUp")}),Vsecure={model:{},init:function(e,t,o,n,r,a){this.model.cap=e,this.model.dvcap=t,this.model.ifrm=o,this.model.ltype=0,this.ifrmLoadedCallback=r,void 0===this.model.IsSf&&(this.model.IsSf=n),"0"==this.model.IsSf&&this.loadIfrm()},getC:function(){return void 0===this.model.cap||0==this.isCapShown()?"":$("#"+this.model.cap).val()},showHideCap:function(e){e?($("#"+this.model.dvcap).slideDown(),this.model.IsSf="0"):($("#"+this.model.cap).val(""),this.model.IsSf="1",$("#"+this.model.dvcap).slideUp())},loadIfrm:function(){if(document.getElementById(this.model.ifrm)){var e=$("#"+this.model.ifrm),t="",o=!!navigator.userAgent.match(/Trident.*/);("Microsoft Internet Explorer"==navigator.appName||o)&&(t="ie");var n=!1;if(void 0===e.attr("src")||""==e.attr("src")){"function"==typeof Captcha_IsWidget&&Captcha_IsWidget();var r="//"+location.host+"/Users/CaptchaContainer.aspx?IsW=0";e.attr("src",r),n=!0}"ie"==t?0==n&&(document.getElementById(this.model.ifrm).src=document.getElementById(this.model.ifrm).src):document.getElementById(this.model.ifrm).src=document.getElementById(this.model.ifrm).src,this.showHideLoader(!0)}},isCapShown:function(){return $("#"+this.model.dvcap).is(":visible")},isValid:function(e){if(0==this.isCapShown())return!0;var t=$("#"+this.model.cap);return void 0!==e&&""!=e||(e="errorInput"),t.val(t.val().replace("%","")),t.removeClass(e),!this.isCapShown()||""!=t.val()||(t.addClass(e),!1)},ifrmLoaded:function(){"function"==typeof this.ifrmLoadedCallback&&this.ifrmLoadedCallback(),this.showHideLoader(!1)},showHideLoader:function(e){var t=$("#apgLoading");0==t.length&&"undefined"!=typeof SignUp_Loading&&(t=$(SignUp_Loading)),t.length&&(e?t.show():t.hide())}},TwoStepAuth={model:{},init:function(e,t,o,n,r,a,i,d,s,l,c,u){this.model.pg=e,this.model.email=t,this.model.cell=o,this.model.codRecMode=n,this.model.isInit=!1,this.model.IsPolicyAck=s,this.model.userType=l,this.model.userId=void 0===c?0:c,this.model.isFromBackFromAuth=void 0!==u&&u,this.model.resendStatus=void 0===r?"sp2SResend":r,this.model.resendlnk=void 0===a?"lnk2SResend":a,this.model.txt2SCode=void 0===i?"txt2SCode":i,this.model.countryID=void 0===d?"":d,"privacypolicy"==this.model.pg?this.Set2UserPrivacyPolicyAckHtml(l):"adminLogin"!=this.model.pg&&this.Set2StepHtml()},Set2StepHtml:function(){var e;if(this.model.isSt2Shown=!0,e='<div class="signup-verify"><div class="verify-text"><div class="icon"><svg width="48" height="48" id="Layer_1" data-name="Layer 1" viewBox="0 0 60 60"><path class="cls-1" d = "M31.73,56.24c-1.57.09-3.26.14-5.16.14-6.29,0-12.54-.59-18.6-1.74-.96-.18-1.66-1.02-1.66-2v-2.48c0-8.56,7.1-15.52,15.82-15.52h8.86c2.23,0,4.45.46,6.4,1.33.93.41,2.02,0,2.44-.9.42-.91.01-1.99-.92-2.4-.84-.37-1.73-.66-2.63-.91,4.77-3.1,7.92-8.41,7.92-14.43C44.21,7.77,36.3,0,26.56,0S8.92,7.77,8.92,17.31c0,6.02,3.15,11.33,7.92,14.43-8.19,2.27-14.22,9.66-14.22,18.41v2.48c0,2.72,1.96,5.07,4.66,5.56,6.28,1.2,12.77,1.8,19.29,1.8,1.98,0,3.74-.05,5.39-.14,1.02-.06,1.79-.92,1.73-1.92-.06-1-.94-1.74-1.95-1.7h0ZM12.61,17.31c0-7.55,6.26-13.69,13.95-13.69s13.95,6.14,13.95,13.69-6.26,13.69-13.95,13.69-13.95-6.14-13.95-13.69h0Z" /><path class="cls-1" d="M53.46,43.84v-2.1c0-3.45-2.86-6.25-6.37-6.25-2.32,0-4.46,1.24-5.58,3.23-.49.88-.17,1.98.72,2.46.9.48,2.02.17,2.51-.71.47-.84,1.37-1.36,2.35-1.36,1.48,0,2.68,1.18,2.68,2.63v2.02h-8.2c-2.63,0-4.77,2.1-4.77,4.68v6.88c0,2.58,2.14,4.68,4.77,4.68h11.05c2.63,0,4.77-2.1,4.77-4.68v-6.88c0-2.3-1.7-4.2-3.92-4.6h0ZM53.69,55.32c0,.58-.48,1.06-1.08,1.06h-11.05c-.6,0-1.08-.48-1.08-1.06v-6.88c0-.58.48-1.06,1.08-1.06h11.05c.6,0,1.08.48,1.08,1.06v6.88Z" /></svg></div><h2>2-Step Authentication</h2><p id="verificationDesc">Enter the 6-digit code we sent to <strong> '+("undefined"!=this.model.cell&&null!=this.model.cell&&""!=this.model.cell?this.formatEmail(this.model.email)+"</strong> or <strong>"+this.formatCell(this.model.cell):this.formatEmail(this.model.email))+'</strong>.</p><div class="input-part" id="ulAuthCode" data-type="validcontainer"><label>Verification Code:</label><input id="'+this.model.txt2SCode+'" type="tel" pattern="d*" inputmode="numeric" name="'+this.model.txt2SCode+'" maxlength="6" autocomplete="off" class="input-box" onkeyup="_twoFactor.AllowNumberOnly(this);" placeholder="Enter 6-digit code"><div id="spnErrorCode" class="errortext">required</div><p><a href="javascript:void(0);" class="ghost-button" id="'+this.model.resendlnk+'" onclick="TwoStepAuth.resendCode();">Send a New Code</a><a href="javascript:void(0);" class="ghost-button" id="'+this.model.resendStatus+'" style="display:none"></a></p></div><div class="signup-button-center"><button id="authCodeStep" type="button" class="form-next-button w-button">Verify </button></div></div></div>',"signupNew"==this.model.pg||"Login"==this.model.pg){var t=$("#divLoginNew");this.model.title=t.find(".modal-title"),t.find(".modal-footer").removeClass("btn-left-align"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",$("#"+this.model.divLoginStep2).html(e),this.model.btnLogin=t.find("#btLogin"),this.model.btnLogin2=t.find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep2).find("#authCodeStep")}else"LoginPage"==this.model.pg?(this.model.title=$("#wrapper").find(".page-title"),recaptch.isCapShown()&&recaptch.showHideCap("False"),this.model.divLoginStep1="divPLoginStep1",this.model.divLoginStep2="divPLoginStep2",$("#logincontrol").addClass("twosteploginpage"),$(".stepLogin2 > #sp2divinnerone").hide(),$(".facebook-login-oauth .stepLogin1").hide(),$(".stepLogin2 > #sp2divinnertwo").show().html(e),this.model.btnLogin=$(".stepLogin2 > #sp2divinnertwo").find("[id*=btnLogin]"),this.model.btnLogin2=$(".stepLogin2 > #sp2divinnertwo").find("#btnPLogin2"),this.model.btnLogin3=$(".stepLogin2 > #sp2divinnertwo").find("#authCodeStep"),$("[id *=pnlogin]").attr("onkeypress","")):"CMSMaster"==this.model.pg?(t=$("[id*=pnlLogin]"),this.model.title=t.find(".Popupspanheight"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",$("#"+this.model.divLoginStep2).html(e),$("#divLoginNew .btn-left-align").removeClass("btn-left-align"),this.model.btnLogin=t.find("[id*=btnLogin]"),this.model.btnLogin2=t.find("#btnLogin2"),this.model.btnLogin3=$("#"+this.model.divLoginStep2).find("#authCodeStep"),t.find(".popupBtnDiv").addClass("login-btn-right"),t.find("[id*=pnlAddEdit]").attr("onkeypress","")):"ScreenLock"==this.model.pg&&(t=$("#divLoginPopUp"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",$("#"+this.model.divLoginStep2).html(e),this.model.btnLogin=t.find("[id*=btnLogin]"),this.model.btnLogin2=$("#divLoginNew").find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep2).find("#authCodeStep"));$("#"+this.model.txt2SCode).change(function(){$(this).removeClass("errorInput")}),$("#"+this.model.divLoginStep1).hide(),$("#divLoginNew").addClass("twostep-popup"),$("#"+this.model.divLoginStep2).show(),this.model.ulAuthCode="ulAuthCode",this.model.btnLogin3.off(),this.model.btnLogin3.on("click",this.Validate2StCod_FrntSite),this.model.btnLogin.hide(),this.model.btnLogin2.hide(),$("#"+this.model.divLoginStep2).off(),$("#"+this.model.divLoginStep2).keypress(function(e){return WebForm_FireDefaultButton(e,TwoStepAuth.model.btnLogin2.attr("id"))}),$("#"+this.model.txt2SCode).focus()},formatEmail:function(e){var t=e.split("@");return 2==t.length&&(e=this.formatCell(t[0],!0)+"@"+t[1]),e},formatCell:function(e,t=!1){var o="",n=3;e.length<=3&&(n=1);for(var r=0;r<e.length-n;r++)o+="*";if(0==t){switch(this.model.countryID){case"4":phoneNumHidden="(**) **** *";break;case"3":phoneNumHidden="***-***-*";break;case"2":phoneNumHidden="*** **** *";case"1":phoneNumHidden="(***) ***-*";break;default:phoneNumHidden=o}e=phoneNumHidden+e.substring(e.length-n,e.length)}else e=o+e.substring(e.length-n,e.length);return e},switchToStep1:function(){if(void 0!==this.model.isSt2Shown&&this.model.isSt2Shown)if(this.model.isSt2Shown=!1,$("#"+this.model.divLoginStep1).show(),$("#"+this.model.divLoginStep2).html(""),$("#"+this.model.divLoginStep2).hide(),$("#"+this.model.divLoginStep3).hide(),$("#divLoginNew").removeClass("twostep-popup"),this.model.btnLogin.show(),this.model.btnLogin2.hide(),"signupNew"==this.model.pg)$("#divLoginNew").find(".modal-footer").addClass("btn-left-align");else if("CMSMaster"==this.model.pg){var e=$("[id*=pnlLogin]");e.find(".popupBtnDiv").removeClass("login-btn-right"),$("#divLoginNew .modal-footer").addClass("btn-left-align");var t=$("[id *=pnlAddEdit]");t.off("keypress"),t.keypress(function(t){return WebForm_FireDefaultButton(t,e.find("[id*=btnLogin]").attr("id"))})}else this.model.pg},resendCode:function(){Vsecure.showHideLoader(!0),$("#"+this.model.txt2SCode).val("");var e=$("#"+this.model.resendStatus);return e.css("color",""),e.text("Sending Code ..."),$("#"+this.model.txt2SCode).removeClass("error"),$("#spnErrorCode").hide(),$("#"+this.model.resendlnk).hide(),e.show(),CallWebServicehed("MySampleService.asmx/ResendTwoStepAuthCode","",this.resendCode_Success,this.resendCode_Fail),!1},resendCode_Success:function(e){var t=$("#"+TwoStepAuth.model.resendStatus),o=$("#"+TwoStepAuth.model.resendlnk);switch(e.d){case"0":t.text("The code has been sent."),setTimeout(function(){Vsecure.showHideLoader(!1),t.hide(),o.show()},5e3);break;case"-1":t.css("color","red"),t.text("Some error has occured while resending code."),setTimeout(function(){Vsecure.showHideLoader(!1),t.hide(),o.show()},5e3);break;case"-2":t.text("You are not logged in."),setTimeout(function(){Vsecure.showHideLoader(!1),document.location=document.location},3e3)}},resendCode_Fail:function(e){var t=$("#"+TwoStepAuth.model.resendStatus),o=$("#"+TwoStepAuth.model.resendlnk);t.css("color","red"),t.text("Some error has occured while resending code."),setTimeout(function(){t.hide(),o.show(),Vsecure.showHideLoader(!0)},5e3)},is2StepShown:function(){return void 0!==this.model.isSt2Shown&&this.model.isSt2Shown},setVLogintkn:function(e){try{if(void 0===e||null==e||""==e)return;localStorage.setItem("s_utkn",e)}catch(e){console.error("storeLoginDetailsIndexDb: Error while storing menu details in IndexedDB",e)}},isNewVersionCustomerAppLogin:function(e="",t=""){var o=navigator.userAgent;if(o&&o.toLowerCase().includes("com.vagaro.customerios")&&o.toLowerCase().includes("(vagaroapp")&&!o.toLowerCase().includes("brandedapp")){if((n=o.split("(VagaroApp"))&&n.length>=2&&(r=n[1].split(")"))&&r.length>=1)return r[0].replace(/^\.+|\.+$/g,"").split(".").length<3&&(r[0]=r[0].replace(/^\.+|\.+$/g,"")+".0"),(parseInt(r[0].replace(/\./g,"").trim())||0)>(parseInt(t?t.replace(/[.~]/g,""):"357")||0)}else if(o&&o.toLowerCase().includes("com.vagaro.customerandroid")&&o.toLowerCase().includes("(vagaroapp")&&!o.toLowerCase().includes("brandedapp")){var n,r;if((n=o.split("(VagaroApp"))&&n.length>=2&&(r=n[1].split(")"))&&r.length>=1)return r[0].replace(/^\.+|\.+$/g,"").split(".").length<3&&(r[0]=r[0].replace(/^\.+|\.+$/g,"")+".0"),(parseInt(r[0].replace(/\./g,"").trim())||0)>(parseInt(e?e.replace(/[.~]/g,""):"468")||0)}return!1},Validate2StCod_FrntSite:function(){var e=$("#"+TwoStepAuth.model.txt2SCode),t=$("#spnErrorCode");if(""==e.val()||e.val().length<6||e.val().length>6)return e.html("Please enter verification code.").addClass("error"),t.show(),!1;e.removeClass("error"),t.hide(),Vsecure.showHideLoader(!0);var o="Unknown",n="";try{-1!=navigator.appVersion.indexOf("Win")?o="Windows":-1!=navigator.appVersion.indexOf("Mac")?o="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?o="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(o="Linux");var r=new Date;n=r.getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2)}catch(e){o="Unknown",n=""}return"undefined"!=typeof TwoStepAuth&&void 0!==TwoStepAuth.model&&void 0!==TwoStepAuth.model.IsPolicyAck||(TwoStepAuth.model.IsPolicyAck=!1),CallWebServicehed("MySampleService.asmx/Is2StepCodeValid",'"code" : '+_securelogin.getJsonVal(e.val())+',"operatingSystem" : '+_securelogin.getJsonVal(o)+',"clientDate" : '+_securelogin.getJsonVal(n)+',"IsPolicyAck" : '+TwoStepAuth.model.IsPolicyAck,function(o){switch(o.d.split("|")[0]){case"1":case"-1":e.addClass("error"),t.html("Invalid code, try again.").show(),e.val(""),e.focus();break;case"0":if(e.removeClass("error"),t.hide(),o.d.split("|").length>=2)try{"undefined"!=typeof setLogintkn&&setLogintkn(o.d.split("|")[1]),(navigator.userAgent.indexOf("com.vagaro.customerios")>-1||navigator.userAgent.indexOf("com.vagaro.customerandroid")>-1)&&navigator.userAgent.toLowerCase().indexOf("brandedapp")<0&&"undefined"!=typeof isNewVersionCustomerAppLogin&&isNewVersionCustomerAppLogin("529","428")&&CallbackforMobileApp(0,0,"",o.d.split("|")[1],0,"135")}catch(e){}_securelogin.AfterSuccessfullLogin();break;case"2":e.addClass("error"),t.html("The code has been expired. Please click resend link.").show(),e.val(""),e.focus();break;case"6":e.removeClass("error"),t.hide(),TwoStepAuth.Set2UserPrivacyPolicyAckHtml(TwoStepAuth.model.userType)}Vsecure.showHideLoader(!1),"CMSMaster"==TwoStepAuth.model.pg&&"function"==typeof hideVideobox&&hideVideobox()},function(e){_securelogin.showAlert("Something went wrong while validating the code",function(){}),Vsecure.showHideLoader(!1)}),!1},Set2UserPrivacyPolicyAckHtml:function(e){var t;if(this.model.isSt2Shown=!0,t=`\n                <div class="signup-verify">\n                    <div class="verify-text">\n                        <div class="icon">\n                            <svg width="48" height="48" id="Layer_1" data-name="Layer 1" viewBox="0 0 60 60">\n                                <path class="cls-1" d="M31.73,56.24c-1.57.09-3.26.14-5.16.14-6.29,0-12.54-.59-18.6-1.74-.96-.18-1.66-1.02-1.66-2v-2.48c0-8.56,7.1-15.52,15.82-15.52h8.86c2.23,0,4.45.46,6.4,1.33.93.41,2.02,0,2.44-.9.42-.91.01-1.99-.92-2.4-.84-.37-1.73-.66-2.63-.91,4.77-3.1,7.92-8.41,7.92-14.43C44.21,7.77,36.3,0,26.56,0S8.92,7.77,8.92,17.31c0,6.02,3.15,11.33,7.92,14.43-8.19,2.27-14.22,9.66-14.22,18.41v2.48c0,2.72,1.96,5.07,4.66,5.56,6.28,1.2,12.77,1.8,19.29,1.8,1.98,0,3.74-.05,5.39-.14,1.02-.06,1.79-.92,1.73-1.92-.06-1-.94-1.74-1.95-1.7h0ZM12.61,17.31c0-7.55,6.26-13.69,13.95-13.69s13.95,6.14,13.95,13.69-6.26,13.69-13.95,13.69-13.95-6.14-13.95-13.69h0Z"></path>\n                                <path class="cls-1" d="M53.46,43.84v-2.1c0-3.45-2.86-6.25-6.37-6.25-2.32,0-4.46,1.24-5.58,3.23-.49.88-.17,1.98.72,2.46.9.48,2.02.17,2.51-.71.47-.84,1.37-1.36,2.35-1.36,1.48,0,2.68,1.18,2.68,2.63v2.02h-8.2c-2.63,0-4.77,2.1-4.77,4.68v6.88c0,2.58,2.14,4.68,4.77,4.68h11.05c2.63,0,4.77-2.1,4.77-4.68v-6.88c0-2.3-1.7-4.2-3.92-4.6h0ZM53.69,55.32c0,.58-.48,1.06-1.08,1.06h-11.05c-.6,0-1.08-.48-1.08-1.06v-6.88c0-.58.48-1.06,1.08-1.06h11.05c.6,0,1.08.48,1.08,1.06v6.88Z"></path>\n                            </svg>\n                        </div>\n                        <h2>Updated Terms of Service</h2>\n                        <p id="verificationDesc">${1==e?"We have revised our User Agreement and Privacy Policy.  Please agree to and acknowledge them to continue using Vagaro.":"We have revised our User Agreement and Participation Agreement.  Please agree to and acknowledge them to continue using Vagaro."}</p>\n                        <div class="checkbox-pra-policy smaller web-caption-text privacyPolicyBlock">\n                            <div class="checkbox-custom-black small login-remember vagaro-checkbox" tabindex="3">\n                                <input type="checkbox" id="chkPrivacy" value="">\n                                <label for="chkPrivacy" tabindex="3" aria-label="" role="checkbox" aria-checked="false">\n                                    ${1==e?'I agree to Vagaro’s updated <a href="javascript: void(0);" style="text-decoration: underline !important;" onclick="TwoStepAuth.openWinTC(); return false; " class="web-caption-text-blue clsSingupUserAggrement" role="link">user agreement</a> and <a href="javascript:void(0);" id="aPrivacyPolicy" onclick="TwoStepAuth.openWinPP(); return false;" style="text-decoration: underline !important;" class="web-caption-text-blue clsSingupUserPolicy" role="link">privacy&nbsp;policy</a>.':'I agree to Vagaro’s updated <a href="javascript: void(0);"  onclick="TwoStepAuth.openWinTC(); return false; " class="web-caption-text-blue clsSingupUserAggrement" style="text-decoration: underline !important;" role="link">user agreement</a> and <a href="javascript:void(0);" id="aPrivacyPolicy" onclick="TwoStepAuth.openWinPA(); return false;" style="text-decoration: underline !important;" class="web-caption-text-blue clsSingupUserPolicy" role="link">participation&nbsp;agreement</a>.'}\n                                </label>\n                                <span id="privacyErr" class="errortext text-error" style="display:none;">Required</span>\n                            </div>\n                        </div>\n                        <div class="signup-button-center">\n                            <button id="ackprivacypolicy" type="button" class="form-next-button w-button green-primary-button">I Agree</button>\n                        </div>\n                    </div>\n                </div>\n            `,"signupNew"==this.model.pg||"Login"==this.model.pg||"privacypolicy"==this.model.pg){var o=$("#divLoginNew");this.model.title=o.find(".modal-title"),o.find(".modal-footer").removeClass("btn-left-align"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#"+this.model.divLoginStep3).html(t),this.model.btnLogin=o.find("#btLogin"),this.model.btnLogin2=o.find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep3).find("#ackprivacypolicy")}else"LoginPage"==this.model.pg?(this.model.title=$("#wrapper").find(".page-title"),recaptch.isCapShown()&&recaptch.showHideCap("False"),this.model.divLoginStep1="divPLoginStep1",this.model.divLoginStep2="divPLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#logincontrol").addClass("twosteploginpage"),$(".stepLogin2 > #sp2divinnerone").hide(),$(".facebook-login-oauth .stepLogin1").hide(),$(".stepLogin2 > #sp2divinnertwo").show().html(t),this.model.btnLogin=$(".stepLogin2 > #sp2divinnertwo").find("[id*=btnLogin]"),this.model.btnLogin2=$(".stepLogin2 > #sp2divinnertwo").find("#btnPLogin2"),this.model.btnLogin3=$(".stepLogin2 > #sp2divinnertwo").find("#ackprivacypolicy"),$("[id *=pnlogin]").attr("onkeypress","")):"CMSMaster"==this.model.pg?(o=$("[id*=pnlLogin]"),this.model.title=o.find(".Popupspanheight"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#"+this.model.divLoginStep3).html(t),$("#divLoginNew .btn-left-align").removeClass("btn-left-align"),this.model.btnLogin=o.find("[id*=btnLogin]"),this.model.btnLogin2=o.find("#btnLogin2"),this.model.btnLogin3=$("#"+this.model.divLoginStep3).find("#ackprivacypolicy"),o.find(".popupBtnDiv").addClass("login-btn-right"),o.find("[id*=pnlAddEdit]").attr("onkeypress","")):"ScreenLock-privacypolicy"==this.model.pg&&(o=$("#divLoginPopUp"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#"+this.model.divLoginStep3).html(t),this.model.btnLogin=o.find("[id*=btnLogin]"),this.model.btnLogin2=$("#divLoginNew").find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep3).find("#ackprivacypolicy"));$("#dvAuth").length&&$("#dvAuth").hide(),$("#"+this.model.txt2SCode).change(function(){$(this).removeClass("errorInput")}),$("#"+this.model.divLoginStep1).hide(),$("#"+this.model.cf).hide(),$("#divLoginNew").addClass("twostep-popup"),$("#"+this.model.divLoginStep3).show(),$("#"+this.model.divLoginStep2).hide();var n=$("#divtwofactorauthentication");n.length&&n.is(":visible")&&n.hide(),this.model.btnLogin3.off(),this.model.btnLogin3.on("click",this.validatePrivacyPolicyCheckbox),this.model.btnLogin.hide(),this.model.btnLogin2.hide(),$("#"+this.model.divLoginStep3).off(),$("#"+this.model.divLoginStep3).keypress(function(e){return WebForm_FireDefaultButton(e,TwoStepAuth.model.btnLogin2.attr("id"))}),Vsecure.showHideLoader(!1)},openWinPP:function(){TwoStepAuth.CallPolicyPopup("https://www.vagaro.com/pro/privacy","Privacy Policy")},openWinTC:function(){TwoStepAuth.CallPolicyPopup("https://www.vagaro.com/pro/user-agreement","User Agreement")},openWinPA:function(){TwoStepAuth.CallPolicyPopup("https://www.vagaro.com/pro/vagaro-customer-participation-agreement","Participation Agreement")},CallPolicyPopup:function(e,t){if(vagaro.popup({title:t,message:'<style>div#iFrameOther{height:calc(100vh - 230px);overflow:auto;text-align:left;margin-bottom: 10px;padding-right:0px;}.useraggreement-popup .modal-dialog{max-width:800px;width:95%}.useraggreement-popup p{font-size:14px;line-height:20px;margin-bottom:20px;color:#1f2937cc}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.useraggreement-popup h3{color:#696969;font-weight:400;margin-bottom:15px}.useraggreement-popup ul li{font-size:16px;line-height:30px;margin-bottom:4px;margin-top:8px}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:#1f293780}.prose :where(h3):not(:where([class~=not-prose] *)){margin-top:1.6em;margin-bottom:.6em}.useraggreement-popup h1{font-size:60px;padding-bottom:24px;display:none}.useraggreement-popup a{color:#2479c7;text-decoration:none}.popupBottompart {min-height: 62px;clear: both; border-radius: 0 0 5px 5px;}.popupBtnBottom{float:right;min-width:200px;margin-right:0px;margin-top:12px}.grayButtonPlain{background:#fff;border-radius:2px;color:#333;border:1px solid rgba(0,0,0,.15);height:40px;font-weight:400;font-size:16px!important;min-width:95px;padding:8px 10px;-webkit-transition:border .2s;transition:border .2s}@media screen and (max-width: 767px){div#iFrameOther {height: 100%;}.popupBottompart {display: none;}}</style ><div id="dvAgreementPolicy" class="Loader"> <div id="divAgreementloader" class="loadImg"><span class="loaderimage"></span></div><div id="iFrameOther"></div></div>',className:"useraggreement-popup useraggreement-vg-sl-popup useraggreement-vg-popup modal-bootstrapcommon in"}),$(".useraggreement-popup").modal().find(".modal-header").find(".close").attr("data-dismiss","#dvAgreementPolicy"),$(".modal-body").append("<div class='popupBottompart block'><div class='popupBtnBottom'><input type='submit' name='btnClose' value='Close' onclick='TwoStepAuth.ClosePopup();' id='btnClose' class='grayButtonPlain secondary-button' style='float: right!important;'></div></div>"),$("#btnClose").click(function(){$(".useraggreement-popup").modal("hide")}),"undefined"!=typeof IsWebsiteBuilderCommunication&&1==IsWebsiteBuilderCommunication){var o=$("<iframe>",{src:e,frameborder:0,scrolling:"auto"});$("#iFrameOther").append(o),$(".useraggreement-popup").addClass("in"),$("#divAgreementloader").hide()}else o=$("<iframe>",{src:e,frameborder:0,scrolling:"auto"}),$("#iFrameOther").append(o),$("#divAgreementloader").hide();return!1},ClosePopup:function(){$(".useraggreement-popup").modal().find(".modal-header").find(".close").click()},validatePrivacyPolicyCheckbox:function(){if($("#chkPrivacy").is(":checked")){try{-1!=navigator.appVersion.indexOf("Win")||-1!=navigator.appVersion.indexOf("Mac")||-1!=navigator.appVersion.indexOf("X11")||navigator.appVersion.indexOf("Linux");var e=new Date;e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2),("0"+e.getHours()).slice(-2),("0"+e.getMinutes()).slice(-2),("0"+e.getSeconds()).slice(-2)}catch(e){}return CallWebServicehed("MySampleService.asmx/SaveUserPolicy",'"userId" : '+TwoStepAuth.model.userId+',"userType" : '+TwoStepAuth.getSafeInt(TwoStepAuth.model.userType),function(e){Vsecure.showHideLoader(!1),TwoStepAuth.model.isFromBackFromAuth?SkipTwoFactoFromSignIn():_securelogin.AfterSuccessfullLogin()},function(e){Vsecure.showHideLoader(!1),_securelogin.AfterSuccessfullLogin()}),$("#privacyErr").hide(),$("#chkPrivacy").focus(),!0}return $("#privacyErr").show(),$("#privacyErr").attr("style","display: block !important"),!1},getSafeInt:function(e){if(null==e||""===String(e).trim())return 0;var t=String(e).trim();return/^[0-9]+$/.test(t)?t:0}},recaptch={model:{},init:function(e){void 0===this.model.IsSf&&(this.model.IsSf=e),"0"==this.model.IsSf&&loadGoogleCaptch()},loadGoogleCaptch:function(){"undefined"!=typeof IsShowCapcha&&null!=IsShowCapcha&&recaptch.showHideCap(IsShowCapcha),"undefined"!=typeof grecaptcha&&$("#dvCaptcha").length>0&&""==$("#dvCaptcha").html()&&void 0!==grecaptcha.render&&(dvcontainer=grecaptcha.render("dvCaptcha",{sitekey:ReCaptchSiteKey,"expired-callback":function(e){recaptch.reset(),c_responce=null},callback:function(e){$("[id*=txtCaptcha]").val(c_responce),$("[id*=rfvCaptcha]").hide(),c_responce=e}}))},loadGoogleCaptchForSignup:function(){"undefined"!=typeof IsShowCapcha&&null!=IsShowCapcha&&recaptch.showHideCap(IsShowCapcha),"undefined"!=typeof grecaptcha&&$("#dvCaptcha").length>0&&""==$("#dvCaptcha").html()&&void 0!==grecaptcha.render&&(dvcontainer=grecaptcha.render("dvCaptcha",{sitekey:ReCaptchSiteKey,"expired-callback":function(e){recaptch.reset(),c_responce=null},callback:function(e){$("[id*=txtCaptcha]").val(c_responce),$("[id*=rfvCaptcha]").hide(),c_responce=e,null!=c_responce&&"undefined"!=typeof vm&&null!=vm&&void 0!==vm.LoadCCFrame&&(vm.LoadCCFrame(),recaptch.showHideCap("False"),recaptch.reset())}}))},getResonce:function(){return null==c_responce?"":c_responce},showHideCap:function(e){"False"===e?($("#divloginSCap").slideUp(),recaptch.chkStringUndefinedOrNot(window.location.pathname)||"/oauth/fb"!=window.location.pathname.toString().toLowerCase()||$(".facebook-login-oauth").removeClass("facebook-oauth-catcha"),this.model.IsSf="1"):($("#divloginSCap").slideDown(),recaptch.chkStringUndefinedOrNot(window.location.pathname)||"/oauth/fb"!=window.location.pathname.toString().toLowerCase()||$(".facebook-login-oauth").addClass("facebook-oauth-catcha"),this.model.IsSf="0")},isCapAllowtoShow:function(){return"undefined"!=typeof IsShowCapcha&&IsShowCapcha},isCapShown:function(){return $("#divloginSCap").is(":visible")},reset:function(){"undefined"!=typeof grecaptcha&&grecaptcha&&grecaptcha.reset&&(grecaptcha.reset(dvcontainer),$("[id*=txtCaptcha]").val(""),c_responce=null)},chkStringUndefinedOrNot:function(e){return void 0===e||null==e||""==e||null==e}},"undefined"!=typeof IsShowCapcha&&null!=IsShowCapcha&&recaptch.showHideCap(IsShowCapcha);var nDotCount=0,IsErrorBottom,IsErrorTop,IsMultiLinePaste;function checkForDecimalPoint(e){return"."==e?0==nDotCount?(nDotCount+=1,0):2:0}function identifyDot(e){var t=0,o=!1;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(o=!0);return o}function IsNumeric(e,t){var o;0==t?o="0123456789":1==t?o="0123456789.":2==t?o="0123456789 ":3==t&&(o="0123456789()- ");var n,r=!0;for(i=0;i<e.length&&1==r;i++)n=e.charAt(i),-1==o.indexOf(n)&&(r=!1);return r}function ValidatePhoneFormat(e,t,o=""){try{var n=$(e).val().replace(/([()-\s])+/g,""),r=n.length;if(r<=0)return!0;if(r>0)if("2"==t||11!=r&&10!=r||0!=n[0]||(r=(n=n.substring(1)).length),"1"==t||"3"==t){if(10!=r)return!1}else if("2"==t){if(void 0!==o&&null!=o&&""!=o&&"353"==o){if(9==r&&0!=n[0]&&(r=(n=0+n).length),r<9||r>10)return!1}else if(10==r&&0==n[0]&&(r=(n=n.substring(1)).length),r<10||r>11)return!1}else if("4"==t&&(r<9||r>10))return!1;return!0}catch(e){return!0}}function Phone_pattern(e,t){if(e.value=e.value.replace(/([()-\s])+/g,""),void 0!==t&&null!=t&&""!=t){var o=e.value,n=o.length;if(n<=0)return;if("2"!=t&&11==n&&0==o[0]&&(n=(o=o.substring(1)).length),"1"!=t&&"3"!=t||10!=n){if("2"==t){if(10==n&&0!=o[0]?n=(o=0+o).length:(n<=10||12==n)&&0==o[0]&&(n=(o=o.substring(1)).length),10==n||11==n){r=o.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3");e.value=r}}else if("4"==t&&(9==n&&0!=o[0]?n=(o=0+o).length:(n<=9||n>10)&&0==o[0]&&(n=(o=o.substring(1)).length),9==n||10==n)){r=o.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3");e.value=r}}else if("3"==t){var r=o.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3");e.value=r}else{var r=o.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1)-$2-$3");e.value=r}}else{r=e.value.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1)-$2-$3");e.value=r}}function stripChars(e,t){var o="",n=e.length,r=e.split(""),a=0,i=0;for(i=0;i<n;i++)1==IsNumeric(r[i],t)&&(1==t?"."==r[i]&&0==a&&1!=nDotCount?(o+=r[i],a+=1,nDotCount=1):"."!=r[i]&&(o+=r[i]):o+=r[i]);return o}function checkMaxLength(e,t){if(t>0&&t<e.length){var o=e.split(""),n="",r=0;for(r=0;r<t;r++)n+=o[r];return n}return e}function identifyDotPosition(e){var t=0,o=0;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(o=t);return o}function modifyTextString(e,t,o,n){if(0==t){var r=0,a=e.split(""),i="";for(r=0;r<e.length-1;r++)i+=a[r];return i}if(1==t)return i=Math.round(e*Math.pow(10,o))/Math.pow(10,o)}function decimalPlacesValidation(e,t){identifyDotPosition(e.value)==e.value.length-1?e.value=modifyTextString(e.value,0,t,identifyDotPosition(e.value)):e.value.length-1-identifyDotPosition(e.value)>t&&(e.value=modifyTextString(e.value,1,t,identifyDotPosition(e.value)))}function validate(e,t,o){nDotCount=0;var n=0;if(e.value=checkMaxLength(stripChars(e.value,t),e.maxLength),1==t&&1==identifyDot(e.value)){if(e.value=Math.round(e.value*Math.pow(10,o))/Math.pow(10,o),0==identifyDot(e.value))for(n=0;n<o;n++)0;else if(e.value.length-1-identifyDotPosition(e.value)<o)for(n=e.value.length-1-identifyDotPosition(e.value);n<o;n++)0}else if(1==t&&0==identifyDot(e.value))for(e.value=Math.round(e.value*Math.pow(10,o))/Math.pow(10,o),n=0;n<o;n++)0}function dynamicWidthChange(e,t,o){var n=new Array(10,8,10,10,10,10,10,9,10,10),r=t,a=$(e).val();if(""!=a&&a.length>5){r=0;for(var i=0;i<a.length;i++){var d=a.substring(i,i+1);r="."==d?parseInt(r)+parseInt(4):d==o?parseInt(r)+parseInt(12):parseInt(r)+parseInt(n[d])}0==r&&(r=t),$(e).css("width",r+"px")}else $(e).css("width",r+"px")}function makeCurrencySymbolInTextbox(e,t){e.value.indexOf("$")>=0||(e.value.indexOf("£")>=0||(e.value.indexOf("%")>=0||(e.value=t+e.value.replace(t,""))))}function validateDecimal(e,t,o){var n="",r="";e.value.indexOf("$")>=0?n="$":e.value.indexOf("£")>=0?n="£":e.value.indexOf("%")>=0&&(r="%"),nDotCount=0;var a,i=0;if(e.value=checkMaxLength(stripChars(e.value,t),e.maxLength),1==t&&1==identifyDot(e.value)){if("."==e.value&&(e.value="0.00"),e.value=Math.round(e.value*Math.pow(10,o))/Math.pow(10,o),0==identifyDot(e.value)){for(a=o>0?".":"",i=0;i<o;i++)a+="0";var d=e.value+a;parseInt(d.length)<=parseInt(e.maxLength)&&(e.value=e.value+a)}else if(e.value.length-1-identifyDotPosition(e.value)<o){for(a="",i=e.value.length-1-identifyDotPosition(e.value);i<o;i++)a+="0";d=e.value+a;parseInt(d.length)<=parseInt(e.maxLength)&&(e.value=e.value+a)}}else if(1==t&&0==identifyDot(e.value)){for(e.value=Math.round(e.value*Math.pow(10,o))/Math.pow(10,o),a=o>0?".":"",i=0;i<o;i++)a+="0";d=e.value+a;parseInt(d.length)<=parseInt(e.maxLength)&&(e.value=e.value+a)}e.value=n+e.value+r}function pasteHandlerKeyup(e,t,o){if("Microsoft Internet Explorer"==navigator.appName){if(IsSelected){nDotCount=0;var n=checkMaxLength(stripChars(e.value,o),e.maxLength);e.value=n,IsSelected=!1}8!=t.keyCode&&46!=t.keyCode||identifyDot(e.value)||(nDotCount=0),""==e.value&&(nDotCount=0)}else{if("keyup"==t.type&&IsPaste){nDotCount=0;n=checkMaxLength(stripChars(e.value,o),e.maxLength);e.value=n,IsPaste=!1}8!=t.which&&46!=t.which||identifyDot(e.value)||(nDotCount=0),""==e.value&&(nDotCount=0)}}function pasteHandler(e,t,o){if("Microsoft Internet Explorer"==navigator.appName){if(13==t.keyCode)return!0;if("paste"==t.type){var n=getSelText();e.value;if(""!=n)return IsSelected=!0,!0;if(!isNaN(e.maxLength)){event.returnValue=!1,maxLength=parseInt(e.maxLength);var r=document.selection.createRange(),a=e.maxLength-e.value.length+r.text.length,i=window.clipboardData.getData("Text").substr(0,a);r.text=stripChars(i,o)}}return d=String.fromCharCode(t.keyCode),1==identifyDot(getSelText())&&(nDotCount=0),!(checkForDecimalPoint(d)>1&&1!=identifyDot(getSelText()))&&IsNumeric(d,o)}var d;if(!("keypress"!=t.type||t.ctrlKey&&118==t.which))return 0==t.which||8==t.which||13==t.which||!("."==(d=String.fromCharCode(t.which))&&e.value.indexOf(".")>=0)&&IsNumeric(d,o);"keypress"==t.type&&t.ctrlKey&&118==t.which&&(IsPaste=!0)}function getSelText(){var e="";if(window.getSelection)e=window.getSelection();else if(document.getSelection)e=document.getSelection();else{if(!document.selection)return;e=document.selection.createRange().text}return e}function validateGridPager(textbox,position,grd,pagecount){if(textbox.value=stripChars(textbox.value,0),""!=textbox.value&&textbox.value>0&&textbox.value<=pagecount){var gridname=grd;if(0==position){var lblstring="lblerrormsgForGridbottom"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="",IsErrorBottom=!1}else{var lblstring="lblerrormsgForGridtop"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="",IsErrorTop=!1}}else{var gridname=grd;if(0==position){var lblstring="lblerrormsgForGridbottom"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="Invalid page no.",IsErrorBottom=!0}else{var lblstring="lblerrormsgForGridtop"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="Invalid page no.",IsErrorTop=!0}}}function checkError(e,t){return 0==e?!IsErrorBottom:!IsErrorTop}var oldTextValue="",startPos,endPos,enterCount=0,newMaxLength=0,keyPressTextValue="",keyDownSelText="",pasteStartPos,pasteEndPos;function keyPressHandler(e,t,o){if("Microsoft Internet Explorer"==navigator.appName)return o>e.value.length||(selText=getSelText(),selText.length>1&&13==t.keyCode||selText.length>0&&13!=t.keyCode);var n=0,r=!1;n=getCharCountFF(e.value,o);if(8!=t.which&&0!=t.which||""!=keyPressTextValue||(keyPressTextValue=e.value),13==t.which&&(r=!0,n+=1),o>n)return t.ctrlKey&&118==t.which&&(oldTextValue=e.value,startPos=e.selectionStart,endPos=e.selectionEnd,IsMultiLinePaste=!0),!0;if(t.ctrlKey&&118==t.which)return IsMultiLinePaste=!0,oldTextValue=e.value,startPos=e.selectionStart,endPos=e.selectionEnd,!0;if(t.ctrlKey&&97==t.which)return!0;if(0==t.which||8==t.which)return!0;var a=e.selectionStart,i=e.selectionEnd-a;return!!(i>1&&r)||i>0&&!r}function getCharCountFF(e,t){var o=0,n=0,r=0;for(o=0;o<e.length;o++)10==e.charCodeAt(o)&&(n+=1),r+=1;return r+n}function identifyEnter(e,t){var o=0,n=0;for(o=0;o<e.length;o++)10==e.charCodeAt(o)&&(n+=1);return n}function setMaxLengthforPaste(e,t){var o=0,n=e.split(""),r="",a=0;for(o=0;o<e.length;o++)if(r+=n[o],13==e.charCodeAt(o)?newMaxLength+=1:a+=1,a==t)return r}function getValidCharsWithEnter(e,t){var o=0,n=e.split(""),r="",a=0,i=0;for(o=0;o<e.length&&(10==e.charCodeAt(o)||13==e.charCodeAt(o)?i+=2:10!=e.charCodeAt(o)&&13!=e.charCodeAt(o)&&(a+=1),!(a+i>t));o++)r+=n[o];return r}function setOldValue(e){if("Microsoft Internet Explorer"!=navigator.appName)return pasteStartPos=e.selectionStart,pasteEndPos=e.selectionEnd,!0}function keyUpMultiLine(e,t,o){if("Microsoft Internet Explorer"==navigator.appName);else{var n=identifyEnter(e.value,o),r=identifyEnter(keyPressTextValue,o);if(8!=t.which&&46!=t.which||(r!=n&&(newMaxLength-=r-n),(""==e.value||newMaxLength<0)&&(newMaxLength=0),keyPressTextValue=""),o<getCharCountFF(oldTextValue,o)&&IsMultiLinePaste){if(endPos-startPos>0&&endPos-startPos<o){var a=e.value;l=getCharCountFF(oldTextValue.substring(startPos,endPos),o)+(o-getCharCountFF(oldTextValue,o));var i=oldTextValue.substring(0,startPos),d=oldTextValue.substring(endPos,getCharCountFF(oldTextValue,o)),s=(c=a.substring(startPos,getCharCountFF(a,o))).substring(0,l);e.value=i+s+d,e.value=getValidCharsWithEnter(e.value,o)}else e.value=checkMaxLength(e.value,o),e.value=getValidCharsWithEnter(e.value,o);return IsMultiLinePaste=!1,!1}if(IsMultiLinePaste){var l;a=e.value;if(startPos!=endPos){l=getCharCountFF(oldTextValue.substring(startPos,endPos),o)+(o-getCharCountFF(oldTextValue,o));i=oldTextValue.substring(0,startPos),a.substring(0,startPos),d=oldTextValue.substring(endPos,getCharCountFF(oldTextValue,o));var c=a.substring(startPos,getCharCountFF(a,o))}else{l=o-getCharCountFF(oldTextValue,o);i=oldTextValue.substring(0,startPos),a.substring(0,startPos),d=oldTextValue.substring(endPos,getCharCountFF(oldTextValue,o)),c=a.substring(endPos,getCharCountFF(a,o))}s=c.substring(0,l);return e.value=i+s+d,e.value=getValidCharsWithEnter(e.value,o),newMaxLength=identifyEnter(e.value,o),IsMultiLinePaste=!1,!1}}}function checkMultiLineMaxLength(e,t){if(t>0&&t<e.length){var o=e.split(""),n="",r=0,a=0,i=0;for(i=0;i<t;i++){if(13==e.charCodeAt(i)?a+=2:13!=e.charCodeAt(i)&&10!=e.charCodeAt(i)&&(r+=1),r+a>t)return n;n+=o[i]}return n}return e}function onPasteHandler(e,t,o){if("Microsoft Internet Explorer"!=navigator.appName){clipboardData=t.clipboardData||window.clipboardData;var n=e.value+clipboardData.getData("Text");return e.value=getValidCharsWithEnter(n,o),!1}if(""==e.value)return e.value=checkMultiLineMaxLength(window.clipboardData.getData("Text"),o),!1;if(!isNaN(o)){event.returnValue=!1,o=parseInt(o);var r=document.selection.createRange(),a=o-e.value.length+r.text.length,i=window.clipboardData.getData("Text").substr(0,a);r.text=i,e.value=checkMultiLineMaxLength(e.value,o)}}function validateMultiLine(e,t){"Microsoft Internet Explorer"==navigator.appName?e.value=checkMultiLineMaxLength(e.value,t):e.value=getValidCharsWithEnter(e.value,t)}function validateDecimalNew(e,t){var o=e.value;if(isNaN(o))return alert("Enter numeric data"),e.value="",e.focus(),!1;if(0==o)return e.value=0,e.focus(),!1;var n=o.split(".");return n.length>1&&n[1].length<1&&(o=n[0]),e.value=format_number(o,t),!0}function format_number(e,t){return e<0?"-"+format_number2(e=-e,t):format_number2(e,t)}function format_number2(e,t){var o=new String(e).split("."),n=parseInt(o[0],10),r="";if(isNaN(n)&&(n="0"),o.length>1){for(var a=new String(o[1]),i=0,d=0;i<String(o[1]).length&&0==parseInt(String(o[1]).charAt(i),10);)d+=1,i+=1;a=parseInt(a,10)/Math.pow(10,parseInt(a.length-t-1)),Math.round(a),a=parseInt(a)/10,(a=Math.round(a))==Math.pow(10,parseInt(t))&&(n+=1,a="0");var s=new String("");if(i=0,a>0)for(;i<d;)s+="0",i+=1;-1==(c=(a=String(n)+"."+s+String(a)).indexOf("."))&&(c=(a+=".").indexOf("."));for(var l=parseInt(c)+parseInt(t);a.length<=l;)a+="0";r=a}else{var c;a=new String(n);c=(a+=".").indexOf(".");for(l=parseInt(c)+parseInt(t);a.length<=l;)a+="0";r=a}return r}var FormAgent=navigator.userAgent,mobilechecker={iphone:FormAgent.match(/(iPhone|iPod|iPad)/)};if(-1!=FormAgent.toLowerCase().indexOf("mobile"))try{mobilechecker.iphone&&Sys.Net.WebRequestManager.add_invokingRequest(OnInvokingRequest)}catch(e){}function OnInvokingRequest(e,t){var o=t.get_webRequest().get_url().split("?"),n="";o.length>1&&(n=(n=o[1]).indexOf("randonkey=")>-1?n.replace(n.split("&")[0],""):"&"+n);var r=o[0],a=(new Date).getTime();t.get_webRequest().set_url(r+"?randonkey="+a+n)}var NoOfLoginAttempt=0,NoOfLoginAttemptemail=0,fpDeviceId="",PageType="",isWindowsPhone=navigator.userAgent.match(/windows phone/i)||!1,AndroidMobile=null!=navigator.userAgent.match(/Android/i)&&null!=navigator.userAgent.match(/Mobile/i)&&null==navigator.userAgent.match(/Windows/i),isiPhone=null!=navigator.userAgent.match(/iphone/i);_twoFactor={isMobileDevice:0==(/iPad/.test(navigator.userAgent)&&!window.MSStream)&&(isiPhone||isWindowsPhone||AndroidMobile),WillDoLater:"I’ll do this later",Model:{isFromInvalidEmailCell:!1,DialingCode:""},PageType:{BusinessSignup:"BusinessSignup",ProfilePage:"ProfilePage",CustomerSignup:"CustomerSignup",CustomerSignIn:"CustomerSignIn",MultiLocation:"MultiLocation",PaymentMethods:"PaymentMethods",CovidClean:"CovidClean",ShoppingBag:"ShoppingBag"},ApiURLEnum:{TwoFactorAuthenticationCustomer:"websiteapi/homepage/twofactorauthenticationcustomer",AddBusinessTwoFactorAuthentication:"addbusiness/twofactorauthentication",SaveFilterrequestForCardValidate:"websiteapi/homepage/savefilterrequestforcardvalidate",GetLogDataonBackClick:"addbusiness/getlogdataonbackclick"},AuthCodeReceiveMode:{Email:1,Cell:2,EmailAndCell:3},EmailAndCell2FScreen:{None:0,EmailOrPhone:1,EmailAndPhone:2,EmailOrPhoneNew:3},VarificationType:{None:0,Email:1,Cell:2,EmailAndCell:3,EmailOrPhone:4},ScreenType:{EmailInput:1,EmailVerify:2,EmailInput:3,EmailVerify:4,SuccessScreen:5},ValidationMessages:{FailedErrorMessage:"Something went wrong, please try again.",FailedUserSaveMsg:"User detail not saved",InvalidEmailIdMsg:"Email address is invalid. Please enter valid email address."},SuccessMessage:{EmailVerified:"Email verified",PhoneVerified:"Mobile number verified",ResendCode:"New verification code sent."},AmplitudeEvent:{SignupEmailVerificationTriggered:53,SignupPhoneVerificationTriggered:54,SignupStep1Completed:55,SignupVerificationTriggered:106},FailOTPMessage:function(e,t=!1){if(t)return void 0!==e&&null!=e&&""!=e?"Please contact support at "+e+" or support@vagaro.com.":"Please contact support at support@vagaro.com.";var o='<a href="mailto:support@vagaro.com" class="questions link" style="font-size:14px"> support@vagaro.com</a>';return void 0!==e&&null!=e&&""!=e?'Please contact support at <a href="tel:'+e+'" class="questions link" style="font-size:14px">'+e+"</a> or "+o+".":"Please contact support at "+o+"."},LoadTwoFactorControlForInput:function(e){PageType=currentPage;var t={UserControlPath:"~/UserControls/ucTwoFactor.ascx",PageNamePath:"~/detail1.aspx",isRemoveFormTag:!0,Parameters:{}},o=new vagaro.ajax;o.datamodel.Token="websiteapi/homepage/loadusercontrol",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(t){if($("#dvtwostepemailcodeinfo").html(""),$("#dvtwostepemailcodeinfo").append(t),"undefined"!=typeof getCookie&&"undefined"!=typeof ProximityCookieName&&null!=typeof ProximityCookieName&&""!=typeof ProximityCookieName&&(cookie=getCookie(ProximityCookieName)),twoFactorCellPhone=$("#txtCellInputCode").PhonePlugin({UserRole:"1"==e.UserType?2:1,IsPhoneNoRequire:!0,ControlText:"Mobile Phone",CountryId:parseInt(e.CountryID),CurrentLocationCountryID:"undefined"!=typeof cookie&&null!=cookie?parseInt(cookie.countryid):1}),_twoFactor.isMobileDevice?$("input[type=tel]").attr("autocomplete","one-time-code"):$("input[type=tel]").attr("autocomplete","off"),currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#divtwofactorauthentication .modal-window").addClass("myaccount-popup");else if(currentPage==_twoFactor.PageType.BusinessSignup){var o=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();(null!=o&&/com.vagaro.iospro/i.test(o)||/com.vagaro.androidpro/i.test(o))&&$(".previous-btn").hide()}else $("#divtwofactorauthentication .modal-window").removeClass("myaccount-popup");e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email||e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.EmailAndCell?_twoFactor.AppendEmailInputScreen(e):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellInputScreen(e)},o.datamodel.data=t,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()},SendTowFactorAuthenticationCode:function(e){PageType=currentPage;var t={UserControlPath:"~/UserControls/ucTwoFactor.ascx",PageNamePath:"~/detail1.aspx",isRemoveFormTag:!0,Parameters:{}},o=new vagaro.ajax;o.datamodel.Token="websiteapi/homepage/loadusercontrol",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(t){try{if(currentPage==_twoFactor.PageType.BusinessSignup){vm.CurrentstepsCompleted=_twoFactor.AmplitudeEvent.SignupVerificationTriggered;var o={},n=JSON.parse(localStorage.getItem("BusinessSignupStep1Data"));if(o.FirstName=n.firstName,o.LastName=n.lastName,o.UserId=n.userId,o.Email=n.email,o.Step=_twoFactor.AmplitudeEvent.SignupVerificationTriggered,o.BusinessName=n.businessname,o.UserName=localStorage.getItem("eventusername"),o.PageURL=window.location.href,o.PromoCode=n.promotioncode,o.Address1=n.businessaddress+","+n.city+","+n.statename+","+n.businesszip,o.Address2=n.suit,o.Phone=n.phone,o.BusinessPhone=n.OwnerPhone,o.SignupType=n.userType,o.HearAboutVagaro=n.aboutyou,o.Licence=localStorage.getItem("NoOfLicences"),o.City=n.city,o.State=n.statename,o.Country=n.Country,"0"==n.IsMobileServiceMandatory?o.MobileService="PhysicalLocation":"1"==n.IsMobileServiceMandatory?o.MobileService="MobileBusiness":o.MobileService="Both",o.UserAgent=null!=navigator.userAgent.toLowerCase()?navigator.userAgent.toLowerCase():"","undefined"!=typeof amplitude)o.AmplitudeDeviceId=amplitude.getInstance().getDeviceId();else try{o.AmplitudeDeviceId=vm.GetAmplitudeDeviceId()}catch(e){o.AmplitudeDeviceId=""}var r={};r.AddLogInAmplitude=o,vm.AjaxOld("AddLogInAmplitudeV2",r,vm.AddLogInAmplitudeSuccess,vm.AddLogInAmplitudeSuccessFail)}}catch(e){console.log(e)}if($("#dvtwostepemailcodeinfo").html(""),$("#dvtwostepemailcodeinfo").append(t),"undefined"!=typeof getCookie&&"undefined"!=typeof ProximityCookieName&&null!=typeof ProximityCookieName&&""!=typeof ProximityCookieName&&(cookie=getCookie(ProximityCookieName)),twoFactorCellPhone=$("#txtCellInputCode").PhonePlugin({UserRole:1,IsPhoneNoRequire:!0,ControlText:"Mobile Phone",CountryId:parseInt(e.CountryID),CurrentLocationCountryID:parseInt(e.CountryID)}),_twoFactor.isMobileDevice?$("input[type=tel]").attr("autocomplete","one-time-code"):$("input[type=tel]").attr("autocomplete","off"),currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#divtwofactorauthentication").removeAttr("style");else if(currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup){if(currentPage==_twoFactor.PageType.CustomerSignup&&$(".signup-loader-height").length>0){var a=e.authenticationMode==_twoFactor.AuthCodeReceiveMode.Cell?"phone":"email";$(".signup-loader-height").addClass(a)}currentPage==_twoFactor.PageType.CustomerSignup&&(_twoFactor.isMobileDevice&&$("#btnCreateAccount",parent.document).hide(),$("#iFrameSignUp",parent.document).parents().find("body").removeClass("signupiframe"));var i=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();(null!=i&&/customerios/i.test(i)||/customerandroid amazon/i.test(i)||/customerandroid/i.test(i)||/com.vagaro.iospro/i.test(i)||/com.vagaro.androidpro/i.test(i))&&$(".previous-btn").hide()}else $("#divtwofactorauthentication .modal-window").removeClass("myaccount-popup");_twoFactor.SendTwoFactorCode(e)},o.datamodel.data=t,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()},SendTwoFactorCode:function(e){if(e.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),currentPage==_twoFactor.PageType.BusinessSignup&&$("#AuthEmailNextbtn").length>0&&$("#AuthEmailNextbtn").addClass("flamingo-button").text("Next"),currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.MultiLocation){var t=new vagaro.ajax;e.EmailCellAppSetting=$("#hdnEmailAndCell2FScreen").val(),e.IsTwoFactorSignupLoadData=currentPage==_twoFactor.PageType.BusinessSignup,currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.MultiLocation?t.datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication:(currentPage==_twoFactor.PageType.CustomerSignIn&&$("#hdnUserType").length>0&&(e.UserType=$("#hdnUserType").val()),t.datamodel.Token=_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer),t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=function(t){if(void 0!==t&&null!=t)if(t.IsAlreadyVarified&&currentPage!=_twoFactor.PageType.CustomerSignup)currentPage==_twoFactor.PageType.BusinessSignup?(ShowLoader(!1),vm.SkipTwoFactorStep()):currentPage==_twoFactor.PageType.CustomerSignIn&&(ShowLoadingPanelLogin(!1),isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||SkipTwoFactoFromSignIn());else{if(NoOfLoginAttempt=t.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=t.TwoFactorRequest,currentPage==_twoFactor.PageType.CustomerSignup?t.formattedPhone=$.trim($("#txtCell").val()):currentPage==_twoFactor.PageType.BusinessSignup?t.formattedPhone=$.trim($("#txtOwnerPhone").val()):currentPage==_twoFactor.PageType.CustomerSignIn?t.formattedPhone=$.trim($("#txtCellInputCode").val()):currentPage==_twoFactor.PageType.MultiLocation&&(t.formattedPhone=$.trim($("#txtTelephone").val())),t.IsSucess)void 0!==t.WidgetUserID&&null!=t.WidgetUserID&&""!=t.WidgetUserID&&(widgetcookievalue=t.WidgetUserID),e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell?_twoFactor.AppendCellScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.EmailAndCell&&_twoFactor.AppendEmailScreen(t);else if(currentPage==_twoFactor.PageType.BusinessSignup)if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){var o={};isNullOrUndefineOrBlank(fpDeviceId)||(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=$("#txtEmail").val(),o.UserEmail=$("#txtEmail").val(),o.State=vm.addressData.state,o.City=vm.addressData.city,o.Country=$("#ddlcountry").val(),o.NoofAttempt=vm.NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName=vm.deviceFrom;var n=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");2==o.Country&&0==n[0]?o.OwnersPhone=n.substring(1):o.OwnersPhone=n,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(o),_twoFactor.showErrorDiv(e.AuthenticationMode,!0),vm.resetTimer=!1}else{var r=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/signup-1";window.setTimeout(function(){window.location.href=r},4300)}else if(currentPage==_twoFactor.PageType.CustomerSignup)if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){$("#hdnIsBlocked").val(1),IsBlocked=!0,_twoFactor.showErrorDiv(twoStepEmail.AuthenticationMode),o={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(o.UserAgent=navigator.userAgent,o.VisitorID=$("#fpId").val()):(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=$("#txtEmail").val(),o.UserEmail=$("#txtEmail").val(),o.Country=$("#divCountryCode").attr("data-countryid"),o.NoofAttempt=NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName="";var a=$("#txtCell").val().replace(/([()-\s])+/g,"");2==o.Country&&0==a[0]?o.OwnersPhone=a.substring(1):o.OwnersPhone=a,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(o),isResetTimer=!1}else window.setTimeout(function(){$("#divAuth").hide(),$("#pnlSignup").show(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").show()},4300);else if(currentPage==_twoFactor.PageType.CustomerSignIn)if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){$("#hdnIsBlocked").val(1),IsBlocked=!0,_twoFactor.showErrorDiv(twoStepEmail.AuthenticationMode),o={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(o.UserAgent=navigator.userAgent,o.VisitorID=$("#fpId").val()):(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),o.UserEmail=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),o.Country="5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"),o.NoofAttempt=NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName="";var i=isNullOrUndefineOrBlank(userccattemptdata.PhoneNo)?$("#txtCellInputCode").val().replace(/([()-\s])+/g,""):$.trim(userccattemptdata.PhoneNo);2==o.Country&&0==i[0]?o.OwnersPhone=i.substring(1):o.OwnersPhone=i,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(o),isResetTimer=!1}else window.setTimeout(function(){},4300);currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.MultiLocation?ShowLoader(!1):ShowLoadingPanelLogin(!1)}else currentPage==_twoFactor.PageType.BusinessSignup?ShowLoader(!1):ShowLoadingPanelLogin(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.datamodel.data=e,t.datamodel.Error=function(){currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.Post()}else currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||($("#hdnUserType").length>0&&(e.UserType=$("#hdnUserType").val()),e.EmailCellAppSetting=currentPage!=_twoFactor.PageType.ProfilePage||"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType?$("#hdnEmailAndCell2FScreenVPL").val():$("#hdnEmailAndCell2FScreen").val(),(t=new vagaro.ajax).datamodel.Token=currentPage==_twoFactor.PageType.ProfilePage?ApiURLEnumMyAccount.TwoFactorAuthenticationCustomer:_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,t.datamodel.IsNewVagaroAPI=!0,t.datamodel.callback=function(t){if(void 0!==t&&null!=t)if(t.IsAlreadyVarified)currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?_myAccount.SaveVPLUSerDetailProfile():_myAccount.SaveProfile():currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile();else{if(NoOfLoginAttempt=t.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=t.TwoFactorRequest,currentPage==_twoFactor.PageType.ProfilePage?t.formattedPhone=MyAccountMobilePhone.getphoneformat(t.cellDisplay,e.CountryID):t.formattedPhone=$.trim($("#txtCell").val()),t.IsSucess)$("#divtwofactorauthentication").modal("show"),$("#divtwofactorauthentication .modal-backdrop").css("pointer-events","none"),$("#AuthCellBackbtn").text("Close"),$("#AutCellhBackbtn").text("Close"),$("#closed").show(),$("#divtwofactorauthentication").addClass("mobile-popup-myaccount"),$("#mobile-popup-myaccount-inner").addClass("mobile-popup-myaccount-inner"),$("#divModalWindow").addClass("myaccount-popup"),e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell?_twoFactor.AppendCellScreen(t):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.EmailAndCell&&_twoFactor.AppendEmailScreen(t);else{if($("#divtwofactorauthentication").modal("show"),NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val()){var o={};isNullOrUndefineOrBlank(fpDeviceId)||(o.UserAgent=navigator.userAgent,o.VisitorID=fpDeviceId),o.UserName=$("#txtEmail").val(),o.UserEmail=$("#txtEmail").val(),o.State=$("#txtState").val(),o.City=$("#txtCity").val(),o.Country=$("#ddlcountry").val(),o.NoofAttempt=NoOfLoginAttemptemail,o.IP=$("#hdnIPAddress").val(),o.DeviceFullName="";var n=$("#txtCell").val().replace(/([()-\s])+/g,"");2==o.Country&&0==n[0]?o.OwnersPhone=n.substring(1):o.OwnersPhone=n,o.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),o.IsBlock=1,currentPage==_twoFactor.PageType.ProfilePage||(o.UserID=parseInt(UserID)),_twoFactor.SaveFilterRequestForCardValidate(o),$("#divtwofactorauthentication").modal("show"),_twoFactor.showErrorDiv(e.AuthenticationMode,!0)}$("#divtwofactorauthentication .modal-backdrop").css("pointer-events","none")}ShowLoader(!1)}else ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.datamodel.data=e,t.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},t.Post())},SendTwoFactorCodeForCell:function(e,t=!1){if(currentPage==_twoFactor.PageType.BusinessSignup&&$("#AuthCellNextbtn").length>0&&$("#AuthCellNextbtn").addClass("flamingo-button").text("Next"),e.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),"undefined"!=typeof ShowLoader&&ShowLoader(!0),currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation)e.EmailCellAppSetting=$("#hdnEmailAndCell2FScreen").val(),e.IsTwoFactorSignupLoadData=currentPage==_twoFactor.PageType.BusinessSignup,(o=new vagaro.ajax).datamodel.Token=currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.MultiLocation?_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication:_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(o){if("undefined"!=typeof ShowLoader&&ShowLoader(!0),void 0!==o&&null!=o)if(o.formattedPhone=e.formattedPhone,currentPage==_twoFactor.PageType.BusinessSignup)if(3==o.IsAlreadyVarified)ShowLoader(!1),vm.SkipTwoFactorStep();else{if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else{if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(e.AuthenticationMode);var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var r=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");return 2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1)}if(currentPage==_twoFactor.PageType.BusinessSignup){var a=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/signup-1";window.setTimeout(function(){window.location.href=a},4300)}}ShowLoader(!1)}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)void 0!==o.WidgetUserID&&null!=o.WidgetUserID&&""!=o.WidgetUserID&&(widgetcookievalue=o.WidgetUserID),e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(e.AuthenticationMode),n={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(n.UserAgent=navigator.userAgent,n.VisitorID=$("#fpId").val()):(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.Country=$("#divCountryCode").attr("data-countryid"),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="";var i=$("#txtCell").val().replace(/([()-\s])+/g,"");return 2==n.Country&&0==i[0]?n.OwnersPhone=i.substring(1):n.OwnersPhone=i,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(n),isResetTimer=!1,void ShowLoadingPanelLogin(!1)}ShowLoadingPanelLogin(!1)}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e.AuthenticationMode),n={},isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),n.UserEmail=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$.trim($("#txtEmailInputCode").val()):$.trim(userccattemptdata.EmailId),n.Country="5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"),n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",r=isNullOrUndefineOrBlank(userccattemptdata.EmailId)?$("#txtCellInputCode").val().replace(/([()-\s])+/g,""):$.trim(userccattemptdata.EmailId),2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoadingPanelLogin(!1);ShowLoadingPanelLogin(!1)}else currentPage==_twoFactor.PageType.MultiLocation&&(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess&&(e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t)),ShowLoader(!1));else currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!1):currentPage==_twoFactor.PageType.BusinessSignup&&ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.datamodel.data=e,o.datamodel.Error=function(){currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){var o;e.EmailCellAppSetting=currentPage!=_twoFactor.PageType.ProfilePage||"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType?$("#hdnEmailAndCell2FScreenVPL").val():$("#hdnEmailAndCell2FScreen").val(),(o=new vagaro.ajax).datamodel.Token=currentPage==_twoFactor.PageType.ProfilePage?ApiURLEnumMyAccount.TwoFactorAuthenticationCustomer:_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(o){if(void 0!==o&&null!=o)if(currentPage==_twoFactor.PageType.ProfilePage?o.formattedPhone=MyAccountMobilePhone.getphoneformat(o.cellDisplay,twoStepEmail.CountryID):o.formattedPhone=e.formattedPhone,3==o.IsAlreadyVarified)currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?_myAccount.SaveVPLUSerDetailProfile():_myAccount.SaveProfile():currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile();else{if(NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,o.IsSucess)e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.AppendEmailScreen(o,currentPage):e.AuthenticationMode==_twoFactor.AuthCodeReceiveMode.Cell&&_twoFactor.AppendCellScreen(o,t);else if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(e.AuthenticationMode);var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var r=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");return 2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,currentPage==_twoFactor.PageType.ProfilePage||(n.UserID=parseInt(UserID)),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1)}ShowLoader(!1)}else ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()}},AppendEmailInputScreen:function(e){$(".signup-verify").hide(),currentPage==_twoFactor.PageType.CustomerSignIn&&(void 0!==e.emailid&&null!=e.emailid&&""!=e.emailid&&$("#txtEmailInputCode").val(e.emailid),$(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show(),$(".signup-user-found").hasClass("w-hiddenstrict")||($(".signup-user-found").addClass(" w-hiddenstrict"),$(".sign-in-btn-divinner").removeClass(" w-hiddenstrict"),$(".sign-in-logo-div").removeClass(" w-hiddenstrict")),ShowLoadingPanelLogin(!1)),$("#dvAddEmailCode").show(),$("#txtEmailInputCode").focus()},AppendCellInputScreen:function(e,t=!1){$(".signup-verify").hide(),currentPage==_twoFactor.PageType.CustomerSignIn&&(void 0!==e.phone&&null!=e.phone&&""!=e.phone&&($("#txtCellInputCode").val(e.phone),setTimeout(function(){$("#txtCellInputCode").blur()},5e3),_twoFactor.Phone_format("#txtCellInputCode","#dvCellInputCodeError")),$(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),void 0!==e.CountryID&&""!=e.CountryID&&($("#selectedCountrydiv").attr("data-countryId",e.CountryID),_twoFactor.Phone_format("#txtCellInputCode","#dvCellInputCodeError",e.CountryID),2==e.CountryID?$("#selectedCountrydiv").removeClass().addClass("selectedcountry uk-f"):3==e.CountryID?$("#selectedCountrydiv").removeClass().addClass("selectedcountry canada-f"):4==e.CountryID&&$("#selectedCountrydiv").removeClass().addClass("selectedcountry aus-f")),$("#divtwofactorauthentication").show(),$(".signup-user-found").hasClass("w-hiddenstrict")||($(".signup-user-found").addClass(" w-hiddenstrict"),$(".sign-in-btn-divinner").removeClass(" w-hiddenstrict"),$(".sign-in-logo-div").removeClass(" w-hiddenstrict")),ShowLoadingPanelLogin(!1)),$("#dvAddPhoneCode").show(),$("#txtCellInputCode").focus(),t&&currentPage==_twoFactor.PageType.CustomerSignIn&&ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified)),$("#h2VerifyPhone").attr("tabindex",-1).focus()},SendEmailCodeFromInputScreen:function(e=!1){if(e||(e=_twoFactor.validateEmail()),e)if(currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!0):ShowLoader(!0),isNullOrUndefineOrBlank(userccattemptdata.EmailId)||userccattemptdata.EmailId.toLowerCase()==$.trim($("#txtEmailInputCode").val()).toLowerCase())twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmailInputCode").val()),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.SendTwoFactorCode(twoStepEmail);else{var t='"strUserName" :""';t+=',"strEmailID" :"'+$.trim($("#txtEmailInputCode").val())+'"',CallWebServicehed("MySampleService.asmx/CheckUserNameAvailabilityWithEmail",t,function(e){1*e.d==1?(ShowLoader(!1),$("#txtEmailInputCode").addClass("error"),$("#dvEmailInputError").html("This email is being used by an existing Vagaro account.").show()):(twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmailInputCode").val()),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.SendTwoFactorCode(twoStepEmail))},function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)})}$("#txtEmailCode").focus()},SendPhoneCodeFromInputScreen:function(e=!1){if(e||(e=_twoFactor.validatePhone("#txtCellInputCode","#dvCellInputCodeError")),e){currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!0):ShowLoader(!0),twoStepPhone={},twoStepPhone.emailid=$.trim($("#txtEmailInputCode").val());var t={};if(!twoFactorCellPhone.validatePhoneNumber(!0)){var o=twoFactorCellPhone.getValidateMessage();return 3==o.WarningType?($("#dvCellInputCodeError").html("Phone number should be of 10 digits."),$("#dvCellInputCodeError").show()):1==o.WarningType?($("#dvCellInputCodeError").html("Enter your mobile phone"),$("#dvCellInputCodeError").show()):($("#dvCellInputCodeError").html(o.WarningMessage),$("#dvCellInputCodeError").show()),currentPage==_twoFactor.PageType.CustomerSignIn?ShowLoadingPanelLogin(!1):ShowLoader(!1),!1}$("#dvCellInputCodeError").hide(),t=twoFactorCellPhone.getPhoneData(),twoStepPhone.phone=t.phoneNo,twoStepPhone.CountryID=t.countryId,twoStepPhone.DialingCode=t.dialingCode,twoStepPhone.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepPhone.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepPhone.IsFromBusinessSignup=!0,_twoFactor.SendTwoFactorCode(twoStepPhone)}$("#txtCellCode").focus()},AppendEmailScreen:function(e,t){if($(".signup-verify").hide(),$("#dvEmailVerify").show(),currentPage==_twoFactor.PageType.BusinessSignup)$("#spnForMerchantSignup").show(),$("#divBusinessSteps").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show(),vm.isResetTimer=!1;else if(currentPage==_twoFactor.PageType.MultiLocation)$("#divtwofactorauthentication").css("z-index","10001"),$find("mpeNewBusiness").hide(),showLoadingPanel(0),$("#divtwofactorauthentication").show();else if(currentPage==_twoFactor.PageType.CustomerSignup){$("#spnForMerchantSignup").show(),$("#pnlSignup").hide(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").hide(),$("#divAuth").show(),$("#divtwofactorauthentication").show();var o=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");o.length>0&&(o.addClass("email"),o.removeClass("phone"),o.removeClass("success"))}else currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag?$("#verificationDesc").html($("#verificationDesc").html().replace("For your security, Vagaro wants to make sure it’s really you. Enter the sent a 6-digit code we sent to ","Enter the 6-digit code we sent to ")):currentPage==_twoFactor.PageType.CustomerSignIn&&($("#spnForMerchantSignup").hide(),$(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show());$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||currentPage!=_twoFactor.PageType.BusinessSignup&&currentPage!=_twoFactor.PageType.CustomerSignup&&currentPage!=_twoFactor.PageType.MultiLocation?$("#lblEmail").text(e.emailDisplay+". "):($("#verificationTitle").text("Verify Your Email or Mobile Phone"),$("#verificationPara").show(),currentPage==_twoFactor.PageType.CustomerSignup?$("#lblEmailorCell").text($("#txtCell").val()+". "):$("#lblEmailorCell").text(e.formattedPhone+". "),$("#lblEmail").text(e.emailDisplay)),$("#txtEmailCode").focus(),$(".signup-loader-height").length>0&&$(".signup-loader-height").addClass("email")},AppendCellScreen:function(e,t=!1){if($(".signup-verify").hide(),$("#dvPhoneVerify").show(),(navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),_twoFactor.CheckDevice(),t&&(currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation?ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified)):currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||(_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?$("#hdnEmailBeforeChange").val($("#paymentmethods #emailid").val()):$("#hdnEmailBeforeChange").val($("#txtEmail").val()))),currentPage==_twoFactor.PageType.BusinessSignup)$("#divBusinessSteps").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show();else if(currentPage==_twoFactor.PageType.CustomerSignup){$("#pnlSignup").hide(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").hide(),$("#divAuth").show(),$("#divtwofactorauthentication").show();var o=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");o.length>0&&(o.addClass("phone"),o.removeClass("email"),o.removeClass("success")),t&&ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified))}else currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag?($("#verificationCell").html($("#verificationCell").html().replace("Next, Verify Your Mobile Phone","Verify Your Mobile Phone")),$("#enterCell").html($("#enterCell").html().replace("Enter the sent a 6-digit code we sent to ","Enter the 6-digit code we sent to "))):currentPage==_twoFactor.PageType.CustomerSignIn&&($(".previous-btn").text(_twoFactor.WillDoLater),1==userccattemptdata.IsNewBusiness&&$(".previous-btn").hide(),$("#pnlLogin").hide(),$("#dvAuth").show(),$("#divtwofactorauthentication").show());"5"==$("#selectedCountrydiv").attr("data-countryid")||$("#selectedCountrydiv").attr("data-countryid"),$("#lblCell").text(e.formattedPhone),$(".signup-loader-height").length>0&&$(".signup-loader-height").addClass("phone"),$("#txtCellCode").focus()},CheckDevice:function(){var e=navigator.userAgent;return null!=e.match(/(iPhone|iPod)/)||null!=e.match(/BlackBerry/)||null!=e.match(/Silk/)||null!=e.match(/Android/)||null!=e.match(/iPad/)},EmailCodeSuccess:function(e,t=!1){currentPage==_twoFactor.PageType.CustomerSignIn?_twoFactor.AppendCellInputScreen(e,t):_twoFactor.SendTwoFactorCodeForCell(e,t)},CellCodeSuccess:function(e=!1){_twoFactor.ShowFinalSuccessScreen(e)},ShowFinalSuccessScreen:function(e=!1){if($(".signup-verify").hide(),currentPage!=_twoFactor.PageType.BusinessSignup&&($("#AuthSuccessBackbtn").hide(),$("#AuthSuccessNextbtn").text("Done")),currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)_twoFactor.BackFromAuth();else if(currentPage==_twoFactor.PageType.CustomerSignup){var t=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");t.length>0&&(t.removeClass("phone"),t.removeClass("email"),t.addClass("success")),$("#dvSuccessVerify").show()}else{currentPage!=_twoFactor.PageType.BusinessSignup&&$("#dvSuccessVerify").show();var o=null!=navigator.userAgent.toLowerCase()?navigator.userAgent.toLowerCase():"";"undefined"==typeof vgAppicationType||1!=vgAppicationType||isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||isNullOrUndefineOrBlank(_securelogin.AfterSuccessfullLogin)||!(o.indexOf("com.vagaro.customerandroid")>-1||o.indexOf("com.vagaro.customerios")>-1)||setTimeout(function(){SkipTwoFactoFromSignIn()},700)}e?currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation?(currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),currentPage,_twoFactor.PageType.CustomerSignup,ShowHideDoneMessage(_twoFactor.SuccessMessage.EmailVerified,GetDisplayMessageTime(_twoFactor.SuccessMessage.EmailVerified))):currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||("undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.EmailVerified),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.EmailVerified),currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?($("#hdnEmailBeforeChange").val($("#paymentmethods #emailid").val()),_myAccount.SaveVPLUSerDetailProfile()):($("#hdnEmailBeforeChange").val($("#txtEmail").val()),_myAccount.SaveProfile()):currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile()):currentPage==_twoFactor.PageType.BusinessSignup||currentPage==_twoFactor.PageType.CustomerSignIn||currentPage==_twoFactor.PageType.MultiLocation?(currentPage==_twoFactor.PageType.MultiLocation&&ShowLoader(!1),currentPage==_twoFactor.PageType.BusinessSignup?(ShowLoader(!0),_twoFactor.SuccessTwoFactor()):ShowHideDoneMessage(_twoFactor.SuccessMessage.PhoneVerified)):currentPage==_twoFactor.PageType.CustomerSignup?ShowHideDoneMessage(_twoFactor.SuccessMessage.PhoneVerified):currentPage!=_twoFactor.PageType.ProfilePage&&currentPage!=_twoFactor.PageType.CovidClean&&currentPage!=_twoFactor.PageType.ShoppingBag||("undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.PhoneVerified),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.PhoneVerified),currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?($("#hdnCellNoBeforeChange").val(MyAccountVPLCell.getPhoneData().phoneNo),_myAccount.SaveVPLUSerDetailProfile()):($("#hdnCellNoBeforeChange").val($("#txtCell").val().replace(/([()-\s])+/g,"")),_myAccount.SaveProfile()):currentPage==_twoFactor.PageType.CovidClean?_vgCovidCleanCheckout.SaveVPLUSerDetailProfile():currentPage==_twoFactor.PageType.ShoppingBag&&_onlineCheckout.SaveVPLUSerDetailProfile())},SuccessTwoFactor:function(){if(currentPage==_twoFactor.PageType.BusinessSignup){if(vm.buttonClicked=!0,!isNullOrUndefineOrBlank(vm)&&!isNullOrUndefineOrBlank(vm.SkipTwoFactorStep)){var e=parseInt($("#ddlcountry option:selected").val());localStorage.setItem("CountryId",e),localStorage.setItem("isFromTwoFactor",!0),localStorage.setItem("VarificationType",$("#hdnEmailAndCellAPIValidationSignup").val()),vm.SkipTwoFactorStep()}}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#divtwofactorauthentication").modal("hide");else if(currentPage==_twoFactor.PageType.CustomerSignup){var t=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid");t.length>0&&(t.removeClass("phone"),t.removeClass("email"),t.removeClass("success")),$("#hdnIsCheckCapcha").val("0"),$("#btnRegister").click(),$(t).hide(),window.parent.ShowLoadingPanelLogin(!0)}else if(currentPage==_twoFactor.PageType.CustomerSignIn)isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||isNullOrUndefineOrBlank(_securelogin.AfterSuccessfullLogin)||SkipTwoFactoFromSignIn();else if(currentPage==_twoFactor.PageType.MultiLocation&&(showLoadingPanel(1),$("#divtwofactorauthentication").css("z-index","0"),$("#divtwofactorauthentication").hide(),$("#hdnIsFromMFA").val("true"),$("#btnAddBusinessInfoContinue").click(),null!=typeof _mlMultiLocation.controls.txtTelephone&&null!=_mlMultiLocation.controls.txtTelephone&&null!=typeof _mlMultiLocation.model.LastVerifiedCell&&null!=_mlMultiLocation.model.LastVerifiedCell)){var o=$(_mlMultiLocation.controls.txtTelephone).val().replace(/([()-\s])+/g,"");2==parseInt(e)&&0==o[0]&&(o=o.substring(1)),_mlMultiLocation.model.LastVerifiedCell=o}},resendcodestartloader:function(){var e=1*$("#hdnAuthCodeExpireTime").val()*60;$("#txtfirstcode").focus(),$("#twostepcountdown").show(),$("#divtwostepcountdown").show(),interval=setInterval(function(){--e<=35&&($("#twostepcountdown").fadeOut(500),$("#twostepcountdown").fadeIn(500),$("#twostepcountdown").css({color:"red"})),d=Number(e);var t=Math.floor(d%3600/60),o=Math.floor(d%3600%60);if(o<10&&(o="0"+o),$("#twostepcountdown").text(t+":"+o),e<=0)return $("#dvCodeError").hide(),$("#dvCodeErrorExpire").hide(),$("#dvCodeErrorTimeOut").show(),clearInterval(interval),void setTimeout(function(){$("#twostepcountdown").hide(),$("#divtwostepcountdown").hide()},500)},1e3)},AllowOnlyNumber:function(e){null!=e&&(thisnumberCtrl=$("#"+e),1==thisnumberCtrl.val().length?"txtsixcode"!=!thisnumberCtrl[0].id&&$(thisnumberCtrl).next(".inputcode").focus():"txtsixcode"==e?($("#txtfivecode").val(""),$("#txtfivecode").focus()):"txtfivecode"==e?($("#txtfourcode").val(""),$("#txtfourcode").focus()):"txtfourcode"==e?($("#txtthirdcode").val(""),$("#txtthirdcode").focus()):"txtthirdcode"==e?($("#txtsecondcode").val(""),$("#txtsecondcode").focus()):"txtsecondcode"==e&&($("#txtfirstcode").val(""),$("#txtfirstcode").focus())),$("#dvCodeError").hide(),$("#dvCodeErrorExpire").hide(),$("#dvCodeErrorTimeOut").hide()},ReSendTowFactorAuthenticationCode:function(e,t){if($(t).addClass("active"),$("#txtEmailCode").removeClass("error"),$("#txtCellCode").removeClass("error"),$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||(e=_twoFactor.AuthCodeReceiveMode.EmailAndCell),currentPage==_twoFactor.PageType.BusinessSignup){ShowLoader(!0);var o={},n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var r=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");if(2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),o.emailid=$.trim($("#txtEmail").val()),o.phone=$.trim($("#txtOwnerPhone").val().replace(/([()-\s])+/g,"")),o.fullname=$.trim($("#txtFirstName").val())+" "+$.trim($("#txtLastName").val()),o.CountryID=$("#ddlcountry option:selected").val(),o.IP=$("#hdnIPAddress").val(),o.IsEmailPhoneChanges=vm.IsEmailPhoneChanged,o.NoOfLoginAttemptemail=vm.NoOfLoginAttemptemail,o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.IsFromCustomerSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",o.DialingCode=vm.DialingCode,o.IsTwoFactorSignupLoadData=!0,(i=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,i.datamodel.IsNewVagaroAPI=!0,i.datamodel.callback=function(r){void 0!==r&&null!=r&&(r.IsSucess&&(_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=r.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=r.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),PageType==_twoFactor.PageType.BusinessSignup&&_twoFactor.SaveFilterRequestForCardValidate(n))),$(t).removeClass("active"),ShowLoader(!1)},i.datamodel.data=o,i.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},i.Post()}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){ShowLoader(!0),o={},n={},isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId);var a="";if(currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(n.UserName=$("#paymentmethods #emailid").val(),n.UserEmail=$("#paymentmethods #emailid").val(),a=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):(n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),a=$("#txtCell").val().replace(/([()-\s])+/g,""),n.Country=MyAccountMobilePhone.getPhoneData().countryId):currentPage==_twoFactor.PageType.CovidClean?(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),a=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):currentPage==_twoFactor.PageType.ShoppingBag&&(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),a=ShoppingBagVPLCell.getPhoneData().phoneNo,n.Country=ShoppingBagVPLCell.getPhoneData().countryId),2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.State=$("#txtState").val(),n.City=$("#txtCity").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,currentPage==_twoFactor.PageType.ProfilePage||(n.UserID=parseInt(UserID)),$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),$("#txtCellCode").removeClass("error"),$("#txtEmailCode").removeClass("error"),NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),currentPage==_twoFactor.PageType.ProfilePage?("undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(o.emailid=$("#paymentmethods #emailid").val(),o.phone=MyAccountVPLCell.getPhoneData().phoneNo,o.CountryID=MyAccountVPLCell.getPhoneData().countryId):(o.emailid=$.trim($("#txtEmail").val()),o.phone=MyAccountMobilePhone.getPhoneData().phoneNo,o.CountryID=MyAccountMobilePhone.getPhoneData().countryId),o.fullname=$.trim($("#txtFName").val())+" "+$.trim($("#txtLName").val())):currentPage==_twoFactor.PageType.CovidClean?(o.emailid=$("#emailid").val(),o.phone=MyAccountVPLCell.getPhoneData().phoneNo,o.CountryID=MyAccountVPLCell.getPhoneData().countryId,o.fullname=_vgCovidCleanCheckout.model.VplUserDetails.Fullname):currentPage==_twoFactor.PageType.ShoppingBag&&(o.emailid=$("#emailid").val(),o.phone=ShoppingBagVPLCell.getPhoneData().phoneNo,o.CountryID=ShoppingBagVPLCell.getPhoneData().countryId,o.fullname=_onlineCheckout.CustomerDetails.FirstName+" "+_onlineCheckout.CustomerDetails.LastName),o.IP=$("#hdnIPAddress").val(),o.IsEmailPhoneChanges="false",o.NoOfLoginAttemptemail=NoOfLoginAttemptemail,o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",$("#hdnUserType").length>0&&(o.UserType=$("#hdnUserType").val());var i=new vagaro.ajax;currentPage==_twoFactor.PageType.ShoppingBag?i.datamodel.Token=_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer:i.datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,i.datamodel.IsNewVagaroAPI=!0,i.datamodel.callback=function(n){void 0!==n&&null!=n&&(n.IsSucess&&(_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),"undefined"!=typeof _common&&null!=_common&&void 0!==_common.PassiveAlertSuccess&&null!=_common.PassiveAlertSuccess&&_common.PassiveAlertSuccess(_twoFactor.SuccessMessage.ResendCode),"undefined"!=typeof _vgCovidCleanCheckout&&null!=_vgCovidCleanCheckout&&void 0!==_vgCovidCleanCheckout.WarningMessage&&null!=_vgCovidCleanCheckout.WarningMessage&&_vgCovidCleanCheckout.WarningMessage(_twoFactor.SuccessMessage.ResendCode)),NoOfLoginAttempt=n.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=n.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),currentPage==_twoFactor.PageType.ProfilePage?(_twoFactor.BackFromAuth(),_myAccount.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)):currentPage==_twoFactor.PageType.ShoppingBag?($("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_twoFactor.BackFromAuth(),_onlineCheckout.hideConfirmbox()):currentPage==_twoFactor.PageType.CovidClean&&($("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_twoFactor.BackFromAuth(),_vgCovidCleanCheckout.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)))),$(t).removeClass("active"),ShowLoader(!1)},i.datamodel.data=o,i.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},i.Post()}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if(ShowLoader(!0),o={},n={},isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmailInputCode").val(),n.UserEmail=$("#txtEmailInputCode").val(),twoStepPhonedata=twoFactorCellPhone.getPhoneData(),n.CountryID=twoStepPhonedata.countryId,n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",r=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoader(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),o.emailid=$.trim($("#txtEmailInputCode").val()),o.phone=twoStepPhonedata.phoneNo,o.CountryID=twoStepPhonedata.countryId,o.DialingCode=twoStepPhonedata.dialingCode,o.fullname=userccattemptdata.FullName,o.IP=$("#hdnIPAddress").val(),o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",$("#hdnUserType").length>0&&(o.UserType=$("#hdnUserType").val()),o.EmailCellAppSetting=$("#hdnEmailAndCell2FScreen").val(),(i=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.TwoFactorAuthenticationCustomer,i.datamodel.IsNewVagaroAPI=!0,i.datamodel.callback=function(r){void 0!==r&&null!=r&&(r.IsSucess&&(_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=r.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=r.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),_twoFactor.SaveFilterRequestForCardValidate(n))),$(t).removeClass("active"),ShowLoader(!1)},i.datamodel.data=o,i.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},i.Post()}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(ShowLoadingPanelLogin(!0),o={},n={},isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(n.UserAgent=navigator.userAgent,n.VisitorID=$("#fpId").val()):(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.Country=$("#divCountryCode").attr("data-countryid"),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",a=$("#txtCell").val().replace(/([()-\s])+/g,""),2==n.Country&&0==a[0]?n.OwnersPhone=a.substring(1):n.OwnersPhone=a,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.IsBlock=1,$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(e),_twoFactor.SaveFilterRequestForCardValidate(n),void ShowLoadingPanelLogin(!1);_twoFactor.cleartwofactortextboxwithoutfocus(e),o.emailid=$.trim($("#txtEmail").val());var d=custSignupCellPhone.getPhoneData();o.phone=d.phoneNo,o.fullname=$.trim($("#txtFirstname").val())+" "+$.trim($("#txtLastname").val()),o.CountryID=d.countryId,o.IP="",o.IsEmailPhoneChanges=IsEmailPhoneChanged,o.NoOfLoginAttemptemail=NoOfLoginAttemptemail,o.AuthenticationMode=e,o.IsFromBusinessSignup=!0,o.IsFromCustomerSignup=!0,o.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),o.codetype="resend",IsEmailPhoneChanged=!1,(i=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,i.datamodel.IsNewVagaroAPI=!0,i.datamodel.callback=function(r){void 0!==r&&null!=r&&(r.IsSucess&&(void 0!==r.WidgetUserID&&null!=r.WidgetUserID&&""!=r.WidgetUserID&&(widgetcookievalue=r.WidgetUserID),_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=r.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=r.TwoFactorRequest,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()&&(_twoFactor.showErrorDiv(o.AuthenticationMode),_twoFactor.SaveFilterRequestForCardValidate(n))),$(t).removeClass("active"),1==o.AuthenticationMode?$("#txtEmailCode").focus():2==o.AuthenticationMode&&$("#txtCellCode").focus(),ShowLoadingPanelLogin(!1)},i.datamodel.data=o,i.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},i.Post()}else currentPage==_twoFactor.PageType.MultiLocation&&(ShowLoader(!0),$("#dvEmailCodeError").html(""),$("#dvEmailCodeError").hide(),$("#dvCellCodeError").html(""),$("#dvCellCodeError").hide(),_twoFactor.cleartwofactortextboxwithoutfocus(e),(i=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.AddBusinessTwoFactorAuthentication,i.datamodel.IsNewVagaroAPI=!0,i.datamodel.callback=function(o){void 0!==o&&null!=o&&(o.IsSucess&&(_twoFactor.resendcodestartloader(),_twoFactor.AdaPassiveMessage(_twoFactor.SuccessMessage.ResendCode,e),ShowHideDoneMessage(_twoFactor.SuccessMessage.ResendCode,GetDisplayMessageTime(_twoFactor.SuccessMessage.ResendCode))),NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest),$(t).removeClass("active"),ShowLoader(!1)},i.datamodel.data=twoStepEmail,i.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage),ShowLoader(!1)},i.Post())},cleartwofactortextbox:function(e){e==_twoFactor.AuthCodeReceiveMode.Email||e==_twoFactor.AuthCodeReceiveMode.EmailAndCell?$("#txtEmailCode").val("").focus():$("#txtCellCode").val("").focus()},cleartwofactortextboxwithoutfocus:function(e){e==_twoFactor.AuthCodeReceiveMode.Email||e==_twoFactor.AuthCodeReceiveMode.EmailAndCell?$("#txtEmailCode").val(""):$("#txtCellCode").val("")},disabletwofactortextbox:function(e){$(e).attr("disabled","disabled");var t=5;interval=setInterval(function(){if(--t<=0){var e=$("#spnCountryPhoneNo").text();currentPage==_twoFactor.PageType.CustomerSignup?($("#divConfirmBox").find(".w-button-default").attr("value","Cancel"),e=$("#spnCountryPhoneNo").text(),showConfirmbox(_twoFactor.FailOTPMessage(e),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)):currentPage==_twoFactor.PageType.BusinessSignup&&vm.showConfirmbox(_twoFactor.FailOTPMessage(e),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)}},3e3)},VerifyEmailCode:function(){try{void 0!==vm.SignupStepsClicklog&&"function"==typeof vm.SignupStepsClicklog&&currentPage==_twoFactor.PageType.BusinessSignup&&vm.SignupStepsClicklog(1.1)}catch(e){}if(void 0===$("#txtEmailCode").val()||""==$("#txtEmailCode").val())return $("#dvEmailCodeError").show(),$("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").text("Please enter verification code."),$("#txtEmailCode").focus(),!1;if($("#txtEmailCode").val().length<=5)return $("#dvEmailCodeError").show(),$("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").text("Invalid code, try again."),!1;if(currentPage==_twoFactor.PageType.BusinessSignup){vm.buttonClicked=!0,$("#dvEmailCodeError").hide();var e="Unknown",t={};if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email);var o=$("#spnCountryPhoneNo").text();return void vm.showConfirmbox(_twoFactor.FailOTPMessage(o),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)}if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux");var n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2);t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,parseInt($("#ddlcountry option:selected").val()),$("#hdnEmailAndCellAPIValidationSignup").val()==_twoFactor.VarificationType.Email&&$("#hdnEmailAndCell2FScreen").val(_twoFactor.EmailAndCell2FScreen.EmailOrPhone),t.AuthenticationMode=$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhone||$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew?_twoFactor.AuthCodeReceiveMode.EmailAndCell:_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,t.IsSignupLoadData=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){if($("#dvEmailCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email),void(currentPage==_twoFactor.PageType.ProfilePage?(_twoFactor.BackFromAuth(),_myAccount.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)):currentPage==_twoFactor.PageType.ShoppingBag?(_twoFactor.BackFromAuth(),_onlineCheckout.hideConfirmbox()):currentPage==_twoFactor.PageType.CovidClean&&(_twoFactor.BackFromAuth(),$("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_vgCovidCleanCheckout.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)));if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(buttonClicked=!0,$("#dvEmailCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email),void(PageType==_twoFactor.PageType.BusinessSignup&&(o=$("#spnCountryPhoneNo").text()));if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoadingPanelLogin(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhone?_twoFactor.AuthCodeReceiveMode.EmailAndCell:_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if($("#dvEmailCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Email),void bootbox.alert({className:"vagaro-midium-popup",message:_twoFactor.FailOTPMessage(),title:"Error Code: XJ140"});if(t.Code=$("#txtEmailCode").val(),""!=t.Code){ShowLoadingPanelLogin(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}}else if(currentPage==_twoFactor.PageType.MultiLocation&&($("#dvEmailCodeError").hide(),e="Unknown",(t={}).Code=$("#txtEmailCode").val(),""!=t.Code)){ShowLoader(!0);try{var r;-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailOrPhone?_twoFactor.AuthCodeReceiveMode.EmailAndCell:_twoFactor.AuthCodeReceiveMode.Email,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,t.AuthenticationMode)}},VerifyCellCode:function(){try{void 0!==vm.SignupStepsClicklog&&"function"==typeof vm.SignupStepsClicklog&&currentPage==_twoFactor.PageType.BusinessSignup&&vm.SignupStepsClicklog(1.2)}catch(e){}if(void 0===$("#txtCellCode").val()||""==$("#txtCellCode").val())return $("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Please enter verification code."),$("#dvCellCodeError").focus(),!1;if($("#txtCellCode").val().length<=5)$("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.");else if(currentPage==_twoFactor.PageType.BusinessSignup){vm.buttonClicked=!0,vm.buttonClicked=!0,$("#dvCellCodeError").hide();var e="Unknown",t={};if(NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){_twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell);var o=$("#spnCountryPhoneNo").text();return void vm.showConfirmbox(_twoFactor.FailOTPMessage(o),vm.OnBlockConfirm,"Error Code: XJ140",!1,!0)}if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux");var n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2);t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,t.IsSignupLoadData=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){if(void 0===$("#txtCellCode").val()||""==$("#txtCellCode").val()||$("#txtCellCode").val().length<=5)return $("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),"undefined"==$("#txtCellCode").val()||""==$("#txtCellCode").val()?($("#dvCellCodeError").text("Please enter verification code."),$("#txtCellCode").focus()):$("#dvCellCodeError").text("Invalid code, try again."),!1;if($("#dvCellCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),void(currentPage==_twoFactor.PageType.ProfilePage?(_twoFactor.BackFromAuth(),_myAccount.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)):currentPage==_twoFactor.PageType.ShoppingBag?(_twoFactor.BackFromAuth(),_onlineCheckout.hideConfirmbox()):currentPage==_twoFactor.PageType.CovidClean&&(_twoFactor.BackFromAuth(),$("#divConfirmBox").find(".w-button-default").attr("value","Ok"),_vgCovidCleanCheckout.showConfirmbox(_twoFactor.FailOTPMessage(),"","Error Code: XJ140",!1,!1)));if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.CustomerSignup){if(buttonClicked=!0,$("#dvCellCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),$("#divConfirmBox").find(".w-button-default").attr("value","Cancel"),o=$("#spnCountryPhoneNo").text(),void showConfirmbox(_twoFactor.FailOTPMessage(o),OnBlockConfirm,"Error Code: XJ140",!1,!0);if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoadingPanelLogin(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.CustomerSignIn){if($("#dvCellCodeError").hide(),e="Unknown",t={},NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),void vagaro.alertsmall({message:_twoFactor.FailOTPMessage(),title:"Error Code: XJ140"});if(t.Code=$("#txtCellCode").val(),""!=t.Code){ShowLoader(!0);try{-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}}else if(currentPage==_twoFactor.PageType.MultiLocation&&($("#dvCellCodeError").hide(),e="Unknown",(t={}).Code=$("#txtCellCode").val(),""!=t.Code)){ShowLoader(!0);try{var r;-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),n=(r=new Date).getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)+" "+("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2)+":"+("0"+r.getSeconds()).slice(-2),t.OSName=e,t.clientDate=n}catch(o){t.operatingSystem=e,t.clientDate=""}t.NoOfLoginAttempt=NoOfLoginAttempt++,t.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,t.IsFromBusinessSignup=!0,_twoFactor.verifytwostepAuthenticationCode(t,_twoFactor.AuthCodeReceiveMode.Cell)}},verifytwostepAuthenticationCode:function(e,t){if(e.isFromCookieLessWidget=_twoFactor.IsFromCookieLessWidget(),currentPage==_twoFactor.PageType.BusinessSignup)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.State=vm.addressData.state,n.City=vm.addressData.city,n.Country=$("#ddlcountry").val(),n.NoofAttempt=vm.NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName=vm.deviceFrom;var r=$("#txtOwnerPhone").val().replace(/([()-\s])+/g,"");if(2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),ShowLoader(!1),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(t),sessionStorage.clear(),n.IsBlock=1,void _twoFactor.SaveFilterRequestForCardValidate(n);if("Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce){if(currentPage==_twoFactor.PageType.BusinessSignup&&($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n),$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmail").val()),twoStepEmail.phone=$.trim($("#txtOwnerPhone").val().replace(/([()-\s])+/g,"")),twoStepEmail.formattedPhone=$("#txtOwnerPhone").val(),twoStepEmail.fullname=$.trim($("#txtFirstName").val())+" "+$.trim($("#txtLastName").val()),twoStepEmail.CountryID=$("#ddlcountry option:selected").val(),twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.IsEmailPhoneChanges=vm.IsEmailPhoneChanged,twoStepEmail.NoOfLoginAttemptemail=vm.NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,twoStepEmail.DialingCode=vm.DialingCode,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):(parseInt($("#ddlcountry option:selected").val()),_twoFactor.CellCodeSuccess(!1))),o.VarificationType==_twoFactor.VarificationType.Cell||o.VarificationType==_twoFactor.VarificationType.EmailAndCell)){var a={step:1,isNextClick:1},i=new vagaro.ajax;i.datamodel.Token=_twoFactor.ApiURLEnum.GetLogDataonBackClick,i.datamodel.IsNewVagaroAPI=!0,i.datamodel.data=a,i.datamodel.callback=function(e){},i.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},i.Post()}}else"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),_twoFactor.cleartwofactortextbox(t))}},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId);var r="";if(currentPage==_twoFactor.PageType.ProfilePage?"undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(n.UserName=$("#paymentmethods #emailid").val(),n.UserEmail=$("#paymentmethods #emailid").val(),r=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):(n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),r=$("#txtCell").val().replace(/([()-\s])+/g,""),n.Country=MyAccountMobilePhone.getPhoneData().countryId):currentPage==_twoFactor.PageType.CovidClean?(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),r=MyAccountVPLCell.getPhoneData().phoneNo,n.Country=MyAccountVPLCell.getPhoneData().countryId):currentPage==_twoFactor.PageType.ShoppingBag&&(n.UserName=$("#emailid").val(),n.UserEmail=$("#emailid").val(),r=ShoppingBagVPLCell.getPhoneData().phoneNo,n.Country=ShoppingBagVPLCell.getPhoneData().countryId),2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.State=$("#txtState").val(),n.City=$("#txtCity").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),currentPage==_twoFactor.PageType.ProfilePage||(n.UserID=parseInt(UserID)),ShowLoader(!1),NoOfLoginAttempt>=$("#hdnFraudNoOfAttemptCustomer").val())return _twoFactor.showErrorDiv(t),sessionStorage.clear(),n.IsBlock=1,void _twoFactor.SaveFilterRequestForCardValidate(n);"Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce?($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n),t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email&&1==IsEmailPhoneChanged?(twoStepEmail={},currentPage==_twoFactor.PageType.ProfilePage?("undefined"!=typeof TwoFactorPageType&&null!=TwoFactorPageType&&""!=TwoFactorPageType&&TwoFactorPageType==_twoFactor.PageType.PaymentMethods?(twoStepEmail.emailid=$("#paymentmethods #emailid").val(),twoStepEmail.phone=MyAccountVPLCell.getPhoneData().phoneNo,twoStepEmail.CountryID=MyAccountVPLCell.getPhoneData().countryId,twoStepEmail.formattedPhone=MyAccountVPLCell.getphoneformat(MyAccountVPLCell.getPhoneData().phoneNo,MyAccountVPLCell.getPhoneData().countryId)):(twoStepEmail.emailid=$.trim($("#txtEmail").val()),twoStepEmail.phone=MyAccountMobilePhone.getPhoneData().phoneNo,twoStepEmail.CountryID=MyAccountMobilePhone.getPhoneData().countryId,twoStepEmail.formattedPhone=MyAccountMobilePhone.getphoneformat(MyAccountMobilePhone.getPhoneData().phoneNo,MyAccountMobilePhone.getPhoneData().countryId)),twoStepEmail.fullname=$.trim($("#txtFName").val())+" "+$.trim($("#txtLName").val())):currentPage==_twoFactor.PageType.CovidClean?(twoStepEmail.emailid=$("#emailid").val(),twoStepEmail.phone=MyAccountVPLCell.getPhoneData().phoneNo,twoStepEmail.CountryID=MyAccountVPLCell.getPhoneData().countryId,twoStepEmail.fullname=_vgCovidCleanCheckout.model.VplUserDetails.Fullname,twoStepEmail.formattedPhone=MyAccountVPLCell.getphoneformat(MyAccountVPLCell.getPhoneData().phoneNo,MyAccountVPLCell.getPhoneData().countryId)):currentPage==_twoFactor.PageType.ShoppingBag&&(twoStepEmail.emailid=$("#emailid").val(),twoStepEmail.phone=ShoppingBagVPLCell.getPhoneData().phoneNo,twoStepEmail.CountryID=ShoppingBagVPLCell.getPhoneData().countryId,twoStepEmail.fullname=_onlineCheckout.CustomerDetails.FirstName+" "+_onlineCheckout.CustomerDetails.LastName,twoStepEmail.formattedPhone=ShoppingBagVPLCell.getphoneformat(ShoppingBagVPLCell.getPhoneData().phoneNo,ShoppingBagVPLCell.getPhoneData().countryId)),twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.IsEmailPhoneChanges=IsEmailPhoneChanged,twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0),IsEmailPhoneChanged):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess())):"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),_twoFactor.cleartwofactortextbox(t))}},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.CustomerSignup)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)?isNullOrUndefineOrBlank($("#fpId").val())||(n.UserAgent=navigator.userAgent,n.VisitorID=$("#fpId").val()):(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=$("#txtEmail").val(),n.UserEmail=$("#txtEmail").val(),n.Country=$("#divCountryCode").attr("data-countryId"),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="",n.IsPolicyAck=_twoFactor.Model.IsPolicyAck;var r=$("#txtCell").val().replace(/([()-\s])+/g,"");if(2==n.Country&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),ShowLoadingPanelLogin(!1),NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val()){sessionStorage.clear(),n.IsBlock=1,$("#hdnIsBlocked").val(1),IsBlocked=!0,_twoFactor.showErrorDiv(_twoFactor.AuthCodeReceiveMode.Cell),_twoFactor.SaveFilterRequestForCardValidate(n),$("#divConfirmBox").find(".w-button-default").attr("value","Cancel");var a=$("#spnCountryPhoneNo").text();return void showConfirmbox(_twoFactor.FailOTPMessage(a),OnBlockConfirm,"Error Code: XJ140",!1,!0)}if("Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce)if($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n),$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone)if(t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email){var i=custSignupCellPhone.getPhoneData();twoStepEmail={},twoStepEmail.emailid=$.trim($("#txtEmail").val()),twoStepEmail.phone=i.phoneNo,twoStepEmail.formattedPhone=$("#txtCell").val(),twoStepEmail.fullname=$.trim($("#txtFirstname").val())+" "+$.trim($("#txtLastname").val()),twoStepEmail.CountryID=i.countryId,twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.IsEmailPhoneChanges=IsEmailPhoneChanged,twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,twoStepEmail.IsFromCustomerSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)}else $("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess());else $("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess());else"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),_twoFactor.cleartwofactortextbox(t))}ShowLoadingPanelLogin(!1)},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.CustomerSignIn)(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest;var n={};isNullOrUndefineOrBlank(fpDeviceId)||(n.UserAgent=navigator.userAgent,n.VisitorID=fpDeviceId),n.UserName=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),n.UserEmail=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),n.NoofAttempt=NoOfLoginAttemptemail,n.IP=$("#hdnIPAddress").val(),n.DeviceFullName="";var r=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,"");if(2==("5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"))&&0==r[0]?n.OwnersPhone=r.substring(1):n.OwnersPhone=r,n.IsEmailPhoneVerified=$("#hdnTwoFactorVerified").val(),n.UserId=userccattemptdata.UserID,NoOfLoginAttempt>=$("#hdnFraudNoOfAttempt").val())return _twoFactor.showErrorDiv(t),sessionStorage.clear(),n.IsBlock=1,void _twoFactor.SaveFilterRequestForCardValidate(n);if(ShowLoadingPanelLogin(!1),"Valid"==o.Verifyresponce){$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?(n.IsEmailPhoneVerified=_twoFactor.VarificationType.EmailAndCell,$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell)):($("#hdnTwoFactorVerified").val(o.VarificationType),n.IsEmailPhoneVerified=o.VarificationType),_twoFactor.SaveFilterRequestForCardValidate(n);var a=0==isNullOrUndefineOrBlank($("#txtEmailInputCode").val())&&userccattemptdata.EmailId!=$("#txtEmailInputCode").val(),i=0==isNullOrUndefineOrBlank($("#txtCellInputCode").val().replace(/([()-\s])+/g,""))&&userccattemptdata.PhoneNo!=$("#txtCellInputCode").val().replace(/([()-\s])+/g,"");if(a||i){vgSaveUserProfiledata={},vgSaveUserProfiledata.UserID=userccattemptdata.UserID,vgSaveUserProfiledata.EmailID=a?$.trim($("#txtEmailInputCode").val()):userccattemptdata.EmailId;var d=i?$.trim($("#txtCellInputCode").val().replace(/([()-\s])+/g,"")):userccattemptdata.PhoneNo.replace(/([()-\s])+/g,"");2==("5"==$("#selectedCountrydiv").attr("data-countryid")?"2":$("#selectedCountrydiv").attr("data-countryid"))&&0==d[0]?vgSaveUserProfiledata.Cell=d.substring(1):vgSaveUserProfiledata.Cell=d;var s=new vagaro.ajax;s.datamodel.Token="websiteapi/homepage/saveuseremailphonefortwofactor",s.datamodel.data=vgSaveUserProfiledata,s.datamodel.IsNewVagaroAPI=!0,s.datamodel.callback=function(e){null!=e&&e?$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone||!isNullOrUndefineOrBlank(userccattemptdata.IsTwoStepForSP)&&userccattemptdata.IsTwoStepForSP?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail={},twoStepEmail.emailid=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),twoStepEmail.phone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.formattedPhone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.fullname=userccattemptdata.FullName,twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess(!0):_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess()):vagaro.alert(_twoFactor.ValidationMessages.FailedUserSaveMsg)},s.datamodel.Error=function(e){ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},s.Post()}else $("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone||!isNullOrUndefineOrBlank(userccattemptdata.IsTwoStepForSP)&&userccattemptdata.IsTwoStepForSP?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail={},twoStepEmail.emailid=isNullOrUndefineOrBlank($("#txtEmailInputCode").val())||$("#txtEmailInputCode").val()==userccattemptdata.EmailId?userccattemptdata.EmailId:$("#txtEmailInputCode").val(),twoStepEmail.phone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.formattedPhone=isNullOrUndefineOrBlank($("#txtCellInputCode").val())||$("#txtCellInputCode").val().replace(/([()-\s])+/g,"")==userccattemptdata.PhoneNo?userccattemptdata.PhoneNo:$("#txtCellInputCode").val().replace(/([()-\s])+/g,""),twoStepEmail.fullname=userccattemptdata.FullName,twoStepEmail.CountryID=userccattemptdata.CountryID,twoStepEmail.IP=$("#hdnIPAddress").val(),twoStepEmail.NoOfLoginAttemptemail=NoOfLoginAttemptemail,twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,twoStepEmail.IsFromBusinessSignup=!0,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email?_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess(!0):_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(_twoFactor.AuthCodeReceiveMode.Email,_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID):_twoFactor.CellCodeSuccess())}else"Invalid"!=o.Verifyresponce&&"Expired"!=o.Verifyresponce||("Invalid"==o.Verifyresponce?t==_twoFactor.AuthCodeReceiveMode.Email?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code."))),t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.EmailAndCell2FScreen.EmailOrPhone||t==_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew?$("#txtEmailCode").focus():$("#txtCellCode").focus())}},o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.MultiLocation){var o;(o=new vagaro.ajax).datamodel.Token="websiteapi/homepage/verifytwofactorauthentication",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.data=e,o.datamodel.callback=function(e){if(void 0!==e&&null!=e){var o=e;NoOfLoginAttempt=o.TwoFactorVerifyAttempt,NoOfLoginAttemptemail=o.TwoFactorRequest,"Valid"==o.Verifyresponce||"EmailValid"==o.Verifyresponce||"CellValid"==o.Verifyresponce?($("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Cell&&o.VarificationType==_twoFactor.VarificationType.Email?$("#hdnTwoFactorVerified").val(_twoFactor.VarificationType.EmailAndCell):$("#hdnTwoFactorVerified").val(o.VarificationType),$("#hdnEmailAndCell2FScreen").val()==_twoFactor.EmailAndCell2FScreen.EmailAndPhone?t==_twoFactor.AuthCodeReceiveMode.Email&&$("#hdnTwoFactorVerified").val()==_twoFactor.VarificationType.Email?(twoStepEmail.AuthenticationMode=_twoFactor.AuthCodeReceiveMode.Cell,_twoFactor.EmailCodeSuccess(twoStepEmail,!0)):$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess()):$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhone&&$("#hdnEmailAndCell2FScreen").val()!=_twoFactor.EmailAndCell2FScreen.EmailOrPhoneNew||$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Email&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.Cell&&$("#hdnTwoFactorVerified").val()!=_twoFactor.VarificationType.EmailAndCell||(t==_twoFactor.AuthCodeReceiveMode.Email||"EmailValid"==o.Verifyresponce?_twoFactor.CellCodeSuccess(!0):_twoFactor.CellCodeSuccess())):"Invalid"==o.Verifyresponce?(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?($("#txtEmailCode").addClass("error"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("Invalid code, try again.")):($("#txtCellCode").addClass("error"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("Invalid code, try again.")),ShowLoader(!1),_twoFactor.cleartwofactortextbox(t)):"Expired"==o.Verifyresponce&&(t==_twoFactor.AuthCodeReceiveMode.Email?($("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("This code is expired, please resend code.")):($("#dvCellCodeError").show(),$("#dvCellCodeError").text("This code is expired, please resend code.")),ShowLoader(!1),_twoFactor.cleartwofactortextbox(t))}},o.datamodel.Error=function(){ShowLoader(!1),vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()}},resetTimer:function(){var e=1*$("#hdnAuthCodeExpireTime").val()*60;if(e>0){d=Number(e);var t=Math.floor(d%3600/60),o=Math.floor(d%3600%60);o<10&&(o="0"+o),$("#twostepcountdown").text(t+":"+o)}},SaveFilterRequestForCardValidate:function(e,t=""){if(currentPage==_twoFactor.PageType.BusinessSignup)ShowLoader(!0),e.IsFromSignup=!0,(o=new vagaro.ajax).datamodel.Token="addbusiness/savefilterrequestforcardvalidate",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(o){if(null!=o&&(ShowLoader(!1),currentPage==_twoFactor.PageType.BusinessSignup)){if(o.Step=e.Step,vm.userccattemptdata=o,!isNullOrUndefineOrBlank(vm.userccattemptdata)&&(vm.userccattemptdata.IsBlock||vm.userccattemptdata.NoOfAttempt>=10)){var n=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/signup-1";window.setTimeout(function(){window.location.href=n},4300)}""!=t&&3==vm.userccattemptdata.Step&&(ShowLoader(!1),swal({title:t,text:"",type:"error",showCancelButton:!1,closeOnConfirm:!0,confirmButtonText:"OK",html:!0},function(e){"true"==$("#hdnIsShowBusinessCaptcha").val()&&0==isNullOrUndefineOrBlank(vm.userccattemptdata)&&vm.userccattemptdata.NoOfAttempt>=3?($("#zs_paymentframe").html(""),$("#zs_paymentframe").hide(),vm.ShowCustomCaptcha(),ShowLoader(!1)):vm.LoadCCFrame()}))}},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post();else if(currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag){ShowLoader(!0);var o=new vagaro.ajax;currentPage==_twoFactor.PageType.ProfilePage?o.datamodel.Token=ApiURLEnumMyAccount.SaveFilterRequestForCardValidate:o.datamodel.Token=_twoFactor.ApiURLEnum.SaveFilterrequestForCardValidate,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){if(null!=e){ShowLoader(!1);var t=e;!isNullOrUndefineOrBlank(t)&&t.IsBlock&&(CallWebServicehed("MySampleService.asmx/DoLogout","",CallSuccessLogout,CallFailed),CallbackforMobileApp(0,0,"","",0,6))}},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()}else currentPage==_twoFactor.PageType.CustomerSignup?(ShowLoadingPanelLogin(!0),(o=new vagaro.ajax).datamodel.Token="addbusiness/savefilterrequestforcardvalidate",o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){null!=e&&(ShowLoadingPanelLogin(!1),userccattemptdata=e,!isNullOrUndefineOrBlank(userccattemptdata)&&(userccattemptdata.IsBlock||userccattemptdata.NoOfAttempt>=$("#hdnFraudNoOfAttempt").val())&&window.setTimeout(function(){$("#divAuth").hide(),$("#pnlSignup").show(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").show(),$("#divConfirmBox").find(".w-button-default").attr("value","Cancel");var e=$("#spnCountryPhoneNo").text();showConfirmbox(_twoFactor.FailOTPMessage(e),"","Error Code: XJ140",!1,!1)},4300))},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()):currentPage==_twoFactor.PageType.CustomerSignIn?(ShowLoadingPanelLogin(!0),(o=new vagaro.ajax).datamodel.Token=_twoFactor.ApiURLEnum.SaveFilterrequestForCardValidate,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){void 0!==e&&null!=e&&(ShowLoadingPanelLogin(!1),(e.IsBlock||e.NoOfAttempt>=3)&&window.setTimeout(function(){bootbox.alert({className:"vagaro-midium-popup",message:_twoFactor.FailOTPMessage(),title:"Error Code: XJ140",callback:function(){window.location.reload()}})},4300))},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post()):currentPage==_twoFactor.PageType.ProfilePage&&(ShowLoader(!0),(o=new vagaro.ajax).datamodel.Token=ApiURLEnumMyAccount.SaveFilterRequestForCardValidate,o.datamodel.IsNewVagaroAPI=!0,o.datamodel.callback=function(e){if(null!=e){ShowLoader(!1);var t=e;!isNullOrUndefineOrBlank(t)&&t.IsBlock&&(CallWebServicehed("MySampleService.asmx/DoLogout","",CallSuccessLogout,CallFailed),CallbackforMobileApp(0,0,"","",0,6))}},o.datamodel.data=e,o.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},o.Post())},AllowNumberOnly:function(e){if(69==event.keyCode)return event.preventDefault(),!1;var t=$(e);t.removeClass("error"),t.next("span").hide(),13==event.keyCode&&("txtEmailCode"==$(e).attr("id")?_twoFactor.VerifyEmailCode():_twoFactor.VerifyCellCode()),/\D/g.test(t.val())&&t.val(t.val().replace(/\D/g,""));var o=t.val(),n=o.length;if(n<=0)return t.removeClass("filled"),!1;if(n>6)return t.val(o.substring(0,6)),!1;var r=/^\d+$/;if(currentPage==_twoFactor.PageType.CustomerSignup){if(!isNullOrUndefineOrBlank(o)&&!r.test(o))return event.preventDefault(),!1}else if(!isNullOrUndefineOrBlank(o)&&!r.test(o))return event.preventDefault(),!1;return"txtCellCode"!=e.id&&"txtEmailCode"!=e.id||t.addClass("filled"),!0},showErrorDiv:function(e,t=!1){var o=$("#spnCountryPhoneNo").text();e==_twoFactor.AuthCodeReceiveMode.Email?(t&&_twoFactor.AppendEmailScreen(ReturnValue,currentPage),_twoFactor.disabletwofactortextbox("#txtEmailCode"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("You have reached your limit of attempts. "+_twoFactor.FailOTPMessage(o,!0))):e==_twoFactor.AuthCodeReceiveMode.Cell?(t&&_twoFactor.AppendCellScreen(ReturnValue),_twoFactor.disabletwofactortextbox("#txtCellCode"),$("#dvCellCodeError").show(),$("#dvCellCodeError").text("You have reached your limit of attempts. "+_twoFactor.FailOTPMessage(o,!0))):e==_twoFactor.AuthCodeReceiveMode.EmailAndCell&&(_twoFactor.disabletwofactortextbox("#txtEmailCode"),$("#dvEmailCodeError").show(),$("#dvEmailCodeError").text("You have reached your limit of attempts. "+_twoFactor.FailOTPMessage(o,!0)))},validateEmail:function(){var e=$("#txtEmailInputCode").val();return""!=e?null==e.match(/^[A-Za-z0-9_\+-]+(\.[A-Za-z0-9_\+-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.([A-Za-z]{2,10})$/g)?($("#txtEmailInputCode").addClass("error").focus(),$("#dvEmailInputError").html("Invalid email address").show(),ShowLoadingPanelLogin(!1),!1):($("#txtEmailInputCode").removeClass("error"),$("#dvEmailInputError").html("").hide(),ShowLoadingPanelLogin(!1),13==event.keyCode&&_twoFactor.SendEmailCodeFromInputScreen(!0),!0):($("#txtEmailInputCode").addClass("error").focus(),$("#dvEmailInputError").html("Enter your email").show(),ShowLoadingPanelLogin(!1),!1)},BackFromAuth:function(e){if(e==_twoFactor.PageType.CustomerSignup){isResetTimer=!1;var t=$("#iFrameSignUp").contents();$("#pnlSignup",t).show(),$("#signupheaderpart").show(),$("#divAuth",t).hide(),$("#hdnIsResetCode",t).val("0"),(o=$("#dvRegHid")).length>0&&(o.removeClass("email"),o.removeClass("phone"),o.removeClass("success")),_twoFactor.isMobileDevice&&$("#btnCreateAccount",parent.document).show(),$("#iFrameSignUp",parent.document).parents().find("body").addClass("signupiframe")}else if(currentPage==_twoFactor.PageType.CustomerSignIn)ShowLoadingPanelLogin(!0),null!=typeof _twoFactor.Model.IsPolicyAck&&void 0!==_twoFactor.Model.IsPolicyAck&&_twoFactor.Model.IsPolicyAck?TwoStepAuth.init("privacypolicy",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_twoFactor.Model.IsPolicyAck,_twoFactor.Model.UserType,_twoFactor.Model.UserID,!0):isNullOrUndefineOrBlank(SkipTwoFactoFromSignIn)||SkipTwoFactoFromSignIn();else if(currentPage==_twoFactor.PageType.ProfilePage||currentPage==_twoFactor.PageType.CovidClean||currentPage==_twoFactor.PageType.ShoppingBag)$("#dvPhoneVerify").hide(),$("#dvEmailVerify").hide(),$("#divtwofactorauthentication").modal("hide");else if(currentPage==_twoFactor.PageType.CustomerSignup){var o;isResetTimer=!1,$("#pnlSignup").show(),$("#iFrameSignUp",parent.document).parents().find("#signupheaderpart").show(),$("#divAuth").hide(),(o=$("#iFrameSignUp",parent.document).parents().find("#dvRegHid")).length>0&&(o.removeClass("email"),o.removeClass("phone"),o.removeClass("success")),_twoFactor.isMobileDevice&&$("#btnCreateAccount",parent.document).show(),$("#iFrameSignUp",parent.document).parents().find("body").addClass("signupiframe")}else if(currentPage==_twoFactor.PageType.BusinessSignup){1==_twoFactor.Model.isFromInvalidEmailCell&&($("#hdnEmailAndCell2FScreen").val(_twoFactor.EmailAndCell2FScreen.None),_twoFactor.Model.isFromInvalidEmailCell=!1),vm.ISfromgetmailphonevalidated=!1,vm.isResetTimer=!1,$("#dvAuth").hide(),$("#divBusinessSteps").show();var n={step:-11,isNextClick:0},r=new vagaro.ajax;r.datamodel.Token=_twoFactor.ApiURLEnum.GetLogDataonBackClick,r.datamodel.IsNewVagaroAPI=!0,r.datamodel.data=n,r.datamodel.callback=function(e){},r.datamodel.Error=function(){vagaro.alert(_twoFactor.ValidationMessages.FailedErrorMessage)},r.Post()}else currentPage==_twoFactor.PageType.MultiLocation&&($find("mpeNewBusiness").show(),$("#divtwofactorauthentication").css("z-index","0"),$("#divtwofactorauthentication").hide())},validatePhone:function(e,t,o){if(currentPage==_twoFactor.PageType.CustomerSignIn)var n=$("#selectedCountrydiv").attr("data-countryid");else currentPage==_twoFactor.PageType.ProfilePage&&(n=$("#temphdncountryid").val());void 0!==o&&null!=o&&""!=o&&(n=o);var r=$(e),a=r.val().replace(/([()-\s])+/g,""),i=a.length;if(i<=0)return"#revtxtnightphoneCust"==t||"#revtxtdayphoneCust"==t||"#divInvalidMobileMessage"==t?$(t).hide():($(t).show(),$(t).html("Enter your mobile phone")),r.addClass("error").focus(),ShowLoadingPanelLogin(!1),!1;if(!isNullOrUndefineOrBlank(a)&&!/^\d+$/.test(a))return event.preventDefault(),ShowLoadingPanelLogin(!1),!1;if(2!=n&&11==i&&0==a[0]&&(i=(a=a.substring(1)).length),1==n||3==n){if(10!=i)return r.val(a),$(t).show(),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 10 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 10 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 10 digits")),r.addClass("error").focus(),!1}else if(2==n){if(i<10||i>11)return r.val(a),$(t).show(),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 10 or 11 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 10 or 11 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 10 or 11 digits")),r.addClass("error").focus(),!1;10==i&&0!=a[0]?i=(a=0+a).length:(i<=10||12==i)&&0==a[0]&&(i=(a=a.substring(1)).length),r.val(a.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"))}else if(4==n||5==n){if(i<9||i>10)return r.val(a),$(t).show(),"#revtxtnightphoneCust"==t?($("#revtxtnightphoneCust").attr("style","display:inline"),$(t).html("Night phone should be of 9 or 10 digits.")):"#revtxtdayphoneCust"==t?($("#revtxtdayphoneCust").attr("style","display:inline"),$(t).html("Day phone should be of 9 or 10 digits.")):("#divInvalidMobileMessage"==t&&$("#divInvalidMobileMessage").attr("style","display:inline"),$(t).html("Phone number should be of 9 or 10 digits")),r.addClass("error").focus(),!1;9==i&&0!=a[0]?i=(a=0+a).length:(i<=9||i>10)&&0==a[0]&&(i=(a=a.substring(1)).length),r.val(a.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3"))}return $(t).hide(),13==event.keyCode&&_twoFactor.SendPhoneCodeFromInputScreen(!0),!0},ShowCountry:function(){return $(".countryselectoption").is(":visible")?void $(".countryselectoption").hide():void $(".countryselectoption").show()},selectCountry:function(e,t){$("#selectedCountrydiv").removeClass().addClass("selectedcountry "+t),$("#selectedCountrydiv").attr("data-countryId",e),_twoFactor.Phone_format("#txtCellInputCode","#dvCellInputCodeError",e),_twoFactor.ShowCountry(),$("#txtCellInputCode").attr("tabindex",-1).focus(),_twoFactor.Model.DialingCode=2==e||5==e?2==e?"44":"353":""},Phone_format:function(e,t,o){if(currentPage==_twoFactor.PageType.CustomerSignIn)var n=$("#selectedCountrydiv").attr("data-countryId");else currentPage==_twoFactor.PageType.ProfilePage&&(n=$("#temphdncountryid").val());null!=typeof o&&null!=o&&""!=o&&(n=o);var r=$(e);/\D/g.test(r.val())&&r.val(r.val().replace(/\D/g,"")),1==n?r.removeClass("cntry-ca cntry-ie").addClass("cntry-us"):3==n?r.removeClass("cntry-us cntry-ie").addClass("cntry-ca"):5==n?r.removeClass("cntry-ca cntry-us").addClass("cntry-ie"):r.removeClass("cntry-ca cntry-us cntry-ie");var a=r.val().replace(/([()-\s])+/g,""),i=a.length;if(!(i<=0))return r.removeClass("error"),isNullOrUndefineOrBlank(a)||/^\d+$/.test(a)?($(t).hide(),2!=n&&11==i&&0==a[0]&&(i=(a=a.substring(1)).length),1!=n&&3!=n||10!=i?2==n?(10==i&&0!=a[0]?i=(a=0+a).length:(i<=10||12==i)&&0==a[0]&&(i=(a=a.substring(1)).length),10==i||11==i?r.val(a.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3")):r.val(a)):4==n||5==n?(9==i&&0!=a[0]?i=(a=0+a).length:(i<=9||i>10)&&0==a[0]&&(i=(a=a.substring(1)).length),9==i||10==i?r.val(a.replace(5==n?/(\d{3})\-?(\d{3})\-?(\d{4})/:/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3")):r.val(a)):r.val(a):3==n?r.val(a.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3")):r.val(a.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1) $2-$3")),ShowLoadingPanelLogin(!1),!0):(event.preventDefault(),ShowLoadingPanelLogin(!1),!1);ShowLoadingPanelLogin(!1)},formatEmail:function(e){var t=e.split("@");return 2==t.length&&(e=_twoFactor.formatCell(t[0],!0)+"@"+t[1]),e},formatCell:function(e,t=!1,o=0){var n="",r=3;e.length<=3&&(r=1);for(var a=0;a<e.length-r;a++)n+="*";if(0==t){switch(o){case"4":phoneNumHidden="(**) **** *";break;case"3":phoneNumHidden="***-***-*";break;case"2":phoneNumHidden="*** **** *";case"1":phoneNumHidden="(***) ***-*";break;default:phoneNumHidden=n}e=phoneNumHidden+e.substring(e.length-r,e.length)}else e=n+e.substring(e.length-r,e.length);return e},AdaPassiveMessage:function(e,t){$("#spnEmailCellcode").html(e),setTimeout(function(){$("#spnEmailCellcode").html("")},5e3),void 0!==t&&null!=t&&(t==_twoFactor.AuthCodeReceiveMode.Email||t==_twoFactor.AuthCodeReceiveMode.EmailAndCell?$("#txtEmailCode").focus():$("#txtCellCode").focus())},IsFromCookieLessWidget:function(){var e=!1;if("undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())e=!("undefined"==typeof _common||void 0===_common.IsCookieLessWidget||!_common.IsCookieLessWidget());else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&(e=!(void 0===window.parent._common||void 0===window.parent._common.IsCookieLessWidget||!window.parent._common.IsCookieLessWidget()))}catch(e){}return e},AjaxOld:function(e,t,o,n){var r=new vagaro.ajax;r.datamodel.Token=e,r.datamodel.data=t,r.datamodel.callback=o,r.datamodel.Error=n,r.Post()}};var intRegex=/^\d+$/;function pasteValues(e){var t=e.split("");$(t).each(function(e){var o="txtfirstcode";switch(e){case 1:o="txtsecondcode";break;case 2:o="txtthirdcode";break;case 3:o="txtfourcode";break;case 4:o="txtfivecode";break;case 5:o="txtsixcode";break;default:o="txtfirstcode"}$('.inputcode[name="'+o+'"]').val(t[e]),"txtfirstcode"==o&&$("#txtsixcode").focus()})}function ShowHideDoneMessage(e,t){if(currentPage==_twoFactor.PageType.MultiLocation)$(".multilocation-Success .text-block-28").html(e),$(".multilocation-Success").addClass("showmsgTop").css("display",""),setTimeout(function(){window.scrollTo({top:0,behavior:"smooth"})},200),setTimeout(function(){$(".multilocation-Success").removeClass("showmsgTop").css("display","")},3200);else if(currentPage==_twoFactor.PageType.CustomerSignup)window.parent.$(".banner-success-master.customerSignup .text-block-28").html(e),window.parent.$(".banner-success-master.customerSignup").addClass("showmsgTop").css("display",""),setTimeout(function(){window.scrollTo({top:0,behavior:"smooth"})},200),setTimeout(function(){window.parent.$(".banner-success-master").removeClass("showmsgTop").css("display","")},3200);else{$(".banner-success-master .text-block-28").html(e);var o=$(".banner-success-master");o.addClass("showmsgTop").css("display",""),e!=_twoFactor.SuccessMessage.EmailVerified&&e!=_twoFactor.SuccessMessage.PhoneVerified||setTimeout(function(){o.removeAttr("role").attr("aria-label",e).attr("tabindex",-1).focus()},300),setTimeout(function(){window.scrollTo({top:0,behavior:"smooth"})},200),setTimeout(function(){var t=$(".banner-success-master");t.removeClass("showmsgTop").css("display",""),e!=_twoFactor.SuccessMessage.EmailVerified&&e!=_twoFactor.SuccessMessage.PhoneVerified||(t.removeAttr("aria-label").attr("role","none"),setTimeout(function(){$("#h2AccountVerified").is(":visible")?$("#h2AccountVerified").attr("tabindex",-1).focus():($("#h2VerifyPhone").is(":visible")||e==_twoFactor.SuccessMessage.PhoneVerified)&&$("#h2VerifyPhone").attr("tabindex",-1).focus()},500))},3200)}}function GetDisplayMessageTime(e){var t=2e3;return""!=e&&e.length>0&&(e.length<50?t=2e3:e.length<100?t=3e3:e.length<200?t=4e3:e.length>200&&(t=7e3)),t}function isNullOrUndefineOrBlank(e){return void 0===e||null==e||""==e||null==e}$(document).on("input.fromManual",".inputcode",function(){intRegex.test($(this).val())||$(this).val("")}),$(document).on("focus","#twostepemailcodeinfo input",function(){(isiPhone||/iPad/.test(navigator.userAgent))&&setTimeout(function(){isNullOrUndefineOrBlank(currentPage)||currentPage!=_twoFactor.PageType.CustomerSignup?$("html").scrollTop("0"):$("html",parent.document).scrollTop("0")},100)}),$(document).on("focusin","#txtEmailInputCode,#txtEmailCode,#txtCellInputCode,#txtCellCode",function(){currentPage==_twoFactor.PageType.CustomerSignup&&_twoFactor.isMobileDevice&&$("body.customer-signup-body").addClass("keyboradopen")}),$(document).on("focusout","#txtEmailInputCode,#txtEmailCode,#txtCellInputCode,#txtCellCode",function(){currentPage==_twoFactor.PageType.CustomerSignup&&_twoFactor.isMobileDevice&&$("body.customer-signup-body").removeClass("keyboradopen")}),$(document).on("paste",".inputcode",function(){var e=$(this),t=e.val();e.val(""),e.one("input.fromPaste",function(){$currentInputBox=$(this);var o=$currentInputBox.val();6==o.length&&intRegex.test(o)?pasteValues(o):e.val(t),$(".inputcode").attr("maxlength",1)}),$(".inputcode").attr("maxlength",6)});var ajaxQueue=$({}),currentRequest=null;vagaro={},function(e){vagaro.ajax=function(){this.datamodel={},this.datamodel.url="",this.datamodel.data="",this.datamodel.callback="",this.datamodel.Token="",this.datamodel.Error,this.datamodel.async=!0,this.datamodel.ErrorMessage="An Error Has Occurred",this.datamodel.GroupToken="",this.datamodel.IsNewVagaroAPI=!1,this.datamodel.Proxy=!1,this.datamodel.RouteParameter={},this.datamodel.QueryStringParameter={},this.datamodel.merchantId="",this.datamodel.userId="",this.Post=function(){if("undefined"==typeof keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),o=this.datamodel.url,n=this.datamodel.data,r=this.datamodel.callback,a=this.datamodel.Token,i=this.datamodel.Error,d=this.datamodel.async,s=this.datamodel.ErrorMessage,l=this.datamodel.GroupToken,c=this.datamodel.Proxy,u=this.datamodel.RouteParameter={},h=this.datamodel.QueryStringParameter={},p=this.datamodel.merchantId="",f=this.datamodel.userId="";setTimeout(function(){t[0].datamodel.url=o,t[0].datamodel.data=n,t[0].datamodel.callback=r,t[0].datamodel.Token=a,t[0].datamodel.Error=i,t[0].datamodel.async=d,t[0].datamodel.ErrorMessage=s,t[0].datamodel.GroupToken=l,t[0].datamodel.Proxy=c,t[0].datamodel.RouteParameter=u,t[0].datamodel.QueryStringParameter=h,t[0].datamodel.merchantId=p,t[0].datamodel.userId=f,t[0].Post()},500)}else{var g=this.datamodel;g.async="undefined"!=typeof isWidget&&null!=isWidget&&"true"===isWidget.toString().toLowerCase()&&"undefined"!=typeof businessID&&null!=businessID&&(156973===parseInt(businessID)||383713===parseInt(businessID)||377983===parseInt(businessID)||430616===parseInt(businessID)||400713===parseInt(businessID))||g.async;var m={};1==g.Proxy?(m.Data=""+JSON.stringify(g.data),m.Token=g.Token,m.IsPublic=g.IsPublic,m.RouteParameter=g.RouteParameter,m.QueryStringParameter=g.QueryStringParameter):1==g.IsNewVagaroAPI?m=g.data:(m.Data=""+JSON.stringify(g.data),m.Token=g.Token);var v=this.datamodel.GroupToken;e.ajax({url:1==g.Proxy?this.seturl(2):this.seturl(1),type:"POST",contentType:"application/json; charset=utf-8",xhr:function(){return 1==g.IsNewVagaroAPI&&null!=window.childWindow&&g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1?new window.childWindow.XMLHttpRequest:new window.XMLHttpRequest},beforeSend:function(t){try{"function"==typeof EncH&&0==g.IsNewVagaroAPI&&t.setRequestHeader("H",EncH())}catch(e){}if(0==g.IsNewVagaroAPI){if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("K",getek());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("K",window.parent.getek())}catch(e){}if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("I",getei());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("I",window.parent.getei())}catch(e){}if("undefined"!=typeof getek&&"function"==typeof getek)t.setRequestHeader("Val",EncIV());else try{void 0!==window.parent.getek&&"function"==typeof window.parent.getek&&t.setRequestHeader("Val",window.parent.EncIV())}catch(e){}}if("undefined"!=typeof keepAlive&&t.setRequestHeader("keepAlive",keepAlive),1==e("#hdnToken1").length&&void 0!==e("#hdnToken1").val()&&t.setRequestHeader("token1",e("#hdnToken1").val()),1==e("#hdnToken2").length&&void 0!==e("#hdnToken2").val()&&t.setRequestHeader("token2",e("#hdnToken2").val()),1==e("#hdnToken0").length&&void 0!==e("#hdnToken0").val()&&t.setRequestHeader("token0",e("#hdnToken0").val()),void 0!==v&&null!=v&&""!=v?t.setRequestHeader("grouptoken",v):"undefined"!=typeof groupID&&t.setRequestHeader("grouptoken",groupID),"undefined"!=typeof myAccountUserGroupID&&t.setRequestHeader("usergrouptoken",myAccountUserGroupID),1==e("#hdnCheckInApp").length&&void 0!==e("#hdnCheckInApp").val()&&t.setRequestHeader("checkinApp",e("#hdnCheckInApp").val()),1==e("#hdnIsBrandedApp").length&&void 0!==e("#hdnIsBrandedApp").val()&&t.setRequestHeader("brandedApp",e("#hdnIsBrandedApp").val()),1==g.IsNewVagaroAPI&&g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1&&(1==e("#hdnCalendarVersion").length&&void 0!==e("#hdnCalendarVersion").val()?(t.setRequestHeader("Version",e("#hdnCalendarVersion").val()),t.setRequestHeader("Device","website"),t.setRequestHeader("DeviceID","calendar")):1==e("#hdnVersionDetail").length&&void 0!==e("#hdnVersionDetail").val()&&(t.setRequestHeader("Version",e("#hdnVersionDetail").val()),t.setRequestHeader("Device","website"),t.setRequestHeader("DeviceID","masterpage")),("undefined"!=typeof PublicBusinessID&&"undefined"!=typeof UserID||"undefined"!=typeof businessID&&"undefined"!=typeof UserID||"undefined"!=typeof BusinessID&&"undefined"!=typeof UserID||"undefined"!=typeof SecuBusinessID&&"undefined"!=typeof SecuUserID)&&getheader(t)),"undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue);else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue)}catch(e){}try{"undefined"!=typeof _freeCardReader&&void 0!==_freeCardReader.userdata&&null!=_freeCardReader.userdata&&void 0!==_freeCardReader.userdata.BusinessId&&t.setRequestHeader("businessId",_freeCardReader.userdata.BusinessId),"undefined"!=typeof _freeCardReader&&void 0!==_freeCardReader.userdata&&null!=_freeCardReader.userdata&&void 0!==_freeCardReader.userdata.UserId&&t.setRequestHeader("loggedInUserId",_freeCardReader.userdata.UserId)}catch(e){}try{void 0!==g.merchantId&&null!=g.merchantId&&""!=g.merchantId&&t.setRequestHeader("merchantId",g.merchantId),void 0!==g.userId&&null!=g.userId&&""!=g.userId&&t.setRequestHeader("userId",g.userId)}catch(e){}try{"undefined"!=vm&&"undefined"!=vm.V2VTransferCoreApiHeader&&"undefined"!=vm.V2VTransferCoreApiHeader._vdpb_id&&t.setRequestHeader("_vdpb_id",vm.V2VTransferCoreApiHeader._vdpb_id),"undefined"!=vm&&"undefined"!=vm.V2VTransferCoreApiHeader&&"undefined"!=vm.V2VTransferCoreApiHeader._vdpu_id&&t.setRequestHeader("_vdpu_id",vm.V2VTransferCoreApiHeader._vdpu_id)}catch(e){}},async:g.async,data:JSON.stringify(m),dataType:"json"}).done(function(e){if(1==g.IsNewVagaroAPI)(t=void 0!==e&&null!=e&&void 0!==e.CustomCode&&null!=e.CustomCode&&(g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1||g.Token.indexOf("myaccount")>-1))&&1032==e.CustomCode?window.location.href="/ScheduleMaintenance.aspx":t&&1036==e.CustomCode?window.location.reload():t&&1034==e.CustomCode?"function"==typeof ShowHideFailedMessageCommon?ShowHideFailedMessageCommon(e.Message):vagaro.alert({message:e.Message,title:"Invalid!"}):g.callback(e);else if(1==g.Proxy){var t;(t=void 0!==e&&null!=e&&void 0!==e.responseCode&&null!=e.responseCode&&(g.Token.indexOf("http")>-1&&g.Token.indexOf("api")>-1||g.Token.indexOf("myaccount")>-1))&&1032==e.responseCode?window.location.href="/ScheduleMaintenance.aspx":t&&1036==e.responseCode?window.location.reload():t&&1034==e.responseCode?"function"==typeof ShowHideFailedMessageCommon?ShowHideFailedMessageCommon(e.message):vagaro.alert({message:e.message,title:"Invalid!"}):g.callback(e)}else g.callback(e.d)}).fail(function(e){try{if(403===e.status)return void location.reload(!0)}catch(e){}if(void 0!==e&&null!=e&&999==e.status)return vagaro.reloadDetailPage(e.status,g.Token),void ShowLoader(!1);if(void 0===e||null==e||0!=e.status||"undefined"==typeof vgAppicationType||1!=vgAppicationType){if(""!=g.ErrorMessage){var t="",o="undefined"!=typeof isWidget&&null!=isWidget&&"true"===isWidget.toString().toLowerCase()&&"undefined"!=typeof businessID&&null!=businessID&&(156973===parseInt(businessID)||383713===parseInt(businessID)||377983===parseInt(businessID)||430616===parseInt(businessID)||400713===parseInt(businessID));try{t=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase().match(/com.vagaro.iospro/i),ShowLoader(!1)}catch(e){}!t&&!o&&"websiteapi/homepage/getupcomingappintmentdata"!=g.Token&&"websiteapi/homepage/getallpetdetails"!=g.Token&&"websiteapi/homepage/getupcominglivestreamclasses"!=g.Token&&g.Token.toLowerCase().indexOf("addloginamplitude")<0&&"addbusiness/signupbusinessailog"!=g.Token&&vagaro.alert({message:g.ErrorMessage+g.Token,title:"Oops!"})}void 0!==g.Error&&g.Error(e)}})}},this.PostQue=function(){if("undefined"==typeof keepAlive&&e("#IsWaitforKeepALive").length>0&&void 0!==e("#IsWaitforKeepALive").val()&&"true"===e("#IsWaitforKeepALive").val().toLowerCase()){var t=e(this),o=this.datamodel.url,n=this.datamodel.data,r=this.datamodel.callback,a=this.datamodel.Token,i=this.datamodel.Error,d=this.datamodel.async,s=this.datamodel.ErrorMessage;setTimeout(function(){t[0].datamodel.url=o,t[0].datamodel.data=n,t[0].datamodel.callback=r,t[0].datamodel.Token=a,t[0].datamodel.Error=i,t[0].datamodel.async=d,t[0].datamodel.ErrorMessage=s,t[0].PostQue()},500)}else{var l=this.datamodel,c={};1==l.IsNewVagaroAPI?c=l.data:(c.Data=""+JSON.stringify(l.data),c.Token=l.Token),this.que({url:this.seturl(1),type:"POST",contentType:"application/json; charset=utf-8",beforeSend:function(t){try{"function"==typeof EncH&&t.setRequestHeader("H",EncH())}catch(e){}if(0==l.IsNewVagaroAPI&&(t.setRequestHeader("K",getek()),t.setRequestHeader("I",getei()),t.setRequestHeader("Val",EncIV())),"undefined"!=typeof keepAlive&&t.setRequestHeader("keepAlive",keepAlive),1==e("#hdnToken1").length&&void 0!==e("#hdnToken1").val()&&t.setRequestHeader("token1",e("#hdnToken1").val()),1==e("#hdnToken2").length&&void 0!==e("#hdnToken2").val()&&t.setRequestHeader("token2",e("#hdnToken2").val()),1==e("#hdnToken0").length&&void 0!==e("#hdnToken0").val()&&t.setRequestHeader("token0",e("#hdnToken0").val()),1==e("#hdnCheckInApp").length&&void 0!==e("#hdnCheckInApp").val()&&t.setRequestHeader("checkinApp",e("#hdnCheckInApp").val()),"undefined"!=typeof groupID&&t.setRequestHeader("grouptoken",groupID),"undefined"!=typeof _common&&void 0!==_common.IsCookieLessWidget&&_common.IsCookieLessWidget())"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue);else try{void 0!==window.parent._common&&void 0!==window.parent._common.IsCookieLessWidget&&window.parent._common.IsCookieLessWidget()&&"undefined"!=typeof widgetcookievalue&&null!=widgetcookievalue&&""!=widgetcookievalue&&t.setRequestHeader("widgetcookievalue",widgetcookievalue)}catch(e){}},data:JSON.stringify(c),dataType:"json",success:function(e){1==l.IsNewVagaroAPI?l.callback(e):l.callback(e.d)},error:function(e){try{if(403===e.status)return void location.reload(!0)}catch(e){}if(void 0!==e&&null!=e&&999==e.status)return vagaro.reloadDetailPage(e.status,l.Token),void ShowLoader(!1);if("abort"!=e.statusText){if(""!=l.ErrorMessage){try{ShowLoader(!1)}catch(e){}l.Token.toLowerCase().indexOf("addloginamplitude")<0&&vagaro.alert({message:l.ErrorMessage+l.Token,title:"Oops!"})}void 0!==l.Error&&l.Error(e)}}})}},this.que=function(t){var o=t.complete;ajaxQueue.clearQueue(),currentRequest&&currentRequest.abort(),ajaxQueue.queue(function(n){t.complete=function(){o&&o.apply(this,arguments),n()},currentRequest=e.ajax(t)})},this.Get=function(){e.ajax({url:this.seturl(this.datamodel.url),type:"GET",data:JSON.stringify(this.datamodel.data),dataType:"json"}).done(function(e){this.datamodel.callback(e)}).fail(function(e){this.datamodel.ErrorMessage.length>0&&(ShowLoader(!1),vagaro.alert({message:Model.ErrorMessage,title:"Oops!"})),"undefined"!=this.datamodel.Error&&this.datamodel.Error(e)})},this.GetDirectV2=function(){var t=this,o=t.datamodel.url;if(t.datamodel.RouteParameter&&"object"==typeof t.datamodel.RouteParameter&&Object.keys(t.datamodel.RouteParameter).length>0)for(var n in t.datamodel.RouteParameter)if(t.datamodel.RouteParameter.hasOwnProperty(n)){var r=t.datamodel.RouteParameter[n];null!=r&&""!==r&&(o+=(o.endsWith("/")?"":"/")+encodeURIComponent(r))}if(t.datamodel.QueryStringParameter&&"object"==typeof t.datamodel.QueryStringParameter&&Object.keys(t.datamodel.QueryStringParameter).length>0){var a=e.param(t.datamodel.QueryStringParameter);o+=(o.includes("?")?"&":"?")+a}var i={};t.datamodel.merchantId&&(i.MerchantId=t.datamodel.merchantId),t.datamodel.userId&&(i.UserId=t.datamodel.userId),void 0!==t.datamodel.ErrorMessage&&(i.IsErrorMsgReq=""!==t.datamodel.ErrorMessage?"true":"false"),e.ajax({url:o,type:"GET",headers:i,dataType:"json"}).done(function(e){"function"==typeof t.datamodel.callback&&t.datamodel.callback(e)}).fail(function(e){t.datamodel.ErrorMessage&&t.datamodel.ErrorMessage.length>0&&(ShowLoader(!1),vagaro.alert({message:t.datamodel.ErrorMessage,title:"Oops!"})),"function"==typeof t.datamodel.Error&&t.datamodel.Error(e)})},this.seturl=function(e){var t=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";if(t.indexOf("webcache.googleusercontent.com")>-1&&"vagaro.com"==DomainName&&(t="https://www.vagaro.com/"),1==e){var o="";if("undefined"!=typeof regionId&&""!=regionId&&(o=regionId+"/"),1==this.datamodel.IsNewVagaroAPI)this.datamodel.Token.indexOf("http")>-1&&this.datamodel.Token.indexOf("api")>-1?t=this.datamodel.Token:("undefined"!=typeof vagaroSiteBuilder&&null!=vagaroSiteBuilder&&void 0!==vagaroSiteBuilder.BaseURLOfWebSiteBuilderAPI&&t.indexOf(vagaroSiteBuilder.BaseURLOfWebSiteBuilderAPI)>-1&&(t=vagaroSiteBuilder.BaseURLOfVagaroAPI),t=t+o+this.datamodel.Token);else try{t=void 0!==this.datamodel.Token&&null!=this.datamodel.Token&&""!=this.datamodel.Token?t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson?token="+this.datamodel.Token:t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}catch(e){t=t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}}else if(2==e){o="";"undefined"!=typeof regionId&&""!=regionId&&(o=regionId+"/"),t=t+o+"api/proxy"}else try{t=void 0!==this.datamodel.Token&&null!=this.datamodel.Token&&""!=this.datamodel.Token?t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson?token="+this.datamodel.Token:t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}catch(e){t=t+o+"WebServices/MySampleService.asmx/PageMethodsProxyJson"}return t}},vagaro.alert=function(e){"undefined"!=typeof bootbox?bootbox.alert(e):ShowPopupAlert(e.message,1,null)},vagaro.alertsmall=function(e){"undefined"!=typeof bootbox?bootbox.alertsmall(e):ShowPopupAlert(e.message,1,null)},vagaro.alertmidium=function(e,t){"undefined"!=typeof bootbox?bootbox.alert({className:"vagaro-midium-popup",message:e,title:"Alert",callback:"function"==typeof t?t:null}):ShowPopupAlert(e.message,1,null)},vagaro.popup=function(e){"undefined"!=typeof bootbox?bootbox.dialog(e):ShowPopupAlert(e.message,4,null)},vagaro.confirm=function(e){"undefined"!=typeof bootbox&&bootbox.confirm(e)},vagaro.confirmsmall=function(e){"undefined"!=typeof bootbox&&bootbox.confirm(e,e.success.label,e.success.label)},vagaro.prompt=function(){"undefined"!=typeof bootbox&&bootbox.prompt(options)},vagaro.reloadDetailPage=function(e,t){999===e&&["SaveSettingHistory","GetServiceProviderDetails","GetServicesDetails","GetShoppingCartInventory","GetShoppingCartProductType","GetShoppingCartBrand","GetShoppingCartPopupData","GetShoppingCartPopupDataNew","AddToCart","MembershipAddToCart","GiftCertificateAddToCart","ServiceAddToCart","ClassAddToCart","UpdateCartItem","UpdateMutipleCartItem","GetNextAvailableDateWorkShop","RemoveCartItem","ValidateShoppingCartData","GetCartCount","GetEventCartDetail","GetGiftcertificateCategory","GetReturnPolicy","GetAppointmentCancellationPolicy","BindSalonServiceComboForGC","GetGiftCertificateExpMonth","GetGiftCertificateImgByCategory","GetShopDetailStyle","LikeStyle","GetStyleImagesCommaSeparated","GetBookRequestButtonText","GetDealDataWithServicesByPromotionID","ShareSPorStyle","GetCustomerNameByEmailId","GetAvailableDates","SendEmailtoSP","ShowFavorites","GetAvailableMultiAppointments","GetUserCCDetailsByOnlyUserID","GetStatesByCountryID","GetStatesByMultipleCountryID","CheckUserExistsByUserId","GetValidatePromotionsDetails","GetAvailableDatesForEvents","GetEventDetailAndAvailableDates","CheckUserExistanceInEvent","GetEventDetailForReschedule","GetEventDetailForRescheduleForWorkShop","GetClassCancellationPolicy","GetMembershipAndPackageByBusinessId","GetOnlineCheckoutTipSetting","GetOnlineBookingTabDetail","GetGCPackageAndPointForOnlineCheckout","RemoveCehckOutItem","ValidatePromocodeAndGetDetails","GetOnlineInvoiceBusinessUserDetailsByInvoiceId","GetAllPetDetails","GetMyAppintmentData","GetMyProducts","GetMyAccountFavoriteBusinesses","GetBusinessPoints","GetCustomerPoints","GetUserCompleteAppointmentsForReviews","GetGiftCertificateDetails","GetBusinessMembershipNew","GetMyAccountInvoices","GetFamilyAndFriendsDetailsByUserID"].indexOf(t)>-1&&location.reload(!0)},vagaro.ajaxCall=function(e,t,o,n,r,a,i,d){var s=new vagaro.ajax;s.datamodel.Token=e,s.datamodel.data=t,s.datamodel.callback=o,s.datamodel.Error=n,void 0!==a&&1==a&&(s.datamodel.IsNewVagaroAPI=a),void 0!==d&&1==d&&(s.datamodel.ErrorMessage=""),r?s.PostQue():s.Post()},vagaro.ajaxCallV2=function(e,t,o,n,r,a,i,d,s,l){var c=new vagaro.ajax;c.datamodel.Token=e,c.datamodel.data=t,c.datamodel.callback=r,c.datamodel.Error=a,c.datamodel.Proxy=!0,c.datamodel.IsPublic=!1,void 0!==l&&(c.datamodel.IsPublic=l),void 0!==o&&null!=o&&(c.datamodel.RouteParameter=o),void 0!==n&&null!=n&&(c.datamodel.QueryStringParameter=n),void 0!==d&&1==d&&(c.datamodel.ErrorMessage=""),void 0!==s&&void 0!==s.MerchantId&&null!==s.MerchantId&&""!==s.MerchantId&&(c.datamodel.merchantId=s.MerchantId),void 0!==s&&void 0!==s.UserId&&null!==s.UserId&&""!==s.UserId&&(c.datamodel.userId=s.UserId),i?c.PostQue():c.Post()},vagaro.ajaxCallV2Direct=function(e,t,o,n,r,a,i,d){var s=new vagaro.ajax;"undefined"==VagaroCorePublicAPIURLV2||isNullOrUndefineOrBlank(VagaroCorePublicAPIURLV2)?(VagaroCorePublicAPIURLV2="https://api.vagaro.com/US02/api/v2/public/",s.datamodel.Token=VagaroCorePublicAPIURLV2+e):s.datamodel.Token=VagaroCorePublicAPIURLV2+e,s.datamodel.IsNewVagaroAPI=!0,s.datamodel.Proxy=!1,void 0!==o&&null!=o&&(s.datamodel.RouteParameter=o),void 0!==n&&null!=n&&(s.datamodel.QueryStringParameter=n),void 0!==i&&1==i&&(s.datamodel.ErrorMessage=""),void 0!==d&&void 0!==d.MerchantId&&null!==d.MerchantId&&""!==d.MerchantId&&(s.datamodel.merchantId=d.MerchantId),void 0!==d&&void 0!==d.UserId&&null!==d.UserId&&""!==d.UserId&&(s.datamodel.userId=d.UserId),s.datamodel.data=t,"undefined"!=typeof isAsync&&null!=isAsync&&(s.datamodel.async=isAsync),s.datamodel.Error=a,s.datamodel.callback=r,s.datamodel.url=s.datamodel.Token,s.GetDirectV2()},vagaro.VagaroCoreApiResponseCode={Success:1e3,Error:1001,UnderMaintanance:1032,QuotaExceeded:1038},vagaro.VagaroCoreApiStatusCode={OK:200,Created:201,BadRequest:400}}(jQuery);var isNullOrUndefineOrBlank=e=>void 0===e||null==e||""==e||null==e;function onKeyPressBlockNumbers(e){var t=window.event?window.event.keyCode:e.which;if(46!=t&&(32==t||39==t||46==t||8==t||9==t||189==t||0==t))return t;var o=String.fromCharCode(t),n=/\d/;return window.event?event.returnValue=n.test(o):n.test(o)}function resize_bg(){$(".replaced").css({left:"160px"}),$("#fullbackground-wrapper").css("display","block"),$(".model").css("padding-left","0px!important");var e=$(window).width(),t=$(window).height(),o=$(".replaced").width()/$(".replaced").height(),n=e,r=Math.round(n/o);if(r<t){r=t,n=Math.round(r*o);var a=Math.round((n-e)/2);$(".replaced").css("left","-"+a+"px")}$(".replaced").width(n),$(".replaced").height(r)}function onOnlineiFrameLoad(){loader(!1)}function ajaxCallV2DirectAsync(e,t,o,n,r=!1,a={}){return new Promise((i,d)=>{try{vagaro.ajaxCallV2Direct(e,t,o,n,e=>i(e),e=>d(e),r,a)}catch(e){d(e)}})}!function(e){e.fn.applyupdown=function(t,o){t?(this.parent().find(".arrow-up-down").find(".uparrow").bind(o,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings("input:text"),n=0;null!=o.attr("max")&&(n=o.attr("max"));var r=parseFloat(o.val());(0==n||r<n)&&o.val(r+1).change()}}),this.parent().find(".arrow-up-down").find(".downarrow").bind(o,function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings("input:text");null!=o.attr("min")&&(max=o.attr("min"));var n=parseFloat(o.val());(0==max||n>max)&&o.val(n-1).change()}})):(this.parent().siblings(".arrow-up-down").find(".uparrow").bind("click",function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings(".upDownArow").find("input:text"),n=0;null!=o.attr("max")&&(n=o.attr("max"));var r=parseFloat(o.val());(0==n||r<n)&&o.val(r+1).change()}}),this.parent().siblings(".arrow-up-down").find(".downarrow").bind("click",function(){var t=e(this).attr("disabled");if(void 0===t||!1===t){var o=e(this).parent().siblings(".upDownArow").find("input:text");null!=o.attr("min")&&(max=o.attr("min"));var n=parseFloat(o.val());(0==max||n>max)&&o.val(n-1).change()}})),this.bind("keyup",function(t){var o=0,n=0,r=e(this);if(38==t.keyCode){null!=r.attr("max")&&(o=r.attr("max"));var a=parseFloat(r.val());(0==o||a<o)&&r.val(a+1).change()}else if(40==t.keyCode){null!=r.attr("min")&&(o=r.attr("min"));a=parseFloat(r.val());(0==o||a>o)&&r.val(a-1).change()}else{null!=r.attr("max")&&(o=parseFloat(r.attr("max"))),null!=r.attr("min")&&(n=parseFloat(r.attr("min")));a=parseFloat(r.val());0!=o&&a>o?r.val(o).change():0!=n&&a<n&&r.val(n).change()}});var n=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";return this.bind(n,function(t){var o=0,r=e(this),a=e(this).attr("disabled");if(void 0===a||!1===a){if("mousewheel"==n){if(t.originalEvent.wheelDelta/120>0){null!=r.attr("max")&&(o=r.attr("max"));var i=parseFloat(r.val());(0==o||i<o)&&r.val(i+1).change()}else if(t.originalEvent.wheelDelta/120<0){null!=r.attr("min")&&(o=r.attr("min"));i=parseFloat(r.val());(0==o||i>o)&&r.val(i-1).change()}}else if(t.originalEvent.detail>0){null!=r.attr("max")&&(o=r.attr("max"));i=parseFloat(r.val());(0==o||i<o)&&r.val(i+1).change()}else if(t.originalEvent.detail<0){null!=r.attr("min")&&(o=r.attr("min"));i=parseFloat(r.val());(0==o||i>o)&&r.val(i-1).change()}t.preventDefault(),t.stopPropagation()}}),this}}(jQuery),Object.keys||(Object.keys=function(e){var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t}),jQuery,vagaro.commonUtils={},vagaro.commonUtils.isNullOrUndefined=function(e){return void 0===e||null==e},vagaro.commonUtils.isFunction=function(e){return"function"==typeof e},vagaro.commonUtils.CheckPhonenoCount=function(e,t){var o=e;return null!=o&&null!=o&&""!=o?"4"==t?9==o.length?0+e:10==o.length?e:null:e:1},radGridWrapper=function(e){var t=this;return t.gridEvents={onRowMouseOver:null,onRowMouseOut:null,onRowDropped:null,onRowClick:null,onGridCreated:null},t.clientId=e,t.getGrid=function(){return $find(t.clientId)},t.getDataItems=function(){return t.getMasterTableView().get_dataItems()},t.getDataItem=function(e){return t.getMasterTableView().get_dataItems()[e]},t.getHTMLElement=function(e){return t.getMasterTableView().get_dataItems()[e].get_element()},t.addCssClassToRow=function(e,o){var n=t.getHTMLElement(e);$(n).addClass(o)},t.removeCssClassToRow=function(e,o){var n=t.getHTMLElement(e);$(n).removeClass(o)},t.getDataKeyValue=function(e,o){return t.getDataItem(e).getDataKeyValue(o)},t.getDataKeyValueFromRow=function(e,t){return e.getDataKeyValue(t)},t.getMasterTableView=function(){return t.getGrid().get_masterTableView()},t.dataBind=function(e){var o=t.getMasterTableView();o.set_dataSource(e),o.dataBind()},t.getSelectedItems=function(){return t.getMasterTableView().get_selectedItems()},t.selectItemByIndex=function(e){t.getMasterTableView().selectItem(e)},t.getItemIndex=function(e){return parseInt(e.get_itemIndexHierarchical())},t.getCellValueByKey=function(e,o){return t.getMasterTableView().getCellByColumnUniqueName(e,o)},t.getCell=function(e,o){var n=t.getMasterTableView(),r=n.get_dataItems()[e];return n.getCellByColumnUniqueName(r,o)},t.destroy=function(){t.clientId=null,t.gridEvents.onGridCreated=null,t.gridEvents.onRowClick=null,t.gridEvents.onRowDropped=null,t.gridEvents.onRowMouseOut=null,t.gridEvents.onRowMouseOver=null},t.onRowMouseOver=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOver)&&t.gridEvents.onRowMouseOver(e,o)},t.onRowMouseOut=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowMouseOut)&&t.gridEvents.onRowMouseOut(e,o)},t.onRowDropped=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowDropped)&&t.gridEvents.onRowDropped(e,o)},t.onRowClick=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onRowClick)&&t.gridEvents.onRowClick(e,o)},t.onGridCreated=function(e,o){vagaro.commonUtils.isFunction(t.gridEvents.onGridCreated)&&t.gridEvents.onGridCreated(e,o)},t.getAllBoundKeyValues=function(){return t.getGrid()._clientKeyValues},t.updateKeyValue=function(e,o,n){var r=t.getAllBoundKeyValues();vagaro.commonUtils.isNullOrUndefined(r)||0==r.length||(r[e][o]=n)},t.showHideItem=function(e,o){var n=t.getMasterTableView();o?n.showItem(e):n.hideItem(e)},t.showHideItems=function(e,o){if(!vagaro.commonUtils.isNullOrUndefined(e)&&0!=e.length)for(var n=t.getMasterTableView(),r=0;r<e.length;r++){var a=e[r];o?n.showItem(a):n.hideItem(a)}},t},function(e){_CustomTooltip={Msg:{FlagshipDisabledMsg:"Cannot edit fields synced from a flagship location."}},e(document).on("mouseenter",".custom-tooltip",function(t){var o=e(this),n=e(this).attr("data-tooltip");void 0!==e(this).data("angular-tooltip")&&null!=e(this).data("angular-tooltip")&&(n=e(this).data("angular-tooltip"));var r=e('<div class="v-tooltip-content tooltip top mllocation-tooltip-content" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner">'+n+"</div></div>");e(this).after(r),e(".v-tooltip-content").position({of:o,at:"center top",my:"center bottom",collision:"flipfit"}),e(".custom-tooltip-left").next(".v-tooltip-content").find(".tooltip-arrow").position({of:o,at:"center top",my:"center bottom",collision:"flipfit"})}),e(document).on("mouseleave",".custom-tooltip",function(t){e(".v-tooltip-content").remove()})}(jQuery),$.fn.PhonePlugin=function(e){var t=$.extend({Control:this,ControlId:this.attr("id"),CurrentLocationCountryID:1,CountryId:0,UserRole:2,ControlText:"Cell",IsPhoneNoRequire:!1,IsDisabled:!1,ScrollType:2,CellOldValue:"",ValidateReturnObject:{}},e),o={model:{countryFlag:{1:"us-f",2:"uk-f",3:"canada-f",4:"aus-f"},countryDialingCode:{1:"1",2:"44",3:"1",4:"61"},CountryId:void 0===t.CountryId||0==t.CountryId?"undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):t.CurrentLocationCountryID:t.CountryId,DialingCode:"+1",errorMessage:"Something went wrong, Try Again.",IsPaste:!1,IsSelected:!1,nDotCount:0,CountryList:{},CountryCode:"US"},ControlsPrefix:{PhoneControl:"#"+t.ControlId,PhoneControllerCountry:"#PhoneControllerCountry"+t.ControlId,countrySelectOption:"#countryselectoption"+t.ControlId,ddlMainCountry:"#ddlMainCountry"+t.ControlId,dvWrap:"#dvWrap"+t.ControlId,dvDialingCode:"#dvDialingCode"+t.ControlId},Message:{InvalidPhone:"Invalid ",InvalidLength:" should be of ",Required:" is required."},WarningType:{Required:1,InvalidPhone:2,InvalidLength:3}},n=()=>{if(E())r(_glbPluginCountryList);else{var e={},t={businessID:0,loginUserID:0};e.RegisterDeviceRequest=t,o="GetAllCountryList",n=e,a=r,i=d,s=!1,l=!0,(u=new vagaro.ajax).datamodel.Token=o,u.datamodel.data=n,u.datamodel.callback=a,u.datamodel.Error=i,void 0!==c&&null!=c&&1==c&&(u.datamodel.IsNewVagaroAPI=!0),void 0!==l&&1==l&&(u.datamodel.ErrorMessage=""),s?u.PostQue():u.Post()}var o,n,a,i,s,l,c,u},r=e=>{if(void 0!==e&&null!=e&&e.length>0){E()||(_glbPluginCountryList=e),o.model.countryFlag={},o.model.countryDialingCode={},o.model.CountryList=e;var n='<optgroup label="Current Location">',r='<optgroup label="Other Locations">';e.sort((e,t)=>{var o=e.CountryName.toUpperCase(),n=t.CountryName.toUpperCase();return o<n?-1:o>n?1:0}),$.each(e,function(e,a){if(2==t.UserRole||1==t.UserRole&&!s(a.IsBusinessUseOnly)&&1==a.IsBusinessUseOnly){var i="liFront"+t.ControlId+e;a.CSSClass,a.CountryName,a.DialingCode;$("#"+i).bind("click",function(){o.model.CountryId=a.CountryID,o.model.DialingCode=a.DialingCode,l()}),o.model.countryFlag[a.CountryID]=a.CSSClass,o.model.countryDialingCode[a.CountryID]=a.DialingCode,a.CountryID==("undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):t.CurrentLocationCountryID)?n+=' <option class="'+a.CSSClass+'" value="'+a.CountryID+'">'+a.CountryName+"+"+a.DialingCode+"</option> </optgroup >":r+=' <option class="'+a.CSSClass+'" value="'+a.CountryID+'">'+a.CountryName+"+"+a.DialingCode+"</option>"}}),r+="</optgroup >",$(o.ControlsPrefix.ddlMainCountry).append(n+r),$(o.ControlsPrefix.ddlMainCountry).select2({searchInputPlaceholder:"Search for a Country",closeOnSelect:!1,dropdownCssClass:"all-country-flag",formatResult:a}).on("select2-selected",function(e){o.model.CountryId=parseInt(e.choice.id),l(),P(),setTimeout(function(){$(o.ControlsPrefix.PhoneControl).focus()},100)}).on("select2-opening",function(e){!1===$(e.target).is(".select2-container")&&$(".select2-dropdown-open").select2("close"),$(o.ControlsPrefix.ddlMainCountry).select2("data",{id:o.model.CountryId})}).on("select2-open",function(e){if(("undefined"==typeof IsMobileDevice||s(IsMobileDevice))&&(isiPhone=null!=navigator.userAgent.match(/iphone/i),isWindowsPhone=navigator.userAgent.match(/windows phone/i)||!1,AndroidMobile=null!=navigator.userAgent.match(/Android/i)&&null!=navigator.userAgent.match(/Mobile/i)&&null==navigator.userAgent.match(/Windows/i),IsMobileDevice=/iPad/.test(navigator.userAgent)||isiPhone||isWindowsPhone||AndroidMobile||/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&($(window).width()<=850||$(window).height()<=850)||/androidcheckin/.test(navigator.userAgent)),1==IsMobileDevice&&$(".select2-input text-primary demo, :focus,input").prop("focus",!1).blur(),this.selectedIndex>0){var o=$("#select2-drop .select2-results"),n=o.find(".select2-highlighted").position().top;1==t.ScrollType?o.scrollTop(n+o.scrollTop()):o.scrollTop(n)}}),l(),P()}},a=e=>{var t=e.text.split("+");return $('<span class="'+e.css+'" >'+t[0]+'</span><span class="country-code-text" >'+(1==s(t[1])?"":"+"+t[1])+"</span>")},d=e=>{swal({title:o.model.errorMessage,text:"",timer:4e3,type:"error",showConfirmButton:!1,customClass:"swal-nobutton swal-white-greenbtn"},function(e){swal.close()})},s=e=>void 0===e||null==e||""==e||null==e,l=()=>{0==o.model.CountryId&&(o.model.CountryId=1),void 0!==o.model.countryFlag[o.model.CountryId]&&null!=o.model.countryFlag[o.model.CountryId]||(o.model.CountryId=1),o.model.CountryId="undefined"!=typeof countryIdBusDetail&&null!=countryIdBusDetail&&""!=countryIdBusDetail?parseInt(countryIdBusDetail,10):o.model.CountryId;var e=o.model.countryFlag[o.model.CountryId];s(e)&&(o.model.CountryId=t.CurrentLocationCountryID,e=o.model.countryFlag[o.model.CountryId]),o.model.DialingCode=o.model.countryDialingCode[o.model.CountryId],$(o.ControlsPrefix.PhoneControllerCountry).removeClass(),$(o.ControlsPrefix.PhoneControllerCountry).addClass("selectedcountry "+e),$(o.ControlsPrefix.myCountryPopup).removeClass(),$(o.ControlsPrefix.myCountryPopup).addClass("selectedcountry "+e),$(o.ControlsPrefix.countrySelectOption).removeAttr("style").attr("style","display:none"),$(o.ControlsPrefix.countrySelectOption).removeClass("active"),$(o.ControlsPrefix.dvWrap).removeClass(),$(o.ControlsPrefix.dvWrap).addClass("select-country-mar vg-select-icon-mar input-focus-relative "+e),$(o.ControlsPrefix.dvDialingCode).text("+"+o.model.DialingCode)},c=()=>{u(),p(3,0),C()},u=()=>{var e=t.Control,o=$(e).val().trim();$(e).val(h(o))},h=e=>(e.match(/(<([^>]+)>)/gi)&&(e=e.replace(/(<([^>]+)>)/gi,"")),e),p=(e,t)=>{var n=$(o.ControlsPrefix.PhoneControl);nDotCount=0;var r=0;if(n.val(f(g(n.val(),e),20)),1==e&&1==v(n.val())){if(n.val(Math.round(n.val()*Math.pow(10,t))/Math.pow(10,t)),0==v(n.val()))for(r=0;r<t;r++)0;else if(n.val().length-1-y(n.val())<t)for(r=n.val().length-1-y(n.val());r<t;r++)0}else if(1==e&&0==v(n.val()))for(n.val(Math.round(n.val()*Math.pow(10,t))/Math.pow(10,t)),r=0;r<t;r++)0},f=(e,t)=>{if(t>0&&t<e.length){var o=e.split(""),n="",r=0;for(r=0;r<t;r++)n+=o[r];return n}return e},g=(e,t)=>{var o="",n=e.length,r=e.split(""),a=0,i=0;for(i=0;i<n;i++)1==m(r[i],t)&&(1==t?"."==r[i]&&0==a&&1!=nDotCount?(o+=r[i],a+=1,nDotCount=1):"."!=r[i]&&(o+=r[i]):o+=r[i]);return o},m=(e,t)=>{var o;0==t?o="0123456789":1==t?o="0123456789.":2==t?o="0123456789 ":3==t&&(o="0123456789()- ");var n,r=!0;for(i=0;i<e.length&&1==r;i++)n=e.charAt(i),-1==o.indexOf(n)&&(r=!1);return r},v=e=>{var t=0,o=!1;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(o=!0);return o},y=e=>{var t=0,o=0;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(o=t);return o},C=(e=!1)=>{var n=$(o.ControlsPrefix.PhoneControl),r=!0,a=o.model.CountryId,i="",d=0;if(n.val().length>0){var l=n.val().replace(/[^0-9.]/g,"").trim();if("undefined"!=typeof _sharing&&null!=_sharing&&void 0!==_sharing.SelectedFFRelation&&null!=_sharing.SelectedFFRelation&&""!=_sharing.SelectedFFRelation&&"child"==_sharing.SelectedFFRelation.toLowerCase()&&""===l)return!e||{isSucess:!0,WarningMessage:"",WarningType:0};var c="";if(a<=4)Minlength=4==a||2==a?9:10,Maxlength=4==a||2==a?11:10,c=Minlength==Maxlength?" 10 ":" 9 to 11 ",""==n.val().replace(/[^0-9.]/g,"").trim()?(r=!1,i="Please enter "+t.ControlText+".",d=o.WarningType.Required):(n.val().trim().match(/\d/g).length<Minlength||n.val().trim().match(/\d/g).length>Maxlength)&&(r=!1,i=t.ControlText+o.Message.InvalidLength+c+"digits.",d=o.WarningType.InvalidLength);else{var u=new libphonenumber.AsYouType(F(o.model.CountryId).CountryCode);u.input(n.val().replace(/[^0-9.]/g,""));r=u.isValid()}}else 1==t.IsPhoneNoRequire&&(r=!1,d=o.WarningType.Required,i=t.ControlText+o.Message.Required);return r?n.removeClass("errorInput"):(n.addClass("errorInput"),0==e&&(d=s(i)?o.WarningType.InvalidPhone:d,"undefined"!=typeof Webflow&&null!=Webflow&&void 0!==Webflow.require&&null!=Webflow.require&&S(s(i)?o.Message.InvalidPhone+t.ControlText+".":i))),0==e?r:(ValidateCellNoResult={},ValidateCellNoResult.WarningMessage=s(i)?o.Message.InvalidPhone+t.ControlText+".":i,ValidateCellNoResult.isSucess=r,ValidateCellNoResult.WarningType=d,ValidateCellNoResult)},w=(e,n)=>{var r=t.Control;if("Microsoft Internet Explorer"==navigator.appName){if(o.model.IsSelected){o.model.nDotCount=0;var a=f(b(r.val(),n),11);r.val(a),o.model.IsSelected=!1}8!=e.keyCode&&46!=e.keyCode||v(r.val())||(o.model.nDotCount=0),""==r.val()&&(o.model.nDotCount=0)}else{if("keyup"==e.type&&o.model.IsPaste){o.model.nDotCount=0;a=f(b(r.val(),n),11);r.val(a),o.model.IsPaste=!1}8!=e.which&&46!=e.which||v(r.val())||(o.model.nDotCount=0),""==r.val()&&(o.model.nDotCount=0)}},b=(e,t)=>{var n="",r=e.length,a=e.split(""),i=0,d=0;for(d=0;d<r;d++)1==m(a[d],t)&&(1==t?"."==a[d]&&0==i&&1!=o.model.nDotCount?(n+=a[d],i+=1,o.model.nDotCount=1):"."!=a[d]&&(n+=a[d]):n+=a[d]);return n},P=()=>{var e=o.model.CountryId,n=$(o.ControlsPrefix.PhoneControl);if(void 0!==e&&null!=e&&""!=e){var r=n.val().replace(/([()-\s])+/g,""),a=r.length;if(a<=0)return;if(11==a&&0==r[0]&&parseInt(e)<=4&&(t.CellOldValue=r,a=(r=r.substring(1)).length),"1"!=e&&"3"!=e||10!=a)if("2"==e)a>=9&&a<=11&&(d="1"==r.substring(0,1)?r.replace(/(\d{4})\-?(\d{6})/,"$1 $2"):"2"==r.substring(0,1)?r.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"):"7"==r.substring(0,1)?r.replace(/(\d{4})\-?(\d{3})\-?(\d{3})/,"$1 $2 $3"):r.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"),t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d));else if("4"==e){if(a>=9&&a<=11){d=r.replace(/(\d{1})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3");10==a&&(d=r.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3")),t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}}else{var i=new libphonenumber.AsYouType(F(o.model.CountryId).CountryCode);d=i.input(r);!i.isValid()||t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}else if("3"==e){var d=r.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3");t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}else{var d=r.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1) $2-$3");t.CellOldValue==d&&n.val()==t.CellOldValue||(n.val(d),t.CellOldValue=d)}}else{d=n.val().replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1)-$2-$3");n.val(d)}},S=e=>{$(".banner-warning .text-block-28").html(e);var t=Webflow.require("ix"),o=$(".banner-warning"),n=x(e);if("undefined"!=typeof ver)if(ver[0]<=9){var r={type:"click",preserve3d:!0,stepsA:[{display:"-webkit-flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(r,o)}else{r={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(r,o)}else{r={type:"click",preserve3d:!0,stepsA:[{display:"flex",transition:"transform 300ms ease 0",x:"0px",y:"50px",z:"0px"},{wait:n},{transition:"transform 300 ease 0",x:"0px",y:"0px",z:"0px"},{display:"none"}],stepsB:[]};t.run(r,o)}},x=e=>{var t="2s";return""!=e&&e.length>0&&(e.length<50?t="2s":e.length<100?t="3s":e.length<200?t="4s":e.length>200&&(t="7s")),t},F=e=>(Country=jQuery.grep(o.model.CountryList,function(t){return t.CountryID==parseInt(e)}),Country[0]),E=()=>"undefined"!=typeof _glbPluginCountryList&&null!=_glbPluginCountryList&&0!=Object.keys(_glbPluginCountryList).length;return s(t.ControlId)||(()=>{var e=t.ControlId,r=document.getElementById(e).tabIndex;$("#"+e).wrap('<div id="dvWrap'+e+'" class="select-country-mar vg-select-icon-mar input-focus-relative address-phone-plugin">').parent().wrap('<div class="addresswithcountry vagaro-dropdown-icon clearfix">');var a=' <div class="w-custom-dropdown countrydropdown allflag-show">';o.ControlsPrefix.countrySelectOption,a+='<div id="PhoneControllerCountry'+e+'" class="selectedcountry" ></div > ',a+='<div id="dvDialingCode'+e+'" class="country-code" >+1</div > ',a+='<select id="ddlMainCountry'+e+'" class="form-control" tabindex="'+r+'">  </select>',a+="</div>",a+='<ul id="countryselectoption'+e+'" class="countryselectoption" style="display: none">',a+=" </ul>",$("#countryselectoption"+e).length<=0&&(null!=$("#"+e).parent()?$("#"+e).parent().before(a):$("#"+e).before(a),n(),$(o.ControlsPrefix.PhoneControl).on("blur",function(){c()}),$(o.ControlsPrefix.PhoneControl).on("keyup",function(e){P(),w(e,3)}),$(o.ControlsPrefix.PhoneControllerCountry).bind("click",function(){t.IsDisabled||$(o.ControlsPrefix.countrySelectOption).is(":visible")||$(".countryselectoption").hide()}))})(),{validatePhoneNumber:function(e=!1,o=null,n=null){if(0==e)return C(e);null!=typeof n&&null!=n&&(n.IsValid=!0);var r=C(e);return null!=typeof n&&null!=n&&(n.IsValid=r.isSucess),0==r.isSucess?(t.ValidateReturnObject=r,null!=o&&($(o).html(r.WarningMessage),$(o).show()),r.isSucess):(null!=o&&$(o).hide(),r.isSucess)},setPhoneData:function(e,n){return o.model.CountryId=e,t.CellOldValue="",s(n)||$(o.ControlsPrefix.PhoneControl).val(n),l(),P(),$(o.ControlsPrefix.PhoneControl).val()},getPhoneData:function(){var e={};e.countryId=parseInt(o.model.CountryId);var t="",n="";return null!=$(o.ControlsPrefix.PhoneControl).val()&&""!=$(o.ControlsPrefix.PhoneControl).val()&&(t=$(o.ControlsPrefix.PhoneControl).val().replace(/([()-\s])+/g,""),n=e.countryId>5?t:2==e.countryId?t.length>11?t.substring(1):t:t.length>10?t.substring(1):t),e.phoneNo=n,e.dialingCode=o.model.DialingCode,e.countryCode=F(o.model.CountryId).CountryCode,e},getCountryId:function(){return o.model.CountryId},setDisabledControl:function(e){t.IsDisabled=e,$(o.ControlsPrefix.PhoneControl).attr("disabled",e),$(o.ControlsPrefix.ddlMainCountry).attr("disabled",e);var n=o.model.countryFlag[o.model.CountryId];$(o.ControlsPrefix.PhoneControllerCountry).removeClass(),$(o.ControlsPrefix.PhoneControllerCountry).addClass("selectedcountry "+(1==e?"select2-container-disabled ":"")+n)},setDisabledCountry:function(e){t.IsDisabled=e,$(o.ControlsPrefix.ddlMainCountry).attr("disabled",e);var n=o.model.countryFlag[o.model.CountryId];$(o.ControlsPrefix.PhoneControllerCountry).removeClass(),$(o.ControlsPrefix.PhoneControllerCountry).addClass("selectedcountry "+(1==e?"select2-container-disabled ":"")+n)},getCountryList:function(){return o.model.CountryList},getdialingCode:function(e){return e>0?F(e).DialingCode:""},getphoneformat:function(e,o){if(void 0!==o&&null!=o&&""!=o){var n=null==e?"":e.replace(/([()-\s])+/g,""),r=n.length;if(r<=0)return;if(0==n[0]&&parseInt(o)<=4&&(t.CellOldValue=n,r=(n=n.substring(1)).length),!("1"!=o&&"3"!=o||9!=r&&10!=r))return"3"==o?n.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3"):n.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1) $2-$3");if("2"==o){if(9==r||10==r)return"1"==n.substring(0,1)?n.replace(/(\d{4})\-?(\d{6})/,"$1 $2"):"2"==n.substring(0,1)?n.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3"):"7"==n.substring(0,1)?n.replace(/(\d{4})\-?(\d{3})\-?(\d{3})/,"$1 $2 $3"):n.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3")}else{if("4"!=o)return new libphonenumber.AsYouType(F(o>0?o:1).CountryCode).input(e);if(8==r||9==r)return n.replace(/(\d{1})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3");if(10==r)return n.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3")}}return e},getValidateMessage:function(){return t.ValidateReturnObject}}},$(document).on("click",function(e){try{!1===$(e.target).is(".select2-container")&&$(".select2-dropdown-open").length>0&&$(".select2-dropdown-open").select2("close")}catch(e){}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).libphonenumber={})}(this,function(e){"use strict";var t={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-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}"],["7\\d{8}"]]],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268",[["268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}"],["268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,["26840[69]\\d{4}"],["26848[01]\\d{4}"]]],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264",[["264(?:292|4(?:6[12]|9[78]))\\d{4}"],["264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,["264724\\d{4}"]]],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",0,0,0,0,0,[["4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",[8]],["6(?:[78][2-9]|9\\d)\\d{6}",[9]],["800\\d{4}",[7]],["900[1-9]\\d\\d",[6]],["700[2-9]\\d{4}",[8]],0,0,0,0,["808[1-9]\\d\\d",[6]]]],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",0,0,0,0,0,[["(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}"],["(?:33|4[1349]|55|77|88|9[13-9])\\d{6}"],["800\\d{5}"],["90[016]\\d{5}"],0,0,0,0,["60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[01])\\d{4}"],["80[1-4]\\d{5}"]]],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],0,0,0,0,0,0,[["2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}"],["9[1-59]\\d{7}"]]],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",0,0,[["3888[013-9]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",[10]],["93(?:7(?:1[15]|81)[46]|8(?:(?:21|4[16]|69|9[12])[46]|88[013-9]))\\d{5}|9(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}"],["800\\d{7,8}"],["60[04579]\\d{7}",[10]],0,0,["810\\d{7}",[10]]]],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684",[["6846(?:22|33|44|55|77|88|9[19])\\d{4}"],["684(?:2(?:48|5[2468]|72)|7(?:3[13]|70|82))\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",0,0,0,0,0,[["1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}"],["6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",[7,8,9,10,11,12,13]],["800\\d{6,10}",[9,10,11,12,13]],["(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",[9,10,11,12,13]],0,0,0,0,["5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",[5,6,7,8,9,10,11,12,13]],["8(?:10|2[018])\\d{6,10}|828\\d{5}",[8,9,10,11,12,13]]]],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,"0|(183[12])",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(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-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]"]]],0,0,0,0,0,0,[["5(?:2\\d|8[1-9])\\d{4}"],["(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}"],["800\\d{4}"],["900\\d{4}"],0,0,0,0,["(?:28\\d|501)\\d{4}"]]],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",[["18[1-8]\\d{3,6}",[6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"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",0,0,0,0,0,[["(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}"],["36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}"],["88\\d{7}"],["900200\\d{3}"]]],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",0,0,0,0,0,[["(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",[8]],["6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}"],["8[08]\\d{6}",[8]],["9[0246]\\d{6}",[8]],0,0,["703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",[8]],0,0,["8[12]\\d{6}",[8]]]],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246",[["246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}"],["246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:246976|900[2-9]\\d\\d)\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"],0,["246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}"],0,["24631\\d{5}"]]],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(?:28|4[14]|5)|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",0,0,0,0,0,[["(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}"],["(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",[10]],["80[03]\\d{7}",[10]],0,0,0,0,0,["96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}",[10]]]],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",0,0,0,0,0,[["80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",[8]],["4[5-9]\\d{7}",[9]],["800[1-9]\\d{4}",[8]],["(?:70(?:2[0-57]|3[04-7]|44|6[569]|7[0579])|90(?:0[0-8]|1[36]|2[0-3568]|3[0-689]|[47][2-68]|5[1-68]|6[0-378]|9[34679]))\\d{4}",[8]],0,0,["78(?:0[57]|1[014-8]|2[25]|3[15-8]|48|[56]0|7[06-8]|9\\d)\\d{4}",[8]],0,0,["7879\\d{4}",[8]]]],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],0,0,0,0,0,0,[["2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}"],["(?:0[1-35-7]|5[1-8]|[67]\\d)\\d{6}"]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\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",0,0,0,0,0,[["2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",[6,7,8]],["(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",[8,9]],["800\\d{5}",[8]],["90\\d{6}",[8]],0,0,0,0,0,["700\\d{5}",[8]]]],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]],0,0,0,0,0,0,[["(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}"],["(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}"],["80\\d{6}"],["(?:87|9[014578])\\d{6}"],0,0,0,0,0,["84\\d{6}"]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],0,0,0,0,0,0,[["(?:22|31)\\d{6}"],["(?:29|6[1257-9]|7[125-9])\\d{6}"]]],BJ:["229","00","(?:[25689]\\d|40)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]],0,0,0,0,0,0,[["2(?:02|1[037]|2[45]|3[68])\\d{5}"],["(?:40|5[1-9]|6\\d|9[013-9])\\d{6}"],0,0,0,0,["81\\d{6}"],0,["857[58]\\d{4}"]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|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,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441",[["441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}"],["441(?:[2378]\\d|5[0-39])\\d{5}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}"],["(?:22[89]|[78]\\d\\d)\\d{4}"],0,0,0,0,0,0,["5[34]\\d{5}"]]],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)?",0,0,0,[["(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",[8]],["[67]\\d{7}",[8]],["8001[07]\\d{4}",[9]]]],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]",[["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}"],["(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}"]]],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",0,0,[["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",[10]],["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",[10,11]],["800\\d{6,7}",[9,10]],["300\\d{6}|[59]00\\d{6,7}",[9,10]],0,0,0,0,0,["(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370))\\d{4}|300\\d{5}",[8,10]]]],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242",[["242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-4]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}"],["242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}"],["242300\\d{4}|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-7]|33|44|66|77|88)[2-9]\\d{6}"],0,["242225\\d{4}"]]],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"]]],0,0,0,0,0,0,[["(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",[7]],["(?:1[67]|77)\\d{6}",[8]]]],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-79]"]],["(\\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"]]],0,0,0,0,0,0,[["(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",[7]],["(?:321|7(?:[1-7]\\d|8[01]))\\d{5}",[8]],["(?:0800|800\\d)\\d{6}",[10]],["90\\d{5}",[7]],0,0,0,0,["79(?:1(?:[01]\\d|2[0-7])|2[0-7]\\d)\\d{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,[["(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",[9]],["(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",[9]],["800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}"],["(?:810|902)\\d{7}",[10]],0,0,0,0,["249\\d{6}",[9]]],"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"]]],0,0,0,0,0,0,[["(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",[7]],["6[0-35-7]\\d{5}",[7]],["0800\\d{7}",[11]]]],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|6[578])|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|13|39|47|72)|7(?:0[59]|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-7]|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,"0|([59]\\d{7})$","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(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-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",0,0,0,0,0,[["12\\d{7}|[1-6]\\d{6}"],["88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}"]]],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],0,0,0,0,0,0,[["2[12]\\d{6}"],["7[02457]\\d{6}"],0,["8776\\d{4}"]]],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]"]]],0,0,0,0,0,0,[["222[1-589]\\d{5}"],["026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}"],0,["80(?:0\\d\\d|120)\\d{4}"]]],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",0,0,0,0,0,[["(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}"],["7[35-9]\\d{7}"],["800\\d{6}"],["90[016]\\d{6}"],["878\\d{6}"],0,["5[18]\\d{7}"],["74[0248]\\d{6}"],0,["84[0248]\\d{6}"]]],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"]]],0,0,0,0,0,0,[["2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|[23][45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}"],["0704[0-7]\\d{5}|0(?:[15]\\d\\d|7(?:0[0-37-9]|[4-9][7-9]))\\d{6}"]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["(?:2\\d|3[13-7]|4[1-5])\\d{3}"],["[578]\\d{4}"]]],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"]]],0,0,0,0,0,0,[["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[0346]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|7[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["",[9]],["(?:123|8)00\\d{6}",[9,11]],0,0,0,0,0,["44\\d{7}",[9]],["600\\d{7,8}",[10,11]]]],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"]]],0,0,0,0,0,0,[["2(?:22|33)\\d{6}",[9]],["(?:24[23]|6[25-9]\\d)\\d{6}",[9]],["88\\d{6,7}"]]],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|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,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,[["(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",[7,8,9,10,11]],["1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",[11]],["(?:(?:10|21)8|8)00\\d{7}",[10,12]],["16[08]\\d{5}",[8]],0,0,0,0,0,["400\\d{7}|950\\d{7,8}|(?:10|2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",[7,8,9,10,11]]],"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",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0(4(?:[14]4|56)|[579])?",0,0,0,[["60[124-8][2-9]\\d{6}",[10]],["3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",[10]],["1800\\d{7}",[11]],["19(?:0[01]|4[78])\\d{7}",[11]]]],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))",0,0,0,[["210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",[8]],["(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",[8]],["800\\d{7}",[10]],["90[059]\\d{7}",[10]],0,0,0,0,["(?:210[0-6]|4\\d{3}|5100)\\d{4}",[8]]]],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?: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",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:3[23]|48)\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}"],["5\\d{7}",[8]],["800\\d{7}",[10]],0,0,0,0,0,0,["807\\d{7}",[10]]]],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}"],["(?:36|5[1-389]|9\\d)\\d{5}"],["800\\d{4}"],0,0,0,0,0,["(?:3[3-5]|4[356])\\d{5}"]]],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]",[["9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}"],["953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}"],0,0,0,0,0,["955\\d{5}",[8]],0,["60[0-2]\\d{4}",[7]]]],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,"0|([59]\\d{7})$","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(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-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]"]]],0,0,0,0,0,0,[["2[2-6]\\d{6}"],["9[4-79]\\d{6}"],["800\\d{5}"],["90[09]\\d{5}"],["700\\d{5}"],0,["(?:50|77)\\d{6}"],0,0,["80[1-9]\\d{5}"]]],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"]]],0,0,0,0,0,0,[["(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}"],["(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}"],["800\\d{6}"],["9(?:0[05689]|76)\\d{6}"],["70[01]\\d{6}"],0,["9(?:5\\d|7[2-4])\\d{6}"],0,["9[17]0\\d{6}"],["8[134]\\d{7}"]]],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[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|[23]1|[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",0,0,0,0,0,[["32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",[5,6,7,8,9,10,11,12,13,14,15]],["15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",[10,11]],["800\\d{7,12}",[10,11,12,13,14,15]],["(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",[10,11]],["700\\d{8}",[11]],0,["18(?:1\\d{5,11}|[2-9]\\d{8})",[8,9,10,11,12,13,14]],["16(?:4\\d{1,10}|[89]\\d{1,11})",[4,5,6,7,8,9,10,11,12,13,14]],0,["180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",[7,8,9,10,11,12,13,14]]]],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],0,0,0,0,0,0,[["2(?:1[2-5]|7[45])\\d{5}"],["77\\d{6}"]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],0,0,0,0,0,0,[["(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}"],[""],["80\\d{6}"],["90\\d{6}"]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767",[["767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}"],["767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9",[["8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}"],["8[024]9[2-9]\\d{6}"],["8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",0,0,0,0,0,[["9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}"],["(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",[9]],["800\\d{6}",[9]],["80[3-689]1\\d{5}",[9]],0,0,0,0,["98[23]\\d{6}",[9]],["80[12]1\\d{5}",[9]]]],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",0,0,0,0,0,[["[2-7][2-7]\\d{6}",[8]],["964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",[9]],["1800\\d{7}|1[78]00\\d{6}",[10,11]],0,0,0,0,0,["[2-7]890\\d{4}",[8]]]],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"]]],0,0,0,0,0,0,[["(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",[7]],["(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:23|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[3679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",[7,8]],["800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}"],["(?:40\\d\\d|900)\\d{4}",[7,8]],["70[0-2]\\d{5}",[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",["[189]"],"0$1"]],"0",0,0,0,0,0,[["13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",[8,9]],["1[0-25]\\d{8}",[10]],["800\\d{7}",[10]],["900\\d{7}",[10]]]],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]",[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}"],["(?:17[1-3]|7\\d\\d)\\d{4}"]]],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]"]]],0,0,0,0,0,0,[["96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}"],["(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}"],["[89]00\\d{6}"],["80[367]\\d{6}"],["70\\d{7}"],0,["51\\d{7}"],0,0,["90[12]\\d{6}"]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0",0,0,0,0,0,[["11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[78]|2[69]|39|4[5-7]|5[1-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}"],["7001\\d{5}|(?:7(?:0[1-9]|1[01]|77|86|99)|9\\d\\d)\\d{6}"]]],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]",[["(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",[5,6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"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,[["603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",[7]],["(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",[7]],["0800\\d{7}",[11]]],"00"],FK:["500","00","[2-7]\\d{4}",[5],0,0,0,0,0,0,0,[["[2-47]\\d{4}"],["[56]\\d{4}"]]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]],0,0,0,0,0,0,[["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}"],["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}"]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))",0,0,0,[["(?:20|[34]\\d|8[19])\\d{4}"],["(?:[27][1-9]|5\\d|9[16])\\d{4}"],["80[257-9]\\d{3}"],["90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d"],0,0,0,0,["(?:6[0-36]|88)\\d{4}"]]],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",0,0,0,0,0,[["(?:[1-35]\\d|4[1-9])\\d{7}"],["(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7(?:00|[3-9]\\d))\\d{6}"],["80[0-5]\\d{6}"],["836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}"],0,0,["80[6-9]\\d{6}"],0,["9\\d{8}"],["8(?:1[01]|2[0156]|4[02]|84)\\d{6}"]]],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",0,0,[["[01]1\\d{6}",[8]],["(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}"]]],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[01359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-79]))|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\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-26-9])))|(?: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-2]|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,"1|([2-9]\\d{6})$","473$1",0,"473",[["473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}"],["473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",0,0,0,0,0,[["(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}"],["5(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:0070|11(?:33|51)|[25]222|3333)[0-4]\\d{3}|5(?:00(?:0\\d|5[05])|11(?:00|[124]\\d|3[01])|5200|75(?:00|[57]5)|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88)))\\d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}"],["800\\d{6}"],0,0,0,0,0,["70[67]\\d{6}"]]],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[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,[["594(?:[023]\\d|1[0-2]|4[03-9]|5[6-9]|6[0-3]|80|9[0-8])\\d{4}"],["694(?:[0-249]\\d|3[0-48])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976\\d{6}"]]],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","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-2]|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",0,0,0,0,0,[["3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",[9]],["(?:2(?:[0346-9]\\d|5[67])|5(?:[0457]\\d|6[01]|9[1-9]))\\d{6}",[9]],["800\\d{5}",[8]]]],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]],0,0,0,0,0,0,[["21(?:6[24-7]\\d|90[0-2])\\d{3}|2(?:00|2[25])\\d{5}"],["(?:5[146-8]\\d|606)\\d{5}"]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],0,0,0,0,0,0,[["(?:19|3[1-7]|6[14689]|70|8[14-79]|9\\d)\\d{4}"],["[245]\\d{5}"],["80\\d{4}"],0,0,0,0,0,["3[89]\\d{4}"]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}"],["(?:[23679]\\d|5[0-389])\\d{5}"]]],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]"]]],0,0,0,0,0,0,[["3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",[8]],["6[0-356]\\d{7}",[9]],0,0,0,0,0,0,["722\\d{6}",[9]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[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[1289]|5[3-579]|6[0-289]|7[08]|8[0-689]|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,["976[01]\\d{5}"]]],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]"]]],0,0,0,0,0,0,[["33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}"],["(?:222|55\\d)\\d{6}"],["80\\d[1-9]\\d{5}"],["90\\d[1-9]\\d{5}"]]],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"]]],0,0,0,0,0,0,[["2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",[10]],["68[57-9]\\d{7}|(?:69|94)\\d{8}",[10]],["800\\d{7,9}"],["90[19]\\d{7}",[10]],["70\\d{8}",[10]],0,["5005000\\d{3}",[10]],0,0,["8(?:0[16]|12|[27]5|50)\\d{7}",[10]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["[267][2-9]\\d{6}",[8]],["[3-5]\\d{7}",[8]],["18[01]\\d{8}",[11]],["19\\d{9}",[11]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671",[["671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}"],[""],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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]"]]],0,0,0,0,0,0,[["443\\d{6}",[9]],["9(?:5\\d|6[569]|77)\\d{6}",[9]],0,0,0,0,0,0,["40\\d{5}",[7]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]],0,0,0,0,0,0,[["(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}"],["(?:6\\d\\d|70[015-7])\\d{4}"],["(?:289|862)\\d{4}"],["9008\\d{3}"]]],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,[["(?:38[45][0-8]|58(?:0[1-8]|1[2-9]))\\d{4}|(?:2(?:[13-9]\\d|2[013-9])|3(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69]|89))\\d{5}",[8]],["(?:4(?:44[5-9]|6(?:0[0-7]|1[0-6]|4[0-57-9]|6[0-4]|7[0-8]))|573[0-6]|6(?:26[013-8]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|9(?:29[013-9]|59[0-4]))\\d{4}|(?:4(?:4[01]|6[2358])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",[8]],["800\\d{6}",[9]],["900(?:[0-24-9]\\d{7}|3\\d{1,4})",[5,6,7,8,11]],["8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",[8]],0,["30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",[8]],["7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",[8]]],"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],0,0,0,0,0,0,[["2(?:2(?:0[0-359]|1[1-367]|[23]\\d|4[03-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[78]|2[3-59]|3[13-9]|4[0-68]|5[1-35])|5(?:0[7-9]|16|4[03-5]|5\\d|6[014-6]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[04]|4[0-378]|[78][0-8]|9[01])|7(?:6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",[8]],["[37-9]\\d{7}",[8]],["8002\\d{7}",[11]]]],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",0,0,0,0,0,[["1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",[8,9]],["98\\d{6,7}|975(?:1\\d|9[67])\\d{4}|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}",[8,9]],["80[01]\\d{4,6}",[7,8,9]],["6[01459]\\d{6}|6[01]\\d{4,5}",[6,7,8]],["7[45]\\d{6}",[8]],0,["62\\d{6,7}|72\\d{6}",[8,9]]]],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]],0,0,0,0,0,0,[["2(?:2\\d|5[1-5]|81|9[149])\\d{5}"],["[34]\\d{7}"],["8\\d{7}"],0,0,0,0,0,["9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}"]]],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",0,0,0,0,0,[["(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",[8]],["(?:[257]0|3[01])\\d{7}",[9]],["(?:[48]0\\d|680[29])\\d{5}"],["9[01]\\d{6}",[8]],0,0,["38\\d{7}",[9]],0,["21\\d{7}",[9]]]],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",0,0,0,0,0,[["2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",[7,8,9,10,11]],["8[1-35-9]\\d{7,10}",[9,10,11,12]],["00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",[8,9,10,11,12,13]],["809\\d{7}",[10]],0,0,["(?:1500|8071\\d{3})\\d{3}",[7,10]],0,0,["804\\d{7}",[10]]]],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",0,0,0,0,0,[["(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}"],["8(?:22|[35-9]\\d)\\d{6}",[9]],["1800\\d{6}",[10]],["15(?:1[2-8]|[2-8]0|9[089])\\d{6}",[10]],["700\\d{6}",[9]],0,["818\\d{6}",[9]],0,["76\\d{7}",[9]],["18[59]0\\d{6}",[10]]]],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",0,0,0,0,0,[["153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",[8,11,12]],["5(?:(?:[02368]\\d|[19][2-9]|4[1-9])\\d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",[9]],["1(?:255|80[019]\\d{3})\\d{3}",[7,10]],["1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}",[8,10]],0,0,["1599\\d{6}",[10]],0,["7(?:380|8(?:33|55|77|81))\\d{5}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",[9]],["1700\\d{6}",[10]]]],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24",[["1624(?:230|[5-8]\\d\\d)\\d{3}"],["76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}"],["808162\\d{4}"],["8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}"],["70\\d{8}"],0,["3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}"],0,["56\\d{8}"]]],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",0,0,0,0,0,[["2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",[10]],["(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|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]|881))[0189]\\d{5}",[10]],["000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))"],["186[12]\\d{9}",[13]],0,0,["140\\d{7}",[10]],0,0,["1860\\d{7}",[11]]]],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]],0,0,0,0,0,0,[["37\\d{5}"],["38\\d{5}"]]],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",0,0,0,0,0,[["1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",[8,9]],["7[3-9]\\d{8}",[10]]]],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",0,0,0,0,0,[["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",[6,7,10]],["9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:[0-46]\\d\\d|5[15]0|8(?:1\\d|88)|9(?:0[0-3]|[19]\\d|21|77|8[7-9])))\\d{5}",[10]],0,0,0,0,["96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",[4,5]]]],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,[["(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",[7]],["(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}"],["80[0-8]\\d{4}",[7]],["90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",[7]],0,0,["809\\d{4}",[7]],0,["49[0-24-79]\\d{4}",[7]]],"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|([0-24-8]\\d{5})$","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-2]|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",[["8766060\\d{3}|(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[02357-9]|[23]\\d|40|5[06]|6[2-589]|7[025-7]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}"],["(?:658295|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",0,0,0,0,0,[["87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",[8]],["7(?:[78][0-25-9]|9\\d)\\d{6}",[9]],["80\\d{6}",[8]],["9\\d{7}",[8]],["70\\d{7}",[9]],0,["8(?:10|8\\d)\\d{5}",[8]],["74(?:66|77)\\d{5}",[9]],0,["85\\d{6}",[8]]]],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|63)|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]|636)|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]|636[457-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[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]","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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|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,0,0,0,0,[["(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",[9]],["[7-9]0[1-9]\\d{7}",[10]],["00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}"],["990\\d{6}",[9]],["60\\d{7}",[9]],0,["570\\d{6}",[9]],["20\\d{8}",[10]],["50[1-9]\\d{7}",[10]]]],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",0,0,0,0,0,[["(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",[7,8,9]],["(?:1(?:0[0-6]|1[0-5]|2[014]|30)|7\\d\\d)\\d{6}",[9]],["800[2-8]\\d{5,6}",[9,10]],["900[02-9]\\d{5}",[9]]]],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[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",0,0,0,0,0,[["312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",[9]],["312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|7(?:[07]\\d|55)|88[08]|99[05-9])\\d{6}",[9]],["800\\d{6,7}"]]],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",0,0,0,0,0,[["23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",[8,9]],["(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",[8,9]],["1800(?:1\\d|2[019])\\d{4}",[10]],["1900(?:1\\d|2[09])\\d{4}",[10]]]],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0",0,0,0,0,0,[["(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}"],["(?:63\\d{3}|73(?:0[0-5]\\d|140))\\d{3}|[67]200[01]\\d{3}",[8]],0,0,0,0,0,0,["30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",[8]]]],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],0,0,0,0,0,0,[["7[4-7]\\d{5}"],["[34]\\d{6}"],0,["8\\d{6}"]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869",[["869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}"],["869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",0,0,0,0,0,[["(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}"],["19[1-3]\\d{7}",[10]]]],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))?",0,0,0,[["(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",[5,6,8,9,10]],["1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[1-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",[9,10]],["00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",[9,11,12,13,14]],["60[2-9]\\d{6}",[9]],["50\\d{8,9}",[10,11]],0,["1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[168]|88)|8(?:00|33|55|77|99))\\d{4}",[8]],["15\\d{7,8}",[9,10]],["70\\d{8}",[10]]]],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]"]]],0,0,0,0,0,0,[["2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",[8]],["(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|111|222|333|444|7(?:0[013-9]|[67]\\d)|888|9(?:[069]\\d|3[039]))|9(?:(?:0[09]|22|[4679]\\d|8[057-9])\\d|1(?:1[01]|99)|3(?:00|33)|5(?:00|5\\d)))\\d{4}",[8]],["18\\d{5}",[7]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345",[["345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|[48]8)|9(?:14|4[035-9]))\\d{4}"],["345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:345976|900[2-9]\\d\\d)\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,["345849\\d{4}"]]],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",[["(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9])|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-246-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",[10]],["7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",[10]],["8(?:00|108\\d{3})\\d{7}"],["809\\d{7}",[10]],["808\\d{7}",[10]],0,0,0,["751\\d{7}",[10]]],"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",0,0,0,0,0,[["(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",[8]],["(?:20(?:[239]\\d|5[24-9]|7[6-8]|88)|302\\d)\\d{6}",[10]],0,0,0,0,["30[013-9]\\d{6}",[9]]]],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",0,0,0,0,0,[["7(?:62|8[0-7]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}"],["793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}"],0,["9[01]\\d{6}",[8]],0,0,0,0,0,["80\\d{6}",[8]]]],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758",[["758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}"],["758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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,"0|(1001)",0,0,0,[["(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",[7]],["(?:6(?:(?:4[5-9]|5[0-4])\\d|6(?:[0245]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}"],["8002[28]\\d\\d|80(?:05\\d|9)\\d{4}"],["90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",[7]],0,0,["870(?:28|87)\\d\\d",[7]]]],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",0,0,0,0,0,[["(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}"],["7(?:[0-25-8]\\d|4[0-4])\\d{6}"],0,0,0,0,["1973\\d{5}"]]],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[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",["[3578]"],"0$1"]],"0",0,0,0,0,0,[["(?:2\\d{3}|33333)\\d{4}",[8,9]],["(?:(?:330|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",[7,9]],0,["332(?:02|[34]\\d)\\d{4}",[9]]]],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],0,0,0,0,0,0,[["2\\d{7}"],["[56]\\d{7}"],["800[256]\\d{4}"]]],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]",0,0,0,[["(?:3[1478]|4[124-6]|52)\\d{6}"],["6\\d{7}"],["80[02]\\d{5}"],["9(?:0[0239]|10)\\d{5}"],["70[05]\\d{5}"],0,["70[67]\\d{5}"],0,["[89]01\\d{5}"],["808\\d{5}"]]],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)",0,0,0,[["(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}"],["6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",[9]],["800\\d{5}",[8]],["90[015]\\d{5}",[8]],0,0,0,0,["20(?:1\\d{5}|[2-689]\\d{1,7})",[4,5,6,7,8,9,10]],["801\\d{5}",[8]]]],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],0,0,0,0,0,0,[["6\\d{7}"],["2\\d{7}"],["80\\d{6}"],["90\\d{6}"],0,0,0,0,0,["81\\d{6}"]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}"],["9[1-6]\\d{7}"]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[89]|389)","5(?:29[89]|389)0"],"0$1"],["(\\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)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"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(?:29(?:[189][05]|2[29]|3[01])|389[05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[08]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\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",0,0,0,0,0,[["(?:870|9[2-47-9]\\d)\\d{5}",[8]],["4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}"],["(?:800|90\\d)\\d{5}",[8]]]],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",0,0,0,0,0,[["(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}"],["562\\d{5}|(?:6\\d|7[16-9])\\d{6}"],["800\\d{5}"],["90[056]\\d{5}"],0,0,["803\\d{5}"],0,["3[08]\\d{6}"],["808\\d{5}"]]],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",0,0,0,0,0,[["(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",[8]],["6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",[8]],["80(?:[0-2578]|9\\d)\\d{5}"],["9(?:4[1568]|5[178])\\d{5}",[8]],0,0,["77[1-9]\\d{5}",[8]],0,["78[1-49]\\d{5}",[8]]]],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|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,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1",0,0,[["2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}"],["3[2-489]\\d{7}"],0,0,0,0,0,0,["22\\d{7}"]]],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1",0,0,0,0,0,[["(?:247|528|625)\\d{4}"],["(?:(?:23|54)5|329|45[356])\\d{4}"],0,0,0,0,0,0,["635\\d{4}"]]],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",0,0,0,0,0,[["(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[23]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}"],["7(?:3555|4(?:60\\d|747)|94(?:[01]\\d|2[0-4]))\\d{3}|7(?:[0-25-8]\\d|3[1-4]|42|9[23])\\d{5}"],["800\\d{5}"],["5[02-9]\\d{6}"],0,0,0,0,0,["8(?:0[1-9]|[1-9]\\d)\\d{5}"]]],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],0,0,0,0,0,0,[["2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}"],["2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[2-49])\\d{6}"],["80\\d{6}"]]],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",0,0,0,0,0,[["(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[2-469]|39|46|6[25]|7[0-3]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|2[246]|39|46|62|7[0-3]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[0-3])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|247[23]|3(?:20\\d|470)|4(?:2[04]\\d|47[23])|7(?:(?:3\\d|8[01459])\\d|4(?:39|60|7[013]))))\\d{4}|5(?:2(?:2\\d{5,6}|47[023]\\d{4})|(?:347[23]|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[0-2])|8(?:20\\d|47[02])|9(?:20\\d|47[01]))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:2\\d|4[1-9]|51)\\d|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",[6,7,8,9]],["(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|9[4-8])\\d|7(?:3|40|[5-9]\\d)|8(?:78|[89]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",[7,8,9,10]],["80080(?:[01][1-9]|2\\d)\\d{3}",[10]],0,0,0,0,0,["1333\\d{4}|[12]468\\d{4}",[8]]]],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",0,0,0,0,0,[["[12]2[1-3]\\d{5,6}|7(?:0[0-5]\\d|128)\\d{4}|(?:[12](?:1|27)|5[368])\\d{6}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}"],["(?:83[01]|920)\\d{5}|(?:5[05]|6[06]|8[015689]|9[013-9])\\d{6}",[8]],0,0,0,0,0,0,["712[0-79]\\d{4}|7(?:1[013-9]|[25-8]\\d)\\d{5}",[8]]]],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]"]]],0,0,0,0,0,0,[["(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",[8]],["6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",[8]],["0800\\d{3}",[7]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670",[["670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}"],[""],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[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,[["596(?:[03-7]\\d|10|2[7-9]|8[09]|9[4-9])\\d{4}"],["69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976(?:6\\d|7[0-367])\\d{4}"]]],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]"]]],0,0,0,0,0,0,[["(?:25[08]|35\\d|45[1-7])\\d{5}"],["[2-4][0-46-9]\\d{6}"],["800\\d{5}"]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664",[["6644(?:1[0-3]|91)\\d{4}"],["664(?:3(?:49|9[1-6])|49[2-6])\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],0,0,0,0,0,0,[["20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}"],["(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}"],["800(?:02|[3467]\\d)\\d{3}"],["5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}"],0,0,["501\\d{5}"],["7117\\d{4}"],["3550\\d{4}"]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|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",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,[["(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-7])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",[7,8]],["5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])\\d{5}",[8]],["802\\d{7}|80[0-2]\\d{4}",[7,10]],["30\\d{5}",[7]],0,0,0,0,["3(?:20|9\\d)\\d{4}",[7]]],"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",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["(?:3(?:0[0-3]|3[0-59])|6(?:[57][02468]|6[024-68]|8[024689]))\\d{4}",[7]],["46[46]\\d{4}|(?:7\\d|9[13-9])\\d{5}",[7]],["800\\d{7}",[10]],["900\\d{7}",[10]],0,0,["4(?:0[01]|50)\\d{4}",[7]]],"00"],MW:["265","00","(?:[129]\\d|31|77|88)\\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",0,0,0,0,0,[["(?:1[2-9]|2[12]\\d\\d)\\d{5}"],["111\\d{6}|(?:31|77|88|9[89])\\d{7}",[9]]]],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|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,[["657[12]\\d{6}|(?:2(?:0[01]|2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",[10]],["657[12]\\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}"],["8(?:00|88)\\d{7}",[10]],["900\\d{7}",[10]],["500\\d{7}",[10]],0,0,0,0,["300\\d{7}",[10]]],"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",0,0,0,0,0,[["(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",[8,9]],["1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0134]\\d|2[1-9]|5[0-6]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",[9,10]],["1[378]00\\d{6}",[10]],["1600\\d{6}",[10]],0,0,0,0,["15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",[10]]]],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"]]],0,0,0,0,0,0,[["2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",[8]],["8[2-79]\\d{7}",[9]],["800\\d{6}",[9]]]],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",0,0,0,0,0,[["64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}"],["(?:60|8[1245])\\d{7}",[9]],["80\\d{7}",[9]],["8701\\d{5}",[9]],0,0,0,0,["8(?:3\\d\\d|86)\\d{5}"]]],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],0,0,0,0,0,0,[["(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}"],["(?:5[0-4]|[79]\\d|8[0-79])\\d{4}"],["050\\d{3}"],["36\\d{4}"]]],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[04]"]]],0,0,0,0,0,0,[["2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}"],["(?:23|7[04]|[89]\\d)\\d{6}"],["08\\d{6}"],["09\\d{6}"]]],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",0,0,[["(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}"],["(?:14|3[58])\\d{4}"]]],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",0,0,0,0,0,[["(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",[7,8]],["(?:702[0-24-9]|8(?:01|19)[01])\\d{6}|(?:70[13-689]|8(?:0[2-9]|1[0-8])|9(?:0[1-9]|1[2356]))\\d{7}",[10]],["800\\d{7,11}",[10,11,12,13,14]],0,0,0,["700\\d{7,11}",[10,11,12,13,14]]]],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],0,0,0,0,0,0,[["2\\d{7}"],["(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}"],["1800\\d{4}"]]],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",0,0,0,0,0,[["(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",[9]],["(?:6[1-58]|970\\d)\\d{7}",[9,11]],["800\\d{4,7}",[7,8,9,10]],["90[069]\\d{4,7}",[7,8,9,10]],0,0,["140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",[5,6,9]],["66\\d{7}",[9]],["(?:85|91)\\d{7}",[9]]]],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]",[["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",[8]],["(?:4[015-8]|59|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}",[8]],0,["(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[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",0,0,0,0,0,[["(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",[8]],["9(?:6[0-3]|7[024-6]|8[0-24-68])\\d{7}",[10]],["1(?:66001|800\\d\\d)\\d{5}",[11]]]],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],0,0,0,0,0,0,[["444\\d{4}"],["(?:55[3-9]|666|8\\d\\d)\\d{4}"]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]],0,0,0,0,0,0,[["[47]\\d{3}",[4]],["888[4-9]\\d{3}",[7]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"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)|[59]|80"],"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|86"],"0$1"]],"0",0,0,0,0,0,[["24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",[8]],["2[0-27-9]\\d{7,8}|21\\d{6}",[8,9,10]],["508\\d{6,7}|80\\d{6,8}",[8,9,10]],["(?:11\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",[7,8,9,10]],["70\\d{7}",[9]],0,["8(?:1[6-9]|22|3\\d|4[045]|5[459]|7[0-3579]|90)\\d{2,7}"],["[28]6\\d{6,7}",[8,9]]],"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]"]]],0,0,0,0,0,0,[["2[2-6]\\d{6}",[8]],["1505\\d{4}|(?:7(?:[1289]\\d|7[0-4])|9(?:0[1-9]|[1-9]\\d))\\d{5}",[8]],["8007\\d{4,5}|(?:500|800[05])\\d{4}"],["900\\d{5}",[8]]]],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"]]],0,0,0,0,0,0,[["(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[258]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",[7]],["(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",[7,8]],["800\\d{4,5}|(?:00800|800\\d)\\d{6}"],["(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",[7]]]],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,[["(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",[8]],["9\\d{8}",[9]],["800\\d{5}",[8]],["805\\d{5}",[8]],["80[24]\\d{5}",[8]],0,0,0,0,["801\\d{5}",[8]]],"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"]]],0,0,0,0,0,0,[["4(?:0[4-689]|9[4-68])\\d{5}",[8]],["8[7-9]\\d{6}",[8]],["80[0-5]\\d{6}",[9]],0,0,0,["44\\d{4}",[6]],0,["499\\d{5}",[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,[["(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",[7]],["(?:7\\d|8[128])\\d{6}",[8]],["180\\d{4}",[7]],0,0,0,0,["27[01]\\d{4}",[7]],["2(?:0[0-57]|7[568])\\d{4}",[7]]],"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",0,0,0,0,0,[["(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",[6,8,9,10]],["(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",[10]],["1800\\d{7,9}",[11,12,13]]]],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",0,0,0,0,0,[["(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?: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]))[2-9]\\d{5,6}",[9,10]],["3(?:[0-24]\\d|3[0-7]|55|64)\\d{7}",[10]],["800\\d{5}(?:\\d{3})?",[8,11]],["900\\d{5}",[8]],["122\\d{6}",[9]],0,["(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",[11,12]]]],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|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"]]],0,0,0,0,0,0,[["47\\d{7}|(?: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])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",[7,9]],["21(?:1(?:[145]\\d|3[1-5])|2[0-4]\\d)\\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",[9]],["800\\d{6,7}",[9,10]],["70[01346-8]\\d{6}",[9]],0,0,["804\\d{6}",[9]],["64\\d{4,7}",[6,7,8,9]],["39\\d{7}",[9]],["801\\d{6}",[9]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:4[1-356]|50)\\d{4}",[6]],["(?:4[02-4]|5[056])\\d{4}",[6]],["80[0-5]\\d{6}",[9]]]],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939",[["(?:787|939)[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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",0,0,0,0,0,[["(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",[8]],["5[69]\\d{7}",[9]],["1800\\d{6}",[10]],0,0,0,0,0,0,["1700\\d{6}",[10]]]],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]"]]],0,0,0,0,0,0,[["2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}"],["6(?:[06]92(?:30|9\\d)|[35]92(?:3[03]|9\\d))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}"],["80[02]\\d{6}"],["(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}"],["884[0-4689]\\d{5}"],0,["70(?:7\\d|8[17])\\d{5}"],0,["30\\d{7}"],["80(?:8\\d|9[1579])\\d{5}"]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}"],["(?:(?:46|83)[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}"]]],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",0,0,0,0,0,[["(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",[7,8,9]],["9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",[9]],["9800\\d{5,7}",[9,10,11]],0,0,0,["[2-9]0\\d{4,7}",[6,7,8,9]],0,["8700[0-4]\\d{4}",[9]]]],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]],0,0,0,0,0,0,[["414[1-4]\\d{4}|(?:23|4[04])\\d{6}",[8]],["(?:2[89]|[35-7]\\d)\\d{6}",[8]],["800\\d{4}(?:\\d{2})?",[7,9]],0,0,0,0,["2(?:[12]\\d|61)\\d{4}",[7]]]],RE:["262","00","976\\d{6}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]",[["26(?:2\\d\\d|3(?:0\\d|1[01]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-6]|7[0-27]|8[0-8]|9[0-479]))|976(?:2[27]|3[0-37]|9\\d))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,0,["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|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",["[237-9]"],"0$1"]],"0",0,0,0,0,0,[["[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d"],["7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[019])\\d{6}",[9]],["800\\d{6}",[9]],["90[0136]\\d{6}",[9]],0,0,["(?:37\\d|80[578])\\d{6}",[9]],0,0,["801\\d{6}",[9]]],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",0,0,0,0,0,[["(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",[7,8,9,10,11,12]],["6(?:[0-689]|7\\d)\\d{6,7}",[8,9,10]],["800\\d{3,9}"],["(?:78\\d|90[0169])\\d{3,7}",[6,7,8,9,10]],0,0,["7[06]\\d{4,10}"]]],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-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|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]",[["(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"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",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0",0,0,0,0,0,[["(?:06|2[23568]\\d)\\d{6}"],["7[2389]\\d{7}",[9]],["800\\d{6}",[9]],["900\\d{6}",[9]]]],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",0,0,0,0,0,[["1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",[9]],["579[01]\\d{5}|5(?:[013-689]\\d|7[0-35-8])\\d{6}",[9]],["800\\d{7}",[10]],["925\\d{6}",[9]],0,0,["811\\d{7}",[10]],0,0,["920\\d{6}",[9]]]],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])"]]],0,0,0,0,0,0,[["(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",[5]],["48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}"],["1[38]\\d{3}",[5]],0,0,0,0,0,["5[12]\\d{3}",[5]]]],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,[["4[2-46]\\d{5}"],["2[125-8]\\d{5}"],["800[08]\\d{3}"],0,0,0,0,0,["971\\d{4}|(?:64|95)\\d{5}"]],"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1(?:5\\d|8[35-7])\\d{6}"],["(?:1[0-2]|9[0-3569])\\d{7}"]]],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",0,0,0,0,0,[["(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",[7,8,9]],["7[02369]\\d{7}",[9]],["20\\d{4,7}",[6,7,8,9]],["649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}",[7,8,9,10]],["75[1-8]\\d{6}",[9]],0,["10[1-8]\\d{6}",[9]],["74[02-9]\\d{6}",[9]],0,["77[0-7]\\d{6}",[9]]]],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-5]|[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"]]],0,0,0,0,0,0,[["662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",[8]],["8(?:05[0-3]|95[0-2])\\d{4}|(?:8(?:0[1-4]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}",[8]],["(?:18|8)00\\d{7}",[10,11]],["1900\\d{7}",[11]],0,0,["7000\\d{7}",[11]],0,["(?:3[12]\\d|666)\\d{5}",[8]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]",[["2(?:[0-57-9]\\d|6[4-9])\\d\\d"],["[56]\\d{4}",[5]],0,0,0,0,0,0,["262\\d\\d",[5]]]],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,[["(?:[1-357][2-8]|4[24-8])\\d{6}",[8]],["65(?:1\\d|55|6[01]|70)\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",[8]],["80\\d{4,6}",[6,7,8]],["89[1-3]\\d{2,5}|90\\d{4,6}"],0,0,0,0,["(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",[8]]],"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79",[["79\\d{6}",[8]],["(?:4[015-8]|59|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}",[8]],0,["(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[8]]]],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",0,0,0,0,0,[["(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d"],["909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",[9]],["800\\d{6}",[9]],["9(?:00|[78]\\d)\\d{6}",[9]],0,0,["96\\d{7}",[9]],["9090\\d{3}",[7]],["6(?:02|5[0-4]|9[0-6])\\d{6}",[9]],["8[5-9]\\d{7}",[9]]]],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0",0,0,0,0,0,[["22[2-4][2-9]\\d{4}"],["(?:25|3[0-5]|66|7[2-9]|8[08]|9[09])\\d{6}"]]],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",0,0,[["0549(?:8[0157-9]|9\\d)\\d{4}",[10]],["6[16]\\d{6}",[8]],0,["7[178]\\d{6}",[8]],0,0,0,0,["5[158]\\d{6}",[8]]]],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]"]]],0,0,0,0,0,0,[["3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}"],["75(?:01|[38]3)\\d{5}|7(?:[06-8]\\d|21|5[4-7]|90)\\d{6}"],["800\\d{6}"],["88[4689]\\d{6}"],0,0,0,0,["(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}"],["81[02468]\\d{6}"]]],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",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0",0,0,0,0,0,[["(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",[6,7]],["(?:(?:15|(?:3[59]|4[89]|79|8[08])\\d|6(?:0[5-7]|[1-9]\\d)|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:6\\d|7[1-9])\\d{6}",[7,8,9]]]],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]"]]],0,0,0,0,0,0,[["(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}"],["(?:7[124-7]|8[124-9])\\d{5}",[7]],0,0,0,0,0,0,["56\\d{4}",[6]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1[89]\\d{7}"],["(?:12|9[1257-9])\\d{7}"]]],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]],0,0,0,0,0,0,[["22\\d{5}"],["900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}"]]],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]"]]],0,0,0,0,0,0,[["2(?:[1-6]\\d{3}|[79]90[034]|890[0245])\\d{3}",[8]],["66(?:[02-9]\\d\\d|1(?:[02-9]\\d|16))\\d{3}|(?:6[0-57-9]|7\\d)\\d{6}",[8]],["800\\d{4}(?:\\d{4})?",[7,11]],["900\\d{4}(?:\\d{4})?",[7,11]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721",[["7215(?:4[2-8]|8[239]|9[056])\\d{4}"],["7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",0,0,0,0,0,[["21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}"],["9[1-689]\\d{7}",[9]]]],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"]]],0,0,0,0,0,0,[["[23][2-5]\\d{6}",[8]],["7[6-9]\\d{6}",[8]],["0800\\d{4}",[8]],["900\\d{6}",[9]],0,0,0,0,["70\\d{6}",[8]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8",[["8\\d{3}"]]],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649",[["649(?:266|712|9(?:4\\d|50))\\d{4}"],["649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["649(?:71[01]|966)\\d{4}"]]],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,[["22(?:[37-9]0|5[0-5]|6[89])\\d{4}"],["(?:6[023568]|77|9\\d)\\d{6}"]],"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],0,0,0,0,0,0,[["2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}"],["(?:7[09]|9[0-36-9])\\d{6}"]]],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",0,0,0,0,0,[["(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",[8]],["671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",[9]],["(?:001800\\d|1800)\\d{6}",[10,13]],["1900\\d{6}",[10]],0,0,0,0,["6[08]\\d{7}",[9]]]],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\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,[["(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}"],["41[18]\\d{6}|(?:[034]0|[17][017]|2[02]|5[05]|8[08]|9\\d)\\d{7}"]],"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7],0,0,0,0,0,0,0,[["(?:2[2-4]|[34]\\d)\\d{2,5}"],["7[2-4]\\d{2,5}"]]],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"]]],0,0,0,0,0,0,[["(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",[7]],["7[2-8]\\d{6}",[8]],["80\\d{5}",[7]],["90\\d{5}",[7]],["70\\d{5}",[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,[["(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}"],["6\\d{7}"]],"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],0,0,0,0,0,0,[["81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}"],["3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-7])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}"],["8010\\d{4}"],["88\\d{6}"],0,0,0,0,0,["8[12]10\\d{4}"]]],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]"]]],0,0,0,0,0,0,[["(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",[5]],["(?:55[4-6]|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",[7]],["0800\\d{3}",[7]],0,0,0,0,0,["55[0-37-9]\\d{4}",[7]]]],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]|616)","5(?:[0-59]|6161)"],"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",0,0,0,0,0,[["(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",[10]],["56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",[10]],["8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",[10,12,13]],["(?:8[89]8|900)\\d{7}",[10]],["592(?:21[12]|461)\\d{4}",[10]],0,["444\\d{4}",[7]],["512\\d{7}",[10]],["850\\d{7}",[10]]]],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868",[["868(?:2(?:0[13]|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}"],["868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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"]]],0,0,0,0,0,0,[["2[02-9]\\d{3}",[5]],["(?:7[01]\\d|90)\\d{4}",[6,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,[["(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",[8,9]],["(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",[9]],["80[0-79]\\d{6}|800\\d{5}",[8,9]],["20(?:[013-9]\\d\\d|2)\\d{4}",[7,9]],["99\\d{7}",[9]],0,["50[0-46-9]\\d{6}",[9]],0,["7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",[10,11]]],0,"#"],TZ:["255","00[056]","(?:[26-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{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0",0,0,0,0,0,[["2[2-8]\\d{7}"],["77[2-9]\\d{6}|(?:6[1-9]|7[1-689])\\d{7}"],["80[08]\\d{6}"],["90\\d{7}"],0,0,0,0,["41\\d{7}"],["8(?:40|6[01])\\d{6}"]]],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,[["(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",[9]],["(?:39|50|6[36-8]|7[1-3]|9[1-9])\\d{7}",[9]],["800[1-8]\\d{5,6}"],["900[239]\\d{5,6}"],0,0,0,0,["89[1-579]\\d{6}",[9]]],"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",0,0,0,0,0,[["20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}"],["726[01]\\d{5}|7(?:[01578]\\d|20|36|[46][0-4]|9[89])\\d{6}"],["800[1-3]\\d{5}"],["90[1-3]\\d{6}"]]],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,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|5[25]|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|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[19]|6[1-47]|7[0-5]|8[056])|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-289]|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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"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{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:770|987)|(?:2\\d|4[2-7])\\d\\d)\\d{4}",[8]],["9[1-9]\\d{6}",[8]],["(?:4\\d{5}|80[05])\\d{4}|405\\d{4}",[7,10]],["90[0-8]\\d{4}",[7]]],"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,[["(?:6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|8\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}"],["(?:(?:33|88|9[0-57-9])\\d{3}|55(?:50[013]|90\\d)|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}"]],"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",[["06698\\d{1,6}"],["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]]]],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784",[["784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}"],["784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["78451[0-2]\\d{4}"]]],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",0,0,0,0,0,[["(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}"],["4(?:1[24-8]|2[46])\\d{7}"],["800\\d{7}"],["90[01]\\d{7}"],0,0,["501\\d{7}"]]],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284",[["284496[0-5]\\d{3}|284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}"],["284496[6-9]\\d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))\\d{4}"],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340",[["340(?:2(?:0[0-38]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}"],[""],["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-7]|33|44|66|77|88)[2-9]\\d{6}"]]],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",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"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",0,0,0,0,0,[["2(?:0[3-9]|1[0-689]|2[0-25-9]|3[2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|8[2-79]|9[0-4679])\\d{7}",[10]],["(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",[9]],["1800\\d{4,6}|12(?:0[13]|28)\\d{4}",[8,9,10]],["1900\\d{4,6}",[8,9,10]],0,0,["(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",[7,8]],0,["672\\d{6}",[9]]]],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],0,0,0,0,0,0,[["(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",[5]],["(?:[58]\\d|7[013-7])\\d{5}",[7]],["81[18]\\d\\d",[5]],0,0,0,["(?:3[03]|900\\d)\\d{3}"],0,["9(?:0[1-9]|1[01])\\d{4}",[7]]]],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"]]],0,0,0,0,0,0,[["72\\d{4}",[6]],["(?:72|8[23])\\d{4}",[6]],["80[0-5]\\d{6}",[9]]]],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"]]],0,0,0,0,0,0,[["6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",[5,6]],["(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",[7,10]],["800\\d{3}",[6]]]],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",0,0,0,0,0,[["(?:2[89]|39)0\\d{6}|[23][89]\\d{6}"],["4[3-9]\\d{6}",[8]],["800\\d{5}",[8]],["900\\d{5}",[8]]]],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-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",[7,8]],["7[0137]\\d{7}",[9]]]],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63",[["269(?:0[0-367]|5[0-3]|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}"]]],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",0,0,0,0,0,[["(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",[9]],["(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",[5,6,7,8,9]],["80\\d{7}",[9]],["(?:86[2-9]|9[0-2]\\d)\\d{6}",[9]],0,0,["861\\d{6,7}",[9,10]],0,["87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",[9]],["860\\d{6}",[9]]]],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",0,0,0,0,0,[["21[1-8]\\d{6}"],["(?:7[679]|9[5-8])\\d{7}"],["800\\d{6}"],0,0,0,0,0,["63\\d{7}"]]],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",0,0,0,0,0,[["(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}"],["7(?:[178]\\d|3[1-9])\\d{6}",[9]],["80(?:[01]\\d|20|8[0-8])\\d{3}",[7]],0,0,0,0,0,["86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",[10]]]]},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,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\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})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]],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}"]]]}};function o(e,o){var n=Array.prototype.slice.call(o);return n.push(t),e.apply(this,n)}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},i(e)}function d(e,t,o){return d=s()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&l(r,o.prototype),r},d.apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(d,e);var t,o,n,i=(t=d,o=s(),function(){var e,n=c(t);if(o){var a=c(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return r(this,e)});function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t=i.call(this,e),Object.setPrototypeOf(a(t),d.prototype),t.name=t.constructor.name,t}return n=d,Object.defineProperty(n,"prototype",{writable:!1}),n}(i(Error)),h="".concat("-‐-―−ー－").concat("／/").concat("．.").concat("  ­​⁠　").concat("()（）［］\\[\\]").concat("~⁓∼～");function p(e,t){e=e.split("-"),t=t.split("-");for(var o=e[0].split("."),n=t[0].split("."),r=0;r<3;r++){var a=Number(o[r]),i=Number(n[r]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,o){return t&&m(e.prototype,t),o&&m(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var $=" ext. ",y=/^\d+$/,C=function(){function e(t){g(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!F(e)||!F(e.countries))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(F(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+E(e)+": "+e,"."))}(t),this.metadata=t,N.call(this,t)}return v(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&y.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new w(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new w(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var o=this.nonGeographic()[e];if(o)return o}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),w=function(){function e(t,o){g(this,e),this.globalMetadataObject=o,this.metadata=t,N.call(this,o.metadata)}return v(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new b(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&x(this.types(),e))return new S(x(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?$:this.metadata[13]||$}}]),e}(),b=function(){function e(t,o){g(this,e),this._format=t,this.metadata=o}return v(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||P.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),P=/^\(?\$1\)?$/,S=function(){function e(t,o){g(this,e),this.type=t,this.metadata=o}return v(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function x(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var F=function(e){return"object"===f(e)},E=function(e){return f(e)};function I(e,t){return(t=new C(t)).hasCountry(e)?t.country(e).ext():$}function T(e,t){if((t=new C(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function A(e,t){return void 0!==t.countries[e]}function N(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===p(t,"1.2.0")?this.v2=!0:-1===p(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var O=function(e){return"([".concat("0-9０-９٠-٩۰-۹","]{1,").concat(e,"})")};function _(e){var t="#?";return";ext="+O("20")+"|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|ｅ?ｘｔｎ?|доб|anexo)[:\\.．]?[  \\t,-]*"+O("20")+"#?|[  \\t,]*(?:[xｘ#＃~～]|int|ｉｎｔ)[:\\.．]?[  \\t,-]*"+O("9")+"#?|[- ]+"+O("6")+"#|[  \\t]*(?:,{2}|;)[:\\.．]?[  \\t,-]*"+O("15")+"#?|[  \\t]*(?:,)+[:\\.．]?[  \\t,-]*"+O("9")+t}var k="[+＋]{0,1}(?:["+h+"]*[0-9０-９٠-٩۰-۹]){3,}["+h+"0-9０-９٠-٩۰-۹]*",L=new RegExp("^[+＋]{0,1}(?:["+h+"]*[0-9０-９٠-٩۰-۹]){1,2}$","i"),M=k+"(?:"+_()+")?",D=new RegExp("^[0-9０-９٠-٩۰-۹]{2}$|^"+M+"$","i");function V(e){return e.length>=2&&D.test(e)}var R=new RegExp("(?:"+_()+")$","i");function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var U={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function j(e){return U[e]}function H(e){for(var t,o="",n=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return B(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?B(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=n()).done;){var r=j(t.value);r&&(o+=r)}return o}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function q(e){for(var t,o="",n=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return W(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?W(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=n()).done;)o+=G(t.value,o)||"";return o}function G(e,t){if("+"===e){if(t)return;return"+"}return j(e)}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function K(e,t){return X(e,void 0,t)}function X(e,t,o){var n=o.type(t),r=n&&n.possibleLengths()||o.possibleLengths();if(!r)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!o.type("FIXED_LINE"))return X(e,"MOBILE",o);var a=o.type("MOBILE");a&&(r=function(e,t){for(var o,n=e.slice(),r=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return z(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(o=r()).done;){var a=o.value;e.indexOf(a)<0&&n.push(a)}return n.sort(function(e,t){return e-t})}(r,a.possibleLengths()))}else if(t&&!n)return"INVALID_LENGTH";var i=e.length,d=r[0];return d===i?"IS_POSSIBLE":d>i?"TOO_SHORT":r[r.length-1]<i?"TOO_LONG":r.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Y(e,t){return"IS_POSSIBLE"===K(e,t)}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a=[],i=!0,d=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){d=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(d)throw r}}return a}}(e,t)||Z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(e){if("string"==typeof e)return Q(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Q(e,t):void 0}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ee(e){for(var t,o,n,r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=Z(e))){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}((e=e.replace(/^tel:/,"tel=")).split(";"));!(n=r()).done;){var a=J(n.value.split("="),2),i=a[0],d=a[1];switch(i){case"tel":t=d;break;case"ext":o=d;break;case"phone-context":"+"===d[0]&&(t=d+t)}}if(!V(t))return{};var s={number:t};return o&&(s.ext=o),s}function te(e){var t=e.number,o=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(o?";ext="+o:"")}function oe(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var re=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function ae(e,t,o){if(t=t||{},e.country){(o=new C(o)).selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(oe(n,o.nationalNumberPattern())){if(ie(n,"FIXED_LINE",o))return o.type("MOBILE")&&""===o.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":o.type("MOBILE")?ie(n,"MOBILE",o)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var r,a=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return ne(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(re);!(r=a()).done;){var i=r.value;if(ie(n,i,o))return i}}}}function ie(e,t,o){return!(!(t=o.type(t))||!t.pattern())&&!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&oe(e,t.pattern())}function de(e,t,o){return t=t||{},o=new C(o),!!e.country&&(o.selectNumberingPlan(e.country,e.countryCallingCode),o.hasTypes()?void 0!==ae(e,t,o.metadata):oe(t.v2?e.nationalNumber:e.phone,o.nationalNumberPattern()))}function se(e){return e.replace(new RegExp("[".concat(h,"]+"),"g")," ").trim()}var le=/(\$\d)/;function ce(e,t,o){var n=o.useInternationalFormat,r=o.withNationalPrefix;o.carrierCode,o.metadata;var a=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(le,t.nationalPrefixFormattingRule()):t.format());return n?se(a):a}var ue=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function fe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(o),!0).forEach(function(t){ge(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ge(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var me={formatExtension:function(e,t,o){return"".concat(e).concat(o.ext()).concat(t)}};function ve(e,t,o,n,r){var a=function(e,t){for(var o,n=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return he(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?he(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(o=n()).done;){var r=o.value;if(r.leadingDigitsPatterns().length>0){var a=r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length-1];if(0!==t.search(a))continue}if(oe(t,r.pattern()))return r}}(n.formats(),e);return a?ce(e,a,{useInternationalFormat:"INTERNATIONAL"===o,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r||!1!==r.nationalPrefix,carrierCode:t,metadata:n}):e}function $e(e,t,o,n){return t?n(e,t,o):e}function ye(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Ce(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(o),!0).forEach(function(t){we(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ye(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function we(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function be(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Pe=function(){function e(t,o,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!o)throw new TypeError("`nationalNumber` not passed");if(!n)throw new TypeError("`metadata` not passed");var r=new C(n);Se(t)&&(this.country=t,r.country(t),t=r.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=o,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=n}var t,o;return t=e,o=[{key:"setExt",value:function(e){this.ext=e}},{key:"isPossible",value:function(){return function(e,t,o){if(void 0===t&&(t={}),o=new C(o),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");o.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!o.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));o.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");o.selectNumberingPlan(e.countryCallingCode)}}if(o.possibleLengths())return Y(e.phone||e.nationalNumber,o);if(e.countryCallingCode&&o.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return de(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new C(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return ae(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return function(e,t,o,n){if(o=o?fe(fe({},me),o):me,n=new C(n),e.country&&"001"!==e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";n.selectNumberingPlan(e.countryCallingCode)}var r,a=n.countryCallingCode(),i=o.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?$e(r=ve(i,e.carrierCode,"NATIONAL",n,o),e.ext,n,o.formatExtension):"";case"INTERNATIONAL":return i?(r=ve(i,null,"INTERNATIONAL",n,o),$e(r="+".concat(a," ").concat(r),e.ext,n,o.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return te({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!o.fromCountry)return;var d=function(e,t,o,n,r){if(T(n,r.metadata)===o){var a=ve(e,t,"NATIONAL",r);return"1"===o?o+" "+a:a}var i=function(e,t,o){var n=new C(o);return n.selectNumberingPlan(e,void 0),n.defaultIDDPrefix()?n.defaultIDDPrefix():ue.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,0,r.metadata);if(i)return"".concat(i," ").concat(o," ").concat(ve(e,null,"INTERNATIONAL",r))}(i,e.carrierCode,a,o.fromCountry,n);return $e(d,e.ext,n,o.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?Ce(Ce({},t),{},{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],o&&be(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Se=function(e){return/^[A-Z]{2}$/.test(e)},xe=new RegExp("([0-9０-９٠-٩۰-۹])");function Fe(e,t,o,n){if(t){var r=new C(n);r.selectNumberingPlan(t,o);var a=new RegExp(r.IDDPrefix());if(0===e.search(a)){var i=(e=e.slice(e.match(a)[0].length)).match(xe);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}function Ee(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var o=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=o.exec(e);if(n){var r,a,i,d=n.length-1,s=d>0&&n[d];if(t.nationalPrefixTransformRule()&&s)r=e.replace(o,t.nationalPrefixTransformRule()),d>1&&(a=n[1]);else{var l=n[0];r=e.slice(l.length),s&&(a=n[1])}if(s){var c=e.indexOf(n[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=n[0];return{nationalNumber:r,nationalPrefix:i,carrierCode:a}}}return{nationalNumber:e}}function Ie(e,t){var o=Ee(e,t),n=o.carrierCode,r=o.nationalNumber;if(r!==e){if(!function(e,t,o){return!(oe(e,o.nationalNumberPattern())&&!oe(t,o.nationalNumberPattern()))}(e,r,t))return{nationalNumber:e};if(t.possibleLengths()&&!function(e,t){switch(K(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(r,t))return{nationalNumber:e}}return{nationalNumber:r,carrierCode:n}}function Te(e,t,o,n){var r=t?T(t,n):o;if(0===e.indexOf(r)){(n=new C(n)).selectNumberingPlan(t,o);var a=e.slice(r.length),i=Ie(a,n).nationalNumber,d=Ie(e,n).nationalNumber;if(!oe(d,n.nationalNumberPattern())&&oe(i,n.nationalNumberPattern())||"TOO_LONG"===K(d,n))return{countryCallingCode:r,number:a}}return{number:e}}function Ae(e,t,o,n){if(!e)return{};if("+"!==e[0]){var r=Fe(e,t,o,n);if(!r||r===e){if(t||o){var a=Te(e,t,o,n),i=a.countryCallingCode,d=a.number;if(i)return{countryCallingCode:i,number:d}}return{number:e}}e="+"+r}if("0"===e[1])return{};n=new C(n);for(var s=2;s-1<=3&&s<=e.length;){var l=e.slice(1,s);if(n.hasCallingCode(l))return n.selectNumberingPlan(l),{countryCallingCode:l,number:e.slice(s)};s++}return{}}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Oe(e,t,o){var n=o.getCountryCodesForCallingCode(e);if(n)return 1===n.length?n[0]:function(e,t,o){o=new C(o);for(var n,r=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Ne(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=r()).done;){var a=n.value;if(o.country(a),o.leadingDigits()){if(t&&0===t.search(o.leadingDigits()))return a}else if(ae({phone:t,country:a},void 0,o.metadata))return a}}(n,t,o.metadata)}var _e=new RegExp("[+＋0-9０-９٠-٩۰-۹]"),ke=new RegExp("[^0-9０-９٠-٩۰-۹#]+$");function Le(e,t,o){if(t=t||{},o=new C(o),t.defaultCountry&&!o.hasCountry(t.defaultCountry)){if(t.v2)throw new u("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var n=function(e,t,o){if(e&&0===e.indexOf("tel:"))return ee(e);var n=function(e,t,o){if(e)if(e.length>250){if(o)throw new u("TOO_LONG")}else{if(!1===t)return e;var n=e.search(_e);if(!(n<0))return e.slice(n).replace(ke,"")}}(e,o,t);if(!n)return{};if(!V(n))return function(e){return L.test(e)}(n)?{error:"TOO_SHORT"}:{};var r=function(e){var t=e.search(R);if(t<0)return{};for(var o=e.slice(0,t),n=e.match(R),r=1;r<n.length;){if(n[r])return{number:o,ext:n[r]};r++}}(n);return r.ext?r:{number:n}}(e,t.v2,t.extract),r=n.number,a=n.ext,i=n.error;if(!r){if(t.v2){if("TOO_SHORT"===i)throw new u("TOO_SHORT");throw new u("NOT_A_NUMBER")}return{}}var d=function(e,t,o,n){var r,a=Ae(q(e),t,o,n.metadata),i=a.countryCallingCode,d=a.number;if(i)n.selectNumberingPlan(i);else{if(!d||!t&&!o)return{};n.selectNumberingPlan(t,o),t&&(r=t),i=o||T(t,n.metadata)}if(!d)return{countryCallingCode:i};var s=Ie(q(d),n),l=s.nationalNumber,c=s.carrierCode,u=Oe(i,l,n);return u&&(r=u,"001"===u||n.country(r)),{country:r,countryCallingCode:i,nationalNumber:l,carrierCode:c}}(r,t.defaultCountry,t.defaultCallingCode,o),s=d.country,l=d.nationalNumber,c=d.countryCallingCode,h=d.carrierCode;if(!o.hasSelectedNumberingPlan()){if(t.v2)throw new u("INVALID_COUNTRY");return{}}if(!l||l.length<2){if(t.v2)throw new u("TOO_SHORT");return{}}if(l.length>17){if(t.v2)throw new u("TOO_LONG");return{}}if(t.v2){var p=new Pe(c,l,o.metadata);return s&&(p.country=s),h&&(p.carrierCode=h),a&&(p.ext=a),p}var f=!!(t.extended?o.hasSelectedNumberingPlan():s)&&oe(l,o.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:c,carrierCode:h,valid:f,possible:!!f||!(!0!==t.extended||!o.possibleLengths()||!Y(l,o)),phone:l,ext:a}:f?function(e,t,o){var n={country:e,phone:t};return o&&(n.ext=o),n}(s,l,a):{}}function Me(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function De(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(o),!0).forEach(function(t){Ve(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Me(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Ve(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Re(e,t,o){return Le(e,De(De({},t),{},{v2:!0}),o)}function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function Ue(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function je(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function We(){var e=qe(arguments);return Re(e.text,e.options,e.metadata)}function qe(e){var t,o,n,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a=[],i=!0,d=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){d=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(d)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return He(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?He(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.prototype.slice.call(e),4),a=r[0],i=r[1],d=r[2],s=r[3];if("string"!=typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,i&&"string"!=typeof i){if(!Ge(i))throw new Error("Invalid second argument: ".concat(i));d?(o=i,n=d):n=i}else s?(o=d,n=s):(o=void 0,n=d),i&&(o=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(o),!0).forEach(function(t){je(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ue(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({defaultCountry:i},o));return{text:t,options:o,metadata:n}}var Ge=function(e){return"object"===Be(e)};function ze(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Ke(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(o),!0).forEach(function(t){Xe(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ze(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Xe(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ye(e,t,o){t&&t.defaultCountry&&!A(t.defaultCountry,o)&&(t=Ke(Ke({},t),{},{defaultCountry:void 0}));try{return Re(e,t,o)}catch(e){if(!(e instanceof u))throw e}}function Je(){var e=qe(arguments);return Ye(e.text,e.options,e.metadata)}function Ze(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Qe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(o),!0).forEach(function(t){et(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ze(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function et(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function tt(){var e=qe(arguments),t=e.text,o=e.options,n=e.metadata,r=Ye(t,o=Qe(Qe({},o),{},{extract:!1}),n);return r&&r.isValid()||!1}function ot(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(o),!0).forEach(function(t){rt(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ot(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function rt(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function at(){var e=qe(arguments),t=e.text,o=e.options,n=e.metadata,r=Ye(t,o=nt(nt({},o),{},{extract:!1}),n);return r&&r.isPossible()||!1}function it(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function dt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?it(Object(o),!0).forEach(function(t){st(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):it(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function st(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function lt(){var e=qe(arguments),t=e.text,o=e.options,n=e.metadata;o=dt(dt({},o),{},{extract:!1});try{var r=Re(t,o,n);(n=new C(n)).selectNumberingPlan(r.countryCallingCode);var a=K(r.nationalNumber,n);if("IS_POSSIBLE"!==a)return a}catch(e){if(e instanceof u)return e.message;throw e}}function ct(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ut(e,t,o){return t&&ct(e.prototype,t),o&&ct(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var pt=ut(function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ht(this,e),this.key=t,this.value=o,this.next=n,this.prev=r}),ft=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;ht(this,e),this.size=0,this.limit=t,this.head=null,this.tail=null,this.cache={}}return ut(e,[{key:"put",value:function(e,t){if(this.ensureLimit(),this.head){var o=new pt(e,t,this.head);this.head.prev=o,this.head=o}else this.head=this.tail=new pt(e,t);this.cache[e]=this.head,this.size++}},{key:"get",value:function(e){if(this.cache[e]){var t=this.cache[e].value;return this.remove(e),this.put(e,t),t}console.log("Item not available in cache for key ".concat(e))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(e){var t=this.cache[e];null!==t.prev?t.prev.next=t.next:this.head=t.next,null!==t.next?t.next.prev=t.prev:this.tail=t.prev,delete this.cache[e],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),e}();function gt(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var mt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=new ft(t)}var t,o;return t=e,(o=[{key:"getPatternForRegExp",value:function(e){var t=this.cache.get(e);return t||(t=new RegExp("^"+e),this.cache.put(e,t)),t}}])&&gt(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vt(e,t){if(e<0||t<=0||t<e)throw new TypeError;return"{".concat(e,",").concat(t,"}")}function $t(e,t){var o=t.search(e);return o>=0?t.slice(0,o):t}var yt="   ᠎ - \u2028\u2029  　",Ct="[".concat(yt,"]"),wt="[^".concat(yt,"]"),bt="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹０-９","]"),Pt="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",St="[".concat(Pt,"]"),xt=new RegExp(St),Ft="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩＄￠￡￥￦","]"),Et=new RegExp(Ft),It="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),Tt=new RegExp(It),At=new RegExp("[\0--ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function Nt(e){return!(!xt.test(e)&&!Tt.test(e))&&At.test(e)}function Ot(e){return"%"===e||Et.test(e)}function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var kt={POSSIBLE:function(e,t,o){return!0},VALID:function(e,t,o){return!(!de(e,void 0,o)||!Lt(e,t.toString()))},STRICT_GROUPING:function(e,t,o,n){var r=t.toString();return!(!de(e,void 0,o)||!Lt(e,r)||Dt(e,r)||!Mt(e))&&Vt(e,t,o,Ut,n)},EXACT_GROUPING:function(e,t,o,n){var r=t.toString();return!(!de(e,void 0,o)||!Lt(e,r)||Dt(e,r)||!Mt(e))&&Vt(e,t,o,Bt,n)}};function Lt(e,t,o){for(var n=0;n<t.length-1;n++){var r=t.charAt(n);if("x"===r||"X"===r){var a=t.charAt(n+1);if("x"===a||"X"===a){if(n++,util.isNumberMatch(e,t.substring(n))!=MatchType.NSN_MATCH)return!1}else if(H(t.substring(n))!==e.ext)return!1}}return!0}function Mt(e,t){if("FROM_DEFAULT_COUNTRY"!=e.getCountryCodeSource())return!0;var o=util.getRegionCodeForCountryCode(e.getCountryCode()),n=util.getMetadataForRegion(o);if(null==n)return!0;var r=util.getNationalSignificantNumber(e),a=util.chooseFormattingPatternForNumber(n.numberFormats(),r);if(a&&a.getNationalPrefixFormattingRule().length>0){if(a.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(a.getNationalPrefixFormattingRule()))return!0;var i=PhoneNumberUtil.normalizeDigitsOnly(e.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(i,n,null)}return!0}function Dt(e,t){var o=t.indexOf("/");if(o<0)return!1;var n=t.indexOf("/",o+1);return!(n<0)&&(!(e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(t.substring(0,o))!==String(e.getCountryCode())||t.slice(n+1).indexOf("/")>=0)}function Vt(e,t,o,n,r){var a=normalizeDigits(t,!0),i=Rt(o,e,null);if(n(o,e,a,i))return!0;var d=MetadataManager.getAlternateFormatsForCountry(e.getCountryCode()),s=util.getNationalSignificantNumber(e);if(d)for(var l,c=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return _t(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_t(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(d.numberFormats());!(l=c()).done;){var u=l.value;if((!(u.leadingDigitsPatterns().length>0)||r.getPatternForRegExp("^"+u.leadingDigitsPatterns()[0]).test(s))&&n(o,e,a,i=Rt(o,e,u)))return!0}return!1}function Rt(e,t,o){if(o){var n=util.getNationalSignificantNumber(t);return util.formatNsnUsingPattern(n,o,"RFC3966",e).split("-")}var r=formatNumber(t,"RFC3966",e),a=r.indexOf(";");a<0&&(a=r.length);var i=r.indexOf("-")+1;return r.slice(i,a).split("-")}function Bt(e,t,o,n){var r=o.split(NON_DIGITS_PATTERN),a=t.hasExtension()?r.length-2:r.length-1;if(1==r.length||r[a].contains(util.getNationalSignificantNumber(t)))return!0;for(var i,d,s=n.length-1;s>0&&a>=0;){if(r[a]!==n[s])return!1;s--,a--}return a>=0&&(i=r[a],d=n[0],i.indexOf(d,i.length-d.length)===i.length-d.length)}function Ut(e,t,o,n){var r,a=0;if(t.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var i=String(t.getCountryCode());a=o.indexOf(i)+i.length()}for(var d=0;d<n.length;d++){if((a=o.indexOf(n[d],a))<0)return!1;if(a+=n[d].length(),0==d&&a<o.length()){var s=util.getRegionCodeForCountryCode(t.getCountryCode());if(null!=util.getNddPrefixForRegion(s,!0)&&Character.isDigit(o.charAt(a)))return r=util.getNationalSignificantNumber(t),0===o.slice(a-n[d].length).indexOf(r)}}return o.slice(a).contains(t.getExtension())}var jt=/[\\/] *x/;function Ht(e){return $t(jt,e)}var Wt=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,qt=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,Gt=/^:[0-5]\d/;function zt(e,t,o){if(Wt.test(e))return!1;if(qt.test(e)){var n=o.slice(t+e.length);if(Gt.test(n))return!1}return!0}var Kt="(\\[（［",Xt="[^".concat(Kt).concat(")\\]）］","]"),Yt="[".concat(Kt).concat("+＋","]"),Jt=new RegExp("^"+Yt),Zt=vt(0,3),Qt=new RegExp("^(?:[(\\[（［])?(?:"+Xt+"+[)\\]）］])?"+Xt+"+(?:[(\\[（［]"+Xt+"+[)\\]）］])"+Zt+Xt+"*$"),eo=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function to(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function oo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function no(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(o),!0).forEach(function(t){ro(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oo(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ro(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ao(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var io=_(),so=["\\/+(.*)/","(\\([^(]*)","(?:".concat(Ct,"-|-").concat(Ct,")").concat(Ct,"*(.+)"),"[‒-―－]".concat(Ct,"*(.+)"),"\\.+".concat(Ct,"*([^.]+)"),"".concat(Ct,"+(").concat(wt,"+)")],lo=vt(0,2),co=vt(0,4),uo=vt(0,20),ho="[".concat(h,"]")+co,po=bt+vt(1,20),fo="(?:"+Yt+ho+")"+lo+po+"(?:"+ho+po+")"+uo+"(?:"+io+")?",go=new RegExp("[^".concat("0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹０-９").concat(Pt,"#]+$")),mo=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,vo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!(o=no(no({},o),{},{defaultCallingCode:o.defaultCallingCode,defaultCountry:o.defaultCountry&&A(o.defaultCountry,n)?o.defaultCountry:void 0,leniency:o.leniency||o.extended?"POSSIBLE":"VALID",maxTries:o.maxTries||mo})).leniency)throw new TypeError("`Leniency` not supplied");if(o.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=t,this.options=o,this.metadata=n,this.leniency=kt[o.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(o.leniency,"."));this.maxTries=o.maxTries,this.PATTERN=new RegExp(fo,"ig"),this.state="NOT_READY",this.searchIndex=0,this.regExpCache=new mt(32)}var t,o;return t=e,o=[{key:"find",value:function(){for(var e;this.maxTries>0&&null!==(e=this.PATTERN.exec(this.text));){var t=e[0],o=e.index;if(zt(t=Ht(t),o,this.text)){var n=this.parseAndVerify(t,o,this.text)||this.extractInnerMatch(t,o,this.text);if(n){if(this.options.v2){var r=new Pe(n.country||n.countryCallingCode,n.phone,this.metadata);return n.ext&&(r.ext=n.ext),{startsAt:n.startsAt,endsAt:n.endsAt,number:r}}return n}}this.maxTries--}}},{key:"extractInnerMatch",value:function(e,t,o){for(var n,r=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return to(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?to(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(so);!(n=r()).done;)for(var a=n.value,i=!0,d=void 0,s=new RegExp(a,"g");this.maxTries>0&&null!==(d=s.exec(e));){if(i){var l=$t(go,e.slice(0,d.index)),c=this.parseAndVerify(l,t,o);if(c)return c;this.maxTries--,i=!1}var u=$t(go,d[1]),h=e.indexOf(u,d.index),p=this.parseAndVerify(u,t+h,o);if(p)return p;this.maxTries--}}},{key:"parseAndVerify",value:function(e,t,o){if(function(e,t,o,n){if(Qt.test(e)&&!eo.test(e)){if("POSSIBLE"!==n){if(t>0&&!Jt.test(e)){var r=o[t-1];if(Ot(r)||Nt(r))return!1}var a=t+e.length;if(a<o.length){var i=o[a];if(Ot(i)||Nt(i))return!1}}return!0}}(e,t,o,this.options.leniency)){var n=Le(e,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(n.possible&&this.leniency(n,e,this.metadata,this.regExpCache)){var r={startsAt:t,endsAt:t+e.length,phone:n.phone};return n.country&&"001"!==n.country?r.country=n.country:r.countryCallingCode=n.countryCallingCode,n.ext&&(r.ext=n.ext),r}}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.lastMatch=this.find(),this.lastMatch?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var e=this.lastMatch;return this.lastMatch=null,this.state="NOT_READY",e}}],o&&ao(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $o(){var e=qe(arguments);return function(e,t,o){for(var n=new vo(e,t,o),r=[];n.hasNext();)r.push(n.next());return r}(e.text,e.options,e.metadata)}function yo(){var e=qe(arguments),t=e.text,o=e.options,n=e.metadata,r=new vo(t,o,n);return function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},Symbol.iterator,function(){return{next:function(){return r.hasNext()?{done:!1,value:r.next()}:{done:!0}}}})}function Co(e){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function wo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function bo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(o),!0).forEach(function(t){Po(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):wo(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Po(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function So(e,t,o,n){var r=xo(t,o,n);return $o(e,r.options,r.metadata)}function xo(e,t,o){return o?e&&(t=bo(bo({},t),{},{defaultCountry:e})):t?(o=t,t=e?Fo(e)?e:{defaultCountry:e}:void 0):(o=e,t=void 0),{options:bo(bo({},t),{},{v2:!0}),metadata:o}}var Fo=function(e){return"object"===Co(e)};function Eo(e,t,o,n){var r=xo(t,o,n);return yo(e,r.options,r.metadata)}function Io(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var To=function(){function e(t){var o=t.onCountryChange,n=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=o,this.onCallingCodeChange=n}var t,o;return t=e,(o=[{key:"reset",value:function(e,t){this.international=!1,this.IDDPrefix=void 0,this.missingPlus=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(e,t)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(e){for(var t=0,o=Object.keys(e);t<o.length;t++){var n=o[t];this[n]=e[n]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&Io(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var No="x",Oo=new RegExp(No);function _o(e,t){if(t<1)return"";for(var o="";t>1;)1&t&&(o+=e),t>>=1,e+=e;return o+e}function ko(e,t){return")"===e[t]&&t++,function(e){for(var t=[],o=0;o<e.length;)"("===e[o]?t.push(o):")"===e[o]&&t.pop(),o++;var n=0,r="";t.push(e.length);for(var a=0,i=t;a<i.length;a++){var d=i[a];r+=e.slice(n,d),n=d+1}return r}(e.slice(0,t))}function Lo(e,t,o){var n=o.metadata,r=o.shouldTryNationalPrefixFormattingRule,a=o.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,o){var n=o.metadata,r=o.shouldTryNationalPrefixFormattingRule,a=o.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,r(t)){var i=Mo(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:n});if(i)return i}return Mo(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:r,getSeparatorAfterNationalPrefix:a})}function Mo(e,t,o){var n=o.metadata,r=o.useNationalPrefixFormattingRule,a=o.getSeparatorAfterNationalPrefix,i=ce(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:r,metadata:n});if(r||(e.nationalPrefix?i=e.nationalPrefix+a(t)+i:e.complexPrefixBeforeNationalSignificantNumber&&(i=e.complexPrefixBeforeNationalSignificantNumber+" "+i)),function(e,t){return H(e)===t.getNationalDigits()}(i,e))return i}function Do(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Vo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,o;return t=e,(o=[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],o=t.branches,n=t.instructions;if(o)return{op:"|",args:o.concat([jo(n)])};if(0===n.length)throw new Error("Pattern is required");return 1===n.length?n[0]:n}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(Uo);if(t){var o=t[1],n=e.slice(0,t.index),r=e.slice(t.index+o.length);switch(o){case"(?:":n&&this.parsePattern(n),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(n&&this.parsePattern(n),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var a=this.getContext().branches;a.push(jo(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:a});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(n&&this.parsePattern(n),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(jo(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":n&&this.parsePattern(n),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Ro(n)});break;default:throw new Error("Unknown operator: ".concat(o))}r&&this.parsePattern(r)}else{if(Bo.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])&&Do(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ro(e){for(var t=[],o=0;o<e.length;){if("-"===e[o]){if(0===o||o===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var n=e[o-1].charCodeAt(0)+1,r=e[o+1].charCodeAt(0)-1,a=n;a<=r;)t.push(String.fromCharCode(a)),a++}else t.push(e[o]);o++}return t}var Bo=/[\(\)\[\]\?\:\|]/,Uo=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function jo(e){return 1===e.length?e[0]:e}function Ho(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Wo(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Wo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function qo(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Go=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new Vo).parse(t)}var t,o;return t=e,o=[{key:"match",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!e)throw new Error("String is required");var o=zo(e.split(""),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!o||!o.overflow||t)return o}}],o&&qo(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zo(e,t,o){if("string"==typeof t){var n=e.join("");return 0===t.indexOf(n)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===n.indexOf(t)?o&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var r=e.slice(),a=0;a<t.length;){var i=zo(r,t[a],o&&a===t.length-1);if(!i)return;if(i.overflow)return i;if(!i.match){if(i.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(i,null,2)))}if(0===(r=r.slice(i.matchedChars.length)).length)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};a++}return o?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-r.length)}}switch(t.op){case"|":for(var d,s,l=Ho(t.args);!(s=l()).done;){var c=zo(e,s.value,o);if(c){if(c.overflow)return c;if(c.match)return{match:!0,matchedChars:c.matchedChars};if(!c.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(c,null,2)));d=!0}}return d?{partialMatch:!0}:void 0;case"[]":for(var u,h=Ho(t.args);!(u=h()).done;){var p=u.value;if(e[0]===p)return 1===e.length?{match:!0,matchedChars:e}:o?{overflow:!0}:{match:!0,matchedChars:[p]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function Ko(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Xo(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Xo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Yo(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Jo=_o("9",15),Zo=/[- ]/,Qo=new RegExp("["+h+"]*\\$1["+h+"]*(\\$\\d["+h+"]*)*$"),en=function(){function e(t){t.state;var o=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=o,this.resetFormat()}var t,o;return t=e,o=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var o=this;if(function(e,t){return"IS_POSSIBLE"===K(e,t)}(t.nationalSignificantNumber,this.metadata))for(var n,r=Ko(this.matchingFormats);!(n=r()).done;){var a=n.value,i=Lo(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return o.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return o.getSeparatorAfterNationalPrefix(e)}});if(i)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(i.replace(/\d/g,No),t),this.populatedNationalNumberTemplate=i,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(No),i}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var o=this.chosenFormat,n=this.chooseFormat(t);if(n)return n===o?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,o=e.nationalSignificantNumber,n=e.nationalPrefix,r=e.international,a=o,i=a.length-3;i<0&&(i=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,r,n)&&t.formatMatches(e,a,i)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,o){return!(o&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!o&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,o){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;o=Math.min(o,n-1);var r=e.leadingDigitsPatterns()[o];if(t.length<3)try{return void 0!==new Go(r).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(r,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,o=this,n=function(){var n=t.value;return o.chosenFormat===n?"break":Qo.test(o.getFormatFormat(n,e.international))?o.createTemplateForFormat(n,e)?(o.chosenFormat=n,"break"):(o.matchingFormats=o.matchingFormats.filter(function(e){return e!==n}),"continue"):"continue"},r=Ko(this.matchingFormats.slice());!(t=r()).done;){if("break"===n())break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var o=this.getTemplateForFormat(e,t);return o?(this.setNationalNumberTemplate(o,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&Zo.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var o=e.IDDPrefix,n=e.missingPlus;return o?t&&!1===t.spacing?o:o+" ":n?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,o=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";o<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(No,t+1),o++;return ko(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,No)+_o(No,t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var o=t.nationalSignificantNumber,n=t.international,r=t.nationalPrefix,a=t.complexPrefixBeforeNationalSignificantNumber,i=e.pattern();i=i.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var d=Jo.match(i)[0];if(!(o.length>d.length)){var s=new RegExp("^"+i+"$"),l=o.replace(/\d/g,"9");s.test(l)&&(d=l);var c,u=this.getFormatFormat(e,n);if(this.shouldTryNationalPrefixFormattingRule(e,{international:n,nationalPrefix:r})){var h=u.replace(le,e.nationalPrefixFormattingRule());if(H(e.nationalPrefixFormattingRule())===(r||"")+H("$1")&&(u=h,c=!0,r))for(var p=r.length;p>0;)u=u.replace(/\d/,No),p--}var f=d.replace(new RegExp(i),u).replace(new RegExp("9","g"),No);return c||(a?f=_o(No,a.length)+" "+f:r&&(f=_o(No,r.length)+this.getSeparatorAfterNationalPrefix(e)+f)),n&&(f=se(f)),f}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,o){for(var n,r=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return Ao(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ao(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o.split(""));!(n=r()).done;){var a=n.value;if(e.slice(t+1).search(Oo)<0)return;t=e.search(Oo),e=e.replace(Oo,a)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],ko(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var o=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var r=e.usesNationalPrefix();if(r&&n||!r&&!o)return!0}}}],o&&Yo(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a=[],i=!0,d=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){d=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(d)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?on(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function nn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var rn=new RegExp("^["+h+"0-9０-９٠-٩۰-۹]+$","i"),an="(?:[+＋]["+h+"0-9０-９٠-٩۰-۹]*|["+h+"0-9０-９٠-٩۰-۹]+)",dn=new RegExp("[^"+h+"0-9０-９٠-٩۰-۹]+.*$"),sn=/[^\d\[\]]/,ln=function(){function e(t){var o=t.defaultCountry,n=t.defaultCallingCode,r=t.metadata,a=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=o,this.defaultCallingCode=n,this.metadata=r,this.onNationalSignificantNumberChange=a}var t,o;return t=e,(o=[{key:"input",value:function(e,t){var o,n=function(e){var t=tn(function(e){var t=function(e){var t,o=e.search(an);if(!(o<0))return"+"===(e=e.slice(o))[0]&&(t=!0,e=e.slice(1)),e=e.replace(dn,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]?[t.slice(1),!0]:[t]}(e),2),o=t[0],n=t[1];return rn.test(o)||(o=""),[o,n]}(e),r=tn(n,2),a=r[0],i=r[1],d=H(a);return i&&(t.digits||(t.startInternationalNumber(),d||(o=!0))),d&&this.inputDigits(d,t),{digits:d,justLeadingPlus:o}}},{key:"inputDigits",value:function(e,t){var o=t.digits,n=o.length<3&&o.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,o=e.callingCode;return t&&!o}},{key:"extractCountryCallingCode",value:function(e){var t=Ae("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=t.countryCallingCode,n=t.number;if(o)return e.setCallingCode(o),e.update({nationalSignificantNumber:n}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&sn.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var o=Ee(e,this.metadata),n=o.nationalPrefix,r=o.nationalNumber,a=o.carrierCode;if(r!==e)return this.onExtractedNationalNumber(n,a,r,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,o){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,o);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=Ee(e,this.metadata),r=n.nationalPrefix,a=n.nationalNumber,i=n.carrierCode;if(a!==t)return this.onExtractedNationalNumber(r,i,a,e,o),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,o,n,r){var a,i,d=n.lastIndexOf(o);if(d>=0&&d===n.length-o.length){i=!0;var s=n.slice(0,d);s!==e&&(a=s)}r({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:o,nationalSignificantNumberMatchesInput:i,complexPrefixBeforeNationalSignificantNumber:a}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)})||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,o=e.IDDPrefix,n=e.digits;if(e.nationalSignificantNumber,!t&&!o){var r=Fe(n,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==r&&r!==n?(e.update({IDDPrefix:n.slice(0,n.length-r.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=Te(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=t.countryCallingCode;if(t.number,o)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:o}),!0}}},{key:"startInternationalNumber",value:function(e,t){var o=t.country,n=t.callingCode;e.startInternationalNumber(o,n),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}])&&nn(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function cn(e){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(e)}function un(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function hn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var pn=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new C(o);var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a=[],i=!0,d=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){d=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(d)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return un(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?un(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.getCountryAndCallingCode(t),2),r=n[0],a=n[1];this.defaultCountry=r,this.defaultCallingCode=a,this.reset()}var t,o;return t=e,(o=[{key:"getCountryAndCallingCode",value:function(e){var t,o;return e&&("object"===cn(e)?(t=e.defaultCountry,o=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,o]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),o=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(o){var n;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(o,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var r=this.state.getNationalDigits();r&&(n=this.formatter.format(r,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new To({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,o){e.metadata.selectNumberingPlan(o,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new en({state:this.state,metadata:this.metadata}),this.parser=new ln({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset(this.defaultCountry,this.defaultCallingCode),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){return this.state.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var o=this.state.callingCode;return function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e}(o?e?"".concat(o," ").concat(e):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,o=e.complexPrefixBeforeNationalSignificantNumber,n=e.nationalPrefix,r=t,a=o||n;return a&&(r=a+r),r}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,No)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(Oe(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,o=e.callingCode,n=e.country,r=e.nationalSignificantNumber;if(t)return this.isInternational()?o?"+"+o+r:"+"+t:n||o?"+"+(n?this.metadata.countryCallingCode():o)+r:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,o=e.carrierCode,n=e.callingCode,r=this._getCountry();if(t&&(r||n)){var a=new Pe(r||n,t,this.metadata.metadata);return o&&(a.carrierCode=o),a}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])&&hn(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fn(e){return new C(e).getCountries()}function gn(e,t,o){if(t[e])return new Pe(e,t[e],o)}function mn(e,t,o){return o||(o=t,t=void 0),new pn(t,o).input(e)}function vn(){return o(We,arguments)}function $n(){return o(Je,arguments)}function yn(e,o){return vo.call(this,e,o,t)}function Cn(e){return pn.call(this,e,t)}function wn(){return C.call(this,t)}yn.prototype=Object.create(vo.prototype,{}),yn.prototype.constructor=yn,Cn.prototype=Object.create(pn.prototype,{}),Cn.prototype.constructor=Cn,wn.prototype=Object.create(C.prototype,{}),wn.prototype.constructor=wn,e.AsYouType=Cn,e.DIGIT_PLACEHOLDER=No,e.Metadata=wn,e.ParseError=u,e.PhoneNumberMatcher=yn,e.default=$n,e.findNumbers=function(){return o($o,arguments)},e.findPhoneNumbersInText=function(){return o(So,arguments)},e.formatIncompletePhoneNumber=function(){return o(mn,arguments)},e.formatRFC3966=te,e.getCountries=function(){return o(fn,arguments)},e.getCountryCallingCode=function(){return o(T,arguments)},e.getExampleNumber=function(){return o(gn,arguments)},e.getExtPrefix=function(){return o(I,arguments)},e.isPossiblePhoneNumber=function(){return o(at,arguments)},e.isSupportedCountry=function(){return o(A,arguments)},e.isValidPhoneNumber=function(){return o(tt,arguments)},e.parseDigits=H,e.parseIncompletePhoneNumber=q,e.parsePhoneNumber=vn,e.parsePhoneNumberCharacter=G,e.parsePhoneNumberFromString=$n,e.parsePhoneNumberWithError=vn,e.parseRFC3966=ee,e.searchNumbers=function(){return o(yo,arguments)},e.searchPhoneNumbersInText=function(){return o(Eo,arguments)},e.validatePhoneNumberLength=function(){return o(lt,arguments)},Object.defineProperty(e,"__esModule",{value:!0})});