!function(){"use strict";vare="undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{},t=function(e){vart=newDate(e.getTime()),n=t.getTimezoneOffset();returnt.setSeconds(0,0),6e4*n+t.getTime()%6e4};varn=function(e){returneinstanceofDate},r=36e5,a=6e4,o=2,u=/[T ]/,i=/:/,s=/^(\d{2})$/,f=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],c=/^(\d{4})/,l=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],d=/^-(\d{2})$/,g=/^-?(\d{3})$/,h=/^-?(\d{2})-?(\d{2})$/,v=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,D=/^(\d{2}([.,]\d*)?)$/,M=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,T=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,p=/([Z+-].*)$/,y=/^(Z)$/,S=/^([+-])(\d{2})$/,x=/^([+-])(\d{2}):?(\d{2})$/;functionY(e,t,n){t=t||0,n=n||0;varr=newDate(0);r.setUTCFullYear(e,0,4);vara=7*t+n+1-(r.getUTCDay()||7);returnr.setUTCDate(r.getUTCDate()+a),r}varw=function(e,w){if(n(e))returnnewDate(e.getTime());if("string"!=typeofe)returnnewDate(e);varb=(w||{}).additionalDigits;b=null==b?o:Number(b);varF=function(e){vart,n={},r=e.split(u);i.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]);if(t){vara=p.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}returnn}(e),H=function(e,t){varn,r=f[t],a=l[t];if(n=c.exec(e)||a.exec(e)){varo=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=s.exec(e)||r.exec(e)){varu=n[1];return{year:100*parseInt(u,10),restDateString:e.slice(u.length)}}return{year:null}}(F.date,b),I=H.year,X=function(e,t){if(null===t)returnnull;varn,r,a,o;if(0===e.length)return(r=newDate(0)).setUTCFullYear(t),r;if(n=d.exec(e))returnr=newDate(0),a=parseInt(n[1],10)-1,r.setUTCFullYear(t,a),r;if(n=g.exec(e)){r=newDate(0);varu=parseInt(n[1],10);returnr.setUTCFullYear(t,0,u),r}if(n=h.exec(e)){r=newDate(0),a=parseInt(n[1],10)-1;vari=parseInt(n[2],10);returnr.setUTCFullYear(t,a,i),r}if(n=v.exec(e))returno=parseInt(n[1],10)-1,Y(t,o);if(n=m.exec(e)){o=parseInt(n[1],10)-1;vars=parseInt(n[2],10)-1;returnY(t,o,s)}returnnull}(H.restDateString,I);if(X){varW,$=X.getTime(),z=0;if(F.time&&(z=function(e){vart,n,o;if(t=D.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*r;if(t=M.exec(e))returnn=parseInt(t[1],10),o=parseFloat(t[2].replace(",",".")),n%24*r+o*a;if(t=T.exec(e)){n=parseInt(t[1],10),o=parseInt(t[2],10);varu=parseFloat(t[3].replace(",","."));returnn%24*r+o*a+1e3*u}returnnull}(F.time)),F.timezone)W=function(e){vart,n;if(t=y.exec(e))return0;if(t=S.exec(e))returnn=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=x.exec(e))returnn=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return0}(F.timezone)*a;else{varG=$+z,O=newDate(G);W=t(O);varE=newDate(G);E.setDate(O.getDate()+1);varZ=t(E)-t(O);Z>0&&(W+=Z)}returnnewDate($+z+W)}returnnewDate(e)};varb=function(e){vart=w(e),n=newDate(0);returnn.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};varF=function(e){vart=w(e);returnt.setHours(0,0,0,0),t},H=6e4,I=864e5;varX=function(e,t){varn=F(e),r=F(t),a=n.getTime()-n.getTimezoneOffset()*H,o=r.getTime()-r.getTimezoneOffset()*H;returnMath.round((a-o)/I)};varW=function(e){vart=w(e);returnX(t,b(t))+1};var$=function(e,t){varn=t&&Number(t.weekStartsOn)||0,r=w(e),a=r.getDay(),o=(a<n?7:0)+a-n;returnr.setDate(r.getDate()-o),r.setHours(0,0,0,0),r};varz=function(e){return$(e,{weekStartsOn:1})};varG=function(e){vart=w(e),n=t.getFullYear(),r=newDate(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);vara=z(r),o=newDate(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);varu=z(o);returnt.getTime()>=a.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1};varO=function(e){vart=G(e),n=newDate(0);returnn.setFullYear(t,0,4),n.setHours(0,0,0,0),z(n)},E=6048e5;varZ=function(e){vart=w(e),n=z(t).getTime()-O(t).getTime();returnMath.round(n/E)+1};varA=function(e){if(n(e))return!isNaN(e);thrownewTypeError(toString.call(e)+" is not an instance of Date")};varC=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];varU=function(e){vart=[];for(varnine)e.hasOwnPropert