Seditio Source
Root |
./othercms/elxis_5.3_atlas_rev2452/includes/js/datetimepicker/DateTimePicker.min.js
/* -----------------------------------------------------------------------------

  jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
  Version 0.1.39
  Copyright (c)2014-2019 Lajpat Shah
  Contributors : https://github.com/nehakadam/DateTimePicker/contributors
  Repository : https://github.com/nehakadam/DateTimePicker
  Documentation : https://nehakadam.github.io/DateTimePicker

 ----------------------------------------------------------------------------- */


Object.keys||(Object.keys=function(t){var e=[];for(var a in t)t.hasOwnProperty(a)&&e.push(a);return e}),$.DateTimePicker=$.DateTimePicker||{name:"DateTimePicker",i18n:{},defaults:{mode:"date",defaultDate:null,dateSeparator:"-",timeSeparator:":",timeMeridiemSeparator:" ",dateTimeSeparator:" ",monthYearSeparator:" ",dateTimeFormat:"dd-MM-yyyy HH:mm",dateFormat:"dd-MM-yyyy",timeFormat:"HH:mm",maxDate:null,minDate:null,maxTime:null,minTime:null,maxDateTime:null,minDateTime:null,shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fullDayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullMonthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],labels:null,minuteInterval:1,roundOffMinutes:!0,secondsInterval:1,roundOffSeconds:!0,showHeader:!0,titleContentDate:"Set Date",titleContentTime:"Set Time",titleContentDateTime:"Set Date & Time",buttonsToDisplay:["HeaderCloseButton","SetButton","ClearButton"],setButtonContent:"Set",clearButtonContent:"Clear",incrementButtonContent:"+",decrementButtonContent:"-",setValueInTextboxOnEveryClick:!1,readonlyInputs:!1,animationDuration:400,touchHoldInterval:300,captureTouchHold:!1,mouseHoldInterval:50,captureMouseHold:!1,isPopup:!0,parentElement:"body",isInline:!1,inputElement:null,language:"",init:null,addEventHandlers:null,beforeShow:null,afterShow:null,beforeHide:null,afterHide:null,buttonClicked:null,settingValueOfElement:null,formatHumanDate:null,parseDateTimeString:null,formatDateTimeString:null},dataObject:{dCurrentDate:new Date,iCurrentDay:0,iCurrentMonth:0,iCurrentYear:0,iCurrentHour:0,iCurrentMinutes:0,iCurrentSeconds:0,sCurrentMeridiem:"",iMaxNumberOfDays:0,sDateFormat:"",sTimeFormat:"",sDateTimeFormat:"",dMinValue:null,dMaxValue:null,sArrInputDateFormats:[],sArrInputTimeFormats:[],sArrInputDateTimeFormats:[],bArrMatchFormat:[],bDateMode:!1,bTimeMode:!1,bDateTimeMode:!1,oInputElement:null,iTabIndex:0,bElemFocused:!1,bIs12Hour:!1,sTouchButton:null,iTouchStart:null,oTimeInterval:null,bIsTouchDevice:"ontouchstart"in document.documentElement}},$.cf={_isValid:function(t){return null!=t&&""!==t},_compare:function(t,e){return null!=t&&null!=e&&t.toLowerCase()===e.toLowerCase()}},function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(b){"use strict";function o(t,e){this.element=t;var a;a=b.cf._isValid(e)&&b.cf._isValid(e.language)?e.language:b.DateTimePicker.defaults.language,this.settings=b.extend({},b.DateTimePicker.defaults,b.DateTimePicker.i18n[a],e),this.options=e,this.oData=b.extend({},b.DateTimePicker.dataObject),this._defaults=b.DateTimePicker.defaults,this._name=b.DateTimePicker.name,this.init()}b.fn.DateTimePicker=function(t){var e,a,r=b(this).data(),n=r?Object.keys(r):[];if("string"!=typeof t)return this.each(function(){b.removeData(this,"plugin_DateTimePicker"),b.data(this,"plugin_DateTimePicker")||b.data(this,"plugin_DateTimePicker",new o(this,t))});if(b.cf._isValid(r))if("destroy"===t){if(0<n.length)for(e in n)if(-1!==(a=n[e]).search("plugin_DateTimePicker")){b(document).unbind("click.DateTimePicker keydown.DateTimePicker keyup.DateTimePicker"),b(this).children().remove(),b(this).removeData(),b(this).unbind(),b(this).removeClass("dtpicker-overlay dtpicker-mobile dtpicker-inline"),r=r[a];break}}else if("object"===t&&0<n.length)for(e in n)if(-1!==(a=n[e]).search("plugin_DateTimePicker"))return r[a]},o.prototype={init:function(){var t=this;t._setDateFormatArray(),t._setTimeFormatArray(),t._setDateTimeFormatArray(),void 0!==b(t.element).data("parentelement")&&(t.settings.parentElement=b(t.element).data("parentelement")),t.settings.isPopup&&!t.settings.isInline&&(t._createPicker(),b(t.element).addClass("dtpicker-mobile")),t.settings.isInline&&(t._createPicker(),t._showPicker(t.settings.inputElement)),t.settings.init&&t.settings.init.call(t),t._addEventHandlersForInput()},_setDateFormatArray:function(){var t=this;t.oData.sArrInputDateFormats=[];var e="";e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",t.oData.sArrInputDateFormats.push(e),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MM"+t.settings.monthYearSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MMM"+t.settings.monthYearSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MMMM"+t.settings.monthYearSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="yyyy"+t.settings.monthYearSeparator+"MM",t.oData.sArrInputDateFormats.push(e)},_setTimeFormatArray:function(){var t=this;t.oData.sArrInputTimeFormats=[];var e="";e="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",t.oData.sArrInputTimeFormats.push(e),e="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",t.oData.sArrInputTimeFormats.push(e),e="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",t.oData.sArrInputTimeFormats.push(e),e="HH"+t.settings.timeSeparator+"mm",t.oData.sArrInputTimeFormats.push(e)},_setDateTimeFormatArray:function(){var t=this;t.oData.sArrInputDateTimeFormats=[];var e="",a="",r="";e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="HH"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r)},_matchFormat:function(t,e){var a=this;a.oData.bArrMatchFormat=[],a.oData.bDateMode=!1,a.oData.bTimeMode=!1,a.oData.bDateTimeMode=!1;var r,n=[];for(t=b.cf._isValid(t)?t:a.settings.mode,b.cf._compare(t,"date")?(e=b.cf._isValid(e)?e:a.oData.sDateFormat,a.oData.bDateMode=!0,n=a.oData.sArrInputDateFormats):b.cf._compare(t,"time")?(e=b.cf._isValid(e)?e:a.oData.sTimeFormat,a.oData.bTimeMode=!0,n=a.oData.sArrInputTimeFormats):b.cf._compare(t,"datetime")&&(e=b.cf._isValid(e)?e:a.oData.sDateTimeFormat,a.oData.bDateTimeMode=!0,n=a.oData.sArrInputDateTimeFormats),r=0;r<n.length;r++)a.oData.bArrMatchFormat.push(b.cf._compare(e,n[r]))},_setMatchFormat:function(t,e,a){0<t&&this._matchFormat(e,a)},_createPicker:function(){var e=this;e.settings.isInline?b(e.element).addClass("dtpicker-inline"):(b(e.element).addClass("dtpicker-overlay"),b(".dtpicker-overlay").click(function(t){e._hidePicker("")}));b(e.element).html("<div class='dtpicker-bg'><div class='dtpicker-cont'><div class='dtpicker-content'><div class='dtpicker-subcontent'></div></div></div></div>")},_addEventHandlersForInput:function(){var t=this;if(!t.settings.isInline){t.oData.oInputElement=null,b(t.settings.parentElement).find("input[type='date'], input[type='time'], input[type='datetime']").each(function(){b(this).attr("data-field",b(this).attr("type")),b(this).attr("type","text")});var e="[data-field='date'], [data-field='time'], [data-field='datetime']";b(t.settings.parentElement).off("focus",e,t._inputFieldFocus).on("focus",e,{obj:t},t._inputFieldFocus),b(t.settings.parentElement).off("click",e,t._inputFieldClick).on("click",e,{obj:t},t._inputFieldClick)}t.settings.addEventHandlers&&t.settings.addEventHandlers.call(t)},_inputFieldFocus:function(t){var e=t.data.obj;e.showDateTimePicker(this),e.oData.bMouseDown=!1},_inputFieldClick:function(t){var e=t.data.obj;b.cf._compare(b(this).prop("tagName"),"input")||e.showDateTimePicker(this),t.stopPropagation()},getDateObjectForInputField:function(t){var e=this;if(b.cf._isValid(t)){var a,r=e._getValueOfElement(t),n=b(t).data("field"),o="";return b.cf._isValid(n)||(n=e.settings.mode),e.settings.formatDateTimeString?a=e.settings.parseDateTimeString.call(e,r,n,o,b(t)):(o=b(t).data("format"),b.cf._isValid(o)||(b.cf._compare(n,"date")?o=e.settings.dateFormat:b.cf._compare(n,"time")?o=e.settings.timeFormat:b.cf._compare(n,"datetime")&&(o=e.settings.dateTimeFormat)),e._matchFormat(n,o),b.cf._compare(n,"date")?a=e._parseDate(r):b.cf._compare(n,"time")?a=e._parseTime(r):b.cf._compare(n,"datetime")&&(a=e._parseDateTime(r))),a}},setDateTimeStringInInputField:function(t,n){var e,o=this;n=n||o.oData.dCurrentDate,b.cf._isValid(t)?(e=[],"string"==typeof t?e.push(t):"object"==typeof t&&(e=t)):e=b.cf._isValid(o.settings.parentElement)?b(o.settings.parentElement).find("[data-field='date'], [data-field='time'], [data-field='datetime']"):b("[data-field='date'], [data-field='time'], [data-field='datetime']"),e.each(function(){var t,e,a,r;t=b(this).data("field"),b.cf._isValid(t)||(t=o.settings.mode),a=!(e="Custom"),o.settings.formatDateTimeString||(e=b(this).data("format"),b.cf._isValid(e)||(b.cf._compare(t,"date")?e=o.settings.dateFormat:b.cf._compare(t,"time")?e=o.settings.timeFormat:b.cf._compare(t,"datetime")&&(e=o.settings.dateTimeFormat)),a=o.getIs12Hour(t,e)),r=o._setOutput(t,e,a,n,this),o._setValueOfElement(r,b(this))})},getDateTimeStringInFormat:function(t,e,a){return this._setOutput(t,e,this.getIs12Hour(t,e),a)},showDateTimePicker:function(t){null!==this.oData.oInputElement?this.settings.isInline||this._hidePicker(0,t):this._showPicker(t)},_setButtonAction:function(t){var e=this;null!==e.oData.oInputElement&&(e._setValueOfElement(e._setOutput()),t?(e.settings.buttonClicked&&e.settings.buttonClicked.call(e,"TAB",e.oData.oInputElement),e.settings.isInline||e._hidePicker(0)):e.settings.isInline||e._hidePicker(""))},_setOutput:function(t,e,a,r,n){var o=this;r=b.cf._isValid(r)?r:o.oData.dCurrentDate,a=a||o.oData.bIs12Hour;var i,s=o._setVariablesForDate(r,!0,!0),m="",u=o._formatDate(s),c=o._formatTime(s),d=b.extend({},u,c),D="",l="",p=Function.length;return o.settings.formatDateTimeString?m=o.settings.formatDateTimeString.call(o,d,t,e,n):(o._setMatchFormat(p,t,e),o.oData.bDateMode?o.oData.bArrMatchFormat[0]?m=d.dd+o.settings.dateSeparator+d.MM+o.settings.dateSeparator+d.yyyy:o.oData.bArrMatchFormat[1]?m=d.MM+o.settings.dateSeparator+d.dd+o.settings.dateSeparator+d.yyyy:o.oData.bArrMatchFormat[2]?m=d.yyyy+o.settings.dateSeparator+d.MM+o.settings.dateSeparator+d.dd:o.oData.bArrMatchFormat[3]?m=d.dd+o.settings.dateSeparator+d.monthShort+o.settings.dateSeparator+d.yyyy:o.oData.bArrMatchFormat[4]?m=d.MM+o.settings.monthYearSeparator+d.yyyy:o.oData.bArrMatchFormat[5]?m=d.monthShort+o.settings.monthYearSeparator+d.yyyy:o.oData.bArrMatchFormat[6]?m=d.month+o.settings.monthYearSeparator+d.yyyy:o.oData.bArrMatchFormat[7]&&(m=d.yyyy+o.settings.monthYearSeparator+d.MM):o.oData.bTimeMode?o.oData.bArrMatchFormat[0]?m=d.hh+o.settings.timeSeparator+d.mm+o.settings.timeSeparator+d.ss+o.settings.timeMeridiemSeparator+d.ME:o.oData.bArrMatchFormat[1]?m=d.HH+o.settings.timeSeparator+d.mm+o.settings.timeSeparator+d.ss:o.oData.bArrMatchFormat[2]?m=d.hh+o.settings.timeSeparator+d.mm+o.settings.timeMeridiemSeparator+d.ME:o.oData.bArrMatchFormat[3]&&(m=d.HH+o.settings.timeSeparator+d.mm):o.oData.bDateTimeMode&&(o.oData.bArrMatchFormat[0]||o.oData.bArrMatchFormat[1]||o.oData.bArrMatchFormat[8]||o.oData.bArrMatchFormat[9]?D=d.dd+o.settings.dateSeparator+d.MM+o.settings.dateSeparator+d.yyyy:o.oData.bArrMatchFormat[2]||o.oData.bArrMatchFormat[3]||o.oData.bArrMatchFormat[10]||o.oData.bArrMatchFormat[11]?D=d.MM+o.settings.dateSeparator+d.dd+o.settings.dateSeparator+d.yyyy:o.oData.bArrMatchFormat[4]||o.oData.bArrMatchFormat[5]||o.oData.bArrMatchFormat[12]||o.oData.bArrMatchFormat[13]?D=d.yyyy+o.settings.dateSeparator+d.MM+o.settings.dateSeparator+d.dd:(o.oData.bArrMatchFormat[6]||o.oData.bArrMatchFormat[7]||o.oData.bArrMatchFormat[14]||o.oData.bArrMatchFormat[15])&&(D=d.dd+o.settings.dateSeparator+d.monthShort+o.settings.dateSeparator+d.yyyy),i=o.oData.bArrMatchFormat[0]||o.oData.bArrMatchFormat[1]||o.oData.bArrMatchFormat[2]||o.oData.bArrMatchFormat[3]||o.oData.bArrMatchFormat[4]||o.oData.bArrMatchFormat[5]||o.oData.bArrMatchFormat[6]||o.oData.bArrMatchFormat[7],l=a?i?d.hh+o.settings.timeSeparator+d.mm+o.settings.timeSeparator+d.ss+o.settings.timeMeridiemSeparator+d.ME:d.hh+o.settings.timeSeparator+d.mm+o.settings.timeMeridiemSeparator+d.ME:i?d.HH+o.settings.timeSeparator+d.mm+o.settings.timeSeparator+d.ss:d.HH+o.settings.timeSeparator+d.mm,""!==D&&""!==l&&(m=D+o.settings.dateTimeSeparator+l)),o._setMatchFormat(p)),m},_clearButtonAction:function(){null!==this.oData.oInputElement&&this._setValueOfElement(""),this.settings.isInline||this._hidePicker("")},_setOutputOnIncrementOrDecrement:function(){b.cf._isValid(this.oData.oInputElement)&&this.settings.setValueInTextboxOnEveryClick&&this._setValueOfElement(this._setOutput())},_showPicker:function(t){var e=this;if(null===e.oData.oInputElement){e.oData.oInputElement=t,e.oData.iTabIndex=parseInt(b(t).attr("tabIndex"));var a,r,n,o,i,s,m,u,c=b(t).data("field")||"",d=b(t).data("min")||"",D=b(t).data("max")||"",l=b(t).data("format")||"",p=b(t).data("view")||"",h=b(t).data("startend")||"",M=b(t).data("startendelem")||"",g=e._getValueOfElement(t)||"";if(""!==p&&(b.cf._compare(p,"Popup")?e.setIsPopup(!0):e.setIsPopup(!1)),!e.settings.isPopup&&!e.settings.isInline){e._createPicker();var f=b(e.oData.oInputElement).offset().top+b(e.oData.oInputElement).outerHeight(),C=b(e.oData.oInputElement).offset().left,y=b(e.oData.oInputElement).outerWidth();b(e.element).css({position:"absolute",top:f,left:C,width:y,height:"auto"})}e.settings.beforeShow&&e.settings.beforeShow.call(e,t),c=b.cf._isValid(c)?c:e.settings.mode,e.settings.mode=c,b.cf._isValid(l)||(b.cf._compare(c,"date")?l=e.settings.dateFormat:b.cf._compare(c,"time")?l=e.settings.timeFormat:b.cf._compare(c,"datetime")&&(l=e.settings.dateTimeFormat)),e._matchFormat(c,l),e.oData.dMinValue=null,e.oData.dMaxValue=null,e.oData.bIs12Hour=!1,e.oData.bDateMode?(a=d||e.settings.minDate,r=D||e.settings.maxDate,e.oData.sDateFormat=l,b.cf._isValid(a)&&(e.oData.dMinValue=e._parseDate(a)),b.cf._isValid(r)&&(e.oData.dMaxValue=e._parseDate(r)),""!==h&&(b.cf._compare(h,"start")||b.cf._compare(h,"end"))&&""!==M&&1<=b(M).length&&""!==(n=e._getValueOfElement(b(M)))&&(o=e.settings.parseDateTimeString?e.settings.parseDateTimeString.call(e,n,c,l,b(M)):e._parseDate(n),b.cf._compare(h,"start")?b.cf._isValid(r)?e._compareDates(o,e.oData.dMaxValue)<0&&(e.oData.dMaxValue=new Date(o)):e.oData.dMaxValue=new Date(o):b.cf._compare(h,"end")&&(b.cf._isValid(a)?0<e._compareDates(o,e.oData.dMinValue)&&(e.oData.dMinValue=new Date(o)):e.oData.dMinValue=new Date(o))),e.settings.parseDateTimeString?e.oData.dCurrentDate=e.settings.parseDateTimeString.call(e,g,c,l,b(t)):e.oData.dCurrentDate=e._parseDate(g),e.oData.dCurrentDate.setHours(0),e.oData.dCurrentDate.setMinutes(0),e.oData.dCurrentDate.setSeconds(0)):e.oData.bTimeMode?(a=d||e.settings.minTime,r=D||e.settings.maxTime,e.oData.sTimeFormat=l,e.oData.bIs12Hour=e.getIs12Hour(),b.cf._isValid(a)&&(e.oData.dMinValue=e._parseTime(a),b.cf._isValid(r)||(e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[0]?r="11:59:59 PM":e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[1]?r="23:59:59":e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[2]?r="11:59 PM":e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[3]&&(r="23:59"),e.oData.dMaxValue=e._parseTime(r))),b.cf._isValid(r)&&(e.oData.dMaxValue=e._parseTime(r),b.cf._isValid(a)||(e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[0]?a="12:00:00 AM":e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[1]?a="00:00:00":e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[2]?a="12:00 AM":e.oData.sTimeFormat===e.oData.sArrInputTimeFormats[3]&&(a="00:00"),e.oData.dMinValue=e._parseTime(a))),""!==h&&(b.cf._compare(h,"start")||b.cf._compare(h,"end"))&&""!==M&&1<=b(M).length&&""!==(i=e._getValueOfElement(b(M)))&&(e.settings.parseDateTimeString?o=e.settings.parseDateTimeString.call(e,i,c,l,b(M)):s=e._parseTime(i),b.cf._compare(h,"start")?(s.setMinutes(s.getMinutes()-1),b.cf._isValid(r)?2===e._compareTime(s,e.oData.dMaxValue)&&(e.oData.dMaxValue=new Date(s)):e.oData.dMaxValue=new Date(s)):b.cf._compare(h,"end")&&(s.setMinutes(s.getMinutes()+1),b.cf._isValid(a)?3===e._compareTime(s,e.oData.dMinValue)&&(e.oData.dMinValue=new Date(s)):e.oData.dMinValue=new Date(s))),e.settings.parseDateTimeString?e.oData.dCurrentDate=e.settings.parseDateTimeString.call(e,g,c,l,b(t)):e.oData.dCurrentDate=e._parseTime(g)):e.oData.bDateTimeMode&&(a=d||e.settings.minDateTime,r=D||e.settings.maxDateTime,e.oData.sDateTimeFormat=l,e.oData.bIs12Hour=e.getIs12Hour(),b.cf._isValid(a)&&(e.oData.dMinValue=e._parseDateTime(a)),b.cf._isValid(r)&&(e.oData.dMaxValue=e._parseDateTime(r)),""!==h&&(b.cf._compare(h,"start")||b.cf._compare(h,"end"))&&""!==M&&1<=b(M).length&&""!==(m=e._getValueOfElement(b(M)))&&(u=e.settings.parseDateTimeString?e.settings.parseDateTimeString.call(e,m,c,l,b(M)):e._parseDateTime(m),b.cf._compare(h,"start")?b.cf._isValid(r)?e._compareDateTime(u,e.oData.dMaxValue)<0&&(e.oData.dMaxValue=new Date(u)):e.oData.dMaxValue=new Date(u):b.cf._compare(h,"end")&&(b.cf._isValid(a)?0<e._compareDateTime(u,e.oData.dMinValue)&&(e.oData.dMinValue=new Date(u)):e.oData.dMinValue=new Date(u))),e.settings.parseDateTimeString?e.oData.dCurrentDate=e.settings.parseDateTimeString.call(e,g,c,l,b(t)):e.oData.dCurrentDate=e._parseDateTime(g)),e._setVariablesForDate(),e._modifyPicker(),b(e.element).fadeIn(e.settings.animationDuration),e.settings.afterShow&&setTimeout(function(){e.settings.afterShow.call(e,t)},e.settings.animationDuration)}},_hidePicker:function(t,e){var a=this,r=a.oData.oInputElement;a.settings.beforeHide&&a.settings.beforeHide.call(a,r),b.cf._isValid(t)||(t=a.settings.animationDuration),b.cf._isValid(a.oData.oInputElement)&&(b(a.oData.oInputElement).blur(),a.oData.oInputElement=null),b(a.element).fadeOut(t),0===t?b(a.element).find(".dtpicker-subcontent").html(""):setTimeout(function(){b(a.element).find(".dtpicker-subcontent").html("")},t),b(document).unbind("click.DateTimePicker keydown.DateTimePicker keyup.DateTimePicker"),a.settings.afterHide&&(0===t?a.settings.afterHide.call(a,r):setTimeout(function(){a.settings.afterHide.call(a,r)},t)),b.cf._isValid(e)&&a._showPicker(e)},_modifyPicker:function(){var t,e,a=this,r=[];a.oData.bDateMode?(t=a.settings.titleContentDate,e=3,a.oData.bArrMatchFormat[0]?r=["day","month","year"]:a.oData.bArrMatchFormat[1]?r=["month","day","year"]:a.oData.bArrMatchFormat[2]?r=["year","month","day"]:a.oData.bArrMatchFormat[3]?r=["day","month","year"]:a.oData.bArrMatchFormat[4]?(e=2,r=["month","year"]):a.oData.bArrMatchFormat[5]?(e=2,r=["month","year"]):a.oData.bArrMatchFormat[6]?(e=2,r=["month","year"]):a.oData.bArrMatchFormat[7]&&(e=2,r=["year","month"])):a.oData.bTimeMode?(t=a.settings.titleContentTime,a.oData.bArrMatchFormat[0]?(e=4,r=["hour","minutes","seconds","meridiem"]):a.oData.bArrMatchFormat[1]?(e=3,r=["hour","minutes","seconds"]):a.oData.bArrMatchFormat[2]?(e=3,r=["hour","minutes","meridiem"]):a.oData.bArrMatchFormat[3]&&(e=2,r=["hour","minutes"])):a.oData.bDateTimeMode&&(t=a.settings.titleContentDateTime,a.oData.bArrMatchFormat[0]?(e=6,r=["day","month","year","hour","minutes","seconds"]):a.oData.bArrMatchFormat[1]?(e=7,r=["day","month","year","hour","minutes","seconds","meridiem"]):a.oData.bArrMatchFormat[2]?(e=6,r=["month","day","year","hour","minutes","seconds"]):a.oData.bArrMatchFormat[3]?(e=7,r=["month","day","year","hour","minutes","seconds","meridiem"]):a.oData.bArrMatchFormat[4]?(e=6,r=["year","month","day","hour","minutes","seconds"]):a.oData.bArrMatchFormat[5]?(e=7,r=["year","month","day","hour","minutes","seconds","meridiem"]):a.oData.bArrMatchFormat[6]?(e=6,r=["day","month","year","hour","minutes","seconds"]):a.oData.bArrMatchFormat[7]?(e=7,r=["day","month","year","hour","minutes","seconds","meridiem"]):a.oData.bArrMatchFormat[8]?(e=5,r=["day","month","year","hour","minutes"]):a.oData.bArrMatchFormat[9]?(e=6,r=["day","month","year","hour","minutes","meridiem"]):a.oData.bArrMatchFormat[10]?(e=5,r=["month","day","year","hour","minutes"]):a.oData.bArrMatchFormat[11]?(e=6,r=["month","day","year","hour","minutes","meridiem"]):a.oData.bArrMatchFormat[12]?(e=5,r=["year","month","day","hour","minutes"]):a.oData.bArrMatchFormat[13]?(e=6,r=["year","month","day","hour","minutes","meridiem"]):a.oData.bArrMatchFormat[14]?(e=5,r=["day","month","year","hour","minutes"]):a.oData.bArrMatchFormat[15]&&(e=6,r=["day","month","year","hour","minutes","meridiem"]));var n,o="dtpicker-comp"+e,i=!1,s=!1,m=!1;for(n=0;n<a.settings.buttonsToDisplay.length;n++)b.cf._compare(a.settings.buttonsToDisplay[n],"HeaderCloseButton")?i=!0:b.cf._compare(a.settings.buttonsToDisplay[n],"SetButton")?s=!0:b.cf._compare(a.settings.buttonsToDisplay[n],"ClearButton")&&(m=!0);var u="";a.settings.showHeader&&(u+="<div class='dtpicker-header'>",u+="<div class='dtpicker-title'>"+t+"</div>",i&&(u+="<a class='dtpicker-close'>&times;</a>"),u+="<div class='dtpicker-value'></div>",u+="</div>");var c="";for(c+="<div class='dtpicker-components'>",n=0;n<e;n++){var d=r[n];c+="<div class='dtpicker-compOutline "+o+"'>",c+="<div class='dtpicker-comp "+d+"'>",c+="<a class='dtpicker-compButton increment'>"+a.settings.incrementButtonContent+"</a>",a.settings.readonlyInputs?c+="<input type='text' class='dtpicker-compValue' readonly>":c+="<input type='text' class='dtpicker-compValue'>",c+="<a class='dtpicker-compButton decrement'>"+a.settings.decrementButtonContent+"</a>",a.settings.labels&&(c+="<div class='dtpicker-label'>"+a.settings.labels[d]+"</div>"),c+="</div>",c+="</div>"}c+="</div>";var D="";D+="<div class='dtpicker-buttonCont"+(s&&m?" dtpicker-twoButtons":" dtpicker-singleButton")+"'>",s&&(D+="<a class='dtpicker-button dtpicker-buttonSet'>"+a.settings.setButtonContent+"</a>"),m&&(D+="<a class='dtpicker-button dtpicker-buttonClear'>"+a.settings.clearButtonContent+"</a>");var l=u+c+(D+="</div>");b(a.element).find(".dtpicker-subcontent").html(l),a._setCurrentDate(),a._addEventHandlersForPicker()},_addEventHandlersForPicker:function(){var e,a,r=this;if(r.settings.isInline||b(document).on("click.DateTimePicker",function(t){r.oData.bElemFocused&&r._hidePicker("")}),b(document).on("keydown.DateTimePicker",function(t){if(a=parseInt(t.keyCode?t.keyCode:t.which),!b(".dtpicker-compValue").is(":focus")&&9===a)return r._setButtonAction(!0),b("[tabIndex="+(r.oData.iTabIndex+1)+"]").focus(),!1;if(b(".dtpicker-compValue").is(":focus")){if(38===a)return e=b(".dtpicker-compValue:focus").parent().attr("class"),r._incrementDecrementActionsUsingArrowAndMouse(e,"inc"),!1;if(40===a)return e=b(".dtpicker-compValue:focus").parent().attr("class"),r._incrementDecrementActionsUsingArrowAndMouse(e,"dec"),!1}}),r.settings.isInline||b(document).on("keydown.DateTimePicker",function(t){a=parseInt(t.keyCode?t.keyCode:t.which),b(".dtpicker-compValue").is(":focus")||9===a||r._hidePicker("")}),b(".dtpicker-cont *").click(function(t){t.stopPropagation()}),r.settings.readonlyInputs||(b(".dtpicker-compValue").not(".month .dtpicker-compValue, .meridiem .dtpicker-compValue").keyup(function(){this.value=this.value.replace(/[^0-9\.]/g,"")}),b(".dtpicker-compValue").focus(function(){r.oData.bElemFocused=!0,b(this).select()}),b(".dtpicker-compValue").blur(function(){r._getValuesFromInputBoxes(),r._setCurrentDate(),r.oData.bElemFocused=!1;var t=b(this).parent().parent();setTimeout(function(){t.is(":last-child")&&!r.oData.bElemFocused&&r._setButtonAction(!1)},50)}),b(".dtpicker-compValue").keyup(function(t){var e,a=b(this),r=a.val(),n=r.length;a.parent().hasClass("day")||a.parent().hasClass("hour")||a.parent().hasClass("minutes")||a.parent().hasClass("meridiem")?2<n&&(e=r.slice(0,2),a.val(e)):a.parent().hasClass("month")?3<n&&(e=r.slice(0,3),a.val(e)):a.parent().hasClass("year")&&4<n&&(e=r.slice(0,4),a.val(e)),9===parseInt(t.keyCode?t.keyCode:t.which)&&b(this).select()})),b(r.element).find(".dtpicker-compValue").on("mousewheel DOMMouseScroll onmousewheel",function(t){if(b(".dtpicker-compValue").is(":focus"))return 0<Math.max(-1,Math.min(1,t.originalEvent.wheelDelta))?(e=b(".dtpicker-compValue:focus").parent().attr("class"),r._incrementDecrementActionsUsingArrowAndMouse(e,"inc")):(e=b(".dtpicker-compValue:focus").parent().attr("class"),r._incrementDecrementActionsUsingArrowAndMouse(e,"dec")),!1}),b(r.element).find(".dtpicker-close").click(function(t){r.settings.buttonClicked&&r.settings.buttonClicked.call(r,"CLOSE",r.oData.oInputElement),r.settings.isInline||r._hidePicker("")}),b(r.element).find(".dtpicker-buttonSet").click(function(t){r.settings.buttonClicked&&r.settings.buttonClicked.call(r,"SET",r.oData.oInputElement),r._setButtonAction(!1)}),b(r.element).find(".dtpicker-buttonClear").click(function(t){r.settings.buttonClicked&&r.settings.buttonClicked.call(r,"CLEAR",r.oData.oInputElement),r._clearButtonAction()}),r.settings.captureTouchHold||r.settings.captureMouseHold){var t="";r.settings.captureTouchHold&&r.oData.bIsTouchDevice&&(t+="touchstart touchmove touchend "),r.settings.captureMouseHold&&(t+="mousedown mouseup"),b(".dtpicker-cont *").on(t,function(t){r._clearIntervalForTouchEvents()}),r._bindTouchEvents("day"),r._bindTouchEvents("month"),r._bindTouchEvents("year"),r._bindTouchEvents("hour"),r._bindTouchEvents("minutes"),r._bindTouchEvents("seconds")}else b(r.element).find(".day .increment, .day .increment *").click(function(t){r.oData.iCurrentDay++,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".day .decrement, .day .decrement *").click(function(t){r.oData.iCurrentDay--,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".month .increment, .month .increment *").click(function(t){r.oData.iCurrentMonth++,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".month .decrement, .month .decrement *").click(function(t){r.oData.iCurrentMonth--,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".year .increment, .year .increment *").click(function(t){r.oData.iCurrentYear++,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".year .decrement, .year .decrement *").click(function(t){r.oData.iCurrentYear--,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".hour .increment, .hour .increment *").click(function(t){r.oData.iCurrentHour++,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".hour .decrement, .hour .decrement *").click(function(t){r.oData.iCurrentHour--,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".minutes .increment, .minutes .increment *").click(function(t){r.oData.iCurrentMinutes+=r.settings.minuteInterval,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".minutes .decrement, .minutes .decrement *").click(function(t){r.oData.iCurrentMinutes-=r.settings.minuteInterval,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".seconds .increment, .seconds .increment *").click(function(t){r.oData.iCurrentSeconds+=r.settings.secondsInterval,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()}),b(r.element).find(".seconds .decrement, .seconds .decrement *").click(function(t){r.oData.iCurrentSeconds-=r.settings.secondsInterval,r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()});b(r.element).find(".meridiem .dtpicker-compButton, .meridiem .dtpicker-compButton *").click(function(t){b.cf._compare(r.oData.sCurrentMeridiem,"AM")?(r.oData.sCurrentMeridiem="PM",r.oData.iCurrentHour+=12):b.cf._compare(r.oData.sCurrentMeridiem,"PM")&&(r.oData.sCurrentMeridiem="AM",r.oData.iCurrentHour-=12),r._setCurrentDate(),r._setOutputOnIncrementOrDecrement()})},_adjustMinutes:function(t){var e=this;return e.settings.roundOffMinutes&&1!==e.settings.minuteInterval&&(t=t%e.settings.minuteInterval?t-t%e.settings.minuteInterval+e.settings.minuteInterval:t),t},_adjustSeconds:function(t){var e=this;return e.settings.roundOffSeconds&&1!==e.settings.secondsInterval&&(t=t%e.settings.secondsInterval?t-t%e.settings.secondsInterval+e.settings.secondsInterval:t),t},_getValueOfElement:function(t){return b.cf._compare(b(t).prop("tagName"),"INPUT")?b(t).val():b(t).html()},_setValueOfElement:function(t,e){var a=this;b.cf._isValid(e)||(e=b(a.oData.oInputElement)),b.cf._compare(e.prop("tagName"),"INPUT")?e.val(t):e.html(t);var r=a.getDateObjectForInputField(e);return a.settings.settingValueOfElement&&a.settings.settingValueOfElement.call(a,t,r,e),e.change(),t},_bindTouchEvents:function(e){var a=this;b(a.element).find("."+e+" .increment, ."+e+" .increment *").on("touchstart mousedown",function(t){t.stopPropagation(),b.cf._isValid(a.oData.sTouchButton)||(a.oData.iTouchStart=(new Date).getTime(),a.oData.sTouchButton=e+"-inc",a._setIntervalForTouchEvents())}),b(a.element).find("."+e+" .increment, ."+e+" .increment *").on("touchend mouseup",function(t){t.stopPropagation(),a._clearIntervalForTouchEvents()}),b(a.element).find("."+e+" .decrement, ."+e+" .decrement *").on("touchstart mousedown",function(t){t.stopPropagation(),b.cf._isValid(a.oData.sTouchButton)||(a.oData.iTouchStart=(new Date).getTime(),a.oData.sTouchButton=e+"-dec",a._setIntervalForTouchEvents())}),b(a.element).find("."+e+" .decrement, ."+e+" .decrement *").on("touchend mouseup",function(t){t.stopPropagation(),a._clearIntervalForTouchEvents()})},_setIntervalForTouchEvents:function(){var t,e=this,a=e.oData.bIsTouchDevice?e.settings.touchHoldInterval:e.settings.mouseHoldInterval;b.cf._isValid(e.oData.oTimeInterval)||(e.oData.oTimeInterval=setInterval(function(){t=(new Date).getTime()-e.oData.iTouchStart,a<t&&b.cf._isValid(e.oData.sTouchButton)&&("day-inc"===e.oData.sTouchButton?e.oData.iCurrentDay++:"day-dec"===e.oData.sTouchButton?e.oData.iCurrentDay--:"month-inc"===e.oData.sTouchButton?e.oData.iCurrentMonth++:"month-dec"===e.oData.sTouchButton?e.oData.iCurrentMonth--:"year-inc"===e.oData.sTouchButton?e.oData.iCurrentYear++:"year-dec"===e.oData.sTouchButton?e.oData.iCurrentYear--:"hour-inc"===e.oData.sTouchButton?e.oData.iCurrentHour++:"hour-dec"===e.oData.sTouchButton?e.oData.iCurrentHour--:"minute-inc"===e.oData.sTouchButton?e.oData.iCurrentMinutes+=e.settings.minuteInterval:"minute-dec"===e.oData.sTouchButton?e.oData.iCurrentMinutes-=e.settings.minuteInterval:"second-inc"===e.oData.sTouchButton?e.oData.iCurrentSeconds+=e.settings.secondsInterval:"second-dec"===e.oData.sTouchButton&&(e.oData.iCurrentSeconds-=e.settings.secondsInterval),e._setCurrentDate(),e._setOutputOnIncrementOrDecrement(),e.oData.iTouchStart=(new Date).getTime())},a))},_clearIntervalForTouchEvents:function(){var t=this;clearInterval(t.oData.oTimeInterval),b.cf._isValid(t.oData.sTouchButton)&&(t.oData.sTouchButton=null,t.oData.iTouchStart=0),t.oData.oTimeInterval=null},_incrementDecrementActionsUsingArrowAndMouse:function(t,e){var a=this;t.includes("day")?"inc"===e?a.oData.iCurrentDay++:"dec"===e&&a.oData.iCurrentDay--:t.includes("month")?"inc"===e?a.oData.iCurrentMonth++:"dec"===e&&a.oData.iCurrentMonth--:t.includes("year")?"inc"===e?a.oData.iCurrentYear++:"dec"===e&&a.oData.iCurrentYear--:t.includes("hour")?"inc"===e?a.oData.iCurrentHour++:"dec"===e&&a.oData.iCurrentHour--:t.includes("minutes")?"inc"===e?a.oData.iCurrentMinutes+=a.settings.minuteInterval:"dec"===e&&(a.oData.iCurrentMinutes-=a.settings.minuteInterval):t.includes("seconds")&&("inc"===e?a.oData.iCurrentSeconds+=a.settings.secondsInterval:"dec"===e&&(a.oData.iCurrentSeconds-=a.settings.secondsInterval)),a._setCurrentDate(),a._setOutputOnIncrementOrDecrement()},_parseDate:function(t){var e,a=this,r=a.settings.defaultDate?new Date(a.settings.defaultDate):new Date,n=r.getDate(),o=r.getMonth(),i=r.getFullYear();b.cf._isValid(t)&&("string"==typeof t?(e=a.oData.bArrMatchFormat[4]||a.oData.bArrMatchFormat[5]||a.oData.bArrMatchFormat[6]?t.split(a.settings.monthYearSeparator):t.split(a.settings.dateSeparator),a.oData.bArrMatchFormat[0]?(n=parseInt(e[0]),o=parseInt(e[1]-1),i=parseInt(e[2])):a.oData.bArrMatchFormat[1]?(o=parseInt(e[0]-1),n=parseInt(e[1]),i=parseInt(e[2])):a.oData.bArrMatchFormat[2]?(i=parseInt(e[0]),o=parseInt(e[1]-1),n=parseInt(e[2])):a.oData.bArrMatchFormat[3]?(n=parseInt(e[0]),o=a._getShortMonthIndex(e[1]),i=parseInt(e[2])):a.oData.bArrMatchFormat[4]?(n=1,o=parseInt(e[0])-1,i=parseInt(e[1])):a.oData.bArrMatchFormat[5]?(n=1,o=a._getShortMonthIndex(e[0]),i=parseInt(e[1])):a.oData.bArrMatchFormat[6]?(n=1,o=a._getFullMonthIndex(e[0]),i=parseInt(e[1])):a.oData.bArrMatchFormat[7]&&(n=1,o=parseInt(e[1])-1,i=parseInt(e[0]))):(n=t.getDate(),o=t.getMonth(),i=t.getFullYear()));return r=new Date(i,o,n,0,0,0,0)},_parseTime:function(t){var e,a,r,n=this,o=n.settings.defaultDate?new Date(n.settings.defaultDate):new Date,i=o.getDate(),s=o.getMonth(),m=o.getFullYear(),u=o.getHours(),c=o.getMinutes(),d=o.getSeconds(),D=n.oData.bArrMatchFormat[0]||n.oData.bArrMatchFormat[1];return d=D?n._adjustSeconds(d):0,b.cf._isValid(t)&&("string"==typeof t?(n.oData.bIs12Hour&&(t=(e=t.split(n.settings.timeMeridiemSeparator))[0],a=e[1],b.cf._compare(a,"AM")||b.cf._compare(a,"PM")||(a="")),r=t.split(n.settings.timeSeparator),u=parseInt(r[0]),c=parseInt(r[1]),D&&(d=parseInt(r[2]),d=n._adjustSeconds(d)),12===u&&b.cf._compare(a,"AM")?u=0:u<12&&b.cf._compare(a,"PM")&&(u+=12)):(u=t.getHours(),c=t.getMinutes(),D&&(d=t.getSeconds(),d=n._adjustSeconds(d)))),c=n._adjustMinutes(c),o=new Date(m,s,i,u,c,d,0)},_parseDateTime:function(t){var e,a,r,n,o,i=this,s=i.settings.defaultDate?new Date(i.settings.defaultDate):new Date,m=s.getDate(),u=s.getMonth(),c=s.getFullYear(),d=s.getHours(),D=s.getMinutes(),l=s.getSeconds(),p="",h=i.oData.bArrMatchFormat[0]||i.oData.bArrMatchFormat[1]||i.oData.bArrMatchFormat[2]||i.oData.bArrMatchFormat[3]||i.oData.bArrMatchFormat[4]||i.oData.bArrMatchFormat[5]||i.oData.bArrMatchFormat[6]||i.oData.bArrMatchFormat[7];return l=h?i._adjustSeconds(l):0,b.cf._isValid(t)&&("string"==typeof t?(a=(e=t.split(i.settings.dateTimeSeparator))[0].split(i.settings.dateSeparator),i.oData.bArrMatchFormat[0]||i.oData.bArrMatchFormat[1]||i.oData.bArrMatchFormat[8]||i.oData.bArrMatchFormat[9]?(m=parseInt(a[0]),u=parseInt(a[1]-1),c=parseInt(a[2])):i.oData.bArrMatchFormat[2]||i.oData.bArrMatchFormat[3]||i.oData.bArrMatchFormat[10]||i.oData.bArrMatchFormat[11]?(u=parseInt(a[0]-1),m=parseInt(a[1]),c=parseInt(a[2])):i.oData.bArrMatchFormat[4]||i.oData.bArrMatchFormat[5]||i.oData.bArrMatchFormat[12]||i.oData.bArrMatchFormat[13]?(c=parseInt(a[0]),u=parseInt(a[1]-1),m=parseInt(a[2])):(i.oData.bArrMatchFormat[6]||i.oData.bArrMatchFormat[7]||i.oData.bArrMatchFormat[14]||i.oData.bArrMatchFormat[15])&&(m=parseInt(a[0]),u=i._getShortMonthIndex(a[1]),c=parseInt(a[2])),r=e[1],b.cf._isValid(r)&&(i.oData.bIs12Hour&&(p=b.cf._compare(i.settings.dateTimeSeparator,i.settings.timeMeridiemSeparator)&&3===e.length?e[2]:(r=(n=r.split(i.settings.timeMeridiemSeparator))[0],n[1]),b.cf._compare(p,"AM")||b.cf._compare(p,"PM")||(p="")),o=r.split(i.settings.timeSeparator),d=parseInt(o[0]),D=parseInt(o[1]),h&&(l=parseInt(o[2])),12===d&&b.cf._compare(p,"AM")?d=0:d<12&&b.cf._compare(p,"PM")&&(d+=12))):(m=t.getDate(),u=t.getMonth(),c=t.getFullYear(),d=t.getHours(),D=t.getMinutes(),h&&(l=t.getSeconds(),l=i._adjustSeconds(l)))),D=i._adjustMinutes(D),s=new Date(c,u,m,d,D,l,0)},_getShortMonthIndex:function(t){for(var e=0;e<this.settings.shortMonthNames.length;e++)if(b.cf._compare(t,this.settings.shortMonthNames[e]))return e},_getFullMonthIndex:function(t){for(var e=0;e<this.settings.fullMonthNames.length;e++)if(b.cf._compare(t,this.settings.fullMonthNames[e]))return e},getIs12Hour:function(t,e){var a=this,r=!1,n=Function.length;return a._setMatchFormat(n,t,e),a.oData.bTimeMode?r=a.oData.bArrMatchFormat[0]||a.oData.bArrMatchFormat[2]:a.oData.bDateTimeMode&&(r=a.oData.bArrMatchFormat[1]||a.oData.bArrMatchFormat[3]||a.oData.bArrMatchFormat[5]||a.oData.bArrMatchFormat[7]||a.oData.bArrMatchFormat[9]||a.oData.bArrMatchFormat[11]||a.oData.bArrMatchFormat[13]||a.oData.bArrMatchFormat[15]),a._setMatchFormat(n),r},_setVariablesForDate:function(t,e,a){var r,n=this,o={},i=b.cf._isValid(t);if(i?(r=new Date(t),b.cf._isValid(e)||(e=!0),b.cf._isValid(a)||(a=!0)):(r="[object Date]"===Object.prototype.toString.call(n.oData.dCurrentDate)&&isFinite(n.oData.dCurrentDate)?new Date(n.oData.dCurrentDate):new Date,b.cf._isValid(e)||(e=n.oData.bTimeMode||n.oData.bDateTimeMode),b.cf._isValid(a)||(a=n.oData.bIs12Hour)),o.iCurrentDay=r.getDate(),o.iCurrentMonth=r.getMonth(),o.iCurrentYear=r.getFullYear(),o.iCurrentWeekday=r.getDay(),e&&(o.iCurrentHour=r.getHours(),o.iCurrentMinutes=r.getMinutes(),o.iCurrentSeconds=r.getSeconds(),a&&(o.sCurrentMeridiem=n._determineMeridiemFromHourAndMinutes(o.iCurrentHour,o.iCurrentMinutes))),i)return o;n.oData=b.extend(n.oData,o)},_getValuesFromInputBoxes:function(){var t,e,a,r,n,o,i=this;(i.oData.bDateMode||i.oData.bDateTimeMode)&&(1<(t=b(i.element).find(".month .dtpicker-compValue").val()).length&&(t=t.charAt(0).toUpperCase()+t.slice(1)),-1!==(e=i.settings.shortMonthNames.indexOf(t))?i.oData.iCurrentMonth=parseInt(e):t.match("^[+|-]?[0-9]+$")&&(i.oData.iCurrentMonth=parseInt(t-1)),i.oData.iCurrentDay=parseInt(b(i.element).find(".day .dtpicker-compValue").val())||i.oData.iCurrentDay,i.oData.iCurrentYear=parseInt(b(i.element).find(".year .dtpicker-compValue").val())||i.oData.iCurrentYear);(i.oData.bTimeMode||i.oData.bDateTimeMode)&&(a=parseInt(b(i.element).find(".hour .dtpicker-compValue").val()),r=i._adjustMinutes(parseInt(b(i.element).find(".minutes .dtpicker-compValue").val())),n=i._adjustMinutes(parseInt(b(i.element).find(".seconds .dtpicker-compValue").val())),i.oData.iCurrentHour=isNaN(a)?i.oData.iCurrentHour:a,i.oData.iCurrentMinutes=isNaN(r)?i.oData.iCurrentMinutes:r,i.oData.iCurrentSeconds=isNaN(n)?i.oData.iCurrentSeconds:n,59<i.oData.iCurrentSeconds&&(i.oData.iCurrentMinutes+=i.oData.iCurrentSeconds/60,i.oData.iCurrentSeconds=i.oData.iCurrentSeconds%60),59<i.oData.iCurrentMinutes&&(i.oData.iCurrentHour+=i.oData.iCurrentMinutes/60,i.oData.iCurrentMinutes=i.oData.iCurrentMinutes%60),i.oData.bIs12Hour?12<i.oData.iCurrentHour&&(i.oData.iCurrentHour=i.oData.iCurrentHour%12):23<i.oData.iCurrentHour&&(i.oData.iCurrentHour=i.oData.iCurrentHour%23),i.oData.bIs12Hour&&(o=b(i.element).find(".meridiem .dtpicker-compValue").val(),(b.cf._compare(o,"AM")||b.cf._compare(o,"PM"))&&(i.oData.sCurrentMeridiem=o),b.cf._compare(i.oData.sCurrentMeridiem,"PM")&&12!==i.oData.iCurrentHour&&i.oData.iCurrentHour<13&&(i.oData.iCurrentHour+=12),b.cf._compare(i.oData.sCurrentMeridiem,"AM")&&12===i.oData.iCurrentHour&&(i.oData.iCurrentHour=0)))},_setCurrentDate:function(){var t=this;(t.oData.bTimeMode||t.oData.bDateTimeMode)&&(59<t.oData.iCurrentSeconds?(t.oData.iCurrentMinutes+=t.oData.iCurrentSeconds/60,t.oData.iCurrentSeconds=t.oData.iCurrentSeconds%60):t.oData.iCurrentSeconds<0&&(t.oData.iCurrentMinutes-=t.settings.minuteInterval,t.oData.iCurrentSeconds+=60),t.oData.iCurrentMinutes=t._adjustMinutes(t.oData.iCurrentMinutes),t.oData.iCurrentSeconds=t._adjustSeconds(t.oData.iCurrentSeconds));var e,a,r,n,o,i,s,m=new Date(t.oData.iCurrentYear,t.oData.iCurrentMonth,t.oData.iCurrentDay,t.oData.iCurrentHour,t.oData.iCurrentMinutes,t.oData.iCurrentSeconds,0),u=!1,c=!1;if(null!==t.oData.dMaxValue&&(u=m.getTime()>t.oData.dMaxValue.getTime()),null!==t.oData.dMinValue&&(c=m.getTime()<t.oData.dMinValue.getTime()),u||c){var d=!1,D=!1;null!==t.oData.dMaxValue&&(d=t.oData.dCurrentDate.getTime()>t.oData.dMaxValue.getTime()),null!==t.oData.dMinValue&&(D=t.oData.dCurrentDate.getTime()<t.oData.dMinValue.getTime()),d||D?(d&&(m=new Date(t.oData.dMaxValue)),D&&(m=new Date(t.oData.dMinValue))):m=new Date(t.oData.dCurrentDate)}if(t.oData.dCurrentDate=new Date(m),t._setVariablesForDate(),a={},s=i=o="",(t.oData.bDateMode||t.oData.bDateTimeMode)&&(t.oData.bDateMode&&(t.oData.bArrMatchFormat[4]||t.oData.bArrMatchFormat[5]||t.oData.bArrMatchFormat[6])&&(t.oData.iCurrentDay=1),r=t._formatDate(),b(t.element).find(".day .dtpicker-compValue").val(r.dd),t.oData.bDateMode?t.oData.bArrMatchFormat[4]||t.oData.bArrMatchFormat[7]?b(t.element).find(".month .dtpicker-compValue").val(r.MM):t.oData.bArrMatchFormat[6]?b(t.element).find(".month .dtpicker-compValue").val(r.month):b(t.element).find(".month .dtpicker-compValue").val(r.monthShort):b(t.element).find(".month .dtpicker-compValue").val(r.monthShort),b(t.element).find(".year .dtpicker-compValue").val(r.yyyy),t.settings.formatHumanDate?a=b.extend(a,r):t.oData.bDateMode&&(t.oData.bArrMatchFormat[4]||t.oData.bArrMatchFormat[5]||t.oData.bArrMatchFormat[6]||t.oData.bArrMatchFormat[7])?t.oData.bArrMatchFormat[4]?o=r.MM+t.settings.monthYearSeparator+r.yyyy:t.oData.bArrMatchFormat[5]?o=r.monthShort+t.settings.monthYearSeparator+r.yyyy:t.oData.bArrMatchFormat[6]?o=r.month+t.settings.monthYearSeparator+r.yyyy:t.oData.bArrMatchFormat[7]&&(o=r.yyyy+t.settings.monthYearSeparator+r.MM):o=r.dayShort+", "+r.month+" "+r.dd+", "+r.yyyy),t.oData.bTimeMode||t.oData.bDateTimeMode)if(n=t._formatTime(),t.oData.bIs12Hour&&b(t.element).find(".meridiem .dtpicker-compValue").val(t.oData.sCurrentMeridiem),b(t.element).find(".hour .dtpicker-compValue").val(n.hour),b(t.element).find(".minutes .dtpicker-compValue").val(n.mm),b(t.element).find(".seconds .dtpicker-compValue").val(n.ss),t.settings.formatHumanDate)a=b.extend(a,n);else{var l=t.oData.bTimeMode&&(t.oData.bArrMatchFormat[0]||t.oData.bArrMatchFormat[1]),p=t.oData.bDateTimeMode&&(t.oData.bArrMatchFormat[0]||t.oData.bArrMatchFormat[1]||t.oData.bArrMatchFormat[2]||t.oData.bArrMatchFormat[3]||t.oData.bArrMatchFormat[4]||t.oData.bArrMatchFormat[5]||t.oData.bArrMatchFormat[6]||t.oData.bArrMatchFormat[7]);i=l||p?n.hour+t.settings.timeSeparator+n.mm+t.settings.timeSeparator+n.ss:n.hour+t.settings.timeSeparator+n.mm,t.oData.bIs12Hour&&(i+=t.settings.timeMeridiemSeparator+t.oData.sCurrentMeridiem)}t.settings.formatHumanDate?(t.oData.bDateTimeMode?e=t.oData.sDateFormat:t.oData.bDateMode?e=t.oData.sTimeFormat:t.oData.bTimeMode&&(e=t.oData.sDateTimeFormat),s=t.settings.formatHumanDate.call(t,a,t.settings.mode,e)):t.oData.bDateTimeMode?s=o+t.settings.dateTimeSeparator+i:t.oData.bDateMode?s=o:t.oData.bTimeMode&&(s=i),b(t.element).find(".dtpicker-value").html(s),t._setButtons()},_formatDate:function(t){var e,a,r,n,o,i,s,m=this,u={};return b.cf._isValid(t)?u=b.extend({},t):(u.iCurrentDay=m.oData.iCurrentDay,u.iCurrentMonth=m.oData.iCurrentMonth,u.iCurrentYear=m.oData.iCurrentYear,u.iCurrentWeekday=m.oData.iCurrentWeekday),e=(e=u.iCurrentDay)<10?"0"+e:e,r=u.iCurrentMonth,n=(n=u.iCurrentMonth+1)<10?"0"+n:n,o=m.settings.shortMonthNames[r],i=m.settings.fullMonthNames[r],a=u.iCurrentYear,s=u.iCurrentWeekday,{dd:e,MM:n,monthShort:o,month:i,yyyy:a,dayShort:m.settings.shortDayNames[s],day:m.settings.fullDayNames[s]}},_formatTime:function(t){var e,a,r,n,o,i,s,m=this,u={};return b.cf._isValid(t)?u=b.extend({},t):(u.iCurrentHour=m.oData.iCurrentHour,u.iCurrentMinutes=m.oData.iCurrentMinutes,u.iCurrentSeconds=m.oData.iCurrentSeconds,u.sCurrentMeridiem=m.oData.sCurrentMeridiem),o=a=(e=u.iCurrentHour)<10?"0"+e:e,12<(r=u.iCurrentHour)&&(r-=12),"00"===o&&(r=12),n=r<10?"0"+r:r,m.oData.bIs12Hour&&(o=n),i=(i=u.iCurrentMinutes)<10?"0"+i:i,s=(s=u.iCurrentSeconds)<10?"0"+s:s,{H:e,HH:a,h:r,hh:n,hour:o,m:u.iCurrentMinutes,mm:i,s:u.iCurrentSeconds,ss:s,ME:u.sCurrentMeridiem}},_setButtons:function(){var t,e,a,r=this;(b(r.element).find(".dtpicker-compButton").removeClass("dtpicker-compButtonDisable").addClass("dtpicker-compButtonEnable"),null!==r.oData.dMaxValue&&(r.oData.bTimeMode?((r.oData.iCurrentHour+1>r.oData.dMaxValue.getHours()||r.oData.iCurrentHour+1===r.oData.dMaxValue.getHours()&&r.oData.iCurrentMinutes>r.oData.dMaxValue.getMinutes())&&b(r.element).find(".hour .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),r.oData.iCurrentHour>=r.oData.dMaxValue.getHours()&&r.oData.iCurrentMinutes+1>r.oData.dMaxValue.getMinutes()&&b(r.element).find(".minutes .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):((t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay+1,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()>r.oData.dMaxValue.getTime()&&b(r.element).find(".day .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth+1,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()>r.oData.dMaxValue.getTime()&&b(r.element).find(".month .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear+1,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()>r.oData.dMaxValue.getTime()&&b(r.element).find(".year .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour+1,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()>r.oData.dMaxValue.getTime()&&b(r.element).find(".hour .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes+1,r.oData.iCurrentSeconds,0)).getTime()>r.oData.dMaxValue.getTime()&&b(r.element).find(".minutes .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds+1,0)).getTime()>r.oData.dMaxValue.getTime()&&b(r.element).find(".seconds .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"))),null!==r.oData.dMinValue&&(r.oData.bTimeMode?((r.oData.iCurrentHour-1<r.oData.dMinValue.getHours()||r.oData.iCurrentHour-1===r.oData.dMinValue.getHours()&&r.oData.iCurrentMinutes<r.oData.dMinValue.getMinutes())&&b(r.element).find(".hour .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),r.oData.iCurrentHour<=r.oData.dMinValue.getHours()&&r.oData.iCurrentMinutes-1<r.oData.dMinValue.getMinutes()&&b(r.element).find(".minutes .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):((t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay-1,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()<r.oData.dMinValue.getTime()&&b(r.element).find(".day .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth-1,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()<r.oData.dMinValue.getTime()&&b(r.element).find(".month .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear-1,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()<r.oData.dMinValue.getTime()&&b(r.element).find(".year .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour-1,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0)).getTime()<r.oData.dMinValue.getTime()&&b(r.element).find(".hour .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes-1,r.oData.iCurrentSeconds,0)).getTime()<r.oData.dMinValue.getTime()&&b(r.element).find(".minutes .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),(t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay,r.oData.iCurrentHour,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds-1,0)).getTime()<r.oData.dMinValue.getTime()&&b(r.element).find(".seconds .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"))),r.oData.bIs12Hour)&&(null===r.oData.dMaxValue&&null===r.oData.dMinValue||(e=r.oData.iCurrentHour,b.cf._compare(r.oData.sCurrentMeridiem,"AM")?e+=12:b.cf._compare(r.oData.sCurrentMeridiem,"PM")&&(e-=12),t=new Date(r.oData.iCurrentYear,r.oData.iCurrentMonth,r.oData.iCurrentDay,e,r.oData.iCurrentMinutes,r.oData.iCurrentSeconds,0),null!==r.oData.dMaxValue&&(r.oData.bTimeMode?(a=r.oData.iCurrentMinutes,(e>r.oData.dMaxValue.getHours()||e===r.oData.dMaxValue.getHours()&&a>r.oData.dMaxValue.getMinutes())&&b(r.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):t.getTime()>r.oData.dMaxValue.getTime()&&b(r.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")),null!==r.oData.dMinValue&&(r.oData.bTimeMode?(a=r.oData.iCurrentMinutes,(e<r.oData.dMinValue.getHours()||e===r.oData.dMinValue.getHours()&&a<r.oData.dMinValue.getMinutes())&&b(r.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):t.getTime()<r.oData.dMinValue.getTime()&&b(r.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"))))},setIsPopup:function(t){var e=this;if(!e.settings.isInline)if(e.settings.isPopup=t,"none"!==b(e.element).css("display")&&e._hidePicker(0),e.settings.isPopup)b(e.element).addClass("dtpicker-mobile"),b(e.element).css({position:"fixed",top:0,left:0,width:"100%",height:"100%"});else if(b(e.element).removeClass("dtpicker-mobile"),null!==e.oData.oInputElement){var a=b(e.oData.oInputElement).offset().top+b(e.oData.oInputElement).outerHeight(),r=b(e.oData.oInputElement).offset().left,n=b(e.oData.oInputElement).outerWidth();b(e.element).css({position:"absolute",top:a,left:r,width:n,height:"auto"})}},_compareDates:function(t,e){var a=((t=new Date(t.getDate(),t.getMonth(),t.getFullYear(),0,0,0,0)).getTime()-e.getTime())/864e5;return 0==a?a:a/Math.abs(a)},_compareTime:function(t,e){var a=0;return t.getHours()===e.getHours()&&t.getMinutes()===e.getMinutes()?a=1:t.getHours()<e.getHours()?a=2:t.getHours()>e.getHours()?a=3:t.getHours()===e.getHours()&&(t.getMinutes()<e.getMinutes()?a=2:t.getMinutes()>e.getMinutes()&&(a=3)),a},_compareDateTime:function(t,e){var a=(t.getTime()-e.getTime())/6e4;return 0==a?a:a/Math.abs(a)},_determineMeridiemFromHourAndMinutes:function(t,e){return 12<t||12===t&&0<=e?"PM":"AM"},setLanguage:function(t){var e=this;return e.settings=b.extend({},b.DateTimePicker.defaults,b.DateTimePicker.i18n[t],e.options),e.settings.language=t,e._setDateFormatArray(),e._setTimeFormatArray(),e._setDateTimeFormatArray(),e}}});