text: !function(a){"object"==typeof exports&&exports&&"object"==typeof module&&module&&module.exports===exports?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){var b=a[0];return b.offsetWidth>0&&b.offsetHeight>0}function c(b){if(b.minTime&&(b.minTime=t(b.minTime)),b.maxTime&&(b.maxTime=t(b.maxTime)),b.durationTime&&"function"!=typeof b.durationTime&&(b.durationTime=t(b.durationTime)),"now"==b.scrollDefault)b.scrollDefault=function(){return b.roundingFunction(t(new Date),b)};else if(b.scrollDefault&&"function"!=typeof b.scrollDefault){var c=b.scrollDefault;b.scrollDefault=function(){return b.roundingFunction(t(c),b)}}else b.minTime&&(b.scrollDefault=function(){return b.roundingFunction(b.minTime,b)});if("string"===a.type(b.timeFormat)&&b.timeFormat.match(/[gh]/)&&(b._twelveHourTime=!0),b.showOnFocus===!1&&-1!=b.showOn.indexOf("focus")&&b.showOn.splice(b.showOn.indexOf("focus"),1),b.disableTimeRanges.length>0){for(var d in b.disableTimeRanges)b.disableTimeRanges[d]=[t(b.disableTimeRanges[d][0]),t(b.disableTimeRanges[d][1])];b.disableTimeRanges=b.disableTimeRanges.sort(function(a,b){return a[0]-b[0]});for(var d=b.disableTimeRanges.length-1;d>0;d--)b.disableTimeRanges[d][0]<=b.disableTimeRanges[d-1][1]&&(b.disableTimeRanges[d-1]=[Math.min(b.disableTimeRanges[d][0],b.disableTimeRanges[d-1][0]),Math.max(b.disableTimeRanges[d][1],b.disableTimeRanges[d-1][1])],b.disableTimeRanges.splice(d,1))}return b}function d(b){var c=b.data("timepicker-settings"),d=b.data("timepicker-list");if(d&&d.length&&(d.remove(),b.data("timepicker-list",!1)),c.useSelect){d=a("<select />",{"class":"ui-timepicker-select"});var g=d}else{d=a("<ul />",{"class":"ui-timepicker-list"});var g=a("<div />",{"class":"ui-timepicker-wrapper",tabindex:-1});g.css({display:"none",position:"absolute"}).append(d)}if(c.noneOption)if(c.noneOption===!0&&(c.noneOption=c.useSelect?"Time...":"None"),a.isArray(c.noneOption)){for(var i in c.noneOption)if(parseInt(i,10)==i){var k=e(c.noneOption[i],c.useSelect);d.append(k)}}else{var k=e(c.noneOption,c.useSelect);d.append(k)}if(c.className&&g.addClass(c.className),(null!==c.minTime||null!==c.durationTime)&&c.showDuration){"function"==typeof c.step?"function":c.step;g.addClass("ui-timepicker-with-duration"),g.addClass("ui-timepicker-step-"+c.step)}var l=c.minTime;"function"==typeof c.durationTime?l=t(c.durationTime()):null!==c.durationTime&&(l=c.durationTime);var n=null!==c.minTime?c.minTime:0,o=null!==c.maxTime?c.maxTime:n+u-1;n>o&&(o+=u),o===u-1&&"string"===a.type(c.timeFormat)&&c.show2400&&(o=u);var p=c.disableTimeRanges,v=0,x=p.length,y=c.step;"function"!=typeof y&&(y=function(){return c.step});for(var i=n,z=0;o>=i;z++,i+=60*y(z)){var A=i,B=s(A,c);if(c.useSelect){var C=a("<option />",{value:B});C.text(B)}else{var C=a("<li />");C.addClass(43200>A%86400?"ui-timepicker-am":"ui-timepicker-pm"),C.data("time",86400>=A?A:A%86400),C.text(B)}if((null!==c.minTime||null!==c.durationTime)&&c.showDuration){var D=r(i-l,c.step);if(c.useSelect)C.text(C.text()+" ("+D+")");else{var E=a("<span />",{"class":"ui-timepicker-duration"});E.text(" ("+D+")"),C.append(E)}}x>v&&(A>=p[v][1]&&(v+=1),p[v]&&A>=p[v][0]&&A<p[v][1]&&(c.useSelect?C.prop("disabled",!0):C.addClass("ui-timepicker-disabled"))),d.append(C)}if(g.data("timepicker-input",b),b.data("timepicker-list",g),c.useSelect)b.val()&&d.val(f(t(b.val()),c)),d.on("focus",function(){a(this).data("timepicker-input").trigger("showTimepicker")}),d.on("blur",function(){a(this).data("timepicker-input").trigger("hideTimepicker")}),d.on("change",function(){m(b,a(this).val(),"select")}),m(b,d.val(),"initial"),b.hide().after(d);else{var F=c.appendTo;"string"==typeof F?F=a(F):"function"==typeof F&&(F=F(b)),F.append(g),j(b,d),d.on("mousedown click","li",function(c){b.off("focus.timepicker"),b.on("focus.timepicker-ie-hack",function(){b.off("focus.timepicker-ie-hack"),b.on("focus.timepicker",w.show)}),h(b)||b[0].focus(),d.find("li").removeClass("ui-timepicker-selected"),a(this).addClass("ui-timepicker-selected"),q(b)&&(b.trigger("hideTimepicker"),d.on("mouseup.timepicker click.timepicker","li",function(a){d.off("mouseup.timepicker click.timepicker"),g.hide()}))})}}function e(b,c){var d,e,f;return"object"==typeof b?(d=b.label,e=b.className,f=b.value):"string"==typeof b?d=b:a.error("Invalid noneOption value"),c?a("<option />",{value:f,"class":e,text:d}):a("<li />",{"class":e,text:d}).data("time",String(f))}function f(a,b){return a=b.roundingFunction(a,b),null!==a?s(a,b):void 0}function g(b){if(b.target!=window){var c=a(b.target);c.closest(".ui-timepicker-input").length||c.closest(".ui-timepicker-wrapper").length||(w.hide(),a(document).unbind(".ui-timepicker"),a(window).unbind(".ui-timepicker"))}}function h(a){var b=a.data("timepicker-settings");return(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&b.disableTouchKeyboard}function i(b,c,d){if(!d&&0!==d)return!1;var e=b.data("timepicker-settings"),f=!1,d=e.roundingFunction(d,e);return c.find("li").each(function(b,c){var e=a(c);if("number"==typeof e.data("time"))return e.data("time")==d?(f=e,!1):void 0}),f}function j(a,b){b.find("li").removeClass("ui-timepicker-selected");var c=t(l(a),a.data("timepicker-settings"));if(null!==c){var d=i(a,b,c);if(d){var e=d.offset().top-b.offset().top;(e+d.outerHeight()>b.outerHeight()||0>e)&&b.scrollTop(b.scrollTop()+d.position().top-d.outerHeight()),d.addClass("ui-timepicker-selected")}}}function k(b,c){if(""!==this.value&&"timepicker"!=c){var d=a(this);if(!d.is(":focus")||b&&"change"==b.type){var e=d.data("timepicker-settings"),f=t(this.value,e);if(null===f)return void d.trigger("timeFormatError");var g=!1;if(null!==e.minTime&&null!==e.maxTime&&(f<e.minTime||f>e.maxTime)&&(g=!0),a.each(e.disableTimeRanges,function(){return f>=this[0]&&f<this[1]?(g=!0,!1):void 0}),e.forceRoundTime){var h=e.roundingFunction(f,e);h!=f&&(f=h,c=null)}var i=s(f,e);g?m(d,i,"error")&&d.trigger("timeRangeError"):m(d,i,c)}}}function l(a){return a.is("input")?a.val():a.data("ui-timepicker-value")}function m(a,b,c){if(a.is("input")){a.val(b);var d=a.data("timepicker-settings");d.useSelect&&"select"!=c&&"initial"!=c&&a.data("timepicker-list").val(f(t(b),d))}return a.data("ui-timepicker-value")!=b?(a.data("ui-timepicker-value",b),"select"==c?a.trigger("selectTime").trigger("changeTime").trigger("change","timepicker"):-1==["error","initial"].indexOf(c)&&a.trigger("changeTime"),!0):(a.trigger("selectTime"),!1)}function n(a){switch(a.keyCode){case 13:case 9:return;default:a.preventDefault()}}function o(c){var d=a(this),e=d.data("timepicker-list");if(!e||!b(e)){if(40!=c.keyCode)return!0;w.show.call(d.get(0)),e=d.data("timepicker-list"),h(d)||d.focus()}switch(c.keyCode){case 13:return q(d)&&(k.call(d.get(0),{type:"change"}),w.hide.apply(this)),c.preventDefault(),!1;case 38:var f=e.find(".ui-timepicker-selected");return f.length?f.is(":first-child")||(f.removeClass("ui-timepicker-selected"),f.prev().addClass("ui-timepicker-selected"),f.prev().position().top<f.outerHeight()&&e.scrollTop(e.scrollTop()-f.outerHeight())):(e.find("li").each(function(b,c){return a(c).position().top>0?(f=a(c),!1):void 0}),f.addClass("ui-timepicker-selected")),!1;case 40:return f=e.find(".ui-timepicker-selected"),0===f.length?(e.find("li").each(function(b,c){return a(c).position().top>0?(f=a(c),!1):void 0}),f.addClass("ui-timepicker-selected")):f.is(":last-child")||(f.removeClass("ui-timepicker-selected"),f.next().addClass("ui-timepicker-selected"),f.next().position().top+2*f.outerHeight()>e.outerHeight()&&e.scrollTop(e.scrollTop()+f.outerHeight())),!1;case 27:e.find("li").removeClass("ui-timepicker-selected"),w.hide();break;case 9:w.hide();break;default:return!0}}function p(c){var d=a(this),e=d.data("timepicker-list"),f=d.data("timepicker-settings");if(!e||!b(e)||f.disableTextInput)return!0;switch(c.keyCode){case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 77:case 80:case 186:case 8:case 46:f.typeaheadHighlight?j(d,e):e.hide()}}function q(a){var b=a.data("timepicker-settings"),c=a.data("timepicker-list"),d=null,e=c.find(".ui-timepicker-selected");return e.hasClass("ui-timepicker-disabled")?!1:(e.length&&(d=e.data("time")),null!==d&&("string"!=typeof d&&(d=s(d,b)),m(a,d,"select")),!0)}function r(a,b){a=Math.abs(a);var c,d,e=Math.round(a/60),f=[];return 60>e?f=[e,v.mins]:(c=Math.floor(e/60),d=e%60,30==b&&30==d&&(c+=v.decimal+5),f.push(c),f.push(1==c?v.hr:v.hrs),30!=b&&d&&(f.push(d),f.push(v.mins))),f.join(" ")}function s(b,c){if("number"!=typeof b)return null;var d=parseInt(b%60),e=parseInt(b/60%60),f=parseInt(b/3600%24),g=new Date(1970,0,2,f,e,d,0);if(isNaN(g.getTime()))return null;if("function"===a.type(c.timeFormat))return c.timeFormat(g);for(var h,i,j="",k=0;k<c.timeFormat.length;k++)switch(i=c.timeFormat.charAt(k)){case"a":j+=g.getHours()>11?v.pm:v.am;break;case"A":j+=g.getHours()>11?v.PM:v.AM;break;case"g":h=g.getHours()%12,j+=0===h?"12":h;break;case"G":h=g.getHours(),b===u&&(h=c.show2400?24:0),j+=h;break;case"h":h=g.getHours()%12,0!==h&&10>h&&(h="0"+h),j+=0===h?"12":h;break;case"H":h=g.getHours(),b===u&&(h=c.show2400?24:0),j+=h>9?h:"0"+h;break;case"i":var e=g.getMinutes();j+=e>9?e:"0"+e;break;case"s":d=g.getSeconds(),j+=d>9?d:"0"+d;break;case"\\":k++,j+=c.timeFormat.charAt(k);break;default:j+=i}return j}function t(a,b){if(""===a||null===a)return null;if("object"==typeof a)return 3600*a.getHours()+60*a.getMinutes()+a.getSeconds();if("string"!=typeof a)return a;a=a.toLowerCase().replace(/[\s\.]/g,""),("a"==a.slice(-1)||"p"==a.slice(-1))&&(a+="m");var c="("+v.am.replace(".","")+"|"+v.pm.replace(".","")+"|"+v.AM.replace(".","")+"|"+v.PM.replace(".","")+")?",d=new RegExp("^"+c+"([0-9]?[0-9])\\W?([0-5][0-9])?\\W?([0-5][0-9])?"+c+"$"),e=a.match(d);if(!e)return null;var f=parseInt(1*e[2],10);if(f>24){if(b&&b.wrapHours===!1)return null;f%=24}var g=e[1]||e[5],h=f;if(12>=f&&g){var i=g==v.pm||g==v.PM;h=12==f?i?12:0:f+(i?12:0)}var j=1*e[3]||0,k=1*e[4]||0,l=3600*h+60*j+k;if(12>f&&!g&&b&&b._twelveHourTime&&b.scrollDefault){var m=l-b.scrollDefault();0>m&&m>=u/-2&&(l=(l+u/2)%u)}return l}var u=86400,v={am:"am",pm:"pm",AM:"AM",PM:"PM",decimal:".",mins:"mins",hr:"hr",hrs:"hrs"},w={init:function(b){return this.each(function(){var e=a(this),f=[];for(var g in a.fn.timepicker.defaults)e.data(g)&&(f[g]=e.data(g));var h=a.extend({},a.fn.timepicker.defaults,f,b);if(h.lang&&(v=a.extend(v,h.lang)),h=c(h),e.data("timepicker-settings",h),e.addClass("ui-timepicker-input"),h.useSelect)d(e);else{if(e.prop("autocomplete","off"),h.showOn)for(var i in h.showOn)e.on(h.showOn[i]+".timepicker",w.show);e.on("change.timepicker",k),e.on("keydown.timepicker",o),e.on("keyup.timepicker",p),h.disableTextInput&&e.on("keydown.timepicker",n),k.call(e.get(0),null,"initial")}})},show:function(c){var e=a(this),f=e.data("timepicker-settings");if(c&&c.preventDefault(),f.useSelect)return void e.data("timepicker-list").focus();h(e)&&e.blur();var k=e.data("timepicker-list");if(!e.prop("readonly")&&(k&&0!==k.length&&"function"!=typeof f.durationTime||(d(e),k=e.data("timepicker-list")),!b(k))){e.data("ui-timepicker-value",e.val()),j(e,k),w.hide(),k.show();var m={};f.orientation.match(/r/)?m.left=e.offset().left+e.outerWidth()-k.outerWidth()+parseInt(k.css("marginLeft").replace("px",""),10):m.left=e.offset().left+parseInt(k.css("marginLeft").replace("px",""),10);var n;n=f.orientation.match(/t/)?"t":f.orientation.match(/b/)?"b":e.offset().top+e.outerHeight(!0)+k.outerHeight()>a(window).height()+a(window).scrollTop()?"t":"b","t"==n?(k.addClass("ui-timepicker-positioned-top"),m.top=e.offset().top-k.outerHeight()+parseInt(k.css("marginTop").replace("px",""),10)):(k.removeClass("ui-timepicker-positioned-top"),m.top=e.offset().top+e.outerHeight()+parseInt(k.css("marginTop").replace("px",""),10)),k.offset(m);var o=k.find(".ui-timepicker-selected");if(!o.length){var p=t(l(e));null!==p?o=i(e,k,p):f.scrollDefault&&(o=i(e,k,f.scrollDefault()))}if(o&&o.length){var q=k.scrollTop()+o.position().top-o.outerHeight();k.scrollTop(q)}else k.scrollTop(0);return f.stopScrollPropagation&&a(document).on("wheel.ui-timepicker",".ui-timepicker-wrapper",function(b){b.preventDefault();var c=a(this).scrollTop();a(this).scrollTop(c+b.originalEvent.deltaY)}),a(document).on("touchstart.ui-timepicker mousedown.ui-timepicker",g),a(window).on("resize.ui-timepicker",g),f.closeOnWindowScroll&&a(document).on("scroll.ui-timepicker",g),e.trigger("showTimepicker"),this}},hide:function(c){var d=a(this),e=d.data("timepicker-settings");return e&&e.useSelect&&d.blur(),a(".ui-timepicker-wrapper").each(function(){var c=a(this);if(b(c)){var d=c.data("timepicker-input"),e=d.data("timepicker-settings");e&&e.selectOnBlur&&q(d),c.hide(),d.trigger("hideTimepicker")}}),this},option:function(b,e){return"string"==typeof b&&"undefined"==typeof e?a(this).data("timepicker-settings")[b]:this.each(function(){var f=a(this),g=f.data("timepicker-settings"),h=f.data("timepicker-list");"object"==typeof b?g=a.extend(g,b):"string"==typeof b&&(g[b]=e),g=c(g),f.data("timepicker-settings",g),h&&(h.remove(),f.data("timepicker-list",!1)),g.useSelect&&d(f)})},getSecondsFromMidnight:function(){return t(l(this))},getTime:function(a){var b=this,c=l(b);if(!c)return null;var d=t(c);if(null===d)return null;a||(a=new Date);var e=new Date(a);return e.setHours(d/3600),e.setMinutes(d%3600/60),e.setSeconds(d%60),e.setMilliseconds(0),e},isVisible:function(){var a=this,c=a.data("timepicker-list");return!(!c||!b(c))},setTime:function(a){var b=this,c=b.data("timepicker-settings");if(c.forceRoundTime)var d=f(t(a),c);else var d=s(t(a),c);return a&&null===d&&c.noneOption&&(d=a),m(b,d),b.data("timepicker-list")&&j(b,b.data("timepicker-list")),this},remove:function(){var a=this;if(a.hasClass("ui-timepicker-input")){var b=a.data("timepicker-settings");return a.removeAttr("autocomplete","off"),a.removeClass("ui-timepicker-input"),a.removeData("timepicker-settings"),a.off(".timepicker"),a.data("timepicker-list")&&a.data("timepicker-list").remove(),b.useSelect&&a.show(),a.removeData("timepicker-list"),this}}};a.fn.timepicker=function(b){return this.length?w[b]?this.hasClass("ui-timepicker-input")?w[b].apply(this,Array.prototype.slice.call(arguments,1)):this:"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.timepicker"):w.init.apply(this,arguments):this},a.fn.timepicker.defaults={appendTo:"body",className:null,closeOnWindowScroll:!1,disableTextInput:!1,disableTimeRanges:[],disableTouchKeyboard:!1,durationTime:null,forceRoundTime:!1,maxTime:null,minTime:null,noneOption:!1,orientation:"l",roundingFunction:function(a,b){if(null===a)return null;if("number"!=typeof b.step)return a;var c=a%(60*b.step);return c>=30*b.step?a+=60*b.step-c:a-=c,a==u&&b.show2400?a:a%u},scrollDefault:null,selectOnBlur:!1,show2400:!1,showDuration:!1,showOn:["click","focus"],showOnFocus:!0,step:30,stopScrollPropagation:!1,timeFormat:"g:ia",typeaheadHighlight:!0,useSelect:!1,wrapHours:!0}});
  !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){"use strict";function e(i,s){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,t.isPlainObject(s)&&s),this.transitioning=!1,this.fadable=!1,this.init()}var i=t(document),s="qor.modal",a="enable."+s,n="disable."+s,r="click."+s,o="keyup."+s,h="show."+s,l="shown."+s,d="hide."+s,c="hidden."+s,u="transitionend",f="qor-modal-open",p="shown",m="fade",g="in",y="aria-hidden";return e.prototype={constructor:e,init:function(){this.fadable=this.$element.hasClass(m),this.options.show?this.show():this.toggle()},bind:function(){this.$element.on(r,t.proxy(this.click,this)),this.options.keyboard&&i.on(o,t.proxy(this.keyup,this))},unbind:function(){this.$element.off(r,this.click),this.options.keyboard&&i.off(o,this.keyup)},click:function(e){var i=this.$element[0],s=e.target;if(s===i&&this.options.backdrop)return void this.hide();for(;s!==i;){if("modal"===t(s).data("dismiss")){this.hide();break}s=s.parentNode}},keyup:function(t){27===t.which&&this.hide()},show:function(e){var s,a=this.$element;if(!this.transitioning&&!a.hasClass(g)&&(s=t.Event(h),a.trigger(s),!s.isDefaultPrevented())){if(i.find("body").addClass(f),a.addClass(p).scrollTop(0).get(0).offsetHeight,this.transitioning=!0,e||!this.fadable)return a.addClass(g),void this.shown();a.one(u,t.proxy(this.shown,this)),a.addClass(g)}},shown:function(){this.transitioning=!1,this.bind(),this.$element.attr(y,!1).trigger(l).focus()},hide:function(e){var s,a=this.$element;if(!this.transitioning&&a.hasClass(g)&&(s=t.Event(d),a.trigger(s),!s.isDefaultPrevented())){if(i.find("body").removeClass(f),this.transitioning=!0,e||!this.fadable)return a.removeClass(g),void this.hidden();a.one(u,t.proxy(this.hidden,this)),a.removeClass(g)}},hidden:function(){this.transitioning=!1,this.unbind(),this.$element.removeClass(p).attr(y,!0).trigger(c)},toggle:function(){this.$element.hasClass(g)?this.hide():this.show()},destroy:function(){this.$element.removeData(s)}},e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.plugin=function(i){return this.each(function(){var a,n=t(this),r=n.data(s);if(!r){if(/destroy/.test(i))return;n.data(s,r=new e(this,i))}"string"==typeof i&&t.isFunction(a=r[i])&&a.apply(r)})},t.fn.qorModal=e.plugin,t(function(){var i=".qor-modal";t(document).on(r,'[data-toggle="qor.modal"]',function(){var i=t(this),a=i.data(),n=t(a.target||i.attr("href"));e.plugin.call(n,n.data(s)?"toggle":a)}).on(n,function(s){e.plugin.call(t(i,s.target),"destroy")}).on(a,function(s){e.plugin.call(t(i,s.target))})}),e}),function(t){"function"==typeof define&&define.amd?define("datepicker",["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){"use strict";function e(t){return A.call(t).slice(8,-1).toLowerCase()}function i(t){return"string"==typeof t}function s(t){return"number"==typeof t&&!isNaN(t)}function a(t){return"undefined"==typeof t}function n(t){return"date"===e(t)}function r(t,e){var i=[];return Array.from?Array.from(t).slice(e||0):(s(e)&&i.push(e),i.slice.apply(t,i))}function o(t,e){var i=r(arguments,2);return function(){return t.apply(e,i.concat(r(arguments)))}}function h(t){return t%4===0&&t%100!==0||t%400===0}function l(t,e){return[31,h(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}function d(t){var e,i,s=String(t).toLowerCase(),a=s.match(x);if(!a||0===a.length)throw new Error("Invalid date format.");for(t={source:s,parts:a},e=a.length,i=0;e>i;i++)switch(a[i]){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}return t}function c(e,i){i=t.isPlainObject(i)?i:{},i.language&&(i=t.extend({},c.LANGUAGES[i.language],i)),this.$element=t(e),this.options=t.extend({},c.DEFAULTS,i),this.isBuilt=!1,this.isShown=!1,this.isInput=!1,this.isInline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}var u=t(window),f=window.document,p=t(f),m=window.Number,g="datepicker",y="click."+g,v="keyup."+g,w="focus."+g,k="resize."+g,D="show."+g,b="hide."+g,$="pick."+g,x=/(y|m|d)+/g,C=/\d+/g,I=/^\d{2,4}$/,F=g+"-inline",T=g+"-dropdown",S=g+"-top-left",M=g+"-top-right",q=g+"-bottom-left",V=g+"-bottom-right",j=[S,M,q,V].join(" "),_=g+"-hide",P=Math.min,A=Object.prototype.toString;c.prototype={constructor:c,init:function(){var e=this.options,i=this.$element,s=e.startDate,a=e.endDate,n=e.date;this.$trigger=t(e.trigger||i),this.isInput=i.is("input")||i.is("textarea"),this.isInline=e.inline&&(e.container||!this.isInput),this.format=d(e.format),this.initialValue=this.getValue(),n=this.parseDate(n||this.initialValue),s&&(s=this.parseDate(s),n.getTime()<s.getTime()&&(n=new Date(s)),this.startDate=s),a&&(a=this.parseDate(a),s&&a.getTime()<s.getTime()&&(a=new Date(s)),n.getTime()>a.getTime()&&(n=new Date(a)),this.endDate=a),this.date=n,this.viewDate=new Date(n),this.initialDate=new Date(this.date),this.bind(),(e.autoshow||this.isInline)&&this.show(),e.autopick&&this.pick()},build:function(){var e,i=this.options,s=this.$element;this.isBuilt||(this.isBuilt=!0,this.$picker=e=t(i.template),this.$week=e.find('[data-view="week"]'),this.$yearsPicker=e.find('[data-view="years picker"]'),this.$yearsPrev=e.find('[data-view="years prev"]'),this.$yearsNext=e.find('[data-view="years next"]'),this.$yearsCurrent=e.find('[data-view="years current"]'),this.$years=e.find('[data-view="years"]'),this.$monthsPicker=e.find('[data-view="months picker"]'),this.$yearPrev=e.find('[data-view="year prev"]'),this.$yearNext=e.find('[data-view="year next"]'),this.$yearCurrent=e.find('[data-view="year current"]'),this.$months=e.find('[data-view="months"]'),this.$daysPicker=e.find('[data-view="days picker"]'),this.$monthPrev=e.find('[data-view="month prev"]'),this.$monthNext=e.find('[data-view="month next"]'),this.$monthCurrent=e.find('[data-view="month current"]'),this.$days=e.find('[data-view="days"]'),this.isInline?t(i.container||s).append(e.addClass(F)):(t(f.body).append(e.addClass(T)),e.addClass(_)),this.fillWeek())},unbuild:function(){this.isBuilt&&(this.isBuilt=!1,this.$picker.remove())},bind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.on(D,e.show),t.isFunction(e.hide)&&i.on(b,e.hide),t.isFunction(e.pick)&&i.on($,e.pick),this.isInput&&(i.on(v,t.proxy(this.keyup,this)),e.trigger||i.on(w,t.proxy(this.show,this))),this.$trigger.on(y,t.proxy(this.show,this))},unbind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.off(D,e.show),t.isFunction(e.hide)&&i.off(b,e.hide),t.isFunction(e.pick)&&i.off($,e.pick),this.isInput&&(i.off(v,this.keyup),e.trigger||i.off(w,this.show)),this.$trigger.off(y,this.show)},showView:function(t){var e=this.$yearsPicker,i=this.$monthsPicker,s=this.$daysPicker,a=this.format;if(a.hasYear||a.hasMonth||a.hasDay)switch(m(t)){case 2:case"years":i.addClass(_),s.addClass(_),a.hasYear?(this.fillYears(),e.removeClass(_)):this.showView(0);break;case 1:case"months":e.addClass(_),s.addClass(_),a.hasMonth?(this.fillMonths(),i.removeClass(_)):this.showView(2);break;default:e.addClass(_),i.addClass(_),a.hasDay?(this.fillDays(),s.removeClass(_)):this.showView(1)}},hideView:function(){this.options.autohide&&this.hide()},place:function(){var t=this.options,e=this.$element,i=this.$picker,s=p.outerWidth(),a=p.outerHeight(),n=e.outerWidth(),r=e.outerHeight(),o=i.width(),h=i.height(),l=e.offset(),d=l.left,c=l.top,u=parseFloat(t.offset)||10,f=S;c>h&&c+r+h>a?(c-=h+u,f=q):c+=r+u,d+o>s&&(d=d+n-o,f=f.replace("left","right")),i.removeClass(j).addClass(f).css({top:c,left:d,zIndex:parseInt(t.zIndex,10)})},trigger:function(e,i){var s=t.Event(e,i);return this.$element.trigger(s),s},createItem:function(e){var i=this.options,s=i.itemTag,a={text:"",view:"",muted:!1,picked:!1,disabled:!1};return t.extend(a,e),"<"+s+" "+(a.disabled?'class="'+i.disabledClass+'"':a.picked?'class="'+i.pickedClass+'"':a.muted?'class="'+i.mutedClass+'"':"")+(a.view?' data-view="'+a.view+'"':"")+">"+a.text+"</"+s+">"},fillAll:function(){this.fillYears(),this.fillMonths(),this.fillDays()},fillWeek:function(){var e,i=this.options,s=parseInt(i.weekStart,10)%7,a=i.daysMin,n="";for(a=t.merge(a.slice(s),a.slice(0,s)),e=0;6>=e;e++)n+=this.createItem({text:a[e]});this.$week.html(n)},fillYears:function(){var e,i=this.options,s=i.disabledClass||"",a=i.yearSuffix||"",n=t.isFunction(i.filter)&&i.filter,r=this.startDate,o=this.endDate,h=this.viewDate,l=h.getFullYear(),d=h.getMonth(),c=h.getDate(),u=this.date,f=u.getFullYear(),p=!1,m=!1,g=!1,y=!1,v=!1,w="",k=-5,D=6;for(e=k;D>=e;e++)u=new Date(l+e,d,c),v=e===k||e===D,y=l+e===f,g=!1,r&&(g=u.getFullYear()<r.getFullYear(),e===k&&(p=g)),!g&&o&&(g=u.getFullYear()>o.getFullYear(),e===D&&(m=g)),!g&&n&&(g=n.call(this.$element,u)===!1),w+=this.createItem({text:l+e,view:g?"year disabled":y?"year picked":"year",muted:v,picked:y,disabled:g});this.$yearsPrev.toggleClass(s,p),this.$yearsNext.toggleClass(s,m),this.$yearsCurrent.toggleClass(s,!0).html(l+k+a+" - "+(l+D)+a),this.$years.html(w)},fillMonths:function(){var e,i=this.options,s=i.disabledClass||"",a=i.monthsShort,n=t.isFunction(i.filter)&&i.filter,r=this.startDate,o=this.endDate,h=this.viewDate,l=h.getFullYear(),d=h.getDate(),c=this.date,u=c.getFullYear(),f=c.getMonth(),p=!1,m=!1,g=!1,y=!1,v="";for(e=0;11>=e;e++)c=new Date(l,e,d),y=l===u&&e===f,g=!1,r&&(p=c.getFullYear()===r.getFullYear(),g=p&&c.getMonth()<r.getMonth()),!g&&o&&(m=c.getFullYear()===o.getFullYear(),g=m&&c.getMonth()>o.getMonth()),!g&&n&&(g=n.call(this.$element,c)===!1),v+=this.createItem({index:e,text:a[e],view:g?"month disabled":y?"month picked":"month",picked:y,disabled:g});this.$yearPrev.toggleClass(s,p),this.$yearNext.toggleClass(s,m),this.$yearCurrent.toggleClass(s,p&&m).html(l+i.yearSuffix||""),this.$months.html(v)},fillDays:function(){var e,i,s,a=this.options,n=a.disabledClass||"",r=a.yearSuffix||"",o=a.monthsShort,h=parseInt(a.weekStart,10)%7,d=t.isFunction(a.filter)&&a.filter,c=this.startDate,u=this.endDate,f=this.viewDate,p=f.getFullYear(),m=f.getMonth(),g=p,y=m,v=p,w=m,k=this.date,D=k.getFullYear(),b=k.getMonth(),$=k.getDate(),x=!1,C=!1,I=!1,F=!1,T=[],S=[],M=[],q=42;for(0===m?(g-=1,y=11):y-=1,e=l(g,y),k=new Date(p,m,1),s=k.getDay()-h,0>=s&&(s+=7),c&&(x=k.getTime()<=c.getTime()),i=e-(s-1);e>=i;i++)k=new Date(g,y,i),I=!1,c&&(I=k.getTime()<c.getTime()),!I&&d&&(I=d.call(this.$element,k)===!1),T.push(this.createItem({text:i,view:"day prev",muted:!0,disabled:I}));for(11===m?(v+=1,w=0):w+=1,e=l(p,m),s=q-(T.length+e),k=new Date(p,m,e),u&&(C=k.getTime()>=u.getTime()),i=1;s>=i;i++)k=new Date(v,w,i),I=!1,u&&(I=k.getTime()>u.getTime()),!I&&d&&(I=d.call(this.$element,k)===!1),S.push(this.createItem({text:i,view:"day next",muted:!0,disabled:I}));for(i=1;e>=i;i++)k=new Date(p,m,i),F=p===D&&m===b&&i===$,I=!1,c&&(I=k.getTime()<c.getTime()),!I&&u&&(I=k.getTime()>u.getTime()),!I&&d&&(I=d.call(this.$element,k)===!1),M.push(this.createItem({text:i,view:I?"day disabled":F?"day picked":"day",picked:F,disabled:I}));this.$monthPrev.toggleClass(n,x),this.$monthNext.toggleClass(n,C),this.$monthCurrent.toggleClass(n,x&&C).html(a.yearFirst?p+r+" "+o[m]:o[m]+" "+p+r),this.$days.html(T.join("")+M.join(" ")+S.join(""))},click:function(e){var i,s,a,n,r,o,h=t(e.target),l=this.viewDate;if(e.stopPropagation(),e.preventDefault(),!h.hasClass("disabled"))switch(i=l.getFullYear(),s=l.getMonth(),a=l.getDate(),o=h.data("view")){case"years prev":case"years next":i="years prev"===o?i-10:i+10,r=h.text(),n=I.test(r),n&&(i=parseInt(r,10),this.date=new Date(i,s,P(a,28))),this.viewDate=new Date(i,s,P(a,28)),this.fillYears(),n&&(this.showView(1),this.pick("year"));break;case"year prev":case"year next":i="year prev"===o?i-1:i+1,this.viewDate=new Date(i,s,P(a,28)),this.fillMonths();break;case"year current":this.format.hasYear&&this.showView(2);break;case"year picked":this.format.hasMonth?this.showView(1):this.hideView();break;case"year":i=parseInt(h.text(),10),this.date=new Date(i,s,P(a,28)),this.viewDate=new Date(i,s,P(a,28)),this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"month prev":case"month next":s="month prev"===o?s-1:"month next"===o?s+1:s,this.viewDate=new Date(i,s,P(a,28)),this.fillDays();break;case"month current":this.format.hasMonth&&this.showView(1);break;case"month picked":this.format.hasDay?this.showView(0):this.hideView();break;case"month":s=t.inArray(h.text(),this.options.monthsShort),this.date=new Date(i,s,P(a,28)),this.viewDate=new Date(i,s,P(a,28)),this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"day prev":case"day next":case"day":s="day prev"===o?s-1:"day next"===o?s+1:s,a=parseInt(h.text(),10),this.date=new Date(i,s,a),this.viewDate=new Date(i,s,a),this.fillDays(),"day"===o&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}},clickDoc:function(t){for(var e,i=t.target,s=this.$trigger[0];i!==f;){if(i===s){e=!0;break}i=i.parentNode}e||this.hide()},keyup:function(){this.update()},getValue:function(){var t=this.$element,e="";return this.isInput?e=t.val():this.isInline?this.options.container&&(e=t.text()):e=t.text(),e},setValue:function(t){var e=this.$element;t=i(t)?t:"",this.isInput?e.val(t):this.isInline?this.options.container&&e.text(t):e.text(t)},show:function(){this.isBuilt||this.build(),this.isShown||this.trigger(D).isDefaultPrevented()||(this.isShown=!0,this.$picker.removeClass(_).on(y,t.proxy(this.click,this)),this.showView(this.options.startView),this.isInline||(u.on(k,this._place=o(this.place,this)),p.on(y,this._clickDoc=o(this.clickDoc,this)),this.place()))},hide:function(){this.isShown&&(this.trigger(b).isDefaultPrevented()||(this.isShown=!1,this.$picker.addClass(_).off(y,this.click),this.isInline||(u.off(k,this._place),p.off(y,this._clickDoc))))},update:function(){this.setDate(this.getValue(),!0)},pick:function(t){var e=this.$element,i=this.date;this.trigger($,{view:t||"",date:i}).isDefaultPrevented()||(this.setValue(i=this.formatDate(this.date)),this.isInput&&e.trigger("change"))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.isShown&&this.showView(this.options.startView)},getMonthName:function(e,i){var n=this.options,r=n.months;return t.isNumeric(e)?e=m(e):a(i)&&(i=e),i===!0&&(r=n.monthsShort),r[s(e)?e:this.date.getMonth()]},getDayName:function(e,i,n){var r=this.options,o=r.days;return t.isNumeric(e)?e=m(e):(a(n)&&(n=i),a(i)&&(i=e)),o=n===!0?r.daysMin:i===!0?r.daysShort:o,o[s(e)?e:this.date.getDay()]},getDate:function(t){var e=this.date;return t?this.formatDate(e):new Date(e)},setDate:function(e,s){var a=this.options.filter;if(n(e)||i(e)){if(e=this.parseDate(e),t.isFunction(a)&&a.call(this.$element,e)===!1)return;this.date=e,this.viewDate=new Date(e),s||this.pick(),this.isBuilt&&this.fillAll()}},setStartDate:function(t){(n(t)||i(t))&&(this.startDate=this.parseDate(t),this.isBuilt&&this.fillAll())},setEndDate:function(t){(n(t)||i(t))&&(this.endDate=this.parseDate(t),this.isBuilt&&this.fillAll())},parseDate:function(t){var e,s,a,r,o,h,l=this.format,d=[];if(n(t))return new Date(t.getFullYear(),t.getMonth(),t.getDate());if(i(t)&&(d=t.match(C)||[]),t=new Date,s=t.getFullYear(),a=t.getDate(),r=t.getMonth(),e=l.parts.length,d.length===e)for(h=0;e>h;h++)switch(o=parseInt(d[h],10)||1,l.parts[h]){case"dd":case"d":a=o;break;case"mm":case"m":r=o-1;break;case"yy":s=2e3+o;break;case"yyyy":s=o}return new Date(s,r,a)},formatDate:function(t){var e,i,s,a,r,o=this.format,h="";if(n(t))for(h=o.source,i=t.getFullYear(),a={d:t.getDate(),m:t.getMonth()+1,yy:i.toString().substring(2),yyyy:i},a.dd=(a.d<10?"0":"")+a.d,a.mm=(a.m<10?"0":"")+a.m,e=o.parts.length,r=0;e>r;r++)s=o.parts[r],h=h.replace(s,a[s]);return h},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(g)}},c.LANGUAGES={},c.DEFAULTS={autoshow:!1,autohide:!1,autopick:!1,inline:!1,container:null,trigger:null,language:"",format:"yyyy-mm-dd",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],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"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">&lsaquo;</li><li data-view="years current"></li><li data-view="years next">&rsaquo;</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">&lsaquo;</li><li data-view="year current"></li><li data-view="year next">&rsaquo;</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">&lsaquo;</li><li data-view="month current"></li><li data-view="month next">&rsaquo;</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},c.setDefaults=function(e){t.extend(c.DEFAULTS,t.isPlainObject(e)&&e)},c.other=t.fn.datepicker,t.fn.datepicker=function(e){var s,n=r(arguments,1);return this.each(function(){var a,r,o=t(this),h=o.data(g);if(!h){if(/destroy/.test(e))return;a=t.extend({},o.data(),t.isPlainObject(e)&&e),o.data(g,h=new c(this,a))}i(e)&&t.isFunction(r=h[e])&&(s=r.apply(h,n))}),a(s)?this:s},t.fn.datepicker.Constructor=c,t.fn.datepicker.languages=c.LANGUAGES,t.fn.datepicker.setDefaults=c.setDefaults,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=c.other,this}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){"use strict";function e(e,i){return"string"==typeof e&&"object"==typeof i&&t.each(i,function(t,i){e=e.replace("${"+String(t).toLowerCase()+"}",i)}),e}function i(e,s){this.$element=t(e),this.options=t.extend(!0,{},i.DEFAULTS,t.isPlainObject(s)&&s),this.date=null,this.formatDate=null,this.built=!1,this.pickerData=this.$element.data(),this.init()}var s="qor.datepicker",a="enable."+s,n="disable."+s,r="pick."+s,o="click."+s,h=".qor-datepicker__embedded",l=".qor-datepicker__save",d=".qor-field__datetimepicker";return i.prototype={init:function(){this.bind()},bind:function(){this.$element.on(o,t.proxy(this.show,this))},unbind:function(){this.$element.off(o,this.show)},build:function(){var s,a=this.$element,n=this.pickerData,c={date:a.val(),inline:!0},u=a.closest(d),f=u.find(n.targetInput);this.built||(this.$modal=s=t(e(i.TEMPLATE,this.options.text)).appendTo("body"),f.size()&&(c.date=f.val()),n.targetInput&&f.data().startDate&&(c.startDate=new Date),s.find(h).on(r,t.proxy(this.change,this)).datepicker(c).triggerHandler(r),s.find(l).on(o,t.proxy(this.pick,this)),this.built=!0)},unbuild:function(){this.built&&this.$modal.find(h).off(r,this.change).datepicker("destroy").end().find(l).off(o,this.pick).end().remove()},change:function(e){var i,s=this.$modal,a=t(e.target);this.date=i=a.datepicker("getDate"),this.formatDate=a.datepicker("getDate",!0),s.find(".qor-datepicker__picked-year").text(i.getFullYear()),s.find(".qor-datepicker__picked-date").text([a.datepicker("getDayName",i.getDay(),!0)+",",String(a.datepicker("getMonthName",i.getMonth(),!0)),i.getDate()].join(" "))},show:function(){this.built||this.build(),this.$modal.qorModal("show")},pick:function(){var t=this.$element,e=this.pickerData.targetInput,i=this.formatDate;if(e){t=t.closest(d).find(e);var s=/^\d{4}-\d{1,2}-\d{1,2}/,a=t.val(),n=s.test(a);n?i=a.replace(s,i):i+=" 00:00"}t.val(i).trigger("change"),this.$modal.qorModal("hide")},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(s)}},i.DEFAULTS={text:{title:"Pick a date",ok:"OK",cancel:"Cancel"}},i.TEMPLATE='<div class="qor-modal fade qor-datepicker" tabindex="-1" role="dialog" aria-hidden="true"><div class="mdl-card mdl-shadow--2dp" role="document"><div class="mdl-card__title"><h2 class="mdl-card__title-text">${title}</h2></div><div class="mdl-card__supporting-text"><div class="qor-datepicker__picked"><div class="qor-datepicker__picked-year"></div><div class="qor-datepicker__picked-date"></div></div><div class="qor-datepicker__embedded"></div></div><div class="mdl-card__actions"><a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect qor-datepicker__save">${ok}</a><a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" data-dismiss="modal">${cancel}</a></div></div></div>',i.plugin=function(e){return this.each(function(){var a,n,r=t(this),o=r.data(s);if(!o){if(!t.fn.datepicker)return;if(/destroy/.test(e))return;a=t.extend(!0,{},r.data(),"object"==typeof e&&e),r.data(s,o=new i(this,a))}"string"==typeof e&&t.isFunction(n=o[e])&&n.apply(o)})},t(function(){var e='[data-toggle="qor.datepicker"]';t(document).on(n,function(s){i.plugin.call(t(e,s.target),"destroy")}).on(a,function(s){i.plugin.call(t(e,s.target))}).triggerHandler(a)}),i}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){"use strict";function e(i,s){this.$element=t(i),this.options=t.extend(!0,{},e.DEFAULTS,t.isPlainObject(s)&&s),this.formatDate=null,this.pickerData=this.$element.data(),this.targetInputClass=this.pickerData.targetInput,this.parent=this.$element.closest(d),this.isDateTimePicker=this.targetInputClass&&this.parent.size(),this.$targetInput=this.parent.find(this.targetInputClass),this.init()}var i="qor.timepicker",s="enable."+i,a="disable."+i,n="click."+i,r="focus."+i,o="keydown."+i,h="blur."+i,l="selectTime."+i,d=".qor-field__datetimepicker",c=".ui-timepicker-selected";return e.prototype={init:function(){this.bind(),this.oldValue=this.$targetInput.val();var t=new Date,e=t.getMonth()+1,i=t.getDate();e=8>e?"0"+e:e,i=10>i?"0"+i:i,this.dateValueNow=t.getFullYear()+"-"+e+"-"+i},bind:function(){var e={timeFormat:"H:i",showOn:null,wrapHours:!1,scrollDefault:"now"};this.isDateTimePicker&&this.$targetInput.timepicker(e).on(l,t.proxy(this.changeTime,this)).on(h,t.proxy(this.blur,this)).on(r,t.proxy(this.focus,this)).on(o,t.proxy(this.keydown,this)),this.$element.on(n,t.proxy(this.show,this))},unbind:function(){this.$element.off(n,this.show),this.isDateTimePicker&&this.$targetInput.off(l,this.changeTime).off(h,this.blur).off(r,this.focus).off(o,this.keydown)},focus:function(){},blur:function(){var t,e,i,s,a,n,r=this.$targetInput.val(),o=r.split(" "),h=o.length,l=/\d{1,2}:\d{1,2}/,d=/^\d{4}-\d{1,2}-\d{1,2}/;if(r){if(1==h)d.test(o[0])&&(e=o[0],i="00:00"),l.test(o[0])&&(e=this.dateValueNow,i=o[0]);else for(var c=0;h>c;c++){s=d.test(o[c]),a=l.test(o[c]),s&&(e=o[c],n="-"),a&&(i=o[c],n=":"),t=o[c].split(n);for(var u=0;u<t.length;u++)t[u].length<2&&(t[u]="0"+t[u]);s&&(e=t.join(n)),a&&(i=t.join(n))}this.checkDate(e)&&this.checkTime(i)?(this.$targetInput.val(e+" "+i),this.oldValue=this.$targetInput.val()):this.$targetInput.val(this.oldValue)}},keydown:function(t){var e=t.keyCode,i=[48,49,50,51,52,53,54,55,56,57,8,37,38,39,40,27,32,20,189,16,186,96,97,98,99,100,101,102,103,104,105];-1==i.indexOf(e)&&t.preventDefault()},checkDate:function(t){var e=/^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{1,2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$/;return e.test(t)},checkTime:function(t){var e=/^([01]\d|2[0-3]):?([0-5]\d)$/;return e.test(t)},changeTime:function(){var t,e=this.$targetInput,i=this.oldValue,s=/\d{1,2}:\d{1,2}/,a=s.test(i),n=e.data().timepickerList.find(c).html();t=i?a?i.replace(s,n):i+" "+n:this.dateValueNow+" "+n,e.val(t)},show:function(){this.isDateTimePicker&&(this.$targetInput.timepicker("show"),this.oldValue=this.$targetInput.val())},destroy:function(){this.unbind(),this.$targetInput.timepicker("remove"),this.$element.removeData(i)}},e.DEFAULTS={},e.plugin=function(s){return this.each(function(){var a,n,r=t(this),o=r.data(i);if(!o){if(!t.fn.datepicker)return;if(/destroy/.test(s))return;a=t.extend(!0,{},r.data(),"object"==typeof s&&s),r.data(i,o=new e(this,a))}"string"==typeof s&&t.isFunction(n=o[s])&&n.apply(o)})},t(function(){var i='[data-toggle="qor.timepicker"]';t(document).on(a,function(s){e.plugin.call(t(i,s.target),"destroy")}).on(s,function(s){e.plugin.call(t(i,s.target))}).triggerHandler(s)}),e});