@crisellevaldez/speculo-ui 0.7.45 → 0.7.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/speculo-ui.cjs +45 -45
- package/dist/speculo-ui.cjs.map +1 -1
- package/dist/speculo-ui.mjs +3722 -3571
- package/dist/speculo-ui.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/speculo-ui.cjs
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),c=require("react"),ve=require("react-dom");function mn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=mn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Vo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=mn(e))&&(n&&(n+=" "),n+=t);return n}const Vt="-",Ko=e=>{const t=zo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const d=i.split(Vt);return d[0]===""&&d.length!==1&&d.shift(),hn(d,t)||Yo(i)},getConflictingClassGroupIds:(i,d)=>{const l=r[i]||[];return d&&n[i]?[...l,...n[i]]:l}}},hn=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?hn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Vt);return(i=t.validators.find(({validator:d})=>d(a)))==null?void 0:i.classGroupId},rr=/^\[(.+)\]$/,Yo=e=>{if(rr.test(e)){const t=rr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zo=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Xo(Object.entries(e.classGroups),r).forEach(([a,i])=>{wt(i,n,a,t)}),n},wt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:nr(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(qo(o)){wt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{wt(i,nr(t,a),r,n)})})},nr=(e,t)=>{let r=e;return t.split(Vt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},qo=e=>e.isThemeGetter,Xo=(e,t)=>t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,d])=>[t+i,d])):a);return[r,o]}):e,Zo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},gn="!",Jo=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],a=t.length,i=d=>{const l=[];let u=0,f=0,m;for(let y=0;y<d.length;y++){let x=d[y];if(u===0){if(x===o&&(n||d.slice(y,y+a)===t)){l.push(d.slice(f,y)),f=y+a;continue}if(x==="/"){m=y;continue}}x==="["?u++:x==="]"&&u--}const $=l.length===0?d:d.substring(f),h=$.startsWith(gn),v=h?$.substring(1):$,P=m&&m>f?m-f:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:P}};return r?d=>r({className:d,parseClassName:i}):i},Qo=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},ea=e=>({cache:Zo(e.cacheSize),parseClassName:Jo(e),...Ko(e)}),ta=/\s+/,ra=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(ta);let d="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:f,hasImportantModifier:m,baseClassName:$,maybePostfixModifierPosition:h}=r(u);let v=!!h,P=n(v?$.substring(0,h):$);if(!P){if(!v){d=u+(d.length>0?" "+d:d);continue}if(P=n($),!P){d=u+(d.length>0?" "+d:d);continue}v=!1}const y=Qo(f).join(":"),x=m?y+gn:y,p=x+P;if(a.includes(p))continue;a.push(p);const j=o(P,v);for(let G=0;G<j.length;++G){const w=j[G];a.push(x+w)}d=u+(d.length>0?" "+d:d)}return d};function na(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=pn(t))&&(n&&(n+=" "),n+=r);return n}const pn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=pn(e[n]))&&(r&&(r+=" "),r+=t);return r};function oa(e,...t){let r,n,o,a=i;function i(l){const u=t.reduce((f,m)=>m(f),e());return r=ea(u),n=r.cache.get,o=r.cache.set,a=d,d(l)}function d(l){const u=n(l);if(u)return u;const f=ra(l,r);return o(l,f),f}return function(){return a(na.apply(null,arguments))}}const ee=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:([a-z-]+):)?(.+)\]$/i,aa=/^\d+\/\d+$/,ia=new Set(["px","full","screen"]),da=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sa=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,la=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ua=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ca=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>Ce(e)||ia.has(e)||aa.test(e),pe=e=>Oe(e,"length",ba),Ce=e=>!!e&&!Number.isNaN(Number(e)),ct=e=>Oe(e,"number",Ce),je=e=>!!e&&Number.isInteger(Number(e)),fa=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),q=e=>$n.test(e),$e=e=>da.test(e),ma=new Set(["length","size","percentage"]),ha=e=>Oe(e,ma,yn),ga=e=>Oe(e,"position",yn),pa=new Set(["image","url"]),$a=e=>Oe(e,pa,xa),ya=e=>Oe(e,"",va),Ie=()=>!0,Oe=(e,t,r)=>{const n=$n.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},ba=e=>sa.test(e)&&!la.test(e),yn=()=>!1,va=e=>ua.test(e),xa=e=>ca.test(e),wa=()=>{const e=ee("colors"),t=ee("spacing"),r=ee("blur"),n=ee("brightness"),o=ee("borderColor"),a=ee("borderRadius"),i=ee("borderSpacing"),d=ee("borderWidth"),l=ee("contrast"),u=ee("grayscale"),f=ee("hueRotate"),m=ee("invert"),$=ee("gap"),h=ee("gradientColorStops"),v=ee("gradientColorStopPositions"),P=ee("inset"),y=ee("margin"),x=ee("opacity"),p=ee("padding"),j=ee("saturate"),G=ee("scale"),w=ee("sepia"),U=ee("skew"),k=ee("space"),L=ee("translate"),T=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",q,t],D=()=>[q,t],O=()=>["",ce,pe],B=()=>["auto",Ce,q],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",q],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Ce,q];return{cacheSize:500,separator:":",theme:{colors:[Ie],spacing:[ce,pe],blur:["none","",$e,q],brightness:M(),borderColor:[e],borderRadius:["none","","full",$e,q],borderSpacing:D(),borderWidth:O(),contrast:M(),grayscale:te(),hueRotate:M(),invert:te(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[fa,pe],inset:F(),margin:F(),opacity:M(),padding:D(),saturate:M(),scale:M(),sepia:te(),skew:M(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[$e]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),q]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",je,q]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",je,q]}],"grid-cols":[{"grid-cols":[Ie]}],"col-start-end":[{col:["auto",{span:["full",je,q]},q]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[Ie]}],"row-start-end":[{row:["auto",{span:[je,q]},q]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[$e]},$e]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$e,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ct]}],"font-family":[{font:[Ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",Ce,ct]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ce,pe]}],"underline-offset":[{"underline-offset":["auto",ce,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),ga]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ha]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$a]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[ce,q]}],"outline-w":[{outline:[ce,pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ce,pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$e,ya]}],"shadow-color":[{shadow:[Ie]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$e,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[j]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[je,q]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ce,pe,ct]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ca=oa(wa);function C(...e){return Ca(Vo(e))}const bn=c.forwardRef(({title:e,children:t,disabled:r,isOpen:n,onToggle:o,itemId:a},i)=>{const d=c.useRef(null),[l,u]=c.useState(void 0);return c.useEffect(()=>{if(d.current){const f=new ResizeObserver(()=>{var m;u((m=d.current)==null?void 0:m.scrollHeight)});return f.observe(d.current),()=>f.disconnect()}},[]),s.jsxs("div",{ref:i,className:C("border-b border-border",r&&"opacity-50 cursor-not-allowed"),children:[s.jsxs("button",{type:"button",onClick:o,disabled:r,className:C("flex w-full items-center justify-between py-4 text-sm font-medium text-foreground transition-all hover:underline",r&&"cursor-not-allowed"),"aria-expanded":n,"aria-controls":`accordion-content-${a}`,id:`accordion-trigger-${a}`,children:[s.jsx("span",{children:e}),s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:C("h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200",n&&"rotate-180"),children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),s.jsx("div",{ref:d,id:`accordion-content-${a}`,role:"region","aria-labelledby":`accordion-trigger-${a}`,className:C("overflow-hidden transition-all duration-200 ease-in-out",!n&&"h-0"),style:{height:n?l:0},children:s.jsx("div",{className:"pb-4 text-sm text-muted-foreground",children:t})})]})});bn.displayName="AccordionItem";const vn=c.forwardRef(({className:e,items:t,type:r="single",defaultValue:n,value:o,onChange:a,...i},d)=>{const[l,u]=c.useState(()=>o!==void 0?Array.isArray(o)?o:[o]:n!==void 0?Array.isArray(n)?n:[n]:[]),f=o!==void 0,m=f?Array.isArray(o)?o:[o]:l,$=c.useCallback(h=>{const v=m.includes(h)?m.filter(P=>P!==h):r==="single"?[h]:[...m,h];f||u(v),a==null||a(r==="single"?v[0]||"":v)},[m,f,a,r]);return s.jsx("div",{ref:d,className:C("w-full",e),...i,children:t.map((h,v)=>s.jsx(bn,{...h,itemId:`item-${v}`,isOpen:m.includes(`item-${v}`),onToggle:()=>$(`item-${v}`)},v))})});vn.displayName="Accordion";const xn=c.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>{const a=c.Children.toArray(r),i=a[0],d=c.isValidElement(i)&&i.type!==Kt&&i.type!==Yt,l=d?i:null,u=d?a.slice(1):a;return s.jsxs("div",{ref:o,role:"alert",className:C("flex w-full items-start gap-2 rounded-lg border border-foreground/30 px-3 py-2.5 text-xs sm:gap-3 sm:px-4 sm:py-3 sm:text-sm 3xl:px-5 3xl:py-4 3xl:text-base",t==="default"&&"bg-background text-foreground",t==="destructive"&&"border-destructive/50 bg-destructive/10 text-destructive",t==="warning"&&"border-warning/50 bg-warning/10 text-warning-accent",t==="success"&&"border-success/50 bg-success/10 text-success-accent",t==="info"&&"border-info/50 bg-info/10 text-info-accent",e),...n,children:[l&&s.jsx("span",{className:C("mt-0.5 shrink-0",t==="default"&&"text-foreground",t==="destructive"&&"text-destructive",t==="warning"&&"text-warning",t==="success"&&"text-success",t==="info"&&"text-info"),children:l}),s.jsx("div",{className:"flex-1",children:u})]})});xn.displayName="Alert";const Kt=c.forwardRef(({className:e,...t},r)=>s.jsx("h5",{ref:r,className:C("mb-1 font-medium leading-none tracking-tight",e),...t}));Kt.displayName="AlertTitle";const Yt=c.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:C("text-xs sm:text-sm [&_p]:leading-relaxed",e),...t}));Yt.displayName="AlertDescription";const Na={default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",outline:"border border-foreground/30 bg-transparent text-foreground",destructive:"bg-destructive/10 text-destructive border border-destructive/20",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",info:"bg-accent text-accent-foreground"},Pa={sm:"text-[11px] px-1.5 py-0.5",md:"text-xs px-2 py-0.5",lg:"text-sm px-2.5 py-0.5"},wn=c.forwardRef(({className:e,variant:t="default",size:r="sm",...n},o)=>s.jsx("div",{ref:o,className:C("inline-flex items-center rounded-full font-medium transition-opacity hover:opacity-80 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",Na[t],Pa[r],e),...n}));wn.displayName="Badge";/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),c=require("react"),Te=require("react-dom");function kn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=kn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ca(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=kn(e))&&(n&&(n+=" "),n+=t);return n}const nr="-",fa=e=>{const t=ha(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(nr);return s[0]===""&&s.length!==1&&s.shift(),Rn(s,t)||ma(i)},getConflictingClassGroupIds:(i,s)=>{const l=r[i]||[];return s&&n[i]?[...l,...n[i]]:l}}},Rn=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Rn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(nr);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},xr=/^\[(.+)\]$/,ma=e=>{if(xr.test(e)){const t=xr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ha=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return pa(Object.entries(e.classGroups),r).forEach(([a,i])=>{Rt(i,n,a,t)}),n},Rt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:wr(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(ga(o)){Rt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Rt(i,wr(t,a),r,n)})})},wr=(e,t)=>{let r=e;return t.split(nr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},ga=e=>e.isThemeGetter,pa=(e,t)=>t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[r,o]}):e,$a=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},Fn="!",ya=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],a=t.length,i=s=>{const l=[];let u=0,f=0,m;for(let $=0;$<s.length;$++){let b=s[$];if(u===0){if(b===o&&(n||s.slice($,$+a)===t)){l.push(s.slice(f,$)),f=$+a;continue}if(b==="/"){m=$;continue}}b==="["?u++:b==="]"&&u--}const p=l.length===0?s:s.substring(f),h=p.startsWith(Fn),y=h?p.substring(1):p,C=m&&m>f?m-f:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:C}};return r?s=>r({className:s,parseClassName:i}):i},ba=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},va=e=>({cache:$a(e.cacheSize),parseClassName:ya(e),...fa(e)}),xa=/\s+/,wa=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(xa);let s="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:f,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}=r(u);let y=!!h,C=n(y?p.substring(0,h):p);if(!C){if(!y){s=u+(s.length>0?" "+s:s);continue}if(C=n(p),!C){s=u+(s.length>0?" "+s:s);continue}y=!1}const $=ba(f).join(":"),b=m?$+Fn:$,g=b+C;if(a.includes(g))continue;a.push(g);const O=o(C,y);for(let U=0;U<O.length;++U){const x=O[U];a.push(b+x)}s=u+(s.length>0?" "+s:s)}return s};function Ca(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Mn(t))&&(n&&(n+=" "),n+=r);return n}const Mn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Mn(e[n]))&&(r&&(r+=" "),r+=t);return r};function Na(e,...t){let r,n,o,a=i;function i(l){const u=t.reduce((f,m)=>m(f),e());return r=va(u),n=r.cache.get,o=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const f=wa(l,r);return o(l,f),f}return function(){return a(Ca.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Dn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pa=/^\d+\/\d+$/,Sa=new Set(["px","full","screen"]),Oa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ea=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ja=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ta=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ia=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>ke(e)||Sa.has(e)||Pa.test(e),Oe=e=>De(e,"length",La),ke=e=>!!e&&!Number.isNaN(Number(e)),Ct=e=>De(e,"number",ke),Le=e=>!!e&&Number.isInteger(Number(e)),Aa=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Q=e=>Dn.test(e),Ee=e=>Oa.test(e),ka=new Set(["length","size","percentage"]),Ra=e=>De(e,ka,_n),Fa=e=>De(e,"position",_n),Ma=new Set(["image","url"]),Da=e=>De(e,Ma,Ua),_a=e=>De(e,"",Ba),Be=()=>!0,De=(e,t,r)=>{const n=Dn.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},La=e=>Ea.test(e)&&!ja.test(e),_n=()=>!1,Ba=e=>Ta.test(e),Ua=e=>Ia.test(e),Ga=()=>{const e=ie("colors"),t=ie("spacing"),r=ie("blur"),n=ie("brightness"),o=ie("borderColor"),a=ie("borderRadius"),i=ie("borderSpacing"),s=ie("borderWidth"),l=ie("contrast"),u=ie("grayscale"),f=ie("hueRotate"),m=ie("invert"),p=ie("gap"),h=ie("gradientColorStops"),y=ie("gradientColorStopPositions"),C=ie("inset"),$=ie("margin"),b=ie("opacity"),g=ie("padding"),O=ie("saturate"),U=ie("scale"),x=ie("sepia"),H=ie("skew"),T=ie("space"),B=ie("translate"),I=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",Q,t],F=()=>[Q,t],P=()=>["",xe,Oe],_=()=>["auto",ke,Q],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",Q],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ke,Q];return{cacheSize:500,separator:":",theme:{colors:[Be],spacing:[xe,Oe],blur:["none","",Ee,Q],brightness:R(),borderColor:[e],borderRadius:["none","","full",Ee,Q],borderSpacing:F(),borderWidth:P(),contrast:R(),grayscale:de(),hueRotate:R(),invert:de(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[Aa,Oe],inset:A(),margin:A(),opacity:R(),padding:F(),saturate:R(),scale:R(),sepia:de(),skew:R(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[Ee]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),Q]}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Le,Q]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Le,Q]}],"grid-cols":[{"grid-cols":[Be]}],"col-start-end":[{col:["auto",{span:["full",Le,Q]},Q]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Be]}],"row-start-end":[{row:["auto",{span:[Le,Q]},Q]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[Ee]},Ee]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ee,Oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ct]}],"font-family":[{font:[Be]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",ke,Ct]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xe,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xe,Oe]}],"underline-offset":[{"underline-offset":["auto",xe,Q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Fa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ra]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Da]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[xe,Q]}],"outline-w":[{outline:[xe,Oe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[xe,Oe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ee,_a]}],"shadow-color":[{shadow:[Be]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ee,Q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[O]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Q]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-x":[{"scale-x":[U]}],"scale-y":[{"scale-y":[U]}],rotate:[{rotate:[Le,Q]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[xe,Oe,Ct]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Wa=Na(Ga);function v(...e){return Wa(ca(e))}const Ln=c.forwardRef(({title:e,children:t,disabled:r,isOpen:n,onToggle:o,itemId:a},i)=>{const s=c.useRef(null),[l,u]=c.useState(void 0);return c.useEffect(()=>{if(s.current){const f=new ResizeObserver(()=>{var m;u((m=s.current)==null?void 0:m.scrollHeight)});return f.observe(s.current),()=>f.disconnect()}},[]),d.jsxs("div",{ref:i,className:v("border-b border-border",r&&"opacity-50 cursor-not-allowed"),children:[d.jsxs("button",{type:"button",onClick:o,disabled:r,className:v("flex w-full items-center justify-between py-4 text-sm font-medium text-foreground transition-all hover:underline",r&&"cursor-not-allowed"),"aria-expanded":n,"aria-controls":`accordion-content-${a}`,id:`accordion-trigger-${a}`,children:[d.jsx("span",{children:e}),d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:v("h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200",n&&"rotate-180"),children:d.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),d.jsx("div",{ref:s,id:`accordion-content-${a}`,role:"region","aria-labelledby":`accordion-trigger-${a}`,className:v("overflow-hidden transition-all duration-200 ease-in-out",!n&&"h-0"),style:{height:n?l:0},children:d.jsx("div",{className:"pb-4 text-sm text-muted-foreground",children:t})})]})});Ln.displayName="AccordionItem";const Bn=c.forwardRef(({className:e,items:t,type:r="single",defaultValue:n,value:o,onChange:a,...i},s)=>{const[l,u]=c.useState(()=>o!==void 0?Array.isArray(o)?o:[o]:n!==void 0?Array.isArray(n)?n:[n]:[]),f=o!==void 0,m=f?Array.isArray(o)?o:[o]:l,p=c.useCallback(h=>{const y=m.includes(h)?m.filter(C=>C!==h):r==="single"?[h]:[...m,h];f||u(y),a==null||a(r==="single"?y[0]||"":y)},[m,f,a,r]);return d.jsx("div",{ref:s,className:v("w-full",e),...i,children:t.map((h,y)=>d.jsx(Ln,{...h,itemId:`item-${y}`,isOpen:m.includes(`item-${y}`),onToggle:()=>p(`item-${y}`)},y))})});Bn.displayName="Accordion";const Un=c.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>{const a=c.Children.toArray(r),i=a[0],s=c.isValidElement(i)&&i.type!==or&&i.type!==ar,l=s?i:null,u=s?a.slice(1):a;return d.jsxs("div",{ref:o,role:"alert",className:v("flex w-full items-start gap-2 rounded-lg border border-foreground/30 px-3 py-2.5 text-xs sm:gap-3 sm:px-4 sm:py-3 sm:text-sm 3xl:px-5 3xl:py-4 3xl:text-base",t==="default"&&"bg-background text-foreground",t==="destructive"&&"border-destructive/50 bg-destructive/10 text-destructive",t==="warning"&&"border-warning/50 bg-warning/10 text-warning-accent",t==="success"&&"border-success/50 bg-success/10 text-success-accent",t==="info"&&"border-info/50 bg-info/10 text-info-accent",e),...n,children:[l&&d.jsx("span",{className:v("mt-0.5 shrink-0",t==="default"&&"text-foreground",t==="destructive"&&"text-destructive",t==="warning"&&"text-warning",t==="success"&&"text-success",t==="info"&&"text-info"),children:l}),d.jsx("div",{className:"flex-1",children:u})]})});Un.displayName="Alert";const or=c.forwardRef(({className:e,...t},r)=>d.jsx("h5",{ref:r,className:v("mb-1 font-medium leading-none tracking-tight",e),...t}));or.displayName="AlertTitle";const ar=c.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:v("text-xs sm:text-sm [&_p]:leading-relaxed",e),...t}));ar.displayName="AlertDescription";const Ha={default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",outline:"border border-foreground/30 bg-transparent text-foreground",destructive:"bg-destructive/10 text-destructive border border-destructive/20",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",info:"bg-accent text-accent-foreground"},Va={sm:"text-[11px] px-1.5 py-0.5",md:"text-xs px-2 py-0.5",lg:"text-sm px-2.5 py-0.5"},Gn=c.forwardRef(({className:e,variant:t="default",size:r="sm",...n},o)=>d.jsx("div",{ref:o,className:v("inline-flex items-center rounded-full font-medium transition-opacity hover:opacity-80 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",Ha[t],Va[r],e),...n}));Gn.displayName="Badge";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const Ya=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wn=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
7
7
|
* @license lucide-react v0.468.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
11
|
+
*/var za={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
12
|
* @license lucide-react v0.468.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const Ka=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},l)=>c.createElement("svg",{ref:l,...za,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Wn("lucide",o),...s},[...i.map(([u,f])=>c.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
|
|
17
17
|
* @license lucide-react v0.468.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const ce=(e,t)=>{const r=c.forwardRef(({className:n,...o},a)=>c.createElement(Ka,{ref:a,iconNode:t,className:Wn(`lucide-${Ya(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
|
22
22
|
* @license lucide-react v0.468.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const qa=ce("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
27
27
|
* @license lucide-react v0.468.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const Xa=ce("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
32
32
|
* @license lucide-react v0.468.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const st=ce("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|
37
37
|
* @license lucide-react v0.468.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const Hn=ce("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
42
42
|
* @license lucide-react v0.468.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const Za=ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
47
47
|
* @license lucide-react v0.468.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const
|
|
51
|
+
*/const Ja=ce("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
52
52
|
* @license lucide-react v0.468.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const
|
|
56
|
+
*/const Qa=ce("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
57
57
|
* @license lucide-react v0.468.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const ei=ce("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
62
62
|
* @license lucide-react v0.468.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const
|
|
66
|
+
*/const Vn=ce("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
67
67
|
* @license lucide-react v0.468.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const ti=ce("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
72
72
|
* @license lucide-react v0.468.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const
|
|
76
|
+
*/const ri=ce("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
|
|
77
77
|
* @license lucide-react v0.468.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const ni=ce("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
82
82
|
* @license lucide-react v0.468.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
86
|
+
*/const be=ce("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
87
87
|
* @license lucide-react v0.468.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
91
|
+
*/const oi=ce("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
92
92
|
* @license lucide-react v0.468.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const ai=ce("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
97
97
|
* @license lucide-react v0.468.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const ii=ce("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
102
102
|
* @license lucide-react v0.468.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const Be=oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ga={primary:"bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:ring-primary",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 focus-visible:ring-secondary",outline:"border border-foreground/30 bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring",ghost:"bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring",destructive:"bg-destructive/10 text-destructive border border-destructive/20 hover:bg-destructive/20 focus-visible:ring-destructive",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success",link:"text-primary underline-offset-4 hover:underline focus-visible:ring-primary bg-transparent"},Ua={xs:"h-6 px-1.5 text-[11px] rounded",sm:"h-7 px-2.5 text-xs rounded-md",md:"h-8 px-3 text-xs rounded-md",lg:"h-9 px-4 text-sm rounded-md",icon:"h-8 w-8 rounded-md"},he=c.forwardRef(({className:e,variant:t="primary",size:r="md",isLoading:n,children:o,disabled:a,...i},d)=>s.jsx("button",{className:C("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 relative",Ga[t],Ua[r],e),ref:d,disabled:n||a,...i,children:n?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"opacity-0",children:o}),s.jsx("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:s.jsx(ue,{className:"h-4 w-4 animate-spin"})})]}):o}));he.displayName="Button";const or=7,Wa=6,Ha=(e,t)=>new Date(e,t+1,0).getDate(),Va=(e,t)=>new Date(e,t,1).getDay(),Ye=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),ar=(e,{minDate:t,maxDate:r,disabledDates:n})=>{if(t){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0));if(o<a)return!0}if(r){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999));if(o>a)return!0}return!!(n!=null&&n.some(o=>Ye(e,o)))},Fe=c.forwardRef(({className:e,value:t=new Date,onChange:r,minDate:n,maxDate:o,disabled:a=!1,locale:i="en-US",disabledDates:d=[],highlightedDates:l=[],onMouseEnter:u,onMouseLeave:f,...m},$)=>{const[h,v]=c.useState(t),[P,y]=c.useState(null),x=new Intl.DateTimeFormat(i,{month:"long",year:"numeric"}).format(h),p=c.useMemo(()=>{const k=new Intl.DateTimeFormat(i,{weekday:"short"});return Array.from({length:or},(T,N)=>{const F=new Date(2022,0,2+N);return k.format(F)})},[i]),j=c.useCallback(()=>{const k=h.getFullYear(),L=h.getMonth(),T=Ha(k,L),N=Va(k,L),F=Array(N).fill(null);for(let D=1;D<=T;D++)F.push(new Date(k,L,D));for(;F.length<or*Wa;)F.push(null);return F},[h]),G=k=>{!a&&!ar(k,{minDate:n,maxDate:o,disabledDates:d})&&(r==null||r(k))},w=(k,L)=>{if(!a)switch(k.key){case"ArrowLeft":k.preventDefault(),y(new Date(L.getFullYear(),L.getMonth(),L.getDate()-1));break;case"ArrowRight":k.preventDefault(),y(new Date(L.getFullYear(),L.getMonth(),L.getDate()+1));break;case"ArrowUp":k.preventDefault(),y(new Date(L.getFullYear(),L.getMonth(),L.getDate()-7));break;case"ArrowDown":k.preventDefault(),y(new Date(L.getFullYear(),L.getMonth(),L.getDate()+7));break;case"Enter":case" ":k.preventDefault(),G(L);break}},U=k=>{v(L=>new Date(L.getFullYear(),L.getMonth()+k,1))};return c.useEffect(()=>{if(P){const k=P.getMonth(),L=h.getMonth();k!==L&&v(P)}},[P,h]),s.jsxs("div",{ref:$,className:C("w-[230px] p-4 lg:w-[300px]",a&&"cursor-not-allowed opacity-50",e),...m,children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[s.jsx("button",{type:"button",onClick:()=>U(-1),disabled:a,className:C("rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":"Previous month",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:s.jsx("path",{d:"m15 18-6-6 6-6"})})}),s.jsx("div",{className:"font-medium",children:x}),s.jsx("button",{type:"button",onClick:()=>U(1),disabled:a,className:C("rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":"Next month",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:s.jsx("path",{d:"m9 18 6-6-6-6"})})})]}),s.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1 text-center text-sm",role:"row",children:p.map((k,L)=>s.jsx("div",{className:"text-muted-foreground","aria-label":k,children:k.charAt(0)},L))}),s.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid",children:j().map((k,L)=>{if(!k)return s.jsx("div",{role:"gridcell"},L);const T=t&&Ye(k,t),N=l.some(O=>Ye(k,O)),F=ar(k,{minDate:n,maxDate:o,disabledDates:d}),D=P&&Ye(k,P);return s.jsx("button",{type:"button",onClick:()=>G(k),onKeyDown:O=>w(O,k),onFocus:()=>y(k),onMouseEnter:()=>u==null?void 0:u(k),onMouseLeave:()=>f==null?void 0:f(k),disabled:a||F,className:C("aspect-square rounded-md p-1 text-xs","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","hover:bg-accent hover:text-accent-foreground","disabled:cursor-not-allowed disabled:opacity-50",T&&"bg-primary text-primary-foreground hover:bg-primary/90",N&&!T&&"bg-accent text-accent-foreground",D&&!T&&"ring-1 ring-ring"),role:"gridcell","aria-selected":T,tabIndex:D?0:-1,children:k.getDate()},L)})})]})});Fe.displayName="Calendar";const Ze=c.forwardRef(({className:e,label:t,error:r,indeterminate:n,disabled:o,...a},i)=>{const d=c.useRef(null),[l,u]=c.useState(a.defaultChecked??!1),f=a.checked!==void 0,m=f?a.checked:l;c.useEffect(()=>{d.current&&(d.current.indeterminate=n||!1)},[n]),c.useEffect(()=>{i&&(typeof i=="function"?i(d.current):i.current=d.current)},[i]);const $=h=>{var v;f||u(h.target.checked),(v=a.onChange)==null||v.call(a,h)};return s.jsxs("div",{children:[s.jsxs("label",{className:C("relative flex cursor-pointer items-center",o&&"cursor-not-allowed"),children:[s.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[s.jsx("input",{type:"checkbox",ref:d,disabled:o,checked:m,onChange:$,className:"peer absolute h-4 w-4 cursor-pointer opacity-0","aria-invalid":r?"true":"false",...a}),s.jsx("div",{className:C("relative h-4 w-4 shrink-0 rounded-sm border border-foreground/30 shadow-sm transition-colors","peer-focus-visible:outline-none peer-focus-visible:ring-1 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2",(m||n)&&"border-foreground/70 bg-foreground/70 text-background",o&&"cursor-not-allowed opacity-50",r&&"border-destructive peer-focus-visible:ring-destructive",r&&(m||n)&&"border-destructive bg-destructive",e),children:(m||n)&&s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-current",children:n?s.jsx(Da,{className:"h-3 w-3",strokeWidth:3}):s.jsx(Nn,{className:"h-3 w-3",strokeWidth:3})})})]}),t&&s.jsx("span",{className:C("ml-2 text-sm font-medium text-foreground/85",o&&"cursor-not-allowed opacity-50",r&&"text-destructive"),children:t})]}),r&&s.jsx("p",{className:"ml-6 mt-0.5 text-sm text-destructive",role:"alert",children:r})]})});Ze.displayName="Checkbox";const Sn=c.forwardRef(({options:e,value:t,onChange:r,placeholder:n="Select...",disabled:o=!1,loading:a=!1,multiple:i=!1,maxItems:d,className:l,onInputChange:u,renderOption:f,...m},$)=>{const[h,v]=c.useState(!1),[P,y]=c.useState(""),[x,p]=c.useState(-1),j=c.useRef(null),G=c.useRef(null),w=c.useMemo(()=>t?Array.isArray(t)?t:[t]:[],[t]),U=c.useMemo(()=>e.filter(N=>N.label.toLowerCase().includes(P.toLowerCase())),[e,P]),k=N=>{const F=N.target.value;y(F),v(!0),u==null||u(F),p(0)},L=N=>{if(!N.disabled)if(i){const F=w.includes(N.value)?w.filter(D=>D!==N.value):[...w,N.value];if(d&&F.length>d)return;r==null||r(F),y("")}else r==null||r(N.value),y(""),v(!1)},T=N=>{if(!o)switch(N.key){case"ArrowDown":N.preventDefault(),v(!0),p(F=>F<U.length-1?F+1:F);break;case"ArrowUp":N.preventDefault(),v(!0),p(F=>F>0?F-1:F);break;case"Enter":N.preventDefault(),h&&x>=0&&L(U[x]);break;case"Escape":N.preventDefault(),v(!1),p(-1);break;case"Tab":v(!1);break}};return c.useEffect(()=>{const N=F=>{j.current&&!j.current.contains(F.target)&&v(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]),s.jsxs("div",{ref:$,className:C("relative w-full",o&&"cursor-not-allowed opacity-50",l),...m,children:[s.jsxs("div",{className:"relative",children:[s.jsx("input",{ref:G,type:"text",className:C("flex h-9 w-full rounded-md border border-foreground/30 bg-background px-3 py-1.5 text-sm shadow-sm","placeholder:text-muted-foreground text-foreground","focus:outline-none focus:ring-1 focus:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground"),value:P,onChange:k,onKeyDown:T,onClick:()=>v(!0),placeholder:n,disabled:o,role:"combobox","aria-expanded":h,"aria-controls":"combobox-options","aria-activedescendant":x>=0?`option-${U[x].value}`:void 0}),a&&s.jsx("div",{className:"absolute right-3 top-3",children:s.jsx(ue,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]}),i&&w.length>0&&s.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:w.map(N=>{const F=e.find(D=>D.value===N);return F?s.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-primary/10 px-2 py-1 text-xs",children:[F.label,s.jsx("button",{onClick:()=>L(F),className:"hover:text-destructive focus:outline-none","aria-label":`Remove ${F.label}`,children:s.jsx(Be,{className:"h-3 w-3"})})]},N):null})}),h&&U.length>0&&s.jsx("div",{className:C("absolute z-[10001] mt-1 max-h-60 w-full overflow-auto rounded-md border bg-popover p-1 shadow-md","animate-in fade-in-0 zoom-in-95"),id:"combobox-options",role:"listbox",children:U.map((N,F)=>s.jsx("div",{className:C("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground",N.disabled&&"cursor-not-allowed opacity-50",x===F&&"bg-accent text-accent-foreground",w.includes(N.value)&&"font-medium"),role:"option","aria-selected":w.includes(N.value),id:`option-${N.value}`,onClick:()=>L(N),children:f?f(N):N.label},N.value))})]})});Sn.displayName="ComboBox";const On=c.forwardRef(({className:e,padding:t=!0,centered:r=!0,as:n="div",children:o,...a},i)=>s.jsx(n,{ref:i,className:C("w-full","2xl:max-w-[1500px]","3xl:max-w-[2000px]",t&&"px-4 md:px-6 lg:px-8",r&&"mx-auto",e),...a,children:o}));On.displayName="Container";const En=c.forwardRef(({className:e,value:t,onChange:r,minDate:n,maxDate:o,disabled:a=!1,isLoading:i=!1,locale:d="en-US",disabledDates:l=[],placeholder:u={from:"Start date",to:"End date"},error:f,helperText:m,...$},h)=>{const[v,P]=c.useState(!1),[y,x]=c.useState(null),[p,j]=c.useState(t),G=c.useRef(null),w=c.useRef(null);c.useEffect(()=>{j(t)},[t]);const U=O=>{p.to?O>p.to?j({from:O,to:O}):j({...p,from:O}):j({from:O,to:null})},k=O=>{p.from?O<p.from?j({from:O,to:O}):j({...p,to:O}):j({from:O,to:O})},L=()=>{j({from:null,to:null}),r({from:null,to:null})},T=()=>{r(p),P(!1)},N=c.useMemo(()=>{if(!p.from||p.to||!y)return null;const O=y<p.from;return{from:O?y:p.from,to:O?p.from:y}},[p.from,p.to,y]);c.useEffect(()=>{const O=B=>{var Y;w.current&&!w.current.contains(B.target)&&!((Y=G.current)!=null&&Y.contains(B.target))&&(P(!1),j(t))};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[t]);const F=O=>O?new Intl.DateTimeFormat(d).format(O):"",D=C("shadow-sm flex h-9 items-center justify-between gap-2 rounded-md border border-foreground/30 bg-background px-3 py-1.5","text-sm ring-offset-background placeholder:text-muted-foreground","focus:outline-none focus:ring-1 focus:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",f&&"border-destructive focus:border-destructive focus:ring-destructive focus:ring-1");return s.jsxs("div",{ref:h,className:C("relative inline-block",e),...$,children:[s.jsxs("div",{ref:G,className:"flex gap-2",children:[s.jsxs("button",{type:"button",onClick:()=>!a&&!i&&P(!0),disabled:a||i,className:C(D,"w-[120px] md:w-[150px]"),children:[s.jsx("span",{className:"text-foreground",children:F(t.from)||u.from}),i?s.jsx(ue,{className:"h-4 w-4 animate-spin text-muted-foreground"}):s.jsx(Xe,{className:"h-4 w-4 text-muted-foreground"})]}),s.jsx("span",{className:"flex items-center text-sm text-muted-foreground",children:"to"}),s.jsxs("button",{type:"button",onClick:()=>!a&&!i&&P(!0),disabled:a||i,className:C(D,"w-[120px] md:w-[150px]"),children:[s.jsx("span",{className:"text-foreground",children:F(t.to)||u.to}),i?s.jsx(ue,{className:"h-4 w-4 animate-spin text-muted-foreground"}):s.jsx(Xe,{className:"h-4 w-4 text-muted-foreground"})]})]}),(f||m)&&s.jsx("div",{className:"mt-1 text-sm",children:f?s.jsx("p",{className:"text-destructive",role:"alert",children:f}):s.jsx("p",{className:"text-muted-foreground",children:m})}),v&&!a&&!i&&ve.createPortal(s.jsxs("div",{ref:w,style:{...(()=>{if(!G.current)return{};const O=G.current.getBoundingClientRect();if(window.innerWidth>=1024){const X=window.innerHeight-O.bottom,te=O.top,I=X<360&&te>X;let M=O.left;const V=window.innerWidth-620-8;return M>V&&(M=Math.max(8,V)),{position:"fixed",left:M+"px",...I?{bottom:window.innerHeight-O.top+8+"px"}:{top:O.bottom+8+"px"}}}return{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}})()},className:C("flex flex-col rounded-md bg-popover shadow-lg","animate-in fade-in-0 zoom-in-95 z-[10001] border border-border","max-h-[80vh] max-w-[calc(100vw-2rem)] overflow-auto"),children:[s.jsx("div",{className:"flex flex-col gap-4 p-4",children:s.jsxs("div",{className:"flex flex-col gap-4 md:flex-row",children:[s.jsx(Fe,{value:p.from||void 0,onChange:U,minDate:n,maxDate:o,disabled:a,locale:d,disabledDates:l,highlightedDates:[...p.from&&p.to?Array.from({length:(p.to.getTime()-p.from.getTime())/(1e3*60*60*24)+1},(O,B)=>new Date(p.from.getTime()+B*1e3*60*60*24)):[],...N?Array.from({length:(N.to.getTime()-N.from.getTime())/(1e3*60*60*24)+1},(O,B)=>new Date(N.from.getTime()+B*1e3*60*60*24)):[]],onMouseEnter:O=>x(O),onMouseLeave:()=>x(null)}),s.jsx(Fe,{value:p.to||void 0,onChange:k,minDate:n,maxDate:o,disabled:a,locale:d,disabledDates:l,highlightedDates:[...p.from&&p.to?Array.from({length:(p.to.getTime()-p.from.getTime())/(1e3*60*60*24)+1},(O,B)=>new Date(p.from.getTime()+B*1e3*60*60*24)):[],...N?Array.from({length:(N.to.getTime()-N.from.getTime())/(1e3*60*60*24)+1},(O,B)=>new Date(N.from.getTime()+B*1e3*60*60*24)):[]],onMouseEnter:O=>x(O),onMouseLeave:()=>x(null)})]})}),s.jsxs("div",{className:"sticky bottom-0 right-0 flex w-full justify-end gap-2 border-t border-border bg-popover p-2",children:[s.jsx(he,{variant:"outline",onClick:L,children:"Clear"}),s.jsx(he,{onClick:T,children:"OK"})]})]}),document.body)]})});En.displayName="DateRangePicker";const ir=7,Ka=6,Ya=(e,t)=>new Date(e,t+1,0).getDate(),za=(e,t)=>new Date(e,t,1).getDay(),Ae=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),dr=(e,{minDate:t,maxDate:r,disabledDates:n})=>{if(t){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0));if(o<a)return!0}if(r){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999));if(o>a)return!0}return!!(n!=null&&n.some(o=>Ae(e,o)))},Ct=c.forwardRef(({className:e,value:t,endValue:r,onChange:n,minDate:o,maxDate:a,disabled:i=!1,locale:d="en-US",weekStartsOn:l=0,disabledDates:u=[],highlightedDates:f=[],onMouseEnter:m,onMouseLeave:$,viewDate:h,...v},P)=>{const[y,x]=c.useState(null),[p,j]=c.useState(h);c.useEffect(()=>{j(h)},[h]);const G=new Intl.DateTimeFormat(d,{month:"long",year:"numeric"}).format(p),w=c.useMemo(()=>{const T=new Intl.DateTimeFormat(d,{weekday:"short"}),N=Array.from({length:ir},(F,D)=>{const O=new Date(2022,0,3+D);return T.format(O)});if(l===0){const F=N.pop();N.unshift(F)}return N},[d,l]),U=c.useCallback(()=>{const T=p.getFullYear(),N=p.getMonth(),F=Ya(T,N),D=(za(T,N)-l+7)%7,O=Array(D).fill(null);for(let B=1;B<=F;B++)O.push(new Date(T,N,B));for(;O.length<ir*Ka;)O.push(null);return O},[p,l]),k=T=>{!i&&!dr(T,{minDate:o,maxDate:a,disabledDates:u})&&(n==null||n(T))},L=(T,N)=>{if(!i)switch(T.key){case"ArrowLeft":T.preventDefault(),x(new Date(N.getFullYear(),N.getMonth(),N.getDate()-1));break;case"ArrowRight":T.preventDefault(),x(new Date(N.getFullYear(),N.getMonth(),N.getDate()+1));break;case"ArrowUp":T.preventDefault(),x(new Date(N.getFullYear(),N.getMonth(),N.getDate()-7));break;case"ArrowDown":T.preventDefault(),x(new Date(N.getFullYear(),N.getMonth(),N.getDate()+7));break;case"Enter":case" ":T.preventDefault(),k(N);break}};return s.jsxs("div",{ref:P,className:C("w-[260px] p-2 lg:w-[300px] lg:p-4",i&&"cursor-not-allowed opacity-50",e),...v,children:[s.jsx("div",{className:"mb-2 flex items-center justify-center text-sm font-medium lg:mb-4 lg:text-base",children:G}),s.jsx("div",{className:"mb-1 grid grid-cols-7 gap-1 text-center text-xs lg:mb-2 lg:text-sm",role:"row",children:w.map((T,N)=>s.jsx("div",{className:"text-muted-foreground","aria-label":T,children:T.charAt(0)},N))}),s.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid",children:U().map((T,N)=>{if(!T)return s.jsx("div",{role:"gridcell"},N);const F=t&&Ae(T,t),D=r&&Ae(T,r),O=f.some(H=>Ae(T,H)),B=dr(T,{minDate:o,maxDate:a,disabledDates:u}),Y=y&&Ae(T,y);return s.jsx("button",{type:"button",onClick:()=>k(T),onKeyDown:H=>L(H,T),onFocus:()=>x(T),onMouseEnter:()=>m==null?void 0:m(T),onMouseLeave:()=>$==null?void 0:$(T),disabled:i||B,className:C("aspect-square rounded-md p-0.5 text-xs lg:p-1","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","hover:bg-accent hover:text-accent-foreground","disabled:cursor-not-allowed disabled:opacity-50",O&&!F&&!D&&"bg-accent text-accent-foreground",(F||D)&&"bg-primary text-primary-foreground hover:bg-primary/90",Y&&!F&&!D&&"ring-1 ring-ring"),role:"gridcell","aria-selected":!!(F||D),tabIndex:Y?0:-1,children:T.getDate()},N)})})]})});Ct.displayName="DualCalendar";const qa=(e,t,r,n)=>{c.useEffect(()=>{if(!r)return;const o=()=>{const a=e.current,i=t.current;if(!a||!i)return;const{dropdownHeight:d,dropdownWidth:l,mobileBreakpoint:u,padding:f}=n,m=a.getBoundingClientRect();if(window.innerWidth>=u){const h=window.innerHeight-m.bottom,v=m.top,P=h<d&&v>h,y=Math.max(i.offsetWidth,l);let x=m.left;const p=window.innerWidth-y-f;x>p&&(x=Math.max(f,p)),i.style.left=`${x}px`,i.style.right="auto",i.style.transform="none",P?(i.style.bottom=`${window.innerHeight-m.top+f}px`,i.style.top="auto",i.style.maxHeight=`${v-f*2}px`):(i.style.top=`${m.bottom+f}px`,i.style.bottom="auto",i.style.maxHeight=`${h-f*2}px`)}else i.style.left="50%",i.style.top="50%",i.style.transform="translate(-50%, -50%)",i.style.maxHeight=`${window.innerHeight-f*2}px`};return o(),window.addEventListener("scroll",o,!0),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",o)}},[r,n])},jn=c.forwardRef(({className:e,value:t,onChange:r,minDate:n,maxDate:o,disabled:a=!1,isLoading:i=!1,locale:d="en-US",weekStartsOn:l=0,disabledDates:u=[],placeholder:f={from:"Start Date",to:"End Date"},error:m,helperText:$,showPresets:h=!0,...v},P)=>{const[y,x]=c.useState(!1),[p,j]=c.useState(t),[G,w]=c.useState(!1),U=c.useRef(null),k=c.useRef(null),[L,T]=c.useState(()=>{if(t.from)return new Date(t.from.getFullYear(),t.from.getMonth(),1);const b=new Date;return new Date(b.getFullYear(),b.getMonth(),1)}),[N,F]=c.useState(()=>{if(t.from)return new Date(t.from.getFullYear(),t.from.getMonth()+1,1);const b=new Date;return new Date(b.getFullYear(),b.getMonth()+1,1)}),D=c.useMemo(()=>({dropdownHeight:360,dropdownWidth:720,mobileBreakpoint:1024,padding:8}),[]);qa(U,k,y,D),c.useEffect(()=>{y||j(t)},[t,y]);const O=b=>{if(G)b<p.from?j({...p,to:p.from,from:b}):j({...p,to:b});else if(p.from)if(!p.to)b<p.from?j({from:b,to:p.from}):j({...p,to:b});else{const A=new Date(b.getFullYear(),b.getMonth(),1),W=new Date(b.getFullYear(),b.getMonth()+1,1);T(A),F(W),j({from:b,to:null})}else{const A=new Date(b.getFullYear(),b.getMonth(),1),W=new Date(b.getFullYear(),b.getMonth()+1,1);T(A),F(W),j({from:b,to:null})}},B=()=>{!a&&!i&&(w(!1),x(!0))},Y=()=>{if(!a&&!i&&t.from){w(!0),j(t);const b=new Date(t.from.getFullYear(),t.from.getMonth(),1),A=new Date(t.from.getFullYear(),t.from.getMonth()+1,1);T(b),F(A),x(!0)}else!a&&!i&&(w(!1),x(!0))},H=()=>{j({from:null,to:null}),r({from:null,to:null}),w(!1)},Z=b=>{if(!n)return!1;const A=new Date(b.getFullYear(),b.getMonth(),b.getDate(),0,0,0,0),W=new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0);return A<W},X=c.useMemo(()=>{const b=new Date,A=new Date(b),W=!Z(A),K=new Date(b);K.setDate(b.getDate()-6);const re=!Z(K),_=new Date(b.getFullYear(),b.getMonth(),1),ie=!Z(_),be=new Date(b.getFullYear(),b.getMonth()-1,1),Ue=new Date(b.getFullYear(),b.getMonth(),0),Ho=!Z(be);return{today:{from:A,to:A,isValid:W},last7days:{from:K,to:b,isValid:re},thisMonth:{from:_,to:new Date(b.getFullYear(),b.getMonth()+1,0),isValid:ie},lastMonth:{from:be,to:Ue,isValid:Ho}}},[n]),te=b=>{const A=X;let W=null,K=null;switch(b){case"today":A.today.isValid&&(W=A.today.from,K=A.today.to);break;case"last7days":A.last7days.isValid&&(W=A.last7days.from,K=A.last7days.to);break;case"thisMonth":A.thisMonth.isValid&&(W=A.thisMonth.from,K=A.thisMonth.to);break;case"lastMonth":A.lastMonth.isValid&&(W=A.lastMonth.from,K=A.lastMonth.to);break}W&&K&&(j({from:W,to:K}),T(new Date(W.getFullYear(),W.getMonth(),1)),F(new Date(W.getFullYear(),W.getMonth()+1,1)))},I=()=>{if(p.from&&!p.to){const b={from:p.from,to:p.from};r(b)}else r(p);x(!1),w(!1)};c.useEffect(()=>{const b=A=>{var W;k.current&&!k.current.contains(A.target)&&!((W=U.current)!=null&&W.contains(A.target))&&(x(!1),j(t),w(!1))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[t]);const M=b=>b?new Intl.DateTimeFormat(d).format(b):"",V=M(new Date(2e3,11,22)),z=()=>{if(!p.from)return[];if(!p.to)return[p.from];const b=[],A=new Date(p.from);for(;A<=p.to;)b.push(new Date(A)),A.setDate(A.getDate()+1);return b},g=p.from||n,{showPresets:S,...E}=v;return s.jsxs("div",{ref:P,className:C("relative w-fit",e),...E,children:[s.jsxs("div",{ref:U,onClick:B,className:C("flex h-9 cursor-pointer items-center gap-2 rounded-md border border-foreground/30 bg-background px-3 shadow-sm",(a||i)&&"cursor-not-allowed bg-muted",m&&"border-destructive"),children:[i?s.jsx(ue,{className:"h-4 w-4 shrink-0 animate-spin text-muted-foreground"}):s.jsx(Xe,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),s.jsxs("button",{type:"button",onClick:B,disabled:a||i,className:C("grid items-center py-1.5 text-xs tabular-nums ring-offset-background","focus-visible:outline-none focus-visible:ring-0","disabled:cursor-not-allowed disabled:text-muted-foreground",t.from?"text-foreground":"text-muted-foreground"),children:[s.jsx("span",{"aria-hidden":!0,className:"col-start-1 row-start-1 invisible whitespace-nowrap font-semibold",children:V.length>=f.from.length?V:f.from}),s.jsx("span",{className:C("col-start-1 row-start-1 whitespace-nowrap",y&&!G&&"font-semibold"),children:M(t.from)||f.from})]}),s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:"to"}),s.jsxs("button",{type:"button",onClick:b=>{b.stopPropagation(),Y()},disabled:a||i,className:C("grid items-center py-1.5 text-xs tabular-nums ring-offset-background","focus-visible:outline-none focus-visible:ring-0","disabled:cursor-not-allowed disabled:text-muted-foreground",t.to?"text-foreground":"text-muted-foreground"),children:[s.jsx("span",{"aria-hidden":!0,className:"col-start-1 row-start-1 invisible whitespace-nowrap font-semibold",children:V.length>=f.to.length?V:f.to}),s.jsx("span",{className:C("col-start-1 row-start-1 whitespace-nowrap",y&&G&&"font-semibold"),children:M(t.to)||f.to})]})]}),(m||$)&&s.jsx("div",{className:"mt-1 text-sm",children:m?s.jsx("p",{className:"text-destructive",role:"alert",children:m}):s.jsx("p",{className:"text-muted-foreground",children:$})}),y&&!a&&!i&&ve.createPortal(s.jsx("div",{ref:k,style:{position:"fixed",maxWidth:"calc(100vw - 2rem)"},className:C("flex flex-col rounded-md bg-popover shadow-lg","z-[10001] border border-border","max-h-[80vh] w-auto min-w-[300px] overflow-auto","lg:max-h-none lg:min-w-[720px] lg:overflow-auto","speculo-scrollbar"),children:s.jsxs("div",{className:"flex min-h-fit flex-col gap-4 p-2 pt-5 lg:p-4",children:[s.jsxs("div",{className:"flex flex-col lg:flex-row",children:[h&&s.jsx("div",{className:"flex flex-col border-r border-border p-4 pr-6",children:s.jsxs("div",{className:"w-[150px]",children:[s.jsx("button",{className:C("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",X.today.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>X.today.isValid&&te("today"),disabled:!X.today.isValid,children:"Today"}),s.jsx("div",{className:"h-px w-full bg-border"}),s.jsx("button",{className:C("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",X.last7days.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>X.last7days.isValid&&te("last7days"),disabled:!X.last7days.isValid,children:"Last 7 Days"}),s.jsx("div",{className:"h-px w-full bg-border"}),s.jsx("button",{className:C("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",X.thisMonth.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>X.thisMonth.isValid&&te("thisMonth"),disabled:!X.thisMonth.isValid,children:"This Month"}),s.jsx("div",{className:"h-px w-full bg-border"}),s.jsx("button",{className:C("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",X.lastMonth.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>X.lastMonth.isValid&&te("lastMonth"),disabled:!X.lastMonth.isValid,children:"Last Month"}),s.jsx("div",{className:"h-px w-full bg-border"}),s.jsx("button",{className:"w-full py-2 text-left text-xs font-medium text-foreground hover:text-primary focus:text-primary active:text-primary md:py-3 md:text-sm",onClick:()=>H(),children:"Custom"})]})}),s.jsxs("div",{className:"flex",children:[s.jsx("button",{className:C("mt-[18px] h-fit rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a&&"cursor-not-allowed opacity-50"),type:"button",onClick:()=>{const b=new Date(L.getFullYear(),L.getMonth()-1,1),A=new Date(N.getFullYear(),N.getMonth()-1,1);T(b),F(A)},disabled:a||n&&L<=new Date(n.getFullYear(),n.getMonth(),1),"aria-label":"Previous months",children:s.jsx(Aa,{className:"h-4 w-4"})}),s.jsxs("div",{className:"flex flex-1 gap-4",children:[s.jsx(Ct,{value:p.from,endValue:p.to,onChange:O,minDate:n,maxDate:o,disabled:a,locale:d,weekStartsOn:l,disabledDates:u,highlightedDates:z(),viewDate:L}),s.jsx(Ct,{value:p.from,endValue:p.to,onChange:O,minDate:g,maxDate:o,disabled:a,locale:d,weekStartsOn:l,disabledDates:u,highlightedDates:z(),viewDate:N,className:"hidden md:block"})]}),s.jsx("button",{type:"button",onClick:()=>{const b=new Date(L.getFullYear(),L.getMonth()+1,1),A=new Date(N.getFullYear(),N.getMonth()+1,1);T(b),F(A)},disabled:a||o&&N>=new Date(o.getFullYear(),o.getMonth(),1),className:C("mt-[18px] h-fit rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a&&"cursor-not-allowed opacity-50"),"aria-label":"Next months",children:s.jsx(ka,{className:"h-4 w-4"})})]})]}),s.jsx("div",{className:"sticky bottom-0 right-0 flex w-full justify-end border-t border-border bg-popover p-2",children:s.jsxs("div",{className:"flex gap-2",children:[s.jsx(he,{variant:"outline",onClick:H,children:"Clear"}),s.jsx(he,{onClick:I,children:"OK"})]})})]})}),document.body)]})});jn.displayName="DualDateRangePicker";const In=c.forwardRef(({className:e,value:t,onChange:r,minDate:n,maxDate:o,disabled:a=!1,isLoading:i=!1,locale:d="en-US",disabledDates:l=[],placeholder:u="Select date",error:f,helperText:m,...$},h)=>{var T;const[v,P]=c.useState(!1),[y,x]=c.useState(t),p=c.useRef(null),j=c.useRef(null);c.useEffect(()=>{if(!v)return;const N=()=>{if(j.current&&p.current){const F=p.current.getBoundingClientRect(),D=360,O=window.innerHeight-F.bottom,B=F.top,Y=O<D&&B>O;j.current.style.left=`${F.left}px`,Y?(j.current.style.bottom=`${window.innerHeight-F.top+8}px`,j.current.style.top="auto"):(j.current.style.top=`${F.bottom+8}px`,j.current.style.bottom="auto")}};return N(),window.addEventListener("scroll",N,!0),window.addEventListener("resize",N),()=>{window.removeEventListener("scroll",N,!0),window.removeEventListener("resize",N)}},[v]),c.useEffect(()=>{x(t)},[t]);const G=N=>{x(N)},w=()=>{x(null),r(null),P(!1)},U=()=>{r(y),P(!1)};c.useEffect(()=>{const N=F=>{var O;const D=F.target;j.current&&!j.current.contains(D)&&!((O=p.current)!=null&&O.contains(D))&&(P(!1),x(t))};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[t]);const k=N=>N?new Intl.DateTimeFormat(d).format(N):"",L=C("shadow-sm flex h-9 items-center justify-between rounded-md border border-foreground/30 bg-background px-3 py-1.5","text-xs placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",f&&"border-destructive focus-visible:border-destructive focus-visible:ring-destructive focus-visible:ring-1");return s.jsxs("div",{ref:h,className:C("relative w-full",e),...$,children:[s.jsxs("button",{ref:p,type:"button",onClick:()=>!a&&!i&&P(!0),disabled:a||i,className:C(L,"w-full"),children:[s.jsx("span",{className:C("flex-1 text-left",t?"text-foreground":"text-muted-foreground"),children:k(t)||u}),i?s.jsx(ue,{className:"ml-2 h-4 w-4 shrink-0 animate-spin text-muted-foreground"}):s.jsx(Xe,{className:"ml-2 h-4 w-4 shrink-0 text-muted-foreground"})]}),(f||m)&&s.jsx("div",{className:"mt-1 text-sm",children:f?s.jsx("p",{className:"text-destructive",role:"alert",children:f}):s.jsx("p",{className:"text-muted-foreground",children:m})}),v&&!a&&!i&&ve.createPortal(s.jsxs("div",{ref:j,style:{position:"fixed",left:((T=p.current)==null?void 0:T.getBoundingClientRect().left)+"px",...(()=>{if(!p.current)return{top:0};const N=p.current.getBoundingClientRect(),F=360,D=window.innerHeight-N.bottom,O=N.top;return D<F&&O>D?{bottom:window.innerHeight-N.top+8+"px"}:{top:N.bottom+8+"px"}})()},className:C("flex flex-col rounded-md bg-popover p-2 shadow-lg","z-[10001] border border-border"),children:[s.jsx(Fe,{value:y||void 0,onChange:G,minDate:n,maxDate:o,disabled:a,locale:d,disabledDates:l}),s.jsxs("div",{className:"mt-2 flex justify-end gap-2 border-t pt-2",children:[s.jsx(he,{variant:"outline",size:"sm",onClick:w,children:"Clear"}),s.jsx(he,{size:"sm",onClick:U,children:"OK"})]})]}),document.body)]})});In.displayName="DatePicker";const Tn=c.forwardRef(({className:e,value:t,onChange:r,minTime:n,maxTime:o,disabled:a=!1,isLoading:i=!1,use24Hour:d=!1,placeholder:l="Select time",error:u,helperText:f,step:m=15,...$},h)=>{var F,D;const[v,P]=c.useState(!1),[y,x]=c.useState(t),p=c.useRef(null),j=c.useRef(null);c.useEffect(()=>{if(!v)return;const O=()=>{if(j.current&&p.current){const B=p.current.getBoundingClientRect(),Y=320,H=window.innerHeight-B.bottom,Z=B.top,X=H<Y&&Z>H;j.current.style.left=`${B.left}px`,j.current.style.width=`${B.width}px`,X?(j.current.style.bottom=`${window.innerHeight-B.top+8}px`,j.current.style.top="auto"):(j.current.style.top=`${B.bottom+8}px`,j.current.style.bottom="auto")}};return O(),window.addEventListener("scroll",O,!0),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",O)}},[v]),c.useEffect(()=>{x(t)},[t]);const G=O=>{const[B,Y]=O.split(":").map(Number);return B*60+Y},w=O=>{const B=Math.floor(O/60),Y=O%60;return`${B.toString().padStart(2,"0")}:${Y.toString().padStart(2,"0")}`},U=c.useMemo(()=>{const O=[],B=n?G(n):0,Y=o?G(o):24*60-1;for(let H=B;H<=Y;H+=m)O.push(w(H));return O},[n,o,m]),k=O=>{if(!O)return"";if(d)return O;const[B,Y]=O.split(":").map(Number),H=B>=12?"PM":"AM";return`${B%12||12}:${Y.toString().padStart(2,"0")} ${H}`},L=O=>{x(O),r(O),P(!1)},T=()=>{x(null),r(null),P(!1)};c.useEffect(()=>{const O=B=>{var H;const Y=B.target;j.current&&!j.current.contains(Y)&&!((H=p.current)!=null&&H.contains(Y))&&(P(!1),x(t))};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[t]);const N=C("shadow-sm flex h-9 items-center justify-between rounded-md border border-foreground/30 bg-background px-3 py-1.5","text-xs ring-offset-background placeholder:text-muted-foreground","focus:outline-none focus:ring-1 focus:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",u&&"border-destructive focus:border-destructive focus:ring-destructive focus:ring-1");return s.jsxs("div",{ref:h,className:C("relative w-full",e),...$,children:[s.jsxs("button",{ref:p,type:"button",onClick:()=>!a&&!i&&P(!0),disabled:a||i,className:C(N,"w-full"),children:[s.jsx("span",{className:C("flex-1 text-left",t?"text-foreground":"text-muted-foreground"),children:t?k(t):l}),i?s.jsx(ue,{className:"ml-2 h-4 w-4 shrink-0 animate-spin text-muted-foreground"}):s.jsx(Fa,{className:"ml-2 h-4 w-4 shrink-0 text-muted-foreground"})]}),(u||f)&&s.jsx("div",{className:"mt-1 text-sm",children:u?s.jsx("p",{className:"text-destructive",role:"alert",children:u}):s.jsx("p",{className:"text-muted-foreground",children:f})}),v&&!a&&!i&&ve.createPortal(s.jsxs("div",{ref:j,style:{position:"fixed",left:((F=p.current)==null?void 0:F.getBoundingClientRect().left)+"px",...(()=>{if(!p.current)return{top:0};const O=p.current.getBoundingClientRect(),B=320,Y=window.innerHeight-O.bottom,H=O.top;return Y<B&&H>Y?{bottom:window.innerHeight-O.top+8+"px"}:{top:O.bottom+8+"px"}})(),width:((D=p.current)==null?void 0:D.getBoundingClientRect().width)+"px"},className:C("flex flex-col rounded-md border border-border bg-popover p-2 shadow-lg","animate-in fade-in-0 zoom-in-95 z-[10001] max-h-[320px]"),children:[s.jsx("div",{className:"flex flex-col overflow-auto",style:{scrollbarWidth:"thin"},children:U.map(O=>s.jsx("button",{onClick:()=>L(O),className:C("rounded-md px-3 py-1.5 text-left text-xs hover:bg-accent hover:text-accent-foreground",O===y&&"bg-accent font-medium"),children:k(O)},O))}),s.jsx("div",{className:"mt-2 flex justify-end gap-2 border-t border-border pt-2",children:s.jsx(he,{variant:"outline",size:"sm",onClick:T,children:"Clear"})})]}),document.body)]})});Tn.displayName="TimePicker";const An=({children:e,className:t,onClose:r})=>s.jsxs("div",{className:C("flex items-center justify-between border-b border-border px-4 py-2.5 md:px-6 md:py-3",t),children:[s.jsx("div",{className:"text-base font-semibold text-foreground md:text-lg",children:e}),r&&s.jsxs("button",{type:"button",className:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",onClick:r,children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(Be,{className:"h-4 w-4"})]})]}),Xa=({children:e,className:t})=>s.jsx("div",{className:C("min-h-0 flex-1 overflow-y-auto px-4 py-3 md:px-6 md:py-4",t),children:e}),Za=({children:e,className:t})=>s.jsx("div",{className:C("flex items-center justify-end gap-2 border-t border-border px-4 py-3 md:px-6 md:py-4",t),children:e}),Ja={left:{sm:"w-screen md:w-80",md:"w-screen md:w-96",lg:"w-screen md:w-[512px]",xl:"w-screen md:w-[640px]",full:"w-screen h-[100dvh]"},right:{sm:"w-screen md:w-80",md:"w-screen md:w-96",lg:"w-screen md:w-[512px]",xl:"w-screen md:w-[640px]",full:"w-screen h-[100dvh]"},top:{sm:"w-screen h-[50dvh] md:h-48 md:w-auto",md:"w-screen h-[50dvh] md:h-64 md:w-auto",lg:"w-screen h-[50dvh] md:h-96 md:w-auto",xl:"w-screen h-[60dvh] md:h-[512px] md:w-auto",full:"w-screen h-[100dvh]"},bottom:{sm:"w-screen h-[50dvh] md:h-48 md:w-auto",md:"w-screen h-[50dvh] md:h-64 md:w-auto",lg:"w-screen h-[50dvh] md:h-96 md:w-auto",xl:"w-screen h-[60dvh] md:h-[512px] md:w-auto",full:"w-screen h-[100dvh]"}},Qa={left:"left-0 top-0 h-[100dvh]",right:"right-0 top-0 h-[100dvh]",top:"top-0 left-0 w-full",bottom:"bottom-0 left-0 w-full"},kn=c.forwardRef(({open:e,onClose:t,children:r,side:n="right",size:o="md",overlay:a=!0,closeOnOverlayClick:i=!0,closeOnEsc:d=!0},l)=>{const[u,f]=c.useState(e),m=c.useRef(null);if(c.useEffect(()=>{if(e){f(!0),m.current=document.activeElement;const h=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${h}px`,document.body.style.overflow="hidden",requestAnimationFrame(()=>{l&&typeof l=="function"?l(document.activeElement):l!=null&&l.current&&l.current.focus()})}else document.body.style.overflow="",document.body.style.paddingRight="",setTimeout(()=>{f(!1)},300);return()=>{document.body.style.overflow="",document.body.style.paddingRight="",m.current&&m.current.focus()}},[e,l]),c.useEffect(()=>{if(d){const h=v=>{v.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)}},[d,t]),!u&&!e)return null;const $={left:e?"translate-x-0":"-translate-x-full",right:e?"translate-x-0":"translate-x-full",top:e?"translate-y-0":"-translate-y-full",bottom:e?"translate-y-0":"translate-y-full"}[n];return s.jsxs("div",{className:"fixed inset-0 z-50",ref:l,children:[a&&s.jsx("div",{className:C("fixed inset-0 bg-black/40 backdrop-blur-sm transition-opacity duration-200 ease-in-out",e?"opacity-100":"opacity-0"),onClick:i?t:void 0,"aria-hidden":"true"}),s.jsx("div",{role:"dialog","aria-modal":"true",tabIndex:-1,className:C("fixed border border-border bg-background shadow-lg outline-none transition-transform duration-300 ease-in-out",Qa[n],Ja[n][o],$),onKeyDown:h=>{h.key==="Escape"&&d&&t()},children:s.jsx("div",{className:"flex h-full flex-col",children:c.Children.map(r,h=>c.isValidElement(h)&&h.type===An?c.cloneElement(h,{onClose:t}):h)})})]})});kn.displayName="Drawer";const ot=kn;ot.Header=An;ot.Body=Xa;ot.Footer=Za;const Rn=({children:e,className:t,error:r,required:n})=>s.jsx("div",{className:C("relative space-y-1.5",t),children:c.Children.map(e,o=>c.isValidElement(o)?c.cloneElement(o,{...o.props,error:r||o.props.error,required:n||o.props.required,"aria-required":n||o.props.required,"aria-invalid":r?"true":void 0}):o)});Rn.displayName="FormControl";const Fn=c.forwardRef(({children:e,className:t,required:r,...n},o)=>s.jsxs("label",{ref:o,className:C("block text-sm font-medium text-foreground/85",t),...n,children:[e,r&&s.jsx("span",{className:"ml-2 text-destructive","aria-hidden":"true",children:"*"})]}));Fn.displayName="FormLabel";const Mn=({children:e,className:t})=>e?s.jsx("p",{className:C("mt-1 text-sm text-destructive",t),role:"alert",children:e}):null;Mn.displayName="FormErrorMessage";const _n=({children:e,className:t})=>e?s.jsx("p",{className:C("mt-1 text-sm text-muted-foreground",t),children:e}):null;_n.displayName="FormHelperText";const ei={Control:Rn,Label:Fn,ErrorMessage:Mn,HelperText:_n},Dn=c.forwardRef(({className:e,trigger:t,children:r,openDelay:n=200,closeDelay:o=300,side:a="bottom",align:i="center",arrow:d=!0,...l},u)=>{const[f,m]=c.useState(!1),$=c.useRef(null),h=c.useRef(),v=()=>{clearTimeout(h.current),h.current=setTimeout(()=>{m(!0)},n)},P=()=>{clearTimeout(h.current),h.current=setTimeout(()=>{m(!1)},o)};c.useEffect(()=>()=>{clearTimeout(h.current)},[]);const y=()=>{if(!$.current)return{};const x={};switch(a){case"top":x.bottom="100%";break;case"right":x.left="100%";break;case"bottom":x.top="100%";break;case"left":x.right="100%";break}switch(i){case"start":x[a==="left"||a==="right"?"top":"left"]=0;break;case"center":x[a==="left"||a==="right"?"top":"left"]="50%",x.transform="translate(-50%, -50%)";break;case"end":x[a==="left"||a==="right"?"bottom":"right"]=0;break}return x};return s.jsxs("div",{className:"relative inline-block",onMouseEnter:v,onMouseLeave:P,ref:u,...l,children:[s.jsx("div",{ref:$,children:t}),f&&s.jsxs("div",{className:C("absolute z-50 min-w-[220px] rounded-md border bg-popover text-popover-foreground shadow-md outline-none","animate-in fade-in-0 zoom-in-95",e),style:y(),role:"tooltip",children:[d&&s.jsx("div",{className:C("absolute h-2 w-2 rotate-45 border bg-popover",a==="top"&&"bottom-[-5px] border-b border-r",a==="right"&&"left-[-5px] border-l border-t",a==="bottom"&&"top-[-5px] border-l border-t",a==="left"&&"right-[-5px] border-r border-t",i==="start"&&"left-4",i==="center"&&"left-1/2 -translate-x-1/2",i==="end"&&"right-4")}),s.jsx("div",{className:"relative",children:r})]})]})});Dn.displayName="HoverCard";const ti={sm:"h-8 py-1 text-xs",md:"h-9 py-1.5 text-xs",lg:"h-10 py-2 text-sm"},Ln=c.forwardRef(({className:e,error:t,helperText:r,startIcon:n,endIcon:o,disabled:a,isLoading:i,inputSize:d="md",clearable:l=!1,onClear:u,value:f,defaultValue:m,onChange:$,...h},v)=>{const P=c.useRef(null),[y,x]=c.useState(m??"");c.useImperativeHandle(v,()=>P.current);const p=f!==void 0,j=p?f:y,G=j!==""&&j!==void 0,w=p?f:l?y:void 0,U=!p&&!l?m:void 0,k=H=>{p||x(H.target.value),$==null||$(H)},L=()=>{var H;if(!(a||i)){if(p||x(""),P.current){const Z=(H=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:H.set;Z==null||Z.call(P.current,"");const X=new Event("input",{bubbles:!0});P.current.dispatchEvent(X),P.current.focus()}u==null||u()}},T="shadow-sm block w-full border rounded-md border-foreground/30 bg-background text-foreground placeholder:text-muted-foreground placeholder:text-xs focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",N=t?"border-destructive focus:border-destructive focus:ring-destructive":"",F="absolute inset-y-0 flex items-center pointer-events-none",D="px-3",O=l&&G&&!a&&!i,B=o||i||O,Y=C(T,ti[d],N,n?"pl-9":"pl-3",B?"pr-9":"pr-3",e);return s.jsxs("div",{className:"w-full",children:[s.jsxs("div",{className:"relative",children:[n&&s.jsx("div",{className:C(F,"left-0",D,"text-muted-foreground",t&&"text-destructive"),children:n}),s.jsx("input",{ref:P,disabled:a||i,className:Y,"aria-invalid":t?"true":"false","aria-describedby":t?`${h.id}-error`:r?`${h.id}-helper`:void 0,value:w,defaultValue:U,onChange:k,...h}),i?s.jsx("div",{className:C(F,"right-0",D,"text-muted-foreground"),children:s.jsx(ue,{className:"h-4 w-4 animate-spin"})}):O?s.jsx("button",{type:"button",onClick:L,className:C("absolute inset-y-0 right-0 flex items-center px-3","text-muted-foreground hover:text-foreground","focus:outline-none"),"aria-label":"Clear input",tabIndex:-1,children:s.jsx(Pn,{className:"h-4 w-4"})}):o&&s.jsx("div",{className:C(F,"right-0",D,"text-muted-foreground",t&&"text-destructive"),children:o})]}),(t||r)&&s.jsx("div",{className:"mt-1 text-sm",children:t?s.jsx("p",{className:"text-destructive",id:`${h.id}-error`,role:"alert",children:t}):r?s.jsx("p",{className:"text-muted-foreground",id:`${h.id}-helper`,children:r}):null})]})});Ln.displayName="Input";const Bn=({className:e})=>s.jsx("div",{className:C("absolute inset-0 flex items-center justify-center bg-background/50",e),children:s.jsx(ue,{className:"h-8 w-8 animate-spin text-primary"})}),ri={xs:"md:max-w-sm",sm:"md:max-w-xl",base:"md:max-w-2xl",lg:"md:max-w-3xl",xl:"md:max-w-4xl","2xl":"md:max-w-5xl",full:"md:max-w-full"},ni=({children:e,className:t,onClose:r})=>s.jsxs("div",{className:C("flex items-start justify-between gap-4 border-b border-border bg-muted/50 px-4 py-3 md:rounded-t-lg md:px-5 md:py-3.5 3xl:px-7 3xl:py-5",t),children:[s.jsx("div",{className:"min-w-0 flex-1 text-lg font-semibold text-foreground",children:e}),r&&s.jsxs("button",{type:"button",className:"mt-1.5 shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",onClick:r,children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(Be,{className:"h-4 w-4"})]})]}),oi=({children:e,className:t})=>s.jsx("div",{className:C("overflow-y-auto px-4 py-3 md:px-5 md:py-3.5 3xl:px-7 3xl:py-5",t),children:e}),ai=({children:e,className:t})=>s.jsx("div",{className:C("flex items-center justify-end gap-2 border-t border-border bg-muted/50 px-4 py-3 md:rounded-b-lg md:px-5 md:py-3.5 3xl:px-7 3xl:py-5",t),children:e}),Ge=({isOpen:e,onClose:t,children:r,size:n="base",closeOnOverlayClick:o=!1,closeOnEsc:a=!0,initialFocus:i,className:d,loading:l=!1})=>{const u=c.useRef(null),f=c.useRef(null);c.useEffect(()=>{if(!e||!a)return;const h=v=>{!l&&v.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,a,t]),c.useEffect(()=>{if(!e)return;const h=(i==null?void 0:i.current)||f.current;h==null||h.focus();const v=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${v}px`,()=>{document.body.style.overflow="",document.body.style.paddingRight=""}},[e,i]);const m=h=>{!l&&o&&h.target===u.current&&t()};if(!e)return null;const $=c.Children.map(r,h=>c.isValidElement(h)&&h.type===Ge.Header?c.cloneElement(h,{onClose:l?void 0:t}):h);return ve.createPortal(s.jsx("div",{ref:u,className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 backdrop-blur-sm p-0 md:p-2 3xl:p-7",onClick:m,children:s.jsxs("div",{ref:f,className:C("relative flex max-h-[100dvh] w-full flex-col rounded-none border border-border bg-card shadow-lg outline-none md:max-h-[calc(100vh-1rem)] md:rounded-lg 3xl:max-h-[calc(100vh-3.5rem)]",ri[n],l&&"pointer-events-none",d),role:"dialog","aria-modal":"true",tabIndex:-1,children:[$,l&&s.jsx(Bn,{})]})}),document.body)};Ge.Header=ni;Ge.Body=oi;Ge.Footer=ai;c.createContext(null);const Te={sm:"h-8 w-8 text-sm",md:"h-10 w-10",lg:"h-12 w-12 text-lg"},ke="...",We=(e,t)=>{const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)},ii=(e,t,r)=>{if(r*2+3>=t)return We(1,t);const o=Math.max(e-r,1),a=Math.min(e+r,t),i=o>2,d=a<t-1;if(!i&&d){const l=3+2*r;return[...We(1,l),ke,t]}if(i&&!d){const l=3+2*r,u=We(t-l+1,t);return[1,ke,...u]}if(i&&d){const l=We(o,a);return[1,ke,...l,ke,t]}return[]},Gn=c.forwardRef(({className:e,currentPage:t,totalPages:r,onPageChange:n,siblingCount:o=1,showFirstLast:a=!0,size:i="md",disabled:d=!1,...l},u)=>{const f=ii(t,r,o);if(t===0||f.length<2)return null;const m=()=>{!d&&t<r&&n(t+1)},$=()=>{!d&&t>1&&n(t-1)},h=()=>{!d&&t!==1&&n(1)},v=()=>{!d&&t!==r&&n(r)};return s.jsxs("nav",{ref:u,className:C("flex items-center space-x-2",e),"aria-label":"Pagination",...l,children:[a&&s.jsx("button",{className:C("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Te[i]),onClick:h,disabled:d||t===1,"aria-label":"Go to first page",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[s.jsx("path",{d:"m11 17-5-5 5-5"}),s.jsx("path",{d:"m18 17-5-5 5-5"})]})}),s.jsx("button",{className:C("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Te[i]),onClick:$,disabled:d||t===1,"aria-label":"Go to previous page",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:s.jsx("path",{d:"m15 18-6-6 6-6"})})}),f.map((P,y)=>P===ke?s.jsx("span",{className:"flex items-center justify-center","aria-hidden":"true",children:"…"},y):s.jsx("button",{className:C("inline-flex items-center justify-center rounded-md border","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",P===t?"bg-primary text-primary-foreground hover:bg-primary/90":"hover:bg-accent hover:text-accent-foreground",Te[i]),onClick:()=>!d&&n(P),disabled:d,"aria-current":P===t?"page":void 0,"aria-label":`Go to page ${P}`,children:P},y)),s.jsx("button",{className:C("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Te[i]),onClick:m,disabled:d||t===r,"aria-label":"Go to next page",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:s.jsx("path",{d:"m9 18 6-6-6-6"})})}),a&&s.jsx("button",{className:C("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Te[i]),onClick:v,disabled:d||t===r,"aria-label":"Go to last page",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[s.jsx("path",{d:"m13 17 5-5-5-5"}),s.jsx("path",{d:"m6 17 5-5-5-5"})]})})]})});Gn.displayName="Pagination";const di={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[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-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]|2[23]"],"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","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?: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))|7090[0-4])\\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)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|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-9]\\d{9}|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])|9(?:0[25]|42))[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)|6(?:22|33))[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[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-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]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\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{2})(\\d{4})","$1 $2 $3",["2"],"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"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"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,12],[["(\\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[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"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])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($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[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-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,10,11,12],[["(\\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",["(?:19|[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[0-35])|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-3]))|(?: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|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|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|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"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))|7090[0-4])\\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]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\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,12],[["(\\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}",[6,7,8,9,10,11]],["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]],["3[2-8]\\d{9,10}",[11,12]],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",["[36]0|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[0135-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|7090)\\d{5}|(?: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))|7090[0-4])\\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",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"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|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"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]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,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[0467]"]]]],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","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"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|8\\d\\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","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"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]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|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]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\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,12],[["(\\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-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"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|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],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(?:[1245]|3[12])"]],["(\\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,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|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-47-9]|1[02-9]|2[0135-79]|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}"],0,0,0,["305209\\d{4}"]]],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","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],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,12],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|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\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","7093\\d{5}|(?: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])|7093[5-7])\\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}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],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,["348[57]\\d{7}",[11]],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 Un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt={exports:{}},He={exports:{}},J={};/** @license React v16.13.1
|
|
106
|
+
*/const Xe=ce("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),di={primary:"bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:ring-primary",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 focus-visible:ring-secondary",outline:"border border-foreground/30 bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring",ghost:"bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring",destructive:"bg-destructive/10 text-destructive border border-destructive/20 hover:bg-destructive/20 focus-visible:ring-destructive",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success",link:"text-primary underline-offset-4 hover:underline focus-visible:ring-primary bg-transparent"},si={xs:"h-6 px-1.5 text-[11px] rounded",sm:"h-7 px-2.5 text-xs rounded-md",md:"h-8 px-3 text-xs rounded-md",lg:"h-9 px-4 text-sm rounded-md",icon:"h-8 w-8 rounded-md"},Ne=c.forwardRef(({className:e,variant:t="primary",size:r="md",isLoading:n,children:o,disabled:a,...i},s)=>d.jsx("button",{className:v("inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 relative",di[t],si[r],e),ref:s,disabled:n||a,...i,children:n?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"opacity-0",children:o}),d.jsx("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:d.jsx(be,{className:"h-4 w-4 animate-spin"})})]}):o}));Ne.displayName="Button";const Cr=7,li=6,ui=(e,t)=>new Date(e,t+1,0).getDate(),ci=(e,t)=>new Date(e,t,1).getDay(),at=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),Nr=(e,{minDate:t,maxDate:r,disabledDates:n})=>{if(t){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0));if(o<a)return!0}if(r){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999));if(o>a)return!0}return!!(n!=null&&n.some(o=>at(e,o)))},Ve=c.forwardRef(({className:e,value:t=new Date,onChange:r,minDate:n,maxDate:o,disabled:a=!1,locale:i="en-US",disabledDates:s=[],highlightedDates:l=[],onMouseEnter:u,onMouseLeave:f,...m},p)=>{const[h,y]=c.useState(t),[C,$]=c.useState(null),b=new Intl.DateTimeFormat(i,{month:"long",year:"numeric"}).format(h),g=c.useMemo(()=>{const T=new Intl.DateTimeFormat(i,{weekday:"short"});return Array.from({length:Cr},(I,w)=>{const A=new Date(2022,0,2+w);return T.format(A)})},[i]),O=c.useCallback(()=>{const T=h.getFullYear(),B=h.getMonth(),I=ui(T,B),w=ci(T,B),A=Array(w).fill(null);for(let F=1;F<=I;F++)A.push(new Date(T,B,F));for(;A.length<Cr*li;)A.push(null);return A},[h]),U=T=>{!a&&!Nr(T,{minDate:n,maxDate:o,disabledDates:s})&&(r==null||r(T))},x=(T,B)=>{if(!a)switch(T.key){case"ArrowLeft":T.preventDefault(),$(new Date(B.getFullYear(),B.getMonth(),B.getDate()-1));break;case"ArrowRight":T.preventDefault(),$(new Date(B.getFullYear(),B.getMonth(),B.getDate()+1));break;case"ArrowUp":T.preventDefault(),$(new Date(B.getFullYear(),B.getMonth(),B.getDate()-7));break;case"ArrowDown":T.preventDefault(),$(new Date(B.getFullYear(),B.getMonth(),B.getDate()+7));break;case"Enter":case" ":T.preventDefault(),U(B);break}},H=T=>{y(B=>new Date(B.getFullYear(),B.getMonth()+T,1))};return c.useEffect(()=>{if(C){const T=C.getMonth(),B=h.getMonth();T!==B&&y(C)}},[C,h]),d.jsxs("div",{ref:p,className:v("w-[230px] p-4 lg:w-[300px]",a&&"cursor-not-allowed opacity-50",e),...m,children:[d.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[d.jsx("button",{type:"button",onClick:()=>H(-1),disabled:a,className:v("rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":"Previous month",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:d.jsx("path",{d:"m15 18-6-6 6-6"})})}),d.jsx("div",{className:"font-medium",children:b}),d.jsx("button",{type:"button",onClick:()=>H(1),disabled:a,className:v("rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":"Next month",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:d.jsx("path",{d:"m9 18 6-6-6-6"})})})]}),d.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1 text-center text-sm",role:"row",children:g.map((T,B)=>d.jsx("div",{className:"text-muted-foreground","aria-label":T,children:T.charAt(0)},B))}),d.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid",children:O().map((T,B)=>{if(!T)return d.jsx("div",{role:"gridcell"},B);const I=t&&at(T,t),w=l.some(P=>at(T,P)),A=Nr(T,{minDate:n,maxDate:o,disabledDates:s}),F=C&&at(T,C);return d.jsx("button",{type:"button",onClick:()=>U(T),onKeyDown:P=>x(P,T),onFocus:()=>$(T),onMouseEnter:()=>u==null?void 0:u(T),onMouseLeave:()=>f==null?void 0:f(T),disabled:a||A,className:v("aspect-square rounded-md p-1 text-xs","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","hover:bg-accent hover:text-accent-foreground","disabled:cursor-not-allowed disabled:opacity-50",I&&"bg-primary text-primary-foreground hover:bg-primary/90",w&&!I&&"bg-accent text-accent-foreground",F&&!I&&"ring-1 ring-ring"),role:"gridcell","aria-selected":I,tabIndex:F?0:-1,children:T.getDate()},B)})})]})});Ve.displayName="Calendar";const lt=c.forwardRef(({className:e,label:t,error:r,indeterminate:n,disabled:o,...a},i)=>{const s=c.useRef(null),[l,u]=c.useState(a.defaultChecked??!1),f=a.checked!==void 0,m=f?a.checked:l;c.useEffect(()=>{s.current&&(s.current.indeterminate=n||!1)},[n]),c.useEffect(()=>{i&&(typeof i=="function"?i(s.current):i.current=s.current)},[i]);const p=h=>{var y;f||u(h.target.checked),(y=a.onChange)==null||y.call(a,h)};return d.jsxs("div",{children:[d.jsxs("label",{className:v("relative flex cursor-pointer items-center",o&&"cursor-not-allowed"),children:[d.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[d.jsx("input",{type:"checkbox",ref:s,disabled:o,checked:m,onChange:p,className:"peer absolute h-4 w-4 cursor-pointer opacity-0","aria-invalid":r?"true":"false",...a}),d.jsx("div",{className:v("relative h-4 w-4 shrink-0 rounded-sm border border-foreground/30 shadow-sm transition-colors","peer-focus-visible:outline-none peer-focus-visible:ring-1 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2",(m||n)&&"border-foreground/70 bg-foreground/70 text-background",o&&"cursor-not-allowed opacity-50",r&&"border-destructive peer-focus-visible:ring-destructive",r&&(m||n)&&"border-destructive bg-destructive",e),children:(m||n)&&d.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-current",children:n?d.jsx(oi,{className:"h-3 w-3",strokeWidth:3}):d.jsx(Hn,{className:"h-3 w-3",strokeWidth:3})})})]}),t&&d.jsx("span",{className:v("ml-2 text-sm font-medium text-foreground/85",o&&"cursor-not-allowed opacity-50",r&&"text-destructive"),children:t})]}),r&&d.jsx("p",{className:"ml-6 mt-0.5 text-sm text-destructive",role:"alert",children:r})]})});lt.displayName="Checkbox";const Yn=c.forwardRef(({options:e,value:t,onChange:r,placeholder:n="Select...",disabled:o=!1,loading:a=!1,multiple:i=!1,maxItems:s,className:l,onInputChange:u,renderOption:f,...m},p)=>{const[h,y]=c.useState(!1),[C,$]=c.useState(""),[b,g]=c.useState(-1),O=c.useRef(null),U=c.useRef(null),x=c.useMemo(()=>t?Array.isArray(t)?t:[t]:[],[t]),H=c.useMemo(()=>e.filter(w=>w.label.toLowerCase().includes(C.toLowerCase())),[e,C]),T=w=>{const A=w.target.value;$(A),y(!0),u==null||u(A),g(0)},B=w=>{if(!w.disabled)if(i){const A=x.includes(w.value)?x.filter(F=>F!==w.value):[...x,w.value];if(s&&A.length>s)return;r==null||r(A),$("")}else r==null||r(w.value),$(""),y(!1)},I=w=>{if(!o)switch(w.key){case"ArrowDown":w.preventDefault(),y(!0),g(A=>A<H.length-1?A+1:A);break;case"ArrowUp":w.preventDefault(),y(!0),g(A=>A>0?A-1:A);break;case"Enter":w.preventDefault(),h&&b>=0&&B(H[b]);break;case"Escape":w.preventDefault(),y(!1),g(-1);break;case"Tab":y(!1);break}};return c.useEffect(()=>{const w=A=>{O.current&&!O.current.contains(A.target)&&y(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),d.jsxs("div",{ref:p,className:v("relative w-full",o&&"cursor-not-allowed opacity-50",l),...m,children:[d.jsxs("div",{className:"relative",children:[d.jsx("input",{ref:U,type:"text",className:v("flex h-9 w-full rounded-md border border-foreground/30 bg-background px-3 py-1.5 text-sm shadow-sm","placeholder:text-muted-foreground text-foreground","focus:outline-none focus:ring-1 focus:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground"),value:C,onChange:T,onKeyDown:I,onClick:()=>y(!0),placeholder:n,disabled:o,role:"combobox","aria-expanded":h,"aria-controls":"combobox-options","aria-activedescendant":b>=0?`option-${H[b].value}`:void 0}),a&&d.jsx("div",{className:"absolute right-3 top-3",children:d.jsx(be,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]}),i&&x.length>0&&d.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:x.map(w=>{const A=e.find(F=>F.value===w);return A?d.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-primary/10 px-2 py-1 text-xs",children:[A.label,d.jsx("button",{onClick:()=>B(A),className:"hover:text-destructive focus:outline-none","aria-label":`Remove ${A.label}`,children:d.jsx(Xe,{className:"h-3 w-3"})})]},w):null})}),h&&H.length>0&&d.jsx("div",{className:v("absolute z-[10001] mt-1 max-h-60 w-full overflow-auto rounded-md border bg-popover p-1 shadow-md","animate-in fade-in-0 zoom-in-95"),id:"combobox-options",role:"listbox",children:H.map((w,A)=>d.jsx("div",{className:v("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground",w.disabled&&"cursor-not-allowed opacity-50",b===A&&"bg-accent text-accent-foreground",x.includes(w.value)&&"font-medium"),role:"option","aria-selected":x.includes(w.value),id:`option-${w.value}`,onClick:()=>B(w),children:f?f(w):w.label},w.value))})]})});Yn.displayName="ComboBox";const zn=c.forwardRef(({className:e,padding:t=!0,centered:r=!0,as:n="div",children:o,...a},i)=>d.jsx(n,{ref:i,className:v("w-full","2xl:max-w-[1500px]","3xl:max-w-[2000px]",t&&"px-4 md:px-6 lg:px-8",r&&"mx-auto",e),...a,children:o}));zn.displayName="Container";const Kn=c.forwardRef(({className:e,value:t,onChange:r,minDate:n,maxDate:o,disabled:a=!1,isLoading:i=!1,locale:s="en-US",disabledDates:l=[],placeholder:u={from:"Start date",to:"End date"},error:f,helperText:m,...p},h)=>{const[y,C]=c.useState(!1),[$,b]=c.useState(null),[g,O]=c.useState(t),U=c.useRef(null),x=c.useRef(null);c.useEffect(()=>{O(t)},[t]);const H=P=>{g.to?P>g.to?O({from:P,to:P}):O({...g,from:P}):O({from:P,to:null})},T=P=>{g.from?P<g.from?O({from:P,to:P}):O({...g,to:P}):O({from:P,to:P})},B=()=>{O({from:null,to:null}),r({from:null,to:null})},I=()=>{r(g),C(!1)},w=c.useMemo(()=>{if(!g.from||g.to||!$)return null;const P=$<g.from;return{from:P?$:g.from,to:P?g.from:$}},[g.from,g.to,$]);c.useEffect(()=>{const P=_=>{var J;x.current&&!x.current.contains(_.target)&&!((J=U.current)!=null&&J.contains(_.target))&&(C(!1),O(t))};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[t]);const A=P=>P?new Intl.DateTimeFormat(s).format(P):"",F=v("shadow-sm flex h-9 items-center justify-between gap-2 rounded-md border border-foreground/30 bg-background px-3 py-1.5","text-sm ring-offset-background placeholder:text-muted-foreground","focus:outline-none focus:ring-1 focus:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",f&&"border-destructive focus:border-destructive focus:ring-destructive focus:ring-1");return d.jsxs("div",{ref:h,className:v("relative inline-block",e),...p,children:[d.jsxs("div",{ref:U,className:"flex gap-2",children:[d.jsxs("button",{type:"button",onClick:()=>!a&&!i&&C(!0),disabled:a||i,className:v(F,"w-[120px] md:w-[150px]"),children:[d.jsx("span",{className:"text-foreground",children:A(t.from)||u.from}),i?d.jsx(be,{className:"h-4 w-4 animate-spin text-muted-foreground"}):d.jsx(st,{className:"h-4 w-4 text-muted-foreground"})]}),d.jsx("span",{className:"flex items-center text-sm text-muted-foreground",children:"to"}),d.jsxs("button",{type:"button",onClick:()=>!a&&!i&&C(!0),disabled:a||i,className:v(F,"w-[120px] md:w-[150px]"),children:[d.jsx("span",{className:"text-foreground",children:A(t.to)||u.to}),i?d.jsx(be,{className:"h-4 w-4 animate-spin text-muted-foreground"}):d.jsx(st,{className:"h-4 w-4 text-muted-foreground"})]})]}),(f||m)&&d.jsx("div",{className:"mt-1 text-sm",children:f?d.jsx("p",{className:"text-destructive",role:"alert",children:f}):d.jsx("p",{className:"text-muted-foreground",children:m})}),y&&!a&&!i&&Te.createPortal(d.jsxs("div",{ref:x,style:{...(()=>{if(!U.current)return{};const P=U.current.getBoundingClientRect();if(window.innerWidth>=1024){const te=window.innerHeight-P.bottom,de=P.top,j=te<360&&de>te;let R=P.left;const X=window.innerWidth-620-8;return R>X&&(R=Math.max(8,X)),{position:"fixed",left:R+"px",...j?{bottom:window.innerHeight-P.top+8+"px"}:{top:P.bottom+8+"px"}}}return{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}})()},className:v("flex flex-col rounded-md bg-popover shadow-lg","animate-in fade-in-0 zoom-in-95 z-[10001] border border-border","max-h-[80vh] max-w-[calc(100vw-2rem)] overflow-auto"),children:[d.jsx("div",{className:"flex flex-col gap-4 p-4",children:d.jsxs("div",{className:"flex flex-col gap-4 md:flex-row",children:[d.jsx(Ve,{value:g.from||void 0,onChange:H,minDate:n,maxDate:o,disabled:a,locale:s,disabledDates:l,highlightedDates:[...g.from&&g.to?Array.from({length:(g.to.getTime()-g.from.getTime())/(1e3*60*60*24)+1},(P,_)=>new Date(g.from.getTime()+_*1e3*60*60*24)):[],...w?Array.from({length:(w.to.getTime()-w.from.getTime())/(1e3*60*60*24)+1},(P,_)=>new Date(w.from.getTime()+_*1e3*60*60*24)):[]],onMouseEnter:P=>b(P),onMouseLeave:()=>b(null)}),d.jsx(Ve,{value:g.to||void 0,onChange:T,minDate:n,maxDate:o,disabled:a,locale:s,disabledDates:l,highlightedDates:[...g.from&&g.to?Array.from({length:(g.to.getTime()-g.from.getTime())/(1e3*60*60*24)+1},(P,_)=>new Date(g.from.getTime()+_*1e3*60*60*24)):[],...w?Array.from({length:(w.to.getTime()-w.from.getTime())/(1e3*60*60*24)+1},(P,_)=>new Date(w.from.getTime()+_*1e3*60*60*24)):[]],onMouseEnter:P=>b(P),onMouseLeave:()=>b(null)})]})}),d.jsxs("div",{className:"sticky bottom-0 right-0 flex w-full justify-end gap-2 border-t border-border bg-popover p-2",children:[d.jsx(Ne,{variant:"outline",onClick:B,children:"Clear"}),d.jsx(Ne,{onClick:I,children:"OK"})]})]}),document.body)]})});Kn.displayName="DateRangePicker";const Pr=7,fi=6,mi=(e,t)=>new Date(e,t+1,0).getDate(),hi=(e,t)=>new Date(e,t,1).getDay(),Ge=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),Sr=(e,{minDate:t,maxDate:r,disabledDates:n})=>{if(t){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0));if(o<a)return!0}if(r){const o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999));if(o>a)return!0}return!!(n!=null&&n.some(o=>Ge(e,o)))},Ft=c.forwardRef(({className:e,value:t,endValue:r,onChange:n,minDate:o,maxDate:a,disabled:i=!1,locale:s="en-US",weekStartsOn:l=0,disabledDates:u=[],highlightedDates:f=[],onMouseEnter:m,onMouseLeave:p,viewDate:h,...y},C)=>{const[$,b]=c.useState(null),[g,O]=c.useState(h);c.useEffect(()=>{O(h)},[h]);const U=new Intl.DateTimeFormat(s,{month:"long",year:"numeric"}).format(g),x=c.useMemo(()=>{const I=new Intl.DateTimeFormat(s,{weekday:"short"}),w=Array.from({length:Pr},(A,F)=>{const P=new Date(2022,0,3+F);return I.format(P)});if(l===0){const A=w.pop();w.unshift(A)}return w},[s,l]),H=c.useCallback(()=>{const I=g.getFullYear(),w=g.getMonth(),A=mi(I,w),F=(hi(I,w)-l+7)%7,P=Array(F).fill(null);for(let _=1;_<=A;_++)P.push(new Date(I,w,_));for(;P.length<Pr*fi;)P.push(null);return P},[g,l]),T=I=>{!i&&!Sr(I,{minDate:o,maxDate:a,disabledDates:u})&&(n==null||n(I))},B=(I,w)=>{if(!i)switch(I.key){case"ArrowLeft":I.preventDefault(),b(new Date(w.getFullYear(),w.getMonth(),w.getDate()-1));break;case"ArrowRight":I.preventDefault(),b(new Date(w.getFullYear(),w.getMonth(),w.getDate()+1));break;case"ArrowUp":I.preventDefault(),b(new Date(w.getFullYear(),w.getMonth(),w.getDate()-7));break;case"ArrowDown":I.preventDefault(),b(new Date(w.getFullYear(),w.getMonth(),w.getDate()+7));break;case"Enter":case" ":I.preventDefault(),T(w);break}};return d.jsxs("div",{ref:C,className:v("w-[260px] p-2 lg:w-[300px] lg:p-4",i&&"cursor-not-allowed opacity-50",e),...y,children:[d.jsx("div",{className:"mb-2 flex items-center justify-center text-sm font-medium lg:mb-4 lg:text-base",children:U}),d.jsx("div",{className:"mb-1 grid grid-cols-7 gap-1 text-center text-xs lg:mb-2 lg:text-sm",role:"row",children:x.map((I,w)=>d.jsx("div",{className:"text-muted-foreground","aria-label":I,children:I.charAt(0)},w))}),d.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid",children:H().map((I,w)=>{if(!I)return d.jsx("div",{role:"gridcell"},w);const A=t&&Ge(I,t),F=r&&Ge(I,r),P=f.some(K=>Ge(I,K)),_=Sr(I,{minDate:o,maxDate:a,disabledDates:u}),J=$&&Ge(I,$);return d.jsx("button",{type:"button",onClick:()=>T(I),onKeyDown:K=>B(K,I),onFocus:()=>b(I),onMouseEnter:()=>m==null?void 0:m(I),onMouseLeave:()=>p==null?void 0:p(I),disabled:i||_,className:v("aspect-square rounded-md p-0.5 text-xs lg:p-1","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","hover:bg-accent hover:text-accent-foreground","disabled:cursor-not-allowed disabled:opacity-50",P&&!A&&!F&&"bg-accent text-accent-foreground",(A||F)&&"bg-primary text-primary-foreground hover:bg-primary/90",J&&!A&&!F&&"ring-1 ring-ring"),role:"gridcell","aria-selected":!!(A||F),tabIndex:J?0:-1,children:I.getDate()},w)})})]})});Ft.displayName="DualCalendar";const gi=(e,t,r,n)=>{c.useEffect(()=>{if(!r)return;const o=()=>{const a=e.current,i=t.current;if(!a||!i)return;const{dropdownHeight:s,dropdownWidth:l,mobileBreakpoint:u,padding:f}=n,m=a.getBoundingClientRect();if(window.innerWidth>=u){const h=window.innerHeight-m.bottom,y=m.top,C=h<s&&y>h,$=Math.max(i.offsetWidth,l);let b=m.left;const g=window.innerWidth-$-f;b>g&&(b=Math.max(f,g)),i.style.left=`${b}px`,i.style.right="auto",i.style.transform="none",C?(i.style.bottom=`${window.innerHeight-m.top+f}px`,i.style.top="auto",i.style.maxHeight=`${y-f*2}px`):(i.style.top=`${m.bottom+f}px`,i.style.bottom="auto",i.style.maxHeight=`${h-f*2}px`)}else i.style.left="50%",i.style.top="50%",i.style.transform="translate(-50%, -50%)",i.style.maxHeight=`${window.innerHeight-f*2}px`};return o(),window.addEventListener("scroll",o,!0),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",o)}},[r,n])},qn=c.forwardRef(({className:e,value:t,onChange:r,minDate:n,maxDate:o,disabled:a=!1,isLoading:i=!1,locale:s="en-US",weekStartsOn:l=0,disabledDates:u=[],placeholder:f={from:"Start Date",to:"End Date"},error:m,helperText:p,showPresets:h=!0,...y},C)=>{const[$,b]=c.useState(!1),[g,O]=c.useState(t),[U,x]=c.useState(!1),H=c.useRef(null),T=c.useRef(null),[B,I]=c.useState(()=>{if(t.from)return new Date(t.from.getFullYear(),t.from.getMonth(),1);const S=new Date;return new Date(S.getFullYear(),S.getMonth(),1)}),[w,A]=c.useState(()=>{if(t.from)return new Date(t.from.getFullYear(),t.from.getMonth()+1,1);const S=new Date;return new Date(S.getFullYear(),S.getMonth()+1,1)}),F=c.useMemo(()=>({dropdownHeight:360,dropdownWidth:720,mobileBreakpoint:1024,padding:8}),[]);gi(H,T,$,F),c.useEffect(()=>{$||O(t)},[t,$]);const P=S=>{if(U)S<g.from?O({...g,to:g.from,from:S}):O({...g,to:S});else if(g.from)if(!g.to)S<g.from?O({from:S,to:g.from}):O({...g,to:S});else{const M=new Date(S.getFullYear(),S.getMonth(),1),V=new Date(S.getFullYear(),S.getMonth()+1,1);I(M),A(V),O({from:S,to:null})}else{const M=new Date(S.getFullYear(),S.getMonth(),1),V=new Date(S.getFullYear(),S.getMonth()+1,1);I(M),A(V),O({from:S,to:null})}},_=()=>{!a&&!i&&(x(!1),b(!0))},J=()=>{if(!a&&!i&&t.from){x(!0),O(t);const S=new Date(t.from.getFullYear(),t.from.getMonth(),1),M=new Date(t.from.getFullYear(),t.from.getMonth()+1,1);I(S),A(M),b(!0)}else!a&&!i&&(x(!1),b(!0))},K=()=>{O({from:null,to:null}),r({from:null,to:null}),x(!1)},ee=S=>{if(!n)return!1;const M=new Date(S.getFullYear(),S.getMonth(),S.getDate(),0,0,0,0),V=new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0);return M<V},te=c.useMemo(()=>{const S=new Date,M=new Date(S),V=!ee(M),Z=new Date(S);Z.setDate(S.getDate()-6);const le=!ee(Z),L=new Date(S.getFullYear(),S.getMonth(),1),me=!ee(L),he=new Date(S.getFullYear(),S.getMonth()-1,1),Se=new Date(S.getFullYear(),S.getMonth(),0),Je=!ee(he);return{today:{from:M,to:M,isValid:V},last7days:{from:Z,to:S,isValid:le},thisMonth:{from:L,to:new Date(S.getFullYear(),S.getMonth()+1,0),isValid:me},lastMonth:{from:he,to:Se,isValid:Je}}},[n]),de=S=>{const M=te;let V=null,Z=null;switch(S){case"today":M.today.isValid&&(V=M.today.from,Z=M.today.to);break;case"last7days":M.last7days.isValid&&(V=M.last7days.from,Z=M.last7days.to);break;case"thisMonth":M.thisMonth.isValid&&(V=M.thisMonth.from,Z=M.thisMonth.to);break;case"lastMonth":M.lastMonth.isValid&&(V=M.lastMonth.from,Z=M.lastMonth.to);break}V&&Z&&(O({from:V,to:Z}),I(new Date(V.getFullYear(),V.getMonth(),1)),A(new Date(V.getFullYear(),V.getMonth()+1,1)))},j=()=>{if(g.from&&!g.to){const S={from:g.from,to:g.from};r(S)}else r(g);b(!1),x(!1)};c.useEffect(()=>{const S=M=>{var V;T.current&&!T.current.contains(M.target)&&!((V=H.current)!=null&&V.contains(M.target))&&(b(!1),O(t),x(!1))};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[t]);const R=S=>S?new Intl.DateTimeFormat(s).format(S):"",X=R(new Date(2e3,11,22)),q=()=>{if(!g.from)return[];if(!g.to)return[g.from];const S=[],M=new Date(g.from);for(;M<=g.to;)S.push(new Date(M)),M.setDate(M.getDate()+1);return S},E=g.from||n,{showPresets:G,...Y}=y;return d.jsxs("div",{ref:C,className:v("relative w-fit",e),...Y,children:[d.jsxs("div",{ref:H,onClick:_,className:v("flex h-9 cursor-pointer items-center gap-2 rounded-md border border-foreground/30 bg-background px-3 shadow-sm",(a||i)&&"cursor-not-allowed bg-muted",m&&"border-destructive"),children:[i?d.jsx(be,{className:"h-4 w-4 shrink-0 animate-spin text-muted-foreground"}):d.jsx(st,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),d.jsxs("button",{type:"button",onClick:_,disabled:a||i,className:v("grid items-center py-1.5 text-xs tabular-nums ring-offset-background","focus-visible:outline-none focus-visible:ring-0","disabled:cursor-not-allowed disabled:text-muted-foreground",t.from?"text-foreground":"text-muted-foreground"),children:[d.jsx("span",{"aria-hidden":!0,className:"col-start-1 row-start-1 invisible whitespace-nowrap font-semibold",children:X.length>=f.from.length?X:f.from}),d.jsx("span",{className:v("col-start-1 row-start-1 whitespace-nowrap",$&&!U&&"font-semibold"),children:R(t.from)||f.from})]}),d.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:"to"}),d.jsxs("button",{type:"button",onClick:S=>{S.stopPropagation(),J()},disabled:a||i,className:v("grid items-center py-1.5 text-xs tabular-nums ring-offset-background","focus-visible:outline-none focus-visible:ring-0","disabled:cursor-not-allowed disabled:text-muted-foreground",t.to?"text-foreground":"text-muted-foreground"),children:[d.jsx("span",{"aria-hidden":!0,className:"col-start-1 row-start-1 invisible whitespace-nowrap font-semibold",children:X.length>=f.to.length?X:f.to}),d.jsx("span",{className:v("col-start-1 row-start-1 whitespace-nowrap",$&&U&&"font-semibold"),children:R(t.to)||f.to})]})]}),(m||p)&&d.jsx("div",{className:"mt-1 text-sm",children:m?d.jsx("p",{className:"text-destructive",role:"alert",children:m}):d.jsx("p",{className:"text-muted-foreground",children:p})}),$&&!a&&!i&&Te.createPortal(d.jsx("div",{ref:T,style:{position:"fixed",maxWidth:"calc(100vw - 2rem)"},className:v("flex flex-col rounded-md bg-popover shadow-lg","z-[10001] border border-border","max-h-[80vh] w-auto min-w-[300px] overflow-auto","lg:max-h-none lg:min-w-[720px] lg:overflow-auto","speculo-scrollbar"),children:d.jsxs("div",{className:"flex min-h-fit flex-col gap-4 p-2 pt-5 lg:p-4",children:[d.jsxs("div",{className:"flex flex-col lg:flex-row",children:[h&&d.jsx("div",{className:"flex flex-col border-r border-border p-4 pr-6",children:d.jsxs("div",{className:"w-[150px]",children:[d.jsx("button",{className:v("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",te.today.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>te.today.isValid&&de("today"),disabled:!te.today.isValid,children:"Today"}),d.jsx("div",{className:"h-px w-full bg-border"}),d.jsx("button",{className:v("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",te.last7days.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>te.last7days.isValid&&de("last7days"),disabled:!te.last7days.isValid,children:"Last 7 Days"}),d.jsx("div",{className:"h-px w-full bg-border"}),d.jsx("button",{className:v("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",te.thisMonth.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>te.thisMonth.isValid&&de("thisMonth"),disabled:!te.thisMonth.isValid,children:"This Month"}),d.jsx("div",{className:"h-px w-full bg-border"}),d.jsx("button",{className:v("w-full py-2 text-left text-xs font-medium md:py-3 md:text-sm",te.lastMonth.isValid?"text-foreground hover:text-primary focus:text-primary active:text-primary":"cursor-not-allowed text-muted-foreground"),onClick:()=>te.lastMonth.isValid&&de("lastMonth"),disabled:!te.lastMonth.isValid,children:"Last Month"}),d.jsx("div",{className:"h-px w-full bg-border"}),d.jsx("button",{className:"w-full py-2 text-left text-xs font-medium text-foreground hover:text-primary focus:text-primary active:text-primary md:py-3 md:text-sm",onClick:()=>K(),children:"Custom"})]})}),d.jsxs("div",{className:"flex",children:[d.jsx("button",{className:v("mt-[18px] h-fit rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a&&"cursor-not-allowed opacity-50"),type:"button",onClick:()=>{const S=new Date(B.getFullYear(),B.getMonth()-1,1),M=new Date(w.getFullYear(),w.getMonth()-1,1);I(S),A(M)},disabled:a||n&&B<=new Date(n.getFullYear(),n.getMonth(),1),"aria-label":"Previous months",children:d.jsx(Ja,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex flex-1 gap-4",children:[d.jsx(Ft,{value:g.from,endValue:g.to,onChange:P,minDate:n,maxDate:o,disabled:a,locale:s,weekStartsOn:l,disabledDates:u,highlightedDates:q(),viewDate:B}),d.jsx(Ft,{value:g.from,endValue:g.to,onChange:P,minDate:E,maxDate:o,disabled:a,locale:s,weekStartsOn:l,disabledDates:u,highlightedDates:q(),viewDate:w,className:"hidden md:block"})]}),d.jsx("button",{type:"button",onClick:()=>{const S=new Date(B.getFullYear(),B.getMonth()+1,1),M=new Date(w.getFullYear(),w.getMonth()+1,1);I(S),A(M)},disabled:a||o&&w>=new Date(o.getFullYear(),o.getMonth(),1),className:v("mt-[18px] h-fit rounded-md p-2 hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a&&"cursor-not-allowed opacity-50"),"aria-label":"Next months",children:d.jsx(Qa,{className:"h-4 w-4"})})]})]}),d.jsx("div",{className:"sticky bottom-0 right-0 flex w-full justify-end border-t border-border bg-popover p-2",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx(Ne,{variant:"outline",onClick:K,children:"Clear"}),d.jsx(Ne,{onClick:j,children:"OK"})]})})]})}),document.body)]})});qn.displayName="DualDateRangePicker";const Xn=c.forwardRef(({className:e,value:t,onChange:r,minDate:n,maxDate:o,disabled:a=!1,isLoading:i=!1,locale:s="en-US",disabledDates:l=[],placeholder:u="Select date",error:f,helperText:m,...p},h)=>{var I;const[y,C]=c.useState(!1),[$,b]=c.useState(t),g=c.useRef(null),O=c.useRef(null);c.useEffect(()=>{if(!y)return;const w=()=>{if(O.current&&g.current){const A=g.current.getBoundingClientRect(),F=360,P=window.innerHeight-A.bottom,_=A.top,J=P<F&&_>P;O.current.style.left=`${A.left}px`,J?(O.current.style.bottom=`${window.innerHeight-A.top+8}px`,O.current.style.top="auto"):(O.current.style.top=`${A.bottom+8}px`,O.current.style.bottom="auto")}};return w(),window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w)}},[y]),c.useEffect(()=>{b(t)},[t]);const U=w=>{b(w)},x=()=>{b(null),r(null),C(!1)},H=()=>{r($),C(!1)};c.useEffect(()=>{const w=A=>{var P;const F=A.target;O.current&&!O.current.contains(F)&&!((P=g.current)!=null&&P.contains(F))&&(C(!1),b(t))};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[t]);const T=w=>w?new Intl.DateTimeFormat(s).format(w):"",B=v("shadow-sm flex h-9 items-center justify-between rounded-md border border-foreground/30 bg-background px-3 py-1.5","text-xs placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",f&&"border-destructive focus-visible:border-destructive focus-visible:ring-destructive focus-visible:ring-1");return d.jsxs("div",{ref:h,className:v("relative w-full",e),...p,children:[d.jsxs("button",{ref:g,type:"button",onClick:()=>!a&&!i&&C(!0),disabled:a||i,className:v(B,"w-full"),children:[d.jsx("span",{className:v("flex-1 text-left",t?"text-foreground":"text-muted-foreground"),children:T(t)||u}),i?d.jsx(be,{className:"ml-2 h-4 w-4 shrink-0 animate-spin text-muted-foreground"}):d.jsx(st,{className:"ml-2 h-4 w-4 shrink-0 text-muted-foreground"})]}),(f||m)&&d.jsx("div",{className:"mt-1 text-sm",children:f?d.jsx("p",{className:"text-destructive",role:"alert",children:f}):d.jsx("p",{className:"text-muted-foreground",children:m})}),y&&!a&&!i&&Te.createPortal(d.jsxs("div",{ref:O,style:{position:"fixed",left:((I=g.current)==null?void 0:I.getBoundingClientRect().left)+"px",...(()=>{if(!g.current)return{top:0};const w=g.current.getBoundingClientRect(),A=360,F=window.innerHeight-w.bottom,P=w.top;return F<A&&P>F?{bottom:window.innerHeight-w.top+8+"px"}:{top:w.bottom+8+"px"}})()},className:v("flex flex-col rounded-md bg-popover p-2 shadow-lg","z-[10001] border border-border"),children:[d.jsx(Ve,{value:$||void 0,onChange:U,minDate:n,maxDate:o,disabled:a,locale:s,disabledDates:l}),d.jsxs("div",{className:"mt-2 flex justify-end gap-2 border-t pt-2",children:[d.jsx(Ne,{variant:"outline",size:"sm",onClick:x,children:"Clear"}),d.jsx(Ne,{size:"sm",onClick:H,children:"OK"})]})]}),document.body)]})});Xn.displayName="DatePicker";const Zn=c.forwardRef(({className:e,value:t,onChange:r,minTime:n,maxTime:o,disabled:a=!1,isLoading:i=!1,use24Hour:s=!1,placeholder:l="Select time",error:u,helperText:f,step:m=15,...p},h)=>{var A,F;const[y,C]=c.useState(!1),[$,b]=c.useState(t),g=c.useRef(null),O=c.useRef(null);c.useEffect(()=>{if(!y)return;const P=()=>{if(O.current&&g.current){const _=g.current.getBoundingClientRect(),J=320,K=window.innerHeight-_.bottom,ee=_.top,te=K<J&&ee>K;O.current.style.left=`${_.left}px`,O.current.style.width=`${_.width}px`,te?(O.current.style.bottom=`${window.innerHeight-_.top+8}px`,O.current.style.top="auto"):(O.current.style.top=`${_.bottom+8}px`,O.current.style.bottom="auto")}};return P(),window.addEventListener("scroll",P,!0),window.addEventListener("resize",P),()=>{window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P)}},[y]),c.useEffect(()=>{b(t)},[t]);const U=P=>{const[_,J]=P.split(":").map(Number);return _*60+J},x=P=>{const _=Math.floor(P/60),J=P%60;return`${_.toString().padStart(2,"0")}:${J.toString().padStart(2,"0")}`},H=c.useMemo(()=>{const P=[],_=n?U(n):0,J=o?U(o):24*60-1;for(let K=_;K<=J;K+=m)P.push(x(K));return P},[n,o,m]),T=P=>{if(!P)return"";if(s)return P;const[_,J]=P.split(":").map(Number),K=_>=12?"PM":"AM";return`${_%12||12}:${J.toString().padStart(2,"0")} ${K}`},B=P=>{b(P),r(P),C(!1)},I=()=>{b(null),r(null),C(!1)};c.useEffect(()=>{const P=_=>{var K;const J=_.target;O.current&&!O.current.contains(J)&&!((K=g.current)!=null&&K.contains(J))&&(C(!1),b(t))};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[t]);const w=v("shadow-sm flex h-9 items-center justify-between rounded-md border border-foreground/30 bg-background px-3 py-1.5","text-xs ring-offset-background placeholder:text-muted-foreground","focus:outline-none focus:ring-1 focus:ring-ring","disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",u&&"border-destructive focus:border-destructive focus:ring-destructive focus:ring-1");return d.jsxs("div",{ref:h,className:v("relative w-full",e),...p,children:[d.jsxs("button",{ref:g,type:"button",onClick:()=>!a&&!i&&C(!0),disabled:a||i,className:v(w,"w-full"),children:[d.jsx("span",{className:v("flex-1 text-left",t?"text-foreground":"text-muted-foreground"),children:t?T(t):l}),i?d.jsx(be,{className:"ml-2 h-4 w-4 shrink-0 animate-spin text-muted-foreground"}):d.jsx(ti,{className:"ml-2 h-4 w-4 shrink-0 text-muted-foreground"})]}),(u||f)&&d.jsx("div",{className:"mt-1 text-sm",children:u?d.jsx("p",{className:"text-destructive",role:"alert",children:u}):d.jsx("p",{className:"text-muted-foreground",children:f})}),y&&!a&&!i&&Te.createPortal(d.jsxs("div",{ref:O,style:{position:"fixed",left:((A=g.current)==null?void 0:A.getBoundingClientRect().left)+"px",...(()=>{if(!g.current)return{top:0};const P=g.current.getBoundingClientRect(),_=320,J=window.innerHeight-P.bottom,K=P.top;return J<_&&K>J?{bottom:window.innerHeight-P.top+8+"px"}:{top:P.bottom+8+"px"}})(),width:((F=g.current)==null?void 0:F.getBoundingClientRect().width)+"px"},className:v("flex flex-col rounded-md border border-border bg-popover p-2 shadow-lg","animate-in fade-in-0 zoom-in-95 z-[10001] max-h-[320px]"),children:[d.jsx("div",{className:"flex flex-col overflow-auto",style:{scrollbarWidth:"thin"},children:H.map(P=>d.jsx("button",{onClick:()=>B(P),className:v("rounded-md px-3 py-1.5 text-left text-xs hover:bg-accent hover:text-accent-foreground",P===$&&"bg-accent font-medium"),children:T(P)},P))}),d.jsx("div",{className:"mt-2 flex justify-end gap-2 border-t border-border pt-2",children:d.jsx(Ne,{variant:"outline",size:"sm",onClick:I,children:"Clear"})})]}),document.body)]})});Zn.displayName="TimePicker";const Jn=({children:e,className:t,onClose:r})=>d.jsxs("div",{className:v("flex items-center justify-between border-b border-border px-4 py-2.5 md:px-6 md:py-3",t),children:[d.jsx("div",{className:"text-base font-semibold text-foreground md:text-lg",children:e}),r&&d.jsxs("button",{type:"button",className:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",onClick:r,children:[d.jsx("span",{className:"sr-only",children:"Close"}),d.jsx(Xe,{className:"h-4 w-4"})]})]}),pi=({children:e,className:t})=>d.jsx("div",{className:v("min-h-0 flex-1 overflow-y-auto px-4 py-3 md:px-6 md:py-4",t),children:e}),$i=({children:e,className:t})=>d.jsx("div",{className:v("flex items-center justify-end gap-2 border-t border-border px-4 py-3 md:px-6 md:py-4",t),children:e}),yi={left:{sm:"w-screen md:w-80",md:"w-screen md:w-96",lg:"w-screen md:w-[512px]",xl:"w-screen md:w-[640px]",full:"w-screen h-[100dvh]"},right:{sm:"w-screen md:w-80",md:"w-screen md:w-96",lg:"w-screen md:w-[512px]",xl:"w-screen md:w-[640px]",full:"w-screen h-[100dvh]"},top:{sm:"w-screen h-[50dvh] md:h-48 md:w-auto",md:"w-screen h-[50dvh] md:h-64 md:w-auto",lg:"w-screen h-[50dvh] md:h-96 md:w-auto",xl:"w-screen h-[60dvh] md:h-[512px] md:w-auto",full:"w-screen h-[100dvh]"},bottom:{sm:"w-screen h-[50dvh] md:h-48 md:w-auto",md:"w-screen h-[50dvh] md:h-64 md:w-auto",lg:"w-screen h-[50dvh] md:h-96 md:w-auto",xl:"w-screen h-[60dvh] md:h-[512px] md:w-auto",full:"w-screen h-[100dvh]"}},bi={left:"left-0 top-0 h-[100dvh]",right:"right-0 top-0 h-[100dvh]",top:"top-0 left-0 w-full",bottom:"bottom-0 left-0 w-full"},Qn=c.forwardRef(({open:e,onClose:t,children:r,side:n="right",size:o="md",overlay:a=!0,closeOnOverlayClick:i=!0,closeOnEsc:s=!0},l)=>{const[u,f]=c.useState(e),m=c.useRef(null);if(c.useEffect(()=>{if(e){f(!0),m.current=document.activeElement;const h=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${h}px`,document.body.style.overflow="hidden",requestAnimationFrame(()=>{l&&typeof l=="function"?l(document.activeElement):l!=null&&l.current&&l.current.focus()})}else document.body.style.overflow="",document.body.style.paddingRight="",setTimeout(()=>{f(!1)},300);return()=>{document.body.style.overflow="",document.body.style.paddingRight="",m.current&&m.current.focus()}},[e,l]),c.useEffect(()=>{if(s){const h=y=>{y.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)}},[s,t]),!u&&!e)return null;const p={left:e?"translate-x-0":"-translate-x-full",right:e?"translate-x-0":"translate-x-full",top:e?"translate-y-0":"-translate-y-full",bottom:e?"translate-y-0":"translate-y-full"}[n];return d.jsxs("div",{className:"fixed inset-0 z-50",ref:l,children:[a&&d.jsx("div",{className:v("fixed inset-0 bg-black/40 backdrop-blur-sm transition-opacity duration-200 ease-in-out",e?"opacity-100":"opacity-0"),onClick:i?t:void 0,"aria-hidden":"true"}),d.jsx("div",{role:"dialog","aria-modal":"true",tabIndex:-1,className:v("fixed border border-border bg-background shadow-lg outline-none transition-transform duration-300 ease-in-out",bi[n],yi[n][o],p),onKeyDown:h=>{h.key==="Escape"&&s&&t()},children:d.jsx("div",{className:"flex h-full flex-col",children:c.Children.map(r,h=>c.isValidElement(h)&&h.type===Jn?c.cloneElement(h,{onClose:t}):h)})})]})});Qn.displayName="Drawer";const pt=Qn;pt.Header=Jn;pt.Body=pi;pt.Footer=$i;const eo=({children:e,className:t,error:r,required:n})=>d.jsx("div",{className:v("relative space-y-1.5",t),children:c.Children.map(e,o=>c.isValidElement(o)?c.cloneElement(o,{...o.props,error:r||o.props.error,required:n||o.props.required,"aria-required":n||o.props.required,"aria-invalid":r?"true":void 0}):o)});eo.displayName="FormControl";const to=c.forwardRef(({children:e,className:t,required:r,...n},o)=>d.jsxs("label",{ref:o,className:v("block text-sm font-medium text-foreground/85",t),...n,children:[e,r&&d.jsx("span",{className:"ml-2 text-destructive","aria-hidden":"true",children:"*"})]}));to.displayName="FormLabel";const ro=({children:e,className:t})=>e?d.jsx("p",{className:v("mt-1 text-sm text-destructive",t),role:"alert",children:e}):null;ro.displayName="FormErrorMessage";const no=({children:e,className:t})=>e?d.jsx("p",{className:v("mt-1 text-sm text-muted-foreground",t),children:e}):null;no.displayName="FormHelperText";const vi={Control:eo,Label:to,ErrorMessage:ro,HelperText:no},oo=c.forwardRef(({className:e,trigger:t,children:r,openDelay:n=200,closeDelay:o=300,side:a="bottom",align:i="center",arrow:s=!0,...l},u)=>{const[f,m]=c.useState(!1),p=c.useRef(null),h=c.useRef(),y=()=>{clearTimeout(h.current),h.current=setTimeout(()=>{m(!0)},n)},C=()=>{clearTimeout(h.current),h.current=setTimeout(()=>{m(!1)},o)};c.useEffect(()=>()=>{clearTimeout(h.current)},[]);const $=()=>{if(!p.current)return{};const b={};switch(a){case"top":b.bottom="100%";break;case"right":b.left="100%";break;case"bottom":b.top="100%";break;case"left":b.right="100%";break}switch(i){case"start":b[a==="left"||a==="right"?"top":"left"]=0;break;case"center":b[a==="left"||a==="right"?"top":"left"]="50%",b.transform="translate(-50%, -50%)";break;case"end":b[a==="left"||a==="right"?"bottom":"right"]=0;break}return b};return d.jsxs("div",{className:"relative inline-block",onMouseEnter:y,onMouseLeave:C,ref:u,...l,children:[d.jsx("div",{ref:p,children:t}),f&&d.jsxs("div",{className:v("absolute z-50 min-w-[220px] rounded-md border bg-popover text-popover-foreground shadow-md outline-none","animate-in fade-in-0 zoom-in-95",e),style:$(),role:"tooltip",children:[s&&d.jsx("div",{className:v("absolute h-2 w-2 rotate-45 border bg-popover",a==="top"&&"bottom-[-5px] border-b border-r",a==="right"&&"left-[-5px] border-l border-t",a==="bottom"&&"top-[-5px] border-l border-t",a==="left"&&"right-[-5px] border-r border-t",i==="start"&&"left-4",i==="center"&&"left-1/2 -translate-x-1/2",i==="end"&&"right-4")}),d.jsx("div",{className:"relative",children:r})]})]})});oo.displayName="HoverCard";const xi={sm:"h-8 py-1 text-xs",md:"h-9 py-1.5 text-xs",lg:"h-10 py-2 text-sm"},ao=c.forwardRef(({className:e,error:t,helperText:r,startIcon:n,endIcon:o,disabled:a,isLoading:i,inputSize:s="md",clearable:l=!1,onClear:u,value:f,defaultValue:m,onChange:p,...h},y)=>{const C=c.useRef(null),[$,b]=c.useState(m??"");c.useImperativeHandle(y,()=>C.current);const g=f!==void 0,O=g?f:$,U=O!==""&&O!==void 0,x=g?f:l?$:void 0,H=!g&&!l?m:void 0,T=K=>{g||b(K.target.value),p==null||p(K)},B=()=>{var K;if(!(a||i)){if(g||b(""),C.current){const ee=(K=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:K.set;ee==null||ee.call(C.current,"");const te=new Event("input",{bubbles:!0});C.current.dispatchEvent(te),C.current.focus()}u==null||u()}},I="shadow-sm block w-full border rounded-md border-foreground/30 bg-background text-foreground placeholder:text-muted-foreground placeholder:text-xs focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",w=t?"border-destructive focus:border-destructive focus:ring-destructive":"",A="absolute inset-y-0 flex items-center pointer-events-none",F="px-3",P=l&&U&&!a&&!i,_=o||i||P,J=v(I,xi[s],w,n?"pl-9":"pl-3",_?"pr-9":"pr-3",e);return d.jsxs("div",{className:"w-full",children:[d.jsxs("div",{className:"relative",children:[n&&d.jsx("div",{className:v(A,"left-0",F,"text-muted-foreground",t&&"text-destructive"),children:n}),d.jsx("input",{ref:C,disabled:a||i,className:J,"aria-invalid":t?"true":"false","aria-describedby":t?`${h.id}-error`:r?`${h.id}-helper`:void 0,value:x,defaultValue:H,onChange:T,...h}),i?d.jsx("div",{className:v(A,"right-0",F,"text-muted-foreground"),children:d.jsx(be,{className:"h-4 w-4 animate-spin"})}):P?d.jsx("button",{type:"button",onClick:B,className:v("absolute inset-y-0 right-0 flex items-center px-3","text-muted-foreground hover:text-foreground","focus:outline-none"),"aria-label":"Clear input",tabIndex:-1,children:d.jsx(Vn,{className:"h-4 w-4"})}):o&&d.jsx("div",{className:v(A,"right-0",F,"text-muted-foreground",t&&"text-destructive"),children:o})]}),(t||r)&&d.jsx("div",{className:"mt-1 text-sm",children:t?d.jsx("p",{className:"text-destructive",id:`${h.id}-error`,role:"alert",children:t}):r?d.jsx("p",{className:"text-muted-foreground",id:`${h.id}-helper`,children:r}):null})]})});ao.displayName="Input";const io=({className:e})=>d.jsx("div",{className:v("absolute inset-0 flex items-center justify-center bg-background/50",e),children:d.jsx(be,{className:"h-8 w-8 animate-spin text-primary"})}),wi={xs:"md:max-w-sm",sm:"md:max-w-xl",base:"md:max-w-2xl",lg:"md:max-w-3xl",xl:"md:max-w-4xl","2xl":"md:max-w-5xl",full:"md:max-w-full"},Ci=({children:e,className:t,onClose:r})=>d.jsxs("div",{className:v("flex items-start justify-between gap-4 border-b border-border bg-muted/50 px-4 py-3 md:rounded-t-lg md:px-5 md:py-3.5 3xl:px-7 3xl:py-5",t),children:[d.jsx("div",{className:"min-w-0 flex-1 text-lg font-semibold text-foreground",children:e}),r&&d.jsxs("button",{type:"button",className:"mt-1.5 shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",onClick:r,children:[d.jsx("span",{className:"sr-only",children:"Close"}),d.jsx(Xe,{className:"h-4 w-4"})]})]}),Ni=({children:e,className:t})=>d.jsx("div",{className:v("overflow-y-auto px-4 py-3 md:px-5 md:py-3.5 3xl:px-7 3xl:py-5",t),children:e}),Pi=({children:e,className:t})=>d.jsx("div",{className:v("flex items-center justify-end gap-2 border-t border-border bg-muted/50 px-4 py-3 md:rounded-b-lg md:px-5 md:py-3.5 3xl:px-7 3xl:py-5",t),children:e}),Ze=({isOpen:e,onClose:t,children:r,size:n="base",closeOnOverlayClick:o=!1,closeOnEsc:a=!0,initialFocus:i,className:s,loading:l=!1})=>{const u=c.useRef(null),f=c.useRef(null);c.useEffect(()=>{if(!e||!a)return;const h=y=>{!l&&y.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,a,t]),c.useEffect(()=>{if(!e)return;const h=(i==null?void 0:i.current)||f.current;h==null||h.focus();const y=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",document.body.style.paddingRight=`${y}px`,()=>{document.body.style.overflow="",document.body.style.paddingRight=""}},[e,i]);const m=h=>{!l&&o&&h.target===u.current&&t()};if(!e)return null;const p=c.Children.map(r,h=>c.isValidElement(h)&&h.type===Ze.Header?c.cloneElement(h,{onClose:l?void 0:t}):h);return Te.createPortal(d.jsx("div",{ref:u,className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 backdrop-blur-sm p-0 md:p-2 3xl:p-7",onClick:m,children:d.jsxs("div",{ref:f,className:v("relative flex max-h-[100dvh] w-full flex-col rounded-none border border-border bg-card shadow-lg outline-none md:max-h-[calc(100vh-1rem)] md:rounded-lg 3xl:max-h-[calc(100vh-3.5rem)]",wi[n],l&&"pointer-events-none",s),role:"dialog","aria-modal":"true",tabIndex:-1,children:[p,l&&d.jsx(io,{})]})}),document.body)};Ze.Header=Ci;Ze.Body=Ni;Ze.Footer=Pi;c.createContext(null);const Ue={sm:"h-8 w-8 text-sm",md:"h-10 w-10",lg:"h-12 w-12 text-lg"},We="...",tt=(e,t)=>{const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)},Si=(e,t,r)=>{if(r*2+3>=t)return tt(1,t);const o=Math.max(e-r,1),a=Math.min(e+r,t),i=o>2,s=a<t-1;if(!i&&s){const l=3+2*r;return[...tt(1,l),We,t]}if(i&&!s){const l=3+2*r,u=tt(t-l+1,t);return[1,We,...u]}if(i&&s){const l=tt(o,a);return[1,We,...l,We,t]}return[]},so=c.forwardRef(({className:e,currentPage:t,totalPages:r,onPageChange:n,siblingCount:o=1,showFirstLast:a=!0,size:i="md",disabled:s=!1,...l},u)=>{const f=Si(t,r,o);if(t===0||f.length<2)return null;const m=()=>{!s&&t<r&&n(t+1)},p=()=>{!s&&t>1&&n(t-1)},h=()=>{!s&&t!==1&&n(1)},y=()=>{!s&&t!==r&&n(r)};return d.jsxs("nav",{ref:u,className:v("flex items-center space-x-2",e),"aria-label":"Pagination",...l,children:[a&&d.jsx("button",{className:v("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Ue[i]),onClick:h,disabled:s||t===1,"aria-label":"Go to first page",children:d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[d.jsx("path",{d:"m11 17-5-5 5-5"}),d.jsx("path",{d:"m18 17-5-5 5-5"})]})}),d.jsx("button",{className:v("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Ue[i]),onClick:p,disabled:s||t===1,"aria-label":"Go to previous page",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:d.jsx("path",{d:"m15 18-6-6 6-6"})})}),f.map((C,$)=>C===We?d.jsx("span",{className:"flex items-center justify-center","aria-hidden":"true",children:"…"},$):d.jsx("button",{className:v("inline-flex items-center justify-center rounded-md border","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",C===t?"bg-primary text-primary-foreground hover:bg-primary/90":"hover:bg-accent hover:text-accent-foreground",Ue[i]),onClick:()=>!s&&n(C),disabled:s,"aria-current":C===t?"page":void 0,"aria-label":`Go to page ${C}`,children:C},$)),d.jsx("button",{className:v("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Ue[i]),onClick:m,disabled:s||t===r,"aria-label":"Go to next page",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:d.jsx("path",{d:"m9 18 6-6-6-6"})})}),a&&d.jsx("button",{className:v("inline-flex items-center justify-center rounded-md border","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",Ue[i]),onClick:y,disabled:s||t===r,"aria-label":"Go to last page",children:d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[d.jsx("path",{d:"m13 17 5-5-5-5"}),d.jsx("path",{d:"m6 17 5-5-5-5"})]})})]})});so.displayName="Pagination";const Oi={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[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-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]|2[23]"],"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","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?: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))|7090[0-4])\\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)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|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-9]\\d{9}|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])|9(?:0[25]|42))[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)|6(?:22|33))[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[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-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]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\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{2})(\\d{4})","$1 $2 $3",["2"],"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"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"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,12],[["(\\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[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"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])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($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[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-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,10,11,12],[["(\\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",["(?:19|[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[0-35])|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-3]))|(?: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|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|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|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"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))|7090[0-4])\\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]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\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,12],[["(\\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}",[6,7,8,9,10,11]],["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]],["3[2-8]\\d{9,10}",[11,12]],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",["[36]0|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[0135-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|7090)\\d{5}|(?: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))|7090[0-4])\\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",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"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|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"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]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,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[0467]"]]]],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","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"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|8\\d\\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","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"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]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|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]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\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,12],[["(\\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-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"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|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],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(?:[1245]|3[12])"]],["(\\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,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|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-47-9]|1[02-9]|2[0135-79]|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}"],0,0,0,["305209\\d{4}"]]],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","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],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,12],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|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\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","7093\\d{5}|(?: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])|7093[5-7])\\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}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],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,["348[57]\\d{7}",[11]],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 lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mt={exports:{}},rt={exports:{}},ne={};/** @license React v16.13.1
|
|
107
107
|
* react-is.production.min.js
|
|
108
108
|
*
|
|
109
109
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the MIT license found in the
|
|
112
112
|
* LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/var
|
|
113
|
+
*/var Or;function Ei(){if(Or)return ne;Or=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function O(x){if(typeof x=="object"&&x!==null){var H=x.$$typeof;switch(H){case t:switch(x=x.type,x){case l:case u:case n:case a:case o:case m:return x;default:switch(x=x&&x.$$typeof,x){case s:case f:case y:case h:case i:return x;default:return H}}case r:return H}}}function U(x){return O(x)===u}return ne.AsyncMode=l,ne.ConcurrentMode=u,ne.ContextConsumer=s,ne.ContextProvider=i,ne.Element=t,ne.ForwardRef=f,ne.Fragment=n,ne.Lazy=y,ne.Memo=h,ne.Portal=r,ne.Profiler=a,ne.StrictMode=o,ne.Suspense=m,ne.isAsyncMode=function(x){return U(x)||O(x)===l},ne.isConcurrentMode=U,ne.isContextConsumer=function(x){return O(x)===s},ne.isContextProvider=function(x){return O(x)===i},ne.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},ne.isForwardRef=function(x){return O(x)===f},ne.isFragment=function(x){return O(x)===n},ne.isLazy=function(x){return O(x)===y},ne.isMemo=function(x){return O(x)===h},ne.isPortal=function(x){return O(x)===r},ne.isProfiler=function(x){return O(x)===a},ne.isStrictMode=function(x){return O(x)===o},ne.isSuspense=function(x){return O(x)===m},ne.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===u||x===a||x===o||x===m||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===h||x.$$typeof===i||x.$$typeof===s||x.$$typeof===f||x.$$typeof===$||x.$$typeof===b||x.$$typeof===g||x.$$typeof===C)},ne.typeOf=O,ne}var oe={};/** @license React v16.13.1
|
|
114
114
|
* react-is.development.js
|
|
115
115
|
*
|
|
116
116
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the MIT license found in the
|
|
119
119
|
* LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/var
|
|
120
|
+
*/var Er;function ji(){return Er||(Er=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function O(L){return typeof L=="string"||typeof L=="function"||L===n||L===u||L===a||L===o||L===m||L===p||typeof L=="object"&&L!==null&&(L.$$typeof===y||L.$$typeof===h||L.$$typeof===i||L.$$typeof===s||L.$$typeof===f||L.$$typeof===$||L.$$typeof===b||L.$$typeof===g||L.$$typeof===C)}function U(L){if(typeof L=="object"&&L!==null){var me=L.$$typeof;switch(me){case t:var he=L.type;switch(he){case l:case u:case n:case a:case o:case m:return he;default:var Se=he&&he.$$typeof;switch(Se){case s:case f:case y:case h:case i:return Se;default:return me}}case r:return me}}}var x=l,H=u,T=s,B=i,I=t,w=f,A=n,F=y,P=h,_=r,J=a,K=o,ee=m,te=!1;function de(L){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(L)||U(L)===l}function j(L){return U(L)===u}function R(L){return U(L)===s}function X(L){return U(L)===i}function q(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function E(L){return U(L)===f}function G(L){return U(L)===n}function Y(L){return U(L)===y}function S(L){return U(L)===h}function M(L){return U(L)===r}function V(L){return U(L)===a}function Z(L){return U(L)===o}function le(L){return U(L)===m}oe.AsyncMode=x,oe.ConcurrentMode=H,oe.ContextConsumer=T,oe.ContextProvider=B,oe.Element=I,oe.ForwardRef=w,oe.Fragment=A,oe.Lazy=F,oe.Memo=P,oe.Portal=_,oe.Profiler=J,oe.StrictMode=K,oe.Suspense=ee,oe.isAsyncMode=de,oe.isConcurrentMode=j,oe.isContextConsumer=R,oe.isContextProvider=X,oe.isElement=q,oe.isForwardRef=E,oe.isFragment=G,oe.isLazy=Y,oe.isMemo=S,oe.isPortal=M,oe.isProfiler=V,oe.isStrictMode=Z,oe.isSuspense=le,oe.isValidElementType=O,oe.typeOf=U}()),oe}var jr;function uo(){return jr||(jr=1,process.env.NODE_ENV==="production"?rt.exports=Ei():rt.exports=ji()),rt.exports}/*
|
|
121
121
|
object-assign
|
|
122
122
|
(c) Sindre Sorhus
|
|
123
123
|
@license MIT
|
|
124
|
-
*/var
|
|
125
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
124
|
+
*/var Nt,Tr;function Ti(){if(Tr)return Nt;Tr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nt=o()?Object.assign:function(a,i){for(var s,l=n(a),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var m in s)t.call(s,m)&&(l[m]=s[m]);if(e){u=e(s);for(var p=0;p<u.length;p++)r.call(s,u[p])&&(l[u[p]]=s[u[p]])}}return l},Nt}var Pt,Ir;function ir(){if(Ir)return Pt;Ir=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pt=e,Pt}var St,Ar;function co(){return Ar||(Ar=1,St=Function.call.bind(Object.prototype.hasOwnProperty)),St}var Ot,kr;function Ii(){if(kr)return Ot;kr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ir(),r={},n=co();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,l,u){if(process.env.NODE_ENV!=="production"){for(var f in a)if(n(a,f)){var m;try{if(typeof a[f]!="function"){var p=Error((l||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=a[f](i,f,l,s,null,t)}catch(y){m=y}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+m.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ot=o,Ot}var Et,Rr;function Ai(){if(Rr)return Et;Rr=1;var e=uo(),t=Ti(),r=ir(),n=co(),o=Ii(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return Et=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function m(j){var R=j&&(u&&j[u]||j[f]);if(typeof R=="function")return R}var p="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:g(),arrayOf:O,element:U(),elementType:x(),instanceOf:H,node:w(),objectOf:B,oneOf:T,oneOfType:I,shape:F,exact:P};function y(j,R){return j===R?j!==0||1/j===1/R:j!==j&&R!==R}function C(j,R){this.message=j,this.data=R&&typeof R=="object"?R:{},this.stack=""}C.prototype=Error.prototype;function $(j){if(process.env.NODE_ENV!=="production")var R={},X=0;function q(G,Y,S,M,V,Z,le){if(M=M||p,Z=Z||S,le!==r){if(l){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var me=M+":"+S;!R[me]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+M+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[me]=!0,X++)}}return Y[S]==null?G?Y[S]===null?new C("The "+V+" `"+Z+"` is marked as required "+("in `"+M+"`, but its value is `null`.")):new C("The "+V+" `"+Z+"` is marked as required in "+("`"+M+"`, but its value is `undefined`.")):null:j(Y,S,M,V,Z)}var E=q.bind(null,!1);return E.isRequired=q.bind(null,!0),E}function b(j){function R(X,q,E,G,Y,S){var M=X[q],V=K(M);if(V!==j){var Z=ee(M);return new C("Invalid "+G+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+E+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return $(R)}function g(){return $(i)}function O(j){function R(X,q,E,G,Y){if(typeof j!="function")return new C("Property `"+Y+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var S=X[q];if(!Array.isArray(S)){var M=K(S);return new C("Invalid "+G+" `"+Y+"` of type "+("`"+M+"` supplied to `"+E+"`, expected an array."))}for(var V=0;V<S.length;V++){var Z=j(S,V,E,G,Y+"["+V+"]",r);if(Z instanceof Error)return Z}return null}return $(R)}function U(){function j(R,X,q,E,G){var Y=R[X];if(!s(Y)){var S=K(Y);return new C("Invalid "+E+" `"+G+"` of type "+("`"+S+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return $(j)}function x(){function j(R,X,q,E,G){var Y=R[X];if(!e.isValidElementType(Y)){var S=K(Y);return new C("Invalid "+E+" `"+G+"` of type "+("`"+S+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return $(j)}function H(j){function R(X,q,E,G,Y){if(!(X[q]instanceof j)){var S=j.name||p,M=de(X[q]);return new C("Invalid "+G+" `"+Y+"` of type "+("`"+M+"` supplied to `"+E+"`, expected ")+("instance of `"+S+"`."))}return null}return $(R)}function T(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function R(X,q,E,G,Y){for(var S=X[q],M=0;M<j.length;M++)if(y(S,j[M]))return null;var V=JSON.stringify(j,function(le,L){var me=ee(L);return me==="symbol"?String(L):L});return new C("Invalid "+G+" `"+Y+"` of value `"+String(S)+"` "+("supplied to `"+E+"`, expected one of "+V+"."))}return $(R)}function B(j){function R(X,q,E,G,Y){if(typeof j!="function")return new C("Property `"+Y+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var S=X[q],M=K(S);if(M!=="object")return new C("Invalid "+G+" `"+Y+"` of type "+("`"+M+"` supplied to `"+E+"`, expected an object."));for(var V in S)if(n(S,V)){var Z=j(S,V,E,G,Y+"."+V,r);if(Z instanceof Error)return Z}return null}return $(R)}function I(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var R=0;R<j.length;R++){var X=j[R];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(X)+" at index "+R+"."),i}function q(E,G,Y,S,M){for(var V=[],Z=0;Z<j.length;Z++){var le=j[Z],L=le(E,G,Y,S,M,r);if(L==null)return null;L.data&&n(L.data,"expectedType")&&V.push(L.data.expectedType)}var me=V.length>0?", expected one of type ["+V.join(", ")+"]":"";return new C("Invalid "+S+" `"+M+"` supplied to "+("`"+Y+"`"+me+"."))}return $(q)}function w(){function j(R,X,q,E,G){return _(R[X])?null:new C("Invalid "+E+" `"+G+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return $(j)}function A(j,R,X,q,E){return new C((j||"React class")+": "+R+" type `"+X+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function F(j){function R(X,q,E,G,Y){var S=X[q],M=K(S);if(M!=="object")return new C("Invalid "+G+" `"+Y+"` of type `"+M+"` "+("supplied to `"+E+"`, expected `object`."));for(var V in j){var Z=j[V];if(typeof Z!="function")return A(E,G,Y,V,ee(Z));var le=Z(S,V,E,G,Y+"."+V,r);if(le)return le}return null}return $(R)}function P(j){function R(X,q,E,G,Y){var S=X[q],M=K(S);if(M!=="object")return new C("Invalid "+G+" `"+Y+"` of type `"+M+"` "+("supplied to `"+E+"`, expected `object`."));var V=t({},X[q],j);for(var Z in V){var le=j[Z];if(n(j,Z)&&typeof le!="function")return A(E,G,Y,Z,ee(le));if(!le)return new C("Invalid "+G+" `"+Y+"` key `"+Z+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(X[q],null," ")+`
|
|
125
|
+
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var L=le(S,Z,E,G,Y+"."+Z,r);if(L)return L}return null}return $(R)}function _(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(_);if(j===null||s(j))return!0;var R=m(j);if(R){var X=R.call(j),q;if(R!==j.entries){for(;!(q=X.next()).done;)if(!_(q.value))return!1}else for(;!(q=X.next()).done;){var E=q.value;if(E&&!_(E[1]))return!1}}else return!1;return!0;default:return!1}}function J(j,R){return j==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function K(j){var R=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":J(R,j)?"symbol":R}function ee(j){if(typeof j>"u"||j===null)return""+j;var R=K(j);if(R==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return R}function te(j){var R=ee(j);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function de(j){return!j.constructor||!j.constructor.name?p:j.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Et}var jt,Fr;function ki(){if(Fr)return jt;Fr=1;var e=ir();function t(){}function r(){}return r.resetWarningCache=t,jt=function(){function n(i,s,l,u,f,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},jt}if(process.env.NODE_ENV!=="production"){var Ri=uo(),Fi=!0;Mt.exports=Ai()(Ri.isElement,Fi)}else Mt.exports=ki()();var Mi=Mt.exports;const k=lo(Mi);var fo={exports:{}};/*!
|
|
126
126
|
Copyright (c) 2018 Jed Watson.
|
|
127
127
|
Licensed under the MIT License (MIT), see
|
|
128
128
|
http://jedwatson.github.io/classnames
|
|
129
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var
|
|
130
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
131
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ni(e,t){if(e){if(typeof e=="string")return yr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yr(e,t)}}function yr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",r=arguments.length>2?arguments[2]:void 0;if(!e)return function(o){return{text:o}};var n=Pt(t,e);return function(o){if(!o)return{text:"",template:e};for(var a=0,i="",d=Ci(e.split("")),l;!(l=d()).done;){var u=l.value;if(u!==t){i+=u;continue}if(i+=o[a],a++,a===o.length&&o.length<n)break}return r&&(i=wi(i,e)),{text:i,template:e}}}function Si(e,t,r){typeof r=="string"&&(r=Pi(r));var n=r(e)||{},o=n.text,a=n.template;if(o===void 0&&(o=e),a)if(t===void 0)t=o.length;else{for(var i=0,d=!1,l=-1;i<o.length&&i<a.length;){if(o[i]!==a[i]){if(t===0){d=!0,t=i;break}l=i,t--}i++}d||(t=l+1)}return{text:o,caret:t}}function Oi(e){return e.hasAttribute("readonly")}function Ei(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var br={Backspace:8,Delete:46};function ji(e){switch(e.keyCode){case br.Backspace:return"Backspace";case br.Delete:return"Delete"}}function Ii(e){return e.selectionStart}function Kn(e,t){t!==void 0&&(Ti()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function Ti(){if(typeof navigator<"u")return Ai.test(navigator.userAgent)}var Ai=/Android/i;function ki(e,t,r,n,o){St(t,r,n,void 0,o)}function Ri(e,t,r,n,o){if(!Oi(t)){var a=ji(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var i=Ei(t);return i?(Fi(t,i),St(t,r,n,void 0,o)):St(t,r,n,a,o)}}}function Fi(e,t){var r=e.value;r=r.slice(0,t.start)+r.slice(t.end),e.value=r,Kn(e,t.start)}function St(e,t,r,n,o){var a=bi(e.value,Ii(e),t),i=a.value,d=a.caret;if(n){var l=yi(i,d,n);i=l.value,d=l.caret}var u=Si(i,d,r),f=u.text;d=u.caret,e.value=f,Kn(e,d),o(i)}var Mi=["value","parse","format","inputComponent","onChange","onKeyDown"];function Ot(){return Ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ot.apply(this,arguments)}function _i(e,t){if(e==null)return{};var r=Di(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Di(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Me(e,t){var r=e.value,n=e.parse,o=e.format,a=e.inputComponent,i=e.onChange,d=e.onKeyDown,l=_i(e,Mi),u=c.useRef(),f=c.useCallback(function(h){u.current=h,t&&(typeof t=="function"?t(h):t.current=h)},[t]),m=c.useCallback(function(h){return ki(h,u.current,n,o,i)},[u,n,o,i]),$=c.useCallback(function(h){if(d&&d(h),!h.defaultPrevented)return Ri(h,u.current,n,o,i)},[u,n,o,i,d]);return c.createElement(a,Ot({},l,{ref:f,value:o(Li(r)?"":r).text,onKeyDown:$,onChange:m}))}Me=c.forwardRef(Me);Me.propTypes={parse:R.func.isRequired,format:R.func.isRequired,inputComponent:R.elementType.isRequired,type:R.string.isRequired,value:R.string,onChange:R.func.isRequired,onKeyDown:R.func,onCut:R.func,onPaste:R.func};Me.defaultProps={inputComponent:"input",type:"text"};function Li(e){return e==null}function Et(e){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(e)}function Bi(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_e(e,t)}function Wi(e){var t=zn();return function(){var n=De(e),o;if(t){var a=De(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return Hi(this,o)}}function Hi(e,t){if(t&&(Et(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yn(e)}function Yn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jt(e){var t=typeof Map=="function"?new Map:void 0;return jt=function(n){if(n===null||!Vi(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return ze(n,arguments,De(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_e(o,n)},jt(e)}function ze(e,t,r){return zn()?ze=Reflect.construct:ze=function(o,a,i){var d=[null];d.push.apply(d,a);var l=Function.bind.apply(o,d),u=new l;return i&&_e(u,i.prototype),u},ze.apply(null,arguments)}function zn(){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 Vi(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _e(e,t){return _e=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},_e(e,t)}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},De(e)}var fe=function(e){Ui(r,e);var t=Wi(r);function r(n){var o;return Gi(this,r),o=t.call(this,n),Object.setPrototypeOf(Yn(o),r.prototype),o.name=o.constructor.name,o}return Bi(r)}(jt(Error)),qt=2,Ki=17,Yi=3,ae="0-90-9٠-٩۰-۹",zi="-‐-―−ー-",qi="//",Xi="..",Zi=" ",Ji="()()[]\\[\\]",Qi="~⁓∼~",le="".concat(zi).concat(qi).concat(Xi).concat(Zi).concat(Ji).concat(Qi),at="++";function vr(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),o=0;o<3;o++){var a=Number(r[o]),i=Number(n[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var ed={}.constructor;function Re(e){return e!=null&&e.constructor===ed}function It(e){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(e)}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function td(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dt(e,t,r){return t&&td(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var rd="1.2.0",nd="1.7.35",xr=" ext. ",od=/^\d+$/,ne=function(){function e(t){it(this,e),sd(t),this.metadata=t,Xn.call(this,t)}return dt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var n=this.countryCallingCodes()[r];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,n){if(r&&od.test(r)&&(n=r,r=null),r&&r!=="001"){if(!this.hasCountry(r))throw new Error("Unknown country: ".concat(r));this.numberingPlan=new wr(this.getCountryMetadata(r),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new wr(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var n=this.countryCallingCodes()[r];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(r){var n=this.getCountryCodesForCallingCode(r);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(r){var n=this.getCountryCodeForCallingCode(r);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var o=this.nonGeographic()[r];if(o)return o}else{var a=this.countryCallingCodes()[r];if(a&&a.length===1&&a[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(r){return this.numberingPlan.type(r)}},{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(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),wr=function(){function e(t,r){it(this,e),this.globalMetadataObject=r,this.metadata=t,Xn.call(this,r.metadata)}return dt(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(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(o){return new ad(o,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[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(r){if(this.hasTypes()&&Cr(this.types(),r))return new dd(Cr(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?xr:this.metadata[13]||xr}}]),e}(),ad=function(){function e(t,r){it(this,e),this._format=t,this.metadata=r}return dt(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()&&!id.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),id=/^\(?\$1\)?$/,dd=function(){function e(t,r){it(this,e),this.type=t,this.metadata=r}return dt(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 Cr(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function sd(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Re(e)||!Re(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(Re(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+ld(e)+": "+e,"."))}var ld=function(t){return It(t)};function ye(e,t){if(t=new ne(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function qn(e,t){return t.countries.hasOwnProperty(e)}function Xn(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?vr(t,rd)===-1?this.v2=!0:vr(t,nd)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var ud=";ext=",xe=function(t){return"([".concat(ae,"]{1,").concat(t,"})")};function Zn(e){var t="20",r="15",n="9",o="6",a="[ \\t,]*",i="[:\\..]?[ \\t,-]*",d="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",u="(?:[xx##~~]|int|int)",f="[- ]+",m="[ \\t]*",$="(?:,{2}|;)",h=ud+xe(t),v=a+l+i+xe(t)+d,P=a+u+i+xe(n)+d,y=f+xe(o)+"#",x=m+$+i+xe(r)+d,p=m+"(?:,)+"+i+xe(n)+d;return h+"|"+v+"|"+P+"|"+y+"|"+x+"|"+p}var cd="["+ae+"]{"+qt+"}",fd="["+at+"]{0,1}(?:["+le+"]*["+ae+"]){3,}["+le+ae+"]*",md=new RegExp("^["+at+"]{0,1}(?:["+le+"]*["+ae+"]){1,2}$","i"),hd=fd+"(?:"+Zn()+")?",gd=new RegExp("^"+cd+"$|^"+hd+"$","i");function pd(e){return e.length>=qt&&gd.test(e)}function $d(e){return md.test(e)}var Nr=new RegExp("(?:"+Zn()+")$","i");function yd(e){var t=e.search(Nr);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(Nr),o=1;o<n.length;){if(n[o])return{number:r,ext:n[o]};o++}}function bd(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=vd(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
133
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
134
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
135
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
136
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
137
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
138
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
139
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
140
|
-
`.concat(JSON.stringify(
|
|
141
|
-
`.concat(JSON.stringify(
|
|
142
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
143
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
144
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Il(e,t){if(e){if(typeof e=="string")return Jr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jr(e,t)}}function Jr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tl(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,i,d;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(l){a=!0,d=l}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw d}}return n}}function Al(e){if(Array.isArray(e))return e}function kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fl(e,t,r){return t&&Rl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ee=function(){function e(t,r){kl(this,e),this.metadata=new ne(r);var n=this.getCountryAndCallingCode(t),o=El(n,2),a=o[0],i=o[1];this.defaultCountry=a,this.defaultCallingCode=i,this.reset()}return Fl(e,[{key:"getCountryAndCallingCode",value:function(r){var n,o;return r&&(Re(r)?(n=r.defaultCountry,o=r.defaultCallingCode):n=r),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,o]}},{key:"input",value:function(r){var n=this.parser.input(r,this.state),o=n.digits,a=n.justLeadingPlus;if(a)this.formattedOutput="+";else if(o){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var i;if(this.metadata.hasSelectedNumberingPlan()&&(i=this.formatter.format(o,this.state)),i===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var d=this.state.getNationalDigits();d&&(i=this.formatter.format(d,this.state))}this.formattedOutput=i?this.getFullNumber(i):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var r=this;return this.state=new Rs({onCountryChange:function(o){r.country=o},onCallingCodeChange:function(o,a){r.metadata.selectNumberingPlan(a,o),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new cl({state:this.state,metadata:this.metadata}),this.parser=new Nl({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var n=this;if(this.isInternational()){var o=function(d){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!d})+d},a=this.state.callingCode;return o(a?r?"".concat(a," ").concat(r):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,n=r.nationalSignificantNumber,o=r.complexPrefixBeforeNationalSignificantNumber,a=r.nationalPrefix,i=n,d=o||a;return d&&(i=d+i),i}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(r?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,se)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(r);return n&&n.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(uo(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var r=this.state,n=r.digits,o=r.callingCode,a=r.country,i=r.nationalSignificantNumber;if(n){if(this.isInternational())return o?"+"+o+i:"+"+n;if(a||o){var d=a?this.metadata.countryCallingCode():o;return"+"+d+i}}}},{key:"getNumber",value:function(){var r=this.state,n=r.nationalSignificantNumber,o=r.carrierCode,a=r.callingCode,i=this._getCountry();if(n&&!(!i&&!a)){if(i&&i===this.defaultCountry){var d=new ne(this.metadata.metadata);d.selectNumberingPlan(i);var l=d.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(l);if(u.length>1){var f=lo(n,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(i=f)}}var m=new oo(i||a,n,this.metadata.metadata);return o&&(m.carrierCode=o),m}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function Qr(e){return new ne(e).getCountries()}function Ml(e,t,r){return r||(r=t,t=void 0),new Ee(t,r).input(e)}function mo(e){var t=e.inputFormat,r=e.country,n=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(ye(r,n)):""}function Dt(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function _l(e,t,r){if(!(r&&r.ignoreRest)){var n=function(a){if(r)switch(a){case"end":r.ignoreRest=!0;break}};return Qn(e,t,n)}}function ho(e){var t=e.onKeyDown,r=e.inputFormat;return c.useCallback(function(n){if(n.keyCode===Ll&&r==="INTERNATIONAL"&&n.target instanceof HTMLInputElement&&Dl(n.target)===Bl.length){n.preventDefault();return}t&&t(n)},[t,r])}function Dl(e){return e.selectionStart}var Ll=8,Bl="+",Gl=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lt.apply(this,arguments)}function Ul(e,t){if(e==null)return{};var r=Wl(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wl(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Hl(e){function t(r,n){var o=r.onKeyDown,a=r.country,i=r.inputFormat,d=r.metadata,l=d===void 0?e:d;r.international,r.withCountryCallingCode;var u=Ul(r,Gl),f=c.useCallback(function($){var h=new Ee(a,l),v=mo({inputFormat:i,country:a,metadata:l}),P=h.input(v+$),y=h.getTemplate();return v&&(P=Dt(P,v),y&&(y=Dt(y,v))),{text:P,template:y}},[a,l]),m=ho({onKeyDown:o,inputFormat:i});return c.createElement(Me,Lt({},u,{ref:n,parse:_l,format:f,onKeyDown:m}))}return t=c.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,onKeyDown:R.func,country:R.string,inputFormat:R.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:R.object},t}const Vl=Hl();var Kl=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bt.apply(this,arguments)}function Yl(e,t){if(e==null)return{};var r=zl(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zl(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ql(e){function t(r,n){var o=r.value,a=r.onChange,i=r.onKeyDown,d=r.country,l=r.inputFormat,u=r.metadata,f=u===void 0?e:u,m=r.inputComponent,$=m===void 0?"input":m;r.international,r.withCountryCallingCode;var h=Yl(r,Kl),v=mo({inputFormat:l,country:d,metadata:f}),P=c.useCallback(function(x){var p=Tt(x.target.value);if(p===o){var j=en(v,p,d,f);j.indexOf(x.target.value)===0&&(p=p.slice(0,-1))}a(p)},[v,o,a,d,f]),y=ho({onKeyDown:i,inputFormat:l});return c.createElement($,Bt({},h,{ref:n,value:en(v,o,d,f),onChange:P,onKeyDown:y}))}return t=c.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,onKeyDown:R.func,country:R.string,inputFormat:R.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:R.object,inputComponent:R.elementType},t}const Xl=ql();function en(e,t,r,n){return Dt(Ml(e+t,r,n),e)}function Zl(e){return tn(e[0])+tn(e[1])}function tn(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var Jl=["value","onChange","options","disabled","readOnly"],Ql=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function eu(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=tu(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
145
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
146
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
147
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wu(e,t){if(e){if(typeof e=="string")return on(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return on(e,t)}}function on(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cu(e,t){for(var r=xu(e),n;!(n=r()).done;){var o=n.value;o&&Nu(o,t)}}function Nu(e,t){typeof e=="function"?e(t):e.current=t}var No=R.shape({country_calling_codes:R.object.isRequired,countries:R.object.isRequired}),Po=R.objectOf(R.string);function me(e,t){var r="+"+ye(e,t);return r}function Pu(e){var t=e.value,r=e.phoneNumber,n=e.defaultCountry,o=e.getAnyCountry,a=e.countries,i=e.required,d=e.metadata,l;return r&&r.country?l=r.country:n&&(!t||Ne(t,n,d))&&(l=n),a&&a.indexOf(l)<0&&(l=void 0),!l&&i&&a&&a.length>0&&(l=o()),l}function Su(e){var t=e.countries,r=e.countryNames,n=e.addInternationalOption,o=e.compareStringsLocales,a=e.compareStrings;a||(a=ku);var i=t.map(function(d){return{value:d,label:r[d]||d}});return i.sort(function(d,l){return a(d.label,l.label,o)}),n&&i.unshift({label:r.ZZ}),i}function So(e,t){return Is(e||"",t)}function Ou(e){return e.formatNational().replace(/\D/g,"")}function Eu(e,t){var r=t.prevCountry,n=t.newCountry,o=t.metadata,a=t.useNationalFormat;if(r===n)return e;if(!e)return a?"":n?me(n,o):"";if(n){if(e[0]==="+"){if(a)return e.indexOf("+"+ye(n,o))===0?Ru(e,n,o):"";if(r){var i=me(n,o);return e.indexOf(i)===0?e:i}else{var d=me(n,o);return e.indexOf(d)===0?e:d}}}else if(e[0]!=="+")return we(e,r,o)||"";return e}function we(e,t,r){if(e){if(e[0]==="+"){if(e==="+")return;var n=new Ee(t,r);return n.input(e),n.getNumberValue()}if(t){var o=Eo(e,t,r);return"+".concat(ye(t,r)).concat(o||"")}}}function ju(e,t,r){var n=Eo(e,t,r);if(n){var o=n.length-Iu(t,r);if(o>0)return e.slice(0,e.length-o)}return e}function Iu(e,t){return t=new ne(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function Oo(e,t){var r=t.country,n=t.countries,o=t.defaultCountry,a=t.latestCountrySelectedByUser,i=t.required,d=t.metadata;if(e==="+")return r;var l=Au(e,d);if(l)return!n||n.indexOf(l)>=0?l:void 0;if(r){if(Ne(e,r,d)){if(a&&Ne(e,a,d))return a;if(o&&Ne(e,o,d))return o;if(!i)return}else if(!i)return}return r}function Tu(e,t){var r=t.prevPhoneDigits,n=t.country,o=t.defaultCountry,a=t.latestCountrySelectedByUser,i=t.countryRequired,d=t.getAnyCountry,l=t.countries,u=t.international,f=t.limitMaxLength,m=t.countryCallingCodeEditable,$=t.metadata;if(u&&m===!1&&n){var h=me(n,$);if(e.indexOf(h)!==0){var v,P=e&&e[0]!=="+";return P?(e=h+e,v=we(e,n,$)):e=h,{phoneDigits:e,value:v,country:n}}}u===!1&&n&&e&&e[0]==="+"&&(e=an(e,n,$)),e&&n&&f&&(e=ju(e,n,$)),e&&e[0]!=="+"&&(!n||u)&&(e="+"+e),!e&&r&&r[0]==="+"&&(u?n=void 0:n=o),e==="+"&&r&&r[0]==="+"&&r.length>1&&(n=void 0);var y;return e&&(e[0]==="+"&&(e==="+"||n&&me(n,$).indexOf(e)===0)?y=void 0:y=we(e,n,$)),y&&(n=Oo(y,{country:n,countries:l,defaultCountry:o,latestCountrySelectedByUser:a,required:!1,metadata:$}),u===!1&&n&&e&&e[0]==="+"&&(e=an(e,n,$),y=we(e,n,$))),!n&&i&&(n=o||d()),{phoneDigits:e,country:n,value:y}}function an(e,t,r){if(e.indexOf(me(t,r))===0){var n=new Ee(t,r);n.input(e);var o=n.getNumber();return o?o.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function Au(e,t){var r=new Ee(null,t);return r.input(e),r.getCountry()}function ku(e,t,r){return String.prototype.localeCompare?e.localeCompare(t,r):e<t?-1:e>t?1:0}function Ru(e,t,r){if(t){var n="+"+ye(t,r);if(e.length<n.length){if(n.indexOf(e)===0)return""}else if(e.indexOf(n)===0)return e.slice(n.length)}for(var o=0,a=Object.keys(r.country_calling_codes);o<a.length;o++){var i=a[o];if(e.indexOf(i)===1)return e.slice(1+i.length)}return""}function Eo(e,t,r){var n=new Ee(t,r);n.input(e);var o=n.getNumber();return o&&o.nationalNumber}function Ne(e,t,r){for(var n=me(t,r),o=0;o<e.length&&o<n.length;){if(e[o]!==n[o])return!1;o++}return!0}function jo(e){var t=e.value,r=e.phoneNumber,n=e.defaultCountry,o=e.international,a=e.useNationalFormat,i=e.metadata;return(o===!1||a)&&r&&r.country?Ou(r):!t&&o&&n?me(n,i):t}function Le(e){"@babel/helpers - typeof";return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(e)}function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dn(Object(r),!0).forEach(function(n){Fu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fu(e,t,r){return t=Mu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mu(e){var t=_u(e,"string");return Le(t)=="symbol"?t:t+""}function _u(e,t){if(Le(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Le(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Du(e,t,r){var n=e.metadata,o=e.countries,a=e.defaultCountry,i=e.value,d=e.reset,l=e.international,u=e.displayInitialValueAsLocalNumber,f=e.initialValueFormat,m=t.defaultCountry,$=t.value,h=t.reset;r.country;var v=r.value,P=r.hasUserSelectedACountry,y=r.latestCountrySelectedByUser,x=function(F){return jo(Ve(Ve({},F),{},{international:l,useNationalFormat:u||f==="national",metadata:n}))};if(d!==h)return{phoneDigits:x({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==m){var p=!a||ut(a,n),j=!v||l&&v===x({value:void 0,defaultCountry:m}),G=!i&&j;if(!P&&p&&G)return{country:a,phoneDigits:x({value:void 0,defaultCountry:a}),value:void 0}}if(!sn(i,$)&&!sn(i,v)){var w,U;if(i){i&&xo(i),w=So(i,n);var k=wo(o,n);w&&w.country?(!k||k.indexOf(w.country)>=0)&&(U=w.country):(U=Oo(i,{country:void 0,countries:k,metadata:n}),U||a&&i.indexOf(me(a,n))===0&&(U=a))}var L;if(i){if(y){var T=U?y===U:Ne(i,y,n);T?U||(U=y):L={latestCountrySelectedByUser:void 0}}}else L={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return Ve(Ve({},L),{},{phoneDigits:x({phoneNumber:w,value:i,defaultCountry:a}),value:i,country:i?U:a})}}function sn(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var Lu=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(e)}function ln(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ln(Object(r),!0).forEach(function(n){de(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ln(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pe.apply(this,arguments)}function Bu(e,t){if(e==null)return{};var r=Gu(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Uu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function un(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ao(n.key),n)}}function Wu(e,t,r){return t&&un(e.prototype,t),r&&un(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hu(e,t,r){return t=nt(t),Vu(e,To()?Reflect.construct(t,r||[],nt(e).constructor):t.apply(e,r))}function Vu(e,t){if(t&&(Se(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ku(e)}function Ku(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function To(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(To=function(){return!!e})()}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nt(e)}function Yu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wt(e,t)}function Wt(e,t){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Wt(e,t)}function de(e,t,r){return t=Ao(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ao(e){var t=zu(e,"string");return Se(t)=="symbol"?t:t+""}function zu(e,t){if(Se(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Se(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qu=function(e){function t(r){var n;Uu(this,t),n=Hu(this,t,[r]),de(n,"setInputRef",function(y){Cu([n.props.inputRef,n.inputRef],y)}),de(n,"isCountrySupportedWithError",function(y){var x=n.props.metadata;return ut(y,x)}),de(n,"onCountryChange",function(y){var x=n.props,p=x.international,j=x.metadata,G=x.onChange,w=x.focusInputOnCountrySelection,U=n.state,k=U.phoneDigits,L=U.country,T=Eu(k,{prevCountry:L,newCountry:y,metadata:j,useNationalFormat:!p}),N=we(T,y,j);w&&n.inputRef.current.focus(),n.setState({country:y,latestCountrySelectedByUser:y,hasUserSelectedACountry:!0,phoneDigits:T,value:N},function(){G(N)})}),de(n,"onChange",function(y){var x=n.props,p=x.defaultCountry,j=x.onChange,G=x.addInternationalOption,w=x.international,U=x.limitMaxLength,k=x.countryCallingCodeEditable,L=x.metadata,T=n.state,N=T.countries,F=T.phoneDigits,D=T.country,O=T.latestCountrySelectedByUser,B=Tu(y,{prevPhoneDigits:F,country:D,countryRequired:!G,defaultCountry:p,latestCountrySelectedByUser:O,getAnyCountry:function(){return n.getFirstSupportedCountry({countries:N})},countries:N,international:w,limitMaxLength:U,countryCallingCodeEditable:k,metadata:L}),Y=B.phoneDigits,H=B.country,Z=B.value,X={phoneDigits:Y,value:Z,country:H};O&&Z&&!Ne(Z,O,L)&&(X.latestCountrySelectedByUser=void 0),k===!1&&!Z&&Y===n.state.phoneDigits&&(X.forceRerender={}),n.setState(X,function(){return j(Z)})}),de(n,"_onFocus",function(){return n.setState({isFocused:!0})}),de(n,"_onBlur",function(){return n.setState({isFocused:!1})}),de(n,"onFocus",function(y){n._onFocus();var x=n.props.onFocus;x&&x(y)}),de(n,"onBlur",function(y){var x=n.props.onBlur;n._onBlur(),x&&x(y)}),de(n,"onCountryFocus",function(y){n._onFocus();var x=n.props.countrySelectProps;if(x){var p=x.onFocus;p&&p(y)}}),de(n,"onCountryBlur",function(y){n._onBlur();var x=n.props.countrySelectProps;if(x){var p=x.onBlur;p&&p(y)}}),n.inputRef=c.createRef();var o=n.props,a=o.value;o.labels;var i=o.international,d=o.addInternationalOption,l=o.displayInitialValueAsLocalNumber,u=o.initialValueFormat,f=o.metadata,m=n.props,$=m.defaultCountry,h=m.countries;$&&(n.isCountrySupportedWithError($)||($=void 0)),a&&xo(a),h=wo(h,f);var v=So(a,f);n.CountryIcon=Co(n.props);var P=Pu({value:a,phoneNumber:v,defaultCountry:$,required:!d,countries:h||Qr(f),getAnyCountry:function(){return n.getFirstSupportedCountry({countries:h})},metadata:f});return n.state={props:n.props,country:P,countries:h,phoneDigits:jo({value:a,phoneNumber:v,defaultCountry:$,international:i,useNationalFormat:l||u==="national",metadata:f}),value:a},n}return Yu(t,e),Wu(t,[{key:"componentDidMount",value:function(){var n=this.props.onCountryChange,o=this.props.defaultCountry,a=this.state.country;n&&(o&&(this.isCountrySupportedWithError(o)||(o=void 0)),a!==o&&n(a))}},{key:"componentDidUpdate",value:function(n,o){var a=this.props.onCountryChange,i=this.state.country;a&&i!==o.country&&a(i)}},{key:"getCountrySelectOptions",value:function(n){var o=n.countries,a=this.props,i=a.international,d=a.countryCallingCodeEditable,l=a.countryOptionsOrder,u=a.addInternationalOption,f=a.labels,m=a.locales,$=a.metadata;return this.useMemoCountrySelectOptions(function(){return pu(Su({countries:o||Qr($),countryNames:f,addInternationalOption:i&&d===!1?!1:u,compareStringsLocales:m}),$u(l,$))},[o,l,u,f,$])}},{key:"useMemoCountrySelectOptions",value:function(n,o){return(!this.countrySelectOptionsMemoDependencies||!Zu(o,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=n(),this.countrySelectOptionsMemoDependencies=o),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(n){var o=n.countries,a=this.getCountrySelectOptions({countries:o});return a[0].value}},{key:"render",value:function(){var n=this.props,o=n.name,a=n.disabled,i=n.readOnly,d=n.autoComplete,l=n.style,u=n.className;n.inputRef;var f=n.inputComponent,m=n.numberInputProps,$=n.smartCaret,h=n.countrySelectComponent,v=n.countrySelectProps,P=n.containerComponent,y=n.containerComponentProps;n.defaultCountry,n.countries,n.countryOptionsOrder;var x=n.labels;n.flags,n.flagComponent,n.flagUrl,n.addInternationalOption,n.internationalIcon,n.displayInitialValueAsLocalNumber,n.initialValueFormat,n.onCountryChange,n.limitMaxLength,n.countryCallingCodeEditable,n.focusInputOnCountrySelection,n.reset;var p=n.metadata,j=n.international;n.locales;var G=Bu(n,Lu),w=this.state,U=w.country,k=w.countries,L=w.phoneDigits,T=w.isFocused,N=$?Vl:Xl,F=this.getCountrySelectOptions({countries:k});return c.createElement(P,Pe({style:l,className:Je(u,"PhoneInput",{"PhoneInput--focus":T,"PhoneInput--disabled":a,"PhoneInput--readOnly":i})},y),c.createElement(h,Pe({name:o?"".concat(o,"Country"):void 0,"aria-label":x.country},v,{value:U,options:F,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:a||v&&v.disabled,readOnly:i||v&&v.readOnly,iconComponent:this.CountryIcon})),c.createElement(N,Pe({ref:this.setInputRef,type:"tel",autoComplete:d},m,G,{inputFormat:j===!0?"INTERNATIONAL":j===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:j?!0:void 0,withCountryCallingCode:j?!0:void 0,name:o,metadata:p,country:U,value:L||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:a,readOnly:i,inputComponent:f,className:Je("PhoneInputInput",m&&m.className,G.className)})))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return Io({props:n},Du(n,o.props,o))}}])}(c.PureComponent),ko=c.forwardRef(function(e,t){return c.createElement(qu,Pe({},Xu(e),{inputRef:t}))});ko.propTypes={value:R.string,onChange:R.func.isRequired,onFocus:R.func,onBlur:R.func,disabled:R.bool,readOnly:R.bool,autoComplete:R.string,initialValueFormat:R.oneOf(["national"]),displayInitialValueAsLocalNumber:R.bool,defaultCountry:R.string,countries:R.arrayOf(R.string),labels:Po,locales:R.oneOfType([R.string,R.arrayOf(R.string)]),flagUrl:R.string,flags:R.objectOf(R.elementType),flagComponent:R.elementType,addInternationalOption:R.bool,internationalIcon:R.elementType,countryOptionsOrder:R.arrayOf(R.string),style:R.object,className:R.string,countrySelectComponent:R.elementType,countrySelectProps:R.object,inputComponent:R.elementType,numberInputProps:R.object,containerComponent:R.elementType,containerComponentProps:R.object,smartCaret:R.bool,international:R.bool,limitMaxLength:R.bool,countryCallingCodeEditable:R.bool,metadata:No,onCountryChange:R.func,focusInputOnCountrySelection:R.bool};var cn={autoComplete:"tel",countrySelectComponent:$o,flagComponent:Zt,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:lt,inputComponent:"input",containerComponent:"div",reset:R.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function Xu(e){e=Io({},e);for(var t in cn)e[t]===void 0&&(e[t]=cn[t]);return e}function Zu(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;){if(e[r]!==t[r])return!1;r++}return!0}const Ju={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var Qu=["metadata","labels"];function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ht.apply(this,arguments)}function ec(e,t){if(e==null)return{};var r=tc(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Ro(e){var t=c.forwardRef(function(r,n){var o=r.metadata,a=o===void 0?e:o,i=r.labels,d=i===void 0?Ju:i,l=ec(r,Qu);return c.createElement(ko,Ht({},l,{ref:n,metadata:a,labels:d}))});return t.propTypes={metadata:No,labels:Po},t}Ro();const rc=Ro(di),Fo=c.forwardRef(({className:e,error:t,isLoading:r=!1,disabled:n=!1,defaultCountry:o="US",helperText:a,...i},d)=>s.jsxs("div",{className:C("w-full",e),children:[s.jsxs("div",{className:C("relative",(n||r)&&"cursor-not-allowed"),children:[s.jsx(rc,{ref:d,defaultCountry:o,disabled:n||r,international:!0,withCountryCallingCode:!0,countryCallingCodeEditable:!1,className:C("shadow-sm h-9 w-full rounded-md border border-foreground/30 bg-background text-xs text-foreground","placeholder:text-muted-foreground placeholder:text-xs",(n||r)&&"cursor-not-allowed bg-muted text-muted-foreground",t?"phone-input-error":"phone-input-default"),...i}),r&&s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:s.jsx(ue,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]}),(t||a)&&s.jsx("div",{className:"mt-1 text-sm",children:t?s.jsx("p",{className:"text-destructive",role:"alert",children:t}):s.jsx("p",{className:"text-muted-foreground",children:a})})]}));Fo.displayName="PhoneNumber";const Ke={sm:{bar:"h-1",circle:"h-8 w-8",text:"text-xs"},md:{bar:"h-2",circle:"h-12 w-12",text:"text-sm"},lg:{bar:"h-3",circle:"h-16 w-16",text:"text-base"}},Mo=c.forwardRef(({className:e,value:t=0,max:r=100,variant:n="default",size:o="md",showValue:a=!1,indeterminate:i=!1,...d},l)=>{const u=Math.min(Math.max(t/r*100,0),100);if(n==="circle"){const m=2*Math.PI*40,$=m-u/100*m;return s.jsxs("div",{ref:l,className:C("relative inline-flex items-center justify-center",Ke[o].circle,e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":i?void 0:t,...d,children:[s.jsxs("svg",{className:"transform -rotate-90",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"text-muted-foreground/20",cx:"50",cy:"50",r:40,strokeWidth:"8",fill:"none",stroke:"currentColor"}),s.jsx("circle",{className:C("transition-all duration-300 ease-in-out",i?"animate-progress-spin text-primary":"text-primary"),cx:"50",cy:"50",r:40,strokeWidth:"8",fill:"none",stroke:"currentColor",strokeDasharray:m,strokeDashoffset:i?0:$,strokeLinecap:"round"})]}),a&&!i&&s.jsxs("div",{className:C("absolute",Ke[o].text),children:[Math.round(u),"%"]})]})}return s.jsxs("div",{ref:l,className:C("w-full",e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":i?void 0:t,...d,children:[s.jsx("div",{className:C("w-full overflow-hidden rounded-full bg-primary/20",Ke[o].bar),children:n==="loading"||i?s.jsx("div",{className:C("h-full w-full flex","animate-progress-loading"),children:s.jsx("div",{className:"w-1/3 h-full bg-primary rounded-full"})}):s.jsx("div",{className:C("h-full bg-primary transition-all duration-300 ease-in-out rounded-full"),style:{width:`${u}%`}})}),a&&!i&&s.jsxs("div",{className:C("mt-1 text-right",Ke[o].text),children:[Math.round(u),"%"]})]})});Mo.displayName="Progress";const _o=c.forwardRef(({className:e,label:t,error:r,disabled:n,...o},a)=>{const i="h-4 w-4 border border-foreground/30 accent-[hsl(var(--foreground))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",d=C(n&&"cursor-not-allowed opacity-50",r&&"border-destructive focus-visible:border-destructive focus-visible:ring-destructive");return s.jsxs("div",{children:[s.jsxs("div",{className:"relative flex items-center",children:[s.jsx("input",{type:"radio",ref:a,disabled:n,className:C(i,d,e),"aria-invalid":r?"true":"false",...o}),t&&s.jsx("label",{htmlFor:o.id,className:C("ml-2 text-sm font-medium text-foreground",n&&"cursor-not-allowed opacity-50",r&&"text-destructive"),children:t})]}),r&&s.jsx("p",{className:"ml-6 mt-0.5 text-sm text-destructive",role:"alert",children:r})]})});_o.displayName="Radio";const Do=c.forwardRef(({options:e,value:t,onChange:r,placeholder:n="Select an option",error:o,helperText:a,disabled:i,isLoading:d,multiple:l=!1,searchable:u=!1,className:f,renderOption:m,rows:$=1,variant:h="default",menuWidth:v},P)=>{var I,M,V,z;const[y,x]=c.useState(!1),[p,j]=c.useState(""),[G,w]=c.useState(-1),U=c.useRef(null),k=c.useRef(null),L=c.useRef(null);c.useEffect(()=>{if(!y)return;const g=()=>{if(k.current&&U.current){const S=U.current.getBoundingClientRect(),E=320,b=window.innerHeight-S.bottom,A=S.top,W=b<E&&A>b;if(k.current.style.left=`${S.left}px`,v!==void 0){const K=typeof v=="number"?`${v}px`:v;k.current.style.width=K,k.current.style.minWidth=""}else h==="ghost"?(k.current.style.width="auto",k.current.style.minWidth=`${Math.max(S.width,160)}px`):k.current.style.width=`${S.width}px`;W?(k.current.style.bottom=`${window.innerHeight-S.top+8}px`,k.current.style.top="auto"):(k.current.style.top=`${S.bottom+8}px`,k.current.style.bottom="auto")}};return g(),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g),()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g)}},[y,h,v]);const T=l?e.filter(g=>Array.isArray(t)&&t.includes(g.value)):e.filter(g=>g.value===t),N=e.filter(g=>g.label.toLowerCase().includes(p.toLowerCase())),F=g=>{if(l){const S=Array.isArray(t)?[...t]:[],E=S.indexOf(g.value);E===-1?S.push(g.value):S.splice(E,1),r==null||r(S)}else r==null||r(g.value),x(!1);j("")},D=(g,S)=>{if(g.stopPropagation(),l&&Array.isArray(t)){const E=t.filter(b=>b!==S.value);r==null||r(E)}};c.useEffect(()=>{w(-1)},[y,p]);const O=g=>{if(!(i||d))switch(g.key){case"ArrowDown":g.preventDefault(),y?w(S=>S<N.length-1?S+1:S):x(!0);break;case"ArrowUp":g.preventDefault(),y?w(S=>S>0?S-1:S):x(!0);break;case"Enter":case" ":if(g.key===" "&&g.target.tagName==="INPUT")return;g.preventDefault(),y&&G>=0?F(N[G]):y||x(!0);break;case"Escape":g.preventDefault(),x(!1),w(-1);break;case"Tab":x(!1);break}};c.useEffect(()=>{const g=S=>{var b;const E=S.target;k.current&&!k.current.contains(E)&&!((b=U.current)!=null&&b.contains(E))&&(x(!1),j(""))};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const B=h==="ghost",Y=C("relative placeholder:text-muted-foreground placeholder:text-sm",B?"inline-block w-fit":"w-full"),H=B?C("inline-flex cursor-pointer items-center gap-1 text-xs text-foreground transition-opacity hover:opacity-80",(i||d)&&"cursor-not-allowed rounded-md bg-muted px-2 py-0.5 text-muted-foreground hover:opacity-100",o&&"text-destructive",f):C("flex w-full items-center justify-between rounded-md border border-foreground/30 bg-background px-3 py-1.5 text-xs shadow-sm overflow-hidden",$===1&&"h-9",$===2&&"max-h-[60px]",$===3&&"max-h-[84px]",$>3&&"max-h-[108px]",(i||d)&&"cursor-not-allowed bg-muted text-muted-foreground",o?"border-destructive focus-visible:border-destructive focus-visible:ring-destructive focus-visible:ring-1":"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",f),Z="flex items-center px-3 py-1.5 text-xs hover:bg-accent hover:text-accent-foreground cursor-pointer",X="bg-accent text-accent-foreground",te="bg-accent text-accent-foreground";return s.jsxs("div",{ref:P,className:Y,children:[s.jsxs("div",{ref:U,className:H,onClick:()=>!i&&!d&&x(!y),onKeyDown:O,role:"combobox","aria-expanded":y,"aria-haspopup":"listbox","aria-disabled":i||d,"aria-activedescendant":G>=0?`select-option-${(I=N[G])==null?void 0:I.value}`:void 0,tabIndex:i||d?-1:0,children:[s.jsx("div",{className:C("relative flex flex-1 flex-wrap gap-1",!B&&!(i||d)&&"bg-background",l&&T.length>3&&"speculo-scrollbar z-[1] overflow-y-auto pr-1",$===1&&l&&T.length>3&&"max-h-[28px]",$===2&&l&&T.length>3&&"max-h-[52px]",$===3&&l&&T.length>3&&"max-h-[76px]",$>3&&l&&T.length>3&&"max-h-[100px]",!l&&"overflow-hidden"),children:T.length>0?l?T.map(g=>s.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs",children:[g.label,!d&&s.jsx("button",{onClick:S=>D(S,g),className:"ml-1 rounded-full p-0.5 hover:bg-muted-foreground/20 focus:outline-none focus:ring-2 focus:ring-ring","aria-label":`Remove ${g.label}`,children:s.jsx(Be,{className:"h-3 w-3 text-muted-foreground"})})]},g.value)):s.jsx("span",{className:"truncate text-xs",children:T[0].label}):s.jsx("span",{className:"text-muted-foreground",children:n})}),s.jsx("div",{className:C("flex items-center",B?"ml-0":"ml-2"),children:d?s.jsx(ue,{className:C("animate-spin text-muted-foreground",B?"h-3.5 w-3.5":"h-4 w-4")}):s.jsx(Ta,{className:C("transition-transform",B?"h-3.5 w-3.5":"h-4 w-4",y&&"rotate-180")})})]}),y&&!d&&ve.createPortal(s.jsxs("div",{ref:k,style:{position:"fixed",left:((M=U.current)==null?void 0:M.getBoundingClientRect().left)+"px",...(()=>{if(!U.current)return{top:0};const g=U.current.getBoundingClientRect(),S=320,E=window.innerHeight-g.bottom,b=g.top;return E<S&&b>E?{bottom:window.innerHeight-g.top+8+"px"}:{top:g.bottom+8+"px"}})(),...v!==void 0?{width:typeof v=="number"?`${v}px`:v}:h==="ghost"?{width:"auto",minWidth:`${Math.max(((V=U.current)==null?void 0:V.getBoundingClientRect().width)??0,160)}px`}:{width:((z=U.current)==null?void 0:z.getBoundingClientRect().width)+"px"}},className:"z-[10001] flex max-h-[320px] flex-col overflow-hidden rounded-md border border-border bg-popover shadow-lg",children:[u&&s.jsx("div",{className:"p-2",children:s.jsxs("div",{className:"relative",children:[s.jsx(La,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),s.jsx("input",{ref:L,type:"text",className:"w-full rounded-md border border-foreground/30 bg-background py-1.5 pl-9 pr-3 text-sm focus:outline-none focus:ring-1 focus:ring-ring",placeholder:"Search...",value:p,onChange:g=>j(g.target.value),onKeyDown:O,onClick:g=>g.stopPropagation()})]})}),s.jsxs("ul",{className:"speculo-scrollbar flex-1 overflow-y-auto",role:"listbox","aria-multiselectable":l,children:[N.map((g,S)=>s.jsxs("li",{id:`select-option-${g.value}`,className:C(Z,T.includes(g)&&X,G===S&&te),role:"option","aria-selected":T.includes(g),onClick:()=>F(g),onMouseEnter:()=>w(S),children:[s.jsx("span",{className:"flex-1",children:m?m(g):g.label}),s.jsx(Nn,{className:C("ml-2 h-3.5 w-3.5 shrink-0",T.includes(g)?"opacity-100":"opacity-0")})]},g.value)),N.length===0&&s.jsx("li",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No options found"})]})]}),document.body),(o||a)&&s.jsx("div",{className:"mt-1 text-sm",children:o?s.jsx("p",{className:"text-destructive",role:"alert",children:o}):s.jsx("p",{className:"text-muted-foreground",children:a})})]})});Do.displayName="Select";const Qt=c.forwardRef(({icon:e,label:t,href:r,items:n,disabled:o,collapsed:a,depth:i=0},d)=>{const[l,u]=c.useState(!1),f=n&&n.length>0,m=!!r&&!f,$=v=>{if(o){v.preventDefault();return}f&&(v.preventDefault(),u(P=>!P))},h=s.jsxs("div",{ref:d,className:C("group flex items-center rounded-md text-sm font-medium",a?"justify-center px-2 py-2":"gap-2 px-3 py-2","hover:bg-accent hover:text-accent-foreground",o&&"pointer-events-none opacity-50",i>0&&!a&&"ml-4",m&&"cursor-pointer"),role:m?"link":"button",tabIndex:o?-1:0,onClick:$,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),$(v))},children:[e&&s.jsx("span",{className:C("flex items-center justify-center",a?"h-5 w-5":"h-4 w-4"),children:e}),!a&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"flex-1",children:t}),f&&s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:C("h-4 w-4 transition-transform",l&&"rotate-180"),children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]});return s.jsxs("div",{children:[m?s.jsx("a",{href:r,className:o?"pointer-events-none":"",children:h}):h,f&&!a&&l&&s.jsx("div",{className:"mt-1",children:n.map((v,P)=>s.jsx(Qt,{...v,collapsed:a,depth:i+1},P))})]})});Qt.displayName="SidebarItem";const Lo=c.forwardRef(({className:e,items:t,collapsed:r,onCollapse:n,defaultCollapsed:o=!1,...a},i)=>{const[d,l]=c.useState(o),u=r!==void 0,f=u?r:d,m=()=>{u||l($=>!$),n==null||n(!f)};return s.jsxs("div",{ref:i,className:C(f?"w-16":"w-64","flex h-full flex-col gap-4 border-r bg-background p-2 transition-all duration-300 md:p-3 lg:p-4",e),...a,children:[s.jsx("button",{onClick:m,className:"flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground","aria-label":f?"Expand sidebar":"Collapse sidebar",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:C("h-4 w-4 transition-transform",f&&"rotate-180"),children:s.jsx("path",{d:"m15 18-6-6 6-6"})})}),s.jsx("nav",{className:"space-y-1",children:t.map(($,h)=>s.jsx(Qt,{...$,collapsed:f},h))})]})});Lo.displayName="Sidebar";const nc={sm:{switch:"h-[20px] w-[36px]",thumb:"h-[14px] w-[14px] translate-x-[3px]",thumbChecked:"translate-x-[17px]"},md:{switch:"h-[24px] w-[44px]",thumb:"h-[18px] w-[18px] translate-x-[3px]",thumbChecked:"translate-x-[21px]"},lg:{switch:"h-[28px] w-[52px]",thumb:"h-[22px] w-[22px] translate-x-[3px]",thumbChecked:"translate-x-[25px]"}},Bo=c.forwardRef(({className:e,label:t,size:r="md",id:n,checked:o,defaultChecked:a,onChange:i,disabled:d,...l},u)=>{const[f,m]=c.useState(a||!1),$=c.useId(),h=n||$,{switch:v,thumb:P,thumbChecked:y}=nc[r],x=j=>{d||(i&&i(j),o===void 0&&m(j.target.checked))},p=o!==void 0?o:f;return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"relative inline-flex",children:[s.jsx("input",{type:"checkbox",id:h,className:"peer sr-only",ref:u,checked:p,onChange:x,disabled:d,...l}),s.jsx("label",{htmlFor:h,className:C("block cursor-pointer rounded-full transition-colors duration-200","peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2","peer-disabled:cursor-not-allowed peer-disabled:opacity-50",p?"bg-primary":"bg-muted-foreground/40",v,"flex items-center",e),children:s.jsx("div",{className:C("rounded-full transition-all duration-200","flex items-center justify-center","bg-background shadow-sm",P,p&&y)})})]}),t&&s.jsx("label",{htmlFor:h,className:C("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),children:t})]})});Bo.displayName="Switch";function oc({columns:e,data:t,keyExtractor:r,selectable:n=!1,selectedRows:o=[],onSelectRows:a,sortable:i=!1,onSort:d,className:l,loading:u=!1,rowSelectable:f=!1,selectedRowId:m,onRowSelect:$,size:h="md",emptyStateText:v,onRowDoubleClick:P}){const[y,x]=c.useState({}),p=c.useMemo(()=>e.map(g=>({...g,width:y[String(g.key)]||g.width})),[e,y]),[j,G]=c.useState(null),[w,U]=c.useState(null),k=c.useRef(null),L=c.useRef(null),[T,N]=c.useState(0);c.useEffect(()=>{const g=k.current;if(!g)return;const S=new ResizeObserver(E=>{N(E[0].contentRect.height)});return S.observe(g),()=>S.disconnect()},[]),c.useEffect(()=>{const g=L.current,S=k.current;if(!g||!S)return;let E=!1;const b=()=>{E||(E=!0,g.scrollLeft=S.scrollLeft,E=!1)},A=()=>{E||(E=!0,S.scrollLeft=g.scrollLeft,E=!1)};return S.addEventListener("scroll",b),g.addEventListener("scroll",A),()=>{S.removeEventListener("scroll",b),g.removeEventListener("scroll",A)}},[]);const D=Math.max(8,Math.ceil(T/(h==="sm"?33:h==="lg"?49:h==="xl"?57:49))+1),O=p.reduce((g,S)=>g+parseInt(S.width||"100"),0)+(n?48:0),B=p.reduce((g,S,E)=>S.isPinned&&S.pinPosition==="left"||E===0?E:g,-1),Y=p.findIndex(g=>g.isPinned&&g.pinPosition==="right"),H=()=>{o.length===t.length?a==null||a([]):a==null||a(t.map(g=>String(r(g))))},Z=g=>{const S=o.includes(g)?o.filter(E=>E!==g):[...o,g];a==null||a(S)},X=g=>{const S=p.find(E=>E.key===g);S!=null&&S.sortable&&G(E=>{let b;return!E||E.key!==g?b={key:g,direction:"asc"}:E.direction==="asc"?b={key:g,direction:"desc"}:b=null,d&&b&&d(b.key,b.direction),b})},te=(g,S)=>{S.preventDefault(),S.stopPropagation();const E=p[g];if(!E.resizable)return;const b=E.width?parseInt(E.width):100;U({index:g,startX:S.pageX,startWidth:b}),E.width||x(A=>({...A,[String(E.key)]:`${b}px`}))},I=c.useCallback(g=>{if(!w)return;const S=g.pageX-w.startX,E=Math.max(50,w.startWidth+S),b=String(e[w.index].key);x(A=>E!==parseInt(A[b]||e[w.index].width||"100")?{...A,[b]:`${E}px`}:A)},[w,e]),M=c.useCallback(()=>{U(null)},[]);c.useEffect(()=>(w&&(window.addEventListener("mousemove",I),window.addEventListener("mouseup",M)),()=>{window.removeEventListener("mousemove",I),window.removeEventListener("mouseup",M)}),[w,I,M]);const V=g=>{let S=0;return n&&(S+=48),g>0&&(S+=p.slice(0,g).reduce((E,b,A)=>A===0||b.isPinned&&b.pinPosition==="left"?E+parseInt(b.width||"100"):E,0)),S},z=g=>{if(g<Y||Y===-1)return;let S=0;for(let E=p.length-1;E>g;E--)p[E].isPinned&&p[E].pinPosition==="right"&&(S+=parseInt(p[E].width||"100"));return S};return s.jsxs("div",{className:"relative flex h-full w-full flex-col overflow-hidden",children:[s.jsx("div",{ref:L,className:"overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden",style:{scrollbarWidth:"none"},children:s.jsx("div",{style:{width:"100%",minWidth:`${O}px`},children:s.jsxs("table",{className:C("table-fixed border-separate border-spacing-0",l),style:{width:"100%",minWidth:`${O}px`},children:[s.jsxs("colgroup",{children:[n&&s.jsx("col",{style:{width:"3rem"}}),p.map(g=>s.jsx("col",{style:g.width?{width:g.width}:void 0},String(g.key)))]}),s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-foreground/15",children:[n&&s.jsx("th",{scope:"col",style:{"--left-position":"0px"},className:"w-[3rem] overflow-hidden bg-table-header px-3 py-2.5 text-center text-foreground/70 md:sticky md:left-[--left-position] md:z-[20]",children:s.jsx("div",{className:"flex items-center justify-center",children:s.jsx(Ze,{checked:t.length>0&&o.length===t.length,indeterminate:o.length>0&&o.length<t.length,onChange:H,disabled:u})})}),p.map((g,S)=>{const E=g.isPinned&&g.pinPosition==="left"||S===0,b=g.isPinned&&g.pinPosition==="right",A=S===B,W=S===Y,K=E?V(S):void 0,re=b?z(S):void 0;return s.jsxs("th",{scope:"col",style:{minWidth:g.minWidth,...g.width&&{width:g.width},...E&&{"--left-position":`${K}px`},...b&&{"--right-position":`${re}px`}},className:C("bg-table-header px-3 py-2.5 text-xs font-medium uppercase tracking-wider text-foreground/70",g.isCentered?"text-center":"text-left",i&&g.sortable&&!u&&"cursor-pointer hover:text-foreground",E?"overflow-hidden md:sticky md:left-[--left-position] md:z-[20]":b?"overflow-hidden md:sticky md:right-[--right-position] md:z-[20]":"relative",A&&"md:after:absolute md:after:right-0 md:after:top-0 md:after:h-full md:after:w-px md:after:bg-border md:after:content-['']",W&&"md:before:absolute md:before:left-0 md:before:top-0 md:before:h-full md:before:w-px md:before:bg-border md:before:content-['']"),onClick:()=>!u&&i&&X(String(g.key)),children:[s.jsxs("div",{className:C("flex items-center gap-2",g.isCentered&&"justify-center"),children:[s.jsx("span",{className:"truncate",children:g.header}),i&&g.sortable&&(j==null?void 0:j.key)===g.key&&s.jsx("span",{className:"shrink-0",children:j.direction==="asc"?s.jsx(Ia,{className:"h-3 w-3 text-muted-foreground"}):s.jsx(ja,{className:"h-3 w-3 text-muted-foreground"})})]}),g.resizable&&!E&&!b&&s.jsx("div",{className:C("absolute -right-0.5 top-0 z-10 h-full w-px bg-transparent hover:w-0.5 hover:bg-primary/50",!u&&"cursor-col-resize group-hover:h-full"),onMouseDown:_=>!u&&te(S,_)})]},String(g.key))})]})})]})})}),s.jsxs("div",{ref:k,className:"relative flex-1 overflow-auto [scrollbar-gutter:stable]",children:[t.length===0&&!u&&s.jsx("div",{className:"absolute inset-0 z-[2] flex items-center justify-center bg-background",children:s.jsxs("div",{className:"flex max-w-[280px] flex-col items-center justify-center gap-2 rounded-lg bg-background p-3 text-center 3xl:max-w-[320px] 3xl:gap-3 3xl:p-6",children:[s.jsx("div",{className:"rounded-full bg-table-header p-2 3xl:p-4",children:s.jsx(Ma,{className:"h-4 w-4 text-muted-foreground 3xl:h-7 3xl:w-7"})}),s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[s.jsx("p",{className:"text-xs font-medium text-foreground 3xl:text-sm",children:v||"No records found"}),s.jsx("p",{className:"text-xs text-muted-foreground 3xl:text-sm",children:"Try adjusting your search or filters"})]})]})}),s.jsx("div",{style:{width:"100%",minWidth:`${O}px`},children:s.jsxs("table",{className:C("table-fixed border-separate border-spacing-0",l),style:{width:"100%",minWidth:`${O}px`},children:[s.jsxs("colgroup",{children:[n&&s.jsx("col",{style:{width:"3rem"}}),p.map(g=>s.jsx("col",{style:g.width?{width:g.width}:void 0},String(g.key)))]}),s.jsxs("tbody",{className:C("divide-y divide-foreground/15",u&&"pointer-events-none",t.length===0&&!u&&"pointer-events-none opacity-0"),children:[u&&Array.from({length:D}).map((g,S)=>s.jsxs("tr",{children:[n&&s.jsx("td",{className:"w-[3rem] border-b border-foreground/15 px-3 py-4",children:s.jsx("div",{className:"mx-auto h-4 w-4 animate-pulse rounded bg-foreground/15"})}),p.map((E,b)=>s.jsx("td",{style:{minWidth:E.minWidth,...E.width&&{width:E.width}},className:C("border-b border-foreground/15",h==="sm"?"px-3 py-1.5":h==="lg"?"px-3 py-3":h==="xl"?"px-3 py-4":"px-3 py-3"),children:s.jsx("div",{className:"h-3 animate-pulse rounded bg-foreground/15",style:{width:`${55+(S+b)%4*12}%`}})},`skeleton-${S}-${b}`))]},`skeleton-${S}`)),!u&&t.map(g=>s.jsxs("tr",{onClick:()=>f&&($==null?void 0:$(String(r(g))===m?void 0:String(r(g)))),onDoubleClick:()=>P==null?void 0:P(g),className:C("group transition-colors duration-150",f&&"cursor-pointer",String(r(g))===m?"bg-primary/5 hover:bg-primary/10":"even:bg-table-header/20 hover:bg-table-header/40"),children:[n&&s.jsx("td",{style:{"--left-position":"0px"},className:C("w-[3rem] overflow-hidden border-b border-foreground/15 bg-background px-3 py-4 md:sticky md:left-[--left-position] md:z-[2]",String(r(g))===m?"bg-accent group-hover:bg-accent":"group-hover:bg-muted"),children:s.jsx("div",{className:"flex items-center justify-center",children:s.jsx(Ze,{checked:o.includes(String(r(g))),onChange:()=>Z(String(r(g)))})})}),p.map((S,E)=>{const b=S.isPinned&&S.pinPosition==="left"||E===0,A=S.isPinned&&S.pinPosition==="right",W=E===B,K=E===Y,re=b?V(E):void 0,_=A?z(E):void 0;return s.jsx("td",{style:{minWidth:S.minWidth,...S.width&&{width:S.width},...b&&{"--left-position":`${re}px`},...A&&{"--right-position":`${_}px`}},className:C("border-b border-foreground/15 text-xs leading-relaxed text-foreground",h==="sm"?"px-3 py-1.5":h==="lg"?"px-3 py-3":h==="xl"?"px-3 py-4":"px-3 py-3",S.isCentered?"text-center":"text-left",S.key==="actions"&&"min-w-[120px]",b?"sticky overflow-hidden md:left-[--left-position] md:z-[2]":A?"sticky overflow-hidden md:right-[--right-position] md:z-[2]":"",W&&"md:after:absolute md:after:right-0 md:after:top-0 md:after:h-full md:after:w-px md:after:bg-border md:after:content-['']",K&&"md:before:absolute md:before:left-0 md:before:top-0 md:before:h-full md:before:w-px md:before:bg-border md:before:content-['']",(b||A)&&String(r(g))===m?"bg-accent group-hover:bg-accent":b||A?"bg-background group-hover:bg-muted":""),children:s.jsx("div",{children:s.jsx("div",{children:S.cell?S.cell(g):s.jsx("span",{className:"block truncate",children:String(g[S.key])})})})},String(S.key))})]},r(g)))]})]})})]})]})}const er=c.createContext(null),tr=({defaultValue:e,value:t,onChange:r,variant:n="line",orientation:o="horizontal",children:a,className:i})=>{var f;const[d,l]=c.useState(t||e||(((f=a[0])==null?void 0:f.props.value)??""));c.useEffect(()=>{t!==void 0&&l(t)},[t]);const u=m=>{t===void 0&&l(m),r==null||r(m)};return s.jsx(er.Provider,{value:{selectedTab:d,setSelectedTab:u,variant:n,orientation:o},children:s.jsx("div",{className:C("w-full",o==="horizontal"?"space-y-2":"flex gap-4",i),children:a})})},ac=({children:e,className:t})=>{const r=c.useContext(er);if(!r)throw new Error("TabsList must be used within Tabs");const{variant:n,orientation:o}=r,a={line:"inline-flex items-center border-b border-border",enclosed:"inline-flex items-center space-x-1",soft:"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground"};return s.jsx("div",{className:C("flex",o==="horizontal"?a[n]:"flex-col space-y-1",t),role:"tablist",children:e})},ic=({value:e,children:t,className:r})=>{const n=c.useContext(er);if(!n)throw new Error("TabPanel must be used within Tabs");const{selectedTab:o}=n;return o===e?s.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,className:r,children:t}):null};tr.List=ac;tr.Panel=ic;const Go=c.forwardRef(({className:e,error:t,helperText:r,autoResize:n,maxLength:o,showCount:a,value:i,onChange:d,disabled:l,isLoading:u,...f},m)=>{const $=c.useRef(null),h=()=>{const p=$.current;p&&n&&(p.style.height="auto",p.style.height=`${p.scrollHeight}px`)};c.useEffect(()=>{m&&(typeof m=="function"?m($.current):m.current=$.current)},[m]),c.useEffect(()=>{n&&h()},[i,n]);const v=p=>{o&&p.target.value.length>o&&(p.target.value=p.target.value.slice(0,o)),d==null||d(p),n&&h()},P="block w-full rounded-md border border-foreground/30 bg-background px-3 py-1.5 text-xs text-foreground shadow-sm placeholder:text-muted-foreground placeholder:text-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",y=C((l||u)&&"cursor-not-allowed bg-muted text-muted-foreground",t&&"border-destructive focus-visible:border-destructive focus-visible:ring-destructive focus-visible:ring-1"),x=typeof i=="string"?i.length:0;return s.jsxs("div",{className:"relative",children:[s.jsxs("div",{className:"relative",children:[s.jsx("textarea",{ref:$,value:i,onChange:v,disabled:l||u,maxLength:o,className:C(P,y,e),"aria-invalid":t?"true":"false","aria-describedby":t?`${f.id}-error`:r?`${f.id}-helper`:void 0,...f}),u&&s.jsx("div",{className:"absolute right-3 top-3",children:s.jsxs("svg",{className:"h-4 w-4 animate-spin text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})]}),a&&s.jsxs("div",{className:"mt-1 text-right text-sm text-muted-foreground",children:[x,o&&` / ${o}`]}),(t||r)&&s.jsx("div",{className:"mt-1 text-sm",children:t?s.jsx("p",{className:"text-destructive",id:`${f.id}-error`,role:"alert",children:t}):r?s.jsx("p",{className:"text-muted-foreground",id:`${f.id}-helper`,children:r}):null})]})});Go.displayName="Textarea";const Uo=c.createContext(null),dc=()=>{const e=c.useContext(Uo);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},sc=({children:e,position:t="bottom-right",maxToasts:r=5})=>{const[n,o]=c.useState([]),a=c.useCallback(u=>{o(f=>f.filter(m=>m.id!==u))},[]),d={showToast:c.useCallback(u=>{const f=Math.random().toString(36).substr(2,9);if(o(m=>[{...u,id:f},...m].slice(0,r)),u.duration!==1/0){const m=u.duration||5e3;setTimeout(()=>{var $;a(f),($=u.onClose)==null||$.call(u)},m)}},[r,a]),removeToast:a},l={"top-right":"top-0 right-0","top-left":"top-0 left-0","bottom-right":"bottom-0 right-0","bottom-left":"bottom-0 left-0"};return s.jsxs(Uo.Provider,{value:d,children:[e,ve.createPortal(s.jsx("div",{className:C("fixed z-[9999] m-2 flex flex-col gap-2 md:m-4",l[t]),role:"log","aria-live":"polite",children:n.map(u=>s.jsx(lc,{...u,onClose:()=>{var f;a(u.id),(f=u.onClose)==null||f.call(u)}},u.id))}),document.body)]})},fn={success:{icon:s.jsx(Ra,{className:"h-4 w-4 shrink-0 text-success"}),className:"border border-success/40 bg-card bg-gradient-to-r from-success/20 to-success/20 text-success-accent"},error:{icon:s.jsx(Pn,{className:"h-4 w-4 shrink-0 text-destructive"}),className:"border border-destructive/40 bg-card bg-gradient-to-r from-destructive/20 to-destructive/20 text-destructive"},warning:{icon:s.jsx(Ba,{className:"h-4 w-4 shrink-0 text-warning"}),className:"border border-warning/40 bg-card bg-gradient-to-r from-warning/20 to-warning/20 text-warning-accent"},info:{icon:s.jsx(_a,{className:"h-4 w-4 shrink-0 text-info"}),className:"border border-info/40 bg-card bg-gradient-to-r from-info/20 to-info/20 text-info-accent"}},lc=({message:e,variant:t="info",onClose:r})=>{const[n,o]=c.useState(!1),a=()=>{o(!0),setTimeout(r,200)};return s.jsxs("div",{className:C("flex w-[calc(100vw-1rem)] max-w-sm items-start gap-2 rounded-lg px-3 py-2.5 text-xs shadow-lg transition-all duration-200 sm:w-96 sm:gap-3 sm:px-4 sm:py-3 sm:text-sm",fn[t].className,n&&"translate-x-full opacity-0"),role:"alert",children:[s.jsx("div",{className:"flex-shrink-0",children:fn[t].icon}),s.jsx("div",{className:"flex-1",children:e}),s.jsxs("button",{onClick:a,className:"flex-shrink-0 rounded-md p-1 opacity-80 transition-opacity hover:bg-current/10 hover:opacity-100",children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(Be,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})]})},uc={h1:"scroll-m-20 text-xl font-bold tracking-tight sm:text-2xl lg:text-3xl",h2:"scroll-m-20 text-lg font-bold tracking-tight sm:text-xl lg:text-2xl first:mt-0",h3:"scroll-m-20 text-base font-semibold tracking-tight sm:text-lg lg:text-xl",h4:"scroll-m-20 text-sm font-semibold tracking-tight sm:text-base lg:text-lg",h5:"scroll-m-20 text-sm font-semibold tracking-tight sm:text-base",h6:"scroll-m-20 text-xs font-semibold tracking-tight sm:text-sm",p:"text-sm leading-7 sm:text-base [&:not(:first-child)]:mt-6",blockquote:"mt-6 border-l-2 border-border pl-4 sm:pl-6 italic text-foreground",lead:"text-base text-muted-foreground sm:text-lg lg:text-xl",large:"text-base font-semibold text-foreground sm:text-lg",small:"text-xs font-medium leading-none sm:text-sm",muted:"text-xs text-muted-foreground sm:text-sm"},cc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",lead:"p",large:"div",small:"small",muted:"p"},Wo=c.forwardRef(({variant:e="p",as:t,className:r,children:n,...o},a)=>{const i=t||cc[e];return c.createElement(i,{ref:a,className:C(uc[e],r),...o},n)});Wo.displayName="Typography";exports.Accordion=vn;exports.Alert=xn;exports.AlertDescription=Yt;exports.AlertTitle=Kt;exports.Badge=wn;exports.Button=he;exports.Calendar=Fe;exports.Checkbox=Ze;exports.ComboBox=Sn;exports.Container=On;exports.DatePicker=In;exports.DateRangePicker=En;exports.Drawer=ot;exports.DualDateRangePicker=jn;exports.Form=ei;exports.HoverCard=Dn;exports.Input=Ln;exports.Loading=Bn;exports.Modal=Ge;exports.Pagination=Gn;exports.PhoneNumber=Fo;exports.Progress=Mo;exports.Radio=_o;exports.Select=Do;exports.Sidebar=Lo;exports.Switch=Bo;exports.Table=oc;exports.Tabs=tr;exports.Textarea=Go;exports.TimePicker=Tn;exports.ToastProvider=sc;exports.Typography=Wo;exports.cn=C;exports.useToast=dc;
|
|
129
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(fo);var Di=fo.exports;const ut=lo(Di);function _i(e,t,r){switch(r){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function Li(e,t,r){for(var n={},o="",a=0,i=0;i<e.length;){var s=r(e[i],o,n);s!==void 0&&(o+=s,t!==void 0&&(t===i?a=o.length-1:t>i&&(a=o.length))),i++}t===void 0&&(a=o.length);var l={value:o,caret:a};return l}function Bi(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Ui(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
130
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ui(e,t){if(e){if(typeof e=="string")return Mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mr(e,t)}}function Mr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dt(e,t){for(var r=0,n=Bi(t.split("")),o;!(o=n()).done;){var a=o.value;a===e&&r++}return r}function Gi(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",o=e.length,a=Dt("(",e),i=Dt(")",e),s=a-i;s>0&&o<t.length;)e+=t[o].replace(r,n),t[o]===")"&&s--,o++;return e}function Wi(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Hi(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
131
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hi(e,t){if(e){if(typeof e=="string")return Dr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dr(e,t)}}function Dr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",r=arguments.length>2?arguments[2]:void 0;if(!e)return function(o){return{text:o}};var n=Dt(t,e);return function(o){if(!o)return{text:"",template:e};for(var a=0,i="",s=Wi(e.split("")),l;!(l=s()).done;){var u=l.value;if(u!==t){i+=u;continue}if(i+=o[a],a++,a===o.length&&o.length<n)break}return r&&(i=Gi(i,e)),{text:i,template:e}}}function Yi(e,t,r){typeof r=="string"&&(r=Vi(r));var n=r(e)||{},o=n.text,a=n.template;if(o===void 0&&(o=e),a)if(t===void 0)t=o.length;else{for(var i=0,s=!1,l=-1;i<o.length&&i<a.length;){if(o[i]!==a[i]){if(t===0){s=!0,t=i;break}l=i,t--}i++}s||(t=l+1)}return{text:o,caret:t}}function zi(e){return e.hasAttribute("readonly")}function Ki(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var _r={Backspace:8,Delete:46};function qi(e){switch(e.keyCode){case _r.Backspace:return"Backspace";case _r.Delete:return"Delete"}}function Xi(e){return e.selectionStart}function mo(e,t){t!==void 0&&(Zi()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function Zi(){if(typeof navigator<"u")return Ji.test(navigator.userAgent)}var Ji=/Android/i;function Qi(e,t,r,n,o){_t(t,r,n,void 0,o)}function ed(e,t,r,n,o){if(!zi(t)){var a=qi(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var i=Ki(t);return i?(td(t,i),_t(t,r,n,void 0,o)):_t(t,r,n,a,o)}}}function td(e,t){var r=e.value;r=r.slice(0,t.start)+r.slice(t.end),e.value=r,mo(e,t.start)}function _t(e,t,r,n,o){var a=Li(e.value,Xi(e),t),i=a.value,s=a.caret;if(n){var l=_i(i,s,n);i=l.value,s=l.caret}var u=Yi(i,s,r),f=u.text;s=u.caret,e.value=f,mo(e,s),o(i)}var rd=["value","parse","format","inputComponent","onChange","onKeyDown"];function Lt(){return Lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lt.apply(this,arguments)}function nd(e,t){if(e==null)return{};var r=od(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function od(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Ye(e,t){var r=e.value,n=e.parse,o=e.format,a=e.inputComponent,i=e.onChange,s=e.onKeyDown,l=nd(e,rd),u=c.useRef(),f=c.useCallback(function(h){u.current=h,t&&(typeof t=="function"?t(h):t.current=h)},[t]),m=c.useCallback(function(h){return Qi(h,u.current,n,o,i)},[u,n,o,i]),p=c.useCallback(function(h){if(s&&s(h),!h.defaultPrevented)return ed(h,u.current,n,o,i)},[u,n,o,i,s]);return c.createElement(a,Lt({},l,{ref:f,value:o(ad(r)?"":r).text,onKeyDown:p,onChange:m}))}Ye=c.forwardRef(Ye);Ye.propTypes={parse:k.func.isRequired,format:k.func.isRequired,inputComponent:k.elementType.isRequired,type:k.string.isRequired,value:k.string,onChange:k.func.isRequired,onKeyDown:k.func,onCut:k.func,onPaste:k.func};Ye.defaultProps={inputComponent:"input",type:"text"};function ad(e){return e==null}function Bt(e){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(e)}function id(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function dd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ze(e,t)}function ld(e){var t=go();return function(){var n=Ke(e),o;if(t){var a=Ke(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return ud(this,o)}}function ud(e,t){if(t&&(Bt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ho(e)}function ho(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ut(e){var t=typeof Map=="function"?new Map:void 0;return Ut=function(n){if(n===null||!cd(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return it(n,arguments,Ke(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ze(o,n)},Ut(e)}function it(e,t,r){return go()?it=Reflect.construct:it=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),u=new l;return i&&ze(u,i.prototype),u},it.apply(null,arguments)}function go(){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 cd(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ze(e,t){return ze=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},ze(e,t)}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ke(e)}var we=function(e){sd(r,e);var t=ld(r);function r(n){var o;return dd(this,r),o=t.call(this,n),Object.setPrototypeOf(ho(o),r.prototype),o.name=o.constructor.name,o}return id(r)}(Ut(Error)),dr=2,fd=17,md=3,fe="0-90-9٠-٩۰-۹",hd="-‐-―−ー-",gd="//",pd="..",$d=" ",yd="()()[]\\[\\]",bd="~⁓∼~",ye="".concat(hd).concat(gd).concat(pd).concat($d).concat(yd).concat(bd),$t="++";function Lr(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),o=0;o<3;o++){var a=Number(r[o]),i=Number(n[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var vd={}.constructor;function He(e){return e!=null&&e.constructor===vd}function Gt(e){"@babel/helpers - typeof";return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(e)}function yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bt(e,t,r){return t&&xd(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var wd="1.2.0",Cd="1.7.35",Br=" ext. ",Nd=/^\d+$/,se=function(){function e(t){yt(this,e),Ed(t),this.metadata=t,$o.call(this,t)}return bt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var n=this.countryCallingCodes()[r];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,n){if(r&&Nd.test(r)&&(n=r,r=null),r&&r!=="001"){if(!this.hasCountry(r))throw new Error("Unknown country: ".concat(r));this.numberingPlan=new Ur(this.getCountryMetadata(r),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new Ur(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var n=this.countryCallingCodes()[r];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(r){var n=this.getCountryCodesForCallingCode(r);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(r){var n=this.getCountryCodeForCallingCode(r);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var o=this.nonGeographic()[r];if(o)return o}else{var a=this.countryCallingCodes()[r];if(a&&a.length===1&&a[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(r){return this.numberingPlan.type(r)}},{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(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),Ur=function(){function e(t,r){yt(this,e),this.globalMetadataObject=r,this.metadata=t,$o.call(this,r.metadata)}return bt(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(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(o){return new Pd(o,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[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(r){if(this.hasTypes()&&Gr(this.types(),r))return new Od(Gr(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?Br:this.metadata[13]||Br}}]),e}(),Pd=function(){function e(t,r){yt(this,e),this._format=t,this.metadata=r}return bt(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()&&!Sd.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Sd=/^\(?\$1\)?$/,Od=function(){function e(t,r){yt(this,e),this.type=t,this.metadata=r}return bt(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 Gr(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Ed(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!He(e)||!He(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(He(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+jd(e)+": "+e,"."))}var jd=function(t){return Gt(t)};function je(e,t){if(t=new se(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function po(e,t){return t.countries.hasOwnProperty(e)}function $o(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Lr(t,wd)===-1?this.v2=!0:Lr(t,Cd)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var Td=";ext=",Ie=function(t){return"([".concat(fe,"]{1,").concat(t,"})")};function yo(e){var t="20",r="15",n="9",o="6",a="[ \\t,]*",i="[:\\..]?[ \\t,-]*",s="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",u="(?:[xx##~~]|int|int)",f="[- ]+",m="[ \\t]*",p="(?:,{2}|;)",h=Td+Ie(t),y=a+l+i+Ie(t)+s,C=a+u+i+Ie(n)+s,$=f+Ie(o)+"#",b=m+p+i+Ie(r)+s,g=m+"(?:,)+"+i+Ie(n)+s;return h+"|"+y+"|"+C+"|"+$+"|"+b+"|"+g}var Id="["+fe+"]{"+dr+"}",Ad="["+$t+"]{0,1}(?:["+ye+"]*["+fe+"]){3,}["+ye+fe+"]*",kd=new RegExp("^["+$t+"]{0,1}(?:["+ye+"]*["+fe+"]){1,2}$","i"),Rd=Ad+"(?:"+yo()+")?",Fd=new RegExp("^"+Id+"$|^"+Rd+"$","i");function Md(e){return e.length>=dr&&Fd.test(e)}function Dd(e){return kd.test(e)}var Wr=new RegExp("(?:"+yo()+")$","i");function _d(e){var t=e.search(Wr);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(Wr),o=1;o<n.length;){if(n[o])return{number:r,ext:n[o]};o++}}function Ld(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Bd(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bd(e,t){if(e){if(typeof e=="string")return Hr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hr(e,t)}}function Hr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ud={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 bo(e){return Ud[e]}function ct(e){for(var t="",r=Ld(e.split("")),n;!(n=r()).done;){var o=n.value,a=bo(o);a&&(t+=a)}return t}function Gd(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Wd(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
133
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wd(e,t){if(e){if(typeof e=="string")return Vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vr(e,t)}}function Vr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wt(e){for(var t="",r=Gd(e.split("")),n;!(n=r()).done;){var o=n.value;t+=vo(o,t)||""}return t}function vo(e,t,r){if(e==="+"){if(t){typeof r=="function"&&r("end");return}return"+"}return bo(e)}function vt(e,t){return Hd(e,void 0,t)}function Hd(e,t,r){var n=r.type(t),o=n&&n.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var a=e.length,i=o[0];return i===a?"IS_POSSIBLE":i>a?"TOO_SHORT":o[o.length-1]<a?"TOO_LONG":o.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Vd(e,t,r){if(t===void 0&&(t={}),r=new se(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return xo(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function xo(e,t){switch(vt(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Pe(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Yd(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=zd(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
134
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zd(e,t){if(e){if(typeof e=="string")return Yr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yr(e,t)}}function Yr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Kd=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function sr(e,t,r){if(t=t||{},!(!e.country&&!e.countryCallingCode)){r=new se(r),r.selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(Pe(n,r.nationalNumberPattern())){if(Tt(n,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||Tt(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var o=Yd(Kd),a;!(a=o()).done;){var i=a.value;if(Tt(n,i,r))return i}}}}function Tt(e,t,r){return t=r.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Pe(e,t.pattern())}function qd(e,t,r){if(t=t||{},r=new se(r),r.selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes())return sr(e,t,r.metadata)!==void 0;var n=t.v2?e.nationalNumber:e.phone;return Pe(n,r.nationalNumberPattern())}function Xd(e,t,r){var n=new se(r),o=n.getCountryCodesForCallingCode(e);return o?o.filter(function(a){return Zd(t,a,r)}):[]}function Zd(e,t,r){var n=new se(r);return n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0}function wo(e){return e.replace(new RegExp("[".concat(ye,"]+"),"g")," ").trim()}var Co=/(\$\d)/;function No(e,t,r){var n=r.useInternationalFormat,o=r.withNationalPrefix;r.carrierCode,r.metadata;var a=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(Co,t.nationalPrefixFormattingRule()):t.format());return n?wo(a):a}var Jd=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Qd(e,t,r){var n=new se(r);if(n.selectNumberingPlan(e,t),n.defaultIDDPrefix())return n.defaultIDDPrefix();if(Jd.test(n.IDDPrefix()))return n.IDDPrefix()}function es(e){var t=e.number,r=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(r?";ext="+r:"")}function ts(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=rs(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
135
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rs(e,t){if(e){if(typeof e=="string")return zr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zr(e,t)}}function zr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kr(Object(r),!0).forEach(function(n){ns(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ns(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xr={formatExtension:function(t,r,n){return"".concat(t).concat(n.ext()).concat(r)}};function os(e,t,r,n){if(r?r=qr(qr({},Xr),r):r=Xr,n=new se(n),e.country&&e.country!=="001"){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else if(e.countryCallingCode)n.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var o=n.countryCallingCode(),a=r.v2?e.nationalNumber:e.phone,i;switch(t){case"NATIONAL":return a?(i=ft(a,e.carrierCode,"NATIONAL",n,r),It(i,e.ext,n,r.formatExtension)):"";case"INTERNATIONAL":return a?(i=ft(a,null,"INTERNATIONAL",n,r),i="+".concat(o," ").concat(i),It(i,e.ext,n,r.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(a);case"RFC3966":return es({number:"+".concat(o).concat(a),ext:e.ext});case"IDD":if(!r.fromCountry)return;var s=is(a,e.carrierCode,o,r.fromCountry,n);return It(s,e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function ft(e,t,r,n,o){var a=as(n.formats(),e);return a?No(e,a,{useInternationalFormat:r==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&o&&o.nationalPrefix===!1),carrierCode:t,metadata:n}):e}function as(e,t){for(var r=ts(e),n;!(n=r()).done;){var o=n.value;if(o.leadingDigitsPatterns().length>0){var a=o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length-1];if(t.search(a)!==0)continue}if(Pe(t,o.pattern()))return o}}function It(e,t,r,n){return t?n(e,t,r):e}function is(e,t,r,n,o){var a=je(n,o.metadata);if(a===r){var i=ft(e,t,"NATIONAL",o);return r==="1"?r+" "+i:i}var s=Qd(n,void 0,o.metadata);if(s)return"".concat(s," ").concat(r," ").concat(ft(e,null,"INTERNATIONAL",o))}function Zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zr(Object(r),!0).forEach(function(n){ds(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ds(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ss(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ls(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function us(e,t,r){return t&&ls(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Po=function(){function e(t,r,n){if(ss(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!r)throw new TypeError("`nationalNumber` not passed");if(!n)throw new TypeError("`metadata` not passed");var o=fs(t,n),a=o.country,i=o.countryCallingCode;this.country=a,this.countryCallingCode=i,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return us(e,[{key:"setExt",value:function(r){this.ext=r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Xd(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Vd(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return qd(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var r=new se(this.getMetadata());return r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(r){return this.number===r.number&&this.ext===r.ext}},{key:"getType",value:function(){return sr(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(r,n){return os(this,r,n?Jr(Jr({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(r){return this.format("NATIONAL",r)}},{key:"formatInternational",value:function(r){return this.format("INTERNATIONAL",r)}},{key:"getURI",value:function(r){return this.format("RFC3966",r)}}]),e}(),cs=function(t){return/^[A-Z]{2}$/.test(t)};function fs(e,t){var r,n,o=new se(t);return cs(e)?(r=e,o.selectNumberingPlan(r),n=o.countryCallingCode()):n=e,{country:r,countryCallingCode:n}}var ms=new RegExp("(["+fe+"])");function So(e,t,r,n){if(t){var o=new se(n);o.selectNumberingPlan(t,r);var a=new RegExp(o.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var i=e.match(ms);if(!(i&&i[1]!=null&&i[1].length>0&&i[1]==="0"))return e}}}function Ht(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var o,a,i=n.length-1,s=i>0&&n[i];if(t.nationalPrefixTransformRule()&&s)o=e.replace(r,t.nationalPrefixTransformRule()),i>1&&(a=n[1]);else{var l=n[0];o=e.slice(l.length),s&&(a=n[1])}var u;if(s){var f=e.indexOf(n[1]),m=e.slice(0,f);m===t.numberingPlan.nationalPrefix()&&(u=t.numberingPlan.nationalPrefix())}else u=n[0];return{nationalNumber:o,nationalPrefix:u,carrierCode:a}}}return{nationalNumber:e}}function Vt(e,t){var r=Ht(e,t),n=r.carrierCode,o=r.nationalNumber;if(o!==e){if(!hs(e,o,t))return{nationalNumber:e};if(t.possibleLengths()&&!gs(o,t))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:n}}function hs(e,t,r){return!(Pe(e,r.nationalNumberPattern())&&!Pe(t,r.nationalNumberPattern()))}function gs(e,t){switch(vt(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Oo(e,t,r,n){var o=t?je(t,n):r;if(e.indexOf(o)===0){n=new se(n),n.selectNumberingPlan(t,r);var a=e.slice(o.length),i=Vt(a,n),s=i.nationalNumber,l=Vt(e,n),u=l.nationalNumber;if(!Pe(u,n.nationalNumberPattern())&&Pe(s,n.nationalNumberPattern())||vt(u,n)==="TOO_LONG")return{countryCallingCode:o,number:a}}return{number:e}}function Eo(e,t,r,n){if(!e)return{};var o;if(e[0]!=="+"){var a=So(e,t,r,n);if(a&&a!==e)o=!0,e="+"+a;else{if(t||r){var i=Oo(e,t,r,n),s=i.countryCallingCode,l=i.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:l}}return{number:e}}}if(e[1]==="0")return{};n=new se(n);for(var u=2;u-1<=md&&u<=e.length;){var f=e.slice(1,u);if(n.hasCallingCode(f))return n.selectNumberingPlan(f),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(u)};u++}return{}}function ps(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=$s(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
136
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $s(e,t){if(e){if(typeof e=="string")return Qr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qr(e,t)}}function Qr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jo(e,t){var r=t.countries;t.defaultCountry;var n=t.metadata;n=new se(n);for(var o=ps(r),a;!(a=o()).done;){var i=a.value;if(n.country(i),n.leadingDigits()){if(e&&e.search(n.leadingDigits())===0)return i}else if(sr({phone:e,country:i},void 0,n.metadata))return i}}function To(e,t){var r=t.nationalNumber,n=t.defaultCountry,o=t.metadata,a=o.getCountryCodesForCallingCode(e);if(a)return a.length===1?a[0]:jo(r,{countries:a,defaultCountry:n,metadata:o.metadata})}var Io="+",ys="[\\-\\.\\(\\)]?",en="(["+fe+"]|"+ys+")",bs="^\\"+Io+en+"*["+fe+"]"+en+"*$",vs=new RegExp(bs,"g"),Yt=fe,xs="["+Yt+"]+((\\-)*["+Yt+"])*",ws="a-zA-Z",Cs="["+ws+"]+((\\-)*["+Yt+"])*",Ns="^("+xs+"\\.)*"+Cs+"\\.?$",Ps=new RegExp(Ns,"g"),tn="tel:",zt=";phone-context=",Ss=";isub=";function Os(e){var t=e.indexOf(zt);if(t<0)return null;var r=t+zt.length;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}function Es(e){return e===null?!0:e.length===0?!1:vs.test(e)||Ps.test(e)}function js(e,t){var r=t.extractFormattedPhoneNumber,n=Os(e);if(!Es(n))throw new we("NOT_A_NUMBER");var o;if(n===null)o=r(e)||"";else{o="",n.charAt(0)===Io&&(o+=n);var a=e.indexOf(tn),i;a>=0?i=a+tn.length:i=0;var s=e.indexOf(zt);o+=e.substring(i,s)}var l=o.indexOf(Ss);if(l>0&&(o=o.substring(0,l)),o!=="")return o}var Ts=250,Is=new RegExp("["+$t+fe+"]"),As=new RegExp("[^"+fe+"#]+$");function ks(e,t,r){if(t=t||{},r=new se(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new we("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var n=Fs(e,t.v2,t.extract),o=n.number,a=n.ext,i=n.error;if(!o){if(t.v2)throw i==="TOO_SHORT"?new we("TOO_SHORT"):new we("NOT_A_NUMBER");return{}}var s=Ds(o,t.defaultCountry,t.defaultCallingCode,r),l=s.country,u=s.nationalNumber,f=s.countryCallingCode,m=s.countryCallingCodeSource,p=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new we("INVALID_COUNTRY");return{}}if(!u||u.length<dr){if(t.v2)throw new we("TOO_SHORT");return{}}if(u.length>fd){if(t.v2)throw new we("TOO_LONG");return{}}if(t.v2){var h=new Po(f,u,r.metadata);return l&&(h.country=l),p&&(h.carrierCode=p),a&&(h.ext=a),h.__countryCallingCodeSource=m,h}var y=(t.extended?r.hasSelectedNumberingPlan():l)?Pe(u,r.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:f,carrierCode:p,valid:y,possible:y?!0:!!(t.extended===!0&&r.possibleLengths()&&xo(u,r)),phone:u,ext:a}:y?Ms(l,u,a):{}}function Rs(e,t,r){if(e){if(e.length>Ts){if(r)throw new we("TOO_LONG");return}if(t===!1)return e;var n=e.search(Is);if(!(n<0))return e.slice(n).replace(As,"")}}function Fs(e,t,r){var n=js(e,{extractFormattedPhoneNumber:function(i){return Rs(i,r,t)}});if(!n)return{};if(!Md(n))return Dd(n)?{error:"TOO_SHORT"}:{};var o=_d(n);return o.ext?o:{number:n}}function Ms(e,t,r){var n={country:e,phone:t};return r&&(n.ext=r),n}function Ds(e,t,r,n){var o=Eo(Wt(e),t,r,n.metadata),a=o.countryCallingCodeSource,i=o.countryCallingCode,s=o.number,l;if(i)n.selectNumberingPlan(i);else if(s&&(t||r))n.selectNumberingPlan(t,r),t&&(l=t),i=r||je(t,n.metadata);else return{};if(!s)return{countryCallingCodeSource:a,countryCallingCode:i};var u=Vt(Wt(s),n),f=u.nationalNumber,m=u.carrierCode,p=To(i,{nationalNumber:f,defaultCountry:t,metadata:n});return p&&(l=p,p==="001"||n.country(l)),{country:l,countryCallingCode:i,countryCallingCodeSource:a,nationalNumber:f,carrierCode:m}}function rn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rn(Object(r),!0).forEach(function(n){_s(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ls(e,t,r){return ks(e,nn(nn({},t),{},{v2:!0}),r)}function on(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Bs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?on(Object(r),!0).forEach(function(n){Us(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Us(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gs(e,t){return Ys(e)||Vs(e,t)||Hs(e,t)||Ws()}function Ws(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
137
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hs(e,t){if(e){if(typeof e=="string")return an(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return an(e,t)}}function an(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vs(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,i,s;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(l){a=!0,s=l}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function Ys(e){if(Array.isArray(e))return e}function zs(e){var t=Array.prototype.slice.call(e),r=Gs(t,4),n=r[0],o=r[1],a=r[2],i=r[3],s,l,u;if(typeof n=="string")s=n;else throw new TypeError("A text for parsing must be a string.");if(!o||typeof o=="string")i?(l=a,u=i):(l=void 0,u=a),o&&(l=Bs({defaultCountry:o},l));else if(He(o))a?(l=o,u=a):u=o;else throw new Error("Invalid second argument: ".concat(o));return{text:s,options:l,metadata:u}}function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function sn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dn(Object(r),!0).forEach(function(n){Ks(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ks(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qs(e,t,r){t&&t.defaultCountry&&!po(t.defaultCountry,r)&&(t=sn(sn({},t),{},{defaultCountry:void 0}));try{return Ls(e,t,r)}catch(n){if(!(n instanceof we))throw n}}function Xs(){var e=zs(arguments),t=e.text,r=e.options,n=e.metadata;return qs(t,r,n)}function Zs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Js(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qs(e,t,r){return t&&Js(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var el=function(){function e(t){var r=t.onCountryChange,n=t.onCallingCodeChange;Zs(this,e),this.onCountryChange=r,this.onCallingCodeChange=n}return Qs(e,[{key:"reset",value:function(r){var n=r.country,o=r.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(n,o)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(r){for(var n=0,o=Object.keys(r);n<o.length;n++){var a=o[n];this[a]=r[a]}}},{key:"initCountryAndCallingCode",value:function(r,n){this.setCountry(r),this.setCallingCode(n)}},{key:"setCountry",value:function(r){this.country=r,this.onCountryChange(r)}},{key:"setCallingCode",value:function(r){this.callingCode=r,this.onCallingCodeChange(r,this.country)}},{key:"startInternationalNumber",value:function(r,n){this.international=!0,this.initCountryAndCallingCode(r,n)}},{key:"appendDigits",value:function(r){this.digits+=r}},{key:"appendNationalSignificantNumberDigits",value:function(r){this.nationalSignificantNumber+=r}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),e}();function tl(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=rl(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
138
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rl(e,t){if(e){if(typeof e=="string")return ln(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ln(e,t)}}function ln(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $e="x",At=new RegExp($e);function dt(e,t){if(t<1)return"";for(var r="";t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function un(e,t){return e[t]===")"&&t++,nl(e.slice(0,t))}function nl(e){for(var t=[],r=0;r<e.length;)e[r]==="("?t.push(r):e[r]===")"&&t.pop(),r++;var n=0,o="";t.push(e.length);for(var a=0,i=t;a<i.length;a++){var s=i[a];o+=e.slice(n,s),n=s+1}return o}function ol(e,t,r){for(var n=tl(r.split("")),o;!(o=n()).done;){var a=o.value;if(e.slice(t+1).search(At)<0)return;t=e.search(At),e=e.replace(At,a)}return[e,t]}function al(e,t,r){var n=r.metadata,o=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,i=new RegExp("^(?:".concat(t.pattern(),")$"));if(i.test(e.nationalSignificantNumber))return dl(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:o,getSeparatorAfterNationalPrefix:a})}function il(e,t){return vt(e,t)==="IS_POSSIBLE"}function dl(e,t,r){var n=r.metadata,o=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,o(t)){var i=cn(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:n});if(i)return i}return cn(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:n})}function cn(e,t,r){var n=r.metadata,o=r.useNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,i=No(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:o,metadata:n});if(o||(e.nationalPrefix?i=e.nationalPrefix+a(t)+i:e.complexPrefixBeforeNationalSignificantNumber&&(i=e.complexPrefixBeforeNationalSignificantNumber+" "+i)),sl(i,e))return i}function sl(e,t){return ct(e)===t.getNationalDigits()}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ul(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cl(e,t,r){return t&&ul(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var fl=function(){function e(){ll(this,e)}return cl(e,[{key:"parse",value:function(r){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(r),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var n=this.context[0],o=n.branches,a=n.instructions;if(o)return{op:"|",args:o.concat([kt(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(r){this.context.push(r)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(r){if(!r)throw new Error("Pattern is required");var n=r.match(gl);if(!n){if(hl.test(r))throw new Error("Illegal characters found in a pattern: ".concat(r));this.getContext().instructions=this.getContext().instructions.concat(r.split(""));return}var o=n[1],a=r.slice(0,n.index),i=r.slice(n.index+o.length);switch(o){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var s=this.getContext(),l=s.branches;l.push(kt(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:l});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(kt(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:ml(a)});break;default:throw new Error("Unknown operator: ".concat(o))}i&&this.parsePattern(i)}}]),e}();function ml(e){for(var t=[],r=0;r<e.length;){if(e[r]==="-"){if(r===0||r===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var n=e[r-1].charCodeAt(0)+1,o=e[r+1].charCodeAt(0)-1,a=n;a<=o;)t.push(String.fromCharCode(a)),a++}else t.push(e[r]);r++}return t}var hl=/[\(\)\[\]\?\:\|]/,gl=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function kt(e){return e.length===1?e[0]:e}function fn(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=pl(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
139
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pl(e,t){if(e){if(typeof e=="string")return mn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mn(e,t)}}function mn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bl(e,t,r){return t&&yl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var vl=function(){function e(t){$l(this,e),this.matchTree=new fl().parse(t)}return bl(e,[{key:"match",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.allowOverflow;if(!r)throw new Error("String is required");var a=Kt(r.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!o))return a}}]),e}();function Kt(e,t,r){if(typeof t=="string"){var n=e.join("");return t.indexOf(n)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:n.indexOf(t)===0?r&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var o=e.slice(),a=0;a<t.length;){var i=t[a],s=Kt(o,i,r&&a===t.length-1);if(s){if(s.overflow)return s;if(s.match){if(o=o.slice(s.matchedChars.length),o.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(s.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
|
|
140
|
+
`.concat(JSON.stringify(s,null,2)))}}else return;a++}return r?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-o.length)}}switch(t.op){case"|":for(var l,u=fn(t.args),f;!(f=u()).done;){var m=f.value,p=Kt(e,m,r);if(p){if(p.overflow)return p;if(p.match)return{match:!0,matchedChars:p.matchedChars};if(p.partialMatch)l=!0;else throw new Error(`Unsupported match result:
|
|
141
|
+
`.concat(JSON.stringify(p,null,2)))}}return l?{partialMatch:!0}:void 0;case"[]":for(var h=fn(t.args),y;!(y=h()).done;){var C=y.value;if(e[0]===C)return e.length===1?{match:!0,matchedChars:e}:r?{overflow:!0}:{match:!0,matchedChars:[C]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function hn(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=xl(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
142
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xl(e,t){if(e){if(typeof e=="string")return gn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(e,t)}}function gn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nl(e,t,r){return t&&Cl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var qt="9",Pl=15,Sl=dt(qt,Pl),Ol=/[- ]/,El=function(){return/\[([^\[\]])*\]/g},jl=function(){return/\d(?=[^,}][^,}])/g},Tl=new RegExp("["+ye+"]*\\$1["+ye+"]*(\\$\\d["+ye+"]*)*$"),pn=3,Il=function(){function e(t){t.state;var r=t.metadata;wl(this,e),this.metadata=r,this.resetFormat()}return Nl(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(r,n){this.resetFormat(),r?(this.isNANP=r.callingCode()==="1",this.matchingFormats=r.formats(),n.nationalSignificantNumber&&this.narrowDownMatchingFormats(n)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(r,n){var o=this;if(il(n.nationalSignificantNumber,this.metadata))for(var a=hn(this.matchingFormats),i;!(i=a()).done;){var s=i.value,l=al(n,s,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(f){return o.shouldTryNationalPrefixFormattingRule(f,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:function(f){return o.getSeparatorAfterNationalPrefix(f)}});if(l)return this.resetFormat(),this.chosenFormat=s,this.setNationalNumberTemplate(l.replace(/\d/g,$e),n),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf($e),l}return this.formatNationalNumberWithNextDigits(r,n)}},{key:"formatNationalNumberWithNextDigits",value:function(r,n){var o=this.chosenFormat,a=this.chooseFormat(n);if(a)return a===o?this.formatNextNationalNumberDigits(r):this.formatNextNationalNumberDigits(n.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(r){var n=this,o=r.nationalSignificantNumber,a=r.nationalPrefix,i=r.international,s=o,l=s.length-pn;l<0&&(l=0),this.matchingFormats=this.matchingFormats.filter(function(u){return n.formatSuits(u,i,a)&&n.formatMatches(u,s,l)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(r,n,o){return!(o&&!r.usesNationalPrefix()&&!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!n&&!o&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(r,n,o){var a=r.leadingDigitsPatterns().length;if(a===0)return!0;o=Math.min(o,a-1);var i=r.leadingDigitsPatterns()[o];if(n.length<pn)try{return new vl(i).match(n,{allowOverflow:!0})!==void 0}catch(s){return console.error(s),!0}return new RegExp("^(".concat(i,")")).test(n)}},{key:"getFormatFormat",value:function(r,n){return n?r.internationalFormat():r.format()}},{key:"chooseFormat",value:function(r){for(var n=this,o=function(){var u=i.value;return n.chosenFormat===u?"break":Tl.test(n.getFormatFormat(u,r.international))?n.createTemplateForFormat(u,r)?(n.chosenFormat=u,"break"):(n.matchingFormats=n.matchingFormats.filter(function(f){return f!==u}),"continue"):"continue"},a=hn(this.matchingFormats.slice()),i;!(i=a()).done;){var s=o();if(s==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(r,n){if(!(r.pattern().indexOf("|")>=0)){var o=this.getTemplateForFormat(r,n);if(o)return this.setNationalNumberTemplate(o,n),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(r){return this.isNANP||r&&r.nationalPrefixFormattingRule()&&Ol.test(r.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(r,n){var o=r.IDDPrefix,a=r.missingPlus;return o?n&&n.spacing===!1?o:o+" ":a?"":"+"}},{key:"getTemplate",value:function(r){if(this.template){for(var n=-1,o=0,a=r.international?this.getInternationalPrefixBeforeCountryCallingCode(r,{spacing:!1}):"";o<a.length+r.getDigitsWithoutInternationalPrefix().length;)n=this.template.indexOf($e,n+1),o++;return un(this.template,n+1)}}},{key:"setNationalNumberTemplate",value:function(r,n){this.nationalNumberTemplate=r,this.populatedNationalNumberTemplate=r,this.populatedNationalNumberTemplatePosition=-1,n.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g,$e)+dt($e,n.callingCode.length)+" "+r:this.template=r}},{key:"getTemplateForFormat",value:function(r,n){var o=n.nationalSignificantNumber,a=n.international,i=n.nationalPrefix,s=n.complexPrefixBeforeNationalSignificantNumber,l=r.pattern();l=l.replace(El(),"\\d").replace(jl(),"\\d");var u=Sl.match(l)[0];if(!(o.length>u.length)){var f=new RegExp("^"+l+"$"),m=o.replace(/\d/g,qt);f.test(m)&&(u=m);var p=this.getFormatFormat(r,a),h;if(this.shouldTryNationalPrefixFormattingRule(r,{international:a,nationalPrefix:i})){var y=p.replace(Co,r.nationalPrefixFormattingRule());if(ct(r.nationalPrefixFormattingRule())===(i||"")+ct("$1")&&(p=y,h=!0,i))for(var C=i.length;C>0;)p=p.replace(/\d/,$e),C--}var $=u.replace(new RegExp(l),p).replace(new RegExp(qt,"g"),$e);return h||(s?$=dt($e,s.length)+" "+$:i&&($=dt($e,i.length)+this.getSeparatorAfterNationalPrefix(r)+$)),a&&($=wo($)),$}}},{key:"formatNextNationalNumberDigits",value:function(r){var n=ol(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,r);if(!n){this.resetFormat();return}return this.populatedNationalNumberTemplate=n[0],this.populatedNationalNumberTemplatePosition=n[1],un(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(r,n){var o=n.international,a=n.nationalPrefix;if(r.nationalPrefixFormattingRule()){var i=r.usesNationalPrefix();if(i&&a||!i&&!o)return!0}}}]),e}();function Ao(e,t){return Fl(e)||Rl(e,t)||kl(e,t)||Al()}function Al(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kl(e,t){if(e){if(typeof e=="string")return $n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $n(e,t)}}function $n(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rl(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,i,s;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(l){a=!0,s=l}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function Fl(e){if(Array.isArray(e))return e}function Ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _l(e,t,r){return t&&Dl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ll="["+ye+fe+"]+",Bl=new RegExp("^"+Ll+"$","i"),Ul="(?:["+$t+"]["+ye+fe+"]*|["+ye+fe+"]+)",Gl=new RegExp("[^"+ye+fe+"]+.*$"),Wl=/[^\d\[\]]/,Hl=function(){function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,o=t.metadata,a=t.onNationalSignificantNumberChange;Ml(this,e),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=o,this.onNationalSignificantNumberChange=a}return _l(e,[{key:"input",value:function(r,n){var o=zl(r),a=Ao(o,2),i=a[0],s=a[1],l=ct(i),u;return s&&(n.digits||(n.startInternationalNumber(),l||(u=!0))),l&&this.inputDigits(l,n),{digits:l,justLeadingPlus:u}}},{key:"inputDigits",value:function(r,n){var o=n.digits,a=o.length<3&&o.length+r.length>=3;if(n.appendDigits(r),a&&this.extractIddPrefix(n),this.isWaitingForCountryCallingCode(n)){if(!this.extractCountryCallingCode(n))return}else n.appendNationalSignificantNumberDigits(r);n.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(n.getNationalDigits(),function(i){return n.update(i)})}},{key:"isWaitingForCountryCallingCode",value:function(r){var n=r.international,o=r.callingCode;return n&&!o}},{key:"extractCountryCallingCode",value:function(r){var n=Eo("+"+r.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=n.countryCallingCode,a=n.number;if(o)return r.setCallingCode(o),r.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(r){if(r){this.hasSelectedNumberingPlan=!0;var n=r._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=n&&Wl.test(n)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(r,n){if(this.hasSelectedNumberingPlan){var o=Ht(r,this.metadata),a=o.nationalPrefix,i=o.nationalNumber,s=o.carrierCode;if(i!==r)return this.onExtractedNationalNumber(a,s,i,r,n),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(r,n,o){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(r,o);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Ht(r,this.metadata),i=a.nationalPrefix,s=a.nationalNumber,l=a.carrierCode;if(s!==n)return this.onExtractedNationalNumber(i,l,s,r,o),!0}}},{key:"onExtractedNationalNumber",value:function(r,n,o,a,i){var s,l,u=a.lastIndexOf(o);if(u>=0&&u===a.length-o.length){l=!0;var f=a.slice(0,u);f!==r&&(s=f)}i({nationalPrefix:r,carrierCode:n,nationalSignificantNumber:o,nationalSignificantNumberMatchesInput:l,complexPrefixBeforeNationalSignificantNumber:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(r){if(this.extractAnotherNationalSignificantNumber(r.getNationalDigits(),r.nationalSignificantNumber,function(n){return r.update(n)}))return!0;if(this.extractIddPrefix(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0;if(this.fixMissingPlus(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0}},{key:"extractIddPrefix",value:function(r){var n=r.international,o=r.IDDPrefix,a=r.digits;if(r.nationalSignificantNumber,!(n||o)){var i=So(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(i!==void 0&&i!==a)return r.update({IDDPrefix:a.slice(0,a.length-i.length)}),this.startInternationalNumber(r,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(r){if(!r.international){var n=Oo(r.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=n.countryCallingCode;if(n.number,o)return r.update({missingPlus:!0}),this.startInternationalNumber(r,{country:r.country,callingCode:o}),!0}}},{key:"startInternationalNumber",value:function(r,n){var o=n.country,a=n.callingCode;r.startInternationalNumber(o,a),r.nationalSignificantNumber&&(r.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(r){this.extractCountryCallingCode(r)&&this.extractNationalSignificantNumber(r.getNationalDigits(),function(n){return r.update(n)})}}]),e}();function Vl(e){var t=e.search(Ul);if(!(t<0)){e=e.slice(t);var r;return e[0]==="+"&&(r=!0,e=e.slice(1)),e=e.replace(Gl,""),r&&(e="+"+e),e}}function Yl(e){var t=Vl(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function zl(e){var t=Yl(e),r=Ao(t,2),n=r[0],o=r[1];return Bl.test(n)||(n=""),[n,o]}function Kl(e,t){return Jl(e)||Zl(e,t)||Xl(e,t)||ql()}function ql(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
144
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xl(e,t){if(e){if(typeof e=="string")return yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yn(e,t)}}function yn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zl(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,i,s;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(l){a=!0,s=l}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function Jl(e){if(Array.isArray(e))return e}function Ql(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tu(e,t,r){return t&&eu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var _e=function(){function e(t,r){Ql(this,e),this.metadata=new se(r);var n=this.getCountryAndCallingCode(t),o=Kl(n,2),a=o[0],i=o[1];this.defaultCountry=a,this.defaultCallingCode=i,this.reset()}return tu(e,[{key:"getCountryAndCallingCode",value:function(r){var n,o;return r&&(He(r)?(n=r.defaultCountry,o=r.defaultCallingCode):n=r),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,o]}},{key:"input",value:function(r){var n=this.parser.input(r,this.state),o=n.digits,a=n.justLeadingPlus;if(a)this.formattedOutput="+";else if(o){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var i;if(this.metadata.hasSelectedNumberingPlan()&&(i=this.formatter.format(o,this.state)),i===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var s=this.state.getNationalDigits();s&&(i=this.formatter.format(s,this.state))}this.formattedOutput=i?this.getFullNumber(i):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var r=this;return this.state=new el({onCountryChange:function(o){r.country=o},onCallingCodeChange:function(o,a){r.metadata.selectNumberingPlan(a,o),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new Il({state:this.state,metadata:this.metadata}),this.parser=new Hl({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var n=this;if(this.isInternational()){var o=function(s){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!s})+s},a=this.state.callingCode;return o(a?r?"".concat(a," ").concat(r):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,n=r.nationalSignificantNumber,o=r.complexPrefixBeforeNationalSignificantNumber,a=r.nationalPrefix,i=n,s=o||a;return s&&(i=s+i),i}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(r?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,$e)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(r);return n&&n.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(To(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var r=this.state,n=r.digits,o=r.callingCode,a=r.country,i=r.nationalSignificantNumber;if(n){if(this.isInternational())return o?"+"+o+i:"+"+n;if(a||o){var s=a?this.metadata.countryCallingCode():o;return"+"+s+i}}}},{key:"getNumber",value:function(){var r=this.state,n=r.nationalSignificantNumber,o=r.carrierCode,a=r.callingCode,i=this._getCountry();if(n&&!(!i&&!a)){if(i&&i===this.defaultCountry){var s=new se(this.metadata.metadata);s.selectNumberingPlan(i);var l=s.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(l);if(u.length>1){var f=jo(n,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(i=f)}}var m=new Po(i||a,n,this.metadata.metadata);return o&&(m.carrierCode=o),m}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function bn(e){return new se(e).getCountries()}function ru(e,t,r){return r||(r=t,t=void 0),new _e(t,r).input(e)}function ko(e){var t=e.inputFormat,r=e.country,n=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(je(r,n)):""}function Xt(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function nu(e,t,r){if(!(r&&r.ignoreRest)){var n=function(a){if(r)switch(a){case"end":r.ignoreRest=!0;break}};return vo(e,t,n)}}function Ro(e){var t=e.onKeyDown,r=e.inputFormat;return c.useCallback(function(n){if(n.keyCode===au&&r==="INTERNATIONAL"&&n.target instanceof HTMLInputElement&&ou(n.target)===iu.length){n.preventDefault();return}t&&t(n)},[t,r])}function ou(e){return e.selectionStart}var au=8,iu="+",du=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zt.apply(this,arguments)}function su(e,t){if(e==null)return{};var r=lu(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function uu(e){function t(r,n){var o=r.onKeyDown,a=r.country,i=r.inputFormat,s=r.metadata,l=s===void 0?e:s;r.international,r.withCountryCallingCode;var u=su(r,du),f=c.useCallback(function(p){var h=new _e(a,l),y=ko({inputFormat:i,country:a,metadata:l}),C=h.input(y+p),$=h.getTemplate();return y&&(C=Xt(C,y),$&&($=Xt($,y))),{text:C,template:$}},[a,l]),m=Ro({onKeyDown:o,inputFormat:i});return c.createElement(Ye,Zt({},u,{ref:n,parse:nu,format:f,onKeyDown:m}))}return t=c.forwardRef(t),t.propTypes={value:k.string.isRequired,onChange:k.func.isRequired,onKeyDown:k.func,country:k.string,inputFormat:k.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:k.object},t}const cu=uu();var fu=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jt.apply(this,arguments)}function mu(e,t){if(e==null)return{};var r=hu(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function gu(e){function t(r,n){var o=r.value,a=r.onChange,i=r.onKeyDown,s=r.country,l=r.inputFormat,u=r.metadata,f=u===void 0?e:u,m=r.inputComponent,p=m===void 0?"input":m;r.international,r.withCountryCallingCode;var h=mu(r,fu),y=ko({inputFormat:l,country:s,metadata:f}),C=c.useCallback(function(b){var g=Wt(b.target.value);if(g===o){var O=vn(y,g,s,f);O.indexOf(b.target.value)===0&&(g=g.slice(0,-1))}a(g)},[y,o,a,s,f]),$=Ro({onKeyDown:i,inputFormat:l});return c.createElement(p,Jt({},h,{ref:n,value:vn(y,o,s,f),onChange:C,onKeyDown:$}))}return t=c.forwardRef(t),t.propTypes={value:k.string.isRequired,onChange:k.func.isRequired,onKeyDown:k.func,country:k.string,inputFormat:k.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:k.object,inputComponent:k.elementType},t}const pu=gu();function vn(e,t,r,n){return Xt(ru(e+t,r,n),e)}function $u(e){return xn(e[0])+xn(e[1])}function xn(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var yu=["value","onChange","options","disabled","readOnly"],bu=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function vu(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=xu(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
145
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xu(e,t){if(e){if(typeof e=="string")return wn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wn(e,t)}}function wn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mt.apply(this,arguments)}function Fo(e,t){if(e==null)return{};var r=wu(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Mo(e){var t=e.value,r=e.onChange,n=e.options,o=e.disabled,a=e.readOnly,i=Fo(e,yu),s=c.useCallback(function(l){var u=l.target.value;r(u==="ZZ"?void 0:u)},[r]);return c.useMemo(function(){return _o(n,t)},[n,t]),c.createElement("select",mt({},i,{disabled:o||a,readOnly:a,value:t||"ZZ",onChange:s}),n.map(function(l){var u=l.value,f=l.label,m=l.divider;return c.createElement("option",{key:m?"|":u||"ZZ",value:m?"|":u||"ZZ",disabled:!!m,style:m?Cu:void 0},f)}))}Mo.propTypes={value:k.string,onChange:k.func.isRequired,options:k.arrayOf(k.shape({value:k.string,label:k.string,divider:k.bool})).isRequired,disabled:k.bool,readOnly:k.bool};var Cu={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Do(e){var t=e.value,r=e.options,n=e.className,o=e.iconComponent;e.getIconAspectRatio;var a=e.arrowComponent,i=a===void 0?Nu:a,s=e.unicodeFlags,l=Fo(e,bu),u=c.useMemo(function(){return _o(r,t)},[r,t]);return c.createElement("div",{className:"PhoneInputCountry"},c.createElement(Mo,mt({},l,{value:t,options:r,className:ut("PhoneInputCountrySelect",n)})),u&&(s&&t?c.createElement("div",{className:"PhoneInputCountryIconUnicode"},$u(t)):c.createElement(o,{"aria-hidden":!0,country:t,label:u.label,aspectRatio:s?1:void 0})),c.createElement(i,null))}Do.propTypes={iconComponent:k.elementType,arrowComponent:k.elementType,unicodeFlags:k.bool};function Nu(){return c.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function _o(e,t){for(var r=vu(e),n;!(n=r()).done;){var o=n.value;if(!o.divider&&Pu(o.value,t))return o}}function Pu(e,t){return e==null?t==null:e===t}var Su=["country","countryName","flags","flagUrl"];function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qt.apply(this,arguments)}function Ou(e,t){if(e==null)return{};var r=Eu(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Eu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function lr(e){var t=e.country,r=e.countryName,n=e.flags,o=e.flagUrl,a=Ou(e,Su);return n&&n[t]?n[t]({title:r}):c.createElement("img",Qt({},a,{alt:r,role:r?void 0:"presentation",src:o.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}lr.propTypes={country:k.string.isRequired,countryName:k.string.isRequired,flags:k.objectOf(k.elementType),flagUrl:k.string.isRequired};var ju=["aspectRatio"],Tu=["title"],Iu=["title"];function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}function ur(e,t){if(e==null)return{};var r=Au(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Au(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function xt(e){var t=e.aspectRatio,r=ur(e,ju);return t===1?c.createElement(Bo,r):c.createElement(Lo,r)}xt.propTypes={title:k.string.isRequired,aspectRatio:k.number};function Lo(e){var t=e.title,r=ur(e,Tu);return c.createElement("svg",ht({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),c.createElement("title",null,t),c.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},c.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),c.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),c.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),c.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),c.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),c.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),c.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}Lo.propTypes={title:k.string.isRequired};function Bo(e){var t=e.title,r=ur(e,Iu);return c.createElement("svg",ht({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),c.createElement("title",null,t),c.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},c.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),c.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),c.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),c.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),c.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),c.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),c.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}Bo.propTypes={title:k.string.isRequired};function ku(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t<e.length;){var r=e.charCodeAt(t);if(!(r>=48&&r<=57))return!1;t++}return!0}function Uo(e){ku(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function Ru(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Fu(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
146
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fu(e,t){if(e){if(typeof e=="string")return Cn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cn(e,t)}}function Cn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mu(e,t){if(!t)return e;for(var r=[],n=[],o=r,a=function(){var u=s.value;if(u==="|")o.push({divider:!0});else if(u==="..."||u==="…")o=n;else{var f;u==="🌐"?f=void 0:f=u;var m=e.indexOf(e.filter(function(h){return h.value===f})[0]),p=e[m];e.splice(m,1),o.push(p)}},i=Ru(t),s;!(s=i()).done;)a();return r.concat(e).concat(n)}function Du(e,t){if(e&&(e=e.filter(function(r){switch(r){case"🌐":case"|":case"...":case"…":return!0;default:return wt(r,t)}}),e.length>0))return e}function wt(e,t){return po(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function Go(e,t){return e&&(e=e.filter(function(r){return wt(r,t)}),e.length===0&&(e=void 0)),e}var _u=["country","label","aspectRatio"];function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},er.apply(this,arguments)}function Lu(e,t){if(e==null)return{};var r=Bu(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Wo(e){var t=e.flags,r=e.flagUrl,n=e.flagComponent,o=e.internationalIcon;function a(i){var s=i.country,l=i.label,u=i.aspectRatio,f=Lu(i,_u),m=o===xt?u:void 0;return c.createElement("div",er({},f,{className:ut("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":m===1,"PhoneInputCountryIcon--border":s})}),s?c.createElement(n,{country:s,countryName:l,flags:t,flagUrl:r,className:"PhoneInputCountryIconImg"}):c.createElement(o,{title:l,aspectRatio:m,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:k.string,label:k.string.isRequired,aspectRatio:k.number},a}Wo({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:lr,internationalIcon:xt});function Uu(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Gu(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
147
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gu(e,t){if(e){if(typeof e=="string")return Nn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nn(e,t)}}function Nn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wu(e,t){for(var r=Uu(e),n;!(n=r()).done;){var o=n.value;o&&Hu(o,t)}}function Hu(e,t){typeof e=="function"?e(t):e.current=t}var Ho=k.shape({country_calling_codes:k.object.isRequired,countries:k.object.isRequired}),Vo=k.objectOf(k.string);function Ce(e,t){var r="+"+je(e,t);return r}function Vu(e){var t=e.value,r=e.phoneNumber,n=e.defaultCountry,o=e.getAnyCountry,a=e.countries,i=e.required,s=e.metadata,l;return r&&r.country?l=r.country:n&&(!t||Re(t,n,s))&&(l=n),a&&a.indexOf(l)<0&&(l=void 0),!l&&i&&a&&a.length>0&&(l=o()),l}function Yu(e){var t=e.countries,r=e.countryNames,n=e.addInternationalOption,o=e.compareStringsLocales,a=e.compareStrings;a||(a=Qu);var i=t.map(function(s){return{value:s,label:r[s]||s}});return i.sort(function(s,l){return a(s.label,l.label,o)}),n&&i.unshift({label:r.ZZ}),i}function Yo(e,t){return Xs(e||"",t)}function zu(e){return e.formatNational().replace(/\D/g,"")}function Ku(e,t){var r=t.prevCountry,n=t.newCountry,o=t.metadata,a=t.useNationalFormat;if(r===n)return e;if(!e)return a?"":n?Ce(n,o):"";if(n){if(e[0]==="+"){if(a)return e.indexOf("+"+je(n,o))===0?ec(e,n,o):"";if(r){var i=Ce(n,o);return e.indexOf(i)===0?e:i}else{var s=Ce(n,o);return e.indexOf(s)===0?e:s}}}else if(e[0]!=="+")return Ae(e,r,o)||"";return e}function Ae(e,t,r){if(e){if(e[0]==="+"){if(e==="+")return;var n=new _e(t,r);return n.input(e),n.getNumberValue()}if(t){var o=Ko(e,t,r);return"+".concat(je(t,r)).concat(o||"")}}}function qu(e,t,r){var n=Ko(e,t,r);if(n){var o=n.length-Xu(t,r);if(o>0)return e.slice(0,e.length-o)}return e}function Xu(e,t){return t=new se(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function zo(e,t){var r=t.country,n=t.countries,o=t.defaultCountry,a=t.latestCountrySelectedByUser,i=t.required,s=t.metadata;if(e==="+")return r;var l=Ju(e,s);if(l)return!n||n.indexOf(l)>=0?l:void 0;if(r){if(Re(e,r,s)){if(a&&Re(e,a,s))return a;if(o&&Re(e,o,s))return o;if(!i)return}else if(!i)return}return r}function Zu(e,t){var r=t.prevPhoneDigits,n=t.country,o=t.defaultCountry,a=t.latestCountrySelectedByUser,i=t.countryRequired,s=t.getAnyCountry,l=t.countries,u=t.international,f=t.limitMaxLength,m=t.countryCallingCodeEditable,p=t.metadata;if(u&&m===!1&&n){var h=Ce(n,p);if(e.indexOf(h)!==0){var y,C=e&&e[0]!=="+";return C?(e=h+e,y=Ae(e,n,p)):e=h,{phoneDigits:e,value:y,country:n}}}u===!1&&n&&e&&e[0]==="+"&&(e=Pn(e,n,p)),e&&n&&f&&(e=qu(e,n,p)),e&&e[0]!=="+"&&(!n||u)&&(e="+"+e),!e&&r&&r[0]==="+"&&(u?n=void 0:n=o),e==="+"&&r&&r[0]==="+"&&r.length>1&&(n=void 0);var $;return e&&(e[0]==="+"&&(e==="+"||n&&Ce(n,p).indexOf(e)===0)?$=void 0:$=Ae(e,n,p)),$&&(n=zo($,{country:n,countries:l,defaultCountry:o,latestCountrySelectedByUser:a,required:!1,metadata:p}),u===!1&&n&&e&&e[0]==="+"&&(e=Pn(e,n,p),$=Ae(e,n,p))),!n&&i&&(n=o||s()),{phoneDigits:e,country:n,value:$}}function Pn(e,t,r){if(e.indexOf(Ce(t,r))===0){var n=new _e(t,r);n.input(e);var o=n.getNumber();return o?o.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function Ju(e,t){var r=new _e(null,t);return r.input(e),r.getCountry()}function Qu(e,t,r){return String.prototype.localeCompare?e.localeCompare(t,r):e<t?-1:e>t?1:0}function ec(e,t,r){if(t){var n="+"+je(t,r);if(e.length<n.length){if(n.indexOf(e)===0)return""}else if(e.indexOf(n)===0)return e.slice(n.length)}for(var o=0,a=Object.keys(r.country_calling_codes);o<a.length;o++){var i=a[o];if(e.indexOf(i)===1)return e.slice(1+i.length)}return""}function Ko(e,t,r){var n=new _e(t,r);n.input(e);var o=n.getNumber();return o&&o.nationalNumber}function Re(e,t,r){for(var n=Ce(t,r),o=0;o<e.length&&o<n.length;){if(e[o]!==n[o])return!1;o++}return!0}function qo(e){var t=e.value,r=e.phoneNumber,n=e.defaultCountry,o=e.international,a=e.useNationalFormat,i=e.metadata;return(o===!1||a)&&r&&r.country?zu(r):!t&&o&&n?Ce(n,i):t}function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sn(Object(r),!0).forEach(function(n){tc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tc(e,t,r){return t=rc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rc(e){var t=nc(e,"string");return qe(t)=="symbol"?t:t+""}function nc(e,t){if(qe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oc(e,t,r){var n=e.metadata,o=e.countries,a=e.defaultCountry,i=e.value,s=e.reset,l=e.international,u=e.displayInitialValueAsLocalNumber,f=e.initialValueFormat,m=t.defaultCountry,p=t.value,h=t.reset;r.country;var y=r.value,C=r.hasUserSelectedACountry,$=r.latestCountrySelectedByUser,b=function(A){return qo(nt(nt({},A),{},{international:l,useNationalFormat:u||f==="national",metadata:n}))};if(s!==h)return{phoneDigits:b({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==m){var g=!a||wt(a,n),O=!y||l&&y===b({value:void 0,defaultCountry:m}),U=!i&&O;if(!C&&g&&U)return{country:a,phoneDigits:b({value:void 0,defaultCountry:a}),value:void 0}}if(!On(i,p)&&!On(i,y)){var x,H;if(i){i&&Uo(i),x=Yo(i,n);var T=Go(o,n);x&&x.country?(!T||T.indexOf(x.country)>=0)&&(H=x.country):(H=zo(i,{country:void 0,countries:T,metadata:n}),H||a&&i.indexOf(Ce(a,n))===0&&(H=a))}var B;if(i){if($){var I=H?$===H:Re(i,$,n);I?H||(H=$):B={latestCountrySelectedByUser:void 0}}}else B={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return nt(nt({},B),{},{phoneDigits:b({phoneNumber:x,value:i,defaultCountry:a}),value:i,country:i?H:a})}}function On(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var ac=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function Me(e){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Me(e)}function En(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?En(Object(r),!0).forEach(function(n){pe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fe.apply(this,arguments)}function ic(e,t){if(e==null)return{};var r=dc(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jo(n.key),n)}}function lc(e,t,r){return t&&jn(e.prototype,t),r&&jn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uc(e,t,r){return t=gt(t),cc(e,Zo()?Reflect.construct(t,r||[],gt(e).constructor):t.apply(e,r))}function cc(e,t){if(t&&(Me(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fc(e)}function fc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zo=function(){return!!e})()}function gt(e){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gt(e)}function mc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tr(e,t)}function tr(e,t){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},tr(e,t)}function pe(e,t,r){return t=Jo(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jo(e){var t=hc(e,"string");return Me(t)=="symbol"?t:t+""}function hc(e,t){if(Me(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Me(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gc=function(e){function t(r){var n;sc(this,t),n=uc(this,t,[r]),pe(n,"setInputRef",function($){Wu([n.props.inputRef,n.inputRef],$)}),pe(n,"isCountrySupportedWithError",function($){var b=n.props.metadata;return wt($,b)}),pe(n,"onCountryChange",function($){var b=n.props,g=b.international,O=b.metadata,U=b.onChange,x=b.focusInputOnCountrySelection,H=n.state,T=H.phoneDigits,B=H.country,I=Ku(T,{prevCountry:B,newCountry:$,metadata:O,useNationalFormat:!g}),w=Ae(I,$,O);x&&n.inputRef.current.focus(),n.setState({country:$,latestCountrySelectedByUser:$,hasUserSelectedACountry:!0,phoneDigits:I,value:w},function(){U(w)})}),pe(n,"onChange",function($){var b=n.props,g=b.defaultCountry,O=b.onChange,U=b.addInternationalOption,x=b.international,H=b.limitMaxLength,T=b.countryCallingCodeEditable,B=b.metadata,I=n.state,w=I.countries,A=I.phoneDigits,F=I.country,P=I.latestCountrySelectedByUser,_=Zu($,{prevPhoneDigits:A,country:F,countryRequired:!U,defaultCountry:g,latestCountrySelectedByUser:P,getAnyCountry:function(){return n.getFirstSupportedCountry({countries:w})},countries:w,international:x,limitMaxLength:H,countryCallingCodeEditable:T,metadata:B}),J=_.phoneDigits,K=_.country,ee=_.value,te={phoneDigits:J,value:ee,country:K};P&&ee&&!Re(ee,P,B)&&(te.latestCountrySelectedByUser=void 0),T===!1&&!ee&&J===n.state.phoneDigits&&(te.forceRerender={}),n.setState(te,function(){return O(ee)})}),pe(n,"_onFocus",function(){return n.setState({isFocused:!0})}),pe(n,"_onBlur",function(){return n.setState({isFocused:!1})}),pe(n,"onFocus",function($){n._onFocus();var b=n.props.onFocus;b&&b($)}),pe(n,"onBlur",function($){var b=n.props.onBlur;n._onBlur(),b&&b($)}),pe(n,"onCountryFocus",function($){n._onFocus();var b=n.props.countrySelectProps;if(b){var g=b.onFocus;g&&g($)}}),pe(n,"onCountryBlur",function($){n._onBlur();var b=n.props.countrySelectProps;if(b){var g=b.onBlur;g&&g($)}}),n.inputRef=c.createRef();var o=n.props,a=o.value;o.labels;var i=o.international,s=o.addInternationalOption,l=o.displayInitialValueAsLocalNumber,u=o.initialValueFormat,f=o.metadata,m=n.props,p=m.defaultCountry,h=m.countries;p&&(n.isCountrySupportedWithError(p)||(p=void 0)),a&&Uo(a),h=Go(h,f);var y=Yo(a,f);n.CountryIcon=Wo(n.props);var C=Vu({value:a,phoneNumber:y,defaultCountry:p,required:!s,countries:h||bn(f),getAnyCountry:function(){return n.getFirstSupportedCountry({countries:h})},metadata:f});return n.state={props:n.props,country:C,countries:h,phoneDigits:qo({value:a,phoneNumber:y,defaultCountry:p,international:i,useNationalFormat:l||u==="national",metadata:f}),value:a},n}return mc(t,e),lc(t,[{key:"componentDidMount",value:function(){var n=this.props.onCountryChange,o=this.props.defaultCountry,a=this.state.country;n&&(o&&(this.isCountrySupportedWithError(o)||(o=void 0)),a!==o&&n(a))}},{key:"componentDidUpdate",value:function(n,o){var a=this.props.onCountryChange,i=this.state.country;a&&i!==o.country&&a(i)}},{key:"getCountrySelectOptions",value:function(n){var o=n.countries,a=this.props,i=a.international,s=a.countryCallingCodeEditable,l=a.countryOptionsOrder,u=a.addInternationalOption,f=a.labels,m=a.locales,p=a.metadata;return this.useMemoCountrySelectOptions(function(){return Mu(Yu({countries:o||bn(p),countryNames:f,addInternationalOption:i&&s===!1?!1:u,compareStringsLocales:m}),Du(l,p))},[o,l,u,f,p])}},{key:"useMemoCountrySelectOptions",value:function(n,o){return(!this.countrySelectOptionsMemoDependencies||!$c(o,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=n(),this.countrySelectOptionsMemoDependencies=o),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(n){var o=n.countries,a=this.getCountrySelectOptions({countries:o});return a[0].value}},{key:"render",value:function(){var n=this.props,o=n.name,a=n.disabled,i=n.readOnly,s=n.autoComplete,l=n.style,u=n.className;n.inputRef;var f=n.inputComponent,m=n.numberInputProps,p=n.smartCaret,h=n.countrySelectComponent,y=n.countrySelectProps,C=n.containerComponent,$=n.containerComponentProps;n.defaultCountry,n.countries,n.countryOptionsOrder;var b=n.labels;n.flags,n.flagComponent,n.flagUrl,n.addInternationalOption,n.internationalIcon,n.displayInitialValueAsLocalNumber,n.initialValueFormat,n.onCountryChange,n.limitMaxLength,n.countryCallingCodeEditable,n.focusInputOnCountrySelection,n.reset;var g=n.metadata,O=n.international;n.locales;var U=ic(n,ac),x=this.state,H=x.country,T=x.countries,B=x.phoneDigits,I=x.isFocused,w=p?cu:pu,A=this.getCountrySelectOptions({countries:T});return c.createElement(C,Fe({style:l,className:ut(u,"PhoneInput",{"PhoneInput--focus":I,"PhoneInput--disabled":a,"PhoneInput--readOnly":i})},$),c.createElement(h,Fe({name:o?"".concat(o,"Country"):void 0,"aria-label":b.country},y,{value:H,options:A,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:a||y&&y.disabled,readOnly:i||y&&y.readOnly,iconComponent:this.CountryIcon})),c.createElement(w,Fe({ref:this.setInputRef,type:"tel",autoComplete:s},m,U,{inputFormat:O===!0?"INTERNATIONAL":O===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:O?!0:void 0,withCountryCallingCode:O?!0:void 0,name:o,metadata:g,country:H,value:B||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:a,readOnly:i,inputComponent:f,className:ut("PhoneInputInput",m&&m.className,U.className)})))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return Xo({props:n},oc(n,o.props,o))}}])}(c.PureComponent),Qo=c.forwardRef(function(e,t){return c.createElement(gc,Fe({},pc(e),{inputRef:t}))});Qo.propTypes={value:k.string,onChange:k.func.isRequired,onFocus:k.func,onBlur:k.func,disabled:k.bool,readOnly:k.bool,autoComplete:k.string,initialValueFormat:k.oneOf(["national"]),displayInitialValueAsLocalNumber:k.bool,defaultCountry:k.string,countries:k.arrayOf(k.string),labels:Vo,locales:k.oneOfType([k.string,k.arrayOf(k.string)]),flagUrl:k.string,flags:k.objectOf(k.elementType),flagComponent:k.elementType,addInternationalOption:k.bool,internationalIcon:k.elementType,countryOptionsOrder:k.arrayOf(k.string),style:k.object,className:k.string,countrySelectComponent:k.elementType,countrySelectProps:k.object,inputComponent:k.elementType,numberInputProps:k.object,containerComponent:k.elementType,containerComponentProps:k.object,smartCaret:k.bool,international:k.bool,limitMaxLength:k.bool,countryCallingCodeEditable:k.bool,metadata:Ho,onCountryChange:k.func,focusInputOnCountrySelection:k.bool};var Tn={autoComplete:"tel",countrySelectComponent:Do,flagComponent:lr,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:xt,inputComponent:"input",containerComponent:"div",reset:k.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function pc(e){e=Xo({},e);for(var t in Tn)e[t]===void 0&&(e[t]=Tn[t]);return e}function $c(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;){if(e[r]!==t[r])return!1;r++}return!0}const yc={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var bc=["metadata","labels"];function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rr.apply(this,arguments)}function vc(e,t){if(e==null)return{};var r=xc(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ea(e){var t=c.forwardRef(function(r,n){var o=r.metadata,a=o===void 0?e:o,i=r.labels,s=i===void 0?yc:i,l=vc(r,bc);return c.createElement(Qo,rr({},l,{ref:n,metadata:a,labels:s}))});return t.propTypes={metadata:Ho,labels:Vo},t}ea();const wc=ea(Oi),ta=c.forwardRef(({className:e,error:t,isLoading:r=!1,disabled:n=!1,defaultCountry:o="US",helperText:a,...i},s)=>d.jsxs("div",{className:v("w-full",e),children:[d.jsxs("div",{className:v("relative",(n||r)&&"cursor-not-allowed"),children:[d.jsx(wc,{ref:s,defaultCountry:o,disabled:n||r,international:!0,withCountryCallingCode:!0,countryCallingCodeEditable:!1,className:v("shadow-sm h-9 w-full rounded-md border border-foreground/30 bg-background text-xs text-foreground","placeholder:text-muted-foreground placeholder:text-xs",(n||r)&&"cursor-not-allowed bg-muted text-muted-foreground",t?"phone-input-error":"phone-input-default"),...i}),r&&d.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:d.jsx(be,{className:"h-4 w-4 animate-spin text-muted-foreground"})})]}),(t||a)&&d.jsx("div",{className:"mt-1 text-sm",children:t?d.jsx("p",{className:"text-destructive",role:"alert",children:t}):d.jsx("p",{className:"text-muted-foreground",children:a})})]}));ta.displayName="PhoneNumber";const ot={sm:{bar:"h-1",circle:"h-8 w-8",text:"text-xs"},md:{bar:"h-2",circle:"h-12 w-12",text:"text-sm"},lg:{bar:"h-3",circle:"h-16 w-16",text:"text-base"}},ra=c.forwardRef(({className:e,value:t=0,max:r=100,variant:n="default",size:o="md",showValue:a=!1,indeterminate:i=!1,...s},l)=>{const u=Math.min(Math.max(t/r*100,0),100);if(n==="circle"){const m=2*Math.PI*40,p=m-u/100*m;return d.jsxs("div",{ref:l,className:v("relative inline-flex items-center justify-center",ot[o].circle,e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":i?void 0:t,...s,children:[d.jsxs("svg",{className:"transform -rotate-90",viewBox:"0 0 100 100",children:[d.jsx("circle",{className:"text-muted-foreground/20",cx:"50",cy:"50",r:40,strokeWidth:"8",fill:"none",stroke:"currentColor"}),d.jsx("circle",{className:v("transition-all duration-300 ease-in-out",i?"animate-progress-spin text-primary":"text-primary"),cx:"50",cy:"50",r:40,strokeWidth:"8",fill:"none",stroke:"currentColor",strokeDasharray:m,strokeDashoffset:i?0:p,strokeLinecap:"round"})]}),a&&!i&&d.jsxs("div",{className:v("absolute",ot[o].text),children:[Math.round(u),"%"]})]})}return d.jsxs("div",{ref:l,className:v("w-full",e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":i?void 0:t,...s,children:[d.jsx("div",{className:v("w-full overflow-hidden rounded-full bg-primary/20",ot[o].bar),children:n==="loading"||i?d.jsx("div",{className:v("h-full w-full flex","animate-progress-loading"),children:d.jsx("div",{className:"w-1/3 h-full bg-primary rounded-full"})}):d.jsx("div",{className:v("h-full bg-primary transition-all duration-300 ease-in-out rounded-full"),style:{width:`${u}%`}})}),a&&!i&&d.jsxs("div",{className:v("mt-1 text-right",ot[o].text),children:[Math.round(u),"%"]})]})});ra.displayName="Progress";const na=c.forwardRef(({className:e,label:t,error:r,disabled:n,...o},a)=>{const i="h-4 w-4 border border-foreground/30 accent-[hsl(var(--foreground))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",s=v(n&&"cursor-not-allowed opacity-50",r&&"border-destructive focus-visible:border-destructive focus-visible:ring-destructive");return d.jsxs("div",{children:[d.jsxs("div",{className:"relative flex items-center",children:[d.jsx("input",{type:"radio",ref:a,disabled:n,className:v(i,s,e),"aria-invalid":r?"true":"false",...o}),t&&d.jsx("label",{htmlFor:o.id,className:v("ml-2 text-sm font-medium text-foreground",n&&"cursor-not-allowed opacity-50",r&&"text-destructive"),children:t})]}),r&&d.jsx("p",{className:"ml-6 mt-0.5 text-sm text-destructive",role:"alert",children:r})]})});na.displayName="Radio";const oa=c.forwardRef(({options:e,value:t,onChange:r,placeholder:n="Select an option",error:o,helperText:a,disabled:i,isLoading:s,multiple:l=!1,searchable:u=!1,className:f,renderOption:m,rows:p=1,variant:h="default",menuWidth:y},C)=>{var j,R,X,q;const[$,b]=c.useState(!1),[g,O]=c.useState(""),[U,x]=c.useState(-1),H=c.useRef(null),T=c.useRef(null),B=c.useRef(null);c.useEffect(()=>{if(!$)return;const E=()=>{if(T.current&&H.current){const G=H.current.getBoundingClientRect(),Y=320,S=window.innerHeight-G.bottom,M=G.top,V=S<Y&&M>S;if(T.current.style.left=`${G.left}px`,y!==void 0){const Z=typeof y=="number"?`${y}px`:y;T.current.style.width=Z,T.current.style.minWidth=""}else h==="ghost"?(T.current.style.width="auto",T.current.style.minWidth=`${Math.max(G.width,160)}px`):T.current.style.width=`${G.width}px`;V?(T.current.style.bottom=`${window.innerHeight-G.top+8}px`,T.current.style.top="auto"):(T.current.style.top=`${G.bottom+8}px`,T.current.style.bottom="auto")}};return E(),window.addEventListener("scroll",E,!0),window.addEventListener("resize",E),()=>{window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",E)}},[$,h,y]);const I=l?e.filter(E=>Array.isArray(t)&&t.includes(E.value)):e.filter(E=>E.value===t),w=e.filter(E=>E.label.toLowerCase().includes(g.toLowerCase())),A=E=>{if(l){const G=Array.isArray(t)?[...t]:[],Y=G.indexOf(E.value);Y===-1?G.push(E.value):G.splice(Y,1),r==null||r(G)}else r==null||r(E.value),b(!1);O("")},F=(E,G)=>{if(E.stopPropagation(),l&&Array.isArray(t)){const Y=t.filter(S=>S!==G.value);r==null||r(Y)}};c.useEffect(()=>{x(-1)},[$,g]);const P=E=>{if(!(i||s))switch(E.key){case"ArrowDown":E.preventDefault(),$?x(G=>G<w.length-1?G+1:G):b(!0);break;case"ArrowUp":E.preventDefault(),$?x(G=>G>0?G-1:G):b(!0);break;case"Enter":case" ":if(E.key===" "&&E.target.tagName==="INPUT")return;E.preventDefault(),$&&U>=0?A(w[U]):$||b(!0);break;case"Escape":E.preventDefault(),b(!1),x(-1);break;case"Tab":b(!1);break}};c.useEffect(()=>{const E=G=>{var S;const Y=G.target;T.current&&!T.current.contains(Y)&&!((S=H.current)!=null&&S.contains(Y))&&(b(!1),O(""))};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);const _=h==="ghost",J=v("relative placeholder:text-muted-foreground placeholder:text-sm",_?"inline-block w-fit":"w-full"),K=_?v("inline-flex cursor-pointer items-center gap-1 text-xs text-foreground transition-opacity hover:opacity-80",(i||s)&&"cursor-not-allowed rounded-md bg-muted px-2 py-0.5 text-muted-foreground hover:opacity-100",o&&"text-destructive",f):v("flex w-full items-center justify-between rounded-md border border-foreground/30 bg-background px-3 py-1.5 text-xs shadow-sm overflow-hidden",p===1&&"h-9",p===2&&"max-h-[60px]",p===3&&"max-h-[84px]",p>3&&"max-h-[108px]",(i||s)&&"cursor-not-allowed bg-muted text-muted-foreground",o?"border-destructive focus-visible:border-destructive focus-visible:ring-destructive focus-visible:ring-1":"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",f),ee="flex items-center px-3 py-1.5 text-xs hover:bg-accent hover:text-accent-foreground cursor-pointer",te="bg-accent text-accent-foreground",de="bg-accent text-accent-foreground";return d.jsxs("div",{ref:C,className:J,children:[d.jsxs("div",{ref:H,className:K,onClick:()=>!i&&!s&&b(!$),onKeyDown:P,role:"combobox","aria-expanded":$,"aria-haspopup":"listbox","aria-disabled":i||s,"aria-activedescendant":U>=0?`select-option-${(j=w[U])==null?void 0:j.value}`:void 0,tabIndex:i||s?-1:0,children:[d.jsx("div",{className:v("relative flex flex-1 flex-wrap gap-1",!_&&!(i||s)&&"bg-background",l&&I.length>3&&"speculo-scrollbar z-[1] overflow-y-auto pr-1",p===1&&l&&I.length>3&&"max-h-[28px]",p===2&&l&&I.length>3&&"max-h-[52px]",p===3&&l&&I.length>3&&"max-h-[76px]",p>3&&l&&I.length>3&&"max-h-[100px]",!l&&"overflow-hidden"),children:I.length>0?l?I.map(E=>d.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs",children:[E.label,!s&&d.jsx("button",{onClick:G=>F(G,E),className:"ml-1 rounded-full p-0.5 hover:bg-muted-foreground/20 focus:outline-none focus:ring-2 focus:ring-ring","aria-label":`Remove ${E.label}`,children:d.jsx(Xe,{className:"h-3 w-3 text-muted-foreground"})})]},E.value)):d.jsx("span",{className:"truncate text-xs",children:I[0].label}):d.jsx("span",{className:"text-muted-foreground",children:n})}),d.jsx("div",{className:v("flex items-center",_?"ml-0":"ml-2"),children:s?d.jsx(be,{className:v("animate-spin text-muted-foreground",_?"h-3.5 w-3.5":"h-4 w-4")}):d.jsx(Za,{className:v("transition-transform",_?"h-3.5 w-3.5":"h-4 w-4",$&&"rotate-180")})})]}),$&&!s&&Te.createPortal(d.jsxs("div",{ref:T,style:{position:"fixed",left:((R=H.current)==null?void 0:R.getBoundingClientRect().left)+"px",...(()=>{if(!H.current)return{top:0};const E=H.current.getBoundingClientRect(),G=320,Y=window.innerHeight-E.bottom,S=E.top;return Y<G&&S>Y?{bottom:window.innerHeight-E.top+8+"px"}:{top:E.bottom+8+"px"}})(),...y!==void 0?{width:typeof y=="number"?`${y}px`:y}:h==="ghost"?{width:"auto",minWidth:`${Math.max(((X=H.current)==null?void 0:X.getBoundingClientRect().width)??0,160)}px`}:{width:((q=H.current)==null?void 0:q.getBoundingClientRect().width)+"px"}},className:"z-[10001] flex max-h-[320px] flex-col overflow-hidden rounded-md border border-border bg-popover shadow-lg",children:[u&&d.jsx("div",{className:"p-2",children:d.jsxs("div",{className:"relative",children:[d.jsx(ai,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),d.jsx("input",{ref:B,type:"text",className:"w-full rounded-md border border-foreground/30 bg-background py-1.5 pl-9 pr-3 text-sm focus:outline-none focus:ring-1 focus:ring-ring",placeholder:"Search...",value:g,onChange:E=>O(E.target.value),onKeyDown:P,onClick:E=>E.stopPropagation()})]})}),d.jsxs("ul",{className:"speculo-scrollbar flex-1 overflow-y-auto",role:"listbox","aria-multiselectable":l,children:[w.map((E,G)=>d.jsxs("li",{id:`select-option-${E.value}`,className:v(ee,I.includes(E)&&te,U===G&&de),role:"option","aria-selected":I.includes(E),onClick:()=>A(E),onMouseEnter:()=>x(G),children:[d.jsx("span",{className:"flex-1",children:m?m(E):E.label}),d.jsx(Hn,{className:v("ml-2 h-3.5 w-3.5 shrink-0",I.includes(E)?"opacity-100":"opacity-0")})]},E.value)),w.length===0&&d.jsx("li",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No options found"})]})]}),document.body),(o||a)&&d.jsx("div",{className:"mt-1 text-sm",children:o?d.jsx("p",{className:"text-destructive",role:"alert",children:o}):d.jsx("p",{className:"text-muted-foreground",children:a})})]})});oa.displayName="Select";const cr=c.forwardRef(({icon:e,label:t,href:r,items:n,disabled:o,collapsed:a,depth:i=0},s)=>{const[l,u]=c.useState(!1),f=n&&n.length>0,m=!!r&&!f,p=y=>{if(o){y.preventDefault();return}f&&(y.preventDefault(),u(C=>!C))},h=d.jsxs("div",{ref:s,className:v("group flex items-center rounded-md text-sm font-medium",a?"justify-center px-2 py-2":"gap-2 px-3 py-2","hover:bg-accent hover:text-accent-foreground",o&&"pointer-events-none opacity-50",i>0&&!a&&"ml-4",m&&"cursor-pointer"),role:m?"link":"button",tabIndex:o?-1:0,onClick:p,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),p(y))},children:[e&&d.jsx("span",{className:v("flex items-center justify-center",a?"h-5 w-5":"h-4 w-4"),children:e}),!a&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"flex-1",children:t}),f&&d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:v("h-4 w-4 transition-transform",l&&"rotate-180"),children:d.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]});return d.jsxs("div",{children:[m?d.jsx("a",{href:r,className:o?"pointer-events-none":"",children:h}):h,f&&!a&&l&&d.jsx("div",{className:"mt-1",children:n.map((y,C)=>d.jsx(cr,{...y,collapsed:a,depth:i+1},C))})]})});cr.displayName="SidebarItem";const aa=c.forwardRef(({className:e,items:t,collapsed:r,onCollapse:n,defaultCollapsed:o=!1,...a},i)=>{const[s,l]=c.useState(o),u=r!==void 0,f=u?r:s,m=()=>{u||l(p=>!p),n==null||n(!f)};return d.jsxs("div",{ref:i,className:v(f?"w-16":"w-64","flex h-full flex-col gap-4 border-r bg-background p-2 transition-all duration-300 md:p-3 lg:p-4",e),...a,children:[d.jsx("button",{onClick:m,className:"flex h-8 w-8 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground","aria-label":f?"Expand sidebar":"Collapse sidebar",children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:v("h-4 w-4 transition-transform",f&&"rotate-180"),children:d.jsx("path",{d:"m15 18-6-6 6-6"})})}),d.jsx("nav",{className:"space-y-1",children:t.map((p,h)=>d.jsx(cr,{...p,collapsed:f},h))})]})});aa.displayName="Sidebar";const Cc={sm:{switch:"h-[20px] w-[36px]",thumb:"h-[14px] w-[14px] translate-x-[3px]",thumbChecked:"translate-x-[17px]"},md:{switch:"h-[24px] w-[44px]",thumb:"h-[18px] w-[18px] translate-x-[3px]",thumbChecked:"translate-x-[21px]"},lg:{switch:"h-[28px] w-[52px]",thumb:"h-[22px] w-[22px] translate-x-[3px]",thumbChecked:"translate-x-[25px]"}},ia=c.forwardRef(({className:e,label:t,size:r="md",id:n,checked:o,defaultChecked:a,onChange:i,disabled:s,...l},u)=>{const[f,m]=c.useState(a||!1),p=c.useId(),h=n||p,{switch:y,thumb:C,thumbChecked:$}=Cc[r],b=O=>{s||(i&&i(O),o===void 0&&m(O.target.checked))},g=o!==void 0?o:f;return d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("div",{className:"relative inline-flex",children:[d.jsx("input",{type:"checkbox",id:h,className:"peer sr-only",ref:u,checked:g,onChange:b,disabled:s,...l}),d.jsx("label",{htmlFor:h,className:v("block cursor-pointer rounded-full transition-colors duration-200","peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2","peer-disabled:cursor-not-allowed peer-disabled:opacity-50",g?"bg-primary":"bg-muted-foreground/40",y,"flex items-center",e),children:d.jsx("div",{className:v("rounded-full transition-all duration-200","flex items-center justify-center","bg-background shadow-sm",C,g&&$)})})]}),t&&d.jsx("label",{htmlFor:h,className:v("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),children:t})]})});ia.displayName="Switch";const In=32;function Nc({columns:e,data:t,keyExtractor:r,selectable:n=!1,selectedRows:o=[],onSelectRows:a,sortable:i=!1,onSort:s,className:l,loading:u=!1,rowSelectable:f=!1,selectedRowId:m,onRowSelect:p,size:h="md",emptyStateText:y,onRowDoubleClick:C}){const[$,b]=c.useState({}),g=c.useMemo(()=>e.map(N=>({...N,width:$[String(N.key)]||N.width})),[e,$]),[O,U]=c.useState(null),[x,H]=c.useState(null),T=c.useRef(null),B=c.useRef(null),[I,w]=c.useState(0),A=c.useRef(null),F=c.useRef(null),P=c.useRef(null),_=c.useRef(null),[J,K]=c.useState(!1),[ee,te]=c.useState(!1),[de,j]=c.useState(!1),[R,X]=c.useState(!1),q=c.useCallback(()=>{const N=T.current;if(!N)return;const W=A.current,D=F.current;if(W&&D){const ae=N.scrollWidth-N.clientWidth,ue=W.clientWidth;if(ae>0&&ue>0){const ge=Math.max(In,N.clientWidth/N.scrollWidth*ue),ve=(ue-ge)*N.scrollLeft/ae;D.style.width=`${ge}px`,D.style.transform=`translateX(${ve}px)`,D.setAttribute("aria-valuenow",String(Math.round(N.scrollLeft/ae*100)))}}const z=P.current,re=_.current;if(z&&re){const ae=N.scrollHeight-N.clientHeight,ue=z.clientHeight;if(ae>0&&ue>0){const ge=Math.max(In,N.clientHeight/N.scrollHeight*ue),ve=(ue-ge)*N.scrollTop/ae;re.style.height=`${ge}px`,re.style.transform=`translateY(${ve}px)`,re.setAttribute("aria-valuenow",String(Math.round(N.scrollTop/ae*100)))}}},[]),E=c.useCallback(()=>{const N=T.current;if(!N)return;const W=N.offsetHeight-N.clientHeight,D=N.offsetWidth-N.clientWidth;K(N.scrollWidth>N.clientWidth&&W===0),te(N.scrollHeight>N.clientHeight&&D===0),q()},[q]);c.useEffect(()=>{const N=T.current;if(!N)return;const W=new ResizeObserver(D=>{w(D[0].contentRect.height),E()});return W.observe(N),()=>W.disconnect()},[E]),c.useEffect(()=>{q()},[J,ee,q]),c.useEffect(()=>{const N=B.current,W=T.current;if(!N||!W)return;let D=!1;const z=()=>{q(),!D&&(D=!0,N.scrollLeft=W.scrollLeft,D=!1)},re=()=>{D||(D=!0,W.scrollLeft=N.scrollLeft,D=!1)};return W.addEventListener("scroll",z),N.addEventListener("scroll",re),()=>{W.removeEventListener("scroll",z),N.removeEventListener("scroll",re)}},[q]);const Y=Math.max(8,Math.ceil(I/(h==="sm"?33:h==="lg"?49:h==="xl"?57:49))+1),S=g.reduce((N,W)=>N+parseInt(W.width||"100"),0)+(n?48:0);c.useEffect(()=>{E()},[S,t.length,u,E]);const M=g.reduce((N,W,D)=>W.isPinned&&W.pinPosition==="left"||D===0?D:N,-1),V=g.findIndex(N=>N.isPinned&&N.pinPosition==="right"),Z=()=>{o.length===t.length?a==null||a([]):a==null||a(t.map(N=>String(r(N))))},le=N=>{const W=o.includes(N)?o.filter(D=>D!==N):[...o,N];a==null||a(W)},L=N=>{const W=g.find(D=>D.key===N);W!=null&&W.sortable&&U(D=>{let z;return!D||D.key!==N?z={key:N,direction:"asc"}:D.direction==="asc"?z={key:N,direction:"desc"}:z=null,s&&z&&s(z.key,z.direction),z})},me=(N,W)=>{W.preventDefault(),W.stopPropagation();const D=g[N];if(!D.resizable)return;const z=D.width?parseInt(D.width):100;H({index:N,startX:W.pageX,startWidth:z}),D.width||b(re=>({...re,[String(D.key)]:`${z}px`}))},he=c.useCallback(N=>{if(!x)return;const W=N.pageX-x.startX,D=Math.max(50,x.startWidth+W),z=String(e[x.index].key);b(re=>D!==parseInt(re[z]||e[x.index].width||"100")?{...re,[z]:`${D}px`}:re)},[x,e]),Se=c.useCallback(()=>{H(null)},[]);c.useEffect(()=>(x&&(window.addEventListener("mousemove",he),window.addEventListener("mouseup",Se)),()=>{window.removeEventListener("mousemove",he),window.removeEventListener("mouseup",Se)}),[x,he,Se]);const Je=(N,W)=>{const D=T.current,z=W==="x",re=z?A.current:P.current,ae=z?F.current:_.current;if(!D||!re||!ae)return;N.preventDefault(),N.stopPropagation();const ue=z?N.clientX:N.clientY,ge=z?D.scrollLeft:D.scrollTop,ve=z?D.scrollWidth-D.clientWidth:D.scrollHeight-D.clientHeight,$r=z?re.clientWidth-ae.offsetWidth:re.clientHeight-ae.offsetHeight,yr=z?j:X;yr(!0),ae.setPointerCapture(N.pointerId);const br=et=>{if($r<=0)return;const ua=(z?et.clientX:et.clientY)-ue,vr=ge+ua*ve/$r;z?D.scrollLeft=vr:D.scrollTop=vr},Qe=et=>{ae.releasePointerCapture(et.pointerId),ae.removeEventListener("pointermove",br),ae.removeEventListener("pointerup",Qe),ae.removeEventListener("pointercancel",Qe),yr(!1)};ae.addEventListener("pointermove",br),ae.addEventListener("pointerup",Qe),ae.addEventListener("pointercancel",Qe)},hr=(N,W)=>{const D=T.current,z=W==="x",re=z?F.current:_.current;if(!D||!re||N.target===re||re.contains(N.target))return;const ae=re.getBoundingClientRect();if(z){const ue=N.clientX<ae.left?-1:1;D.scrollBy({left:ue*D.clientWidth*.9})}else{const ue=N.clientY<ae.top?-1:1;D.scrollBy({top:ue*D.clientHeight*.9})}},gr=N=>{let W=0;return n&&(W+=48),N>0&&(W+=g.slice(0,N).reduce((D,z,re)=>re===0||z.isPinned&&z.pinPosition==="left"?D+parseInt(z.width||"100"):D,0)),W},pr=N=>{if(N<V||V===-1)return;let W=0;for(let D=g.length-1;D>N;D--)g[D].isPinned&&g[D].pinPosition==="right"&&(W+=parseInt(g[D].width||"100"));return W};return d.jsxs("div",{className:"relative flex h-full w-full flex-col overflow-hidden",children:[d.jsx("div",{ref:B,className:"overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden",style:{scrollbarWidth:"none"},children:d.jsx("div",{style:{width:"100%",minWidth:`${S}px`},children:d.jsxs("table",{className:v("table-fixed border-separate border-spacing-0",l),style:{width:"100%",minWidth:`${S}px`},children:[d.jsxs("colgroup",{children:[n&&d.jsx("col",{style:{width:"3rem"}}),g.map(N=>d.jsx("col",{style:N.width?{width:N.width}:void 0},String(N.key)))]}),d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-foreground/15",children:[n&&d.jsx("th",{scope:"col",style:{"--left-position":"0px"},className:"w-[3rem] overflow-hidden bg-table-header px-3 py-2.5 text-center text-foreground/70 md:sticky md:left-[--left-position] md:z-[20]",children:d.jsx("div",{className:"flex items-center justify-center",children:d.jsx(lt,{checked:t.length>0&&o.length===t.length,indeterminate:o.length>0&&o.length<t.length,onChange:Z,disabled:u})})}),g.map((N,W)=>{const D=N.isPinned&&N.pinPosition==="left"||W===0,z=N.isPinned&&N.pinPosition==="right",re=W===M,ae=W===V,ue=D?gr(W):void 0,ge=z?pr(W):void 0;return d.jsxs("th",{scope:"col",style:{minWidth:N.minWidth,...N.width&&{width:N.width},...D&&{"--left-position":`${ue}px`},...z&&{"--right-position":`${ge}px`}},className:v("bg-table-header px-3 py-2.5 text-xs font-medium uppercase tracking-wider text-foreground/70",N.isCentered?"text-center":"text-left",i&&N.sortable&&!u&&"cursor-pointer hover:text-foreground",D?"overflow-hidden md:sticky md:left-[--left-position] md:z-[20]":z?"overflow-hidden md:sticky md:right-[--right-position] md:z-[20]":"relative",re&&"md:after:absolute md:after:right-0 md:after:top-0 md:after:h-full md:after:w-px md:after:bg-border md:after:content-['']",ae&&"md:before:absolute md:before:left-0 md:before:top-0 md:before:h-full md:before:w-px md:before:bg-border md:before:content-['']"),onClick:()=>!u&&i&&L(String(N.key)),children:[d.jsxs("div",{className:v("flex items-center gap-2",N.isCentered&&"justify-center"),children:[d.jsx("span",{className:"truncate",children:N.header}),i&&N.sortable&&(O==null?void 0:O.key)===N.key&&d.jsx("span",{className:"shrink-0",children:O.direction==="asc"?d.jsx(Xa,{className:"h-3 w-3 text-muted-foreground"}):d.jsx(qa,{className:"h-3 w-3 text-muted-foreground"})})]}),N.resizable&&!D&&!z&&d.jsx("div",{className:v("absolute -right-0.5 top-0 z-10 h-full w-px bg-transparent hover:w-0.5 hover:bg-primary/50",!u&&"cursor-col-resize group-hover:h-full"),onMouseDown:ve=>!u&&me(W,ve)})]},String(N.key))})]})})]})})}),d.jsxs("div",{className:"relative min-h-0 flex-1",children:[d.jsxs("div",{ref:T,className:v("relative h-full w-full overflow-auto [scrollbar-gutter:stable]",(J||ee)&&"[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),children:[t.length===0&&!u&&d.jsx("div",{className:"absolute inset-0 z-[2] flex items-center justify-center bg-background",children:d.jsxs("div",{className:"flex max-w-[280px] flex-col items-center justify-center gap-2 rounded-lg bg-background p-3 text-center 3xl:max-w-[320px] 3xl:gap-3 3xl:p-6",children:[d.jsx("div",{className:"rounded-full bg-table-header p-2 3xl:p-4",children:d.jsx(ri,{className:"h-4 w-4 text-muted-foreground 3xl:h-7 3xl:w-7"})}),d.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[d.jsx("p",{className:"text-xs font-medium text-foreground 3xl:text-sm",children:y||"No records found"}),d.jsx("p",{className:"text-xs text-muted-foreground 3xl:text-sm",children:"Try adjusting your search or filters"})]})]})}),d.jsx("div",{style:{width:"100%",minWidth:`${S}px`},children:d.jsxs("table",{className:v("table-fixed border-separate border-spacing-0",l),style:{width:"100%",minWidth:`${S}px`},children:[d.jsxs("colgroup",{children:[n&&d.jsx("col",{style:{width:"3rem"}}),g.map(N=>d.jsx("col",{style:N.width?{width:N.width}:void 0},String(N.key)))]}),d.jsxs("tbody",{className:v("divide-y divide-foreground/15",u&&"pointer-events-none",t.length===0&&!u&&"pointer-events-none opacity-0"),children:[u&&Array.from({length:Y}).map((N,W)=>d.jsxs("tr",{children:[n&&d.jsx("td",{className:"w-[3rem] border-b border-foreground/15 px-3 py-4",children:d.jsx("div",{className:"mx-auto h-4 w-4 animate-pulse rounded bg-foreground/15"})}),g.map((D,z)=>d.jsx("td",{style:{minWidth:D.minWidth,...D.width&&{width:D.width}},className:v("border-b border-foreground/15",h==="sm"?"px-3 py-1.5":h==="lg"?"px-3 py-3":h==="xl"?"px-3 py-4":"px-3 py-3"),children:d.jsx("div",{className:"h-3 animate-pulse rounded bg-foreground/15",style:{width:`${55+(W+z)%4*12}%`}})},`skeleton-${W}-${z}`))]},`skeleton-${W}`)),!u&&t.map(N=>d.jsxs("tr",{onClick:()=>f&&(p==null?void 0:p(String(r(N))===m?void 0:String(r(N)))),onDoubleClick:()=>C==null?void 0:C(N),className:v("group transition-colors duration-150",f&&"cursor-pointer",String(r(N))===m?"bg-primary/5 hover:bg-primary/10":"even:bg-table-header/20 hover:bg-table-header/40"),children:[n&&d.jsx("td",{style:{"--left-position":"0px"},className:v("w-[3rem] overflow-hidden border-b border-foreground/15 bg-background px-3 py-4 md:sticky md:left-[--left-position] md:z-[2]",String(r(N))===m?"bg-accent group-hover:bg-accent":"group-hover:bg-muted"),children:d.jsx("div",{className:"flex items-center justify-center",children:d.jsx(lt,{checked:o.includes(String(r(N))),onChange:()=>le(String(r(N)))})})}),g.map((W,D)=>{const z=W.isPinned&&W.pinPosition==="left"||D===0,re=W.isPinned&&W.pinPosition==="right",ae=D===M,ue=D===V,ge=z?gr(D):void 0,ve=re?pr(D):void 0;return d.jsx("td",{style:{minWidth:W.minWidth,...W.width&&{width:W.width},...z&&{"--left-position":`${ge}px`},...re&&{"--right-position":`${ve}px`}},className:v("border-b border-foreground/15 text-xs leading-relaxed text-foreground",h==="sm"?"px-3 py-1.5":h==="lg"?"px-3 py-3":h==="xl"?"px-3 py-4":"px-3 py-3",W.isCentered?"text-center":"text-left",W.key==="actions"&&"min-w-[120px]",z?"sticky overflow-hidden md:left-[--left-position] md:z-[2]":re?"sticky overflow-hidden md:right-[--right-position] md:z-[2]":"",ae&&"md:after:absolute md:after:right-0 md:after:top-0 md:after:h-full md:after:w-px md:after:bg-border md:after:content-['']",ue&&"md:before:absolute md:before:left-0 md:before:top-0 md:before:h-full md:before:w-px md:before:bg-border md:before:content-['']",(z||re)&&String(r(N))===m?"bg-accent group-hover:bg-accent":z||re?"bg-background group-hover:bg-muted":""),children:d.jsx("div",{children:d.jsx("div",{children:W.cell?W.cell(N):d.jsx("span",{className:"block truncate",children:String(N[W.key])})})})},String(W.key))})]},r(N)))]})]})})]}),ee&&d.jsx("div",{ref:P,onPointerDown:N=>hr(N,"y"),className:"absolute right-0 top-0 z-[3] h-full w-1.5 select-none",children:d.jsx("div",{ref:_,role:"scrollbar","aria-orientation":"vertical","aria-label":"Scroll table vertically","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0,onPointerDown:N=>Je(N,"y"),className:"group absolute left-0 top-0 h-0 w-full cursor-grab touch-none active:cursor-grabbing",children:d.jsx("div",{className:v("h-full w-full rounded-full transition-colors",R?"bg-muted-foreground/60":"bg-muted-foreground/30 group-hover:bg-muted-foreground/50")})})})]}),J&&d.jsx("div",{ref:A,onPointerDown:N=>hr(N,"x"),className:v("relative h-1.5 shrink-0 select-none",ee&&"mr-1.5"),children:d.jsx("div",{ref:F,role:"scrollbar","aria-orientation":"horizontal","aria-label":"Scroll table horizontally","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0,onPointerDown:N=>Je(N,"x"),className:"group absolute left-0 top-0 h-full w-0 cursor-grab touch-none active:cursor-grabbing",children:d.jsx("div",{className:v("h-full rounded-full transition-colors",de?"bg-muted-foreground/60":"bg-muted-foreground/30 group-hover:bg-muted-foreground/50")})})})]})}const fr=c.createContext(null),mr=({defaultValue:e,value:t,onChange:r,variant:n="line",orientation:o="horizontal",children:a,className:i})=>{var f;const[s,l]=c.useState(t||e||(((f=a[0])==null?void 0:f.props.value)??""));c.useEffect(()=>{t!==void 0&&l(t)},[t]);const u=m=>{t===void 0&&l(m),r==null||r(m)};return d.jsx(fr.Provider,{value:{selectedTab:s,setSelectedTab:u,variant:n,orientation:o},children:d.jsx("div",{className:v("w-full",o==="horizontal"?"space-y-2":"flex gap-4",i),children:a})})},Pc=({children:e,className:t})=>{const r=c.useContext(fr);if(!r)throw new Error("TabsList must be used within Tabs");const{variant:n,orientation:o}=r,a={line:"inline-flex items-center border-b border-border",enclosed:"inline-flex items-center space-x-1",soft:"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground"};return d.jsx("div",{className:v("flex",o==="horizontal"?a[n]:"flex-col space-y-1",t),role:"tablist",children:e})},Sc=({value:e,children:t,className:r})=>{const n=c.useContext(fr);if(!n)throw new Error("TabPanel must be used within Tabs");const{selectedTab:o}=n;return o===e?d.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,className:r,children:t}):null};mr.List=Pc;mr.Panel=Sc;const da=c.forwardRef(({className:e,error:t,helperText:r,autoResize:n,maxLength:o,showCount:a,value:i,onChange:s,disabled:l,isLoading:u,...f},m)=>{const p=c.useRef(null),h=()=>{const g=p.current;g&&n&&(g.style.height="auto",g.style.height=`${g.scrollHeight}px`)};c.useEffect(()=>{m&&(typeof m=="function"?m(p.current):m.current=p.current)},[m]),c.useEffect(()=>{n&&h()},[i,n]);const y=g=>{o&&g.target.value.length>o&&(g.target.value=g.target.value.slice(0,o)),s==null||s(g),n&&h()},C="block w-full rounded-md border border-foreground/30 bg-background px-3 py-1.5 text-xs text-foreground shadow-sm placeholder:text-muted-foreground placeholder:text-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",$=v((l||u)&&"cursor-not-allowed bg-muted text-muted-foreground",t&&"border-destructive focus-visible:border-destructive focus-visible:ring-destructive focus-visible:ring-1"),b=typeof i=="string"?i.length:0;return d.jsxs("div",{className:"relative",children:[d.jsxs("div",{className:"relative",children:[d.jsx("textarea",{ref:p,value:i,onChange:y,disabled:l||u,maxLength:o,className:v(C,$,e),"aria-invalid":t?"true":"false","aria-describedby":t?`${f.id}-error`:r?`${f.id}-helper`:void 0,...f}),u&&d.jsx("div",{className:"absolute right-3 top-3",children:d.jsxs("svg",{className:"h-4 w-4 animate-spin text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[d.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),d.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})]}),a&&d.jsxs("div",{className:"mt-1 text-right text-sm text-muted-foreground",children:[b,o&&` / ${o}`]}),(t||r)&&d.jsx("div",{className:"mt-1 text-sm",children:t?d.jsx("p",{className:"text-destructive",id:`${f.id}-error`,role:"alert",children:t}):r?d.jsx("p",{className:"text-muted-foreground",id:`${f.id}-helper`,children:r}):null})]})});da.displayName="Textarea";const sa=c.createContext(null),Oc=()=>{const e=c.useContext(sa);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},Ec=({children:e,position:t="bottom-right",maxToasts:r=5})=>{const[n,o]=c.useState([]),a=c.useCallback(u=>{o(f=>f.filter(m=>m.id!==u))},[]),s={showToast:c.useCallback(u=>{const f=Math.random().toString(36).substr(2,9);if(o(m=>[{...u,id:f},...m].slice(0,r)),u.duration!==1/0){const m=u.duration||5e3;setTimeout(()=>{var p;a(f),(p=u.onClose)==null||p.call(u)},m)}},[r,a]),removeToast:a},l={"top-right":"top-0 right-0","top-left":"top-0 left-0","bottom-right":"bottom-0 right-0","bottom-left":"bottom-0 left-0"};return d.jsxs(sa.Provider,{value:s,children:[e,Te.createPortal(d.jsx("div",{className:v("fixed z-[9999] m-2 flex flex-col gap-2 md:m-4",l[t]),role:"log","aria-live":"polite",children:n.map(u=>d.jsx(jc,{...u,onClose:()=>{var f;a(u.id),(f=u.onClose)==null||f.call(u)}},u.id))}),document.body)]})},An={success:{icon:d.jsx(ei,{className:"h-4 w-4 shrink-0 text-success"}),className:"border border-success/40 bg-card bg-gradient-to-r from-success/20 to-success/20 text-success-accent"},error:{icon:d.jsx(Vn,{className:"h-4 w-4 shrink-0 text-destructive"}),className:"border border-destructive/40 bg-card bg-gradient-to-r from-destructive/20 to-destructive/20 text-destructive"},warning:{icon:d.jsx(ii,{className:"h-4 w-4 shrink-0 text-warning"}),className:"border border-warning/40 bg-card bg-gradient-to-r from-warning/20 to-warning/20 text-warning-accent"},info:{icon:d.jsx(ni,{className:"h-4 w-4 shrink-0 text-info"}),className:"border border-info/40 bg-card bg-gradient-to-r from-info/20 to-info/20 text-info-accent"}},jc=({message:e,variant:t="info",onClose:r})=>{const[n,o]=c.useState(!1),a=()=>{o(!0),setTimeout(r,200)};return d.jsxs("div",{className:v("flex w-[calc(100vw-1rem)] max-w-sm items-start gap-2 rounded-lg px-3 py-2.5 text-xs shadow-lg transition-all duration-200 sm:w-96 sm:gap-3 sm:px-4 sm:py-3 sm:text-sm",An[t].className,n&&"translate-x-full opacity-0"),role:"alert",children:[d.jsx("div",{className:"flex-shrink-0",children:An[t].icon}),d.jsx("div",{className:"flex-1",children:e}),d.jsxs("button",{onClick:a,className:"flex-shrink-0 rounded-md p-1 opacity-80 transition-opacity hover:bg-current/10 hover:opacity-100",children:[d.jsx("span",{className:"sr-only",children:"Close"}),d.jsx(Xe,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})]})},Tc={h1:"scroll-m-20 text-xl font-bold tracking-tight sm:text-2xl lg:text-3xl",h2:"scroll-m-20 text-lg font-bold tracking-tight sm:text-xl lg:text-2xl first:mt-0",h3:"scroll-m-20 text-base font-semibold tracking-tight sm:text-lg lg:text-xl",h4:"scroll-m-20 text-sm font-semibold tracking-tight sm:text-base lg:text-lg",h5:"scroll-m-20 text-sm font-semibold tracking-tight sm:text-base",h6:"scroll-m-20 text-xs font-semibold tracking-tight sm:text-sm",p:"text-sm leading-7 sm:text-base [&:not(:first-child)]:mt-6",blockquote:"mt-6 border-l-2 border-border pl-4 sm:pl-6 italic text-foreground",lead:"text-base text-muted-foreground sm:text-lg lg:text-xl",large:"text-base font-semibold text-foreground sm:text-lg",small:"text-xs font-medium leading-none sm:text-sm",muted:"text-xs text-muted-foreground sm:text-sm"},Ic={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",lead:"p",large:"div",small:"small",muted:"p"},la=c.forwardRef(({variant:e="p",as:t,className:r,children:n,...o},a)=>{const i=t||Ic[e];return c.createElement(i,{ref:a,className:v(Tc[e],r),...o},n)});la.displayName="Typography";exports.Accordion=Bn;exports.Alert=Un;exports.AlertDescription=ar;exports.AlertTitle=or;exports.Badge=Gn;exports.Button=Ne;exports.Calendar=Ve;exports.Checkbox=lt;exports.ComboBox=Yn;exports.Container=zn;exports.DatePicker=Xn;exports.DateRangePicker=Kn;exports.Drawer=pt;exports.DualDateRangePicker=qn;exports.Form=vi;exports.HoverCard=oo;exports.Input=ao;exports.Loading=io;exports.Modal=Ze;exports.Pagination=so;exports.PhoneNumber=ta;exports.Progress=ra;exports.Radio=na;exports.Select=oa;exports.Sidebar=aa;exports.Switch=ia;exports.Table=Nc;exports.Tabs=mr;exports.Textarea=da;exports.TimePicker=Zn;exports.ToastProvider=Ec;exports.Typography=la;exports.cn=v;exports.useToast=Oc;
|
|
148
148
|
//# sourceMappingURL=speculo-ui.cjs.map
|