text: /*!
   * Datepicker v3.0.4
   * https://github.com/fengyuanchen/datepicker
   *
   * Copyright (c) 2014-2017 Fengyuan Chen
   * Released under the MIT license
   *
   * Date: 2017-02-26T18:30:16.941Z
   */
  !function(t){"function"==typeof define&&define.amd?define("datepicker",["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){"use strict";function e(){return"cal-"+ ++q}function i(t){return E.call(t).slice(8,-1).toLowerCase()}function s(t){return"string"==typeof t}function a(t){return"number"==typeof t&&!isNaN(t)}function n(t){return"undefined"==typeof t}function r(t){return"date"===i(t)}function h(t,e){var i=[];return Array.from?Array.from(t).slice(e||0):(a(e)&&i.push(e),i.slice.apply(t,i))}function l(t,e){var i=h(arguments,2);return function(){return t.apply(e,i.concat(h(arguments)))}}function o(t){return t%4===0&&t%100!==0||t%400===0}function d(t,e){return[31,o(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}function c(t){var e,i,s=String(t).toLowerCase(),a=s.match(C);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 u(t,e){var i,a,n,h,l,e=s(e)?c(e):e,o="";if(r(t))for(o=e.source,a=t.getFullYear(),h={d:t.getDate(),m:t.getMonth()+1,yy:a.toString().substring(2),yyyy:a},h.dd=(h.d<10?"0":"")+h.d,h.mm=(h.m<10?"0":"")+h.m,i=e.parts.length,l=0;i>l;l++)n=e.parts[l],o=o.replace(n,h[n]);return o}function f(e,i){i=t.isPlainObject(i)?i:{},i.language&&(i=t.extend({},f.LANGUAGES[i.language],i)),this.$element=t(e),this.options=t.extend({},f.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 p=t(window),y=window.document,w=t(y),m=window.Number,g="datepicker",v="click."+g,D="keyup."+g,k="focus."+g,b="resize."+g,$="show."+g,I="hide."+g,x="pick."+g,C=/(y|m|d)+/g,F=/\d+/g,S=/^\d{2,4}$/,M=g+"-inline",V=g+"-dropdown",A=g+"-top-left",T=g+"-top-right",_=g+"-bottom-left",Y=g+"-bottom-right",N=[A,T,_,Y].join(" "),P=g+"-hide",j=Math.min,E=Object.prototype.toString,q=-1;f.prototype={constructor:f,init:function(){var i=this.options,s=this.$element,a=i.startDate,n=i.endDate,r=i.date;this._sync=i.sync,this._calId=e(),this.$trigger=t(i.trigger||s),this.isInput=s.is("input")||s.is("textarea"),this.isInline=i.inline&&(i.container||!this.isInput),this.format=c(i.format),this.initialValue=this.getValue(),r=this.parseDate(r||this.initialValue),a&&(a=this.parseDate(a),r.getTime()<a.getTime()&&(r=new Date(a)),this.startDate=a),n&&(n=this.parseDate(n),a&&n.getTime()<a.getTime()&&(n=new Date(a)),r.getTime()>n.getTime()&&(r=new Date(n)),this.endDate=n),this.date=r,this.viewDate=new Date(r),this.initialDate=new Date(this.date),this.bind(),(i.autoshow||this.isInline)&&this.show(),i.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(M)):(t(y.body).append(e.addClass(V)),e.addClass(P)),this.setId(),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($+"."+this._calId,e.show),t.isFunction(e.hide)&&i.on(I+"."+this._calId,e.hide),t.isFunction(e.pick)&&i.on(x+"."+this._calId,e.pick),this.isInput&&(i.on(D+"."+this._calId,t.proxy(this.keyup,this)),e.trigger||i.on(k+"."+this._calId,t.proxy(this.show,this))),this.$trigger.on(v+"."+this._calId,t.proxy(this.show,this))},unbind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.off($+"."+this._calId,e.show),t.isFunction(e.hide)&&i.off(I+"."+this._calId,e.hide),t.isFunction(e.pick)&&i.off(x+"."+this._calId,e.pick),this.isInput&&(i.off(D+"."+this._calId,this.keyup),e.trigger||i.off(k+"."+this._calId,this.show)),this.$trigger.off(v+"."+this._calId,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(P),s.addClass(P),a.hasYear?(this.fillYears(),e.removeClass(P)):this.showView(0);break;case 1:case"months":e.addClass(P),s.addClass(P),a.hasMonth?(this.fillMonths(),i.removeClass(P)):this.showView(2);break;default:e.addClass(P),i.addClass(P),a.hasDay?(this.fillDays(),s.removeClass(P)):this.showView(1)}},hideView:function(){this.options.autohide&&this.hide()},place:function(){var t=this.options,e=this.$element,i=this.$picker,s=w.outerWidth(),a=w.outerHeight(),n=e.outerWidth(),r=e.outerHeight(),h=i.width(),l=i.height(),o=e.offset(),d=o.left,c=o.top,u=parseFloat(t.offset)||10,f=A;c>l&&c+r+l>a?(c-=l+u,f=_):c+=r+u,d+h>s&&(d=d+n-h,f=f.replace("left","right")),i.removeClass(N).addClass(f).css({top:c,left:d,zIndex:parseInt(t.zIndex,10)})},trigger:function(e,i){var s=t.Event(e+"."+this._calId,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,h=this.endDate,l=this.viewDate,o=l.getFullYear(),d=l.getMonth(),c=l.getDate(),u=this.date,f=u.getFullYear(),p=!1,y=!1,w=!1,m=!1,g=!1,v="",D=-5,k=6;for(e=D;k>=e;e++)u=new Date(o+e,d,c),g=e===D||e===k,m=o+e===f,w=!1,r&&(w=u.getFullYear()<r.getFullYear(),e===D&&(p=w)),!w&&h&&(w=u.getFullYear()>h.getFullYear(),e===k&&(y=w)),!w&&n&&(w=n.call(this.$element,u)===!1),v+=this.createItem({text:o+e,view:w?"year disabled":m?"year picked":"year",muted:g,picked:m,disabled:w});this.$yearsPrev.toggleClass(s,p),this.$yearsNext.toggleClass(s,y),this.$yearsCurrent.toggleClass(s,!0).html(o+D+a+" - "+(o+k)+a),this.$years.html(v)},fillMonths:function(){var e,i=this.options,s=i.disabledClass||"",a=i.monthsShort,n=t.isFunction(i.filter)&&i.filter,r=this.startDate,h=this.endDate,l=this.viewDate,o=l.getFullYear(),d=l.getDate(),c=this.date,u=c.getFullYear(),f=c.getMonth(),p=!1,y=!1,w=!1,m=!1,g="";for(e=0;11>=e;e++)c=new Date(o,e,d),m=o===u&&e===f,w=!1,r&&(p=c.getFullYear()===r.getFullYear(),w=p&&c.getMonth()<r.getMonth()),!w&&h&&(y=c.getFullYear()===h.getFullYear(),w=y&&c.getMonth()>h.getMonth()),!w&&n&&(w=n.call(this.$element,c)===!1),g+=this.createItem({index:e,text:a[e],view:w?"month disabled":m?"month picked":"month",picked:m,disabled:w});this.$yearPrev.toggleClass(s,p),this.$yearNext.toggleClass(s,y),this.$yearCurrent.toggleClass(s,p&&y).html(o+i.yearSuffix||""),this.$months.html(g)},fillDays:function(){var e,i,s,a=this.options,n=a.disabledClass||"",r=a.yearSuffix||"",h=a.monthsShort,l=parseInt(a.weekStart,10)%7,o=t.isFunction(a.filter)&&a.filter,c=this.startDate,u=this.endDate,f=this.viewDate,p=f.getFullYear(),y=f.getMonth(),w=p,m=y,g=p,v=y,D=this.date,k=D.getFullYear(),b=D.getMonth(),$=D.getDate(),I=a.months&&a.months.disableNavigation||!1,x=I,C=!1,F=a.days&&a.days.disablePrevious,S=a.days&&a.days.disableNext,M=!1,V=[],A=[],T=[],_=42;for(0===y?(w-=1,m=11):m-=1,e=d(w,m),D=new Date(p,y,1),s=D.getDay()-l,0>=s&&(s+=7),!I&&c&&(I=D.getTime()<=c.getTime()),i=e-(s-1);e>=i;i++)D=new Date(w,m,i),C=F,!C&&c&&(C=D.getTime()<c.getTime()),!C&&o&&(C=o.call(this.$element,D)===!1),V.push(this.createItem({text:i,view:"day prev",muted:!0,disabled:C}));for(11===y?(g+=1,v=0):v+=1,e=d(p,y),s=_-(V.length+e),D=new Date(p,y,e),!x&&u&&(x=D.getTime()>=u.getTime()),i=1;s>=i;i++)D=new Date(g,v,i),C=S,!C&&u&&(C=D.getTime()>u.getTime()),!C&&o&&(C=o.call(this.$element,D)===!1),A.push(this.createItem({text:i,view:"day next",muted:!0,disabled:C}));for(i=1;e>=i;i++)D=new Date(p,y,i),M=p===k&&y===b&&i===$,C=!1,c&&(C=D.getTime()<c.getTime()),!C&&u&&(C=D.getTime()>u.getTime()),!C&&o&&(C=o.call(this.$element,D)===!1),T.push(this.createItem({text:i,view:C?"day disabled":M?"day picked":"day",picked:M,disabled:C}));this.$monthPrev.toggleClass(n,I),this.$monthNext.toggleClass(n,x),this.$monthCurrent.toggleClass(n,I&&x).html(a.yearFirst?p+r+" "+h[y]:h[y]+" "+p+r),this.$days.html(V.join("")+T.join(" ")+A.join(""))},click:function(e){var i,s,a,n,r,h,l=t(e.target),o=this.viewDate;if(e.stopPropagation(),e.preventDefault(),!l.hasClass("disabled"))switch(this.toggleActive(),i=o.getFullYear(),s=o.getMonth(),a=o.getDate(),h=l.data("view"),this._sync.click(h),h){case"years prev":case"years next":i="years prev"===h?i-10:i+10,r=l.text(),n=S.test(r),n&&(i=parseInt(r,10),this.date=new Date(i,s,j(a,28))),this.viewDate=new Date(i,s,j(a,28)),this.fillYears(),n&&(this.showView(1),this.pick("year"));break;case"year prev":case"year next":i="year prev"===h?i-1:i+1,this.viewDate=new Date(i,s,j(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(l.text(),10),this.date=new Date(i,s,j(a,28)),this.viewDate=new Date(i,s,j(a,28)),this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"month prev":case"month next":s="month prev"===h?s-1:"month next"===h?s+1:s,this.viewDate=new Date(i,s,j(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(l.text(),this.options.monthsShort),this.date=new Date(i,s,j(a,28)),this.viewDate=new Date(i,s,j(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"===h?s-1:"day next"===h?s+1:s,a=parseInt(l.text(),10),this.date=new Date(i,s,a),this.viewDate=new Date(i,s,a),this.fillDays(),"day"===h&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}},setId:function(){this._calId&&this.$picker.attr("data-cal-id",this._calId)},toggleActive:function(){var t=this.$element.data(g);if(t&&t.length>0)for(var e=0,i=t.length;i>e;e++)t[e].setActive(!1);this.setActive(!0)},setActive:function(t){this._active=t},isActive:function(){return this._active},clickDoc:function(t){for(var e,i=t.target,s=this.$trigger[0];i!==y;){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=s(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($).isDefaultPrevented()||(this.isShown=!0,this.$picker.removeClass(P).on(v+"."+this._calId,t.proxy(this.click,this)),this.showView(this.options.startView),this.isInline||(p.on(b+"."+this._calId,this._place=l(this.place,this)),w.on(v+"."+this._calId,this._clickDoc=l(this.clickDoc,this)),this.place()))},hide:function(){this.isShown&&(this.trigger(I).isDefaultPrevented()||(this.isShown=!1,this.$picker.addClass(P).off(v,this.click),this.isInline||(p.off(b,this._place),w.off(v,this._clickDoc))))},update:function(){this.setDate(this.getValue(),!0)},pick:function(t){var e=this.$element,i=this.date;this.trigger(x,{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 s=this.options,r=s.months;return t.isNumeric(e)?e=m(e):n(i)&&(i=e),i===!0&&(r=s.monthsShort),r[a(e)?e:this.date.getMonth()]},getDayName:function(e,i,s){var r=this.options,h=r.days;return t.isNumeric(e)?e=m(e):(n(s)&&(s=i),n(i)&&(i=e)),h=s===!0?r.daysMin:i===!0?r.daysShort:h,h[a(e)?e:this.date.getDay()]},getDate:function(t){var e=this.date;return t?this.formatDate(e):new Date(e)},setDate:function(e,i){var a=this.options.filter;if(r(e)||s(e)){if(e=this.parseDate(e),t.isFunction(a)&&a.call(this.$element,e)===!1)return;this.date=e,this.viewDate=new Date(e),i||this.pick(),this.isBuilt&&this.fillAll()}},setStartDate:function(t){(r(t)||s(t))&&(this.startDate=this.parseDate(t),this.isBuilt&&this.fillAll())},setEndDate:function(t){(r(t)||s(t))&&(this.endDate=this.parseDate(t),this.isBuilt&&this.fillAll())},parseDate:function(t){var e,i,a,n,h,l,o=this.format,d=[];if(r(t))return new Date(t.getFullYear(),t.getMonth(),t.getDate());if(s(t)&&(d=t.match(F)||[]),t=new Date,i=t.getFullYear(),a=t.getDate(),n=t.getMonth(),e=o.parts.length,d.length===e)for(l=0;e>l;l++)switch(h=parseInt(d[l],10)||1,o.parts[l]){case"dd":case"d":a=h;break;case"mm":case"m":n=h-1;break;case"yy":i=2e3+h;break;case"yyyy":i=h}return new Date(i,n,a)},formatDate:function(t){return u(t,this.format)},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(g)}},f.LANGUAGES={},f.DEFAULTS={autoshow:!1,autohide:!1,autopick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",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" data-cal-id="cal-0"><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},f.setDefaults=function(e){t.extend(f.DEFAULTS,t.isPlainObject(e)&&e)},f.other=t.fn.datepicker,t.fn.datepicker=function(e){var i,a=h(arguments,1);return this.each(function(){var n,r,h=t(this),l=h.data(g)||[],o=function(){for(var t=null,e=0,i=l.length;i>e;e++)if(l[e].isActive()){t=l[e];break}return t}();if(o||!/destroy/.test(e))if(s(e))o&&t.isFunction(r=o[e])&&(i=r.apply(o,a));else{if(n=t.extend({},t.isPlainObject(e)&&e),n.sync=new B(h),n&&n.months&&n.months.number)for(var d=new Date,c=d.getMonth(),p=d.getFullYear(),y=n.format||f.DEFAULTS.format,w=0,m=n.months.number;m>w;w++)w>0&&(n.startDate=u(new Date(p,++c,1),y)),l.push(new f(this,n)),h.data(g,l);else l.push(new f(this,n)),h.data(g,l);n.sync.init()}}),n(i)?this:i},t.fn.datepicker.Constructor=f,t.fn.datepicker.languages=f.LANGUAGES,t.fn.datepicker.setDefaults=f.setDefaults,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=f.other,this};var B=function(e){if(!e)throw new Error("Invalid element provided for sync.");this._input=t(e)};B.prototype={constructor:B,init:function(){this.pickers=this._input.data(g)||[];for(var t=0,e=this.pickers.length;e>t;t++)0==t?this.pickers[t].setActive(!0):this.day(this.pickers[t])},click:function(t){for(var e=0,i=this.pickers.length;i>e;e++)this.pickers[e].isActive()||this[t](this.pickers[e])},day:function(t){var e=t.$days.children(".picked");e&&e.removeClass("picked").attr("data-view","day")}}});