!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],t):"object"==typeof exports?exports.TimekitBooking=t(require("jQuery")):e.TimekitBooking=t(e.jQuery)}(this,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(){var e,t,i,c={},u=function(){n(41),n(42),n(44),n(43)},d=function(){if(e=r(c.targetEl),0===e.length)throw new Error("TimekitBooking - No target DOM element was found ("+c.targetEl+")");e.addClass("bookingjs"),e.children(":not(script)").remove()},f=function(){var e={};r.extend(!0,e,c.timekitConfig),s.configure(e),s.setUser(c.email,c.apiToken)},h=function(){var e={emails:[c.email]};r.extend(e,c.timekitFindTime),a.doCallback("findTimeStarted",c,e),s.findTime(e).then(function(e){if(a.doCallback("findTimeSuccessful",c,e),c.goToFirstEvent&&e.data.length>0){var t=e.data[0].start,n=o(t).format("H");p(t),m(n)}y(e.data)})["catch"](function(e){throw a.doCallback("findTimeFailed",c,e),new Error("TimekitBooking - An error with Timekit FindTime occured, context: "+e)})},p=function(e){t.fullCalendar("gotoDate",e)},m=function(e){if("agendaWeek"===t.fullCalendar("getView").name){var n=t.find(".fc-slats .fc-minor"),i=2*r(n[0]).height(),s=0;if(c.fullCalendar.minTime){var a=o(c.fullCalendar.minTime,"HH:mm:ss").format("H");s=i*a}var l=i*e-s,u=t.find(".fc-scroller"),d=u.height(),f=u.scrollTop(),h=u.find(".fc-time-grid").height();l>f&&f+d>l||(l>h-d&&(l=h-d),u.animate({scrollTop:l}))}},g=function(){var t=(new Date).getTimezoneOffset()/60*-1,i=n(50),o=n(12),l=r(o.render({timezoneIcon:i,loading:!0}));e.addClass("has-timezonehelper"),e.append(l);var u={email:c.email};a.doCallback("getUserTimezoneStarted",c,u),s.getUserTimezone(u).then(function(e){a.doCallback("getUserTimezoneSuccesful",c,e);var o=e.data.utc_offset,s=Math.abs(t-o),u=n(12),d=r(u.render({timezoneIcon:i,timezoneDifference:0===s?!1:!0,timezoneOffset:s,timezoneDirection:s>0?"ahead":"behind",hostName:c.name}));l.replaceWith(d)})["catch"](function(e){throw a.doCallback("getUserTimezoneFailed",c,e),new Error("TimekitBooking - An error with Timekit getUserTimezone occured, context: "+e)})},v=function(){var n=b(),i={defaultView:n.view,height:n.height,eventClick:x,windowResize:function(){var e=b();t.fullCalendar("changeView",e.view),t.fullCalendar("option","height",e.height)}};r.extend(!0,i,c.fullCalendar),t=r('
'),e.append(t),t.fullCalendar(i),e.addClass("show"),a.doCallback("fullCalendarInitialized",c)},b=function(){var t="agendaWeek",n=420,i=e.width();return 480>i?(t="basicDay",n=335,e.addClass("is-small")):e.removeClass("is-small"),c.bookingFields.comment.enabled&&(n+=84),c.bookingFields.phone.enabled&&(n+=48),c.bookingFields.voip.enabled&&(n+=48),c.bookingFields.location.enabled&&(n+=48),{height:n,view:t}},y=function(e){t.fullCalendar("addEventSource",{events:e}),t.removeClass("empty-calendar")},w=function(){var t=n(39),i=r(t.render({image:c.avatar}));e.addClass("has-avatar"),e.append(i)},k=function(){var t=n(40),i=r(t.render({name:c.name}));e.addClass("has-displayname"),e.append(i)},x=function(t){a.doCallback("showBookingPage",c,t);var s=n(36),l=n(37),u=c.localization.bookingDateFormat||o.localeData().longDateFormat("LL"),d=c.localization.bookingTimeFormat||o.localeData().longDateFormat("LT");i=r(l.render({chosenDate:o(t.start).format(u),chosenTime:o(t.start).format(d)+" - "+o(t.end).format(d),start:o(t.start).format(),end:o(t.end).format(),closeIcon:n(46),checkmarkIcon:n(45),loadingIcon:n(48),errorIcon:n(47),submitText:"Book it",successMessageTitle:"Thanks!",successMessagePart1:"An invitation has been sent to:",successMessagePart2:"Accept the invitation to confirm the booking.",fields:c.bookingFields},{formFields:s})),i.children(".bookingjs-bookpage-close").click(function(e){e.preventDefault(),S()});var f=i.children(".bookingjs-form");f.submit(function(e){D(this,e)}),c.showCredits&&_(i),r(document).on("keyup",function(e){27===e.keyCode&&S()}),e.append(i),setTimeout(function(){i.addClass("show")},100)},S=function(){a.doCallback("closeBookingPage",c),i.removeClass("show"),setTimeout(function(){i.remove()},200),r(document).off("keyup")},D=function(e,t){t.preventDefault();var n=r(e);if(n.hasClass("loading")||n.hasClass("success")||n.hasClass("error")||!t.target.checkValidity()){var i=n.find(".bookingjs-form-button");return i.addClass("button-shake"),void setTimeout(function(){i.removeClass("button-shake")},500)}var o={};r.each(n.serializeArray(),function(e,t){o[t.name]=t.value}),n.addClass("loading"),a.doCallback("submitBookingForm",c,o),T(o).then(function(e){a.doCallback("createEventSuccessful",c,e),n.find(".booked-email").html(o.email),n.removeClass("loading").addClass("success")})["catch"](function(e){a.doCallback("createEventFailed",c,e);var t=n.find(".bookingjs-form-button");throw t.addClass("button-shake"),setTimeout(function(){t.removeClass("button-shake")},500),n.removeClass("loading").addClass("error"),setTimeout(function(){n.removeClass("error")},2e3),new Error("TimekitBooking - An error with Timekit createEvent occured, context: "+e)})},T=function(e){var t={start:e.start,end:e.end,what:c.name+" x "+e.name,where:"TBD",description:"",calendar_id:c.calendar,participants:[c.email,e.email]};return c.bookingFields.location.enabled&&(t.where=e.location),c.bookingFields.phone.enabled&&(t.description+=c.bookingFields.phone.placeholder+": "+e.phone+"\n"),c.bookingFields.voip.enabled&&(t.description+=c.bookingFields.voip.placeholder+": "+e.voip+"\n"),c.bookingFields.comment.enabled&&(t.description+=c.bookingFields.comment.placeholder+": "+e.comment+"\n"),r.extend(!0,t,c.timekitCreateEvent),a.doCallback("createEventStarted",c,t),s.createEvent(t)},_=function(e){var t=n(38),i=n(49),o=r(t.render({timekitIcon:i}));e.append(o)},C=function(e){if(void 0===e||"object"!=typeof e||r.isEmptyObject(e)){if(void 0===window.timekitBookingConfig)throw new Error("TimekitBooking - No configuration was supplied or found. Please supply a config object upon library initialization");e=window.timekitBookingConfig}var t=r.extend(!0,{},l.primary,e),n={};"24h-dmy-mon"===t.localization.timeDateFormat&&(n=l.presets.timeDateFormat24hdmymon),"12h-mdy-sun"===t.localization.timeDateFormat&&(n=l.presets.timeDateFormat12hmdysun);var i=r.extend(!0,{},n,t);if(!i.email||!i.apiToken||!i.calendar)throw new Error('TimekitBooking - A required config setting was missing ("email", "apiToken" or "calendar")');return c=i},E=function(){return c},M=function(){return d(),f(),v(),h(),c.localization.showTimezoneHelper&&g(),c.avatar&&w(),c.name&&k(),a.doCallback("renderCompleted",c),this},L=function(e){return C(e),c.includeStyles&&u(),M()},R=function(){return d(),c={},this},H=function(){return void 0===t.fullCalendar?void 0:t.fullCalendar.apply(t,arguments)};return{setConfig:C,getConfig:E,render:M,init:L,destroy:R,fullCalendar:H}}/*!
* Booking.js
* Version: 1.5.1
* http://booking.timekit.io
*
* Copyright 2015 Timekit, Inc.
* Timekit Booking.js is freely distributable under the MIT license.
*
*/
var r=n(13);window.fullcalendar=n(31);var o=window.moment=n(5),s=n(51),a=n(54),l=n(53);window&&window.timekitBookingConfig&&window.timekitBookingConfig.autoload!==!1?r(window).load(function(){var t=new i;t.init(window.timekitBookingConfig),e.exports=t}):e.exports=i},function(e,t){"use strict";function n(e){return"[object Array]"===g.call(e)}function i(e){return"[object ArrayBuffer]"===g.call(e)}function r(e){return"[object FormData]"===g.call(e)}function o(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"==typeof e}function a(e){return"number"==typeof e}function l(e){return"undefined"==typeof e}function c(e){return null!==e&&"object"==typeof e}function u(e){return"[object Date]"===g.call(e)}function d(e){return"[object File]"===g.call(e)}function f(e){return"[object Blob]"===g.call(e)}function h(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function p(e,t){if(null!==e&&"undefined"!=typeof e){var i=n(e)||"object"==typeof e&&!isNaN(e.length);if("object"==typeof e||i||(e=[e]),i)for(var r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else for(var s in e)e.hasOwnProperty(s)&&t.call(null,e[s],s,e)}}function m(){var e={};return p(arguments,function(t){p(t,function(t,n){e[n]=t})}),e}var g=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:i,isFormData:r,isArrayBufferView:o,isString:s,isNumber:a,isObject:c,isUndefined:l,isDate:u,isFile:d,isBlob:f,forEach:p,merge:m,trim:h}},function(e,t,n){var i=n(32);i.Template=n(33).Template,i.template=i.Template,e.exports=i},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t
=0&&y.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function c(e,t){var n,i,r;if(t.singleton){var o=b++;n=v||(v=a(t)),i=u.bind(null,n,o,!1),r=u.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),i=f.bind(null,n),r=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),i=d.bind(null,n),r=function(){s(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function u(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function d(e,t){var n=t.css,i=t.media;t.sourceMap;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,i=(t.media,t.sourceMap);i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(r),o&&URL.revokeObjectURL(o)}var h={},p=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=p(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,b=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return i(n,t),function(e){for(var o=[],s=0;s0)for(n in On)i=On[n],r=t[i],"undefined"!=typeof r&&(e[i]=r);return e}function m(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),Pn===!1&&(Pn=!0,t.updateOffset(this),Pn=!1)}function g(e){return e instanceof m||null!=e&&null!=e._isAMomentObject}function v(e){return 0>e?Math.ceil(e):Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function y(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;r>i;i++)(n&&e[i]!==t[i]||!n&&b(e[i])!==b(t[i]))&&s++;return s+o}function w(){}function k(e){return e?e.toLowerCase().replace("_","-"):e}function x(e){for(var t,n,i,r,o=0;o0;){if(i=S(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&y(r,n,!0)>=t-1)break;t--}o++}return null}function S(t){var i=null;if(!Gn[t]&&"undefined"!=typeof e&&e&&e.exports)try{i=An._abbr,n(35)("./"+t),D(i)}catch(r){}return Gn[t]}function D(e,t){var n;return e&&(n="undefined"==typeof t?_(e):T(e,t),n&&(An=n)),An._abbr}function T(e,t){return null!==t?(t.abbr=e,Gn[e]=Gn[e]||new w,Gn[e].set(t),D(e),Gn[e]):(delete Gn[e],null)}function _(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return An;if(!r(e)){if(t=S(e))return t;e=[e]}return x(e)}function C(e,t){var n=e.toLowerCase();In[n]=In[n+"s"]=In[t]=e}function E(e){return"string"==typeof e?In[e]||In[e.toLowerCase()]:void 0}function M(e){var t,n,i={};for(n in e)a(e,n)&&(t=E(n),t&&(i[t]=e[n]));return i}function L(e,n){return function(i){return null!=i?(H(this,e,i),t.updateOffset(this,n),this):R(this,e)}}function R(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function H(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function z(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=E(e),"function"==typeof this[e])return this[e](t);return this}function j(e,t,n){var i=""+Math.abs(e),r=t-i.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Wn[e]=r),t&&(Wn[t[0]]=function(){return j(r.apply(this,arguments),t[1],t[2])}),n&&(Wn[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function A(e){var t,n,i=e.match(Bn);for(t=0,n=i.length;n>t;t++)Wn[i[t]]?i[t]=Wn[i[t]]:i[t]=Y(i[t]);return function(r){var o="";for(t=0;n>t;t++)o+=i[t]instanceof Function?i[t].call(r,e):i[t];return o}}function O(e,t){return e.isValid()?(t=P(t,e.localeData()),Nn[t]=Nn[t]||A(t),Nn[t](e)):e.localeData().invalidDate()}function P(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Un.lastIndex=0;i>=0&&Un.test(e);)e=e.replace(Un,n),Un.lastIndex=0,i-=1;return e}function G(e){return"function"==typeof e&&"[object Function]"===Object.prototype.toString.call(e)}function I(e,t,n){si[e]=G(t)?t:function(e){return e&&n?n:t}}function B(e,t){return a(si,e)?si[e](t._strict,t._locale):new RegExp(U(e))}function U(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function N(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=b(e)}),n=0;ni;i++){if(r=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function J(e,t){var n;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),q(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function K(e){return null!=e?(J(this,e),t.updateOffset(this,!0),this):R(this,"Month")}function Q(){return q(this.year(),this.month())}function ee(e){var t,n=e._a;return n&&-2===d(e).overflow&&(t=n[ci]<0||n[ci]>11?ci:n[ui]<1||n[ui]>q(n[li],n[ci])?ui:n[di]<0||n[di]>24||24===n[di]&&(0!==n[fi]||0!==n[hi]||0!==n[pi])?di:n[fi]<0||n[fi]>59?fi:n[hi]<0||n[hi]>59?hi:n[pi]<0||n[pi]>999?pi:-1,d(e)._overflowDayOfYear&&(li>t||t>ui)&&(t=ui),d(e).overflow=t),e}function te(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function ne(e,t){var n=!0;return l(function(){return n&&(te(e+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function ie(e,t){vi[e]||(te(t),vi[e]=!0)}function re(e){var t,n,i=e._i,r=bi.exec(i);if(r){for(d(e).iso=!0,t=0,n=yi.length;n>t;t++)if(yi[t][1].exec(i)){e._f=yi[t][0];break}for(t=0,n=wi.length;n>t;t++)if(wi[t][1].exec(i)){e._f+=(r[6]||" ")+wi[t][0];break}i.match(ii)&&(e._f+="Z"),Se(e)}else e._isValid=!1}function oe(e){var n=ki.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(re(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function se(e,t,n,i,r,o,s){var a=new Date(e,t,n,i,r,o,s);return 1970>e&&a.setFullYear(e),a}function ae(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function le(e){return ce(e)?366:365}function ce(e){return e%4===0&&e%100!==0||e%400===0}function ue(){return ce(this.year())}function de(e,t,n){var i,r=n-t,o=n-e.day();return o>r&&(o-=7),r-7>o&&(o+=7),i=Re(e).add(o,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function fe(e){return de(e,this._week.dow,this._week.doy).week}function he(){return this._week.dow}function pe(){return this._week.doy}function me(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function ge(e){var t=de(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function ve(e,t,n,i,r){var o,s=6+r-i,a=ae(e,0,1+s),l=a.getUTCDay();return r>l&&(l+=7),n=null!=n?1*n:r,o=1+s+7*(t-1)-l+n,{year:o>0?e:e-1,dayOfYear:o>0?o:le(e-1)+o}}function be(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function ye(e,t,n){return null!=e?e:null!=t?t:n}function we(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ke(e){var t,n,i,r,o=[];if(!e._d){for(i=we(e),e._w&&null==e._a[ui]&&null==e._a[ci]&&xe(e),e._dayOfYear&&(r=ye(e._a[li],i[li]),e._dayOfYear>le(r)&&(d(e)._overflowDayOfYear=!0),n=ae(r,0,e._dayOfYear),e._a[ci]=n.getUTCMonth(),e._a[ui]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;7>t;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[di]&&0===e._a[fi]&&0===e._a[hi]&&0===e._a[pi]&&(e._nextDay=!0,e._a[di]=0),e._d=(e._useUTC?ae:se).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[di]=24)}}function xe(e){var t,n,i,r,o,s,a;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,s=4,n=ye(t.GG,e._a[li],de(Re(),1,4).year),i=ye(t.W,1),r=ye(t.E,1)):(o=e._locale._week.dow,s=e._locale._week.doy,n=ye(t.gg,e._a[li],de(Re(),o,s).year),i=ye(t.w,1),null!=t.d?(r=t.d,o>r&&++i):r=null!=t.e?t.e+o:o),a=ve(n,i,r,s,o),e._a[li]=a.year,e._dayOfYear=a.dayOfYear}function Se(e){if(e._f===t.ISO_8601)return void re(e);e._a=[],d(e).empty=!0;var n,i,r,o,s,a=""+e._i,l=a.length,c=0;for(r=P(e._f,e._locale).match(Bn)||[],n=0;n0&&d(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),c+=i.length),Wn[o]?(i?d(e).empty=!1:d(e).unusedTokens.push(o),V(o,i,e)):e._strict&&!i&&d(e).unusedTokens.push(o);d(e).charsLeftOver=l-c,a.length>0&&d(e).unusedInput.push(a),d(e).bigHour===!0&&e._a[di]<=12&&e._a[di]>0&&(d(e).bigHour=void 0),e._a[di]=De(e._locale,e._a[di],e._meridiem),ke(e),ee(e)}function De(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&12>t&&(t+=12),i||12!==t||(t=0),t):t}function Te(e){var t,n,i,r,o;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;ro)&&(i=o,n=t));l(e,n||t)}function _e(e){if(!e._d){var t=M(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],ke(e)}}function Ce(e){var t=new m(ee(Ee(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ee(e){var t=e._i,n=e._f;return e._locale=e._locale||_(e._l),null===t||void 0===n&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new m(ee(t)):(r(n)?Te(e):n?Se(e):o(t)?e._d=t:Me(e),e))}function Me(e){var n=e._i;void 0===n?e._d=new Date:o(n)?e._d=new Date(+n):"string"==typeof n?oe(e):r(n)?(e._a=s(n.slice(0),function(e){return parseInt(e,10)}),ke(e)):"object"==typeof n?_e(e):"number"==typeof n?e._d=new Date(n):t.createFromInputFallback(e)}function Le(e,t,n,i,r){var o={};return"boolean"==typeof n&&(i=n,n=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=e,o._f=t,o._strict=i,Ce(o)}function Re(e,t,n,i){return Le(e,t,n,i,!1)}function He(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Re();for(n=t[0],i=1;ie&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)})}function Oe(e){var t=(e||"").match(ii)||[],n=t[t.length-1]||[],i=(n+"").match(_i)||["-",0,0],r=+(60*i[1])+b(i[2]);return"+"===i[0]?r:-r}function Pe(e,n){var i,r;return n._isUTC?(i=n.clone(),r=(g(e)||o(e)?+e:+Re(e))-+i,i._d.setTime(+i._d+r),t.updateOffset(i,!1),i):Re(e).local()}function Ge(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ie(e,n){var i,r=this._offset||0;return null!=e?("string"==typeof e&&(e=Oe(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&n&&(i=Ge(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?it(this,Ke(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:Ge(this)}function Be(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ue(e){return this.utcOffset(0,e)}function Ne(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ge(this),"m")),this}function We(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Oe(this._i)),this}function Ve(e){return e=e?Re(e).utcOffset():0,(this.utcOffset()-e)%60===0}function qe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ze(){if("undefined"!=typeof this._isDSTShifted)return this._isDSTShifted;var e={};if(p(e,this),e=Ee(e),e._a){var t=e._isUTC?c(e._a):Re(e._a);this._isDSTShifted=this.isValid()&&y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Xe(){return!this._isUTC}function $e(){return this._isUTC}function Je(){return this._isUTC&&0===this._offset}function Ke(e,t){var n,i,r,o=e,s=null;return Ye(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(s=Ci.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:b(s[ui])*n,h:b(s[di])*n,m:b(s[fi])*n,s:b(s[hi])*n,ms:b(s[pi])*n}):(s=Ei.exec(e))?(n="-"===s[1]?-1:1,o={y:Qe(s[2],n),M:Qe(s[3],n),d:Qe(s[4],n),h:Qe(s[5],n),m:Qe(s[6],n),s:Qe(s[7],n),w:Qe(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=tt(Re(o.from),Re(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new Fe(o),Ye(e)&&a(e,"_locale")&&(i._locale=e._locale),i}function Qe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function et(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function tt(e,t){var n;return t=Pe(t,e),e.isBefore(t)?n=et(e,t):(n=et(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function nt(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(ie(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Ke(n,i),it(this,r,e),this}}function it(e,n,i,r){var o=n._milliseconds,s=n._days,a=n._months;r=null==r?!0:r,o&&e._d.setTime(+e._d+o*i),s&&H(e,"Date",R(e,"Date")+s*i),a&&J(e,R(e,"Month")+a*i),r&&t.updateOffset(e,s||a)}function rt(e,t){var n=e||Re(),i=Pe(n,this).startOf("day"),r=this.diff(i,"days",!0),o=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(t&&t[o]||this.localeData().calendar(o,this,Re(n)))}function ot(){return new m(this)}function st(e,t){var n;return t=E("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=g(e)?e:Re(e),+this>+e):(n=g(e)?+e:+Re(e),n<+this.clone().startOf(t))}function at(e,t){var n;return t=E("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=g(e)?e:Re(e),+e>+this):(n=g(e)?+e:+Re(e),+this.clone().endOf(t)t-o?(n=e.clone().add(r-1,"months"),i=(t-o)/(o-n)):(n=e.clone().add(r+1,"months"),i=(t-o)/(n-o)),-(r+i)}function ft(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ht(){var e=this.clone().utc();return 0t;t++)if(this._weekdaysParse[t]||(n=Re([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t}function Ut(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ot(e,this.localeData()),this.add(e-t,"d")):t}function Nt(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)}function Vt(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function qt(e,t){return t._meridiemParse}function Zt(e){return"p"===(e+"").toLowerCase().charAt(0)}function Xt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $t(e,t){t[pi]=b(1e3*("0."+e))}function Jt(){return this._isUTC?"UTC":""}function Kt(){return this._isUTC?"Coordinated Universal Time":""}function Qt(e){return Re(1e3*e)}function en(){return Re.apply(null,arguments).parseZone()}function tn(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.call(t,n):i}function nn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function rn(){return this._invalidDate}function on(e){return this._ordinal.replace("%d",e)}function sn(e){return e}function an(e,t,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(e,t,n,i):r.replace(/%d/i,e)}function ln(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)}function cn(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function un(e,t,n,i){var r=_(),o=c().set(i,t);return r[n](o,e)}function dn(e,t,n,i,r){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return un(e,t,n,r);var o,s=[];for(o=0;i>o;o++)s[o]=un(e,o,n,r);return s}function fn(e,t){return dn(e,t,"months",12,"month")}function hn(e,t){return dn(e,t,"monthsShort",12,"month")}function pn(e,t){return dn(e,t,"weekdays",7,"day")}function mn(e,t){return dn(e,t,"weekdaysShort",7,"day")}function gn(e,t){return dn(e,t,"weekdaysMin",7,"day")}function vn(){var e=this._data;return this._milliseconds=Ji(this._milliseconds),this._days=Ji(this._days),this._months=Ji(this._months),e.milliseconds=Ji(e.milliseconds),e.seconds=Ji(e.seconds),e.minutes=Ji(e.minutes),e.hours=Ji(e.hours),e.months=Ji(e.months),e.years=Ji(e.years),this}function bn(e,t,n,i){var r=Ke(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function yn(e,t){return bn(this,e,t,1)}function wn(e,t){return bn(this,e,t,-1)}function kn(e){return 0>e?Math.floor(e):Math.ceil(e)}function xn(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||0>=o&&0>=s&&0>=a||(o+=864e5*kn(Dn(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=v(o/1e3),l.seconds=e%60,t=v(e/60),l.minutes=t%60,n=v(t/60),l.hours=n%24,s+=v(n/24),r=v(Sn(s)),a+=r,s-=kn(Dn(r)),i=v(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function Sn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Tn(e){var t,n,i=this._milliseconds;if(e=E(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+Sn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function _n(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12)}function Cn(e){return function(){return this.as(e)}}function En(e){return e=E(e),this[e+"s"]()}function Mn(e){return function(){return this._data[e]}}function Ln(){return v(this.days()/7)}function Rn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function Hn(e,t,n){var i=Ke(e).abs(),r=hr(i.as("s")),o=hr(i.as("m")),s=hr(i.as("h")),a=hr(i.as("d")),l=hr(i.as("M")),c=hr(i.as("y")),u=r0,u[4]=n,Rn.apply(null,u)}function zn(e,t){return void 0===pr[e]?!1:void 0===t?pr[e]:(pr[e]=t,!0)}function jn(e){var t=this.localeData(),n=Hn(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Fn(){var e,t,n,i=mr(this._milliseconds)/1e3,r=mr(this._days),o=mr(this._months);e=v(i/60),t=v(e/60),i%=60,e%=60,n=v(o/12),o%=12;var s=n,a=o,l=r,c=t,u=e,d=i,f=this.asSeconds();return f?(0>f?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(c||u||d?"T":"")+(c?c+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var Yn,An,On=t.momentProperties=[],Pn=!1,Gn={},In={},Bn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Un=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Nn={},Wn={},Vn=/\d/,qn=/\d\d/,Zn=/\d{3}/,Xn=/\d{4}/,$n=/[+-]?\d{6}/,Jn=/\d\d?/,Kn=/\d{1,3}/,Qn=/\d{1,4}/,ei=/[+-]?\d{1,6}/,ti=/\d+/,ni=/[+-]?\d+/,ii=/Z|[+-]\d\d:?\d\d/gi,ri=/[+-]?\d+(\.\d{1,3})?/,oi=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,si={},ai={},li=0,ci=1,ui=2,di=3,fi=4,hi=5,pi=6;F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),C("month","M"),I("M",Jn),I("MM",Jn,qn),I("MMM",oi),I("MMMM",oi),N(["M","MM"],function(e,t){t[ci]=b(e)-1}),N(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[ci]=r:d(n).invalidMonth=e});var mi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),vi={};t.suppressDeprecationWarnings=!1;var bi=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],wi=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ki=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=ne("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),C("year","y"),I("Y",ni),I("YY",Jn,qn),I("YYYY",Qn,Xn),I("YYYYY",ei,$n),I("YYYYYY",ei,$n),N(["YYYYY","YYYYYY"],li),N("YYYY",function(e,n){n[li]=2===e.length?t.parseTwoDigitYear(e):b(e)}),N("YY",function(e,n){n[li]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var xi=L("FullYear",!1);F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),I("w",Jn),I("ww",Jn,qn),I("W",Jn),I("WW",Jn,qn),W(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=b(e)});var Si={dow:0,doy:6};F("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),I("DDD",Kn),I("DDDD",Zn),N(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),t.ISO_8601=function(){};var Di=ne("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Re.apply(null,arguments);return this>e?this:e}),Ti=ne("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Re.apply(null,arguments);return e>this?this:e});Ae("Z",":"),Ae("ZZ",""),I("Z",ii),I("ZZ",ii),N(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Oe(e)});var _i=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Ci=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ei=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ke.fn=Fe.prototype;var Mi=nt(1,"add"),Li=nt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Ri=ne("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rt("gggg","weekYear"),Rt("ggggg","weekYear"),Rt("GGGG","isoWeekYear"),Rt("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),I("G",ni),I("g",ni),I("GG",Jn,qn),I("gg",Jn,qn),I("GGGG",Qn,Xn),I("gggg",Qn,Xn),I("GGGGG",ei,$n),I("ggggg",ei,$n),W(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=b(e)}),W(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),F("Q",0,0,"quarter"),C("quarter","Q"),I("Q",Vn),N("Q",function(e,t){t[ci]=3*(b(e)-1)}),F("D",["DD",2],"Do","date"),C("date","D"),I("D",Jn),I("DD",Jn,qn),I("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),N(["D","DD"],ui),N("Do",function(e,t){t[ui]=b(e.match(Jn)[0],10)});var Hi=L("Date",!0);F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),I("d",Jn),I("e",Jn),I("E",Jn),I("dd",oi),I("ddd",oi),I("dddd",oi),W(["dd","ddd","dddd"],function(e,t,n){var i=n._locale.weekdaysParse(e);null!=i?t.d=i:d(n).invalidWeekday=e}),W(["d","e","E"],function(e,t,n,i){t[i]=b(e)});var zi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ji="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fi="Su_Mo_Tu_We_Th_Fr_Sa".split("_");F("H",["HH",2],0,"hour"),F("h",["hh",2],0,function(){return this.hours()%12||12}),Vt("a",!0),Vt("A",!1),C("hour","h"),I("a",qt),I("A",qt),I("H",Jn),I("h",Jn),I("HH",Jn,qn),I("hh",Jn,qn),N(["H","HH"],di),N(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),N(["h","hh"],function(e,t,n){t[di]=b(e),d(n).bigHour=!0});var Yi=/[ap]\.?m?\.?/i,Ai=L("Hours",!0);F("m",["mm",2],0,"minute"),C("minute","m"),I("m",Jn),I("mm",Jn,qn),N(["m","mm"],fi);var Oi=L("Minutes",!1);F("s",["ss",2],0,"second"),C("second","s"),I("s",Jn),I("ss",Jn,qn),N(["s","ss"],hi);var Pi=L("Seconds",!1);F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),I("S",Kn,Vn),I("SS",Kn,qn),I("SSS",Kn,Zn);var Gi;for(Gi="SSSS";Gi.length<=9;Gi+="S")I(Gi,ti);for(Gi="S";Gi.length<=9;Gi+="S")N(Gi,$t);var Ii=L("Milliseconds",!1);F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Bi=m.prototype;Bi.add=Mi,Bi.calendar=rt,Bi.clone=ot,Bi.diff=ut,Bi.endOf=xt,Bi.format=pt,Bi.from=mt,Bi.fromNow=gt,Bi.to=vt,Bi.toNow=bt,Bi.get=z,Bi.invalidAt=Lt,Bi.isAfter=st,Bi.isBefore=at,Bi.isBetween=lt,Bi.isSame=ct,Bi.isValid=Et,Bi.lang=Ri,Bi.locale=yt,Bi.localeData=wt,Bi.max=Ti,Bi.min=Di,Bi.parsingFlags=Mt,Bi.set=z,Bi.startOf=kt,Bi.subtract=Li,Bi.toArray=_t,Bi.toObject=Ct,Bi.toDate=Tt,Bi.toISOString=ht,Bi.toJSON=ht,Bi.toString=ft,Bi.unix=Dt,Bi.valueOf=St,Bi.year=xi,Bi.isLeapYear=ue,Bi.weekYear=zt,Bi.isoWeekYear=jt,Bi.quarter=Bi.quarters=At,Bi.month=K,Bi.daysInMonth=Q,Bi.week=Bi.weeks=me,Bi.isoWeek=Bi.isoWeeks=ge,Bi.weeksInYear=Yt,Bi.isoWeeksInYear=Ft,Bi.date=Hi,Bi.day=Bi.days=Ut,Bi.weekday=Nt,Bi.isoWeekday=Wt,Bi.dayOfYear=be,Bi.hour=Bi.hours=Ai,Bi.minute=Bi.minutes=Oi,Bi.second=Bi.seconds=Pi,Bi.millisecond=Bi.milliseconds=Ii,Bi.utcOffset=Ie,Bi.utc=Ue,Bi.local=Ne,Bi.parseZone=We,Bi.hasAlignedHourOffset=Ve,Bi.isDST=qe,
Bi.isDSTShifted=Ze,Bi.isLocal=Xe,Bi.isUtcOffset=$e,Bi.isUtc=Je,Bi.isUTC=Je,Bi.zoneAbbr=Jt,Bi.zoneName=Kt,Bi.dates=ne("dates accessor is deprecated. Use date instead.",Hi),Bi.months=ne("months accessor is deprecated. Use month instead",K),Bi.years=ne("years accessor is deprecated. Use year instead",xi),Bi.zone=ne("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Be);var Ui=Bi,Ni={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Wi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Vi="Invalid date",qi="%d",Zi=/\d{1,2}/,Xi={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},$i=w.prototype;$i._calendar=Ni,$i.calendar=tn,$i._longDateFormat=Wi,$i.longDateFormat=nn,$i._invalidDate=Vi,$i.invalidDate=rn,$i._ordinal=qi,$i.ordinal=on,$i._ordinalParse=Zi,$i.preparse=sn,$i.postformat=sn,$i._relativeTime=Xi,$i.relativeTime=an,$i.pastFuture=ln,$i.set=cn,$i.months=Z,$i._months=mi,$i.monthsShort=X,$i._monthsShort=gi,$i.monthsParse=$,$i.week=fe,$i._week=Si,$i.firstDayOfYear=pe,$i.firstDayOfWeek=he,$i.weekdays=Pt,$i._weekdays=zi,$i.weekdaysMin=It,$i._weekdaysMin=Fi,$i.weekdaysShort=Gt,$i._weekdaysShort=ji,$i.weekdaysParse=Bt,$i.isPM=Zt,$i._meridiemParse=Yi,$i.meridiem=Xt,D("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=ne("moment.lang is deprecated. Use moment.locale instead.",D),t.langData=ne("moment.langData is deprecated. Use moment.localeData instead.",_);var Ji=Math.abs,Ki=Cn("ms"),Qi=Cn("s"),er=Cn("m"),tr=Cn("h"),nr=Cn("d"),ir=Cn("w"),rr=Cn("M"),or=Cn("y"),sr=Mn("milliseconds"),ar=Mn("seconds"),lr=Mn("minutes"),cr=Mn("hours"),ur=Mn("days"),dr=Mn("months"),fr=Mn("years"),hr=Math.round,pr={s:45,m:45,h:22,d:26,M:11},mr=Math.abs,gr=Fe.prototype;gr.abs=vn,gr.add=yn,gr.subtract=wn,gr.as=Tn,gr.asMilliseconds=Ki,gr.asSeconds=Qi,gr.asMinutes=er,gr.asHours=tr,gr.asDays=nr,gr.asWeeks=ir,gr.asMonths=rr,gr.asYears=or,gr.valueOf=_n,gr._bubble=xn,gr.get=En,gr.milliseconds=sr,gr.seconds=ar,gr.minutes=lr,gr.hours=cr,gr.days=ur,gr.weeks=Ln,gr.months=dr,gr.years=fr,gr.humanize=jn,gr.toISOString=Fn,gr.toString=Fn,gr.toJSON=Fn,gr.locale=yt,gr.localeData=wt,gr.toIsoString=ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fn),gr.lang=Ri,F("X",0,0,"unix"),F("x",0,0,"valueOf"),I("x",ni),I("X",ri),N("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),N("x",function(e,t,n){n._d=new Date(b(e))}),t.version="2.10.6",i(Re),t.fn=Ui,t.min=ze,t.max=je,t.utc=c,t.unix=Qt,t.months=fn,t.isDate=o,t.locale=D,t.invalid=h,t.duration=Ke,t.isMoment=g,t.weekdays=pn,t.parseZone=en,t.localeData=_,t.isDuration=Ye,t.monthsShort=hn,t.weekdaysMin=gn,t.defineLocale=T,t.weekdaysShort=mn,t.normalizeUnits=E,t.relativeTimeThreshold=zn;var vr=t;return vr})}).call(t,n(8)(e))},function(e,t){function n(){c=!1,s.length?l=s.concat(l):u=-1,l.length&&i()}function i(){if(!c){var e=setTimeout(n);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=c++,i=arguments.length<2?!1:a.call(arguments,1);return l[n]=!0,o(function(){l[n]&&(i?e.apply(null,i):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof i?i:function(e){delete l[e]}}).call(t,n(7).setImmediate,n(7).clearImmediate)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var i=n(10),r=n(1),o=n(18),s=n(19),a=n(21),l=n(23),c=n(24);e.exports=function(e,t,n){var u=l(n.data,n.headers,n.transformRequest),d=r.merge(i.headers.common,i.headers[n.method]||{},n.headers||{});r.isFormData(u)&&delete d["Content-Type"];var f=new(XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP");f.open(n.method.toUpperCase(),o(n.url,n.params),!0),f.onreadystatechange=function(){if(f&&4===f.readyState){var i=a(f.getAllResponseHeaders()),r=-1!==["text",""].indexOf(n.responseType||"")?f.responseText:f.response,o={data:l(r,i,n.transformResponse),status:f.status,statusText:f.statusText,headers:i,config:n};(f.status>=200&&f.status<300?e:t)(o),f=null}};var h=c(n.url)?s.read(n.xsrfCookieName||i.xsrfCookieName):void 0;if(h&&(d[n.xsrfHeaderName||i.xsrfHeaderName]=h),r.forEach(d,function(e,t){u||"content-type"!==t.toLowerCase()?f.setRequestHeader(t,e):delete d[t]}),n.withCredentials&&(f.withCredentials=!0),n.responseType)try{f.responseType=n.responseType}catch(p){if("json"!==f.responseType)throw p}r.isArrayBuffer(u)&&(u=new DataView(u)),f.send(u)}},function(e,t,n){"use strict";var i=n(1),r=/^\)\]\}',?\n/,o={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return i.isFormData(e)?e:i.isArrayBuffer(e)?e:i.isArrayBufferView(e)?e.buffer:!i.isObject(e)||i.isFile(e)||i.isBlob(e)?e:(!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8"),JSON.stringify(e))}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(r,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:i.merge(o),post:i.merge(o),put:i.merge(o)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(e,t,n){
//! moment.js locale configuration
//! locale : great britain english (en-gb)
//! author : Chris Gedrim : https://github.com/chrisgedrim
!function(e,t){t(n(5))}(this,function(e){"use strict";var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},function(e,t,n){var i=n(2);e.exports=function(){var e=new i.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b(''),i.b("\n"),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("timezoneIcon",e,t,0))),i.b("\n"),i.b("\n"+n),i.s(i.f("loading",e,t,1),e,t,0,79,110,"{{ }}")&&(i.rs(e,t,function(e,t,i){i.b(" Loading... "),i.b("\n"+n)}),e.pop()),i.b("\n"+n),i.s(i.f("loading",e,t,1),e,t,1,0,0,"")||(i.s(i.f("timezoneDifference",e,t,1),e,t,0,172,318,"{{ }}")&&(i.rs(e,t,function(e,t,i){i.b(" Your timezone is "),i.b(i.v(i.f("timezoneOffset",e,t,0))),i.b(" hours "),i.b(i.v(i.f("timezoneDirection",e,t,0))),i.b(" of "),i.b(i.v(i.f("hostName",e,t,0))),i.b(" (calendar shown in your local time) "),i.b("\n"+n)}),e.pop()),i.b("\n"+n),i.s(i.f("timezoneDifference",e,t,1),e,t,1,0,0,"")||(i.b(" You are in the same timezone as "),i.b(i.v(i.f("hostName",e,t,0))),i.b(" "),i.b("\n"+n))),i.b("\n"+n),i.b("
"),i.b("\n"),i.fl()},partials:{},subs:{}},'\n\n {{& timezoneIcon }}\n\n {{# loading }}\n Loading... \n {{/ loading }}\n\n {{^ loading }}\n {{# timezoneDifference }}\n Your timezone is {{ timezoneOffset }} hours {{ timezoneDirection }} of {{ hostName }} (calendar shown in your local time) \n {{/ timezoneDifference }}\n\n {{^ timezoneDifference }}\n You are in the same timezone as {{ hostName }} \n {{/ timezoneDifference }}\n {{/ loading }}\n\n
\n',i);return e}()},function(t,n){t.exports=e},function(e,t,n){e.exports=n(15)},function(e,t,n){"use strict";var i=n(10),r=n(1),o=n(20),s=n(17),a=n(16);!function(){var e=n(30);e&&"function"==typeof e.polyfill&&e.polyfill()}();var l=e.exports=function c(e){e=r.merge({method:"get",headers:{},transformRequest:i.transformRequest,transformResponse:i.transformResponse},e),e.withCredentials=e.withCredentials||i.withCredentials;var t=[s,void 0],n=Promise.resolve(e);for(c.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),c.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n.success=function(e){return o("success","then","https://github.com/mzabriskie/axios/blob/master/README.md#response-api"),n.then(function(t){e(t.data,t.status,t.headers,t.config)}),n},n.error=function(e){return o("error","catch","https://github.com/mzabriskie/axios/blob/master/README.md#response-api"),n.then(null,function(t){e(t.data,t.status,t.headers,t.config)}),n},n};l.defaults=i,l.all=function(e){return Promise.all(e)},l.spread=n(22),l.interceptors={request:new a,response:new a},function(){function e(){r.forEach(arguments,function(e){l[e]=function(t,n){return l(r.merge(n||{},{method:e,url:t}))}})}function t(){r.forEach(arguments,function(e){l[e]=function(t,n,i){return l(r.merge(i||{},{method:e,url:t,data:n}))}})}e("delete","get","head"),t("post","put","patch")}()},function(e,t,n){"use strict";function i(){this.handlers=[]}var r=n(1);i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){(function(t){"use strict";e.exports=function(e){return new Promise(function(i,r){try{"undefined"!=typeof window?n(9)(i,r,e):"undefined"!=typeof t&&n(9)(i,r,e)}catch(o){r(o)}})}}).call(t,n(6))},function(e,t,n){"use strict";function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}var r=n(1);e.exports=function(e,t){if(!t)return e;var n=[];return r.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(r.isArray(e)||(e=[e]),r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),n.push(i(t)+"="+i(e))}))}),n.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+n.join("&")),e}},function(e,t,n){"use strict";var i=n(1);e.exports={write:function(e,t,n,r,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}},function(e,t){"use strict";e.exports=function(e,t,n){try{console.warn("DEPRECATED method `"+e+"`."+(t?" Use `"+t+"` instead.":"")+" This method will be removed in a future release."),n&&console.warn("For more information about usage see "+n)}catch(i){}}},function(e,t,n){"use strict";var i=n(1);e.exports=function(e){var t,n,r,o={};return e?(i.forEach(e.split("\n"),function(e){r=e.indexOf(":"),t=i.trim(e.substr(0,r)).toLowerCase(),n=i.trim(e.substr(r+1)),t&&(o[t]=o[t]?o[t]+", "+n:n)}),o):o}},function(e,t){"use strict";e.exports=function(e){return function(t){e.apply(null,t)}}},function(e,t,n){"use strict";var i=n(1);e.exports=function(e,t,n){return i.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function i(e){var t=e;return s&&(a.setAttribute("href",t),t=a.href),a.setAttribute("href",t),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}var r,o=n(1),s=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");r=i(window.location.href),e.exports=function(e){var t=o.isString(e)?i(e):e;return t.protocol===r.protocol&&t.host===r.host}},function(e,t,n){var i;(function(e,r){!function(o){var s="object"==typeof t&&t,a=("object"==typeof e&&e&&e.exports==s&&e,"object"==typeof r&&r);(a.global===a||a.window===a)&&(o=a);var l=function(e){this.message=e};l.prototype=new Error,l.prototype.name="InvalidCharacterError";var c=function(e){throw new l(e)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=/[\t\n\f\r ]/g,f=function(e){e=String(e).replace(d,"");var t=e.length;t%4==0&&(e=e.replace(/==?$/,""),t=e.length),(t%4==1||/[^+a-zA-Z0-9\/]/.test(e))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var n,i,r=0,o="",s=-1;++s>(-2*r&6)));return o},h=function(e){e=String(e),/[^\0-\xFF]/.test(e)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,i,r,o=e.length%3,s="",a=-1,l=e.length-o;++a>18&63)+u.charAt(r>>12&63)+u.charAt(r>>6&63)+u.charAt(63&r);return 2==o?(t=e.charCodeAt(a)<<8,n=e.charCodeAt(++a),r=t+n,s+=u.charAt(r>>10)+u.charAt(r>>4&63)+u.charAt(r<<2&63)+"="):1==o&&(r=e.charCodeAt(a),s+=u.charAt(r>>2)+u.charAt(r<<4&63)+"=="),s},p={encode:h,decode:f,version:"0.1.0"};i=function(){return p}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))}(this)}).call(t,n(8)(e),function(){return this}())},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,'/*!\n * FullCalendar v2.4.0 Stylesheet\n * Docs & License: http://fullcalendar.io/\n * (c) 2015 Adam Shaw\n */.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}body .fc{font-size:1em}.fc-unthemed .fc-divider,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed .fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1}.fc-bgevent,.fc-highlight{opacity:.3;filter:alpha(opacity=30)}.fc-bgevent{background:#8fdf82}.fc-nonbusiness{background:#d7d7d7}.fc-icon{display:inline-block;width:1em;height:1em;line-height:1em;font-size:1em;text-align:center;overflow:hidden;font-family:Courier New,Courier,monospace;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fc-icon:after{position:relative;margin:0 -1em}.fc-icon-left-single-arrow:after{content:"\\2039";font-weight:700;font-size:200%;top:-7%;left:3%}.fc-icon-right-single-arrow:after{content:"\\203A";font-weight:700;font-size:200%;top:-7%;left:-3%}.fc-icon-left-double-arrow:after{content:"\\AB";font-size:160%;top:-7%}.fc-icon-right-double-arrow:after{content:"\\BB";font-size:160%;top:-7%}.fc-icon-left-triangle:after{content:"\\25C4";font-size:125%;top:3%;left:-2%}.fc-icon-right-triangle:after{content:"\\25BA";font-size:125%;top:3%;left:2%}.fc-icon-down-triangle:after{content:"\\25BC";font-size:125%;top:2%}.fc-icon-x:after{content:"\\D7";font-size:200%;top:6%}.fc button{box-sizing:border-box;margin:0;height:2.1em;padding:0 .6em;font-size:1em;white-space:nowrap;cursor:pointer}.fc button::-moz-focus-inner{margin:0;padding:0}.fc-state-default{border:1px solid}.fc-state-default.fc-corner-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.fc-state-default.fc-corner-right{border-top-right-radius:4px;border-bottom-right-radius:4px}.fc button .fc-icon{position:relative;top:-.05em;margin:0 .2em;vertical-align:middle}.fc-state-default{background-color:#f5f5f5;background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#333;text-shadow:0 1px 1px hsla(0,0%,100%,.75);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.2),0 1px 2px rgba(0,0,0,.05)}.fc-state-active,.fc-state-disabled,.fc-state-down,.fc-state-hover{color:#333;background-color:#e6e6e6}.fc-state-hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;transition:background-position .1s linear}.fc-state-active,.fc-state-down{background-color:#ccc;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.fc-state-disabled{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);box-shadow:none}.fc-button-group{display:inline-block}.fc .fc-button-group>*{float:left;margin:0 0 0 -1px}.fc .fc-button-group>:first-child{margin-left:0}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{padding:2px 4px}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-popover .fc-header .fc-close{cursor:pointer}.fc-ltr .fc-popover .fc-header .fc-title,.fc-rtl .fc-popover .fc-header .fc-close{float:left}.fc-ltr .fc-popover .fc-header .fc-close,.fc-rtl .fc-popover .fc-header .fc-title{float:right}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-popover .fc-header .fc-close{font-size:.9em;margin-top:2px}.fc-popover>.ui-widget-header+.ui-widget-content{border-top:0}.fc-divider{border-style:solid;border-width:1px}hr.fc-divider{height:0;margin:0;padding:0 0 2px;border-width:1px 0}.fc-clear{clear:both}.fc-bg,.fc-bgevent-skeleton,.fc-helper-skeleton,.fc-highlight-skeleton{position:absolute;top:0;left:0;right:0}.fc-bg{bottom:0}.fc-bg table{height:100%}.fc table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row{position:relative}.fc-row .fc-bg{z-index:1}.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-helper-skeleton{z-index:5}.fc-row .fc-content-skeleton td,.fc-row .fc-helper-skeleton td{background:none;border-color:transparent;border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-helper-skeleton tbody td{border-top:0}.fc-scroller{overflow-y:scroll;overflow-x:hidden}.fc-scroller>*{position:relative;width:100%;overflow:hidden}.fc-event{position:relative;display:block;font-size:.85em;line-height:1.3;border-radius:3px;border:1px solid #3a87ad;background-color:#3a87ad;font-weight:400}.fc-event,.fc-event:hover,.ui-widget .fc-event{color:#fff;text-decoration:none}.fc-event.fc-draggable,.fc-event[href]{cursor:pointer}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-event .fc-bg{z-index:1;background:#fff;opacity:.25;filter:alpha(opacity=25)}.fc-event .fc-content{position:relative;z-index:2}.fc-event .fc-resizer{position:absolute;z-index:3}.fc-ltr .fc-h-event.fc-not-start,.fc-rtl .fc-h-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-h-event.fc-not-end,.fc-rtl .fc-h-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-h-event .fc-resizer{top:-1px;bottom:-1px;left:-1px;right:-1px;width:5px}.fc-ltr .fc-h-event .fc-start-resizer,.fc-ltr .fc-h-event .fc-start-resizer:after,.fc-ltr .fc-h-event .fc-start-resizer:before,.fc-rtl .fc-h-event .fc-end-resizer,.fc-rtl .fc-h-event .fc-end-resizer:after,.fc-rtl .fc-h-event .fc-end-resizer:before{right:auto;cursor:w-resize}.fc-ltr .fc-h-event .fc-end-resizer,.fc-ltr .fc-h-event .fc-end-resizer:after,.fc-ltr .fc-h-event .fc-end-resizer:before,.fc-rtl .fc-h-event .fc-start-resizer,.fc-rtl .fc-h-event .fc-start-resizer:after,.fc-rtl .fc-h-event .fc-start-resizer:before{left:auto;cursor:e-resize}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}.fc-day-grid-event .fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-day-grid-event .fc-resizer{left:-3px;right:-3px;width:7px}a.fc-more{margin:1px 3px;font-size:.85em;cursor:pointer;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-day-grid .fc-row{z-index:1}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-toolbar{text-align:center;margin-bottom:1em}.fc-toolbar .fc-left{float:left}.fc-toolbar .fc-right{float:right}.fc-toolbar .fc-center{display:inline-block}.fc .fc-toolbar>*>*{float:left;margin-left:.75em}.fc .fc-toolbar>*>:first-child{margin-left:0}.fc-toolbar h2{margin:0}.fc-toolbar button{position:relative}.fc-toolbar .fc-state-hover,.fc-toolbar .ui-state-hover{z-index:2}.fc-toolbar .fc-state-down{z-index:3}.fc-toolbar .fc-state-active,.fc-toolbar .ui-state-active{z-index:4}.fc-toolbar button:focus{z-index:5}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}.fc-basicDay-view .fc-content-skeleton,.fc-basicWeek-view .fc-content-skeleton{padding-top:1px;padding-bottom:1em}.fc-basic-view .fc-body .fc-row{min-height:4em}.fc-row.fc-rigid{overflow:hidden}.fc-row.fc-rigid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-basic-view .fc-day-number,.fc-basic-view .fc-week-number{padding:0 2px}.fc-basic-view td.fc-day-number,.fc-basic-view td.fc-week-number span{padding-top:2px;padding-bottom:2px}.fc-basic-view .fc-week-number{text-align:center}.fc-basic-view .fc-week-number span{display:inline-block;min-width:1.25em}.fc-ltr .fc-basic-view .fc-day-number{text-align:right}.fc-rtl .fc-basic-view .fc-day-number{text-align:left}.fc-day-number.fc-other-month{opacity:.3;filter:alpha(opacity=30)}.fc-agenda-view .fc-day-grid{position:relative;z-index:2}.fc-agenda-view .fc-day-grid .fc-row{min-height:3em}.fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton{padding-top:1px;padding-bottom:1em}.fc .fc-axis{vertical-align:middle;padding:0 4px;white-space:nowrap}.fc-ltr .fc-axis{text-align:right}.fc-rtl .fc-axis{text-align:left}.ui-widget td.fc-axis{font-weight:400}.fc-time-grid,.fc-time-grid-container{position:relative;z-index:1}.fc-time-grid{min-height:100%}.fc-time-grid table{border:0 hidden transparent}.fc-time-grid>.fc-bg{z-index:1}.fc-time-grid .fc-slats,.fc-time-grid>hr{position:relative;z-index:2}.fc-time-grid .fc-bgevent-skeleton,.fc-time-grid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-time-grid .fc-bgevent-skeleton{z-index:3}.fc-time-grid .fc-highlight-skeleton{z-index:4}.fc-time-grid .fc-content-skeleton{z-index:5}.fc-time-grid .fc-helper-skeleton{z-index:6}.fc-time-grid .fc-slats td{height:1.5em;border-bottom:0}.fc-time-grid .fc-slats .fc-minor td{border-top-style:dotted}.fc-time-grid .fc-slats .ui-widget-content{background:none}.fc-time-grid .fc-highlight-container{position:relative}.fc-time-grid .fc-highlight{position:absolute;left:0;right:0}.fc-time-grid .fc-bgevent-container,.fc-time-grid .fc-event-container{position:relative}.fc-ltr .fc-time-grid .fc-event-container{margin:0 2.5% 0 2px}.fc-rtl .fc-time-grid .fc-event-container{margin:0 2px 0 2.5%}.fc-time-grid .fc-bgevent,.fc-time-grid .fc-event{position:absolute;z-index:1}.fc-time-grid .fc-bgevent{left:0;right:0}.fc-v-event.fc-not-start{border-top-width:0;padding-top:1px;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event.fc-not-end{border-bottom-width:0;padding-bottom:1px;border-bottom-left-radius:0;border-bottom-right-radius:0}.fc-time-grid-event{overflow:hidden}.fc-time-grid-event .fc-time,.fc-time-grid-event .fc-title{padding:0 1px}.fc-time-grid-event .fc-time{font-size:.85em;white-space:nowrap}.fc-time-grid-event.fc-short .fc-content{white-space:nowrap}.fc-time-grid-event.fc-short .fc-time,.fc-time-grid-event.fc-short .fc-title{display:inline-block;vertical-align:top}.fc-time-grid-event.fc-short .fc-time span{display:none}.fc-time-grid-event.fc-short .fc-time:before{content:attr(data-start)}.fc-time-grid-event.fc-short .fc-time:after{content:"\\A0-\\A0"}.fc-time-grid-event.fc-short .fc-title{font-size:.85em;padding:0}.fc-time-grid-event .fc-resizer{left:0;right:0;bottom:0;height:8px;overflow:hidden;line-height:8px;font-size:11px;font-family:monospace;text-align:center;cursor:s-resize}.fc-time-grid-event .fc-resizer:after{content:"="}',""])},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".fc-view-container{background-color:#fbfbfb;color:#333}.fc-row.fc-widget-header{border-bottom:1px solid #ececec}.fc-row.fc-widget-header .fc-day-header{text-transform:uppercase;font-size:.9em;font-weight:600}.fc-axis,.fc-row.fc-widget-header .fc-day-header:first-line{color:#b9b9b9}.fc-axis{font-size:.9em}.fc-state-default{text-shadow:none;box-shadow:none;background-image:none;background-color:#fff;border-color:#fff}.fc-button{text-transform:uppercase;font-weight:600;font-size:1.1em}.fc-content-skeleton{border-top:1px solid #ddd}.fc .fc-toolbar{padding:0;margin-bottom:0;border-bottom:1px solid #ececec}.fc .fc-toolbar>*>button{padding:15px 17px;height:auto;outline:0;margin-left:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;opacity:.3}.fc .fc-toolbar>*>button:hover{opacity:1}.fc .fc-toolbar>*>button.fc-state-disabled{-webkit-transition:opacity 0s;transition:opacity 0s;opacity:0}.fc .fc-toolbar>*>button.fc-prev-button{padding-right:8px}.fc .fc-toolbar>*>button.fc-next-button{padding-left:8px}.fc .fc-toolbar>*>button .fc-icon{font-size:1.1em}.fc .fc-toolbar>.fc-right>button.fc-today-button{padding:15px 5px}.fc-unthemed .fc-today{background:#fff}.fc-body>tr>.fc-widget-content,.fc-head>tr>.fc-widget-header{border:0!important}.fc th{border-color:#fff;padding:5px}.fc-unthemed .fc-divider,.fc-unthemed .fc-popover .fc-header{background-color:transparent}.empty-calendar .fc-event{opacity:0}.fc-event{-webkit-transition:all .2s,opacity .6s;transition:all .2s,opacity .6s;border:none;border-left:3px solid #689ad8;padding:3px;background-color:#fff;border-radius:4px;color:#333;margin:1px 0;box-shadow:0 1px 2px rgba(0,0,0,.07);cursor:pointer;margin-bottom:2px;opacity:1}.fc-event:hover{color:#fff;background-color:#689ad8;border-left:3px solid #689ad8;box-shadow:0 1px 3px rgba(0,0,0,.15)}.fc-event .fc-bg{opacity:0}.fc-day-grid-event{padding:15px;margin:5px}.fc-day-grid-event .fc-time{font-weight:600}.fc-time-grid .fc-slats .fc-minor td{border-top-style:none}.fc-time-grid .fc-slats td{border-top-color:#fbfbfb}.fc-time-grid .fc-slats td.fc-axis{border-top-color:#ececec}.fc-time-grid-event.fc-short .fc-content{font-size:.7em;line-height:.2em}.fc-time-grid-event.fc-short .fc-time:after{content:''}.fc-time-grid-event .fc-time{font-size:1.1em;padding:5px}.fc-unthemed .fc-divider,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ececec}.fc-agendaMonthly-view .fc-event{color:#fff}",""])},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600);",""]),t.push([e.id,"/*!\n * Booking.js\n * http://booking.timekit.io\n * (c) 2015 Timekit Inc.\n */.bookingjs{position:relative;font-family:Open Sans,Helvetica,Tahoma,Arial,sans-serif;font-size:13px;border-radius:4px;background-color:#fff;box-shadow:rgba(0,0,0,.2) 0 2px 4px 0;margin:60px auto 20px;z-index:10;opacity:0;color:#333}.bookingjs.show{-webkit-transition:opacity .3s ease;transition:opacity .3s ease;opacity:1}.is-small.has-avatar.has-displayname .bookingjs-calendar .fc-toolbar{padding-bottom:24px}.is-small .bookingjs-calendar .fc-toolbar>.fc-right>button.fc-today-button{position:absolute;left:15px}.bookingjs-timezonehelper{color:#aeaeae;text-align:center;padding:7px 10px;background-color:#fbfbfb;border-top:1px solid #ececec;min-height:15px;z-index:20;border-radius:0 0 4px 4px}.bookingjs-timezoneicon{width:10px;margin-right:5px}.bookingjs-avatar{position:absolute;top:-50px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);border-radius:150px;border:3px solid #fff;box-shadow:0 1px 3px 0 rgba(0,0,0,.13);overflow:hidden;z-index:40;background-color:#fff}.is-small .bookingjs-avatar{top:-40px}.bookingjs-avatar img{max-width:100%;vertical-align:middle;display:inline-block;width:80px;height:80px}.is-small .bookingjs-avatar img{width:70px;height:70px}.bookingjs-displayname{position:absolute;top:0;left:0;padding:15px 20px;color:#333;font-weight:600}.is-small .bookingjs-displayname{text-align:center;width:100%;box-sizing:border-box}.is-small.has-avatar .bookingjs-displayname{top:28px}.bookingjs-bookpage{position:absolute;height:100%;width:100%;top:0;left:0;background-color:#fbfbfb;z-index:30;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;border-radius:4px}.bookingjs-bookpage.show{opacity:1}.bookingjs-bookpage-close{position:absolute;top:0;right:0;padding:18px;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;opacity:.3}.bookingjs-bookpage-close:hover{opacity:1}.bookingjs-bookpage-date{text-align:center;font-size:34px;font-weight:400;margin-top:70px;margin-bottom:10px}.is-small .bookingjs-bookpage-date{font-size:27px;margin-top:60px}.bookingjs-bookpage-time{text-align:center;font-size:17px;font-weight:400;margin-bottom:50px;margin-top:10px}.is-small .bookingjs-bookpage-time{font-size:15px;margin-bottom:35px}.bookingjs-closeicon{width:15px}.bookingjs-form{width:350px;position:relative;margin:0 auto;text-align:center}.is-small .bookingjs-form{width:90%}.bookingjs-form-box{position:relative;box-shadow:0 1px 3px 0 rgba(0,0,0,.1);border-radius:4px;overflow:hidden;background-color:#fff;line-height:0}.bookingjs-form-success-message{position:absolute;top:-999px;left:0;right:0;padding:30px;background-color:#fff;opacity:0;-webkit-transition:opacity .3s ease;transition:opacity .3s ease;line-height:normal}.is-small .bookingjs-form-success-message{padding:22px 10px}.bookingjs-form-success-message .title{font-weight:600}.bookingjs-form-success-message .booked-email{color:#aeaeae}.bookingjs-form.success .bookingjs-form-success-message{opacity:1;top:0;bottom:0}.bookingjs-form-input{-webkit-transition:box-shadow .2s ease;transition:box-shadow .2s ease;width:100%;padding:15px 25px;border:0 solid #ececec;font-size:1em;box-shadow:inset 0 0 1px 1px hsla(0,0%,100%,0);text-align:left;box-sizing:border-box;line-height:normal;font-family:Open Sans,Helvetica,Tahoma,Arial,sans-serif}.bookingjs-form-input:focus{outline:0;box-shadow:inset 0 0 1px 1px #689ad8}.bookingjs-form-input.hidden{display:none}.bookingjs-form-button{position:relative;-webkit-transition:background-color .2s,max-width .3s;transition:background-color .2s,max-width .3s;display:inline-block;padding:13px 25px;background-color:#689ad8;text-transform:uppercase;box-shadow:0 1px 3px 0 rgba(0,0,0,.15);color:#fff;border:0;border-radius:3px;font-size:1.1em;font-weight:600;margin-top:30px;cursor:pointer;height:44px;outline:0;text-align:center;max-width:200px}.bookingjs-form-button .error-text,.bookingjs-form-button .loading-text,.bookingjs-form-button .success-text{-webkit-transition:opacity .3s ease;transition:opacity .3s ease;position:absolute;top:13px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);opacity:0}.bookingjs-form-button .inactive-text{white-space:nowrap;opacity:1}.bookingjs-form-button .loading-text svg{height:19px;width:19px;-webkit-animation:spin .6s infinite linear;animation:spin .6s infinite linear}.bookingjs-form-button .error-text svg{height:15px;width:15px;margin-top:2px}.bookingjs-form-button .success-text svg{height:15px;margin-top:2px;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .6s ease;transition:-webkit-transform .6s ease;transition:transform .6s ease;transition:transform .6s ease,-webkit-transform .6s ease}.bookingjs-form-button:hover{background-color:#3f7fce}.bookingjs-form-button.button-shake{-webkit-animation:shake .5s 1 ease;animation:shake .5s 1 ease}.bookingjs-form.loading .bookingjs-form-button,.bookingjs-form.loading .bookingjs-form-button:hover{max-width:80px;background-color:#b1b1b1;cursor:not-allowed}.bookingjs-form.loading .bookingjs-form-button .inactive-text,.bookingjs-form.loading .bookingjs-form-button:hover .inactive-text{opacity:0}.bookingjs-form.loading .bookingjs-form-button .loading-text,.bookingjs-form.loading .bookingjs-form-button:hover .loading-text{opacity:1}.bookingjs-form.error .bookingjs-form-button,.bookingjs-form.error .bookingjs-form-button:hover{max-width:80px;background-color:#d83b46;cursor:not-allowed}.bookingjs-form.error .bookingjs-form-button .inactive-text,.bookingjs-form.error .bookingjs-form-button:hover .inactive-text{opacity:0}.bookingjs-form.error .bookingjs-form-button .error-text,.bookingjs-form.error .bookingjs-form-button:hover .error-text{opacity:1}.bookingjs-form.success .bookingjs-form-button,.bookingjs-form.success .bookingjs-form-button:hover{max-width:80px;background-color:#5baf56;cursor:not-allowed}.bookingjs-form.success .bookingjs-form-button .inactive-text,.bookingjs-form.success .bookingjs-form-button:hover .inactive-text{opacity:0}.bookingjs-form.success .bookingjs-form-button .success-text,.bookingjs-form.success .bookingjs-form-button:hover .success-text{opacity:1}.bookingjs-form.success .bookingjs-form-button .success-text svg,.bookingjs-form.success .bookingjs-form-button:hover .success-text svg{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.bookingjs-poweredby{position:absolute;bottom:0;left:0;right:0;text-align:center;padding:7px 10px}.bookingjs-poweredby a{-webkit-transition:color .2s ease;transition:color .2s ease;color:#aeaeae;text-decoration:none}.bookingjs-poweredby a svg path{-webkit-transition:fill .2s ease;transition:fill .2s ease;fill:#aeaeae}.bookingjs-poweredby a:hover{color:#333}.bookingjs-poweredby a:hover svg path{fill:#333}.bookingjs-timekiticon{width:13px;margin-right:5px;vertical-align:sub}",""])},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,"@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes shake{0%{-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-transform:translateX(5px);transform:translateX(5px)}50%{-webkit-transform:translateX(-5px);transform:translateX(-5px)}75%{-webkit-transform:translateX(5px);transform:translateX(5px)}}@keyframes shake{0%,to{-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-transform:translateX(5px);transform:translateX(5px)}50%{-webkit-transform:translateX(-5px);transform:translateX(-5px)}75%{-webkit-transform:translateX(5px);transform:translateX(5px)}to{-webkit-transform:translateX(0);transform:translateX(0)}}",""])},function(e,t,n){var i;(function(e,r,o,s){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* @version 2.3.0
*/
(function(){"use strict";function a(e){return"function"==typeof e||"object"==typeof e&&null!==e}function l(e){return"function"==typeof e}function c(e){return"object"==typeof e&&null!==e}function u(e){Z=e}function d(e){K=e}function f(){var t=e.nextTick,n=e.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&"0"===n[1]&&"10"===n[2]&&(t=r),function(){t(v)}}function h(){return function(){q(v)}}function p(){var e=0,t=new te(v),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function m(){var e=new MessageChannel;return e.port1.onmessage=v,function(){e.port2.postMessage(0)}}function g(){return function(){setTimeout(v,1)}}function v(){for(var e=0;J>e;e+=2){var t=re[e],n=re[e+1];t(n),re[e]=void 0,re[e+1]=void 0}J=0}function b(){try{var e=n(55);return q=e.runOnLoop||e.runOnContext,h()}catch(t){return g()}}function y(){}function w(){return new TypeError("You cannot resolve a promise with itself")}function k(){return new TypeError("A promises callback cannot return that same promise.")}function x(e){try{return e.then}catch(t){return le.error=t,le}}function S(e,t,n,i){try{e.call(t,n,i)}catch(r){return r}}function D(e,t,n){K(function(e){var i=!1,r=S(n,t,function(n){i||(i=!0,t!==n?C(e,n):M(e,n))},function(t){i||(i=!0,L(e,t))},"Settle: "+(e._label||" unknown promise"));!i&&r&&(i=!0,L(e,r))},e)}function T(e,t){t._state===se?M(e,t._result):t._state===ae?L(e,t._result):R(t,void 0,function(t){C(e,t)},function(t){L(e,t)})}function _(e,t){if(t.constructor===e.constructor)T(e,t);else{var n=x(t);n===le?L(e,le.error):void 0===n?M(e,t):l(n)?D(e,t,n):M(e,t)}}function C(e,t){e===t?L(e,w()):a(t)?_(e,t):M(e,t)}function E(e){e._onerror&&e._onerror(e._result),H(e)}function M(e,t){e._state===oe&&(e._result=t,e._state=se,0!==e._subscribers.length&&K(H,e))}function L(e,t){e._state===oe&&(e._state=ae,e._result=t,K(E,e))}function R(e,t,n,i){var r=e._subscribers,o=r.length;e._onerror=null,r[o]=t,r[o+se]=n,r[o+ae]=i,0===o&&e._state&&K(H,e)}function H(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i,r,o=e._result,s=0;ss;s++)R(i.resolve(e[s]),void 0,t,n);return r}function G(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(y);return C(n,e),n}function I(e){var t=this,n=new t(y);return L(n,e),n}function B(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function U(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function N(e){this._id=me++,this._state=void 0,this._result=void 0,this._subscribers=[],y!==e&&(l(e)||B(),this instanceof N||U(),Y(this,e))}function W(){var e;if("undefined"!=typeof o)e=o;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;(!n||"[object Promise]"!==Object.prototype.toString.call(n.resolve())||n.cast)&&(e.Promise=ge)}var V;V=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var q,Z,X,$=V,J=0,K=({}.toString,function(e,t){re[J]=e,re[J+1]=t,J+=2,2===J&&(Z?Z(v):X())}),Q="undefined"!=typeof window?window:void 0,ee=Q||{},te=ee.MutationObserver||ee.WebKitMutationObserver,ne="undefined"!=typeof e&&"[object process]"==={}.toString.call(e),ie="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,re=new Array(1e3);X=ne?f():te?p():ie?m():void 0===Q?b():g();var oe=void 0,se=1,ae=2,le=new z,ce=new z;A.prototype._validateInput=function(e){return $(e)},A.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},A.prototype._init=function(){this._result=new Array(this.length)};var ue=A;A.prototype._enumerate=function(){for(var e=this,t=e.length,n=e.promise,i=e._input,r=0;n._state===oe&&t>r;r++)e._eachEntry(i[r],r)},A.prototype._eachEntry=function(e,t){var n=this,i=n._instanceConstructor;c(e)?e.constructor===i&&e._state!==oe?(e._onerror=null,n._settledAt(e._state,t,e._result)):n._willSettleAt(i.resolve(e),t):(n._remaining--,n._result[t]=e)},A.prototype._settledAt=function(e,t,n){var i=this,r=i.promise;r._state===oe&&(i._remaining--,e===ae?L(r,n):i._result[t]=n),0===i._remaining&&M(r,i._result)},A.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,function(e){n._settledAt(se,t,e)},function(e){n._settledAt(ae,t,e)})};var de=O,fe=P,he=G,pe=I,me=0,ge=N;N.all=de,N.race=fe,N.resolve=he,N.reject=pe,N._setScheduler=u,N._setAsap=d,N._asap=K,N.prototype={constructor:N,then:function(e,t){var n=this,i=n._state;if(i===se&&!e||i===ae&&!t)return this;var r=new this.constructor(y),o=n._result;if(i){var s=arguments[i-1];K(function(){F(i,r,s,o)})}else R(n,r,e,t);return r},"catch":function(e){return this.then(null,e)}};var ve=W,be={Promise:ge,polyfill:ve};n(52).amd?(i=function(){return be}.call(t,n,t,s),!(void 0!==i&&(s.exports=i))):"undefined"!=typeof s&&s.exports?s.exports=be:"undefined"!=typeof this&&(this.ES6Promise=be),ve()}).call(this)}).call(t,n(6),n(7).setImmediate,function(){return this}(),n(8)(e))},function(e,t,n){var i,r,o;/*!
* FullCalendar v2.4.0
* Docs & License: http://fullcalendar.io/
* (c) 2015 Adam Shaw
*/
!function(s){r=[n(13),n(5)],i=s,o="function"==typeof i?i.apply(t,r):i,!(void 0!==o&&(e.exports=o))}(function(e,t){function n(e){return B(e,Ge)}function i(t){var n,i={views:t.views||{}};return e.each(t,function(t,r){"views"!=t&&(e.isPlainObject(r)&&!/(time|duration|interval)$/i.test(t)&&-1==e.inArray(t,Ge)?(n=null,e.each(r,function(e,r){/^(month|week|day|default|basic(Week|Day)?|agenda(Week|Day)?)$/.test(e)?(i.views[e]||(i.views[e]={}),i.views[e][t]=r):(n||(n={}),n[e]=r)}),n&&(i[t]=n)):i[t]=r)}),i}function r(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})}function o(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function s(){e("body").addClass("fc-not-allowed")}function a(){e("body").removeClass("fc-not-allowed")}function l(t,n,i){var r=Math.floor(n/t.length),o=Math.floor(n-r*(t.length-1)),s=[],a=[],l=[],u=0;c(t),t.each(function(n,i){var c=n===t.length-1?o:r,d=e(i).outerHeight(!0);c>d?(s.push(i),a.push(d),l.push(e(i).height())):u+=d}),i&&(n-=u,r=Math.floor(n/s.length),o=Math.floor(n-r*(s.length-1))),e(s).each(function(t,n){var i=t===s.length-1?o:r,c=a[t],u=l[t],d=i-(c-u);i>c&&e(n).height(d)})}function c(e){e.height("")}function u(t){var n=0;return t.find("> *").each(function(t,i){var r=e(i).outerWidth();r>n&&(n=r)}),n++,t.width(n),n}function d(e,t){return e.height(t).addClass("fc-scroller"),e[0].scrollHeight-1>e[0].clientHeight?!0:(f(e),!1)}function f(e){e.height("").removeClass("fc-scroller")}function h(t){var n=t.css("position"),i=t.parents().filter(function(){var t=e(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&i.length?i:e(t[0].ownerDocument||document)}function p(e){var t=e.offset();return{left:t.left,right:t.left+e.outerWidth(),top:t.top,bottom:t.top+e.outerHeight()}}function m(e){var t=e.offset(),n=v(e),i=t.left+w(e,"border-left-width")+n.left,r=t.top+w(e,"border-top-width")+n.top;return{left:i,right:i+e[0].clientWidth,top:r,bottom:r+e[0].clientHeight}}function g(e){var t=e.offset(),n=t.left+w(e,"border-left-width")+w(e,"padding-left"),i=t.top+w(e,"border-top-width")+w(e,"padding-top");return{left:n,right:n+e.width(),top:i,bottom:i+e.height()}}function v(e){var t=e.innerWidth()-e[0].clientWidth,n={left:0,right:0,top:0,bottom:e.innerHeight()-e[0].clientHeight};return b()&&"rtl"==e.css("direction")?n.left=t:n.right=t,n}function b(){return null===Ie&&(Ie=y()),Ie}function y(){var t=e("").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),n=t.children(),i=n.offset().left>t.offset().left;return t.remove(),i}function w(e,t){return parseFloat(e.css(t))||0}function k(e){return 1==e.which&&!e.ctrlKey}function x(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.leftl&&c>s?(s>=l?(n=s.clone(),r=!0):(n=l.clone(),r=!1),c>=a?(i=a.clone(),o=!0):(i=c.clone(),o=!1),{start:n,end:i,isStart:r,isEnd:o}):void 0}function R(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:e.time()-n.time()})}function H(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days")})}function z(e,n,i){return t.duration(Math.round(e.diff(n,i,!0)),i)}function j(e,t){var n,i,r;for(n=0;n=1&&te(r)));n++);return i}function F(e,n,i){return null!=i?i.diff(n,e,!0):t.isDuration(n)?n.as(e):n.end.diff(n.start,e,!0)}function Y(e,t,n){var i;return P(n)?(t-e)/n:(i=n.asMonths(),Math.abs(i)>=1&&te(i)?t.diff(e,"months",!0)/i:t.diff(e,"days",!0)/n.asDays())}function A(e,t){var n,i;return P(e)||P(t)?e/t:(n=e.asMonths(),i=t.asMonths(),Math.abs(n)>=1&&te(n)&&Math.abs(i)>=1&&te(i)?n/i:e.asDays()/t.asDays())}function O(e,n){var i;return P(e)?t.duration(e*n):(i=e.asMonths(),Math.abs(i)>=1&&te(i)?t.duration({months:i*n}):t.duration({days:e.asDays()*n}))}function P(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function G(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function I(e){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)}function B(e,t){var n,i,r,o,s,a,l={};if(t)for(n=0;n=0;o--)if(s=e[o][i],"object"==typeof s)r.unshift(s);else if(void 0!==s){l[i]=s;break}r.length&&(l[i]=B(r))}for(n=e.length-1;n>=0;n--){a=e[n];for(i in a)i in l||(l[i]=a[i])}return l}function U(e){var t=function(){};return t.prototype=e,new t}function N(e,t){for(var n in e)V(e,n)&&(t[n]=e[n])}function W(e,t){var n,i,r=["constructor","toString","valueOf"];for(n=0;n /g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g," ")}function J(e){return e.replace(/&.*?;/g,"")}function K(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+":"+t)}),n.join(";")}function Q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ee(e,t){return e-t}function te(e){return e%1===0}function ne(e,t){var n=e[t];return function(){return n.apply(e,arguments)}}function ie(e,t){var n,i,r,o,s=function(){var a=+new Date-o;t>a&&a>0?n=setTimeout(s,t-a):(n=null,e.apply(r,i),n||(r=i=null))};return function(){r=this,i=arguments,o=+new Date,n||(n=setTimeout(s,t))}}function re(n,i,r){var o,s,a,l,c=n[0],u=1==n.length&&"string"==typeof c;return t.isMoment(c)?(l=t.apply(null,n),se(c,l)):G(c)||void 0===c?l=t.apply(null,n):(o=!1,s=!1,u?Ze.test(c)?(c+="-01",n=[c],o=!0,s=!0):(a=Xe.exec(c))&&(o=!a[5],s=!0):e.isArray(c)&&(s=!0),l=i||o?t.utc.apply(t,n):t.apply(null,n),o?(l._ambigTime=!0,l._ambigZone=!0):r&&(s?l._ambigZone=!0:u&&(l.utcOffset?l.utcOffset(c):l.zone(c)))),l._fullCalendar=!0,l}function oe(e,n){var i,r,o=!1,s=!1,a=e.length,l=[];for(i=0;a>i;i++)r=e[i],t.isMoment(r)||(r=Oe.moment.parseZone(r)),o=o||r._ambigTime,s=s||r._ambigZone,l.push(r);for(i=0;a>i;i++)r=l[i],n||!o||r._ambigTime?s&&!r._ambigZone&&(l[i]=r.clone().stripZone()):l[i]=r.clone().stripTime();return l}function se(e,t){e._ambigTime?t._ambigTime=!0:t._ambigTime&&(t._ambigTime=!1),e._ambigZone?t._ambigZone=!0:t._ambigZone&&(t._ambigZone=!1)}function ae(e,t){e.year(t[0]||0).month(t[1]||0).date(t[2]||0).hours(t[3]||0).minutes(t[4]||0).seconds(t[5]||0).milliseconds(t[6]||0)}function le(e,t){return Je.format.call(e,t)}function ce(e,t){return ue(e,me(t))}function ue(e,t){var n,i="";for(n=0;ns&&(o=pe(e,t,n[a]),o!==!1);a--)u=o+u;for(l=s;a>=l;l++)d+=de(e,n[l]),f+=de(t,n[l]);return(d||f)&&(h=r?f+i+d:d+i+f),c+h+u}function pe(e,t,n){var i,r;return"string"==typeof n?n:(i=n.token)&&(r=Qe[i.charAt(0)],r&&e.isSame(t,r))?le(e,i):!1}function me(e){return e in et?et[e]:et[e]=ge(e)}function ge(e){for(var t,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=i.exec(e);)t[1]?n.push(t[1]):t[2]?n.push({maybe:ge(t[2])}):t[3]?n.push({token:t[3]}):t[5]&&n.push(t[5]);return n}function ve(){}function be(e,t){return e||t?e&&t?e.grid===t.grid&&e.row===t.row&&e.col===t.col:!1:!0}function ye(e){var t=ke(e);return"background"===t||"inverse-background"===t}function we(e){return"inverse-background"===ke(e)}function ke(e){return X((e.source||{}).rendering,e.rendering)}function xe(e){var t,n,i={};for(t=0;t=e.leftCol)return!0;return!1}function _e(e,t){return e.leftCol-t.leftCol}function Ce(e){var t,n,i,r=[];for(t=0;tt.top&&e.top ").prependTo(n),N=P.header=new Fe(P,G),W=N.render(),W&&n.prepend(W),l(G.defaultView),G.handleWindowResize&&($=ie(f,G.windowResizeDelay),e(window).resize($))}function s(){Z&&Z.removeElement(),N.removeElement(),V.remove(),n.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),$&&e(window).unbind("resize",$)}function a(){return n.is(":visible")}function l(t){ne++,Z&&t&&Z.type!==t&&(N.deactivateButton(Z.type),z(),Z.removeElement(),Z=P.view=null),!Z&&t&&(Z=P.view=te[t]||(te[t]=P.instantiateView(t)),Z.setElement(e("
").appendTo(V)),N.activateButton(t)),Z&&(J=Z.massageCurrentDate(J),Z.displaying&&J.isWithin(Z.intervalStart,Z.intervalEnd)||a()&&(z(),Z.display(J),j(),w(),k(),g())),j(),ne--}function c(e){return a()?(e&&d(),ne++,Z.updateSize(!0),ne--,!0):void 0}function u(){a()&&d()}function d(){X="number"==typeof G.contentHeight?G.contentHeight:"number"==typeof G.height?G.height-(W?W.outerHeight(!0):0):Math.round(V.width()/Math.max(G.aspectRatio,.5))}function f(e){!ne&&e.target===window&&Z.start&&c(!0)&&Z.trigger("windowResize",ee)}function h(){m(),v()}function p(){a()&&(z(),Z.displayEvents(re),j())}function m(){z(),Z.clearEvents(),j()}function g(){!G.lazyFetching||K(Z.start,Z.end)?v():p()}function v(){Q(Z.start,Z.end)}function b(e){re=e,p()}function y(){p()}function w(){N.updateTitle(Z.title)}function k(){var e=P.getNow();e.isWithin(Z.intervalStart,Z.intervalEnd)?N.disableButton("today"):N.enableButton("today")}function x(e,t){Z.select(P.buildSelectRange.apply(P,arguments))}function S(){Z&&Z.unselect()}function D(){J=Z.computePrevDate(J),l()}function T(){J=Z.computeNextDate(J),l()}function _(){J.add(-1,"years"),l()}function C(){J.add(1,"years"),l()}function E(){J=P.getNow(),l()}function M(e){J=P.moment(e),l()}function L(e){J.add(t.duration(e)),l()}function R(e,t){var n;t=t||"day",n=P.getViewSpec(t)||P.getUnitViewSpec(t),J=e,l(n?n.type:null)}function H(){return J.clone()}function z(){V.css({width:"100%",height:V.height(),overflow:"hidden"})}function j(){V.css({width:"",height:"",overflow:""})}function F(){return P}function Y(){return Z}function A(e,t){return void 0===t?G[e]:void(("height"==e||"contentHeight"==e||"aspectRatio"==e)&&(G[e]=t,c(!0)))}function O(e,t){var n=Array.prototype.slice.call(arguments,2);return t=t||ee,this.triggerWith(e,t,n),G[e]?G[e].apply(t,n):void 0}var P=this;P.initOptions(i||{});var G=this.options;P.render=r,P.destroy=s,P.refetchEvents=h,P.reportEvents=b,P.reportEventChange=y,P.rerenderEvents=p,P.changeView=l,P.select=x,P.unselect=S,P.prev=D,P.next=T,P.prevYear=_,P.nextYear=C,P.today=E,P.gotoDate=M,P.incrementDate=L,P.zoomTo=R,P.getDate=H,P.getCalendar=F,P.getView=Y,P.option=A,P.trigger=O;var I=U(je(G.lang));if(G.monthNames&&(I._months=G.monthNames),G.monthNamesShort&&(I._monthsShort=G.monthNamesShort),G.dayNames&&(I._weekdays=G.dayNames),G.dayNamesShort&&(I._weekdaysShort=G.dayNamesShort),null!=G.firstDay){var B=U(I._week);B.dow=G.firstDay,I._week=B}I._fullCalendar_weekCalc=function(e){return"function"==typeof e?e:"local"===e?e:"iso"===e||"ISO"===e?"ISO":void 0}(G.weekNumberCalculation),P.defaultAllDayEventDuration=t.duration(G.defaultAllDayEventDuration),P.defaultTimedEventDuration=t.duration(G.defaultTimedEventDuration),P.moment=function(){var e;return"local"===G.timezone?(e=Oe.moment.apply(null,arguments),e.hasTime()&&e.local()):e="UTC"===G.timezone?Oe.moment.utc.apply(null,arguments):Oe.moment.parseZone.apply(null,arguments),"_locale"in e?e._locale=I:e._lang=I,e},P.getIsAmbigTimezone=function(){return"local"!==G.timezone&&"UTC"!==G.timezone},P.rezoneDate=function(e){return P.moment(e.toArray())},P.getNow=function(){var e=G.now;return"function"==typeof e&&(e=e()),P.moment(e)},P.getEventEnd=function(e){return e.end?e.end.clone():P.getDefaultEventEnd(e.allDay,e.start)},P.getDefaultEventEnd=function(e,t){var n=t.clone();return e?n.stripTime().add(P.defaultAllDayEventDuration):n.add(P.defaultTimedEventDuration),P.getIsAmbigTimezone()&&n.stripZone(),n},P.humanizeDuration=function(e){return(e.locale||e.lang).call(e,G.lang).humanize()},Ye.call(P,G);var N,W,V,q,Z,X,$,J,K=P.isFetchNeeded,Q=P.fetchEvents,ee=n[0],te={},ne=0,re=[];J=null!=G.defaultDate?P.moment(G.defaultDate):P.getNow(),P.getSuggestedViewHeight=function(){return void 0===X&&u(),X},P.isHeightAuto=function(){return"auto"===G.contentHeight||"auto"===G.height},P.initialize()}function ze(t){e.each(vt,function(e,n){null==t[e]&&(t[e]=n(t))})}function je(e){var n=t.localeData||t.langData;return n.call(t,e)||n.call(t,"en")}function Fe(t,n){function i(){var t=n.header;return h=n.theme?"ui":"fc",t?p=e("
").append(o("left")).append(o("right")).append(o("center")).append('
'):void 0}function r(){p.remove(),p=e()}function o(i){var r=e('
'),o=n.header[i];return o&&e.each(o.split(" "),function(i){var o,s=e(),a=!0;e.each(this.split(","),function(i,r){var o,l,c,u,d,f,p,g,v,b;"title"==r?(s=s.add(e(" ")),a=!1):((o=(t.options.customButtons||{})[r])?(c=function(e){o.click&&o.click.call(b[0],e)},u="",d=o.text):(l=t.getViewSpec(r))?(c=function(){t.changeView(r)},m.push(r),u=l.buttonTextOverride,d=l.buttonTextDefault):t[r]&&(c=function(){t[r]()},u=(t.overrides.buttonText||{})[r],d=n.buttonText[r]),c&&(f=o?o.themeIcon:n.themeButtonIcons[r],p=o?o.icon:n.buttonIcons[r],g=u?$(u):f&&n.theme?" ":p&&!n.theme?" ":$(d),v=["fc-"+r+"-button",h+"-button",h+"-state-default"],b=e(''+g+" ").click(function(e){b.hasClass(h+"-state-disabled")||(c(e),(b.hasClass(h+"-state-active")||b.hasClass(h+"-state-disabled"))&&b.removeClass(h+"-state-hover"))}).mousedown(function(){b.not("."+h+"-state-active").not("."+h+"-state-disabled").addClass(h+"-state-down")}).mouseup(function(){b.removeClass(h+"-state-down")}).hover(function(){b.not("."+h+"-state-active").not("."+h+"-state-disabled").addClass(h+"-state-hover")},function(){b.removeClass(h+"-state-hover").removeClass(h+"-state-down")}),s=s.add(b)))}),a&&s.first().addClass(h+"-corner-left").end().last().addClass(h+"-corner-right").end(),s.length>1?(o=e("
"),a&&o.addClass("fc-button-group"),o.append(s),r.append(o)):r.append(s)}),r}function s(e){p.find("h2").text(e)}function a(e){p.find(".fc-"+e+"-button").addClass(h+"-state-active")}function l(e){p.find(".fc-"+e+"-button").removeClass(h+"-state-active")}function c(e){p.find(".fc-"+e+"-button").attr("disabled","disabled").addClass(h+"-state-disabled")}function u(e){p.find(".fc-"+e+"-button").removeAttr("disabled").removeClass(h+"-state-disabled")}function d(){return m}var f=this;f.render=i,f.removeElement=r,f.updateTitle=s,f.activateButton=a,f.deactivateButton=l,f.disableButton=c,f.enableButton=u,f.getViewsWithButtons=d;var h,p=e(),m=[]}function Ye(n){function i(e,t){return!O||e.clone().stripZone()P.clone().stripZone()}function r(e,t){O=e,P=t,V=[];var n=++N,i=U.length;W=i;for(var r=0;i>r;r++)o(U[r],n)}function o(t,n){s(t,function(i){var r,o,s,a=e.isArray(t.events);if(n==N){if(i)for(r=0;r=n&&t.end<=i}function Y(e,t){var n=e.start.clone().stripZone(),i=A.getEventEnd(e).stripZone();return t.startn}var A=this;A.isFetchNeeded=i,A.fetchEvents=r,A.addEventSource=a,A.removeEventSource=c,A.updateEvent=f,A.renderEvent=m,A.removeEvents=g,A.clientEvents=v,A.mutateEvent=D,A.normalizeEventRange=w,A.normalizeEventRangeTimes=k,A.ensureVisibleEventRange=x;var O,P,G=A.reportEvents,B={events:[]},U=[B],N=0,W=0,V=[];e.each((n.events?[n.events]:[]).concat(n.eventSources||[]),function(e,t){var n=l(t);n&&U.push(n)}),A.getBusinessHoursEvents=_,A.isEventRangeAllowed=C,A.isSelectionRangeAllowed=E,A.isExternalDropRangeAllowed=M,A.getEventCache=function(){return V}}function Ae(e){e._allDay=e.allDay,e._start=e.start.clone(),e._end=e.end?e.end.clone():null}var Oe=e.fullCalendar={version:"2.4.0"},Pe=Oe.views={};e.fn.fullCalendar=function(t){var n=Array.prototype.slice.call(arguments,1),i=this;return this.each(function(r,o){var s,a=e(o),l=a.data("fullCalendar");"string"==typeof t?l&&e.isFunction(l[t])&&(s=l[t].apply(l,n),r||(i=s),"destroy"===t&&a.removeData("fullCalendar")):l||(l=new ht(a,t),a.data("fullCalendar",l),l.render())}),i};var Ge=["header","buttonText","buttonIcons","themeButtonIcons"];Oe.intersectionToSeg=L,Oe.applyAll=Z,Oe.debounce=ie,Oe.isInt=te,Oe.htmlEscape=$,Oe.cssToStr=K,Oe.proxy=ne,Oe.capitaliseFirstLetter=Q,Oe.getClientRect=m,Oe.getContentRect=g,Oe.getScrollbarWidths=v;var Ie=null;Oe.intersectRects=x,Oe.parseFieldSpecs=_,Oe.compareByFieldSpecs=C,Oe.compareByFieldSpec=E,Oe.flexibleCompare=M,Oe.computeIntervalUnit=j,Oe.divideRangeByDuration=Y,Oe.divideDurationByDuration=A,Oe.multiplyDuration=O,Oe.durationHasTime=P;var Be=["sun","mon","tue","wed","thu","fri","sat"],Ue=["year","month","week","day","hour","minute","second","millisecond"];Oe.log=function(){var e=window.console;return e&&e.log?e.log.apply(e,arguments):void 0},Oe.warn=function(){var e=window.console;return e&&e.warn?e.warn.apply(e,arguments):Oe.log.apply(Oe,arguments)};var Ne,We,Ve,qe={}.hasOwnProperty,Ze=/^\s*\d{4}-\d\d$/,Xe=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,$e=t.fn,Je=e.extend({},$e);Oe.moment=function(){return re(arguments)},Oe.moment.utc=function(){var e=re(arguments,!0);return e.hasTime()&&e.utc(),e},Oe.moment.parseZone=function(){return re(arguments,!0,!0)},$e.clone=function(){var e=Je.clone.apply(this,arguments);return se(this,e),this._fullCalendar&&(e._fullCalendar=!0),e},$e.week=$e.weeks=function(e){var t=(this._locale||this._lang)._fullCalendar_weekCalc;return null==e&&"function"==typeof t?t(this):"ISO"===t?Je.isoWeek.apply(this,arguments):Je.week.apply(this,arguments)},$e.time=function(e){if(!this._fullCalendar)return Je.time.apply(this,arguments);if(null==e)return t.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,t.isDuration(e)||t.isMoment(e)||(e=t.duration(e));var n=0;return t.isDuration(e)&&(n=24*Math.floor(e.asDays())),this.hours(n+e.hours()).minutes(e.minutes()).seconds(e.seconds()).milliseconds(e.milliseconds())},$e.stripTime=function(){var e;return this._ambigTime||(e=this.toArray(),this.utc(),We(this,e.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},$e.hasTime=function(){return!this._ambigTime},$e.stripZone=function(){var e,t;return this._ambigZone||(e=this.toArray(),t=this._ambigTime,this.utc(),We(this,e),this._ambigTime=t||!1,this._ambigZone=!0),this},$e.hasZone=function(){return!this._ambigZone},$e.local=function(){var e=this.toArray(),t=this._ambigZone;return Je.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,t&&Ve(this,e),this},$e.utc=function(){return Je.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},e.each(["zone","utcOffset"],function(e,t){Je[t]&&($e[t]=function(e){return null!=e&&(this._ambigTime=!1,this._ambigZone=!1),Je[t].apply(this,arguments)})}),$e.format=function(){return this._fullCalendar&&arguments[0]?ce(this,arguments[0]):this._ambigTime?le(this,"YYYY-MM-DD"):this._ambigZone?le(this,"YYYY-MM-DD[T]HH:mm:ss"):Je.format.apply(this,arguments)},$e.toISOString=function(){return this._ambigTime?le(this,"YYYY-MM-DD"):this._ambigZone?le(this,"YYYY-MM-DD[T]HH:mm:ss"):Je.toISOString.apply(this,arguments)},$e.isWithin=function(e,t){var n=oe([this,e,t]);return n[0]>=n[1]&&n[0] ').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),n.autoHide&&e(document).on("mousedown",this.documentMousedownProxy=ne(this,"documentMousedown"))},documentMousedown:function(t){this.el&&!e(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),e(document).off("mousedown",this.documentMousedownProxy)},position:function(){var t,n,i,r,o,s=this.options,a=this.el.offsetParent().offset(),l=this.el.outerWidth(),c=this.el.outerHeight(),u=e(window),d=h(this.el);r=s.top||0,o=void 0!==s.left?s.left:void 0!==s.right?s.right-l:0,d.is(window)||d.is(document)?(d=u,t=0,n=0):(i=d.offset(),t=i.top,n=i.left),t+=u.scrollTop(),n+=u.scrollLeft(),s.viewportConstrain!==!1&&(r=Math.min(r,t+d.outerHeight()-c-this.margin),r=Math.max(r,t+this.margin),o=Math.min(o,n+d.outerWidth()-l-this.margin),o=Math.max(o,n+this.margin)),this.el.css({top:r-a.top,left:o-a.left})},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))}}),it=ve.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,
bounds:null,constructor:function(e){this.grid=e},build:function(){this.grid.build(),this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.grid.clear(),this.rowCoords=null,this.colCoords=null},getCell:function(t,n){var i,r,o,s=this.rowCoords,a=s.length,l=this.colCoords,c=l.length,u=null,d=null;if(this.inBounds(t,n)){for(i=0;a>i;i++)if(r=s[i],n>=r.top&∋i++)if(r=l[i],t>=r.left&&t=n.left&&e=n.top&&t=t*t&&this.startDrag(e)),this.isDragging&&this.drag(i,r,e)},startDrag:function(e){this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.dragStart(e))},dragStart:function(e){var t=this.subjectEl;this.trigger("dragStart",e),(this.subjectHref=t?t.attr("href"):null)&&t.removeAttr("href")},drag:function(e,t,n){this.trigger("drag",e,t,n),this.updateScroll(n)},mouseup:function(e){this.stopListening(e)},stopDrag:function(e){this.isDragging&&(this.stopScrolling(),this.dragStop(e),this.isDragging=!1)},dragStop:function(e){var t=this;this.trigger("dragStop",e),setTimeout(function(){t.subjectHref&&t.subjectEl.attr("href",t.subjectHref)},0)},stopListening:function(t){this.stopDrag(t),this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),e(document).off("mousemove",this.mousemoveProxy).off("mouseup",this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.listenStop(t))},listenStop:function(e){this.trigger("listenStop",e)},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(e){e.preventDefault()},computeScrollBounds:function(){var e=this.scrollEl;this.scrollBounds=e?p(e):null},updateScroll:function(e){var t,n,i,r,o=this.scrollSensitivity,s=this.scrollBounds,a=0,l=0;s&&(t=(o-(e.pageY-s.top))/o,n=(o-(s.bottom-e.pageY))/o,i=(o-(e.pageX-s.left))/o,r=(o-(s.right-e.pageX))/o,t>=0&&1>=t?a=t*this.scrollSpeed*-1:n>=0&&1>=n&&(a=n*this.scrollSpeed),i>=0&&1>=i?l=i*this.scrollSpeed*-1:r>=0&&1>=r&&(l=r*this.scrollSpeed)),this.setScrollVel(a,l)},setScrollVel:function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(ne(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.scrollStop())},scrollHandler:function(){this.scrollIntervalId||this.scrollStop()},scrollStop:function(){}}),st=ot.extend({coordMap:null,origCell:null,cell:null,coordAdjust:null,constructor:function(e,t){ot.prototype.constructor.call(this,t),this.coordMap=e},listenStart:function(e){var t,n,i,r=this.subjectEl;ot.prototype.listenStart.apply(this,arguments),this.computeCoords(),e?(n={left:e.pageX,top:e.pageY},i=n,r&&(t=p(r),i=S(i,t)),this.origCell=this.getCell(i.left,i.top),r&&this.options.subjectCenter&&(this.origCell&&(t=x(this.origCell,t)||t),i=D(t)),this.coordAdjust=T(i,n)):(this.origCell=null,this.coordAdjust=null)},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},dragStart:function(e){var t;ot.prototype.dragStart.apply(this,arguments),t=this.getCell(e.pageX,e.pageY),t&&this.cellOver(t)},drag:function(e,t,n){var i;ot.prototype.drag.apply(this,arguments),i=this.getCell(n.pageX,n.pageY),be(i,this.cell)||(this.cell&&this.cellOut(),i&&this.cellOver(i))},dragStop:function(){this.cellDone(),ot.prototype.dragStop.apply(this,arguments)},cellOver:function(e){this.cell=e,this.trigger("cellOver",e,be(e,this.origCell),this.origCell)},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cellDone(),this.cell=null)},cellDone:function(){this.cell&&this.trigger("cellDone",this.cell)},listenStop:function(){ot.prototype.listenStop.apply(this,arguments),this.origCell=this.cell=null,this.coordMap.clear()},scrollStop:function(){ot.prototype.scrollStop.apply(this,arguments),this.computeCoords()},getCell:function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.coordMap.getCell(e,t)}}),at=ve.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,n){this.options=n=n||{},this.sourceEl=t,this.parentEl=n.parentEl?e(n.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.mouseY0=t.pageY,this.mouseX0=t.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),e(document).on("mousemove",this.mousemoveProxy=ne(this,"mousemove")))},stop:function(t,n){function i(){this.isAnimating=!1,r.removeElement(),this.top0=this.left0=null,n&&n()}var r=this,o=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,e(document).off("mousemove",this.mousemoveProxy),t&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:i})):i())},getEl:function(){var e=this.el;return e||(this.sourceEl.width(),e=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),e},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var e,t;this.getEl(),null===this.top0&&(this.sourceEl.width(),e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(e){this.topDelta=e.pageY-this.mouseY0,this.leftDelta=e.pageX-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),lt=ve.extend({view:null,isRTL:null,cellHtml:" ",constructor:function(e){this.view=e,this.isRTL=e.opt("isRTL")},rowHtml:function(e,t){var n,i,r=this.getHtmlRenderer("cell",e),o="";for(t=t||0,n=0;n"+o+""},bookendCells:function(e,t,n){var i=this.getHtmlRenderer("intro",t)(n||0),r=this.getHtmlRenderer("outro",t)(n||0),o=this.isRTL?r:i,s=this.isRTL?i:r;return"string"==typeof e?o+e+s:e.prepend(o).append(s)},getHtmlRenderer:function(e,t){var n,i,r,o,s=this.view;return n=e+"Html",t&&(i=t+Q(e)+"Html"),i&&(o=s[i])?r=s:i&&(o=this[i])?r=this:(o=s[n])?r=s:(o=this[n])&&(r=this),"function"==typeof o?function(){return o.apply(r,arguments)||""}:function(){return o||""}}}),ct=Oe.Grid=lt.extend({start:null,end:null,rowCnt:0,colCnt:0,el:null,coordMap:null,elsByFill:null,externalDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,cellDuration:null,largeUnit:null,constructor:function(){lt.apply(this,arguments),this.coordMap=new it(this),this.elsByFill={},this.externalDragStartProxy=ne(this,"externalDragStart")},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(e){this.start=e.start.clone(),this.end=e.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var e,t,n=this.view;this.colHeadFormat=n.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=n.opt("eventTimeFormat")||n.opt("timeFormat")||this.computeEventTimeFormat(),e=n.opt("displayEventTime"),null==e&&(e=this.computeDisplayEventTime()),t=n.opt("displayEventEnd"),null==t&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},build:function(){},clear:function(){},rangeToSegs:function(e){},diffDates:function(e,t){return this.largeUnit?z(e,t,this.largeUnit):R(e,t)},getCell:function(t,n){var i;return null==n&&("number"==typeof t?(n=t%this.colCnt,t=Math.floor(t/this.colCnt)):(n=t.col,t=t.row)),i={row:t,col:n},e.extend(i,this.getRowData(t),this.getColData(n)),e.extend(i,this.computeCellRange(i)),i},computeCellRange:function(e){var t=this.computeCellDate(e);return{start:t,end:t.clone().add(this.cellDuration)}},computeCellDate:function(e){},getRowData:function(e){return{}},getColData:function(e){return{}},getRowEl:function(e){},getColEl:function(e){},getCellDayEl:function(e){return this.getColEl(e.col)||this.getRowEl(e.row)},computeRowCoords:function(){var e,t,n,i=[];for(e=0;e "},headHtml:function(){return'"},headCellHtml:function(e){var t=this.view,n=e.start;return'"},bgCellHtml:function(e){var t=this.view,n=e.start,i=this.getDayClasses(n);return i.unshift("fc-day",t.widgetContentClass),' '},getDayClasses:function(e){var t=this.view,n=t.calendar.getNow().stripTime(),i=["fc-"+Be[e.day()]];return 1==t.intervalDuration.as("months")&&e.month()!=t.intervalStart.month()&&i.push("fc-other-month"),e.isSame(n,"day")?i.push("fc-today",t.highlightStateClass):n>e?i.push("fc-past"):i.push("fc-future"),i}});ct.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(e){var t,n,i=this.eventsToSegs(e),r=[],o=[];for(t=0;t *",function(n){var r=e(this).data("fc-seg");return!r||t.isDraggingSeg||t.isResizingSeg?void 0:i.call(this,r,n)})})},triggerSegMouseover:function(e,t){this.mousedOverSeg||(this.mousedOverSeg=e,this.view.trigger("eventMouseover",e.el[0],e.event,t))},triggerSegMouseout:function(e,t){t=t||{},this.mousedOverSeg&&(e=e||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",e.el[0],e.event,t))},segDragMousedown:function(e,t){var n,i=this,r=this.view,o=r.calendar,l=e.el,c=e.event,u=new at(e.el,{parentEl:r.el,opacity:r.opt("dragOpacity"),revertDuration:r.opt("dragRevertDuration"),zIndex:2}),d=new st(r.coordMap,{distance:5,scroll:r.opt("dragScroll"),subjectEl:l,subjectCenter:!0,listenStart:function(e){u.hide(),u.start(e)},dragStart:function(t){i.triggerSegMouseout(e,t),i.segDragStart(e,t),r.hideEvent(c)},cellOver:function(t,a,l){e.cell&&(l=e.cell),n=i.computeEventDrop(l,t,c),n&&!o.isEventRangeAllowed(n,c)&&(s(),n=null),n&&r.renderDrag(n,e)?u.hide():u.show(),a&&(n=null)},cellOut:function(){r.unrenderDrag(),u.show(),n=null},cellDone:function(){a()},dragStop:function(t){u.stop(!n,function(){r.unrenderDrag(),r.showEvent(c),i.segDragStop(e,t),n&&r.reportEventDrop(c,n,this.largeUnit,l,t)})},listenStop:function(){u.stop()}});d.mousedown(t)},segDragStart:function(e,t){this.isDraggingSeg=!0,this.view.trigger("eventDragStart",e.el[0],e.event,t,{})},segDragStop:function(e,t){this.isDraggingSeg=!1,this.view.trigger("eventDragStop",e.el[0],e.event,t,{})},computeEventDrop:function(e,t,n){var i,r,o=this.view.calendar,s=e.start,a=t.start;return s.hasTime()===a.hasTime()?(i=this.diffDates(a,s),n.allDay&&P(i)?(r={start:n.start.clone(),end:o.getEventEnd(n),allDay:!1},o.normalizeEventRangeTimes(r)):r={start:n.start.clone(),end:n.end?n.end.clone():null,allDay:n.allDay},r.start.add(i),r.end&&r.end.add(i)):r={start:a.clone(),end:null,allDay:!a.hasTime()},r},applyDragOpacity:function(e){var t=this.view.opt("dragOpacity");null!=t&&e.each(function(e,n){n.style.opacity=t})},externalDragStart:function(t,n){var i,r,o=this.view;o.opt("droppable")&&(i=e((n?n.item:null)||t.target),r=o.opt("dropAccept"),(e.isFunction(r)?r.call(i[0],i):i.is(r))&&(this.isDraggingExternal||this.listenToExternalDrag(i,t,n)))},listenToExternalDrag:function(e,t,n){var i,r,o=this,l=De(e);i=new st(this.coordMap,{listenStart:function(){o.isDraggingExternal=!0},cellOver:function(e){r=o.computeExternalDrop(e,l),r?o.renderDrag(r):s()},cellOut:function(){r=null,o.unrenderDrag(),a()},dragStop:function(){o.unrenderDrag(),a(),r&&o.view.reportExternalDrop(l,r,e,t,n)},listenStop:function(){o.isDraggingExternal=!1}}),i.startDrag(t)},computeExternalDrop:function(e,t){var n={start:e.start.clone(),end:null};return t.startTime&&!n.start.hasTime()&&n.start.time(t.startTime),t.duration&&(n.end=n.start.clone().add(t.duration)),this.view.calendar.isExternalDropRangeAllowed(n,t.eventProps)?n:null},renderDrag:function(e,t){},unrenderDrag:function(){},segResizeMousedown:function(e,t,n){var i,r,o=this,l=this.view,c=l.calendar,u=e.el,d=e.event,f=c.getEventEnd(d);i=new st(this.coordMap,{distance:5,scroll:l.opt("dragScroll"),subjectEl:u,dragStart:function(t){o.triggerSegMouseout(e,t),o.segResizeStart(e,t)},cellOver:function(t,i,a){r=n?o.computeEventStartResize(a,t,d):o.computeEventEndResize(a,t,d),r&&(c.isEventRangeAllowed(r,d)?r.start.isSame(d.start)&&r.end.isSame(f)&&(r=null):(s(),r=null)),r&&(l.hideEvent(d),o.renderEventResize(r,e))},cellOut:function(){r=null},cellDone:function(){o.unrenderEventResize(),l.showEvent(d),a()},dragStop:function(t){o.segResizeStop(e,t),r&&l.reportEventResize(d,r,this.largeUnit,u,t)}}),i.mousedown(t)},segResizeStart:function(e,t){this.isResizingSeg=!0,this.view.trigger("eventResizeStart",e.el[0],e.event,t,{})},segResizeStop:function(e,t){this.isResizingSeg=!1,this.view.trigger("eventResizeStop",e.el[0],e.event,t,{})},computeEventStartResize:function(e,t,n){return this.computeEventResize("start",e,t,n)},computeEventEndResize:function(e,t,n){return this.computeEventResize("end",e,t,n)},computeEventResize:function(e,t,n,i){var r,o,s=this.view.calendar,a=this.diffDates(n[e],t[e]);return r={start:i.start.clone(),end:s.getEventEnd(i),allDay:i.allDay},r.allDay&&P(a)&&(r.allDay=!1,s.normalizeEventRangeTimes(r)),r[e].add(a),r.start.isBefore(r.end)||(o=i.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration,this.cellDuration&&this.cellDurationc&&a.push({event:l,start:c,end:n.start}),c=n.end;return o>c&&a.push({event:l,start:c,end:o}),a},eventRangeToSegs:function(e,t){var n,i,r;for(e=this.view.calendar.ensureVisibleEventRange(e),n=t?t(e):this.rangeToSegs(e),i=0;it;t++)l+=this.dayRowHtml(t,e);for(this.el.html(l),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),n=0;a>n;n++)i=this.getCell(n),r.trigger("dayRender",null,i.start,this.dayEls.eq(n))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var e=this.view.calendar.getBusinessHoursEvents(!0),t=this.eventsToSegs(e);this.renderFill("businessHours",t,"bgevent")},dayRowHtml:function(e,t){var n=this.view,i=["fc-row","fc-week",n.widgetContentClass];return t&&i.push("fc-rigid"),''+this.rowHtml("day",e)+'
'+(this.numbersVisible?""+this.rowHtml("number",e)+" ":"")+"
"},dayCellHtml:function(e){return this.bgCellHtml(e)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){var e,t,n,i;if(this.updateCellDates(),e=this.cellDates,this.breakOnWeeks){for(t=e[0].day(),i=1;ii;i++)r=i*h,o=r+h-1,l=Math.max(r,t),c=Math.min(o,n),l=Math.ceil(l),c=Math.floor(c),c>=l&&(s=l===t,a=c===n,l-=r,c-=r,u={row:i,isStart:s,isEnd:a},d?(u.leftCol=h-c-1,u.rightCol=h-l-1):(u.leftCol=l,u.rightCol=c),p.push(u));return p},dateToCellOffset:function(e){var t=this.dayToCellOffsets,n=e.diff(this.start,"days");return 0>n?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},renderDrag:function(e,t){return this.renderHighlight(this.eventRangeToSegs(e)),t&&!t.el.closest(this.el).length?(this.renderRangeHelper(e,t),this.applyDragOpacity(this.helperEls),!0):void 0},unrenderDrag:function(){this.unrenderHighlight(),this.unrenderHelper()},renderEventResize:function(e,t){this.renderHighlight(this.eventRangeToSegs(e)),this.renderRangeHelper(e,t)},unrenderEventResize:function(){this.unrenderHighlight(),this.unrenderHelper()},renderHelper:function(t,n){var i,r=[],o=this.eventsToSegs([t]);o=this.renderFgSegEls(o),i=this.renderSegRows(o),this.rowEls.each(function(t,o){var s,a=e(o),l=e('');s=n&&n.row===t?n.el.position().top:a.find(".fc-content-skeleton tbody").position().top,l.css("top",s).find("table").append(i[t].tbodyEl),a.append(l),r.push(l[0])}),this.helperEls=e(r)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,n,i){var r,o,s,a=[];for(n=this.renderFillSegEls(t,n),r=0;r '),o=r.find("tr"),a>0&&o.append(' '),o.append(n.el.attr("colspan",l-a)),s>l&&o.append(' '),this.bookendCells(o,t),r}});ut.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),ct.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return ct.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var n=e.grep(t,function(e){return e.event.allDay});return ct.prototype.renderBgSegs.call(this,n)},renderFgSegs:function(t){var n;return t=this.renderFgSegEls(t),n=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,i){e(i).find(".fc-content-skeleton > table").append(n[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(e){var t,n,i=[];for(t=this.groupSegRows(e),n=0;n'+$(n)+"")),i=''+($(o.title||"")||" ")+" ",''+(this.isRTL?i+" "+d:d+" "+i)+"
"+(a?'
':"")+(l?'
':"")+" "},renderSegRow:function(t,n){function i(t){for(;t>s;)u=(v[r-1]||[])[s],u?u.attr("rowspan",parseInt(u.attr("rowspan")||1,10)+1):(u=e(" "),a.append(u)),g[r][s]=u,v[r][s]=u,s++}var r,o,s,a,l,c,u,d=this.colCnt,f=this.buildSegLevels(n),h=Math.max(1,f.length),p=e(" "),m=[],g=[],v=[];for(r=0;h>r;r++){if(o=f[r],s=0,a=e(" "),m.push([]),g.push([]),v.push([]),o)for(l=0;l ').append(c.el),c.leftCol!=c.rightCol?u.attr("colspan",c.rightCol-c.leftCol+1):v[r][s]=u;s<=c.rightCol;)g[r][s]=u,m[r][s]=c,s++;a.append(u)}i(d),this.bookendCells(a,"eventSkeleton"),p.append(a)}return{row:t,tbodyEl:p,cellMatrix:g,segMatrix:m,segLevels:f,segs:n}},buildSegLevels:function(e){var t,n,i,r=[];for(this.sortSegs(e),t=0;t td > :first-child").each(n),r.position().top+o>a)return i;return!1},limitRow:function(t,n){function i(i){for(;i>S;)r=w.getCell(t,S),u=w.getCellSegs(r,n),u.length&&(h=s[n-1][S],y=w.renderMoreLink(r,u),b=e("
").append(y),h.append(b),x.push(b[0])),S++}var r,o,s,a,l,c,u,d,f,h,p,m,g,v,b,y,w=this,k=this.rowStructs[t],x=[],S=0;if(n&&n ').attr("rowspan",p),u=f[g],r=this.getCell(t,c.leftCol+g),y=this.renderMoreLink(r,[c].concat(u)),b=e("
").append(y),v.append(b),m.push(v[0]),x.push(v[0]);h.addClass("fc-limited").after(e(m)),a.push(h[0])}}i(this.colCnt),k.moreEls=e(x),k.limitedEls=e(a)}},unlimitRow:function(e){var t=this.rowStructs[e];t.moreEls&&(t.moreEls.remove(),
t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(t,n){var i=this,r=this.view;return e(' ').text(this.getMoreLinkText(n.length)).on("click",function(o){var s=r.opt("eventLimitClick"),a=t.start,l=e(this),c=i.getCellDayEl(t),u=i.getCellSegs(t),d=i.resliceDaySegs(u,a),f=i.resliceDaySegs(n,a);"function"==typeof s&&(s=r.trigger("eventLimitClick",null,{date:a,dayEl:c,moreEl:l,segs:d,hiddenSegs:f},o)),"popover"===s?i.showSegPopover(t,l,d):"string"==typeof s&&r.calendar.zoomTo(a,s)})},showSegPopover:function(e,t,n){var i,r,o=this,s=this.view,a=t.parent();i=1==this.rowCnt?s.el:this.rowEls.eq(e.row),r={className:"fc-more-popover",content:this.renderSegPopoverContent(e,n),parentEl:this.el,top:i.offset().top,autoHide:!0,viewportConstrain:s.opt("popoverViewportConstrain"),hide:function(){o.segPopover.removeElement(),o.segPopover=null,o.popoverSegs=null}},this.isRTL?r.right=a.offset().left+a.outerWidth()+1:r.left=a.offset().left-1,this.segPopover=new nt(r),this.segPopover.show()},renderSegPopoverContent:function(t,n){var i,r=this.view,o=r.opt("theme"),s=t.start.format(r.opt("dayPopoverFormat")),a=e(''),l=a.find(".fc-event-container");for(n=this.renderFgSegEls(n,!0),this.popoverSegs=n,i=0;i'+this.rowHtml("slotBg")+'
"},slotBgCellHtml:function(e){return this.bgCellHtml(e)},slatRowHtml:function(){for(var e,n,i,r=this.view,o=this.isRTL,s="",a=t.duration(+this.minTime);a"+(n?""+$(e.format(this.labelFormat))+" ":"")+"",s+=""+(o?"":i)+' '+(o?i:"")+" ",a.add(this.slotDuration);return s},processOptions:function(){var n,i=this.view,r=i.opt("slotDuration"),o=i.opt("snapDuration");r=t.duration(r),o=o?t.duration(o):r,this.slotDuration=r,this.snapDuration=o,this.cellDuration=o,this.minTime=t.duration(i.opt("minTime")),this.maxTime=t.duration(i.opt("maxTime")),n=i.opt("slotLabelFormat"),e.isArray(n)&&(n=n[n.length-1]),this.labelFormat=n||i.opt("axisFormat")||i.opt("smallTimeFormat"),n=i.opt("slotLabelInterval"),this.labelInterval=n?t.duration(n):this.computeLabelInterval(r)},computeLabelInterval:function(e){var n,i,r;for(n=Dt.length-1;n>=0;n--)if(i=t.duration(Dt[n]),r=A(i,e),te(r)&&r>1)return i;return t.duration(e)},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},rangeUpdated:function(){var e,t=this.view,n=[];for(e=this.start.clone();e.isBefore(this.end);)n.push(e.clone()),e.add(1,"day"),e=t.skipHiddenDays(e);this.isRTL&&n.reverse(),this.colDates=n,this.colCnt=n.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellDate:function(e){var t=this.colDates[e.col],n=this.computeSnapTime(e.row);return t=this.view.calendar.rezoneDate(t),t.time(n),t},getColEl:function(e){return this.dayEls.eq(e)},computeSnapTime:function(e){return t.duration(this.minTime+this.snapDuration*e)},rangeToSegs:function(e){var t,n,i,r,o=this.colCnt,s=[];for(e={start:e.start.clone().stripZone(),end:e.end.clone().stripZone()},n=0;o>n;n++)i=this.colDates[n],r={start:i.clone().time(this.minTime),end:i.clone().time(this.maxTime)},t=L(e,r),t&&(t.col=n,s.push(t));return s},updateSize:function(e){this.computeSlatTops(),e&&this.updateSegVerticals()},computeRowCoords:function(){var e,t,n=this.el.offset().top,i=[];for(e=0;e0&&(i[e-1].bottom=t.top),i.push(t);return t.bottom=t.top+this.computeTimeTop(this.computeSnapTime(e)),i},computeDateTop:function(e,n){return this.computeTimeTop(t.duration(e.clone().stripZone()-n.clone().stripTime()))},computeTimeTop:function(e){var t,n,i,r,o=(e-this.minTime)/this.slotDuration;return o=Math.max(0,o),o=Math.min(this.slatEls.length,o),t=Math.floor(o),n=o-t,i=this.slatTops[t],n?(r=this.slatTops[t+1],i+(r-i)*n):i},computeSlatTops:function(){var t,n=[];this.slatEls.each(function(i,r){t=e(r).position().top,n.push(t)}),n.push(t+this.slatEls.last().outerHeight()),this.slatTops=n},renderDrag:function(e,t){return t?(this.renderRangeHelper(e,t),this.applyDragOpacity(this.helperEl),!0):void this.renderHighlight(this.eventRangeToSegs(e))},unrenderDrag:function(){this.unrenderHelper(),this.unrenderHighlight()},renderEventResize:function(e,t){this.renderRangeHelper(e,t)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(t,n){var i,r,o,s,a=this.eventsToSegs([t]);for(a=this.renderFgSegEls(a),i=this.renderSegTable(a),r=0;r ').append(i).appendTo(this.el)},unrenderHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(e){this.view.opt("selectHelper")?this.renderRangeHelper(e):this.renderHighlight(this.selectionRangeToSegs(e))},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderFill:function(t,n,i){var r,o,s,a,l,c,u,d,f,h;if(n.length){for(n=this.renderFillSegEls(t,n),r=this.groupSegCols(n),i=i||t.toLowerCase(),o=e(''),s=o.find("tr"),a=0;a ").appendTo(s),l.length)for(u=e('
').appendTo(c),d=this.colDates[a],f=0;f ').append(this.renderSegTable(t))),t},unrenderFgSegs:function(e){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(t){var n,i,r,o,s,a,l=e(""),c=l.find("tr");for(n=this.groupSegCols(t),this.computeSegVerticals(t),o=0;o '),i=0;i ").append(a))}return this.bookendCells(c,"eventSkeleton"),l},placeSlotSegs:function(e){var t,n,i;if(this.sortSegs(e),t=Ce(e),Ee(t),n=t[0]){for(i=0;i'+(n?'
'+$(n)+"
":"")+(s.title?'
'+$(s.title)+"
":"")+'
'+(c?'
':"")+""},generateSegPositionCss:function(e){var t,n,i=this.view.opt("slotEventOverlap"),r=e.backwardCoord,o=e.forwardCoord,s=this.generateSegVerticalCss(e);return i&&(o=Math.min(1,r+2*(o-r))),this.isRTL?(t=1-o,n=r):(t=r,n=1-o),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*n+"%",i&&e.forwardPressure&&(s[this.isRTL?"marginLeft":"marginRight"]=20),s},generateSegVerticalCss:function(e){return{top:e.top,bottom:-e.bottom}},groupSegCols:function(e){var t,n=[];for(t=0;t1?"ll":"LL"},formatRange:function(e,t,n){var i=e.end;return i.hasTime()||(i=i.clone().subtract(1)),fe(e.start,i,t,n,this.opt("isRTL"))},setElement:function(e){this.el=e,this.bindGlobalHandlers()},removeElement:function(){this.clear(),this.isSkeletonRendered&&(this.unrenderSkeleton(),this.isSkeletonRendered=!1),this.unbindGlobalHandlers(),this.el.remove()},display:function(t){var n=this,i=null;return this.displaying&&(i=this.queryScroll()),this.clear().then(function(){return n.displaying=e.when(n.displayView(t)).then(function(){n.forceScroll(n.computeInitialScroll(i)),n.triggerRender()})})},clear:function(){var t=this,n=this.displaying;return n?n.then(function(){return t.displaying=null,t.clearEvents(),t.clearView()}):e.when()},displayView:function(e){this.isSkeletonRendered||(this.renderSkeleton(),this.isSkeletonRendered=!0),this.setDate(e),this.render&&this.render(),this.renderDates(),this.updateSize(),this.renderBusinessHours()},clearView:function(){this.unselect(),this.triggerUnrender(),this.unrenderBusinessHours(),this.unrenderDates(),this.destroy&&this.destroy()},renderSkeleton:function(){},unrenderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},renderBusinessHours:function(){},unrenderBusinessHours:function(){},triggerRender:function(){this.trigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.trigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){e(document).on("mousedown",this.documentMousedownProxy)},unbindGlobalHandlers:function(){e(document).off("mousedown",this.documentMousedownProxy)},initThemingProps:function(){var e=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=e+"-widget-header",this.widgetContentClass=e+"-widget-content",this.highlightStateClass=e+"-state-highlight"},updateSize:function(e){var t;e&&(t=this.queryScroll()),this.updateHeight(e),this.updateWidth(e),e&&this.setScroll(t)},updateWidth:function(e){},updateHeight:function(e){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(e,t){},computeScrollerHeight:function(e){var t,n,i=this.scrollerEl;return t=this.el.add(i),t.css({position:"relative",left:-1}),n=this.el.outerHeight()-i.height(),t.css({position:"",left:""}),e-n},computeInitialScroll:function(e){return 0},queryScroll:function(){return this.scrollerEl?this.scrollerEl.scrollTop():void 0},setScroll:function(e){return this.scrollerEl?this.scrollerEl.scrollTop(e):void 0},forceScroll:function(e){var t=this;this.setScroll(e),setTimeout(function(){t.setScroll(e)},0)},displayEvents:function(e){var t=this.queryScroll();this.clearEvents(),this.renderEvents(e),this.isEventsRendered=!0,this.setScroll(t),this.triggerEventRender()},clearEvents:function(){this.isEventsRendered&&(this.triggerEventUnrender(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.isEventsRendered=!1)},renderEvents:function(e){},unrenderEvents:function(){},triggerEventRender:function(){this.renderedEventSegEach(function(e){this.trigger("eventAfterRender",e.event,e.event,e.el)}),this.trigger("eventAfterAllRender")},triggerEventUnrender:function(){this.renderedEventSegEach(function(e){this.trigger("eventDestroy",e.event,e.event,e.el)})},resolveEventEl:function(t,n){var i=this.trigger("eventRender",t,t,n);return i===!1?n=null:i&&i!==!0&&(n=e(i)),n},showEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","")},e)},hideEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","hidden")},e)},renderedEventSegEach:function(e,t){var n,i=this.getEventSegs();for(n=0;nt;t++)(i[t]=-1!==e.inArray(t,n))||r++;if(!r)throw"invalid hiddenDays";this.isHiddenDayHash=i},isHiddenDay:function(e){return t.isMoment(e)&&(e=e.day()),this.isHiddenDayHash[e]},skipHiddenDays:function(e,t,n){var i=e.clone();for(t=t||1;this.isHiddenDayHash[(i.day()+(n?t:0)+7)%7];)i.add(t,"days");return i},computeDayRange:function(e){var t,n=e.start.clone().stripTime(),i=e.end,r=null;return i&&(r=i.clone().stripTime(),t=+i.time(),t&&t>=this.nextDayThreshold&&r.add(1,"days")),(!i||n>=r)&&(r=n.clone().add(1,"days")),{start:n,end:r}},isMultiDayEvent:function(e){var t=this.computeDayRange(e);return t.end.diff(t.start,"days")>1}}),ht=Oe.Calendar=ve.extend({dirDefaults:null,langDefaults:null,overrides:null,options:null,viewSpecCache:null,view:null,header:null,loadingLevel:0,constructor:He,initialize:function(){},initOptions:function(e){var t,r,o,s;e=i(e),t=e.lang,r=pt[t],r||(t=ht.defaults.lang,r=pt[t]||{}),o=X(e.isRTL,r.isRTL,ht.defaults.isRTL),s=o?ht.rtlDefaults:{},this.dirDefaults=s,this.langDefaults=r,this.overrides=e,this.options=n([ht.defaults,s,r,e]),ze(this.options),this.viewSpecCache={}},getViewSpec:function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},getUnitViewSpec:function(t){var n,i,r;if(-1!=e.inArray(t,Ue))for(n=this.header.getViewsWithButtons(),e.each(Oe.views,function(e){n.push(e)}),i=0;i1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(this.hasRigidRows())},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},renderHtml:function(){return''},headIntroHtml:function(){return this.weekNumbersVisible?'":void 0},numberIntroHtml:function(e){return this.weekNumbersVisible?'"+this.dayGrid.getCell(e,0).start.format("w")+" ":void 0},dayIntroHtml:function(){return this.weekNumbersVisible?' ":void 0},introHtml:function(){return this.weekNumbersVisible?' ":void 0},numberCellHtml:function(e){var t,n=e.start;return this.dayNumbersVisible?(t=this.dayGrid.getDayClasses(n),t.unshift("fc-day-number"),''+n.date()+" "):" "},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=u(this.el.find(".fc-week-number")))},setHeight:function(e,t){var n,i=this.opt("eventLimit");f(this.scrollerEl),o(this.headRowEl),this.dayGrid.removeSegPopover(),i&&"number"==typeof i&&this.dayGrid.limitRows(i),n=this.computeScrollerHeight(e),this.setGridHeight(n,t),i&&"number"!=typeof i&&this.dayGrid.limitRows(i),!t&&d(this.scrollerEl,n)&&(r(this.headRowEl,v(this.scrollerEl)),n=this.computeScrollerHeight(e),this.scrollerEl.height(n))},setGridHeight:function(e,t){t?c(this.dayGrid.rowEls):l(this.dayGrid.rowEls,e,!0)},renderEvents:function(e){this.dayGrid.renderEvents(e),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return this.dayGrid.renderDrag(e,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(e){this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),kt=wt.extend({computeRange:function(e){var t,n=wt.prototype.computeRange.call(this,e);return this.isFixedWeeks()&&(t=Math.ceil(n.end.diff(n.start,"weeks",!0)),n.end.add(6-t,"weeks")),n},setGridHeight:function(e,t){t=t||"variable"===this.opt("weekMode"),t&&(e*=this.rowCnt/6),l(this.dayGrid.rowEls,e,!t)},isFixedWeeks:function(){var e=this.opt("weekMode");return e?"fixed"===e:this.opt("fixedWeekCount")}});Pe.basic={"class":wt},Pe.basicDay={type:"basic",duration:{days:1}},Pe.basicWeek={type:"basic",duration:{weeks:1}},Pe.month={"class":kt,duration:{months:1},defaults:{fixedWeekCount:!0}};var xt=ft.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new dt(this),this.opt("allDaySlot")?(this.dayGrid=new ut(this),this.coordMap=new rt([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(e){ft.prototype.setRange.call(this,e),this.timeGrid.setRange(e),this.dayGrid&&this.dayGrid.setRange(e)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.setElement(this.el.find(".fc-time-grid")),this.timeGrid.renderDates(),this.bottomRuleEl=e('').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement())},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},renderHtml:function(){return''},headIntroHtml:function(){var e,t;return this.opt("weekNumbers")?(e=this.timeGrid.getCell(0).start,t=e.format(this.opt("smallWeekFormat")),'"):'"},dayIntroHtml:function(){return'"+(this.opt("allDayHtml")||$(this.opt("allDayText")))+" "},slotBgIntroHtml:function(){return' "},introHtml:function(){
return' "},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(e){this.timeGrid.updateSize(e),ft.prototype.updateSize.call(this,e)},updateWidth:function(){this.axisWidth=u(this.el.find(".fc-axis"))},setHeight:function(e,t){var n,i;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),f(this.scrollerEl),o(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),n=this.opt("eventLimit"),n&&"number"!=typeof n&&(n=St),n&&this.dayGrid.limitRows(n)),t||(i=this.computeScrollerHeight(e),d(this.scrollerEl,i)?(r(this.noScrollRowEls,v(this.scrollerEl)),i=this.computeScrollerHeight(e),this.scrollerEl.height(i)):(this.scrollerEl.height(i).css("overflow","hidden"),this.bottomRuleEl.show()))},computeInitialScroll:function(){var e=t.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(e);return n=Math.ceil(n),n&&n++,n},renderEvents:function(e){var t,n,i=[],r=[],o=[];for(n=0;ni;i++)if(t.charAt(n+i)!=e.charAt(i))return!1;return!0}function r(t,n,i,a){var l=[],c=null,u=null,d=null;for(u=i[i.length-1];t.length>0;){if(d=t.shift(),u&&"<"==u.tag&&!(d.tag in k))throw new Error("Illegal content in < super tag.");if(e.tags[d.tag]<=e.tags.$||o(d,a))i.push(d),d.nodes=r(t,d.tag,i,a);else{if("/"==d.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+d.n);if(c=i.pop(),d.n!=c.n&&!s(d.n,c.n,a))throw new Error("Nesting error: "+c.n+" vs. "+d.n);return c.end=d.i,l}"\n"==d.tag&&(d.last=0==t.length||"\n"==t[0].tag)}l.push(d)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return l}function o(e,t){for(var n=0,i=t.length;i>n;n++)if(t[n].o==e.n)return e.tag="#",!0}function s(e,t,n){for(var i=0,r=n.length;r>i;i++)if(n[i].c==e&&n[i].o==t)return!0}function a(e){var t=[];for(var n in e)t.push('"'+c(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}function l(e){var t=[];for(var n in e.partials)t.push('"'+c(n)+'":{name:"'+c(e.partials[n].name)+'", '+l(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+a(e.subs)}function c(e){return e.replace(b,"\\\\").replace(m,'\\"').replace(g,"\\n").replace(v,"\\r").replace(y,"\\u2028").replace(w,"\\u2029")}function u(e){return~e.indexOf(".")?"d":"f"}function d(e,t){var n="<"+(t.prefix||""),i=n+e.n+x++;return t.partials[i]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+c(i)+'",c,p,"'+(e.indent||"")+'"));',i}function f(e,t){t.code+="t.b(t.t(t."+u(e.n)+'("'+c(e.n)+'",c,p,0)));'}function h(e){return"t.b("+e+");"}var p=/\S/,m=/\"/g,g=/\n/g,v=/\r/g,b=/\\/g,y=/\u2028/,w=/\u2029/;e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(r,o){function s(){b.length>0&&(y.push({tag:"_t",text:new String(b)}),b="")}function a(){for(var t=!0,n=x;n"==n.tag&&(n.indent=y[i].text.toString()),y.splice(i,1));else t||y.push({tag:"\n"});w=!1,x=y.length}function c(e,t){var i="="+D,r=e.indexOf(i,t),o=n(e.substring(e.indexOf("=",t)+1,r)).split(" ");return S=o[0],D=o[o.length-1],r+i.length-1}var u=r.length,d=0,f=1,h=2,m=d,g=null,v=null,b="",y=[],w=!1,k=0,x=0,S="{{",D="}}";for(o&&(o=o.split(" "),S=o[0],D=o[1]),k=0;u>k;k++)m==d?i(S,r,k)?(--k,s(),m=f):"\n"==r.charAt(k)?l(w):b+=r.charAt(k):m==f?(k+=S.length-1,v=e.tags[r.charAt(k+1)],g=v?r.charAt(k+1):"_v","="==g?(k=c(r,k),m=d):(v&&k++,m=h),w=k):i(D,r,k)?(y.push({tag:g,n:n(b),otag:S,ctag:D,i:"/"==g?w-S.length:k+D.length}),b="",k+=D.length-1,m=d,"{"==g&&("}}"==D?k++:t(y[y.length-1]))):b+=r.charAt(k);return l(w,!0),y};var k={_t:!0,"\n":!0,$:!0,"/":!0};e.stringify=function(t,n,i){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+l(t)+"}"};var x=0;e.generate=function(t,n,i){x=0;var r={code:"",subs:{},partials:{}};return e.walk(t,r),i.asString?this.stringify(r,n,i):this.makeTemplate(r,n,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+u(t.n)+'("'+c(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+u(t.n)+'("'+c(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":d,"<":function(t,n){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,i);var r=n.partials[d(t,n)];r.subs=i.subs,r.partials=i.partials},$:function(t,n){var i={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,i),n.subs[t.n]=i.code,n.inPartial||(n.code+='t.sub("'+c(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=h('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+u(e.n)+'("'+c(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=h('"'+c(e.text)+'"')},"{":f,"&":f},e.walk=function(t,n){for(var i,r=0,o=t.length;o>r;r++)i=e.codegen[t[r].tag],i&&i(t[r],n);return n},e.parse=function(e,t,n){return n=n||{},r(e,"",[],n.sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var i=e.cacheKey(t,n),r=this.cache[i];if(r){var o=r.partials;for(var s in o)delete o[s].instance;return r}return r=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[i]=r}}(t)},function(e,t,n){!function(e){function t(e,t,n){var i;return t&&"object"==typeof t&&(void 0!==t[e]?i=t[e]:n&&t.get&&"function"==typeof t.get&&(i=t.get(e))),i}function n(e,t,n,i,r,o){function s(){}function a(){}s.prototype=e,a.prototype=e.subs;var l,c=new s;c.subs=new a,c.subsText={},c.buf="",i=i||{},c.stackSubs=i,c.subsText=o;for(l in t)i[l]||(i[l]=t[l]);for(l in i)c.subs[l]=i[l];r=r||{},c.stackPartials=r;for(l in n)r[l]||(r[l]=n[l]);for(l in r)c.partials[l]=r[l];return c}function i(e){return String(null===e||void 0===e?"":e)}function r(e){return e=i(e),u.test(e)?e.replace(o,"&").replace(s,"<").replace(a,">").replace(l,"'").replace(c,"""):e}e.Template=function(e,t,n,i){e=e||{},this.r=e.code||this.r,this.c=n,this.options=i||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:r,t:i,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var i=this.partials[e],r=t[i.name];if(i.instance&&i.base==r)return i.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,i.subs){t.stackText||(t.stackText={});for(key in i.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=n(r,i.subs,i.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,i){var r=this.ep(e,n);return r?r.ri(t,n,i):""},rs:function(e,t,n){var i=e[e.length-1];if(!d(i))return void n(e,t,this);for(var r=0;r=0;c--)if(s=n[c],o=t(e,s,l),void 0!==o){a=!0;break}return a?(r||"function"!=typeof o||(o=this.mv(o,n,i)),o):r?!1:""},ls:function(e,t,n,r,o){var s=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(i(e.call(t,r)),t,n)),this.options.delimiters=s,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,i,r,o,s){var a,l=t[t.length-1],c=e.call(l);return"function"==typeof c?i?!0:(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,n,a.substring(r,o),s)):c},mv:function(e,t,n){var r=t[t.length-1],o=e.call(r);return"function"==typeof o?this.ct(i(o.call(r)),r,n):o},sub:function(e,t,n,i){var r=this.subs[e];r&&(this.activeSub=e,r(t,n,this,i),this.activeSub=!1)}};var o=/&/g,s=//g,l=/\'/g,c=/\"/g,u=/[&<>\"\']/,d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},function(e,t,n){var i,r;!function(o){var s=function(e,t,n,i){if(!f(t)||p(t)||m(t)||g(t))return t;var r,o=0,a=0;if(h(t))for(r=[],a=t.length;a>o;o++)r.push(s(e,t[o],n,i));else{r={};for(var l in t)t.hasOwnProperty(l)&&(r[e(l,n,i)]=s(e,t[l],n,i))}return r},a=function(e,t,n){"undefined"==typeof t&&(t="_");var i=/([a-z])([A-Z0-9])/g;return n&&(i=/([a-z])([A-Z])/g),e.replace(i,"$1"+t+"$2")},l=function(e){return v(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))},c=function(e){var t=l(e);return t.substr(0,1).toUpperCase()+t.substr(1)},u=function(e,t,n){return a(e,t,n).toLowerCase()},d=Object.prototype.toString,f=function(e){return e===Object(e)},h=function(e){return"[object Array]"==d.call(e)},p=function(e){return"[object Date]"==d.call(e)},m=function(e){return"[object RegExp]"==d.call(e)},g=function(e){return"[object Boolean]"==d.call(e)},v=function(e){return e-=0,e===e},b={camelize:l,decamelize:u,pascalize:c,depascalize:u,camelizeKeys:function(e){return s(l,e)},decamelizeKeys:function(e,t,n){return s(u,e,t,n)},pascalizeKeys:function(e){return s(c,e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};i=b,r="function"==typeof i?i.call(t,n,t,e):i,!(void 0!==r&&(e.exports=r))}(this)},function(e,t,n){function i(e){return n(r(e))}function r(e){return o[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var o={"./en-gb":11,"./en-gb.js":11};i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=35},function(e,t,n){var i=n(2);e.exports=function(){var e=new i.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("\n"+n),i.b(" "),i.b("\n"),i.b("\n"+n),i.b(" "),i.b("\n"),i.b("\n"+n),i.s(i.d("fields.phone.enabled",e,t,1),e,t,0,503,816,"{{ }}")&&(i.rs(e,t,function(e,t,i){i.b(" "),i.b("\n"+n)}),e.pop()),i.b("\n"+n),i.s(i.d("fields.voip.enabled",e,t,1),e,t,0,871,1177,"{{ }}")&&(i.rs(e,t,function(e,t,i){i.b(" "),i.b("\n"+n)}),e.pop()),i.b("\n"+n),i.s(i.d("fields.location.enabled",e,t,1),e,t,0,1235,1573,"{{ }}")&&(i.rs(e,t,function(e,t,i){i.b(" "),i.b("\n"+n)}),e.pop()),i.b("\n"+n),i.s(i.d("fields.comment.enabled",e,t,1),e,t,0,1634,1964,"{{ }}")&&(i.rs(e,t,function(e,t,i){i.b(" "),i.b("\n"+n)}),e.pop()),i.fl()},partials:{},subs:{}},'\n \n\n \n\n{{# fields.phone.enabled }}\n \n{{/ fields.phone.enabled }}\n\n{{# fields.voip.enabled }}\n \n{{/ fields.voip.enabled }}\n\n{{# fields.location.enabled }}\n \n{{/ fields.location.enabled }}\n\n{{# fields.comment.enabled }}\n \n{{/ fields.comment.enabled }}',i);return e}()},function(e,t,n){var i=n(2);e.exports=function(){var e=new i.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b(''),i.b("\n"+n),i.b('
'),i.b(i.t(i.f("closeIcon",e,t,0))),i.b(" "),i.b("\n"+n),i.b('
'),i.b(i.v(i.f("chosenDate",e,t,0))),i.b(" "),i.b("\n"+n),i.b('
'),i.b(i.v(i.f("chosenTime",e,t,0))),i.b(" "),i.b("\n"+n),i.b('
\n',i);return e}()},function(e,t,n){var i=n(2);e.exports=function(){var e=new i.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b(''),i.b("\n"+n),i.b('
'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("timekitIcon",e,t,0))),i.b("\n"+n),i.b(" Powered by Timekit "),i.b("\n"+n),i.b(" "),i.b("\n"+n),i.b("
"),i.b("\n"),i.fl()},partials:{},subs:{}},'\n',i);return e}()},function(e,t,n){var i=n(2);e.exports=function(){var e=new i.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b(''),i.b("\n"+n),i.b('
'),i.b("\n"+n),i.b("
"),i.b("\n"),i.fl()},partials:{},subs:{}},'\n
\n
\n',i);return e}()},function(e,t,n){var i=n(2);e.exports=function(){var e=new i.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b(''),i.b("\n"+n),i.b(" "),i.b(i.v(i.f("name",e,t,0))),i.b(" "),i.b("\n"+n),i.b("
"),i.b("\n"),i.fl()},partials:{},subs:{}},'\n {{ name }} \n
\n',i);return e}()},function(e,t,n){var i=n(26);"string"==typeof i&&(i=[[e.id,i,""]]);n(4)(i,{singleton:!0});i.locals&&(e.exports=i.locals)},function(e,t,n){var i=n(27);"string"==typeof i&&(i=[[e.id,i,""]]);n(4)(i,{singleton:!0});i.locals&&(e.exports=i.locals)},function(e,t,n){var i=n(28);"string"==typeof i&&(i=[[e.id,i,""]]);n(4)(i,{singleton:!0});i.locals&&(e.exports=i.locals)},function(e,t,n){var i=n(29);"string"==typeof i&&(i=[[e.id,i,""]]);n(4)(i,{singleton:!0});i.locals&&(e.exports=i.locals)},function(e,t){e.exports=' '},function(e,t){e.exports='close-icon Created with Sketch. '},function(e,t){e.exports='error-icon Created with Sketch. '},function(e,t){e.exports=' '},function(e,t){e.exports='Full vector path Created with Sketch. '},function(e,t){e.exports='Shape Created with Sketch. '},function(e,t,n){"use strict";function i(){var e,t,n,i={app:"demo",apiBaseUrl:"https://api.timekit.io/",apiVersion:"v2",convertResponseToCamelcase:!1
},a=function(){return o.encode(e+":"+t)},l=function(e){return i.apiBaseUrl+i.apiVersion+e},c={};return c.makeRequest=function(o){o.url=l(o.url),o.headers={"Timekit-App":i.app},e&&t&&(o.headers.Authorization="Basic "+a()),i.inputTimestampFormat&&(o.headers["Timekit-InputTimestampFormat"]=i.inputTimestampFormat),i.outputTimestampFormat&&(o.headers["Timekit-OutputTimestampFormat"]=i.outputTimestampFormat),i.timezone&&(o.headers["Timekit-Timezone"]=i.timezone),n&&n.length>0&&(void 0===o.params&&(o.params={}),o.params.include=n.join(),n=[]),o.data&&(o.data=s.decamelizeKeys(o.data));var c=r.interceptors.response.use(function(e){return e.data&&e.data.data&&(e.data=e.data.data,i.convertResponseToCamelcase&&(e.data=s.camelizeKeys(e.data))),e},function(e){return Promise.reject(e)}),u=r(o);return r.interceptors.response.eject(c),u},c.configure=function(e){for(var t in e)i[t]=e[t];return i},c.getConfig=function(){return i},c.setUser=function(n,i){e=n,t=i},c.getUser=function(){return{email:e,apiToken:t}},c.include=function(){return n=Array.prototype.slice.call(arguments),this},c.getAccounts=function(){return c.makeRequest({url:"/accounts",method:"get"})},c.accountGoogleSignup=function(e,t){var n=l("/accounts/google/signup")+"?Timekit-App="+i.app+(e&&e.callback?"&callback="+e.callback:"");return t&&window?void(window.location.href=n):n},c.getAccountGoogleCalendars=function(){return c.makeRequest({url:"/accounts/google/calendars",method:"get"})},c.accountSync=function(){return c.makeRequest({url:"/accounts/sync",method:"get"})},c.auth=function(e){var t=c.makeRequest({url:"/auth",method:"post",data:e});return t.then(function(e){c.setUser(e.data.email,e.data.api_token)})["catch"](function(){c.setUser("","")}),t},c.getApps=function(){return c.makeRequest({url:"/apps",method:"get"})},c.getApp=function(e){return c.makeRequest({url:"/apps/"+e.slug,method:"get"})},c.createApp=function(e){return c.makeRequest({url:"/apps",method:"post",data:e})},c.updateApp=function(e){var t=e.slug;return delete e.slug,c.makeRequest({url:"/apps/"+t,method:"put",data:e})},c.deleteApp=function(e){return c.makeRequest({url:"/apps/"+e.slug,method:"delete"})},c.getCalendars=function(){return c.makeRequest({url:"/calendars",method:"get"})},c.getCalendar=function(e){return c.makeRequest({url:"/calendars/"+e.id,method:"get"})},c.createCalendar=function(e){return c.makeRequest({url:"/calendars/",method:"post",data:e})},c.deleteCalendar=function(e){return c.makeRequest({url:"/calendars/"+e.id,method:"delete"})},c.getContacts=function(){return c.makeRequest({url:"/contacts/",method:"get"})},c.getEvents=function(e){return c.makeRequest({url:"/events",method:"get",params:e})},c.getEvent=function(e){return c.makeRequest({url:"/events/"+e.id,method:"get"})},c.createEvent=function(e){return c.makeRequest({url:"/events",method:"post",data:e})},c.deleteEvent=function(e){return c.makeRequest({url:"/events/"+e.id,method:"delete"})},c.getAvailability=function(e){return c.makeRequest({url:"/events/availability",method:"get",params:e})},c.findTime=function(e){return c.makeRequest({url:"/findtime",method:"post",data:e})},c.findTimeBulk=function(e){return c.makeRequest({url:"/findtime/bulk",method:"post",data:e})},c.getMeetings=function(){return c.makeRequest({url:"/meetings",method:"get"})},c.getMeeting=function(e){return c.makeRequest({url:"/meetings/"+e.id,method:"get"})},c.createMeeting=function(e){return c.makeRequest({url:"/meetings",method:"post",data:e})},c.updateMeeting=function(e){var t=e.id;return delete e.id,c.makeRequest({url:"/meetings/"+t,method:"put",data:e})},c.setMeetingAvailability=function(e){return c.makeRequest({url:"/meetings/availability",method:"post",data:e})},c.bookMeeting=function(e){return c.makeRequest({url:"/meetings/book",method:"post",data:e})},c.inviteToMeeting=function(e){var t=e.id;return delete e.id,c.makeRequest({url:"/meetings/"+t+"/invite",method:"post",data:e})},c.createUser=function(e){return c.makeRequest({url:"/users",method:"post",data:e})},c.getUserInfo=function(){return c.makeRequest({url:"/users/me",method:"get"})},c.updateUser=function(e){return c.makeRequest({url:"/users/me",method:"put",data:e})},c.resetUserPassword=function(e){return c.makeRequest({url:"/users/resetpassword",method:"post",data:e})},c.getUserTimezone=function(e){return c.makeRequest({url:"/users/timezone/"+e.email,method:"get"})},c.getUserProperties=function(){return c.makeRequest({url:"/properties",method:"get"})},c.getUserProperty=function(e){return c.makeRequest({url:"/properties/"+e.key,method:"get"})},c.setUserProperties=function(e){return c.makeRequest({url:"/properties",method:"put",data:e})},c.getCredentials=function(){return c.makeRequest({url:"/credentials",method:"get"})},c.createCredential=function(e){return c.makeRequest({url:"/credentials",method:"post",data:e})},c.deleteCredential=function(e){return c.makeRequest({url:"/credentials/"+e.id,method:"delete"})},c}/*!
* Timekit JavaScript SDK
* Version: 1.1.0
* http://timekit.io
*
* Copyright 2015 Timekit, Inc.
* The Timekit JavaScript SDK is freely distributable under the MIT license.
*
*/
var r=n(14),o=n(25),s=n(34);e.exports=new i},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){"use strict";var n={targetEl:"#bookingjs",name:"",avatar:"",autoload:!0,includeStyles:!0,showCredits:!0,goToFirstEvent:!0,bookingFields:{name:{placeholder:"Your full name",prefilled:!1},email:{placeholder:"Your e-mail",prefilled:!1},comment:{enabled:!0,placeholder:"Write a comment (optional)",prefilled:!1,required:!1},phone:{enabled:!1,placeholder:"Your phone number",prefilled:!1,required:!1},voip:{enabled:!1,placeholder:"Your Skype username",prefilled:!1,required:!1},location:{enabled:!1,placeholder:"Location",prefilled:!1,required:!1}},timekitConfig:{app:"bookingjs"},timekitFindTime:{future:"4 weeks",length:"1 hour"},timekitCreateEvent:{invite:!0,my_rsvp:"needsAction"},fullCalendar:{header:{left:"",center:"",right:"today, prev, next"},views:{agenda:{displayEventEnd:!1}},allDaySlot:!1,scrollTime:"08:00:00",timezone:"local"},localization:{showTimezoneHelper:!0,timeDateFormat:"12h-mdy-sun"},callbacks:{}},i={fullCalendar:{timeFormat:"HH:mm",firstDay:1,views:{basic:{columnFormat:"dddd D/M"},agenda:{columnFormat:"ddd\n D/M",slotLabelFormat:"HH:mm"}}},localization:{bookingDateFormat:"D. MMMM YYYY",bookingTimeFormat:"HH:mm"}},r={fullCalendar:{timeFormat:"h:mma",firstDay:0,views:{basic:{columnFormat:"dddd M/D"},agenda:{columnFormat:"ddd\n M/D",slotLabelFormat:"ha"}}},localization:{bookingDateFormat:"MMMM D, YYYY",bookingTimeFormat:"h:mma"}};e.exports={primary:n,presets:{timeDateFormat24hdmymon:i,timeDateFormat12hmdysun:r}}},function(e,t){"use strict";e.exports={isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},doCallback:function(e,t,n){this.isFunction(t.callbacks[e])&&t.callbacks[e](n)}}},function(e,t){}])});