12 |
- /*! third party licenses: dist/vendor.LICENSE.txt */
- import{c6 as vn,bW as tt,b$ as gt,bR as Q,bS as Ae,b_ as A,v as gi,b as yi,a1 as vi,F as bi,D as wi,c0 as Yt,cg as zt,bZ as Vt,bQ as Fe,aa as bn,cb as wn,ak as Cn,al as xn,af as je,G as En,R as Pn,aV as B}from"./core-common.mjs";import{R as Sn}from"./chunks/index-D0hy_tCT.mjs";import{n as M,be as On,a3 as Nn,a8 as In,b2 as Mn,a0 as An,bL as _n,bM as Dn,B as Ln,b as Tn,ae as kn,bN as Rn,bO as Bn,L as Fn,a7 as jn}from"./chunks/icons-TElqpmA8.mjs";import{S as Ci,A as kt,a as Ue,P as He,b as Ne,c as Un,U as Hn,d as Oa,e as Wn,N as z,f as Ot,V as Na,g as _e,D as Gn,h as Vn,i as Yn,j as oe,k as zn}from"./chunks/validate-DSIeNYaS.mjs";import{x as yt}from"./chunks/index-CDMqmWCu.mjs";/* empty css */import"./chunks/index-PaKKd09k.mjs";import{z as St}from"./chunks/_plugin-vue2_normalizer-VrK6B12S-BQkexw0P.mjs";import{l as Xn}from"./chunks/logger-C7fGMvfA.mjs";import{d as We}from"./chunks/index-DCgLaXhm.mjs";import{m as ae}from"./chunks/index-DaZEPb_2.mjs";import"./chunks/preload-helper-BG02UnR2.mjs";import"./chunks/index-CiG5J8j_.mjs";var xi={},Ei={exports:{}};(function(e,a){(function(i,o){e.exports=o()})(vn,function(){function i(n,d){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);d&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),r.push.apply(r,s)}return r}function o(n){for(var d=1;d<arguments.length;d++){var r=arguments[d]!=null?arguments[d]:{};d%2?i(Object(r),!0).forEach(function(s){C(n,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(r,s))})}return n}function c(n){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},c(n)}function y(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}function b(n,d){for(var r=0;r<d.length;r++){var s=d[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,Zt(s.key),s)}}function w(n,d,r){return d&&b(n.prototype,d),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function C(n,d,r){return d=Zt(d),d in n?Object.defineProperty(n,d,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[d]=r,n}function P(n){return H(n)||it(n)||K(n)||vt()}function H(n){if(Array.isArray(n))return Z(n)}function it(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function K(n,d){if(n){if(typeof n=="string")return Z(n,d);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z(n,d)}}function Z(n,d){(d==null||d>n.length)&&(d=n.length);for(var r=0,s=new Array(d);r<d;r++)s[r]=n[r];return s}function vt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(n,d){if(typeof n!="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var s=r.call(n,d||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(n)}function Zt(n){var d=ue(n,"string");return typeof d=="symbol"?d:String(d)}var Nt=typeof window<"u"&&typeof window.document<"u",X=Nt?window:{},ce=Nt&&X.document.documentElement?"ontouchstart"in X.document.documentElement:!1,$e=Nt?"PointerEvent"in X:!1,_="cropper",he="all",qe="crop",Ke="move",Ze="zoom",bt="e",wt="w",It="s",ct="n",Rt="ne",Bt="nw",Ft="se",jt="sw",pe="".concat(_,"-crop"),Je="".concat(_,"-disabled"),G="".concat(_,"-hidden"),Qe="".concat(_,"-hide"),Ti="".concat(_,"-invisible"),Jt="".concat(_,"-modal"),fe="".concat(_,"-move"),Ut="".concat(_,"Action"),Qt="".concat(_,"Preview"),me="crop",ta="move",ea="none",ge="crop",ye="cropend",ve="cropmove",be="cropstart",aa="dblclick",ki=ce?"touchstart":"mousedown",Ri=ce?"touchmove":"mousemove",Bi=ce?"touchend touchcancel":"mouseup",ia=$e?"pointerdown":ki,na=$e?"pointermove":Ri,da=$e?"pointerup pointercancel":Bi,ra="ready",oa="resize",sa="wheel",we="zoom",la="image/jpeg",Fi=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,ji=/^data:/,Ui=/^data:image\/jpeg;base64,/,Hi=/^img|canvas$/i,ua=200,ca=100,$a={viewMode:0,dragMode:me,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:ua,minContainerHeight:ca,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Wi='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',Gi=Number.isNaN||X.isNaN;function E(n){return typeof n=="number"&&!Gi(n)}var ha=function(n){return n>0&&n<1/0};function Ce(n){return typeof n>"u"}function Ct(n){return c(n)==="object"&&n!==null}var Vi=Object.prototype.hasOwnProperty;function Mt(n){if(!Ct(n))return!1;try{var d=n.constructor,r=d.prototype;return d&&r&&Vi.call(r,"isPrototypeOf")}catch{return!1}}function V(n){return typeof n=="function"}var Yi=Array.prototype.slice;function pa(n){return Array.from?Array.from(n):Yi.call(n)}function T(n,d){return n&&V(d)&&(Array.isArray(n)||E(n.length)?pa(n).forEach(function(r,s){d.call(n,r,s,n)}):Ct(n)&&Object.keys(n).forEach(function(r){d.call(n,n[r],r,n)})),n}var D=Object.assign||function(n){for(var d=arguments.length,r=new Array(d>1?d-1:0),s=1;s<d;s++)r[s-1]=arguments[s];return Ct(n)&&r.length>0&&r.forEach(function(l){Ct(l)&&Object.keys(l).forEach(function(u){n[u]=l[u]})}),n},zi=/\.\d*(?:0|9){12}\d*$/;function At(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return zi.test(n)?Math.round(n*d)/d:n}var Xi=/^width|height|left|top|marginLeft|marginTop$/;function $t(n,d){var r=n.style;T(d,function(s,l){Xi.test(l)&&E(s)&&(s="".concat(s,"px")),r[l]=s})}function qi(n,d){return n.classList?n.classList.contains(d):n.className.indexOf(d)>-1}function F(n,d){if(d){if(E(n.length)){T(n,function(s){F(s,d)});return}if(n.classList){n.classList.add(d);return}var r=n.className.trim();r?r.indexOf(d)<0&&(n.className="".concat(r," ").concat(d)):n.className=d}}function nt(n,d){if(d){if(E(n.length)){T(n,function(r){nt(r,d)});return}if(n.classList){n.classList.remove(d);return}n.className.indexOf(d)>=0&&(n.className=n.className.replace(d,""))}}function _t(n,d,r){if(d){if(E(n.length)){T(n,function(s){_t(s,d,r)});return}r?F(n,d):nt(n,d)}}var Ki=/([a-z\d])([A-Z])/g;function xe(n){return n.replace(Ki,"$1-$2").toLowerCase()}function Ee(n,d){return Ct(n[d])?n[d]:n.dataset?n.dataset[d]:n.getAttribute("data-".concat(xe(d)))}function Ht(n,d,r){Ct(r)?n[d]=r:n.dataset?n.dataset[d]=r:n.setAttribute("data-".concat(xe(d)),r)}function Zi(n,d){if(Ct(n[d]))try{delete n[d]}catch{n[d]=void 0}else if(n.dataset)try{delete n.dataset[d]}catch{n.dataset[d]=void 0}else n.removeAttribute("data-".concat(xe(d)))}var fa=/\s\s*/,ma=function(){var n=!1;if(Nt){var d=!1,r=function(){},s=Object.defineProperty({},"once",{get:function(){return n=!0,d},set:function(l){d=l}});X.addEventListener("test",r,s),X.removeEventListener("test",r,s)}return n}();function J(n,d,r){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=r;d.trim().split(fa).forEach(function(u){if(!ma){var $=n.listeners;$&&$[u]&&$[u][r]&&(l=$[u][r],delete $[u][r],Object.keys($[u]).length===0&&delete $[u],Object.keys($).length===0&&delete n.listeners)}n.removeEventListener(u,l,s)})}function q(n,d,r){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=r;d.trim().split(fa).forEach(function(u){if(s.once&&!ma){var $=n.listeners,f=$===void 0?{}:$;l=function(){delete f[u][r],n.removeEventListener(u,l,s);for(var m=arguments.length,h=new Array(m),p=0;p<m;p++)h[p]=arguments[p];r.apply(n,h)},f[u]||(f[u]={}),f[u][r]&&n.removeEventListener(u,f[u][r],s),f[u][r]=l,n.listeners=f}n.addEventListener(u,l,s)})}function Dt(n,d,r){var s;return V(Event)&&V(CustomEvent)?s=new CustomEvent(d,{detail:r,bubbles:!0,cancelable:!0}):(s=document.createEvent("CustomEvent"),s.initCustomEvent(d,!0,!0,r)),n.dispatchEvent(s)}function ga(n){var d=n.getBoundingClientRect();return{left:d.left+(window.pageXOffset-document.documentElement.clientLeft),top:d.top+(window.pageYOffset-document.documentElement.clientTop)}}var Pe=X.location,Ji=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ya(n){var d=n.match(Ji);return d!==null&&(d[1]!==Pe.protocol||d[2]!==Pe.hostname||d[3]!==Pe.port)}function va(n){var d="timestamp=".concat(new Date().getTime());return n+(n.indexOf("?")===-1?"?":"&")+d}function Wt(n){var d=n.rotate,r=n.scaleX,s=n.scaleY,l=n.translateX,u=n.translateY,$=[];E(l)&&l!==0&&$.push("translateX(".concat(l,"px)")),E(u)&&u!==0&&$.push("translateY(".concat(u,"px)")),E(d)&&d!==0&&$.push("rotate(".concat(d,"deg)")),E(r)&&r!==1&&$.push("scaleX(".concat(r,")")),E(s)&&s!==1&&$.push("scaleY(".concat(s,")"));var f=$.length?$.join(" "):"none";return{WebkitTransform:f,msTransform:f,transform:f}}function Qi(n){var d=o({},n),r=0;return T(n,function(s,l){delete d[l],T(d,function(u){var $=Math.abs(s.startX-u.startX),f=Math.abs(s.startY-u.startY),m=Math.abs(s.endX-u.endX),h=Math.abs(s.endY-u.endY),p=Math.sqrt($*$+f*f),g=Math.sqrt(m*m+h*h),S=(g-p)/p;Math.abs(S)>Math.abs(r)&&(r=S)})}),r}function te(n,d){var r=n.pageX,s=n.pageY,l={endX:r,endY:s};return d?l:o({startX:r,startY:s},l)}function tn(n){var d=0,r=0,s=0;return T(n,function(l){var u=l.startX,$=l.startY;d+=u,r+=$,s+=1}),d/=s,r/=s,{pageX:d,pageY:r}}function ht(n){var d=n.aspectRatio,r=n.height,s=n.width,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",u=ha(s),$=ha(r);if(u&&$){var f=r*d;l==="contain"&&f>s||l==="cover"&&f<s?r=s/d:s=r*d}else u?r=s/d:$&&(s=r*d);return{width:s,height:r}}function en(n){var d=n.width,r=n.height,s=n.degree;if(s=Math.abs(s)%180,s===90)return{width:r,height:d};var l=s%90*Math.PI/180,u=Math.sin(l),$=Math.cos(l),f=d*$+r*u,m=d*u+r*$;return s>90?{width:m,height:f}:{width:f,height:m}}function an(n,d,r,s){var l=d.aspectRatio,u=d.naturalWidth,$=d.naturalHeight,f=d.rotate,m=f===void 0?0:f,h=d.scaleX,p=h===void 0?1:h,g=d.scaleY,S=g===void 0?1:g,x=r.aspectRatio,I=r.naturalWidth,N=r.naturalHeight,k=s.fillColor,j=k===void 0?"transparent":k,L=s.imageSmoothingEnabled,pt=L===void 0?!0:L,Y=s.imageSmoothingQuality,v=Y===void 0?"low":Y,O=s.maxWidth,R=O===void 0?1/0:O,dt=s.maxHeight,rt=dt===void 0?1/0:dt,xt=s.minWidth,Et=xt===void 0?0:xt,ft=s.minHeight,mt=ft===void 0?0:ft,Pt=document.createElement("canvas"),U=Pt.getContext("2d"),ee=ht({aspectRatio:x,width:R,height:rt}),Ca=ht({aspectRatio:x,width:Et,height:mt},"cover"),Se=Math.min(ee.width,Math.max(Ca.width,I)),Oe=Math.min(ee.height,Math.max(Ca.height,N)),xa=ht({aspectRatio:l,width:R,height:rt}),Ea=ht({aspectRatio:l,width:Et,height:mt},"cover"),Pa=Math.min(xa.width,Math.max(Ea.width,u)),Sa=Math.min(xa.height,Math.max(Ea.height,$)),gn=[-Pa/2,-Sa/2,Pa,Sa];return Pt.width=At(Se),Pt.height=At(Oe),U.fillStyle=j,U.fillRect(0,0,Se,Oe),U.save(),U.translate(Se/2,Oe/2),U.rotate(m*Math.PI/180),U.scale(p,S),U.imageSmoothingEnabled=pt,U.imageSmoothingQuality=v,U.drawImage.apply(U,[n].concat(P(gn.map(function(yn){return Math.floor(At(yn))})))),U.restore(),Pt}var ba=String.fromCharCode;function nn(n,d,r){var s="";r+=d;for(var l=d;l<r;l+=1)s+=ba(n.getUint8(l));return s}var dn=/^data:.*,/;function rn(n){var d=n.replace(dn,""),r=atob(d),s=new ArrayBuffer(r.length),l=new Uint8Array(s);return T(l,function(u,$){l[$]=r.charCodeAt($)}),s}function on(n,d){for(var r=[],s=8192,l=new Uint8Array(n);l.length>0;)r.push(ba.apply(null,pa(l.subarray(0,s)))),l=l.subarray(s);return"data:".concat(d,";base64,").concat(btoa(r.join("")))}function sn(n){var d=new DataView(n),r;try{var s,l,u;if(d.getUint8(0)===255&&d.getUint8(1)===216)for(var $=d.byteLength,f=2;f+1<$;){if(d.getUint8(f)===255&&d.getUint8(f+1)===225){l=f;break}f+=1}if(l){var m=l+4,h=l+10;if(nn(d,m,4)==="Exif"){var p=d.getUint16(h);if(s=p===18761,(s||p===19789)&&d.getUint16(h+2,s)===42){var g=d.getUint32(h+4,s);g>=8&&(u=h+g)}}}if(u){var S=d.getUint16(u,s),x,I;for(I=0;I<S;I+=1)if(x=u+I*12+2,d.getUint16(x,s)===274){x+=8,r=d.getUint16(x,s),d.setUint16(x,1,s);break}}}catch{r=1}return r}function ln(n){var d=0,r=1,s=1;switch(n){case 2:r=-1;break;case 3:d=-180;break;case 4:s=-1;break;case 5:d=90,s=-1;break;case 6:d=90;break;case 7:d=90,r=-1;break;case 8:d=-90;break}return{rotate:d,scaleX:r,scaleY:s}}var un={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var n=this.element,d=this.options,r=this.container,s=this.cropper,l=Number(d.minContainerWidth),u=Number(d.minContainerHeight);F(s,G),nt(n,G);var $={width:Math.max(r.offsetWidth,l>=0?l:ua),height:Math.max(r.offsetHeight,u>=0?u:ca)};this.containerData=$,$t(s,{width:$.width,height:$.height}),F(n,G),nt(s,G)},initCanvas:function(){var n=this.containerData,d=this.imageData,r=this.options.viewMode,s=Math.abs(d.rotate)%180===90,l=s?d.naturalHeight:d.naturalWidth,u=s?d.naturalWidth:d.naturalHeight,$=l/u,f=n.width,m=n.height;n.height*$>n.width?r===3?f=n.height*$:m=n.width/$:r===3?m=n.width/$:f=n.height*$;var h={aspectRatio:$,naturalWidth:l,naturalHeight:u,width:f,height:m};this.canvasData=h,this.limited=r===1||r===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(n.width-h.width)/2,h.top=(n.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=D({},h)},limitCanvas:function(n,d){var r=this.options,s=this.containerData,l=this.canvasData,u=this.cropBoxData,$=r.viewMode,f=l.aspectRatio,m=this.cropped&&u;if(n){var h=Number(r.minCanvasWidth)||0,p=Number(r.minCanvasHeight)||0;$>1?(h=Math.max(h,s.width),p=Math.max(p,s.height),$===3&&(p*f>h?h=p*f:p=h/f)):$>0&&(h?h=Math.max(h,m?u.width:0):p?p=Math.max(p,m?u.height:0):m&&(h=u.width,p=u.height,p*f>h?h=p*f:p=h/f));var g=ht({aspectRatio:f,width:h,height:p});h=g.width,p=g.height,l.minWidth=h,l.minHeight=p,l.maxWidth=1/0,l.maxHeight=1/0}if(d)if($>(m?0:1)){var S=s.width-l.width,x=s.height-l.height;l.minLeft=Math.min(0,S),l.minTop=Math.min(0,x),l.maxLeft=Math.max(0,S),l.maxTop=Math.max(0,x),m&&this.limited&&(l.minLeft=Math.min(u.left,u.left+(u.width-l.width)),l.minTop=Math.min(u.top,u.top+(u.height-l.height)),l.maxLeft=u.left,l.maxTop=u.top,$===2&&(l.width>=s.width&&(l.minLeft=Math.min(0,S),l.maxLeft=Math.max(0,S)),l.height>=s.height&&(l.minTop=Math.min(0,x),l.maxTop=Math.max(0,x))))}else l.minLeft=-l.width,l.minTop=-l.height,l.maxLeft=s.width,l.maxTop=s.height},renderCanvas:function(n,d){var r=this.canvasData,s=this.imageData;if(d){var l=en({width:s.naturalWidth*Math.abs(s.scaleX||1),height:s.naturalHeight*Math.abs(s.scaleY||1),degree:s.rotate||0}),u=l.width,$=l.height,f=r.width*(u/r.naturalWidth),m=r.height*($/r.naturalHeight);r.left-=(f-r.width)/2,r.top-=(m-r.height)/2,r.width=f,r.height=m,r.aspectRatio=u/$,r.naturalWidth=u,r.naturalHeight=$,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCanvas(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,$t(this.canvas,D({width:r.width,height:r.height},Wt({translateX:r.left,translateY:r.top}))),this.renderImage(n),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(n){var d=this.canvasData,r=this.imageData,s=r.naturalWidth*(d.width/d.naturalWidth),l=r.naturalHeight*(d.height/d.naturalHeight);D(r,{width:s,height:l,left:(d.width-s)/2,top:(d.height-l)/2}),$t(this.image,D({width:r.width,height:r.height},Wt(D({translateX:r.left,translateY:r.top},r)))),n&&this.output()},initCropBox:function(){var n=this.options,d=this.canvasData,r=n.aspectRatio||n.initialAspectRatio,s=Number(n.autoCropArea)||.8,l={width:d.width,height:d.height};r&&(d.height*r>d.width?l.height=l.width/r:l.width=l.height*r),this.cropBoxData=l,this.limitCropBox(!0,!0),l.width=Math.min(Math.max(l.width,l.minWidth),l.maxWidth),l.height=Math.min(Math.max(l.height,l.minHeight),l.maxHeight),l.width=Math.max(l.minWidth,l.width*s),l.height=Math.max(l.minHeight,l.height*s),l.left=d.left+(d.width-l.width)/2,l.top=d.top+(d.height-l.height)/2,l.oldLeft=l.left,l.oldTop=l.top,this.initialCropBoxData=D({},l)},limitCropBox:function(n,d){var r=this.options,s=this.containerData,l=this.canvasData,u=this.cropBoxData,$=this.limited,f=r.aspectRatio;if(n){var m=Number(r.minCropBoxWidth)||0,h=Number(r.minCropBoxHeight)||0,p=$?Math.min(s.width,l.width,l.width+l.left,s.width-l.left):s.width,g=$?Math.min(s.height,l.height,l.height+l.top,s.height-l.top):s.height;m=Math.min(m,s.width),h=Math.min(h,s.height),f&&(m&&h?h*f>m?h=m/f:m=h*f:m?h=m/f:h&&(m=h*f),g*f>p?g=p/f:p=g*f),u.minWidth=Math.min(m,p),u.minHeight=Math.min(h,g),u.maxWidth=p,u.maxHeight=g}d&&($?(u.minLeft=Math.max(0,l.left),u.minTop=Math.max(0,l.top),u.maxLeft=Math.min(s.width,l.left+l.width)-u.width,u.maxTop=Math.min(s.height,l.top+l.height)-u.height):(u.minLeft=0,u.minTop=0,u.maxLeft=s.width-u.width,u.maxTop=s.height-u.height))},renderCropBox:function(){var n=this.options,d=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCropBox(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,n.movable&&n.cropBoxMovable&&Ht(this.face,Ut,r.width>=d.width&&r.height>=d.height?Ke:he),$t(this.cropBox,D({width:r.width,height:r.height},Wt({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Dt(this.element,ge,this.getData())}},cn={initPreview:function(){var n=this.element,d=this.crossOrigin,r=this.options.preview,s=d?this.crossOriginUrl:this.url,l=n.alt||"The image to preview",u=document.createElement("img");if(d&&(u.crossOrigin=d),u.src=s,u.alt=l,this.viewBox.appendChild(u),this.viewBoxImage=u,!!r){var $=r;typeof r=="string"?$=n.ownerDocument.querySelectorAll(r):r.querySelector&&($=[r]),this.previews=$,T($,function(f){var m=document.createElement("img");Ht(f,Qt,{width:f.offsetWidth,height:f.offsetHeight,html:f.innerHTML}),d&&(m.crossOrigin=d),m.src=s,m.alt=l,m.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',f.innerHTML="",f.appendChild(m)})}},resetPreview:function(){T(this.previews,function(n){var d=Ee(n,Qt);$t(n,{width:d.width,height:d.height}),n.innerHTML=d.html,Zi(n,Qt)})},preview:function(){var n=this.imageData,d=this.canvasData,r=this.cropBoxData,s=r.width,l=r.height,u=n.width,$=n.height,f=r.left-d.left-n.left,m=r.top-d.top-n.top;!this.cropped||this.disabled||($t(this.viewBoxImage,D({width:u,height:$},Wt(D({translateX:-f,translateY:-m},n)))),T(this.previews,function(h){var p=Ee(h,Qt),g=p.width,S=p.height,x=g,I=S,N=1;s&&(N=g/s,I=l*N),l&&I>S&&(N=S/l,x=s*N,I=S),$t(h,{width:x,height:I}),$t(h.getElementsByTagName("img")[0],D({width:u*N,height:$*N},Wt(D({translateX:-f*N,translateY:-m*N},n))))}))}},$n={bind:function(){var n=this.element,d=this.options,r=this.cropper;V(d.cropstart)&&q(n,be,d.cropstart),V(d.cropmove)&&q(n,ve,d.cropmove),V(d.cropend)&&q(n,ye,d.cropend),V(d.crop)&&q(n,ge,d.crop),V(d.zoom)&&q(n,we,d.zoom),q(r,ia,this.onCropStart=this.cropStart.bind(this)),d.zoomable&&d.zoomOnWheel&&q(r,sa,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),d.toggleDragModeOnDblclick&&q(r,aa,this.onDblclick=this.dblclick.bind(this)),q(n.ownerDocument,na,this.onCropMove=this.cropMove.bind(this)),q(n.ownerDocument,da,this.onCropEnd=this.cropEnd.bind(this)),d.responsive&&q(window,oa,this.onResize=this.resize.bind(this))},unbind:function(){var n=this.element,d=this.options,r=this.cropper;V(d.cropstart)&&J(n,be,d.cropstart),V(d.cropmove)&&J(n,ve,d.cropmove),V(d.cropend)&&J(n,ye,d.cropend),V(d.crop)&&J(n,ge,d.crop),V(d.zoom)&&J(n,we,d.zoom),J(r,ia,this.onCropStart),d.zoomable&&d.zoomOnWheel&&J(r,sa,this.onWheel,{passive:!1,capture:!0}),d.toggleDragModeOnDblclick&&J(r,aa,this.onDblclick),J(n.ownerDocument,na,this.onCropMove),J(n.ownerDocument,da,this.onCropEnd),d.responsive&&J(window,oa,this.onResize)}},hn={resize:function(){if(!this.disabled){var n=this.options,d=this.container,r=this.containerData,s=d.offsetWidth/r.width,l=d.offsetHeight/r.height,u=Math.abs(s-1)>Math.abs(l-1)?s:l;if(u!==1){var $,f;n.restore&&($=this.getCanvasData(),f=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(T($,function(m,h){$[h]=m*u})),this.setCropBoxData(T(f,function(m,h){f[h]=m*u})))}}},dblclick:function(){this.disabled||this.options.dragMode===ea||this.setDragMode(qi(this.dragBox,pe)?ta:me)},wheel:function(n){var d=this,r=Number(this.options.wheelZoomRatio)||.1,s=1;this.disabled||(n.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){d.wheeling=!1},50),n.deltaY?s=n.deltaY>0?1:-1:n.wheelDelta?s=-n.wheelDelta/120:n.detail&&(s=n.detail>0?1:-1),this.zoom(-s*r,n)))},cropStart:function(n){var d=n.buttons,r=n.button;if(!(this.disabled||(n.type==="mousedown"||n.type==="pointerdown"&&n.pointerType==="mouse")&&(E(d)&&d!==1||E(r)&&r!==0||n.ctrlKey))){var s=this.options,l=this.pointers,u;n.changedTouches?T(n.changedTouches,function($){l[$.identifier]=te($)}):l[n.pointerId||0]=te(n),Object.keys(l).length>1&&s.zoomable&&s.zoomOnTouch?u=Ze:u=Ee(n.target,Ut),Fi.test(u)&&Dt(this.element,be,{originalEvent:n,action:u})!==!1&&(n.preventDefault(),this.action=u,this.cropping=!1,u===qe&&(this.cropping=!0,F(this.dragBox,Jt)))}},cropMove:function(n){var d=this.action;if(!(this.disabled||!d)){var r=this.pointers;n.preventDefault(),Dt(this.element,ve,{originalEvent:n,action:d})!==!1&&(n.changedTouches?T(n.changedTouches,function(s){D(r[s.identifier]||{},te(s,!0))}):D(r[n.pointerId||0]||{},te(n,!0)),this.change(n))}},cropEnd:function(n){if(!this.disabled){var d=this.action,r=this.pointers;n.changedTouches?T(n.changedTouches,function(s){delete r[s.identifier]}):delete r[n.pointerId||0],d&&(n.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,_t(this.dragBox,Jt,this.cropped&&this.options.modal)),Dt(this.element,ye,{originalEvent:n,action:d}))}}},pn={change:function(n){var d=this.options,r=this.canvasData,s=this.containerData,l=this.cropBoxData,u=this.pointers,$=this.action,f=d.aspectRatio,m=l.left,h=l.top,p=l.width,g=l.height,S=m+p,x=h+g,I=0,N=0,k=s.width,j=s.height,L=!0,pt;!f&&n.shiftKey&&(f=p&&g?p/g:1),this.limited&&(I=l.minLeft,N=l.minTop,k=I+Math.min(s.width,r.width,r.left+r.width),j=N+Math.min(s.height,r.height,r.top+r.height));var Y=u[Object.keys(u)[0]],v={x:Y.endX-Y.startX,y:Y.endY-Y.startY},O=function(R){switch(R){case bt:S+v.x>k&&(v.x=k-S);break;case wt:m+v.x<I&&(v.x=I-m);break;case ct:h+v.y<N&&(v.y=N-h);break;case It:x+v.y>j&&(v.y=j-x);break}};switch($){case he:m+=v.x,h+=v.y;break;case bt:if(v.x>=0&&(S>=k||f&&(h<=N||x>=j))){L=!1;break}O(bt),p+=v.x,p<0&&($=wt,p=-p,m-=p),f&&(g=p/f,h+=(l.height-g)/2);break;case ct:if(v.y<=0&&(h<=N||f&&(m<=I||S>=k))){L=!1;break}O(ct),g-=v.y,h+=v.y,g<0&&($=It,g=-g,h-=g),f&&(p=g*f,m+=(l.width-p)/2);break;case wt:if(v.x<=0&&(m<=I||f&&(h<=N||x>=j))){L=!1;break}O(wt),p-=v.x,m+=v.x,p<0&&($=bt,p=-p,m-=p),f&&(g=p/f,h+=(l.height-g)/2);break;case It:if(v.y>=0&&(x>=j||f&&(m<=I||S>=k))){L=!1;break}O(It),g+=v.y,g<0&&($=ct,g=-g,h-=g),f&&(p=g*f,m+=(l.width-p)/2);break;case Rt:if(f){if(v.y<=0&&(h<=N||S>=k)){L=!1;break}O(ct),g-=v.y,h+=v.y,p=g*f}else O(ct),O(bt),v.x>=0?S<k?p+=v.x:v.y<=0&&h<=N&&(L=!1):p+=v.x,v.y<=0?h>N&&(g-=v.y,h+=v.y):(g-=v.y,h+=v.y);p<0&&g<0?($=jt,g=-g,p=-p,h-=g,m-=p):p<0?($=Bt,p=-p,m-=p):g<0&&($=Ft,g=-g,h-=g);break;case Bt:if(f){if(v.y<=0&&(h<=N||m<=I)){L=!1;break}O(ct),g-=v.y,h+=v.y,p=g*f,m+=l.width-p}else O(ct),O(wt),v.x<=0?m>I?(p-=v.x,m+=v.x):v.y<=0&&h<=N&&(L=!1):(p-=v.x,m+=v.x),v.y<=0?h>N&&(g-=v.y,h+=v.y):(g-=v.y,h+=v.y);p<0&&g<0?($=Ft,g=-g,p=-p,h-=g,m-=p):p<0?($=Rt,p=-p,m-=p):g<0&&($=jt,g=-g,h-=g);break;case jt:if(f){if(v.x<=0&&(m<=I||x>=j)){L=!1;break}O(wt),p-=v.x,m+=v.x,g=p/f}else O(It),O(wt),v.x<=0?m>I?(p-=v.x,m+=v.x):v.y>=0&&x>=j&&(L=!1):(p-=v.x,m+=v.x),v.y>=0?x<j&&(g+=v.y):g+=v.y;p<0&&g<0?($=Rt,g=-g,p=-p,h-=g,m-=p):p<0?($=Ft,p=-p,m-=p):g<0&&($=Bt,g=-g,h-=g);break;case Ft:if(f){if(v.x>=0&&(S>=k||x>=j)){L=!1;break}O(bt),p+=v.x,g=p/f}else O(It),O(bt),v.x>=0?S<k?p+=v.x:v.y>=0&&x>=j&&(L=!1):p+=v.x,v.y>=0?x<j&&(g+=v.y):g+=v.y;p<0&&g<0?($=Bt,g=-g,p=-p,h-=g,m-=p):p<0?($=jt,p=-p,m-=p):g<0&&($=Rt,g=-g,h-=g);break;case Ke:this.move(v.x,v.y),L=!1;break;case Ze:this.zoom(Qi(u),n),L=!1;break;case qe:if(!v.x||!v.y){L=!1;break}pt=ga(this.cropper),m=Y.startX-pt.left,h=Y.startY-pt.top,p=l.minWidth,g=l.minHeight,v.x>0?$=v.y>0?Ft:Rt:v.x<0&&(m-=p,$=v.y>0?jt:Bt),v.y<0&&(h-=g),this.cropped||(nt(this.cropBox,G),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}L&&(l.width=p,l.height=g,l.left=m,l.top=h,this.action=$,this.renderCropBox()),T(u,function(R){R.startX=R.endX,R.startY=R.endY})}},fn={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&F(this.dragBox,Jt),nt(this.cropBox,G),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=D({},this.initialImageData),this.canvasData=D({},this.initialCanvasData),this.cropBoxData=D({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(D(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),nt(this.dragBox,Jt),F(this.cropBox,G)),this},replace:function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&n&&(this.isImg&&(this.element.src=n),d?(this.url=n,this.image.src=n,this.ready&&(this.viewBoxImage.src=n,T(this.previews,function(r){r.getElementsByTagName("img")[0].src=n}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(n))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,nt(this.cropper,Je)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,F(this.cropper,Je)),this},destroy:function(){var n=this.element;return n[_]?(n[_]=void 0,this.isImg&&this.replaced&&(n.src=this.originalUrl),this.uncreate(),this):this},move:function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,r=this.canvasData,s=r.left,l=r.top;return this.moveTo(Ce(n)?n:s+Number(n),Ce(d)?d:l+Number(d))},moveTo:function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,r=this.canvasData,s=!1;return n=Number(n),d=Number(d),this.ready&&!this.disabled&&this.options.movable&&(E(n)&&(r.left=n,s=!0),E(d)&&(r.top=d,s=!0),s&&this.renderCanvas(!0)),this},zoom:function(n,d){var r=this.canvasData;return n=Number(n),n<0?n=1/(1-n):n=1+n,this.zoomTo(r.width*n/r.naturalWidth,null,d)},zoomTo:function(n,d,r){var s=this.options,l=this.canvasData,u=l.width,$=l.height,f=l.naturalWidth,m=l.naturalHeight;if(n=Number(n),n>=0&&this.ready&&!this.disabled&&s.zoomable){var h=f*n,p=m*n;if(Dt(this.element,we,{ratio:n,oldRatio:u/f,originalEvent:r})===!1)return this;if(r){var g=this.pointers,S=ga(this.cropper),x=g&&Object.keys(g).length?tn(g):{pageX:r.pageX,pageY:r.pageY};l.left-=(h-u)*((x.pageX-S.left-l.left)/u),l.top-=(p-$)*((x.pageY-S.top-l.top)/$)}else Mt(d)&&E(d.x)&&E(d.y)?(l.left-=(h-u)*((d.x-l.left)/u),l.top-=(p-$)*((d.y-l.top)/$)):(l.left-=(h-u)/2,l.top-=(p-$)/2);l.width=h,l.height=p,this.renderCanvas(!0)}return this},rotate:function(n){return this.rotateTo((this.imageData.rotate||0)+Number(n))},rotateTo:function(n){return n=Number(n),E(n)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=n%360,this.renderCanvas(!0,!0)),this},scaleX:function(n){var d=this.imageData.scaleY;return this.scale(n,E(d)?d:1)},scaleY:function(n){var d=this.imageData.scaleX;return this.scale(E(d)?d:1,n)},scale:function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,r=this.imageData,s=!1;return n=Number(n),d=Number(d),this.ready&&!this.disabled&&this.options.scalable&&(E(n)&&(r.scaleX=n,s=!0),E(d)&&(r.scaleY=d,s=!0),s&&this.renderCanvas(!0,!0)),this},getData:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,d=this.options,r=this.imageData,s=this.canvasData,l=this.cropBoxData,u;if(this.ready&&this.cropped){u={x:l.left-s.left,y:l.top-s.top,width:l.width,height:l.height};var $=r.width/r.naturalWidth;if(T(u,function(h,p){u[p]=h/$}),n){var f=Math.round(u.y+u.height),m=Math.round(u.x+u.width);u.x=Math.round(u.x),u.y=Math.round(u.y),u.width=m-u.x,u.height=f-u.y}}else u={x:0,y:0,width:0,height:0};return d.rotatable&&(u.rotate=r.rotate||0),d.scalable&&(u.scaleX=r.scaleX||1,u.scaleY=r.scaleY||1),u},setData:function(n){var d=this.options,r=this.imageData,s=this.canvasData,l={};if(this.ready&&!this.disabled&&Mt(n)){var u=!1;d.rotatable&&E(n.rotate)&&n.rotate!==r.rotate&&(r.rotate=n.rotate,u=!0),d.scalable&&(E(n.scaleX)&&n.scaleX!==r.scaleX&&(r.scaleX=n.scaleX,u=!0),E(n.scaleY)&&n.scaleY!==r.scaleY&&(r.scaleY=n.scaleY,u=!0)),u&&this.renderCanvas(!0,!0);var $=r.width/r.naturalWidth;E(n.x)&&(l.left=n.x*$+s.left),E(n.y)&&(l.top=n.y*$+s.top),E(n.width)&&(l.width=n.width*$),E(n.height)&&(l.height=n.height*$),this.setCropBoxData(l)}return this},getContainerData:function(){return this.ready?D({},this.containerData):{}},getImageData:function(){return this.sized?D({},this.imageData):{}},getCanvasData:function(){var n=this.canvasData,d={};return this.ready&&T(["left","top","width","height","naturalWidth","naturalHeight"],function(r){d[r]=n[r]}),d},setCanvasData:function(n){var d=this.canvasData,r=d.aspectRatio;return this.ready&&!this.disabled&&Mt(n)&&(E(n.left)&&(d.left=n.left),E(n.top)&&(d.top=n.top),E(n.width)?(d.width=n.width,d.height=n.width/r):E(n.height)&&(d.height=n.height,d.width=n.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var n=this.cropBoxData,d;return this.ready&&this.cropped&&(d={left:n.left,top:n.top,width:n.width,height:n.height}),d||{}},setCropBoxData:function(n){var d=this.cropBoxData,r=this.options.aspectRatio,s,l;return this.ready&&this.cropped&&!this.disabled&&Mt(n)&&(E(n.left)&&(d.left=n.left),E(n.top)&&(d.top=n.top),E(n.width)&&n.width!==d.width&&(s=!0,d.width=n.width),E(n.height)&&n.height!==d.height&&(l=!0,d.height=n.height),r&&(s?d.height=d.width/r:l&&(d.width=d.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var d=this.canvasData,r=an(this.image,this.imageData,d,n);if(!this.cropped)return r;var s=this.getData(n.rounded),l=s.x,u=s.y,$=s.width,f=s.height,m=r.width/Math.floor(d.naturalWidth);m!==1&&(l*=m,u*=m,$*=m,f*=m);var h=$/f,p=ht({aspectRatio:h,width:n.maxWidth||1/0,height:n.maxHeight||1/0}),g=ht({aspectRatio:h,width:n.minWidth||0,height:n.minHeight||0},"cover"),S=ht({aspectRatio:h,width:n.width||(m!==1?r.width:$),height:n.height||(m!==1?r.height:f)}),x=S.width,I=S.height;x=Math.min(p.width,Math.max(g.width,x)),I=Math.min(p.height,Math.max(g.height,I));var N=document.createElement("canvas"),k=N.getContext("2d");N.width=At(x),N.height=At(I),k.fillStyle=n.fillColor||"transparent",k.fillRect(0,0,x,I);var j=n.imageSmoothingEnabled,L=j===void 0?!0:j,pt=n.imageSmoothingQuality;k.imageSmoothingEnabled=L,pt&&(k.imageSmoothingQuality=pt);var Y=r.width,v=r.height,O=l,R=u,dt,rt,xt,Et,ft,mt;O<=-$||O>Y?(O=0,dt=0,xt=0,ft=0):O<=0?(xt=-O,O=0,dt=Math.min(Y,$+O),ft=dt):O<=Y&&(xt=0,dt=Math.min($,Y-O),ft=dt),dt<=0||R<=-f||R>v?(R=0,rt=0,Et=0,mt=0):R<=0?(Et=-R,R=0,rt=Math.min(v,f+R),mt=rt):R<=v&&(Et=0,rt=Math.min(f,v-R),mt=rt);var Pt=[O,R,dt,rt];if(ft>0&&mt>0){var U=x/$;Pt.push(xt*U,Et*U,ft*U,mt*U)}return k.drawImage.apply(k,[r].concat(P(Pt.map(function(ee){return Math.floor(At(ee))})))),N},setAspectRatio:function(n){var d=this.options;return!this.disabled&&!Ce(n)&&(d.aspectRatio=Math.max(0,n)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(n){var d=this.options,r=this.dragBox,s=this.face;if(this.ready&&!this.disabled){var l=n===me,u=d.movable&&n===ta;n=l||u?n:ea,d.dragMode=n,Ht(r,Ut,n),_t(r,pe,l),_t(r,fe,u),d.cropBoxMovable||(Ht(s,Ut,n),_t(s,pe,l),_t(s,fe,u))}return this}},mn=X.Cropper,wa=function(){function n(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(y(this,n),!d||!Hi.test(d.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=d,this.options=D({},$a,Mt(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return w(n,[{key:"init",value:function(){var d=this.element,r=d.tagName.toLowerCase(),s;if(!d[_]){if(d[_]=this,r==="img"){if(this.isImg=!0,s=d.getAttribute("src")||"",this.originalUrl=s,!s)return;s=d.src}else r==="canvas"&&window.HTMLCanvasElement&&(s=d.toDataURL());this.load(s)}}},{key:"load",value:function(d){var r=this;if(d){this.url=d,this.imageData={};var s=this.element,l=this.options;if(!l.rotatable&&!l.scalable&&(l.checkOrientation=!1),!l.checkOrientation||!window.ArrayBuffer){this.clone();return}if(ji.test(d)){Ui.test(d)?this.read(rn(d)):this.clone();return}var u=new XMLHttpRequest,$=this.clone.bind(this);this.reloading=!0,this.xhr=u,u.onabort=$,u.onerror=$,u.ontimeout=$,u.onprogress=function(){u.getResponseHeader("content-type")!==la&&u.abort()},u.onload=function(){r.read(u.response)},u.onloadend=function(){r.reloading=!1,r.xhr=null},l.checkCrossOrigin&&ya(d)&&s.crossOrigin&&(d=va(d)),u.open("GET",d,!0),u.responseType="arraybuffer",u.withCredentials=s.crossOrigin==="use-credentials",u.send()}}},{key:"read",value:function(d){var r=this.options,s=this.imageData,l=sn(d),u=0,$=1,f=1;if(l>1){this.url=on(d,la);var m=ln(l);u=m.rotate,$=m.scaleX,f=m.scaleY}r.rotatable&&(s.rotate=u),r.scalable&&(s.scaleX=$,s.scaleY=f),this.clone()}},{key:"clone",value:function(){var d=this.element,r=this.url,s=d.crossOrigin,l=r;this.options.checkCrossOrigin&&ya(r)&&(s||(s="anonymous"),l=va(r)),this.crossOrigin=s,this.crossOriginUrl=l;var u=document.createElement("img");s&&(u.crossOrigin=s),u.src=l||r,u.alt=d.alt||"The image to crop",this.image=u,u.onload=this.start.bind(this),u.onerror=this.stop.bind(this),F(u,Qe),d.parentNode.insertBefore(u,d.nextSibling)}},{key:"start",value:function(){var d=this,r=this.image;r.onload=null,r.onerror=null,this.sizing=!0;var s=X.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(X.navigator.userAgent),l=function(f,m){D(d.imageData,{naturalWidth:f,naturalHeight:m,aspectRatio:f/m}),d.initialImageData=D({},d.imageData),d.sizing=!1,d.sized=!0,d.build()};if(r.naturalWidth&&!s){l(r.naturalWidth,r.naturalHeight);return}var u=document.createElement("img"),$=document.body||document.documentElement;this.sizingImage=u,u.onload=function(){l(u.width,u.height),s||$.removeChild(u)},u.src=r.src,s||(u.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",$.appendChild(u))}},{key:"stop",value:function(){var d=this.image;d.onload=null,d.onerror=null,d.parentNode.removeChild(d),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var d=this.element,r=this.options,s=this.image,l=d.parentNode,u=document.createElement("div");u.innerHTML=Wi;var $=u.querySelector(".".concat(_,"-container")),f=$.querySelector(".".concat(_,"-canvas")),m=$.querySelector(".".concat(_,"-drag-box")),h=$.querySelector(".".concat(_,"-crop-box")),p=h.querySelector(".".concat(_,"-face"));this.container=l,this.cropper=$,this.canvas=f,this.dragBox=m,this.cropBox=h,this.viewBox=$.querySelector(".".concat(_,"-view-box")),this.face=p,f.appendChild(s),F(d,G),l.insertBefore($,d.nextSibling),nt(s,Qe),this.initPreview(),this.bind(),r.initialAspectRatio=Math.max(0,r.initialAspectRatio)||NaN,r.aspectRatio=Math.max(0,r.aspectRatio)||NaN,r.viewMode=Math.max(0,Math.min(3,Math.round(r.viewMode)))||0,F(h,G),r.guides||F(h.getElementsByClassName("".concat(_,"-dashed")),G),r.center||F(h.getElementsByClassName("".concat(_,"-center")),G),r.background&&F($,"".concat(_,"-bg")),r.highlight||F(p,Ti),r.cropBoxMovable&&(F(p,fe),Ht(p,Ut,he)),r.cropBoxResizable||(F(h.getElementsByClassName("".concat(_,"-line")),G),F(h.getElementsByClassName("".concat(_,"-point")),G)),this.render(),this.ready=!0,this.setDragMode(r.dragMode),r.autoCrop&&this.crop(),this.setData(r.data),V(r.ready)&&q(d,ra,r.ready,{once:!0}),Dt(d,ra)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var d=this.cropper.parentNode;d&&d.removeChild(this.cropper),nt(this.element,G)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=mn,n}},{key:"setDefaults",value:function(d){D($a,Mt(d)&&d)}}]),n}();return D(wa.prototype,un,cn,$n,hn,pn,fn),wa})})(Ei);var qn=Ei.exports;Object.defineProperty(xi,"__esModule",{value:!0});var Kn=qn,Zn=Jn(Kn);function Jn(e){return e&&e.__esModule?e:{default:e}}function Qn(e,a){var i={};for(var o in e)a.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o]);return i}var td=typeof window>"u"?[String,Array]:[String,Array,Element,NodeList],ed=xi.default={render:function(e){var a=this.crossorigin||void 0;return e("div",{style:this.containerStyle},[e("img",{ref:"img",attrs:{src:this.src,alt:this.alt||"image",style:"max-width: 100%",crossorigin:a},on:this.$listeners,style:this.imgStyle})])},props:{containerStyle:Object,src:{type:String,default:""},alt:String,imgStyle:Object,viewMode:Number,dragMode:String,initialAspectRatio:Number,aspectRatio:Number,data:Object,preview:td,responsive:{type:Boolean,default:!0},restore:{type:Boolean,default:!0},checkCrossOrigin:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},crossorigin:{type:String},modal:{type:Boolean,default:!0},guides:{type:Boolean,default:!0},center:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},background:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!0},autoCropArea:Number,movable:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},scalable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},zoomOnTouch:{type:Boolean,default:!0},zoomOnWheel:{type:Boolean,default:!0},wheelZoomRatio:Number,cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},toggleDragModeOnDblclick:{type:Boolean,default:!0},minCanvasWidth:Number,minCanvasHeight:Number,minCropBoxWidth:Number,minCropBoxHeight:Number,minContainerWidth:Number,minContainerHeight:Number,ready:Function,cropstart:Function,cropmove:Function,cropend:Function,crop:Function,zoom:Function},mounted:function(){var e=this.$options.props;e.containerStyle,e.src,e.alt,e.imgStyle;var a=Qn(e,["containerStyle","src","alt","imgStyle"]),i={};for(var o in a)this[o]!==void 0&&(i[o]=this[o]);this.cropper=new Zn.default(this.$refs.img,i)},methods:{reset:function(){return this.cropper.reset()},clear:function(){return this.cropper.clear()},initCrop:function(){return this.cropper.crop()},replace:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.cropper.replace(e,a)},enable:function(){return this.cropper.enable()},disable:function(){return this.cropper.disable()},destroy:function(){return this.cropper.destroy()},move:function(e,a){return this.cropper.move(e,a)},moveTo:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return this.cropper.moveTo(e,a)},relativeZoom:function(e,a){return this.cropper.zoom(e,a)},zoomTo:function(e,a){return this.cropper.zoomTo(e,a)},rotate:function(e){return this.cropper.rotate(e)},rotateTo:function(e){return this.cropper.rotateTo(e)},scaleX:function(e){return this.cropper.scaleX(e)},scaleY:function(e){return this.cropper.scaleY(e)},scale:function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return this.cropper.scale(e,a)},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.cropper.getData(e)},setData:function(e){return this.cropper.setData(e)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(e){return this.cropper.setCanvasData(e)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(e){return this.cropper.setCropBoxData(e)},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.cropper.getCroppedCanvas(e)},setAspectRatio:function(e){return this.cropper.setAspectRatio(e)},setDragMode:function(e){return this.cropper.setDragMode(e)}}};const Kt=async(e,a)=>{typeof a=="boolean"&&(a=a?"1":"0");const i=tt().uid,o=gt("cloud/users/{userId}",{userId:i});return await yt(),(await Q.put(o,{key:e,value:a})).data},ad=async(e,a)=>{const i=tt().uid,o=gt("cloud/users/{userId}",{userId:i});return await yt(),(await Q.put(o,{key:"".concat(e).concat(Ci),value:a})).data},lt=(e,a)=>{var o;let i="";a&&(i+=a),((o=e.response)==null?void 0:o.status)===429&&(i&&(i+="\n"),i+=Ae("settings","There were too many requests from your network. Retry later or contact your administrator if this is an error.")),St(i),Xn.error(i||Ae("Error"),e)},{federationEnabled:id,lookupServerUploadEnabled:nd}=A("settings","accountParameters",{}),dd={name:"FederationControl",components:{NcActions:gi,NcActionButton:yi,NcIconSvgWrapper:vi},props:{readable:{type:String,required:!0,validator:e=>Object.values(kt).includes(e)||Object.values(Ue).includes(e)||e===He.PROFILE_VISIBILITY},additional:{type:Boolean,default:!1},additionalValue:{type:String,default:""},disabled:{type:Boolean,default:!1},handleAdditionalScopeChange:{type:Function,default:null},scope:{type:String,required:!0}},emits:["update:scope"],data(){return{readableLowerCase:this.readable.toLocaleLowerCase(),initialScope:this.scope}},computed:{ariaLabel(){return t("settings","Change scope level of {property}, current scope is {scope}",{property:this.readableLowerCase,scope:this.scopeDisplayNameLowerCase})},scopeDisplayNameLowerCase(){return Ne[this.scope].displayName.toLocaleLowerCase()},scopeIcon(){return Ne[this.scope].icon},federationScopes(){return Object.values(Ne)},supportedScopes(){const e=Un[this.readable];return Hn.includes(this.readable)||(id&&e.push(Oa.FEDERATED),nd&&e.push(Oa.PUBLISHED)),e}},methods:{async changeScope(e){this.$emit("update:scope",e),this.additional?await this.updateAdditionalScope(e):await this.updatePrimaryScope(e),this.$refs.federationActions.$refs.menuButton.$el.focus()},async updatePrimaryScope(e){var a,i;try{const o=await ad(Wn[this.readable],e);this.handleResponse({scope:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update federation scope of the primary {property}",{property:this.readableLowerCase}),error:o})}},async updateAdditionalScope(e){var a,i;try{const o=await this.handleAdditionalScopeChange(this.additionalValue,e);this.handleResponse({scope:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update federation scope of additional {property}",{property:this.readableLowerCase}),error:o})}},handleResponse({scope:e,status:a,errorMessage:i,error:o}){a==="ok"?this.initialScope=e:(this.$emit("update:scope",this.initialScope),lt(o,i))}}};var rd=function(){var e=this,a=e._self._c;return a("NcActions",{ref:"federationActions",staticClass:"federation-actions",attrs:{"aria-label":e.ariaLabel,disabled:e.disabled},scopedSlots:e._u([{key:"icon",fn:function(){return[a("NcIconSvgWrapper",{attrs:{path:e.scopeIcon}})]},proxy:!0}])},e._l(e.federationScopes,function(i){return a("NcActionButton",{key:i.name,attrs:{"close-after-click":!0,disabled:!e.supportedScopes.includes(i.name),name:i.displayName,type:"radio",value:i.name,"model-value":e.scope},on:{"update:modelValue":e.changeScope},scopedSlots:e._u([{key:"icon",fn:function(){return[a("NcIconSvgWrapper",{attrs:{path:i.icon}})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.supportedScopes.includes(i.name)?i.tooltip:i.tooltipDisabled)+" ")])}),1)},od=[],sd=M(dd,rd,od,!1,null,"7ce7116d");const Pi=sd.exports,ld={name:"HeaderBar",components:{FederationControl:Pi,NcButton:bi,Plus:On},props:{scope:{type:String,default:null},readable:{type:String,required:!0},inputId:{type:String,default:null},isEditable:{type:Boolean,default:!0},isMultiValueSupported:{type:Boolean,default:!1},isValidSection:{type:Boolean,default:!0},isHeading:{type:Boolean,default:!1}},data(){return{localScope:this.scope}},computed:{isProfileProperty(){return this.readable===kt.PROFILE_ENABLED},isSettingProperty(){return!Object.values(kt).includes(this.readable)&&!Object.values(He).includes(this.readable)}},methods:{onAddAdditional(){this.$emit("add-additional")},onScopeChange(e){this.$emit("update:scope",e)}}};var ud=function(){var e=this,a=e._self._c;return a("div",{staticClass:"headerbar-label",class:{"setting-property":e.isSettingProperty,"profile-property":e.isProfileProperty}},[e.isHeading?a("h3",[e._v(" "+e._s(e.readable)+" ")]):a("label",{attrs:{for:e.inputId}},[e._v(" "+e._s(e.readable)+" ")]),e.scope?[a("FederationControl",{staticClass:"federation-control",attrs:{readable:e.readable,scope:e.localScope},on:{"update:scope":[function(i){e.localScope=i},e.onScopeChange]}})]:e._e(),e.isEditable&&e.isMultiValueSupported?[a("NcButton",{attrs:{type:"tertiary",disabled:!e.isValidSection,"aria-label":e.t("settings","Add additional email")},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),e.onAddAdditional.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("Plus",{attrs:{size:20}})]},proxy:!0}],null,!1,32235154)},[e._v(" "+e._s(e.t("settings","Add"))+" ")])]:e._e()],2)},cd=[],$d=M(ld,ud,cd,!1,null,"524e5752");const ut=$d.exports,{avatar:Ia}=A("settings","personalInfoParameters",{}),{avatarChangeSupported:hd}=A("settings","accountParameters",{}),Si=["image/png","image/jpeg"],pd=Sn(t("settings","Choose your profile picture")).setMultiSelect(!1).setMimeTypeFilter(Si).setType(1).allowDirectories(!1).build(),fd={name:"AvatarSection",components:{Delete:Nn,Folder:In,HeaderBar:ut,NcAvatar:wi,NcButton:bi,Upload:Mn,VueCropper:ed},data(){return{avatar:{...Ia,readable:z[Ia.name]},avatarChangeSupported:hd,showCropper:!1,loading:!1,userId:tt().uid,displayName:tt().displayName,version:oc_userconfig.avatar.version,isGenerated:oc_userconfig.avatar.generated,validMimeTypes:Si,cropperOptions:{aspectRatio:1/1,viewMode:1,guides:!1,center:!1,highlight:!1,autoCropArea:1,minContainerWidth:300,minContainerHeight:300}}},created(){Yt("settings:display-name:updated",this.handleDisplayNameUpdate)},beforeDestroy(){zt("settings:display-name:updated",this.handleDisplayNameUpdate)},methods:{activateLocalFilePicker(){this.$refs.input.value=null,this.$refs.input.click()},onChange(e){this.loading=!0;const a=e.target.files[0];if(!this.validMimeTypes.includes(a.type)){St(t("settings","Please select a valid png or jpg file")),this.cancel();return}const i=new FileReader;i.onload=o=>{this.$refs.cropper.replace(o.target.result),this.showCropper=!0},i.readAsDataURL(a)},async openFilePicker(){const e=await pd.pick();this.loading=!0;try{const{data:a}=await Q.post(Vt("/avatar"),{path:e});if(a.status==="success")this.handleAvatarUpdate(!1);else if(a.data==="notsquare"){const i=Vt("/avatar/tmp")+"?requesttoken="+encodeURIComponent(OC.requestToken)+"#"+Math.floor(Math.random()*1e3);this.$refs.cropper.replace(i),this.showCropper=!0}else St(a.data.message),this.cancel()}catch{St(t("settings","Error setting profile picture")),this.cancel()}},saveAvatar(){this.showCropper=!1,this.loading=!0;const e=this.$refs.cropper.getCroppedCanvas(),a=e.width>512?512/e.width:1;this.$refs.cropper.scale(a,a).getCroppedCanvas().toBlob(async i=>{if(i===null){St(t("settings","Error cropping profile picture")),this.cancel();return}const o=new FormData;o.append("files[]",i);try{await Q.post(Vt("/avatar"),o),this.handleAvatarUpdate(!1)}catch{St(t("settings","Error saving profile picture")),this.handleAvatarUpdate(this.isGenerated)}})},async removeAvatar(){this.loading=!0;try{await Q.delete(Vt("/avatar")),this.handleAvatarUpdate(!0)}catch{St(t("settings","Error removing profile picture")),this.handleAvatarUpdate(this.isGenerated)}},cancel(){this.showCropper=!1,this.loading=!1},handleAvatarUpdate(e){this.version=oc_userconfig.avatar.version=Date.now(),this.isGenerated=oc_userconfig.avatar.generated=e,this.loading=!1,Fe("settings:avatar:updated",oc_userconfig.avatar.version)},handleDisplayNameUpdate(){this.version=oc_userconfig.avatar.version}}};var md=function(){var e=this,a=e._self._c;return a("section",{attrs:{id:"vue-avatar-section"}},[a("HeaderBar",{attrs:{"is-heading":!0,readable:e.avatar.readable,scope:e.avatar.scope},on:{"update:scope":function(i){return e.$set(e.avatar,"scope",i)}}}),e.showCropper?e._e():a("div",{staticClass:"avatar__container"},[a("div",{staticClass:"avatar__preview"},[e.loading?a("div",{staticClass:"icon-loading"}):a("NcAvatar",{key:e.version,attrs:{user:e.userId,"aria-label":e.t("settings","Your profile picture"),"disable-tooltip":!0,"show-user-status":!1,size:180}})],1),e.avatarChangeSupported?[a("div",{staticClass:"avatar__buttons"},[a("NcButton",{attrs:{"aria-label":e.t("settings","Upload profile picture")},on:{click:e.activateLocalFilePicker},scopedSlots:e._u([{key:"icon",fn:function(){return[a("Upload",{attrs:{size:20}})]},proxy:!0}],null,!1,1329850251)}),a("NcButton",{attrs:{"aria-label":e.t("settings","Choose profile picture from Files")},on:{click:e.openFilePicker},scopedSlots:e._u([{key:"icon",fn:function(){return[a("Folder",{attrs:{size:20}})]},proxy:!0}],null,!1,4270628382)}),e.isGenerated?e._e():a("NcButton",{attrs:{"aria-label":e.t("settings","Remove profile picture")},on:{click:e.removeAvatar},scopedSlots:e._u([{key:"icon",fn:function(){return[a("Delete",{attrs:{size:20}})]},proxy:!0}],null,!1,2705356561)})],1),a("span",[e._v(e._s(e.t("settings","The file must be a PNG or JPG")))]),a("input",{ref:"input",attrs:{type:"file",accept:e.validMimeTypes.join(",")},on:{change:e.onChange}})]:a("span",[e._v(" "+e._s(e.t("settings","Picture provided by original account"))+" ")])],2),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showCropper,expression:"showCropper"}],staticClass:"avatar__container"},[a("VueCropper",e._b({ref:"cropper",staticClass:"avatar__cropper"},"VueCropper",e.cropperOptions,!1)),a("div",{staticClass:"avatar__cropper-buttons"},[a("NcButton",{on:{click:e.cancel}},[e._v(" "+e._s(e.t("settings","Cancel"))+" ")]),a("NcButton",{attrs:{type:"primary"},on:{click:e.saveAvatar}},[e._v(" "+e._s(e.t("settings","Set as profile picture"))+" ")])],1),a("span",[e._v(e._s(e.t("settings","Please note that it can take up to 24 hours for your profile picture to be updated everywhere.")))])],1)],1)},gd=[],yd=M(fd,md,gd,!1,null,"75804c1b");const vd=yd.exports,bd=-3,{groups:wd,quota:Cd,totalSpace:xd,usage:Ma,usageRelative:Aa}=A("settings","personalInfoParameters",{}),Ed={name:"DetailsSection",components:{Account:An,CircleSlice:_n,HeaderBar:ut,NcProgressBar:bn},data(){return{groups:wd,usageRelative:Aa}},computed:{quotaText(){return Cd===bd?t("settings","You are using <strong>{usage}</strong>",{usage:Ma}):t("settings","You are using <strong>{usage}</strong> of <strong>{totalSpace}</strong> (<strong>{usageRelative}%</strong>)",{usage:Ma,totalSpace:xd,usageRelative:Aa})}}};var Pd=function(){var e=this,a=e._self._c;return a("section",[a("HeaderBar",{attrs:{"is-heading":!0,readable:e.t("settings","Details")}}),a("div",{staticClass:"details"},[a("div",{staticClass:"details__groups"},[a("Account",{attrs:{size:20}}),a("div",{staticClass:"details__groups-info"},[a("p",[e._v(e._s(e.t("settings","You are a member of the following groups:")))]),a("p",{staticClass:"details__groups-list"},[e._v(" "+e._s(e.groups.join(", "))+" ")])])],1),a("div",{staticClass:"details__quota"},[a("CircleSlice",{attrs:{size:20}}),a("div",{staticClass:"details__quota-info"},[a("p",{staticClass:"details__quota-text",domProps:{innerHTML:e._s(e.quotaText)}}),a("NcProgressBar",{attrs:{size:"medium",value:e.usageRelative,error:e.usageRelative>80}})],1)],1)])],1)},Sd=[],Od=M(Ed,Pd,Sd,!1,null,"ffa68427");const Nd=Od.exports,Id={name:"AccountPropertySection",components:{HeaderBar:ut,NcInputField:wn,NcTextArea:Cn},props:{name:{type:String,required:!0},value:{type:String,required:!0},scope:{type:String,required:!0},readable:{type:String,required:!0},placeholder:{type:String,required:!0},type:{type:String,default:"text"},isEditable:{type:Boolean,default:!0},multiLine:{type:Boolean,default:!1},onValidate:{type:Function,default:null},onSave:{type:Function,default:null},autocomplete:{type:String,default:null}},emits:["update:scope","update:value"],data(){return{initialValue:this.value,helperText:"",isSuccess:!1,hasError:!1}},computed:{inputId(){return"account-property-".concat(this.name)},inputValue:{get(){return this.value},set(e){this.$emit("update:value",e),this.debouncePropertyChange(e.trim())}},debouncePropertyChange(){return We(async function(e){var a,i;if(this.helperText=((i=(a=this.$refs.input)==null?void 0:a.$refs.input)==null?void 0:i.validationMessage)||"",this.helperText===""){if(this.hasError=this.onValidate&&!this.onValidate(e),this.hasError){this.helperText=t("settings","Invalid value");return}await this.updateProperty(e)}},500)}},methods:{async updateProperty(e){var a,i;try{const o=await Kt(this.name,e);this.handleResponse({value:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update {property}",{property:this.readable.toLocaleLowerCase()}),error:o})}},handleResponse({value:e,status:a,errorMessage:i,error:o}){a==="ok"?(this.initialValue=e,this.onSave&&this.onSave(e),this.isSuccess=!0,setTimeout(()=>{this.isSuccess=!1},2e3)):(this.$emit("update:value",this.initialValue),lt(o,i),this.hasError=!0,setTimeout(()=>{this.hasError=!1},2e3))}}};var Md=function(){var e=this,a=e._self._c;return a("section",[a("HeaderBar",{attrs:{scope:e.scope,readable:e.readable,"input-id":e.inputId,"is-editable":e.isEditable},on:{"update:scope":i=>e.$emit("update:scope",i)}}),e.isEditable?a("div",{staticClass:"property"},[e.multiLine?a("NcTextArea",{attrs:{id:e.inputId,autocapitalize:"none",autocomplete:"off",error:e.hasError||!!e.helperText,"helper-text":e.helperText,"label-outside":"",placeholder:e.placeholder,rows:"8",spellcheck:"false",success:e.isSuccess,value:e.inputValue},on:{"update:value":function(i){e.inputValue=i}}}):a("NcInputField",{ref:"input",attrs:{id:e.inputId,autocapitalize:"none",autocomplete:e.autocomplete,error:e.hasError||!!e.helperText,"helper-text":e.helperText,"label-outside":"",placeholder:e.placeholder,spellcheck:"false",success:e.isSuccess,type:e.type,value:e.inputValue},on:{"update:value":function(i){e.inputValue=i}}})],1):a("span",[e._v(" "+e._s(e.value||e.t("settings","No {property} set",{property:e.readable.toLocaleLowerCase()}))+" ")])],1)},Ad=[],_d=M(Id,Md,Ad,!1,null,"827a1b21");const at=_d.exports,{displayName:_a}=A("settings","personalInfoParameters",{}),{displayNameChangeSupported:Dd}=A("settings","accountParameters",{}),Ld={name:"DisplayNameSection",components:{AccountPropertySection:at},data(){return{displayName:{..._a,readable:z[_a.name]},displayNameChangeSupported:Dd}},methods:{onValidate(e){return e!==""},onSave(e){oc_userconfig.avatar.generated&&(oc_userconfig.avatar.version=Date.now()),Fe("settings:display-name:updated",e)}}};var Td=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{placeholder:e.t("settings","Your full name"),autocomplete:"username","is-editable":e.displayNameChangeSupported,"on-validate":e.onValidate,"on-save":e.onSave}},"AccountPropertySection",e.displayName,!1,!0))},kd=[],Rd=M(Ld,Td,kd,!1,null,null);const Bd=Rd.exports,Oi=async e=>{const a=tt().uid,i=gt("cloud/users/{userId}",{userId:a});return await yt(),(await Q.put(i,{key:Ot.EMAIL,value:e})).data},Fd=async e=>{const a=tt().uid,i=gt("cloud/users/{userId}",{userId:a});return await yt(),(await Q.put(i,{key:Ot.EMAIL_COLLECTION,value:e})).data},jd=async e=>{const a=tt().uid,i=gt("cloud/users/{userId}",{userId:a});return await yt(),(await Q.put(i,{key:Ot.NOTIFICATION_EMAIL,value:e})).data},Ni=async e=>{const a=tt().uid,i=gt("cloud/users/{userId}/{collection}",{userId:a,collection:Ot.EMAIL_COLLECTION});return await yt(),(await Q.put(i,{key:e,value:""})).data},Ud=async(e,a)=>{const i=tt().uid,o=gt("cloud/users/{userId}/{collection}",{userId:i,collection:Ot.EMAIL_COLLECTION});return await yt(),(await Q.put(o,{key:e,value:a})).data},Hd=async(e,a)=>{const i=tt().uid,o=gt("cloud/users/{userId}/{collectionScope}",{userId:i,collectionScope:"".concat(Ot.EMAIL_COLLECTION).concat(Ci)});return await yt(),(await Q.put(o,{key:e,value:a})).data},Wd={name:"Email",components:{NcActions:gi,NcActionButton:yi,NcIconSvgWrapper:vi,NcTextField:xn,FederationControl:Pi},props:{email:{type:String,required:!0},index:{type:Number,default:0},primary:{type:Boolean,default:!1},scope:{type:String,required:!0},activeNotificationEmail:{type:String,default:""},localVerificationState:{type:Number,default:Na.NOT_VERIFIED},inputId:{type:String,required:!1,default:""}},setup(){return{mdiArrowLeft:Dn,mdiLock:Ln,mdiStar:Tn,mdiStarOutline:kn,mdiTrashCan:Rn,saveAdditionalEmailScope:Hd}},data(){return{hasError:!1,helperText:null,initialEmail:this.email,isSuccess:!1,localScope:this.scope,propertyReadable:kt.EMAIL,showFederationSettings:!1}},computed:{actionsLabel(){return this.primary?t("settings","Email options"):t("settings","Options for additional email address {index}",{index:this.index+1})},deleteDisabled(){return this.primary?this.email===""||this.initialEmail!==this.email:this.initialEmail!==""?this.initialEmail!==this.email:!1},deleteEmailLabel(){return this.primary?t("settings","Remove primary email"):t("settings","Delete email")},isConfirmedAddress(){return this.primary||this.localVerificationState===Na.VERIFIED},isNotConfirmedHelperText(){return this.isConfirmedAddress?"":t("settings","This address is not confirmed")},helperTextWithNonConfirmed(){return this.helperText||this.hasError||this.isSuccess?this.helperText||"":this.isNotConfirmedHelperText},setNotificationMailLabel(){return this.isNotificationEmail?t("settings","Unset as primary email"):t("settings","Set as primary email")},federationDisabled(){return!this.initialEmail},inputIdWithDefault(){return this.inputId||"account-property-email--".concat(this.index)},inputPlaceholder(){return this.primary?void 0:t("settings","Additional email address {index}",{index:this.index+1})},isNotificationEmail(){return this.email&&this.email===this.activeNotificationEmail||this.primary&&this.activeNotificationEmail===""},emailAddress:{get(){return this.email},set(e){this.$emit("update:email",e),this.debounceEmailChange(e.trim())}}},mounted(){!this.primary&&this.initialEmail===""&&this.$nextTick(()=>{var e;return(e=this.$refs.email)==null?void 0:e.focus()})},methods:{debounceEmailChange:We(async function(e){this.helperText=this.$refs.email.$refs.inputField.$refs.input.validationMessage||null,this.helperText===null&&(_e(e)||e==="")&&(this.primary?await this.updatePrimaryEmail(e):e&&(this.initialEmail===""?await this.addAdditionalEmail(e):await this.updateAdditionalEmail(e)))},500),async deleteEmail(){this.primary?(this.$emit("update:email",""),await this.updatePrimaryEmail("")):await this.deleteAdditionalEmail()},async updatePrimaryEmail(e){var a,i;try{const o=await Oi(e);this.handleResponse({email:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){e===""?this.handleResponse({errorMessage:t("settings","Unable to delete primary email address"),error:o}):this.handleResponse({errorMessage:t("settings","Unable to update primary email address"),error:o})}},async addAdditionalEmail(e){var a,i;try{const o=await Fd(e);this.handleResponse({email:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){this.handleResponse({errorMessage:t("settings","Unable to add additional email address"),error:o})}},async setNotificationMail(){var e,a;try{const i=this.primary||this.isNotificationEmail?"":this.initialEmail,o=await jd(i);this.handleResponse({notificationEmail:i,status:(a=(e=o.ocs)==null?void 0:e.meta)==null?void 0:a.status})}catch(i){this.handleResponse({errorMessage:"Unable to choose this email for notifications",error:i})}},async updateAdditionalEmail(e){var a,i;try{const o=await Ud(this.initialEmail,e);this.handleResponse({email:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update additional email address"),error:o})}},async deleteAdditionalEmail(){var e,a;try{const i=await Ni(this.initialEmail);this.handleDeleteAdditionalEmail((a=(e=i.ocs)==null?void 0:e.meta)==null?void 0:a.status)}catch(i){this.handleResponse({errorMessage:t("settings","Unable to delete additional email address"),error:i})}},handleDeleteAdditionalEmail(e){e==="ok"?this.$emit("delete-additional-email"):this.handleResponse({errorMessage:t("settings","Unable to delete additional email address")})},handleResponse({email:e,notificationEmail:a,status:i,errorMessage:o,error:c}){i==="ok"?(e?this.initialEmail=e:a!==void 0&&this.$emit("update:notification-email",a),this.isSuccess=!0,setTimeout(()=>{this.isSuccess=!1},2e3)):(lt(c,o),this.hasError=!0,setTimeout(()=>{this.hasError=!1},2e3))},onScopeChange(e){this.$emit("update:scope",e)}}};var Gd=function(){var e=this,a=e._self._c;return a("div",[a("div",{staticClass:"email",class:{"email--additional":!e.primary}},[e.primary?e._e():a("div",{staticClass:"email__label-container"},[a("label",{attrs:{for:e.inputIdWithDefault}},[e._v(e._s(e.inputPlaceholder))]),!e.federationDisabled&&!e.primary?a("FederationControl",{attrs:{readable:e.propertyReadable,additional:!0,"additional-value":e.email,disabled:e.federationDisabled,"handle-additional-scope-change":e.saveAdditionalEmailScope,scope:e.localScope},on:{"update:scope":[function(i){e.localScope=i},e.onScopeChange]}}):e._e()],1),a("div",{staticClass:"email__input-container"},[a("NcTextField",{ref:"email",staticClass:"email__input",attrs:{id:e.inputIdWithDefault,autocapitalize:"none",autocomplete:"email",error:e.hasError||!!e.helperText,"helper-text":e.helperTextWithNonConfirmed,"label-outside":"",placeholder:e.inputPlaceholder,spellcheck:"false",success:e.isSuccess,type:"email",value:e.emailAddress},on:{"update:value":function(i){e.emailAddress=i}}}),a("div",{staticClass:"email__actions"},[a("NcActions",{attrs:{"aria-label":e.actionsLabel}},[!e.primary||!e.isNotificationEmail?a("NcActionButton",{attrs:{"close-after-click":"",disabled:!e.isConfirmedAddress},on:{click:e.setNotificationMail},scopedSlots:e._u([{key:"icon",fn:function(){return[e.isNotificationEmail?a("NcIconSvgWrapper",{attrs:{path:e.mdiStar}}):a("NcIconSvgWrapper",{attrs:{path:e.mdiStarOutline}})]},proxy:!0}],null,!1,2587735105)},[e._v(" "+e._s(e.setNotificationMailLabel)+" ")]):e._e(),a("NcActionButton",{attrs:{"close-after-click":"",disabled:e.deleteDisabled},on:{click:e.deleteEmail},scopedSlots:e._u([{key:"icon",fn:function(){return[a("NcIconSvgWrapper",{attrs:{path:e.mdiTrashCan}})]},proxy:!0}])},[e._v(" "+e._s(e.deleteEmailLabel)+" ")])],1)],1)],1)]),e.isNotificationEmail?a("em",[e._v(" "+e._s(e.t("settings","Primary email for password reset and notifications"))+" ")]):e._e()])},Vd=[],Yd=M(Wd,Gd,Vd,!1,null,"c94709e4");const zd=Yd.exports,{emailMap:{additionalEmails:Xd,primaryEmail:Da,notificationEmail:qd}}=A("settings","personalInfoParameters",{}),{displayNameChangeSupported:Kd}=A("settings","accountParameters",{}),Zd={name:"EmailSection",components:{HeaderBar:ut,Email:zd},data(){return{accountProperty:kt.EMAIL,additionalEmails:Xd.map(e=>({...e,key:this.generateUniqueKey()})),displayNameChangeSupported:Kd,primaryEmail:{...Da,readable:z[Da.name]},notificationEmail:qd}},computed:{firstAdditionalEmail(){return this.additionalEmails.length?this.additionalEmails[0].value:null},inputId(){return"account-property-".concat(this.primaryEmail.name)},isValidSection(){return _e(this.primaryEmail.value)&&this.additionalEmails.map(({value:e})=>e).every(_e)},primaryEmailValue:{get(){return this.primaryEmail.value},set(e){this.primaryEmail.value=e}}},methods:{onAddAdditionalEmail(){this.isValidSection&&this.additionalEmails.push({value:"",scope:Gn,key:this.generateUniqueKey()})},onDeleteAdditionalEmail(e){this.$delete(this.additionalEmails,e)},async onUpdateEmail(){if(this.primaryEmailValue===""&&this.firstAdditionalEmail){const e=this.firstAdditionalEmail;await this.deleteFirstAdditionalEmail(),this.primaryEmailValue=e,await this.updatePrimaryEmail()}},async onUpdateNotificationEmail(e){this.notificationEmail=e},async updatePrimaryEmail(){var e,a;try{const i=await Oi(this.primaryEmailValue);this.handleResponse((a=(e=i.ocs)==null?void 0:e.meta)==null?void 0:a.status)}catch(i){this.handleResponse("error",t("settings","Unable to update primary email address"),i)}},async deleteFirstAdditionalEmail(){var e,a;try{const i=await Ni(this.firstAdditionalEmail);this.handleDeleteFirstAdditionalEmail((a=(e=i.ocs)==null?void 0:e.meta)==null?void 0:a.status)}catch(i){this.handleResponse("error",t("settings","Unable to delete additional email address"),i)}},handleDeleteFirstAdditionalEmail(e){e==="ok"?this.$delete(this.additionalEmails,0):this.handleResponse("error",t("settings","Unable to delete additional email address"),{})},handleResponse(e,a,i){e!=="ok"&<(i,a)},generateUniqueKey(){return Math.random().toString(36).substring(2)}}};var Jd=function(){var e=this,a=e._self._c;return a("section",{staticClass:"section-emails"},[a("HeaderBar",{attrs:{"input-id":e.inputId,readable:e.primaryEmail.readable,"is-editable":!0,"is-multi-value-supported":!0,"is-valid-section":e.isValidSection,scope:e.primaryEmail.scope},on:{"update:scope":function(i){return e.$set(e.primaryEmail,"scope",i)},"add-additional":e.onAddAdditionalEmail}}),e.displayNameChangeSupported?[a("Email",{attrs:{"input-id":e.inputId,primary:!0,scope:e.primaryEmail.scope,email:e.primaryEmail.value,"active-notification-email":e.notificationEmail},on:{"update:scope":function(i){return e.$set(e.primaryEmail,"scope",i)},"update:email":[function(i){return e.$set(e.primaryEmail,"value",i)},e.onUpdateEmail],"update:activeNotificationEmail":function(i){e.notificationEmail=i},"update:active-notification-email":function(i){e.notificationEmail=i},"update:notification-email":e.onUpdateNotificationEmail}})]:a("span",[e._v(" "+e._s(e.primaryEmail.value||e.t("settings","No email address set"))+" ")]),e.additionalEmails.length?e._l(e.additionalEmails,function(i,o){return a("Email",{key:i.key,staticClass:"section-emails__additional-email",attrs:{index:o,scope:i.scope,email:i.value,"local-verification-state":parseInt(i.locallyVerified,10),"active-notification-email":e.notificationEmail},on:{"update:scope":function(c){return e.$set(i,"scope",c)},"update:email":[function(c){return e.$set(i,"value",c)},e.onUpdateEmail],"update:activeNotificationEmail":function(c){e.notificationEmail=c},"update:active-notification-email":function(c){e.notificationEmail=c},"update:notification-email":e.onUpdateNotificationEmail,"delete-additional-email":function(c){return e.onDeleteAdditionalEmail(o)}}})}):e._e()],2)},Qd=[],tr=M(Zd,Jd,Qd,!1,null,"9882efe3");const er=tr.exports,ar={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]],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"]]]],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"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],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"],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"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],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"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],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"],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,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|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])|3\\d\\d)|(?: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(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-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]"]]]],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",0,"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"],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"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],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(?:[15]|28|4[14])|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"],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"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\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"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],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)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],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"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],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"]]]],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-9]"]],["(\\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"]]]],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,0,"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"]]]],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|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|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-9]|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,"([59]\\d{7})$|0","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(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-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"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],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]"]]]],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"],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"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],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"]]]],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"]]]],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(?:10|9[56])|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,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"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",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],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))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[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",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],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]"],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,"([59]\\d{7})$|0","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(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-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]"]]]],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"]]]],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[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[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{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"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"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],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"],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"],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"]]]],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",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],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]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],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{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[3-79]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"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,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],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"],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"],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|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?: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|1(?:[0-7]\\d|8[0-2]))|(?: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-28]|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,"([2-9]\\d{6})$|1","473$1",0,"473"],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"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","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-28]|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"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],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]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[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[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],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]"]]]],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"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],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]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],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,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],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",["6|7[245]"],"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-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],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"],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"],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"],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"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],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"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],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"],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"],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,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|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]|43"]],["(\\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[2-9]\\d{7,8}|(?:31|43)\\d{8}",[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-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\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-28]|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"],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"],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)|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])|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])|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[0459]|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[26-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]|9[29])|5(?:2|3(?:[045]|9[0-8])|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[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|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]))|(?: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]|9(?:[0-58]|6[4-9]|7[0-35689]))|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]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|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]"],"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,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],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"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[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"],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"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],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"],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))?"],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]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"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"],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"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],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,"(1001)|0"],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"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],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)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\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-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"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(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\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"],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"],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"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],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"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],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"],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"],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]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[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"],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]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|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",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"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",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\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"],MX:["52","0[09]","1(?:(?:22|44|7[27]|87|9[69])[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-689]|8[1-69]|9[1-578])|[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,0,"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"],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"]]]],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"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],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[047]"]]]],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"],NG:["234","009","2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}",[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-6]|7(?:0[0-689]|[1-79])|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"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"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],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"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-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"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"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)|[589]"],"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"],"0$1"]],"0",0,0,0,0,0,0,"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]"]]]],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"]]]],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,0,"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"]]]],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,0,"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"],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"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|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"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],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"],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]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],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-7])"],"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"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\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",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,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"],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-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|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]",0,"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",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],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"],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])"]]]],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,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],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"],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-9]|[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"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],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,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],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"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],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"],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]"]]]],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",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],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]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\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]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],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"],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"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],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,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],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"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\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,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],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"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[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",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],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]"]]]],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]|61[06])","5(?:[0-59]|61[06]1)"],"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"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],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"]]]],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,0,0,"#"],TZ:["255","00[056]","(?:[25-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{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],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,0,"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"],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,[["(?:5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|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[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|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-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"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{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"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"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],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"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],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",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"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"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],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"]]]],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"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\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",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],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-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|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}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],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"],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"],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"]},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,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\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})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],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 ir(e,a){var i=Array.prototype.slice.call(a);return i.push(ar),e.apply(this,i)}function De(e){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},De(e)}function nr(e,a,i){return Object.defineProperty(e,"prototype",{writable:!1}),e}function dr(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function rr(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&Xt(e,a)}function or(e){var a=Mi();return function(){var i=qt(e),o;if(a){var c=qt(this).constructor;o=Reflect.construct(i,arguments,c)}else o=i.apply(this,arguments);return sr(this,o)}}function sr(e,a){if(a&&(De(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ii(e)}function Ii(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Le(e){var a=typeof Map=="function"?new Map:void 0;return Le=function(i){if(i===null||!lr(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(i))return a.get(i);a.set(i,o)}function o(){return ie(i,arguments,qt(this).constructor)}return o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Xt(o,i)},Le(e)}function ie(e,a,i){return Mi()?ie=Reflect.construct:ie=function(o,c,y){var b=[null];b.push.apply(b,c);var w=Function.bind.apply(o,b),C=new w;return y&&Xt(C,y.prototype),C},ie.apply(null,arguments)}function Mi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lr(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Xt(e,a){return Xt=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},Xt(e,a)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},qt(e)}var ot=function(e){rr(i,e);var a=or(i);function i(o){var c;return dr(this,i),c=a.call(this,o),Object.setPrototypeOf(Ii(c),i.prototype),c.name=c.constructor.name,c}return nr(i)}(Le(Error)),Ge=2,ur=17,cr=3,et="0-90-9٠-٩۰-۹",$r="-‐-―−ー-",hr="//",pr="..",fr=" ",mr="()()[]\\[\\]",gr="~⁓∼~",de="".concat($r).concat(hr).concat(pr).concat(fr).concat(mr).concat(gr),Ve="++";function La(e,a){e=e.split("-"),a=a.split("-");for(var i=e[0].split("."),o=a[0].split("."),c=0;c<3;c++){var y=Number(i[c]),b=Number(o[c]);if(y>b)return 1;if(b>y)return-1;if(!isNaN(y)&&isNaN(b))return 1;if(isNaN(y)&&!isNaN(b))return-1}return e[1]&&a[1]?e[1]>a[1]?1:e[1]<a[1]?-1:0:!e[1]&&a[1]?1:e[1]&&!a[1]?-1:0}var yr={}.constructor;function ne(e){return e!=null&&e.constructor===yr}function Te(e){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Te(e)}function se(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function vr(e,a){for(var i=0;i<a.length;i++){var o=a[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function le(e,a,i){return a&&vr(e.prototype,a),Object.defineProperty(e,"prototype",{writable:!1}),e}var br="1.2.0",wr="1.7.35",Ta=" ext. ",Cr=/^\d+$/,W=function(){function e(a){se(this,e),Sr(a),this.metadata=a,Ai.call(this,a)}return le(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(a){return a!=="001"})}},{key:"getCountryMetadata",value:function(a){return this.metadata.countries[a]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(a){return this.getCountryMetadata(a)!==void 0}},{key:"hasCallingCode",value:function(a){if(this.getCountryCodesForCallingCode(a))return!0;if(this.nonGeographic()){if(this.nonGeographic()[a])return!0}else{var i=this.countryCallingCodes()[a];if(i&&i.length===1&&i[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(a){return this.nonGeographic()?!!this.nonGeographic()[a]:!this.getCountryCodesForCallingCode(a)}},{key:"country",value:function(a){return this.selectNumberingPlan(a)}},{key:"selectNumberingPlan",value:function(a,i){if(a&&Cr.test(a)&&(i=a,a=null),a&&a!=="001"){if(!this.hasCountry(a))throw new Error("Unknown country: ".concat(a));this.numberingPlan=new ka(this.getCountryMetadata(a),this)}else if(i){if(!this.hasCallingCode(i))throw new Error("Unknown calling code: ".concat(i));this.numberingPlan=new ka(this.getNumberingPlanMetadata(i),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(a){var i=this.countryCallingCodes()[a];if(i)return i.length===1&&i[0].length===3?void 0:i}},{key:"getCountryCodeForCallingCode",value:function(a){var i=this.getCountryCodesForCallingCode(a);if(i)return i[0]}},{key:"getNumberingPlanMetadata",value:function(a){var i=this.getCountryCodeForCallingCode(a);if(i)return this.getCountryMetadata(i);if(this.nonGeographic()){var o=this.nonGeographic()[a];if(o)return o}else{var c=this.countryCallingCodes()[a];if(c&&c.length===1&&c[0]==="001")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(a){return this.numberingPlan.type(a)}},{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(a){return this.selectNumberingPlan(a)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),ka=function(){function e(a,i){se(this,e),this.globalMetadataObject=i,this.metadata=a,Ai.call(this,i.metadata)}return le(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(a){return a[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var a=this,i=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return i.map(function(o){return new xr(o,a)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(a){return a[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()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(a){if(this.hasTypes()&&Ra(this.types(),a))return new Pr(Ra(this.types(),a),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ta:this.metadata[13]||Ta}}]),e}(),xr=function(){function e(a,i){se(this,e),this._format=a,this.metadata=i}return le(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()&&!Er.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Er=/^\(?\$1\)?$/,Pr=function(){function e(a,i){se(this,e),this.type=a,this.metadata=i}return le(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 Ra(e,a){switch(a){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]}}function Sr(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!ne(e)||!ne(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(ne(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Or(e)+": "+e,"."))}var Or=function(e){return Te(e)};function Ye(e,a){if(a=new W(a),a.hasCountry(e))return a.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Nr(e,a){return a.countries.hasOwnProperty(e)}function Ai(e){var a=e.version;typeof a=="number"?(this.v1=a===1,this.v2=a===2,this.v3=a===3,this.v4=a===4):a?La(a,br)===-1?this.v2=!0:La(a,wr)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var Ir=";ext=",Lt=function(e){return"([".concat(et,"]{1,").concat(e,"})")};function _i(e){var a="20",i="15",o="9",c="6",y="[ \\t,]*",b="[:\\..]?[ \\t,-]*",w="#?",C="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",P="(?:[xx##~~]|int|int)",H="[- ]+",it="[ \\t]*",K="(?:,{2}|;)",Z=Ir+Lt(a),vt=y+C+b+Lt(a)+w,ue=y+P+b+Lt(o)+w,Zt=H+Lt(c)+"#",Nt=it+K+b+Lt(i)+w,X=it+"(?:,)+"+b+Lt(o)+w;return Z+"|"+vt+"|"+ue+"|"+Zt+"|"+Nt+"|"+X}var Mr="["+et+"]{"+Ge+"}",Ar="["+Ve+"]{0,1}(?:["+de+"]*["+et+"]){3,}["+de+et+"]*",_r=new RegExp("^["+Ve+"]{0,1}(?:["+de+"]*["+et+"]){1,2}$","i"),Dr=Ar+"(?:"+_i()+")?",Lr=new RegExp("^"+Mr+"$|^"+Dr+"$","i");function Tr(e){return e.length>=Ge&&Lr.test(e)}function kr(e){return _r.test(e)}var Ba=new RegExp("(?:"+_i()+")$","i");function Rr(e){var a=e.search(Ba);if(a<0)return{};for(var i=e.slice(0,a),o=e.match(Ba),c=1;c<o.length;){if(o[c])return{number:i,ext:o[c]};c++}}var Br={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","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"};function Fr(e){return Br[e]}function jr(e,a){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=Ur(e))||a){i&&(e=i);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.")}function Ur(e,a){if(e){if(typeof e=="string")return Fa(e,a);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Fa(e,a)}}function Fa(e,a){(a==null||a>e.length)&&(a=e.length);for(var i=0,o=new Array(a);i<a;i++)o[i]=e[i];return o}function ja(e){for(var a="",i=jr(e.split("")),o;!(o=i()).done;){var c=o.value;a+=Hr(c,a)||""}return a}function Hr(e,a,i){return e==="+"?a?void 0:"+":Fr(e)}function ze(e,a){return Wr(e,void 0,a)}function Wr(e,a,i){var o=i.type(a),c=o&&o.possibleLengths()||i.possibleLengths();if(!c)return"IS_POSSIBLE";var y=e.length,b=c[0];return b===y?"IS_POSSIBLE":b>y?"TOO_SHORT":c[c.length-1]<y?"TOO_LONG":c.indexOf(y,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Gr(e,a,i){if(a===void 0&&(a={}),i=new W(i),a.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.countryCallingCode)}}if(i.possibleLengths())return Di(e.phone||e.nationalNumber,i);if(e.countryCallingCode&&i.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Di(e,a){switch(ze(e,a)){case"IS_POSSIBLE":return!0;default:return!1}}function st(e,a){return e=e||"",new RegExp("^(?:"+a+")$").test(e)}function Vr(e,a){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=Yr(e))||a){i&&(e=i);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.")}function Yr(e,a){if(e){if(typeof e=="string")return Ua(e,a);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ua(e,a)}}function Ua(e,a){(a==null||a>e.length)&&(a=e.length);for(var i=0,o=new Array(a);i<a;i++)o[i]=e[i];return o}var zr=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Xe(e,a,i){if(a=a||{},!(!e.country&&!e.countryCallingCode)){i=new W(i),i.selectNumberingPlan(e.country,e.countryCallingCode);var o=a.v2?e.nationalNumber:e.phone;if(st(o,i.nationalNumberPattern())){if(Ie(o,"FIXED_LINE",i))return i.type("MOBILE")&&i.type("MOBILE").pattern()===""||!i.type("MOBILE")||Ie(o,"MOBILE",i)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var c=Vr(zr),y;!(y=c()).done;){var b=y.value;if(Ie(o,b,i))return b}}}}function Ie(e,a,i){return a=i.type(a),!a||!a.pattern()||a.possibleLengths()&&a.possibleLengths().indexOf(e.length)<0?!1:st(e,a.pattern())}function Xr(e,a,i){if(a=a||{},i=new W(i),i.selectNumberingPlan(e.country,e.countryCallingCode),i.hasTypes())return Xe(e,a,i.metadata)!==void 0;var o=a.v2?e.nationalNumber:e.phone;return st(o,i.nationalNumberPattern())}function qr(e,a,i){var o=new W(i),c=o.getCountryCodesForCallingCode(e);return c?c.filter(function(y){return Kr(a,y,i)}):[]}function Kr(e,a,i){var o=new W(i);return o.selectNumberingPlan(a),o.numberingPlan.possibleLengths().indexOf(e.length)>=0}function Zr(e){return e.replace(new RegExp("[".concat(de,"]+"),"g")," ").trim()}var Jr=/(\$\d)/;function Qr(e,a,i){var o=i.useInternationalFormat,c=i.withNationalPrefix,y=e.replace(new RegExp(a.pattern()),o?a.internationalFormat():c&&a.nationalPrefixFormattingRule()?a.format().replace(Jr,a.nationalPrefixFormattingRule()):a.format());return o?Zr(y):y}var to=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function eo(e,a,i){var o=new W(i);if(o.selectNumberingPlan(e,a),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(to.test(o.IDDPrefix()))return o.IDDPrefix()}function ao(e){var a=e.number,i=e.ext;if(!a)return"";if(a[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(a).concat(i?";ext="+i:"")}function io(e,a){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=no(e))||a){i&&(e=i);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.")}function no(e,a){if(e){if(typeof e=="string")return Ha(e,a);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ha(e,a)}}function Ha(e,a){(a==null||a>e.length)&&(a=e.length);for(var i=0,o=new Array(a);i<a;i++)o[i]=e[i];return o}function Wa(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,o)}return i}function Ga(e){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?Wa(Object(i),!0).forEach(function(o){ro(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Wa(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function ro(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}var Va={formatExtension:function(e,a,i){return"".concat(e).concat(i.ext()).concat(a)}};function oo(e,a,i,o){if(i?i=Ga(Ga({},Va),i):i=Va,o=new W(o),e.country&&e.country!=="001"){if(!o.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));o.country(e.country)}else if(e.countryCallingCode)o.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var c=o.countryCallingCode(),y=i.v2?e.nationalNumber:e.phone,b;switch(a){case"NATIONAL":return y?(b=re(y,e.carrierCode,"NATIONAL",o,i),Me(b,e.ext,o,i.formatExtension)):"";case"INTERNATIONAL":return y?(b=re(y,null,"INTERNATIONAL",o,i),b="+".concat(c," ").concat(b),Me(b,e.ext,o,i.formatExtension)):"+".concat(c);case"E.164":return"+".concat(c).concat(y);case"RFC3966":return ao({number:"+".concat(c).concat(y),ext:e.ext});case"IDD":if(!i.fromCountry)return;var w=lo(y,e.carrierCode,c,i.fromCountry,o);return Me(w,e.ext,o,i.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(a,'"'))}}function re(e,a,i,o,c){var y=so(o.formats(),e);return y?Qr(e,y,{useInternationalFormat:i==="INTERNATIONAL",withNationalPrefix:!(y.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&c&&c.nationalPrefix===!1),carrierCode:a,metadata:o}):e}function so(e,a){for(var i=io(e),o;!(o=i()).done;){var c=o.value;if(c.leadingDigitsPatterns().length>0){var y=c.leadingDigitsPatterns()[c.leadingDigitsPatterns().length-1];if(a.search(y)!==0)continue}if(st(a,c.pattern()))return c}}function Me(e,a,i,o){return a?o(e,a,i):e}function lo(e,a,i,o,c){var y=Ye(o,c.metadata);if(y===i){var b=re(e,a,"NATIONAL",c);return i==="1"?i+" "+b:b}var w=eo(o,void 0,c.metadata);if(w)return"".concat(w," ").concat(i," ").concat(re(e,null,"INTERNATIONAL",c))}function Ya(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,o)}return i}function za(e){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?Ya(Object(i),!0).forEach(function(o){uo(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ya(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function uo(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function co(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function $o(e,a){for(var i=0;i<a.length;i++){var o=a[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ho(e,a,i){return a&&$o(e.prototype,a),Object.defineProperty(e,"prototype",{writable:!1}),e}var po=function(){function e(a,i,o){if(co(this,e),!a)throw new TypeError("`country` or `countryCallingCode` not passed");if(!i)throw new TypeError("`nationalNumber` not passed");if(!o)throw new TypeError("`metadata` not passed");var c=mo(a,o),y=c.country,b=c.countryCallingCode;this.country=y,this.countryCallingCode=b,this.nationalNumber=i,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return o}}return ho(e,[{key:"setExt",value:function(a){this.ext=a}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:qr(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Gr(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return Xr(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var a=new W(this.getMetadata());return a.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(a){return this.number===a.number&&this.ext===a.ext}},{key:"getType",value:function(){return Xe(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(a,i){return oo(this,a,i?za(za({},i),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(a){return this.format("NATIONAL",a)}},{key:"formatInternational",value:function(a){return this.format("INTERNATIONAL",a)}},{key:"getURI",value:function(a){return this.format("RFC3966",a)}}]),e}(),fo=function(e){return/^[A-Z]{2}$/.test(e)};function mo(e,a){var i,o,c=new W(a);return fo(e)?(i=e,c.selectNumberingPlan(i),o=c.countryCallingCode()):o=e,{country:i,countryCallingCode:o}}var go=new RegExp("(["+et+"])");function yo(e,a,i,o){if(a){var c=new W(o);c.selectNumberingPlan(a,i);var y=new RegExp(c.IDDPrefix());if(e.search(y)===0){e=e.slice(e.match(y)[0].length);var b=e.match(go);if(!(b&&b[1]!=null&&b[1].length>0&&b[1]==="0"))return e}}}function vo(e,a){if(e&&a.numberingPlan.nationalPrefixForParsing()){var i=new RegExp("^(?:"+a.numberingPlan.nationalPrefixForParsing()+")"),o=i.exec(e);if(o){var c,y,b=o.length-1,w=b>0&&o[b];if(a.nationalPrefixTransformRule()&&w)c=e.replace(i,a.nationalPrefixTransformRule()),b>1&&(y=o[1]);else{var C=o[0];c=e.slice(C.length),w&&(y=o[1])}var P;if(w){var H=e.indexOf(o[1]),it=e.slice(0,H);it===a.numberingPlan.nationalPrefix()&&(P=a.numberingPlan.nationalPrefix())}else P=o[0];return{nationalNumber:c,nationalPrefix:P,carrierCode:y}}}return{nationalNumber:e}}function ke(e,a){var i=vo(e,a),o=i.carrierCode,c=i.nationalNumber;if(c!==e){if(!bo(e,c,a))return{nationalNumber:e};if(a.possibleLengths()&&!wo(c,a))return{nationalNumber:e}}return{nationalNumber:c,carrierCode:o}}function bo(e,a,i){return!(st(e,i.nationalNumberPattern())&&!st(a,i.nationalNumberPattern()))}function wo(e,a){switch(ze(e,a)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Co(e,a,i,o){var c=a?Ye(a,o):i;if(e.indexOf(c)===0){o=new W(o),o.selectNumberingPlan(a,i);var y=e.slice(c.length),b=ke(y,o),w=b.nationalNumber,C=ke(e,o),P=C.nationalNumber;if(!st(P,o.nationalNumberPattern())&&st(w,o.nationalNumberPattern())||ze(P,o)==="TOO_LONG")return{countryCallingCode:c,number:y}}return{number:e}}function xo(e,a,i,o){if(!e)return{};var c;if(e[0]!=="+"){var y=yo(e,a,i,o);if(y&&y!==e)c=!0,e="+"+y;else{if(a||i){var b=Co(e,a,i,o),w=b.countryCallingCode,C=b.number;if(w)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:w,number:C}}return{number:e}}}if(e[1]==="0")return{};o=new W(o);for(var P=2;P-1<=cr&&P<=e.length;){var H=e.slice(1,P);if(o.hasCallingCode(H))return o.selectNumberingPlan(H),{countryCallingCodeSource:c?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:H,number:e.slice(P)};P++}return{}}function Eo(e,a){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=Po(e))||a){i&&(e=i);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.")}function Po(e,a){if(e){if(typeof e=="string")return Xa(e,a);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Xa(e,a)}}function Xa(e,a){(a==null||a>e.length)&&(a=e.length);for(var i=0,o=new Array(a);i<a;i++)o[i]=e[i];return o}function So(e,a){var i=a.countries,o=a.defaultCountry,c=a.metadata;c=new W(c);for(var y=[],b=Eo(i),w;!(w=b()).done;){var C=w.value;if(c.country(C),c.leadingDigits()){if(e&&e.search(c.leadingDigits())===0)return C}else if(Xe({phone:e,country:C},void 0,c.metadata))if(o){if(C===o)return C;y.push(C)}else return C}if(y.length>0)return y[0]}function Oo(e,a){var i=a.nationalNumber,o=a.defaultCountry,c=a.metadata,y=c.getCountryCodesForCallingCode(e);if(y)return y.length===1?y[0]:So(i,{countries:y,defaultCountry:o,metadata:c.metadata})}var Li="+",No="[\\-\\.\\(\\)]?",qa="(["+et+"]|"+No+")",Io="^\\"+Li+qa+"*["+et+"]"+qa+"*$",Mo=new RegExp(Io,"g"),Re=et,Ao="["+Re+"]+((\\-)*["+Re+"])*",_o="a-zA-Z",Do="["+_o+"]+((\\-)*["+Re+"])*",Lo="^("+Ao+"\\.)*"+Do+"\\.?$",To=new RegExp(Lo,"g"),Ka="tel:",Be=";phone-context=",ko=";isub=";function Ro(e){var a=e.indexOf(Be);if(a<0)return null;var i=a+Be.length;if(i>=e.length)return"";var o=e.indexOf(";",i);return o>=0?e.substring(i,o):e.substring(i)}function Bo(e){return e===null?!0:e.length===0?!1:Mo.test(e)||To.test(e)}function Fo(e,a){var i=a.extractFormattedPhoneNumber,o=Ro(e);if(!Bo(o))throw new ot("NOT_A_NUMBER");var c;if(o===null)c=i(e)||"";else{c="",o.charAt(0)===Li&&(c+=o);var y=e.indexOf(Ka),b;y>=0?b=y+Ka.length:b=0;var w=e.indexOf(Be);c+=e.substring(b,w)}var C=c.indexOf(ko);if(C>0&&(c=c.substring(0,C)),c!=="")return c}var jo=250,Uo=new RegExp("["+Ve+et+"]"),Ho=new RegExp("[^"+et+"#]+$");function Wo(e,a,i){if(a=a||{},i=new W(i),a.defaultCountry&&!i.hasCountry(a.defaultCountry))throw a.v2?new ot("INVALID_COUNTRY"):new Error("Unknown country: ".concat(a.defaultCountry));var o=Vo(e,a.v2,a.extract),c=o.number,y=o.ext,b=o.error;if(!c){if(a.v2)throw b==="TOO_SHORT"?new ot("TOO_SHORT"):new ot("NOT_A_NUMBER");return{}}var w=zo(c,a.defaultCountry,a.defaultCallingCode,i),C=w.country,P=w.nationalNumber,H=w.countryCallingCode,it=w.countryCallingCodeSource,K=w.carrierCode;if(!i.hasSelectedNumberingPlan()){if(a.v2)throw new ot("INVALID_COUNTRY");return{}}if(!P||P.length<Ge){if(a.v2)throw new ot("TOO_SHORT");return{}}if(P.length>ur){if(a.v2)throw new ot("TOO_LONG");return{}}if(a.v2){var Z=new po(H,P,i.metadata);return C&&(Z.country=C),K&&(Z.carrierCode=K),y&&(Z.ext=y),Z.__countryCallingCodeSource=it,Z}var vt=(a.extended?i.hasSelectedNumberingPlan():C)?st(P,i.nationalNumberPattern()):!1;return a.extended?{country:C,countryCallingCode:H,carrierCode:K,valid:vt,possible:vt?!0:!!(a.extended===!0&&i.possibleLengths()&&Di(P,i)),phone:P,ext:y}:vt?Yo(C,P,y):{}}function Go(e,a,i){if(e){if(e.length>jo){if(i)throw new ot("TOO_LONG");return}if(a===!1)return e;var o=e.search(Uo);if(!(o<0))return e.slice(o).replace(Ho,"")}}function Vo(e,a,i){var o=Fo(e,{extractFormattedPhoneNumber:function(y){return Go(y,i,a)}});if(!o)return{};if(!Tr(o))return kr(o)?{error:"TOO_SHORT"}:{};var c=Rr(o);return c.ext?c:{number:o}}function Yo(e,a,i){var o={country:e,phone:a};return i&&(o.ext=i),o}function zo(e,a,i,o){var c=xo(ja(e),a,i,o.metadata),y=c.countryCallingCodeSource,b=c.countryCallingCode,w=c.number,C;if(b)o.selectNumberingPlan(b);else if(w&&(a||i))o.selectNumberingPlan(a,i),a&&(C=a),b=i||Ye(a,o.metadata);else return{};if(!w)return{countryCallingCodeSource:y,countryCallingCode:b};var P=ke(ja(w),o),H=P.nationalNumber,it=P.carrierCode,K=Oo(b,{nationalNumber:H,defaultCountry:a,metadata:o});return K&&(C=K,K==="001"||o.country(C)),{country:C,countryCallingCode:b,countryCallingCodeSource:y,nationalNumber:H,carrierCode:it}}function Za(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,o)}return i}function Ja(e){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?Za(Object(i),!0).forEach(function(o){Xo(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Za(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function Xo(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function qo(e,a,i){return Wo(e,Ja(Ja({},a),{},{v2:!0}),i)}function Qa(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,o)}return i}function Ko(e){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?Qa(Object(i),!0).forEach(function(o){Zo(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Qa(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function Zo(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function Jo(e,a){return a0(e)||e0(e,a)||t0(e,a)||Qo()}function Qo(){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 t0(e,a){if(e){if(typeof e=="string")return ti(e,a);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ti(e,a)}}function ti(e,a){(a==null||a>e.length)&&(a=e.length);for(var i=0,o=new Array(a);i<a;i++)o[i]=e[i];return o}function e0(e,a){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var o=[],c=!0,y=!1,b,w;try{for(i=i.call(e);!(c=(b=i.next()).done)&&(o.push(b.value),!(a&&o.length===a));c=!0);}catch(C){y=!0,w=C}finally{try{!c&&i.return!=null&&i.return()}finally{if(y)throw w}}return o}}function a0(e){if(Array.isArray(e))return e}function i0(e){var a=Array.prototype.slice.call(e),i=Jo(a,4),o=i[0],c=i[1],y=i[2],b=i[3],w,C,P;if(typeof o=="string")w=o;else throw new TypeError("A text for parsing must be a string.");if(!c||typeof c=="string")b?(C=y,P=b):(C=void 0,P=y),c&&(C=Ko({defaultCountry:c},C));else if(ne(c))y?(C=c,P=y):P=c;else throw new Error("Invalid second argument: ".concat(c));return{text:w,options:C,metadata:P}}function ei(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,o)}return i}function ai(e){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?ei(Object(i),!0).forEach(function(o){n0(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ei(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function n0(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function d0(e,a,i){a&&a.defaultCountry&&!Nr(a.defaultCountry,i)&&(a=ai(ai({},a),{},{defaultCountry:void 0}));try{return qo(e,a,i)}catch(o){if(!(o instanceof ot))throw o}}function ii(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,o)}return i}function ni(e){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?ii(Object(i),!0).forEach(function(o){r0(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ii(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function r0(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function o0(){var e=i0(arguments),a=e.text,i=e.options,o=e.metadata;i=ni(ni({},i),{},{extract:!1});var c=d0(a,i,o);return c&&c.isValid()||!1}function di(){return ir(o0,arguments)}const{defaultPhoneRegion:ri,phone:oi}=A("settings","personalInfoParameters",{}),s0={name:"PhoneSection",components:{AccountPropertySection:at},data(){return{phone:{...oi,readable:z[oi.name]}}},methods:{onValidate(e){return ri?di(e,ri):di(e)}}};var l0=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{placeholder:e.t("settings","Your phone number"),autocomplete:"tel",type:"tel","on-validate":e.onValidate}},"AccountPropertySection",e.phone,!1,!0))},u0=[],c0=M(s0,l0,u0,!1,null,null);const $0=c0.exports,{location:si}=A("settings","personalInfoParameters",{}),h0={name:"LocationSection",components:{AccountPropertySection:at},data(){return{location:{...si,readable:z[si.name]}}}};var p0=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{autocomplete:"address-level1",placeholder:e.t("settings","Your city")}},"AccountPropertySection",e.location,!1,!0))},f0=[],m0=M(h0,p0,f0,!1,null,null);const g0=m0.exports,{website:li}=A("settings","personalInfoParameters",{}),y0={name:"WebsiteSection",components:{AccountPropertySection:at},data(){return{website:{...li,readable:z[li.name]}}},methods:{onValidate(e){return Vn(e)}}};var v0=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{placeholder:e.t("settings","Your website"),autocomplete:"url",type:"url","on-validate":e.onValidate}},"AccountPropertySection",e.website,!1,!0))},b0=[],w0=M(y0,v0,b0,!1,null,null);const C0=w0.exports,{twitter:ui}=A("settings","personalInfoParameters",{}),x0={name:"TwitterSection",components:{AccountPropertySection:at},data(){return{twitter:{...ui,readable:z[ui.name]}}}};var E0=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{placeholder:e.t("settings","Your X (formerly Twitter) handle")}},"AccountPropertySection",e.twitter,!1,!0))},P0=[],S0=M(x0,E0,P0,!1,null,null);const O0=S0.exports,{fediverse:ci}=A("settings","personalInfoParameters",{}),N0={name:"FediverseSection",components:{AccountPropertySection:at},data(){return{fediverse:{...ci,readable:z[ci.name]}}}};var I0=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{placeholder:e.t("settings","Your handle")}},"AccountPropertySection",e.fediverse,!1,!0))},M0=[],A0=M(N0,I0,M0,!1,null,null);const _0=A0.exports,D0={name:"Language",components:{NcSelect:je},props:{inputId:{type:String,default:null},commonLanguages:{type:Array,required:!0},otherLanguages:{type:Array,required:!0},language:{type:Object,required:!0}},data(){return{initialLanguage:this.language}},computed:{allLanguages(){const e=this.commonLanguages.filter(i=>i.code!==this.language.code),a=this.otherLanguages.filter(i=>i.code!==this.language.code);return[this.language,...e,...a]}},methods:{async onLanguageChange(e){this.$emit("update:language",e),Yn(e)&&await this.updateLanguage(e)},async updateLanguage(e){var a,i;try{const o=await Kt(oe.LANGUAGE,e.code);this.handleResponse({language:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status}),window.location.reload()}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update language"),error:o})}},handleResponse({language:e,status:a,errorMessage:i,error:o}){a==="ok"?this.initialLanguage=e:lt(o,i)}}};var L0=function(){var e=this,a=e._self._c;return a("div",{staticClass:"language"},[a("NcSelect",{staticClass:"language__select",attrs:{"aria-label-listbox":e.t("settings","Languages"),clearable:!1,"input-id":e.inputId,label:"name","label-outside":"",options:e.allLanguages,value:e.language},on:{"option:selected":e.onLanguageChange}}),a("a",{attrs:{href:"https://www.transifex.com/nextcloud/nextcloud/",target:"_blank",rel:"noreferrer noopener"}},[a("em",[e._v(e._s(e.t("settings","Help translate")))])])],1)},T0=[],k0=M(D0,L0,T0,!1,null,"1d91b181");const R0=k0.exports,{languageMap:{activeLanguage:B0,commonLanguages:F0,otherLanguages:j0}}=A("settings","personalInfoParameters",{}),U0={name:"LanguageSection",components:{Language:R0,HeaderBar:ut},setup(){return{commonLanguages:F0,otherLanguages:j0,propertyReadable:Ue.LANGUAGE}},data(){return{language:B0}},computed:{inputId(){return"account-setting-".concat(oe.LANGUAGE)},isEditable(){return!!this.language}}};var H0=function(){var e=this,a=e._self._c;return a("section",[a("HeaderBar",{attrs:{"input-id":e.inputId,readable:e.propertyReadable}}),e.isEditable?a("Language",{attrs:{"input-id":e.inputId,"common-languages":e.commonLanguages,"other-languages":e.otherLanguages,language:e.language},on:{"update:language":function(i){e.language=i}}}):a("span",[e._v(" "+e._s(e.t("settings","No language set"))+" ")])],1)},W0=[],G0=M(U0,H0,W0,!1,null,"a48534b7");const V0=G0.exports,Y0={name:"Locale",components:{MapClock:Bn,NcSelect:je},props:{inputId:{type:String,default:null},locale:{type:Object,required:!0},localesForLanguage:{type:Array,required:!0},otherLocales:{type:Array,required:!0}},data(){return{initialLocale:this.locale,intervalId:0,example:{date:ae().format("L"),time:ae().format("LTS"),firstDayOfWeek:window.dayNames[window.firstDay]}}},computed:{allLocales(){const e=this.localesForLanguage.filter(i=>i.code!==this.locale.code),a=this.otherLocales.filter(i=>i.code!==this.locale.code);return[this.locale,...e,...a]}},mounted(){this.intervalId=window.setInterval(this.refreshExample,1e3)},beforeDestroy(){window.clearInterval(this.intervalId)},methods:{async updateLocale(e){var a,i;try{const o=await Kt(oe.LOCALE,e.code);this.handleResponse({locale:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status}),window.location.reload()}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update locale"),error:o})}},handleResponse({locale:e,status:a,errorMessage:i,error:o}){a==="ok"?this.initialLocale=e:(this.$emit("update:locale",this.initialLocale),lt(o,i))},refreshExample(){this.example={date:ae().format("L"),time:ae().format("LTS"),firstDayOfWeek:window.dayNames[window.firstDay]}}}};var z0=function(){var e=this,a=e._self._c;return a("div",{staticClass:"locale"},[a("NcSelect",{staticClass:"locale__select",attrs:{"aria-label-listbox":e.t("settings","Locales"),clearable:!1,"input-id":e.inputId,label:"name","label-outside":"",options:e.allLocales,value:e.locale},on:{"option:selected":e.updateLocale}}),a("div",{staticClass:"example"},[a("MapClock",{attrs:{size:20}}),a("div",{staticClass:"example__text"},[a("p",[a("span",[e._v(e._s(e.example.date))]),a("span",[e._v(e._s(e.example.time))])]),a("p",[e._v(" "+e._s(e.t("settings","Week starts on {firstDayOfWeek}",{firstDayOfWeek:e.example.firstDayOfWeek}))+" ")])])],1)],1)},X0=[],q0=M(Y0,z0,X0,!1,null,"79b1b745");const K0=q0.exports,{localeMap:{activeLocale:Z0,localesForLanguage:J0,otherLocales:Q0}}=A("settings","personalInfoParameters",{}),ts={name:"LocaleSection",components:{Locale:K0,HeaderBar:ut},data(){return{propertyReadable:Ue.LOCALE,localesForLanguage:J0,otherLocales:Q0,locale:Z0}},computed:{inputId(){return"account-setting-".concat(oe.LOCALE)},isEditable(){return!!this.locale}}};var es=function(){var e=this,a=e._self._c;return a("section",[a("HeaderBar",{attrs:{"input-id":e.inputId,readable:e.propertyReadable}}),e.isEditable?a("Locale",{attrs:{"input-id":e.inputId,"locales-for-language":e.localesForLanguage,"other-locales":e.otherLocales,locale:e.locale},on:{"update:locale":function(i){e.locale=i}}}):a("span",[e._v(" "+e._s(e.t("settings","No locale set"))+" ")])],1)},as=[],is=M(ts,es,as,!1,null,"d10e1de1");const ns=is.exports,ds={name:"EditProfileAnchorLink",components:{ChevronDownIcon:Fn},props:{profileEnabled:{type:Boolean,required:!0}},computed:{disabled(){return!this.profileEnabled}}};var rs=function(){var e=this,a=e._self._c;return a("a",e._g({class:{disabled:e.disabled},attrs:{href:"#profile-visibility"}},e.$listeners),[a("ChevronDownIcon",{staticClass:"anchor-icon",attrs:{size:22}}),e._v(" "+e._s(e.t("settings","Edit your Profile visibility"))+" ")],1)},os=[],ss=M(ds,rs,os,!1,null,"1d12d9d0");const ls=ss.exports,us={name:"ProfileCheckbox",components:{NcCheckboxRadioSwitch:En},props:{profileEnabled:{type:Boolean,required:!0}},data(){return{isProfileEnabled:this.profileEnabled,loading:!1}},methods:{async saveEnableProfile(){var e,a;this.loading=!0;try{const i=await Kt(Ot.PROFILE_ENABLED,this.isProfileEnabled);this.handleResponse({isProfileEnabled:this.isProfileEnabled,status:(a=(e=i.ocs)==null?void 0:e.meta)==null?void 0:a.status})}catch(i){this.handleResponse({errorMessage:t("settings","Unable to update profile enabled state"),error:i})}},handleResponse({isProfileEnabled:e,status:a,errorMessage:i,error:o}){a==="ok"?Fe("settings:profile-enabled:updated",e):lt(o,i),this.loading=!1}}};var cs=function(){var e=this,a=e._self._c;return a("div",{staticClass:"checkbox-container"},[a("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:e.isProfileEnabled,loading:e.loading},on:{"update:checked":[function(i){e.isProfileEnabled=i},e.saveEnableProfile]}},[e._v(" "+e._s(e.t("settings","Enable profile"))+" ")])],1)},$s=[],hs=M(us,cs,$s,!1,null,null);const ps=hs.exports,fs={name:"ProfilePreviewCard",components:{NcAvatar:wi},props:{displayName:{type:String,required:!0},organisation:{type:String,required:!0},profileEnabled:{type:Boolean,required:!0},userId:{type:String,required:!0}},computed:{disabled(){return!this.profileEnabled},profilePageLink(){return this.profileEnabled?Vt("/u/{userId}",{userId:tt().uid}):null}}};var ms=function(){var e=this,a=e._self._c;return a("a",{staticClass:"preview-card",class:{disabled:e.disabled},attrs:{href:e.profilePageLink}},[a("NcAvatar",{staticClass:"preview-card__avatar",attrs:{user:e.userId,size:48,"show-user-status":!0,"show-user-status-compact":!1,"disable-menu":!0,"disable-tooltip":!0}}),a("div",{staticClass:"preview-card__header"},[a("span",[e._v(e._s(e.displayName))])]),a("div",{staticClass:"preview-card__footer"},[a("span",[e._v(e._s(e.organisation))])])],1)},gs=[],ys=M(fs,ms,gs,!1,null,"e3adf074");const vs=ys.exports,{organisation:{value:bs},displayName:{value:ws},profileEnabled:Cs,userId:xs}=A("settings","personalInfoParameters",{}),Es={name:"ProfileSection",components:{EditProfileAnchorLink:ls,HeaderBar:ut,ProfileCheckbox:ps,ProfilePreviewCard:vs},data(){return{propertyReadable:kt.PROFILE_ENABLED,organisation:bs,displayName:ws,profileEnabled:Cs,userId:xs}},mounted(){Yt("settings:display-name:updated",this.handleDisplayNameUpdate),Yt("settings:organisation:updated",this.handleOrganisationUpdate)},beforeDestroy(){zt("settings:display-name:updated",this.handleDisplayNameUpdate),zt("settings:organisation:updated",this.handleOrganisationUpdate)},methods:{handleDisplayNameUpdate(e){this.displayName=e},handleOrganisationUpdate(e){this.organisation=e}}};var Ps=function(){var e=this,a=e._self._c;return a("section",[a("HeaderBar",{attrs:{"is-heading":!0,readable:e.propertyReadable}}),a("ProfileCheckbox",{attrs:{"profile-enabled":e.profileEnabled},on:{"update:profileEnabled":function(i){e.profileEnabled=i},"update:profile-enabled":function(i){e.profileEnabled=i}}}),a("ProfilePreviewCard",{attrs:{organisation:e.organisation,"display-name":e.displayName,"profile-enabled":e.profileEnabled,"user-id":e.userId}}),a("EditProfileAnchorLink",{attrs:{"profile-enabled":e.profileEnabled}})],1)},Ss=[],Os=M(Es,Ps,Ss,!1,null,"af14e194");const Ns=Os.exports,{organisation:$i}=A("settings","personalInfoParameters",{}),Is={name:"OrganisationSection",components:{AccountPropertySection:at},data(){return{organisation:{...$i,readable:z[$i.name]}}}};var Ms=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{autocomplete:"organization",placeholder:e.t("settings","Your organisation")}},"AccountPropertySection",e.organisation,!1,!0))},As=[],_s=M(Is,Ms,As,!1,null,null);const Ds=_s.exports,{role:hi}=A("settings","personalInfoParameters",{}),Ls={name:"RoleSection",components:{AccountPropertySection:at},data(){return{role:{...hi,readable:z[hi.name]}}}};var Ts=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{autocomplete:"organization-title",placeholder:e.t("settings","Your role")}},"AccountPropertySection",e.role,!1,!0))},ks=[],Rs=M(Ls,Ts,ks,!1,null,null);const Bs=Rs.exports,{headline:pi}=A("settings","personalInfoParameters",{}),Fs={name:"HeadlineSection",components:{AccountPropertySection:at},data(){return{headline:{...pi,readable:z[pi.name]}}}};var js=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{placeholder:e.t("settings","Your headline")}},"AccountPropertySection",e.headline,!1,!0))},Us=[],Hs=M(Fs,js,Us,!1,null,null);const Ws=Hs.exports,{biography:fi}=A("settings","personalInfoParameters",{}),Gs={name:"BiographySection",components:{AccountPropertySection:at},data(){return{biography:{...fi,readable:z[fi.name]}}}};var Vs=function(){var e=this,a=e._self._c;return a("AccountPropertySection",e._b({attrs:{placeholder:e.t("settings","Your biography"),"multi-line":!0}},"AccountPropertySection",e.biography,!1,!0))},Ys=[],zs=M(Gs,Vs,Ys,!1,null,null);const Xs=zs.exports,Tt=Object.freeze({SHOW:"show",SHOW_USERS_ONLY:"show_users_only",HIDE:"hide"}),mi=Object.freeze({[Tt.SHOW]:{name:Tt.SHOW,label:t("settings","Show to everyone")},[Tt.SHOW_USERS_ONLY]:{name:Tt.SHOW_USERS_ONLY,label:t("settings","Show to logged in accounts only")},[Tt.HIDE]:{name:Tt.HIDE,label:t("settings","Hide")}}),{profileEnabled:qs}=A("settings","personalInfoParameters",!1),Ks={name:"VisibilityDropdown",components:{NcSelect:je},props:{paramId:{type:String,required:!0},displayId:{type:String,required:!0},visibility:{type:String,required:!0}},data(){return{initialVisibility:this.visibility,profileEnabled:qs}},computed:{disabled(){return!this.profileEnabled},inputId(){return"profile-visibility-".concat(this.paramId)},visibilityObject(){return mi[this.visibility]},visibilityOptions(){return Object.values(mi)}},mounted(){Yt("settings:profile-enabled:updated",this.handleProfileEnabledUpdate)},beforeDestroy(){zt("settings:profile-enabled:updated",this.handleProfileEnabledUpdate)},methods:{async onVisibilityChange(e){if(e!==null){const{name:a}=e;this.$emit("update:visibility",a),a!==""&&await this.updateVisibility(a)}},async updateVisibility(e){var a,i;try{const o=await zn(this.paramId,e);this.handleResponse({visibility:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update visibility of {displayId}",{displayId:this.displayId}),error:o})}},handleResponse({visibility:e,status:a,errorMessage:i,error:o}){a==="ok"?this.initialVisibility=e:lt(o,i)},handleProfileEnabledUpdate(e){this.profileEnabled=e}}};var Zs=function(){var e=this,a=e._self._c;return a("div",{staticClass:"visibility-container",class:{disabled:e.disabled}},[a("label",{attrs:{for:e.inputId}},[e._v(" "+e._s(e.displayId)+" ")]),a("NcSelect",{staticClass:"visibility-container__select",attrs:{"input-id":e.inputId,clearable:!1,options:e.visibilityOptions,value:e.visibilityObject,"label-outside":""},on:{"option:selected":e.onVisibilityChange}})],1)},Js=[],Qs=M(Ks,Zs,Js,!1,null,"ac412c2a");const t1=Qs.exports,{profileConfig:e1}=A("settings","profileParameters",{}),{profileEnabled:a1}=A("settings","personalInfoParameters",!1),i1=(e,a)=>e.appId===a.appId||e.appId!=="core"&&a.appId!=="core"?e.displayId.localeCompare(a.displayId):e.appId==="core"?1:-1,n1={name:"ProfileVisibilitySection",components:{HeaderBar:ut,VisibilityDropdown:t1},data(){return{heading:He.PROFILE_VISIBILITY,profileEnabled:a1,visibilityParams:Object.entries(e1).map(([e,{appId:a,displayId:i,visibility:o}])=>({id:e,appId:a,displayId:i,visibility:o})).sort(i1),marginLeft:window.matchMedia("(min-width: 1600px)").matches?window.getComputedStyle(document.getElementById("vue-avatar-section")).getPropertyValue("width").trim():"0px"}},computed:{disabled(){return!this.profileEnabled},rows(){return Math.ceil(this.visibilityParams.length/2)}},mounted(){Yt("settings:profile-enabled:updated",this.handleProfileEnabledUpdate),window.onresize=()=>{this.marginLeft=window.matchMedia("(min-width: 1600px)").matches?window.getComputedStyle(document.getElementById("vue-avatar-section")).getPropertyValue("width").trim():"0px"}},beforeDestroy(){zt("settings:profile-enabled:updated",this.handleProfileEnabledUpdate)},methods:{handleProfileEnabledUpdate(e){this.profileEnabled=e}}};var d1=function(){var e=this,a=e._self._c;return a("section",{style:{marginLeft:e.marginLeft},attrs:{id:"profile-visibility"}},[a("HeaderBar",{attrs:{"is-heading":!0,readable:e.heading}}),a("em",{class:{disabled:e.disabled}},[e._v(" "+e._s(e.t("settings",'The more restrictive setting of either visibility or scope is respected on your Profile. For example, if visibility is set to "Show to everyone" and scope is set to "Private", "Private" is respected.'))+" ")]),a("div",{staticClass:"visibility-dropdowns",style:{gridTemplateRows:"repeat(".concat(e.rows,", 44px)")}},e._l(e.visibilityParams,function(i){return a("VisibilityDropdown",{key:i.id,attrs:{"param-id":i.id,"display-id":i.displayId,visibility:i.visibility},on:{"update:visibility":function(o){return e.$set(i,"visibility",o)}}})}),1)],1)},r1=[],o1=M(n1,d1,r1,!1,null,"642a558e");const s1=o1.exports,{birthdate:Gt}=A("settings","personalInfoParameters",{}),l1={name:"BirthdaySection",components:{AlertCircle:jn,AccountPropertySection:at,NcDateTimePickerNative:Pn,HeaderBar:ut},data(){let e=null;return Gt.value&&(e=new Date(Gt.value)),{birthdate:{...Gt,readable:z[Gt.name]},initialValue:e}},computed:{inputId(){return"account-property-".concat(Gt.name)},value:{get(){return new Date(this.birthdate.value)},set(e){const a=e.getDate().toString().padStart(2,"0"),i=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getFullYear();this.birthdate.value="".concat(o,"-").concat(i,"-").concat(a)}}},methods:{onInput(e){this.value=e,this.debouncePropertyChange(this.value)},debouncePropertyChange:We(async function(e){await this.updateProperty(e)},500),async updateProperty(e){var a,i;try{const o=await Kt(this.birthdate.name,e);this.handleResponse({value:e,status:(i=(a=o.ocs)==null?void 0:a.meta)==null?void 0:i.status})}catch(o){this.handleResponse({errorMessage:t("settings","Unable to update date of birth"),error:o})}},handleResponse({value:e,status:a,errorMessage:i,error:o}){a==="ok"?this.initialValue=e:(this.$emit("update:value",this.initialValue),lt(o,i))}}};var u1=function(){var e=this,a=e._self._c;return a("section",[a("HeaderBar",{attrs:{scope:e.birthdate.scope,"input-id":e.inputId,readable:e.birthdate.readable}}),[a("NcDateTimePickerNative",{attrs:{id:e.inputId,type:"date",label:"",value:e.value},on:{input:e.onInput}})],a("p",{staticClass:"property__helper-text-message"},[e._v(" "+e._s(e.t("settings","Enter your date of birth"))+" ")])],2)},c1=[],$1=M(l1,u1,c1,!1,null,"00420008");const h1=$1.exports,p1=A("settings","profileEnabledGlobally",!0);B.mixin({methods:{t:Ae}});const f1=B.extend(vd),m1=B.extend(Nd),g1=B.extend(Bd),y1=B.extend(er),v1=B.extend($0),b1=B.extend(g0),w1=B.extend(C0),C1=B.extend(O0),x1=B.extend(_0),E1=B.extend(V0),P1=B.extend(ns),S1=B.extend(h1);if(new f1().$mount("#vue-avatar-section"),new m1().$mount("#vue-details-section"),new g1().$mount("#vue-displayname-section"),new y1().$mount("#vue-email-section"),new v1().$mount("#vue-phone-section"),new b1().$mount("#vue-location-section"),new w1().$mount("#vue-website-section"),new C1().$mount("#vue-twitter-section"),new x1().$mount("#vue-fediverse-section"),new E1().$mount("#vue-language-section"),new P1().$mount("#vue-locale-section"),new S1().$mount("#vue-birthday-section"),p1){const e=B.extend(Ns),a=B.extend(Ds),i=B.extend(Bs),o=B.extend(Ws),c=B.extend(Xs),y=B.extend(s1);new e().$mount("#vue-profile-section"),new a().$mount("#vue-organisation-section"),new i().$mount("#vue-role-section"),new o().$mount("#vue-headline-section"),new c().$mount("#vue-biography-section"),new y().$mount("#vue-profile-visibility-section")}
|