o["[[calendar]]"]=M["[[ca]]"],o["[[numberingSystem]]"]=M["[[nu]]"],o["[[dataLocale]]"]=M["[[dataLocale]]"];vark=M["[[dataLocale]]"],p=e.timeZone;if(void0!==p&&(p=h(p),"UTC"!==p))thrownewRangeError("timeZone is not supported.");o["[[timeZone]]"]=p,m=newr;for(varfin_n)if(rn.call(_n,f)){varb=K(e,f,"string",_n[f]);m["[["+f+"]]"]=b}varT=void0,S=g[k],w=O(S.formats);if(d=K(e,"formatMatcher","string",newi("basic","best fit"),"best fit"),S.formats=w,"basic"===d)T=_(m,w);else{varE=K(e,"hour12","boolean");m.hour12=void0===E?S.hour12:E,T=$(m,w)}for(varjin_n)if(rn.call(_n,j)&&rn.call(T,j)){varA=T[j];A=T._&&rn.call(T._,j)?T._[j]:A,o["[["+j+"]]"]=A}varJ=void0,F=K(e,"hour12","boolean");if(o["[[hour]]"])if(F=void0===F?S.hour12:F,o["[[hour12]]"]=F,F===!0){varD=S.hourNo0;o["[[hourNo0]]"]=D,J=T.pattern12}elseJ=T.pattern;elseJ=T.pattern;returno["[[pattern]]"]=J,o["[[boundFormat]]"]=void0,o["[[initializedDateTimeFormat]]"]=!0,en&&(n.format=q.call(n)),u.exp.test(u.input),n}functionO(n){return"[object Array]"===Object.prototype.toString.call(n)?n:R(n)}functionW(n,a,e){if(void0===n)n=null;else{vari=o(n);n=newr;for(vartini)n[t]=i[t]}vars=sn;n=s(n);varu=!0;return"date"!==a&&"any"!==a||void0===n.weekday&&void0===n.year&&void0===n.month&&void0===n.day||(u=!1),"time"!==a&&"any"!==a||void0===n.hour&&void0===n.minute&&void0===n.second||(u=!1),!u||"date"!==e&&"all"!==e||(n.year=n.month=n.day="numeric"),!u||"time"!==e&&"all"!==e||(n.hour=n.minute=n.second="numeric"),n}function_(n,a){for(vare=120,r=20,i=8,t=6,o=6,s=3,u=-(1/0),h=void0,l=0,m=a.length;l<m;){vard=a[l],c=0;for(varyin_n)if(rn.call(_n,y)){varg=n["[["+y+"]]"],M=rn.call(d,y)?d[y]:void0;if(void0===g&&void0!==M)c-=r;elseif(void0!==g&&void0===M)c-=e;else{vark=["2-digit","numeric","narrow","short","long"],v=on.call(k,g),p=on.call(k,M),f=Math.max(Math.min(p-v,2),-2);2===f?c-=t:1===f?c-=s:f===-1?c-=o:f===-2&&(c-=i)}}c>u&&(u=c,h=d),l++}returnh}function$(n,a){for(vare=120,r=20,i=8,t=6,o=6,s=3,u=1,h=-(1/0),l=void0,m=0,d=a.length;m<d;){varc=a[m],y=0;for(vargin_n)if(rn.call(_n,g)){varM=n["[["+g+"]]"],k=rn.call(c,g)?c[g]:void0;if(void0===M&&void0!==k)y-=r;elseif(void0!==M&&void0===k)y-=e;else{varv=["2-digit","numeric","narrow","short","long"],p=on.call(v,M),f=on.call(v,k),b=Math.max(Math.min(f-p,2),-2);f<=1&&p>=2||f>=2&&p<=1?b>0?y-=t:b<0&&(y-=i):b>1?y-=s:b<-1&&(y-=o)}}c._.hour12!==n.hour12&&(y-=u),y>h&&(h=y,l=c),m++}returnl}functionq(){varn=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedDateTimeFormat]]"])thrownewTypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void0===n["[[boundFormat]]"]){vara=function(){varn=Number(0===arguments.length?Date.now():arguments[0]);returnV(this,n)},e=cn.call(a,this);n["[[boundFormat]]"]=e}returnn["[[boundFormat]]"]}functionQ(){varn=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedDateTimeFormat]]"])thrownewTypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void0===n["[[boundFormatToParts]]"]){vara=function(){varn=Number(0===arguments.length?Date.now():arguments[0]);returnU(this,n)},e=cn.call(a,this);n["[[boundFormatToParts]]"]=e}returnn["[[boundFormatToParts]]"]}functionY(n,a){if(!isFinite(a))thrownewRangeError("Invalid valid date passed to format");vare=n.__getInternalProperties(gn);t();for(varr=e["[[locale]]"],o=newzn.NumberFormat([r],{useGrouping:!1}),s=newzn.NumberFormat([r],{minimumIntegerDigits:2,useGrouping:!1}),u=Z(a,e["[[calendar]]"],e["[[timeZone]]"]),h=e["[[pattern]]"],l=newi,m=0,d=h.indexOf("{"),c=0,y=e["[[dataLocale]]"],g=yn.DateTimeFormat["[[localeData]]"][y].calendars,M=e["[[calendar]]"];d!==-1;){vark=void0;if(c=h.indexOf("}",d),c===-1)thrownewError("Unclosed pattern");d>m&&ln.call(l,{type:"literal",value:h.substring(m,d)});varv=h.substring(d+1,c);if(_n.hasOwnProperty(v)){varp=e["[["+v+"]]"],f=u["[["+v+"]]"];if("year"===v&&f<=0?f=1-f:"month"===v?f++:"hour"===v&&e["[[hour12]]"]===!0&&(f%=12,0===f&&e["[[hourNo0]]"]===!0&