var Externals=(function(b){function h(q){return typeof q=="undefined"}var p=/('[^']*')|(G+|y+|M+|w+|W+|D+|d+|F+|E+|a+|H+|k+|K+|h+|m+|s+|S+|Z+)|([a-zA-Z]+)|([^a-zA-Z']+)/;var k="$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorDatePickerMonthNames'))".split(/\s*,\s*/);var d="$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorDatePickerWeekDayNames'))".split(/\s*,\s*/);var j=0,i=1,g=2,m=3,f=4,n=5;var l={G:j,y:m,M:f,w:g,W:g,D:g,d:g,F:g,E:i,a:j,H:g,k:g,K:g,h:g,m:g,s:g,S:g,Z:n};var e=24*60*60*1000;var a=7*e;var c=1;var o=function(r,s,q){var t=new Date(r,s,q,0,0,0);t.setMilliseconds(0);return t};Date.prototype.getDifference=function(q){return this.getTime()-q.getTime()};Date.prototype.isBefore=function(q){return this.getTime()<q.getTime()};Date.prototype.getUTCTime=function(){return Date.UTC(this.getFullYear(),this.getMonth(),this.getDate(),this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds())};Date.prototype.getTimeSince=function(q){return this.getUTCTime()-q.getUTCTime()};Date.prototype.getPreviousSunday=function(){var r=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12,0,0);var q=new Date(r.getTime()-this.getDay()*e);return o(q.getFullYear(),q.getMonth(),q.getDate())};Date.prototype.getWeekInYear=function(v){if(h(this.minimalDaysInFirstWeek)){v=c}var t=this.getPreviousSunday();var r=o(this.getFullYear(),0,1);var u=t.isBefore(r)?0:1+Math.floor(t.getTimeSince(r)/a);var q=7-r.getDay();var s=u;if(q<v){s--}return s};Date.prototype.getWeekInMonth=function(v){if(h(this.minimalDaysInFirstWeek)){v=c}var r=this.getPreviousSunday();var u=o(this.getFullYear(),this.getMonth(),1);var t=r.isBefore(u)?0:1+Math.floor((r.getTimeSince(u))/a);var q=7-u.getDay();var s=t;if(q>=v){s++}return s};Date.prototype.getDayInYear=function(){var q=o(this.getFullYear(),0,1);return 1+Math.floor(this.getTimeSince(q)/e)};b.SimpleDateFormat=function(q){this.formatString=q};b.SimpleDateFormat.prototype.setMinimalDaysInFirstWeek=function(q){this.minimalDaysInFirstWeek=q};b.SimpleDateFormat.prototype.getMinimalDaysInFirstWeek=function(q){return h(this.minimalDaysInFirstWeek)?c:this.minimalDaysInFirstWeek};b.SimpleDateFormat.prototype.format=function(J){var q="";var A;var u=function(M,L){while(M.length<L){M="0"+M}return M};var s=function(N,M,L){return(M>=4)?N:N.substr(0,Math.max(L,M))};var y=function(N,M){var L=""+N;return u(L,M)};var x=this.formatString;while((A=p.exec(x))){var E=A[0];var z=A[1];var B=A[2];var w=A[3];var v=A[4];if(z){if(z=="''"){q+="'"}else{q+=z.substring(1,z.length-1)}}else{if(w){}else{if(v){q+=v}else{if(B){var r=B.charAt(0);var K=B.length;var C="";switch(r){case"G":C="AD";break;case"y":C=J.getFullYear();break;case"M":C=J.getMonth();break;case"w":C=J.getWeekInYear(this.getMinimalDaysInFirstWeek());break;case"W":C=J.getWeekInMonth(this.getMinimalDaysInFirstWeek());break;case"D":C=J.getDayInYear();break;case"d":C=J.getDate();break;case"F":C=1+Math.floor((J.getDate()-1)/7);break;case"E":C=d[J.getDay()];break;case"a":C=(J.getHours()>=12)?"PM":"AM";break;case"H":C=J.getHours();break;case"k":C=J.getHours()||24;break;case"K":C=J.getHours()%12;break;case"h":C=(J.getHours()%12)||12;break;case"m":C=J.getMinutes();break;case"s":C=J.getSeconds();break;case"S":C=J.getMilliseconds();break;case"Z":C=J.getTimezoneOffset();break}switch(l[r]){case j:q+=s(C,K,2);break;case i:q+=s(C,K,3);break;case g:q+=y(C,K);break;case m:if(K<=3){var t=""+C;q+=t.substr(2,2)}else{q+=y(C,K)}break;case f:if(K>=3){q+=s(k[C],K,K)}else{q+=y(C+1,K)}break;case n:var I=(C>0);var F=I?"-":"+";var H=Math.abs(C);var G=""+Math.floor(H/60);G=u(G,2);var D=""+(H%60);D=u(D,2);q+=F+G+D;break}}}}}x=x.substr(A.index+A[0].length)}return q};return b}(Externals||{}));