1import{r as p,j as l,C as bt,B as Q,T as ce,A as en,b as Pe,a as fe,aW as Kr,c as je,aC as Rd,z as Vd,O as jd,aJ as Ld,aX as _d,at as mr,as as Wd,aY as vs,aU as ue,aZ as ke,aS as w,a_ as xt,a$ as Ne,b0 as Fe,b1 as mt,b2 as we,b3 as Re,b4 as Ie,b5 as X,I as tn,b6 as Et,b7 as Z,b8 as Ke,b9 as wt,ba as Bd,bb as nn,bc as An,aM as ya,bd as fr,be as zd,bf as Hd,bg as Ud,a2 as Yd,bh as Gd,Q as qd,Y as ws,bi as hr,bj as xs,bk as Zd,ap as Ss,bl as Kd,bm as Jd,bn as Fr,a8 as Xd,bo as Qd,p as el,Z as $a,_ as ba,ae as tl,bp as Ps,bq as N,br as ks,l as nl,bs as Za,n as rl,G as al,aB as ol,bt as sl,bu as zt,$ as Ar,bv as Ka,aG as mn,S as il,M as Ja,bw as dl,D as ll,bx as rr,by as cl,bz as ul,bA as va,ax as ml,aa as fl,bB as hl,a5 as pl,L as xn,V as Ht,a4 as Ut,bC as gl,bD as yl,a3 as $l,bE as bl}from"./vendor-mui-SV2jZBhJ.js";import{c as pr,d as wa,b as vl,L as Sn,a as wl}from"./vendor-react-DsHBsgbR.js";import{t as Ue,cC as xl,u as De,q as Rn,a as Cs,b$ as Sl,g as Pl,bO as kl,b3 as Ve,G as It,P as Cl,cE as le,cF as ve,b5 as st,bM as $t,b6 as Ml,aX as Dl,cG as Tl,cH as Ms,cI as ar,d as Ds,c as Vn,F as Ol,J as Il,S as El,b as Ts,ar as Nl,aj as Fl,cJ as Al,cK as Rl,cL as Vl,cM as jl,cN as Un,U as jn,cO as Ll,cP as _l,aq as Vt,cQ as Xa,a0 as Wl,aZ as Yn}from"./main-CxZpl-xO.js";import{R as Bl}from"./RestLoginFlow-DcJAhLoj.js";import{P as zl}from"./PageLoadingSpinner-MJpHJomD.js";import{C as Hl,g as Ul,a as Yl,B as Gl,c as ql}from"./useBillingAddressForm-DCLyd6YT.js";import{g as Zl,n as Os,l as Kl,i as Is,m as Jl,f as Xl,o as Ql,b as ec,s as tc,d as nc,p as Ee,q as $e,r as be,t as on,u as rc,v as ac,x as oc,y as sc}from"./format-BArplPoS.js";import{a as ic,s as Qa,p as dc,i as lc,e as eo,b as cc,c as uc,d as mc,f as fc,g as hc,h as pc,j as gc,k as yc,l as $c,m as bc,n as vc,o as wc,q as Jr}from"./setYear-1Ie9xZhR.js";import{a as xc}from"./addMonths-CwAgYFWR.js";import{a as Sc}from"./addYears-Db4DW3f_.js";import{b as Pc,i as Rr,a as Vr}from"./isBefore-JnYstw_x.js";import{u as St}from"./useMutation-A7dVF0us.js";import"./vendor-mapbox-D8F1hoiy.js";import"./PhoneNumberInput-CxjlC39C.js";class Ft extends Error{}class kc extends Ft{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Cc extends Ft{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Mc extends Ft{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Yt extends Ft{}class Es extends Ft{constructor(e){super(`Invalid unit ${e}`)}}class Le extends Ft{}class pt extends Ft{constructor(){super("Zone is an abstract class")}}const B="numeric",nt="short",He="long",or={year:B,month:B,day:B},Ns={year:B,month:nt,day:B},Dc={year:B,month:nt,day:B,weekday:nt},Fs={year:B,month:He,day:B},As={year:B,month:He,day:B,weekday:He},Rs={hour:B,minute:B},Vs={hour:B,minute:B,second:B},js={hour:B,minute:B,second:B,timeZoneName:nt},Ls={hour:B,minute:B,second:B,timeZoneName:He},_s={hour:B,minute:B,hourCycle:"h23"},Ws={hour:B,minute:B,second:B,hourCycle:"h23"},Bs={hour:B,minute:B,second:B,hourCycle:"h23",timeZoneName:nt},zs={hour:B,minute:B,second:B,hourCycle:"h23",timeZoneName:He},Hs={year:B,month:B,day:B,hour:B,minute:B},Us={year:B,month:B,day:B,hour:B,minute:B,second:B},Ys={year:B,month:nt,day:B,hour:B,minute:B},Gs={year:B,month:nt,day:B,hour:B,minute:B,second:B},Tc={year:B,month:nt,day:B,weekday:nt,hour:B,minute:B},qs={year:B,month:He,day:B,hour:B,minute:B,timeZoneName:nt},Zs={year:B,month:He,day:B,hour:B,minute:B,second:B,timeZoneName:nt},Ks={year:B,month:He,day:B,weekday:He,hour:B,minute:B,timeZoneName:He},Js={year:B,month:He,day:B,weekday:He,hour:B,minute:B,second:B,timeZoneName:He};class Ln{get type(){throw new pt}get name(){throw new pt}get ianaName(){return this.name}get isUniversal(){throw new pt}offsetName(e,n){throw new pt}formatOffset(e,n){throw new pt}offset(e){throw new pt}equals(e){throw new pt}get isValid(){throw new pt}}let jr=null;class gr extends Ln{static get instance(){return jr===null&&(jr=new gr),jr}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return di(e,n,r)}formatOffset(e,n){return Pn(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Xr=new Map;function Oc(t){let e=Xr.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Xr.set(t,e)),e}const Ic={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ec(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,o,s,d,i,c,u]=r;return[s,a,o,d,i,c,u]}function Nc(t,e){const n=t.formatToParts(e),r=[];for(let a=0;a<n.length;a++){const{type:o,value:s}=n[a],d=Ic[o];o==="era"?r[d]=s:ie(d)||(r[d]=parseInt(s,10))}return r}const Lr=new Map;class ct extends Ln{static create(e){let n=Lr.get(e);return n===void 0&&Lr.set(e,n=new ct(e)),n}static resetCache(){Lr.clear(),Xr.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ct.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return di(e,n,r,this.name)}formatOffset(e,n){return Pn(this.offset(e),n)}offset(e){if(!this.valid)return NaN;const n=new Date(e);if(isNaN(n))return NaN;const r=Oc(this.name);let[a,o,s,d,i,c,u]=r.formatToParts?Nc(r,n):Ec(r,n);
1d==="BC"&&(a=-Math.abs(a)+1);const f=$r({year:a,month:o,day:s,hour:i===24?0:i,minute:c,second:u,millisecond:0});let g=+n;const h=g%1e3;return g-=h>=0?h:1e3+h,(f-g)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let to={};function Fc(t,e={}){const n=JSON.stringify([t,e]);let r=to[n];return r||(r=new Intl.ListFormat(t,e),to[n]=r),r}const Qr=new Map;function ea(t,e={}){const n=JSON.stringify([t,e]);let r=Qr.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(t,e),Qr.set(n,r)),r}const ta=new Map;function Ac(t,e={}){const n=JSON.stringify([t,e]);let r=ta.get(n);return r===void 0&&(r=new Intl.NumberFormat(t,e),ta.set(n,r)),r}const na=new Map;function Rc(t,e={}){const{base:n,...r}=e,a=JSON.stringify([t,r]);let o=na.get(a);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),na.set(a,o)),o}let bn=null;function Vc(){return bn||(bn=new Intl.DateTimeFormat().resolvedOptions().locale,bn)}const ra=new Map;function Xs(t){let e=ra.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),ra.set(t,e)),e}const aa=new Map;function jc(t){let e=aa.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...Qs,...e}),aa.set(t,e)}return e}function Lc(t){const e=t.indexOf("-x-");
1e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,a;try{r=ea(t).resolvedOptions(),a=t}catch{const i=t.substring(0,n);r=ea(i).resolvedOptions(),a=i}const{numberingSystem:o,calendar:s}=r;return[a,o,s]}}function _c(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Wc(t){const e=[];for(let n=1;n<=12;n++){const r=re.utc(2009,n,1);e.push(t(r))}return e}function Bc(t){const e=[];for(let n=1;n<=7;n++){const r=re.utc(2016,11,13+n);e.push(t(r))}return e}function Gn(t,e,n,r){const a=t.listingMode();return a==="error"?null:a==="en"?n(e):r(e)}function zc(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Xs(t.locale).numberingSystem==="latn"}class Hc{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:a,floor:o,...s}=r;if(!n||Object.keys(s).length>0){const d={useGrouping:!1,...r};r.padTo>0&&(d.minimumIntegerDigits=r.padTo),this.inf=Ac(e,d)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Ca(e,3);return Ae(n,this.padTo)}}}class Uc{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const s=-1*(e.offset/60),d=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&ct.create(d).valid?(a=d,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||a,this.dtf=ea(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Yc{constructor(e,n,r){this.opts={style:"long",...r},!n&&si()&&(this.rtf=Rc(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):hu(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Qs={firstDay:1,minimalDays:4,weekend:[6,7]};class ye{static fromOpts(e){return ye.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,a,o=!1){const s=e||Oe.defaultLocale,d=s||(o?"en-US":Vc()),i=n||Oe.defaultNumberingSystem,c=r||Oe.defaultOutputCalendar,u=sa(a)||Oe.defaultWeekSettings;return new ye(d,i,c,u,s)}static resetCache(){bn=null,Qr.clear(),ta.clear(),na.clear(),ra.clear(),aa.clear()}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:a}={}){return ye.create(e,n,r,a)}constructor(e,n,r,a,o){const[s,d,i]=Lc(e);this.locale=s,this.numberingSystem=n||d||null,this.outputCalendar=r||i||null,this.weekSettings=a,this.intl=_c(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=zc(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:ye.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,sa(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Gn(this,e,ui,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const a=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";if(!this.monthsCache[o][e]){const s=r?d=>this.dtFormatter(d,a).format():d=>this.extract(d,a,"month");this.monthsCache[o][e]=Wc(s)}return this.monthsCache[o][e]})}weekdays(e,n=!1){return Gn(this,e,hi,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=n?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=Bc(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[a][e]})}meridiems(){return Gn(this,void 0,()=>pi,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[re.utc(2016,11,13,9),re.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Gn(this,e,gi,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[re.utc(-40,1,1),re.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]}
1)}extract(e,n,r){const a=this.dtFormatter(e,n),o=a.formatToParts(),s=o.find(d=>d.type.toLowerCase()===r);return s?s.value:null}numberFormatter(e={}){return new Hc(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Uc(e,this.intl,n)}relFormatter(e={}){return new Yc(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Fc(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Xs(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ii()?jc(this.locale):Qs}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let _r=null;class Be extends Ln{static get utcInstance(){return _r===null&&(_r=new Be(0)),_r}static instance(e){return e===0?Be.utcInstance:new Be(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Be(br(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Pn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Pn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Pn(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Gc extends Ln{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function yt(t,e){if(ie(t)||t===null)return e;if(t instanceof Ln)return t;if(Qc(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?gr.instance:n==="utc"||n==="gmt"?Be.utcInstance:Be.parseSpecifier(n)||ct.create(t)}else return vt(t)?Be.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Gc(t)}const xa={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",tibt:"[༠-༩]",latn:"\\d"},no={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},qc=xa.hanidec.replace(/[\[|\]]/g,"").split("");function Zc(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(xa.hanidec)!==-1)e+=qc.indexOf(t[n]);else for(const a in no){const[o,s]=no[a];r>=o&&r<=s&&(e+=r-o)}}return parseInt(e,10)}else return e}const oa=new Map;function Kc(){oa.clear()}function Xe({numberingSystem:t},e=""){const n=t||"latn";let r=oa.get(n);r===void 0&&(r=new Map,oa.set(n,r));let a=r.get(e);return a===void 0&&(a=new RegExp(`${xa[n]}${e}`),r.set(e,a)),a}let ro=()=>Date.now(),ao="system",oo=null,so=null,io=null,lo=60,co,uo=null;class Oe{static get now(){return ro}static set now(e){ro=e}static set defaultZone(e){ao=e}static get defaultZone(){return yt(ao,gr.instance)}static get defaultLocale(){return oo}static set defaultLocale(e){oo=e}static get defaultNumberingSystem(){return so}static set defaultNumberingSystem(e){so=e}
1static get defaultOutputCalendar(){return io}static set defaultOutputCalendar(e){io=e}static get defaultWeekSettings(){return uo}static set defaultWeekSettings(e){uo=sa(e)}static get twoDigitCutoffYear(){return lo}static set twoDigitCutoffYear(e){lo=e%100}static get throwOnInvalid(){return co}static set throwOnInvalid(e){co=e}static resetCaches(){ye.resetCache(),ct.resetCache(),re.resetCache(),Kc()}}class tt{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ei=[0,31,59,90,120,151,181,212,243,273,304,334],ti=[0,31,60,91,121,152,182,213,244,274,305,335];function qe(t,e){return new tt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Sa(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const a=r.getUTCDay();return a===0?7:a}function ni(t,e,n){return n+(_n(t)?ti:ei)[e-1]}function ri(t,e){const n=_n(t)?ti:ei,r=n.findIndex(o=>o<e),a=e-n[r];return{month:r+1,day:a}}function Pa(t,e){return(t-e+7)%7+1}function sr(t,e=4,n=1){const{year:r,month:a,day:o}=t,s=ni(r,a,o),d=Pa(Sa(r,a,o),n);let i=Math.floor((s-d+14-e)/7),c;return i<1?(c=r-1,i=Cn(c,e,n)):i>Cn(r,e,n)?(c=r+1,i=1):c=r,{weekYear:c,weekNumber:i,weekday:d,...vr(t)}}function mo(t,e=4,n=1){const{weekYear:r,weekNumber:a,weekday:o}=t,s=Pa(Sa(r,1,e),n),d=qt(r);let i=a*7+o-s-7+e,c;i<1?(c=r-1,i+=qt(c)):i>d?(c=r+1,i-=qt(r)):c=r;const{month:u,day:m}=ri(c,i);return{year:c,month:u,day:m,...vr(t)}}function Wr(t){const{year:e,month:n,day:r}=t,a=ni(e,n,r);return{year:e,ordinal:a,...vr(t)}}function fo(t){const{year:e,ordinal:n}=t,{month:r,day:a}=ri(e,n);return{year:e,month:r,day:a,...vr(t)}}function ho(t,e){if(!ie(t.localWeekday)||!ie(t.localWeekNumber)||!ie(t.localWeekYear)){if(!ie(t.weekday)||!ie(t.weekNumber)||!ie(t.weekYear))throw new Yt("Cannot mix locale-based week fields with ISO-based week fields");return ie(t.localWeekday)||(t.weekday=t.localWeekday),ie(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),ie(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Jc(t,e=4,n=1){const r=yr(t.weekYear),a=Ze(t.weekNumber,1,Cn(t.weekYear,e,n)),o=Ze(t.weekday,1,7);return r?a?o?!1:qe("weekday",t.weekday):qe("week",t.weekNumber):qe("weekYear",t.weekYear)}function Xc(t){const e=yr(t.year),n=Ze(t.ordinal,1,qt(t.year));return e?n?!1:qe("ordinal",t.ordinal):qe("year",t.year)}function ai(t){const e=yr(t.year),n=Ze(t.month,1,12),r=Ze(t.day,1,ir(t.year,t.month));return e?n?r?!1:qe("day",t.day):qe("month",t.month):qe("year",t.year)}function oi(t){const{hour:e,minute:n,second:r,millisecond:a}=t,o=Ze(e,0,23)||e===24&&n===0&&r===0&&a===0,s=Ze(n,0,59),d=Ze(r,0,59),i=Ze(a,0,999);return o?s?d?i?!1:qe("millisecond",a):qe("second",r):qe("minute",n):qe("hour",e)}function ie(t){return typeof t>"u"}function vt(t){return typeof t=="number"}function yr(t){return typeof t=="number"&&t%1===0}function Qc(t){return typeof t=="string"}function eu(t){return Object.prototype.toString.call(t)==="[object Date]"}function si(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ii(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function tu(t){return Array.isArray(t)?t:[t]}function po(t,e,n){if(t.length!==0)return t.reduce((r,a)=>{const o=[e(a),a];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function nu(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function rn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function sa(t){if(t==null)return null;if(typeof t!="object")throw new Le("Week settings must be an object");if(!Ze(t.firstDay,1,7)||!Ze(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Ze(e,1,7)))throw new Le("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Ze(t,e,n){return yr(t)&&t>=e&&t<=n}function ru(t,e){return t-e*Math.floor(t/e)}function Ae(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function gt(t){if(!(ie(t)||t===null||t===""))return parseInt(t,10)}function kt(t){if(!(ie(t)||t===null||t===""))return parseFloat(t)}function ka(t){if(!(ie(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}
1function Ca(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function _n(t){return t%4===0&&(t%100!==0||t%400===0)}function qt(t){return _n(t)?366:365}function ir(t,e){const n=ru(e-1,12)+1,r=t+(e-n)/12;return n===2?_n(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function $r(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function go(t,e,n){return-Pa(Sa(t,1,e),n)+e-1}function Cn(t,e=4,n=1){const r=go(t,e,n),a=go(t+1,e,n);return(qt(t)-r+a)/7}function ia(t){return t>99?t:t>Oe.twoDigitCutoffYear?1900+t:2e3+t}function di(t,e,n,r=null){const a=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const s={timeZoneName:e,...o},d=new Intl.DateTimeFormat(n,s).formatToParts(a).find(i=>i.type.toLowerCase()==="timezonename");return d?d.value:null}function br(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-r:r;return n*60+a}function li(t){const e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Le(`Invalid unit value ${t}`);return e}function dr(t,e){const n={};for(const r in t)if(rn(t,r)){const a=t[r];if(a==null)continue;n[e(r)]=li(a)}return n}
1function Pn(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${Ae(n,2)}:${Ae(r,2)}`;case"narrow":return`${a}${n}${r>0?`:${r}`:""}`;case"techie":return`${a}${Ae(n,2)}${Ae(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function vr(t){return nu(t,["hour","minute","second","millisecond"])}const au=["January","February","March","April","May","June","July","August","September","October","November","December"],ci=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ou=["J","F","M","A","M","J","J","A","S","O","N","D"];function ui(t){switch(t){case"narrow":return[...ou];case"short":return[...ci];case"long":return[...au];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const mi=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fi=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],su=["M","T","W","T","F","S","S"];function hi(t){switch(t){case"narrow":return[...su];case"short":return[...fi];case"long":return[...mi];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const pi=["AM","PM"],iu=["Before Christ","Anno Domini"],du=["BC","AD"],lu=["B","A"];function gi(t){switch(t){case"narrow":return[...lu];case"short":return[...du];case"long":return[...iu];default:return null}}function cu(t){return pi[t.hour<12?0:1]}function uu(t,e){return hi(e)[t.weekday-1]}function mu(t,e){return ui(e)[t.month-1]}function fu(t,e){return gi(e)[t.year<0?0:1]}function hu(t,e,n="always",r=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&o){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${a[t][0]}`;case-1:return m?"yesterday":`last ${a[t][0]}`;case 0:return m?"today":`this ${a[t][0]}`}}const s=Object.is(e,-0)||e<0,d=Math.abs(e),i=d===1,c=a[t],u=r?i?c[1]:c[2]||c[1]:i?a[t][0]:t;return s?`${d} ${u} ago`:`in ${d} ${u}`}function yo(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const pu={D:or,DD:Ns,DDD:Fs,DDDD:As,t:Rs,tt:Vs,ttt:js,tttt:Ls,T:_s,TT:Ws,TTT:Bs,TTTT:zs,f:Hs,ff:Ys,fff:qs,ffff:Ks,F:Us,FF:Gs,FFF:Zs,FFFF:Js};class _e{static create(e,n={}){return new _e(e,n)}static parseFormat(e){let n=null,r="",a=!1;const o=[];for(let s=0;s<e.length;s++){const d=e.charAt(s);d==="'"?((r.length>0||a)&&o.push({literal:a||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",a=!a):a||d===n?r+=d:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=d,n=d)}return r.length>0&&o.push({literal:a||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(e){return pu[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0,r=void 0){if(this.opts.forceSimple)return Ae(e,n);const a={...this.opts};return n>0&&(a.padTo=n),r&&(a.signDisplay=r),this.loc.numberFormatter(a).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(g,h)=>this.loc.extract(e,g,h),s=g=>e.isOffsetFixed&&e.offset===0&&g.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,g.format):"",d=()=>r?cu(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),i=(g,h)=>r?mu(e,g):o(h?{month:g}:{month:g,day:"numeric"},"month"),c=(g,h)=>r?uu(e,g):o(h?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),u=g=>{const h=_e.macroTokenToFormatOpts(g);return h?this.formatWithSystemDefault(e,h):g},m=g=>r?fu(e,g):o({era:g},"era"),f=g=>{switch(g){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return d();case"d":return a?o({day:"numeric"},"day"):this.num(e.day);case"dd":return a?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return i("short",!0);case"LLLL":return i("long",!0);case"LLLLL":return i("narrow",!0);case"M":return a?o({month:"numeric"},"month"):this.num(e.month);case"MM":return a?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return i("short",!1);case"MMMM":return i("long",!1);case"MMMMM":return i("narrow",!1);case"y":return a?o({year:"numeric"},"year"):this.num(e.year);case"yy":return a?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);
1case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(g)}};return yo(_e.parseFormat(n),f)}formatDurationFromString(e,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,a=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(u,m)=>f=>{const g=a(f);if(g){const h=m.isNegativeDuration&&g!==m.largestUnit?r:1;let $;return this.opts.signMode==="negativeLargestOnly"&&g!==m.largestUnit?$="never":this.opts.signMode==="all"?$="always":$="auto",this.num(u.get(g)*h,f.length,$)}else return f},s=_e.parseFormat(n),d=s.reduce((u,{literal:m,val:f})=>m?u:u.concat(f),[]),i=e.shiftTo(...d.map(a).filter(u=>u)),c={isNegativeDuration:i<0,largestUnit:Object.keys(i.values)[0]};return yo(s,o(i,c))}}const yi=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function sn(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function dn(...t){return e=>t.reduce(([n,r,a],o)=>{const[s,d,i]=o(e,a);return[{...n,...s},d||r,i]},[{},null,1]).slice(0,2)}function ln(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const a=n.exec(t);if(a)return r(a)}return[null,null]}function $i(...t){return(e,n)=>{const r={};let a;for(a=0;a<t.length;a++)r[t[a]]=gt(e[n+a]);return[r,null,n+a]}}const bi=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,gu=`(?:${bi.source}?(?:\\[(${yi.source})\\])?)?`,Ma=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,vi=RegExp(`${Ma.source}${gu}`),Da=RegExp(`(?:[Tt]${vi.source})?`),yu=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$u=/(\d{4})-?W(\d\d)(?:-?(\d))?/,bu=/(\d{4})-?(\d{3})/,vu=$i("weekYear","weekNumber","weekDay"),wu=$i("year","ordinal"),xu=/(\d{4})-(\d\d)-(\d\d)/,wi=RegExp(`${Ma.source} ?(?:${bi.source}|(${yi.source}))?`),Su=RegExp(`(?: ${wi.source})?`);function Zt(t,e,n){const r=t[e];return ie(r)?n:gt(r)}function Pu(t,e){return[{year:Zt(t,e),month:Zt(t,e+1,1),day:Zt(t,e+2,1)},null,e+3]}function cn(t,e){return[{hours:Zt(t,e,0),minutes:Zt(t,e+1,0),seconds:Zt(t,e+2,0),milliseconds:ka(t[e+3])},null,e+4]}function Wn(t,e){const n=!t[e]&&!t[e+1],r=br(t[e+1],t[e+2]),a=n?null:Be.instance(r);return[{},a,e+3]}function Bn(t,e){const n=t[e]?ct.create(t[e]):null;return[{},n,e+1]}const ku=RegExp(`^T?${Ma.source}$`),Cu=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Mu(t){const[e,n,r,a,o,s,d,i,c]=t,u=e[0]==="-",m=i&&i[0]==="-",f=(g,h=!1)=>g!==void 0&&(h||g&&u)?-g:g;return[{years:f(kt(n)),months:f(kt(r)),weeks:f(kt(a)),days:f(kt(o)),hours:f(kt(s)),minutes:f(kt(d)),seconds:f(kt(i),i==="-0"),milliseconds:f(ka(c),m)}]}const Du={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ta(t,e,n,r,a,o,s){const d={year:e.length===2?ia(gt(e)):gt(e),month:ci.indexOf(n)+1,day:gt(r),hour:gt(a),minute:gt(o)};return s&&(d.second=gt(s)),t&&(d.weekday=t.length>3?mi.indexOf(t)+1:fi.indexOf(t)+1),d}const Tu=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ou(t){const[,e,n,r,a,o,s,d,i,c,u,m]=t,f=Ta(e,a,r,n,o,s,d);let g;return i?g=Du[i]:c?g=0:g=br(u,m),[f,new Be(g)]}function Iu(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Eu=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Nu=/^(Monday|Tuesday|Wednesday|Thursday|Frid
1ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Fu=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function $o(t){const[,e,n,r,a,o,s,d]=t;return[Ta(e,a,r,n,o,s,d),Be.utcInstance]}function Au(t){const[,e,n,r,a,o,s,d]=t;return[Ta(e,d,n,r,a,o,s),Be.utcInstance]}const Ru=sn(yu,Da),Vu=sn($u,Da),ju=sn(bu,Da),Lu=sn(vi),xi=dn(Pu,cn,Wn,Bn),_u=dn(vu,cn,Wn,Bn),Wu=dn(wu,cn,Wn,Bn),Bu=dn(cn,Wn,Bn);function zu(t){return ln(t,[Ru,xi],[Vu,_u],[ju,Wu],[Lu,Bu])}function Hu(t){return ln(Iu(t),[Tu,Ou])}function Uu(t){return ln(t,[Eu,$o],[Nu,$o],[Fu,Au])}function Yu(t){return ln(t,[Cu,Mu])}const Gu=dn(cn);function qu(t){return ln(t,[ku,Gu])}const Zu=sn(xu,Su),Ku=sn(wi),Ju=dn(cn,Wn,Bn);function Xu(t){return ln(t,[Zu,xi],[Ku,Ju])}const bo="Invalid Duration",Si={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Qu={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Si},Ye=146097/400,jt=146097/4800,em={years:{quarters:4,months:12,weeks:Ye/7,days:Ye,hours:Ye*24,minutes:Ye*24*60,seconds:Ye*24*60*60,milliseconds:Ye*24*60*60*1e3},quarters:{months:3,weeks:Ye/28,days:Ye/4,hours:Ye*24/4,minutes:Ye*24*60/4,seconds:Ye*24*60*60/4,milliseconds:Ye*24*60*60*1e3/4},months:{weeks:jt/7,days:jt,hours:jt*24,minutes:jt*24*60,seconds:jt*24*60*60,milliseconds:jt*24*60*60*1e3},...Si},Ot=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tm=Ot.slice(0).reverse();function dt(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new pe(r)}function Pi(t,e){let n=e.milliseconds??0;for(const r of tm.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function vo(t,e){const n=Pi(t,e)<0?-1:1;Ot.reduceRight((r,a)=>{if(ie(e[a]))return r;if(r){const o=e[r]*n,s=t[a][r],d=Math.floor(o/s);e[a]+=d*n,e[r]-=d*s*n}return a},null),Ot.reduce((r,a)=>{if(ie(e[a]))return r;if(r){const o=e[r]%1;e[r]-=o,e[a]+=o*t[r][a]}return a},null)}function wo(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class pe{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?em:Qu;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||ye.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return pe.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Le(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new pe({values:dr(e,pe.normalizeUnit),loc:ye.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(vt(e))return pe.fromMillis(e);if(pe.isDuration(e))return e;if(typeof e=="object")return pe.fromObject(e);throw new Le(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Yu(e);return r?pe.fromObject(r,n):pe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=qu(e);return r?pe.fromObject(r,n):pe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Le("need to specify a reason the Duration is invalid");const r=e instanceof tt?e:new tt(e,n);if(Oe.throwOnInvalid)throw new Mc(r);return new pe({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Es(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?_e.create(this.loc,r).formatDurationFromString(this,e):bo}toHuman(e={}){if(!this.isValid)return bo;const n=e.showZeros!==!1,r=Ot.map(a=>{const o=this.values[a];return ie(o)||o===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:a.slice(0,-1)}
1).format(o)}).filter(a=>a);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ca(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},re.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Pi(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=pe.fromDurationLike(e),r={};for(const a of Ot)(rn(n.values,a)||rn(this.values,a))&&(r[a]=n.get(a)+this.get(a));return dt(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=pe.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=li(e(this.values[r],r));return dt(this,{values:n},!0)}get(e){return this[pe.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...dr(e,pe.normalizeUnit)};return dt(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:a}={}){const s={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:a,conversionAccuracy:r};return dt(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return vo(this.matrix,e),dt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=wo(this.normalize().shiftToAll().toObject());return dt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>pe.normalizeUnit(s));const n={},r={},a=this.toObject();let o;for(const s of Ot)if(e.indexOf(s)>=0){o=s;let d=0;for(const c in r)d+=this.matrix[c][s]*r[c],r[c]=0;vt(a[s])&&(d+=a[s]);const i=Math.trunc(d);n[s]=i,r[s]=(d*1e3-i*1e3)/1e3}else vt(a[s])&&(r[s]=a[s]);for(const s in r)r[s]!==0&&(n[o]+=s===o?r[s]:r[s]/this.matrix[o][s]);return vo(this.matrix,n),dt(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return dt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=wo(this.values);return dt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,a){return r===void 0||r===0?a===void 0||a===0:r===a}for(const r of Ot)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Lt="Invalid Interval";
1function nm(t,e){return!t||!t.isValid?Te.invalid("missing or invalid start"):!e||!e.isValid?Te.invalid("missing or invalid end"):e<t?Te.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Te{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Le("need to specify a reason the Interval is invalid");const r=e instanceof tt?e:new tt(e,n);if(Oe.throwOnInvalid)throw new Cc(r);return new Te({invalid:r})}static fromDateTimes(e,n){const r=fn(e),a=fn(n),o=nm(r,a);return o??new Te({start:r,end:a})}static after(e,n){const r=pe.fromDurationLike(n),a=fn(e);return Te.fromDateTimes(a,a.plus(r))}static before(e,n){const r=pe.fromDurationLike(n),a=fn(e);return Te.fromDateTimes(a.minus(r),a)}static fromISO(e,n){const[r,a]=(e||"").split("/",2);if(r&&a){let o,s;try{o=re.fromISO(r,n),s=o.isValid}catch{s=!1}let d,i;try{d=re.fromISO(a,n),i=d.isValid}catch{i=!1}if(s&&i)return Te.fromDateTimes(o,d);if(s){const c=pe.fromISO(a,n);if(c.isValid)return Te.after(o,c)}else if(i){const c=pe.fromISO(r,n);if(c.isValid)return Te.before(d,c)}}return Te.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let a;return n!=null&&n.useLocaleWeeks?a=this.end.reconfigure({locale:r.locale}):a=this.end,a=a.startOf(e,n),Math.floor(a.diff(r,e).get(e))+(a.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Te.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(fn).filter(s=>this.contains(s)).sort((s,d)=>s.toMillis()-d.toMillis()),r=[];let{s:a}=this,o=0;for(;a<this.e;){const s=n[o]||this.e,d=+s>+this.e?this.e:s;r.push(Te.fromDateTimes(a,d)),a=d,o+=1}return r}splitBy(e){const n=pe.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,a=1,o;const s=[];for(;r<this.e;){const d=this.start.plus(n.mapUnits(i=>i*a));o=+d>+this.e?this.e:d,s.push(Te.fromDateTimes(r,o)),r=o,a+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:Te.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return Te.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((a,o)=>a.s-o.s).reduce(([a,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[a,o.union(s)]:[a.concat([o]),s]:[a,s],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const a=[],o=e.map(i=>[{time:i.s,type:"s"},{time:i.e,type:"e"}]),s=Array.prototype.concat(...o),d=s.sort((i,c)=>i.time-c.time);for(const i of d)r+=i.type==="s"?1:-1,r===1?n=i.time:(n&&+n!=+i.time&&a.push(Te.fromDateTimes(n,i.time)),n=null);return Te.merge(a)}difference(...e){return Te.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:Lt}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
1toLocaleString(e=or,n={}){return this.isValid?_e.create(this.s.loc.clone(n),e).formatInterval(this):Lt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Lt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Lt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Lt}toFormat(e,{separator:n=" â "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Lt}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):pe.invalid(this.invalidReason)}mapEndpoints(e){return Te.fromDateTimes(e(this.s),e(this.e))}}class qn{static hasDST(e=Oe.defaultZone){const n=re.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ct.isValidZone(e)}static normalizeZone(e){return yt(e,Oe.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||ye.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||ye.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||ye.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:o="gregory"}={}){return(a||ye.create(n,r,o)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:o="gregory"}={}){return(a||ye.create(n,r,o)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||ye.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||ye.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ye.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return ye.create(n,null,"gregory").eras(e)}static features(){return{relative:si(),localeWeek:ii()}}}function xo(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(pe.fromMillis(r).as("days"))}function rm(t,e,n){const r=[["years",(i,c)=>c.year-i.year],["quarters",(i,c)=>c.quarter-i.quarter+(c.year-i.year)*4],["months",(i,c)=>c.month-i.month+(c.year-i.year)*12],["weeks",(i,c)=>{const u=xo(i,c);return(u-u%7)/7}],["days",xo]],a={},o=t;let s,d;for(const[i,c]of r)n.indexOf(i)>=0&&(s=i,a[i]=c(t,e),d=o.plus(a),d>e?(a[i]--,t=o.plus(a),t>e&&(d=t,a[i]--,t=o.plus(a))):t=d);return[t,a,d,s]}function am(t,e,n,r){let[a,o,s,d]=rm(t,e,n);const i=e-a,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(s<e&&(s=a.plus({[d]:1})),s!==a&&(o[d]=(o[d]||0)+i/(s-a)));const u=pe.fromObject(o,r);return c.length>0?pe.fromMillis(i,r).shiftTo(...c).plus(u):u}const om="missing Intl.DateTimeFormat.formatToParts support";function ge(t,e=n=>n){return{regex:t,deser:([n])=>e(Zc(n))}}const sm="Â ",ki=`[ ${sm}]`,Ci=new RegExp(ki,"g");function im(t){return t.replace(/\./g,"\\.?").replace(Ci,ki)}function So(t){return t.replace(/\./g,"").replace(Ci," ").toLowerCase()}function Qe(t,e){return t===null?null:{regex:RegExp(t.map(im).join("|")),deser:([n])=>t.findIndex(r=>So(n)===So(r))+e}}function Po(t,e){return{regex:t,deser:([,n,r])=>br(n,r),groups:e}}function Zn(t){return{regex:t,deser:([e])=>e}}
1function dm(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function lm(t,e){const n=Xe(e),r=Xe(e,"{2}"),a=Xe(e,"{3}"),o=Xe(e,"{4}"),s=Xe(e,"{6}"),d=Xe(e,"{1,2}"),i=Xe(e,"{1,3}"),c=Xe(e,"{1,6}"),u=Xe(e,"{1,9}"),m=Xe(e,"{2,4}"),f=Xe(e,"{4,6}"),g=b=>({regex:RegExp(dm(b.val)),deser:([v])=>v,literal:!0}),$=(b=>{if(t.literal)return g(b);switch(b.val){case"G":return Qe(e.eras("short"),0);case"GG":return Qe(e.eras("long"),0);case"y":return ge(c);case"yy":return ge(m,ia);case"yyyy":return ge(o);case"yyyyy":return ge(f);case"yyyyyy":return ge(s);case"M":return ge(d);case"MM":return ge(r);case"MMM":return Qe(e.months("short",!0),1);case"MMMM":return Qe(e.months("long",!0),1);case"L":return ge(d);case"LL":return ge(r);case"LLL":return Qe(e.months("short",!1),1);case"LLLL":return Qe(e.months("long",!1),1);case"d":return ge(d);case"dd":return ge(r);case"o":return ge(i);case"ooo":return ge(a);case"HH":return ge(r);case"H":return ge(d);case"hh":return ge(r);case"h":return ge(d);case"mm":return ge(r);case"m":return ge(d);case"q":return ge(d);case"qq":return ge(r);case"s":return ge(d);case"ss":return ge(r);case"S":return ge(i);case"SSS":return ge(a);case"u":return Zn(u);case"uu":return Zn(d);case"uuu":return ge(n);case"a":return Qe(e.meridiems(),0);case"kkkk":return ge(o);case"kk":return ge(m,ia);case"W":return ge(d);case"WW":return ge(r);case"E":case"c":return ge(n);case"EEE":return Qe(e.weekdays("short",!1),1);case"EEEE":return Qe(e.weekdays("long",!1),1);case"ccc":return Qe(e.weekdays("short",!0),1);case"cccc":return Qe(e.weekdays("long",!0),1);case"Z":case"ZZ":return Po(new RegExp(`([+-]${d.source})(?::(${r.source}))?`),2);case"ZZZ":return Po(new RegExp(`([+-]${d.source})(${r.source})?`),2);case"z":return Zn(/[a-z_+-/]{1,256}?/i);case" ":return Zn(/[^\S\n\r]/);default:return g(b)}})(t)||{invalidReason:om};return $.token=t,$}const cm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function um(t,e,n){const{type:r,value:a}=t;if(r==="literal"){const i=/^\s+$/.test(a);return{literal:!i,val:i?" ":a}}const o=e[r];let s=r;r==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let d=cm[s];if(typeof d=="object"&&(d=d[o]),d)return{literal:!1,val:d}}function mm(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function fm(t,e,n){const r=t.match(e);if(r){const a={};let o=1;for(const s in n)if(rn(n,s)){const d=n[s],i=d.groups?d.groups+1:1;!d.literal&&d.token&&(a[d.token.val[0]]=d.deser(r.slice(o,o+i))),o+=i}return[r,a]}else return[r,{}]}function hm(t){const e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return ie(t.z)||(n=ct.create(t.z)),ie(t.Z)||(n||(n=new Be(t.Z)),r=t.Z),ie(t.q)||(t.M=(t.q-1)*3+1),ie(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),ie(t.u)||(t.S=ka(t.u)),[Object.keys(t).reduce((o,s)=>{const d=e(s);return d&&(o[d]=t[s]),o},{}),n,r]}let Br=null;function pm(){return Br||(Br=re.fromMillis(1555555555555)),Br}function gm(t,e){if(t.literal)return t;const n=_e.macroTokenToFormatOpts(t.val),r=Oi(n,e);return r==null||r.includes(void 0)?t:r}function Mi(t,e){return Array.prototype.concat(...t.map(n=>gm(n,e)))}class Di{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=Mi(_e.parseFormat(n),e),this.units=this.tokens.map(r=>lm(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,a]=mm(this.units);this.regex=RegExp(r,"i"),this.handlers=a}}explainFromTokens(e){if(this.isValid){const[n,r]=fm(e,this.regex,this.handlers),[a,o,s]=r?hm(r):[null,null,void 0];if(rn(r,"a")&&rn(r,"H"))throw new Yt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:a,zone:o,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
1dReason:null}}function Ti(t,e,n){return new Di(t,n).explainFromTokens(e)}function ym(t,e,n){const{result:r,zone:a,specificOffset:o,invalidReason:s}=Ti(t,e,n);return[r,a,o,s]}function Oi(t,e){if(!t)return null;const r=_e.create(e,t).dtFormatter(pm()),a=r.formatToParts(),o=r.resolvedOptions();return a.map(s=>um(s,t,o))}const zr="Invalid DateTime",ko=864e13;function vn(t){return new tt("unsupported zone",`the zone "${t.name}" is not supported`)}function Hr(t){return t.weekData===null&&(t.weekData=sr(t.c)),t.weekData}function Ur(t){return t.localWeekData===null&&(t.localWeekData=sr(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Ct(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new re({...n,...e,old:n})}function Ii(t,e,n){let r=t-e*60*1e3;const a=n.offset(r);if(e===a)return[r,e];r-=(a-e)*60*1e3;const o=n.offset(r);return a===o?[r,a]:[t-Math.min(a,o)*60*1e3,Math.max(a,o)]}function Kn(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function er(t,e,n){return Ii($r(t),e,n)}function Co(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:r,month:a,day:Math.min(t.c.day,ir(r,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=pe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),d=$r(o);let[i,c]=Ii(d,n,t.zone);return s!==0&&(i+=s,c=t.zone.offset(i)),{ts:i,o:c}}function _t(t,e,n,r,a,o){const{setZone:s,zone:d}=n;if(t&&Object.keys(t).length!==0||e){const i=e||d,c=re.fromObject(t,{...n,zone:i,specificOffset:o});return s?c:c.setZone(d)}else return re.invalid(new tt("unparsable",`the input "${a}" can't be parsed as ${r}`))}function Jn(t,e,n=!0){return t.isValid?_e.create(ye.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Yr(t,e,n){const r=t.c.year>9999||t.c.year<0;let a="";if(r&&t.c.year>=0&&(a+="+"),a+=Ae(t.c.year,r?6:4),n==="year")return a;
1if(e){if(a+="-",a+=Ae(t.c.month),n==="month")return a;a+="-"}else if(a+=Ae(t.c.month),n==="month")return a;return a+=Ae(t.c.day),a}function Mo(t,e,n,r,a,o,s){let d=!n||t.c.millisecond!==0||t.c.second!==0,i="";switch(s){case"day":case"month":case"year":break;default:if(i+=Ae(t.c.hour),s==="hour")break;if(e){if(i+=":",i+=Ae(t.c.minute),s==="minute")break;d&&(i+=":",i+=Ae(t.c.second))}else{if(i+=Ae(t.c.minute),s==="minute")break;d&&(i+=Ae(t.c.second))}if(s==="second")break;d&&(!r||t.c.millisecond!==0)&&(i+=".",i+=Ae(t.c.millisecond,3))}return a&&(t.isOffsetFixed&&t.offset===0&&!o?i+="Z":t.o<0?(i+="-",i+=Ae(Math.trunc(-t.o/60)),i+=":",i+=Ae(Math.trunc(-t.o%60))):(i+="+",i+=Ae(Math.trunc(t.o/60)),i+=":",i+=Ae(Math.trunc(t.o%60)))),o&&(i+="["+t.zone.ianaName+"]"),i}const Ei={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},$m={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bm={ordinal:1,hour:0,minute:0,second:0,millisecond:0},tr=["year","month","day","hour","minute","second","millisecond"],vm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wm=["year","ordinal","hour","minute","second","millisecond"];function nr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Es(t);return e}function Do(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return nr(t)}}function xm(t){if(wn===void 0&&(wn=Oe.now()),t.type!=="iana")return t.offset(wn);const e=t.name;let n=da.get(e);return n===void 0&&(n=t.offset(wn),da.set(e,n)),n}function To(t,e){const n=yt(e.zone,Oe.defaultZone);if(!n.isValid)return re.invalid(vn(n));const r=ye.fromObject(e);let a,o;if(ie(t.year))a=Oe.now();else{for(const i of tr)ie(t[i])&&(t[i]=Ei[i]);const s=ai(t)||oi(t);if(s)return re.invalid(s);const d=xm(n);[a,o]=er(t,d,n)}return new re({ts:a,zone:n,loc:r,o})}function Oo(t,e,n){const r=ie(n.round)?!0:n.round,a=ie(n.rounding)?"trunc":n.rounding,o=(d,i)=>(d=Ca(d,r||n.calendary?0:2,n.calendary?"round":a),e.loc.clone(n).relFormatter(n).format(d,i)),s=d=>n.calendary?e.hasSame(t,d)?0:e.startOf(d).diff(t.startOf(d),d).get(d):e.diff(t,d).get(d);if(n.unit)return o(s(n.unit),n.unit);for(const d of n.units){const i=s(d);if(Math.abs(i)>=1)return o(i,d)}return o(t>e?-0:0,n.units[n.units.length-1])}function Io(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let wn;const da=new Map;class re{constructor(e){const n=e.zone||Oe.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new tt("invalid input"):null)||(n.isValid?null:vn(n));this.ts=ie(e.ts)?Oe.now():e.ts;let a=null,o=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,o]=[e.old.c,e.old.o];else{const d=vt(e.o)&&!e.old?e.o:n.offset(this.ts);a=Kn(this.ts,d),r=Number.isNaN(a.year)?new tt("invalid input"):null,a=r?null:a,o=r?null:d}this._zone=n,this.loc=e.loc||ye.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=a,this.o=o,this.isLuxonDateTime=!0}static now(){return new re({})}static local(){const[e,n]=Io(arguments),[r,a,o,s,d,i,c]=n;return To({year:r,month:a,day:o,hour:s,minute:d,second:i,millisecond:c},e)}static utc(){const[e,n]=Io(arguments),[r,a,o,s,d,i,c]=n;return e.zone=Be.utcInstance,To({year:r,month:a,day:o,hour:s,minute:d,second:i,millisecond:c},e)}static fromJSDate(e,n={}){const r=eu(e)?e.valueOf():NaN;if(Number.isNaN(r))return re.invalid("invalid input");const a=yt(n.zone,Oe.defaultZone);return a.isValid?new re({ts:r,zone:a,loc:ye.fromObject(n)}):re.invalid(vn(a))}static fromMillis(e,n={}){if(vt(e))return e<-ko||e>
1ko?re.invalid("Timestamp out of range"):new re({ts:e,zone:yt(n.zone,Oe.defaultZone),loc:ye.fromObject(n)});throw new Le(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(vt(e))return new re({ts:e*1e3,zone:yt(n.zone,Oe.defaultZone),loc:ye.fromObject(n)});throw new Le("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=yt(n.zone,Oe.defaultZone);if(!r.isValid)return re.invalid(vn(r));const a=ye.fromObject(n),o=dr(e,Do),{minDaysInFirstWeek:s,startOfWeek:d}=ho(o,a),i=Oe.now(),c=ie(n.specificOffset)?r.offset(i):n.specificOffset,u=!ie(o.ordinal),m=!ie(o.year),f=!ie(o.month)||!ie(o.day),g=m||f,h=o.weekYear||o.weekNumber;if((g||u)&&h)throw new Yt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Yt("Can't mix ordinal dates with month/day");const $=h||o.weekday&&!g;let b,v,x=Kn(i,c);$?(b=vm,v=$m,x=sr(x,s,d)):u?(b=wm,v=bm,x=Wr(x)):(b=tr,v=Ei);let C=!1;for(const V of b){const D=o[V];ie(D)?C?o[V]=v[V]:o[V]=x[V]:C=!0}const M=$?Jc(o,s,d):u?Xc(o):ai(o),S=M||oi(o);if(S)return re.invalid(S);const I=$?mo(o,s,d):u?fo(o):o,[O,P]=er(I,c,r),R=new re({ts:O,zone:r,o:P,loc:a});return o.weekday&&g&&e.weekday!==R.weekday?re.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${R.toISO()}`):R.isValid?R:re.invalid(R.invalid)}static fromISO(e,n={}){const[r,a]=zu(e);return _t(r,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,a]=Hu(e);return _t(r,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,a]=Uu(e);return _t(r,a,n,"HTTP",n)}static fromFormat(e,n,r={}){if(ie(e)||ie(n))throw new Le("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:o=null}=r,s=ye.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0}),[d,i,c,u]=ym(s,e,n);return u?re.invalid(u):_t(d,i,r,`format ${n}`,e,c)}static fromString(e,n,r={}){return re.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,a]=Xu(e);return _t(r,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Le("need to specify a reason the DateTime is invalid");const r=e instanceof tt?e:new tt(e,n);if(Oe.throwOnInvalid)throw new kc(r);return new re({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Oi(e,ye.fromObject(n));return r?r.map(a=>a?a.val:null).join(""):null}static expandFormat(e,n={}){return Mi(_e.parseFormat(e),ye.fromObject(n)).map(a=>a.val).join("")}static resetCache(){wn=void 0,da.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
1get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Hr(this).weekYear:NaN}get weekNumber(){return this.isValid?Hr(this).weekNumber:NaN}get weekday(){return this.isValid?Hr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ur(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ur(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ur(this).weekYear:NaN}get ordinal(){return this.isValid?Wr(this.c).ordinal:NaN}get monthShort(){return this.isValid?qn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?qn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?qn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?qn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=$r(this.c),a=this.zone.offset(r-e),o=this.zone.offset(r+e),s=this.zone.offset(r-a*n),d=this.zone.offset(r-o*n);if(s===d)return[this];const i=r-s*n,c=r-d*n,u=Kn(i,s),m=Kn(c,d);return u.hour===m.hour&&u.minute===m.minute&&u.second===m.second&&u.millisecond===m.millisecond?[Ct(this,{ts:i}),Ct(this,{ts:c})]:[this]}get isInLeapYear(){return _n(this.year)}get daysInMonth(){return ir(this.year,this.month)}get daysInYear(){return this.isValid?qt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Cn(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Cn(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:a}=_e.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(Be.instance(e),n)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=yt(e,Oe.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||r){const o=e.offset(this.ts),s=this.toObject();[a]=er(s,o,e)}return Ct(this,{ts:a,zone:e})}else return re.invalid(vn(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Ct(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=dr(e,Do),{minDaysInFirstWeek:r,startOfWeek:a}=ho(n,this.loc),o=!ie(n.weekYear)||!ie(n.weekNumber)||!ie(n.weekday),s=!ie(n.ordinal),d=!ie(n.year),i=!ie(n.month)||!ie(n.day),c=d||i,u=n.weekYear||n.weekNumber;if((c||s)&&u)throw new Yt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&s)throw new Yt("Can't mix ordinal dates with month/day");let m;o?m=mo({...sr(this.c,r,a),...n},r,a):ie(n.ordinal)?(m={...this.toObject(),...n},ie(n.day)&&(m.day=Math.min(ir(m.year,m.month),m.day))):m=fo({...Wr(this.c),...n});const[f,g]=er(m,this.o,this.zone);return Ct(this,{ts:f,o:g})}plus(e){if(!this.isValid)return this;const n=pe.fromDurationLike(e);return Ct(this,Co(this,n))}minus(e){if(!this.isValid)return this;const n=pe.fromDurationLike(e).negate();return Ct(this,Co(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},a=pe.normalizeUnit(e);switch(a){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(a==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(r.weekNumber=this.weekNumber-1),r.weekday=o}else r.weekday=1;if(a==="quarters"){const o=Math.ceil(this.month/3);r.month=(o-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?_e.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):zr}
1toLocaleString(e=or,n={}){return this.isValid?_e.create(this.loc.clone(n),e).formatDateTime(this):zr}toLocaleParts(e={}){return this.isValid?_e.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:a=!0,extendedZone:o=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=nr(s);const d=e==="extended";let i=Yr(this,d,s);return tr.indexOf(s)>=3&&(i+="T"),i+=Mo(this,d,n,r,a,o,s),i}toISODate({format:e="extended",precision:n="day"}={}){return this.isValid?Yr(this,e==="extended",nr(n)):null}toISOWeekDate(){return Jn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:a=!1,extendedZone:o=!1,format:s="extended",precision:d="milliseconds"}={}){return this.isValid?(d=nr(d),(a&&tr.indexOf(d)>=3?"T":"")+Mo(this,s==="extended",n,e,r,o,d)):null}toRFC2822(){return Jn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Jn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Yr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let a="HH:mm:ss.SSS";return(n||e)&&(r&&(a+=" "),n?a+="z":e&&(a+="ZZ")),Jn(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():zr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return pe.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=tu(n).map(pe.normalizeUnit),s=e.valueOf()>this.valueOf(),d=s?this:e,i=s?e:this,c=am(d,i,o,a);return s?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(re.now(),e,n)}until(e){return this.isValid?Te.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const a=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(n,r)<=a&&a<=o.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||re.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(a=e.unit,o=void 0),Oo(n,this.plus(r),{...e,numeric:"always",units:a,unit:o})}toRelativeCalendar(e={}){return this.isValid?Oo(e.base||re.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(re.isDateTime))throw new Le("min requires all arguments be DateTimes");return po(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(re.isDateTime))throw new Le("max requires all arguments be DateTimes");return po(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:a=null,numberingSystem:o=null}=r,s=ye.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0});return Ti(s,e,n)}static fromStringExplain(e,n,r={}){return re.fromFormatExplain(e,n,r)}static buildFormatParser(e,n={}){const{locale:r=null,numberingSystem:a=null}=n,o=ye.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0});return new Di(o,e)}static fromFormatParser(e,n,r={}){if(ie(e)||ie(n))throw new Le("fromFormatParser requires an input string and a format parser");const{locale:a=null,numberingSystem:o=null}=r,s=ye.fromOpts({locale:a,numberingSystem:o,defaultToEN:!0});if(!s.equals(n.locale))throw new Le(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);const{result:d,zone:i,specificOffset:c,invalidReason:u}=n.explainFromTokens(e);
1return u?re.invalid(u):_t(d,i,r,`format ${n.format}`,e,c)}static get DATE_SHORT(){return or}static get DATE_MED(){return Ns}static get DATE_MED_WITH_WEEKDAY(){return Dc}static get DATE_FULL(){return Fs}static get DATE_HUGE(){return As}static get TIME_SIMPLE(){return Rs}static get TIME_WITH_SECONDS(){return Vs}static get TIME_WITH_SHORT_OFFSET(){return js}static get TIME_WITH_LONG_OFFSET(){return Ls}static get TIME_24_SIMPLE(){return _s}static get TIME_24_WITH_SECONDS(){return Ws}static get TIME_24_WITH_SHORT_OFFSET(){return Bs}static get TIME_24_WITH_LONG_OFFSET(){return zs}static get DATETIME_SHORT(){return Hs}static get DATETIME_SHORT_WITH_SECONDS(){return Us}static get DATETIME_MED(){return Ys}static get DATETIME_MED_WITH_SECONDS(){return Gs}static get DATETIME_MED_WITH_WEEKDAY(){return Tc}static get DATETIME_FULL(){return qs}static get DATETIME_FULL_WITH_SECONDS(){return Zs}static get DATETIME_HUGE(){return Ks}static get DATETIME_HUGE_WITH_SECONDS(){return Js}}function fn(t){if(re.isDateTime(t))return t;if(t&&t.valueOf&&vt(t.valueOf()))return re.fromJSDate(t);if(t&&typeof t=="object")return re.fromObject(t);throw new Le(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Sm=` 2 { 3 "termsOfConditionItems": *[_id == "global-settings"][0].termsRef->summary.items[] { 4 _key, 5 "title": coalesce(title[$locale], title.en), 6 "body": coalesce(body[$locale], body.en), 7 type 8 } 9 } 10`;function Pm(t,e,n){const r=Ue(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*xl),r}function km(t,e,n){return ic(t,e*1e3)}function Eo(t,e){const n=Ue(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Cm(t,e){var d,i,c,u;const n=Zl(),r=(e==null?void 0:e.weekStartsOn)??((i=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:i.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,a=Ue(t,e==null?void 0:e.in),o=a.getDay(),s=(o<r?-7:0)+6-(o-r);return a.setDate(a.getDate()+s),a.setHours(23,59,59,999),a}function Mm(t,e){return Ue(t,e==null?void 0:e.in).getDate()}function Dm(t,e){return Ue(t,e==null?void 0:e.in).getHours()}function Tm(t){return Ue(t).getMilliseconds()}function Om(t,e){return Ue(t,e==null?void 0:e.in).getMonth()}function Im(t){return Ue(t).getSeconds()}function Em(t,e){return Ue(t,e==null?void 0:e.in).getFullYear()}function Nm(t,e){return+Ue(t)==+Ue(e)}function Fm(t,e,n){const[r,a]=Os(n==null?void 0:n.in,t,e);return+Qa(r)==+Qa(a)}function Am(t,e,n){const[r,a]=Os(n==null?void 0:n.in,t,e);return r.getFullYear()===a.getFullYear()}function Rm(t,e,n){const r=Ue(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function Vm(t,e,n){const r=Ue(t,n==null?void 0:n.in);return r.setSeconds(e),r}const nb=()=>{const{t}=De(),e=Rn(),n=pr(),{systemConfig:r}=Cs(),[a]=wa(),o=a.get("token"),s=o!==null&&/^(?:\{|%7B)token(?:\}|%7D)$/i.test(o),d=s?null:o,i=a.get("error")??(s?"oauth_token_substitution_failed":null),{client:c,orgId:u,systemId:m,loading:f,error:g}=Sl(),h=Pl();if(p.useEffect(()=>{if(!d||!m)return;let v=!1;return(async()=>{kl(d);try{await h.refetchQueries({include:["currentUser"]})}catch{}let x=!1;try{x=(await Ve.onboardingControllerGetUserOnboarding(m)).pending.some(S=>S.required)}catch{}if(v)return;const C=x?It("onboarding",e):It("profile",e);n(`/${e}/${C}`,{replace:!0})})(),()=>{v=!0}},[d,m,r==null?void 0:r.id,e,n,h]),d)return l.jsx(zl,{});if(f)return l.jsx(Cl,{variant:"centered"});if(g)return l.jsx(bt,{children:l.jsx(Q,{sx:{textAlign:"center"},children:l.jsxs(ce,{variant:"body1",color:"error",children:["Error loading page: ",g.message]})})});if(!c||!u||!m)return typeof console<"u"&&console.error(`[LoginPage] Cannot initialise login â missing ${[!m&&"system id",!u&&"organizationId (not set on this system in core)"].filter(Boolean).join(" and ")}.`),l.jsx(bt,{children:l.jsx(Q,{sx:{textAlign:"center"},children:l.jsx(ce,{variant:"body1",color:"error",children:t("error_generic")})})});const $=It("login",e),b=`${window.location.origin}/${e}/${$}?token={token}`;
10return l.jsx(bt,{maxWidth:"sm",sx:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"80vh"},children:l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[l.jsx(ce,{component:"h1",variant:"h4",sx:{mb:4,textAlign:"center"},children:t("LogInPage.heading")}),i&&l.jsx(en,{severity:"error",sx:{mb:2,width:"100%",maxWidth:400},children:i}),l.jsx(Bl,{client:c,orgId:u,systemId:m,oauthRedirectTo:b})]})})},jm=6e4,Lm=({systemId:t,stepType:e,required:n,initialData:r,onNext:a,onSkip:o})=>{const{t:s}=De(),d=e===le.type.VERIFIED_STREET_ADDRESS,[i,c]=p.useState({streetAddress:(r==null?void 0:r.streetAddress)??"",streetAddress2:(r==null?void 0:r.streetAddress2)??"",streetAddress3:(r==null?void 0:r.streetAddress3)??"",postalCode:(r==null?void 0:r.postalCode)??"",city:(r==null?void 0:r.city)??"",countryCode:(r==null?void 0:r.countryCode)??"HU"}),[u,m]=p.useState({}),[f,g]=p.useState(!1),[h,$]=p.useState(""),[b,v]=p.useState(!1),[x,C]=p.useState(!1),M=p.useRef(void 0);p.useEffect(()=>(b&&(M.current=setTimeout(()=>C(!0),jm)),()=>{M.current&&clearTimeout(M.current)}),[b]);const S=p.useMemo(()=>[...Hl].sort((y,k)=>y.label.localeCompare(k.label)),[]),I=S.find(y=>y.code===i.countryCode)??null,O=y=>k=>c(T=>({...T,[y]:k.target.value})),P=()=>{const y={};$t.streetSchema.safeParse(i.streetAddress.trim()).success||(y.streetAddress=s("BudapestOnboarding.validation.fieldRequired","This field is required.")),$t.countryCodeEnumSchema.safeParse(i.countryCode).success||(y.countryCode=s("BudapestOnboarding.validation.fieldRequired","Select a country.")),$t.citySchema.safeParse(i.city.trim()).success||(y.city=s("BudapestOnboarding.validation.fieldRequired","This field is required."));const k=$t.getPostalCodeSchema(i.countryCode);return k&&!k.safeParse(i.postalCode.trim()).success&&(y.postalCode=s("BudapestOnboarding.validation.postalCodeInvalid","Enter a valid postal code.")),m(y),Object.keys(y).length===0},R=async y=>{if(y.preventDefault(),!!P()){g(!0),$("");try{const k=await Ve.onboardingControllerUpdateStreetAddress(t,{streetAddress:i.streetAddress.trim(),streetAddress2:i.streetAddress2.trim()||void 0,streetAddress3:i.streetAddress3.trim()||void 0,postalCode:i.postalCode.trim(),city:i.city.trim(),countryCode:i.countryCode});d?(await Ve.onboardingControllerVerifyStreetAddress(t),v(!0)):a(k)}catch(k){$(st(k,"Failed to save. Please try again."))}finally{g(!1)}}},V=async()=>{C(!1),$("");try{await Ve.onboardingControllerVerifyStreetAddress(t)}catch(y){$(st(y,"Failed to retry verification.")),v(!1)}};if(b)return l.jsx(ve,{heading:s("BudapestOnboarding.AddressStep.verifyingHeading","Verifying your address"),icon:l.jsx(Kr,{sx:{fontSize:48}}),error:x?s("BudapestOnboarding.AddressStep.verifyTimeout","Verification is taking longer than expected. Please try again."):void 0,children:x?l.jsx(fe,{variant:"outlined",onClick:V,children:s("BudapestOnboarding.AddressStep.retryButton","Try again")}):l.jsxs(l.Fragment,{children:[l.jsx(Q,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(Pe,{})}),l.jsx(ce,{variant:"body2",color:"text.primary",children:s("BudapestOnboarding.AddressStep.verifyingBody","Please wait while we verify your address.")})]})});const D=i.streetAddress.trim()&&i.postalCode.trim()&&i.city.trim()&&i.countryCode;return l.jsx(ve,{heading:s("BudapestOnboarding.AddressStep.heading","Your address"),icon:l.jsx(Kr,{sx:{fontSize:48}}),error:h,canSkip:!n,onSkip:o,onSubmit:R,children:l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:2,mb:2,textAlign:"left"},children:[l.jsx(je,{fullWidth:!0,label:s("BudapestOnboarding.AddressStep.streetAddress","Street address"),value:i.streetAddress,onChange:O("streetAddress"),autoComplete:"address-line1",autoF
10ocus:!0,disabled:f,error:!!u.streetAddress,helperText:u.streetAddress}),l.jsx(je,{fullWidth:!0,label:s("BudapestOnboarding.AddressStep.streetAddress2","Address line 2 (optional)"),value:i.streetAddress2,onChange:O("streetAddress2"),autoComplete:"address-line2",disabled:f}),l.jsx(je,{fullWidth:!0,label:s("BudapestOnboarding.AddressStep.streetAddress3","Address line 3 (optional)"),value:i.streetAddress3,onChange:O("streetAddress3"),autoComplete:"address-line3",disabled:f}),l.jsxs(Q,{sx:{display:"flex",gap:1},children:[l.jsx(je,{label:s("BudapestOnboarding.AddressStep.postalCode","Postal code"),value:i.postalCode,onChange:O("postalCode"),autoComplete:"postal-code",disabled:f,error:!!u.postalCode,helperText:u.postalCode,sx:{flex:1}}),l.jsx(je,{fullWidth:!0,label:s("BudapestOnboarding.AddressStep.city","City"),value:i.city,onChange:O("city"),autoComplete:"address-level2",disabled:f,error:!!u.city,helperText:u.city,sx:{flex:2}})]}),l.jsx(Rd,{value:I,onChange:(y,k)=>{c(T=>({...T,countryCode:(k==null?void 0:k.code)??""}))},options:S,getOptionLabel:y=>y.label,isOptionEqualToValue:(y,k)=>y.code===k.code,disabled:f,autoHighlight:!0,renderInput:y=>l.jsx(je,{...y,label:s("BudapestOnboarding.AddressStep.country","Country"),error:!!u.countryCode,helperText:u.countryCode,autoComplete:"country-name"})}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:f||!D,children:f?l.jsx(Pe,{size:24}):s("common.continue","Continue")})]})})},_m=[{type:"personal",icon:l.jsx(mr,{}),titleKey:"BudapestOnboarding.BillingAddressStep.typePicker.personalTitle",titleFallback:"Personal address",descriptionKey:"BudapestOnboarding.BillingAddressStep.typePicker.personalDescription",descriptionFallback:"Use your name and address for personal billing."},{type:"business",icon:l.jsx(Wd,{}),titleKey:"BudapestOnboarding.BillingAddressStep.typePicker.businessTitle",titleFallback:"Business address",descriptionKey:"BudapestOnboarding.BillingAddressStep.typePicker.businessDescription",descriptionFallback:"Use a NAV number to bill a registered business."}],Wm=({onSelect:t})=>{const{t:e}=De();return l.jsx(Vd,{spacing:2,sx:{width:"100%"},children:_m.map(n=>l.jsx(jd,{variant:"outlined",children:l.jsx(Ld,{onClick:()=>t(n.type),sx:{p:2},children:l.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(Q,{sx:{color:"primary.main",display:"flex",alignItems:"center"},children:n.icon}),l.jsxs(Q,{sx:{flex:1,textAlign:"left"},children:[l.jsx(ce,{variant:"subtitle1",fontWeight:600,children:e(n.titleKey,n.titleFallback)}),l.jsx(ce,{variant:"body2",color:"text.secondary",children:e(n.descriptionKey,n.descriptionFallback)})]}),l.jsx(_d,{color:"action"})]})})},n.type))})},Bm=({systemId:t,required:e,initialData:n,kind:r,defaultCountryCode:a,onNext:o,onSkip:s})=>{const{t:d}=De(),i=p.useMemo(()=>Ul(n,a),[n,a]),u=Yl({systemId:t,kind:r,streetAddress:i,defaultCountryCode:a,onSave:async(f,g)=>{const h=await Ve.onboardingControllerCreateBillingAddress(t,ql(r,f.address,r==="business"?f.legalEntityNumber:void 0,f.fullName||void 0,!0,g));o(h)}}),m=f=>{f.preventDefault(),u.save()};return l.jsxs(ve,{heading:d("BudapestOnboarding.BillingAddressStep.heading","Billing address"),icon:l.jsx(vs,{sx:{fontSize:48}}),error:u.saveError,canSkip:!e,onSkip:s,onSubmit:m,children:[l.jsx(Gl,{form:u,streetAddress:i,autoFocus:!0}),l.jsx(Q,{sx:{mt:3},children:l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:u.saving||u.isSaveDisabled,children:u.saving?l.jsx(Pe,{size:24}):d("common.continue","Continue")})})]})},zm=({systemId:t,required:e,initialData:n,onNext:r,onSkip:a})=>{const{t:o}=De(),[s,d]=p.useState(null),i=(n==null?void 0:n.countryCode)??Ml;return s===null?l.jsx(ve,{heading:o("BudapestOnboarding.BillingAddressStep.heading","Billing address"),icon:l.jsx(vs,{sx:{fontSize:48}}),canSkip:!e,onSkip:a,children:l.jsx(Wm,{onSelect:d})}):l.jsx(Bm,{systemId:t,required:e,initialData:n,kind:s,defaultCountryCode:i,onNext:r,onSkip:a})},Hm=["localeText"],la=p.createContext(null),Ni=function(e){const{localeText:n}=e,r=ue(e,Hm),{utils:a,localeText:o}=p.useContext(la)??{utils:void 0,localeText:void 0},s=ke({props:r,name:"MuiLocalizationProvider"}),{children:d,dateAdapter:i,dateFormats:c,dateLibInstance:u,adapterLocale:m,localeText:f}=s,g=p.useMemo(()=>w({},f,o,n),[f,o,n]),h=p.useMemo(()=>
10{if(!i)return a||null;const v=new i({locale:m,formats:c,instance:u});if(!v.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` 11`));return v},[i,m,c,u,a]),$=p.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),b=p.useMemo(()=>({utils:h,defaultDates:$,localeText:g}),[$,h,g]);return l.jsx(la.Provider,{value:b,children:d})},Um=t=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:w({},t)}}}}),Fi=t=>{const{utils:e,formatKey:n,contextTranslation:r,propsTranslation:a}=t;return o=>{const s=o!==null&&e.isValid(o)?e.format(o,n):null;return(a??r)(o,e,s)}},Ai={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:t=>t==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(t,e,n,r)=>`Select ${t}. ${!r&&(e===null||!n.isValid(e))?"No time selected":`Selected time is ${r??n.format(e,"fullTime")}`}`,hoursClockNumberText:t=>`${t} hours`,minutesClockNumberText:t=>`${t} minutes`,secondsClockNumberText:t=>`${t} seconds`,selectViewText:t=>`Select ${t}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:t=>`Week ${t}`,calendarWeekNumberText:t=>`${t}`,openDatePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose date, selected date is ${n??e.format(t,"fullDate")}`:"Choose date",openTimePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose time, selected time is ${n??e.format(t,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:t=>"Y".repeat(t.digitAmount),fieldMonthPlaceholder:t=>t.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:t=>t.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Ym=Ai;Um(Ai);const At=()=>{const t=p.useContext(la);if(t===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` 12`));if(t.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` 13`));const e=p.useMemo(()=>w({},Ym,t.localeText),[t.localeText]);return p.useMemo(()=>w({},t,{localeText:e}),[t,e])},Ce=()=>At().utils,zn=()=>At().defaultDates,wr=t=>{const e=Ce(),n=p.useRef(void 0);return n.current===void 0&&(n.current=e.date(void 0,t)),n.current},ft=()=>At().localeText,Gm=xt(l.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qm=xt(l.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Zm=xt(l.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Km=xt(l.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");xt(l.jsxs(p.Fragment,{children:[l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");xt(l.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");xt(l.jsxs(p.Fragment,{children:[l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const Jm=xt(l.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Xm(t){return Ne("MuiPickersArrowSwitcher",t)}Fe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","
13nextIconButton","leftArrowIcon","rightArrowIcon"]);const Qm=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],ef=["ownerState"],tf=["ownerState"],nf=X("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),rf=X("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),No=X(tn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),af=t=>{const{classes:e}=t;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Xm,e)},of=p.forwardRef(function(e,n){const r=mt(),a=ke({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:s,slots:d,slotProps:i,isNextDisabled:c,isNextHidden:u,onGoToNext:m,nextLabel:f,isPreviousDisabled:g,isPreviousHidden:h,onGoToPrevious:$,previousLabel:b,labelId:v}=a,x=ue(a,Qm),C=a,M=af(C),S={isDisabled:c,isHidden:u,goTo:m,label:f},I={isDisabled:g,isHidden:h,goTo:$,label:b},O=(d==null?void 0:d.previousIconButton)??No,P=we({elementType:O,externalSlotProps:i==null?void 0:i.previousIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"end",onClick:I.goTo},ownerState:w({},C,{hidden:I.isHidden}),className:Re(M.button,M.previousIconButton)}),R=(d==null?void 0:d.nextIconButton)??No,V=we({elementType:R,externalSlotProps:i==null?void 0:i.nextIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"start",onClick:S.goTo},ownerState:w({},C,{hidden:S.isHidden}),className:Re(M.button,M.nextIconButton)}),D=(d==null?void 0:d.leftArrowIcon)??qm,y=we({elementType:D,externalSlotProps:i==null?void 0:i.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:M.leftArrowIcon}),k=ue(y,ef),T=(d==null?void 0:d.rightArrowIcon)??Zm,E=we({elementType:T,externalSlotProps:i==null?void 0:i.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:M.rightArrowIcon}),A=ue(E,tf);return l.jsxs(nf,w({ref:n,className:Re(M.root,s),ownerState:C},x,{children:[l.jsx(O,w({},P,{children:r?l.jsx(T,w({},A)):l.jsx(D,w({},k))})),o?l.jsx(ce,{variant:"subtitle1",component:"span",id:v,children:o}):l.jsx(rf,{className:M.spacer,ownerState:C}),l.jsx(R,w({},V,{children:r?l.jsx(D,w({},k)):l.jsx(T,w({},A))}))]}))}),hn=(t,e)=>t.length!==e.length?!1:e.every(n=>t.includes(n)),sf=({openTo:t,defaultOpenTo:e,views:n,defaultViews:r})=>{const a=n??r;let o;if(t!=null)o=t;else if(a.includes(e))o=e;else if(a.length>0)o=a[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:a,openTo:o}},df=["hours","minutes","seconds"],lf=t=>df.includes(t),Fo=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),cf=(t,e)=>(n,r)=>t?e.isAfter(n,r):Fo(n,e)>Fo(r,e);function Ri({onChange:t,onViewChange:e,openTo:n,view:r,views:a,autoFocus:o,focusedView:s,onFocusedViewChange:d}){const i=p.useRef(n),c=p.useRef(a),u=p.useRef(a.includes(n)?n:a[0]),[m,f]=Et({name:"useViews",state:"view",controlled:r,default:u.current}),g=p.useRef(o?m:null),[h,$]=Et({name:"useViews",state:"focusedView",controlled:s,default:g.current});p.useEffect(()=>{(i.current&&i.current!==n||c.current&&c.current.some(O=>!a.includes(O)))&&(f(a.includes(n)?n:a[0]),c.current=a,i.current=n)},[n,f,m,a]);const b=a.indexOf(m),v=a[b-1]??null,x=a[b+1]??null,C=Z((O,P)=>{$(P?O:R=>O===R?null:R),d==null||d(O,P)}),M=Z(O=>{C(O,!0),O!==m&&(f(O),e&&e(O))}),S=Z(()=>{x&&M(x)}),I=Z((O,P,R)=>{const V=P==="finish",D=R?a.indexOf(R)<a.length-1:!!x;if(t(O,V&&D?"partial":P,R),R&&R!==m){const k=a[a.indexOf(R)+1];k&&M(k)}else V&&S()});return{view:m,setView:M,focusedView:h,setFocusedView:C,nextView:x,previousView:v,defaultView:a.includes(n)?n:a[0],goToNextView:S,setValueAndGoToNextView:I}}function uf(t,{disableFuture:e,maxDate:n,timezone:r}){const a=Ce();return p.useMemo(()=>{const o=a.date(void 0,r),s=a.startOfMonth(e&&a.isBefore(o,n)?o:n);return!a.isAfter(s,t)},[e,n,t,a,r])}function mf(t,{disablePast:e,minDate:n,timezone:r}){const a=Ce();return p.useMemo(()=>{const o=a.date(void 0,r),s=a.startOfMonth(e&&a.isAfter(o,n)?o:n);return!a.isBefore(s,t)},[e,n,t,a,r])}const Mn=36,xr=2,Sr=320,ff=280,Oa=336,hf=X("div")({overflow:"hidden",
13width:Sr,maxHeight:Oa,display:"flex",flexDirection:"column",margin:"0 auto"}),lr=(t,e,n)=>{let r=e;return r=t.setHours(r,t.getHours(n)),r=t.setMinutes(r,t.getMinutes(n)),r=t.setSeconds(r,t.getSeconds(n)),r=t.setMilliseconds(r,t.getMilliseconds(n)),r},kn=({date:t,disableFuture:e,disablePast:n,maxDate:r,minDate:a,isDateDisabled:o,utils:s,timezone:d})=>{const i=lr(s,s.date(void 0,d),t);n&&s.isBefore(a,i)&&(a=i),e&&s.isAfter(r,i)&&(r=i);let c=t,u=t;for(s.isBefore(t,a)&&(c=a,u=null),s.isAfter(t,r)&&(u&&(u=r),c=null);c||u;){if(c&&s.isAfter(c,r)&&(c=null),u&&s.isBefore(u,a)&&(u=null),c){if(!o(c))return c;c=s.addDays(c,1)}if(u){if(!o(u))return u;u=s.addDays(u,-1)}}return null},pf=(t,e)=>e==null||!t.isValid(e)?null:e,Je=(t,e,n)=>e==null||!t.isValid(e)?n:e,gf=(t,e,n)=>!t.isValid(e)&&e!=null&&!t.isValid(n)&&n!=null?!0:t.isEqual(e,n),Ia=(t,e)=>{const r=[t.startOfYear(e)];for(;r.length<12;){const a=r[r.length-1];r.push(t.addMonths(a,1))}return r},Vi=(t,e,n)=>n==="date"?t.startOfDay(t.date(void 0,e)):t.date(void 0,e),yf=["year","month","day"],Ao=t=>yf.includes(t),Ea=(t,{format:e,views:n},r)=>{if(e!=null)return e;const a=t.formats;return hn(n,["year"])?a.year:hn(n,["month"])?a.month:hn(n,["day"])?a.dayOfMonth:hn(n,["month","year"])?`${a.month} ${a.year}`:hn(n,["day","month"])?`${a.month} ${a.dayOfMonth}`:r?/en/.test(t.getCurrentLocaleCode())?a.normalDateWithWeekday:a.normalDate:a.keyboardDate},$f=(t,e)=>{const n=t.startOfWeek(e);return[0,1,2,3,4,5,6].map(r=>t.addDays(n,r))},Na=({timezone:t,value:e,defaultValue:n,referenceDate:r,onChange:a,valueManager:o})=>{const s=Ce(),d=p.useRef(n),i=e??d.current??o.emptyValue,c=p.useMemo(()=>o.getTimezone(s,i),[s,o,i]),u=Z(h=>c==null?h:o.setTimezone(s,c,h));let m;t?m=t:c?m=c:r?m=s.getTimezone(r):m="default";const f=p.useMemo(()=>o.setTimezone(s,m,i),[o,s,m,i]),g=Z((h,...$)=>{const b=u(h);a==null||a(b,...$)});return{value:f,handleValueChange:g,timezone:m}},Fa=({name:t,timezone:e,value:n,defaultValue:r,referenceDate:a,onChange:o,valueManager:s})=>{const[d,i]=Et({name:t,state:"value",controlled:n,default:r??s.emptyValue}),c=Z((u,...m)=>{i(u),o==null||o(u,...m)});return Na({timezone:e,value:d,defaultValue:void 0,referenceDate:a,onChange:c,valueManager:s})},ot={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},bf=t=>Math.max(...t.map(e=>ot[e.type]??1)),pn=(t,e,n)=>{if(e===ot.year)return t.startOfYear(n);if(e===ot.month)return t.startOfMonth(n);if(e===ot.day)return t.startOfDay(n);let r=n;return e<ot.minutes&&(r=t.setMinutes(r,0)),e<ot.seconds&&(r=t.setSeconds(r,0)),e<ot.milliseconds&&(r=t.setMilliseconds(r,0)),r},vf=({props:t,utils:e,granularity:n,timezone:r,getTodayDate:a})=>{let o=a?a():pn(e,n,Vi(e,r));t.minDate!=null&&e.isAfterDay(t.minDate,o)&&(o=pn(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,o)&&(o=pn(e,n,t.maxDate));const s=cf(t.disableIgnoringDatePartForTimeValidation??!1,e);return t.minTime!=null&&s(t.minTime,o)&&(o=pn(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:lr(e,o,t.minTime))),t.maxTime!=null&&s(o,t.maxTime)&&(o=pn(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:lr(e,o,t.maxTime))),o},ji=(t,e)=>{const n=t.formatTokenMap[e];if(n==null)throw new Error([`MUI X: The token "${e}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` 14`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},wf=t=>{switch(t){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Pr=(t,e)=>{const n=[],r=t.date(void 0,"default"),a=t.startOfWeek(r),o=t.endOfWeek(r);let s=a;for(;t.isBefore(s,o);)n.push(s),s=t.addDays(s,1);return n.map(d=>t.formatByString(d,e))},Li=(t,e,n,r)=>{switch(n){case"month":return Ia(t,t.date(void 0,e)).map(a=>t.formatByString(a,r));case"weekDay":return Pr(t,r);case"meridiem":{const a=t.date(void 0,e);return[t.startOfDay(a),t.endOfDay(a)].map(o=>t.formatByString(o,r))}default:return[]}},Ro="s",xf=["0","1","2","3","4","5","6","7","8","9"],Sf=t=>{const e=t.date(void 0);return t.formatByString(t.setSeconds(e,0),Ro)==="0"?xf:Array.from({length:10}).map((r,a)=>t.formatByString(t.setSeconds(e,a),Ro))},Nt=(t,e)=>{if(e[0]==="0")return t;const n=[];let r="";for(let a=0;a<t.length;a+=1){r+=t[a];const o=e.indexOf(r);o>-1&&(n.push(o.toString()),r="")}return n.join("")},Aa=(t,e)=>e[0]==="0"?t:t.split("").map(n=>e[Number(n)]).join(""),Vo=(t,e)=>{const n=Nt(t,e);return n!==" "&&!Number.isNaN(Number(n))},_i=(t,e)=>{let n=t;for(n=Number(n).toString();n.length<e;)n=`0${n}`;return n},Wi=(t,e,n,r,a)=>{if(a.type==="day"&&a.contentType==="digit-with-letter"){const s=t.setDate(n.longestMonth,e);return t.formatByString(s,a.format)}let o=e.toString();return a.hasLeadingZerosInInput&&(o=_i(o,a.maxLength)),Aa(o,r)},Pf=(t,e,n,r,a,o,s,d)=>{const i=wf(r),c=r==="Home",u=r==="End",m=n.value===""||c||u,f=()=>{const h=a[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),$=x=>Wi(t,x,h,o,n),b=n.type==="minutes"&&(d!=null&&d.minutesStep)?d.minutesStep:1;let v;if(m){if(n.type==="year"&&!u&&!c)return t.formatByString(t.date(void 0,e),n.format);i>0||c?v=h.minimum:v=h.maximum}else v=parseInt(Nt(n.value,o),10)+i*b;
14return v%b!==0&&((i<0||c)&&(v+=b-(b+v)%b),(i>0||u)&&(v-=v%b)),v>h.maximum?$(h.minimum+(v-h.maximum-1)%(h.maximum-h.minimum+1)):v<h.minimum?$(h.maximum-(h.minimum-v-1)%(h.maximum-h.minimum+1)):$(v)},g=()=>{const h=Li(t,e,n.type,n.format);if(h.length===0)return n.value;if(m)return i>0||c?h[0]:h[h.length-1];const v=((h.indexOf(n.value)+i)%h.length+h.length)%h.length;return h[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():g()},Ra=(t,e,n)=>{let r=t.value||t.placeholder;const a=e==="non-input"?t.hasLeadingZerosInFormat:t.hasLeadingZerosInInput;return e==="non-input"&&t.hasLeadingZerosInInput&&!t.hasLeadingZerosInFormat&&(r=Number(Nt(r,n)).toString()),["input-rtl","input-ltr"].includes(e)&&t.contentType==="digit"&&!a&&r.length===1&&(r=`${r}â`),e==="input-rtl"&&(r=`â¨${r}â©`),r},jo=(t,e,n,r)=>t.formatByString(t.parse(e,n),r),kf=(t,e)=>t.formatByString(t.date(void 0,"system"),e).length===4,Bi=(t,e,n,r)=>{if(e!=="digit")return!1;const a=t.date(void 0,"default");switch(n){case"year":return t.lib==="dayjs"&&r==="YY"?!0:t.formatByString(t.setYear(a,1),r).startsWith("0");case"month":return t.formatByString(t.startOfYear(a),r).length>1;case"day":return t.formatByString(t.startOfMonth(a),r).length>1;case"weekDay":return t.formatByString(t.startOfWeek(a),r).length>1;case"hours":return t.formatByString(t.setHours(a,1),r).length>1;case"minutes":return t.formatByString(t.setMinutes(a,1),r).length>1;case"seconds":return t.formatByString(t.setSeconds(a,1),r).length>1;default:throw new Error("Invalid section type")}},Cf=(t,e,n)=>{const r=e.some(i=>i.type==="day"),a=[],o=[];for(let i=0;i<e.length;i+=1){const c=e[i];r&&c.type==="weekDay"||(a.push(c.format),o.push(Ra(c,"non-input",n)))}const s=a.join(" "),d=o.join(" ");return t.parse(d,s)},Mf=t=>t.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),Df=(t,e,n)=>{const a=t.map(o=>{const s=Ra(o,n?"input-rtl":"input-ltr",e);return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return n?`â¦${a}â©`:a},Tf=(t,e,n)=>{const r=t.date(void 0,n),a=t.endOfYear(r),o=t.endOfDay(r),{maxDaysInMonth:s,longestMonth:d}=Ia(t,r).reduce((i,c)=>{const u=t.getDaysInMonth(c);return u>i.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:i},{maxDaysInMonth:0,longestMonth:null});return{year:({format:i})=>({minimum:0,maximum:kf(t,i)?9999:99}),month:()=>({minimum:1,maximum:t.getMonth(a)+1}),day:({currentDate:i})=>({minimum:1,maximum:i!=null&&t.isValid(i)?t.getDaysInMonth(i):s,longestMonth:d}),weekDay:({format:i,contentType:c})=>{if(c==="digit"){const u=Pr(t,i).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:i})=>{const c=t.getHours(o);return Nt(t.formatByString(t.endOfDay(r),i),e)!==c.toString()?{minimum:1,maximum:Number(Nt(t.formatByString(t.startOfDay(r),i),e))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:t.getMinutes(o)}),seconds:()=>({minimum:0,maximum:t.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Of=(t,e,n,r)=>{switch(e.type){case"year":return t.setYear(r,t.getYear(n));case"month":return t.setMonth(r,t.getMonth(n));case"weekDay":{const a=Pr(t,e.format),o=t.formatByString(n,e.format),s=a.indexOf(o),i=a.indexOf(e.value)-s;return t.addDays(n,i)}case"day":return t.setDate(r,t.getDate(n));case"meridiem":{const a=t.getHours(n)<12,o=t.getHours(r);return a&&o>=12?t.addHours(r,-12):!a&&o<12?t.addHours(r,12):r}case"hours":return t.setHours(r,t.getHours(n));case"minutes":return t.setMinutes(r,t.getMinutes(n));case"seconds":return t.setSeconds(r,t.getSeconds(n));default:return r}},Lo={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},_o=(t,e,n,r,a)=>[...n].sort((o,s)=>Lo[o.type]-Lo[s.type]).reduce((o,s)=>!a||s.modified?Of(t,s,e,o):o,r),If=()=>navigator.userAgent.toLowerCase().includes("android"),Ef=(t,e)=>{const n={};if(!e)return t.forEach((i,c)=>{const u=c===0?null:c-1,m=c===t.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:m}}),{neighbors:n,startIndex:0,endIndex:t.length-1};const r={},a={};let o=0,s=0,d=t.length-1;for(;d>=0;){s=t.findIndex((i,c)=>{var u;return c>=o&&((u=i.endSeparator)==null?void 0:u.includes(" "))&&i.endSeparator!==" / "}),s===-1&&(s=t.length-1);for(let i=s;i>=o;i-=1)a[i]=d,r[d]=i,d-=1;o=s+1}return t.forEach((i,c)=>{const u=a[c],m=u===0?null:r[u-1],f=u===t.length-1?null:r[u+1];n[c]={leftIndex:m,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[t.length-1]}},ca=(t,e)=>{if(t==null)return null;if(t==="all")return"all";if(typeof t=="string"){const n=e.findIndex(r=>r.type===t);return n===-1?null:n}return t},Nf=(t,e)=>{if(t.value)switch(t.type){case"month":{if(t.contentType==="digit")return e.format(e.setMonth(e.date(),Number(t.value)-1),"month");const n=e.parse(t.value,t.format);return n?e.format(n,"month"):void 0}case"day":return t.contentType==="digit"?e.format(e.setDate(e.startOfYear(e.date()),Number(t.value)),"dayOfMonthFull"):t.value;case"weekDay":return;default:return}},Ff=(t,e)=>{if(t.value)switch(t.type){case"weekDay":return t.contentType==="letter"?void 0:Number(t.value);case"meridiem":{const n=e.parse(`01:00 ${t.value}`,`${e.formats.hours12h}:${e.formats.minutes} ${t.format}`);return n?e.getHours(n)>=12?1:0:void 0}case"day":return t.contentType==="digit-with-letter"?parseInt(t.value,10):Number(t.value);case"month":{if(t.contentType==="digit")return Number(t.value);const n=e.parse(t.value,t.format);return n?e.getMonth(n)+1:void 0}default:return t.contentType!=="letter"?Number(t.value):void 0}},Af=["value","referenceDate"],it={emptyValue:null,getTodayValue:Vi,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,r=ue(t,Af);return e!=null&&r.utils.isValid(e)?e:n??vf(r)},cleanValue:pf,areValuesEqual:gf,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},Rf={updateReferenceValue:(t,e,n)=>e==null||!t.isValid(e)?n:e,getSectionsFromValue:(t,e,n,r)=>!t.isValid(e)&&!!n?n:r(e),getV7HiddenInputValueFromSections:Mf,getV6InputValueFromSections:Df,getActiveDateManager:(t,e)=>({date:e.value,referenceDate:e.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!t.isValid(n)?e.referenceValue:n})}),parseValueStr:(t,e,n)=>n(t.trim(),e)};function Vf(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}const jf=(t,e)=>n=>{(n.key==="Enter"||n.key===" ")&&(t(n),n.preventDefault(),n.stopPropagation())},ze=(t=document)=>{const e=t.activeElement;return e?e.shadowRoot?ze(e.shadowRoot):e:null},Lf="@media (pointer: fine)";function _f(t){return Ne("MuiPickersDay",t)}const Mt=Fe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Wf=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onF
14ocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Bf=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:a,disabled:o,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:d,classes:i}=t,c=s&&!d;return Ie({root:["root",e&&!c&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&a&&"today",s&&d&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},_f,i)},zi=({theme:t})=>w({},t.typography.caption,{width:Mn,height:Mn,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:nn(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:nn(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${Mt.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Mt.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Mt.disabled}:not(.${Mt.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${Mt.disabled}&.${Mt.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${xr}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(t.vars||t).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Mt.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}}]}),Hi=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},zf=X(Bd,{name:"MuiPickersDay",slot:"Root",overridesResolver:Hi})(zi),Hf=X("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Hi})(({theme:t})=>w({},zi({theme:t}),{opacity:0,pointerEvents:"none"})),gn=()=>{},Uf=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersDay"}),{autoFocus:a=!1,className:o,day:s,disabled:d=!1,disableHighlightToday:i=!1,disableMargin:c=!1,isAnimating:u,onClick:m,onDaySelect:f,onFocus:g=gn,onBlur:h=gn,onKeyDown:$=gn,onMouseDown:b=gn,onMouseEnter:v=gn,outsideCurrentMonth:x,selected:C=!1,showDaysOutsideCurrentMonth:M=!1,children:S,today:I=!1}=r,O=ue(r,Wf),P=w({},r,{autoFocus:a,disabled:d,disableHighlightToday:i,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:M,today:I}),R=Bf(P),V=Ce(),D=p.useRef(null),y=Ke(D,n);wt(()=>{a&&!d&&!u&&!x&&D.current.focus()},[a,d,u,x]);const k=E=>{b(E),x&&E.preventDefault()},T=E=>{d||f(s),x&&E.currentTarget.focus(),m&&m(E)};return x&&!M?l.jsx(Hf,{className:Re(R.root,R.hiddenDaySpacingFiller,o),ownerState:P,role:O.role}):l.jsx(zf,w({className:Re(R.root,o),ref:y,centerRipple:!0,disabled:d,tabIndex:C?0:-1,onKeyDown:E=>$(E,s),onFocus:E=>g(E,s),onBlur:E=>h(E,s),onMouseEnter:E=>v(E,s),onClick:T,onMouseDown:k},O,{ownerState:P,children:S||V.format(s,"dayOfMonth")}))}),Yf=p.memo(Uf),Hn=({props:t,value:e,timezone:n,adapter:r})=>{if(e===null)return null;const{shouldDisableDate:a,shouldDisableMonth:o,shouldDisableYear:s,disablePast:d,disableFuture:i}=t,c=r.utils.date(void 0,n),u=Je(r.utils,t.minDate,r.defaultDates.minDate),m=Je(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(e):return"invalidDate";case!!(a&&a(e)):return"shouldDisableDate";case!!(o&&o(e)):return"shouldDisableMonth";case!!(s&&s(e)):return"shouldDisableYear";case!!(i&&r.utils.isAfterDay(e,c)):return"disableFuture";case!!(d&&r.utils.isBeforeDay(e,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(e,u)):return"minDate";case!!(m&&r.utils.isAfterDay(e,m)):return"maxDate";default:return null}};Hn.valueManager=it;const Ui=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Gf=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],qf=["minDateTime","maxDateTime"],Zf=[...Ui,...Gf,...qf],Yi=t=>Zf.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{});function Gi(t){const{props:e,validator:n,value:r,timezone:a,onError:o}=t,s=At(),d=p.useRef(n.valueManager.defaultErrorState),i=n({adapter:s,value:r,timezone:a,props:e}),c=n.valueManager.hasError(i);p.useEffect(()=>{o&&!n.valueManager.isSameError(i,d.current)&&o(i,r),d.current=i},[n,o,i,r]);const u=Z(m=>n({adapter:s,value:m,timezone:a,props:e}));return{validationError:i,hasValidationError:c,getValidationErrorForNewValue:u}}const Kf=({utils:t,format:e})=>{let n=10,r=e,a=t.expandFormat(e);for(;a!==r;)if(r=a,a=t.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return a},Jf=({utils:t,expandedFormat:e})=>{const n=[],{start:r,end:a}=t.escapedCharacters,o=new RegExp(`(\\${r}[^\\${a}]*\\${a})+`,"g");let s=null;for(;s=o.exec(e);)n.push({start:s.index,end:o.lastIndex-1});return n},Xf=(t,e,n,r)=>{switch(n.type){case"year":return e.fieldYearPlaceholder({digitAmount:t.formatByString(t.date(void 0,"default"),r).length,format:r});case"month":return e.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return e.fieldDayPlaceholder({format:r});case"weekDay":return e.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return e.fieldHoursPlaceholder({format:r});case"minutes":return e.fieldMinutesPlaceholder({format:r});case"seconds":return e.fieldSecondsPlaceholder({format:r});case"meridiem":return e.fieldMeridiemPlaceholder({format:r});default:return r}},Qf=({utils:t,date:e,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:a,now:o,token:s,startSeparator:d})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");
14const i=ji(t,s),c=Bi(t,i.contentType,i.type,s),u=n?c:i.contentType==="digit",m=e!=null&&t.isValid(e);let f=m?t.formatByString(e,s):"",g=null;if(u)if(c)g=f===""?t.formatByString(o,s).length:f.length;else{if(i.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);g=i.maxLength,m&&(f=Aa(_i(Nt(f,a),g),a))}return w({},i,{format:s,maxLength:g,value:f,placeholder:Xf(t,r,i,s),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:d,endSeparator:"",modified:!1})},eh=t=>{var g;const{utils:e,expandedFormat:n,escapedParts:r}=t,a=e.date(void 0),o=[];let s="";const d=Object.keys(e.formatTokenMap).sort((h,$)=>$.length-h.length),i=/^([a-zA-Z]+)/,c=new RegExp(`^(${d.join("|")})*$`),u=new RegExp(`^(${d.join("|")})`),m=h=>r.find($=>$.start<=h&&$.end>=h);let f=0;for(;f<n.length;){const h=m(f),$=h!=null,b=(g=i.exec(n.slice(f)))==null?void 0:g[1];if(!$&&b!=null&&c.test(b)){let v=b;for(;v.length>0;){const x=u.exec(v)[1];v=v.slice(x.length),o.push(Qf(w({},t,{now:a,token:x,startSeparator:s}))),s=""}f+=b.length}else{const v=n[f];$&&(h==null?void 0:h.start)===f||(h==null?void 0:h.end)===f||(o.length===0?s+=v:o[o.length-1].endSeparator+=v),f+=1}}return o.length===0&&s.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),o},th=({isRtl:t,formatDensity:e,sections:n})=>n.map(r=>{const a=o=>{let s=o;return t&&s!==null&&s.includes(" ")&&(s=`â©${s}â¦`),e==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=a(r.startSeparator),r.endSeparator=a(r.endSeparator),r}),Wo=t=>{let e=Kf(t);t.isRtl&&t.enableAccessibleFieldDOMStructure&&(e=e.split(" ").reverse().join(" "));const n=Jf(w({},t,{expandedFormat:e}
14)),r=eh(w({},t,{expandedFormat:e,escapedParts:n}));return th(w({},t,{sections:r}))},nh=t=>{const e=Ce(),n=ft(),r=At(),a=mt(),{valueManager:o,fieldValueManager:s,valueType:d,validator:i,internalProps:c,internalProps:{value:u,defaultValue:m,referenceDate:f,onChange:g,format:h,formatDensity:$="dense",selectedSections:b,onSelectedSectionsChange:v,shouldRespectLeadingZeros:x=!1,timezone:C,enableAccessibleFieldDOMStructure:M=!1}}=t,{timezone:S,value:I,handleValueChange:O}=Na({timezone:C,value:u,defaultValue:m,referenceDate:f,onChange:g,valueManager:o}),P=p.useMemo(()=>Sf(e),[e]),R=p.useMemo(()=>Tf(e,P,S),[e,P,S]),V=p.useCallback((_,ee=null)=>s.getSectionsFromValue(e,_,ee,Y=>Wo({utils:e,localeText:n,localizedDigits:P,format:h,date:Y,formatDensity:$,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:M,isRtl:a})),[s,h,n,P,a,x,e,$,M]),[D,y]=p.useState(()=>{const _=V(I),ee={sections:_,value:I,referenceValue:o.emptyValue,tempValueStrAndroid:null},Y=bf(_),L=o.getInitialReferenceValue({referenceDate:f,value:I,utils:e,props:c,granularity:Y,timezone:S});return w({},ee,{referenceValue:L})}),[k,T]=Et({controlled:b,default:null,name:"useField",state:"selectedSections"}),E=_=>{T(_),v==null||v(_)},A=p.useMemo(()=>ca(k,D.sections),[k,D.sections]),H=A==="all"?0:A,U=({value:_,referenceValue:ee,sections:Y})=>{if(y(j=>w({},j,{sections:Y,value:_,referenceValue:ee,tempValueStrAndroid:null})),o.areValuesEqual(e,D.value,_))return;const L={validationError:i({adapter:r,value:_,timezone:S,props:c})};O(_,L)},ne=(_,ee)=>{const Y=[...D.sections];return Y[_]=w({},Y[_],{value:ee,modified:!0}),Y},se=()=>{U({value:o.emptyValue,referenceValue:D.referenceValue,sections:V(o.emptyValue)})},K=()=>{if(H==null)return;const _=D.sections[H],ee=s.getActiveDateManager(e,D,_),L=ee.getSections(D.sections).filter(G=>G.value!=="").length===(_.value===""?0:1),j=ne(H,""),te=L?null:e.getInvalidDate(),ae=ee.getNewValuesFromNewActiveDate(te);U(w({},ae,{sections:j}))},de=_=>{const ee=(j,te)=>{const ae=e.parse(j,h);if(ae==null||!e.isValid(ae))return null;const G=Wo({utils:e,localeText:n,localizedDigits:P,format:h,date:ae,formatDensity:$,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:M,isRtl:a});return _o(e,ae,G,te,!1)},Y=s.parseValueStr(_,D.referenceValue,ee),L=s.updateReferenceValue(e,Y,D.referenceValue);U({value:Y,referenceValue:L,sections:V(Y,D.sections)})},he=({activeSection:_,newSectionValue:ee,shouldGoToNextSection:Y})=>{Y&&H<D.sections.length-1&&E(H+1);const L=s.getActiveDateManager(e,D,_),j=ne(H,ee),te=L.getSections(j),ae=Cf(e,te,P);let G,F;if(ae!=null&&e.isValid(ae)){const z=_o(e,ae,te,L.referenceDate,!0);G=L.getNewValuesFromNewActiveDate(z),F=!0}else G=L.getNewValuesFromNewActiveDate(ae),F=(ae!=null&&!e.isValid(ae))!=(L.date!=null&&!e.isValid(L.date));return F?U(w({},G,{sections:j})):y(z=>w({},z,G,{sections:j,tempValueStrAndroid:null}))},xe=_=>y(ee=>w({},ee,{tempValueStrAndroid:_}));return p.useEffect(()=>{const _=V(D.value);y(ee=>w({},ee,{sections:_}))},[h,e.locale,a]),p.useEffect(()=>{let _;o.areValuesEqual(e,D.value,I)?_=o.getTimezone(e,D.value)!==o.getTimezone(e,I):_=!0,_&&y(ee=>w({},ee,{value:I,referenceValue:s.updateReferenceValue(e,I,ee.referenceValue),sections:V(I)}))},[I]),{state:D,activeSectionIndex:H,parsedSelectedSections:A,setSelectedSections:E,clearValue:se,clearActiveSection:K,updateSectionValue:he,updateValueFromValueStr:de,setTempAndroidValueStr:xe,getSectionsFromValue:V,sectionsValueBoundaries:R,localizedDigits:P,timezone:S}},rh=5e3,Wt=t=>t.saveQuery!=null,ah=({sections:t,updateSectionValue:e,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:a,timezone:o})=>{const s=Ce(),[d,i]=p.useState(null),c=Z(()=>i(null));p.useEffect(()=>{var h;d!=null&&((h=t[d.sectionIndex])==null?void 0:h.type)!==d.sectionType&&c()},[t,d,c]),p.useEffect(()=>{if(d!=null){const h=setTimeout(()=>c(),rh);return()=>{clearTimeout(h)}}return()=>{}},[d,c]);const u=({keyPressed:h,sectionIndex:$},b,v)=>{const x=h.toLowerCase(),C=t[$];if(d!=null&&(!v||v(d.value))&&d.sectionIndex===$){const S=`${d.value}${x}`,I=b(S,C);if(!Wt(I))return i({sectionIndex:$,value:S,sectionType:C.type}),I}const M=b(x,C);return Wt(M)&&!M.saveQuery?(c(),null):(i({sectionIndex:$,value:x,sectionType:C.type}),Wt(M)?null:M)},m=h=>{const $=(x,C,M)=>{const S=C.filter(I=>I.toLowerCase().startsWith(M));return S.length===0?{saveQuery:!1}:{sectionValue:S[0],shouldGoToNextSection:S.length===1}},b=(x,C,M,S)=>{const I=O=>Li(s,o,C.type,O);if(C.contentType==="letter")return $(C.format,I(C.format),x);if(M&&S!=null&&ji(s,M).contentType==="letter"){const O=I(M),P=$(M,O,x);return Wt(P)?{saveQuery:!1}:w({},P,{sectionValue:S(P.sectionValue,O)})}return{saveQuery:!1}};return u(h,(x,C)=>{switch(C.type){case"month":{const M=S=>jo(s,S,s.formats.month,C.format);return b(x,C,s.formats.month,M)}case"weekDay":{const M=(S,I)=>I.indexOf(S).toString();return b(x,C,s.formats.weekday,M)}case"meridiem":return b(x,C);default:return{saveQuery:!1}}})},f=h=>{const $=(v,x)=>{const C=Nt(v,r),M=Number(C),S=n[x.type]({currentDate:null,format:x.format,contentType:x.contentType});if(M>S.maximum)return{saveQuery:!1};if(M<S.minimum)return{saveQuery:!0};const I=M*10>
14S.maximum||C.length===S.maximum.toString().length;return{sectionValue:Wi(s,M,S,r,x),shouldGoToNextSection:I}};return u(h,(v,x)=>{if(x.contentType==="digit"||x.contentType==="digit-with-letter")return $(v,x);if(x.type==="month"){Bi(s,"digit","month","MM");const C=$(v,{type:x.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Wt(C))return C;const M=jo(s,C.sectionValue,"MM",x.format);return w({},C,{sectionValue:M})}if(x.type==="weekDay"){const C=$(v,x);if(Wt(C))return C;const M=Pr(s,x.format)[Number(C.sectionValue)-1];return w({},C,{sectionValue:M})}return{saveQuery:!1}},v=>Vo(v,r))};return{applyCharacterEditing:Z(h=>{const $=t[h.sectionIndex],v=Vo(h.keyPressed,r)?f(w({},h,{keyPressed:Aa(h.keyPressed,r)})):m(h);if(v==null){a(null);return}e({activeSection:$,newSectionValue:v.sectionValue,shouldGoToNextSection:v.shouldGoToNextSection})}),resetCharacterQuery:c}},oh=t=>{const{internalProps:{disabled:e,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:a,onClick:o,onFocus:s,onInput:d,onPaste:i,focused:c,autoFocus:u=!1},fieldValueManager:m,applyCharacterEditing:f,resetCharacterQuery:g,setSelectedSections:h,parsedSelectedSections:$,state:b,clearActiveSection:v,clearValue:x,updateSectionValue:C,updateValueFromValueStr:M,sectionOrder:S,areAllSectionsEmpty:I,sectionsValueBoundaries:O}=t,P=p.useRef(null),R=Ke(r,P),V=ft(),D=Ce(),y=An(),[k,T]=p.useState(!1),E=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;const F=document.getSelection();if(!F)return;if($==null){F.rangeCount>0&&P.current.getRoot().contains(F.getRangeAt(0).startContainer)&&F.removeAllRanges(),k&&P.current.getRoot().blur();return}if(!P.current.getRoot().contains(ze(document)))return;const z=new window.Range;let J;$==="all"?J=P.current.getRoot():b.sections[$].type==="empty"?J=P.current.getSectionContainer($):J=P.current.getSectionContent($),z.selectNodeContents(J),J.focus(),F.removeAllRanges(),F.addRange(z)},getActiveSectionIndexFromDOM:()=>{const F=ze(document);return!F||!P.current||!P.current.getRoot().contains(F)?null:P.current.getSectionIndexFromDOMElement(F)},focusField:(F=0)=>{if(!P.current||E.getActiveSectionIndexFromDOM()!=null)return;const z=ca(F,b.sections);T(!0),P.current.getSectionContent(z).focus()},setSelectedSections:F=>{if(!P.current)return;const z=ca(F,b.sections);T((z==="all"?0:z)!==null),h(F)},isFieldFocused:()=>{const F=ze(document);return!!P.current&&P.current.getRoot().contains(F)}}),[$,h,b.sections,k]),A=Z(F=>{if(!P.current)return;const z=b.sections[F];P.current.getSectionContent(F).innerHTML=z.value||z.placeholder,E.syncSelectionToDOM()}),H=Z((F,...z)=>{F.isDefaultPrevented()||!P.current||(T(!0),o==null||o(F,...z),$==="all"?setTimeout(()=>{const J=document.getSelection().getRangeAt(0).startOffset;if(J===0){h(S.startIndex);return}let W=0,oe=0;for(;oe<J&&W<b.sections.length;){const q=b.sections[W];W+=1,oe+=`${q.startSeparator}${q.value||q.placeholder}${q.endSeparator}`.length}h(W-1)}):k?P.current.getRoot().contains(F.target)||h(S.startIndex):(T(!0),h(S.startIndex)))}),U=Z(F=>{if(d==null||d(F),!P.current||$!=="all")return;const J=F.target.textContent??"";P.current.getRoot().innerHTML=b.sections.map(W=>`${W.startSeparator}${W.value||W.placeholder}${W.endSeparator}`).join(""),E.syncSelectionToDOM(),J.length===0||J.charCodeAt(0)===10?(g(),x(),h("all")):J.length>1?M(J):($==="all"&&h(0),f({keyPressed:J,sectionIndex:0}))}),ne=Z(F=>{if(i==null||i(F),n||$!=="all"){F.preventDefault();return}const z=F.clipboardData.getData("text");F.preventDefault(),g(),M(z)}),se=Z((...F)=>
14{if(s==null||s(...F),k||!P.current)return;T(!0),P.current.getSectionIndexFromDOMElement(ze(document))!=null||h(S.startIndex)}),K=Z((...F)=>{a==null||a(...F),setTimeout(()=>{if(!P.current)return;const z=ze(document);!P.current.getRoot().contains(z)&&(T(!1),h(null))})}),de=Z(F=>z=>{z.isDefaultPrevented()||h(F)}),he=Z(F=>{F.preventDefault()}),xe=Z(F=>()=>{h(F)}),_=Z(F=>{if(F.preventDefault(),n||e||typeof $!="number")return;const z=b.sections[$],J=F.clipboardData.getData("text"),W=/^[a-zA-Z]+$/.test(J),oe=/^[0-9]+$/.test(J),q=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(J);z.contentType==="letter"&&W||z.contentType==="digit"&&oe||z.contentType==="digit-with-letter"&&q?(g(),C({activeSection:z,newSectionValue:J,shouldGoToNextSection:!0})):!W&&!oe&&(g(),M(J))}),ee=Z(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),Y=Z(F=>{if(!P.current)return;const z=F.target,J=z.textContent??"",W=P.current.getSectionIndexFromDOMElement(z),oe=b.sections[W];if(n||!P.current){A(W);return}if(J.length===0){if(oe.value===""){A(W);return}const q=F.nativeEvent.inputType;if(q==="insertParagraph"||q==="insertLineBreak"){A(W);return}g(),v();return}f({keyPressed:J,sectionIndex:W}),A(W)});wt(()=>{if(!(!k||!P.current)){if($==="all")P.current.getRoot().focus();else if(typeof $=="number"){const F=P.current.getSectionContent($);F&&F.focus()}}},[$,k]);const L=p.useMemo(()=>b.sections.reduce((F,z)=>(F[z.type]=O[z.type]({currentDate:null,contentType:z.contentType,format:z.format}),F),{}),[O,b.sections]),j=$==="all",te=p.useMemo(()=>b.sections.map((F,z)=>{const J=!j&&!e&&!n;return{container:{"data-sectionindex":z,onClick:de(z)},content:{tabIndex:j||z>0?-1:0,contentEditable:!j&&!e&&!n,role:"spinbutton",id:`${y}-${F.type}`,"aria-labelledby":`${y}-${F.type}`,"aria-readonly":n,"aria-valuenow":Ff(F,D),"aria-valuemin":L[F.type].minimum,"aria-valuemax":L[F.type].maximum,"aria-valuetext":F.value?Nf(F,D):V.empty,"aria-label":V[F.type],"aria-disabled":e,spellCheck:J?!1:void 0,autoCapitalize:J?"off":void 0,autoCorrect:J?"off":void 0,[parseInt(p.version,10)>=17?"enterKeyHint":"enterkeyhint"]:J?"next":void 0,children:F.value||F.placeholder,onInput:Y,onPaste:_,onFocus:xe(z),onDragOver:ee,onMouseUp:he,inputMode:F.contentType==="letter"?"text":"numeric"},before:{children:F.startSeparator},after:{children:F.endSeparator}}}),[b.sections,xe,_,ee,Y,de,he,e,n,j,V,D,L,y]),ae=Z(F=>{M(F.target.value)}),G=p.useMemo(()=>I?"":m.getV7HiddenInputValueFromSections(b.sections),[I,b.sections,m]);return p.useEffect(()=>{if(P.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` 15`));u&&P.current&&P.current.getSectionContent(S.startIndex).focus()},[]),{interactions:E,returnedValue:{autoFocus:u,readOnly:n,focused:c??k,sectionListRef:R,onBlur:K,onClick:H,onFocus:se,onInput:U,onPaste:ne,enableAccessibleFieldDOMStructure:!0,elements:te,tabIndex:$===0?-1:0,contentEditable:j,value:G,onChange:ae,areAllSectionsEmpty:I}}},Gt=t=>t.replace(/[\u2066\u2067\u2068\u2069]/g,""),sh=(t,e,n)=>{let r=0,a=n?1:0;const o=[];for(let s=0;s<t.length;s+=1){const d=t[s],i=Ra(d,n?"input-rtl":"input-ltr",e),c=`${d.startSeparator}${i}${d.endSeparator}`,u=Gt(c).length,m=c.length,f=Gt(i),g=a+(f===""?0:i.indexOf(f[0]))+d.startSeparator.length,h=g+f.length;o.push(w({},d,{start:r,end:r+u,startInInput:g,endInInput:h})),r+=u,a+=m}return o},ih=t=>{const e=mt(),n=p.useRef(void 0),r=p.useRef(void 0),{forwardedProps:{onFocus:a,onClick:o,onPaste:s,onBlur:d,inputRef:i,placeholder:c},internalProps:{readOnly:u=!1,disabled:m=!1},parsedSelectedSections:f,activeSectionIndex:g,state:h,fieldValueManager:$,valueManager:b,applyCharacterEditing:v,resetCharacterQuery:x,updateSectionValue:C,updateV
15alueFromValueStr:M,clearActiveSection:S,clearValue:I,setTempAndroidValueStr:O,setSelectedSections:P,getSectionsFromValue:R,areAllSectionsEmpty:V,localizedDigits:D}=t,y=p.useRef(null),k=Ke(i,y),T=p.useMemo(()=>sh(h.sections,D,e),[h.sections,D,e]),E=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!y.current)return;if(f==null){y.current.scrollLeft&&(y.current.scrollLeft=0);return}if(y.current!==ze(document))return;const Y=y.current.scrollTop;if(f==="all")y.current.select();else{const L=T[f],j=L.type==="empty"?L.startInInput-L.startSeparator.length:L.startInInput,te=L.type==="empty"?L.endInInput+L.endSeparator.length:L.endInInput;(j!==y.current.selectionStart||te!==y.current.selectionEnd)&&y.current===ze(document)&&y.current.setSelectionRange(j,te),clearTimeout(r.current),r.current=setTimeout(()=>{y.current&&y.current===ze(document)&&y.current.selectionStart===y.current.selectionEnd&&(y.current.selectionStart!==j||y.current.selectionEnd!==te)&&E.syncSelectionToDOM()})}y.current.scrollTop=Y},getActiveSectionIndexFromDOM:()=>{const Y=y.current.selectionStart??0,L=y.current.selectionEnd??0;if(Y===0&&L===0)return null;const j=Y<=T[0].startInInput?1:T.findIndex(te=>te.startInInput-te.startSeparator.length>Y);return j===-1?T.length-1:j-1},focusField:(Y=0)=>{var L;ze(document)!==y.current&&((L=y.current)==null||L.focus(),P(Y))},setSelectedSections:Y=>P(Y),isFieldFocused:()=>y.current===ze(document)}),[y,f,T,P]),A=()=>{const Y=y.current.selectionStart??0;let L;Y<=T[0].startInInput||Y>=T[T.length-1].endInInput?L=1:L=T.findIndex(te=>te.startInInput-te.startSeparator.length>Y);const j=L===-1?T.length-1:L-1;P(j)},H=Z((...Y)=>{a==null||a(...Y);const L=y.current;clearTimeout(n.current),n.current=setTimeout(()=>{!L||L!==y.current||g==null&&(L.value.length&&Number(L.selectionEnd)-Number(L.selectionStart)===L.value.length?P("all"):A())})}),U=Z((Y,...L)=>{Y.isDefaultPrevented()||(o==null||o(Y,...L),A())}),ne=Z(Y=>{if(s==null||s(Y),Y.preventDefault(),u||m)return;const L=Y.clipboardData.getData("text");if(typeof f=="number"){const j=h.sections[f],te=/^[a-zA-Z]+$/.test(L),ae=/^[0-9]+$/.test(L),G=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);if(j.contentType==="letter"&&te||j.contentType==="digit"&&ae||j.contentType==="digit-with-letter"&&G){x(),C({activeSection:j,newSectionValue:L,shouldGoToNextSection:!0});return}if(te||ae)return}x(),M(L)}),se=Z((...Y)=>{d==null||d(...Y),P(null)}),K=Z(Y=>{if(u)return;const L=Y.target.value;if(L===""){x(),I();return}const j=Y.nativeEvent.data,te=j&&j.length>1,ae=te?j:L,G=Gt(ae);if(f==="all"&&P(g),g==null||te){M(te?j:G);return}let F;if(f==="all"&&G.length===1)F=G;else{const z=Gt($.getV6InputValueFromSections(T,D,e));let J=-1,W=-1;for(let Se=0;Se<z.length;Se+=1)J===-1&&z[Se]!==G[Se]&&(J=Se),W===-1&&z[z.length-Se-1]!==G[G.length-Se-1]&&(W=Se);const oe=T[g];if(J<oe.start||z.length-W-1>oe.end)return;const me=G.length-z.length+oe.end-Gt(oe.endSeparator||"").length;F=G.slice(oe.start+Gt(oe.startSeparator||"").length,me)}if(F.length===0){If()&&O(ae),x(),S();return}v({keyPressed:F,sectionIndex:g})}),de=p.useMemo(()=>c!==void 0?c:$.getV6InputValueFromSections(R(b.emptyValue),D,e),[c,$,R,b.emptyValue,D,e]),he=p.useMemo(()=>h.tempValueStrAndroid??$.getV6InputValueFromSections(h.sections,D,e),[h.sections,$,h.tempValueStrAndroid,D,e]);p.useEffect(()=>(y.current&&y.current===ze(document)&&P("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const xe=p.useMemo(()=>g==null||h.sections[g].contentType==="letter"?"text":"numeric",[g,h.sections]),ee=!(y.current&&y.current===ze(document))&&V;return{interactions:E,returnedValue:{readOnly:u,onBlur:se,onClick:U,onFocus:H,onPaste:ne,inputRef:k,enableAccessibleFieldDOMStructure:!1,placeholder:de,inputMode:xe,autoComplete:"off",value:ee?"":he,onChange:K}}},dh=t=>{const e=Ce(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:a,enableAccessibleFieldDOMStructure:o=!1,disabled:s=!1,readOnly:d=!1},forwardedProps:{onKeyDown:i,error:c,clearable:u,onClear:m},fieldValueManager:f,valueManager:g,validator:h}=t,$=mt(),b=nh(t),{state:v,activeSectionIndex:x,parsedSelectedSections:C,setSelectedSections:M,clearValue:S,clearActiveSection:I,updateSectionValue:O,setTempAndroidValueStr:P,sectionsValueBoundaries:R,localizedDigits:V,timezone:D}=b,y=ah({sections:v.sections,updateSectionValue:O,sectionsValueBoundaries:R,localizedDigits:V,setTempAndroidValueStr:P,timezone:D}),{resetCharacterQuery:k}=y,T=g.areValuesEqual(e,v.value,g.emptyValue),E=o?oh:ih,A=p.useMemo(()=>Ef(v.sections,$&&!o),[v.sections,$,o]),{returnedValue:H,interactions:U}=E(w({},t,b,y,{areAllSectionsEmpty:T,sectionOrder:A})),ne=Z(_=>{if(i==null||i(_),!s)switch(!0){case((_.ctrlKey||_.metaKey)&&String.fromCharCode(_.keyCode)==="A"&&!_.shiftKey&&!_.altKey):{_.preventDefault(),M("all");break}
15case _.key==="ArrowRight":{if(_.preventDefault(),C==null)M(A.startIndex);else if(C==="all")M(A.endIndex);else{const ee=A.neighbors[C].rightIndex;ee!==null&&M(ee)}break}case _.key==="ArrowLeft":{if(_.preventDefault(),C==null)M(A.endIndex);else if(C==="all")M(A.startIndex);else{const ee=A.neighbors[C].leftIndex;ee!==null&&M(ee)}break}case _.key==="Delete":{if(_.preventDefault(),d)break;C==null||C==="all"?S():I(),k();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(_.key):{if(_.preventDefault(),d||x==null)break;C==="all"&&M(x);const ee=v.sections[x],Y=f.getActiveDateManager(e,v,ee),L=Pf(e,D,ee,_.key,R,V,Y.date,{minutesStep:a});O({activeSection:ee,newSectionValue:L,shouldGoToNextSection:!1});break}}});wt(()=>{U.syncSelectionToDOM()});const{hasValidationError:se}=Gi({props:n,validator:h,timezone:D,value:v.value,onError:n.onError}),K=p.useMemo(()=>c!==void 0?c:se,[se,c]);p.useEffect(()=>{!K&&x==null&&k()},[v.referenceValue,x,K]),p.useEffect(()=>{v.tempValueStrAndroid!=null&&x!=null&&(k(),I())},[v.sections]),p.useImperativeHandle(r,()=>({getSections:()=>v.sections,getActiveSectionIndex:U.getActiveSectionIndexFromDOM,setSelectedSections:U.setSelectedSections,focusField:U.focusField,isFieldFocused:U.isFieldFocused}));const de=Z((_,...ee)=>{_.preventDefault(),m==null||m(_,...ee),S(),U.isFieldFocused()?M(A.startIndex):U.focusField(0)}),he={onKeyDown:ne,onClear:de,error:K,clearable:!!(u&&!T&&!d&&!s)},xe={disabled:s,readOnly:d};return w({},t.forwardedProps,he,xe,H)},lh=["clearable","onClear","InputProps","sx","slots","slotProps"],ch=["ownerState"],uh=t=>{const e=ft(),{clearable:n,onClear:r,InputProps:a,sx:o,slots:s,slotProps:d}=t,i=ue(t,lh),c=(s==null?void 0:s.clearButton)??tn,u=we({elementType:c,externalSlotProps:d==null?void 0:d.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:e.fieldClearLabel}}),m=ue(u,ch),f=(s==null?void 0:s.clearIcon)??Jm,g=we({elementType:f,externalSlotProps:d==null?void 0:d.clearIcon,ownerState:{}});return w({},i,{InputProps:w({},a,{endAdornment:l.jsxs(p.Fragment,{children:[n&&l.jsx(ya,{position:"end",sx:{marginRight:a!=null&&a.endAdornment?-1:-1.5},children:l.jsx(c,w({},m,{onClick:r,children:l.jsx(f,w({fontSize:"small"},g))}))}),a==null?void 0:a.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})},mh=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],fh=(t,e)=>p.useMemo(()=>{const n=w({},t),r={},a=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return mh.forEach(a),Ui.forEach(a),{forwardedProps:n,internalProps:r}},[t,e]),hh=p.createContext(null);function qi(t){const{contextValue:e,localeText:n,children:r}=t;return l.jsx(hh.Provider,{value:e,children:l.jsx(Ni,{localeText:n,children:r})})}const ph=t=>{const e=Ce(),n=zn();return w({},t,{disablePast:t.disablePast??!1,disableFuture:t.disableFuture??!1,format:t.format??e.formats.keyboardDate,minDate:Je(e,t.minDate,n.minDate),maxDate:Je(e,t.maxDate,n.maxDate)})},gh=t=>{const e=ph(t),{forwardedProps:n,internalProps:r}=fh(e,"date");return dh({forwardedProps:n,internalProps:r,valueManager:it,fieldValueManager:Rf,validator:Hn,valueType:"date"})};function yh(t){return Ne("MuiPickersTextField",t)}Fe("MuiPickersTextField",["root","focused","disabled","error","required"]);function $h(t){return Ne("MuiPickersInputBase",t)}const Kt=Fe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function bh(t){return Ne("MuiPickersSectionList",t)}const yn=Fe("MuiPickersSectionList",["root","section","sectionContent"]),vh=["slots","slotProps","elements","sectionListRef"],Zi=X("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(t,e)=>e.root})({direction:"ltr /*! @noflip */",outline:"none"}),Ki=X("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(t,e)=>e.section})({}),Ji=X("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(t,e)=>e.sectionSeparator})({whiteSpace:"pre"}),Xi=X("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(t,e)=>e.sectionContent})({outline:"none"}),wh=t=>{const{classes:e}=t;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},bh,e)};function xh(t){const{slots:e,slotProps:n,element:r,classes:a}=t,o=(e==null?void 0:e.section)??Ki,s=we({elementType:o,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:a.section,ownerState:{}}),d=(e==null?void 0:e.sectionContent)??Xi,i=we({elementType:d,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:a.sectionContent,ownerState:{}}),c=(e==null?void 0:e.sectionSeparator)??Ji,u=we({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),m=we({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return l.jsxs(o,w({},s,{children:[l.jsx(c,w({},u)),l.jsx(d,w({},i)),l.jsx(c,w({},m))]}))}const Sh=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersSectionList"}),{slots:a,slotProps:o,elements:s,sectionListRef:d}=r,i=ue(r,vh),c=wh(r),u=p.useRef(null),m=Ke(n,u),f=$=>
15{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${$} before the mount of the component.`);return u.current};p.useImperativeHandle(d,()=>({getRoot(){return f("getRoot")},getSectionContainer($){return f("getSectionContainer").querySelector(`.${yn.section}[data-sectionindex="${$}"]`)},getSectionContent($){return f("getSectionContent").querySelector(`.${yn.section}[data-sectionindex="${$}"] .${yn.sectionContent}`)},getSectionIndexFromDOMElement($){const b=f("getSectionIndexFromDOMElement");if($==null||!b.contains($))return null;let v=null;return $.classList.contains(yn.section)?v=$:$.classList.contains(yn.sectionContent)&&(v=$.parentElement),v==null?null:Number(v.dataset.sectionindex)}}));const g=(a==null?void 0:a.root)??Zi,h=we({elementType:g,externalSlotProps:o==null?void 0:o.root,externalForwardedProps:i,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return l.jsx(g,w({},h,{children:h.contentEditable?s.map(({content:$,before:b,after:v})=>`${b.children}${$.children}${v.children}`).join(""):l.jsx(p.Fragment,{children:s.map(($,b)=>l.jsx(xh,{slots:a,slotProps:o,element:$,classes:c},b))})}))}),Ph=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],kh=t=>Math.round(t*1e5)/1e5,kr=X("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>w({},t.typography.body1,{color:(t.vars||t).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${kh(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Va=X(Zi,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})(({theme:t})=>({padding:"4px 0 5px",fontFamily:t.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:n,filled:r,label:a})=>!e&&!n&&!r&&a==null,style:t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:t.palette.mode==="light"?.42:.5}}]})),Ch=X(Ki,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(t,e)=>e.section})(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Mh=X(Xi,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(t,e)=>e.content})(({theme:t})=>({fontFamily:t.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),Dh=X(Ji,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(t,e)=>e.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Th=X("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(t,e)=>e.hiddenInput})(w({},Hd)),Oh=t=>{const{focused:e,disabled:n,error:r,classes:a,fullWidth:o,readOnly:s,color:d,size:i,endAdornment:c,startAdornment:u}=t,m={root:["root",e&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",o&&"fullWidth",`color${zd(d)}`,i==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(m,$h,a)},ja=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersInputBase"}),{elements:a,areAllSectionsEmpty:o,value:s,onChange:d,id:i,endAdornment:c,startAdornment:u,renderSuffix:m,slots:f,slotProps:g,contentEditable:h,tabIndex:$,onInput:b,onPaste:v,onKeyDown:x,name:C,readOnly:M,inputProps:S,inputRef:I,sectionListRef:O}=r,P=ue(r,Ph),R=p.useRef(null),V=Ke(n,R),D=Ke(S==null?void 0:S.ref,I),y=mt(),k=fr();if(!k)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const T=se=>{var K;if(k.disabled){se.stopPropagation();return}(K=k.onFocus)==null||K.call(k,se)};p.useEffect(()=>{k&&k.setAdornedStart(!!u)},[k,u]),p.useEffect(()=>{k&&(o?k.onEmpty():k.onFilled())}
15,[k,o]);const E=w({},r,k,{isRtl:y}),A=Oh(E),H=(f==null?void 0:f.root)||kr,U=we({elementType:H,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:P,additionalProps:{"aria-invalid":k.error,ref:V},className:A.root,ownerState:E}),ne=(f==null?void 0:f.input)||Va;return l.jsxs(H,w({},U,{children:[u,l.jsx(Sh,{sectionListRef:O,elements:a,contentEditable:h,tabIndex:$,className:A.sectionsContainer,onFocus:T,onBlur:k.onBlur,onInput:b,onPaste:v,onKeyDown:x,slots:{root:ne,section:Ch,sectionContent:Mh,sectionSeparator:Dh},slotProps:{root:{ownerState:E},sectionContent:{className:Kt.sectionContent},sectionSeparator:({position:se})=>({className:se==="before"?Kt.sectionBefore:Kt.sectionAfter})}}),c,m?m(w({},k)):null,l.jsx(Th,w({name:C,className:A.input,value:s,onChange:d,id:i,"aria-hidden":"true",tabIndex:-1,readOnly:M,required:k.required,disabled:k.disabled},S,{ref:D}))]}))});function Ih(t){return Ne("MuiPickersOutlinedInput",t)}const et=w({},Kt,Fe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Eh=["children","className","label","notched","shrink"],Nh=X("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),Bo=X("span")(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit"})),Fh=X("legend")(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}));function Ah(t){const{className:e,label:n}=t,r=ue(t,Eh),a=n!=null&&n!=="",o=w({},t,{withLabel:a});return l.jsx(Nh,w({"aria-hidden":!0,className:e},r,{ownerState:o,children:l.jsx(Fh,{ownerState:o,children:a?l.jsx(Bo,{children:n}):l.jsx(Bo,{className:"notranslate",children:"â"})})}))}const Rh=["label","autoFocus","ownerState","notched"],Vh=X(kr,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${et.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${et.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${et.focused} .${et.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${et.disabled}`]:{[`& .${et.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled},"*":{color:(t.vars||t).palette.action.disabled}},[`&.${et.error} .${et.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},variants:Object.keys((t.vars??t).palette).filter(n=>{var r;return((r=(t.vars??t).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${et.focused}:not(.${et.error}) .${et.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}}))}}),jh=X(Va,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Lh=t=>{const{classes:e}=t,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ih,e);return w({},e,r)}
15,Qi=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersOutlinedInput"}),{label:a,ownerState:o,notched:s}=r,d=ue(r,Rh),i=fr(),c=w({},r,o,i,{color:(i==null?void 0:i.color)||"primary"}),u=Lh(c);return l.jsx(ja,w({slots:{root:Vh,input:jh},renderSuffix:m=>l.jsx(Ah,{shrink:!!(s||m.adornedStart||m.focused||m.filled),notched:!!(s||m.adornedStart||m.focused||m.filled),className:u.notchedOutline,label:a!=null&&a!==""&&(i!=null&&i.required)?l.jsxs(p.Fragment,{children:[a,"â","*"]}):a,ownerState:c})},d,{label:a,classes:u,ref:n}))});Qi.muiName="Input";function _h(t){return Ne("MuiPickersFilledInput",t)}const Dt=w({},Kt,Fe("MuiPickersFilledInput",["root","underline","input"])),Wh=["label","autoFocus","disableUnderline","ownerState"],Bh=X(kr,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Ud(t)&&t!=="disableUnderline"})(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${Dt.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${Dt.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((t.vars??t).palette).filter(s=>(t.vars??t).palette[s].main).map(s=>{var d;return{props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(d=(t.vars||t).palette[s])==null?void 0:d.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Dt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dt.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Dt.disabled}, .${Dt.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Dt.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),zh=X(Va,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:t})=>!!t,style:{paddingLeft:0}},{props:({endAdornment:t})=>!!t,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),Hh=t=>{const{classes:e,disableUnderline:n}=t,a=Ie({root:["root",!n&&"underline"],input:["input"]},_h,e);return w({},e,a)},ed=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersFilledInput"}),{label:a,disableUnderline:o=!1,ownerState:s}=r,d=ue(r,Wh),i=fr(),c=w({},r,s,i,{color:(i==null?void 0:i.color)||"primary"}),u=Hh(c);return l.jsx(ja,w({slots:{root:Bh,input:zh},slotProps:{root:{disableUnderline:o}}},d,{label:a,classes:u,ref:n}))});ed.muiName="Input";function Uh(t){return Ne("MuiPickersFilledInput",t)}const $n=w({}
15,Kt,Fe("MuiPickersInput",["root","input"])),Yh=["label","autoFocus","disableUnderline","ownerState"],Gh=X(kr,{name:"MuiPickersInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((t.vars??t).palette).filter(r=>(t.vars??t).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$n.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$n.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$n.disabled}, .${$n.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$n.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),qh=t=>{const{classes:e,disableUnderline:n}=t,a=Ie({root:["root",!n&&"underline"],input:["input"]},Uh,e);return w({},e,a)},td=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersInput"}),{label:a,disableUnderline:o=!1,ownerState:s}=r,d=ue(r,Yh),i=fr(),c=w({},r,s,i,{disableUnderline:o,color:(i==null?void 0:i.color)||"primary"}),u=qh(c);return l.jsx(ja,w({slots:{root:Gh}},d,{label:a,classes:u,ref:n}))});td.muiName="Input";const Zh=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],Kh={standard:td,filled:ed,outlined:Qi},Jh=X(qd,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({maxWidth:"100%"}),Xh=t=>{const{focused:e,disabled:n,classes:r,required:a}=t;return Ie({root:["root",e&&!n&&"focused",n&&"disabled",a&&"required"]},yh,r)},Qh=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersTextField"}),{onFocus:a,onBlur:o,className:s,color:d="primary",disabled:i=!1,error:c=!1,variant:u="outlined",required:m=!1,InputProps:f,inputProps:g,inputRef:h,sectionListRef:$,elements:b,areAllSectionsEmpty:v,onClick:x,onKeyDown:C,onKeyUp:M,onPaste:S,onInput:I,endAdornment:O,startAdornment:P,tabIndex:R,contentEditable:V,focused:D,value:y,onChange:k,fullWidth:T,id:E,name:A,helperText:H,FormHelperTextProps:U,label:ne,InputLabelProps:se}=r,K=ue(r,Zh),de=p.useRef(null),he=Ke(n,de),xe=An(E),_=H&&xe?`${xe}-helper-text`:void 0,ee=ne&&xe?`${xe}-label`:void 0,Y=w({},r,{color:d,disabled:i,error:c,focused:D,required:m,variant:u}),L=Xh(Y),j=Kh[u];return l.jsxs(Jh,w({className:Re(L.root,s),ref:he,focused:D,onFocus:a,onBlur:o,disabled:i,variant:u,error:c,color:d,fullWidth:T,required:m,ownerState:Y},K,{children:[l.jsx(Yd,w({htmlFor:xe,id:ee},se,{children:ne})),l.jsx(j,w({elements:b,areAllSectionsEmpty:v,onClick:x,onKeyDown:C,onKeyUp:M,onInput:I,onPaste:S,endAdornment:O,startAdornment:P,tabIndex:R,contentEditable:V,value:y,onChange:k,id:xe,fullWidth:T,inputProps:g,inputRef:h,sectionListRef:$,label:ne,name:A,role:"group","aria-labelledby":ee,"aria-describedby":_,"aria-live":_?"polite":void 0},f)),H&&l.jsx(Gd,w({id:_},U,{children:H}))]}))}),e0=["enableAccessibleFieldDOMStructure"],t0=["InputProps","readOnly"],n0=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],r0=t=>{let{enableAccessibleFieldDOMStructure:e}=t,n=ue(t,e0);if(e){const{InputProps:m,readOnly:f}=n,g=ue(n,t0);return w({},g,{InputProps:w({},m??{},{readOnly:f})})}const{onPaste:r,onKeyDown:a,inputMode:o,readOnly:s,InputProps:d,inputProps:i,inputRef:c}=n,u=ue(n,n0);return w({},u,{InputProps:w({},d??{},{readOnly:s}),inputProps:w({},i??{},{inputMode:o,onPaste:r,onKeyDown:a,ref:c})})},a0=["slots","slotProps","InputProps","inputProps"],nd=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiDateField"}),{slots:a,slotProps:o,InputProps:s,inputProps:d}=r,i=ue(r,a0),c=r,u=(a==null?void 0:a.textField)??(e.enableAccessibleFieldDOMStructure?Qh:je),m=we({elementType:u,externalSlotProps:o==null?void 0:o.textField,externalForwardedProps:i,additionalProps:{ref:n},ownerState:c});m.inputProps=w({},d,m.inputProps),m.InputProps=w({},s,m.InputProps);const f=gh(m),g=r0(f),h=uh(w({},g,{slots:a,slotProps:o}));return l.jsx(u,w({},h))}),rd=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:a,disableFuture:o,disablePast:s,timezone:d})=>{const i=At();return p.useCallback(c=>Hn({adapter:i,value:c,timezone:d,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:a,disableFuture:o,disablePast:s}})!==null,[i,t,e,n,r,a,o,s,d])},o0=(t,e,n)=>(r,a)=>{switch(a.type){case"changeMonth":return w({},r,{slideDirection:a.direction,currentMonth:a.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{const o=a.newTimezone;if(n.getTimezone(r.currentMonth)===o)return r;let s=n.setTimezone(r.currentMonth,o);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),w({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return w({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&a.focusedDay!=null&&n.isSameDay(a.focusedDay,r.focusedDay))return r;const o=a.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,a.focusedDay);return w({},r,{focusedDay:a.focusedDay,isMonthSwitchingAnimating:o&&!t&&!a.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(a.focusedDay):r.currentMonth,slideDirection:a.focusedDay!=null&&n.isAfterDay(a.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},s0=t=>{const{value:e,referenceDate:n,disableFuture:r,disablePast:a,disableSwitchToMonthOnDayFocus:o=!1,maxDate:s,minDate:d,onMonthChange:i,reduceAnimations:c,shouldDisableDate:u,timezone:m}=t,f=Ce(),g=p.useRef(o0(!!c,o,f)).current,h=p.useMemo(()=>it.getInitialReferenceValue({value:e,utils:f,timezone:m,props:t,referenceDate:n,granularity:ot.day}),[n,m]),[$,b]=p.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:h,currentMonth:f.startOfMonth(h),slideDirection:"left"});p.useEffect(()=>{b({type:"changeMonthTimezone",newTimezone:f.getTimezone(h)})},[h,f]);const v=p.useCallback(I=>{b(w({type:"changeMonth"},I)),i&&i(I.newMonth)},[i]),x=p.useCallback(I=>{const O=I;f.isSameMonth(O,$.currentMonth)||v({newMonth:f.startOfMonth(O),direction:f.isAfterDay(O,$.currentMonth)?"left":"right"})},[$.currentMonth,v,f]),C=rd({shouldDisableDate:u,minDate:d,maxDate:s,disableFuture:r,disablePast:a,timezone:m}),M=p.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),S=Z((I,O)=>{C(I)||b({type:"changeFocusedDay",focusedDay:I,withoutMonthSwitchingAnimation:O})});return{referenceDate:h,calendarState:$,changeMonth:x,changeFocusedDay:S,isDateDisabled:C,onMonthSwitchingAnimationEnd:M,handleChangeMonth:v}},i0=t=>Ne("MuiPickersFadeTransitionGroup",t);Fe("MuiPickersFadeTransitionGroup",["root"]);const d0=t=>{const{classes:e}=t;return Ie({root:["root"]},i0,e)},l0=X(xs,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function ad(t){const e=ke({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:a,transKey:o}=e,s=d0(e),d=ws();return a?n:l.jsx(l0,{className:Re(s.root,r),children:l.jsx(hr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:d.transitions.duration.enteringScreen,enter:d.transitions.duration.enteringScreen,exit:0},children:n},o)})}const c0=t=>Ne("MuiPickersSlideTransition",t),Ge=Fe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),u0=["children","className","reduceAnimations","slideDirection","transKey","classes"],m0=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter
15:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(r,c0,e)},f0=X(xs,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${Ge["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${Ge["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${Ge.slideEnterActive}`]:e.slideEnterActive},{[`.${Ge.slideExit}`]:e.slideExit},{[`.${Ge["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${Ge["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ge["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ge["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ge.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${Ge.slideExit}`]:{transform:"translate(0%)"},[`& .${Ge["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${Ge["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function h0(t){const e=ke({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:a,transKey:o}=e,s=ue(e,u0),d=m0(e),i=ws();if(a)return l.jsx("div",{className:Re(d.root,r),children:n});const c={exit:d.exit,enterActive:d.enterActive,enter:d.enter,exitActive:d.exitActive};return l.jsx(f0,{className:Re(d.root,r),childFactory:u=>p.cloneElement(u,{classNames:c}),role:"presentation",children:l.jsx(Zd,w({mountOnEnter:!0,unmountOnExit:!0,timeout:i.transitions.duration.complex,classNames:c},s,{children:n}),o)})}const p0=t=>Ne("MuiDayCalendar",t);Fe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const g0=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],y0=["ownerState"],$0=t=>{const{classes:e}=t;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},p0,e)},od=(Mn+xr*2)*6,b0=X("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),v0=X("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),w0=X(ce,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),x0=X(ce,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),S0=X(ce,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>w({},t.typography.caption,{width:Mn,height:Mn,padding:0,margin:`0 ${xr}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),P0=X("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:od}),k0=X(h0,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:od}),C0=X("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),M0=X("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${xr}px 0`,display:"flex",justifyContent:"center"});function D0(t){let{parentProps:e,day:n,focusableDay:r,selectedDays:a,isDateDisabled:o,currentMonthNumber:s,isViewFocused:d}=t,i=ue(t,g0);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:f,slots:g,slotProps:h,timezone:$}=e,b=Ce(),v=wr($),x=r!==null&&b.isSameDay(n,r),C=a.some(y=>b.isSameDay(y,n)),M=b.isSameDay(n,v),S=(g==null?void 0:g.day)??Yf,I=we({elementType:S,externalSlotProps:h==null?void 0:h.day,additionalProps:w({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:m,"data-timestamp":b.toJsDate(n).valueOf()},i),ownerState:w({},e,{day:n,selected:C})}),O=ue(I,y0),P=p.useMemo(()=>c||o(n),[c,o,n]),R=p.useMemo(()=>b.getMonth(n)!==s,[b,n,s]),V=p.useMemo(()=>{const y=b.startOfMonth(b.setMonth(n,s));return f?b.isSameDay(n,b.startOfWeek(y)):b.isSameDay(n,y)},[s,n,f,b]),D=p.useMemo(()=>{const y=b.endOfMonth(b.setMonth(n,s));return f?b.isSameDay(n,b.endOfWeek(y)):b.isSameDay(n,y)},[s,n,f,b]);return l.jsx(S,w({},O,{day:n,disabled:P,autoFocus:d&&x,today:M,outsideCurrentMonth:R,isFirstVisibleCell:V,isLastVisibleCell:D,selected:C,tabIndex:x?0:-1,"aria-selected":C,"aria-current":M?"date":void 0}))}function T0(t){const e=ke({props:t,name:"MuiDayCalendar"}),n=Ce(),{onFocusedDayChange:r,className:a,currentMonth:o,selectedDays:s,focusedDay:d,loading:i,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:m,reduceAnimations:f,renderLoading:g=()=>l.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:$,disablePast:b,disableFuture:v,minDate:x,maxDate:C,shouldDisableDate:M,shouldDisableMonth:S,shouldDisableYear:I,dayOfWeekFormatter:O=W=>n.format(W,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:R,gridLabelId:V,displayWeekNumber:D,fixedWeekNumber:y,autoFocus:k,timezone:T}=e,E=wr(T),A=$0(e),H=mt(),U=rd({shouldDisableDate:M,shouldDisableMonth:S,shouldDisableYear:I,minDate:x,maxDate:C,disablePast:b,disableFuture:v,timezone:T}),ne=ft(),[se,K]=Et({name:"DayCalendar",state:"hasFocus",controlled:P,default:k??!1}),[de,he]=p.useState(()=>d||E),xe=Z(W=>{m||c(W)}),_=W=>{U(W)||(r(W),he(W),R==null||R(!0),K(!0))},ee=Z((W,oe)=>{switch(W.key){case"ArrowUp":_(n.addDays(oe,-7)),W.preventDefault();break;case"ArrowDown":_(n.addDays(oe,7)),W.preventDefault();break;case"ArrowLeft":{const q=n.addDays(oe,H?1:-1),me=n.addMonths(oe,H?1:-1),Se=kn({utils:n,date:q,minDate:H?q:n.startOfMonth(me),maxDate:H?n.endOfMonth(me):q,isDateDisabled:U,timezone:T});_(Se||q),W.preventDefault();break}case"ArrowRight":{const q=n.addDays(oe,H?-1:1),me=n.addMonths(oe,H?-1:1),Se=kn({utils:n,date:q,minDate:H?n.startOfMonth(me):q,maxDate:H?q:n.endOfMonth(me),isDateDisabled:U,timezone:T});_(Se||q),W.preventDefault();break}case"Home":_(n.startOfWeek(oe)),W.preventDefault();break;case"End":_(n.endOfWeek(oe)),W.preventDefault();break;case"PageUp":_(n.addMonths(oe,1)),W.preventDefault();break;case"PageDown":_(n.addMonths(oe,-1)),W.preventDefault();break}}),Y=Z((W,oe)=>_(oe)),L=Z((W,oe)=>{se&&n.isSameDay(de,oe)&&(R==null||R(!1))}),j=n.getMonth(o),te=n.getYear(o),ae=p.useMemo(()=>s.filter(W=>!!W).map(W=>n.startOfDay(W)),[n,s]),G=`${te}-${j}`,F=p.useMemo(()=>p.createRef(),[G]),z=p.useMemo(()=>{const W=n.startOfMonth(o),oe=n.endOfMonth(o);return U(de)||n.isAfterDay(de,oe)||n.isBeforeDay(de,W)?kn({utils:n,date:de,minDate:W,maxDate:oe,disablePast:b,disableFuture:v,isDateDisabled:U,timezone:T}):de},[o,v,b,de,U,n,T]),J=p.useMemo(()=>{const W=n.getWeekArray(o);
15let oe=n.addMonths(o,1);for(;y&&W.length<y;){const q=n.getWeekArray(oe),me=n.isSameDay(W[W.length-1][0],q[0][0]);q.slice(me?1:0).forEach(Se=>{W.length<y&&W.push(Se)}),oe=n.addMonths(oe,1)}return W},[o,y,n]);return l.jsxs(b0,{role:"grid","aria-labelledby":V,className:A.root,children:[l.jsxs(v0,{role:"row",className:A.header,children:[D&&l.jsx(x0,{variant:"caption",role:"columnheader","aria-label":ne.calendarWeekNumberHeaderLabel,className:A.weekNumberLabel,children:ne.calendarWeekNumberHeaderText}),$f(n,E).map((W,oe)=>l.jsx(w0,{variant:"caption",role:"columnheader","aria-label":n.format(W,"weekday"),className:A.weekDayLabel,children:O(W)},oe.toString()))]}),i?l.jsx(P0,{className:A.loadingContainer,children:g()}):l.jsx(k0,w({transKey:G,onExited:u,reduceAnimations:f,slideDirection:h,className:Re(a,A.slideTransition)},$,{nodeRef:F,children:l.jsx(C0,{ref:F,role:"rowgroup",className:A.monthContainer,children:J.map((W,oe)=>l.jsxs(M0,{role:"row",className:A.weekContainer,"aria-rowindex":oe+1,children:[D&&l.jsx(S0,{className:A.weekNumber,role:"rowheader","aria-label":ne.calendarWeekNumberAriaLabelText(n.getWeekNumber(W[0])),children:ne.calendarWeekNumberText(n.getWeekNumber(W[0]))}),W.map((q,me)=>l.jsx(D0,{parentProps:e,day:q,selectedDays:ae,focusableDay:z,onKeyDown:ee,onFocus:Y,onBlur:L,onDaySelect:xe,isDateDisabled:U,currentMonthNumber:j,isViewFocused:se,"aria-colindex":me+1},q.toString()))]},`week-${W[0]}`))})}))]})}function O0(t){return Ne("MuiPickersMonth",t)}const Xn=Fe("MuiPickersMonth",["root","monthButton","disabled","selected"]),I0=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],E0=t=>{const{disabled:e,selected:n,classes:r}=t;return Ie({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},O0,r)},N0=X("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]}
15)({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),F0=X("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${Xn.disabled}`]:e.disabled},{[`&.${Xn.selected}`]:e.selected}]})(({theme:t})=>w({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:nn(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:nn(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Xn.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Xn.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),A0=p.memo(function(e){const n=ke({props:e,name:"MuiPickersMonth"}),{autoFocus:r,className:a,children:o,disabled:s,selected:d,value:i,tabIndex:c,onClick:u,onKeyDown:m,onFocus:f,onBlur:g,"aria-current":h,"aria-label":$,slots:b,slotProps:v}=n,x=ue(n,I0),C=p.useRef(null),M=E0(n);wt(()=>{var O;r&&((O=C.current)==null||O.focus())},[r]);const S=(b==null?void 0:b.monthButton)??F0,I=we({elementType:S,externalSlotProps:v==null?void 0:v.monthButton,additionalProps:{children:o,disabled:s,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":h,"aria-checked":d,"aria-label":$,onClick:O=>u(O,i),onKeyDown:O=>m(O,i),onFocus:O=>f(O,i),onBlur:O=>g(O,i)},ownerState:n,className:M.monthButton});return l.jsx(N0,w({className:Re(M.root,a),ownerState:n},x,{children:l.jsx(S,w({},I))}))});function R0(t){return Ne("MuiMonthCalendar",t)}Fe("MuiMonthCalendar",["root"]);const V0=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],j0=t=>{const{classes:e}=t;return Ie({root:["root"]},R0,e)};function L0(t,e){const n=Ce(),r=zn(),a=ke({props:t,name:e});return w({disableFuture:!1,disablePast:!1},a,{minDate:Je(n,a.minDate,r.minDate),maxDate:Je(n,a.maxDate,r.maxDate)})}const _0=X("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Sr,boxSizing:"border-box"}),W0=p.forwardRef(function(e,n){const r=L0(e,"MuiMonthCalendar"),{className:a,value:o,defaultValue:s,referenceDate:d,disabled:i,disableFuture:c,disablePast:u,maxDate:m,minDate:f,onChange:g,shouldDisableMonth:h,readOnly:$,autoFocus:b=!1,onMonthFocus:v,hasFocus:x,onFocusedViewChange:C,monthsPerRow:M=3,timezone:S,gridLabelId:I,slots:O,slotProps:P}=r,R=ue(r,V0),{value:V,handleValueChange:D,timezone:y}=Fa({name:"MonthCalendar",timezone:S,value:o,defaultValue:s,referenceDate:d,onChange:g,valueManager:it}),k=wr(y),T=mt(),E=Ce(),A=p.useMemo(()=>it.getInitialReferenceValue({value:V,utils:E,props:r,timezone:y,referenceDate:d,granularity:ot.month}),[]),H=r,U=j0(H),ne=p.useMemo(()=>E.getMonth(k),[E,k]),se=p.useMemo(()=>V!=null?E.getMonth(V):null,[V,E]),[K,de]=p.useState(()=>se||E.getMonth(A)),[he,xe]=Et({name:"MonthCalendar",state:"hasFocus",controlled:x,default:b??!1}),_=Z(G=>{xe(G),C&&C(G)}),ee=p.useCallback(G=>{const F=E.startOfMonth(u&&E.isAfter(k,f)?k:f),z=E.startOfMonth(c&&E.isBefore(k,m)?k:m),J=E.startOfMonth(G);return E.isBefore(J,F)||E.isAfter(J,z)?!0:h?h(J):!1},[c,u,m,f,k,h,E]),Y=Z((G,F)=>{if($)return;const z=E.setMonth(V??A,F);D(z)}),L=Z(G=>{ee(E.setMonth(V??A,G))||(de(G),_(!0),v&&v(G))});p.useEffect(()=>{de(G=>se!==null&&G!==se?se:G)},[se]);const j=Z((G,F)=>{switch(G.key){case"ArrowUp":L((12+F-3)%12),G.preventDefault();break;case"ArrowDown":L((12+F+3)%12),G.preventDefault();break;case"ArrowLeft":L((12+F+(T?1:-1))%12),G.preventDefault();break;case"ArrowRight":L((12+F+(T?-1:1))%12),G.preventDefault();break}}),te=Z((G,F)=>{L(F)}),ae=Z((G,F)=>{K===F&&_(!1)});return l.jsx(_0,w({ref:n,className:Re(U.root,a),ownerState:H,role:"radiogroup","aria-labelledby":I},R,{children:Ia(E,V??A).map(G=>{const F=E.getMonth(G),z=E.format(G,"monthShort"),J=E.format(G,"month"),W=F===se,oe=i||ee(G);return l.jsx(A0,{selected:W,value:F,onClick:Y,onKeyDown:j,autoFocus:he&&F===K,disabled:oe,tabIndex:F===K&&!oe?0:-1,onFocus:te,onBlur:ae,"aria-current":ne===F?"date":void 0,"aria-label":J,monthsPerRow:M,slots:O,slotProps:P,children:z},z)})}))});function B0(t){return Ne("MuiPickersYear",t)}const Qn=Fe("MuiPickersYear",["root","yearButton","selected","disabled"]),z0=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],H0=t=>{const{disabled:e,selected:n,classes:r}=t;return Ie({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},B0,r)},U0=X("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]}
15)({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Y0=X("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${Qn.disabled}`]:e.disabled},{[`&.${Qn.selected}`]:e.selected}]})(({theme:t})=>w({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:nn(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:nn(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qn.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Qn.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),G0=p.memo(function(e){const n=ke({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:a,children:o,disabled:s,selected:d,value:i,tabIndex:c,onClick:u,onKeyDown:m,onFocus:f,onBlur:g,"aria-current":h,slots:$,slotProps:b}=n,v=ue(n,z0),x=p.useRef(null),C=H0(n);wt(()=>{var I;r&&((I=x.current)==null||I.focus())},[r]);const M=($==null?void 0:$.yearButton)??Y0,S=we({elementType:M,externalSlotProps:b==null?void 0:b.yearButton,additionalProps:{children:o,disabled:s,tabIndex:c,ref:x,type:"button",role:"radio","aria-current":h,"aria-checked":d,onClick:I=>u(I,i),onKeyDown:I=>m(I,i),onFocus:I=>f(I,i),onBlur:I=>g(I,i)},ownerState:n,className:C.yearButton});return l.jsx(U0,w({className:Re(C.root,a),ownerState:n},v,{children:l.jsx(M,w({},S))}))});function q0(t){return Ne("MuiYearCalendar",t)}Fe("MuiYearCalendar",["root"]);const Z0=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],K0=t=>{const{classes:e}=t;return Ie({root:["root"]},q0,e)};function J0(t,e){const n=Ce(),r=zn(),a=ke({props:t,name:e});return w({disablePast:!1,disableFuture:!1},a,{yearsPerRow:a.yearsPerRow??3,minDate:Je(n,a.minDate,r.minDate),maxDate:Je(n,a.maxDate,r.maxDate)})}const X0=X("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Sr,maxHeight:ff,boxSizing:"border-box",position:"relative"}),Q0=p.forwardRef(function(e,n){const r=J0(e,"MuiYearCalendar"),{autoFocus:a,className:o,value:s,defaultValue:d,referenceDate:i,disabled:c,disableFuture:u,disablePast:m,maxDate:f,minDate:g,onChange:h,readOnly:$,shouldDisableYear:b,onYearFocus:v,hasFocus:x,onFocusedViewChange:C,yearsOrder:M="asc",yearsPerRow:S,timezone:I,gridLabelId:O,slots:P,slotProps:R}=r,V=ue(r,Z0),{value:D,handleValueChange:y,timezone:k}=Fa({name:"YearCalendar",timezone:I,value:s,defaultValue:d,referenceDate:i,onChange:h,valueManager:it}),T=wr(k),E=mt(),A=Ce(),H=p.useMemo(()=>it.getInitialReferenceValue({value:D,utils:A,props:r,timezone:k,referenceDate:i,granularity:ot.year}),[]),U=r,ne=K0(U),se=p.useMemo(()=>A.getYear(T),[A,T]),K=p.useMemo(()=>D!=null?A.getYear(D):null,[D,A]),[de,he]=p.useState(()=>K||A.getYear(H)),[xe,_]=Et({name:"YearCalendar",state:"hasFocus",controlled:x,default:a??!1}),ee=Z(q=>{_(q),C&&C(q)}),Y=p.useCallback(q=>{if(m&&A.isBeforeYear(q,T)||u&&A.isAfterYear(q,T)||g&&A.isBeforeYear(q,g)||f&&A.isAfterYear(q,f))return!0;if(!b)return!1;const me=A.startOfYear(q);return b(me)},[u,m,f,g,T,b,A]),L=Z((q,me)=>{if($)return;const Se=A.setYear(D??H,me);y(Se)}),j=Z(q=>{Y(A.setYear(D??H,q))||(he(q),ee(!0),v==null||v(q))});p.useEffect(()=>{he(q=>K!==null&&q!==K?K:q)},[K]);const te=M!=="desc"?S*1:S*-1,ae=E&&M==="asc"||!E&&M==="desc"?-1:1,G=Z((q,me)=>{switch(q.key){case"ArrowUp":j(me-te),q.preventDefault();break;case"ArrowDown":j(me+te),q.preventDefault();break;case"ArrowLeft":j(me-ae),q.preventDefault();break;case"ArrowRight":j(me+ae),q.preventDefault();break}}),F=Z((q,me)=>{j(me)}),z=Z((q,me)=>{de===me&&ee(!1)}),J=p.useRef(null),W=Ke(n,J);p.useEffect(()=>{if(a||J.current===null)return;const q=J.current.querySelector('[tabindex="0"]');if(!q)return;const me=q.offsetHeight,Se=q.offsetTop,Pt=J.current.clientHeight,Rt=J.current.scrollTop,Dr=Se+me;me>Pt||Se<Rt||(J.current.scrollTop=Dr-Pt/2-me/2)},[a]);const oe=A.getYearRange([g,f]);return M==="desc"&&oe.reverse(),l.jsx(X0,w({ref:W,className:Re(ne.root,o),ownerState:U,role:"radiogroup","aria-labelledby":O}
15,V,{children:oe.map(q=>{const me=A.getYear(q),Se=me===K,Pt=c||Y(q);return l.jsx(G0,{selected:Se,value:me,onClick:L,onKeyDown:G,autoFocus:xe&&me===de,disabled:Pt,tabIndex:me===de&&!Pt?0:-1,onFocus:F,onBlur:z,"aria-current":se===me?"date":void 0,yearsPerRow:S,slots:P,slotProps:R,children:A.format(q,"year")},A.format(q,"year"))})}))}),e1=t=>Ne("MuiPickersCalendarHeader",t),t1=Fe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),n1=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],r1=["ownerState"],a1=t=>{const{classes:e}=t;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},e1,e)},o1=X("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),s1=X("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>w({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),i1=X("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),d1=X(tn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${t1.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),l1=X(Gm,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),c1=p.forwardRef(function(e,n){const r=ft(),a=Ce(),o=ke({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:d,currentMonth:i,disabled:c,disableFuture:u,disablePast:m,maxDate:f,minDate:g,onMonthChange:h,onViewChange:$,view:b,reduceAnimations:v,views:x,labelId:C,className:M,timezone:S,format:I=`${a.formats.month} ${a.formats.year}`}=o,O=ue(o,n1),P=o,R=a1(o),V=(s==null?void 0:s.switchViewButton)??d1,D=we({elementType:V,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(b)},ownerState:P,className:R.switchViewButton}),y=(s==null?void 0:s.switchViewIcon)??l1,k=we({elementType:y,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:P,className:R.switchViewIcon}),T=ue(k,r1),E=()=>h(a.addMonths(i,1),"left"),A=()=>h(a.addMonths(i,-1),"right"),H=uf(i,{disableFuture:u,maxDate:f,timezone:S}),U=mf(i,{disablePast:m,minDate:g,timezone:S}),ne=()=>{if(!(x.length===1||!$||c))if(x.length===2)$(x.find(K=>K!==b)||x[0]);else{const K=x.indexOf(b)!==0?0:1;$(x[K])}};if(x.length===1&&x[0]==="year")return null;const se=a.formatByString(i,I);return l.jsxs(o1,w({},O,{ownerState:P,className:Re(R.root,M),ref:n,children:[l.jsxs(s1,{role:"presentation",onClick:ne,ownerState:P,"aria-live":"polite",className:R.labelContainer,children:[l.jsx(ad,{reduceAnimations:v,transKey:se,children:l.jsx(i1,{id:C,ownerState:P,className:R.label,children:se})}),x.length>1&&!c&&l.jsx(V,w({},D,{children:l.jsx(y,w({},T))}))]}),l.jsx(hr,{in:b==="day",appear:!v,enter:!v,children:l.jsx(of,{slots:s,slotProps:d,onGoToPrevious:A,isPreviousDisabled:U,previousLabel:r.previousMonth,onGoToNext:E,isNextDisabled:H,nextLabel:r.nextMonth})})]}))}),u1="@media (prefers-reduced-motion: reduce)",Jt=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),zo=Jt&&Jt[1]?parseInt(Jt[1],10):null,Ho=Jt&&Jt[2]?parseInt(Jt[2],10):null,m1=zo&&zo<10||Ho&&Ho<13||!1,sd=()=>Ss(u1,{defaultMatches:!1})||m1,f1=t=>Ne("MuiDateCalendar",t);Fe("MuiDateCalendar",["root","viewTransitionContainer"]);const h1=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],p1=t=>{const{classes:e}=t;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},f1,e)};function g1(t,e){const n=Ce(),r=zn(),a=sd(),o=ke({props:t,name:e});return w({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??a,renderLoading:o.renderLoading??(()=>l.jsx("span",{children:"..."})),minDate:Je(n,o.minDate,r.minDate),maxDate:Je(n,o.maxDate,r.maxDate)})}const y1=X(hf,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:Oa}),$1=X(ad,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),b1=p.forwardRef(function(e,n){const r=Ce(),a=An(),o=g1(e,"MuiDate
15Calendar"),{autoFocus:s,onViewChange:d,value:i,defaultValue:c,referenceDate:u,disableFuture:m,disablePast:f,onChange:g,onYearChange:h,onMonthChange:$,reduceAnimations:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:C,view:M,views:S,openTo:I,className:O,disabled:P,readOnly:R,minDate:V,maxDate:D,disableHighlightToday:y,focusedView:k,onFocusedViewChange:T,showDaysOutsideCurrentMonth:E,fixedWeekNumber:A,dayOfWeekFormatter:H,slots:U,slotProps:ne,loading:se,renderLoading:K,displayWeekNumber:de,yearsOrder:he,yearsPerRow:xe,monthsPerRow:_,timezone:ee}=o,Y=ue(o,h1),{value:L,handleValueChange:j,timezone:te}=Fa({name:"DateCalendar",timezone:ee,value:i,defaultValue:c,referenceDate:u,onChange:g,valueManager:it}),{view:ae,setView:G,focusedView:F,setFocusedView:z,goToNextView:J,setValueAndGoToNextView:W}=Ri({view:M,views:S,openTo:I,onChange:j,onViewChange:d,autoFocus:s,focusedView:k,onFocusedViewChange:T}),{referenceDate:oe,calendarState:q,changeFocusedDay:me,changeMonth:Se,handleChangeMonth:Pt,isDateDisabled:Rt,onMonthSwitchingAnimationEnd:Dr}=s0({value:L,referenceDate:u,reduceAnimations:b,onMonthChange:$,minDate:V,maxDate:D,shouldDisableDate:v,disablePast:f,disableFuture:m,timezone:te}),Td=P&&L||V,Od=P&&L||D,Ya=`${a}-grid-label`,Tr=F!==null,Ga=(U==null?void 0:U.calendarHeader)??c1,Id=we({elementType:Ga,externalSlotProps:ne==null?void 0:ne.calendarHeader,additionalProps:{views:S,view:ae,currentMonth:q.currentMonth,onViewChange:G,onMonthChange:(Me,at)=>Pt({newMonth:Me,direction:at}),minDate:Td,maxDate:Od,disabled:P,disablePast:f,disableFuture:m,reduceAnimations:b,timezone:te,labelId:Ya},ownerState:o}),Ed=Z(Me=>{const at=r.startOfMonth(Me),un=r.endOfMonth(Me),ht=Rt(Me)?kn({utils:r,date:Me,minDate:r.isBefore(V,at)?at:V,maxDate:r.isAfter(D,un)?un:D,disablePast:f,disableFuture:m,isDateDisabled:Rt,timezone:te}):Me;ht?(W(ht,"finish"),$==null||$(at)):(J(),Se(at)),me(ht,!0)}),Nd=Z(Me=>{const at=r.startOfYear(Me),un=r.endOfYear(Me),ht=Rt(Me)?kn({utils:r,date:Me,minDate:r.isBefore(V,at)?at:V,maxDate:r.isAfter(D,un)?un:D,disablePast:f,disableFuture:m,isDateDisabled:Rt,timezone:te}):Me;ht?(W(ht,"finish"),h==null||h(ht)):(J(),Se(at)),me(ht,!0)}),Fd=Z(Me=>j(Me&&lr(r,Me,L??oe),"finish",ae));p.useEffect(()=>{L!=null&&r.isValid(L)&&Se(L)},[L]);const Or=o,qa=p1(Or),Ir={disablePast:f,disableFuture:m,maxDate:D,minDate:V},Er={disableHighlightToday:y,readOnly:R,disabled:P,timezone:te,gridLabelId:Ya,slots:U,slotProps:ne},Nr=p.useRef(ae);p.useEffect(()=>{Nr.current!==ae&&(F===Nr.current&&z(ae,!0),Nr.current=ae)},[F,z,ae]);const Ad=p.useMemo(()=>[L],[L]);return l.jsxs(y1,w({ref:n,className:Re(qa.root,O),ownerState:Or},Y,{children:[l.jsx(Ga,w({},Id,{slots:U,slotProps:ne})),l.jsx($1,{reduceAnimations:b,className:qa.viewTransitionContainer,transKey:ae,ownerState:Or,children:l.jsxs("div",{children:[ae==="year"&&l.jsx(Q0,w({},Ir,Er,{value:L,onChange:Nd,shouldDisableYear:C,hasFocus:Tr,onFocusedViewChange:Me=>z("year",Me),yearsOrder:he,yearsPerRow:xe,referenceDate:oe})),ae==="month"&&l.jsx(W0,w({},Ir,Er,{hasFocus:Tr,className:O,value:L,onChange:Ed,shouldDisableMonth:x,onFocusedViewChange:Me=>z("month",Me),monthsPerRow:_,referenceDate:oe})),ae==="day"&&l.jsx(T0,w({},q,Ir,Er,{onMonthSwitchingAnimationEnd:Dr,onFocusedDayChange:me,reduceAnimations:b,selectedDays:Ad,onSelectedDaysChange:Fd,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:C,hasFocus:Tr,onFocusedViewChange:Me=>z("day",Me),showDaysOutsideCurrentMonth:E,fixedWeekNumber:A,dayOfWeekFormatter:H,displayWeekNumber:de,loading:se,renderLoading:K}))]})})]}))});function v1(t){return Ne("MuiPickersToolbar",t)}Fe("MuiPickersToolbar",["root","content"]);const w1=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],x1=t=>{const{classes:e}=t;return Ie({root:["root"],content:["content"]},v1,e)},S1=X("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),P1=X("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),k1=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersToolbar"}),{children:a,className:o,toolbarTitle:s,hidden:d,titleId:i}=r,c=ue(r,w1),u=r,m=x1(u);return d?null:l.jsxs(S1,w({ref:n,className:Re(m.root,o),ownerState:u},c,{children:[l.jsx(ce,{color:"text.secondary",variant:"overline",id:i,children:s}),l.jsx(P1,{className:m.content,ownerState:u,children:a})]}))});function C1(t){return Ne("MuiDatePickerToolbar",t)}Fe("MuiDatePickerToolbar",["root","title"]);const M1=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],D1=t=>{const{classes:e}=t;return Ie({root:["root"],title:["title"]},C1,e)},T1=X(k1,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),O1=X(ce,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),I1=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiDatePickerToolbar"}
15),{value:a,isLandscape:o,toolbarFormat:s,toolbarPlaceholder:d="ââ",views:i,className:c}=r,u=ue(r,M1),m=Ce(),f=ft(),g=D1(r),h=p.useMemo(()=>{if(!a)return d;const b=Ea(m,{format:s,views:i},!0);return m.formatByString(a,b)},[a,s,d,m,i]),$=r;return l.jsx(T1,w({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:o,className:Re(g.root,c)},u,{children:l.jsx(O1,{variant:"h4",align:o?"left":"center",ownerState:$,className:g.title,children:h})}))});function id(t,e){const n=Ce(),r=zn(),a=ke({props:t,name:e}),o=p.useMemo(()=>{var s;return((s=a.localeText)==null?void 0:s.toolbarTitle)==null?a.localeText:w({},a.localeText,{datePickerToolbarTitle:a.localeText.toolbarTitle})},[a.localeText]);return w({},a,{localeText:o},sf({views:a.views,openTo:a.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:a.disableFuture??!1,disablePast:a.disablePast??!1,minDate:Je(n,a.minDate,r.minDate),maxDate:Je(n,a.maxDate,r.maxDate),slots:w({toolbar:I1},a.slots)})}function E1(t){return Ne("MuiPickersPopper",t)}Fe("MuiPickersPopper",["root","paper"]);const N1=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],F1=t=>{const{classes:e}=t;return Ie({root:["root"],paper:["paper"]},E1,e)},A1=X(Qd,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.modal})),R1=X(Xd,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(t,e)=>e.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:t})=>["top","top-start","top-end"].includes(t),style:{transformOrigin:"bottom center"}}]});function V1(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function j1(t,e){const n=p.useRef(!1),r=p.useRef(!1),a=p.useRef(null),o=p.useRef(!1);p.useEffect(()=>{if(!t)return;function i(){o.current=!0}return document.addEventListener("mousedown",i,!0),document.addEventListener("touchstart",i,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("touchstart",i,!0),o.current=!1}},[t]);const s=Z(i=>{if(!o.current)return;const c=r.current;r.current=!1;const u=Fr(a.current);if(!a.current||"clientX"in i&&V1(i,u))return;if(n.current){n.current=!1;return}let m;i.composedPath?m=i.composedPath().indexOf(a.current)>-1:m=!u.documentElement.contains(i.target)||a.current.contains(i.target),!m&&!c&&e(i)}),d=()=>{r.current=!0};return p.useEffect(()=>{if(t){const i=Fr(a.current),c=()=>{n.current=!0};return i.addEventListener("touchstart",s),i.addEventListener("touchmove",c),()=>{i.removeEventListener("touchstart",s),i.removeEventListener("touchmove",c)}}},[t,s]),p.useEffect(()=>{if(t){const i=Fr(a.current);return i.addEventListener("click",s),()=>{i.removeEventListener("click",s),r.current=!1}}},[t,s]),[a,d,d]}const L1=p.forwardRef((t,e)=>{const{PaperComponent:n,popperPlacement:r,ownerState:a,children:o,paperSlotProps:s,paperClasses:d,onPaperClick:i,onPaperTouchStart:c}=t,u=ue(t,N1),m=w({},a,{placement:r}),f=we({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:e},className:d,ownerState:m});return l.jsx(n,w({},u,f,{onClick:g=>{var h;i(g),(h=f.onClick)==null||h.call(f,g)},onTouchStart:g=>{var h;c(g),(h=f.onTouchStart)==null||h.call(f,g)},ownerState:m,children:o}))});function _1(t){const e=ke({props:t,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:a=null,shouldRestoreFocus:o,onBlur:s,onDismiss:d,open:i,role:c,placement:u,slots:m,slotProps:f,reduceAnimations:g}=e;p.useEffect(()=>{function E(A){i&&A.key==="Escape"&&d()}return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}},[d,i]);const h=p.useRef(null);p.useEffect(()=>{c==="tooltip"||o&&!o()||(i?h.current=ze(document):h.current&&h.current instanceof HTMLElement&&setTimeout(()=>{h.current instanceof HTMLElement&&h.current.focus()}))},[i,c,o]);const[$,b,v]=j1(i,s??d),x=p.useRef(null),C=Ke(x,a),M=Ke(C,$),S=e,I=F1(S),O=sd(),P=g??O,R=E=>{E.key==="Escape"&&(E.stopPropagation(),d())},V=(m==null?void 0:m.desktopTransition)??P?hr:Kd,D=(m==null?void 0:m.desktopTrapFocus)??Jd,y=(m==null?void 0:m.desktopPaper)??R1,k=(m==null?void 0:m.popper)??A1,T=we({elementType:k,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:i,anchorEl:n,placement:u,onKeyDown:R},className:I.root,ownerState:e});return l.jsx(k,w({},T,{children:({TransitionProps:E,placement:A})=>l.jsx(D,w({open:i,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:l.jsx(V,w({},E,f==null?void 0:f.desktopTransition,{children:l.jsx(L1,{PaperComponent:y,ownerState:S,popperPlacement:A,ref:M,onPaperClick:b,onPaperTouchStart:v,paperClasses:I.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const W1=({open:t,onOpen:e,onClose:n})=>{const r=p.useRef(typeof t=="boolean").current,[a,o]=p.useState(!1);p.useEffect(()=>{if(r){if(typeof t!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(t)}},[r,t]);const s=p.useCallback(d=>{r||o(d),d&&e&&e(),!d&&n&&n()},[r,e,n]);return{isOpen:a,setIsOpen:s}},B1=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:a}=t,o=!a&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?o&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastPublishedValue):e.name==="setValueFromVie
15w"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},z1=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:a,closeOnSelect:o}=t,s=!a&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?s&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&o?s?!0:n(r.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&n(r.lastCommittedValue):!1},H1=t=>{const{action:e,closeOnSelect:n}=t;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&n:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},U1=({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:a})=>{const{onAccept:o,onChange:s,value:d,defaultValue:i,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:m}=t,{current:f}=p.useRef(i),{current:g}=p.useRef(d!==void 0),[h,$]=p.useState(u),b=Ce(),v=At(),{isOpen:x,setIsOpen:C}=W1(t),{timezone:M,value:S,handleValueChange:I}=Na({timezone:u,value:d,defaultValue:f,referenceDate:m,onChange:s,valueManager:e}),[O,P]=p.useState(()=>{let j;return S!==void 0?j=S:f!==void 0?j=f:j=e.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:d,hasBeenModifiedSinceMount:!1}}),R=e.getTimezone(b,O.draft);h!==u&&($(u),u&&R&&u!==R&&P(j=>w({},j,{draft:e.setTimezone(b,u,j.draft)})));const{getValidationErrorForNewValue:V}=Gi({props:t,validator:a,timezone:M,value:O.draft,onError:t.onError}),D=Z(j=>{const te={action:j,dateState:O,hasChanged:W=>!e.areValuesEqual(b,j.value,W),isControlled:g,closeOnSelect:c},ae=B1(te),G=z1(te),F=H1(te);P(W=>w({},W,{draft:j.value,lastPublishedValue:ae?j.value:W.lastPublishedValue,lastCommittedValue:G?j.value:W.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let z=null;const J=()=>(z||(z={validationError:j.name==="setValueFromField"?j.context.validationError:V(j.value)},j.name==="setValueFromShortcut"&&(z.shortcut=j.shortcut)),z);ae&&I(j.value,J()),G&&o&&o(j.value,J()),F&&C(!1)});if(O.lastControlledValue!==d){const j=e.areValuesEqual(b,O.draft,S);P(te=>w({},te,{lastControlledValue:d},j?{}:{lastCommittedValue:S,lastPublishedValue:S,draft:S,hasBeenModifiedSinceMount:!0}))}const y=Z(()=>{D({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),k=Z(()=>{D({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),T=Z(()=>{D({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),E=Z(()=>{D({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),A=Z(()=>{D({value:e.getTodayValue(b,M,n),name:"setValueFromAction",pickerAction:"today"})}),H=Z(j=>{j.preventDefault(),C(!0)}),U=Z(j=>{j==null||j.preventDefault(),C(!1)}),ne=Z((j,te="partial")=>D({name:"setValueFromView",value:j,selectionState:te})),se=Z((j,te,ae)=>D({name:"setValueFromShortcut",value:j,changeImportance:te,shortcut:ae})),K=Z((j,te)=>D({name:"setValueFromField",value:j,context:te})),de={onClear:y,onAccept:k,onDismiss:T,onCancel:E,onSetToday:A,onOpen:H,onClose:U},he={value:O.draft,onChange:K},xe=p.useMemo(()=>e.cleanValue(b,O.draft),[b,e,O.draft]),_={value:xe,onChange:ne,onClose:U,open:x},Y=w({},de,{value:xe,onChange:ne,onSelectShortcut:se,isValid:j=>{const te=a({adapter:v,value:j,timezone:M,props:t});return!e.hasError(te)}}),L=p.useMemo(()=>({onOpen:H,onClose:U,open:x}),[x,U,H]);return{open:x,fieldProps:he,viewProps:_,layoutProps:Y,actions:de,contextValue:L}},Y1=["className","sx"],G1=({props:t,propsFromPickerValue:e,additionalViewProps:n,autoFocusView:r,rendererInterceptor:a,fieldRef:o})=>{const{onChange:s,open:d,onClose:i}=e,{view:c,views:u,openTo:m,onViewChange:f,viewRenderers:g,timezone:h}=t,$=ue(t,Y1),{view:b,setView:v,defaultView:x,focusedView:C,setFocusedView:M,setValueAndGoToNextView:S}=Ri({view:c,views:u,openTo:m,onChange:s,onViewChange:f,autoFocus:r}),{hasUIView:I,viewModeLookup:O}=p.useMemo(()=>u.reduce((T,E)=>{let A;return g[E]!=null?A="UI":A="field",T.viewModeLookup[E]=A,A==="UI"&&(T.hasUIView=!0),T},{hasUIView:!1,viewModeLookup:{}}),[g,u]),P=p.useMemo(()=>u.reduce((T,E)=>g[E]!=null&&lf(E)?T+1:T,0),[g,u]),R=O[b],V=Z(()=>R==="UI"),[D,y]=p.useState(R==="UI"?b:null);return D!==b&&O[b]==="UI"&&y(b),wt(()=>{R==="field"&&d&&(i(),setTimeout(()=>{var T,E;(T=o==null?void 0:o.current)==null||T.setSelectedSections(b),(E=o==null?void 0:o.current)==null||E.focusField(b)}))},[b]),wt(()=>{if(!d)return;let T=b;
15R==="field"&&D!=null&&(T=D),T!==x&&O[T]==="UI"&&O[x]==="UI"&&(T=x),T!==b&&v(T),M(T,!0)},[d]),{hasUIView:I,shouldRestoreFocus:V,layoutProps:{views:u,view:D,onViewChange:v},renderCurrentView:()=>{if(D==null)return null;const T=g[D];if(T==null)return null;const E=w({},$,n,e,{views:u,timezone:h,onChange:S,view:D,onViewChange:v,focusedView:C,onFocusedViewChange:M,showViewSwitcher:P>1,timeViewsCount:P});return a?a(g,D,E):T(E)}}};function Uo(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const q1=(t,e)=>{const[n,r]=p.useState(Uo);return wt(()=>{const o=()=>{r(Uo())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Vf(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},Z1=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:a}=t,o=q1(n.views,a),s=mt();return{layoutProps:w({},n,e,{isLandscape:o,isRtl:s,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}};function K1(t){const{props:e,pickerValueResponse:n}=t;return p.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[n.viewProps.value,n.open,e.disabled,e.readOnly])}const dd=({props:t,valueManager:e,valueType:n,wrapperVariant:r,additionalViewProps:a,validator:o,autoFocusView:s,rendererInterceptor:d,fieldRef:i})=>{const c=U1({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:o}),u=G1({props:t,additionalViewProps:a,autoFocusView:s,fieldRef:i,propsFromPickerValue:c.viewProps,rendererInterceptor:d}),m=Z1({props:t,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=K1({props:t,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:m.layoutProps,contextValue:c.contextValue,ownerState:f}};function ld(t){return Ne("MuiPickersLayout",t)}const Tt=Fe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),J1=["onAccept","onClear","onCancel","onSetToday","actions"];function X1(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:a,actions:o}=t,s=ue(t,J1),d=ft();if(o==null||o.length===0)return null;const i=o==null?void 0:o.map(c=>{switch(c){case"clear":return l.jsx(fe,{onClick:n,children:d.clearButtonLabel},c);case"cancel":return l.jsx(fe,{onClick:r,children:d.cancelButtonLabel},c);case"accept":return l.jsx(fe,{onClick:e,children:d.okButtonLabel},c);case"today":return l.jsx(fe,{onClick:a,children:d.todayButtonLabel},c);default:return null}});return l.jsx(el,w({},s,{children:i}))}const Q1=["items","changeImportance","isLandscape","onChange","isValid"],e2=["getValue"];function t2(t){const{items:e,changeImportance:n="accept",onChange:r,isValid:a}=t,o=ue(t,Q1);if(e==null||e.length===0)return null;const s=e.map(d=>{let{getValue:i}=d,c=ue(d,e2);const u=i({isValid:a});return w({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!a(u)})});return l.jsx($a,w({dense:!0,sx:[{maxHeight:Oa,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:s.map(d=>l.jsx(ba,{children:l.jsx(tl,w({},d))},d.id??d.label))}))}function n2(t){return t.view!==null}const r2=t=>{const{classes:e,isLandscape:n}=t;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ld,e)},a2=t=>{const{wrapperVariant:e,onAccept:n,onClear:r,onCancel:a,onSetToday:o,view:s,views:d,onViewChange:i,value:c,onChange:u,onSelectShortcut:m,isValid:f,isLandscape:g,disabled:h,readOnly:$,children:b,slots:v,slotProps:x}=t,C=r2(t),M=(v==null?void 0:v.actionBar)??X1,S=we({elementType:M,externalSlotProps:x==null?void 0:x.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:a,onSetToday:o,actions:e==="desktop"?[]:["cancel","accept"]},className:C.actionBar,ownerState:w({},t,{wrapperVariant:e})}),I=l.jsx(M,w({},S)),O=v==null?void 0:v.toolbar,P=we({elementType:O,externalSlotProps:x==null?void 0:x.toolbar,additionalProps:{isLandscape:g,onChange:u,value:c,view:s,onViewChange:i,views:d,disabled:h,readOnly:$},className:C.toolbar,ownerState:w({},t,{wrapperVariant:e})}),R=n2(P)&&O?l.jsx(O,w({}
15,P)):null,V=b,D=v==null?void 0:v.tabs,y=s&&D?l.jsx(D,w({view:s,onViewChange:i,className:C.tabs},x==null?void 0:x.tabs)):null,k=(v==null?void 0:v.shortcuts)??t2,T=we({elementType:k,externalSlotProps:x==null?void 0:x.shortcuts,additionalProps:{isValid:f,isLandscape:g,onChange:m},className:C.shortcuts,ownerState:{isValid:f,isLandscape:g,onChange:m,wrapperVariant:e}}),E=s&&k?l.jsx(k,w({},T)):null;return{toolbar:R,content:V,tabs:y,actionBar:I,shortcuts:E}},o2=t=>{const{isLandscape:e,classes:n}=t;return Ie({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},ld,n)},s2=X("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Tt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Tt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Tt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Tt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Tt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Tt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Tt.shortcuts}`]:{gridColumn:3}}}]}),i2=X("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),cd=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiPickersLayout"}),{toolbar:a,content:o,tabs:s,actionBar:d,shortcuts:i}=a2(r),{sx:c,className:u,isLandscape:m,wrapperVariant:f}=r,g=o2(r);return l.jsxs(s2,{ref:n,sx:c,className:Re(g.root,u),ownerState:r,children:[m?i:a,m?a:i,l.jsx(i2,{className:g.contentWrapper,children:f==="desktop"?l.jsxs(p.Fragment,{children:[o,s]}):l.jsxs(p.Fragment,{children:[s,o]})}),d]})}),d2=["props","getOpenDialogAriaText"],l2=["ownerState"],c2=["ownerState"],u2=t=>{var J;let{props:e,getOpenDialogAriaText:n}=t,r=ue(t,d2);const{slots:a,slotProps:o,className:s,sx:d,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:g,name:h,label:$,inputRef:b,readOnly:v,disabled:x,autoFocus:C,localeText:M,reduceAnimations:S}=e,I=p.useRef(null),O=p.useRef(null),P=An(),R=((J=o==null?void 0:o.toolbar)==null?void 0:J.hidden)??!1,{open:V,actions:D,hasUIView:y,layoutProps:k,renderCurrentView:T,shouldRestoreFocus:E,fieldProps:A,contextValue:H,ownerState:U}=dd(w({},r,{props:e,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),ne=a.inputAdornment??ya,se=we({elementType:ne,externalSlotProps:o==null?void 0:o.inputAdornment,additionalProps:{position:"end"},ownerState:e}),K=ue(se,l2),de=a.openPickerButton??tn,he=we({elementType:de,externalSlotProps:o==null?void 0:o.openPickerButton,additionalProps:{disabled:x||v,onClick:V?D.onClose:D.onOpen,"aria-label":n(A.value),edge:K.position},ownerState:e}),xe=ue(he,c2),_=a.openPickerIcon,ee=we({elementType:_,externalSlotProps:o==null?void 0:o.openPickerIcon,ownerState:U}),Y=a.field,L=we({elementType:Y,externalSlotProps:o==null?void 0:o.field,additionalProps:w({},A,R&&{id:P},{readOnly:v,disabled:x,className:s,sx:d,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:g,label:$,name:h,autoFocus:C&&!e.open,focused:V?!0:void 0},b?{inputRef:b}:{}),ownerState:e});y&&(L.InputProps=w({},L.InputProps,{ref:I},!e.disableOpenPicker&&{[`${K.position}Adornment`]:l.jsx(ne,w({},K,{children:l.jsx(de,w({},xe,{children:l.jsx(_,w({},ee))}))}))}));const j=w({textField:a.textField,clearIcon:a.clearIcon,clearButton:a.clearButton},L.slots),te=a.layout??cd;let ae=P;R&&($?ae=`${P}-label`:ae=void 0);const G=w({},o,{toolbar:w({},o==null?void 0:o.toolbar,{titleId:P}),popper:w({"aria-labelledby":ae},o==null?void 0:o.popper)}),F=Ke(O,L.unstableFieldRef);return{renderPicker:()=>l.jsxs(qi,{contextValue:H,localeText:M,children:[l.jsx(Y,w({},L,{slots:j,slotProps:G,unstableFieldRef:F})),l.jsx(_1,w({role:"dialog",placement:"bottom-start",anchorEl:I.current},D,{open:V,slots:a,slotProps:G,shouldRestoreFocus:E,reduceAnimations:S,children:l.jsx(te,w({},k,G==null?void 0:G.layout,{slots:a,slotProps:G,children:T()}))}))]})}},Xt=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:a,value:o,defaultValue:s,referenceDate:d,onChange:i,className:c,classes:u,disableFuture:m,disablePast:f,minDate:g,maxDate:h,shouldDisableDate:$,shouldDisableMonth:b,shouldDisableYear:v,reduceAnimations:x,onMonthChange:C,monthsPerRow:M,onYearChange:S,yearsOrder:I,yearsPerRow:O,slots:P,slotProps:R,loading:V,renderLoading:D,disableHighlightToday:y,readOnly:k,disabled:T,showDaysOutsideCurrentMonth:E,dayOfWeekFormatter:A,sx:H,autoFocus:U,fixedWeekNumber:ne,dis
15playWeekNumber:se,timezone:K})=>l.jsx(b1,{view:t,onViewChange:e,views:n.filter(Ao),focusedView:r&&Ao(r)?r:null,onFocusedViewChange:a,value:o,defaultValue:s,referenceDate:d,onChange:i,className:c,classes:u,disableFuture:m,disablePast:f,minDate:g,maxDate:h,shouldDisableDate:$,shouldDisableMonth:b,shouldDisableYear:v,reduceAnimations:x,onMonthChange:C,monthsPerRow:M,onYearChange:S,yearsOrder:I,yearsPerRow:O,slots:P,slotProps:R,loading:V,renderLoading:D,disableHighlightToday:y,readOnly:k,disabled:T,showDaysOutsideCurrentMonth:E,dayOfWeekFormatter:A,sx:H,autoFocus:U,fixedWeekNumber:ne,displayWeekNumber:se,timezone:K}),ud=p.forwardRef(function(e,n){var c,u;const r=ft(),a=Ce(),o=id(e,"MuiDesktopDatePicker"),s=w({day:Xt,month:Xt,year:Xt},o.viewRenderers),d=w({},o,{viewRenderers:s,format:Ea(a,o,!1),yearsPerRow:o.yearsPerRow??4,slots:w({openPickerIcon:Km,field:nd},o.slots),slotProps:w({},o.slotProps,{field:m=>{var f;return w({},Ps((f=o.slotProps)==null?void 0:f.field,m),Yi(o),{ref:n})},toolbar:w({hidden:!0},(c=o.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:i}=u2({props:d,valueManager:it,valueType:"date",getOpenDialogAriaText:Fi({utils:a,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=d.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Hn});return i()});ud.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,dayOfWeekFormatter:N.func,defaultValue:N.object,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,enableAccessibleFieldDOMStructure:N.any,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:ks,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.object,minDate:N.object,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.object,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.object,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsOrder:N.oneOf(["asc","desc"]),yearsPerRow:N.oneOf([3,4])};const m2=X(nl)({[`& .${Za.container}`]:{outline:0},[`& .${Za.paper}`]:{outline:0,minWidth:Sr}}),f2=X(rl)({"&:first-of-type":{padding:0}});function h2(t){const{children:e,onDismiss:n,open:r,slots:a,slotProps:o}=t,s=(a==null?void 0:a.dialog)??m2,d=(a==null?void 0:a.mobileTransition)??hr;return l.jsx(s,w({open:r,onClose:n},o==null?void 0:o.dialog,{TransitionComponent:d,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:l.jsx(f2,{children:e})}))}const p2=["props","getOpenDialogAriaText"],g2=t=>{var K;let{props:e,getOpenDialogAriaText:n}=t,r=ue(t,p2);const{slots:a,slotProps:o,className:s,sx:d,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:g,name:h,label:$,inputRef:b,readOnly:v,disabled:x,localeText:C}=e,M=p.useRef(null),S=An(),I=((K=o==null?void 0:o.toolbar)==null?void 0:K.hidden)??!1,{open:O,actions:P,layoutProps:R,renderCurrentView:V,fieldProps:D,contextValue:y}=dd(w({},r,{props:e,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),k=a.field,T=we({elementType:k,externalSlotProps:o==null?void 0:o.field,additionalProps:w({},D,I&&{id:S},!(x||v)&&{onClick:P.onOpen,onKeyDown:jf(P.onOpen)},{readOnly:v??!0,disabled:x,className:s,sx:d,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:m,onSelectedSectionsChange:f,timezone:g,label:$,name:h},b?{inputRef:b}:{}),ownerState:e});T.inputProps=w({},T.inputProps,{"aria-label":n(D.value)});const E=w({textField:a.textField}
15,T.slots),A=a.layout??cd;let H=S;I&&($?H=`${S}-label`:H=void 0);const U=w({},o,{toolbar:w({},o==null?void 0:o.toolbar,{titleId:S}),mobilePaper:w({"aria-labelledby":H},o==null?void 0:o.mobilePaper)}),ne=Ke(M,T.unstableFieldRef);return{renderPicker:()=>l.jsxs(qi,{contextValue:y,localeText:C,children:[l.jsx(k,w({},T,{slots:E,slotProps:U,unstableFieldRef:ne})),l.jsx(h2,w({},P,{open:O,slots:a,slotProps:U,children:l.jsx(A,w({},R,U==null?void 0:U.layout,{slots:a,slotProps:U,children:V()}))}))]})}},md=p.forwardRef(function(e,n){var c,u;const r=ft(),a=Ce(),o=id(e,"MuiMobileDatePicker"),s=w({day:Xt,month:Xt,year:Xt},o.viewRenderers),d=w({},o,{viewRenderers:s,format:Ea(a,o,!1),slots:w({field:nd},o.slots),slotProps:w({},o.slotProps,{field:m=>{var f;return w({},Ps((f=o.slotProps)==null?void 0:f.field,m),Yi(o),{ref:n})},toolbar:w({hidden:!1},(c=o.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:i}=g2({props:d,valueManager:it,valueType:"date",getOpenDialogAriaText:Fi({utils:a,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=d.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Hn});return i()});md.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,dayOfWeekFormatter:N.func,defaultValue:N.object,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,enableAccessibleFieldDOMStructure:N.any,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:ks,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.object,minDate:N.object,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.object,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.object,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsOrder:N.oneOf(["asc","desc"]),yearsPerRow:N.oneOf([3,4])};const y2=["desktopModeMediaQuery"],$2=p.forwardRef(function(e,n){const r=ke({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:a=Lf}=r,o=ue(r,y2);return Ss(a,{defaultMatches:!0})?l.jsx(ud,w({ref:n},o)):l.jsx(md,w({ref:n},o))}),b2={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"}
15,c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},v2={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class w2{constructor(e){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=b2,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=s=>typeof s>"u"?new Date:s===null?null:new Date(s),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=s=>s,this.toJsDate=s=>s,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=s=>{const d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return s.match(d).map(i=>{const c=i[0];if(c==="p"||c==="P"){const u=this.longFormatters[c];return u(i,this.locale.formatLong)}return i}).join("")},this.formatNumber=s=>s,this.getDayOfWeek=s=>s.getDay()+1;const{locale:n,formats:r,longFormatters:a,lib:o}=e;this.locale=n,this.formats=w({},v2,r),this.longFormatters=a,this.lib=o||"date-fns"}}class x2 extends w2{constructor({locale:e,formats:n}={}){super({locale:e??Is,formats:n,longFormatters:Kl}),this.parse=(r,a)=>r===""?null:dc(r,a,new Date,{locale:this.locale}),this.isValid=r=>r==null?!1:Jl(r),this.format=(r,a)=>this.formatByString(r,this.formats[a]),this.formatByString=(r,a)=>Xl(r,a,{locale:this.locale}),this.isEqual=(r,a)=>r===null&&a===null?!0:r===null||a===null?!1:Nm(r,a),this.isSameYear=(r,a)=>Am(r,a),this.isSameMonth=(r,a)=>lc(r,a),this.isSameDay=(r,a)=>Pc(r,a),this.isSameHour=(r,a)=>Fm(r,a),this.isAfter=(r,a)=>Rr(r,a),this.isAfterYear=(r,a)=>Rr(r,Eo(a)),this.isAfterDay=(r,a)=>Rr(r,eo(a)),this.isBefore=(r,a)=>Vr(r,a),this.isBeforeYear=(r,a)=>Vr(r,this.startOfYear(a)),this.isBeforeDay=(r,a)=>Vr(r,this.startOfDay(a)),this.isWithinRange=(r,[a,o])=>Dl(r,{start:a,end:o}),this.startOfYear=r=>Ql(r),this.startOfMonth=r=>cc(r),this.startOfWeek=r=>ec(r,{locale:this.locale}),this.startOfDay=r=>tc(r),this.endOfYear=r=>Eo(r),this.endOfMonth=r=>uc(r),this.endOfWeek=r=>Cm(r,{locale:this.locale}),this.endOfDay=r=>eo(r),this.addYears=(r,a)=>Sc(r,a),this.addMonths=(r,a)=>xc(r,a),this.addWeeks=(r,a)=>mc(r,a),this.addDays=(r,a)=>fc(r,a),this.addHours=(r,a)=>hc(r,a),this.addMinutes=(r,a)=>Pm(r,a),this.addSeconds=(r,a)=>km(r,a),this.getYear=r=>Em(r),this.getMonth=r=>Om(r),this.getDate=r=>Mm(r),this.getHours=r=>Dm(r),this.getMinutes=r=>pc(r),this.getSeconds=r=>Im(r),this.getMilliseconds=r=>Tm(r),this.setYear=(r,a)=>gc(r,a),this.setMonth=(r,a)=>yc(r,a),this.setDate=(r,a)=>$c(r,a),this.setHours=(r,a)=>bc(r,a),this.setMinutes=(r,a)=>vc(r,a),this.setSeconds=(r,a)=>Vm(r,a),this.setMilliseconds=(r,a)=>Rm(r,a),this.getDaysInMonth=r=>wc(r),this.getWeekArray=r=>{const a=this.startOfWeek(this.startOfMonth(r)),o=this.endOfWeek(this.endOfMonth(r));let s=0,d=a;const i=[];for(;this.isBefore(d,o);){const c=Math.floor(s/7);i[c]=i[c]||[],i[c].push(d),d=this.addDays(d,1),s+=1}return i},this.getWeekNumber=r=>nc(r,{locale:this.locale}),this.getYearRange=([r,a])=>{const o=this.startOfYear(r),s=this.endOfYear(a),d=[];let i=o;for(;this.isBefore(i,s);)d.push(i),i=this.addYears(i,1);return d}}}const Yo={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},S2=(t,e,n)=>{let r;const a=n!=null&&n.addSuffix?Yo[t].withPreposition:Yo[t].standalone;
15return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",String(e)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},P2={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},k2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},C2={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},M2={date:Ee({formats:P2,defaultWidth:"full"}),time:Ee({formats:k2,defaultWidth:"full"}),dateTime:Ee({formats:C2,defaultWidth:"full"})},D2={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},T2=(t,e,n,r)=>D2[t],O2={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},I2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},ua={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},E2={narrow:ua.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:ua.wide},N2={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},F2={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},A2={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},R2=t=>Number(t)+".",V2={ordinalNumber:R2,era:$e({values:O2,defaultWidth:"wide"}),quarter:$e({values:I2,defaultWidth:"wide",argumentCallback:t=>t-1}),month:$e({values:ua,formattingValues:E2,defaultWidth:"wide"}),day:$e({values:N2,defaultWidth:"wide"}),dayPeriod:$e({values:F2,defaultWidth:"wide",formattingValues:A2,defaultFormattingWidth:"wide"})},j2=/^(\d+)(\.)?/i,L2=/\d+/i,_2={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},W2={any:[/^v/i,/^n/i]},B2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},z2={any:[/1/i,/2/i,/3/i,/4/i]},H2={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},U2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Y2={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},G2={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},q2={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Z2={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},K2={ordinalNumber:on({matchPattern:j2,parsePattern:L2,valueCallback:t=>parseInt(t)}),era:be({matchPatterns:_2,defaultMatchWidth:"wide",parsePatterns:W2,defaultParseWidth:"any"}),quarter:be({matchPatterns:B2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any",valueCallback:t=>t+1}),month:be({matchPatterns:H2,defaultMatchWidth:"wide",parsePatterns:U2,defaultParseWidth:"any"}),day:be({matchPatterns:Y2,defaultMatchWidth:"wide",parsePatterns:G2,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:q2,defaultMatchWidth:"wide",parsePatterns:Z2,defaultParseWidth:"any"})},J2={code:"de",formatDistance:S2,formatLong:M2,formatRelative:T2,localize:V2,match:K2,options:{weekStartsOn:1,firstWeekContainsDate:4}},X2={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},Q2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ep={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tp={date:Ee({formats:X2,defaultWidth:"full"}),time:Ee({formats:Q2,defaultWidth:"full"}),dateTime:Ee({formats:ep,defaultWidth:"full"})},fd={code:"en-GB",formatDistance:sc,formatLong:tp,formatRelative:oc,localize:ac,match:rc,options:{weekStartsOn:1,firstWeekContainsDate:4}},np={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dÃa",other:"{{count}} dÃas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},rp=(t,e,n)=>{let r;const a=np[t];
15return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},ap={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},op={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},sp={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ip={date:Ee({formats:ap,defaultWidth:"full"}),time:Ee({formats:op,defaultWidth:"full"}),dateTime:Ee({formats:sp,defaultWidth:"full"})},dp={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},lp={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},cp=(t,e,n,r)=>e.getHours()!==1?lp[t]:dp[t],up={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},mp={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},fp={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},hp={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},pp={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},gp={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},yp=(t,e)=>Number(t)+"º",$p={ordinalNumber:yp,era:$e({values:up,defaultWidth:"wide"}),quarter:$e({values:mp,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:$e({values:fp,defaultWidth:"wide"}),day:$e({values:hp,defaultWidth:"wide"}),dayPeriod:$e({values:pp,defaultWidth:"wide",formattingValues:gp,defaultFormattingWidth:"wide"})},bp=/^(\d+)(º)?/i,vp=/\d+/i,wp={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},xp={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},Sp={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Pp={any:[/1/i,/2/i,/3/i,/4/i]},kp={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Cp={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Mp={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Dp={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},Tp={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Op={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Ip={ordinalNumber:on({matchPattern:bp,parsePattern:vp,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:wp,defaultMatchWidth:"wide",parsePatterns:xp,defaultParseWidth:"any"}),quarter:be({matchPatterns:Sp,defaultMatchWidth:"wide",parsePatterns:Pp,defaultParseWidth:"any",valueCallback:t=>t+1}),month:be({matchPatterns:kp,defaultMatchWidth:"wide",parsePatterns:Cp,defaultParseWidth:"any"}),day:be({matchPatterns:Mp,defaultMatchWidth:"wide",parsePatterns:Dp,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:Tp,defaultMatchWidth:"any",parsePatterns:Op,defaultParseWidth:"any"})},Ep={code:"es",formatDistance:rp,formatLong:ip,formatRelative:cp,localize:$p,match:Ip,options:{weekStartsOn:1,firstWeekContainsDate:1}},Np={lessThanXSeconds:{one:"moins dâune seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins dâune minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus dâun an",other:"plus de {{count}} ans"},almostXYears:{one:"presquâun an",other:"presque {{count}} ans"}},Fp=(t,e,n)=>{let r;const a=Np[t];
15return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",String(e)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},Ap={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},Rp={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vp={full:"{{date}} 'à ' {{time}}",long:"{{date}} 'à ' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jp={date:Ee({formats:Ap,defaultWidth:"full"}),time:Ee({formats:Rp,defaultWidth:"full"}),dateTime:Ee({formats:Vp,defaultWidth:"full"})},Lp={lastWeek:"eeee 'dernier à ' p",yesterday:"'hier à ' p",today:"'aujourdâhui à ' p",tomorrow:"'demain à ' p'",nextWeek:"eeee 'prochain à ' p",other:"P"},_p=(t,e,n,r)=>Lp[t],Wp={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},Bp={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},zp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},Hp={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},Up={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de lâaprès-midi",evening:"du soir",night:"du matin"}},Yp=(t,e)=>{const n=Number(t),r=e==null?void 0:e.unit;if(n===0)return"0";const a=["year","week","hour","minute","second"];let o;return n===1?o=r&&a.includes(r)?"ère":"er":o="ème",n+o},Gp=["MMM","MMMM"],qp={preprocessor:(t,e)=>t.getDate()===1||!e.some(r=>r.isToken&&Gp.includes(r.value))?e:e.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:Yp,era:$e({values:Wp,defaultWidth:"wide"}),quarter:$e({values:Bp,defaultWidth:"wide",argumentCallback:t=>t-1}),month:$e({values:zp,defaultWidth:"wide"}),day:$e({values:Hp,defaultWidth:"wide"}),dayPeriod:$e({values:Up,defaultWidth:"wide"})},Zp=/^(\d+)(ième|ère|ème|er|e)?/i,Kp=/\d+/i,Jp={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},Xp={any:[/^av/i,/^ap/i]},Qp={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},eg={any:[/1/i,/2/i,/3/i,/4/i]},tg={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},ng={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},rg={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},ag={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},og={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},sg={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},ig={ordinalNumber:on({matchPattern:Zp,parsePattern:Kp,valueCallback:t=>parseInt(t)}),era:be({matchPatterns:Jp,defaultMatchWidth:"wide",parsePatterns:Xp,defaultParseWidth:"any"}),quarter:be({matchPatterns:Qp,defaultMatchWidth:"wide",parsePatterns:eg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:be({matchPatterns:tg,defaultMatchWidth:"wide",parsePatterns:ng,defaultParseWidth:"any"}),day:be({matchPatterns:rg,defaultMatchWidth:"wide",parsePatterns:ag,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:og,defaultMatchWidth:"any",parsePatterns:sg,defaultParseWidth:"any"})},dg={code:"fr",formatDistance:Fp,formatLong:jp,formatRelative:_p,localize:qp,match:ig,options:{weekStartsOn:1,firstWeekContainsDate:4}},lg={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},cg=(t,e,n)=>{let r;const a=lg[t];
15return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},ug={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},mg={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fg={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},hg={date:Ee({formats:ug,defaultWidth:"full"}),time:Ee({formats:mg,defaultWidth:"full"}),dateTime:Ee({formats:fg,defaultWidth:"full"})},La=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function pg(t){switch(t){case 0:return"'domenica scorsa alle' p";default:return"'"+La[t]+" scorso alle' p"}}function Go(t){return"'"+La[t]+" alle' p"}function gg(t){switch(t){case 0:return"'domenica prossima alle' p";default:return"'"+La[t]+" prossimo alle' p"}}const yg={lastWeek:(t,e,n)=>{const r=t.getDay();return Jr(t,e,n)?Go(r):pg(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(t,e,n)=>{const r=t.getDay();return Jr(t,e,n)?Go(r):gg(r)},other:"P"},$g=(t,e,n,r)=>{const a=yg[t];return typeof a=="function"?a(e,n,r):a},bg={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},vg={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},wg={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},xg={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},Sg={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},Pg={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},kg=(t,e)=>{const n=Number(t);return String(n)},Cg={ordinalNumber:kg,era:$e({values:bg,defaultWidth:"wide"}),quarter:$e({values:vg,defaultWidth:"wide",argumentCallback:t=>t-1}),month:$e({values:wg,defaultWidth:"wide"}),day:$e({values:xg,defaultWidth:"wide"}),dayPeriod:$e({values:Sg,defaultWidth:"wide",formattingValues:Pg,defaultFormattingWidth:"wide"})},Mg=/^(\d+)(º)?/i,Dg=/\d+/i,Tg={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},Og={any:[/^a/i,/^(d|e)/i]},Ig={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},Eg={any:[/1/i,/2/i,/3/i,/4/i]},Ng={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},Fg={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ag={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},Rg={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},Vg={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},jg={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},Lg={ordinalNumber:on({matchPattern:Mg,parsePattern:Dg,valueCallback:t=>parseInt(t,10)}),era:be({matchPatterns:Tg,defaultMatchWidth:"wide",parsePatterns:Og,defaultParseWidth:"any"}),quarter:be({matchPatterns:Ig,defaultMatchWidth:"wide",parsePatterns:Eg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:be({matchPatterns:Ng,defaultMatchWidth:"wide",parsePatterns:Fg,defaultParseWidth:"any"}),day:be({matchPatterns:Ag,defaultMatchWidth:"wide",parsePatterns:Rg,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:Vg,defaultMatchWidth:"any",parsePatterns:jg,defaultParseWidth:"any"})},_g={code:"it",formatDistance:cg,formatLong:hg,formatRelative:$g,localize:Cg,match:Lg,options:{weekStartsOn:1,firstWeekContainsDate:4}},Wg={lessThanXSeconds:{one:"1ç§æªæº",other:"{{count}}ç§æªæº",oneWithSuffix:"ç´1ç§",otherWithSuffix:"ç´{{count}}ç§"},xSeconds:{one:"1ç§",other:"{{count}}ç§"},halfAMinute:"30ç§",lessThanXMinutes:{one:"1åæªæº",other:"{{count}}åæªæº",oneWithSuffix:"ç´1å",otherWithSuffix:"ç´{{count}}å"},xMinutes:{one:"1å",other:"{{count}}å"},aboutXHours:{one:"ç´1æé",other:"ç´{{count}}æé"},xHours:{one:"1æé",other:"{{count}}æé"},xDays:{one:"1æ¥",other:"{{count}}æ¥"},aboutXWeeks:{one:"ç´1é±é",other:"ç´{{count}}é±é"},xWeeks:{one:"1é±é",other:"{{count}}é±é"},aboutXMonths:{one:"ç´1ãæ",other:"ç´{{count}}ãæ"},xMonths:{one:"1ãæ",other:"{{count}}ãæ"},aboutXYears:{one:"ç´1å¹´",other:"ç´{{count}}å¹´"},xYears:{one:"1å¹´",other:"{{count}}å¹´"},overXYears:{one:"1年以ä¸",other:"{{count}}年以ä¸"},almostXYears:{one:"1å¹´è¿ã",other:"{{count}}å¹´è¿ã"}},Bg=(t,e,n)=>{n=n||{};let r;const a=Wg[t];
15return typeof a=="string"?r=a:e===1?n.addSuffix&&a.oneWithSuffix?r=a.oneWithSuffix:r=a.one:n.addSuffix&&a.otherWithSuffix?r=a.otherWithSuffix.replace("{{count}}",String(e)):r=a.other.replace("{{count}}",String(e)),n.addSuffix?n.comparison&&n.comparison>0?r+"å¾":r+"å":r},zg={full:"yå¹´Mædæ¥EEEE",long:"yå¹´Mædæ¥",medium:"y/MM/dd",short:"y/MM/dd"},Hg={full:"Hæmmåssç§ zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Ug={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Yg={date:Ee({formats:zg,defaultWidth:"full"}),time:Ee({formats:Hg,defaultWidth:"full"}),dateTime:Ee({formats:Ug,defaultWidth:"full"})},Gg={lastWeek:"å
é±ã®eeeeã®p",yesterday:"æ¨æ¥ã®p",today:"仿¥ã®p",tomorrow:"ææ¥ã®p",nextWeek:"ç¿é±ã®eeeeã®p",other:"P"},qg=(t,e,n,r)=>Gg[t],Zg={narrow:["BC","AC"],abbreviated:["ç´å
å","西æ¦"],wide:["ç´å
å","西æ¦"]},Kg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1ååæ","第2ååæ","第3ååæ","第4ååæ"]},Jg={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],wide:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"]},Xg={narrow:["æ¥","æ","ç«","æ°´","æ¨","é","å"],short:["æ¥","æ","ç«","æ°´","æ¨","é","å"],abbreviated:["æ¥","æ","ç«","æ°´","æ¨","é","å"],wide:["æ¥ææ¥","æææ¥","ç«ææ¥","æ°´ææ¥","æ¨ææ¥","éææ¥","åææ¥"]},Qg={narrow:{am:"åå",pm:"åå¾",midnight:"æ·±å¤",noon:"æ£å",morning:"æ",afternoon:"åå¾",evening:"å¤",night:"æ·±å¤"},abbreviated:{am:"åå",pm:"åå¾",midnight:"æ·±å¤",noon:"æ£å",morning:"æ",afternoon:"åå¾",evening:"å¤",night:"æ·±å¤"},wide:{am:"åå",pm:"åå¾",midnight:"æ·±å¤",noon:"æ£å",morning:"æ",afternoon:"åå¾",evening:"å¤",night:"æ·±å¤"}},ey={narrow:{am:"åå",pm:"åå¾",midnight:"æ·±å¤",noon:"æ£å",morning:"æ",afternoon:"åå¾",evening:"å¤",night:"æ·±å¤"},abbreviated:{am:"åå",pm:"åå¾",midnight:"æ·±å¤",noon:"æ£å",morning:"æ",afternoon:"åå¾",evening:"å¤",night:"æ·±å¤"},wide:{am:"åå",pm:"åå¾",midnight:"æ·±å¤",noon:"æ£å",morning:"æ",afternoon:"åå¾",evening:"å¤",night:"æ·±å¤"}},ty=(t,e)=>{const n=Number(t);switch(String(e==null?void 0:e.unit)){case"year":return`${n}å¹´`;case"quarter":return`第${n}ååæ`;case"month":return`${n}æ`;case"week":return`第${n}é±`;case"date":return`${n}æ¥`;case"hour":return`${n}æ`;case"minute":return`${n}å`;case"second":return`${n}ç§`;default:return`${n}`}},ny={ordinalNumber:ty,era:$e({values:Zg,defaultWidth:"wide"}),quarter:$e({values:Kg,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:$e({values:Jg,defaultWidth:"wide"}),day:$e({values:Xg,defaultWidth:"wide"}),dayPeriod:$e({values:Qg,defaultWidth:"wide",formattingValues:ey,defaultFormattingWidth:"wide"})},ry=/^第?\d+(å¹´|ååæ|æ|é±|æ¥|æ|å|ç§)?/i,ay=/\d+/i,oy={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(ç´å
[åå¾]|西æ¦)/i,wide:/^(ç´å
[åå¾]|西æ¦)/i},sy={narrow:[/^B/i,/^A/i],any:[/^(ç´å
å)/i,/^(西æ¦|ç´å
å¾)/i]},iy={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234ä¸äºä¸åï¼ï¼ï¼ï¼]ååæ/i},dy={any:[/(1|ä¸|ï¼)/i,/(2|äº|ï¼)/i,/(3|ä¸|ï¼)/i,/(4|å|ï¼)/i]},ly={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])æ/i,wide:/^([123456789]|1[012])æ/i},cy={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},uy={narrow:/^[æ¥æç«æ°´æ¨éå]/,short:/^[æ¥æç«æ°´æ¨éå]/,abbreviated:/^[æ¥æç«æ°´æ¨éå]/,wide:/^[æ¥æç«æ°´æ¨éå]ææ¥/},my={any:[/^æ¥/,/^æ/,/^ç«/,/^æ°´/,/^æ¨/,/^é/,/^å/]},fy={any:/^(AM|PM|åå|åå¾|æ£å|æ·±å¤|çå¤ä¸|å¤|æ)/i},hy={any:{am:/^(A|åå)/i,pm:/^(P|åå¾)/i,midnight:/^æ·±å¤|çå¤ä¸/i,noon:/^æ£å/i,morning:/^æ/i,afternoon:/^åå¾/i,evening:/^å¤/i,night:/^æ·±å¤/i}},py={ordinalNumber:on({matchPattern:ry,parsePattern:ay,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:oy,defaultMatchWidth:"wide",parsePatterns:sy,defaultParseWidth:"any"}),quarter:be({matchPatterns:iy,defaultMatchWidth:"wide",parsePatterns:dy,defaultParseWidth:"any",valueCallback:t=>t+1}),month:be({matchPatterns:ly,defaultMatchWidth:"wide",parsePatterns:cy,defaultParseWidth:"any"}),day:be({matchPatterns:uy,defaultMatchWidth:"wide",parsePatterns:my,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:fy,defaultMatchWidth:"any",parsePatterns:hy,defaultParseWidth:"any"})},gy={code:"ja",formatDistance:Bg,formatLong:Yg,formatRelative:qg,localize:ny,match:py,options:{weekStartsOn:0,firstWeekContainsDate:1}},yy={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundÄ",future:"mniej niż sekundÄ"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundÄ",future:"sekundÄ"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"póŠminuty",twoFour:"póŠminuty",other:"póŠminuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutÄ",future:"mniej niż minutÄ"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutÄ",future:"minutÄ"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"okoÅo godziny",past:"okoÅo godziny",future:"okoÅo godzinÄ"},twoFour:"okoÅo {{count}} godziny",other:"okoÅo {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinÄ",future:"godzinÄ"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzieÅ",past:"dzieÅ",future:"1 dzieÅ"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"okoÅo tygodnia",twoFour:"okoÅo {{count}} tygodni",other:"okoÅo {{count}} tygodni"},xWeeks:{one:"tydzieÅ",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"okoÅo miesiÄ
c",twoFour:"okoÅo {{count}} miesiÄ
ce",other:"okoÅo {{count}} miesiÄcy"},xMonths:{one:"miesiÄ
c",twoFour:"{{count}} miesiÄ
ce",other:"{{count}} miesiÄcy"},aboutXYears:{one:"okoÅo rok",twoFour:"okoÅo {{count}} lata",other:"okoÅo {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function $y(t,e){if(e===1)return t.one;const n=e%100;if(n<=20&&n>10)return t.other;const r=n%10;return r>=2&&r<=4?t.twoFour:t.other}function Gr(t,e,n){const r=$y(t,e);return(typeof r=="string"?r:r[n]).replace("{{count}}",String(e))}
15const by=(t,e,n)=>{const r=yy[t];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"za "+Gr(r,e,"future"):Gr(r,e,"past")+" temu":Gr(r,e,"regular")},vy={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},wy={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},xy={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Sy={date:Ee({formats:vy,defaultWidth:"full"}),time:Ee({formats:wy,defaultWidth:"full"}),dateTime:Ee({formats:xy,defaultWidth:"full"})},Py={masculine:"ostatni",feminine:"ostatnia"},ky={masculine:"ten",feminine:"ta"},Cy={masculine:"nastÄpny",feminine:"nastÄpna"},My={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function qo(t,e,n,r){let a;if(Jr(e,n,r))a=ky;else if(t==="lastWeek")a=Py;else if(t==="nextWeek")a=Cy;else throw new Error(`Cannot determine adjectives for token ${t}`);const o=e.getDay(),s=My[o];return`'${a[s]}' eeee 'o' p`}const Dy={lastWeek:qo,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:qo,other:"P"},Ty=(t,e,n,r)=>{const a=Dy[t];return typeof a=="function"?a(t,e,n,r):a},Oy={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszÄ
erÄ
","naszej ery"]},Iy={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartaÅ","II kwartaÅ","III kwartaÅ","IV kwartaÅ"]},Ey={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeÅ","luty","marzec","kwiecieÅ","maj","czerwiec","lipiec","sierpieÅ","wrzesieÅ","październik","listopad","grudzieÅ"]},Ny={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrzeÅnia","października","listopada","grudnia"]},Fy={narrow:["N","P","W","Å","C","P","S"],short:["nie","pon","wto","Åro","czw","piÄ
","sob"],abbreviated:["niedz.","pon.","wt.","År.","czw.","pt.","sob."],wide:["niedziela","poniedziaÅek","wtorek","Åroda","czwartek","piÄ
tek","sobota"]},Ay={narrow:["n","p","w","Å","c","p","s"],short:["nie","pon","wto","Åro","czw","piÄ
","sob"],abbreviated:["niedz.","pon.","wt.","År.","czw.","pt.","sob."],wide:["niedziela","poniedziaÅek","wtorek","Åroda","czwartek","piÄ
tek","sobota"]},Ry={narrow:{am:"a",pm:"p",midnight:"póÅn.",noon:"poÅ",morning:"rano",afternoon:"popoÅ.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"póÅnoc",noon:"poÅudnie",morning:"rano",afternoon:"popoÅudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"póÅnoc",noon:"poÅudnie",morning:"rano",afternoon:"popoÅudnie",evening:"wieczór",night:"noc"}},Vy={narrow:{am:"a",pm:"p",midnight:"o póÅn.",noon:"w poÅ.",morning:"rano",afternoon:"po poÅ.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o póÅnocy",noon:"w poÅudnie",morning:"rano",afternoon:"po poÅudniu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o póÅnocy",noon:"w poÅudnie",morning:"rano",afternoon:"po poÅudniu",evening:"wieczorem",night:"w nocy"}},jy=(t,e)=>String(t),Ly={ordinalNumber:jy,era:$e({values:Oy,defaultWidth:"wide"}),quarter:$e({values:Iy,defaultWidth:"wide",argumentCallback:t=>t-1}),month:$e({values:Ey,defaultWidth:"wide",formattingValues:Ny,defaultFormattingWidth:"wide"}),day:$e({values:Fy,defaultWidth:"wide",formattingValues:Ay,defaultFormattingWidth:"wide"}),dayPeriod:$e({values:Ry,defaultWidth:"wide",formattingValues:Vy,defaultFormattingWidth:"wide"})},_y=/^(\d+)?/i,Wy=/\d+/i,By={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(Ä
|a)\s*er(Ä
|a)|naszej\s*ery)/i},zy={any:[/^p/i,/^n/i]},Hy={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(Å|l)/i},Uy={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},Yy={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(Å|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(Å|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(Å|n)|wrze(Å|s)nia|wrzesie(Å|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(Å|n))/i},Gy={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},qy={narrow:/^[npwÅcs]/i,short:/^(nie|pon|wto|(Å|s)ro|czw|pi(Ä
|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(Å|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(Å|l)ek|wtorek|(Å|s)roda|czwartek|pi(Ä
|a)tek|sobota)/i}
15,Zy={narrow:[/^n/i,/^p/i,/^w/i,/^Å/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(Å|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(Å|s)r/i,/^c/i,/^pi/i,/^so/i]},Ky={narrow:/^(^a$|^p$|pó(Å|l)n\.?|o\s*pó(Å|l)n\.?|po(Å|l)\.?|w\s*po(Å|l)\.?|po\s*po(Å|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(Å|l)noc|o\s*pó(Å|l)nocy|po(Å|l)udnie|w\s*po(Å|l)udnie|popo(Å|l)udnie|po\s*po(Å|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},Jy={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(Å|l)n/i,noon:/po(Å|l)/i,morning:/rano/i,afternoon:/po\s*po(Å|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(Å|l)n/i,noon:/po(Å|l)/i,morning:/rano/i,afternoon:/po\s*po(Å|l)/i,evening:/wiecz/i,night:/noc/i}},Xy={ordinalNumber:on({matchPattern:_y,parsePattern:Wy,valueCallback:t=>parseInt(t,10)}),era:be({matchPatterns:By,defaultMatchWidth:"wide",parsePatterns:zy,defaultParseWidth:"any"}),quarter:be({matchPatterns:Hy,defaultMatchWidth:"wide",parsePatterns:Uy,defaultParseWidth:"any",valueCallback:t=>t+1}),month:be({matchPatterns:Yy,defaultMatchWidth:"wide",parsePatterns:Gy,defaultParseWidth:"any"}),day:be({matchPatterns:qy,defaultMatchWidth:"wide",parsePatterns:Zy,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:Ky,defaultMatchWidth:"any",parsePatterns:Jy,defaultParseWidth:"any"})},Qy={code:"pl",formatDistance:by,formatLong:Sy,formatRelative:Ty,localize:Ly,match:Xy,options:{weekStartsOn:1,firstWeekContainsDate:4}},Zo={"en-US":Is,"en-GB":fd,fr:dg,de:J2,es:Ep,it:_g,pl:Qy,ja:gy},hd=()=>{const{t}=Tl(),e=y=>{switch(y){case 7:return t("priorities.time.sunday");case 1:return t("priorities.time.monday");case 2:return t("priorities.time.tuesday");case 3:return t("priorities.time.wednesday");case 4:return t("priorities.time.thursday");case 5:return t("priorities.time.friday");case 6:return t("priorities.time.saturday");default:return t("priorities.time.unknown")}},n=y=>{if(!y||y.length===0)return"";if(y.length===7)return t("priorities.time.everyday");if(y.length===5&&y[0]===1&&y[1]===2&&y[2]===3&&y[3]===4&&y[4]===5)return t("priorities.time.weekdays");if(y.length===2&&y[0]===6&&y[1]===7)return t("priorities.time.weekends");const k=y.map(E=>t(e(E)));return k.length===1?k[0]:k.slice(0,k.length-1).join(", ").concat(` ${t("priorities.and")} `,k[k.length-1])},r=p.useCallback((y,k=!0)=>{if(!y)return t("common.never");const T=new Date(y);return k?a(T,navigator.language):o(T,navigator.language)},[t]),a=(y,k,T)=>y.toLocaleString(k||navigator.language,T),o=(y,k,T)=>y.toLocaleTimeString(k||navigator.language,T),s=(y,k,T)=>y.toLocaleDateString(k||navigator.language,T),d=(y,k)=>{const T=y.getTime()<=k.getTime()?k.getTime()-y.getTime():y.getTime()-k.getTime();return T>0?{days:Math.floor(T/(1e3*60*60*24)),hours:Math.floor(T/(1e3*60*60)%24),minutes:Math.floor(T/1e3/60%60),seconds:Math.floor(T/1e3%60)}:{days:0,hours:0,minutes:0,seconds:0}},i=y=>y.toISOString().split("T")[0],c=y=>y.toISOString().split("T")[0].replaceAll("-","/"),u=(y,k="-")=>{if(!y)return k;const T=new Date(y);return T.getHours().toString().padStart(2,"0")+":"+T.getMinutes().toString().padStart(2,"0")},m=(y=new Date)=>{const k=new Date(y.getTime());return k.setDate(y.getDate()-1),k},f=(y=new Date)=>{const k=new Date(y.getTime());return k.setDate(y.getDate()+1),k},g=(y,k=!0)=>{let T=y.days?`${y.days} ${t(y.days===1?"time.day":"time.days")} `:"";return(k||y.days===0)&&(T=T.concat((y.hours?`${y.hours.toString().padStart(2,"0")}${t("time.h")} `:"")+(y.minutes||y.hours?`${y.minutes.toString().padStart(2,"0")}${t("time.m")} `:"")+`${y.seconds.toString().padStart(2,"0")}${t("time.s")}`)),T},h=(y,k=!1)=>{switch(y){case 1:return t(k?"time.mon":"time.monday");case 2:return t(k?"time.tue":"time.tuesday");case 3:return t(k?"time.wed":"time.wednesday");case 4:return t(k?"time.thu":"time.thursday");case 5:return t(k?"time.fri":"time.friday");case 6:return t(k?"time.sat":"time.saturday");case 0:return t(k?"time.sun":"time.sunday");default:return""}},$=(y,k)=>{const T=k||new Date;return T.setHours(0,0,0,0),y<T},b=y=>{const k=Math.floor(y.days||0),T=Math.floor(y.hours||0),E=Math.floor(y.minutes||0),A=Math.floor(y.seconds||0);return k+T+E+A===0?"0"+t("time.m"):`${k?k.toString()+t("time.d")+" ":""}${T||k?T.toString()+t("time.h")+" ":""}${T||k||E?E.toString()+t("time.m")+" ":""}${A?A.toFixed(0).toString()+t("time.s"):""}`},v=y=>{const k=pe.fromObject({minutes:y}).shiftTo("hours","minutes");return`${k.hours.toString().padStart(2,"0")}:${k.minutes.toString().padStart(2,"0")}`};return{dayToText:e,daysOfWeekToText:n,formatTimestamp:r,toLocaleStr
15ing:a,toLocaleTimeString:o,toLocaleDateString:s,timeDifference:d,extractDate:i,extractFilterDate:c,getTimeString:u,previousDay:m,nextDay:f,formatTimeDifference:g,weekdayToText:h,isBeforeDate:$,luxonDurationToDHMSText:b,minutesToHoursMinutes:v,secondsToDHMSText:y=>{y||(y=0);const k=pe.fromObject({seconds:y}).shiftTo("days","hours","minutes","seconds");return b(k)},apiTimeToMinutes:y=>{const k=y,T=Number(k.substring(0,2)),E=Number(k.substring(3,5));if(!(typeof T!="number"||typeof E!="number"))return T*60+E},minutesToApiTime:y=>`${v(y)}:00+00`,dateStart:y=>new Date(y.getFullYear(),y.getMonth(),y.getDate()),dateEnd:y=>new Date(y.getFullYear(),y.getMonth(),y.getDate(),23,59,59,999),dateToLocalISO:y=>{const k=y.getTimezoneOffset(),T=Math.abs(k);return new Date(y.getTime()-k*60*1e3).toISOString().substring(0,23)+(k>0?"-":"+")+Math.floor(T/60).toFixed(0).padStart(2,"0")+":"+(T%60).toString().padStart(2,"0")},isSameDay:(y,k)=>re.fromJSDate(y).hasSame(re.fromJSDate(k),"day"),isSameMonth:(y,k)=>re.fromJSDate(y).hasSame(re.fromJSDate(k),"month"),isSameYear:(y,k)=>re.fromJSDate(y).hasSame(re.fromJSDate(k),"year"),getDateFnsLocale:y=>Zo[y]||Zo[y.split("-")[0]]||fd}},e3=({children:t})=>{const{getDateFnsLocale:e}=hd();return l.jsx(Ni,{dateAdapter:x2,adapterLocale:e(navigator.language),children:t})},t3=({date:t,minDate:e,maxDate:n,showDate:r=!0,showButtons:a=!0,showDayOfWeek:o=!0,disabled:s=!1,fullWidth:d=!1,sx:i,onDateChanged:c})=>{const[u,m]=p.useState(n||new Date),{weekdayToText:f,isBeforeDate:g,previousDay:h,nextDay:$}=hd(),b=S=>{c(S)},v=S=>{c(h(S))},x=S=>{c($(S))};p.useEffect(()=>{const S=setInterval(()=>{m(n||new Date)},6e4);return()=>clearInterval(S)},[n]);const C=()=>{let S=150;return o&&(S+=35),a&&(S+=65),`${S}px`};function M(S){const{children:I,sx:O,...P}=S;return l.jsxs(ya,{...P,children:[l.jsxs(Q,{sx:{display:"flex",alignItems:"center"},children:[o&&l.jsx(ce,{component:"div",sx:{minWidth:"35px",opacity:s?.5:1},children:f(t.getDay(),!0)}),a&&l.jsxs(l.Fragment,{children:[l.jsx(tn,{size:"small",onClick:()=>v(t),disabled:s,children:l.jsx(al,{})}),l.jsx(tn,{size:"small",disabled:!g(t,u)||s,onClick:()=>x(t),children:l.jsx(ol,{})})]})]}),I]})}return l.jsx(e3,{children:l.jsx(Q,{sx:{display:"flex",alignItems:"center",...d?{width:"100%"}:{},...i},children:r&&l.jsx($2,{desktopModeMediaQuery:"(max-width: 99999999px)",disabled:s,value:t,minDate:e||new Date("2000-01-01"),maxDate:u,onChange:S=>{S&&b(S)},slots:{inputAdornment:M},slotProps:{textField:{sx:d?{width:"100%"}:{width:C()},size:"small",fullWidth:d}}})})})},n3=new Date(1900,0,1),Ko=new Date,r3=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,a3=t=>{if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e},o3=({systemId:t,required:e,initialBirthdate:n,onNext:r,onSkip:a})=>{const{t:o}=De(),[s,d]=p.useState(a3(n)),[i,c]=p.useState(!1),[u,m]=p.useState(""),f=async g=>{if(g.preventDefault(),!!s){m(""),c(!0);try{const h=await Ve.onboardingControllerUpdateBirthdate(t,{birthdate:r3(s)});r(h)}catch(h){m(st(h,o("common.error.generic","Failed to save. Please try again.")))}finally{c(!1)}}};return l.jsx(ve,{heading:o("Onboarding.BirthdateForm.heading","When were you born?"),icon:l.jsx(sl,{sx:{fontSize:48}}),error:u,canSkip:!e,onSkip:a,onSubmit:f,children:l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsx(t3,{date:s??Ko,minDate:n3,maxDate:Ko,showButtons:!1,showDayOfWeek:!1,fullWidth:!0,disabled:i,onDateChanged:g=>d(g)}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:i||!s,children:i?l.jsx(Pe,{size:24}):o("common.continue","Continue")})]})})},pd=({otpLength:t,ttlSeconds:e,code:n,onCodeChange:r,onVerify:a,onResend:o,cooldownRemaining:s,loading:d,error:i,contactHint:c})=>{const{t:u}=De(),[m,f]=p.useState(e??0);p.useEffect(()=>{if(!e)return;f(e);const h=setInterval(()=>{f($=>$<=1?(clearInterval(h),0):$-1)},1e3);return()=>clearInterval(h)},[e]);const g=h=>{const $=h.target.value.replace(/\D/g,"").slice(0,t);r($),$.length===t&&a($)};return l.jsxs(Q,{sx:{width:"100%"},children:[l.jsx(ce,{variant:"body2",color:"text.primary",sx:{mb:e?.5:2},children:u("BudapestOnboarding.OTP.hint","Enter the {length}-digit code sent to {contact}",{length:t,contact:c})}),e&&m>0&&l.jsx(ce,{variant:"caption",color:"text.primary",sx:{mb:2,display:"block"}
15,children:u("BudapestOnboarding.OTP.expiresIn","Code expires in {s}s",{s:m})}),e&&m===0&&l.jsx(ce,{variant:"caption",color:"error",sx:{mb:2,display:"block"},children:u("BudapestOnboarding.OTP.expired","Code expired. Please resend.")}),i&&l.jsx(en,{severity:"error",sx:{mb:2},children:i}),l.jsx(je,{fullWidth:!0,autoFocus:!0,value:n,onChange:g,disabled:d,inputProps:{maxLength:t,pattern:"[0-9]*",inputMode:"numeric"},sx:{mb:2,"& input":{textAlign:"center",fontSize:"1.5rem",letterSpacing:"0.5rem"}}}),d&&l.jsx(Q,{sx:{display:"flex",justifyContent:"center",mb:2},children:l.jsx(Pe,{size:24})}),l.jsx(fe,{variant:"text",size:"small",onClick:o,disabled:s>0||d,children:s>0?u("BudapestOnboarding.OTP.resendIn","Resend in {s}s",{s}):u("BudapestOnboarding.OTP.resend","Resend code")})]})},s3=({systemId:t,stepType:e,required:n,initialEmail:r,isAlreadyCompleted:a,onNext:o,onSkip:s})=>{const{t:d}=De(),i=e===le.type.VERIFIED_EMAIL,[c,u]=p.useState(r??""),[m,f]=p.useState(""),[g,h]=p.useState(!1),[$,b]=p.useState(""),v=p.useRef(""),x=p.useRef(void 0),C=p.useCallback(async D=>{const y=await Ve.onboardingControllerStartVerifyEmail(t,{email:D});return v.current=y.state,{ttl:y.ttl,otpLength:y.length,resendCooldownSeconds:void 0}},[t]),M=p.useCallback(async D=>{const y=await Ve.onboardingControllerVerifyEmail(t,{state:v.current,code:D});return x.current=y,!0},[t]),S=Ms(C,M);if(a&&i)return l.jsx(ve,{heading:d("BudapestOnboarding.EmailStep.verifiedHeading","Email verified!"),icon:l.jsx(zt,{sx:{fontSize:48}}),canSkip:!1,onSubmit:D=>{D.preventDefault(),o()},children:l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,children:d("common.continue","Continue")})});const I=D=>$t.userEmailSchema.safeParse(D).success?(f(""),!0):(f(d("BudapestOnboarding.validation.emailInvalid","Enter a valid email address.")),!1),O=async()=>{h(!0),b("");try{const D=await Ve.onboardingControllerUpdateEmail(t,{email:c,emailMarketingConsent:!1,emailNewsConsent:!1});o(D)}catch(D){b(st(D,"Failed to save. Please try again."))}finally{h(!1)}},P=async D=>{D.preventDefault(),I(c)&&await S.startFlow(c)},R=async D=>{D.preventDefault(),I(c)&&await O()},V=D=>{D.preventDefault(),o(x.current)};return i?S.phase===ar.Input?l.jsx(ve,{heading:d("BudapestOnboarding.EmailStep.heading","Your email address"),icon:l.jsx(zt,{sx:{fontSize:48}}),error:S.error||m,canSkip:!n,onSkip:s,onSubmit:P,children:l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:2,mb:2},children:[l.jsx(je,{fullWidth:!0,type:"email",label:d("BudapestOnboarding.EmailStep.label","Email"),value:c,onChange:D=>{u(D.target.value),m&&I(D.target.value)},autoComplete:"email",autoFocus:!0,disabled:S.loading,error:!!m}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:S.loading||!c.trim(),children:S.loading?l.jsx(Pe,{size:24}):d("BudapestOnboarding.EmailStep.sendCode","Send verification code")})]})}):S.phase===ar.Verification?l.jsx(ve,{heading:d("BudapestOnboarding.EmailStep.verifyHeading","Verify your email"),icon:l.jsx(zt,{sx:{fontSize:48}}),canSkip:!1,children:l.jsx(pd,{otpLength:S.otpLength,ttlSeconds:S.ttl,code:S.code,onCodeChange:S.setCode,onVerify:S.verify,onResend:()=>S.resend(c),cooldownRemaining:S.cooldownRemaining,loading:S.loading,error:S.error,contactHint:c})}):l.jsx(ve,{heading:d("BudapestOnboarding.EmailStep.verifiedHeading","Email verified!"),icon:l.jsx(zt,{sx:{fontSize:48}}),error:$,canSkip:!1,onSubmit:V,children:l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:g||!c.trim(),children:g?l.jsx(Pe,{size:24}):d("common.continue","Continue")})}):l.jsx(ve,{heading:d("BudapestOnboarding.EmailStep.heading","Your email address"),icon:l.jsx(zt,{sx:{fontSize:48}}),error:$||m,canSkip:!n,onSkip:s,onSubmit:R,children:l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:2,mb:2},children:[l.jsx(je,{fullWidth:!0,type:"email",label:d("BudapestOnboarding.EmailStep.label","Email"),value:c,onChange:D=>{u(D.target.value),m&&I(D.target.value)},autoComplete:"email",autoFocus:!0,disabled:g,error:!!m}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:g||!c.trim(),children:g?l.jsx(Pe,{size:24}):d("common.continue","Continue")})]})})},i3=({systemId:t,required:e,initialFirstName:n,initialLastName:r,onNext:a,onSkip:o})=>{const{t:s}=De(),[d,i]=p.useState(n??""),[c,u]=p.useState(r??""),[m,f]=p.useState({}),[g,h]=p.useState(!1),[$,b]=p.useState(""),v=()=>{const M={};return $t.userNameSchema.safeParse(d.trim()).success||(M.firstName=s("BudapestOnboarding.validation.nameInvalid","Please enter a valid first name.")),$t.userNameSchema.safeParse(c.trim()).success||(M.lastName=s("BudapestOnboarding.validation.nameInvalid","Please enter a valid last name.")),f(M),Object.keys(M).length===0},x=async M=>{if(M.preventDefault(),!!v()){h(!0),b("");try{const S=await Ve.onboardingControllerUpdateName(t,{firstName:d.trim(),lastName:c.trim()});a(S)}catch(S){b(st(S,"Failed to save. Please try again."))}finally{h(!1)}}},C=d.trim().length>0&&c.trim().length>0;return l.jsx(ve,{heading:s("BudapestOnboarding.NameStep.heading","What is your name?"),icon:l.jsx(mr,{sx:{fontSize:48}}),error:$,canSkip:!e,onSkip:o,onSubmit:x,children:l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:2,mb:2},children:[l.jsx(je,{fullWidth:!0,label:s("BudapestOnboarding.NameStep.firstName","First name"),value:d,onChange:M=>i(M.target.value),autoComplete:"given-name",autoFocus:!0,disabled:g,error:!!m.firstName,helperText:m.firstName}),l.jsx(je,{fullWidth:!0,label:s("BudapestOnboarding.NameStep.lastName","Last name"),value:c,onChange:M=>u(M.target.value),autoComplete:"family-name",disabled:g,error:!!m.lastName,helperText:m.lastName}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:g||!C,children:g?l.jsx(Pe,{size:24}):s("common.continue","Continue")})]})})},gd=({currentUser:t,required:e,onNext:n,onSkip:r})=>{const{t:a}=De(),o=vl(),s=pr(),[d]=wa(),{currentUser:i,refetch:c}=Ds(),[u,m]=p.useState(null),[f,g]=p.useState(!1),[h,$]=p.useState(!1),{data:b}=Vn(),v=b==null?void 0:b.system,x=v==null?void 0:v.paymentProvider,C=d.get("setupToken"),M=Ol({setupToken:C||void 0,paymentState:"success",skip:!C,onAsyncProcessCompleted:A=>{switch(A){case"success":{c().then(()=>{$(!0)});break}case"cancelled":break;case"failed":case"error":{const H=new URLSearchParams(d);H.delete("setupToken"),s({search:H.toString()},{replace:!0});break}}}}),[S,{loading:I,error:O}]=St(Il,{onCompleted:A=>{const H=A.addPaymentMethod;H.__typename==="SetupSessionStripe"?(m(H),g(!0)):(H.__typename==="SetupSessionPayex"||H.__typename==="SetupSessionNevogate")&&(g(!0),window.location.replace(H.redirectUrl))},onError:()=>{g(!1)}}),P=i==null?void 0:i.paymentMethod,R=!!P,V=(P==null?void 0:P.__typename)==="Card"&&P.expired,D=!R||V,y=M.loading;if(!x)return n(),null;if(y)return l.jsx(ve,{heading:a("PaymentMethodForm.verifyingPayment","Verifying payment..."),icon:l.jsx(Ar,{sx:{fontSize:48}}),onSubmit:A=>A.preventDefault(),children:l.jsxs(Q,{sx:{textAlign:"center",py:4},children:[l.jsx(Pe,{size:48,sx:{mb:2}}),l.jsx(ce,{variant:"body1",children:a("PaymentMethodForm.verifyingPaymentDescription","Please wait while we verify your payment information...")})]})});const k=M.postMessageState==="failed"||M.postMessageState==="error";if(!D&&(P==null?void 0:P.__typename)==="Card")return l.jsx(ve,{heading:a("PaymentMethodForm.paymentCardAdded","Card added successfully!"),icon:l.jsx(Ar,{sx:{fontSize:48}}),onSubmit:A=>A.preventDefault(),children:l.jsxs(Q,{sx:{textAlign:"center"},children:[l.jsx(ce,{variant:"body1",gutterBottom:!0,children:a("PaymentMethodForm.paymentCardDescription","We now have your {displayBrand} ending with {last4} saved to your {systemName} account.",{displayBrand:P.displayBrand,last4:P.last4,systemName:(v==null?void 0:v.name)||""})}),l.jsx(ce,{variant:"body2",color:"text.secondary",sx:{mb:2},children:a("PaymentMethodForm.paymentCardProfileInfo","You can remove and add cards at any time in your profile.")}),l.jsx(fe,{variant:"contained",onClick:()=>n(),fullWidth:!0,children:a("common.continue","Continue")})]})});const T=()=>{const A=o.pathname+o.search;S({variables:{paths:{successPath:A,cancelPath:A}}})};let E="payment provider";return x.__typename==="PaymentProviderPayex"?E="PayEx":x.__typename==="PaymentProviderStripe"?E="Stripe":x.__typename==="PaymentProviderNevogate"&&(E="Nevogate"),l.jsxs(l.Fragment,{children:[l.jsx(ve,{heading:a("PaymentMethodForm.addPaymentCard","Add payment card"),icon:l.jsx(Ar,{sx:{fontSize:48}}),error:O==null?void 0:O.message,canSkip:!e&&!D,onSkip:r,onSubmit:A=>A.preventDefault(),children:l.jsxs(Q,{"data-testid":"PaymentMethodStep",children:[k&&l.jsx(en,{severity:"error",sx:{mb:2},children:a("PaymentMethodForm.paymentVerificationFailed","Failed to verify your payment. Please try again.")}),V&&(P==null?void 0:P.__typename)==="Card"&&l.jsx(en,{severity:"warning",sx:{mb:2},children:a("PaymentMethodForm.cardExpired","Your card ending with {last4} is expired. Please add a new card.",{last4:P.last4})}),l.jsx(ce,{variant:"body1",sx:{mb:2},children:a("PaymentMethodForm.description","To be able to unlock our bikes, you need to add a valid payment card. Adding the card will not charge your card. You can add and remove cards at any time in your profile.")}),l.jsx(ce,{variant:"body2",color:"text.secondary",sx:{mb:3},children:a("PaymentMethodForm.paymentMethodDescription","Selecting {addCard} will take you to our payment provider {paymentProviderName}",{paymentProviderName:E,addCard:a("common.addCard","Add card")})}),l.jsx(fe,{variant:"contained",fullWidth:!0,onClick:T,disabled:I||f,children:I||f?l.jsx(Pe,{size:24}):a("common.addCard","Add card")})]})}),u&&l.jsx(El,{sessionId:u.sessionId,publishableKey:u.publishableKey})]})},d3=({required:t,onNext:e,onSkip:n})=>l.jsx(gd,{currentUser:void 0,required:t,onNext:e,onSkip:t?void 0:n}),l3=6e4,c3=({systemId:t,stepType:e,required:n,initialValue:r,onNext:a,onSkip:o})=>{const{t:s}
15=De(),d=e===le.type.VERIFIED_PERSONAL_NUMBER,[i,c]=p.useState(r??""),[u,m]=p.useState(""),[f,g]=p.useState(!1),[h,$]=p.useState(""),[b,v]=p.useState(!1),[x,C]=p.useState(!1),M=p.useRef(void 0);p.useEffect(()=>(b&&(M.current=setTimeout(()=>C(!0),l3)),()=>{M.current&&clearTimeout(M.current)}),[b]);const S=()=>$t.taxNumberQuerySchema.safeParse(i.trim()).success?(m(""),!0):(m(s("BudapestOnboarding.validation.personalNumberInvalid","Enter a valid personal number.")),!1),I=async P=>{if(P.preventDefault(),!!S()){g(!0),$("");try{const R=await Ve.onboardingControllerUpdatePersonalNumber(t,{personalNumber:i.trim()});d?(await Ve.onboardingControllerVerifyPersonalNumber(t),v(!0)):a(R)}catch(R){$(st(R,"Failed to save. Please try again."))}finally{g(!1)}}},O=async()=>{C(!1),$("");try{await Ve.onboardingControllerVerifyPersonalNumber(t)}catch(P){$(st(P,"Failed to retry verification.")),v(!1)}};return b?l.jsx(ve,{heading:s("BudapestOnboarding.PersonalNumberStep.verifyingHeading","Verifying your identity"),icon:l.jsx(Ka,{sx:{fontSize:48}}),error:x?s("BudapestOnboarding.PersonalNumberStep.verifyTimeout","Verification is taking longer than expected. Please try again."):void 0,children:x?l.jsx(fe,{variant:"outlined",onClick:O,children:s("BudapestOnboarding.PersonalNumberStep.retryButton","Try again")}):l.jsxs(l.Fragment,{children:[l.jsx(Q,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(Pe,{})}),l.jsx(ce,{variant:"body2",color:"text.primary",children:s("BudapestOnboarding.PersonalNumberStep.verifyingBody","Please wait while we verify your personal number.")})]})}):l.jsx(ve,{heading:s("BudapestOnboarding.PersonalNumberStep.heading","Your personal number"),icon:l.jsx(Ka,{sx:{fontSize:48}}),error:h||u,canSkip:!n,onSkip:o,onSubmit:I,children:l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:2,mb:2},children:[l.jsx(je,{fullWidth:!0,label:s("BudapestOnboarding.PersonalNumberStep.label","Personal number"),value:i,onChange:P=>c(P.target.value),inputProps:{inputMode:"numeric",autoComplete:"off"},autoFocus:!0,disabled:f,error:!!u}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:f||!i.trim(),children:f?l.jsx(Pe,{size:24}):s("common.continue","Continue")})]})})}
vendor: 6,885 bytes, line 15
15,u3={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-4
156-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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|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,[["(?:(?:241|349)0\\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])|[34]\\d\\d)|91(?:(?:[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}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-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|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"]
vendor: 9,237 bytes, line 15
15,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\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","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],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|5[07]|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(?:2[125-9]|3[23]|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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\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(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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}
vendor: 4,511 bytes, line 15
15)","$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]|9[14]"]],["(\\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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]|3[13])"],"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}
vendor: 6,625 bytes, line 15
15)","$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,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\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}"]]],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|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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","(?:
15694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|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|180020","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{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"]
vendor: 15,374 bytes, line 15
15,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{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-589]\\d{7}",[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|180020","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|8(?:28[235-7]|3))|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])\\d|8(?:[14-6]\\d|2[0-79]))|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",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[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,11}|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",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["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|180020","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|427|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",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-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",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"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",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,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","
158\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["3"],"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-6]|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","(?:[2457]\\d|33|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",["20"]],["(\\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]"]],["(\\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",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|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{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\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",["[67]"],"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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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",["11|2[16]"],"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","7091\\d{5}|(?:[56]9|[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","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\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","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],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}
15(?:\\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",["30|(?: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","30|(?: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","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"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","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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",["3[289]|4[246-8]|61|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[136]|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,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|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-6]|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,"[3489]",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","(?:[15]\\d|800|92)\\d{7}",[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{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]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\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-9]"]]]],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","[25-7]\\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",["[25-7]"]],["(\\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|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-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|66)\\d{7}",[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}
15)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],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-579]|61)","5(?:[0-579]|61[06])","5(?:[0-579]|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{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?: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,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|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-57-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-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|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-3589]|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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\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-9]\\d)\\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","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?: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|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"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}
15)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\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})|5(?:0\\d{3}|2[0-2]))\\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 yd(t,e){var n=Array.prototype.slice.call(e);return n.push(u3),t.apply(this,n)}function Jo(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),a=0;a<3;a++){var o=Number(n[a]),s=Number(r[a]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var m3={}.constructor;function Qt(t){return t!=null&&t.constructor===m3}function an(t){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(t)}function Cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h3(r.key),r)}}function Mr(t,e,n){return e&&f3(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function h3(t){var e=p3(t,"string");return an(e)=="symbol"?e:e+""}function p3(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var g3="1.2.0",y3="1.7.35",Xo=" ext. ",$3=/^\d+$/,We=function(){function t(e){Cr(this,t),$d(e),this.metadata=e,bd.call(this,e)}return Mr(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&$3.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Qo(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new Qo(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var a=this.nonGeographic()[n];if(a)return a}else{var o=this.countryCallingCodes()[n];if(o&&o.length===1&&o[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(n){return this.numberingPlan.type(n)}},{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(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])}(),Qo=function(){function t(e,n){Cr(this,t),this.globalMetadataObject=n,this.metadata=e,bd.call(this,n.metadata)}return Mr(t,[{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(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(a){return new b3(a,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[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(n){if(this.hasTypes()&&es(this.types(),n))return new w3(es(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Xo:this.metadata[13]||Xo}}])}(),b3=function(){function t(e,n){Cr(this,t),this._format=e,this.metadata=n}return Mr(t,[{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()&&!v3.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),v3=/^\(?\$1\)?$/,w3=function(){function t(e,n){Cr(this,t),this.type=e,this.metadata=n}return Mr(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 4,504 bytes, lines 15-16
15ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function es(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function $d(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Qt(t)||!Qt(t.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(Qt(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+x3(t)+": "+t,"."))}var x3=function(e){return an(e)};function _a(t,e){if(e=new We(e),e.hasCountry(t))return e.selectNumberingPlan(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function S3(t,e){return e.countries.hasOwnProperty(t)}function bd(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?Jo(e,g3)===-1?this.v2=!0:Jo(e,y3)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function Wa(t,e,n){return P3(t,e,void 0,n)}function P3(t,e,n,r){e&&(r=new We(r.metadata),r.selectNumberingPlan(e));var a=r.type(n),o=a&&a.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var s=t.length,d=o[0];return d===s?"IS_POSSIBLE":d>s?"TOO_SHORT":o[o.length-1]<s?"TOO_LONG":o.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function k3(t,e,n){if(e===void 0&&(e={}),n=new We(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return vd(t.phone||t.nationalNumber,t.country,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function vd(t,e,n){switch(Wa(t,e,n)){case"IS_POSSIBLE":return!0;default:return!1}}function ut(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function C3(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=M3(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M3(t,e){if(t){if(typeof t=="string")return ts(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ts(t,e):void 0}}function ts(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var D3=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ba(t,e,n){if(e=e||{},!(!t.country&&!t.countryCallingCode)){n=new We(n),n.selectNumberingPlan(t.country,t.countryCallingCode);var r=e.v2?t.nationalNumber:t.phone;if(ut(r,n.nationalNumberPattern())){if(qr(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||qr(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=C3(D3),o;!(o=a()).done;){var s=o.value;if(qr(r,s,n))return s}}}}function qr(t,e,n){var r=n.type(e);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(t.length)<0?!1:ut(t,r.pattern())}function T3(t,e,n){if(e=e||{},n=new We(n),n.selectNumberingPlan(t.country,t.countryCallingCode),n.hasTypes())return Ba(t,e,n.metadata)!==void 0;var r=e.v2?t.nationalNumber:t.phone;return ut(r,n.nationalNumberPattern())}function O3(t,e,n){var r=new We(n),a=r.getCountryCodesForCallingCode(t);return a?a.filter(function(o){return I3(e,o,n)}):[]}function I3(t,e,n){var r=new We(n);return r.selectNumberingPlan(e),r.numberingPlan.possibleLengths().indexOf(t.length)>=0}var za=2,E3=17,N3=3,rt="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",F3="-â-ââã¼ï¼",A3="ï¼/",R3="ï¼.",V3="  Ââ
16â ã",j3="()ï¼ï¼ï¼»ï¼½\\[\\]",L3="~ââ¼ï½",cr="".concat(F3).concat(A3).concat(R3).concat(V3).concat(j3).concat(L3),Ha="+ï¼",_3=new RegExp("(["+rt+"])");function W3(t,e,n,r){if(e){var a=new We(r);a.selectNumberingPlan(e,n);var o=new RegExp(a.IDDPrefix());if(t.search(o)===0){t=t.slice(t.match(o)[0].length);var s=t.match(_3);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return t}}}function B3(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var a,o,s=r.length-1,d=s>0&&r[s];if(e.nationalPrefixTransformRule()&&d)a=t.replace(n,e.nationalPrefixTransformRule()),s>1&&(o=r[1]);else{var i=r[0];a=t.slice(i.length),d&&(o=r[1])}var c;if(d){var u=t.indexOf(r[1]),m=t.slice(0,u);m===e.numberingPlan.nationalPrefix()&&(c=e.numberingPlan.nationalPrefix())}else c=r[0];return{nationalNumber:a,nationalPrefix:c,carrierCode:o}}}return{nationalNumber:t}}function z3(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=H3(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H3(t,e){if(t){if(typeof t=="string")return ns(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ns(t,e):void 0}}function ns(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function U3(t,e){var n=e.countries,r=e.metadata;r=new We(r);for(var a=z3(n),o;!(o=a()).done;){var s=o.value;if(r.selectNumberingPlan(s),r.leadingDigits()){if(t&&t.search(r.leadingDigits())===0)return s}else if(Ba({phone:t,country:s},void 0,r.metadata))return s}}function wd(t,e){var n=e.nationalNumber,r=e.metadata,a=r.getCountryCodesForCallingCode(t);if(a)return a.length===1?a[0]:U3(n,{countries:a,metadata:r.metadata})}function ma(t,e,n){var r=B3(t,n),a=r.carrierCode,o=r.nationalNumber;if(o!==t){if(!Y3(t,o,n))return{nationalNumber:t};if(n.numberingPlan.possibleLengths()&&(e||(e=wd(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!G3(o,e,n)))return{nationalNumber:t}}return{nationalNumber:o,carrierCode:a}}function Y3(t,e,n){return!(ut(t,n.nationalNumberPattern())&&!ut(e,n.nationalNumberPattern()))}function G3(t,e,n){switch(Wa(t,e,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function q3(t,e,n,r,a){var o=n?_a(n,a):r;if(t.indexOf(o)===0){a=new We(a),a.selectNumberingPlan(n,o);var s=t.slice(o.length),d=ma(s,e,a),i=d.nationalNumber,c=ma(t,e,a),u=c.nationalNumber;if(!ut(u,a.nationalNumberPattern())&&ut(i,a.nationalNumberPattern())||Wa(u,e,a)==="TOO_LONG")return{countryCallingCode:o,number:s}}return{number:t}}function xd(t,e,n,r,a){if(!t)return{};var o;if(t[0]!=="+"){var s=W3(t,n,r,a);if(s&&s!==t)o=!0,t="+"+s;else{if(n||r){var d=q3(t,e,n,r,a),i=d.countryCallingCode,c=d.number;if(i)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:i,number:c}}return{number:t}}}if(t[1]==="0")return{};a=new We(a);for(var u=2;u-1<=N3&&u<=t.length;){var m=t.slice(1,u);if(a.hasCallingCode(m))return a.selectNumberingPlan(m),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:m,number:t.slice(u)};u++}return{}}function Z3(t){return t.replace(new RegExp("[".concat(cr,"]+"),"g")," ").trim()}var K3=/(\$\d)/;function J3(t,e,n){var r=n.useInternationalFormat,a=n.withNationalPrefix,o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():a&&e.nationalPrefixFormattingRule()?e.format().replace(K3,e.nationalPrefixFormattingRule()):e.format());return r?Z3(o):o}var X3=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Q3(t,e,n){var r=new We(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(X3.test(r.IDDPrefix()))return r.IDDPrefix()}var e$=";ext=",Bt=function(e){return"([".concat(rt,"]{1,").concat(e,"})")};function Sd(t){var e="20",n="15",r="9",a="6",o="[  \\t,]*",s="[:\\.ï¼]?[  \\t,-]*",d="#?",i="(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½ ?ï½ï½ï½?|доб|anexo)",c="(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)",u="[- ]+",m="[  \\t]*",f="(?:,{2}|;)",g=e$+Bt(e),h=o+i+s+Bt(e)+d,$=o+c+s+Bt(r)+d,b=u+Bt(a)+"#",v=m+f+s+Bt(n)+d,x=m+"(?:,)+"+s+Bt(r)+d;return g+"|"+h+"|"+$+"|"+b+"|"+v+"|"+x}var t$="["+rt+"]{"+za+"}",n$="["+Ha+"]{0,1}(?:["+cr+"]*["+rt+"]){3,}["+cr+rt+"]*",r$=new RegExp("^["+Ha+"]{0,1}(?:["+cr+"]*["+rt+"]){1,2}$","i"),a$=n$+"(?:"+Sd()+")?",o$=new RegExp("^"+t$+"$|^"+a$+"$","i");function s$(t){return t.length>=za&&o$.test(t)}function i$(t){return r$.test(t)}function d$(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}var rs={formatExtension:function(e,n,r){return"".concat(e).concat(r.ext()).concat(n)}};function l$(t,e,n,r){if(n?n=m$({},rs,n):n=rs,r=new We(r),t.country&&t.country!=="001"){if(!r.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));r.selectNumberingPlan(t.country)}else if(t.countryCallingCode)r.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var a=r.countryCallingCode(),o=n.v2?t.nationalNumber:t.phone,s;switch(e){case"NATIONAL":return o?(s=ur(o,t.carrierCode,"NATIONAL",r,n),Zr(s,t.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return o?(s=ur(o,null,"INTERNATIONAL",r,n),s="+".concat(a," ").concat(s),Zr(s,t.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(o);case"RFC3966":return d$({number:"+".concat(a).concat(o),ext:t.ext});case"IDD":if(!n.fromCountry)return;var d=u$(o,t.carrierCode,a,n.fromCountry,r);return d?Zr(d,t.ext,r,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function ur(t,e,n,r,a){var o=c$(r.formats(),t);return o?J3(t,o,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1)}):t}function c$(t,e){return f$(t,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(e.search(r)!==0)return!1}return ut(e,n.pattern())})}function Zr(t,e,n,r){return e?r(t,e,n):t}function u$(t,e,n,r,a){var o=_a(r,a.metadata);if(o===n){var s=ur(t,e,"NATIONAL",a);return n==="1"?n+" "+s:s}var d=Q3(r,void 0,a.metadata);if(d)return"".concat(d," ").concat(n," ").concat(ur(t,null,"INTERNATIONAL",a))}function m$(){for(var t=1,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(;t<n.length;){if(n[t])for(var a in n[t])n[0][a]=n[t][a];t++}return n[0]}function f$(t,e){for(var n=0;n<t.length;){if(e(t[n]))return t[n];n++}}function Dn(t){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(t)}function as(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function os(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 14,661 bytes, lines 17-19
17e%2?as(Object(n),!0).forEach(function(r){h$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function h$(t,e,n){return(e=Pd(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Pd(r.key),r)}}function y$(t,e,n){return e&&g$(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pd(t){var e=$$(t,"string");return Dn(e)=="symbol"?e:e+""}function $$(t,e){if(Dn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var b$=function(){function t(e,n,r){if(p$(this,t),!e)throw new TypeError("First argument is required");if(typeof e!="string")throw new TypeError("First argument must be a string");if(e[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Qt(n)&&Qt(n.countries)){r=n;var a=e;if(!x$.test(a))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=xd(a,void 0,void 0,void 0,r),s=o.countryCallingCode,d=o.number;if(n=d,e=s,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");$d(r);var i=w$(e,r),c=i.country,u=i.countryCallingCode;this.country=c,this.countryCallingCode=u,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return y$(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:O3(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return k3(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return T3(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new We(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return Ba(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return l$(this,n,r?os(os({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])}(),v$=function(e){return/^[A-Z]{2}$/.test(e)};function w$(t,e){var n,r,a=new We(e);return v$(t)?(n=t,a.selectNumberingPlan(n),r=a.countryCallingCode()):r=t,{country:n,countryCallingCode:r}}var x$=/^\+\d+$/;function fa(t){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(t)}function S$(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function P$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k$(t,e,n){return e=On(e),C$(t,Ua()?Reflect.construct(e,n||[],On(t).constructor):e.apply(t,n))}function C$(t,e){if(e&&(fa(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M$(t)}function M$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tn(t,e)}function ha(t){var e=typeof Map=="function"?new Map:void 0;return ha=function(r){if(r===null||!O$(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return T$(r,arguments,On(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Tn(a,r)},ha(t)}function T$(t,e,n){if(Ua())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var a=new(t.bind.apply(t,r));return n&&Tn(a,n.prototype),a}function Ua(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ua=function(){return!!t})()}function O$(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function Tn(t,e){return Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Tn(t,e)}function On(t){return On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},On(t)}var lt=function(t){function e(n){var r;return P$(this,e),r=k$(this,e,[n]),Object.setPrototypeOf(r,e.prototype),r.name=r.constructor.name,r}return D$(e,t),S$(e)}(ha(Error)),ss=new RegExp("(?:"+Sd()+")$","i");function I$(t){var e=t.search(ss);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(ss),a=1;a<r.length;){if(r[a])return{number:n,ext:r[a]};a++}}var E$={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function N$(t){return E$[t]}function F$(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=A$(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A$(t,e){if(t){if(typeof t=="string")return is(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?is(t,e):void 0}}function is(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ds(t){for(var e="",n=F$(t.split("")),r;!(r=n()).done;){var a=r.value;e+=R$(a,e)||""}return e}function R$(t,e,n){return t==="+"?e?void 0:"+":N$(t)}var kd="+",V$="[\\-\\.\\(\\)]?",ls="(["+rt+"]|"+V$+")",j$="^\\"+kd+ls+"*["+rt+"]"+ls+"*$",L$=new RegExp(j$,"g"),pa=rt,_$="["+pa+"]+((\\-)*["+pa+"])*",W$="a-zA-Z",B$="["+W$+"]+((\\-)*["+pa+"])*",z$="^("+_$+"\\.)*"+B$+"\\.?$",H$=new RegExp(z$,"g"),cs="tel:",ga=";phone-context=",U$=";isub=";function Y$(t){var e=t.indexOf(ga);if(e<0)return null;var n=e+ga.length;if(n>=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function G$(t){return t===null?!0:t.length===0?!1:L$.test(t)||H$.test(t)}function q$(t,e){var n=e.extractFormattedPhoneNumber,r=Y$(t);if(!G$(r))throw new lt("NOT_A_NUMBER");var a;if(r===null)a=n(t)||"";else{a="",r.charAt(0)===kd&&(a+=r);var o=t.indexOf(cs),s;o>=0?s=o+cs.length:s=0;var d=t.indexOf(ga);a+=t.substring(s,d)}var i=a.indexOf(U$);if(i>0&&(a=a.substring(0,i)),a!=="")return a}var Z$=250,K$=new RegExp("["+Ha+rt+"]"),J$=new RegExp("[^"+rt+"#]+$");function X$(t,e,n){if(e=e||{},n=new We(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new lt("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=e4(t,e.v2,e.extract),a=r.number,o=r.ext,s=r.error;if(!a){if(e.v2)throw s==="TOO_SHORT"?new lt("TOO_SHORT"):new lt("NOT_A_NUMBER");return{}}var d=n4(a,e.defaultCountry,e.defaultCallingCode,n),i=d.country,c=d.nationalNumber,u=d.countryCallingCode,m=d.countryCallingCodeSource,f=d.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new lt("INVALID_COUNTRY");return{}}if(!c||c.length<za){if(e.v2)throw new lt("TOO_SHORT");return{}}if(c.length>E3){if(e.v2)throw new lt("TOO_LONG");return{}}if(e.v2){var g=new b$(u,c,n.metadata);return i&&(g.country=i),f&&(g.carrierCode=f),o&&(g.ext=o),g.__countryCallingCodeSource=m,g}var h=(e.extended?n.hasSelectedNumberingPlan():i)?ut(c,n.nationalNumberPattern()):!1;return e.extended?{country:i,countryCallingCode:u,carrierCode:f,valid:h,possible:h?!0:!!(e.extended===!0&&n.possibleLengths()&&vd(c,i,n)),phone:c,ext:o}:h?t4(i,c,o):{}}function Q$(t,e,n){if(t){if(t.length>Z$){if(n)throw new lt("TOO_LONG");return}if(e===!1)return t;var r=t.search(K$);if(!(r<0))return t.slice(r).replace(J$,"")}}function e4(t,e,n){var r=q$(t,{extractFormattedPhoneNumber:function(s){return Q$(s,n,e)}});if(!r)return{};if(!s$(r))return i$(r)?{error:"TOO_SHORT"}:{};var a=I$(r);return a.ext?a:{number:r}}function t4(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function n4(t,e,n,r){var a=xd(ds(t),void 0,e,n,r.metadata),o=a.countryCallingCodeSource,s=a.countryCallingCode,d=a.number,i;if(s)r.selectNumberingPlan(s);else if(d&&(e||n))r.selectNumberingPlan(e,n),e&&(i=e),s=n||_a(e,r.metadata);else return{};if(!d)return{countryCallingCodeSource:o,countryCallingCode:s};var c=ma(ds(d),i,r),u=c.nationalNumber,m=c.carrierCode,f=wd(s,{nationalNumber:u,metadata:r});return f&&(i=f,f==="001"||r.selectNumberingPlan(i)),{country:i,countryCallingCode:s,countryCallingCodeSource:o,nationalNumber:u,carrierCode:m}}function In(t){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(t)}function us(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ms(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?us(Object(n),!0).forEach(function(r){r4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function r4(t,e,n){return(e=a4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a4(t){var e=o4(t,"string");return In(e)=="symbol"?e:e+""}function o4(t,e){if(In(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(In(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cd(t,e,n){return X$(t,ms(ms({},e),{},{v2:!0}),n)}function En(t){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},En(t)}function fs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function s4(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fs(Object(n),!0).forEach(function(r){i4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function i4(t,e,n){return(e=d4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d4(t){var e=l4(t,"string");return En(e)=="symbol"?e:e+""}function l4(t,e){if(En(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(En(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function c4(t,e){return h4(t)||f4(t,e)||m4(t,e)||u4()}function u4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m4(t,e){if(t){if(typeof t=="string")return hs(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hs(t,e):void 0}}function hs(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function f4(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,o,s,d=[],i=!0,c=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(i=(r=o.call(n)).done)&&(d.push(r.value),d.length!==e);i=!0);}catch(u){c=!0,a=u}finally{try{if(!i&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return d}}function h4(t){if(Array.isArray(t))return t}function Md(t){var e=Array.prototype.slice.call(t),n=c4(e,4),r=n[0],a=n[1],o=n[2],s=n[3],d,i,c;if(typeof r=="string")d=r;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")s?(i=o,c=s):(i=void 0,c=o),a&&(i=s4({defaultCountry:a},i));else if(Qt(a))o?(i=a,c=o):c=a;else throw new Error("Invalid second argument: ".concat(a));return{text:d,options:i,metadata:c}}function p4(){var t=Md(arguments),e=t.text,n=t.options,r=t.metadata;return Cd(e,n,r)}function Nn(t){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(t)}function ps(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function gs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
19e%2?ps(Object(n),!0).forEach(function(r){g4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function g4(t,e,n){return(e=y4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y4(t){var e=$4(t,"string");return Nn(e)=="symbol"?e:e+""}function $4(t,e){if(Nn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function b4(t,e,n){e&&e.defaultCountry&&!S3(e.defaultCountry,n)&&(e=gs(gs({},e),{},{defaultCountry:void 0}));try{return Cd(t,e,n)}catch(r){if(!(r instanceof lt))throw r}}function Fn(t){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fn(t)}function ys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function $s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ys(Object(n),!0).forEach(function(r){v4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function v4(t,e,n){return(e=w4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w4(t){var e=x4(t,"string");return Fn(e)=="symbol"?e:e+""}function x4(t,e){if(Fn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Fn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function S4(){var t=Md(arguments),e=t.text,n=t.options,r=t.metadata;n=$s($s({},n),{},{extract:!1});var a=b4(e,n,r);return a&&a.isValid()||!1}function P4(){return yd(p4,arguments)}function k4(){return yd(S4,arguments)}const C4=(t,e)=>{if(!t)return{countryCode:e,national:""};try{const n=P4(t);if(n)return{countryCode:`+${n.countryCallingCode}`,national:n.nationalNumber}}catch{}return{countryCode:e,national:t}},M4=({systemId:t,stepType:e,required:n,initialPhoneNumber:r,isAlreadyCompleted:a,onNext:o,onSkip:s})=>{var se;const{t:d}=De(),i=e===le.type.VERIFIED_PHONE_NUMBER,{data:c}=Vn(),{data:u}=Ts(Nl),m=((se=c==null?void 0:c.system)==null?void 0:se.phoneCountryCode)??"+36",f=C4(r,m),[g,h]=p.useState(f.countryCode),[$,b]=p.useState(f.national),[v,x]=p.useState(""),[C,M]=p.useState(!1),[S,I]=p.useState(""),O=`${g}${$}`,P=p.useRef(""),R=p.useRef(void 0),V=p.useCallback(async K=>{const de=await Ve.onboardingControllerStartVerifyPhoneNumber(t,{phoneNumber:K});return P.current=de.state,{ttl:de.ttl,otpLength:de.length,resendCooldownSeconds:void 0}},[t]),D=p.useCallback(async K=>{const de=await Ve.onboardingControllerVerifyPhoneNumber(t,{state:P.current,code:K});return R.current=de,!0},[t]),y=Ms(V,D);if(a&&i)return l.jsx(ve,{heading:d("BudapestOnboarding.PhoneStep.verifiedHeading","Phone verified!"),icon:l.jsx(mn,{sx:{fontSize:48}}),canSkip:!1,onSubmit:K=>{K.preventDefault(),o()},children:l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,children:d("common.continue","Continue")})});const k=()=>k4(O)?(x(""),!0):(x(d("BudapestOnboarding.validation.phoneInvalid","Enter a valid phone number.")),!1),T=async()=>{M(!0),I("");try{const K=await Ve.onboardingControllerUpdatePhoneNumber(t,{phoneNumber:O});o(K)}catch(K){I(st(K,"Failed to save. Please try again."))}finally{M(!1)}},E=async K=>{K.preventDefault(),k()&&await y.startFlow(O)},A=async K=>{K.preventDefault(),k()&&await T()},H=K=>{K.preventDefault(),o(R.current)},U=(u==null?void 0:u.phoneCountryCodes)??[],ne=(K,de)=>l.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:2,mb:2},children:[l.jsxs(Q,{sx:{display:"flex",gap:1},children:[l.jsx(il,{value:g,onChange:he=>h(he.target.value),sx:{minWidth:100},disabled:de,children:U.length>0?U.map(he=>l.jsx(Ja,{value:(he==null?void 0:he.code)??"",children:he==null?void 0:he.code},he==null?void 0:he.code)):l.jsx(Ja,{value:m,children:m})}),l.jsx(je,{fullWidth:!0,type:"tel",label:d("BudapestOnboarding.PhoneStep.number","Phone number"),value:$,onChange:he=>b(he.target.value.replace(/\D/g,"")),disabled:de,error:!!v,helperText:v,inputProps:{inputMode:"numeric"}})]}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:de||!$,children:de?l.jsx(Pe,{size:24}):K})]});return i?y.phase===ar.Input?l.jsx(ve,{heading:d("BudapestOnboarding.PhoneStep.heading","Your phone number"),icon:l.jsx(mn,{sx:{fontSize:48}}),error:y.error,canSkip:!n,onSkip:s,onSubmit:E,children:ne(d("BudapestOnboarding.PhoneStep.sendCode","Send verification code"),y.loading)}):y.phase===ar.Verification?l.jsx(ve,{heading:d("BudapestOnboarding.PhoneStep.verifyHeading","Verify your phone"),icon:l.jsx(mn,{sx:{fontSize:48}}),canSkip:!1,children:l.jsx(pd,{otpLength:y.otpLength,ttlSeconds:y.ttl,code:y.code,onCodeChange:y.setCode,onVerify:y.verify,onResend:()=>y.resend(O),cooldownRemaining:y.cooldownRemaining,loading:y.loading,error:y.error,contactHint:O})}):l.jsx(ve,{heading:d("BudapestOnboarding.PhoneStep.verifiedHeading","Phone verified!"),icon:l.jsx(mn,{sx:{fontSize:48}}),error:S,canSkip:!1,onSubmit:H,children:l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:C,children:C?l.jsx(Pe,{size:24}):d("common.continue","Continue")})}):l.jsx(ve,{heading:d("BudapestOnboarding.PhoneStep.heading","Your phone number"),icon:l.jsx(mn,{sx:{fontSize:48}}),error:S||v,canSkip:!n,onSkip:s,onSubmit:A,children:ne(d("common.continue","Continue"),C)})},D4={vehicle:ll,data:dl,user:mr},Dd=()=>{const{data:t}=Fl({variables:{query:Sm}}),e=t==null?void 0:t.termsOfConditionItems;return!e||e.length===0?null:l.jsx($a,{"data-testid":"TermsList",sx:{mb:3},children:e.map(n=>{if(!n||!n.title||!n.body)return null;const r=n.type?D4[n.type]??rr:rr;
19return l.jsxs(ba,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,px:0,mb:2},children:[l.jsx(r,{color:"primary",sx:{fontSize:24,mt:.25,flexShrink:0}}),l.jsxs(Q,{children:[l.jsx(ce,{variant:"subtitle2",gutterBottom:!0,children:n.title}),l.jsx(ce,{variant:"body2",color:"text.secondary",children:n.body})]})]},n._key)})})},bs=({systemId:t,stepType:e,termsUrl:n,privacyUrl:r,required:a,isAlreadyCompleted:o,onNext:s,onSkip:d})=>{const{t:i}=De(),c=e===le.type.TERMS_AND_CONDITIONS||e===le.type.SIGNED_TERMS_AND_CONDITIONS,[u,m]=p.useState(!1),[f,g]=p.useState(""),h=async b=>{if(b.preventDefault(),o){s();return}m(!0),g("");try{let v;c?v=await Ve.onboardingControllerAcceptTermsAndConditions(t,{accepted:!0}):v=await Ve.onboardingControllerAcceptPrivacyPolicy(t,{accepted:!0}),s(v)}catch(v){g(st(v,"Failed to accept. Please try again."))}finally{m(!1)}},$=c?n:r;return l.jsx(ve,{heading:c?i("BudapestOnboarding.TermsStep.heading","Terms and Conditions"):i("BudapestOnboarding.PrivacyStep.heading","Privacy Policy"),icon:c?l.jsx(rr,{sx:{fontSize:48}}):l.jsx(cl,{sx:{fontSize:48}}),error:f,canSkip:!a,onSkip:d,onSubmit:h,children:l.jsxs(Q,{sx:{mb:2},children:[$?l.jsx(Q,{component:"iframe",src:$,sx:{width:"100%",height:400,border:"1px solid",borderColor:"divider",borderRadius:1,mb:2},title:c?"Terms and Conditions":"Privacy Policy"}):l.jsxs(l.Fragment,{children:[l.jsx(ce,{variant:"body2",color:"text.primary",sx:{mb:2},children:c?i("BudapestOnboarding.TermsStep.body","Please read and accept the Terms and Conditions to continue."):i("BudapestOnboarding.PrivacyStep.body","Please read and accept the Privacy Policy to continue.")}),c&&l.jsx(Dd,{})]}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:u,children:u?l.jsx(Pe,{size:24}):c?i("BudapestOnboarding.TermsStep.accept","Accept Terms and Conditions"):i("BudapestOnboarding.PrivacyStep.accept","Accept Privacy Policy")})]})})},T4=[{type:"image",src:"/images/tutorial/pickup.png",titleKey:"tutorial.pickup.title",titleFallback:"Pick-up",descriptionKey:"tutorial.pickup.description",descriptionFallback:`Pick up the bike using the QR code scanner in the MOL Bubi app. A loud click from the opening smart lock confirms that the pick-up was successful. 20 21Find a nearby bike using the map. Scan the QR code on the selected bike inside the app to unlock it.`},{type:"image",src:"/images/tutorial/use.png",titleKey:"tutorial.use.title",titleFallback:"Use",descriptionKey:"tutorial.use.description",descriptionFallback:`You can use classic bikes in the usual way. 22 23For electric bikes, pedal assist starts after you begin pedaling.`},{type:"image",src:"/images/tutorial/reservation-parking.png",titleKey:"tutorial.reservationParking.title",titleFallback:"Reservation and parking",descriptionKey:"tutorial.reservationParking.description",descriptionFallback:`You can reserve a bike in advance at the selected Mobi-point, so it will be available for you when you start your ride. 24 25If you stop briefly during your trip (for example, to pop into a shop), use the parking feature. Your rental does not end, the bike stays assigned to you, and n
25o one else can take it. Keep in mind that waiting time counts toward your usage time.`},{type:"image",src:"/images/tutorial/return-bike.png",titleKey:"tutorial.returnBike.title",titleFallback:"Return the bike",descriptionKey:"tutorial.returnBike.description",descriptionFallback:`You can return the bike at the Mobi-points shown on the map inside the app. The number shows how many bikes are available at that Mobi-point (if the number is 0, you can still return your bike). Bikes cannot be returned at Mobi-points that are not visible in the app. 26 27If you return the bike outside a designated Mobi-point, you will need to pay an out-of-Mobi-point locking surcharge.`},{type:"image",src:"/images/tutorial/all-set.png",titleKey:"tutorial.allSet.title",titleFallback:"You're all set",descriptionKey:"tutorial.allSet.description",descriptionFallback:"Have a good ride, and ride carefully!"}],O4=({systemId:t,required:e,onNext:n,onSkip:r,assets:a})=>{const{t:o}=De(),[s,d]=p.useState(0),[i,c]=p.useState(!1),[u,m]=p.useState(""),f=a??T4,g=s===f.length-1,h=f[s],$=async()=>{if(!g){d(v=>v+1);return}c(!0),m("");try{const v=await Ve.onboardingControllerAcknowledgeTutorial(t,{acknowledged:!0});n(v)}catch(v){m(st(v,"Failed. Please try again."))}finally{c(!1)}},b=v=>{v.preventDefault(),$()};return l.jsxs(Q,{component:"form",onSubmit:b,sx:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",mx:"auto",maxWidth:480,px:2,width:"100%"},children:[l.jsxs(Q,{sx:{position:"relative",width:"100%",mb:2},children:[(h==null?void 0:h.type)==="video"?l.jsx(Q,{component:"video",src:h.src,poster:h.poster,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,sx:{width:"100%",borderRadius:2,maxHeight:320,objectFit:"cover",display:"block"}},h.src):l.jsx(Q,{component:"img",src:h==null?void 0:h.src,alt:"",sx:{width:"100%",maxHeight:320,objectFit:"contain",borderRadius:2,display:"block"}}),l.jsx(Q,{sx:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:56,height:56,borderRadius:"50%",bgcolor:"primary.main",display:"flex",alignItems:"center",justifyContent:"center",color:"white",boxShadow:2},children:l.jsx(ul,{sx:{fontSize:32}})})]}),l.jsx(ce,{variant:"h5",component:"h1",gutterBottom:!0,children:h!=null&&h.titleKey?o(h.titleKey,h.titleFallback??""):o("BudapestOnboarding.TutorialStep.heading","How it works")}),(h==null?void 0:h.descriptionKey)&&l.jsx(ce,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-line",mb:2,textAlign:"left",width:"100%"},children:o(h.descriptionKey,h.descriptionFallback??"")}),u&&l.jsx(Q,{sx:{color:"error.main",mb:1,width:"100%"},children:l.jsx(ce,{variant:"body2",children:u})}),l.jsx(va,{variant:"dots",steps:f.length,position:"static",activeStep:s,sx:{flexGrow:0,background:"transparent",justifyContent:"center",mb:2},nextButton:l.jsx("span",{}),backButton:l.jsx("span",{})}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:i,sx:{mb:1},children:i?l.jsx(Pe,{size:24}):g?o("BudapestOnboarding.TutorialStep.done","Done"):o("common.continue","Continue")}),s>0&&l.jsx(fe,{variant:"text",onClick:()=>d(v=>v-1),children:o("common.back","Back")}),!e&&r&&l.jsx(fe,{variant:"text",onClick:r,size:"small",sx:{mt:1},children:o("Onboarding.skip","Skip step")})]})},I4=({stepId:t,onFinished:e,onStepChange:n})=>{var T;const{t:r}=De(),a=Rn(),{data:o,loading:s}=Vn(),d=((T=o==null?void 0:o.system)==null?void 0:T.id)??null,i=Al(d),{steps:c,data:u,currentStep:m,currentIndex:f,totalSteps:g,canGoBack:h,advance:$,goBack:b,skip:v,loading:x,isEditMode:C,error:M}=i,S=m==null?void 0:m.type;p.useEffect(()=>{S&&t!==S&&n(S)},[S,t,n]);const I=i.pending.filter(E=>E.required);if(p.useEffect(()=>{!x&&!s&&I.length===0&&c.length>0&&e()},[x,s,I.length,c.length,e]),s||x||!m&&!C||!d)return l.jsx(bt,{maxWidth:"md",sx:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:l.jsx(Pe,{})});const O=E=>({[le.type.NAME]:r("BudapestOnboarding.step.name","Name"),[le.type.EMAIL]:r("BudapestOnboarding.step.email","Email"),[le.type.VERIFIED_EMAIL]:r("BudapestOnboarding.step.verifiedEmail","Email (verified)"),[le.type.PHONE_NUMBER]:r("BudapestOnboarding.step.phoneNumber","Phone number"),[le.type.VERIFIED_PHONE_NUMBER]:r("BudapestOnboarding.step.verifiedPhoneNumber","Phone number (verified)"),[le.type.STREET_ADDRESS]:r("BudapestOnboarding.step.streetAddress","Address"),[le.type.VERIFIED_STREET_ADDRESS]:r("BudapestOnboarding.step.verifiedStreetAddress","Address (verified)"),[le.type.BILLING_ADDRESS]:r("BudapestOnboarding.step.billingAddress","Billing address"),[le.type.PERSONAL_NUMBER]:r("BudapestOnboarding.step.personalNumber","Personal number"),[le.type.VERIFIED_PE
27RSONAL_NUMBER]:r("BudapestOnboarding.step.verifiedPersonalNumber","Personal number (verified)"),[le.type.GENDER]:r("BudapestOnboarding.step.gender","Gender"),[le.type.TERMS_AND_CONDITIONS]:r("BudapestOnboarding.step.terms","Terms & conditions"),[le.type.SIGNED_TERMS_AND_CONDITIONS]:r("BudapestOnboarding.step.terms","Terms & conditions"),[le.type.VIEW_PRIVACY_POLICY]:r("BudapestOnboarding.step.privacyPolicy","Privacy policy"),[le.type.SIGNED_PRIVACY_POLICY]:r("BudapestOnboarding.step.privacyPolicy","Privacy policy"),[le.type.TUTORIAL]:r("BudapestOnboarding.step.tutorial","Tutorial"),[le.type.PAYMENT_METHOD]:r("BudapestOnboarding.step.paymentMethod","Payment method"),[le.type.BIRTHDATE]:r("BudapestOnboarding.step.birthdate","Date of birth")})[E]??E;if(C&&!m)return l.jsxs(bt,{maxWidth:"sm",sx:{py:4,minHeight:"100vh"},"data-testid":"BudapestOnboardingWizard",children:[l.jsx(ce,{variant:"h5",sx:{mb:1,fontWeight:600},children:r("BudapestOnboarding.editMode.heading","Your profile")}),l.jsx(ce,{variant:"body2",color:"text.primary",sx:{mb:3},children:r("BudapestOnboarding.editMode.subheading","All required information has been provided. You can edit any step below.")}),l.jsx(ml,{sx:{mb:1}}),M&&l.jsx(en,{severity:"error",sx:{my:2},action:l.jsx(fe,{color:"inherit",size:"small",onClick:()=>i.refetch(),children:r("common.retry","Retry")}),children:M}),c.length===0&&!M?l.jsxs(Q,{sx:{py:3,textAlign:"center"},children:[l.jsx(ce,{variant:"body2",color:"text.primary",sx:{mb:2},children:r("BudapestOnboarding.editMode.empty","Nothing to edit right now.")}),l.jsx(fe,{variant:"outlined",onClick:()=>i.refetch(),children:r("common.retry","Retry")})]}):l.jsx($a,{disablePadding:!0,children:c.map((E,A)=>l.jsxs(ba,{divider:A<c.length-1,sx:{py:1.5},children:[l.jsx(fl,{primary:O(E.type),secondary:E.required?r("BudapestOnboarding.editMode.required","Required"):r("BudapestOnboarding.editMode.optional","Optional")}),l.jsx(hl,{children:l.jsx(fe,{size:"small",startIcon:l.jsx(pl,{}),onClick:()=>{const H=c.findIndex(U=>U.type===E.type);i.goToStep(H)},children:r("common.edit","Edit")})})]},E.type))})]});const P=m,R=P.required?void 0:v,D=!new Set(i.pending.map(E=>E.type)).has(P.type),y=()=>{const E=P.type;switch(E){case le.type.NAME:return l.jsx(i3,{systemId:d,required:P.required,initialFirstName:u==null?void 0:u.firstName,initialLastName:u==null?void 0:u.lastName,onNext:$,onSkip:R});case le.type.EMAIL:case le.type.VERIFIED_EMAIL:return l.jsx(s3,{systemId:d,stepType:E,required:P.required,initialEmail:u==null?void 0:u.email,isAlreadyCompleted:D,onNext:$,onSkip:R});case le.type.PHONE_NUMBER:case le.type.VERIFIED_PHONE_NUMBER:return l.jsx(M4,{systemId:d,stepType:E,required:P.required,initialPhoneNumber:u==null?void 0:u.phoneNumber,isAlreadyCompleted:D,onNext:$,onSkip:R});case le.type.STREET_ADDRESS:case le.type.VERIFIED_STREET_ADDRESS:return l.jsx(Lm,{systemId:d,stepType:E,required:P.required,initialData:u,onNext:$,onSkip:R});case le.type.BILLING_ADDRESS:return l.jsx(zm,{systemId:d,required:P.required,initialData:u,onNext:$,onSkip:R});case le.type.PERSONAL_NUMBER:case le.type.VERIFIED_PERSONAL_NUMBER:return l.jsx(c3,{systemId:d,stepType:E,required:P.required,initialValue:u==null?void 0:u.personalNumber,onNext:$,onSkip:R});case le.type.GENDER:return l.jsx(Rl,{systemId:d,required:P.required,initialGender:u==null?void 0:u.gender,onNext:$,onSkip:R});case le.type.TERMS_AND_CONDITIONS:case le.type.SIGNED_TERMS_AND_CONDITIONS:return l.jsx(bs,{systemId:d,stepType:E,required:P.required,isAlreadyCompleted:D,onNext:$,onSkip:R});case le.type.VIEW_PRIVACY_POLICY:case le.type.SIGNED_PRIVACY_POLICY:return l.jsx(bs,{systemId:d,stepType:E,privacyUrl:`/${a}/${It("privacyPolicy",a)}`,required:P.required,isAlreadyCompleted:D,onNext:$,onSkip:R});case le.type.TUTORIAL:return l.jsx(O4,{systemId:d,required:P.required,onNext:$,onSkip:R});case le.type.PAYMENT_METHOD:return l.jsx(d3,{required:P.required,onNext:$,onSkip:R});case le.type.BIRTHDATE:return l.jsx(o3,{systemId:d,required:P.required,initialBirthdate:u==null?void 0:u.birthdate,onNext:$,onSkip:R});default:return null}},k=P.type===le.type.TUTORIAL;return l.jsxs(bt,{maxWidth:"md",sx:{py:4,minHeight:"100vh"},"data-testid":"BudapestOnboardingWizard",children:[!k&&l.jsxs(Q,{sx:{mb:2,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[h&&l.jsx(fe,{variant:"text",onClick:b,size:"small",children:r("common.back","Back")}),l.jsx(Q,{sx:{flex:1,display:"flex",justifyContent:"center"},children:l.jsx(va,{variant:"dots",steps:g,position:"static",activeStep:f,sx:{flexGrow:0,background:"transparent","& .MuiMobileStepper-dot":{width:10,height:10,margin:"0 4px"},"& .MuiMobileStepper-dotActive":{width:12,height:12}},nextButton:l.jsx("span",{}),backButton:l.jsx("span",{})})}),h&&l.jsx(Q,{sx:{minWidth:64}})]}),l.jsx(Q,{sx:{display:"flex",justifyContent:"center",alignItems:"flex-start"},children:y()}),l.jsx(Q,{sx:{mt:4,textAlign:"center"},children:l.jsx(xn,{component:Sn,to:`/${a}/${It("privacyPolicy",a)}`,target:"_blank",variant:"body2",color:"text.primary",children:r("Onboarding.personalInformation","Our privacy policy")})})]})},E4=({currentUser:t,required:e,onNext:n,onSkip:r})=>{var x;const{t:a}=De(),o=Rn(),[s,d]=p.useState({terms_of_use_and_privacy_policy:!1,registration_agreement_withdrawal:!1,subscription_agreement_withdrawal:!1,send_data_to_third_parties:!1}),[i,c]=p.useState(!1),{data:u}=Vn(),[m,{loading:f,error:g}]=St(Vl,{onCompleted:()=>{n()}}),h=C=>{d({...s,[C.target.name]:C.target.checked}),c(!1)},$=C=>{var I;C.preventDefault();const M=((I=u==null?void 0:u.system)==null?void 0:I.legalConsents)||[];if(!M.every(O=>O.enforcement===jl.Required?s[O.type]:!0)){c(!0);return}m({variables:{consents:M.map(O=>({type:O.type,enforcement:O.enforcement,accepted:s[O.type]}))}})},b=((x=u==null?void 0:u.system)==null?void 0:x.legalConsents)||[],v=C=>{var I,O;if(!b.find(P=>P.type===C))return null;const S=s[C];switch(C){case Un.TermsOfUseAndPrivacyPolicy:return l.jsx(Ht,{control:l.jsx(Ut,{id:"terms_of_use_and_privacy_policy",checked:S,onChange:h,name:"terms_of_use_and_privacy_policy",color:"primary",sx:{py:0,pl:0}}),label:l.jsx(ce,{variant:"body2",children:a("modules.BuyProduct.agreeToTermsAndPrivacyPolicy","I have read and downloaded the {termsOfUse} and {privacyPolicy}, and agree to abide by them.",{termsOfUse:l.jsx(xn,{component:Sn,to:`/${o}/${It("termsOfUse",o)}`,target:"_blank",children:a("modules.BuyProduct.termsOfUse","Terms of Use")}),privacyPolicy:l.jsx(xn,{component:Sn,to:(O=(I=u==null?void 0:u.settings)==null?void 0:I.privacyPageSlug)!=null&&O.current?`/${o}/${u.settings.privacyPageSlug.current}`:`/${o}/privacy-policy`,target:"_blank",children:a("modules.VerifyPhoneNumber.CreateVerification.recaptchaLabel.privacyPolicy","Privacy Policy")})})}),sx:{alignItems:"flex-start",mb:2,m:0}},C);case Un.RegistrationAgreementWithdrawal:return l.jsx(Ht,{control:l.jsx(Ut,{id:"registration_agreement_withdrawal",checked:S,onChange:h,name:"registration_agreement_withdrawal",color:"primary",sx:{py:0}}),label:l.jsx(ce,{variant:"body2",children:a("terms_right_of_withdrawal_registration","I agree to start using the Service before the end of the withdrawal period. I acknowledge that upon completion of the Registration, I lose my right to withdraw from the Agreement.")}),sx:{alignItems:"flex-start",mb:2,m:0}},C);case Un.SubscriptionAgreementWithdrawal:return l.jsx(Ht,{control:l.jsx(Ut,{id:"subscription_agreement_withdrawal",checked:S,onChange:h,name:"subscription_agreement_withdrawal",color:"primary",sx:{py:0}}),label:l.jsx(ce,{variant:"body2",children:a("terms_right_of_withdrawal_subscription","I agree to start using the Subscription Agreement before the end of the withdrawal period. I acknowledge that I forfeit my right to withdraw from the Subscription Agreement upon the Operator's full performance of the Subscription Agreement.")}),sx:{alignItems:"flex-start",mb:2,m:0}},C);case Un.SendDataToThirdParties:return l.jsx(Ht,{control:l.jsx(Ut,{id:"send_data_to_third_parties",checked:S,onChange:h,name:"send_data_to_third_parties",color:"primary",sx:{py:0}}),label:l.jsx(ce,{variant:"body2",children:a("acceptTerms.showAgreedToSendDataToThirdPartiesLabel","Share contact data with our partners for statistical and profiling purposes")}),sx:{alignItems:"flex-start",mb:2,m:0}},C);default:return null}};return l.jsx(ve,{heading:a("terms_have_changed","Terms have changed"),icon:l.jsx(rr,{sx:{fontSize:48}}),error:g==null?void 0:g.message,canSkip:!e,onSkip:r,onSubmit:$,children:l.jsxs(Q,{sx:{textAlign:"left"},children:[l.jsx(ce,{variant:"body2",color:"text.secondary",sx:{mb:3},children:a("terms_have_changed_description","Our Terms of Use have changed, and we require you to accept these updated agreements in order to continue using the service.")}),l.jsx(Dd,{}),l.jsx(Q,{sx:{mb:3},children:b.map(C=>v(C.type))}),i&&l.jsx(en,{severity:"error",sx:{mb:2},children:a("modules.BuyProduct.SummaryStep.missingTosAccept","Terms of Use must be accepted")}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:f,"data-testid":"Terms__Accept",sx:{mb:2},children:f?l.jsx(Pe,{size:24}):a("modules.BuyProduct.TermsStep.button","Accept terms of use")}),l.jsx(Q,{sx:{textAlign:"center"},children:l.jsx(xn,{component:Sn,to:`/${o}/${It("termsOfUse",o)}`,target:"_blank",children:a("modules.BuyProduct.TermsStep.link","See complete terms of use")})})]})})},N4=({currentUser:t,required:e,onNext:n,onSkip:r})=>{const{t:a}=De(),[o,s]=p.useState((t==null?void 0:t.birthYear)||""),[d,i]=p.useState(""),[c,{loading:u,error:m}]=St(jn,{onCompleted:()=>{n()}}),f=h=>
27{if(h.preventDefault(),o&&o.length!==4){i(a("Onboarding.BirthYearForm.validationError","Enter a valid birth year"));return}i(""),c({variables:{input:{birthYear:o||null}}})},g=h=>{const $=h.target.value;($===""||/^\d+$/.test($)&&$.length<=4)&&(s($),i(""))};return l.jsxs(ve,{heading:a("Onboarding.BirthYearForm.heading","Your year of birth"),icon:l.jsx(gl,{sx:{fontSize:48}}),error:(m==null?void 0:m.message)??d,canSkip:!e,onSkip:r,onSubmit:f,children:[l.jsxs(Q,{sx:{display:"flex",gap:1,mb:2,justifyContent:"center"},children:[l.jsx(je,{id:"birthYear",name:"birthYear",type:"tel",placeholder:"1990",value:o,onChange:g,disabled:u,autoFocus:!0,inputProps:{maxLength:4,"data-testid":"Onboarding_Birth_Input"},sx:{width:"130px"}}),l.jsx(fe,{type:"submit",variant:"contained",disabled:u,sx:{minWidth:"80px"},"data-testid":"Onboarding_Birth_Button",children:u?l.jsx(Pe,{size:24}):a("components.buttons-i18n.save","Save")})]}),l.jsx(ce,{variant:"body2",color:"text.secondary",children:a("Onboarding.BirthYearForm.description","Your age helps us understand who are using the service, and why. This is optional.")})]})},F4=({currentUser:t,required:e,onNext:n,onSkip:r})=>{const{t:a}=De(),[o,{loading:s,error:d}]=St(Ll,{onCompleted:()=>{n()}}),i=c=>{c.preventDefault(),o()};return l.jsx(ve,{heading:a("obos_membership","OBOS Membership"),icon:l.jsx(yl,{sx:{fontSize:48}}),error:d?a("obos_membership_not_found","We could not find an OBOS membership associated with your account. Please contact support if you believe this is an error."):void 0,canSkip:!e,onSkip:r,onSubmit:i,children:l.jsxs(Q,{sx:{textAlign:"center"},children:[l.jsx(Q,{component:"img",src:"https://cdn.sanity.io/images/production/default/obos-logo.png",alt:"OBOS",sx:{maxWidth:200,height:"auto",mb:3}}),l.jsx(ce,{variant:"body1",color:"text.secondary",sx:{mb:3},children:a("obos_membership_description","Connect your OBOS membership to get exclusive benefits and discounts.")}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:s,children:s?l.jsx(Pe,{size:24}):a("obos_connect_membership","Connect OBOS Membership")})]})})},A4=({currentUser:t,required:e,onNext:n,onSkip:r})=>{var S;const{t:a}=De(),[o,s]=p.useState((t==null?void 0:t.email)||""),[d,i]=p.useState(!!(t!=null&&t.agreedToReceiveEmail)),[c,u]=p.useState(!!(t!=null&&t.agreedToReceiveExternalPromotions)),[m,f]=p.useState(""),{data:g}=Ts(_l),h=((S=g==null?void 0:g.requiredUserInputFields)==null?void 0:S.email)||e,[$,{loading:b,error:v}]=St(jn,{onCompleted:()=>{n()}}),x=I=>!I&&h?(f(a("Onboarding.EmailForm.required","Please enter a valid email address.")),!1):I&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I)?(f(a("Onboarding.EmailForm.emailRequired","A valid email is required.")),!1):(f(""),!0),C=I=>{I.preventDefault(),x(o)&&$({variables:{input:{email:o,agreedToReceiveEmail:d,agreedToReceiveExternalPromotions:c}}})},M=I=>{const O=I.target.value;s(O),m&&x(O)};return l.jsx(ve,{heading:a("Onboarding.EmailForm.heading","Stay updated by e-mail"),icon:l.jsx(zt,{sx:{fontSize:48}}),error:(v==null?void 0:v.message)??m,canSkip:!e,onSkip:r,onSubmit:C,children:l.jsxs(Q,{sx:{mb:2},children:[l.jsx(je,{fullWidth:!0,id:"email",name:"email",type:"email",placeholder:a("Onboarding.EmailForm.label","Your e-mail"),value:o,onChange:M,disabled:b,required:h,autoComplete:"email",autoFocus:!0,error:!!m,"data-testid":"Onboarding_Email_Input",sx:{mb:2}}),l.jsxs(ce,{variant:"body2",color:"text.secondary",sx:{mb:2},children:[a("Onboarding.EmailForm.description","Enter your email to get receipts.")," ",h&&a("Onboarding.EmailForm.emailRequired","A valid email is required."),!h&&a("Onboarding.EmailForm.emailNotRequired","You can unsubscribe whenever you want.")]}),l.jsx(Q,{sx:{mb:2},children:l.jsx(Ht,{control:l.jsx(Ut,{checked:d,onChange:I=>i(I.target.checked),disabled:b,color:"primary",sx:{py:0}}),label:a("agreedToReceiveEmail","Receive information about the scheme, new stations etc."),sx:{alignItems:"flex-start",m:0}})}),l.jsx(Q,{sx:{mb:2},children:l.jsx(Ht,{control:l.jsx(Ut,{checked:c,onChange:I=>u(I.target.checked),disabled:b,color:"primary",sx:{py:0}}),label:a("agreedToReceiveExternalPromotions","Receive special offers and information from trusted partners, sponsors, the city etc."),sx:{alignItems:"flex-start",m:0}})}),l.jsx(fe,{type:"submit",variant:"contained",fullWidth:!0,disabled:b||!!m,"data-testid":"Onboarding_Email_Button",children:b?l.jsx(Pe,{size:24}):a("components.buttons-i18n.save","Save")})]})})},R4=({currentUser:t,required:e,onNext:n,onSkip:r})=>{const{t:a}=De(),[o,s]=p.useState((t==null?void 0:t.gender)||null),[d,{loading:i,error:c}]=St(jn,{onCompleted:()=>{n()}}),u=f=>{s(f),d({variables:{input:{gender:f}}})},m=f=>{f.preventDefault()};return l.jsxs(ve,{heading:a("Onboarding.GenderForm.heading","I'm a"),icon:l.jsx(mr,{sx:{fontSize:48}}),error:c==null?void 0:c.message,canSkip:!e,onSkip:r,onSubmit:m,children:[l.jsx(Q,{sx:{mb:2},children:l.jsxs($l,{variant:"outlined",fullWidth:!0,sx:{"& .MuiButton-root":{py:1.5}},children:[l.jsx(fe,{variant:o===Vt.Female?"contained":"outlined",disabled:i,onClick:()=>u(Vt.Female),children:a("Profile.UserForm.genders.female","Female")}),l.jsx(fe,{variant:o===Vt.Male?"contained":"outlined",disabled:i,onClick:()=>u(Vt.Male),"data-testid":"Onboarding_Gender_Male",children:a("Profile.UserForm.genders.male","Male")}),l.jsx(fe,{variant:o===Vt.Other?"contained":"outlined",disabled:i,onClick:()=>u(Vt.Other),children:a("Profile.UserForm.genders.other","Other")})]})}),l.jsx(ce,{variant:"body2",color:"text.secondary",children:a("O
27nboarding.GenderForm.description","Your gender helps us understand who are using the service, and why. This is optional.")})]})},V4=({currentUser:t,required:e,onNext:n,onSkip:r})=>{const{t:a}=De(),[o,s]=p.useState((t==null?void 0:t.name)||""),[d,{loading:i,error:c}]=St(jn,{onCompleted:()=>{n()}}),u=m=>{m.preventDefault(),d({variables:{input:{name:o}}})};return l.jsxs(ve,{heading:a("Onboarding.NameForm.heading","What is your name?"),icon:l.jsx(bl,{sx:{fontSize:48}}),error:c==null?void 0:c.message,canSkip:!e,onSkip:r,onSubmit:u,children:[l.jsxs(Q,{sx:{display:"flex",gap:1,mb:2},children:[l.jsx(je,{fullWidth:!0,id:"name",name:"name",placeholder:a("Onboarding.NameForm.label","First name"),value:o,onChange:m=>s(m.target.value),disabled:i,autoFocus:!0,"data-testid":"Onboarding_Name_Input"}),l.jsx(fe,{type:"submit",variant:"contained",disabled:i||!o.trim(),sx:{minWidth:"80px"},"data-testid":"Onboarding_Name_Button",children:i?l.jsx(Pe,{size:24}):a("components.buttons-i18n.save","Save")})]}),l.jsx(ce,{variant:"body2",color:"text.secondary",children:a("Onboarding.NameForm.description","This lets us know who we are talking to when we communicate with you. This is optional.")})]})},j4=({currentUser:t,required:e,onNext:n,onSkip:r})=>{const{t:a}=De(),[o,s]=p.useState((t==null?void 0:t.postalCode)||""),[d,{loading:i,error:c}]=St(jn,{onCompleted:()=>{n()}}),u=m=>{m.preventDefault(),d({variables:{input:{postalCode:o}}})};return l.jsxs(ve,{heading:a("Onboarding.PostalCodeForm.heading","What is your postal code?"),icon:l.jsx(Kr,{sx:{fontSize:48}}),error:c==null?void 0:c.message,canSkip:!e,onSkip:r,onSubmit:u,children:[l.jsxs(Q,{sx:{display:"flex",gap:1,mb:2},children:[l.jsx(je,{fullWidth:!0,id:"postalCode",name:"postalCode",placeholder:a("postal_code","Postal code"),value:o,onChange:m=>s(m.target.value),disabled:i,autoFocus:!0,"data-testid":"Onboarding_Postal_Input"}),l.jsx(fe,{type:"submit",variant:"contained",disabled:i||!o.trim(),sx:{minWidth:"80px"},"data-testid":"Onboarding_Postal_Button",children:i?l.jsx(Pe,{size:24}):a("components.buttons-i18n.save","Save")})]}),l.jsx(ce,{variant:"body2",color:"text.secondary",children:a("Onboarding.PostalCodeForm.description","Your location helps us understand who are using the service, and why. This is optional.")})]})},L4=["agreedToTerms","paymentMethod","name","birthYear","gender","postalCode","email","obos"],_4={agreedToTerms:E4,paymentMethod:gd,name:V4,birthYear:N4,gender:R4,postalCode:j4,email:A4,obos:F4},W4=({stepId:t,onFinished:e,onStepChange:n})=>{var E,A;const{t:r}=De(),a=Rn();pr();const[o]=wa(),{currentUser:s,loading:d}=Ds(),{steps:i,loading:c}=Xa(s),{steps:u}=Xa(s,!1,L4),{data:m}=Vn(),[f,g]=p.useState(),[h,$]=p.useState(!1),[b,v]=p.useState(!1),[x,C]=p.useState(t),M=o.get("setupToken"),S=o.get("setup_intent"),I=p.useMemo(()=>!!(M||S),[M,S]),O=t!==x;p.useEffect(()=>{if(u){if(O&&t){g(u),$(!0),C(t);return}if(!h){g(u),$(!0),C(t);return}I&&!b&&(g(u),v(!0))}},[u,h,I,b,t,O,x]);let P=0,R=0,V;if(t&&f){const H=f.findIndex(U=>U.id===t);H>=0&&(P=H,V=f[P],R=H)}!V&&i&&i.length>0&&i[0]&&(V=i[0]),p.useEffect(()=>{!t&&i&&i.length>0&&i[0]&&n(i[0].id)},[t,i,n]);const D=p.useCallback(()=>{if(!f)return;const H=f.findIndex(U=>U.id===t);if(H>=0){const U=H+1;if(U>=f.length){const ne=i==null?void 0:i.filter(se=>se.id!==t);if(!ne||ne.length===0)e();else{const se=ne[0];se&&n(se.id)}}else{const ne=f[U];ne&&n(ne.id)}}else f.length>0&&f[0]&&n(f[0].id)},[t,f,i,e,n]),y=p.useCallback(()=>{D()},[D]);if(d||c)return l.jsx(bt,{maxWidth:"md",sx:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:l.jsx(Pe,{})});if(!s||!f||(V||(i&&i.length>0&&i[0]?V=i[0]:f.length>0&&f[0]&&(V=f[0])),!V))return null;const T=_4[V.id];return l.jsxs(bt,{maxWidth:"md",sx:{py:4,minHeight:"100vh"},"data-testid":"OnboardingWizard",children:[l.jsx(Q,{sx:{mb:4,display:"flex",justifyContent:"center"},children:l.jsx(va,{variant:"dots",steps:f.length,position:"static",activeStep:R,sx:{flexGrow:0,background:"transparent","& .MuiMobileStepper-dot":{width:10,height:10,margin:"0 4px"},"& .MuiMobileStepper-dotActive":{width:12,height:12}},nextButton:l.jsx("span",{}),backButton:l.jsx("span",{})})}),l.jsx(Q,{sx:{display:"flex",justifyContent:"center",alignItems:"flex-start"},children:l.jsx(T,{currentUser:s,required:V.required,onNext:D,onSkip:V.required?void 0:y})}),l.jsx(Q,{sx:{mt:4,textAlign:"center"},children:l.jsx(xn,{component:Sn,to:(A=(E=m==null?void 0:m.settings)==null?void 0:E.privacyPageSlug)!=null&&A.current?`/${a}/${m.settings.privacyPageSlug.current}`:`/${a}/privacy-policy`,target:"_blank",variant:"body2",color:"text.secondary",children:r("Onboarding.personalInformation","Our privacy policy")})})]})},rb=()=>{const t=pr(),e=Rn(),{systemConfig:n}=Cs(),{stepId:r}=wl(),a=Wl(n==null?void 0:n.id),o=p.useMemo(()=>r?{agreedtoterms:"agreedToTerms","agreed-to-terms":"agreedToTerms",paymentmethod:"paymentMethod","payment-method":"paymentMethod",name:"name",birthyear:"birthYear","birth-year":"birthYear",gender:"gender",postalcode:"postalCode","postal-code":"postalCode",email:"email",birthdate:"birthdate",obos:"obos"}[r.toLowerCase()]||r:void 0,[r]),s=p.useMemo(()=>(Yn.onboarding.path[e]??Yn.onboarding.path.en).split("/")[0],[e]),d=p.useMemo(()=>Yn.profile.path[e]??Yn.profile.path.en,[e]),i=p.useCallback(()=>{t(`/${e}/${d}`,{replace:!0})},[t,e,d]),c=p.useCallback(u=>{const m=u.toLowerCase();t(`/${e}/${s}/${m}`,{replace:!0})},[t,e,s]);return a?l.jsx(I4,{stepId:o,onFinished:i,onStepChange:c}):l.jsx(W4,{stepId:o,onFinished:i,onStepChange:c})};export{nb as LoginPage,rb as OnboardingPage};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.