datetimepicker/build/jquery.datetimepicker.full.min.js
Christopher Lassen d2ba49d54d Fresh build
2020-10-12 12:24:08 +02:00

1 line
60 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.DateFormatter=t()}("undefined"!=typeof self?self:this,function(){var g={DAY:864e5,HOUR:3600,defaults:{dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){var t=e%10,a={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/.:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},getInt:function(e,t){return parseInt(e,t||10)},compare:function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},lpad:function(e,t,a){e=e.toString();return a=a||"0",e.length<t?g.lpad(a+e,t):e},merge:function(e){var t,a;for(e=e||{},t=1;t<arguments.length;t++)if(a=arguments[t])for(var n in a)a.hasOwnProperty(n)&&("object"==typeof a[n]?g.merge(e[n],a[n]):e[n]=a[n]);return e},getIndex:function(e,t){for(var a=0;a<t.length;a++)if(t[a].toLowerCase()===e.toLowerCase())return a;return-1}},e=function(e){var t=this,e=g.merge(g.defaults,e);t.dateSettings=e.dateSettings,t.separators=e.separators,t.validParts=e.validParts,t.intParts=e.intParts,t.tzParts=e.tzParts,t.tzClip=e.tzClip};return e.prototype={constructor:e,getMonth:function(e){var t=g.getIndex(e,this.dateSettings.monthsShort)+1;return 0===t&&(t=g.getIndex(e,this.dateSettings.months)+1),t},parseDate:function(e,t){var a,n,r,o,i,s,d,u=this,l=!1,f=!1,c=u.dateSettings,m={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===t)return(r=g.getInt(e))?new Date(1e3*r):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(!(a=t.match(u.validParts))||0===a.length)throw new Error("Invalid date format definition.");for(r=a.length-1;0<=r;r--)"S"===a[r]&&a.splice(r,1);for(n=e.replace(u.separators,"\0").split("\0"),r=0;r<n.length;r++)switch(i=n[r],o=g.getInt(i),a[r]){case"y":case"Y":if(!o)return null;s=i.length,m.year=2===s?g.getInt((o<70?"20":"19")+i):o,l=!0;break;case"m":case"n":case"M":case"F":if(isNaN(o)){if(!(0<(d=u.getMonth(i))))return null;m.month=d}else{if(!(1<=o&&o<=12))return null;m.month=o}l=!0;break;case"d":case"j":if(!(1<=o&&o<=31))return null;m.day=o,l=!0;break;case"g":case"h":if(d=n[i=-1<a.indexOf("a")?a.indexOf("a"):-1<a.indexOf("A")?a.indexOf("A"):-1],-1!==i)d=g.compare(d,c.meridiem[0])?0:g.compare(d,c.meridiem[1])?12:-1,1<=o&&o<=12&&-1!=d?m.hour=o%12==0?d:o+d:0<=o&&o<=23&&(m.hour=o);else{if(!(0<=o&&o<=23))return null;m.hour=o}f=!0;break;case"G":case"H":if(!(0<=o&&o<=23))return null;m.hour=o,f=!0;break;case"i":if(!(0<=o&&o<=59))return null;m.min=o,f=!0;break;case"s":if(!(0<=o&&o<=59))return null;m.sec=o,f=!0}if(!0===l){var h=m.year||0,t=m.month?m.month-1:0,e=m.day||1;m.date=new Date(h,t,e,m.hour,m.min,m.sec,0)}else{if(!0!==f)return null;m.date=new Date(0,0,0,m.hour,m.min,m.sec,0)}return m.date},guessDate:function(e,t){if("string"!=typeof e)return e;var a,n,r,o,i,s=e.replace(this.separators,"\0").split("\0"),d=t.match(this.validParts),u=new Date,l=0;if(!/^[djmn]/g.test(d[0]))return e;for(r=0;r<s.length;r++){if(l=2,o=s[r],i=g.getInt(o.substr(0,2)),isNaN(i))return null;switch(r){case 0:"m"===d[0]||"n"===d[0]?u.setMonth(i-1):u.setDate(i);break;case 1:"m"===d[0]||"n"===d[0]?u.setDate(i):u.setMonth(i-1);break;case 2:if(n=u.getFullYear(),l=(a=o.length)<4?a:4,!(n=g.getInt(a<4?n.toString().substr(0,4-a)+o:o.substr(0,4))))return null;u.setFullYear(n);break;case 3:u.setHours(i);break;case 4:u.setMinutes(i);break;case 5:u.setSeconds(i)}0<(o=o.substr(l)).length&&s.splice(r+1,0,o)}return u},parseFormat:function(e,n){function t(e,t){return i[e]?i[e]():t}var a=this,r=a.dateSettings,o=/\\?(.?)/gi,i={d:function(){return g.lpad(i.j(),2)},D:function(){return r.daysShort[i.w()]},j:function(){return n.getDate()},l:function(){return r.days[i.w()]},N:function(){return i.w()||7},w:function(){return n.getDay()},z:function(){var e=new Date(i.Y(),i.n()-1,i.j()),t=new Date(i.Y(),0,1);return Math.round((e-t)/g.DAY)},W:function(){var e=new Date(i.Y(),i.n()-1,i.j()-i.N()+3),t=new Date(e.getFullYear(),0,4);return g.lpad(1+Math.round((e-t)/g.DAY/7),2)},F:function(){return r.months[n.getMonth()]},m:function(){return g.lpad(i.n(),2)},M:function(){return r.monthsShort[n.getMonth()]},n:function(){return n.getMonth()+1},t:function(){return new Date(i.Y(),i.n(),0).getDate()},L:function(){var e=i.Y();return e%4==0&&e%100!=0||e%400==0?1:0},o:function(){var e=i.n(),t=i.W();return i.Y()+(12===e&&t<9?1:1===e&&9<t?-1:0)},Y:function(){return n.getFullYear()},y:function(){return i.Y().toString().slice(-2)},a:function(){return i.A().toLowerCase()},A:function(){var e=i.G()<12?0:1;return r.meridiem[e]},B:function(){var e=n.getUTCHours()*g.HOUR,t=60*n.getUTCMinutes(),a=n.getUTCSeconds();return g.lpad(Math.floor((e+t+a+g.HOUR)/86.4)%1e3,3)},g:function(){return i.G()%12||12},G:function(){return n.getHours()},h:function(){return g.lpad(i.g(),2)},H:function(){return g.lpad(i.G(),2)},i:function(){return g.lpad(n.getMinutes(),2)},s:function(){return g.lpad(n.getSeconds(),2)},u:function(){return g.lpad(1e3*n.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(n))[1]||"Coordinated Universal Time"},I:function(){return new Date(i.Y(),0)-Date.UTC(i.Y(),0)!=new Date(i.Y(),6)-Date.UTC(i.Y(),6)?1:0},O:function(){var e=n.getTimezoneOffset(),t=Math.abs(e);return(0<e?"-":"+")+g.lpad(100*Math.floor(t/60)+t%60,4)},P:function(){var e=i.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return(String(n).match(a.tzParts)||[""]).pop().replace(a.tzClip,"")||"UTC"},Z:function(){return 60*-n.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(o,t)},r:function(){return"D, d M Y H:i:s O".replace(o,t)},U:function(){return n.getTime()/1e3||0}};return t(e,e)},formatDate:function(e,t){var a,n,r,o,i="";if("string"==typeof e&&!(e=this.parseDate(e,t)))return null;if(e instanceof Date){for(n=t.length,a=0;a<n;a++)"S"!==(o=t.charAt(a))&&"\\"!==o&&(0<a&&"\\"===t.charAt(a-1)?i+=o:(r=this.parseFormat(o,e),a!==n-1&&this.intParts.test(o)&&"S"===t.charAt(a+1)&&(o=g.getInt(r)||0,r+=this.dateSettings.ordinal(o)),i+=r));return i}return""}},e});var datetimepickerFactory=function(N){"use strict";function t(){var e={days:(e=s.i18n[E]).dayOfWeek,daysShort:e.dayOfWeekShort,months:e.months,monthsShort:N.map(e.months,function(e){return e.substring(0,3)})};"function"==typeof DateFormatter&&(L=a=new DateFormatter({dateSettings:N.extend({},n,e)}))}var s={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},kk:{months:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],dayOfWeekShort:["Жк","Дс","Сс","Ср","Бс","Жм","Сб"],dayOfWeek:["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1,insideParent:!1},L=null,a=null,E="en",n={meridiem:["AM","PM"]},r={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(i(t))return a.parseDate(e,t);t=moment(e,t);return!!t.isValid()&&t.toDate()},formatDate:function(e,t){return i(t)?a.formatDate(e,t):moment(e).format(t)},formatMask:function(e){return e.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};N.datetimepicker={setLocale:function(e){e=s.i18n[e]?e:"en";E!==e&&(E=e,t())},setDateFormatter:function(e){var t;L="string"==typeof e&&r.hasOwnProperty(e)?(t=r[e],N.extend(s,t.default_options),t.formatter):e}};var o={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},i=function(e){return-1!==Object.values(o).indexOf(e)};function R(e,t,a){this.date=e,this.desc=t,this.style=a}N.extend(N.datetimepicker,o),t(),window.getComputedStyle||(window.getComputedStyle=function(a){return this.el=a,this.getPropertyValue=function(e){var t=/(-([a-z]))/g;return"float"===e&&(e="styleFloat"),t.test(e)&&(e=e.replace(t,function(e,t,a){return a.toUpperCase()})),a.currentStyle[e]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){for(var a=t||0,n=this.length;a<n;a+=1)if(this[a]===e)return a;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},N.fn.xdsoftScroller=function(y,D){return this.each(function(){function t(e){var t,a={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a.x=t.clientX,a.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(a.x=e.clientX,a.y=e.clientY),a}var o,i,s,d,u,a,l=N(this),f=0,c=100,n=!1,r=0,m=0,h=0,g=!1,p=0;"hide"!==D?(N(this).hasClass("xdsoft_scroller_box")||(o=l.children().eq(0),f=Math.abs(parseInt(o.css("marginTop"),10)),i=l[0].clientHeight,s=o[0].offsetHeight,d=N('<div class="xdsoft_scrollbar"></div>'),u=N('<div class="xdsoft_scroller"></div>'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),a=function(e){e=t(e).y-r+p;e<0&&(e=0),e+u[0].offsetHeight>h&&(e=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),r=t(e).y,p=parseInt(u.css("marginTop"),10),h=d[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(y.ownerDocument&&N(y.ownerDocument.body).addClass("xdsoft_noselect"),N([y.ownerDocument.body,y.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){N([y.ownerDocument.body,y.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")}),N(y.ownerDocument.body).on("mousemove.xdsoft_scroller",a)):(g=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),a(e))}).on("touchend touchcancel",function(){g=!1,p=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1<t?1:t<0||isNaN(t)?0:t,f=parseFloat(Math.abs((o[0].offsetHeight-i)*t).toFixed(4)),u.css("marginTop",c*t),o.css("marginTop",-f)}).on("resize_scroll.xdsoft_scroller",function(e,t,a){var n,r;i=l[0].clientHeight,s=o[0].offsetHeight,r=(n=i/s)*d[0].offsetHeight,1<n?u.hide():(u.show(),u.css("height",parseInt(10<r?r:10,10)),c=d[0].offsetHeight-u[0].offsetHeight,!0!==a&&l.trigger("scroll_element.xdsoft_scroller",[t||f/(s-i)]))}),l.on("mousewheel",function(e){var t,a=(t=e.originalEvent,a=0,"detail"in t&&(a=t.detail),"wheelDelta"in t&&(a=-t.wheelDelta/120),"wheelDeltaY"in t&&(a=-t.wheelDeltaY/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(a=0),a*=10,"deltaY"in t&&(a=t.deltaY),a&&t.deltaMode&&(1===t.deltaMode?a*=40:a*=800),a),a=Math.max(0,f-a);return l.trigger("scroll_element.xdsoft_scroller",[a/(s-i)]),e.stopPropagation(),!1}),l.on("touchstart",function(e){n=t(e),m=f}),l.on("touchmove",function(e){n&&(e.preventDefault(),e=t(e),l.trigger("scroll_element.xdsoft_scroller",[(m-(e.y-n.y))/(s-i)]))}),l.on("touchend touchcancel",function(){n=!1,m=0})),l.trigger("resize_scroll.xdsoft_scroller",[D])):l.find(".xdsoft_scrollbar").hide()})},N.fn.datetimepicker=function(F,a){var n=this,g=17,p=13,y=27,D=37,v=38,k=39,b=40,x=9,T=116,S=65,M=67,H=86,j=90,J=89,z=!1,I=N.isPlainObject(F)||!F?N.extend(!0,{},s,F):N.extend(!0,{},s),r=0,o=function(w){var t,n,a,r,O,c,W=N('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),e=N('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),m=N('<div class="xdsoft_datepicker active"></div>'),_=N('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),C=N('<div class="xdsoft_calendar"></div>'),o=N('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),l=o.find(".xdsoft_time_box").eq(0),P=N('<div class="xdsoft_time_variant"></div>'),i=N('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),A=N('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),Y=N('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),s=!1,d=0;I.id&&W.attr("id",I.id),I.style&&W.attr("style",I.style),I.weeks&&W.addClass("xdsoft_showweeks"),I.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+I.theme),W.addClass(I.className),_.find(".xdsoft_month span").after(A),_.find(".xdsoft_year span").after(Y),_.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,n=N(this).find(".xdsoft_select").eq(0),r=0,o=0,i=n.is(":visible");for(_.find(".xdsoft_select").hide(),O.currentTime&&(r=O.currentTime[N(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n[i?"hide":"show"](),t=n.find("div.xdsoft_option"),a=0;a<t.length&&t.eq(a).data("value")!==r;a+=1)o+=t[0].offsetHeight;return n.xdsoftScroller(I,o/(n.children()[0].offsetHeight-n[0].clientHeight)),e.stopPropagation(),!1});function u(e){var t=e.originalEvent,e=t.touches?t.touches[0]:t;this.touchStartPosition=this.touchStartPosition||e,t=Math.abs(this.touchStartPosition.clientX-e.clientX),e=Math.abs(this.touchStartPosition.clientY-e.clientY),Math.sqrt(t*t+e*e)>I.touchMovedThreshold&&(this.touchMoved=!0)}function f(){var e,t=!1;return I.startDate?t=O.strToDate(I.startDate):(t=I.value||(w&&w.val&&w.val()?w.val():""))?(t=O.strToDateTime(t),I.yearOffset&&(t=new Date(t.getFullYear()-I.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):I.defaultDate&&(t=O.strToDateTime(I.defaultDate),I.defaultTime&&(e=O.strtotime(I.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&O.isValidDate(t)?W.data("changed",!0):t="",t||0}function h(c){function m(e,t){return e=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}"),new RegExp(e).test(t)}function h(e,t){if(e="string"==typeof e||e instanceof String?c.ownerDocument.getElementById(e):e){if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),1}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)}}c.mask&&w.off("keydown.xdsoft"),!0===c.mask&&(L.formatMask?c.mask=L.formatMask(c.format):c.mask=c.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"==typeof c.mask&&(m(c.mask,w.val())||(w.val(c.mask.replace(/[0-9]/g,"_")),h(w[0],0)),w.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,n=this.selectionStart,a=a.substr(0,n)+t+a.substr(n+t.length);return n+=t.length,m(c.mask,a)?(this.value=a,h(this,n)):""===a.trim()?this.value=c.mask.replace(/[0-9]/g,"_"):w.trigger("error_input.xdsoft"),e.preventDefault(),!1}),w.on("keydown.xdsoft",function(e){var t,a,n,r=this.value,o=e.which,i=this.selectionStart,s=this.selectionEnd,d=i!==s;if(48<=o&&o<=57||96<=o&&o<=105||8===o||46===o){for(t=8===o||46===o?"_":String.fromCharCode(96<=o&&o<=105?o-48:o),8===o&&i&&!d&&--i;;){var u=c.mask.substr(i,1),l=i<c.mask.length,f=0<i;if(!(/[^0-9_]/.test(u)&&l&&f))break;i+=8!==o||d?1:-1}if(e.metaKey&&(d=!(i=0)),""===(r=d?(a=s-i,s=(n=c.mask.replace(/[0-9]/g,"_")).substr(i,a).substr(1),r.substr(0,i)+(t+s)+r.substr(i+a)):r.substr(0,i)+t+r.substr(i+1)).trim())r=n;else if(i===c.mask.length)return e.preventDefault(),!1;for(i+=8===o?0:1;/[^0-9_]/.test(c.mask.substr(i,1))&&i<c.mask.length&&0<i;)i+=8===o?0:1;m(c.mask,r)?(this.value=r,h(this,i)):""===r.trim()?this.value=c.mask.replace(/[0-9]/g,"_"):w.trigger("error_input.xdsoft")}else if(-1!==[S,M,H,j,J].indexOf(o)&&z||-1!==[y,v,b,D,k,T,g,x,p].indexOf(o))return!0;return e.preventDefault(),!1}))}_.find(".xdsoft_select").xdsoftScroller(I).on("touchstart mousedown.xdsoft",function(e){var t=e.originalEvent;this.touchMoved=!1,this.touchStartPosition=t.touches?t.touches[0]:t,e.stopPropagation(),e.preventDefault()}).on("touchmove",".xdsoft_option",u).on("touchend mousedown.xdsoft",".xdsoft_option",function(){var e;this.touchMoved||(void 0!==O.currentTime&&null!==O.currentTime||(O.currentTime=O.now()),e=O.currentTime.getFullYear(),O&&O.currentTime&&O.currentTime[N(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](N(this).data("value")),N(this).parent().parent().hide(),W.trigger("xchange.xdsoft"),I.onChangeMonth&&"function"==typeof I.onChangeMonth&&I.onChangeMonth.call(W,O.currentTime,W.data("input")),e!==O.currentTime.getFullYear()&&"function"==typeof I.onChangeYear&&I.onChangeYear.call(W,O.currentTime,W.data("input")))}),W.getValue=function(){return O.getCurrentTime()},W.setOptions=function(e){var u={};I=N.extend(!0,{},I,e),e.allowTimes&&Array.isArray(e.allowTimes)&&e.allowTimes.length&&(I.allowTimes=N.extend(!0,[],e.allowTimes)),e.weekends&&Array.isArray(e.weekends)&&e.weekends.length&&(I.weekends=N.extend(!0,[],e.weekends)),e.allowDates&&Array.isArray(e.allowDates)&&e.allowDates.length&&(I.allowDates=N.extend(!0,[],e.allowDates)),e.allowDateRe&&"[object String]"===Object.prototype.toString.call(e.allowDateRe)&&(I.allowDateRe=new RegExp(e.allowDateRe)),e.highlightedDates&&Array.isArray(e.highlightedDates)&&e.highlightedDates.length&&(N.each(e.highlightedDates,function(e,t){var a=N.map(t.split(","),N.trim),n=new R(L.parseDate(a[0],I.formatDate),a[1],a[2]),t=L.formatDate(n.date,I.formatDate);void 0!==u[t]?(a=u[t].desc)&&a.length&&n.desc&&n.desc.length&&(u[t].desc=a+"\n"+n.desc):u[t]=n}),I.highlightedDates=N.extend(!0,[],u)),e.highlightedPeriods&&Array.isArray(e.highlightedPeriods)&&e.highlightedPeriods.length&&(u=N.extend(!0,[],I.highlightedDates),N.each(e.highlightedPeriods,function(e,t){var a,n,r,o,i,s,d;for(d=Array.isArray(t)?(o=t[0],i=t[1],s=t[2],t[3]):(t=N.map(t.split(","),N.trim),o=L.parseDate(t[0],I.formatDate),i=L.parseDate(t[1],I.formatDate),s=t[2],t[3]);o<=i;)a=new R(o,s,d),n=L.formatDate(o,I.formatDate),o.setDate(o.getDate()+1),void 0!==u[n]?(r=u[n].desc)&&r.length&&a.desc&&a.desc.length&&(u[n].desc=r+"\n"+a.desc):u[n]=a}),I.highlightedDates=N.extend(!0,[],u)),e.disabledDates&&Array.isArray(e.disabledDates)&&e.disabledDates.length&&(I.disabledDates=N.extend(!0,[],e.disabledDates)),e.disabledWeekDays&&Array.isArray(e.disabledWeekDays)&&e.disabledWeekDays.length&&(I.disabledWeekDays=N.extend(!0,[],e.disabledWeekDays)),!I.open&&!I.opened||I.inline||w.trigger("open.xdsoft"),I.inline&&(s=!0,W.addClass("xdsoft_inline"),w.after(W).hide()),I.inverseButton&&(I.next="xdsoft_prev",I.prev="xdsoft_next"),I.datepicker?m.addClass("active"):m.removeClass("active"),I.timepicker?o.addClass("active"):o.removeClass("active"),I.value&&(O.setCurrentTime(I.value),w&&w.val&&w.val(O.str)),isNaN(I.dayOfWeekStart)?I.dayOfWeekStart=0:I.dayOfWeekStart=parseInt(I.dayOfWeekStart,10)%7,I.timepickerScrollbar||l.xdsoftScroller(I,"hide"),I.minDate&&/^[\+\-](.*)$/.test(I.minDate)&&(I.minDate=L.formatDate(O.strToDateTime(I.minDate),I.formatDate)),I.maxDate&&/^[\+\-](.*)$/.test(I.maxDate)&&(I.maxDate=L.formatDate(O.strToDateTime(I.maxDate),I.formatDate)),I.minDateTime&&/^\+(.*)$/.test(I.minDateTime)&&(I.minDateTime=O.strToDateTime(I.minDateTime).dateFormat(I.formatDate)),I.maxDateTime&&/^\+(.*)$/.test(I.maxDateTime)&&(I.maxDateTime=O.strToDateTime(I.maxDateTime).dateFormat(I.formatDate)),i.toggle(I.showApplyButton),_.find(".xdsoft_today_button").css("visibility",I.todayButton?"visible":"hidden"),_.find("."+I.prev).css("visibility",I.prevButton?"visible":"hidden"),_.find("."+I.next).css("visibility",I.nextButton?"visible":"hidden"),h(I),I.validateOnBlur&&w.off("blur.xdsoft").on("blur.xdsoft",function(){var e,t;I.allowBlank&&(!N(this).val().trim().length||"string"==typeof I.mask&&N(this).val().trim()===I.mask.replace(/[0-9]/g,"_"))?(N(this).val(null),W.data("xdsoft_datetime").empty()):((t=L.parseDate(N(this).val(),I.format))?N(this).val(L.formatDate(t,I.format)):(e=+[N(this).val()[0],N(this).val()[1]].join(""),t=+[N(this).val()[2],N(this).val()[3]].join(""),!I.datepicker&&I.timepicker&&0<=e&&e<24&&0<=t&&t<60?N(this).val([e,t].map(function(e){return 9<e?e:"0"+e}).join(":")):N(this).val(L.formatDate(O.now(),I.format))),W.data("xdsoft_datetime").setCurrentTime(N(this).val())),W.trigger("changedatetime.xdsoft"),W.trigger("close.xdsoft")}),I.dayOfWeekStartPrev=0===I.dayOfWeekStart?6:I.dayOfWeekStart-1,W.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},W.data("options",I).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),Y.hide(),A.hide(),!1}),l.append(P),l.xdsoftScroller(I),W.on("afterOpen.xdsoft",function(){l.xdsoftScroller(I)}),W.append(m).append(o),!0!==I.withoutCopyright&&W.append(e),m.append(_).append(C).append(i),(I.insideParent?N(w).parent():N(I.parentID)).append(W),O=new function(){var n=this;n.now=function(e){var t,a=new Date;return!e&&I.defaultDate&&(t=n.strToDateTime(I.defaultDate),a.setFullYear(t.getFullYear()),a.setMonth(t.getMonth()),a.setDate(t.getDate())),a.setFullYear(a.getFullYear()),!e&&I.defaultTime&&(e=n.strtotime(I.defaultTime),a.setHours(e.getHours()),a.setMinutes(e.getMinutes()),a.setSeconds(e.getSeconds()),a.setMilliseconds(e.getMilliseconds())),a},n.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},n.setCurrentTime=function(e,t){"string"==typeof e?n.currentTime=n.strToDateTime(e):n.isValidDate(e)?n.currentTime=e:e||t||!I.allowBlank||I.inline?n.currentTime=n.now():n.currentTime=null,W.trigger("xchange.xdsoft")},n.empty=function(){n.currentTime=null},n.getCurrentTime=function(){return n.currentTime},n.nextMonth=function(){void 0!==n.currentTime&&null!==n.currentTime||(n.currentTime=n.now());var e,t=n.currentTime.getMonth()+1;return 12===t&&(n.currentTime.setFullYear(n.currentTime.getFullYear()+1),t=0),e=n.currentTime.getFullYear(),n.currentTime.setDate(Math.min(new Date(n.currentTime.getFullYear(),t+1,0).getDate(),n.currentTime.getDate())),n.currentTime.setMonth(t),I.onChangeMonth&&"function"==typeof I.onChangeMonth&&I.onChangeMonth.call(W,O.currentTime,W.data("input")),e!==n.currentTime.getFullYear()&&"function"==typeof I.onChangeYear&&I.onChangeYear.call(W,O.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),t},n.prevMonth=function(){void 0!==n.currentTime&&null!==n.currentTime||(n.currentTime=n.now());var e=n.currentTime.getMonth()-1;return-1===e&&(n.currentTime.setFullYear(n.currentTime.getFullYear()-1),e=11),n.currentTime.setDate(Math.min(new Date(n.currentTime.getFullYear(),e+1,0).getDate(),n.currentTime.getDate())),n.currentTime.setMonth(e),I.onChangeMonth&&"function"==typeof I.onChangeMonth&&I.onChangeMonth.call(W,O.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),e},n.getWeekOfYear=function(e){if(I.onGetWeekOfYear&&"function"==typeof I.onGetWeekOfYear){var t=I.onGetWeekOfYear.call(W,e);if(void 0!==t)return t}t=new Date(e.getFullYear(),0,1);return 4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),Math.ceil(((e-t)/864e5+t.getDay()+1)/7)},n.strToDateTime=function(e){var t,a=[];return e&&e instanceof Date&&n.isValidDate(e)||((a=/^([+-]{1})(.*)$/.exec(e))&&(a[2]=L.parseDate(a[2],I.formatDate)),e=a&&a[2]?(t=a[2].getTime()-6e4*a[2].getTimezoneOffset(),new Date(n.now(!0).getTime()+parseInt(a[1]+"1",10)*t)):e?L.parseDate(e,I.format):n.now(),n.isValidDate(e)||(e=n.now())),e},n.strToDate=function(e){if(e&&e instanceof Date&&n.isValidDate(e))return e;e=e?L.parseDate(e,I.formatDate):n.now(!0);return n.isValidDate(e)||(e=n.now(!0)),e},n.strtotime=function(e){if(e&&e instanceof Date&&n.isValidDate(e))return e;e=e?L.parseDate(e,I.formatTime):n.now(!0);return n.isValidDate(e)||(e=n.now(!0)),e},n.str=function(){var e=I.format;return I.yearOffset&&(e=(e=e.replace("Y",n.currentTime.getFullYear()+I.yearOffset)).replace("y",String(n.currentTime.getFullYear()+I.yearOffset).substring(2,4))),L.formatDate(n.currentTime,e)},n.currentTime=this.now()},i.on("touchend click",function(e){e.preventDefault(),W.data("changed",!0),O.setCurrentTime(f()),w.val(O.str()),W.trigger("close.xdsoft")}),_.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){W.data("changed",!0),O.setCurrentTime(0,!0),W.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e=O.getCurrentTime(),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=O.strToDate(I.minDate);e<(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))||(t=O.strToDate(I.maxDate),(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))<e||(w.val(O.str()),w.trigger("change"),W.trigger("close.xdsoft")))}),_.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var a=N(this),n=0,r=!1;!function e(t){a.hasClass(I.next)?O.nextMonth():a.hasClass(I.prev)&&O.prevMonth(),I.monthChangeSpinner&&(r||(n=setTimeout(e,t||100)))}(500),N([I.ownerDocument.body,I.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(n),r=!0,N([I.ownerDocument.body,I.contentWindow]).off("touchend mouseup.xdsoft",e)})}),o.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var o=N(this),i=0,s=!1,d=110;!function e(t){var a=l[0].clientHeight,n=P[0].offsetHeight,r=Math.abs(parseInt(P.css("marginTop"),10));r<I.timeHeightInTimePicker?r=I.timeHeightInTimePicker:o.hasClass(I.next)&&n-a<r&&P.css("marginTop","-"+n+"px"),o.hasClass(I.next)&&r<n-a?P.css("marginTop","-"+(r+I.timeHeightInTimePicker)+"px"):o.hasClass(I.prev)&&0<=r-I.timeHeightInTimePicker&&P.css("marginTop","-"+(r-I.timeHeightInTimePicker)+"px"),l.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(P[0].style.marginTop,10)/(n-a))]),d=10<d?10:d-10,s||(i=setTimeout(e,t||d))}(500),N([I.ownerDocument.body,I.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(i),s=!0,N([I.ownerDocument.body,I.contentWindow]).off("touchend mouseup.xdsoft",e)})}),t=0,W.on("xchange.xdsoft",function(e){clearTimeout(t),t=setTimeout(function(){void 0!==O.currentTime&&null!==O.currentTime&&!isNaN(O.currentTime.getTime())||(O.currentTime=O.now());for(var e,t,a,n,r,o,i,s,d,u="",l=new Date(O.currentTime.getFullYear(),O.currentTime.getMonth(),1,12,0,0),f=0,c=O.now(),m=!1,h=!1,g=!1,p=!1,y=[],D=!0,v="";l.getDay()!==I.dayOfWeekStart;)l.setDate(l.getDate()-1);for(u+="<table><thead><tr>",I.weeks&&(u+="<th></th>"),e=0;e<7;e+=1)u+="<th>"+I.i18n[E].dayOfWeekShort[(e+I.dayOfWeekStart)%7]+"</th>";for(u+="</tr></thead>",u+="<tbody>",!1!==I.maxDate&&(m=O.strToDate(I.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==I.minDate&&(h=O.strToDate(I.minDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate())),!1!==I.minDateTime&&(g=O.strToDate(I.minDateTime),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds())),!1!==I.maxDateTime&&(p=O.strToDate(I.maxDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==p&&(d=31*(12*p.getFullYear()+p.getMonth())+p.getDate());f<O.currentTime.countDaysInMonth()||l.getDay()!==I.dayOfWeekStart||O.currentTime.getMonth()===l.getMonth();){y=[],f+=1,t=l.getDay(),a=l.getDate(),n=l.getFullYear(),T=l.getMonth(),r=O.getWeekOfYear(l),s="",y.push("xdsoft_date"),o=I.beforeShowDay&&"function"==typeof I.beforeShowDay.call?I.beforeShowDay.call(W,l):null,I.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(I.allowDateRe)&&(I.allowDateRe.test(L.formatDate(l,I.formatDate))||y.push("xdsoft_disabled")),I.allowDates&&0<I.allowDates.length&&-1===I.allowDates.indexOf(L.formatDate(l,I.formatDate))&&y.push("xdsoft_disabled");var k=31*(12*l.getFullYear()+l.getMonth())+l.getDate();(!1!==m&&m<l||!1!==g&&l<g||!1!==h&&l<h||!1!==p&&d<k||o&&!1===o[0])&&y.push("xdsoft_disabled"),-1!==I.disabledDates.indexOf(L.formatDate(l,I.formatDate))&&y.push("xdsoft_disabled"),-1!==I.disabledWeekDays.indexOf(t)&&y.push("xdsoft_disabled"),w.is("[disabled]")&&y.push("xdsoft_disabled"),o&&""!==o[1]&&y.push(o[1]),O.currentTime.getMonth()!==T&&y.push("xdsoft_other_month"),(I.defaultSelect||W.data("changed"))&&L.formatDate(O.currentTime,I.formatDate)===L.formatDate(l,I.formatDate)&&y.push("xdsoft_current"),L.formatDate(c,I.formatDate)===L.formatDate(l,I.formatDate)&&y.push("xdsoft_today"),0!==l.getDay()&&6!==l.getDay()&&-1===I.weekends.indexOf(L.formatDate(l,I.formatDate))||y.push("xdsoft_weekend"),void 0!==I.highlightedDates[L.formatDate(l,I.formatDate)]&&(o=I.highlightedDates[L.formatDate(l,I.formatDate)],y.push(void 0===o.style?"xdsoft_highlighted_default":o.style),s=void 0===o.desc?"":o.desc),I.beforeShowDay&&"function"==typeof I.beforeShowDay&&y.push(I.beforeShowDay(l)),D&&(u+="<tr>",D=!1,I.weeks&&(u+="<th>"+r+"</th>")),u+='<td data-date="'+a+'" data-month="'+T+'" data-year="'+n+'" class="xdsoft_date xdsoft_day_of_week'+l.getDay()+" "+y.join(" ")+'" title="'+s+'"><div>'+a+"</div></td>",l.getDay()===I.dayOfWeekStartPrev&&(u+="</tr>",D=!0),l.setDate(a+1)}u+="</tbody></table>",C.html(u),_.find(".xdsoft_label span").eq(0).text(I.i18n[E].months[O.currentTime.getMonth()]),_.find(".xdsoft_label span").eq(1).text(O.currentTime.getFullYear()+I.yearOffset),T=v="";var b=0;!1!==I.minTime&&(b=60*(x=O.strtotime(I.minTime)).getHours()+x.getMinutes());var x,T,S=1440;if(!1!==I.maxTime&&(S=60*(x=O.strtotime(I.maxTime)).getHours()+x.getMinutes()),!1!==I.minDateTime&&(x=O.strToDateTime(I.minDateTime),L.formatDate(O.currentTime,I.formatDate)===L.formatDate(x,I.formatDate)&&(T=60*x.getHours()+x.getMinutes(),b<T&&(b=T))),!1!==I.maxDateTime&&(x=O.strToDateTime(I.maxDateTime),L.formatDate(O.currentTime,I.formatDate)===L.formatDate(x,I.formatDate)&&(T=60*x.getHours()+x.getMinutes())<S&&(S=T)),i=function(e,t){var a=O.now(),n=I.allowTimes&&Array.isArray(I.allowTimes)&&I.allowTimes.length;a.setHours(e),e=parseInt(a.getHours(),10),a.setMinutes(t),t=parseInt(a.getMinutes(),10),y=[];var r=60*e+t;(w.is("[disabled]")||S<=r||r<b)&&y.push("xdsoft_disabled"),(r=new Date(O.currentTime)).setHours(parseInt(O.currentTime.getHours(),10)),n||r.setMinutes(Math[I.roundTime](O.currentTime.getMinutes()/I.step)*I.step),(I.initTime||I.defaultSelect||W.data("changed"))&&r.getHours()===parseInt(e,10)&&(!n&&59<I.step||r.getMinutes()===parseInt(t,10))&&(I.defaultSelect||W.data("changed")?y.push("xdsoft_current"):I.initTime&&y.push("xdsoft_init_time")),parseInt(c.getHours(),10)===parseInt(e,10)&&parseInt(c.getMinutes(),10)===parseInt(t,10)&&y.push("xdsoft_today"),v+='<div class="xdsoft_time '+y.join(" ")+'" data-hour="'+e+'" data-minute="'+t+'">'+L.formatDate(a,I.formatTime)+"</div>"},I.allowTimes&&Array.isArray(I.allowTimes)&&I.allowTimes.length)for(f=0;f<I.allowTimes.length;f+=1)i(O.strtotime(I.allowTimes[f]).getHours(),T=O.strtotime(I.allowTimes[f]).getMinutes());else for(e=f=0;f<(I.hours12?12:24);f+=1)for(e=0;e<60;e+=I.step){var M=60*f+e;M<b||S<=M||i((f<10?"0":"")+f,T=(e<10?"0":"")+e)}for(P.html(v),F="",f=parseInt(I.yearStart,10);f<=parseInt(I.yearEnd,10);f+=1)F+='<div class="xdsoft_option '+(O.currentTime.getFullYear()===f?"xdsoft_current":"")+'" data-value="'+f+'">'+(f+I.yearOffset)+"</div>";for(Y.children().eq(0).html(F),f=parseInt(I.monthStart,10),F="";f<=parseInt(I.monthEnd,10);f+=1)F+='<div class="xdsoft_option '+(O.currentTime.getMonth()===f?"xdsoft_current":"")+'" data-value="'+f+'">'+I.i18n[E].months[f]+"</div>";A.children().eq(0).html(F),N(W).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a;I.timepicker&&(P.find(".xdsoft_current").length?a=".xdsoft_current":P.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(e=l[0].clientHeight,(t=P[0].offsetHeight)-e<(a=P.find(a).index()*I.timeHeightInTimePicker+1)&&(a=t-e),l.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(t-e)])):l.trigger("scroll_element.xdsoft_scroller",[0]))}),n=0,C.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),n+=1;var t=N(this),a=O.currentTime;if(null==a&&(O.currentTime=O.now(),a=O.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),W.trigger("select.xdsoft",[a]),w.val(O.str()),I.onSelectDate&&"function"==typeof I.onSelectDate&&I.onSelectDate.call(W,O.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(1<n||!0===I.closeOnDateSelect||!1===I.closeOnDateSelect&&!I.timepicker)&&!I.inline&&W.trigger("close.xdsoft"),setTimeout(function(){n=0},200)}),P.on("touchstart","div",function(e){this.touchMoved=!1}).on("touchmove","div",u).on("touchend click.xdsoft","div",function(e){if(!this.touchMoved){e.stopPropagation();var t=N(this),a=O.currentTime;if(null==a&&(O.currentTime=O.now(),a=O.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setHours(t.data("hour")),a.setMinutes(t.data("minute")),W.trigger("select.xdsoft",[a]),W.data("input").val(O.str()),I.onSelectTime&&"function"==typeof I.onSelectTime&&I.onSelectTime.call(W,O.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),!0!==I.inline&&!0===I.closeOnTimeSelect&&W.trigger("close.xdsoft")}}),m.on("mousewheel.xdsoft",function(e){return!I.scrollMonth||(e.deltaY<0?O.nextMonth():O.prevMonth(),!1)}),w.on("mousewheel.xdsoft",function(e){return!I.scrollInput||(!I.datepicker&&I.timepicker?(0<=(a=P.find(".xdsoft_current").length?P.find(".xdsoft_current").eq(0).index():0)+e.deltaY&&a+e.deltaY<P.children().length&&(a+=e.deltaY),P.children().eq(a).length&&P.children().eq(a).trigger("mousedown"),!1):I.datepicker&&!I.timepicker?(m.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),w.val&&w.val(O.str()),W.trigger("changedatetime.xdsoft"),!1):void 0)}),W.on("changedatetime.xdsoft",function(e){var t;I.onChangeDateTime&&"function"==typeof I.onChangeDateTime&&(t=W.data("input"),I.onChangeDateTime.call(W,O.currentTime,t,e),delete I.value,t.trigger("change"))}).on("generate.xdsoft",function(){I.onGenerate&&"function"==typeof I.onGenerate&&I.onGenerate.call(W,O.currentTime,W.data("input")),s&&(W.trigger("afterOpen.xdsoft"),s=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),a=0,c=function(e,t){do{if(!(e=e.parentNode)||!1===t(e))break}while("HTML"!==e.nodeName)},r=function(){var t,e,a=W.data("input"),n=a.offset(),r=a[0],o="top",i=n.top+r.offsetHeight-1,s=n.left,d="absolute",u=N(I.contentWindow).width(),l=N(I.contentWindow).height(),f=N(I.contentWindow).scrollTop();I.ownerDocument.documentElement.clientWidth-n.left<m.parent().outerWidth(!0)&&(e=m.parent().outerWidth(!0)-r.offsetWidth,s-=e),"rtl"===a.parent().css("direction")&&(s-=W.outerWidth()-a.outerWidth()),I.fixed?(i-=f,s-=N(I.contentWindow).scrollLeft(),d="fixed"):(t=!1,c(r,function(e){return null!==e&&("fixed"===I.contentWindow.getComputedStyle(e).getPropertyValue("position")?!(t=!0):void 0)}),t&&!I.insideParent?(d="fixed",i+W.outerHeight()>l+f?(o="bottom",i=l+f-n.top):i-=f):i+W[0].offsetHeight>l+f&&(i=n.top-W[0].offsetHeight+1),i<0&&(i=0),s+r.offsetWidth>u&&(s=u-r.offsetWidth)),n=W[0],c(n,function(e){if("relative"===I.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return s-=(u-e.offsetWidth)/2,!1}),d={position:d,left:I.insideParent?r.offsetLeft:s,top:"",bottom:""},I.insideParent?d[o]=r.offsetTop+r.offsetHeight:d[o]=i,W.css(d)},W.on("open.xdsoft",function(e){var t=!0;I.onShow&&"function"==typeof I.onShow&&(t=I.onShow.call(W,O.currentTime,W.data("input"),e)),!1!==t&&(W.show(),r(),N(I.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),I.closeOnWithoutClick&&N([I.ownerDocument.body,I.contentWindow]).on("touchstart mousedown.xdsoft",function e(){W.trigger("close.xdsoft"),N([I.ownerDocument.body,I.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;_.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),I.onClose&&"function"==typeof I.onClose&&(t=I.onClose.call(W,O.currentTime,W.data("input"),e)),!1===t||I.opened||I.inline||W.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",w),d=0,W.data("xdsoft_datetime",O),W.setOptions(I),O.setCurrentTime(f()),w.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){w.is(":disabled")||w.data("xdsoft_datetimepicker").is(":visible")&&I.closeOnInputClick||I.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){w.is(":disabled")||(s=!0,O.setCurrentTime(f(),!0),I.mask&&h(I),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=e.which;return-1!==[p].indexOf(t)&&I.enterLikeTab?(e=N("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),e.eq(e.index(this)+1).focus(),!1):-1!==[x].indexOf(t)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},i=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),N(I.contentWindow).off("resize.xdsoft"),N([I.contentWindow,I.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())};return N(I.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===g&&(z=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===g&&(z=!1)}).on("keydown.xdsoftcmd",function(e){91===e.keyCode&&0}).on("keyup.xdsoftcmd",function(e){91===e.keyCode&&0}),this.each(function(){var t,e=N(this).data("xdsoft_datetimepicker");if(e){if("string"==typeof F)switch(F){case"show":N(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":i(N(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(L.parseDate(this.value,I.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[F]&&"function"==typeof e[F]&&(n=e[F](a))}else e.setOptions(F);return 0}"string"!=typeof F&&(!I.lazyInit||I.open||I.inline?o(N(this)):(t=N(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){t.data("xdsoft_datetimepicker")||o(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),n},N.fn.datetimepicker.defaults=s};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(l){var f,c,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],m=Array.prototype.slice;if(l.event.fixHooks)for(var a=e.length;a;)l.event.fixHooks[e[--a]]=l.event.mouseHooks;var h=l.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,!1);else this.onmousewheel=n;l.data(this,"mousewheel-line-height",h.getLineHeight(this)),l.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;l.removeData(this,"mousewheel-line-height"),l.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=l(e),e=t["offsetParent"in l.fn?"offsetParent":"parent"]();return e.length||(e=l("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return l(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,a=e||window.event,n=m.call(arguments,1),r=0,o=0,i=0,s=0,d=0,u=0;if((e=l.event.fix(a)).type="mousewheel","detail"in a&&(i=-1*a.detail),"wheelDelta"in a&&(i=a.wheelDelta),"wheelDeltaY"in a&&(i=a.wheelDeltaY),"wheelDeltaX"in a&&(o=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(o=-1*i,i=0),r=0===i?o:i,"deltaY"in a&&(r=i=-1*a.deltaY),"deltaX"in a&&(o=a.deltaX,0===i&&(r=-1*o)),0!==i||0!==o)return 1===a.deltaMode?(r*=t=l.data(this,"mousewheel-line-height"),i*=t,o*=t):2===a.deltaMode&&(r*=t=l.data(this,"mousewheel-page-height"),i*=t,o*=t),s=Math.max(Math.abs(i),Math.abs(o)),(!c||s<c)&&p(a,c=s)&&(c/=40),p(a,s)&&(r/=40,o/=40,i/=40),r=Math[1<=r?"floor":"ceil"](r/c),o=Math[1<=o?"floor":"ceil"](o/c),i=Math[1<=i?"floor":"ceil"](i/c),h.settings.normalizeOffset&&this.getBoundingClientRect&&(s=this.getBoundingClientRect(),d=e.clientX-s.left,u=e.clientY-s.top),e.deltaX=o,e.deltaY=i,e.deltaFactor=c,e.offsetX=d,e.offsetY=u,e.deltaMode=0,n.unshift(e,r,o,i),f&&clearTimeout(f),f=setTimeout(g,200),(l.event.dispatch||l.event.handle).apply(this,n)}function g(){c=null}function p(e,t){return h.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}l.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});