dvt.Zk=function(a,b,c){this.Init(a,b,c)};dvt.k.A(dvt.Zk,dvt.Ae);dvt.Zk.oda=50;dvt.Zk.nda=21;dvt.Zk.xua=2;dvt.Zk.nSa=1;dvt.Zk.zSa=1;dvt.Zk.newInstance=function(a,b,c){return new dvt.Zk(a,b,c)};dvt.Zk.NAa="seconds minutes hours days weeks months quarters years".split(" ");R=dvt.Zk.prototype;R.Init=function(a){dvt.Zk.v.Init.call(this,a);this.iCa=new Tp;this.ou=dvt.Zk.nSa;this.hF=a.oaa().dateToIsoConverter};R.Lt=I("Ie");R.RO=function(){this.E_==q&&(this.E_=30);return this.E_};R.hQa=I("ou");R.zj=N("ou");
R.mf=function(){return this.Bq+2*this.ou};R.Gn=function(a,b){this.N3a=new Up("short"==a?Up.SHORT:Up.FUa,b)};R.QT=function(a){return this.iCa.QT(new Date(a),this.Ie)};R.tU=function(a){return this.iCa.tU(a,this.Ie)};
function Vp(a,b){if(a.$n){var c;c=a.$n[a.Ie]?a.$n[a.Ie]:a.$n["default"]?a.$n["default"]:a.$n;if(c.format)return c.format(a.hF?a.hF(b):b);if(c.getAsString)return c.getAsString(b)}if(a.JR&&a.JR[a.Ie]){c=a.JR[a.Ie];if(c.format)return c.format(a.hF?a.hF(b):b);if(c.getAsString)return c.getAsString(b)}return a.N3a.Sq(b,a.Ie,a.bO)}function Tp(a){this.Init(a)}dvt.k.A(Tp,dvt.k);Tp.prototype.Init=function(){this.U2a=864E5};
Tp.prototype.QT=function(a,b){var c=new Date(a.getTime());if("weeks"==b){c.setHours(0,0,0);var d=(a.getDay()-0+7)%7;0<d&&c.setTime(c.getTime()-d*this.U2a)}else"months"==b?c.setDate(1):"days"==b?c.setHours(0,0,0):"hours"==b?c.setMinutes(0,0,0):"minutes"==b?c.setSeconds(0,0):"seconds"==b?c.setMilliseconds(0):"quarters"==b?(c.setDate(1),d=2-(a.getMonth()+11)%3,0<d&&c.setMonth(c.getMonth()+d)):"halfyears"==b?(c.setDate(1),d=5-(a.getMonth()+11)%6,0<d&&c.setMonth(c.getMonth()+d)):"years"==b?(c.setMonth(0),
c.setDate(1)):"twoyears"==b&&(c.setMonth(0),c.setDate(1));return c};
Tp.prototype.tU=function(a,b){if("seconds"==b)return new Date(a+1E3);if("minutes"==b)return new Date(a+6E4);if("hours"==b)return new Date(a+36E5);var c=new Date(a);"days"==b?c.setDate(c.getDate()+1):"weeks"==b?c.setDate(c.getDate()+7):"months"==b?c.setMonth(c.getMonth()+1):"quarters"==b?c.setMonth(c.getMonth()+3):"halfyears"==b?c.setMonth(c.getMonth()+6):"years"==b?c.setFullYear(c.getFullYear()+1):"twoyears"==b?c.setFullYear(c.getFullYear()+2):c.setYear(c.getYear()+1);return c};
function Up(a,b){this.Init(a,b)}dvt.k.A(Up,dvt.k);Up.FUa=0;Up.SHORT=1;
Up.prototype.Init=function(a,b){this.qk=a;this.gC=b;this.hm=[];this.hm[0]={};this.hm[0].seconds="HH:MM:ss";this.hm[0].minutes="HH:MM";this.hm[0].hours="HH:MM";this.hm[0].days="dddd";this.hm[0].weeks="m/dd";this.hm[0].months="mmmm";this.hm[0].quarters="mmmm";this.hm[0].halfyears="yyyy";this.hm[0].years="yyyy";this.hm[0].twoyears="yyyy";this.hm[1]={};this.hm[1].seconds="HH:MM:ss";this.hm[1].minutes="HH:MM";this.hm[1].hours="HH:MM";this.hm[1].days="m/dd";this.hm[1].weeks="m/dd";this.hm[1].months="mmm";
this.hm[1].quarters="mmm";this.hm[1].halfyears="yy";this.hm[1].years="yy";this.hm[1].twoyears="yy"};Up.prototype.Sq=function(a,b,c){b=this.hm[this.qk][b];if(b!=q){var d=s;if(c){a=a.getTime();for(var d=Object.keys(c),e=0,f=0;f<d.length;f++)a>=parseInt(d[f],10)&&(e=c[d[f]]);a=new Date(a+e);d=l}if(-1!=b.indexOf(":"))var h=":";else-1!=b.indexOf("/")&&(h="/");if(h){b=b.split(h);c=Wp(this,a,b[0],d);for(f=1;f<b.length;f++)c+=h+Wp(this,a,b[f],d);return c}return Wp(this,a,b,d)}return a.toLocaleString()};
function Wp(a,b,c,d){if(d)switch(c){case "ss":return a=b.getUTCSeconds(),10>a?"0"+a:a;case "HH":return a=b.getUTCHours(),10>a?"0"+a:a;case "MM":return a=b.getUTCMinutes(),10>a?"0"+a:a;case "dd":return a=b.getUTCDate(),10>a?"0"+a:a;case "dddd":return a.gC.TLa[b.getUTCDay()+7];case "m":return b.getUTCMonth()+1;case "mmm":return a.gC.uba[b.getUTCMonth()];case "mmmm":return a.gC.uba[b.getUTCMonth()+12];case "yy":return b.getUTCFullYear().toString().substring(2,4);default:return b.getUTCFullYear()}else switch(c){case "ss":return a=
b.getSeconds(),10>a?"0"+a:a;case "HH":return a=b.getHours(),10>a?"0"+a:a;case "MM":return a=b.getMinutes(),10>a?"0"+a:a;case "dd":return a=b.getDate(),10>a?"0"+a:a;case "dddd":return a.gC.TLa[b.getDay()+7];case "m":return b.getMonth()+1;case "mmm":return a.gC.uba[b.getMonth()];case "mmmm":return a.gC.uba[b.getMonth()+12];case "yy":return b.getFullYear().toString().substring(2,4);default:return b.getFullYear()}};